Revision Notes
IB DP Computer Science (DP Computer Science): Servers, Client-Server and Peer-to-Peer Models – Revision Notes
Condensed notes on server functions (HL) and client-server versus peer-to-peer networks for IB DP Computer Science A.2, with exam traps and a self-test.
- Subject
- Computer Science
- Level
- IB
- Topic
- A.2 – Networks
- Author
- Marlbridge Academic Team
- Updated
- Reviewed by
- Harris Khan (what this means)
Aligned to International Baccalaureate IB Diploma Programme Computer Science (DP Computer Science), First assessment 2027. Official subject brief .
Syllabus page (what it covers and how it is assessed): IB Diploma Programme Computer Science.
Found an error? Report a correction.
Need help with this topic? Request a free trial class for IB Diploma Programme Computer Science (DP Computer Science (2014) / DP Computer Science (2027)).
Quick-recall notes for A2.2.2, the function of servers (HL only), and A2.2.3, client-server and peer-to-peer models (SL and HL), in A.2 Networks (IB DP Computer Science, first assessment 2027). For full explanations and worked scenarios, use the servers, client-server and peer-to-peer study guide; for devices and protocols, see the A.2 Networks revision notes.
Key terms
| Term | Meaning |
|---|---|
| Client | Device or program that requests a service |
| Server | Device or program that provides a service to clients over a network |
| Client-server model | Network in which dedicated servers provide services and clients request them |
| Peer-to-peer (P2P) model | Network with no dedicated server; each peer can both provide and request |
| Peer | A computer in a P2P network acting as client and server |
| Single point of failure | One component whose failure stops the whole service |
| Load balancing | Sharing requests between several servers |
| Bottleneck | A point where demand exceeds capacity, slowing everything down |
| Caching | Keeping copies of frequently requested data to serve them faster |
| Centralised management | Accounts, permissions, updates and backups controlled in one place |
HL: server functions
| Server | Does what |
|---|---|
| Web | Sends web pages to browsers in response to HTTP/HTTPS requests |
| File | Stores shared files; controls access |
| Database | Stores a database; runs queries from clients |
| Receives, stores and forwards email | |
| DNS | Domain name → IP address |
| DHCP | Gives joining devices an IP address and settings |
| Queues and manages print jobs | |
| Proxy | Intermediary to the internet; filters content; caches pages |
| Application | Runs an application’s logic for many clients |
What all servers need: enough processing power, memory and bandwidth for many concurrent clients; high availability (backups, load balancing); strong security, since they hold central data.
Client-server versus P2P
| Criterion | Client-server | Peer-to-peer |
|---|---|---|
| Roles | Fixed | Each peer does both |
| Management | Central (easy) | Each user (harder) |
| Security | Central policies | Depends on every peer |
| Backup | Central | Each peer separately |
| Cost | Higher (server, software, staff) | Lower |
| Failure | Server down → service down (unless backed up) | One peer down → limited effect |
| Performance under load | Server can be a bottleneck | Load shared; but a busy peer slows its owner’s work |
| Data availability | Always, while server runs | Only while the holding peer is online |
| Best for | Organisations, sensitive data, many users | Small networks, low budget, large-scale file distribution |
Deciding in a scenario: four questions
- How many users and devices? Few → P2P possible; many → client-server.
- How sensitive or important is the data? Important → central storage and backup.
- What is the budget and expertise? Low on both → P2P.
- Must data always be available? Yes → client-server with backup.
Hybrid systems
Central servers for login and finding users (client-server) plus direct data exchange between users (P2P), as in some video-calling and multiplayer game services.
Exam traps
- A server is a role, not a size of computer.
- P2P is not “insecure”; its security is decentralised and so harder to enforce.
- Client-server has a single point of failure unless servers are duplicated.
- DNS resolves names; DHCP assigns addresses. Do not swap them.
- In comparisons, cover both models under each criterion.
- In recommendations, refer to the scenario’s size, data, budget and staff.
Self-test
- Define a server.
- Why can one laptop be both a client and a server?
- (HL) State the function of a DHCP server.
- (HL) State two functions of a proxy server.
- (HL) What does a database server do when it receives an SQL query from a client?
- Give two advantages of the client-server model.
- Give two disadvantages of the client-server model.
- Define a peer-to-peer network.
- Why can large P2P file-sharing systems handle more users without slowing down as much?
- Give two disadvantages of P2P networks.
- A family wants to share photos between three laptops at home. Which model suits them, and why?
- How can an organisation reduce the risk of a server being a single point of failure?
Answers:
- A device or program that provides a service to clients over a network.
- Client and server are roles; the laptop can request services and also provide one, such as a shared folder.
- It allocates IP addresses and network settings to devices as they join the network.
- Any two: filters requests to block unsuitable sites; caches frequently requested pages; hides clients’ addresses from the internet.
- It runs the query on the stored database and returns the results to the client.
- Any two: central management; central security; central backup; one authoritative copy of data.
- Any two: cost of hardware, software and staff; single point of failure; possible bottleneck.
- A network with no dedicated server in which each computer can both provide and request resources.
- Each downloader also uploads to others, so capacity grows with the number of peers.
- Any two: each peer must be backed up separately; security depends on every user; files are unavailable when the holding peer is offline; a peer slows down when others use it.
- Peer-to-peer: few devices, low cost, easy to set up, and no need for central management.
- Use backup servers or several servers with load balancing, so another can take over if one fails.
Related pages
Official syllabus
International Baccalaureate Organization, Diploma Programme Subject Brief – Sciences: Computer science, first assessment 2027, © 2024.
Related resources
-
Study guides
IB DP Computer Science (DP Computer Science): Network Vulnerabilities and Countermeasures (HL)
HL study guide to network vulnerabilities and countermeasures in IB DP Computer Science A.2: malware, interception, denial of service, and how to defend.
Computer Science · International Baccalaureate · IB
Read guide -
Practice questions
IB DP Computer Science (DP Computer Science): Network Vulnerabilities and Countermeasures (HL) – Practice Questions
Twelve original HL questions on network vulnerabilities and countermeasures for IB DP Computer Science A.2, with full mark-scheme answers.
Computer Science · International Baccalaureate · IB
Try questions -
Revision notes
IB DP Computer Science (DP Computer Science): Network Vulnerabilities and Countermeasures (HL) – Revision Notes
Condensed HL notes on network vulnerabilities and countermeasures for IB DP Computer Science A.2: threats, defences, encryption, exam traps and a self-test.
Computer Science · International Baccalaureate · IB
Revise topic
Get free revision emails (optional)
Occasional emails with practice questions, worked explanations and links to free resources for the qualification and subjects you choose. No spam, and you can unsubscribe from any email. The free tools on this site never need an email.