IB Computer Science HL · Year 2 · Lesson 39

Network devices, protocols and TCP/IP model

Follow data from an application through TCP/IP layers and the devices that move it across local and wider networks.

Paper 150 minutesA2.1.3 · A2.1.4 · A2.1.5
Targets

Layer the explanation from application request to network signal

2 / 11
  • describe gateways, hardware firewalls, modems, NICs, routers, switches and wireless access points;
  • describe TCP, UDP, HTTP, HTTPS and DHCP;
  • describe application, transport, internet and network-interface layers;
  • explain how layer interactions and devices cooperate to deliver data reliably across a network.
A2.1.3A2.1.4A2.1.5
Learn + retrieve

Rapid Recall Deck

3 / 11

Attempt each card first. If a term is new, flip and study it, then answer it again without looking. Mark only secure recall as “Know it”.

A2.1.5 · HL

The TCP/IP model divides one transmission into cooperating responsibilities

4 / 11
Laptop application
      │
      v
Application layer      HTTP / HTTPS / DHCP
      │
      v
Transport layer        TCP / UDP
      │
      v
Internet layer         IP addressing + routing
      │
      v
Network interface      NIC / local-link transmission
      │
      v
Switch / WAP → Router → wider network

Describe the four-layer journey

A browser requests a secure web page. Describe the job of each TCP/IP layer without getting lost in implementation detail.

The application layer provides the web protocol/service such as HTTPS. The transport layer manages end-to-end transport using TCP for reliable ordered delivery. The internet layer handles IP addressing and routing between networks. The network-interface layer handles transmission over the local link/interface so frames/signals can move through the physical/local network. Each layer provides services to the layer above while adding/removing information needed for its part of delivery.

A2.1.4

Protocol choice depends on the communication requirement

5 / 11

TCP or UDP?

Choose a transport protocol and justify: (A) transferring a file that must arrive completely and in order; (B) a live voice stream where low delay matters more than recovering every lost packet.

A → TCP, because reliable ordered delivery/retransmission matters. B → UDP can be appropriate because lower overhead/latency can matter more than waiting to recover every lost packet.

HTTP or HTTPS?

Why should online banking use HTTPS rather than plain HTTP?

HTTPS protects the web communication using TLS, providing encrypted transmission and server authentication through certificates. Plain HTTP does not provide that transport security for sensitive banking data.

Devices

Local forwarding and inter-network routing are different jobs

6 / 11

DHCP

A new laptop joins a school network. Describe what DHCP contributes.

DHCP automatically provides the client with network configuration, including an IP address and other needed settings, reducing manual configuration and helping administrators manage address assignment.

Device path

A wired laptop sends data to a server on another network. Name a reasonable sequence of device roles from the laptop outward.

The laptop uses its NIC to access the local link. A switch forwards local frames toward the network exit. A router forwards IP packets between the local network and another network. A modem may adapt the connection to the provider's link, depending on the access technology.

A2.1.3

Device-to-layer mapping is functional, not a memorized one-to-one list

7 / 11

Map devices to TCP/IP layers

Give the most relevant layer(s) for each device, recognizing that some devices can inspect or operate across more than one layer.

NIC / switch / wireless access point
Router
Hardware firewall
Gateway
Modem

NIC, switch and WAP: primarily network-interface/local-link roles. Router: primarily internet-layer routing of IP packets. Hardware firewall: can inspect/filter across network/transport and, depending on design, application information. Gateway: can operate across layers when translating/mediating between systems/protocols. Modem: supports the network-interface/physical transmission connection to an access service.

Concept precision

Similar-looking devices solve different communication problems

8 / 11

Switch vs router

A student says “a switch and router both just send packets, so they are interchangeable.” Correct the statement.

A switch primarily forwards traffic within a local network using local-link addressing/forwarding, while a router connects different IP networks and selects routes for packets between them. Their roles can coexist in one device, but the networking functions are different.

Gateway vs router

When might a gateway be needed in addition to ordinary routing?

A gateway is useful when systems/networks need protocol, format or application translation/mediation rather than only forwarding packets between compatible IP networks.

Exam lens

Device + function is stronger than device name alone

9 / 11

Specimen-calibrated mini-set

1. Identify a device used to connect a LAN to the internet and describe its function.

2. Describe the function of the network-interface layer in the TCP/IP model.

3. Explain why TCP is suitable for downloading an important document.

  1. A router forwards packets between the LAN and other IP networks using routing information.
  2. The network-interface layer handles local-link access/transmission, framing/interface functions and movement of data across the immediate network medium.
  3. TCP supports reliable, ordered delivery with mechanisms for detecting/recovering from loss, so the complete document can be reconstructed correctly.
Exit check

Can you connect protocol, layer and device roles?

10 / 11

Exit synthesis

In one paragraph, describe how a secure browser request can involve HTTPS, TCP, IP routing, a NIC, a switch and a router.

The browser creates an HTTPS application-layer request. TCP provides reliable transport, while the internet layer uses IP addressing/routing information. The NIC places the data onto the local network; a switch forwards it locally toward the network exit; a router then forwards the IP packets toward the destination network. The receiving system reverses the layering process to deliver the secure web data to the application.

Homework

Finish the learning cycle

11 / 11

IA — main task

Continue IA D wrap-up/documentation. Ensure your final evidence demonstrates working functionality and effective testing.

Paper 1 — short practice

Rebuild the four-layer TCP/IP model from memory, place every required device/protocol on or near the correct functional layer, and explain TCP vs UDP.