Skip to content
Marlbridge

Study Guides

IB DP Computer Science A.2: Networks

Study guide to A.2 Networks in IB DP Computer Science (first assessment 2027): clients and servers, devices, TCP/IP layers, protocols and packet switching.

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)).

A.2 Networks is the second sub-topic of Theme A, “Concepts of computer science”, in the IB Diploma Programme Computer Science course first assessed in 2027. It explains how computers communicate: the roles of clients and servers, the difference between local and wide area networks, the devices that move data, the protocols that govern it, and how data crosses the internet in packets. The subject brief recommends 11 hours at SL and 18 at HL, and A.2 is examined on Paper 1 with the pre-released case study.

Scope of this page. This page is written from the IB’s public Diploma Programme Subject Brief, Sciences: Computer science, first assessment 2027 (© International Baccalaureate Organization 2024) and the A.2 content summarised in our Theme A study guide. The detailed learning outcomes are in the full DP Computer Science guide; check your school’s copy for the exact content and depth.

What does A.2 cover?

  • Network fundamentals: clients and servers; local area networks (LANs) and wide area networks (WANs).
  • Network devices: gateways, hardware firewalls, modems, network interface cards, routers, switches and wireless access points, and how they map to the layers of the TCP/IP model (SL and HL).
  • Protocols: TCP, UDP, HTTP, HTTPS and DHCP.
  • HL only: the function of the TCP/IP model itself: the role of the application, transport, internet and network interface layers and how they interact to ensure reliable transmission.
  • Data transmission: packet switching, bandwidth, common causes of transmission error, and why the internet’s architecture is described as decentralised.

Clients, servers, LANs and WANs

A server is a computer or program that provides a service, such as storing files, hosting web pages or handing out addresses. A client requests that service. One machine can be both: a laptop is a client when it browses the web and a server when it shares a printer.

A LAN covers a small geographical area, such as a school or office, and the organisation usually owns its infrastructure. A WAN connects LANs over large distances, often through infrastructure leased from telecommunications providers; the internet is the largest WAN.

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.

What does each device do?

Device Function TCP/IP layer it typically works at
Network interface card (NIC) Connects a device to a network; has a unique MAC address Network interface
Switch Connects devices within a LAN and forwards frames only to the device whose MAC address matches Network interface
Wireless access point (WAP) Lets wireless devices join a wired network Network interface
Modem Converts digital signals to a form that can travel over a line (and back) Network interface
Router Forwards packets between different networks using IP addresses, choosing a route Internet
Gateway Connects networks that use different protocols, translating between them Often the internet layer, and may work across several layers
Hardware firewall Inspects traffic entering or leaving a network and blocks it according to rules, such as IP addresses and port numbers Internet and transport (some firewalls also inspect application data)

The reason for the mapping is what each device reads: a switch reads MAC addresses (network interface layer); a router reads IP addresses (internet layer); a firewall that filters by port reads transport-layer information.

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.

Which protocols must you know?

A protocol is an agreed set of rules for communication.

  • TCP (Transmission Control Protocol): connection-based; sets up a connection, numbers the segments, checks for errors, acknowledges receipt and resends anything lost, so data arrives complete and in order. Used for web pages, email and file transfer.
  • UDP (User Datagram Protocol): connectionless; sends datagrams without acknowledgements or resending. Faster with less overhead, but some data may be lost. Used for live video calls, online games and streaming, where speed matters more than every packet.
  • HTTP (Hypertext Transfer Protocol): the application-layer rules by which browsers request web pages and servers send them.
  • HTTPS: HTTP with encryption (using TLS), so data cannot be read if intercepted and the server’s identity can be checked with a certificate. Essential for logins and payments.
  • DHCP (Dynamic Host Configuration Protocol): automatically gives a device joining a network an IP address and other settings, such as the default gateway, for a period of time.
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.

The TCP/IP model (layer functions are HL only)

Layer Role Examples
Application Provides network services to applications HTTP, HTTPS, DHCP
Transport Splits data into segments, manages ports, and provides reliability (TCP) or speed (UDP) TCP, UDP
Internet Adds IP addresses and routes packets across networks IP; routers
Network interface Sends frames over the physical medium within one network Ethernet, Wi-Fi; NICs, switches

When a message is sent, each layer adds its own header (encapsulation) as data moves down; at the receiver, each layer reads and removes its header as data moves up. Reliability comes from the layers working together: the internet layer delivers packets on a best-effort basis, and TCP at the transport layer detects missing or damaged segments and requests them again.

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.
The four layers of the TCP/IP model stacked from top to bottom: application, transport, internet and network interface, with two-way arrows between neighbouring layers showing that they interact to ensure reliable data transmission. Knowing the function of the layers is HL only. Beside the application layer sit the protocols HTTP, HTTPS and DHCP, and beside the transport layer sit TCP and UDP; knowing these protocols is required at SL and HL.
The four TCP/IP layers (layer roles are HL only) with the protocols named in the syllabus.

How does packet switching work?

Data is split into packets, each with a header containing the source and destination addresses and a sequence number. Packets travel independently: each router chooses the best available path, so packets of one message may take different routes and arrive out of order. At the destination they are reassembled using the sequence numbers; with TCP, missing packets are requested again.

Why it is used: lines are shared efficiently rather than reserved for one conversation; traffic can be routed around a broken link or a busy router; and it scales to very large 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 and transmission errors

Bandwidth is the maximum rate at which data can be transferred, measured in bits per second. Actual speed is often lower because of congestion and protocol overheads.

Worked example: a 50 MB file is sent over a connection with a bandwidth of 20 Mbps.

  • 50 MB = 50 × 8 = 400 megabits.
  • Time = 400 ÷ 20 = 20 seconds, at best.

Common causes of transmission error: electromagnetic interference; signal weakening over long cables or distance from a wireless access point (attenuation); physical damage to cables; congestion, which causes routers to drop packets; and collisions or interference between wireless signals. Protocols respond with error detection, such as checksums, and retransmission.

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.

Why is the internet decentralised?

No single computer or organisation controls the internet. It is a network of networks, run by many independent organisations that agree to use common protocols. Because routers can send packets around failures, there is no single point whose failure stops the whole system. This makes the internet resilient and able to grow, but also harder 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.

Worked example: loading a web page

  1. A laptop joins the school Wi-Fi through a WAP; DHCP gives it an IP address.
  2. The browser sends an HTTPS request to the web server.
  3. TCP establishes a connection and splits the request into segments.
  4. The school firewall checks that the traffic is allowed; the router forwards packets towards the internet through the modem.
  5. Routers across the internet forward packets by IP address; the server’s reply returns the same way.
  6. TCP reassembles the response in order and the browser displays the page.
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.

Common mistakes

  • Saying a switch and a router do the same thing: a switch works within a LAN using MAC addresses; a router connects networks using IP addresses.
  • Calling HTTPS “a faster HTTP”: it adds encryption and authentication.
  • Saying UDP is “unreliable so never used”: it is chosen when speed matters more than completeness.
  • Forgetting the 8 when converting bytes to bits in bandwidth calculations.
  • At SL, writing at length about layer functions when the question asks only for a device’s role.

Frequently asked questions

Is the TCP/IP model on the SL course? Mapping devices to the layers is SL and HL; the function of the model’s layers is HL only.

Do I need to know IP address formats in detail? Know what an IP address is for and how it differs from a MAC address; check the full guide for any further detail.

Source

International Baccalaureate Organization, Diploma Programme Subject Brief, Sciences: Computer science, first assessment 2027 (© 2024). The complete subject guide is available through the IB Programme Resource Centre.

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.