Data Communications: Multiplexing
Data Communications: Multiplexing
Data Communications: Multiplexing
Data Communications
Lecture 4
Bandwidth Utilization
Multiplexing
Note
6.2
Figure 6.1 Dividing a link into channels
The word channel refers to the portion of a link that carries a transmission
between a given pair of lines. One link can have many (n) channels.
6.3
6-1 MULTIPLEXING
6.5
Frequency-Division Multiplexing (FDM)
6.6
Figure 6.3 Frequency-division multiplexing (FDM)
6.7
Note
6.8
Figure 6.4 FDM process
Multiplexing Process
Each source generates a signal of a similar frequency range. Inside the multiplexer, these
similar signals modulate different carrier frequencies ( f1, f2, and f3). The resulting
modulated signals are then combined into a single composite signal that is sent out over
a media link that has enough bandwidth to accommodate it.
6.9
Figure 6.5 FDM demultiplexing example
Demultiplexing Process
The demultiplexer uses a series of filters to decompose the multiplexed signal into its
constituent component signals. The individual signals are then passed to a demodulator
that separates them from their carriers and passes them to the output lines.
6.10
Example 6.1
6.12
Example 6.2
Solution
For five channels, we need at least four guard bands.
This means that the required bandwidth is at least
5 × 100 + 4 × 10 = 540 kHz,
as shown in Figure 6.7.
6.13
Figure 6.7 Example 6.2
6.14
Wavelength-division multiplexing (WDM)
Although WDM technology is very complex, the basic idea is very simple. We want
to combine multiple light sources into one single light at the multiplexer and do the
reverse at the demultiplexer.
The combining and splitting of light sources are easily handled by a prism.
6.16
Note
6.17
Time-division multiplexing (TDM)
6.18
Figure 6.12 Time Division Multiplexing (TDM)
Figure 6.12 gives a conceptual view of TDM. Note that the same link
is used as in FDM; here, however, the link is shown sectioned by
time rather than by frequency. In the figure, portions of signals
1,2,3, and 4 occupy the link sequentially.
6.19
Note
6.20
We can divide TDM into two different schemes: synchronous and statistical.
We first discuss synchronous TDM and then show how statistical TDM
differs.
Synchronous TDM
In synchronous TDM, each input connection has an allotment in the output even if it
is not sending data.
Time Slots and Frames
In synchronous TDM, the data flow of each input connection is divided into units,
where each input occupies one input time slot. A unit can be 1 bit, one character, or
one block of data. Each input unit becomes one output unit and occupies one output
time slot. However, the duration of an output time slot is n times shorter than the
duration of an input time slot. If an input time slot is T s, the output time slot is T/n s,
where n is the number of connections. In other words, a unit in the output connection
has a shorter duration; it travels faster. Figure 6.13 shows an example of synchronous
TDM where n is 3.
6.21
Figure 6.13 Synchronous time-division multiplexing
In synchronous TDM, a round of data units from each input connection is collected into
a frame. If we have n connections, a frame is divided into n time slots and one slot is
allocated for each unit, one for each input line. If the duration of the input unit is T, the
duration of each slot is T/n and the duration of each frame is T (unless a frame carries
some other information, as we will see shortly).
6.22
Figure 6.13 Synchronous time-division multiplexing
The data rate of the output link must be n times the data rate of a connection to
guarantee the flow of data. In Figure 6.13, the data rate of the link is 3 times the data
rate of a connection; likewise, the duration of a unit on a connection is 3 times that of
the time slot (duration of a unit on the link). In the figure we represent the data prior to
multiplexing as 3 times the size of the data after multiplexing.
6.23
Note
6.24
Example 6.5
In Figure 6.13, the data rate for each one of the 3 input
connection is 1 kbps. If 1 bit at a time is multiplexed (a
unit is 1 bit), what is the duration of (a) each input slot,
(b) each output slot, and (c) each frame?
Solution
We can answer the questions as follows:
a. The data rate of each input connection is 1 kbps. This
means that the bit duration is 1/1000 s or 1 ms. The
duration of the input time slot is 1 ms (same as bit
duration).
6.25
Example 6.5 (continued)
6.26
Example 6.6
6.27
Example 6.6 (continued)
Solution
We can answer the questions as follows:
a. The input bit duration is the inverse of the bit rate:
1/1 Mbps = 1 μs.
b. The output bit duration is one-fourth of the input bit duration, or ¼ μs.
c. The output bit rate is the inverse of the output bit duration or 1/(4μs) or 4
Mbps. This can also be deduced from the fact that the output rate is 4 times
as fast as any input rate; so the output rate = 4 × 1 Mbps = 4 Mbps.
d. The frame rate is always the same as any input rate. So the frame rate is
1,000,000 frames per second. Because we are sending 4 bits in each frame,
we can verify the result of the previous question by multiplying the frame
rate by the number of bits per frame.
6.28
Example 6.7
Four 1-kbps connections are multiplexed together. A unit is 1 bit. Find (a) the
duration of 1 bit before multiplexing, (b) the transmission rate of the link, (c) the
duration of a time slot, and (d) the duration of a frame.
Solution
We can answer the questions as follows:
a. The duration of 1 bit before multiplexing is 1 / 1 kbps, or 0.001 s (1 ms).
d. The duration of a frame is always the same as the duration of a unit before
multiplexing, or 1 ms. We can also calculate this in another way. Each frame in this
case has four time slots. So the duration of a frame is 4 times 250 μs, or 1 ms.
6.29
Interleaving
6.30
Example 6.8
6.31
Figure 6.16 Example 6.8
Solution
The multiplexer is shown in Figure 6.16. Each frame carries 1 byte
from each channel; the size of each frame, therefore, is 4 bytes, or
32 bits. Because each channel is sending 100 bytes/s and a frame
carries 1 byte from each channel, the frame rate must be 100
frames per second. The bit rate is 100 × 32, or 3200 bps.
6.32
Example 6.9
A multiplexer combines four 100-kbps channels using a
time slot of 2 bits. Show the output with four arbitrary
inputs. What is the frame rate? What is the frame
duration? What is the bit rate? What is the bit duration?
6.33
Figure 6.17 Example 6.9
Solution
Figure 6.17 shows the output (4x100kbps) for four arbitrary inputs. The
link carries 400K/(2x4)=50,000 2x4=8bit frames per second. The frame
duration is therefore 1/50,000 s or 20 μs. The bit duration on the output link
is 1/400,000 s, or 2.5 μs.
6.34
Problem- Empty Slots
Synchronous TDM is not as efficient as it could be. If a source does not have
data to send, the corresponding slot in the output frame is empty. Figure 6.18
shows a case in which one of the input lines has no data to send and one slot in
another input line has discontinuous data. The first output frame has three slots
filled, the second frame has two slots filled, and the third frame has three slots
filled. No frame is full.
Statistical TDM can improve the efficiency by removing the empty slots from
the frame (will be discussed later).
6.35
Data Rate Management
we assumed that the data rates of all input lines
were the same. However, if data rates are not the
same
Some links maybe slower. There maybe several
different input link speeds
There are three strategies that can be used to
overcome the data rate mismatch: multilevel,
multislot and pulse stuffing
6.36
Data rate matching in TDM
Multilevel Multiplexing: used when the data
rate of the input links are multiples of each
other.
Multiple-slot allocation: used when there is a
GCD between the data rates. The higher bit
rate channels are allocated more slots per
frame, and the output frame rate is a multiple
of each input link.
Pulse Stuffing: used when there is no GCD
between the links. The slowest speed link will
be brought up to the speed of the other links
by bit insertion, this is called pulse stuffing.
6.37 GCD (Greatest Common Divisor)
Figure 6.19 Multilevel multiplexing
6.38
Multiple-Slot Allocation Sometimes it is more efficient to allot more than one slot
in a frame to a single input line. For example, we might have an input line that has
a data rate that is a multiple of another input. In Figure 6.20, the input line with a
50-kbps data rate can be given two slots in the output. We insert a demultiplexer in
the line to make two inputs out of one.
6.39
Pulse Stuffing add dummy bits to the input lines with lower rates. This will increase
their rates. This technique is called pulse stuffing, bit padding, or bit stuffing. The idea is
shown in Figure 6.21. The input with a data rate of 46 is pulse-stuffed to increase the
rate to 50 kbps. Now multiplexing can take place.
6.40
Synchronization
Figure 6.22 Framing bits
• To ensure that the receiver correctly reads the incoming bits, i.e., knows
the incoming bit boundaries to interpret a “1” and a “0”, a known bit
pattern is used between the frames.
• The receiver looks for the anticipated bit and starts counting bits till the
end of the frame. Then it starts over again with the reception of another
known bit.
• These bits (or bit patterns) are called synchronization bit(s).
• They are part of the overhead of transmission
6.41
Example 6.10
We have four sources, each creating 250 8-bit characters per second. If the
interleaved unit is a character and 1 synchronizing bit is added to each frame,
find (a) the data rate of each source, (b) the duration of each character in each
source, (c) the frame rate, (d) the duration of each frame, (e) the number of bits
in each frame, and (f) the data rate of the link.
Solution
We can answer the questions as follows:
a) The data rate of each source is 250 × 8 = 2000 bps = 2 kbps.
b) Each source sends 250 characters per second; therefore, the duration of a
character is 1/250 s, or 4 ms.
c) Each frame has one character from each source, which means the link needs
to send 250 frames per second to keep the transmission rate of each source.
d) The duration of each frame is 1/250 s, or 4 ms. Note that the duration of
each frame is the same as the duration of each character coming from each
source.
e) Each frame carries 4 characters and 1 extra synchronizing bit. This means
that each frame is 4 × 8 + 1 = 33 bits.
6.42
Example 6.10 (continued)
f ) The link sends 250 frames per second, and each frame contains 33 bits.
This means that the data rate of the link is 250 × 33, or 8250 bps. Note that
the bit rate of the link is greater than the combined bit rates of the four
channels. If we add the bit rates of four channels, we get 8000 bps. Because
250 frames are traveling per second and each contains 1 extra bit for
synchronizing, we need to add 250 to the sum to get 8250 bps.
6.43
Example 6.11
Two channels, one with a bit rate of 100 kbps and another with a
bit rate of 200 kbps, are to be multiplexed. How this can be
achieved? What is the frame rate? What is the frame duration?
What is the bit rate of the link?
Solution
We can allocate one slot to the first channel and two slots to the
second channel. Each frame carries 3 bits. The frame rate is
100,000 frames per second because it carries 1 bit from the first
channel. The bit rate is 100,000 frames/s × 3 bits per frame, or 300
kbps.
6.44
Inefficient use of Bandwidth
6.45
Statistical Time-Division Multiplexing
6.46
Figure 6.26 TDM slot comparison
Figure 6.26 shows a synchronous and a statistical TDM example. In synchronous TDM,
some slots are empty because the corresponding line does not have data to send. In
statistical TDM, no slot is left empty as long as there are data to be sent by any input line.
6.47
Addressing
Figure 6.26 also shows a major difference between slots in synchronous TDM and
statistical TDM. An output slot in synchronous TDM is totally occupied by data; in
statistical TDM, a slot needs to carry data as well as the address of the destination.
6.48
Slot Size
Since a slot carries both data and an address in statistical TDM, the ratio of the data
size to address size must be reasonable to make transmission efficient. For example,
it would be inefficient to send 1 bit per slot as data when the address is 3 bits. This
would mean an overhead of 300 percent. In statistical TDM, a block of data is
usually many bytes while the address is just a few bytes.
No Synchronization Bit
There is another difference between synchronous and statistical TDM, but this time
it is at the frame level. The frames in statistical TDM need not be synchronized, so
we do not need synchronization bits.
Bandwidth
In statistical TDM, the capacity of the link is normally less than the sum of the
capacities of each channel. Why?
6.49