BIT101 ยท 2081 ยท 5 marks
Define a packet. Explain the working of the packet switching technique.
Define a packet. Explain the working of the packet switching technique. [5]
Quick answer
A packet is a small, fixed or variable-sized unit of data that is formed by breaking a large message into smaller chunks before transmission over a network.
Packet Switching
Definition of a Packet
A packet is a small, fixed or variable-sized unit of data that is formed by breaking a large message into smaller chunks before transmission over a network. Each packet contains:
- Header - source address, destination address, sequence number, and control information
- Payload (Data) - the actual portion of the message being carried
- Trailer - error-checking information (e.g., CRC)
Packet Switching Technique
Packet switching is a data transmission method in which a message is divided into packets, and each packet is transmitted independently through the network. Packets may travel via different routes and are reassembled at the destination.
Working of Packet Switching
Step-by-Step Process
Step 1: Message Division
- The sender breaks the original message into smaller packets.
- Each packet is numbered (e.g., P1, P2, P3) so they can be reassembled in order.
Step 2: Header Addition
- Each packet is given a header containing the destination address, source address, and sequence number.
Step 3: Routing Through the Network
-
Each packet is sent into the network independently.
-
At each intermediate node (router/switch), the packet is:
- Received and stored temporarily (store-and-forward)
- Examined - the router reads the destination address
- Forwarded - the router selects the best available path using a routing table
-
Different packets of the same message may take different paths to reach the destination.
Step 4: Reassembly at Destination
- All packets arrive at the destination (possibly out of order).
- The destination node uses the sequence numbers to reassemble the packets in the correct order to reconstruct the original message.
Step 5: Error Handling
- If a packet is lost or corrupted, only that specific packet is retransmitted, not the entire message.
Diagram
Sender Network Receiver
| |
|-- P1 --> [Router A] --> [Router C] --> P1 --> |
|-- P2 --> [Router B] --> [Router C] --> P2 --> |
|-- P3 --> [Router A] --> [Router B] --> P3 --> |
Reassemble
P1+P2+P3
Advantages of Packet Switching
| Feature | Benefit |
|---|---|
| Efficient bandwidth use | Multiple packets share the same link |
| Fault tolerance | Packets can reroute around failed nodes |
| Error recovery | Only lost packets are retransmitted |
| No dedicated path needed | No circuit setup delay |
Types of Packet Switching
- Datagram Packet Switching - Each packet is routed independently; no fixed path.
- Virtual Circuit Packet Switching - A logical path is established before transmission; all packets follow the same route (e.g., ATM).
Note: Packet switching is the foundation of modern networks including the Internet, where the TCP/IP protocol suite manages packet creation, routing, and reassembly.
Short on time? The 1, 5 and 10 mark versions of this answer, flashcards and practice sets come with a program pass.