Switching methods in Computer networking
Switching methods in Computer networking
What is Switching?
Definition:
Switching is the process of directing data packets or calls between devices in a
network to their correct destination.
Purpose:
To ensure efficient use of network resources and maintain communication reliability.
Importance of Switching
Types of Switching
1. Circuit Switching
o Dedicated path established before communication.
o Used in traditional telephone networks.
o Examples: PSTN.
2. Packet Switching
o Data divided into packets, sent independently.
o Used in the Internet and modern data networks.
o Examples: TCP/IP.
3. Message Switching
o Entire messages stored and forwarded.
o Requires intermediate storage.
o Examples: Email systems.
Circuit Switching
Characteristics:
o Connection-oriented.
o Fixed bandwidth.
o High reliability, but inefficient for intermittent traffic.
Advantages:
o Consistent quality.
o Suitable for voice communication.
Disadvantages:
o Resource-intensive.
o Not ideal for bursty data.
Packet Switching
Characteristics:
o Connectionless or connection-oriented.
o
Efficient use of bandwidth.
o
Data reassembled at the destination.
Advantages:
o Cost-effective.
o Scalable and resilient.
Disadvantages:
o Variable delays.
o Packet loss potential.
Message Switching
Characteristics:
o Store-and-forward mechanism.
o No need for a dedicated path.
Advantages:
o Efficient use of intermediate resources.
o Suitable for non-real-time communication.
Disadvantages:
o Increased latency.
o Requires substantial storage.
Applications of Switching
Circuit Switching:
o Traditional telephony.
o Video conferencing with guaranteed QoS.
Packet Switching:
o Internet communication.
o VoIP, streaming.
Message Switching:
o Email systems.
o File transfer in legacy systems
Switching techniques
In large networks, there can be multiple paths from sender to receiver. The switching
technique will decide the best route for data transmission.
Circuit Switching
o Circuit establishment
o Data transfer
o Circuit Disconnect
Circuit Switching can use either of the two technologies:
o Crossbar Switch
o Multistage Switch
Crossbar Switch
The Crossbar switch is a switch that has n input lines and n output lines. The crossbar switch
has n2 intersection points known as crosspoints.
Multistage Switch
o Multistage Switch is made by splitting the crossbar switch into the smaller units and
then interconnecting them.
o It reduces the number of crosspoints.
o If one path fails, then there will be an availability of another path.
Advantages Of Circuit Switching:
o Once the dedicated path is established, the only delay occurs in the speed of data
transmission.
o It takes a long time to establish a connection approx 10 seconds during which no data
can be transmitted.
o It is more expensive than other switching techniques as a dedicated path is required for
each connection.
o It is inefficient to use because once the path is established and no data is transferred,
then the capacity of the path is wasted.
o In this case, the connection is dedicated therefore no other data can be transferred even
if the channel is free.
Message Switching
o Data channels are shared among the communicating devices that improve the efficiency
of using available bandwidth.
o Traffic congestion can be reduced because the message is temporarily stored in the
nodes.
o Message priority can be used to manage the network.
o The size of the message which is sent over the network can be varied. Therefore, it
supports the data of unlimited size.
Disadvantages Of Message Switching
o The message switches must be equipped with sufficient storage to enable them to store
the messages until the message is forwarded.
o The Long delay can occur due to the storing and forwarding facility provided by the
message switching technique.
Packet Switching
o The packet switching is a switching technique in which the message is sent in one go,
but it is divided into smaller pieces, and they are sent individually.
o The message splits into smaller pieces known as packets and packets are given a unique
number to identify their order at the receiving end.
o Every packet contains some information in its headers such as source address,
destination address and sequence number.
o Packets will travel across the network, taking the shortest path as possible.
o All the packets are reassembled at the receiving end in correct order.
o If any packet is missing or corrupted, then the message will be sent to resend the
message.
o If the correct order of the packets is reached, then the acknowledgment message will be
sent.
o In the above diagram, A and B are the sender and receiver respectively. 1 and 2 are the
nodes.
o Call request and call accept packets are used to establish a connection between the
sender and receiver.
o When a route is established, data will be transferred.
o After transmission of data, an acknowledgment signal is sent by the receiver that the
message has been received.
o If the user wants to terminate the connection, a clear signal is sent for the termination.