530 likes | 703 Views
Chapter 1.4 Communications Theory. Telecommunications Concepts. Data transmission fundamentals Parallel vs. serial transmission Synchronous vs. asynchronous communications Analog vs. digital communications Shannon’s theorem Eye diagrams Transmission error correction Redundant encoding
E N D
Chapter 1.4 Communications Theory TelecommunicationsConcepts
Data transmission fundamentals Parallel vs. serial transmission Synchronous vs. asynchronous communications Analog vs. digital communications Shannon’s theorem Eye diagrams Transmission error correction Redundant encoding Sliding window error correction Encoding and modulation Contents
Data transmission fundamentals Parallel vs. serial transmission Synchronous vs. asynchronous communications Analog vs. digital communications Shannon’s theorem Eye diagrams Transmission error correction Redundant encoding Sliding window error correction Encoding and modulation Contents
Clock Parallel Transmission Disadvantages : Differences in propagation delay Cost of multiple communication channels
Serial Data Clock Serial Transmission
Serial Data + Clock Serial Transmissionwith clock/data multiplexing
Data transmission fundamentals Parallel vs. serial transmission Synchronous vs. asynchronous communications Analog vs. digital communications Shannon’s theorem Eye diagrams Transmission error correction Redundant encoding Sliding window error correction Encoding and modulation Contents
Clock + Serial Data Synchronous Transmission DTE DTE • Data is carried by the clock signal Rx clock extracted by DCE DCE DCE • Tx clock in DTE or DCE Modem Modem
1 1 0 0 1 Clock Synchronous Transmission
Serial Data + Clock synchronization Asynchronous Transmission The DCE’s just transmit data bits. Provisions for Clock synchronization need to be included in data DTE DTE DCE DCE Modem Modem
Start-stop synchronization clock Designed for electro-mechanical terminals Still used in modern electronic terminals !
DTE DTE μP μP DCE DCE Modem Modem External PC modems Most external PC modems use an asynchronous link between the PC and the modem and a synchronous link between the modems. The modem contains a microcomputer that buffers the data Asynchronous links(serial port or USB) Synchronous link
Data transmission fundamentals Parallel vs. serial transmission Synchronous vs. asynchronous communications Analog vs. digital communications Shannon’s theorem Eye diagrams Transmission error correction Redundant encoding Sliding window error correction Encoding and modulation Contents
Digital Data Communications 011001 TX Analog communication channel 011001 RX
Transmitter (Tx) Input : stream of binary numbers Output : stream of analog signals suitable for transmission over long distances Receiver (Rx) Input : stream of analog signals generated by transmitter distorted by transmission channel Compares each input signal with all signals which could have been transmitted and decides from which one the input is a distorted image. Output : stream of binary numbers, preferably identical to the input of the transmitter Encoding and Decodingdigital signals
Data transmission fundamentals Parallel vs. serial transmission Synchronous vs. asynchronous communications Analog vs. digital communications Shannon’s theorem Eye diagrams Transmission error correction Redundant encoding Sliding window error correction Encoding and modulation Contents
Bandwidth Difference between highest and lowest frequency of sine waves which can be transmitted Number of possible state changes per second Signal to Noise ratio S/N = (signal power) / (noise power) S/N determines number of distinct states which can be distinguished within a given observation interval Analog Transmission Channel Characterized by : Received power Frequency
t t +8V 11 +6V 1 +4V 10 +8V +2V 0V -2V 01 0 -4V 0V -6V 00 -8V -8V Binary vs. Multi-bit encoding Noise margin = +/- 4 V Noise margin = +/- 2 V Modulation rate = 1/t (in Baud) Data rate = (1/t) Log 2 n (in b/s)
Examples: Telephone channel, B = 3000 Hz, S/N = 1000 DataRate <= 30 000 b/s Optical fiber B = 25 THz, S/N >= 1 DataRate <= 25 Tb/s Shannon’s Theorem DataRate <= B.Log2(1+S/N) B : Channel Bandwidth (in Hertz) S/N : Signal to Noise ratio
Data transmission fundamentals Parallel vs. serial transmission Synchronous vs. asynchronous communications Analog vs. digital communications Shannon’s theorem Eye diagrams Transmission error correction Redundant encoding Sliding window error correction Encoding and modulation Contents
Eye Diagrams 1 0 1 t Clock The incoming waveforms are displayed on an oscilloscope, synchronized by the recovered clock
Multi-bit eye diagrams Modern communication channels use phase and amplitude shifts, best displayed in polar eye diagrams Good signal/noise ratio Poor signal/noise ratio
Communications in degraded mode Same baud rate Half bit/s rate
Data transmission fundamentals Parallel vs. serial transmission Synchronous vs. asynchronous communications Analog vs. digital communications Shannon’s theorem Eye diagrams Transmission error correction Redundant encoding Sliding window error correction Encoding and modulation Contents
Error detection and correction k + r <= LMax k bits r bits, f(inf.mess.) 2 k 2 k+r Length of messages : Informative message: Redundancy: # Messages send: # Messages received: Hamming Distance (X-Y): i=1 |Xi-Yi| k+r
Bank account number structure Bank identification : 3 digits Account number : 7 digits Error detection : 2 digits The ten first digits modulo 97 are appended for error detection purposes. This algorithm allows detection of all single digit errors Example : 140-0571659-08. 1400571659 MOD 97 = 08 140-0671659-08. 1400671659 MOD 97 = 01 Error Detection ExampleBelgian Bank Account Numbers
01 11 Hd = 2 00 11 00 10 Error detecting codes k = 1; r = 1; red.bit = inf.bit. Single bit errors are detected if hamming distance between legitimate messages > 1. No guessing is possible as erroneous messages are at equal distances from several correct ones.
011 111 Hd = 3 000 111 010 110 001 101 000 100 Error correcting codes k = 1; r = 2; red.bits = inf.bit. Hamming distance between legitimate messages > 2. This implies that each erroneous message is closer to one correct message than to any other.
redundancy Overhead information 1 <= 4 <= 11 <= 26 <= 57 <= 120 <= 247 2 3 4 5 6 7 8 200 % 75 % 36 % 19 % 11 % 6 % 3 % Error correcting codes Required Overhead for single bit error correction k+r < 2r
Error correction with a 4+3 bit code 2 0000000 1111100 1 1111111 0001011 3 4 1110100 0010110 4 3 3 1101001 0011101 4 6 1100010 0100111 1011000 0101100 4 1010011 0110001 7 1001110 0111010 1000101 The three redundant bits are a function of the four data bits
Error detecting codes Correction by retransmission of erroneous blocks If few errors, very low overhead Most common approach to error correction in data communications Error correcting codes Very high overhead with short data blocks Longer data blocks can have multiple errors Used when retransmission impossible or impractical Also used when error rate rather high. Error correcting codes for long blocks, with multiple errors exist and are used (trellis encoding) Error Correction
Data transmission fundamentals Parallel vs. serial transmission Synchronous vs. asynchronous communications Analog vs. digital communications Shannon’s theorem Eye diagrams Transmission error correction Redundant encoding Sliding window error correction Encoding and modulation Contents
Error Correction byRetransmission Time-out 1 2 3 4 4 A Data Ack B time
Error Correction byRetransmission Inefficient unless round-trip delay << transmission time of a datablock 2 3 4 1 A Data B Ack time
Error Correctionwith sliding window Data blocks in sliding window can be transmitted without waiting for an acknowledgment. Receiving acknowledgments pushes window forward. 1 2 3 4 5 6 7 8 A Data B Ack 1 2 3 4 5 6 7 8 time
Error Correctionwith sliding window Data blocks in sliding window can be transmitted without waiting for an acknowledgment. Receiving acknowledgments pushes window forward. 1 2 3 4 5 6 7 8 A Data B Ack time
Error Correctionwith sliding window Data blocks in sliding window can be transmitted without waiting for an acknowledgment. Receiving acknowledgments pushes window forward. 1 2 3 4 5 6 7 8 A Data B Ack 1 time
Error Correctionwith sliding window Data blocks in sliding window can be transmitted without waiting for an acknowledgment. Receiving acknowledgments pushes window forward. 1 2 3 4 5 6 7 8 A Data B Ack 1 2 time
Error Correctionwith sliding window Data blocks in sliding window can be transmitted without waiting for an acknowledgment. Receiving acknowledgments pushes window forward. 1 2 3 4 5 6 7 8 A Data B Ack 1 2 time
Error Correctionwith sliding window Data blocks in sliding window can be transmitted without waiting for an acknowledgment. Receiving acknowledgments pushes window forward. Time-out 6 7 8 1 2 3 4 5 A Data B Ack 1 2 4 time
Error Correctionwith sliding window Data blocks in sliding window can be transmitted without waiting for an acknowledgment. Receiving acknowledgments pushes window forward. Time-out 6 7 8 1 2 3 4 5 A Data B Ack 1 2 4 5 time
Error Correctionwith sliding window Data blocks in sliding window can be transmitted without waiting for an acknowledgment. Receiving acknowledgments pushes window forward. 1 2 3 4 5 6 3 4 5 A Data Go Back n window management B Ack 1 2 4 5 time
Error Correctionwith sliding window Data blocks in sliding window can be transmitted without waiting for an acknowledgment. Receiving acknowledgments pushes window forward. 1 2 3 4 5 6 3 4 5 A Data B Ack 3 4 1 2 4 5 time
Error Correctionwith sliding window Data blocks in sliding window can be transmitted without waiting for an acknowledgment. Receiving acknowledgments pushes window forward. 1 2 3 4 5 8 3 6 7 A Data Buffering required in receiver B Ack 1 2 4 5 time
Data transmission fundamentals Parallel vs. serial transmission Synchronous vs. asynchronous communications Analog vs. digital communications Shannon’s theorem Eye diagrams Transmission error correction Redundant encoding Sliding window error correction Encoding and modulation Contents
1 R ( ) lim v ( t ). v ( t ). dt S ( ) R ( ). cos( ). d Characterization of random signals* Autocorrelation function Fourier Spectrum * Students with inadequate mathematical background may skip this slide
v 0 1 0 1 0 0 1 1 1 a Power 1 t 0 0.5 Freq 0 0 1 2 3 Straight Binary Code • Frequency spectrum : • Maximum at f = 0 • important DC component due to voltage asymetry • No energy at clock frequency • Amplitude of maxima decreases as 1/f
Power 1 0.5 Freq 0 0 1 2 3 4 Manchester Code v 0 1 0 1 0 0 1 1 1 t • Frequency spectrum : • Nothing at f = 0 • High energy at clock frequency • Amplitude of maxima decreases as 1/f
Asymptotic Behavior of Spectra Both studied codes have energy spectra decreasing as 1/f2 , meaning that the voltage or current spectra decrease as 1/f. This is a consequence of the instantaneous state transitions 1 å w sin n t n 1 , 3 , 5 ,
1 å w cos n t 2 n 1 , 3 , 5 , Asymptotic Behavior of Spectra The smoother the waveforms are, the lesser energy will be found in the spectrum at higher frequencies In actual transmission systems, rounded waveforms, such as parts of sine waves will be used.