Client–server and peer-to-peer

GCSE Computer Science (OCR) · OCR J277 · Computer systems (Paper 1) › Networks, connections and protocols › Networks and topologies

75 exam-style questions on this topic, at up to four difficulty levels, with full mark schemes. Notes and past-paper booklets are open to everyone. Practice needs a free account.

Or take a quick quiz: 11 questions on this subtopic in GCSE Computer Science (OCR), marked as you tap.

Revision notes

The two ways computers can be organised on a network: client–server, where servers provide services to clients, and peer-to-peer, where all computers have equal status. Questions ask you to describe the roles of the computers, compare the two models and recommend one for a given scenario.

Key facts

  • Server: provides services or resources (files, printing, email, web pages, logins)
  • Client: requests services from a server
  • Client–server: central management, backups and security; costs more; server is a single point of failure
  • Peer-to-peer: equal status, no central server; each peer is both client and server
  • Peer-to-peer: cheap and easy to set up; no central backups or central security
  • Web browsing is client–server: browser = client, web server = server

Notes

Client–server networks

diagram
  • One or more servers provide services to the other computers, called clients. Examples: file storage, printing, email, web pages, user logins and backups.
  • A client sends a request; the server processes it and sends back a response. A web browser and a web server work like this.
  • ClientClientClientClientrequestresponseServer
    Client–server: clients send requests to a central server, which sends responses
  • Everything is managed centrally: user accounts, passwords and access levels, backups and software updates.
  • Servers are powerful, but they cost more than ordinary computers, and a network manager is often needed.
  • If a server fails, clients cannot use its services (a single point of failure). If too many clients send requests at once, the server can become overloaded.

Peer-to-peer networks

diagram
  • All computers have equal status. There is no central server.
  • Each computer (a peer) can act as both a client and a server, sharing its own files and printers directly with other peers.
  • PeerPeerPeerPeer
    Peer-to-peer: no server; every peer can share its own files with the others
  • Cheap and easy to set up: there is no server to buy and no specialist is needed. Suitable for a few computers, such as a home network.
  • There are no central backups or central security, so each computer must be managed separately. Files may be spread across many computers, which makes them hard to find and keep up to date.
  • A peer that holds a shared file must be switched on for others to use it, and it can slow down while other peers access it.
  • Peer-to-peer file sharing over the Internet splits a large file into pieces. Each user downloads different pieces from many peers at once and uploads pieces to others, so no single server has to supply the whole file. Grade 7+ only

Choosing a model

  • Many computers, sensitive data or a need for central backups → client–server (e.g. a school, hospital or business).
  • A few computers, a small budget and no sensitive data → peer-to-peer (e.g. a family at home).

How to answer each type of question

State the roles of a client and a server

1 to 2 marksGrade 3
  1. Server: say that it provides a service and give an example.
  2. Client: say that it requests a service from the server.

Example. State the role of a server and the role of a client in a client–server network. [2]

Show the model answerHide the model answer
The server provides services or resources to the clients, e.g. storing files or checking logins (1). The client requests services or resources from the server (1).

Describe advantages or disadvantages of a model

2 to 4 marksGrade 5
  1. Name the advantage or disadvantage (1 mark).
  2. Explain its effect on the users or the organisation (1 mark).
  3. Keep each point about the model named in the question.

Example. Describe two disadvantages of a peer-to-peer network. [4]

Show the model answerHide the model answer
There is no central backup (1), so each user must back up their own files, and work could be lost if one computer fails (1). Security is not managed centrally (1), so each computer must be set up separately and it is hard to control who can access which files (1).

Recommend a model for a scenario

4 to 6 marksGrade 7
  1. Pick out the key facts: number of computers, budget, type of data, need for backups.
  2. Give points about both models, applied to the scenario.
  3. Make a clear recommendation and justify it using the scenario.

Example. A small architecture firm has 15 computers. Staff work on shared drawings that are updated every day. The drawings are valuable and must not be lost.
Recommend whether the firm should use a client–server or a peer-to-peer network. Justify your recommendation. [6]

Show the model answerHide the model answer
Client–server stores the drawings centrally on the server (1), so every member of staff works on the same, up-to-date version (1). All the drawings can be backed up from the server in one go (1), so they are not lost if a computer fails (1). Client–server costs more because a server must be bought and managed, whereas peer-to-peer would be cheaper (1). Recommendation: client–server, because protecting the valuable drawings and keeping them up to date is worth the extra cost (1).

Don’t lose marks

  • Saying peer-to-peer has 'no security'. Each computer can still use passwords; the point is that security is not managed centrally.
  • Describing a server only as 'the main computer that controls everything'. Say what it provides: files, printing, logins, backups.
  • Listing features of client–server without saying why they matter to the organisation in the question.
  • Forgetting that client–server has disadvantages too: cost, a network manager and a single point of failure.

More tips

Memory tricks

  • Server = serves (gives). Client = customer (asks).
  • Peer = equal, like classmates in a peer group: nobody is in charge.
  • Scenario check: 'sensitive data', 'backups', 'many users' → client–server; 'cheap', 'few computers', 'home' → peer-to-peer.

Exam technique

  • In recommendation questions, a one-sided answer loses marks: mention at least one drawback of your chosen model.
  • Use the organisation's details (e.g. 'patient records', 'four computers') in every point.
  • 'Describe two advantages' is usually 4 marks: one mark for each advantage and one for explaining it.

What each grade needs

What you need to be able to do, from the first marks up to the top grade.

  1. Grade 3
    State the role of a serverA server provides services or resources, such as files, printing, email or web pages, to clients.
  2. Grade 3
    State the role of a clientA client requests services or resources from a server.
  3. Grade 4
    Describe a peer-to-peer networkAll computers have equal status and share resources directly with each other, with no central server.
  4. Grade 5
    Give advantages and disadvantages of each modelE.g. client–server has central backups and security but costs more and the server is a single point of failure.
  5. Grade 6
    Explain why a model suits a scenarioLink features such as cost, central backups or security to the needs of the organisation described.
  6. Grade 7
    Recommend and justify a network modelWeigh cost, number of computers, security and backups for the organisation, then give a justified recommendation.

Quick recall

Cover the answers and test yourself. The app has these as flashcards that come back just before you'd forget them.

Give one example of a service that a server can provide to the clients on a network.
File storage (a file server)
Decide whether each statement is true or false. Write True or False for each one. A client–server network has at least one server.
True
Write the letters in the correct order, starting with the first step.
B, A, C
Name the type of network in which all of the computers have equal status and no computer is in charge.
Peer-to-peer
State one way that a server helps to keep users’ data safe.
Users must log in, and access rights limit which files they can open.
Give one advantage of a peer-to-peer network.
No server is needed, so it costs less.

Sample questions

Written for this site in the style of OCR exam questions. They are not taken from real past papers.

Question 1Easy3 marks
(a) State the role of a server in a client–server network.
[1]
(b) State the role of a client in a client–server network.
[1]
(c) In which type of network do all the computers have equal status?
Tick (✓) one box.
[1]
  • Client–server
  • Peer-to-peer
  • Both types of network
Show the answer and mark scheme
(a)
  • to provide services / resources to clients, e.g. files, printing, web pages, email / to manage the network
(b)
  • it requests services / resources from the server
(c) Answer: Peer-to-peer
Question 2Medium4 marks
Describe two advantages of a client–server network compared with a peer-to-peer network.
[4]
Show the answer and mark scheme
  • files are stored centrally
  • so they are easy to find / can all be backed up in one place
  • security is managed centrally
  • e.g. user accounts, passwords and access levels are set up on the server
  • software can be installed / updated centrally
  • so every client has the same version without visiting each computer
  • servers are powerful
  • so they can handle requests from many users
Question 3Hard4 marks
Some large software updates are shared using peer-to-peer file sharing over the Internet.
(a) Explain how peer-to-peer file sharing allows a very large file to be downloaded quickly by many people at the same time.
[3]
(b) Give one legal issue that can arise from peer-to-peer file sharing.
[1]
Show the answer and mark scheme
(a)
  • the file is split into many small pieces
  • each user downloads different pieces from many peers at the same time
  • users who already have pieces also upload them to others
  • so the load is shared and does not depend on the bandwidth of one server
(b)
  • copyrighted films / music / software may be shared without permission, breaking the Copyright, Designs and Patents Act 1988

More in Networks and topologies

Stuck? Get 1-to-1 help.

Chhetri Academy tutors GCSE and A level Maths and Science online, with a free 30-minute trial lesson.