Track progress, take quizzes and save notes on this lesson.

Free forever · no card needed

Start free
Intermediate

TCP/IP and Application Layer Protocols

4.9.4.1 TCP/IP·4.9.4.2 Standard application layer protocols

Aligned to the AQA 7517 specification

Level
Intermediate
Reading time
6 min
Published
13 June 2026
Updated
1 July 2026
On this page
  1. 1.The TCP/IP Four-Layer Model
  2. 2.Sockets, Ports, and MAC Addresses
  3. 3.FTP, HTTP, and HTTPS
  4. 4.SMTP, POP3, and SSH
  5. 5.Web Servers and Email Servers
  6. 6.Common Exam Mistakes

Key takeaways

  • TCP/IP has four layers: Application, Transport, Network/Internet and Link; each layer encapsulates the data from the layer above by adding its own header, which the receiver strips off.
  • A socket is a connection endpoint identified by an IP address + port number pair; well-known ports are 0–1023, while client (ephemeral) ports 1024–65535 are assigned dynamically per outgoing connection.
  • MAC addresses are hardware addresses used for local delivery within a LAN at the Link layer, while IP addresses are logical addresses used for routing between networks at the Network layer.
  • SMTP sends email as a push protocol (port 25) while POP3 retrieves it to a client (port 110); a client downloading new email therefore uses POP3, not SMTP.
  • HTTP (port 80) is stateless so each request is independent; HTTPS (port 443) runs HTTP over TLS, encrypting all traffic and using digital certificates to verify the server's identity.

The TCP/IP Four-Layer Model

TCP/IP is the protocol suite that underpins all Internet communication. It is organised into four layers, each with a distinct responsibility:

LayerResponsibilityExample protocols
ApplicationUser-facing protocols; formats data for appsHTTP, HTTPS, FTP, SMTP, POP3, SSH, DNS
TransportEnd-to-end delivery; segmentation; ports; reliabilityTCP, UDP
Network/InternetLogical addressing; routing between networksIP (IPv4, IPv6)
LinkPhysical delivery within one network segment; MAC addressesEthernet, WiFi (802.11)

Each layer encapsulates the data from the layer above, adding its own header. At the receiver, each layer strips its header and passes the payload upward.

Sockets, Ports, and MAC Addresses

Ports

A port is a number that identifies a specific service or application running on a host. The combination of IP address + port number identifies a specific endpoint of a connection.

Well-known ports (0–1023) are reserved for standard services:

PortProtocolService
20/21FTPFile transfer (data/control)
22SSHSecure remote access
25SMTPSending email
80HTTPWeb pages
110POP3Receiving email
443HTTPSEncrypted web

Client (ephemeral) ports (1024–65535) are dynamically assigned by the OS for each outgoing connection.

Sockets

A socket is the endpoint of a connection, identified by an IP address + port number pair. Every active connection has two sockets — one on the client and one on the server.

Client socket: 192.168.1.5:54321   ←→   Server socket: 93.184.216.34:443

MAC addresses

A MAC (Media Access Control) address is the hardware address of a network interface card. It is used for local delivery within a single network segment (LAN). MAC addresses operate at the Link layer; IP addresses operate at the Network layer. Routers use IP addresses to route between networks, then use MAC addresses to deliver within the final LAN segment.

FTP, HTTP, and HTTPS

FTP (File Transfer Protocol) — port 21

  • Used to transfer files between a client and a server
  • Supports anonymous access (no credentials) or authenticated access (username/password)
  • Separate control (port 21) and data (port 20) connections
  • Unencrypted — credentials and data sent in plaintext

HTTP (HyperText Transfer Protocol) — port 80

  • Transfers web pages (HTML, CSS, JavaScript, images) from a web server to a browser
  • Stateless — each request is independent; the server retains no memory of previous requests
  • Client sends a request (e.g. GET /index.html HTTP/1.1); server responds with status code + content

HTTPS (HTTP Secure) — port 443

  • HTTP over TLS (Transport Layer Security) — all traffic encrypted
  • Browser and server perform a TLS handshake using asymmetric encryption to exchange a symmetric session key
  • Uses digital certificates to verify the server's identity

SMTP, POP3, and SSH

SMTP (Simple Mail Transfer Protocol) — port 25

  • Used to send email from a client to a mail server, and between mail servers
  • Works as a push protocol — sender pushes mail to the server
  • Does not retrieve mail; it only sends

POP3 (Post Office Protocol 3) — port 110

  • Used to retrieve email from a mail server to a client
  • Downloads email to the local device and typically deletes it from the server
  • Simple — designed for single-device access

SSH (Secure Shell) — port 22

  • Provides secure remote login and command execution on a remote machine
  • Uses TCP; encrypts all traffic (commands, responses, data)
  • Replaced insecure Telnet for remote administration
  • Supports public-key authentication (no password needed)

Worth saving these ideas?

Turn what you've read into instant revision cards. Free to get started.

Make flashcards

Web Servers and Email Servers

Web server

  • Stores web pages and resources (HTML, images, CSS, JavaScript)
  • Listens on port 80 (HTTP) or 443 (HTTPS)
  • On receiving an HTTP GET request: locates the resource and responds with its content
  • Returns status codes: 200 OK, 404 Not Found, 301 Redirect, 500 Internal Server Error

Email server

  • Manages the sending and receiving of email
  • Uses SMTP to send outbound mail (client → server; server → server)
  • Uses POP3 (or IMAP) for clients to retrieve mail from the server
  • Stores mailboxes for each user until mail is retrieved

Full email flow:

Common Exam Mistakes

1. Confusing SMTP and POP3 roles

SMTP sends email (outbound push). POP3 retrieves email (inbound pull). A question asking which protocol is used when a user's client downloads new email: the answer is POP3, not SMTP.

2. Confusing MAC address and IP address

MAC addresses are hardware addresses used for local delivery within a LAN. IP addresses are logical addresses used for routing across networks. A packet may travel through many networks — at each hop, the MAC address changes (new source/destination MACs for that LAN segment), but the IP addresses remain the same end-to-end.

3. Stating HTTP maintains session state

HTTP is stateless — each request is independent. Websites that appear to have sessions (logged-in users) use cookies or session tokens layered on top of HTTP to simulate state.

4. Confusing port number ranges

Well-known ports: 0–1023 (assigned to standard services). Registered ports: 1024–49151. Ephemeral/dynamic ports: 49152–65535. Exam questions often ask which range is used for well-known services — the answer is 0–1023.

Key terms

TCP/IP
The protocol suite underpinning all Internet communication, organised into four layers: Application, Transport, Network/Internet and Link.
Encapsulation
The process by which each TCP/IP layer adds its own header to the data from the layer above, with the receiver stripping each header in turn.
Port
A number that identifies a specific service or application on a host; combined with an IP address it identifies a connection endpoint.
Socket
The endpoint of a connection, identified by an IP address + port number pair, with one socket on each of the client and server.
Well-known port
A reserved port number in the range 0–1023 assigned to standard services such as HTTP (80) and HTTPS (443).
MAC address
The hardware address of a network interface card, used for local delivery within a single network segment at the Link layer.
FTP
File Transfer Protocol: transfers files between client and server over separate control (port 21) and data (port 20) connections, unencrypted.
HTTP
HyperText Transfer Protocol (port 80): a stateless protocol that transfers web pages from a web server to a browser.
HTTPS
HTTP Secure (port 443): HTTP over TLS, encrypting all traffic and using digital certificates to verify the server's identity.
SMTP
Simple Mail Transfer Protocol (port 25): a push protocol used to send email from a client to a mail server and between mail servers.
POP3
Post Office Protocol 3 (port 110): retrieves email from a mail server to a client, typically deleting it from the server.
SSH
Secure Shell (port 22): provides encrypted remote login and command execution, replacing the insecure Telnet.

Frequently asked questions

SMTP sends email outbound as a push protocol on port 25, from a client to a mail server and between mail servers. POP3 retrieves email inbound on port 110, downloading it to the client and typically deleting it from the server. A client downloading new email uses POP3.

A MAC address is a hardware address used for local delivery within a single LAN at the Link layer. An IP address is a logical address used for routing across networks at the Network layer. As a packet hops between networks the MAC addresses change but the IP addresses stay the same end-to-end.

HTTP is stateless: each request is independent and the server retains no memory of previous requests. Websites that appear to track sessions, such as logged-in users, use cookies or session tokens layered on top of HTTP to simulate state.

Generate revision on any topic you study

Type any topic you're studying and Aicademy generates a complete lesson, quiz, and flashcard set, personalised to your level.

Lessons on anything

Structured, level-matched lessons on any topic you study

Practice quizzes

Find out what you actually know before the exam does

Flashcard sets

Lock in key concepts with instant revision cards

Ask Aica

Stuck on something? Get a clear explanation, any time

Prev

Internet Security

Next

IP Addressing and Network Management

Related lessons

6 min

6 min

Top students don’t revise more. They revise what counts.

Start revising free

Free to start. No card needed.