Client-server model
Computer Science · Networking
Question 1 of 10
0Which of these is a client-server example?
Stuck? Read the explanation
Unlocks at a streak of 5 correct answers in a row.
Embed this practice on your site or class page
Paste this HTML into your page. Students practise right there; it is free and needs no account.
Client-server model explained
The client-server model is a way of organising a network in which some computers, called servers, provide services or data, and others, called clients, request them. A web browser on your phone is a client, and the computer that stores and sends a website is a server.
The exchange follows a request-response cycle. The client sends a request, the server processes it, and the server sends back a response.
Client and server are roles, not types of hardware. The same machine can be a client for one service and a server for another. Some courses also describe thin and thick clients: a thin client does little processing and relies on the server, while a thick client does much of the work itself.
A common mistake is to think a server must be a large, special computer. Any computer can act as a server if it runs software that responds to requests.
Worked example
You type a web address into a browser on your phone. Describe what happens.
- The phone, acting as the client, sends a request for the web page to the web server.
- The server finds the page and sends it back as a response.
- The browser on the phone displays the page on screen.
If three phones request the same page at the same time, the server handles three requests and sends three responses. That is 3 requests and 3 responses, so 6 messages are exchanged in total.
What you will practise
105 multiple-choice questions (Easy, Medium, Hard). Each answer is followed by an explanation.
Example questions
- In the client-server model, the client:
- The server:
- A web browser is a:
- Servers often run:
- Client-server contrasts with:
- In the client-server model, a request is sent from:
- A response in the client-server model is sent from:
- A web server's main job is to:
…and 97 more.