CBSE 2026 results are out, Mukul scored a perfect 100/100 in Computer ScienceSee all toppers →

KwickAcademy Networks and the Internet · 7 min · free

Packet Switching and How Data Travels

7 min4 KwickClipsFull text belowFree
Next lesson →Kajal Ma'am (MCA), teaching since 2004Remembered in this browser

Learn how data is split into packets, what a header, payload and trailer hold, how routers move packets, and how circuit switching differs. A packet is a small piece of data, and a large file is split into many of them.

Follows the syllabus of: CBSE Class 10 Computer Applications (165), CBSE Class 12 Computer Science (083), Cambridge IGCSE Grade 9 Computer Science (0478), Cambridge IGCSE Grade 10 Computer Science (0478)

On screen in this lesson

What is a packet?

A small piece of data, up to a fixed maximum size
Large files are split into many packets
Each packet travels on its own
Packets are joined again at the end

Why break data into packets?

Many users can share the same lines
A lost packet is resent, not the whole file
Packets can avoid busy or broken routes
No single big file blocks the network

Parts of a packet

PartAlso calledHolds
HeaderControl infoAddresses, number
PayloadBodyThe actual data
TrailerFooterEnd, error check

Inside the header

Sender's IP address: where it came from
Receiver's IP address: where it must go
Packet number: its place in the order
Total packets: so the receiver knows when all arrived

Inside the trailer

A marker that shows the end of the packet
An error check value, such as a checksum
Receiver works out the value again and compares

What is a router?

A device that joins different networks
Reads the receiver's address in the header
Sends the packet to the next best router
Chooses again at every hop

Quick answers

Why can packets of one file arrive out of order?

Each router picks the best next hop, so packets may take different routes.

What does the trailer of a packet hold?

An end marker and an error check value, such as a checksum.

KwickClips from this lesson

Short clips, one idea each. Good for revision the night before.

The full lesson, in text

Hello students, welcome to Kwickprep. When you send a video to a friend, does it travel across the Internet as one big piece? No. It is cut into thousands of small pieces, and they may even take different roads. Today we will learn packets, what is inside a packet, packet switching across routers, and how it compares with circuit switching.

First, a new term. A packet is a small piece of data, usually of a fixed maximum size. A large file, like a video or a photo, is split into many packets before sending. Each packet then travels across the network on its own. At the receiver, the packets are joined again to rebuild the original file.

Why not send the whole file at once? Think of a school bus that can carry sixty students, so a class of two hundred goes in four trips. Small packets let many users share the same cables at the same time. If one packet is lost, only that packet is sent again, not the whole file. Packets can also go around a busy or broken route. And one huge file never blocks the line for everyone else.

Every packet has three parts, like a courier parcel. The header comes first and carries control information, such as addresses and the packet number. The payload, also called the body, is the actual piece of your file. The trailer comes last, marks the end of the packet, and carries a value used to check for errors.

Exams often ask what the header contains. It holds the IP address of the sender, so replies know where to go. It holds the IP address of the receiver, so routers know where to send it. It holds the packet number, so packets can be put back in the right order. Some headers also hold the total number of packets, so the receiver knows when every packet has arrived.

Now the last part, the trailer. It holds a marker that tells the receiver, this packet ends here. It also holds an error check value, such as a checksum, which is a number worked out from the data. The receiver works out that number again, and if the two do not match, the packet was damaged and is requested again.

Before we watch packets travel, meet the router. A router is a device that joins different networks together. It reads the receiver's IP address in each packet header. It then forwards the packet to the next router that is closest to the destination. Each step from one router to the next is called a hop, and the choice is made again at every hop.

Here is packet switching from start to end. The sender adds a header and a trailer to every packet. At each router, the best next hop is chosen for that packet. Because traffic keeps changing, packets from the same file may take different routes. So they can arrive in a different order from how they were sent. Finally, the receiver uses the packet numbers to put them back in order and rebuild the file.

Let us animate a photo sent from Pune to Delhi in three packets. Packet one goes through routers one, two and five, and arrives second. Packet two finds a quicker path through router three, so it arrives first. Packet three is sent a longer way around a busy router, and arrives last. Pause and predict. In what order does Delhi rebuild the photo? One, two, three, using the packet numbers in the headers.

Sometimes a packet is lost or damaged on the way. The receiver checks which packet numbers have arrived. If one is missing or fails its error check, it asks for that packet again. Only that single packet is resent, which saves time. Each packet also has a hop limit, so a packet that keeps going round in circles is dropped instead of looping for ever.

Now the older method, circuit switching, used by traditional landline telephone calls. Before any data is sent, a dedicated path is set up between the two ends. That path is reserved for this one conversation, and nobody else can use it. All the data follows that same path, so it arrives in order. The path is released only when the call ends, even if nobody is talking.

Let us compare the two side by side. Packet switching needs no path set up first, but circuit switching does. In packet switching routes can differ, while in circuit switching all data takes one route. So packet data may arrive mixed up, but circuit data arrives in order. Packet switching shares the lines efficiently, while a circuit wastes the line when it is idle. The Internet and email use packet switching, and old landline calls use circuit switching.

Each method has strengths, and exams ask for both sides. Packet switching is cheaper, and packets simply go around a broken link. But on a busy network, packets can be delayed a little. Circuit switching gives a steady speed once the path is made. But it takes time to set up, and if one link breaks, the whole call drops.

Let us revise what we learned today. Data is split into small packets before it travels. The header holds the addresses and the packet number, and the payload holds the data. The trailer holds the end marker and the error check. In packet switching, each packet finds its own route through routers and is reordered at the end. In circuit switching, one path is reserved for the whole conversation.

Courses that teach this

CourseUnit
CBSE Class 10 Computer Applications (165)Cyber ethics
CBSE Class 12 Computer Science (083)Computer Networks
Cambridge IGCSE Grade 9 Computer Science (0478)2. Data Transmission
Cambridge IGCSE Grade 10 Computer Science (0478)2. Data Transmission

Voice-over in this lesson is AI-generated. The script is written and checked by Kajal Ma'am. Boards can revise a syllabus mid-year, so confirm anything you plan around against the official board circular. Keep your passwords, OTPs and ID numbers to yourself — we never ask for them. To reach Kajal Ma'am, use the WhatsApp button; sharing your number there is how we call you back.

Free to watch, no sign-up. Live classes with Kajal Ma'am are the paid course; these lessons stay free either way.

Want a plan that actually fits your board dates?

Ask Kajal Ma'am directly, 20+ years teaching computer science. Free demo class first, no payment.

Talk to Kajal Ma'am on WhatsApp

Or see the Class 12 Computer Science course →

Studying outside India?

We coach CBSE, IGCSE & international students across the globe, one-to-one, in your local time zone.

Visit International →