GCSE · Computer Science · Edexcel · Spec 1CP2

4-layer TCP/IP model

You press send on an email. It gets split up, numbered, addressed and wrapped, layer by layer. Then the other end undoes every step.

Computer Science · Networks

Follow one email through the stack

Step it down the four layers, then watch it come back up at the other end.

Press Next to send the email down the sender's layers. Before each step, guess what that layer will add.

Message: Hi Sam, see you at 5!

Sender: application→Sender: transport→Sender: internet→Sender: link→Receiver: link→Receiver: internet→Receiver: transport→Receiver: application
Unit=data from the email clientThis layer's job=prepare the data for sending

Output

 

Step 1: The email client hands the message to the application layer. This layer prepares it for sending across the network.

1 / 8

Look at the chips below the path. 'Unit' tells you what the data is called at that layer.

Step 1 of 8: The email client hands the message to the application layer. This layer prepares it for sending across the network..

Watch out: Watch the direction. Going down, the layers add. Going up, they remove.

Computer Science · Networks

Which layer does each protocol live in?

Place each protocol at the layer where it operates.

Still to sort

Application layer (0)

Handles data directly from user applications such as web browsers or email.

Where the line is: If it deals with data from the user's application, it's here, not further down.

Transport layer (0)

Splits data into segments and states the port number.

Where the line is: If it is about how segments are delivered, it's here.

Internet layer (0)

Packages segments into IP packets so they can be routed across networks.

Where the line is: If it is about addressing packets for routing, it's here.

Link layer (0)

Moves packets across each individual link, using frames.

Where the line is: If it depends on the technology of the link, it's here.

11 of 11 still to sort.

Pick a protocol, then pick its layer.

Watch out: TCP and IP are two protocols that sit in two different layers. They are not the whole model.

Transport layer: two protocols

TCPvsUDP

Same layer, different trade-off.

Focus

Layer

TCP

Transport

UDP

Transport

The insight

They are rivals at the same layer, not partners at different layers.

Delivery

TCP

Reliable, and in order

UDP

Less reliable

Speed

TCP

Not as fast as UDP

UDP

Faster than TCP

Computer Science · Networks

Which idea is closest to yours?

Two friends are arguing about how an email gets from one computer to another.

Which idea is closest to what you think right now?
How sure are you?

Computer Science · Networks

Write it, then mark yourself

Describe what happens to data as it is sent from one device to another using the TCP/IP layers. [5 marks]

0 words · your answer stays on this page and is not sent anywhere.

WHAT YOU'VE LEARNED

A quick recap of today's lesson.

Four layers wrap your data on the way out and unwrap it on the way in.

What you need to know

  • Protocols are shared rules that let devices communicate, no matter who makes them.
  • Network protocols sit in layers on top of each other, called a protocol stack, with different protocols at each layer.
  • TCP/IP is a conceptual four-layer model and a set of protocols: application, transport, internet, link, from top to bottom.
  • Have a goYour mate says, 'TCP/IP? That's just two protocols, TCP and IP, easy.' Prove them wrong: list the model's layers from top to bottom.

    Application, transport, internet, link.

    The name suggests two protocols, but TCP/IP is a four-layer model plus a set of protocols.

  • The application layer prepares data from apps such as browsers or email, and decodes what arrives. Protocols include HTTP, HTTPS, IMAP, SMTP, POP and FTP.
  • The transport layer splits data into segments, gives each a header with its segment (sequence) number, and states the port number used for sending and receiving.
  • Have a goA long email reaches the transport layer. What does it get split into, and which number does each piece's header carry?

    Segments. Each header carries the segment (sequence) number.

    Splitting into segments and numbering them is the transport layer's job. The internet layer works on segments after that, not on the raw data.

  • The transport layer's protocols are TCP, for reliable delivery in order, and UDP, which is faster but less reliable.
  • The internet layer (sometimes called the network layer) packages segments into IP packets, with the sender's and receiver's IP addresses in the header. Its protocols include IP.
  • The link layer wraps IP packets in frames with the next device's MAC address. Its protocol depends on the link: Ethernet for wired, Wi-Fi for wireless.
  • Have a goA laptop sends over a cable. A phone sends over wireless. At the link layer, which protocol would each use?

    Ethernet for the cable (wired). Wi-Fi for the wireless.

    The link layer's protocol depends on the technology used for that link, so it isn't the same for every device.

  • Encapsulation: sending data passes down the layers, and each layer accepts data from above and adds extra information to help with delivery.
  • Decapsulation: at the receiver the data moves up, and each layer removes the extra information its matching layer added.
  • Have a goAt the receiver, the transport layer removes a header. Which layer added that header, and did the receiver add anything new?

    The sender's transport layer added it. The receiver added nothing.

    Each layer only removes what its matching layer added, so the layers at the receiver remove rather than add.

The big picture

The TCP/IP model has four layers: application, transport, internet and link. Going down, each layer adds extra information (encapsulation). At the receiver, going up, each layer removes what its matching layer added (decapsulation).

Key points

1TCP/IP is a four-layer model and a set of protocols, not just two protocols.
2Going down: application, transport, internet, link. Each layer adds extra information (encapsulation).
3The transport layer makes segments, the internet layer makes IP packets, the link layer makes frames.
4Going up: each layer removes what its matching layer added (decapsulation), revealing the original data.

Worked example

Problem

One segment has just left the transport layer on the sender. Describe what it looks like after it passes through the internet layer and then the link layer, and what the receiving device does to it.

⚠ Watch out

Mixing up what goes where. Segment (sequence) numbers and port numbers belong to the transport layer, IP addresses to the internet layer's packets, and the MAC address of the next device to the link layer's frames.

🧠

Memory hook

Down is wrapping, up is unwrapping. Think of posting a parcel: you wrap it in layers at your end, and the other person removes the same layers in reverse order.

✓

Check yourself

Cover the page. Name the four layers from top to bottom, say what each one adds on the way down, then say what happens to all of it at the receiver.

Flashcards

(13)
What is a protocol?
A set of shared rules that allows devices to communicate, no matter who makes them.
What is a protocol stack?
Network protocols organised into layers that sit on top of each other, with different protocols at each layer.
Name the four TCP/IP layers, top to bottom.
Application, transport, internet, link.
What does the application layer do?
Handles data directly from user applications such as web browsers or email, prepares it for sending and decodes received data into a meaningful form for the user.
Which protocols sit at the application layer?
HTTP, HTTPS, IMAP, SMTP, POP and FTP.
What does the transport layer do to the data it accepts?
Splits it into segments, each with a header carrying the segment (sequence) number, and states the port number used for sending and receiving.
TCP versus UDP?
Both are transport layer protocols. TCP gives reliable delivery in order. UDP is faster but less reliable.
What does the internet layer make, and what is in the header?
IP packets, made from segments. The header includes the sender's and receiver's IP addresses so packets can be routed to the correct destination.
Another name for the internet layer, and its protocol?
The network layer. Its protocols include IP.
What does the link layer wrap packets in, and which address goes in the header?
Frames, with the MAC address (physical address) of the next device on the path.
Which protocol does the link layer use?
It depends on the technology used for the link: Ethernet for wired networking, Wi-Fi for wireless networking.
What is encapsulation?
On sending, data passes down the layers and each layer adds extra information to help with delivery.
What is decapsulation?
At the receiver, data moves up the layers and each layer removes the information its matching layer added, revealing the original data.

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 posted

More Edexcel GCSE Computer Science topics

See the full Edexcel Computer Science curriculum →

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.