GCSE · Computer Science · OCR · Spec J277
TCP/IP
You tap a link and a page appears. Behind that tap, your request gets wrapped up four times, sent, then unwrapped four times. Let's follow it.
Computer Science · Networks
Follow one web page request through the layers
Step through it. Watch what gets added on the way down, and what gets taken off on the way up.
Before you press Next: what do you think the receiver has to do with all those extra layers of information?
Message: a web page request from a browser
Output
Step 1: It starts at the top. The browser is an application, and an application-layer protocol such as HTTP gets the data ready to send.
Step through the trace — every value is the lesson’s, not run by the page.
Computer Science · Protocols
Which layer does each protocol live in?
Pick a protocol, then pick the layer you think it belongs to.
Still to sort
Application layer (0)
Prepares data for apps and decodes it for the user.
Transport layer (0)
Splits data into segments and adds port numbers.
Internet layer (0)
Packages segments into IP packets with IP addresses.
Where the line is: TCP and IP are often said together as 'TCP/IP', but they sit in different layers.
Link layer (0)
Wraps packets in frames to cross each link.
WHAT YOU'VE LEARNED
A quick recap of today's lesson.
Four layers, wrapped on the way down and unwrapped on the way up.
What you need to know
- The TCP/IP model is a four-layer model, plus a set of protocols, for internet communication.
- Each layer has its own job in getting data across a network.
- From the top, the layers are application, transport, internet and link.
Have a goYour friend insists data is sent starting from the link layer, 'because that's the one touching the cable'. Which layer does the data actually start in when you send it?
The application layer, at the top.
The link layer is where the data finally leaves, but sending starts at the top, where the app hands its data down.
- Application layer: apps like browsers use protocols such as HTTP, HTTPS, IMAP, SMTP, POP and FTP to prepare and decode data.
- Transport layer: data is split into segments, each with a segment number, total and port number; it uses TCP or UDP.
- TCP gives reliable, ordered delivery without errors, while UDP is faster but less reliable.
Have a goA file has to arrive complete, with nothing missing or out of order. TCP or UDP?
TCP.
UDP is faster, but it is less reliable; TCP is the one that gives reliable, ordered delivery without errors.
- Internet layer: segments become IP packets carrying the sender's and receiver's IP addresses, so they can be routed.
- Link layer: packets are wrapped in frames with the next node's MAC address, using Ethernet or Wi-Fi depending on the technology.
- Going down, each layer adds information (encapsulation); going up at the receiver, each layer removes it (decapsulation).
Have a goData has just arrived at the receiver's link layer. Will the next layer up add information or remove it?
Remove it.
Adding information happens on the way down at the sender; at the receiver each layer takes its information off.
- A MAC address is physical and built in; an IP address is logical, assigned by the network and can change.
The big picture
The TCP/IP model is a four-layer model and set of protocols for internet communication. Data goes down the sender's layers (application, transport, internet, link), with each layer adding its own information, then back up the receiver's layers as that information is removed.
Key points
Worked example
Problem
An application on a laptop sends data using SMTP. Say what happens to the data at each layer of the sending laptop, in order.
⚠ Watch out
Treating MAC and IP addresses as the same thing. A MAC address is physical, built into the hardware, and works within a local network at the link layer. An IP address is logical, assigned by the network, can change, and works between networks at the internet layer.
Memory hook
All Trains Inspect Luggage: Application, Transport, Internet, Link, from the top down. Wrap on the way down, unwrap on the way up.
Check yourself
Without looking: name the four layers from the top, and say what extra information the transport layer and the internet layer each add to the data.
Flashcards
(12)What is the TCP/IP model?
The four TCP/IP layers, from the top?
Another name for the internet layer?
Another name for the link layer?
What does the application layer do?
What goes in a transport-layer segment header?
TCP vs UDP?
What does the internet layer add to each segment?
What does the link layer do?
Encapsulation
Decapsulation
MAC address vs IP address?
Tap any card to flip it, or use Study as deck to go through them one at a time. In the full lesson these run as a spaced-repetition deck — you rate each card Hard, Good or Easy and the tricky ones keep coming back until they stick.
Learning with Lightbulb is opening soon
You can use this lesson now. Join the waitlist and we'll let you know when the full Lightbulb experience is ready.
Keep me postedMore OCR GCSE Computer Science topics
How this lesson was checked. This OCR GCSE Computer Science (specification J277)lesson was published through Lightbulb Learning's human-designed editorial process — the educational standards, accuracy rules and publication checks it must pass were authored and approved by Philip Halpin. It passed subject-specific assessment, automated educational checks and technical publication verification before going live (publication checks completed 9 November 2026). Published pages are monitored, human spot-checking is ongoing across the lesson library, and anything found wrong is corrected or withdrawn. How our lessons are made and checked. Spotted a mistake? Email hello@lightbulblearning.co and we'll review it.