SlideShare a Scribd company logo
Communication Networks
Sanjay K. Bose
Lecture Set II
Data Communications for Networks
2
A Transmission System
Transmitter: Converts digital data into signal suitable for
transmission and send the signal over the communication channel
Receiver: Receives the signal and converts it back into digital
data to be delivered to the user.
ReceiverCommunication ChannelTransmitter
Depending on the transmission medium, the data may be
encoded directly and sent to the medium (Baseband
Transmission, Line Coding) or it may be modulated on to an
analog carrier and then transmitted (Modulation)
3
Transmission Impairments
Communication Channels
• Copper wires
• Coaxial cables
• Radio
• Microwave
• Light in optical fiber
• Light in air
• Infrared (irDA)
ReceiverCommunication ChannelTransmitter
4
Encoding and Modulation Techniques
Data Encoding:
Mapping of information
into sequence of digital
signals
Modulation:
Embedding of information
into sinusoidal waveforms
Modulation Demodulation
Encoder Decoder
Baseband
Transmission
Carrier
Frequency
Modulation
Use baseband transmission (data encoding) when using a baseband
channel and carrier frequency modulation when using a bandpass channel
5
Channel Bandwidth (Baseband Channel)
ChannelX(t) = a cos(2πft) Y(t) = aA(f)cos(2πft)
A(f) Frequency Characterization of the
Channel
B0
f
A(f)
Ideal Baseband channel
All frequencies in range (0, B) are
passed with same attenuation
Flat Frequency Spectrum
Frequency Spectrum is not ideally
flat
B0
f
A(f)
Real Baseband channel
6
Channel Bandwidth (Bandpass Channel)
ChannelX(t) = a cos(2πft) Y(t) = aA(f)cos(2πft)
A(f) Frequency Characterization of the
Channel
fc+½B f
A(f)
Ideal Bandpass channel
Flat Frequency Spectrum
fc - ½B fc fc+½B f
A(f)
Real Bandpass channel
Frequency Spectrum is not ideally
flat
fc - ½B
fc
7
Why Line Coding and Modulation?
– Need to find a proper digital signal to
represent the data bits (0 and 1) in
baseband transmission Line Coding
– Need to find a proper analog
representation (i.e. modulated carrier)
of data bits for bandpass transmission
Modulation
8
Design considerations in Line Coding
• Transmitted power Low power consumption desirable
• Bit timing Transitions in signal help timing recovery
• Bandwidth efficiency Excessive transitions wastes bandwidth
• Low frequency content Try to avoid signals with high DC content
 Some channels block low frequencies (i.e. at or near DC)
 In such channels, long periods of +A or of –A causes signal to
“droop”
• Error detection Ability to detect errors helps
• Complexity/cost Low cost implementations (e.g. on a chip)
desirable
9
Some Simple Line Coding Schemes
NRZ-inverted
(differential
encoding)
1 0 1 0 1 1 0 01
Unipolar
NRZ
Bipolar
encoding
Manchester
encoding
Differential
Manchester
encoding
Polar NRZ
+ +
- -
+ + +
o o
+ + + + +
+ + +
- -
o o oo
10
Manchester Code
• “1” maps into high-to-low transition (A/2 first T/2, -A/2 last
T/2)
• “0” maps into low-to-high transition (-A/2 first T/2, A/2 last
T/2)
• Every interval has transition in middle
– Self-clocking feature
– Timing recovery easy
– Uses double the minimum bandwidth
• Simple to implement
• Used in Ethernet & other LAN standards
1 0 1 0 1 1 0 01
Manchester
Encoding
11
mB nB codes
• mB nB line code provides increased number of transitions for
improved synchronisation
• Maps block of m bits into n bits; n>m
• Manchester code is 1B2B code
• 4B 5B code used in FDDI LAN
• 8B 10B code used in Gigabit Ethernet
• 64B 66B code used in 10G Ethernet
1 0 1 0 1 1 0 01
Manchester
Encoding
(1B 2B code)
12
Differential Manchester Coding
• Differential Manchester
– Mid-bit transition is clocking only
– Transition at start of a bit period represents zero
– No transition at start of a bit period represents one
– Used by IEEE 802.5 (Token ring)
Clocking
transitions
Performance similar to Manchester Coding
13
Bipolar Code
(Alternate Mark Inversion)
• Three signal levels: {-A, 0, +A}
• “1” maps to +A or –A in alternation
• “0” maps to no pulse
– Every +pulse matched by –pulse so
little content at low frequencies
• String of 1s produces a square
wave
– Spectrum centered at with
no DC component
• Long string of 0s causes receiver
to lose timing synchronization
– Use Zero-substitution codes to
break long 0s sequence
1 0 1 0 1 1 0 01Bipolar
Encoding
Binary Data 1 1 1 1 1 1 1……
1/f
2 T
1
(2 )T
14
Pros & Cons of AMI Codes
• Pros
– Narrower bandwidth as compared with NRZ
 Consecutive 1s produce a spectrum of a square wave centered around
1/2T Hz
– Easy error detection
 deleting or adding a pulse violates the code property
 Code violation can be used to detect code substitution
• Cons
– Not as efficient as NRZ
 Each signal element only represents one bit
 But a 3 level system should have been able to represent log23 = 1.58 bits
– Receiver must distinguish between three levels instead of two
 Absence of transitions in a long sequence of alternate 1s and 0s can
results in loss in synchronization
15
Scramble Codes
• Use scrambling to replace sequences that would produce
constant voltage
– Bipolar With 8 Zeros Substitution (B8ZS)
– High Density Bipolar 3 Zeros (HDB3)
• Filling sequence
– Must produce enough transitions to sync
– Must be recognized by receiver and replace with original
– Same length as original sequence
• Design goals
– No dc component
– No long sequences of zero level line signal
– No reduction in data rate
– Error detection capability
16
Scrambling - B8ZS
• Bipolar With 8 Zeros Substitution (B8ZS)
• Based on bipolar-AMI
– No dc component, Error detection, Lower bandwidth
• Scrambling method
– 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
17
B8ZS
1st violation 2nd violation
2 violations of opposite polarities
equalizes dc component
+ +
- --
18
Scrambling - HDB3
• High Density Bipolar 3 Zeros (HDB3)
– B8ZS only replaces string of 8 zeros
– HDB3 replaces shorter strings of 4 zeros with scramble codes
• Based on bipolar-AMI
• String of four zeros replaced with one or two pulses
– each replacement causes 1 violation of AMI code
Number of Bipolar Pulses
since last substitution
Polarity of preceding Pulse Odd Even
- 000- +00+
+ 000+ -00-
19
HDB3
Number of Bipolar Pulses
since last substitution
Polarity of preceding Pulse Odd Even
- 000- +00+
+ 000+ -00-
1 s
1
2
3 4
5 6
7
8
9 10
odd even even
Odd violation -> cause even number of pulses
Even violation -> alternate polarity of next even violation
20
Modulation for Bandpass Channels
• Bandpass channels pass a range of frequencies around some
center frequency fc = ( f1 + f2)/2
– Radio channels, telephone & DSL modems
• Digital modulators embed information into waveform with
frequencies passed by bandpass channel
• Sinusoid of frequency fc is centered in middle of bandpass
channel
• Modulators embed information into a sinusoid
f1= fc – Wc/2 fc0 f2= fc + Wc/2
Bandwidth,
Wc
Baseband
, B=Wc/2
B
Modulated bandpass
21
Some Simple Modulation Schemes
• Binary Amplitude Shift Keying (ASK)
• Binary Frequency Shift Keying (FSK)
• Binary Phase Shift Keying (BPSK)
• Quadrature Amplitude Modulation (QAM)
• Quadrature Phase Shift Keying (QPSK)
More sophisticated modulation schemes (e.g. OFDM)
are used in modern communications, e.g. in wireless
networks.
22
Multiplexing
The multiplexer combines
data from n input lines and
transmits over a higher-
capacity data link.
• Simultaneous sharing of a high capacity link by many
input channels
The demultiplexer accepts the
multiplexed data stream, separates
the data according to channels, and
delivers them to the appropriate
output lines.
23
Key Points
• Multiplexing increase link utilization efficiency
through medium sharing
• Frequency division multiplexing (FDM)
– Bandwidth sharing through frequency allocation
• Time division multiplexing (TDM)
– Channel capacity sharing through time slot
allocation
 Synchronous TDM uses fixed assigned time slots
 Asynchronous TDM uses available time slots
24
Frequency Division
Each frequency channel occupies a
fraction of the transmission
bandwidth all the time
Frequency division of
transmission bandwidth into
frequency channels
25
Frequency Division Multiplexing (FDM)
• Useful bandwidth of medium exceeds required bandwidth
of signals to be transmitted
• Each signal is modulated to a different carrier frequency
• Carrier frequencies sufficiently separated so signals do not
overlap (guard bands)
– Each frequency band is referred as a channel
• Channel allocated even if no data transmission
• Signal transmitted is analogue
A CB
f
W0
C
f
B
f
A
fWu
Wu
0
0
0 Wu
Signals separated by guard bands
fit into channel bandwidth,
W>>Wu
26
Synchronous Time Division Multiplexing
Time division of transmission
bandwidth into data channels Each data channel occupies the full
transmission bandwidth for an
assigned time-slot
27
TDM System -- Frames
Tim
e
• Data are organized into frames
• Each frame contains a cycle of time slots
• In each frame, one or more slots is dedicated to each data
source
• The sequence of slots dedicated to one source, from frame to
frame, is called a channel
• The slot length equals the transmitter buffer length,
typically in units of a bit or a character
N
28
Statistical TDM
• In Synchronous TDM slots are wasted if corresponding buffer
is empty (i.e. that source has nothing to send)
• Statistical TDM allocates time slots dynamically based on
demand
• Time slots available on the TDM frame is less than the
number of input lines
• Multiplexer scans input lines and collects data until frame full
• On the receiver, the multiplexer receives a frame and
distributes the slots of data to the appropriate output buffer
• Statistical TDM has more overhead since each slot must carry
its own address information as well as data

More Related Content

What's hot (20)

PPTX
U N I T I I Baseband Demod V S H
Prathmesh Ghodke
 
DOCX
Line coding
Sazzad Hossain Fahad
 
PPTX
Sonjoy kundu line coding
Sonjoy Kundu
 
PPTX
Lecture 2 encoding
Josh Street
 
PPT
Lecture 08
Sehrish Rafiq
 
PPT
Ch04
madhu15777
 
PDF
Digital Data, Digital Signal | Scrambling Techniques
Biplap Bhattarai
 
PPT
Digital data transmission
BZU lahore
 
PPT
Line coding adcs
Sohail Kakar
 
PPT
Chapter 4 - Digital Transmission
Wayne Jones Jnr
 
PPTX
Line Coding in OFC
Priyanka Karancy
 
PDF
Data Communication & Computer network: Bipolar codes
Dr Rajiv Srivastava
 
PPTX
Encoding techniques
Goriha Naveed
 
PPTX
Digital data transmission,line coding and pulse shaping
Aayush Kumar
 
PPT
Data Encoding
Luka M G
 
PDF
Line codes
Madhumita Tamhane
 
PPTX
Line coding
Rina Ahire
 
PPT
Koding
damayanti_96
 
DOCX
EEP306: Line coding
Umang Gupta
 
U N I T I I Baseband Demod V S H
Prathmesh Ghodke
 
Sonjoy kundu line coding
Sonjoy Kundu
 
Lecture 2 encoding
Josh Street
 
Lecture 08
Sehrish Rafiq
 
Digital Data, Digital Signal | Scrambling Techniques
Biplap Bhattarai
 
Digital data transmission
BZU lahore
 
Line coding adcs
Sohail Kakar
 
Chapter 4 - Digital Transmission
Wayne Jones Jnr
 
Line Coding in OFC
Priyanka Karancy
 
Data Communication & Computer network: Bipolar codes
Dr Rajiv Srivastava
 
Encoding techniques
Goriha Naveed
 
Digital data transmission,line coding and pulse shaping
Aayush Kumar
 
Data Encoding
Luka M G
 
Line codes
Madhumita Tamhane
 
Line coding
Rina Ahire
 
Koding
damayanti_96
 
EEP306: Line coding
Umang Gupta
 

Viewers also liked (14)

PPT
Ch05 1
IDRIS USMANI
 
PPT
Carrier modulation
Mike Thethmuswe
 
PPTX
Slides3 The Communication System midterm Slides
Noctorous Jamal
 
PPT
Ch3 2 v1
bhagavanprasad
 
PPTX
Slides2 The Communication System midterm Slides
Noctorous Jamal
 
PPTX
Concept of modulation | Communication Systems
Learn By Watch
 
PPTX
Digital communications
mohammedalimahdi
 
PPTX
Satellite communication analog and digital signals
Ajay Kumar
 
PPT
Modulation
Bindu Madhavi
 
PPT
Dcn a03-analog transmission
Saurabh Daga
 
PDF
L16 usart-atmega328 p
rsamurti
 
PPT
Modulation Techniques for Mobile Radio
METHODIST COLLEGE OF ENGG & TECH
 
PPT
Graficas en 2 d y 3d matlab
Juan Ete
 
PPTX
Data communication and network Chapter -1
Zafar Ayub
 
Ch05 1
IDRIS USMANI
 
Carrier modulation
Mike Thethmuswe
 
Slides3 The Communication System midterm Slides
Noctorous Jamal
 
Ch3 2 v1
bhagavanprasad
 
Slides2 The Communication System midterm Slides
Noctorous Jamal
 
Concept of modulation | Communication Systems
Learn By Watch
 
Digital communications
mohammedalimahdi
 
Satellite communication analog and digital signals
Ajay Kumar
 
Modulation
Bindu Madhavi
 
Dcn a03-analog transmission
Saurabh Daga
 
L16 usart-atmega328 p
rsamurti
 
Modulation Techniques for Mobile Radio
METHODIST COLLEGE OF ENGG & TECH
 
Graficas en 2 d y 3d matlab
Juan Ete
 
Data communication and network Chapter -1
Zafar Ayub
 
Ad

Similar to Lecture set 2 (20)

PPTX
Chapter 2.1.pptx
Tekle12
 
PPTX
Chapter 2.1.pptx
Tekle12
 
PDF
Digital communication moon to earth .pdf
kachinthakirillawala
 
PPT
CS553_ST7_Ch05-SignalEncodingTechniques.ppt
mshanajoel6
 
PPT
L8 signal encoding techniques
Md. Shafiul Alam Sagor
 
PDF
Mediumaccesscontrol
Vk Sreedhar
 
PPT
Analog Transmission
Shiraz316
 
PPTX
DIGITAL MODULATION Techniques-slide.pptx
piyumi171
 
PPTX
Lecture 2 encoding
Josh Street
 
PPTX
digital communication and Digital pulse Modulation.pptx
maheshgramaone
 
PPTX
Presentation9
Mohd Yusak
 
PDF
Multiband Transceivers - [Chapter 3] Basic Concept of Comm. Systems
Simen Li
 
PPT
Network Components
zaisahil
 
PPT
3_pstn2.ppt
usmanEhsan8
 
PPT
Cdma
abhay karkun
 
PPT
est your knowledge of digital communication systems with our interactive quiz...
NanaAgyeman13
 
PPTX
Digital communication viva questions
ishan0019
 
PPTX
Mast content
Shakirkhan84568
 
PPTX
Chapter2 The Physical Layer(1).pptx
huanyuzhang5
 
Chapter 2.1.pptx
Tekle12
 
Chapter 2.1.pptx
Tekle12
 
Digital communication moon to earth .pdf
kachinthakirillawala
 
CS553_ST7_Ch05-SignalEncodingTechniques.ppt
mshanajoel6
 
L8 signal encoding techniques
Md. Shafiul Alam Sagor
 
Mediumaccesscontrol
Vk Sreedhar
 
Analog Transmission
Shiraz316
 
DIGITAL MODULATION Techniques-slide.pptx
piyumi171
 
Lecture 2 encoding
Josh Street
 
digital communication and Digital pulse Modulation.pptx
maheshgramaone
 
Presentation9
Mohd Yusak
 
Multiband Transceivers - [Chapter 3] Basic Concept of Comm. Systems
Simen Li
 
Network Components
zaisahil
 
3_pstn2.ppt
usmanEhsan8
 
est your knowledge of digital communication systems with our interactive quiz...
NanaAgyeman13
 
Digital communication viva questions
ishan0019
 
Mast content
Shakirkhan84568
 
Chapter2 The Physical Layer(1).pptx
huanyuzhang5
 
Ad

More from Gopi Saiteja (20)

PPT
Trees gt(1)
Gopi Saiteja
 
PPT
Topic11 sortingandsearching
Gopi Saiteja
 
PPT
Heapsort
Gopi Saiteja
 
PPT
Hashing gt1
Gopi Saiteja
 
PDF
Ee693 sept2014quizgt2
Gopi Saiteja
 
PDF
Ee693 sept2014quizgt1
Gopi Saiteja
 
PDF
Ee693 sept2014quiz1
Gopi Saiteja
 
PDF
Ee693 sept2014midsem
Gopi Saiteja
 
PDF
Ee693 questionshomework
Gopi Saiteja
 
PPT
Dynamic programming
Gopi Saiteja
 
PPT
Cs105 l15-bucket radix
Gopi Saiteja
 
PPT
Chapter11 sorting algorithmsefficiency
Gopi Saiteja
 
PDF
Answers withexplanations
Gopi Saiteja
 
PDF
Sorting
Gopi Saiteja
 
PDF
Solution(1)
Gopi Saiteja
 
PDF
Pthread
Gopi Saiteja
 
PDF
Open mp
Gopi Saiteja
 
PDF
Introduction
Gopi Saiteja
 
PDF
Cuda
Gopi Saiteja
 
PDF
Vector space interpretation_of_random_variables
Gopi Saiteja
 
Trees gt(1)
Gopi Saiteja
 
Topic11 sortingandsearching
Gopi Saiteja
 
Heapsort
Gopi Saiteja
 
Hashing gt1
Gopi Saiteja
 
Ee693 sept2014quizgt2
Gopi Saiteja
 
Ee693 sept2014quizgt1
Gopi Saiteja
 
Ee693 sept2014quiz1
Gopi Saiteja
 
Ee693 sept2014midsem
Gopi Saiteja
 
Ee693 questionshomework
Gopi Saiteja
 
Dynamic programming
Gopi Saiteja
 
Cs105 l15-bucket radix
Gopi Saiteja
 
Chapter11 sorting algorithmsefficiency
Gopi Saiteja
 
Answers withexplanations
Gopi Saiteja
 
Sorting
Gopi Saiteja
 
Solution(1)
Gopi Saiteja
 
Pthread
Gopi Saiteja
 
Open mp
Gopi Saiteja
 
Introduction
Gopi Saiteja
 
Vector space interpretation_of_random_variables
Gopi Saiteja
 

Lecture set 2

  • 1. Communication Networks Sanjay K. Bose Lecture Set II Data Communications for Networks
  • 2. 2 A Transmission System Transmitter: Converts digital data into signal suitable for transmission and send the signal over the communication channel Receiver: Receives the signal and converts it back into digital data to be delivered to the user. ReceiverCommunication ChannelTransmitter Depending on the transmission medium, the data may be encoded directly and sent to the medium (Baseband Transmission, Line Coding) or it may be modulated on to an analog carrier and then transmitted (Modulation)
  • 3. 3 Transmission Impairments Communication Channels • Copper wires • Coaxial cables • Radio • Microwave • Light in optical fiber • Light in air • Infrared (irDA) ReceiverCommunication ChannelTransmitter
  • 4. 4 Encoding and Modulation Techniques Data Encoding: Mapping of information into sequence of digital signals Modulation: Embedding of information into sinusoidal waveforms Modulation Demodulation Encoder Decoder Baseband Transmission Carrier Frequency Modulation Use baseband transmission (data encoding) when using a baseband channel and carrier frequency modulation when using a bandpass channel
  • 5. 5 Channel Bandwidth (Baseband Channel) ChannelX(t) = a cos(2πft) Y(t) = aA(f)cos(2πft) A(f) Frequency Characterization of the Channel B0 f A(f) Ideal Baseband channel All frequencies in range (0, B) are passed with same attenuation Flat Frequency Spectrum Frequency Spectrum is not ideally flat B0 f A(f) Real Baseband channel
  • 6. 6 Channel Bandwidth (Bandpass Channel) ChannelX(t) = a cos(2πft) Y(t) = aA(f)cos(2πft) A(f) Frequency Characterization of the Channel fc+½B f A(f) Ideal Bandpass channel Flat Frequency Spectrum fc - ½B fc fc+½B f A(f) Real Bandpass channel Frequency Spectrum is not ideally flat fc - ½B fc
  • 7. 7 Why Line Coding and Modulation? – Need to find a proper digital signal to represent the data bits (0 and 1) in baseband transmission Line Coding – Need to find a proper analog representation (i.e. modulated carrier) of data bits for bandpass transmission Modulation
  • 8. 8 Design considerations in Line Coding • Transmitted power Low power consumption desirable • Bit timing Transitions in signal help timing recovery • Bandwidth efficiency Excessive transitions wastes bandwidth • Low frequency content Try to avoid signals with high DC content  Some channels block low frequencies (i.e. at or near DC)  In such channels, long periods of +A or of –A causes signal to “droop” • Error detection Ability to detect errors helps • Complexity/cost Low cost implementations (e.g. on a chip) desirable
  • 9. 9 Some Simple Line Coding Schemes NRZ-inverted (differential encoding) 1 0 1 0 1 1 0 01 Unipolar NRZ Bipolar encoding Manchester encoding Differential Manchester encoding Polar NRZ + + - - + + + o o + + + + + + + + - - o o oo
  • 10. 10 Manchester Code • “1” maps into high-to-low transition (A/2 first T/2, -A/2 last T/2) • “0” maps into low-to-high transition (-A/2 first T/2, A/2 last T/2) • Every interval has transition in middle – Self-clocking feature – Timing recovery easy – Uses double the minimum bandwidth • Simple to implement • Used in Ethernet & other LAN standards 1 0 1 0 1 1 0 01 Manchester Encoding
  • 11. 11 mB nB codes • mB nB line code provides increased number of transitions for improved synchronisation • Maps block of m bits into n bits; n>m • Manchester code is 1B2B code • 4B 5B code used in FDDI LAN • 8B 10B code used in Gigabit Ethernet • 64B 66B code used in 10G Ethernet 1 0 1 0 1 1 0 01 Manchester Encoding (1B 2B code)
  • 12. 12 Differential Manchester Coding • Differential Manchester – Mid-bit transition is clocking only – Transition at start of a bit period represents zero – No transition at start of a bit period represents one – Used by IEEE 802.5 (Token ring) Clocking transitions Performance similar to Manchester Coding
  • 13. 13 Bipolar Code (Alternate Mark Inversion) • Three signal levels: {-A, 0, +A} • “1” maps to +A or –A in alternation • “0” maps to no pulse – Every +pulse matched by –pulse so little content at low frequencies • String of 1s produces a square wave – Spectrum centered at with no DC component • Long string of 0s causes receiver to lose timing synchronization – Use Zero-substitution codes to break long 0s sequence 1 0 1 0 1 1 0 01Bipolar Encoding Binary Data 1 1 1 1 1 1 1…… 1/f 2 T 1 (2 )T
  • 14. 14 Pros & Cons of AMI Codes • Pros – Narrower bandwidth as compared with NRZ  Consecutive 1s produce a spectrum of a square wave centered around 1/2T Hz – Easy error detection  deleting or adding a pulse violates the code property  Code violation can be used to detect code substitution • Cons – Not as efficient as NRZ  Each signal element only represents one bit  But a 3 level system should have been able to represent log23 = 1.58 bits – Receiver must distinguish between three levels instead of two  Absence of transitions in a long sequence of alternate 1s and 0s can results in loss in synchronization
  • 15. 15 Scramble Codes • Use scrambling to replace sequences that would produce constant voltage – Bipolar With 8 Zeros Substitution (B8ZS) – High Density Bipolar 3 Zeros (HDB3) • Filling sequence – Must produce enough transitions to sync – Must be recognized by receiver and replace with original – Same length as original sequence • Design goals – No dc component – No long sequences of zero level line signal – No reduction in data rate – Error detection capability
  • 16. 16 Scrambling - B8ZS • Bipolar With 8 Zeros Substitution (B8ZS) • Based on bipolar-AMI – No dc component, Error detection, Lower bandwidth • Scrambling method – 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
  • 17. 17 B8ZS 1st violation 2nd violation 2 violations of opposite polarities equalizes dc component + + - --
  • 18. 18 Scrambling - HDB3 • High Density Bipolar 3 Zeros (HDB3) – B8ZS only replaces string of 8 zeros – HDB3 replaces shorter strings of 4 zeros with scramble codes • Based on bipolar-AMI • String of four zeros replaced with one or two pulses – each replacement causes 1 violation of AMI code Number of Bipolar Pulses since last substitution Polarity of preceding Pulse Odd Even - 000- +00+ + 000+ -00-
  • 19. 19 HDB3 Number of Bipolar Pulses since last substitution Polarity of preceding Pulse Odd Even - 000- +00+ + 000+ -00- 1 s 1 2 3 4 5 6 7 8 9 10 odd even even Odd violation -> cause even number of pulses Even violation -> alternate polarity of next even violation
  • 20. 20 Modulation for Bandpass Channels • Bandpass channels pass a range of frequencies around some center frequency fc = ( f1 + f2)/2 – Radio channels, telephone & DSL modems • Digital modulators embed information into waveform with frequencies passed by bandpass channel • Sinusoid of frequency fc is centered in middle of bandpass channel • Modulators embed information into a sinusoid f1= fc – Wc/2 fc0 f2= fc + Wc/2 Bandwidth, Wc Baseband , B=Wc/2 B Modulated bandpass
  • 21. 21 Some Simple Modulation Schemes • Binary Amplitude Shift Keying (ASK) • Binary Frequency Shift Keying (FSK) • Binary Phase Shift Keying (BPSK) • Quadrature Amplitude Modulation (QAM) • Quadrature Phase Shift Keying (QPSK) More sophisticated modulation schemes (e.g. OFDM) are used in modern communications, e.g. in wireless networks.
  • 22. 22 Multiplexing The multiplexer combines data from n input lines and transmits over a higher- capacity data link. • Simultaneous sharing of a high capacity link by many input channels The demultiplexer accepts the multiplexed data stream, separates the data according to channels, and delivers them to the appropriate output lines.
  • 23. 23 Key Points • Multiplexing increase link utilization efficiency through medium sharing • Frequency division multiplexing (FDM) – Bandwidth sharing through frequency allocation • Time division multiplexing (TDM) – Channel capacity sharing through time slot allocation  Synchronous TDM uses fixed assigned time slots  Asynchronous TDM uses available time slots
  • 24. 24 Frequency Division Each frequency channel occupies a fraction of the transmission bandwidth all the time Frequency division of transmission bandwidth into frequency channels
  • 25. 25 Frequency Division Multiplexing (FDM) • Useful bandwidth of medium exceeds required bandwidth of signals to be transmitted • Each signal is modulated to a different carrier frequency • Carrier frequencies sufficiently separated so signals do not overlap (guard bands) – Each frequency band is referred as a channel • Channel allocated even if no data transmission • Signal transmitted is analogue A CB f W0 C f B f A fWu Wu 0 0 0 Wu Signals separated by guard bands fit into channel bandwidth, W>>Wu
  • 26. 26 Synchronous Time Division Multiplexing Time division of transmission bandwidth into data channels Each data channel occupies the full transmission bandwidth for an assigned time-slot
  • 27. 27 TDM System -- Frames Tim e • Data are organized into frames • Each frame contains a cycle of time slots • In each frame, one or more slots is dedicated to each data source • The sequence of slots dedicated to one source, from frame to frame, is called a channel • The slot length equals the transmitter buffer length, typically in units of a bit or a character N
  • 28. 28 Statistical TDM • In Synchronous TDM slots are wasted if corresponding buffer is empty (i.e. that source has nothing to send) • Statistical TDM allocates time slots dynamically based on demand • Time slots available on the TDM frame is less than the number of input lines • Multiplexer scans input lines and collects data until frame full • On the receiver, the multiplexer receives a frame and distributes the slots of data to the appropriate output buffer • Statistical TDM has more overhead since each slot must carry its own address information as well as data