Data Communication and Networks Lecture 2a Data Transmission and Encoding Concepts September 11,...
-
date post
20-Dec-2015 -
Category
Documents
-
view
220 -
download
0
Transcript of Data Communication and Networks Lecture 2a Data Transmission and Encoding Concepts September 11,...
![Page 1: Data Communication and Networks Lecture 2a Data Transmission and Encoding Concepts September 11, 2003 Joseph Conron Computer Science Department New York.](https://reader035.fdocuments.net/reader035/viewer/2022062516/56649d415503460f94a1b3a2/html5/thumbnails/1.jpg)
Data Communication and Networks
Lecture 2a
Data Transmission and Encoding Concepts
September 11, 2003
Joseph Conron
Computer Science Department
New York University
![Page 2: Data Communication and Networks Lecture 2a Data Transmission and Encoding Concepts September 11, 2003 Joseph Conron Computer Science Department New York.](https://reader035.fdocuments.net/reader035/viewer/2022062516/56649d415503460f94a1b3a2/html5/thumbnails/2.jpg)
Simplified Data Communications Model
![Page 3: Data Communication and Networks Lecture 2a Data Transmission and Encoding Concepts September 11, 2003 Joseph Conron Computer Science Department New York.](https://reader035.fdocuments.net/reader035/viewer/2022062516/56649d415503460f94a1b3a2/html5/thumbnails/3.jpg)
Analog and Digital Data TransmissionData
Entities that convey meaning
Signals Electric or electromagnetic representations of
data
Transmission Communication of data by propagation and
processing of signals
![Page 4: Data Communication and Networks Lecture 2a Data Transmission and Encoding Concepts September 11, 2003 Joseph Conron Computer Science Department New York.](https://reader035.fdocuments.net/reader035/viewer/2022062516/56649d415503460f94a1b3a2/html5/thumbnails/4.jpg)
DataAnalog
Continuous values within some interval e.g. sound, video
Digital Discrete values e.g. text, integers
![Page 5: Data Communication and Networks Lecture 2a Data Transmission and Encoding Concepts September 11, 2003 Joseph Conron Computer Science Department New York.](https://reader035.fdocuments.net/reader035/viewer/2022062516/56649d415503460f94a1b3a2/html5/thumbnails/5.jpg)
SignalsMeans by which data are propagatedAnalog
Continuously variable Various media
wire, fiber optic, space
Speech bandwidth 100Hz to 7kHz Telephone bandwidth 300Hz to 3400Hz Video bandwidth 4MHz
Digital Use two DC components
![Page 6: Data Communication and Networks Lecture 2a Data Transmission and Encoding Concepts September 11, 2003 Joseph Conron Computer Science Department New York.](https://reader035.fdocuments.net/reader035/viewer/2022062516/56649d415503460f94a1b3a2/html5/thumbnails/6.jpg)
Data and SignalsUsually use digital signals for digital data
and analog signals for analog dataCan use analog signal to carry digital data
Modem
Can use digital signal to carry analog data Compact Disc audio
![Page 7: Data Communication and Networks Lecture 2a Data Transmission and Encoding Concepts September 11, 2003 Joseph Conron Computer Science Department New York.](https://reader035.fdocuments.net/reader035/viewer/2022062516/56649d415503460f94a1b3a2/html5/thumbnails/7.jpg)
Analog Signals Carrying Analog and Digital Data
![Page 8: Data Communication and Networks Lecture 2a Data Transmission and Encoding Concepts September 11, 2003 Joseph Conron Computer Science Department New York.](https://reader035.fdocuments.net/reader035/viewer/2022062516/56649d415503460f94a1b3a2/html5/thumbnails/8.jpg)
Digital Signals Carrying Analog and Digital Data
![Page 9: Data Communication and Networks Lecture 2a Data Transmission and Encoding Concepts September 11, 2003 Joseph Conron Computer Science Department New York.](https://reader035.fdocuments.net/reader035/viewer/2022062516/56649d415503460f94a1b3a2/html5/thumbnails/9.jpg)
Analog TransmissionAnalog signal transmitted without regard
to contentMay be analog or digital dataAttenuated over distance Use amplifiers to boost signalAlso amplifies noise
![Page 10: Data Communication and Networks Lecture 2a Data Transmission and Encoding Concepts September 11, 2003 Joseph Conron Computer Science Department New York.](https://reader035.fdocuments.net/reader035/viewer/2022062516/56649d415503460f94a1b3a2/html5/thumbnails/10.jpg)
Digital TransmissionConcerned with contentIntegrity endangered by noise,
attenuation etc.Repeaters usedRepeater receives signalExtracts bit patternRetransmitsAttenuation is overcomeNoise is not amplified
![Page 11: Data Communication and Networks Lecture 2a Data Transmission and Encoding Concepts September 11, 2003 Joseph Conron Computer Science Department New York.](https://reader035.fdocuments.net/reader035/viewer/2022062516/56649d415503460f94a1b3a2/html5/thumbnails/11.jpg)
Advantages of Digital Transmission Digital technology
Low cost LSI/VLSI technology Data integrity
Longer distances over lower quality lines Capacity utilization
High bandwidth links economical High degree of multiplexing easier with digital
techniques Security & Privacy
Encryption Integration
Can treat analog and digital data similarly
![Page 12: Data Communication and Networks Lecture 2a Data Transmission and Encoding Concepts September 11, 2003 Joseph Conron Computer Science Department New York.](https://reader035.fdocuments.net/reader035/viewer/2022062516/56649d415503460f94a1b3a2/html5/thumbnails/12.jpg)
Transmission ImpairmentsSignal received may differ from signal
transmittedAnalog - degradation of signal qualityDigital - bit errorsCaused by
Attenuation and attenuation distortion Delay distortion Noise
![Page 13: Data Communication and Networks Lecture 2a Data Transmission and Encoding Concepts September 11, 2003 Joseph Conron Computer Science Department New York.](https://reader035.fdocuments.net/reader035/viewer/2022062516/56649d415503460f94a1b3a2/html5/thumbnails/13.jpg)
Encoding TechniquesDigital data, digital signalAnalog data, digital signalDigital data, analog signalAnalog data, analog signal
![Page 14: Data Communication and Networks Lecture 2a Data Transmission and Encoding Concepts September 11, 2003 Joseph Conron Computer Science Department New York.](https://reader035.fdocuments.net/reader035/viewer/2022062516/56649d415503460f94a1b3a2/html5/thumbnails/14.jpg)
Digital Data, Digital SignalDigital signal
Discrete, discontinuous voltage pulses Each pulse is a signal element Binary data encoded into signal elements
![Page 15: Data Communication and Networks Lecture 2a Data Transmission and Encoding Concepts September 11, 2003 Joseph Conron Computer Science Department New York.](https://reader035.fdocuments.net/reader035/viewer/2022062516/56649d415503460f94a1b3a2/html5/thumbnails/15.jpg)
Interpreting SignalsNeed to know
Timing of bits - when they start and end Signal levels
Factors affecting successful interpreting of signals Signal to noise ratio Data rate Bandwidth
![Page 16: Data Communication and Networks Lecture 2a Data Transmission and Encoding Concepts September 11, 2003 Joseph Conron Computer Science Department New York.](https://reader035.fdocuments.net/reader035/viewer/2022062516/56649d415503460f94a1b3a2/html5/thumbnails/16.jpg)
Encoding SchemesNonreturn to Zero-Level (NRZ-L)Nonreturn to Zero Inverted (NRZI)Bipolar -AMIPseudoternaryManchesterDifferential ManchesterB8ZSHDB3
![Page 17: Data Communication and Networks Lecture 2a Data Transmission and Encoding Concepts September 11, 2003 Joseph Conron Computer Science Department New York.](https://reader035.fdocuments.net/reader035/viewer/2022062516/56649d415503460f94a1b3a2/html5/thumbnails/17.jpg)
Nonreturn to Zero-Level (NRZ-L)Two different voltages for 0 and 1 bitsVoltage constant during bit interval
no transition I.e. no return to zero voltage
e.g. Absence of voltage for zero, constant positive voltage for one
More often, negative voltage for one value and positive for the other
This is NRZ-L
![Page 18: Data Communication and Networks Lecture 2a Data Transmission and Encoding Concepts September 11, 2003 Joseph Conron Computer Science Department New York.](https://reader035.fdocuments.net/reader035/viewer/2022062516/56649d415503460f94a1b3a2/html5/thumbnails/18.jpg)
Nonreturn to Zero InvertedNonreturn to zero inverted on onesConstant voltage pulse for duration of bitData encoded as presence or absence of
signal transition at beginning of bit timeTransition (low to high or high to low)
denotes a binary 1No transition denotes binary 0An example of differential encoding
![Page 19: Data Communication and Networks Lecture 2a Data Transmission and Encoding Concepts September 11, 2003 Joseph Conron Computer Science Department New York.](https://reader035.fdocuments.net/reader035/viewer/2022062516/56649d415503460f94a1b3a2/html5/thumbnails/19.jpg)
NRZ
![Page 20: Data Communication and Networks Lecture 2a Data Transmission and Encoding Concepts September 11, 2003 Joseph Conron Computer Science Department New York.](https://reader035.fdocuments.net/reader035/viewer/2022062516/56649d415503460f94a1b3a2/html5/thumbnails/20.jpg)
Differential EncodingData represented by changes rather than
levelsMore reliable detection of transition rather
than levelIn complex transmission layouts it is easy
to lose sense of polarity
![Page 21: Data Communication and Networks Lecture 2a Data Transmission and Encoding Concepts September 11, 2003 Joseph Conron Computer Science Department New York.](https://reader035.fdocuments.net/reader035/viewer/2022062516/56649d415503460f94a1b3a2/html5/thumbnails/21.jpg)
NRZ pros and consPros
Easy to engineer Make good use of bandwidth
Cons dc component Lack of synchronization capability
Used for magnetic recordingNot often used for signal transmission
![Page 22: Data Communication and Networks Lecture 2a Data Transmission and Encoding Concepts September 11, 2003 Joseph Conron Computer Science Department New York.](https://reader035.fdocuments.net/reader035/viewer/2022062516/56649d415503460f94a1b3a2/html5/thumbnails/22.jpg)
Biphase Manchester
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 Midbit transition is clocking only Transition at start of a bit period represents zero No transition at start of a bit period represents one Note: this is a differential encoding scheme Used by IEEE 802.5
![Page 23: Data Communication and Networks Lecture 2a Data Transmission and Encoding Concepts September 11, 2003 Joseph Conron Computer Science Department New York.](https://reader035.fdocuments.net/reader035/viewer/2022062516/56649d415503460f94a1b3a2/html5/thumbnails/23.jpg)
Biphase Pros and ConsCon
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) No dc component Error detection
Absence of expected transition
![Page 24: Data Communication and Networks Lecture 2a Data Transmission and Encoding Concepts September 11, 2003 Joseph Conron Computer Science Department New York.](https://reader035.fdocuments.net/reader035/viewer/2022062516/56649d415503460f94a1b3a2/html5/thumbnails/24.jpg)
Asynchronous and Synchronous TransmissionTiming problems require a mechanism to
synchronize the transmitter and receiverTwo solutions
Asynchronous Synchronous
![Page 25: Data Communication and Networks Lecture 2a Data Transmission and Encoding Concepts September 11, 2003 Joseph Conron Computer Science Department New York.](https://reader035.fdocuments.net/reader035/viewer/2022062516/56649d415503460f94a1b3a2/html5/thumbnails/25.jpg)
AsynchronousData transmitted on character at a time
5 to 8 bits
Timing only needs maintaining within each character
Resync with each character
![Page 26: Data Communication and Networks Lecture 2a Data Transmission and Encoding Concepts September 11, 2003 Joseph Conron Computer Science Department New York.](https://reader035.fdocuments.net/reader035/viewer/2022062516/56649d415503460f94a1b3a2/html5/thumbnails/26.jpg)
Asynchronous (diagram)
![Page 27: Data Communication and Networks Lecture 2a Data Transmission and Encoding Concepts September 11, 2003 Joseph Conron Computer Science Department New York.](https://reader035.fdocuments.net/reader035/viewer/2022062516/56649d415503460f94a1b3a2/html5/thumbnails/27.jpg)
Asynchronous - Behavior In a steady stream, interval between
characters is uniform (length of stop element) In idle state, receiver looks for transition 1 to 0Then samples next seven intervals (char
length)Then looks for next 1 to 0 for next char
SimpleCheapOverhead of 2 or 3 bits per char (~20%)Good for data with large gaps (keyboard)
![Page 28: Data Communication and Networks Lecture 2a Data Transmission and Encoding Concepts September 11, 2003 Joseph Conron Computer Science Department New York.](https://reader035.fdocuments.net/reader035/viewer/2022062516/56649d415503460f94a1b3a2/html5/thumbnails/28.jpg)
Synchronous - Bit LevelBlock of data transmitted without start or
stop bitsClocks must be synchronizedCan use separate clock line
Good over short distances Subject to impairments
Embed clock signal in data Manchester encoding Carrier frequency (analog)
![Page 29: Data Communication and Networks Lecture 2a Data Transmission and Encoding Concepts September 11, 2003 Joseph Conron Computer Science Department New York.](https://reader035.fdocuments.net/reader035/viewer/2022062516/56649d415503460f94a1b3a2/html5/thumbnails/29.jpg)
Synchronous - Block LevelNeed to indicate start and end of blockUse preamble and postamble
e.g. series of SYN (hex 16) characters e.g. block of 11111111 patterns ending in
11111110
More efficient (lower overhead) than async
![Page 30: Data Communication and Networks Lecture 2a Data Transmission and Encoding Concepts September 11, 2003 Joseph Conron Computer Science Department New York.](https://reader035.fdocuments.net/reader035/viewer/2022062516/56649d415503460f94a1b3a2/html5/thumbnails/30.jpg)
Synchronous (diagram)