Unit 3: Multiplexing and Switching: Structure
Unit 3: Multiplexing and Switching: Structure
Multiplexing and
UNIT 3: MULTIPLEXING AND SWITCHING Switching
3.0 INTRODUCTION
The most fundamental need of any communication system design is to cater to large
number of users. But this requires a large number of resources and large bandwidths
supporting multiple channels. Requirement for large number of resources can be met
if the resources are available, but this makes it cost ineffective. Therefore, the aim is
always to use minimum number of resources and make their utilisation to their fullest
potential. Bandwidth always remains a critical resource due to its limited availability
and therefore, communication systems try to harness its fullest potential. Networks
always require us to accommodate multiple signals utilizing a single piece of cabling
to make it cost effective and reduce complexity. This need is seen throughout
networking whether we are talking about local area networks or wide area ones.
Modern telephone systems must place a large number of calls over a limited amount
of bandwidth (i.e. a trunk). Broadband LANs must have several different types of data
on a single wire at once. For these applications, we need to share the resources and in
particular the bandwidth. Multiplexing and Switching are the two most important
techniques being employed for this purpose in the present day communication
systems and have been discussed in the present unit.
3.1 OBJECTIVES
After going through this unit, you should be able to:
• Know the concept of Multiplexing and Switching in computer networks
• Understand the basic multiplexing techniques like FDM, TDM, CDM and SDM
• Differentiate between different types of multiplexing techniques
• Know the switching mechanisms
• Differentiate between packet, circuit and message switching
• Understand the different packet switching mechanisms
41
Concepts of
Communication and 3.2 MULTIPLEXING CONCEPT
Networking
In general, a medium can carry only one signal at any moment in time. For multiple
signals to share one medium, the medium must somehow be divided, giving each
signal a portion of the total bandwidth. Multiplexing (also known as MUXing) is a
method by which multiple analog message signals or digital data streams are
combined into one signal over a shared medium. The basic aim of the Multiplexing is
to share an expensive resource by putting-up multiple signals on the same channel.
For example, in telecommunications, several telephone calls may be carried using one
wire. Multiplexing originated in telegraphy in the 1870s, and is now widely applied in
different streams of communications. When several communication channels are
needed between the same two points, significant economies may be realized by
sending all the messages on one transmission facility – called multiplexing. As
shown in Figure 1, n number of signals from the low speed channels have been
combined to one sigh speed link using a n:1 multiplexer. Whereas the opposite
process is carried out at the other end, where the signals are further separated into n
number of low speed channels. This opposite process is referred as demultiplexing.
n-Channels n-Channels
(Low Speed (Low Speed
Channels) Channels)
High Speed Link
• Time division Multiplexing (TDM) (Time slots are allocated to message signals
in an non overlapping manner in the time domain so that individual messages
can be recovered from time synchronized switches)
42
`
• Code division Multiplexing (CDM) users occupy the same frequency band but Multiplexing and
modulate their messages with different codes TDMA FDMA CDMA when Switching
used for multiple access TDMA, FDMA, e.g., GSM, FM, AM, Wireless
networks
……………………………………………………………………………..
……………………………………………………………………………..
……………………………………………………………………………..
……………………………………………………………………………..
……………………………………………………………………………..
……………………………………………………………………………..
……………………………………………………………………………..
……………………………………………………………………………..
……………………………………………………………………………..
……………………………………………………………………………..
3. What are the multiplexing techniques?
……………………………………………………………………………..
……………………………………………………………………………..
……………………………………………………………………………..
……………………………………………………………………………..
……………………………………………………………………………..
The following figure 2 depicts how three voice-grade telephone channels are
multiplexed using FDM. When many channels are multiplexed together, 4000Hz is
allocated to each channel to keep them well separated. First the voice channels are
raised in frequency, each by a different amount. Then they can be combined, because
no two channels can occupy the same portion of the spectrum. Notice that even
though there are gaps (guard bands) between the channels, there is some overlap
between adjacent channels, because the filters do not have sharp edges. This overlap
means that a strong spike at the edge of one channel will be felt in the adjacent one as
non-thermal noise.
43
Concepts of
Communication and
Networking
MUX DEMUX
44
`
resulting bandpass filter outputs are combined in parallel to form the input to the Multiplexing and
common channel. At the receiving terminal, a bank of band pass filters, with their Switching
inputs connected in parallel, is used to separate the message signals on a frequency-
occupancy basis. The original message signals are recovered by individual
demodulators
Advantages of FDM:
1. The users can be added to the system by simply adding another pair of
transmitter modulator and receiver demodulators.
2. FDM system support full duplex information (Both side simultaneous
Communication) flow which is required by most of application.
Disadvantages of FDM:
1. In FDM system, the initial cost is high. This may include the cable between the
two ends and the associated connectors for the cable.
2. A problem with one user can sometimes affect the others.
3. Each user requires a precise carrier frequency for transmission of the signals.
45
Concepts of so on. This situation is time division multiplexing. Unfortunately, TDM can only be
Communication and used for digital data multiplexing. Since local loops produce analog signals, a
Networking conversion is needed from analog to digital in the end office. Where all the individual
local loops come together to be combined onto outgoing trucks. The TDM process is
further illustrated in Figure 5 with the digital data stream.
Applications of TDM
• The PDH (Plesiochronous Digital Hierarchy) system, also known as the PCM
(Pulse Code Modulation) systems
• The synchronous digital hierarchy (SDH) / synchronous optical networking
(SONET) network transmission standards.
• TDM can be further extended into the time division multiple Channel (TDMA)
scheme, where several stations connected to the same physical medium, for
example sharing the same frequency channel, can communicate. Application
examples include the widely used GSM telephone system
Advantages of TDM
1. It uses a single link
2. It does not require precise carrier matching at both end of the links.
3. Use of the channel capacity is high.
4. Each to expand the number of users on a system at a low cost.
5. There is no need to include identification of the traffic stream on each packet.
Disadvantages of TDM
1. The sensitivity to other user is very high and causes problems
2. Initial cost is high
3. Technical complexity is more
46
`
CDMA uses spread-spectrum technology and a special coding scheme (where each Multiplexing and
transmitter is assigned a code generally pseudorandom code) to allow multiple users Switching
to be multiplexed over the same physical channel. By contrast, time division multiple
access (TDMA) divides access by time, while frequency-division multiple access
(FDMA) divides it by frequency. CDMA is a form of spread-spectrum signalling,
since the modulated coded signal has a much higher data bandwidth than the data
being communicated. This allows more users to communicate on the same network at
one time than if each user was allotted a specific frequency range. Remember that
CDMA is a digital technology, so analog signals must be digitized before being
transmitted on the network.
47
Concepts of
Communication and 3.7 SWITCHING
Networking
Switching forms a very important process in a communication system. A switch is
used to connect the incoming link to the desired outgoing link and directs the
incoming message to the appropriate outgoing link. Let us understand the concept of
switching with the help of a simple illustrative example.
Consider a group of 8 people with telephones. If we were to use direct lines between
all the people, we would need 28 duplex (wires that allow simultaneous two-way
conversation) lines. The arithmetic is pretty simple - to connect n subscribers directly,
we need n(n-1)/2 lines. This is alright as long as the number of subscribers is less and
the distances are also small. But in the present day electronic communication systems,
we are talking about connecting the entire world - obviously direct connections are
not the answer. We need to design a system, which can connect the people from
anywhere. Now, if we were to use a switch instead, we could reduce the number of
lines needed to just 4, because with 8 subscribers, there would at the most be just 4
conversations simultaneously. The switch would have 4 lines internally and it would
use the each line to connect a pair of subscribers. This has been illustrated in Figure 7
below.
48
`
demultiplexer (remember the line is duplex ) and therefore the trunk. Similarly, the Multiplexing and
lines internal to switch b would connect 15, 9, 11 and 12 to the multiplexer/ Switching
demultiplexer. The switched circuits are inside the switches a and b. But the trunk
between a and b is multiplexed with 4 conversations. So in a sense, the trunk is not
switched. But if you had more than one trunk between switches a and b, then the
trunks would also be switched. Why, because a call from 1 to 15 could go on either
trunk 1 or trunk 2 (assuming there are two trunks each capable of carrying 4
conversations). Thus, the trunks are now switched, in addition to being multiplexed.
49
Concepts of A circuit switch closes a circuit between the incoming and the outgoing paths so that
Communication and the incoming message can go to the output link. The circuit between any two desired
Networking paths is closed by a control signal applied to the switch. In message and packet
switching, the incoming message/packet to the node is stored in a memory location.
Then the stored message/packet is transferred to another desired memory location,
from where the message/packet can be delivered/forwarded to the next node or the
receiver. The transfer from the incoming bin to the outgoing bin is done with a
control/command signal.
50
`
There were central telegraph offices which acted like nodes of telegraph network and Multiplexing and
performed the task of message switching. as the teleprinters came, Morse code was Switching
replaced by machine telegraphy resulting in faster operations. Later computers were
introduced to do the function of message switching. Computer based message
switching is still used many organizations having many locations of working.
However, if we compare the cost, the telegraph is less costly than the telephone due to
the following reasons:
• Better utilization of transmission media
• The message switching is done over distributed time.
• Hogging (Capturing the entire path) does not occur in message switching. Only
one of the links in the entire path may be busy at a given time.
However, message switching requires storage and this may raise-up the cost of the
systems.
Voice being a very vital medium of human communication, telephone was invented. It
permitted long distance voice communication. The need of a user to talk to a desired
person out of many persons on a real time basis leads to the concept of establishing a
direct path between the caller and the called users. Circuit switching was conceived to
be an appropriate technique for the purpose. Telephone systems use circuit switching
largely to date because it serves the purpose very well. However, a major drawback of
circuit switching is the requirement of a dedicated path between the calling and the
called parties. This means reserving resources like the chain of switches and
transmission media over the entire path. This is obviously a costly proposition. The
circuit switching process has been illustrated in the Figure 11, for the telephone
network. In which, the physical connections are made by the switching offices to
connect the call of two users.
51
Concepts of For each connection, physical switches are set in the telephone network to create a
Communication and physical “circuit” – That’s the job of the switching office Switches are set up at the
Networking beginning of the connection and maintained throughout the connection. Network
resources reserved and dedicated from sender to receiver. However this is not a very
efficient strategy as a connection “holds” a physical line even during “silence”
periods (when there is nothing to transmit)
Disadvantages:
• Involves a lot of overhead, during channel set up.
• Waists a lot of bandwidth, especial in speech whereby a user is sometimes
listening, and not talking.
• Channel set up may take longer.
To overcome the disadvantages of circuit switching, packet switching was introduced,
and instead of dedicating a channel to only two parties for the duration of the call it
routes packets individually as they are available. This mechanism is referred to as
being connectionless packet switching as discussed in the next section.
……………………………………………………………………………..
……………………………………………………………………………..
……………………………………………………………………………..
2. What is CDMA?
……………………………………………………………………………..
……………………………………………………………………………..
……………………………………………………………………………..
……………………………………………………………………………..
3. What is Circuit Switching?
……………………………………………………………………………..
……………………………………………………………………………..
……………………………………………………………………………..
52
`
P1 Multiplexing and
P2 Switching
P3
P4
-
-
Pn
Figure 12: A Message broken into n number of packets
These packets are now transmitted over the network in the same manner as the
messages in message switching. The model is just like Sharing by taking turn and is
analogous to the conveyor belt in a warehouse. In this case, the Items are picked from
the storage room and placed on the conveyor belt every time a customer makes an
order. In this model, this is important that Different customers may request a different
number of items and Different users’ items may be interspersed on the conveyor belt
(they are “multiplexed”). Similarly in the Packet Switching, packetizes the data to
transfer and Multiplex it onto the wire. Thus packets from different connections share
the same link
The packets are stored and forwarded at every node. Obviously every packet now has
to have the source and destination addresses. Even in message switching repeated
transmission of addresses at every node consumes network bandwidth. In packet
switching the overhead/wastage is more because every packet is now required to carry
the addresses on their head. Thus each packet is composed of the payload (the data
we want to transmit) and a header. The header contains information useful for
transmission, such as:
• Source (sender’s) address
• Destination (recipient’s) address
• Packet size
• Sequence number
• Error checking information
The header introduces overheads, that is, additional bits to be sent. Therefore, it is
not wise to have packets that are too small. In the packet switching, each computer
attached to a network is assigned a unique number (called address). A packet contains
the address of the computer that sent it and the address of the computer to which it is
sent. In general, packets need not be of the same size, The Internet Protocol specifies
the maximum size in the form of Maximum transmission unit (MTU) and does not
give the No minimum size. But, header size is fixed (e.g., 20 bytes for TCP/IP in the
IP version 4 ). Packets are generated by the network hardware, however the
application (e.g., email) does not know that the data to be transmitted is packetized.
When packets are received, they are put together before the application accesses the
data. The process is shown in the Figure 13 below, where A and B are the sender and
C and D are the receiver.
53
Concepts of So with the user message in a packet with the header is to be transmitted also. From
Communication and this point of view network bandwidth consumed is maximum in packet switching and
Networking minimum in circuit switching. Packets of the same message are launched into the
network in parallel over different available forward links at a node. These packets
would travel through different paths to arrive at the destination. This simultaneous
transmission of packets over different paths results in further improvement of the link
utilization compared to the message switching. Another advantage is that no link is
engaged for a long time since the packets are of smaller size than the single message.
This permits better sharing of the links amongst multiple users. However the scheme
just discussed has two major drawbacks. Firstly, the packets of the same message
traveling through different paths may arrive at the destination at different times due to
different delays encountered in different paths. Thus the packets may arrive out of
order. In order to deliver them to the destination, they need to be ordered which
requires extra processing and so more delay. They need to be given sequence numbers
for reordering them. The sequence number increases the overhead and requires more
network bandwidth. Secondly, some of the paths may not be very good and some
packets may get lost. This worsens the quality. To improve quality, they require
retransmission which in turn requires more processing time and more bandwidth. In
spite of these drawbacks the packet switching is the most favored technique in the
present day communication systems. The basic reasons behind this choice are:
a) Computer traffic being mostly text is non real time (in the beginning of the
networking)
b) Computer data traffic is highly bursty in nature
Considering these features it becomes obvious that circuit switching was not the right
kind of switching. Message switching can do the job but for better line utilization
packet switching is preferable. Thus computer networks used packet switching. The
difference between the packet switching and the circuit switching has been outlined in
the Table 1.
54
`
Examples:
• POTS (Plane Old Telephone Systems)
• ATM (Asynchronous Transmission Mode)
• Frame Relay
• MPLS (Multi Protocol Label Switching)
55
Concepts of 3. Packets may arrive at the destination in a random manner. This requires that all
Communication and the arriving packets are stored and rearranged.
Networking
4. Some packets may be lost in the network.
1. Connection Request
2. Connection Confirm \
3. Transmit Packet 1
4. Transmit Packet 2
5. ……
6. …………
7. Transmit Packet N
8. Connection Release
Example:
ATM Networks
……………………………………………………………………………..
……………………………………………………………………………..
56
`
……………………………………………………………………………..
……………………………………………………………………………..
3.11 SUMMARY
We hope you must have understood the concept of multiplexing and switching. As we
discussed Multiplexing refers to the ability to transmit data coming from several pairs
of equipment (transmitters and receivers) called low-speed channels on a single
physical medium (called the high-speed channel). Whereas, A multiplexer is the
multiplexing device that combines the signals from the different transmitters and
sends them over the high-speed channel. Further in this unit you have studied
four basic multiplexing techniques are frequency division multiplexing (FDM), Time
division Multiplexing (TDM), Code division Multiplexing (CDM) and Space-division
Multiplexing (SDM). As you have studied that Switching plays a very important role
in telecommunication networks. It enables any two users to communicate with each
other. Basically, there are three categories of Switching like Message Switching,
Circuit Switching and Packet Switching.
3. Computer Networking, J.F. Kurose & K.W. Ross, A Top Down Approach
Featuring the Internet, Pearson Edition, 2003.
4. Communications Networks, Leon Garcia, and Widjaja, Tata McGraw Hill, 2000.
5. www.wikipedia.org
3.13 SOLUTIONS/ANSWERS
57
Concepts of A common application of multiplexing is in long-haul communications. Trunks
Communication and on long-haul networks are high capacity fiber, coaxial or microwave links.
Networking These links can carry large numbers of voice and data transmission
simultaneously using multiplexing.
2. What is CDMA?
58
`
3. i) Line efficiency is greater, because single node to node link can be Multiplexing and
dynamically shared by many packets over time. in other hand in circuit Switching
switching time on a node to node link is pre-allocated using synchronous
time division multiplexing.
iii) When traffic becomes heavy on a circuit switching network, some caller
are blocked, on the packet switching network, packets are still accepted,
hut delivery delay increases.
iv) Priorities can be used. Thus it can transmit higher priority packet first.
59