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.

Client-serverPeer-to-peerrequest / responseshare directly

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?

Benefits and drawbacks: which model is it?

Tick the model each statement is true of. Then check your grid and read why.

Files can be stored and backed up in one place
Security, user accounts and access rights can be controlled centrally
Usually needs specialist staff to set up and manage
Cheaper and simpler to set up
Backups and security have to be sorted out on each computer separately
A computer can slow down while others are using its resources

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?

5 of 5 still to sort.

Is it really a network?

Two friends connect their laptops so they can swap photos and use one printer. There's no server anywhere.

Which is closest to what you think right now?
How sure are you?

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

1A network is two or more connected computers or devices that communicate and share data and resources.
2Client-server: one or more servers provide services such as files, logins, web pages or email; clients send requests and the server responds.
3Client-server benefits: files can be stored and backed up in one place, and security, accounts and access rights controlled centrally. Drawbacks: servers cost more, usually need specialist staff, and a server failure cuts its clients off from its services.
4Peer-to-peer: no central server; every peer has equal status and can act as both client and server, sharing directly.
5Peer-to-peer benefits: cheaper and simpler to set up, with no dependence on a single server. Drawbacks: files are spread out, backups and security are managed on each computer, a switched-off peer's files are unavailable, and a peer can slow down while serving others.
6Typical uses: client-server for schools, businesses and the web; peer-to-peer for small home networks and some file-sharing.

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?
Two or more computers or devices connected so they can communicate and share data and resources, such as files, printers and an internet connection.
What does a server do in a client-server network?
It provides services and resources, such as storing files, handling user logins, or sending web pages or email, and responds to clients' requests.
What does a client do?
It sends requests to a server, and the server responds.
What is a peer?
A computer in a peer-to-peer network. All peers have equal status, and each can act as both a client and a server.
Why can a client-server network back up files in one place?
Because the files are stored centrally on the server, rather than spread across the clients.
Name three things a client-server network can control centrally.
Security, user accounts and access rights.
Why can a client-server network cost more to run?
Servers are more expensive, and they usually need specialist staff to set up and manage.
In a client-server network, what happens if a server fails?
The clients lose access to that server's services, such as their stored files or logins.
A peer-to-peer network loses one peer. Does everything stop?
No. There's no single server to depend on: only that peer's files become unavailable, and the others keep sharing.
Why are backups harder in a peer-to-peer network?
Files are spread across many computers, so backups and security must be managed on each computer separately.
Why might a peer's computer slow down?
Other peers may be using its resources at the same time, for example opening its files or printing on its printer.
Who typically uses client-server networks?
Schools and businesses. The web works this way too: your browser is a client requesting pages from web servers.
Who typically uses peer-to-peer networks?
Small home networks, and some file-sharing.

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 posted

More KS3 Computer Science topics

See the full KS3 Computer Science curriculum →

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.

Helpful guides for parents and students