1.3.1 Networks and topologies
A network is two or more computers and devices joined together so they can share data and resources. Networks let people share files, printers and an Internet connection, and let them send messages and work together.
Types of network
LAN
Examples: a school network, an office, a home network.
WAN
Examples: the Internet, a bank linking its branches across the country.
| LAN | WAN | |
|---|---|---|
| Area covered | Small (one site) | Large (towns, countries) |
| Who owns it | The organisation | Often hired from other companies |
| Speed | Usually faster | Usually slower |
| Cost to set up | Lower | Higher |
| Example | School network | The Internet |
Factors that affect network performance
Performance means how fast and how smoothly data moves on the network. Five common factors are:
- •Number of devices. Every device uses some of the network. More devices connected at the same time means more data trying to move, so the network gets slower.
- •Bandwidth. Bandwidth is the amount of data that can be sent across a connection each second. A higher bandwidth lets more data move at once, so the network is faster. Low bandwidth causes slow downloads and buffering.
- •Transmission media. Different cables and wireless links carry data at different speeds. Fibre optic cable is faster than copper cable. Wireless links can be slowed by walls and other signals.
- •Network traffic. When many users stream, download or send large files at the same time, the network gets busy and slows down.
- •Number and quality of switches and servers. If a server is old or a switch is overloaded, data waits in a queue.
Client-server and peer-to-peer
Client-server
In a client-server network, one or more powerful computers called servers provide services. Other computers, called clients, send requests to the server.
A server might store files, share printers, manage logins and user accounts, or send out web pages. The server controls who can use what.
| Advantages | Disadvantages |
|---|---|
| Files are stored in one place, so they are easy to back up | The server is expensive to buy and set up |
| Security is managed centrally (logins and access rights) | If the server fails, clients cannot get what it provides |
| Software and updates can be managed from one place | A skilled person is needed to run and maintain it |
| Can cope with many clients | Many requests at once can slow the server down |
Peer-to-peer
In a peer-to-peer (P2P) network, every computer has the same role. There is no central server. Each computer, called a peer, stores its own files and can share them directly with the other peers.
| Advantages | Disadvantages |
|---|---|
| Cheap: no server is needed | No central place for backup, so each computer must be backed up |
| Easy to set up | Security is weaker because each user manages their own |
| If one computer fails, the others still work | Gets slow and hard to manage as more computers join |
Hardware needed for a LAN
Network interface card (NIC)
A NIC is the part inside a device that lets it connect to a network. Without one, a computer cannot join a network. A NIC can be wired (a socket for a cable) or wireless (an aerial). Most laptops and phones have a wireless NIC built in. Each NIC has its own MAC address (see topic 1.3.2).
Transmission media
Transmission media are what carry the data between devices.| Medium | What it is | Notes |
|---|---|---|
| Copper cable | Wires made of copper carry data as electrical signals | Cheaper, slower, signal weakens over long distances |
| Fibre optic cable | Glass or plastic strands carry data as pulses of light | Faster, carries data further, more expensive |
| Wireless | Data travels through the air as radio waves | No cables, but slower and can be interrupted by walls or other signals |
Switch
A switch connects the devices on a LAN. It receives data and sends it only to the device it is meant for, not to every device. This keeps the network fast and uses less bandwidth than sending everything everywhere.
Wireless access point (WAP)
A wireless access point lets wireless devices join the network. It connects to the wired network with a cable and sends and receives data through the air. Large buildings often have several access points so the signal reaches everywhere.
Router
A router joins different networks together and sends data between them. In a home, the router joins the LAN to the Internet. It directs data towards the right network. Many home routers also contain a switch and a wireless access point in one box.
The Internet
The Internet carries many services, not only web pages. Email, online games and video calls all use it.
Web servers and clients
A web server is a computer that stores web pages and sends them out when asked. A web client is a device that asks for a page, usually using a web browser. When you type an address, your browser (the client) sends a request to the web server. The server sends the page back, and the browser displays it.
Hosting
Hosting means storing a website or other files on a server that is connected to the Internet, so that other people can reach them at any time. A company that owns the servers and rents space on them is a hosting company. The person with the website pays to use that space.Domain names, URLs and DNS
Computers find each other using IP addresses, which are numbers. People find it hard to remember numbers, so websites also have a domain name that is easy to read. A URL (web address) contains the domain name, for example www.example.com.
1. You type the URL into the browser.
2. The browser asks a domain name server for the IP address that matches the URL.
3. The domain name server replies with the IP address. If it does not know it, it asks another domain name server.
4. The browser uses the IP address to send a request to the web server.
5. The web server sends the web page back to the browser, which displays it.
No single server holds every address. The work is shared across many domain name servers, which makes the system faster and means it does not stop if one server fails.
The Cloud
The Cloud can provide:
- •Remote storage, such as saving photos and documents online.
- •Software, such as word processors you use in a browser.
- •Processing, such as using a powerful remote computer to do a big calculation.
| Advantages | Disadvantages |
|---|---|
| Access your files from any device with an Internet connection | You need an Internet connection to get to your data |
| Files are shared easily with other people | You depend on the company running the servers |
| No need to buy as much storage or a powerful computer | Ongoing fees may be needed for more storage |
| The company usually backs up your data for you | Data may be at risk if the company is hacked |
Network topologies
A topology is the way the devices on a network are arranged and connected. Only two topologies are needed: star and mesh.
Star topology
In a star network, every device connects to one central device, usually a switch (or a server). Data from one device goes to the centre, and then on to the device it is meant for.
| Advantages | Disadvantages |
|---|---|
| If one cable or device fails, the others carry on working | If the central switch fails, the whole network stops |
| Easy to add a new device without stopping the network | Needs a lot of cable, because every device has its own cable to the centre |
| Fewer data collisions, because each device has its own cable | The central switch can be expensive |
| Performance is good, because the switch sends data only to the right device |
Mesh topology
In a mesh network, devices connect directly to many of the other devices. In a full mesh, every device connects to every other device. In a partial mesh, only some devices connect to several others. Data can take many different routes.
| Advantages | Disadvantages |
|---|---|
| Very reliable: if one connection fails, data can use another route | Needs a lot of cable or many connections, so it is expensive |
| No single point of failure | Hard and slow to set up and maintain |
| Can carry a lot of data at once, because there are many routes | Needs more hardware, such as extra NICs |
The more connections there are, the more reliable the network is, and the more it costs. A full mesh with 4 devices needs 6 links (A to B, A to C, A to D, B to C, B to D, C to D). A star with 4 devices needs only 4 links to the centre.
A mesh topology. If one connection fails, data can be sent by another route, so the monitors stay connected. This matters because a failure could be dangerous. The drawback is the higher cost, because many more connections are needed.
A school computer room, where a short failure is not dangerous and cost matters, would suit a star topology.
Exam technique
- •State and give: one short fact per mark. For example, "State one job of a router."
- •Describe: say what something is or does. For DNS, describe the steps in order.
- •Explain: give a reason as well as a fact. "The network is slower because more devices share the same bandwidth."
- •Compare: talk about both. For client-server and peer-to-peer, give a point for each type, not two points about one.
- •Discuss (8 marks): give points for and against, apply them to the scenario given, and finish with a conclusion that chooses an option and says why. Use the names of the hardware and topologies, and link each point to the scenario.
- •For a topology question, give the advantage or disadvantage and the reason ("reliable because data can use another route").
- •Say which device does which job. A switch connects devices within a network. A router connects different networks.