IB COMPUTER SCIENCE | A2.1.3 Network Devices

Lesson objective

Describe gateways, hardware firewalls, modems, NICs, routers, switches and wireless access points, and map their functions to the TCP/IP model.

Learn

A2.1.3 | FUNCTION OF NETWORK DEVICES

01 | CONNECTING DEVICES REQUIRES DIFFERENT JOBS

A laptop sends a file to a local server, then requests a resource on another network. Some equipment connects the laptop to a link, some forwards local traffic, some chooses a route between networks and some applies a security policy.

This lesson describes the seven device categories in the specification: gateways, hardware firewalls, modems, network interface cards, routers, switches and wireless access points.

A device’s function is more important than its box shape or product label. A home “router” often combines routing, switching, wireless access and firewall functions; in a larger network these can be separate devices.

We will also map functions to the four-layer TCP/IP model. Some functions belong mainly to one layer, while multifunction devices and inspection features can span several.

02 | SEE THE FUNCTIONS IN ONE NETWORK

Follow the links from the laptop to the local server, then follow the branch towards the provider. Local communication on the same LAN does not automatically need the router or external connection.

This is a simplified arrangement with separate functions. Other valid networks place security devices differently, combine them with a router or use a fibre access terminal rather than a modem.

LAPTOPWireless NICACCESS POINTWi-Fi ↔ LANSWITCHLocal framesLOCAL SERVERSame LANROUTERBetween networksFIREWALLTraffic policyMODEMAccess signallingPROVIDEROnward networksSchool LAN aboveExternal path belowSeparate boxes show functions.A real product can combine them.
Links represent communication paths, not separate guaranteed speeds or one-way traffic. A gateway role can be supplied by the router or by a separate interworking service.

03 | NETWORK INTERFACE CARD: CONNECT A HOST TO A LINK

A network interface card (NIC) provides a device’s interface to a network. It can be a built-in adapter, an expansion card or another suitable interface, using wired Ethernet or wireless networking.

The interface and its driver help send and receive data using the link’s framing and signalling rules. An Ethernet or Wi-Fi interface commonly uses a MAC address for link-layer identification.

A MAC address is not the same as an IP address. IP addresses support communication across networks; a link address is used for local delivery over the relevant link. MAC addresses may be configurable or randomised, so they are not proof of a device owner’s identity.

Having a NIC does not guarantee connectivity. The link must work, configuration must be suitable and the intended services must be available. The NIC’s core link-access role maps to the TCP/IP network interface layer.

04 | SWITCH: FORWARD FRAMES WITHIN A LOCAL NETWORK

A basic Ethernet switch connects devices in a local network and forwards frames according to destination MAC addresses. A frame is a link-layer unit carrying data and link-related information.

A switch learns which source MAC addresses arrive on which ports. It records those associations in a forwarding table. When a destination is known on another port, it can forward towards that port rather than send the frame to every attached device.

If the destination is unknown, a basic switch floods the frame through other relevant ports in the same broadcast domain. Broadcast frames also require appropriate distribution. The incoming port is not used to send the frame straight back.

The basic switching role belongs to the network interface layer. A multilayer switch can also route IP traffic, so “switch” on a product name does not prove that the product performs only link-layer forwarding.

05 | WATCH A SWITCH LEARN FROM SOURCE ADDRESSES

In this simplified four-port LAN, port 1 connects laptop A, port 2 server B, port 3 printer C and port 4 router D. The initial table knows B and D. Every received example frame first teaches the switch the source address’s port.

Try sending from A to unknown printer C, then send C’s reply, then send A to C again. Forwarding a frame towards C does not itself teach the switch where C is: C’s source address on its reply supplies that information.

All ports are in one broadcast domain; VLANs, loops, table ageing and security controls are omitted. The activity describes forwarding choices, not a live packet capture.

Current learned source-address associations
DeviceMAC addressSwitch port

06 | WIRELESS ACCESS POINT: BRIDGE WIRELESS ACCESS

A wireless access point (WAP or AP) allows compatible wireless clients to join a network. In a typical school arrangement it bridges traffic between wireless stations and the wired LAN.

The laptop’s wireless NIC communicates by radio with the AP, and the AP connects that communication to the local network. It is not necessary to visit the internet just to send a local file through this arrangement.

A basic AP’s bridging function maps mainly to the TCP/IP network interface layer. Authentication, management and other features involve additional software and protocols; an integrated wireless router also has routing functions.

An AP alone does not create an external internet service. Coverage, interference, shared radio capacity, configuration and access permissions can all affect what a connected client can do.

07 | ROUTER: FORWARD PACKETS BETWEEN NETWORKS

A router connects IP networks and forwards packets using destination IP information and a routing table. A packet is a unit used for network-to-network delivery; it can be carried inside different link-layer frames along its route.

If a laptop’s destination is outside its local IP network, it can send the packet towards a configured next-hop router. The router selects a suitable outgoing route; it does not need to know the entire physical path all the way to the final server.

At each link, local framing is used for the next hop. A basic switch looks at MAC-address information for local forwarding, while the router’s routing decision uses IP destinations. The router’s central function maps to the TCP/IP internet layer.

Routing and network address translation are different functions. Some routers also perform NAT or firewalling, but routing does not inherently mean changing every packet’s source or destination IP address.

08 | MODEM: HANDLE ACCESS-LINK SIGNALLING

A modem modulates and demodulates signals appropriate to a communication link. In a cable or DSL access arrangement, it converts between the local equipment’s data interface and the signalling used on that provider link.

Its purpose differs from a router’s: signalling makes communication over the access medium possible; routing decides how to forward packets between networks. A combined modem/router performs both roles in one product.

The modem’s core signalling role is at the physical/link side included within the TCP/IP network interface layer. TCP/IP’s four-layer model groups physical transmission and link access together.

Not every internet connection uses a cable or DSL modem. Fibre access commonly uses an optical network terminal (ONT), which is not simply an identical device with a different cable. The access technology determines the required equipment.

09 | GATEWAY: BE CLEAR WHICH MEANING YOU USE

A gateway provides a connection or interworking point between systems or networks. In a protocol-conversion role, it can translate between different communication rules or representations so systems can exchange meaningful information.

For example, an industrial gateway might turn device-specific sensor messages into a format accepted by an IP-based monitoring service. Depending on what it translates, that role can involve higher layers, including application processing.

The term default gateway usually refers to the router a host uses for destinations without a more specific route. That does not mean the router must translate application formats on every packet.

Therefore there is no single layer answer for every use of “gateway”. State the function: a default-gateway router acts at the internet layer; an application/protocol gateway can operate at higher layers. Avoid memorising “all gateways are application-layer translators” as an absolute rule.

10 | HARDWARE FIREWALL: APPLY A TRAFFIC POLICY

A hardware firewall is a network appliance that permits, rejects or drops traffic according to configured rules. It is commonly placed between network zones, although firewalls can also be integrated with routers or deployed elsewhere.

A packet-filtering function can check IP addresses and transport information such as TCP or UDP ports. A port in this context is a logical communication identifier, not a physical cable socket. Stateful inspection can also consider tracked connection information.

Some firewalls inspect application behaviour or act as proxies. Consequently a firewall can operate across internet, transport and application layers, depending on its capabilities and policy.

A firewall does not guarantee that all permitted traffic is harmless. Rules can be wrong, endpoints can be compromised and encrypted application contents are not automatically visible without appropriate inspection arrangements. Encryption, authentication and firewall filtering are related protections but different functions.

11 | A SHORT FOUR-LAYER TCP/IP FRAMEWORK

The syllabus uses application, transport, internet and network interface layers. They describe responsibilities in communication, not four physical shelves containing exactly one device each.

The application layer concerns application communication rules and representations. Transport concerns communication between endpoints, including identifiers such as ports and the behaviour of protocols such as TCP or UDP.

The internet layer concerns IP addressing and packet delivery across networks. The network interface layer concerns the link and physical transmission used to reach the next local hop.

The next lessons examine protocols and, at HL, the model in greater depth. Here you need enough of the framework to place a device’s main forwarding, signalling or inspection function.

12 | MAP FUNCTIONS, NOT JUST PRODUCT NAMES

Device/functionUsual TCP/IP mappingReason / caveat
NICNetwork interfaceLink framing and physical access
Basic Ethernet switchNetwork interfaceMAC-address-based frame forwarding
Basic AP bridgeNetwork interfaceWireless/wired link access and bridging
Modem access signallingNetwork interfacePhysical signalling within the four-layer model
IP routerInternetIP routing between networks
Default-gateway routerInternetA next-hop routing role for the host
Protocol/application gatewayDepends on conversion; can include applicationInterprets or translates the relevant communication
FirewallInternet and transport; application where supportedInspects the information required by its policy

A product can combine these functions. A multilayer switch can route, a router can host a firewall, and a gateway can include lower-layer connectivity. Name the specific operation when describing its layer.

13 | TRACE A LOCAL OR EXTERNAL REQUEST

Choose a route and step through the functions in the diagram above. The highlighted device is the current function. These are conceptual responsibilities, not every discovery message, acknowledgement or physical hop in a real network.

LAPTOPWireless NICACCESS POINTWi-Fi ↔ LANSWITCHLocal framesLOCAL SERVERSame LANROUTERBetween networksFIREWALLTraffic policyMODEMAccess signallingPROVIDEROnward networksSchool LAN aboveExternal path belowSeparate boxes show functions.A real product can combine them.

The firewall policy is fixed for each example. A blocked request does not continue through the model’s external path.

14 | ONE BOX CAN CONTAIN MANY FUNCTIONS

A home broadband box may include a modem, router, Ethernet switch, wireless AP and firewall. The Wi-Fi name on its case does not tell you which function is responsible when something fails.

If wireless clients cannot connect but a cabled device can still use the same network, investigate the wireless access path rather than assuming the provider link must be down. If local access works but external access fails, routing, filtering, the access link or the remote service may be relevant.

A label is not a fault diagnosis. Distinguish lack of a radio link, failed forwarding, missing route, policy denial and an unavailable destination. Real testing needs more evidence than one symptom.

15 | CHOOSE THE REQUIRED FUNCTION

RequirementRelevant functionWhy
A computer needs an Ethernet connectionNICProvides host link access
Several wired local devices exchange framesSwitchSelects local forwarding using learned MAC locations
Wireless clients join a wired LANAPProvides wireless access and bridging
Traffic must reach another IP networkRouterSelects next-hop forwarding using IP routes
Cable/DSL service uses its access signallingModemHandles modulation/demodulation for that medium
Two incompatible systems need message conversionProtocol gatewayInterworks communication representations/rules
Traffic must be allowed or denied by policyFirewallInspects relevant traffic information and applies rules

A valid design may use one integrated device or several separate devices. Explain the required role before choosing the packaging.

16 | CHECK THE MISCONCEPTIONS

ClaimMore accurate statement
A switch always sends every frame only to one port.Known unicast, unknown unicast and broadcast forwarding differ.
A switch learns from the destination it just sent towards.Basic source learning uses addresses arriving on input ports.
A router and modem do the same job.Routing chooses network paths; the modem handles access signalling.
Every gateway translates application data.Default gateway usually names a router role; protocol gateways vary.
Every firewall belongs to exactly one layer.Its inspection features can span several layers.
A MAC address proves a device owner’s identity.Link addresses can be configured or randomised and are not authentication.
Joining an AP guarantees internet access.External connectivity, routes, permissions and services must also work.
Local traffic must always leave the LAN.Same-LAN communication can stay local.

17 | DESCRIBE WHAT INFORMATION THE DEVICE USES

For describe, state the device’s function and give enough detail to show how it contributes. “A switch connects devices” is incomplete without describing local frame forwarding and MAC-address information.

For a router: “It connects IP networks, examines destination IP information and uses its routing table to select a suitable outgoing path.” For a modem: “It handles modulation and demodulation appropriate to the provider access medium.”

When mapping layers, name the function rather than forcing a multifunction box into one category. State the basic model and any relevant caveat clearly.

The next lesson covers transport and application protocols. Keep local frames, routed packets, logical service ports and physical cable ports distinct as you build on this lesson.

Further reading: Basic switching and routing functions · Firewall functions and policy

MATCH THE DEVICE TO ITS FUNCTION

Terminology

Terminology

NIC

Network interface providing a host’s access to a network link.

Switch

A device whose basic role forwards local frames using destination MAC information.

Router

A device forwarding IP packets between networks using routing information.

Wireless access point

A device providing wireless network access, commonly bridging to a wired LAN.

Modem

Equipment modulating and demodulating signals appropriate to a communication medium.

Gateway

An interconnection or interworking role whose precise function depends on context.

Default gateway

A next-hop router used when a host has no more specific route.

Protocol gateway

A system translating or interworking different communication rules or representations.

Hardware firewall

A network appliance applying configured traffic-permission rules.

MAC address

A link-layer identifier used in technologies such as Ethernet and Wi-Fi.

IP address

An address used for internet-layer identification and delivery across IP networks.

Frame

A link-layer unit carrying data and link-related information.

Packet

An internet-layer unit used for delivery across networks.

Switch port

An interface on a switch through which link traffic enters or leaves.

Forwarding table

Learned associations between MAC addresses and local switch ports.

Source learning

Recording the source MAC address and ingress port of a received frame.

Unknown unicast

A frame whose individual destination is absent from the switch’s relevant table.

Flooding

Forwarding through other relevant ports when distribution is required.

Broadcast

A link-layer transmission addressed for distribution within its broadcast domain.

Routing table

Information used to select outgoing routes or next hops for IP destinations.

Next hop

The next router or destination reached on a selected forwarding step.

Bridge

A function forwarding link traffic between connected link segments.

Network interface layer

The TCP/IP layer grouping local-link access and physical transmission.

Internet layer

The TCP/IP layer concerned with IP addressing and routed packet delivery.

Transport layer

The layer supporting endpoint transport communication, including logical ports.

Application layer

The layer concerned with application communication rules and representations.

Transport port

A logical communication identifier, distinct from a physical socket.

Stateful inspection

Traffic checking that uses tracked connection or flow information.

Multilayer switch

A switch product that can also perform functions such as IP routing.

ONT

Optical network terminal used for suitable fibre access arrangements.

Questions

Questions

CHECK YOUR UNDERSTANDING

Select all correct choices. Each exact set earns one point.

1. Which describe a NIC?
2. What does a basic Ethernet switch learn from an arriving frame?
3. What happens to an unknown unicast in the stated simple switch model?
4. Which describe an AP’s basic role?
5. Which information drives an IP router’s basic routing decision?
6. Which distinguish modem and router?
7. Which statements about gateways are accurate?
8. Which describe firewall functions?
9. Which map basic functions correctly?
10. Which can remain local in the diagram’s stated arrangement?

EXPLAIN AND COMPARE

Write your answers before revealing each sample.

1. Describe a NIC’s role and one limitation.

2. Describe how a basic switch forwards a known unicast frame.

3. Describe what changes after the printer replies in the model.

4. Describe the function of a wireless AP.

5. Describe the router’s role for a destination outside the local network.

6. Describe the difference between access signalling and routing.

7. Describe two meanings of gateway and their layer implications.

8. Describe a hardware firewall’s role and limits.

9. Describe the TCP/IP mapping for NIC, switch and router.

10. Describe why a physical port and a transport port differ.

11. Describe a local-server path from a wireless laptop.

12. Describe why a home router may not fit exactly one layer.

DESCRIBE IT | FROM WIRELESS LAPTOP TO TWO DESTINATIONS

A wireless laptop reaches a same-LAN file server and an external service through the illustrated network. Describe the NIC, AP and switch roles, then the additional router, firewall and modem functions for the external route. State the typical TCP/IP mapping for each operation and explain why one combined broadband box can span several layers.

Flashcards

Flashcards

Click to flip. Select the ideas you need to revisit.

0 cards selected for revision.

    Selections are kept while this page is open.

    Workbook

    Workbook

    COMING SOON

    The workbook for A2.1.3 Network Devices is coming soon. Complete the matching task and written questions in your exercise book.