impera Open Impera

A levels Computer Science · Networks and databases

Network topologies and protocols

1Types of network

A network is two or more computers connected to share resources and data.

TypeCoversOwned by
PAN (personal area network)a few metres, such as Bluetooth devicesone person
LAN (local area network)one site, such as a school or homethe organisation
WAN (wide area network)a large area, linking LANsuses others' links, such as telecoms companies

The internet is the largest WAN: a network of networks.

Benefits of networks: sharing files, printers and internet access; central backups and security; communication. Drawbacks: cost of hardware, viruses can spread, and failure of a central device can stop everyone.

Check yourself

What kind of network links offices in different cities?

  • A PAN

  • A WAN

  • A LAN

  • A bus

Show the answer

A WAN

Wide area.

2Topologies

A topology is the layout of a network.

Star and bus topologies. In a star, each device has its own link to a switch; in a bus, all devices share one backbone cable.

StarBus
each device has its own cable to a central switchall devices share one cable (the backbone), with a terminator at each end
one cable failing affects only that devicea break in the backbone stops the whole network
fast: the switch sends data only to its destinationdata collisions as traffic grows, so slower
more cable and a switch: more expensivecheap and easy to install
if the switch fails, the whole network fails

In a mesh, every device connects to several (or all) others, so data has many routes. It is very reliable but uses lots of connections. Wireless mesh networks (such as smart home devices) avoid the cabling.

A network's physical topology (how it is wired) can differ from its logical topology (how data flows): for example a network wired as a star may behave logically like a bus.

Check yourself

What happens in a star network if one device's cable breaks?

  • Data goes the other way round

  • The whole network fails

  • Only that device loses its connection

  • The switch shuts down

Show the answer

Only that device loses its connection

Separate cables.

3Network hardware

DeviceJob
network interface card (NIC)connects a device to a network; has a unique MAC address
switchconnects devices in a LAN, sending each frame only to its destination, using MAC addresses
routerconnects different networks and forwards packets between them using IP addresses
wireless access point (WAP)lets wireless devices join a wired network
modemconverts between digital data and the signal used on a phone or cable line

Transmission media: copper cable (cheap, short distances), fibre-optic cable (very fast, long distances, no interference) and wireless (convenient, but slower, less secure and affected by walls and interference).

Check yourself

Which device forwards packets between different networks?

  • A NIC

  • A switch

  • A WAP

  • A router

Show the answer

A router

Between networks.

4Data transmission

  • Serial transmission sends bits one after another along one wire. Parallel sends several bits at once along several wires. Serial is used for longer links because parallel wires suffer from skew (bits arriving at slightly different times) and crosstalk.
  • Synchronous transmission uses a shared clock signal. Asynchronous transmission adds start and stop bits around each byte, so sender and receiver do not need a shared clock.
  • Bandwidth is the range of frequencies a link can carry; higher bandwidth allows a higher bit rate (bits per second).
  • Baud rate is the number of signal changes per second. If each signal carries several bits, bit rate = baud rate × bits per signal.
  • Latency is the delay before data starts to arrive.
Worked example

Bit rate

  1. A link runs at 1000 baud and each signal has 16 possible levels.
  2. 16 = 2⁴, so each signal carries 4 bits.
  3. Bit rate = 1000 × 4 = 4000 bits per second.
Worked example

Download time

  1. A 50 MB file is downloaded at 20 Mbps (megabits per second).
  2. 50 MB = 400 megabits. Time = 400 ÷ 20 = 20 s.
Check yourself

Why is serial transmission used for long distances rather than parallel?

  • Parallel bits arrive at slightly different times (skew) over long cables

  • Serial uses more wires, so it can carry more data over a long cable

  • Parallel cannot send binary data over distances of more than a metre

  • Serial has no transmission errors at all, whatever the cable length

Show the answer

Parallel bits arrive at slightly different times (skew) over long cables

Skew and crosstalk.

5Protocols and standards

A protocol is a set of rules for how devices communicate: the format of the data, how it is addressed, how errors are handled, and how fast it is sent.

A standard is an agreed set of rules (such as Ethernet or Wi-Fi) so that hardware and software from different makers work together.

Protocols are arranged in layers. Each layer does one job and only talks to the layers directly above and below it, so a layer can be changed (for example, Wi-Fi swapped for Ethernet) without changing the others.

Check yourself

Why are protocols organised in layers?

  • Layers make data travel faster across the network

  • Each layer has one job and can be changed without affecting the others

  • It uses less bandwidth because headers are smaller

  • Only one layer is used at a time, which saves memory

Show the answer

Each layer has one job and can be changed without affecting the others

Separation of jobs.

6Client-server and peer-to-peer

Client-serverPeer-to-peer
central servers provide services (files, email, web) to clientsevery computer is equal and shares its own resources
central backup, security and updatesno central control or backup
servers are expensive and need specialist staffcheap and easy to set up
if the server fails, clients lose the serviceno single point of failure
example: a school network, websitesexample: small home networks, some file-sharing
Check yourself

What is an advantage of a client-server network?

  • It is always the cheapest option for a small office

  • It needs no server, so it is cheaper to set up

  • There is no single point of failure in the network

  • Backups, security and updates can be managed centrally

Show the answer

Backups, security and updates can be managed centrally

Central control.

Now test yourself

This lesson has a 8-question quiz and 5 exam-style questions with mark schemes in Impera. Free, with your progress saved.

Practise in Impera