Past exam question: 2072 Kartik, Q8(a)
Open in the Padhaiko appQuestion
Differentiate between datagram switching and virtual circuit switching technique.
Solution
Comparative Architecture and Routing: Packet switching networks forward data as discrete units called packets using two fundamental operational paradigms: connectionless datagram switching and connection-oriented virtual circuit switching.
Datagram Switching (Connectionless):
Packet 1: Host A ---> Switch 1 ---> Switch 3 ---> Host B
Packet 2: Host A ---> Switch 2 ---> Switch 3 ---> Host B
Packet 3: Host A ---> Switch 1 ---> Switch 4 ---> Host B
(Each packet routed independently; out-of-order delivery possible)
Virtual Circuit Switching (Connection-Oriented):
Call Setup Phase: Host A === [ Fixed Logical Path Reserved: S1-S3 ] === Host B
Data Transfer: All packets travel along the established VC using short VCIs
Teardown Phase: Virtual circuit releasedDetailed Comparison Table:
| Feature | Datagram Switching | Virtual Circuit Switching |
|---|---|---|
| Connection Setup | No connection setup phase; packets sent immediately. | Pre-established virtual connection setup phase required before data transfer. |
| Addressing Overhead | Each packet carries complete global source and destination IP addresses (large header). | Packets carry only a short local Virtual Circuit Identifier (VCI) tag (small header). |
| Routing Decisions | Intermediate nodes evaluate routing tables independently for every packet. | Route determined once during setup; intermediate nodes forward packets based on VCI translation tables. |
| Packet Sequencing | Packets may take different paths and arrive out of order; destination must reassemble. | Packets follow identical path and always arrive strictly in sequential order. |
| Switch Failure Effect | Robust: Subsequent packets dynamically reroute around failed switches. | Vulnerable: Failure of any intermediate switch terminates the entire virtual circuit. |
| Resource Reservation | No resource reservation; vulnerable to buffer congestion. | Bandwidth and buffers can be reserved during setup for guaranteed Quality of Service (QoS). |
| Canonical Example | Internet Protocol (IP), UDP. | Asynchronous Transfer Mode (ATM), MPLS, Frame Relay. |
Answer:
Datagram switching routes each packet independently using its destination address without setup (packets may arrive out of order), whereas virtual circuit switching establishes a pre-defined logical path during connection setup so all packets follow the same route in sequence.