Peer-to-peer and client-server communication models
How devices share the work of requesting and providing data: client-server uses dedicated servers, while peer-to-peer lets every device do both.
Understanding Peer-to-peer and client-server communication models in WA Computer Science ATAR Unit 1
What it does: Centralising data and management on a dedicated server is the client-server model, which makes administration and security easier to control. Peer-to-peer spreads storage and sharing across devices. If one peer fails the others keep working, but there is no central point to enforce security. In peer-to-peer, each device (peer) can act as both client and server. In peer-to-peer (P2P) every device is a peer that shares and requests data, so the work is distributed across the network.
Common mistakes: The loop must go through the list of clients, because every client sends a request to the single server. A server is one device, not a list to loop over. It should be: FOR EACH c IN clients DO. Peer-to-peer has no dedicated server. Each peer requests data from another peer, so the line should be p.request(random(peers)).
Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.
This module's key terms are also in a printable crossword (Modules 315–470) and word search (Modules 100–470).
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
communication modelFill in the Blanks
Spot the Error
Student with a class code? Join your class →