Packets and the OSI Model
Level 1 · Networks and packets
Why data crosses a network as many small packets, not one big piece. What the seven layers of the OSI model are, and why people still use it.
Course contentsLesson 2 of 13
Level 1 · Networks and packets
Level 2 · Addresses and ports
Level 3 · How data travels
Level 4 · HTTP, the language of the web
Level 5 · Locked lines and go-betweens
After this lesson you can
- Explain why data is cut into packets
- Name what a packet carries
- Place a problem on a layer of the OSI model
11 mincovers 2 glossary entries
Worth reading first: Routers, Switches and LANs
Why data travels in small pieces
A network never sends a file in one piece. It cuts the file into packets, small pieces of about 1,500 bytes each. A photo of 3 megabytes becomes around 2,000 packets. Each one carries an address label, so it can find its own way, and the far end puts them back together.
Small pieces share a line fairly. A big file sent whole would block the line until it was done. As packets, your file, a video call and a neighbour's game all share the line, a few pieces at a time. A lost piece also costs little, because only that piece has to be sent again.
Each packet has two parts. The header is the label: where it came from, where it is going, and its number in the line. The rest is the data itself. Routers read the header and never need to look at the data.
The OSI model is a map that splits network work into seven layers. Layer 1 is the cable or the radio. Layer 2 is the local network and MAC addresses. Layer 3 is the address that crosses the internet. Layer 4 makes sure the data arrives. Layer 7 is the app, such as a web page.
Each layer only talks to the ones just above and below it. The app does not care whether the data went over a cable or Wi-Fi. The cable does not care whether it carries a web page or a call. That is why a new kind of Wi-Fi works with old apps.
The real internet uses a simpler set of four layers, but people still name problems by OSI number. A layer 1 problem is an unplugged cable. A layer 7 problem is an app bug. Saying the number tells a colleague where to look first.
A common mistake is to start fixing at the top. When a site will not load, check the bottom first: is the cable in, is the Wi-Fi on, does the network answer at all? Most faults are lower down than they look.
Worked example
Jack's video call breaks up
Jack's video calls freeze every few minutes, but web pages load fine. He checks the bottom layers first.
His laptop is on Wi-Fi two rooms away from the router, and some packets are lost on the way. He plugs in a cable, a layer 1 fix, and the calls stop freezing.
The words for this lesson2
Check yourself
Why does a network cut a file into packets?
Finished this lesson?
Marking it complete also marks its 2 glossary entries learned, which updates your roadmap and your saved page. 0 are already marked.