Skip to content
Marlbridge

Revision Notes

IB DP Computer Science A.2: Networks – Revision Notes

Recall notes on IB DP Computer Science A.2 Networks: devices and layers, TCP, UDP, HTTP, HTTPS, DHCP, packet switching, bandwidth and errors, with a self-test.

Level
IB
Topic
A.2 – Networks
Updated

Aligned to International Baccalaureate IB Diploma Programme Computer Science (DP Computer Science), First assessment 2027. Official subject brief .

Syllabus page (what it covers and how it is assessed): IB Diploma Programme Computer Science.

Found an error? Report a correction.

Need help with this topic? Request a free trial class for IB Diploma Programme Computer Science (DP Computer Science (2014) / DP Computer Science (2027)).

Condensed for quick recall of A.2 Networks, the second sub-topic of Theme A in IB DP Computer Science, first assessment 2027 (11 hours SL / 18 hours HL). For full explanations and the worked web-page example, use the A.2 study guide. The exact learning outcomes are in the full DP guide held by your school.

Key terms

Term Meaning
Client Device or program that requests a service
Server Device or program that provides a service
LAN Network over a small area, usually owned by one organisation
WAN Network linking LANs over large distances; the internet is one
Protocol Agreed rules for communication
MAC address Unique hardware address of a network interface
IP address Logical address used to route packets between networks
Port Number identifying the service or application on a host
Packet Unit of data with a header (addresses, sequence number) and payload
Packet switching Packets travel independently and are reassembled at the destination
Bandwidth Maximum data transfer rate, in bits per second
Latency Delay before data begins to arrive
Encapsulation Each layer adds its header as data moves down the stack
Attenuation Weakening of a signal over distance
Checksum Value calculated from data to detect errors
Two LANs, a school and an office, each with a server and client computers, joined by a WAN that spans large distances over infrastructure often leased from telecoms providers. Below, a client requests a service and a server provides it, such as files, web pages or addresses.
A LAN covers one site; a WAN links LANs over distance, and the internet is the largest WAN.

Devices: what they read and where they sit

Device Reads or handles Layer (typical) One-line role
NIC MAC addresses, frames Network interface Connects a device to a network
Switch MAC addresses Network interface Forwards frames to the right device within a LAN
WAP Wireless frames Network interface Joins wireless devices to a wired LAN
Modem Signals Network interface Converts digital data for transmission over a line
Router IP addresses Internet Forwards packets between networks, choosing routes
Gateway Different protocols Internet (often several) Connects networks that use different protocols
Hardware firewall IP addresses, ports, sometimes content Internet / transport Allows or blocks traffic by rules
Devices placed in TCP/IP layers by what they read. In the network interface layer, which reads MAC addresses: NIC, switch, wireless access point and modem. In the internet layer, which reads IP addresses: the router, and often the gateway, which may span several layers. The hardware firewall spans the internet and transport layers, filtering by IP addresses and port numbers.
A device’s layer follows from what it reads: MAC addresses, IP addresses or port numbers.
A laptop on the school Wi-Fi reaches a web server through a wireless access point, firewall, router and modem, then routers across the internet. Six steps: DHCP gives the laptop an IP address, the browser sends an HTTPS request, TCP splits it into segments, the firewall checks it and the router forwards it through the modem, internet routers forward packets by IP address, and TCP reassembles the reply.
Every device and protocol in A.2 plays a part in one page request.

Protocols compared

Protocol Layer Key feature Typical use
TCP Transport Connection, sequence numbers, acknowledgements, resending Web, email, file transfer
UDP Transport No connection or resending; low overhead Video calls, games, live streaming
HTTP Application Request and response for web resources Web browsing
HTTPS Application HTTP with TLS encryption and certificates Logins, payments, any private data
DHCP Application Assigns IP address and settings automatically Joining a network
TCP sets up a connection, numbers and acknowledges segments and resends a lost one, so data arrives complete and in order; it suits web pages, email and file transfer. UDP sends datagrams without acknowledgements or resending, so it is faster but may lose data; it suits live calls, games and streaming. HTTP fetches web pages, HTTPS adds TLS encryption and certificates, and DHCP hands out IP addresses.
TCP trades speed for completeness; UDP trades completeness for speed.

TCP/IP model (layer functions: HL only)

  1. Application: services to programs (HTTP, HTTPS, DHCP).
  2. Transport: segments, ports, reliability (TCP) or speed (UDP).
  3. Internet: IP addressing and routing.
  4. Network interface: frames on the physical medium within one network.

Reliability in one sentence: IP delivers packets on a best-effort basis; TCP detects loss or damage and resends, so the application receives complete, ordered data.

An HL diagram of the four TCP/IP layers with their roles. Going down, data gains a transport header to become a segment, an IP header to become a packet and a frame header to become a frame; the receiver removes the headers on the way up. Reliability comes from TCP re-requesting segments that the best-effort internet layer loses or damages.
Each layer adds its own header going down and strips it going up.

Packet switching in five steps

  1. Data is split into packets.
  2. Each packet gets a header: source, destination, sequence number.
  3. Routers forward each packet independently by the best available route.
  4. Packets may arrive out of order; they are reassembled by sequence number.
  5. With TCP, missing packets are requested again.

Advantages: efficient sharing of lines; rerouting around failures; scales to huge networks.

Each packet carries a header with source and destination addresses and a sequence number. Packets of one message travel independently through routers, each choosing the best available path, so they take different routes and arrive out of order (3, 1, 4, 2); the destination reassembles them as 1, 2, 3, 4 using the sequence numbers. Packet numbers are illustrative.
Packets travel independently and are put back in order by sequence number.

Bandwidth calculations

  • Convert bytes to bits: × 8.
  • Time (s) = data (bits) ÷ bandwidth (bits per second).
  • Example: 600 MB over 100 Mbps → 4,800 Mb ÷ 100 = 48 s at best.
A 50 MB file is 50 × 8 = 400 megabits; at a bandwidth of 20 Mbps it takes 400 ÷ 20 = 20 seconds at best, since congestion and overheads lower real speed. Common causes of errors are interference, attenuation, cable damage, congestion and wireless collisions; protocols respond with checksums and retransmission.
Convert bytes to bits before dividing by the bandwidth.

Causes of transmission error

Interference · attenuation over distance · damaged cables · congestion causing dropped packets · wireless collisions. Responses: checksums to detect errors; acknowledgements and retransmission.

Decentralisation

No central control; many independent networks agree on common protocols; routing around failures removes single points of failure, making the internet resilient and scalable but hard to regulate.

Seven networks linked in a mesh; when one central network fails, packets are routed around it through the others. No single organisation controls the internet, there is no single point of failure, and the result is resilient and able to grow but harder to regulate.
With no centre to fail, traffic finds another way round.

Exam traps

  • Switch vs router. MAC within a LAN vs IP between networks.
  • HTTPS is not “faster”. It is encrypted and authenticated.
  • UDP has uses. Choose it when speed matters more than every packet.
  • Bits and bytes. Bandwidth is in bits per second.
  • Scenario answers. Recommend a device or protocol and justify it with the scenario’s details.
  • SL vs HL. Device mapping is both levels; layer functions are HL only.

Self-test

  1. Give one difference between a LAN and a WAN.
  2. Which device forwards frames within a LAN using MAC addresses?
  3. Which device forwards packets between networks?
  4. At which TCP/IP layer does a router typically work?
  5. State two features of TCP that make it reliable.
  6. Why might a video-calling app use UDP?
  7. What does DHCP provide to a device joining a network?
  8. What does HTTPS add to HTTP?
  9. Why can packets of one message arrive out of order?
  10. A 200 MB file is sent over a 50 Mbps link. What is the minimum time?
  11. Name two causes of transmission error.
  12. Why is the internet described as decentralised?

Answers: 1. A LAN covers a small area and is usually owned by one organisation; a WAN covers a large area, often over leased lines. 2. A switch. 3. A router. 4. The internet layer. 5. Any two: sequence numbers; acknowledgements; resending lost segments; error checking; connection set-up. 6. Low delay matters more than receiving every packet; a lost packet is better skipped than resent late. 7. An IP address and settings such as the default gateway. 8. Encryption with TLS and authentication of the server by certificate. 9. Each packet is routed independently and may take a different path. 10. 200 × 8 = 1,600 Mb ÷ 50 = 32 seconds. 11. Any two: interference; attenuation; damaged cables; congestion; collisions. 12. No single organisation controls it; independent networks cooperate through shared protocols and traffic can be routed around failures.

Official syllabus

International Baccalaureate Organization, Diploma Programme Subject Brief – Sciences: Computer science, first assessment 2027, © 2024.

Related resources

Get free revision emails (optional)

Occasional emails with practice questions, worked explanations and links to free resources for the qualification and subjects you choose. No spam, and you can unsubscribe from any email. The free tools on this site never need an email.