GCSE · Computer Science · Edexcel · Spec 1CP2
TCP/IP protocol
Send 'Hello!' and it doesn't travel as 'Hello!'. It's chopped up, labelled and wrapped. Let's watch it happen.
Computer Science · Networks
One message, down the stack and back up
Step through the journey of 'Hello!'. Watch what each layer adds on the way down and removes on the way up. The addresses and values are made-up examples.
Before you click Next: the link layer is the last stop on the way out. What do you think it adds that the layers above didn't?
Message: 'Hello!' (sent as two segments: 'Hel' and 'lo!')
Output
Step 1: The application layer is where the app (a web browser, an email program) hands over the data. It prepares the data for sending. Nothing is wrapped yet.
Click Next to move one layer at a time. Watch the 'Inside' and 'Left' rows: each wrapper holds everything from the layer above.
Computer Science · Networks
Which layer does it live at?
Place each protocol or technology at the layer where it works.
Still to sort
Application layer (0)
Used by applications such as web browsers and email.
Where the line is: If an app like a browser or an email program uses it directly, think application layer. If it splits data into segments, it's transport instead.
Transport layer (0)
Splits data into segments and states the port number.
Where the line is: Transport deals with segments. Once the data is wrapped in packets with IP addresses, you're at the internet layer.
Internet layer (0)
Packages segments into IP packets with sender and receiver IP addresses.
Where the line is: Internet is about getting packets to the right destination across different networks. Sending over each single link is the link layer.
Link layer (0)
Physical transmission over each link, using frames and MAC addresses.
Where the line is: The link layer is the technology of each link, such as Ethernet or Wi-Fi. It wraps IP packets in frames.
Every protocol here works at exactly one layer. Pick a protocol, then pick its layer.
Predict, then check
Five segments are sent using TCP. Think about what the receiver does with the numbers in their headers.
Segment 3 is lost on the way, and segment 5 arrives before segment 4. What does the receiving device end up with?
WHAT YOU'VE LEARNED
A quick recap of today's lesson.
Follow one message as it's wrapped up, sent, and unwrapped again.
What you need to know
- TCP/IP isn't one protocol. It's a conceptual four-layer model and set of protocols, each layer handling a different aspect of communication.
- The layers form a protocol stack. Going down, each layer accepts data from the layer above and adds extra information: encapsulation.
Have a goYour classmate Jo says, 'Encapsulation is when the receiving device opens the message up.' Confident. Is Jo right?
No. Encapsulation happens on the sending side, as the data goes down.
Each layer accepts data from the layer above and adds extra information to it, which is wrapping, not unwrapping.
- The application layer is on top. Web browsers and email use it, and HTTP, HTTPS, FTP, SMTP, POP and IMAP work here.
- The transport layer splits data into segments. Each header holds the segment's sequence number and the total number of segments.
Have a goA message is split into 3 segments, and segment 2 arrives first. How can the receiver tell where it fits?
Its header says it's segment 2 of 3, so the receiver knows its place.
The transport layer gives each segment a header with its sequence number and the total number of segments, so order doesn't depend on arrival time.
- The transport layer also states the port number used for sending and receiving, and adds a checksum to help detect errors.
- TCP and UDP both work at the transport layer: TCP is reliable, UDP is faster but less reliable.
- The internet layer packages segments into IP packets, whose headers hold the sender's and receiver's IP addresses. IP and ARP work here.
- The link layer wraps each IP packet in a frame that suits the link, and adds the MAC address of the next device on the path.
Have a goA frame is about to be sent to the next device on the path. Whose MAC address goes in it: the next device's, or the final destination's?
The next device's MAC address.
The link layer only handles one link at a time, so its frame includes the MAC address of the next device on the path, not the far end.
- At the receiving device it all runs in reverse: each layer removes what was added, gradually revealing the original data (decapsulation).
- An IP address is logical and assigned by the network; a MAC address is physical and built into the hardware.
The big picture
TCP/IP isn't one protocol. It's a four-layer model, and sending data means wrapping it layer by layer on the way down (encapsulation), then unwrapping it layer by layer at the other end (decapsulation). You'll also place common protocols at their layer, compare TCP with UDP, and tell an IP address from a MAC address.
Key points
Worked example
Problem
Marcus is on a live video call when one packet goes missing. Should this call use TCP or UDP, and what does that mean for the missing packet?
⚠ Watch out
Treating TCP/IP as one protocol, or mixing up TCP and IP. TCP works at the transport layer and IP at the internet layer, as two of the protocols inside a four-layer model.
Memory hook
Down the stack you wrap it up; up the stack you peel it off. To remember the layers from the top, try: Apples Taste Insanely Lovely (Application, Transport, Internet, Link).
Check yourself
Put these in order, outermost wrapper first, and name the layer that added each: frame, IP packet, segment. Answer: frame (link), IP packet (internet), segment (transport).
Flashcards
(13)What is TCP/IP?
The four TCP/IP layers, top to bottom?
What is a protocol stack?
What is encapsulation?
What does the application layer do?
What does the transport layer do to the data?
What are the port number and the checksum for?
What does TCP guarantee?
Why use UDP instead of TCP?
What does the internet layer add?
What does the link layer add?
What is decapsulation?
Which address is built into the hardware, and which layer uses it?
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 Edexcel GCSE Computer Science topics
How this lesson was checked. This Edexcel GCSE Computer Science (specification 1CP2)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 21 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.