1.01k likes | 1.22k Views
Data and Computer Communications. Chapter 5 – Signal Encoding Techniques. Eighth Edition by William Stallings Lecture slides by Lawrie Brown. Signal Encoding Techniques. Even the natives have difficulty mastering this peculiar vocabulary —The Golden Bough , Sir James George Frazer.
E N D
Data and Computer Communications Chapter 5 – Signal Encoding Techniques Eighth Edition by William Stallings Lecture slides by Lawrie Brown
Signal Encoding Techniques Even the natives have difficulty mastering this peculiar vocabulary —The Golden Bough, Sir James George Frazer
Digital Signal • Analog Signal • Digital Signal • Analog Signal Encoding Techniques • Digital data • Analog data
Digital Data, Digital Signal • Digital signal • discrete, discontinuous voltage pulses • each pulse is a signal element • binary data encoded into signal elements
Signal Encoding Techniques • Modulation: • The process of encoding source data onto a carrier signal with frequency f • Carrier signal • A continuous constant-frequency that is chosen to be compatible with the transmission media. • Baseband signal (modulating signal) • The input signal (analog or digital) • The result of modulating the carrier signal is called the modulated signal s(t)
Some Terms • Unipolar • All signal elements have the same sign. • Polar • One logic state represented by positive voltage the other by negative voltage. • data rate • Rate of data transmission in bits per second
Some Terms • duration or length of a bit • Time taken for a transmitter to emit the bit (1/R) • modulation rate • Rate at which the signal level changes. • Measured in baud = signal elements per second. • mark and space • Binary 1 and Binary 0 respectively
Interpreting Signals • need to know • timing of bits - when they start and end • signal levels • factors affecting signal interpretation • signal to noise ratio • data rate • bandwidth • encoding scheme
Data Encoding Criteria • An increase in DR increases BER • An increase in SNR decreases BER • An increase in BW allows an increase in DR • The other factor that improves performance is the encoding scheme • The encoding scheme is simply the mapping from data bits to signal elements
Encoding Schemes • Non-return to Zero-Level (NRZ-L) • Non-return to Zero Inverted (NRZI) • Bipolar -AMI • Pseudoternary • Manchester • Differential Manchester • B8ZS • HDB3
Comparing Encoding Schemes • Signal spectrum • With lack of high-frequency components, less bandwidth required • With no DC component, AC coupling via transformer possible • Concentrate power in the middle of the bandwidth • Clocking • Ease of determining beginning and end of each bit position • Not easy task. • Separate clock for synchronization .(expensive) • Synchronization based on the transmitted signal
Comparing Encoding Schemes • Error detection • Can be built into signal encoding • Signal interference and noise immunity • Performance in the presence of noise • Cost and complexity • The higher the signal rate to achieve a given data rate, the greater the cost • Some codes require signal rate greater than data rate
Nonreturn to Zero-Level (NRZ-L) • two different voltages for 0 and 1 bits • voltage constant during bit interval • no transition I.e. no return to zero voltage • such as absence of voltage for zero, constant positive voltage for one • more often, negative voltage for one value and positive for the other
Nonreturn to Zero Inverted • nonreturn 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 • transition (low to high or high to low) denotes binary 1 • no transition denotes binary 0 • example of differential encoding since have • data represented by changes rather than levels • more reliable detection of transition rather than level • easy to lose sense of polarity
NRZ Pros & Cons • Pros • easy to engineer • make good use of bandwidth • Cons • dc component • lack of synchronization capability • used for magnetic recording • not often used for signal transmission
Spectral Density of Various Signal Encoding Schemes • Most of the energy in NRZ and NRZI signals is between dc and half the bit rate. • Data rate of 9600 bps, most of the energy in the signal is concentrated between dc and 4800 Hz.
Multilevel Binary Bipolar-AMI • Use more than two levels • Bipolar-AMI • zero represented by no line signal • one represented by positive or negative pulse • one pulses alternate in polarity • no loss of sync if a long string of ones • long runs of zeros still a problem • no net dc component • lower bandwidth • easy error detection
Multilevel BinaryPseudoternary • 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 • can insert additional bits, cf ISDN • scramble data (later) • not as efficient as NRZ • each signal element only represents one bit • receiver distinguishes between three levels: +A, -A, 0 • a 3 level system could represent log23 = 1.58 bits • requires approx. 3dB more signal power for same probability of bit error
Manchester Encoding • has transition in middle of each bit period • transition serves as clock and data • low to high represents one • high to low represents zero • used by IEEE 802.3
Differential Manchester Encoding • midbit transition is clocking only • transition at start of bit period representing 0 • no transition at start of bit period representing 1 • this is a differential encoding scheme • used by IEEE 802.5
Biphase Pros and Cons • Con • at least one transition per bit time and possibly two • maximum modulation rate is twice NRZ • requires more bandwidth • Pros • synchronization on mid bit transition (self clocking) • has no dc component • has error detection • Absence of expected transition • Noise would have to invert both before and after expected transition.
Modulation/Baud Rate • Baud rate, also known as signaling rate or modulation rate: • Signal elements per second (baud). • The rate at which signal elements are transmitted. • In general, D = R/L = R/(log2M) • D = modulation rate, baud • R = data rate, bps • M = number of different signal elements = 2L • L = number of bits per signal element • For two-level signaling (binary), bit rate is equal to the baud rate.
Modulation/Baud Rate • Example: a stream of binary ones at 1 Mbps. NRZI is 1 MBaud. Manchester has 0.5 bits/signal element: Baud rate = Bit rate/Nb = 1 Mbps/0.5 = 2 MBaud
Scrambling • use scrambling to replace sequences that would produce constant voltage • these filling sequences must • produce enough transitions to sync • be recognized by receiver & replaced with original • be same length as original • design goals • have no dc component • have no long sequences of zero level line signal • have no reduction in data rate • give error detection capability
B8ZS • Bipolar With 8 Zeros Substitution • Based on bipolar-AMI • If octet of all zeros and last voltage pulse preceding was positive encode as 000+-0-+ • If octet of all zeros and last voltage pulse preceding was negative encode as 000-+0+- • Causes two violations of AMI code • Unlikely to occur as a result of noise • Receiver detects and interprets as octet of all zeros
B8ZS V: violation voltage that breaks AMI rule of encoding (opposite polarity from the previous) B: Bipolar a nonzero level voltage in accordance with the AMI rule
Scrambling Techniques • HDB3: • High Density Bipolar 3 zeros. • String of four zeros replaced with one or two pulses. • 4 zeros are encoded as either 000-, 000+, +00+, or -00- • Number of the non-zero pulses after last substitution is odd use (000V) • Number of the non-zero pulses after last substitution is even use (B00V) • Substitution rule is s.t. the 4th bit is always a code violation, and successive violations are of alternate polarity (not to introduce dc component)
Digital Data, Analog Signal • main use is public telephone system • has freq range of 300Hz to 3400Hz • use modem (modulator-demodulator) • encoding techniques • Amplitude shift keying (ASK) • Frequency shift keying (FSK) • Phase shift keying (PK)
Amplitude Shift Keying • One binary digit represented by presence of carrier, at constant amplitude • Other binary digit represented by absence of carrier • where the carrier signal is A cos(2πfct)
ASK Characteristics • Susceptible to sudden gain changes • Inefficient modulation technique • used for • On voice-grade lines, used up to 1200 bps • Used to transmit digital data over optical fiber
Amplitude Shift Keying The carrier is only one simple sine wave, the process of modulation produce s a nonperiodic composite signal
Binary Frequency-Shift Keying (BFSK) • Two binary digits represented by two different frequencies near the carrier frequency • where f1 and f2 are offset from carrier frequency fc by equal but opposite amounts
BFSK Characteristics • Less susceptible to error than ASK • On voice-grade lines, used up to 1200bps • Used for high-frequency (3 to 30 MHz) radio transmission • Can be used at higher frequencies on LANs that use coaxial cable
Multiple FSK • each signalling element represents more than one bit • more than two frequencies used • more bandwidth efficient • more susceptible to error
Multiple FSK • fi= fc+ (2i – 1 – M) fd • fc = the carrier frequency • fd = the difference frequency • M = number of different signal element = 2L • L = number of bits per signal element
Multiple FSK • To mach the data rate of the input, each signal element is hold for a period of Ts = LT • T is a bit period • One signal element encodes L bits • total bandwidth required = 2Mfd • minimum frequency separation = 2fd = 1/Ts • modulator requires a bandwidth of Wd = 2Mfd = M/Ts