What happens when you open a web page
On this page
You open a page, and its words appear on your screen. What happened between asking for it and seeing it? Start with two computers: laptop, where you read, and web, where the page’s file begins.
Ask for the page and get an answer
Section titled “Ask for the page and get an answer”laptop asks web for the page at http://web.lab.test/. You do not need to type that address anywhere. It belongs to the course story.
A message is a piece of information sent from one device or program to another. A request is a message asking another program to do something. Here, the request asks for the page.
web sends the page’s contents back. A response is a message sent back to answer a request. Your computer uses those contents to display the page. Asking and receiving happen in opposite directions.
The file stays on web; its contents travel back to laptop in the response.
Follow the message between computers
Section titled “Follow the message between computers”The sender is the device or program sending a message. The receiver is the device or program receiving it. For the request, laptop sends and web receives.
Predict: when the page’s response comes back, which computer is the sender?
Check your answer
web sends the response, so it is the sender. laptop receives it.
A link is a connection over which two devices exchange messages. A network is a set of connected devices that can exchange messages. Other devices stand between laptop and web, passing the request onward. The response also needs a way back.
Follow the seven questions
Section titled “Follow the seven questions”The circles mark questions about the page’s journey. They do not represent seven more devices. Read them from left to right.
- What settings does
laptophave, and who gave them to it? Building Your Networking Lab, Understanding IPv4 Addresses, Getting Network Settings Automatically. - Which machine has the name
web.lab.test? How DNS Finds Services. - Is that machine on my own network, or beyond the router? Subnetting Foundations.
- How does a message reach the next device on the cable? Ethernet and Local Delivery, Reaching Another Device.
- How does the router pass it on, and how does the answer come back? Reaching Another Device.
- How do two programs find each other on two machines? TCP, UDP, and Ports.
- What do the programs say, and who else can read it? Everyday Application Traffic.
Most of these questions may be unclear, and that is normal. You do not need their answers yet. Each linked module teaches one part of the story.
Mistakes to recognize
Section titled “Mistakes to recognize”“The page comes from my browser.” Your computer shows the page, but its contents arrive from web in the response.
“There is one direct line to the website.” Other devices stand between the two computers and pass messages onward.
“The Internet is one big computer.” The story has separate computers communicating across connected networks.
Try it yourself
Section titled “Try it yourself”Goal: Find two questions that change when you send a chat message to a friend.
- Choose two question numbers from the list.
- For each, write one sentence saying what changes for chat and why.
Expected: Two question numbers and two short explanations. You do not need another map.
Hint
Think about the name your program needs and what it asks another program to do.
Solution
Choose questions 2 and 7. The chat program needs the name used by its chat service instead of web.lab.test. Its messages ask to send a chat message instead of requesting a page. Another computer may help deliver the message to your friend.
Leave for later
Section titled “Leave for later”Protocols and shared rules explains the rules messages follow. Encapsulation and decapsulation shows how a request fits inside its delivery information.
- A request asks; a response answers.
- Sender and receiver change with the message’s direction.
- Links join devices into networks.
- Later modules answer the map’s seven questions.
Next, Clients, servers, and peers names the programs’ jobs in an exchange.
Further reading
Section titled “Further reading”- RFC 9110: HTTP Semantics, section 3.3, for requests and responses.