IB Computer Science2027 syllabus
Level view
A2.1.3

The function of network devices

SL & HL25 min readLesson

In one sentence: Dedicated hardware devices connect end devices to local media, direct traffic inside a local area network, translate between networks, enforce security rules, and forward packets between separate networks across specific layers of the TCP/IP model.

What you will learn

By the end of this lesson, you should be able to:

  • Explain the purpose and operation of seven core network devices: gateway, hardware firewall, modem, network interface card (NIC), router, switch, and wireless access point (WAP).
  • Distinguish logical device functions even when one physical home or small-office unit combines several of them.
  • Map each network device accurately to the layer or layers of the TCP/IP model where it primarily operates.

Before you begin

Review A2.1.1: The purpose and characteristics of networks so you are comfortable separating a local area network (LAN) from a wide area network (WAN) and external internet connections.

Key words

TermSimple meaning
GatewayA network device that joins two networks using different communication protocols and translates traffic between them.
FirewallA hardware or software security barrier that monitors and filters incoming and outgoing network traffic using security rules.
ModemA modulator-demodulator that converts digital signals to analogue form for transmission and demodulates incoming analogue signals back into digital form.
Network interface card (NIC)Hardware built into a computer, phone, or printer that connects it to a wired cable or wireless radio network.
RouterA device that inspects network address headers and forwards data packets along efficient paths between different networks.
Network switchA device connecting wired devices inside one LAN segment, forwarding frames selectively to the exact destination device using MAC addresses.
Wireless access point (WAP)A device allowing Wi-Fi endpoints to join a wired LAN and optionally extend wireless coverage.

The idea, step by step

Why one home box does multiple jobs

Many homes and small offices have a single physical plastic box plugged into the wall socket, often loosely called "the router" or "the modem". Logically, however, that single unit performs several separate networking roles at once: switching local Ethernet cables, providing Wi-Fi access, routing packets to the internet service provider (ISP), filtering unwanted incoming traffic, and sometimes modulating signals or translating access protocols. Understanding each device by the problem it solves keeps their roles clear in larger enterprise networks where each job is handled by dedicated hardware.

Quick orientation: the four TCP/IP layers

In networking, communication tasks are organized into four stacked layers (from top to bottom):

TCP/IP layerMain focus
ApplicationFormatting user-level protocol messages and translating between differing network protocols
TransportManaging application-to-application sessions and TCP/UDP port delivery
InternetLogical IP addressing and routing data packets between separate networks
Network interfacePhysical media connections (copper cable, fibre, Wi-Fi radio) and local hardware MAC addresses

Each of the seven devices below sits at the layer matching the information it inspects or transforms.

1. Gateway

A gateway joins two separate networks that may communicate using different underlying protocols and performs the protocol conversion needed so traffic can move between them. For example, a gateway connecting a premises network to an optical ISP line may convert between EPON (Ethernet passive optical network) framing and standard Ethernet, or translate higher-level service protocols between disparate systems. Because it translates data formats and communication rules from one network system to another, a gateway operates primarily at the Application layer of the TCP/IP model.

2. Hardware firewall

A hardware firewall acts as a protective security barrier placed between a trusted internal LAN and an untrusted external network such as the internet. It monitors incoming and outgoing network traffic and permits or blocks transmissions according to an administrator's rule list (for example, allowing or denying source and destination IP addresses and specific TCP or UDP port numbers). Because filtering decisions inspect both IP addresses and transport port numbers, a hardware firewall operates at the Transport and Internet layers.

3. Modem

The word modem is short for modulator-demodulator. Digital computers generate binary signals, whereas older or analogue carrier lines (such as twisted-pair copper phone lines or coaxial cable carriers) transmit continuous analogue waveforms. A modem modulates outbound digital bit streams onto an analogue carrier signal and demodulates incoming analogue waveforms back into digital data. Because it handles signal encoding onto physical transmission media, a modem functions at the Network interface layer.

4. Network interface card (NIC)

A network interface card (NIC) is the physical hardware adapter inside an endpoint device (such as a laptop, desktop PC, smartphone, or network printer) that enables it to join a network. A NIC provides either a physical port for twisted-pair Ethernet or fibre-optic cabling, or a radio transceiver and antenna for wireless networks, along with a burnt-in hardware MAC address. Because it transmits and receives raw signals directly on the local medium, the NIC operates at the Network interface layer.

5. Router

A router connects separate networks together (for example, linking a school LAN to an ISP's WAN). When a packet arrives, the router inspects the destination network IP address stored in the packet header, consults routing paths, and forwards the packet along the optimal route toward its next network hop. Because routing decisions rely on logical IP addresses across interconnected networks, a router's core operation sits at the Internet layer (while its physical network ports interface with local links at the network interface layer).

6. Switch

A switch connects multiple wired devices within a single LAN segment, forming the central hub of a modern wired LAN. Rather than blindly broadcasting every signal out of all ports, an Ethernet switch reads the destination hardware MAC address of each arriving frame and forwards the data exclusively to the physical port connected to the intended local device. Because switches forward frames inside one local segment using hardware MAC addresses, they operate at the Network interface layer.

7. Wireless access point (WAP)

A wireless access point (WAP) enables laptops, tablets, and smartphones with wireless NICs to join a wired LAN using Wi-Fi radio signals, playing a local bridging role parallel to a wired switch. Larger buildings place multiple WAPs in corridors or ceilings both to accommodate wireless clients and to extend wireless range cleanly without dead spots. Because it manages local wireless media access and MAC framing into the LAN segment, a WAP operates at the Network interface layer.

Consolidated summary of all seven network devices

DeviceCore functionAddress / information inspected or handledPrimary TCP/IP layer
GatewayJoins networks and translates between different protocolsApplication/network protocol formatsApplication
Hardware firewallFilters inbound and outbound traffic using allow/deny rulesIP addresses and TCP/UDP port numbersTransport and Internet
RouterSelects optimal routes and forwards packets between separate networksDestination IP addressesInternet
ModemModulates digital data to analogue signals and demodulates backDigital/analogue physical carrier signalsNetwork interface
Network interface card (NIC)Connects an individual host to wired cable or Wi-Fi mediaHardware MAC address and media signallingNetwork interface
SwitchLinks wired hosts in one LAN segment and forwards frames selectivelyHardware MAC addressesNetwork interface
Wireless access point (WAP)Connects wireless devices to a LAN and extends Wi-Fi coverageWireless radio framing and MAC addressesNetwork interface

Worked example

Trace the path when a student saves a science report from a classroom tablet to a web submission server outside the school:

  1. The tablet's wireless NIC transmits the outgoing request over radio waves.
  2. The classroom ceiling WAP receives the wireless signal and passes it into the wired corridor network.
  3. A wired floor switch inspects the local MAC header and forwards the frame across the internal LAN segment toward the school's internet edge.
  4. The hardware firewall verifies that outbound web traffic (on standard web port 443) matches permitted rules.
  5. The router reads the distant server's destination IP address and forwards the packet out of the school LAN onto the external ISP link.
  6. Where the school's internal protocol needs conversion onto the ISP's access network, a gateway (and modem, if using an analogue carrier line) adapts the framing and signals cleanly onto the external medium.

Check your understanding

  1. Which hardware address does a switch inspect when deciding which port on a LAN receives a frame, and how does this differ from what a router inspects?
  2. Why does a modem need to sit between a digital computer network and an analogue telephone transmission line?
  3. At which two TCP/IP layers does a hardware firewall typically inspect traffic rules, and what values do those rules filter?
  4. Explain the difference between a gateway and a wireless access point in terms of both purpose and TCP/IP layer placement.

Common mix-up

It is easy to think: Switches and routers do the same job inside a network, and a home router box contains only one device type.

Instead, remember: A switch keeps frames inside a single LAN segment using MAC addresses (Network interface layer), whereas a router forwards packets between separate networks using IP addresses (Internet layer). A typical domestic "router" physically bundles a switch, WAP, router, hardware firewall, and sometimes a modem and gateway inside one enclosure.

Quick recap

  • Gateways translate protocols between distinct networks at the Application layer.
  • Hardware firewalls enforce IP and TCP/UDP port allow/deny barriers at the Transport and Internet layers.
  • Routers inspect IP addresses to direct packets across separate networks at the Internet layer.
  • Modems, NICs, switches, and wireless access points all operate at the Network interface layer, handling physical media transmission and local MAC addressing.

Textbook reading

  • Computer Science (Baumgarten, Ganea, Turland, 2025), A2 Networks > A2.1 Network fundamentals > A2.1.3 The function of network devices, Book pp. 117–119 (PDF pp. 127–129; WAP finishes on the top half of Book p. 119 / PDF p. 129).
  • Read these pages alongside this note; this lesson is an original summary and does not replace the textbook.

Sources and further learning

  • IB Computer Science Guide (first assessment 2027), A2.1.3: Describe the function of network devices (Guide p. 31; PDF p. 37).
  • Computer Science (Baumgarten, Ganea, Turland, 2025), A2.1.3 The function of network devices, Book pp. 117–119 (PDF pp. 127–129).
Check your understanding5 questions · 10 marks · 12 min
Take the lesson check
Something not right?