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

Sender: application→Sender: transport→Sender: internet→Sender: link→Across the link→Receiver: link→Receiver: internet→Receiver: transport→Receiver: application
data=web page request, prepared by an application-layer protocol such as HTTPlink info=none yetinternet info=none yettransport info=none yet

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.

1 / 9

Step through the trace — every value is the lesson’s, not run by the page.

Step 1 of 9: It starts at the top. The browser is an application, and an application-layer protocol such as HTTP gets the data ready to send..

Computer Science · Layer order

Stack the layers

Put the four layers in order, starting from the top of the model

1 · Top layer (data starts here when sent)4 · Bottom layer
  1. Internet layer

  2. Link layer

  3. Application layer

  4. Transport layer

Watch out: The internet layer is sometimes called the network layer, and the link layer is sometimes called the data link layer. Same layers, different names.

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.

11 of 11 still to sort.

MAC address vs IP address

MAC addressvsIP address

Both are addresses, so they're easy to mix up. They do different jobs.

Focus

What kind of address?

MAC address

Physical address

IP address

Logical address

The insight

Start here: physical versus logical is the difference everything else hangs on.

Where does it come from?

MAC address

Built into the device's hardware

IP address

Assigned by the network

Can it change?

MAC address

No, it is built in

IP address

Yes, it can change

Delivers data…

MAC address

Within a local network

IP address

Between different networks

Which layer uses it?

MAC address

Link layer

IP address

Internet layer

Computer Science · Have a go

Describe the transport layer

Describe what the transport layer of the TCP/IP model does when data is sent. [4 marks]

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

Exam line: One clear point per mark. Name what the layer does to the data, what goes in the header, and the two protocols.

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

1Four layers, top to bottom: application, transport, internet, link.
2Application layer protocols include HTTP, HTTPS, IMAP, SMTP, POP and FTP.
3Transport layer: segments, a header with segment number and total, a port number; TCP or UDP.
4Internet layer: IP packets with sender and receiver IP addresses; protocols include IP.
5Link layer: frames with the next node's MAC address; Ethernet or Wi-Fi depending on the technology.
6Encapsulation going down, decapsulation going up.
7MAC address: physical, local network, link layer. IP address: logical, between networks, internet layer.

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?
A conceptual four-layer model and set of protocols for internet communications, with each layer responsible for a different part of network communication.
The four TCP/IP layers, from the top?
Application, transport, internet, link.
Another name for the internet layer?
The network layer.
Another name for the link layer?
The data link layer.
What does the application layer do?
It is used by applications such as web browsers; its protocols prepare data for sending and decode received data into a meaningful form for the user.
What goes in a transport-layer segment header?
Information such as the segment number and the total number of segments, plus the port number used for sending and receiving.
TCP vs UDP?
TCP: reliable, ordered delivery without errors. UDP: faster but less reliable.
What does the internet layer add to each segment?
It packages it into an IP packet with the sender's and receiver's IP addresses so it can be routed to the correct location.
What does the link layer do?
Transports IP packets across each link on the path, wrapping them in frames with a header holding the MAC address of the next node.
Encapsulation
As data passes down the layers, each layer adds extra information to help with delivery.
Decapsulation
At the receiving device, each layer removes the extra information until the original data is revealed.
MAC address vs IP address?
MAC: physical, built into the hardware, used within a local network at the link layer. IP: logical, assigned by the network and can change, used between networks at the internet layer.

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 OCR GCSE Computer Science topics

See the full OCR Computer Science curriculum →

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.