KS3 · Computer Science
Client-server vs peer-to-peer
Switch off the server at school and nobody can log in. Switch off one laptop at home and the others carry on. Why the difference?
Computer Science · Structure
Two ways to organise a network
Tap each computer to see its job. Notice that one network has a centre and the other doesn't.
Tap any part of the diagram to see what it does.
Predict, then check
Picture the two networks you just tapped through. Commit before you look.
At school, the server that holds everyone's files and logins is switched off. At the same moment at home, one of three peers, a laptop, is switched off too. What happens to everyone else?
Where would you typically find each model?
Pick a use, then the model it typically uses. Read why it belongs there.
Still to sort
Client-server (0)
Servers provide the services; clients send requests.
Where the line is: Ask: is there a server that the other computers send their requests to?
Peer-to-peer (0)
No central server; the computers share directly.
Where the line is: Ask: are the computers sharing straight with each other, each able to request and provide?
WHAT YOU'VE LEARNED
A quick recap of today's lesson.
Every difference comes down to one question: is there a central server?
What you need to know
- A network is two or more computers or devices connected so they can communicate and share data and resources, like files, printers and internet access.
Have a goTwo friends link their games consoles so they can play together and swap saved games. One of them insists: "That's not a network, it's only two machines." Fair point?
No: it is a network.
Two or more connected devices sharing data is all it takes. There's no three-machine minimum and no server required.
- In a client-server network, one or more servers provide services: storing files, handling logins, sending web pages or email.
- The other computers are clients. A client sends a request; the server responds to it.
Have a goYour laptop asks the school server for your homework file, and the server sends it. Which machine is the client here?
Your laptop.
The client is whoever sends the request. It's easy to think the 'important' machine is the client, but the server is the one that responds.
- Being managed centrally means files can be backed up in one place, and security, accounts and access rights controlled centrally.
- The catch: servers cost more, usually need specialist staff, and if a server fails its clients lose access to its services.
- Peer-to-peer has no central server. Every peer has equal status and can act as both a client and a server.
Have a goIn a peer-to-peer network, Laptop A downloads a file from Laptop B, then Laptop B prints using Laptop A's printer. Which role or roles did Laptop A play?
Both: client first, then server.
A requested a file (client), then provided its printer (server). Peers aren't stuck with one job.
- It's cheaper and simpler to set up, and it doesn't depend on a single server.
- But files end up spread across many computers, so backups and security have to be managed on each one separately.
- When a peer is switched off its files are unavailable, and a peer can slow down while others use its resources.
- Schools, businesses and the web typically use client-server; small home networks and some file-sharing typically use peer-to-peer.
The big picture
A network is two or more computers or devices connected so they can communicate and share data and resources. In a client-server network, one or more servers provide services and the clients send them requests. In a peer-to-peer network there is no central server: every peer has equal status and can act as both client and server. Each model's benefits and drawbacks follow from that one difference, and it decides where each model is typically used.
Key points
Worked example
Problem
A small bakery has two laptops. The owners want to share a folder of recipes and one printer. Money is tight, and nobody at the bakery knows how to look after computers. Which network model suits the bakery better, and what does it give up?
⚠ Watch out
Getting the roles the wrong way round. In client-server, the CLIENT sends the request and the SERVER provides the service and responds, never the other way round.
Memory hook
Client-server: clients ask, the server answers. Peer-to-peer: everyone can ask, everyone can answer.
Check yourself
Cover the page. Sketch both networks as dots and lines, label a server, a client and a peer with what each one does, then write one benefit and one drawback under each sketch.
Flashcards
(13)What is a network?
What does a server do in a client-server network?
What does a client do?
What is a peer?
Why can a client-server network back up files in one place?
Name three things a client-server network can control centrally.
Why can a client-server network cost more to run?
In a client-server network, what happens if a server fails?
A peer-to-peer network loses one peer. Does everything stop?
Why are backups harder in a peer-to-peer network?
Why might a peer's computer slow down?
Who typically uses client-server networks?
Who typically uses peer-to-peer networks?
Tap any card to flip it, or use Study as deck to go through them one at a time. In the full lesson these run as a spaced-repetition deck — you rate each card Hard, Good or Easy and the tricky ones keep coming back until they stick.
Learning with Lightbulb is opening soon
You can use this lesson now. Join the waitlist and we'll let you know when the full Lightbulb experience is ready.
Keep me postedMore KS3 Computer Science topics
How this lesson was checked. This KS3 Computer Sciencelesson was published through Lightbulb Learning's human-designed editorial process — the educational standards, accuracy rules and publication checks it must pass were authored and approved by Philip Halpin. It passed subject-specific assessment, automated educational checks and technical publication verification before going live (publication checks completed 27 October 2026). Published pages are monitored, human spot-checking is ongoing across the lesson library, and anything found wrong is corrected or withdrawn. How our lessons are made and checked. Spotted a mistake? Email hello@lightbulblearning.co and we'll review it.