1.3.1

Networks and topologies

GCSE Computer Science 1.3.1: LANs and WANs, factors affecting network performance, client-server and peer-to-peer, the hardware needed to build a LAN, the internet, DNS and the cloud, and star and mesh topologies.

About 18 minutes to read

Types of network

Figure: LAN and WAN
The ownership row is the distinction that survives scrutiny — a LAN's cabling belongs to whoever runs it, a WAN's does not.

Factors that affect the performance of a network:

• Number of devices connected — more devices share the same bandwidth, so each gets less and the network slows. • Bandwidth — the amount of data that can be transmitted at once. Higher bandwidth means better performance. • Type of connection — wired connections are generally faster and more reliable than wireless. • Distance and interference — signal quality falls with distance from a wireless access point, and walls, other devices and physical obstructions all degrade it. • Amount of data being transferred — streaming video demands far more than sending text.

Bandwidth
the amount of data that can be transmitted at once; higher bandwidth means better network performance

Client-server and peer-to-peer

Figure: The two models

Hardware needed to connect computers into a LAN

Figure: The five pieces of hardware and what each does
The distinction most often tested: a switch connects devices within one network, a router connects different networks together.

The internet, DNS and the cloud

The internet is a worldwide collection of computer networks — a network of networks. It is not the same as the World Wide Web, which is the collection of web pages carried over it.

DNS — the Domain Name Service. People remember names like prepgrid.co.uk, but computers route data using IP addresses. A Domain Name Service is made up of multiple Domain Name Servers, and its role is converting a URL into the IP address it corresponds to.

How it works: the browser sends the URL to a DNS server. If that server holds the matching IP address it returns it; if not, it passes the request to another DNS server until one does. The browser then uses the IP address to request the page from the web server.

Hosting means storing files — usually a website — on a server that is permanently connected to the internet, so that others can access them at any time. Businesses often pay a hosting company rather than running their own server.

Servers and clients. A server provides a service; a client requests and uses it. A web server sends web pages; a file server provides file storage and retrieval; a print server manages printing. The device asking for the page or the file is the client.

The cloud means remote provision of services over the internet — storage, software or processing power — run on someone else's servers rather than your own.

Figure: Advantages and disadvantages of the cloud
The internet
a worldwide collection of computer networks — a network of networks — which is not the same as the World Wide Web, the collection of web pages carried over it
DNS
the Domain Name Service, which translates the domain names people remember into the IP addresses computers use to route data

Star and mesh topologies

The same six devices arranged both ways — and the cabling difference that drives the comparison.

A star topology connects every device to a central switch. A mesh topology connects devices directly to each other, with a full mesh connecting every device to every other one.

Star • Advantages: few cables, so cheap and simple to install; each device has its own connection, so performance is good and does not drop as more are added; a single cable failure affects only one device; easy to add or remove a device. • Disadvantage: the central switch is a single point of failure — if it fails, the whole network stops.

Mesh • Advantages: no single point of failure, because data can be rerouted around a break; very reliable; performance holds up as devices are added, since there is no shared central point. • Disadvantages: a great deal more cabling, so expensive to install and difficult to maintain — and the number of connections grows very quickly as devices are added.

Worked example

A hospital needs a network where a single equipment failure must not cut off any department. Recommend a topology.

  1. Identify the requirement: no single failure may disconnect anyone, which is a reliability requirement above all.
  2. Consider star: cheap and fast, but the central switch is a single point of failure — exactly what the hospital cannot accept.
  3. Consider mesh: multiple routes between devices mean data reroutes around any break.
  4. Acknowledge the cost, since a recommendation that ignores it is incomplete.
  5. Commit.

Answer: A mesh topology. Multiple paths between devices mean there is no single point of failure and data can reroute around a break — which the hospital's requirement demands. The cost is far more cabling and a harder installation, but reliability is the priority here in a way it would not be in an ordinary office.

Star topology
a network layout connecting every device to a central switch
Mesh topology
a network layout connecting devices directly to each other, a full mesh connecting every device to every other one

Before you practise

  • A LAN covers one site on infrastructure the owner controls; a WAN covers a large area using leased infrastructure.
  • Performance depends on the number of devices, bandwidth, type of connection, distance and interference, and how much data is being moved.
  • Client-server has a central server providing services; peer-to-peer makes every machine equal.
  • Hardware: wireless access point, router, switch, NIC, transmission media.
  • A switch connects devices within a network; a router connects networks to each other.
  • DNS converts a URL into an IP address, using multiple Domain Name Servers.
  • The cloud is remote provision of storage, software or processing — flexible and maintenance-free, but dependent on a connection and on trusting a third party.
  • Star: cheap, fast, easy to extend, but the central switch is a single point of failure.
  • Mesh: no single point of failure and very reliable, but far more cabling and expensive to install.

Now practise it

Reading is the easy half. Answer questions on 1.3.1 Networks and topologies and find out which parts you actually know.