Scribe logoScribeNotes & practice
Sign inStart free
  1. Notes
  2. ›IB Computer Science
  3. ›A2 Networks
  4. ›A2.2 Network architecture

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.

  • 5 min read
  • 5 parts
  • 10 questions
  • Draft
Start a Quick 5 on this topic→Jump to the 10 questions
1/5Servers provide services and clients request them
  1. 1Servers provide services and clients request them
  2. 2Client–server and peer-to-peer networks share resources in different ways
  3. 3Protocols are agreed rules that make communication possible
  4. 4Topology describes how devices are arranged and linked
  5. 5Real networks combine a model, protocols and a topology
  6. Check your recall
  7. Practice: 10 questions
1

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 1 done

2

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

FeatureClient–serverPeer-to-peer
ControlCentral, managed on serversSpread across all devices
CostHigher: servers and managementLower: no dedicated server
GrowthScales well to many usersHarder to manage as devices increase
SecurityRules enforced centrallyEach device sets its own
FailureA server fault affects its usersA fault affects only that device’s shares
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.

Exam tip

Compare using named features such as cost, control and security. Describing each model separately earns fewer marks than a direct comparison.

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.

Part 2 done

Quick check

One question on the part you just read

Easy

Identify the role of a server.
Show answer and explanation

Answer: B · Worked explanation

A server provides services or resources to clients, such as file storage or web pages. The device that requests services is a client, which is the tempting wrong answer. A set of rules is a protocol, and a layout of devices and links is a topology.
3

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.

Exam tip

State what each protocol does as well as its name. A correct purpose earns marks, but an expanded abbreviation alone does not.

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 3 done

4

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.

Figure 1. Star devices share a central switch, bus devices share one backbone, ring devices form a loop and mesh devices have many links.

Features of common topologies

TopologyLayoutStrengthWeakness
StarEach device linked to a central switchA cable fault affects one device onlySwitch failure stops the whole network
BusDevices share one backbone cableNeeds little cable and is cheapA break in the backbone can split the network
RingEach device linked to two neighbours in a loopData flows in an orderly directionOne break can stop traffic
MeshDevices linked to several othersAlternative routes keep data movingMany links make it costly
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.

Go deeperCounting links in a full mesh

In a full mesh, every device links directly to every other device. For nnn devices, the number of links is n(n−1)2\frac{n(n-1)}{2}2n(n−1)​. Four devices need 6 links, and six devices need 15.

The number of links rises much faster than the number of devices. This growth explains why full meshes are costly.

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.

Part 4 done

Quick check

One question on the part you just read

Easy

State the term for a set of agreed rules for sending and receiving data.
Show answer and explanation

Answer: D · Worked explanation

A protocol is a set of agreed rules that governs how devices format, send, receive and check data. A topology describes how devices are arranged and linked, so it concerns layout rather than rules. A client and a server are devices or programs with roles in a network, not rule sets.
5

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.

Common mistake

A topology is not a protocol. Topology describes the layout of devices, while a protocol describes the rules for communication.

Note read

Check your recall[14 marks]

5 written questions. Answer each one in your head or on paper, then open the mark scheme.

  1. 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. 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. 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. 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. 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.

3.

Easy·Identify[1 mark]

Identify the topology in which every device connects to one central switch.
Show answer and explanation

Answer: A · Worked explanation

In a star topology every device has its own link to a central switch. A bus uses one shared backbone cable. A ring joins each device to two neighbours in a loop. A mesh gives devices links to several others, so it has no single central switch.
4.

Medium[1 mark]

Three friends join their laptops at home. Each shares files directly from their own laptop, and there is no dedicated server. Which model is in use?
Show answer and explanation

Answer: C · Worked explanation

When each device both shares and uses resources and no dedicated server exists, the network is peer-to-peer. Client–server needs central servers, which is the tempting wrong answer. Mesh and star are topologies, which describe layout, so they do not name a network model.
5.

Medium·Identify[1 mark]

Identify the protocol used to request and deliver web pages.
Show answer and explanation

Answer: C · Worked explanation

HTTP is the protocol that requests and delivers web pages. SMTP sends email between mail servers, and FTP transfers files between devices. IP addresses devices and routes data between networks, so it supports web traffic without being the protocol that requests the pages.
6.

Medium·Predict[1 mark]

In a bus topology, the shared backbone cable is cut in the middle. Predict the most likely effect.
Show answer and explanation

Answer: A · Worked explanation

All devices depend on the one backbone, so a break in the middle can split the network into two parts that cannot reach each other. Alternative routes belong to a mesh, which is why the claim of nothing changing is wrong. A bus has no central switch, so nothing can redirect traffic.
7.

Medium·Calculate[2 marks]

Calculate the number of links in a full mesh of 5 devices, using n(n−1)2\frac{n(n-1)}{2}2n(n−1)​.
Show answer and explanation

Answer: D · Worked explanation

With n=5n=5n=5, the number of links is 5×42=10\frac{5\times4}{2}=1025×4​=10. The value 20 comes from forgetting to divide by 2, which counts every link twice. The value 25 comes from squaring the number of devices. The value 5 is only the number of devices, not the number of links between them.
8.

Hard·Calculate[2 marks]

A designer compares a full mesh of 6 devices with a star of 6 devices around one switch. Calculate how many more links the mesh needs.
Show answer and explanation

Answer: B · Worked explanation

The full mesh needs 6×52=15\frac{6\times5}{2}=1526×5​=15 links. The star needs one link per device, which is 6. The difference is 15−6=915-6=915−6=9. The value 15 is the mesh alone, without subtracting the star. The value 21 comes from adding the two totals instead of subtracting.
9.

Hard·Identify[2 marks]

Servers manage accounts in a school network. Each computer has its own cable to one central switch. Identify the model and topology.
Show answer and explanation

Answer: A · Worked explanation

Servers managing accounts show the client–server model. A separate cable from each computer to one switch is a star topology. Peer-to-peer would have no dedicated servers. A bus would use one shared backbone, and a mesh would link each computer to several others.
10.

Hard[2 marks]

Which is the strongest reason a large company would choose client–server rather than peer-to-peer?
Show answer and explanation

Answer: C · Worked explanation

Central servers let administrators set access rules and take backups for many users in one place. Needing no dedicated server is a feature of peer-to-peer, not client–server. Individual sharing rules also belong to peer-to-peer. A server fault can still disturb its users, so no device failure is harmless.

Keep going

Next topicA2.3 Data transmissionPrevious topicA2.1 Network fundamentals

More in A2 · Networks

  1. A2.1Network fundamentalsNotes · 10 questions
  2. A2.2Network architectureNotes · 10 questions
  3. A2.3Data transmissionNotes · 10 questions
  4. A2.4Network securityNotes · 10 questions

All IB Computer Science topics →

Draft: written by Scribe and checked automatically, not yet by a subject reviewer.

Practice questions are original, written by Scribe and checked automatically for correctness.

Topic codes follow the official numbering. Not endorsed by IB Diploma Programme or any exam board.

On this page

0/5 read

  1. 1Servers provide services and clients request them
  2. 2Client–server and peer-to-peer networks share resources in different ways
  3. 3Protocols are agreed rules that make communication possible
  4. 4Topology describes how devices are arranged and linked
  5. 5Real networks combine a model, protocols and a topology
  6. Check your recall
  7. Practice: 10 questions
All coursesScribeHow it worksPricingPrivacyTerms

Notes and questions are written by Scribe in our own words. Topic codes follow the official course numbering so you can find your place. Not produced or endorsed by the IB, College Board, AQA, OCR, Pearson Edexcel or any exam board.

© 2026 Scribe