1 SIGNAL ENCODING TECHNIQUES Networks and Communication Department

  • Slides: 34
Download presentation
1 SIGNAL ENCODING TECHNIQUES Networks and Communication Department Chapter 5

1 SIGNAL ENCODING TECHNIQUES Networks and Communication Department Chapter 5

Lecture Contents 2 Introduction Digital data, Digital signals Key terms Encoding schemes Nonreturn (NRZ-L

Lecture Contents 2 Introduction Digital data, Digital signals Key terms Encoding schemes Nonreturn (NRZ-L to Zero , NRZI) Multilevel Binary (Bipolar-AMI , Pseudoternary) Biphase (Manchester 03 -Nov-20 , Differential Manchester) Networks and Communication Department

3 Introduction 03 -Nov-20 Networks and Communication Department

3 Introduction 03 -Nov-20 Networks and Communication Department

Introduction 4 03 -Nov-20 Networks and Communication Department

Introduction 4 03 -Nov-20 Networks and Communication Department

Introduction 5 • For digital signaling, a data source g(t), which may be either

Introduction 5 • For digital signaling, a data source g(t), which may be either digital or analog, is encoded into a digital signal x(t). • The basis for analog signaling is a continuous constant-frequency fc signal known as the carrier signal. • Data may be transmitted using a carrier signal by modulation, which is the process of encoding source data onto the carrier signal. • All modulation techniques involve operation on one or more of the three fundamental frequency domain parameters: amplitude, frequency, and phase. • The input signal m(t) may be analog or digital and is called the modulating signal, and the result of modulating the carrier signal is called the modulated signal s(t). 03 -Nov-20 Networks and Communication Department

Introduction 6 q Digital data, digital signals: simplest form of digital encoding of digital

Introduction 6 q Digital data, digital signals: simplest form of digital encoding of digital data q q q Digital data, analog signal: q A modem converts digital data to an analog signal so that it can be transmitted over an analog medium q Optical fiber and unguided media. Analog data, digital signals: Analog data, such as voice and video, are often digitized to be able to use digital transmission facilities. q q the equipment is less complex and less expensive than digital-to-analog modulation equipment Use of modern digital transmission and switching equipment. Analog data, analog signals: Analog data are modulated by a carrier frequency to produce an analog signal in a different frequency band, which can be utilized on an analog transmission system q Voice transmission and shift the bandwidth to other spectrum. 03 -Nov-20 Networks and Communication Department

7 Digital data, Digital Signal 03 -Nov-20 Networks and Communication Department

7 Digital data, Digital Signal 03 -Nov-20 Networks and Communication Department

Digital Data, Digital Signal Ø Digital signal A digital signal is a sequence of

Digital Data, Digital Signal Ø Digital signal A digital signal is a sequence of discrete, discontinuous voltage pulses l Each bit is a signal element l binary data encoded into signal elements l the equipment for encoding digital data into a digital signal is less complex and less expensive than digital-to-analog modulation equipment Ø

Key terms 9 Term Unit Definition Data element Bits A signal binary one or

Key terms 9 Term Unit Definition Data element Bits A signal binary one or zero Data rate Bits per second (bps) The rate at which data elements are transmitted Signal element Digital: a voltage pulse of constant amplitude The part of a signal that occupies the shortest interval of a signaling code Analog: a pulse of constant frequency, phase, amplitude. Signaling rate or 03 -Nov-20 Modulation rate Signal elements per The rate at which Networks and Communication Department second signal elements are

Some Terms Line coding schemes: Ø Unipolar – It uses only one voltage level.

Some Terms Line coding schemes: Ø Unipolar – It uses only one voltage level. Polar – use two voltage levels , one positive and the other one negative. Ø Bipolar - use three voltage levels , positive voltage , 0 voltage and negative voltage Ø

Interpreting Digital Signals Ø Receiver needs to know l l Ø timing of bits

Interpreting Digital Signals Ø Receiver needs to know l l Ø timing of bits - when they start and end signal levels factors affecting signal interpretation l l Signal To Noise Ratio l An increase in SNR decreases bit error rate. Data Rate l An increase in data rate increases bit error rate (BER). Bandwidth l An increase in bandwidth allows an increase in data rate Encoding Scheme l affects performance

Comparison of Encoding Schemes Ways of evaluating or comparing the various encoding techniques: Ø

Comparison of Encoding Schemes Ways of evaluating or comparing the various encoding techniques: Ø Signal Spectrum Ø Ø Number Of Signal Levels Ø Ø useful if can be built-in to signal encoding Signal Interference And Noise Immunity Ø Ø need for synchronizing transmitter and receiver either with an external clock or with a sync mechanism based on signal. Error Detection Ø Ø two levels (for binary) , or multilevel Clocking Ø Ø Lack of high frequencies reduces required bandwidth, lack of dc component provide isolation some codes are better than others Cost And Complexity Ø Higher signal rate (& thus data rate) lead to higher costs.

Encoding Schemes Encoding scheme : is the mapping from data bits to signal element.

Encoding Schemes Encoding scheme : is the mapping from data bits to signal element. They include: 1. Nonreturn to Zero-Level (NRZ-L) 2. Nonreturn to Zero Inverted (NRZI) 3. Bipolar -AMI 4. Pseudoternary 5. Manchester 6. Differential Manchester

Encoding Schemes

Encoding Schemes

Nonreturn to Zero-Level (NRZ-L) Ø Ø two different voltages for 0 and 1 bits

Nonreturn to Zero-Level (NRZ-L) Ø Ø two different voltages for 0 and 1 bits negative voltage for one value and positive for the zero. voltage constant during bit interval Ø no transition i. e. no return to zero voltage Ø Lack of synchronization when the data contain a long streams of 0 s or 1 s. Ø

Nonreturn to Zero Inverted (NRZI) Ø Ø Ø Non-return to zero, inverted on ones

Nonreturn to Zero Inverted (NRZI) Ø Ø Ø Non-return to zero, inverted on ones constant voltage pulse for duration of bit data encoded as presence or absence of signal transition at beginning of bit time l l Ø example of differential encoding since l l l Ø transition (low to high or high to low) denotes binary 1 no transition denotes binary 0 data is represented by changes rather than levels more reliable detection of transition rather than level easy to lose sense of polarity in twisted-pair line (for NRZ-L) Loss of synchronization when the data contain a long streams of 0 s

NRZ Pros & Cons Ø Pros easy to engineer l make good use of

NRZ Pros & Cons Ø Pros easy to engineer l make good use of bandwidth l Ø Cons dc component l lack of synchronization capability l Ø Ø used for magnetic recording not often used for signal transmission

Multilevel Binary Bipolar-AMI Ø Ø Use more than two levels Bipolar-AMI zero represented by

Multilevel Binary Bipolar-AMI Ø Ø Use more than two levels Bipolar-AMI zero represented by no line signal l one represented by positive or negative pulse l ‘One’ pulses alternately in polarity l no loss of sync if a long string of ones l long runs of zeros still a problem l no net dc component l lower bandwidth l easy error detection l

Multilevel Binary Pseudoternary Ø Ø one represented by absence of line signal zero represented

Multilevel Binary Pseudoternary Ø Ø one represented by absence of line signal zero represented by alternating positive and negative no advantage or disadvantage over bipolar. AMI each used in some applications

Multilevel Binary Issues Ø synchronization with long runs of 0’s or 1’s l l

Multilevel Binary Issues Ø synchronization with long runs of 0’s or 1’s l l Ø can insert additional bits, c. f. ISDN scramble data. not as efficient as NRZ l l each signal element only represents one bit the receiver of multilevel binary signals has to distinguish between three levels : +A, -A, 0; instead of just two levels in the signaling formats previously discussed a 3 level system could represent log 23 = 1. 58 bits Because of this, the multilevel binary signal requires approximately 3 d. B more signal power than a two-valued signal for the same probability of bit error.

Scrambling 21 Sequences that would result in a constant voltage level on the line

Scrambling 21 Sequences that would result in a constant voltage level on the line are replaced by filling sequences that will provide sufficient transitions for the receiver’s clock to maintain synchronization. The filling sequence must be recognized by the receiver and replaced with the original data sequence. The filling sequence is the same length as the original sequence, so there is no data rate penalty. 03 -Nov-20 Networks and Communication Department

Scrambling Ø Ø use scrambling to replace sequences that would produce constant voltage these

Scrambling Ø Ø use scrambling to replace sequences that would produce constant voltage these filling sequences must l l l produce enough transitions to sync be recognized by receiver & replaced with original data be same length as original, no rate penalty The design goals for this approach can be summarized as follows: l l have no dc component have no long sequences of zero level line signal have no reduction in data rate give error detection capability

B 8 ZS and HDB 3 Two techniques are commonly used in long-distance transmission

B 8 ZS and HDB 3 Two techniques are commonly used in long-distance transmission services; these are illustrated below.

(1) B 8 ZS Substitution Rules: • A coding scheme that is commonly used

(1) B 8 ZS Substitution Rules: • A coding scheme that is commonly used in North America is known as bipolar with 8 -zeros substitution (B 8 ZS). • If an octet of all zeros occurs and the last voltage pulse preceding this octet was positive, then the eight zeros of the octet are encoded as 000+– 0–+. • If an octet of all zeros occurs and the last voltage pulse preceding this octet was negative, then the eight zeros of the octet are encoded as 000–+0+–.

25 high-density bipolar-3 zeros (HDB 3) A coding scheme that is commonly used in

25 high-density bipolar-3 zeros (HDB 3) A coding scheme that is commonly used in Europe and Japan is known as the high-density bipolar-3 zeros (HDB 3). As before, it is based on the use of AMI encoding. In this case, the scheme replaces strings of four zeros with sequences containing one or two pulses. In each case, the fourth zero is replaced with a code violation. Table 5. 4 shows that this condition is tested for by determining (1) whether the number of pulses since the last violation is even or odd and (2) the polarity of the last pulse 03 -Nov-20 Networks and Communication Department

(2) HDB 3 Substitution Rules: 26 The fourth zero is replaced with a code

(2) HDB 3 Substitution Rules: 26 The fourth zero is replaced with a code violation. Successive violations are of alternate polarity Number of Bipolar Pulses (ones) since Last Substitution Polarity of Preceding Pulse Odd Even 00003 -Nov-20 Networks and Communication+00+ Department

Bi-Phase Manchester Encoding Ø Ø Ø overcomes the limitations of NRZ codes has transition

Bi-Phase Manchester Encoding Ø Ø Ø overcomes the limitations of NRZ codes has transition in the middle of each bit period Mid-bit transition is used for both synchronization (clocking)and data representation low to high represents one high to low represents zero used by IEEE 802. 3 (Ethernet LAN)

Bi-Phase Differential Manchester Encoding Ø Ø Ø Mid-bit transition is clocking only transition at

Bi-Phase Differential Manchester Encoding Ø Ø Ø Mid-bit transition is clocking only transition at start of bit period representing 0 no transition at start of bit period representing 1 l Ø this is a differential encoding scheme used by IEEE 802. 5 (Token Ring LAN)

Biphase Pros and Cons Ø Cons l l l Ø at least one transition

Biphase Pros and Cons Ø Cons l l l Ø at least one transition per bit time and possibly two maximum modulation rate is twice NRZ requires more bandwidth Pros l l l synchronization on mid bit transition (self clocking) has no dc component has error detection: The absence of an expected transition can be used to detect errors

Modulation Rate o The modulation rate is the rate at which signal elements are

Modulation Rate o The modulation rate is the rate at which signal elements are generated. o One way of characterizing the modulation rate is to determine the average number of transitions that occur per bit time. In general, this will depend on the exact sequence of bits being transmitted.

Problems Ø Ø Q 1. Assume a stream of ten 1’s. Encode the stream

Problems Ø Ø Q 1. Assume a stream of ten 1’s. Encode the stream using the following schemes: NRZ-I, AMI, Manchester, Differential Manchester. Q 2. For the Manchester encoded binary stream of the following, extract the clock information and the data sequence.

Problems Ø Q 3. Consider a stream of binary data consisting of a long

Problems Ø Q 3. Consider a stream of binary data consisting of a long sequence of 1 s, followed by a zero, followed by a long sequence of 1 s. Preceding bit and level is indicated within parentheses. Draw the waveforms for NRZI (high), AMI (1 as negative voltage), and pseudo-ternary (0 as negative voltage).

Problems Q 4. The AMI waveform representing a sequence 0100101011 is transmitted over a

Problems Q 4. The AMI waveform representing a sequence 0100101011 is transmitted over a noisy channel. The received waveform with a single error is shown in the following page. Locate the error with justification.

Digital data, Digital signal 34 Reference 03 -Nov-20 Data and Computer Communications, Ninth Edition

Digital data, Digital signal 34 Reference 03 -Nov-20 Data and Computer Communications, Ninth Edition by William Stallings, Chapter 5 (5. 1) Networks and Communication Department