Networks: topologies, hardware and the client-server model

A-Level Computer Science · Communication

LAN and WAN

A LAN covers one site and the organisation owns the cabling; a WAN spans sites and uses third-party infrastructure. The ownership difference is what drives the cost and security differences.

Topologies

Bus: one backbone, cheap, but a break kills the whole network and collisions rise with traffic. Star: every node to a central switch — one failed cable affects one node, but the switch is a single point of failure. Mesh: many paths, extremely resilient, expensive to cable. Hybrid mixes them, which is what real buildings use.

Hardware, precisely

A hub broadcasts to every port; a switch learns MAC addresses and forwards only to the destination port — less traffic and harder to eavesdrop. A router connects different networks and forwards by IP address. A NIC holds the MAC address. A gateway joins networks that use different protocols.

Client-server and peer-to-peer

Client-server centralises data, backup, access control and updates, at the cost of a server and of failing all at once. Peer-to-peer needs no server and scales cheaply, but backup and security are each user's problem. Choose by asking who must control the data.

Wireless

Wi-Fi trades speed and security for mobility; interference, walls and shared bandwidth all cut real throughput. Bluetooth suits short-range, low-power pairing. Encryption (WPA) matters more on wireless precisely because the signal leaves the building.

Bon tang TCP/IP — moi tang them mot lop baoApplicationHTTP · FTP · SMTPTransportTCP chia goi, danh so, gui laiInternetIP dinh tuyen theo dia chiLinkEthernet · Wi-Fi, tin hieu thatgui diBen nhan boc nguoc lai tu duoi len
The four TCP/IP layers. A common question is "which layer does what": splitting into packets and resending is Transport, routing is Internet, and HTTP sits at Application.

Worked example: choosing a topology and devices for a computer lab

A school connects $40$ computers across three rooms, sharing one network printer and one server that stores students' work. The budget is limited but the requirements are: one failed computer must not disrupt the others, and teachers must be able to control file access.

Propose a topology, devices and a network model, explaining each according to the stated requirements.

Solution

Topology: a star in each room, with three switches connected to one central switch (hybrid). The requirement "one failed computer must not disrupt the others" rules out a bus immediately, because a bus shares a backbone. A mesh would meet it, but with $40$ computers cross-connected the cabling cost far exceeds the school's budget.

Device: a switch, not a hub. A hub broadcasts packets to every port, so in a lab where $40$ people submit work at once the excess traffic is very large, and any computer can hear another computer's data. A switch learns MAC addresses and forwards only to the destination port. A router is also needed to reach the Internet.

Model: client-server. The requirement "teachers control file access" decides this. Peer-to-peer has no central place to set permissions, and work would be scattered across $40$ computers so it could not be backed up. A server allows accounts, permissions by class and backup in one place.

Weakness that must be stated. The server and the central switch are single points of failure: if either fails, all three rooms stop. If the budget allows, there should be a standby central switch and a daily server backup schedule. Stating the drawback together with a way to reduce it is where the assessment marks are earned.

Common mistake

Mixing up "hub" and "switch", or saying a router forwards by MAC address. A switch works with MAC addresses within one network; a router works with IP addresses between networks. Examiners deduct marks outright for naming the wrong device.

Key takeaway

Choose the topology by fault-tolerance needs and budget, choose the device by the address it handles (MAC or IP), choose client-server or peer-to-peer by the question of who must control the data, and always state the single point of failure of your chosen option.

← Data transmission: modes, methods and error checking · All A-Level Computer Science lessons · Practice A-Level Computer Science questions (free, instant scoring) · The Internet: protocols, addressing and packet switching →