Explain the client-server and peer-to-peer models of networked computers
2.1 Networks – The Internet
What is a Network?
A network is a group of computers that can talk to each other. Think of it like a telephone network where you can call friends, but instead of voices, computers send data packets.
Client‑Server Model
Imagine a restaurant:
- Client (you) – places an order.
- Server (chef) – prepares the food.
- Network – the kitchen staff passing the order and the food.
In a computer network, the client requests a service (e.g., a web page). The server processes the request and sends back the data.
Key points:
- Centralised control – one or a few servers.
- Clients are usually less powerful.
- Scalable – add more servers to handle more clients.
Peer‑to‑Peer (P2P) Model
Think of a potluck dinner:
- Everyone brings a dish (data).
- No single host is responsible for everything.
- Each participant can both request and provide food.
In P2P networks, each computer (peer) can act as both client and server. Examples: file sharing (BitTorrent), some VoIP services.
Key points:
- Decentralised – no single point of failure.
- Peers share resources directly.
- Can be less secure if peers are not trusted.
Comparison Table
| Feature | Client‑Server | Peer‑to‑Peer |
|---|---|---|
| Control | Centralised | Decentralised |
| Scalability | High with more servers | Limited by peer capacity |
| Security | Centralised security policies | Depends on each peer |
| Typical Use | Web servers, email, databases | File sharing, blockchain, some VoIP |
Exam Tips 💡
- Remember the analogy of a restaurant for client‑server and a potluck for P2P.
- Be able to list three key differences (control, scalability, security).
- Use the table format if you need to compare features quickly.
- When asked to draw a diagram, label the client, server, and network clearly.
- Practice explaining both models in one sentence each.
Revision
Log in to practice.
2 views
0 suggestions