Network Protocols and Layers

GCSE Computer Science · Networks

Network Protocols and Layers

A protocol is a set of rules that governs how data is transmitted across a network. Protocols ensure devices from different manufacturers can communicate. This note covers key protocols and the TCP/IP layered model.

---

The TCP/IP Model

The TCP/IP model organises network communication into four layers. Each layer has a specific role and uses particular protocols. Data passes down through the layers when sending and up through them when receiving.

LayerNameRoleProtocols
4ApplicationProvides network services to the user (web, email, file transfer)HTTP, HTTPS, FTP, SMTP, IMAP, POP3
3TransportSplits data into packets, ensures reliable delivery, manages connectionsTCP, UDP
2InternetAddresses packets and routes them across networksIP
1Network InterfaceHandles the physical transmission of dataEthernet, Wi-Fi

Why Use Layers?

  • Modularity — each layer can be developed and updated independently
  • Standardisation — manufacturers follow the same rules, ensuring compatibility
  • Troubleshooting — problems can be isolated to a specific layer
  • Interoperability — devices from different vendors work together

---

Key Protocols

HTTP and HTTPS (Application Layer)

ProtocolFull NamePortPurpose
HTTPHyperText Transfer Protocol80Transfers web pages between browser and server
HTTPSHTTP Secure443Same as HTTP but with encryption (TLS/SSL)
  • HTTPS encrypts data so it cannot be read if intercepted
  • Shown by a padlock icon in the browser
  • Essential for online banking, shopping, and login pages

FTP (Application Layer)

  • File Transfer Protocol — used to upload/download files to/from a server
  • Uses port 21
  • Common for website management (uploading files to a web server)
  • Can be authenticated (username/password) or anonymous

Email Protocols (Application Layer)

ProtocolPurposeDirection
SMTP (Simple Mail Transfer Protocol)Sending emailsClient → server, server → server
IMAP (Internet Message Access Protocol)Retrieving emails, stored on serverServer → client
POP3 (Post Office Protocol v3)Downloading emails, removed from serverServer → client

SMTP vs IMAP vs POP3

FeatureSMTPIMAPPOP3
DirectionSendingReceivingReceiving
Emails storedN/AOn serverDownloaded to device
Multiple devicesN/AYes (synced)No (one copy)
Internet neededTo sendTo accessOnly to download

TCP and UDP (Transport Layer)

FeatureTCPUDP
Full nameTransmission Control ProtocolUser Datagram Protocol
ConnectionConnection-oriented (handshake)Connectionless
ReliabilityReliable — checks delivery, resends lost packetsUnreliable — no delivery check
SpeedSlower (overhead)Faster (no overhead)
OrderGuarantees correct orderNo ordering guarantee
Use casesWeb pages, email, file transferVideo streaming, online gaming, VoIP

IP (Internet Layer)

  • Internet Protocol — responsible for addressing and routing packets
  • Every device has a unique IP address
  • IPv4: 32-bit address (e.g. 192.168.1.1) — about 4.3 billion addresses
  • IPv6: 128-bit address (e.g. 2001:0db8:85a3::8a2e:0370:7334) — virtually unlimited

---

Packet Switching

Data is broken into packets for transmission. Each packet contains:

ComponentPurpose
HeaderSource IP, destination IP, packet number, total packets
PayloadThe actual data being sent
TrailerError-checking data (checksum)

How Packet Switching Works

1. Data is split into packets, each numbered

2. Packets are sent independently and may take different routes

3. Routers direct each packet along the best available path

4. Packets arrive at the destination (possibly out of order)

5. Packets are reassembled in the correct order using packet numbers

6. Missing packets are re-requested

Advantages of Packet Switching

  • If a route is congested or broken, packets take alternative routes
  • Multiple communications can share the same network lines
  • More resilient — no single path needs to stay open

---

MAC Addresses vs IP Addresses

FeatureMAC AddressIP Address
Stands forMedia Access ControlInternet Protocol
Assigned byManufacturer (burned in)Network (can change)
Format48-bit (e.g. A1:B2:C3:D4:E5:F6)32-bit IPv4 or 128-bit IPv6
ScopeLocal network (LAN)Global (across networks)
UniquenessGlobally unique to hardwareUnique on the network
LayerNetwork InterfaceInternet

---

Domain Name System (DNS)

  • Translates domain names (e.g. brightrevision.co.uk) into IP addresses (e.g. 104.21.32.1)
  • Humans remember names; computers use numbers
  • DNS server stores a database of domain-to-IP mappings
  • Process: browser → DNS server → returns IP → browser connects to web server

---

Exam Tips

  • Know which layer each protocol belongs to in the TCP/IP model
  • Be clear on TCP vs UDP — TCP for reliability, UDP for speed
  • SMTP sends, IMAP and POP3 receive — a common exam question
  • Understand why HTTPS is preferred over HTTP (encryption prevents interception)
  • Know that packets can take different routes and are reassembled at the destination
  • Be able to explain why layering is beneficial (modularity, standardisation, troubleshooting)
Don't understand a part?

Sign in and ask our AI tutor to explain any passage in plain English.

Try AI explanations →

More on Networks

Networks: Types and Topologies Protocols, Layers and the Internet Network Hardware and Topologies

← All GCSE Computer Science notes