Switching Techniques: Circuit, Message, and Packet Switching
In large networks (like the worldwide Internet), there are millions of computers and routers. How does data travel through intermediate nodes from a sender in Indore to a web server in California?
Switching is the mechanism of forwarding data from an incoming network link to an outgoing network link to guide it toward its final destination.
1. The Three Primary Switching Methods
The Three Switching Paradigms
1. Circuit Switching
Dedicated end-to-end physical path reserved before transmission (Traditional Landline Phones)
2. Message Switching
Entire message sent node-to-node using Store-and-Forward (Telegraph / Early Email)
3. Packet Switching
Message broken into small independent packets; foundation of the modern Internet!
Understanding the 3 Types:
1. Circuit Switching (Reserved Path)
- Three Phases:
- Circuit Establishment: A dedicated physical electrical connection is reserved through all intermediate switches.
- Data Transfer: Voice or data travels with zero buffering delay.
- Circuit Teardown: The physical path is disconnected when the call ends.
- Key Disadvantage: Inefficient. If both callers stay silent for 2 minutes, that physical wire cannot be used by anyone else!
2. Message Switching (Store-and-Forward)
- The entire message (no matter how big) is treated as a single block.
- Each intermediate switch receives the entire message, stores it on a hard disk, inspects the destination address, and forwards it to the next node (Store-and-Forward).
- Disadvantage: If a 100MB file has a single bit error, the whole 100MB must be resent. Requires huge disk storage on switches.
3. Packet Switching (The Internet Standard)
- The message is broken into small, fixed-size chunks called Packets (typically 1500 bytes).
- Each packet has a header with sender IP, receiver IP, and sequence number.
- Packets travel independently through different network routers and are reassembled in the correct order at the destination.
2. Packet Switching: Datagram vs. Virtual Circuit
In exams, you are often asked to compare the two flavors of packet switching:
| Feature | Datagram Approach (Connectionless - e.g., IP) | Virtual Circuit Approach (Connection-Oriented - e.g., ATM, Frame Relay) |
|---|---|---|
| Path Setup | No path setup. Packets sent immediately. | A logical path (Virtual Circuit) is established before sending packets. |
| Packet Routing | Each packet is treated independently; packets can take different routes. | All packets follow the exact same pre-planned path. |
| Arrival Order | Packets may arrive out-of-order (reassembled by TCP). | Packets arrive in the exact sequential order. |
| Router Failure | If Router X dies, remaining packets simply take another route around it. | If any router along the virtual circuit dies, the whole connection drops. |
| Addressing | Every single packet must carry full 32-bit Source and Destination IP addresses. | Packets carry only a short Virtual Circuit Identifier (VCI) tag. |
3. Master Comparison: Circuit vs. Message vs. Packet Switching
| Comparison Parameter | Circuit Switching | Message Switching | Packet Switching |
|---|---|---|---|
| Dedicated Physical Path | Yes (compulsory) | No | No (shared dynamic links) |
| Data Unit | Continuous bitstream | Entire complete message | Small discrete packets |
| Store-and-Forward Delay | Zero delay during call | Very high delay | Minimal pipelined delay |
| Line Utilization | Poor (wasted during silence) | High | Maximum efficiency |
| Real-World Application | Traditional Landline Telephone | Telegram, Telex | The Modern Internet (TCP/IP) |
💡 DAVV Exam Tip
Question (10 Marks): “Explain Circuit, Message, and Packet Switching. Compare Datagram and Virtual Circuit approaches.”
- Draw the 3-phase flow for Circuit Switching (Setup -> Transfer -> Teardown).
- Define the Store-and-Forward mechanism.
- Write the Datagram vs Virtual Circuit table above.