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!')

Sender · Application→Sender · Transport→Sender · Internet→Sender · Link→Receiver · Link→Receiver · Internet→Receiver · Transport→Receiver · Application
Layer=Application (top)Added so far=nothing yetWhat it holds=the data: 'Hello!'

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.

1 / 8

Click Next to move one layer at a time. Watch the 'Inside' and 'Left' rows: each wrapper holds everything from the layer above.

Step 1 of 8: 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..

Exam line: Sending is encapsulation: each layer accepts data from the layer above and adds extra information. Receiving is decapsulation: each layer removes what was added, gradually revealing the original data.
Watch out: The layers run in a fixed order. The frame is wrapped last on the way down, so it has to come off first on the way up.

Computer Science · Networks

So what is TCP/IP, really?

You've just seen one message pass through four layers. The name 'TCP/IP' sounds like one thing. Is it?

Which of these is closest to what you think TCP/IP is?
How sure are you?

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.

12 of 12 still to sort.

Every protocol here works at exactly one layer. Pick a protocol, then pick its layer.

Exam line: Application: HTTP, HTTPS, FTP, SMTP, POP, IMAP. Transport: TCP, UDP. Internet: IP, ARP.
Watch out: TCP and IP are two different protocols at two different layers. Don't let 'TCP/IP' glue them together.

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?

Computer Science · Networks

TCP or UDP?

Tick every property that is true of each protocol, then check your grid.

TCP
UDP

Exam line: TCP: reliable, in order, used for web browsing and email. UDP: faster but less reliable, used for streaming, online games and video calls.

Computer Science · Networks

IP addressvsMAC address

Two addresses, two jobs. In the journey you saw one at the internet layer and one at the link layer.

Focus

What kind of address

IP address

Logical

MAC address

Physical

The insight

Logical means it's given to the device by the network. Physical means it belongs to the device's hardware.

Where it comes from

IP address

Assigned by the network, and able to change

MAC address

Built into the device's hardware

Layer that uses it

IP address

Internet layer

MAC address

Link layer

What it's used for

IP address

Delivering data between different networks

MAC address

Delivering data within a local network

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

1TCP/IP is a conceptual four-layer model and set of protocols, not a single protocol.
2Sending: each layer adds extra information (encapsulation). Receiving: each layer removes it (decapsulation).
3Application layer: HTTP, HTTPS, FTP, SMTP, POP, IMAP. Transport layer: TCP and UDP. Internet layer: IP and ARP.
4The transport layer makes segments, with sequence number, total segments, port number and a checksum.
5The internet layer makes IP packets with IP addresses. The link layer makes frames with the next device's MAC address.
6TCP is reliable (ordered, acknowledged, missing segments sent again). UDP is faster but less reliable.
7An IP address is logical, assigned by the network and able to change. A MAC address is physical and built into the hardware.

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?
A conceptual four-layer model and set of protocols for internet communications. It is not a single protocol.
The four TCP/IP layers, top to bottom?
Application, transport, internet (sometimes called network), link.
What is a protocol stack?
Layers of network protocols stacked on top of each other, organising data as it passes through them.
What is encapsulation?
When data is sent, each layer accepts data from the layer above and adds extra information to help with delivery.
What does the application layer do?
It is used by applications such as web browsers and email, prepares data for sending, and decodes received data into a meaningful form for the end user.
What does the transport layer do to the data?
Splits it into segments, each with a header holding the segment's sequence number and the total number of segments.
What are the port number and the checksum for?
The port number states the port used for sending and receiving the data. The checksum helps detect errors.
What does TCP guarantee?
Reliable transfer: data delivered in order and without errors, using acknowledgements and by sending missing segments again.
Why use UDP instead of TCP?
It is faster, but less reliable. It does not guarantee delivery or order, so it suits uses where a missed packet is less crucial.
What does the internet layer add?
It packages segments into IP packets, with the sender's and receiver's IP addresses in the header, so they can be routed across networks.
What does the link layer add?
It wraps IP packets in frames suited to the link's technology. Each frame includes the MAC address of the next device on the path.
What is decapsulation?
At the receiving device, each layer removes the extra information added at the sending end, gradually revealing the original data.
Which address is built into the hardware, and which layer uses it?
The MAC address (physical). The link layer uses it within a local network.

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.