You are on page 1of 65

Chapter 4

DIGITAL TRANSMISSION

Kashif Bashir

1 DIGITAL TRANSMISSION
A computer network is designed to send information from one point to another. This information needs to be converted to either a digital signal or an analog signal for Transmission. Topics discussed in this section:
Line Coding Line Coding Schemes Block Coding 4.2

Kashif Bashir

Figure 4.1 Line coding and decoding

4.3

4.3

Kashif Bashir

Note

The data rate defines the number of data elements (bits) sent in 1 s. The unit is bits per second (bps). The data rate is sometimes called the bit rate;

4.4
Kashif Bashir

Note

The signal rate is the number of signal elements sent in Is. The unit is the baud. The signal rate is sometimes called the pulse rate, the modulation rate, or the baud rate.

4.5

Kashif Bashir

Note

One goal in data communications is to increase the data rate while decreasing the signal rate. Increasing the data rate increases the speed of transmission; decreasing the signal rate decreases the bandwidth requirement.
4.6
Kashif Bashir

Note
Self-synchronization To correctly interpret the signals received from the sender, the receiver's bit intervals must correspond exactly to the sender's bit intervals. If the receiver clock is faster or slower, the bit intervals are not matched and the receiver might misinterpret the signals.

4.7

Kashif Bashir

Figure 4.3 Effect of lack of synchronization

4.8

Kashif Bashir

Example 4.2
In a digital transmission, the receiver clock is 0.1 percent faster than the sender clock. How many extra bits per second does the receiver receive if the data rate is 1 kbps? How many if the data rate is 1 Mbps? Solution At 1 kbps, the receiver receives 1001 bps instead of 1000 bps. At 1 Mbps, the receiver receives 1,001,000 bps instead of 1,000,000 bps.

4.9

Kashif Bashir

Different Conversion Schemes

4.10

Kashif Bashir

Digital to Digital Encoding

4.11

Kashif Bashir

Types of Digital to Digital Encoding

4.12

Kashif Bashir

Note: Unipolar encoding uses only one voltage level.

4.13

Kashif Bashir

Unipolar Encoding

4.14

Kashif Bashir

Note: Polar encoding uses two voltage levels (positive and negative).

4.15

Kashif Bashir

Types of Polar Encoding

4.16

Kashif Bashir

Note: In NRZ-L the level of the signal is dependent upon the state of the bit.

4.17

Kashif Bashir

Note: In NRZ-I the signal is inverted if a 1 is encountered.

4.18

Kashif Bashir

NRZ-L and NRZ-I Encoding

4.19

Kashif Bashir

RZ Encoding

4.20

Kashif Bashir

Note: A good encoded digital signal must contain a provision for synchronization.

4.21

Kashif Bashir

Note: In Manchester encoding, the transition at the middle of the bit is used for both synchronization and bit representation.

4.22

Kashif Bashir

Note: In differential Manchester encoding, the transition at the middle of the bit is used only for synchronization. The bit representation is defined by the inversion or noninversion at the beginning of the bit.
4.23
Kashif Bashir

Manchester and Diff. Manchester Encoding

4.24

Kashif Bashir

Note: In Manchester Scheme the only drawback is the signal rate. The signal rate for Manchester and differential Manchester is double that for NRZ.

4.25

Kashif Bashir

Note:
A long sequence of Os upsets the synchronization. If we can find a way to avoid a long sequence of Os in the original stream, we can use bipolar AMI for long distances.

4.26

Kashif Bashir

Note: In bipolar encoding, we use three levels: positive, zero, and negative.

4.27

Kashif Bashir

Types of Bipolar Encoding

4.28

Kashif Bashir

Bipolar AMI Encoding

4.29

Kashif Bashir

Note:
Bipolar with 8-zero substitution (B8ZS) is commonly used in North America. In this technique, eight consecutive zero-level voltages are replaced by the sequence 000VBOVB. The V in the sequence denotes violation; this is a nonzero voltage that breaks an AMI rule of encoding. The B in the sequence denotes bipolar, which means a nonzero level voltage in accordance with the AMI rule

4.30

Kashif Bashir

B8ZS Encoding

4.31

Kashif Bashir

Figure 4.19 Two cases of B8ZS scrambling technique

4.32

Kashif Bashir

Solution to Example 3

4.33

Kashif Bashir

Note:
High density bipolar 3 zero (HDB3) is commonly used outside of north America. In this technique, four consecutive zero-level voltages are replaced with a sequenced with of 000V or B000V.

4.34

Kashif Bashir

HDB3 Encoding

4.35

Kashif Bashir

High density bipolar 3 zero (HDB3)


The two rules can be stated as follows: 1. If the number of nonzero pulses after the last substitution is odd, the substitution pattern will be 000V, which makes the total number of nonzero pulses even. 2. If the number of nonzero pulses after the last substitution is even, the substitution pattern will be B00V, which makes the total number of nonzero pulses even.

Kashif Bashir

Figure 4.20 Different situations in HDB3 scrambling technique

4.37

Kashif Bashir

Solution to Example 4

4.38

Kashif Bashir

2 ANALOG-TO-DIGITAL CONVERSION
We have seen in Chapter 3 that a digital signal is superior to an analog signal. The tendency today is to change an analog signal to digital data. In this section we describe two techniques, pulse code modulation and delta modulation. Topics discussed in this section:
Pulse Code Modulation (PCM) Delta Modulation (DM)

4.39

Kashif Bashir

Figure 4.21 Components of PCM encoder

4.40

Kashif Bashir

PAM

Kashif Bashir

Quantized PAM Signal

Kashif Bashir

Quantizing Using Sign and Magnitude

Kashif Bashir

PCM

Kashif Bashir

From Analog to PCM

Kashif Bashir

Figure 4.22 Three different sampling methods for PCM

4.46

Kashif Bashir

Note

According to the Nyquist theorem, the sampling rate must be at least 2 times the highest frequency contained in the signal.

4.47

Kashif Bashir

Figure 4.23 Nyquist sampling rate for low-pass and bandpass signals

4.48

Kashif Bashir

Example
What sampling rate is needed for a signal with a bandwidth of 10,000 Hz (1000 to 11,000 Hz)?

Solution
The sampling rate must be twice the highest frequency in the signal: Sampling rate = 2 x (11,000) = 22,000 samples/s

Kashif Bashir

Example
A signal is sampled. Each sample requires at least 12 levels of precision (+0 to +5 and -0 to -5). How many bits should be sent for each sample?

Solution
We need 4 bits; 1 bit for the sign and 3 bits for the value. A 3-bit value can represent 23 = 8 levels (000 to 111), which is more than what we need. A 2-bit value is not enough since 22 = 4. A 4-bit value is too much because 24 = 16.
Kashif Bashir

Example
We want to digitize the human voice. What is the bit rate, assuming 8 bits per sample?

Solution
The human voice normally contains frequencies from 0 to 4000 Hz. Sampling rate = 4000 x 2 = 8000 samples/s Bit rate = sampling rate x number of bits per sample = 8000 x 8 = 64,000 bps = 64 Kbps
Kashif Bashir

Note

PCM is a very complex technique. Other techniques have been developed to reduce the complexity of PCM. The simplest is delta modulation. DM finds the change from the previous sample, used for transmission of voice information where quality is not of primary importance.
4.52
Kashif Bashir

Figure 4.28 The process of delta modulation

4.53

Kashif Bashir

Figure 4.29 Delta modulation components

4.54

Kashif Bashir

Figure 4.30 Delta demodulation components

4.55

Kashif Bashir

3 TRANSMISSION MODES
The transmission of binary data across a link can be accomplished in either parallel or serial mode. In parallel mode, multiple bits are sent with each clock tick. In serial mode, 1 bit is sent with each clock tick. While there is only one way to send parallel data, there are three subclasses of serial transmission: asynchronous, synchronous, and isochronous. Topics discussed in this section:
Parallel Transmission Serial Transmission

4.56

Kashif Bashir

Figure 4.31 Data transmission and modes

4.57

Kashif Bashir

Figure 4.32 Parallel transmission

4.58

Kashif Bashir

Figure 4.33 Serial transmission

4.59

Kashif Bashir

Note

In asynchronous transmission, we send 1 start bit (0) at the beginning and 1 or more stop bits (1s) at the end of each byte. There may be a gap between each byte.

4.60

Kashif Bashir

Note

Asynchronous here means asynchronous at the byte level, but the bits are still synchronized; their durations are the same.

4.61

Kashif Bashir

Figure 4.34 Asynchronous transmission

4.62

Kashif Bashir

Note

In synchronous transmission, we send bits one after another without start or stop bits or gaps. It is the responsibility of the receiver to group the bits.

4.63

Kashif Bashir

Figure 4.35 Synchronous transmission

4.64

Kashif Bashir

Isochronous

In real-time audio and video, in which uneven delays between frames are not acceptable, synchronous transmission fails. For example, TV images are broadcast at the rate of 30 images per second; they must be viewed at the same rate. If each image is sent by using one or more flames, there should be no delays between frames. For this type of application, synchronization between characters is not enough; the entire stream of bits must be synchronized. The isochronous transmission guarantees that the data arrive at a fixed rate.

4.65

Kashif Bashir

You might also like