You are on page 1of 25

Lecture

Data Communication & Networks 07


Multiplexing & Synchronization

Muhammad Yousaf
Multiplexing:

Multiplexing:
Combining data from n-inputs then transmitting over a
single higher capacity link
Demultiplexing:
Separating multiplexed data and delivering to the
appropriate output lines

myousaf@ymail.com 2
Multiplexing: (Example Scenario)

(Source: http://en.wikipedia.org/wiki/File:Multipexing_demultiplexing_scheme_en.svg)
myousaf@ymail.com 3
Multiplexing Types:
Data can be multiplexed in a variety of manners
Most prominent of them are:
Frequency Division Multiplexing (FDM)
Wavelength Division Multiplexing(WDM)
Time Division Multiplexing (TDM)
Statistical TDM (STDM)
Also available:
Space Division Multiplexing (SDM)
Code Division Multiplexing (CDM)
Frequency Hopping Spread Spectrum (FHSS)
Direct Sequence Spread Spectrum (DSSS)

myousaf@ymail.com 4
FDM:
Bandwidth available on the medium is much greater as
compared to that required by the individual channel
Want to send number of individual channels on a single
medium
Each signal is modulated with a different carrier frequency
Guard band is used to avoid intermodulation noise
Channel remains allocated, even if users are not sending
data
Familiar example is broadcast and cable TV

myousaf@ymail.com 5
FDM: cont…

Channel-1

Channel-2

Guard band Channel-3

Channel-4

Channel-5

time
myousaf@ymail.com 6
FDM – Multiplexing:

myousaf@ymail.com 7
FDM – Spectrum:

myousaf@ymail.com 8
FDM – Demultiplexing:

myousaf@ymail.com 9
TDM:
Available data rate on medium is much greater as
compared to that required by the individual channel
Multiple digital signals are interleaved in time
Time slots are pre-assigned to the sources
Slots remain allocated even if users don’t send data
Time slots are not required to be evenly distributed
amongst the sources
Long distance carrier systems often use it

myousaf@ymail.com 10
TDM: cont…

Ch-1 Ch-3 Ch-2 Ch-1


Ch-3 Ch-2 Ch-1

time
myousaf@ymail.com 11
TDM – Multiplexing:

myousaf@ymail.com 12
TDM – Multiplexing:

(Source: http://en.wikipedia.org/wiki/File:Telephony_multiplexer_system.gif)

myousaf@ymail.com 13
TDM – Demultiplexing:

myousaf@ymail.com 14
Statistical TDM:
In TDM unused slots are wasted
Now, idea is not to allocate time slots permanently
Allot time slots on demand only
Multiplexer scans input lines, collects data and
allocate time slots dynamically
Can accommodate more number of channels than
available data rate of medium
More efficient utilization of resources
In peak-hours users can experience the network-
busy

myousaf@ymail.com 15
Statistical TDM Frame Formats

myousaf@ymail.com 16
Synchronization

myousaf@ymail.com 17
Synchronization:
Timing problems require a mechanism to
synchronize the transmitter and receiver
Two solutions
Asynchronous Transmission
Synchronous Transmission

myousaf@ymail.com 18
Asynchronous transmission:
Character-wise transmission
Data are transmitted one character at a time
So, synchronization is needed to be maintained
within each character separately
Start of the byte is indicated with a start-bit
End of the byte is indicated with the stop-bit

myousaf@ymail.com 19
Asynchronous transmission: cont…

myousaf@ymail.com 20
Asynchronous transmission: cont…
In idle state, receiver looks for transition from 1 to 0
Then samples next 8-bits for the character value
Then looks for the stop-bit
Voltage level of stop-bit is similar as that for the idle
state
Very simple & cheap scheme, but overhead is high
For every 8-data bits 2-bits are overhead
Overhead is 20%
Normally is used for low data rate I/O
communication e.g. keyboard, MIDI devices
myousaf@ymail.com 21
Asynchronous transmission: cont…
Let’s send A,B,C asynchronously with even parity:
A = 65 = 1000001
B = 66 = 1000010
C = 67 = 1000011
Data sent is:
0100000101 0100001001 01000011111111
0 = start bit
1 = stop bit

myousaf@ymail.com 22
Synchronous transmission:
Data is sent in blocks of data
Block of data bytes is called a frame
Start and end of frame is indicated with a
predefined pattern of bits (flag)
Length of flag-bits is different for different protocols
Start of frame is indicated with a preamble
End of frame is indicated with a postamble
Ethernet maximum frame size is 1500-bytes
Ethernet uses 8-bytes of alternating 1 & 0s for preamble
Synchronization overhead is approximately 8/1500 i.e.
0.5%

myousaf@ymail.com 23
Synchronous frame format:

myousaf@ymail.com 24
Questions ???

myousaf@ymail.com 25

You might also like