CS07-07 Computer Science Watch
Client-server and peer-to-peer
In this lesson
Client-server and peer-to-peer: how to describe the role of a server, with worked examples and the mistakes examiners report. OCR J277 GCSE. Networks 7 of 8. Full Networks playlist: https://www.youtube.com/playlist?list=PLGjXtmcKnz7o More at https://scholafly.com
By the end: Describe the role of a server (provides a service), the role of a client (requests and uses a service) and the role of a peer (each computer both provides and requests, with no central server), identify which computer is acting as client or server in a given scenario and justify it, and compare the two models' advantages and disadvantages.
What it covers
- 0:00 Intro: client-server and peer-to-peer
- 0:33 Server and client
- 2:01 The artist's upload
- 3:56 Peer-to-peer
- 5:05 Roles, not cables
Key words
About this video
Client-server and peer-to-peer | GCSE Computer Science | CS07-07
Client-server and peer-to-peer: how to describe the role of a server, with worked examples and the mistakes examiners report.
OCR J277 GCSE. Networks 7 of 8.
Full Networks playlist: https://www.youtube.com/playlist?list=PLGjXtmcKnz7o
More at https://scholafly.com
Watch first: CS07-02 - https://youtu.be/DEXetjMC6Z4
Video code: CS07-07 (search "ScholaFly CS07-07")
#GCSEComputerScience #Networks #ClientServerAndPeerToPeer
For teachers
This GCSE Computer Science lesson teaches client-server and peer-to-peer. By the end, students should be able to describe the role of a server (provides a service), the role of a client (requests and uses a service) and the role of a peer (each computer both provides and requests, with no central server), identify which computer is acting as client or server in a given scenario and justify it, and compare the two models' advantages and disadvantages. It works through four worked examples and the mistakes examiners report.
Exam board specification references:
OCR J277
- 1.3.1
Read the transcript
An artist uploads a new painting to the computer that stores her website. Which of those two computers is the client? The painting flows out of hers, so it is tempting to call hers the server, because it does the sending. But the direction a file travels is not what decides which is which. Keep the artist's upload in view; we come back to it.
A server is a computer that provides a service to other computers on a network. A web server provides web pages. A file server stores files and sends them back when they are asked for. Print servers and email servers work the same way. A client is a computer that requests a service from a server, and then uses it. One of the three courses asks about these roles directly. The words client and server turn up on every course's papers, so this is useful to anyone. Each role is about the request. The client asks, and the server provides. Three descriptions of a client. One: a computer that stores files for others. Two: a computer that requests a service and uses it. Three: any small computer, like a laptop. Which of the three describes a client? Number two. The first describes a server, and the size of a computer never decides its role.
The artist's upload is the same idea in a harder case. Which computer is the client, given that the painting flows out of hers? Hers is the client. Her computer requests to upload the painting, and the web server provides the storage. The role follows the request, not the file. A reason has to come from this scenario: her computer sends a request to the web server to store the painting. A reason about someone viewing the site describes a different scenario. One examiner's report, on a question about an artist's website, starts with encouragement. Many responses identified the artist's computer as being the one that is acting as a client. If you named her computer, you are with those answers. The habit that finishes the answer is the reason: name the request, and name the server it goes to. One more mix-up hides in that scenario: the website itself is not a server. A website is a set of files, and the server is the computer those files live on. A second line from that report puts it this way. Many candidates identified the website as a server when a website is not a computer. The fix: server always means the computer. The pages, the photos and the code are files stored on it.
In a peer-to-peer network there is no server. Every computer is a peer, with equal status, and each one can both provide and request. Three friends share music straight between their laptops. Each laptop serves its own songs to the others, and asks the others for theirs. Peers are still a network. They share files and printers like any other network; there is no computer in charge. For those three friends, what is an advantage of peer-to-peer, and a disadvantage? Advantage: it costs nothing extra, because there is no server to buy or to manage. Disadvantage: if one friend switches off their laptop, its songs disappear from the network, and nobody has a central backup.
Client-server and peer-to-peer are about roles, not cables. The same star of cables can run as client-server, with one computer as the server, or as peer-to-peer, with none. Client-server brings central backups, central security with user accounts, and files kept in one place. Its costs are a server that is expensive and needs managing. And if the server fails, every client loses that service. Peer-to-peer turns that round. It is cheap, with no single computer whose failure stops everything, but it has no central backup or security, and files are spread across machines. Now a school with six hundred students: client-server or peer-to-peer, with two reasons? Client-server. Every student's work is backed up centrally, and each student logs in to an account with the right access.
Four questions, and the artist's upload from the start is the last of them. What is the role of a server, in one sentence? It provides a service to other computers, such as web pages or file storage. Now a phone downloads an email from an email server. Which is the client? The phone. It requests the email, and the email server provides it. Try another: in a peer-to-peer network, which computer is in charge? None of them. Every peer has equal status, able to serve files and to ask for them. One more: the artist's file flows out of her computer. Why is hers the client? It makes the request. The web server provides the storage, whichever way the file travels.
If you're on top of this one, who asks and who provides, a thumbs-up marks it off for good. If it hasn't clicked, add it to a playlist for later. It often lands on a second viewing, once the request idea has had time to sink in.
Next in the chapter: The Internet, DNS and hosting, where a typed web address finds the right server. Hopefully that's next in your feed, but if not, search for ScholaFly C S oh seven, oh eight.
Every other video is on scholafly.com too, easy to search by video code or by keyword. Whatever you're revising, go there and have a look, or, watch the next video.
Related terms
For: OCR GCSE J277
On the specification
| Board | Spec | Statement |
|---|---|---|
| OCR GCSE J277 | 1.3.1 | Networks and topologies |
For teachers
This GCSE Computer Science lesson teaches client-server and peer-to-peer. By the end, students should be able to describe the role of a server (provides a service), the role of a client (requests and uses a service) and the role of a peer (each computer both provides and requests, with no central server), identify which computer is acting as client or server in a given scenario and justify it, and compare the two models' advantages and disadvantages. It works through four worked examples and the mistakes examiners report.