Switching is the process of forwarding data from a source device to a destination device through intermediate network devices. It decides the best path for the data to travel.
- It lets many devices share the same network.
- It ensures data is sent to the right destination.
Working of Switching

The process varies depending on the switching technique used. However, the general steps are:
- The sender generates data to be transmitted.
- The data is prepared for transmission according to the switching method.
- Intermediate network devices determine the next destination for the data.
- The data is forwarded through the network toward the receiver.
- The receiver gets the transmitted data.
Types of Switching
There are three main types of switching:

1. Circuit Switching
It establishes a dedicated communication path between the sender and receiver before data transmission begins. The same path remains reserved for the entire communication session.
Working
- A dedicated path is established.
- Data is transmitted through that path.
- The connection remains reserved during the session.
- The connection is released after communication ends.
Example: Traditional telephone networks.
2. Message Switching
It transfers the entire message from the sender to the receiver through intermediate network devices. Each device stores the complete message before forwarding it to the next device. No dedicated communication path is required.
Working
- The sender sends the complete message.
- The intermediate device receives and stores the message.
- The device forwards the message to the next device when the required link is available.
- The message reaches the receiver through intermediate devices.
Example: Email transmission.
3. Packet Switching
It divide data into smaller units called packets before transmission. Each packet is transmitted independently through the network and reassembled at the destination.
Working
- The sender divides data into smaller packets.
- Each packet is transmitted through the network.
- Packets may travel through different paths to reach the destination.
- The receiver reassembles the packets to form the original data.
Example: Internet communication.
Types of Packet Switching
Packet switching can be classified into two types:
1. Datagram Switching
In datagram switching, each packet is treated independently and can take a different route to reach the destination.
- No dedicated path is established.
- Each packet contains the destination address.
- Different packets may follow different routes.
- Packets may arrive out of order.
Example: IP-based communication on the Internet.
2. Virtual Circuit Switching
In virtual circuit switching, a logical path is established before packets are transmitted.
- A logical path is established first.
- Packets generally follow the same path.
- Packets carry a virtual circuit identifier rather than requiring complete routing information at every hop.
- The connection is released after transmission.
Example: Technologies such as Frame Relay and ATM use virtual-circuit concepts.
Comparison of Switching Types
| Message Switching | Circuit Switching | Packet Switching |
|---|---|---|
| The entire message is sent as one unit. | Data is sent through an established connection. | Data is divided into small packets. |
| No dedicated path is required. | A dedicated path is reserved for communication. | Packets share network paths and may take different routes. |
| The complete message is stored at intermediate nodes before forwarding. | Data passes through the established path without being stored at each node. | Packets may be temporarily stored at intermediate nodes. |
| Has high delay because the complete message is stored and forwarded. | Has low delay after the connection is established. | Delay depends on network traffic and congestion. |
| Example: Traditional telegraph systems. | Example: Traditional telephone networks. | Example: Internet and modern computer networks. |

