IB Computer Science · A2 · Networks
A2.2 Network architecture
Compare client–server and peer-to-peer models, describe the roles of servers and clients, explain protocols, and identify common topologies.
1/5Servers provide services and clients request them
- Servers provide services and clients request them
- Client–server and peer-to-peer networks share resources in different ways
- Protocols are agreed rules that make communication possible
- Topology describes how devices are arranged and linked
- Real networks combine a model, protocols and a topology
- Check your recall
- Practice: 10 questions
Part 1 of 5: Servers provide services and clients request them
Picture a restaurant where waiters bring meals from a central kitchen. A server works like the kitchen: it provides a service or resource to other devices. A client is the device that asks for it. A browser requesting a web page is a client.
Servers commonly perform tasks such as these.
- storing and sharing files
- hosting websites and web applications
- managing email
- controlling user accounts and access
Servers are usually switched on all the time and built for reliability. One server can offer several services. One client can use many servers.
Key terms · tap one for its definition
server
A server is a computer or program that provides services or resources to clients over a network.
client
A client is a device or program that requests services or resources from a server.
Part 2 of 5: Client–server and peer-to-peer networks share resources in different ways
Not every network needs a dedicated server. In a peer-to-peer network, each device can both share its own resources and use those of others. This suits a small home or classroom. The client–server model instead keeps resources on central servers, which gives central control.
Comparing the two network models
- Feature
- Control
- Client–server
- Central, managed on servers
- Peer-to-peer
- Spread across all devices
- Feature
- Cost
- Client–server
- Higher: servers and management
- Peer-to-peer
- Lower: no dedicated server
- Feature
- Growth
- Client–server
- Scales well to many users
- Peer-to-peer
- Harder to manage as devices increase
- Feature
- Security
- Client–server
- Rules enforced centrally
- Peer-to-peer
- Each device sets its own
- Feature
- Failure
- Client–server
- A server fault affects its users
- Peer-to-peer
- A fault affects only that device’s shares
Most schools and companies choose client–server because they must manage many users. Peer-to-peer remains common where a few people share a printer or a folder and nobody needs to control access.
Key terms · tap one for its definition
peer-to-peer network
A peer-to-peer network is a network in which each device can act as both client and server, without a dedicated central server.
client–server model
The client–server model is a network design in which clients send requests to dedicated servers that hold resources and control access.

Quick check
One question on the part you just read
Easy
Show answer and explanation
Answer: B · Worked explanation
Part 3 of 5: Protocols are agreed rules that make communication possible
Two devices can only communicate if they follow the same rules, like two people sharing a language. A protocol is such a set of rules for sending and receiving data. It sets the message format, the order of messages and how errors are handled.
Common protocols each have a clear job.
- HTTP (Hypertext Transfer Protocol): requests and delivers web pages
- HTTPS (HTTP Secure): a secured version of HTTP
- FTP (File Transfer Protocol): transfers files between devices
- SMTP (Simple Mail Transfer Protocol): sends email between mail servers
- IP (Internet Protocol): addresses devices and routes data between networks
Because protocols are agreed standards, hardware and software from different makers can work together.
Key term
protocol
A protocol is a set of agreed rules that governs how devices format, send, receive and check data on a network.
Part 4 of 5: Topology describes how devices are arranged and linked
Topology is about layout, not about the devices themselves. A network topology is the arrangement of devices and links in a network. In a star topology, every device connects to a central switch. In a mesh topology, devices have links to several others.
Features of common topologies
- Topology
- Star
- Layout
- Each device linked to a central switch
- Strength
- A cable fault affects one device only
- Weakness
- Switch failure stops the whole network
- Topology
- Bus
- Layout
- Devices share one backbone cable
- Strength
- Needs little cable and is cheap
- Weakness
- A break in the backbone can split the network
- Topology
- Ring
- Layout
- Each device linked to two neighbours in a loop
- Strength
- Data flows in an orderly direction
- Weakness
- One break can stop traffic
- Topology
- Mesh
- Layout
- Devices linked to several others
- Strength
- Alternative routes keep data moving
- Weakness
- Many links make it costly
Most modern wired LANs use a star topology. Adding or removing a device does not disturb the others. Bus and ring layouts are now uncommon in new wired networks. Wireless devices around one access point also form a star-like layout. The best choice depends on cost, reliability and how many devices must be joined.
Key terms · tap one for its definition
network topology
A network topology is the arrangement of the devices and links in a network.
star topology
A star topology is a layout in which every device connects directly to one central device, usually a switch.
mesh topology
A mesh topology is a layout in which each device has direct links to several other devices, giving alternative routes.

Quick check
One question on the part you just read
Easy
Show answer and explanation
Answer: D · Worked explanation
Part 5 of 5: Real networks combine a model, protocols and a topology
A school network shows how the three ideas fit together. It uses the client–server model, so servers hold files and manage accounts. Each room is wired as a star, with a switch at the centre. Protocols such as HTTP and IP let all the devices understand one another.
Choosing a design means matching needs to features. A small home with few devices may suit peer-to-peer sharing. A business with many users needs central control and room to grow.
Check your recall[14 marks]
5 written questions. Answer each one in your head or on paper, then open the mark scheme.
- 1.Compare[3 marks]
Compare the client–server model with the peer-to-peer model.
Show mark schemeHide mark scheme
Model answer
In client–server, central servers hold resources and control access. In peer-to-peer, devices share resources directly and no dedicated server is needed. Client–server costs more but scales and is managed more easily.
- 1 mark for stating that client–server uses central servers to hold resources and control access
- 1 mark for stating that peer-to-peer devices share resources directly, with no dedicated server
- 1 mark for making a direct comparison on one feature, such as cost, scalability or security
- 2.Describe[2 marks]
Describe the roles of a server and a client in a network.
Show mark schemeHide mark scheme
Model answer
A server provides services or resources, such as file storage or web pages, to other devices. A client is the device that requests those services or resources.
- 1 mark for stating that a server provides services or resources to other devices
- 1 mark for stating that a client requests services or resources from a server
- 3.Explain[3 marks]
Explain why devices on a network need to use protocols.
Show mark schemeHide mark scheme
Model answer
A protocol is a set of agreed rules for sending and receiving data. Both devices must follow the same rules to understand each other. Agreed standards also let equipment from different makers work together.
- 1 mark for stating that a protocol is a set of agreed rules for communication
- 1 mark for explaining that both devices must follow the same rules to understand each other
- 1 mark for explaining that standards let equipment from different makers work together
- 4.Distinguish[3 marks]
Distinguish between a star topology and a bus topology.
Show mark schemeHide mark scheme
Model answer
In a star topology, every device connects to a central switch. In a bus topology, devices share one backbone cable. A cable fault in a star affects one device, but a backbone break can split a bus network.
- 1 mark for stating that a star connects every device to a central switch
- 1 mark for stating that a bus connects devices to one shared backbone cable
- 1 mark for distinguishing the effect of a fault in each layout
- 5.Suggest[3 marks]
Suggest a suitable network model for a school with 400 students that needs central control of accounts and files, and give two reasons.
Show mark schemeHide mark scheme
Model answer
The client–server model is suitable. Servers can manage accounts and access centrally. It also scales well to many users.
- 1 mark for suggesting the client–server model
- 1 mark for giving a first reason, such as central control of accounts and access
- 1 mark for giving a second reason, such as scaling well to many users

Practice this topic
10 quick-fire multiple-choice questions, easy to hard. Tap an answer to see if you're right and the worked explanation. (The written questions with mark schemes are under “Check your recall” above.)
0 right0 of 10 answered
Includes the 2 quick checks in the note above.
EasyIdentify[1 mark]
Show answer and explanation
Answer: A · Worked explanation
Medium[1 mark]
Show answer and explanation
Answer: C · Worked explanation
MediumIdentify[1 mark]
Show answer and explanation
Answer: C · Worked explanation
MediumPredict[1 mark]
Show answer and explanation
Answer: A · Worked explanation
MediumCalculate[2 marks]
Show answer and explanation
Answer: D · Worked explanation
HardCalculate[2 marks]
Show answer and explanation
Answer: B · Worked explanation
HardIdentify[2 marks]
Show answer and explanation
Answer: A · Worked explanation
Hard[2 marks]
Show answer and explanation
Answer: C · Worked explanation