Communication

Communication

Client-server, peer-to-peer, thin and thick clients

Networks including the internet AS Level 16 min read

On this page
  1. What you need to be able to do
  2. The client-server model
  3. The peer-to-peer model
  4. Thin client and thick client
  5. Choosing a model: case by case
  6. Mark-scheme focus
  7. Worked examples
  8. Summary
  9. Can I do this?
  10. Quiz

What you need to be able to do

Syllabus 2.1 Networks including the internet
  • 2.1Explain the client-server and peer-to-peer models: the role of each computer, the benefits and drawbacks of each.
  • 2.1Justify using a model for a given situation.
  • 2.1Explain thin-client and thick-client and the differences between them.

You need: Networks: LAN and WAN. Next: Network topologies.

The client-server model

Client 1Client 2Client 3Client 4Server
Clients ask; the server answers.
  1. The server is a powerful computer that stores the data / resources centrally and provides services: it receives requests, processes them and sends back the results.
  2. A client is a user's computer (or app / web browser) that sends a request to the server, waits, then outputs the response.
  3. The server is in charge: it controls access (log-ins, permissions), backups and security for everyone.

Everyday examples: a web browser (client) and a web server; a banking app (client) and the bank's server; a school's file server; an email server; an online game whose server holds every player's data.

BenefitsDrawbacks
Central management: security, backups and software updates done once, on the serverExpensive: a server and specialist staff are needed
Data is in one place, so it is consistent and up to date for everyoneSingle point of failure: if the server fails, clients can't work
Access rights control who sees whatThe server can become a bottleneck when many clients make requests
Scales to many users (add a more powerful server)

The peer-to-peer model

Peer APeer BPeer CPeer D
Every peer is both a client and a server.
  1. All computers have equal status: there is no central server.
  2. Each computer provides access to its own resources and data (the data is distributed) and uses the others'.
  3. Each computer is responsible for its own security (and its own backups).
BenefitsDrawbacks (with the reason the scheme wants)
Cheap and easy to set up: no server, no specialist staffReduced security: no central management, so the network is only as secure as the weakest computer; each computer is at risk from viruses on the others
No single point of failure: if one peer goes down the others keep workingNo central backup: if one computer's data isn't backed up it is lost to everyone
Good for sharing files among a few users (and for torrent-style file sharing)No central management of files / software: hard to keep versions consistent
A computer may respond slowly because others are using its resources; files are only available while that computer is switched on
A peer-to-peer network is a model (who provides services), not a topology (how the cables run): it can use Wi-Fi, a star or anything else. The June 2021 report saw it confused with a mesh topology.

Thin client and thick client

Thin clientThick (fat) client
Where the processing happenson the server: the server performs all (most) processing and data storageon the client: the client does most processing itself; the server does some
What the client doesonly sends requests and displays the returned resultsruns applications locally; resources installed locally
Networkheavily reliant on a constant connection to the server: no connection, no workcan keep working (at least partly) without the server
Client hardwarefew local resources: cheap, low-power, low memorypowerful processor, memory and storage
Security / managementdata stays on the server (not on the device); updates in one placedata on many devices; each must be updated and secured
Examplesbrowser-based marking software; a library catalogue terminal; cloud apps on a Chromebooka gaming PC; a video-editing workstation; an app installed on a laptop that syncs later
The June 2023 reports: thin- and thick-client answers were “too vague and could apply to any general client-server model”. Give one statement about the client's role AND one about the server's role, specific to thin or thick.

Choosing a model: case by case

1 A school network

A school with 600 students and 300 computers. Which model? Justify.

Askedmodel + reasonsKnowmany users, needs controlRoutecentral management → client-server

  1. Client-server
  2. central control of security and user access rights (students can't see staff files)
  3. central backups of everyone's work every night
  4. software installed and updated once on the server

2 Three friends sharing photos

Three friends at home want to share photos between their laptops. Which model?

Askedmodel + reasonsKnowfew users, no budgetRoutecheap and simple → P2P

  1. Peer-to-peer
  2. no server to buy and little setup
  3. only three users, so central management isn't needed

3 An online multiplayer game

Players around the world play in one virtual world. Why is it client-server?

AskedexplanationKnowone shared worldRouteserver holds the state

  1. The web server stores all the data for each player; each player's browser is a client
  2. clients send requests over the internet; the server performs the action, updates the game data and sends the results to the players

4 Exam marking

Examiners mark scanned scripts in a browser; the scripts must never be stored on their own computers. Thin or thick client?

Askedtype + reasonKnowdata must stay centralRoutenothing stored locally → thin

  1. Thin client: scripts stay on the server, not on the examiner's computer
  2. examiners can use low-resource devices; but they can't mark if the server or connection is down

Mark-scheme focus

Describe the roles of the computers in a thin-client model (2 marks)

9618/13/M/J/23 Q2Paper 1 · Theory fundamentalsPart (c)2 marksFull size
(c) The computers in one room are set up as thin-clients in a client-server model. Describe the role of the different computers in this model. [2]
Credited
  • Server performs all processes required by the task and / or data storage B1
  • Clients only send requests to the server and display the returned results B1
Not credited
  • “The server serves the clients” (circular)
  • Answers that fit any client-server model with no thin-client detail
Why

Thin means the client does almost nothing: say so for the client, and say the server does the processing.

From: 9618/13/M/J/23 Q2(c)

Describe a thick-client model (2 marks)

9618/12/M/J/23 Q1Paper 1 · Theory fundamentalsPart (e)2 marksFull size
(e) The network runs as a thick-client model. Describe what is meant by a thick-client model. [2]
Credited
  • The server performs minimal / some processing for the client B1
  • The clients do most of their own processing independently // most of the resources are installed locally B1
Not credited
  • “The client is more powerful” with no role described
  • Only one side (client or server) described

From: 9618/12/M/J/23 Q1(e)

  • Client-server roles: 2-4 marks, usually in a context (bank app, online game, school).
  • P2P: features and drawbacks; each drawback needs its reason (“weak security” alone was not enough).
  • Thin / thick: describe, or give characteristics applied to a given piece of software (4 marks).

Worked examples

Example 1 · Roles in a banking app (Paper 1, 4 marks) ★ Easy
9618/11/M/J/24 Q5Paper 1 · Theory fundamentalsPart (a)4 marksFull size
A bank allows customers to access their accounts using an application on a smartphone. (a) The system is a client-server model. Describe the roles of the different devices in this model. [4]
1 Read it with me what is actually happening?

Two devices to identify IN THIS SCENARIO, and a role for each: 1 mark to name it, 1 to describe it.

  • roles of the different devicesserver and client, each named in the bank context
2 What is it asking for? the target, part by part
  • (a)identify + describe server and client4
3 What do we know? everything the question gives us
  • bank, app, smartphone
4 Plan the route work backwards from what we want
FindKey ideaAlready have itWork out firstTrap
  • Serverthe bank's computer
    • Rolereceives and processes requests
  • Clientthe customer's phone app
    • Rolesends requests, outputs response
Which device is the client here?

The customer's smartphone running the app.

5 Now solve it have a go on paper first, then open the worked solution
  1. Server: the bank's computer that stores the account data B1
  2. It receives requests and processes them (e.g. looks up the balance) and sends back the result B1
  3. Client: the customer's smartphone / app B1
  4. It sends a request to the server, waits and outputs the response B1
6 Check it does the answer make sense?

Each device is named in the bank's context AND given a role ✓.

Example 2 · Peer-to-peer: features and two drawbacks (Paper 1, 6 marks) ★★ Medium
9618/11/M/J/21 Q4Paper 1 · Theory fundamentalsParts (a) and (b)6 marksFull size
Melinda and her friends set up a peer-to-peer network between their computers to share data. (a) Describe the key features of a peer-to-peer network. [2] (b) Describe two drawbacks to Melinda and her friends of using a peer-to-peer network. [4]
1 Read it with me what is actually happening?

(b) is 4 marks for 2 drawbacks: each drawback (1) plus why it happens or what it means for Melinda (1).

  • key featureswhat makes it P2P
  • describe two drawbacksdrawback + reason, specific to P2P
2 What is it asking for? the target, part by part
  • (a)two features2
  • (b)two described drawbacks4
3 What do we know? everything the question gives us
    4 Plan the route work backwards from what we want
    FindKey ideaAlready have itWork out firstTrap
    • (b)
      • Securityno central management → weakest computer
      • Backupnot backed up → lost to all
      • Trapdrawbacks of any network
    Why is “weak security” not enough?

    The report: there must be a reason why the security is weak.

    5 Now solve it have a go on paper first, then open the worked solution
    1. (a) All computers are of equal status B1; each computer provides access to resources and data // each is responsible for its own security B1
    2. (b) Reduced security / no central management of security B1 … only as secure as the weakest computer // each computer is at risk from viruses on the others B1
    3. No central management of backup B1 … if one computer's data is not backed up it is lost to all of them B1
    6 Check it does the answer make sense?

    Both drawbacks are specific to P2P (no central server), each with its consequence ✓.

    Example 3 · Thin-client characteristics applied to marking software (Paper 1, 4 marks) ★★ Medium
    9618/12/M/J/24 Q3Paper 1 · Theory fundamentalsPart (b)4 marksFull size
    An assessment board scans exam papers onto a server; markers download them to mark and upload the marks. (b) The exam markers use software that operates as a thin-client. Complete the table by identifying two characteristics of a thin-client and describe how each characteristic will be used in this software. [4]
    1 Read it with me what is actually happening?

    A table: a thin-client characteristic in one column, how it shows up in the marking software in the other. Every description must mention the markers / papers.

    • characteristica general thin-client feature
    • use in this softwarethe same feature applied to the exam marking
    2 What is it asking for? the target, part by part
    • (b)two characteristics + their use4
    3 What do we know? everything the question gives us
      4 Plan the route work backwards from what we want
      FindKey ideaAlready have itWork out firstTrap
      • Row 1
        • Characteristicdata not stored on the client
        • Usepapers stay on the server
      • Row 2
        • Characteristicreliant on the server / connection
        • Usecan't mark if it goes down
      5 Now solve it have a go on paper first, then open the worked solution
      1. Data is not stored on the client computer B1 → exam papers stay on the server, not on the examiner's computer B1
      2. Client is reliant on access to the server / network B1 → examiners cannot mark if their device can't reach the server B1
      3. (also: client needs few local resources → examiners can use low-resource devices; client performs minimal processing → software sends requests, server responds)
      6 Check it does the answer make sense?

      Each use line talks about examiners or papers, not computers in general ✓.

      Example 4 · Why a browser game is client-server (Paper 1, 4 marks) ★★ Medium
      9618/13/M/J/25 Q3Paper 1 · Theory fundamentalsPart (c)4 marksFull size
      (c) The computer program allows users to play a game in a virtual world. Users can play from any computer with internet access using a web browser. The game allows users to interact with other users. Explain the reasons why the statement 'This computer game uses a client-server model' is correct. [4]
      1 Read it with me what is actually happening?

      Map the game onto the model: where is the data, who asks, who does the work, who gets the results?

      • explain the reasons why … is correctshow each part of the model in the game
      2 What is it asking for? the target, part by part
      • (c)4 reasons4
      3 What do we know? everything the question gives us
        4 Plan the route work backwards from what we want
        FindKey ideaAlready have itWork out firstTrap
        • Model
          • Serverstores every player's data
          • Clientthe player's browser
          • Flowrequest → action → update → results
        5 Now solve it have a go on paper first, then open the worked solution
        1. A web server stores all the data for each player B1
        2. Each player's web browser is the client B1, sending requests over the internet to the web server B1
        3. The server performs the action, updates the game data and sends the results to the players B1
        6 Check it does the answer make sense?

        All four points describe the game, not client-server in general ✓.

        Summary

        • Client-server: server stores and processes, clients request and display. Central control; single point of failure; costly.
        • Peer-to-peer: equal peers, each shares and secures itself. Cheap; weak central security and backup.
        • Thin client: server does the processing, client only requests and displays (needs a constant connection). Thick: client does most processing locally.
        If you see…do this
        “describe the roles” in a contextname the server and client in that context + what each does
        “drawback of P2P”drawback + the reason / consequence
        “thin” or “thick”one point about the client's role, one about the server's
        “justify a model”number of users, need for central security / backup, cost

        Can I do this?

        Anything unticked: revise that section first. All ticked: take the quiz.

        Quiz

        The multiple-choice and guided questions need JavaScript. The concept checks and exam practice below work without it.

        Concept checks

        Answer each one in your head first, then open it.

        1Is a web browser a client or a server?Show answer

        A client: it sends requests (for pages) to web servers and displays what they return.

        2Can one computer be both a client and a server?Show answer

        Yes: in peer-to-peer every computer is both; even in client-server, a server can be a client of another server (e.g. a web server asking a database server).

        3Why does a thin client need a reliable network?Show answer

        It does no processing or storage of its own; every action is a request to the server.

        Exam-style practice

        New questions, not used above. Do them on paper, then mark your work against the official mark scheme.

        Q1Past-paper style4 marks

        A library provides computers that run a catalogue search program as thin clients.

        1. (a)
          Describe what is meant by a thin client.
          [2]
        2. (b)
          Give two benefits to the library of using thin clients.
          [2]
        Show the mark scheme
        PartAnswer / workingMarksGuidance
        (a)The server performs all / most of the processing and stores the dataB1
        The client only sends requests and displays the resultsB1
        (b)e.g. cheaper client computers (few local resources needed)B1
        e.g. software / catalogue updated once on the server // data not stored on public computers, so more secureB1
        Total: 4 marks
        Q2Past-paper style4 marks

        Four students set up a peer-to-peer network to work on a group project.

        Describe two benefits of using a peer-to-peer network for this project.

        1. [4]
        Show the mark scheme
        PartAnswer / workingMarksGuidance
        No server needed …B1
        … so it is cheap / quick to set up for a short projectB1
        No single point of failure …B1
        … if one student's computer is off, the others can still share their own filesB1
        Total: 4 marks

        Your progress on this note is saved when JavaScript is on.