Packet Switching

Test yourself on Packet Switching with exam style questions, marked instantly.

Flashcards that come back just before you would forget them.

A revision plan that remembers what you know and shows what to do next.

See which topics you have nailed and which need another look.

Quiz yourself on Packet SwitchingGet your flashcardsBuild my revision planTrack my progress

Breaking Data Into Pieces

When you send data across a network, it doesn't travel as one big lump. It's broken into small chunks called packets. Imagine sending a 1000-page book through the post - you wouldn't send it as one massive parcel! You'd break it into smaller packages, send them separately (maybe different routes), and reassemble at destination. Packet switching works the same way: data split into packets, each packet finds its own route through the network, packets reassembled at destination. This makes networks faster, more efficient, and more reliable!

Packet Switching

A message is split into three packets. Each packet travels through its own router to the destination.

A message is split into packets, and routers pass each packet on towards the destination. No board names packet switching in its specification. OCR J277 no longer lists it. Read this lesson as background, not as something to learn word for word.

What is Packet Switching?

Definition: A method of transmitting data where messages are divided into small packets that travel independently across the network.

  • Packets: Small chunks of data (typically 500-1500 bytes each)
  • Independent routing: Each packet can take different route to destination
  • Reassembly: Packets reassembled in correct order at destination
  • Used by: The Internet, most modern networks

What is a Packet?

Structure of a Network Packet:

Each packet contains three parts: Header, Payload (Data), and Trailer.

1. Packet Header:

  • Source IP address: Where packet came from
  • Destination IP address: Where packet is going
  • Packet number: Sequence number for reassembly (e.g., packet 3 of 10)
  • Protocol information: Which protocol the packet uses (e.g. TCP/IP)
  • Time to Live (TTL): Prevents packets looping forever

2. Payload (Data):

  • Actual data: The message/file content being transmitted
  • Size: Typically 500-1500 bytes per packet
  • Fragment of whole: Each packet carries small piece of total data

3. Packet Trailer (Footer):

  • Error checking: Checksum or CRC (Cyclic Redundancy Check)
  • Detects corruption: Identifies if packet was damaged during transmission
  • Validation: Recipient can verify data arrived correctly

How Packet Switching Works

Step-by-Step Process:

1. Data Division:

  • Large message/file broken into small packets (e.g., 1MB file → 700 packets of 1500 bytes)
  • Each packet numbered for reassembly

2. Adding Headers:

  • Each packet gets header with source/destination IP, packet number
  • Trailer added with error-checking information

3. Transmission:

  • Packets sent across network independently
  • Each packet can take different route through routers
  • Routers forward packets based on current network conditions

4. Routing:

  • Routers read destination IP in header
  • Choose best available route (fastest, least congested)
  • Different packets may take different paths

5. Arrival:

  • Packets arrive at destination (possibly out of order)
  • Error checking performed using trailer
  • Damaged packets reported, retransmission requested

6. Reassembly:

  • Packets sorted using sequence numbers
  • Reassembled into original message/file
  • Complete data delivered to application

Advantages of Packet Switching

  • Efficient use of network: Multiple transmissions share same links simultaneously
  • Resilient to failures: If one route fails, packets take alternative path
  • No dedicated line needed: Unlike circuit switching, no permanent connection required
  • Fault tolerance: Lost/damaged packets can be retransmitted without resending everything
  • Load balancing: Network traffic distributed across multiple routes
  • Cost effective: Shares network infrastructure among many users
  • Handles congestion: Packets routed around busy network sections

Disadvantages of Packet Switching

  • Packets arrive out of order: Need reassembly, adding processing overhead
  • Variable latency: Different routes = different arrival times (bad for real-time like VoIP)
  • Header overhead: Each packet needs header/trailer, reducing payload efficiency
  • Packets can be lost: Need retransmission protocols (TCP)
  • Complex routing: Routers need to make decisions for every packet
  • Security concerns: Packets can be intercepted at any router along route

Circuit Switching vs Packet Switching

Aspect Circuit Switching Packet Switching
Connection Dedicated path established for entire communication No dedicated path - packets use any available route
Route Same route for entire duration Each packet can take different route
Resource Usage Inefficient - line reserved even when idle Efficient - multiple transmissions share links
Setup Connection setup needed before transmission No setup - send packets immediately
Reliability If connection fails, everything stops Resilient - packets reroute around failures
Order Data arrives in order Packets may arrive out of order (need reassembly)
Latency Consistent (predictable delay) Variable (different routes = different delays)
Use Case Traditional telephone calls Internet, email, web browsing
Example Landline phone call Internet data transmission

Real-World Example: Sending an Email

Imagine you send a 1MB email with photo attachment - here's what happens:

Step 1: Division

Your 1MB email split into ~700 packets of 1500 bytes each. Packet 1 contains first 1500 bytes, Packet 2 contains next 1500 bytes, etc.

Step 2: Headers Added

Each packet gets header: Source IP (your computer), Destination IP (recipient's mail server), Packet number (1 of 700, 2 of 700, etc.)

Step 3: Transmission

Packets leave your computer. Packet 1 might go through London → Paris → Berlin. Packet 2 might go London → Amsterdam → Berlin. Different routes!

Step 4: Routing

Routers check destination IP, forward to next hop. If Paris router is busy, packets reroute through Brussels instead. Dynamic routing!

Step 5: Arrival

Packets arrive at recipient's mail server. They might arrive: Packet 2, Packet 1, Packet 4, Packet 3... Out of order!

Step 6: Reassembly

Mail server sorts using packet numbers, reassembles into original 1MB email. Recipient downloads complete email!

Exam Tips - Packet Switching

No board specification names packet switching. Read these tips as background.

No GCSE board names packet switching, so routes, headers and reassembly are not examinable. Use this box to check you understand the idea.

Questions you could be asked in class:

  • "What is packet switching?" → Data broken into packets, each packet travels independently, reassembled at destination
  • "What's in a packet?" → Header (source/dest IP, packet number), Payload (data), Trailer (error checking)
  • "Advantage of packet switching?" → Efficient network use / resilient (packets reroute around failures)
  • "Disadvantage of packet switching?" → Packets arrive out of order (need reassembly) / variable latency
  • "Why split into packets?" → Efficient sharing of network / can reroute if failure / only retransmit lost packets

Key facts to memorize:

  • Packets = small chunks (500-1500 bytes typically)
  • Header contains: source/destination IP, packet number
  • Trailer contains: error checking (checksum/CRC)
  • Each packet can take different route
  • Packets reassembled using sequence numbers

Common mistakes to avoid:

  • Forgetting packets can take different routes - key feature!
  • Not mentioning reassembly at destination
  • Confusing packet switching with circuit switching
  • Missing the three parts: header, payload, trailer

Example answer (background only):

"Explain how packet switching works" (4 marks):

Data broken into small packets (1 mark).
Each packet has header with source/destination IP and packet number (1 mark).
Packets travel independently through network, can take different routes (1 mark).
Packets reassembled in correct order at destination using sequence numbers (1 mark).

Quick Reference - Packet Switching

What is Packet Switching?

  • Method of transmitting data by dividing into small packets
  • Each packet travels independently through network
  • Packets reassembled at destination

Packet Structure:

  • Header: Source/dest IP, packet number, protocol
  • Payload: Actual data (500-1500 bytes)
  • Trailer: Error checking (checksum)

Advantages:

  • Efficient network use, resilient to failures, no dedicated line needed

Disadvantages:

  • Packets arrive out of order, variable latency, header overhead

Remember: Packets = small chunks, independent routing, reassembly at destination using packet numbers!

Make this stick

Signing in gives access to all PrepWise features.

PrepWise is a trading name of A3M Quality Solutions Limited, registered in England and Wales, company number 14959172. Registered office: 202 Stroud Road, Gloucester, GL1 5LA. ICO registration ZC267069.