AQA 7517, section 4.9.2.2
A host is any device connected to a network. There are two main ways of organising how hosts relate to one another.
Peer-to-peer networking
In a peer-to-peer (P2P) network, each computer has equal status. Every computer can act as both a client and a server: it can share its own files and resources, and use those of the others. There is no central server.
Advantages
- Cheap and simple to set up: no expensive server or specialist administrator.
- No single point of failure: if one computer goes off, the others keep working.
- Good for sharing between a few users.
Disadvantages
- Poor security: each computer has to be secured separately, and there's no central control of access or backups.
- Hard to manage as the network grows: there's no central place for files, so the data is scattered.
- Performance of a computer can suffer when others use its resources.
- Not suitable for large networks.
Where it is used
- A small home or office network sharing files and a printer.
- File-sharing systems that share data between users (such as BitTorrent).
- Some cryptocurrencies and decentralised systems.
Client-server networking
In a client-server network, most computers are clients, and one or more are servers. The clients request services from the servers, and the servers provide these services.
Examples of servers: a file server (stores shared files), an email server, a web server, a print server and a database server.
The client sends a request, and the server sends back a response. The server is a powerful, always-on computer that is centrally managed.
Advantages
- Centralised management: one place for security (logins, permissions), backups and software updates.
- Better security and control over who can see what.
- Reliable and scalable: a server can be upgraded, and many clients can use it.
- Data is stored in one place, so it is easy to share and keep consistent.
Disadvantages
- Expensive: the server hardware, software and a skilled administrator.
- Single point of failure: if the server fails, clients can't get the services (unless there's a backup server).
- The server can become overloaded if too many clients use it at once.
Where it is used
- Businesses, schools and organisations, with many users who need shared files, logins and email.
- The World Wide Web: your browser is a client requesting pages from web servers.
- Online banking, shopping and databases.
Comparison
| Peer-to-peer | Client-server | |
|---|---|---|
| Status of computers | Equal | Different: clients and servers |
| Central server? | No | Yes |
| Cost | Low | High |
| Security and backup | Poor, managed by each user | Centralised and strong |
| Management | Difficult as it grows | Easier |
| If a computer fails | Only its resources lost | If the server fails, clients lose services |
| Best for | Small networks, a few users | Larger networks, many users |
Worked example
Task: a family wants to share photos and a printer between 4 home computers. A school with 800 students and 60 staff needs logins, shared files and email. Suggest a network type for each.
- The family: a peer-to-peer network. It is cheap and simple, there are only a few users, and high security and central management aren't needed.
- The school: a client-server network. It needs central logins and permissions (students must not see staff files), regular backups, email and shared files for many users. A server and an administrator are worth the cost.
Exam tip: don't just list features. Link the choice to the situation: the number of users, the need for security and central control, and the budget. In a client-server network, name the type of server that provides each service.
Check yourself
What is the status of computers in a peer-to-peer network?
They all have equal status, and each can act as both a client and a server.
Give two advantages of a client-server network over a peer-to-peer network
Any two of: centralised security and access control; easy central backup; easier to manage and administer; better for large numbers of users; data stored in one place.
Give one disadvantage of a client-server network
It is more expensive (a server and an administrator are needed), and if the server fails, clients lose the service.
Name three types of server
Any three of: file server, email server, web server, print server, database server.