LambdaLabTM
Computer Networks · Class 12 · Data Communication · Switching Techniques
networksdata communication⏱️ 8 min read

Packet Switching

Circuit switching wastes a reserved path whenever nobody is talking. Computers are silent most of the time and then send data in quick bursts, so reserving a path for them would waste almost all of it. Packet switching reserves nothing at all.

1Packet switching

Packet switching
In packet switching, the message is broken into small pieces called packets. Each packet is sent independently, and packets of the same message may take different routes. At the receiver, the packets are put back together in the right order to make the message again.

No path is set up in advance, and no link belongs to anyone. Every link carries packets from many conversations, one after another.

2What is in a packet

A packet is a small piece of the message with a label on the front, called its header. The header says where the packet came from, where it is going, and which piece of the message it is.

Header
fromA
toB
packet2 of 4
Data
YOU

3Store and forward

When a packet reaches a switch, the switch stores it for a moment, reads its header, and then forwards it along whichever link is free towards its destination. This is called store and forward, and packet switching uses it at every switch.

Packet switching: every packet finds its own way

Press Send. Then let others send at the same time, or cut a link, and send again. Drag sideways to turn.

A's message is “SEE YOU AT FIVE”. Press Send to cut it into packets and send them.
B receives:nothing yet

Simplified: here the switches take turns sending packets over the two routes, and the top route is the busier one, so its packets wait longer. Real switches choose from moment to moment.

Send A’s message on its own and look at what B receives: YOU, SEE, FIVE, AT. The packets on the busier top route waited longer at each switch, so they arrived later. It does not matter. Each packet carries its number, and B puts them back as SEE YOU AT FIVE.

Think of moving house by courier

You cannot fit a whole house in one parcel, so you pack it into numbered boxes. The courier sends each box on whichever van is leaving next, and they reach the new house in any order. You unpack them by their numbers, and the house is whole again.

4Advantages and disadvantages

✅ Advantages
  • Links are shared, so nothing is wasted while someone is silent.
  • No time is spent setting up a path before sending.
  • If a link breaks, packets simply take another route.
  • Many conversations can use the network at the same time.
❌ Disadvantages
  • Packets can arrive out of order, and must be put back together.
  • Packets may be delayed when switches are busy.
  • A lost packet has to be sent again.

The Internet uses packet switching. Every web page, message and video you receive arrives as packets.

5From the board papers

1
Which switching technique breaks data into smaller packets for transmission, allowing multiple packets to share the same network resources?CBSE sample paper 2024-25
1 mark
Show the answer

Packet switching.

2
Which switching technique follows the store and forward mechanism?KV pre-board, Jaipur region
1 mark
Show the answer

Packet switching. Each switch stores a packet, then forwards it.

3
Which of the following statements is true?
(a) In packet switching, a dedicated path is established for the entire communication session.
(b) Circuit switching is more efficient than packet switching for networks with bursty data traffic.
(c) Packet switching allows multiple communications to share the same network resources simultaneously.
(d) Circuit switching breaks data into packets and sends them independently.KV pre-board 2025-26, Chennai region
1 mark
Show the answer

(c). (a) describes circuit switching, (d) describes packet switching, and (b) is backwards: with data sent in bursts, a reserved circuit sits idle most of the time, so packet switching is the more efficient one.

6Check yourself

Quick Check

Packets of one message arrive at the receiver out of order. How does the receiver rebuild the message?

Quick Check

In the lab, the link from S2 to S4 is cut. What happens to A's packets?