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.
| Type | Covers | Owned by |
|---|---|---|
| PAN (personal area network) | a few metres, such as Bluetooth devices | one person |
| LAN (local area network) | one site, such as a school or home | the organisation |
| WAN (wide area network) | a large area, linking LANs | uses 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?
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.
| Star | Bus |
|---|---|
| each device has its own cable to a central switch | all devices share one cable (the backbone), with a terminator at each end |
| one cable failing affects only that device | a break in the backbone stops the whole network |
| fast: the switch sends data only to its destination | data collisions as traffic grows, so slower |
| more cable and a switch: more expensive | cheap 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?
Show the answer
Only that device loses its connection
Separate cables.
3Network hardware
| Device | Job |
|---|---|
| network interface card (NIC) | connects a device to a network; has a unique MAC address |
| switch | connects devices in a LAN, sending each frame only to its destination, using MAC addresses |
| router | connects different networks and forwards packets between them using IP addresses |
| wireless access point (WAP) | lets wireless devices join a wired network |
| modem | converts 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?
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.
Bit rate
- A link runs at 1000 baud and each signal has 16 possible levels.
- 16 = 2⁴, so each signal carries 4 bits.
- Bit rate = 1000 × 4 = 4000 bits per second.
Download time
- A 50 MB file is downloaded at 20 Mbps (megabits per second).
- 50 MB = 400 megabits. Time = 400 ÷ 20 = 20 s.
Check yourself
Why is serial transmission used for long distances rather than parallel?
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?
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-server | Peer-to-peer |
|---|---|
| central servers provide services (files, email, web) to clients | every computer is equal and shares its own resources |
| central backup, security and updates | no central control or backup |
| servers are expensive and need specialist staff | cheap and easy to set up |
| if the server fails, clients lose the service | no single point of failure |
| example: a school network, websites | example: small home networks, some file-sharing |
Check yourself
What is an advantage of a client-server network?
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