Packet Switching and Delays in Computer Network (original) (raw)

Last Updated : 26 Sep, 2025

Packet Switching is a method of sending data in small units called packets, each containing a header (control info) and payload. Packets travel independently using the Store-and-Forward technique, possibly via different paths, and are reassembled at the destination. No dedicated path or resource reservation is needed, making data transfer efficient and flexible.

Packet Switching

Packet Switching

Types of Delays in Packet Switching

Packet switching involves several types of delays that can affect the overall transmission time of data from source to destination. These delays occur at different stages during packet processing and transmission. The main types of delays are:

For more information on delays you can refer to the article Delays in Computer network.

**Advantages of Packet Switching

**Disadvantage of Packet Switching

**Types of Packet Switching

**Connection-oriented Packet Switching (Virtual Circuit)

Connection-oriented (Virtual Circuit) Packet Switching establishes a logical path between sender and receiver before data transfer. All packets follow this predefined route and are given sequence numbers to ensure they arrive in order. Each connection is identified by a Virtual Circuit ID assigned by the network.

This method involves three main phases:

**1. Setup Phase: A path is established between sender and receiver. Address information is exchanged and recorded.

set_up_phase_

Set -up Phase

**2. Data Transfer Phase: Packets are transmitted along the established route, with headers containing local information like length, timestamp, and sequence number.

data_transfer_phase

Data Transfer Phase

**3. Tear Down Phase: After the transmission is complete, the virtual circuit is released.

tear_down_phase

Tear Down Phase

Some popular protocols which use the Virtual Circuit Switching approach are X.25, Frame-Relay, ATM, and MPLS(Multi-Protocol Label Switching).

**Connectionless Packet Switching (Datagram)

Connectionless (Datagram) Packet Switching treats each packet independently, with all addressing and control information included. No connection setup is needed, and packets may take different paths, possibly arriving out of order. Reliability and data integrity are handled by higher-layer protocols like TCP, providing flexibility and speed.

datagram_packet_switching

Datagram Packet Switching

**Advantages of Packet Switching

**Disadvantage of Packet Switching