- Foundation
- About 13 min
- 5 practice questions
How a cloud request works: client, server, internet and data centre
Follow a request from your phone to a cloud server and back, and understand latency, bandwidth and the difference between megabits and megabytes.
If something looks wrong, please tell us.
Every time you open a cloud app, a small conversation takes place between your device and a faraway computer. Knowing the parts of that conversation makes terms like server, bandwidth and latency easy. All numbers in this lesson are made up for practice; they are not real speeds or prices.
Client and server
A client is the device or program that asks for something: your phone, a laptop, or a browser. A server is a computer that waits for requests and answers them. In the cloud, the servers sit in data centres run by the provider, and the internet is the road between client and server. The pattern is called the client-server model.
The journey of one request
- You type an address or tap an app. The device must find the server's numeric address, so it asks the DNS (Domain Name System), which turns names into IP addresses.
- The device sends a request across the internet to the server.
- The server checks who you are and what you are allowed to see, then does the work: reads a file, runs a calculation or searches a database.
- The server sends a response back, such as a web page or a photo.
- Your device shows the result. If you saved something, the server also stores it, often in more than one data centre.
Bandwidth and latency
Bandwidth is how much data a connection can carry in a second, measured in bits per second (for example megabits per second, written Mbps). Latency is the delay before data starts to arrive, measured in time (milliseconds). A wide road lets many cars pass at once, but it does not shorten a long journey. In the same way, high bandwidth does not remove latency.
Be careful with units. Connection speeds use bits, while file sizes use bytes, and 1 byte = 8 bits. A file of 40 MB (megabytes) is therefore 40 x 8 = 320 megabits.
| Term | Meaning | Unit | Everyday picture |
|---|---|---|---|
| Client | Asks for a service | Not applicable | The customer at a counter |
| Server | Answers requests | Not applicable | The shop assistant |
| Bandwidth | Amount of data carried per second | Mbps | Width of the road |
| Latency | Delay before data arrives | Milliseconds | Length of the journey |
Worked example 1: download time
A video of 40 MB is downloaded over a connection of 16 Mbps (illustrative). Step 1: convert the size to megabits: 40 x 8 = 320 megabits. Step 2: time = size / speed = 320 / 16 = 20 seconds. If the speed were halved to 8 Mbps, the time would double to 40 seconds. The common mistake is to divide 40 by 16 and get 2.5, which forgets that speeds are in bits.
Worked example 2: which part does what?
You press Save in an online notes app on your phone, and later open the same note on a laptop. Which parts took part? The phone was the client that sent the note. The cloud server received it and stored it in a data centre. Later the laptop, another client, sent a request and the server returned the stored note. The note never lived only on the phone, which is why it appears on both devices.
Client asks, server answers. Bandwidth is how much per second; latency is how long before it starts. Speeds are in bits, files in bytes.
Key takeaways
- The cloud works on the client-server model over the internet.
- DNS converts a name into the server's IP address.
- Bandwidth is capacity per second; latency is delay.
- Divide the file size in bits (bytes x 8) by the speed in bits per second to get time.
Check your understanding
-
1. What does a server do in the client-server model?
- It asks clients for files and then keeps them for itself
- It waits for requests from clients and sends back responses
- It only displays web pages on the user's own screen
- It repairs the internet cable between two buildings
Show answer
Answer: B. A server answers requests: the client asks and the server responds, so waiting for requests and sending back responses is right. The others describe other jobs.
-
2. Which service turns a website name into a numeric IP address?
- DNS, the Domain Name System
- SMTP, which is used to send electronic mail
- FTP, which moves files between two computers
- HTTP, which only carries the web page itself
Show answer
Answer: A. DNS maps names to IP addresses. SMTP sends mail, FTP moves files and HTTP carries web pages.
-
3. A 50 MB file is downloaded at 20 Mbps. How long does it take, using 1 byte = 8 bits?
- 2.5 seconds
- 8 seconds
- 20 seconds
- 400 seconds
Show answer
Answer: C. 50 MB = 50 x 8 = 400 megabits. Time = 400 / 20 = 20 seconds. The answer 2.5 forgets that speed is in bits, so the right choice is 20 seconds.
-
4. Which statement about bandwidth and latency is correct?
- Bandwidth is the delay before data arrives; latency is the data per second
- Bandwidth and latency both mean the size of a stored file
- Latency is always measured in Mbps and bandwidth in seconds
- Bandwidth is the data carried per second; latency is the delay before data arrives
Show answer
Answer: D. Bandwidth is capacity per second (Mbps). Latency is delay measured in time (milliseconds). The other statements swap or misuse the terms.
-
5. You save a note on your phone and read it later on a laptop. Where was the note kept in between?
- Only inside the phone's memory
- On the provider's server in a data centre
- Only inside the laptop's memory
- Inside the internet cable between them
Show answer
Answer: B. The cloud server stored the note, which is why any signed-in device can fetch it. Neither device needs to hold the only copy.
Sign in to keep track of the lessons you finish.