Switching Techniques Message - Packet Switching
Switching Techniques Message - Packet Switching
Switching Techniques Message - Packet Switching
4.2.1 Introduction
In the preceding lesson we have discussed about circuit switching. In circuit switching,
network resources are dedicated to a particular connection. Although this satisfies the
requirement of voice communication, it suffers from the following two shortcomings for
data communication:
However, for information transmission applications, the circuit switching method is very
slow, relatively expensive and inefficient. First of all, the need to establish a dedicated
connection before sending the message itself inserts a delay time, which might become
significant for the total message transfer time. Moreover, the total channel remains idle
and unavailable to the other users once a connection is made. On the other hand once a
connection is established, it is guaranteed and orderly delivery of message is ensured.
Unfortunately, the data transmission pattern may not ensure this, because data
transmission is bursty in nature. As a consequence, it limits the utility of the method. The
problem may be overcome by using an approach known as message switching, which is
discussed in Sec. 4.2.2. However, message switching suffers from various problems as
discussed in Sec. 4.2.3. To overcome the limitations of message switching, another
switching technique, known as packet switching was invented. Various aspects of packet
switching have been discussed in Sec. 4.2.4.
The line becomes free again for other messages, while the process is being
continued in some other nodes. Due to the mode of action, this method is also known as
store-and-forward technology where the message hops from node to node to its final
destination. Each node stores the full message, checks for errors and forwards it.
In this switching technique, more devices can share the network bandwidth, as
compared with circuit switching technique. Temporary storage of message reduces traffic
congestion to some extent. Higher priority can be given to urgent messages, so that the
low priority messages are delayed while the urgent ones are forwarded faster. Through
broadcast addresses one message can be sent to several users. Last of all, since the
destination host need not be active when the message is sent, message switching
techniques improve global communications.
However, since the message blocks may be quite large in size, considerable
amount of storage space is required at each node to buffer the messages. A message
might occupy the buffers for minutes, thus blocking the internodal traffic.
Figure 4.2.2 A message is divided into a number of equal length short packets
Main difference between Packet switching and Circuit Switching is that the
communication lines are not dedicated to passing messages from the source to the
destination. In Packet Switching, different messages (and even different packets) can pass
through different routes, and when there is a "dead time" in the communication between
the source and the destination, the lines can be used by other sources.
There are two basic approaches commonly used to packet Switching: virtual-
circuit packet switching and datagram packet switching. In virtual-circuit packet
switching a virtual circuit is made before actual data is transmitted, but it is different from
circuit switching in a sense that in circuit switching the call accept signal comes only
from the final destination to the source while in case of virtual-packet switching this call
accept signal is transmitted between each adjacent intermediate node as shown in Fig.
4.2.3. Other features of virtual circuit packet switching are discussed in the following
subsection.
Packets
Node 1
1 2 3
Node 2
Call- 1 2 3
Node 3
Request Call-accept 1 3 Call-acknowledgement packet
Packet packet
Node 4
x The shortest ways to pass the packet to its destination - protocols such as
RIP/OSPF are used to determine the shortest path to the destination.
x Finding a free node to pass the packet to - in this way, bottlenecks are eliminated,
since packets can reach the destination in alternate routes.
Thus, in this method, the packets don't follow a pre-established route, and the
intermediate nodes (the routers) don't have pre-defined knowledge of the routes that
the packets should be passed through.
Packets
Node 1
1 2 3
Node 2
1 2 3
Node 3
1 2 3
Node 4
Packets can follow different routes to the destination, and delivery is not
guaranteed (although packets usually do follow the same route, and are reliably sent).
Due to the nature of this method, the packets can reach the destination in a different order
than they were sent, thus they must be sorted at the destination to form the original
message. This approach is time consuming since every router has to decide where to send
each packet. The main implementation of Datagram Switching network is the Internet,
which uses the IP network protocol.
x Call setup phase is avoided (for transmission of a few packets, datagram will be
Advantages:
x At the interface between a station and a network node, we may have connection-
a particular situation:
This leads us to four different scenarios using different VC/DG combinations, which are
discussed below.
Ans:
1. creation of link as and when needed
2. permanent link
3. virtual circuit … datagram
4. packet switched communication
Short Answer Questions
Q-1. How the drawback of circuit switching is overcome in message switching?
Ans: Message switching is based on store and forward technique. Instead of
establishing a dedicated path, the message is sent to the nearest directly connected node.
Each node stores the message, checks for error and forwards it. It allows more devices to
share the network bandwidth and one message can be sent to several users. Destination
host need not be on at the time of sending message.
Q-3. What are the key differences between datagram and virtual-circuit packet
switching?
Ans: In datagram, the packets are routed independently and it might follow different
routes to reach the destination in different order. In virtual-circuit packet switching, first a
virtual connection is being established, and all the packets are sent serially through the
same path. In this case, packets are received in order.
Q-5. How packet size affects the transmission time in a packet switching network?
Ans: Initially, transmission time decreases as packet size is reduced. But, as packet size is
reduced and the payload part of a packet becomes comparable to the control part,
transmission time increases.