Circuit Switching, Message Switching and Packet Switching
Circuit Switching, Message Switching and Packet Switching
In large networks there might be multiple paths linking sender and receiver.
Information may be switched as it travels through various communication channels.
There are three typical switching techniques available for digital traffic.
• Circuit Switching
• Message Switching
• Packet Switching
Circuit Switching
Circuit switching is a technique that directly connects the
sender and the receiver in an unbroken path.
Telephone switching equipment, for example, establishes a
path that connects the caller's telephone to the receiver's
telephone by making a physical connection.
With this type of switching technique, once a connection is
established, a dedicated path exists between both ends until
the connection is terminated.
Routing decisions must be made when the circuit is first
established, but there are no decisions made after that time.
Circuit Switching
Circuit switching
Advantages:
• The communication channel (once established) is dedicated.
Disadvantages:
• Possible long wait to establish a connection, (10 seconds,
more on long- distance or international calls.) during which
no data can be transmitted.
• More expensive than any other switching techniques,
because a dedicated path is required for each connection.
• Inefficient use of the communication channel, because the
channel is not used when the connected systems are not
using it.
Message Switching
Advantages:
• Channel efficiency can be greater compared to circuit-
switched systems, because more devices are sharing the
channel.
• Traffic congestion can be reduced, because messages may be
temporarily stored in route.
• Message priorities can be established due to store-and-forward
technique.
• Message broadcasting can be achieved with the use of
broadcast address appended in the message.
Message Switching
Disadvantages
• Message switching is not compatible with interactive
applications.
• Store-and-forward devices are expensive, because they
must have large disks to hold potentially long messages.
Packet Switching
• Packet switching can be seen as a solution that tries to combine the
advantages of message and circuit switching and to minimize the
disadvantages of both.
• There are two methods of packet switching: Datagram
and virtual circuit.
Packet Switching
• In both packet switching methods, a message is broken into
small parts, called packets.
• Each packet is tagged with appropriate source and destination
addresses.
• Since packets have a strictly defined maximum length, they
can be stored in main memory instead of disk, therefore access
delay and cost are minimized.
• Also the transmission speeds, between nodes, are optimized.
• With current technology, packets are generally accepted onto
the network on a first-come, first-served basis. If the network
becomes overloaded, packets are delayed or discarded
(``dropped'').
Packet size
The size of the packet can vary from 180 bits, the size for the
Datakit® virtual circuit switch designed by Bell Labs
• In virtual circuit, the route between stations does not mean that
this is a dedicated path, as in circuit switching.
• A packet is still buffered at each node and queued for output over
a line.
• The difference between virtual circuit and datagram approaches:
Ø With virtual circuit, the node does not need to make a routing
decision for each packet.
Ø It is made only once for all packets using that virtual circuit.
Packet Switching: Virtual Circuit
Advantages:
• Packet switching is cost effective, because switching
devices do not need massive amount of secondary
storage.
• Packet switching offers improved delay characteristics,
because there are no long messages in the queue
(maximum packet size is fixed).
• Packet can be rerouted if there is any problem, such as,
busy or disabled links.
• The advantage of packet switching is that many
network users can share the same channel at the same
time. Packet switching can maximize link efficiency by
making optimal use of link bandwidth.
Disadvantages of packet switching
Disadvantages:
• Protocols for packet switching are typically more complex.
• It can add some initial costs in implementation.
• If packet is lost, sender needs to retransmit the data.
• Another disadvantage is that packet-switched systems still
can’t deliver the same quality as dedicated circuits in
applications requiring very little delay - like voice
conversations or moving images.
Difference between Circuit Switching, Message Switching and
Packet Switching
●
Basics ●
Circuit Switching ●
Message Switching ●
Packet Switching
●
Connection ●
Connection is created between the source and ●
Links are created independently one by ●
Links are created independently
Creation destination by establishing a dedicated path one between the nodes on the way. one by one between the nodes on
between source and destination. the way.
●
Queuing ●
No queue is formed. ●
Queue is formed. ●
Queue is formed.
●
Message and ●
There is one big entire data stream called a ●
There is one big entire data stream called a ●
The big message is divided into a
Packets message. message. small number of packets.
●
Routing ●
One single dedicated path exists between the ●
Messages follow the independent route to ●
Packets follow the independent
source and destination. reach a destination. path to hold the destination.
●
Addressing ●
Messages need not be addressed as there is one ●
Messages are addressed as independent ●
Packets are addressed, and
and dedicated path. routes are established. sequencing is done as all the
sequencing packets follow the independent
route.
●
Propagation ●
No ●
Yes ●
Yes
Delay
●
Transmission ●
Low ●
Maximum ●
Maximum
Capacity
●
Sequence ●
Message arrives in Sequence. ●
Message arrives in Sequence. ●
Packets do not appear in sequence
Order at the destination.
●
Use ●
Wastage ●
Bandwidth is used to its maximum extent. ●
Bandwidth is used to its maximum
Bandwidth extent.