Networking gives about 1.3 questions per Tier 2 paper, and 1.75 in CGL 2022. January 2025 asked which device connects computers within a LAN (switch), the medium used for WAN links (optical fibre) and which device forwards packets by MAC address in a LAN, where the official key chose Layer 3 switch. The reported 2025 paper asked which OSI layer routes packets using logical addresses, so learn devices, layers and protocols together.
In brief
- A computer network is two or more devices connected to share data, files, printers and the Internet.
- Networks are grouped by size into PAN, LAN, CAN, MAN and WAN, with the Internet as the largest WAN.
- Topology is the layout of a network: bus, star, ring, mesh, tree or hybrid.
- In a star topology every device connects to a central switch or hub, so one cable fault affects only one device.
- A full mesh of n devices needs n(n-1)/2 links, which gives the most redundancy.
- A hub repeats every signal to all ports, while a switch sends each frame only to the port of the destination MAC address.
- A router joins different networks and forwards packets by IP address, choosing the best path.
- A modem converts digital signals to analog and back so data can travel over telephone or cable lines.
- A gateway connects networks that use different protocols, and a bridge joins two LAN segments.
- Every network card has a 48-bit MAC address burnt in, while IP addresses are logical and can change.
- IPv4 addresses are 32 bits long and IPv6 addresses are 128 bits long.
- The OSI model has seven layers: Physical, Data Link, Network, Transport, Session, Presentation and Application.
- The TCP/IP model has four layers: Network Access, Internet, Transport and Application.
- TCP is reliable and connection-oriented, while UDP is fast and connectionless.
- DHCP gives devices IP addresses automatically, DNS turns names into IP addresses and ARP finds the MAC address for an IP.
- Twisted pair, coaxial and optical fibre are wired media, and radio, microwave, satellite, infrared and Bluetooth are wireless.
Numbers to remember
| Number | What it is |
|---|---|
| 7 / 4 | layers in the OSI and TCP/IP models |
| 48 bits | length of a MAC address, written as 12 hex digits |
| 32 / 128 bits | IPv4 and IPv6 address lengths |
| n(n-1)/2 | links in a full mesh of n devices |
| 100 m | maximum run of a twisted-pair Ethernet cable |
| 802.3 / 802.11 | IEEE standards for Ethernet and Wi-Fi |
| 802.15.1 | IEEE standard behind Bluetooth |
| about 10 m | typical range of a PAN such as Bluetooth |
Key formulas and rules
- PAN < LAN < CAN < MAN < WAN
- By area covered.
- Full mesh links = n(n-1)/2
- 10 devices need 45 links.
- Hub = L1 broadcast; switch = L2 MAC; router = L3 IP; gateway = protocol translation
- Device layers.
- MAC = 48 bits; IPv4 = 32 bits; IPv6 = 128 bits
- Address sizes.
- OSI: Physical, Data Link, Network, Transport, Session, Presentation, Application
- Layers 1 to 7.
- TCP/IP: Network Access, Internet, Transport, Application
- Four layers.
- DNS: name -> IP; ARP: IP -> MAC; DHCP: gives IP
- Address helpers.
- Simplex one way; half duplex both ways in turn; full duplex both ways together
- Modes.
Common traps
- Calling a hub intelligent is wrong; it broadcasts to all ports.
- Saying a router forwards by MAC address is wrong; it uses IP addresses.
- Saying a switch works at the Network layer is wrong for a basic switch, which is Layer 2.
Solved examples
Q. Which device is commonly used to connect computers within a LAN? Options: Modem, Router, Switch, Repeater. (CGL 2024 Tier 2, 18 Jan 2025)
Answer: Switch
Step 1: A modem connects to an ISP line and a router joins different networks. Step 2: A repeater only boosts signals. Step 3: A switch connects the computers of one LAN and forwards by MAC address.
Q. What type of media is commonly used for WAN communication? Options: HDMI Cable, Twisted Pair Cable, Fiber Optic Cable, Coaxial Cable. (CGL 2024 Tier 2, 20 Jan 2025)
Answer: Fiber Optic Cable
Step 1: HDMI is a display cable. Step 2: Twisted pair and coaxial lose signal over long distances. Step 3: Optical fibre carries huge bandwidth over long distances with little loss, so it is used for WAN backbones.
Q. In a Local Area Network (LAN), which of the following is most commonly used to ensure that data packets are efficiently forwarded to the correct device, based on its MAC address? Options: Router, Bridge, Hub, Layer 3 Switch. (CGL 2024 Tier 2, 20 Jan 2025)
Answer: Layer 3 Switch
Step 1: A hub cannot read addresses and a router works with IP addresses. Step 2: A bridge reads MAC addresses but only joins two segments and is rarely used now. Step 3: Forwarding frames to the right port by MAC address is switch work, and the official key chose the Layer 3 switch.
What the full notes cover
- Types of network by size
- Topologies
- Networking devices
- Addresses: MAC and IP
- The OSI and TCP/IP models
- Protocols
- Transmission media
- Transmission modes and speed