OCR H446, section 1.3.3 (e)
There are two main ways of organising how the computers on a network relate to each other.
Client-server networks
In a client-server network, the computers have different roles.
- A server is a powerful computer that provides services and resources (files, email, web pages, printing, databases).
- A client is a computer that requests those services. The client sends a request, and the server sends back a response.
Strictly, a server is a program (process) that provides a service. It usually runs on a dedicated machine that is designed to stay on all the time, so the shared resources are always available.
Servers include a file server, a web server, an email server, a print server and a database server. A user logs in to the server, and the server controls who can do what.
Advantages
- Centralised control: security, user accounts, access rights, backups and updates are managed in one place.
- Better security: it is easier to protect one server than many separate computers.
- Data is stored centrally, so it is easy to back up, and everyone sees the same, current version.
- Reliable and scalable: servers can be strengthened or duplicated, and many clients can be added.
- Resources (such as a database) can be shared by many users.
Disadvantages
- Expensive: the server hardware and software, and a skilled administrator.
- Single point of failure: if the server fails, clients lose the services, unless there is a backup server.
- The server can become overloaded when too many clients use it, slowing everyone down.
- Needs more maintenance.
Typical uses
- Schools, businesses and organisations with many users, needing shared files, logins and email.
- The web: your browser (a client) requests pages from web servers.
- Online banking, shopping and databases.
Peer-to-peer (P2P) networks
In a peer-to-peer network, every computer has the same status, and each can act as both a client and a server. There is no central server. Each computer shares its own files and resources directly with the others.
Advantages
- Cheap and simple to set up: no server and no specialist administrator.
- No single point of failure: if one computer goes off, the others continue.
- Good for sharing between a small group.
- Easy to expand a little, simply by adding another computer.
- Spreads the load: a popular file can be downloaded from many peers at once, so no single server or Internet connection becomes a bottleneck, and the system still works if some peers drop out.
Disadvantages
- Poor security: each computer must be protected separately, and there is no central control of access.
- No central backup: data is scattered, and each user must look after their own.
- Harder to manage as the network grows, and not suited to large networks.
- A computer's performance suffers when others use its resources.
- Shared files may include illegal or unsafe material, and malware can spread more easily.
Typical uses
- Small home or office networks sharing files or a printer.
- File sharing systems, such as BitTorrent, where users download parts of a file from many peers.
- Some cryptocurrencies and decentralised systems.
Comparison
| Client-server | Peer-to-peer | |
|---|---|---|
| Status of computers | Different: servers and clients | Equal |
| Central server? | Yes | No |
| Cost | High | Low |
| Security | Better: central control | Weaker: each computer separately |
| Backup | Central | Each user's job |
| Management | Easier for large networks | Difficult as it grows |
| If one computer fails | If the server fails, services are lost | Only that computer's resources are lost |
| Best for | Large networks with many users | Small networks with a few users |
Worked example
Task: recommend a network type for (a) three friends sharing photos and a printer, (b) a hospital with 500 staff who need secure access to patient records.
- (a) Peer-to-peer. There are only a few users, and it is cheap and simple, with no need for a server or administrator. High security isn't essential.
- (b) Client-server. Patient records are sensitive, so need central security, user accounts and access control, regular backups, and a single, up-to-date copy of the data for hundreds of users. The cost of a server and administrators is justified. A backup server reduces the single point of failure.
Exam tip: link the choice to the scenario: number of users, need for security and central control, and budget. In a client-server network, say what the server does (provides services), and what a client does (requests them).
Check yourself
What is the difference between a client and a server?
A server provides services and resources, such as files or web pages. A client requests those services from the server.
Give two advantages of a client-server network over peer-to-peer
Any two of: central security and access control; easy central backup; easier to manage; better for large numbers of users; data stored in one place.
Give one disadvantage of a peer-to-peer network
Any one of: weaker security; no central backup; hard to manage as it grows; each computer's performance suffers when others use it.
What is a single point of failure in a client-server network?
The server: if it fails, all the clients lose the services it provides.