Practice: Understanding Networks
On this page
Your phone gets a shared file from your laptop. Your laptop also gets a page from news, beyond the home network. Someone draws both requests as one line called “Internet.” Replace that line with a drawing that shows where each request goes and which program answers it.
Before you start
Section titled “Before you start”Read the four lessons from What happens when you open a web page to The Internet and the Web. Use paper or a drawing tool. You do not need a lab or commands.
Try the task before opening the solution.
Read the home-network drawing
Section titled “Read the home-network drawing”Area A has laptop, phone, home-pc and one router. The name home-pc belongs to this exercise; it is not a lab machine. The three computers share one local network.
The router joins that network to Area B. Area B is run by the organization supplying the home’s outside connection. news is beyond Area B. The drawing leaves out connecting equipment within each area.
There are two exchanges to label:
phoneaskslaptopfor a shared file, andlaptopsends it back.- The browser on
laptopasksnewsfor the page athttp://www.example.com/, andnewsanswers.
There is no request from home-pc in this task. Leave its program role blank. Being on the LAN does not tell you whether a program is asking or answering.
The course lab has no provider connection. It keeps two smaller networks, home and site, joined by one router.
Your task
Section titled “Your task”Reach these five goals:
- Your drawing labels the home LAN, its router, and the provider’s network and boundary.
- Arrows show each request going to the answering program, and each response coming back.
- Client and server labels show who asks and who answers, including both jobs on
laptop. - Three notes name the networks, the Web and the browser on
laptop, and say what each does. - The home router loses power completely. Can
phonestill get the shared file fromlaptop? Explain what the drawing can and cannot tell you.
Write “request” and “response” beside your arrows. For the page, draw an arrow leaving Area A, crossing Area B and reaching news. Draw the response back toward laptop.
Expected evidence
Section titled “Expected evidence”Your finished work has two parts: the labeled drawing and your prediction with reasons.
The drawing shows the file exchange staying in Area A. The page exchange leaves Area A, crosses Area B and reaches news. Its answer returns to laptop.
Your client/server labels show laptop asking for the page and answering the file request. Those jobs can happen on the same computer. Your three notes separate the networks, the Web and the browser program.
Your prediction states what happens to the page request and explains why the drawing cannot settle whether the local file exchange still works.
Hint for the boundaries
The three home computers share Area A. Follow the link leaving router to find the provider’s part. Its network is outside the home LAN.
Hint for the roles and arrows
Read “phone asks laptop” before assigning the file roles. Then read “laptop asks news” for the page roles. A server sends a response, but sending that response does not change it into the client.
Hint for the prediction
The drawing leaves out the equipment connecting devices inside Area A. Could that equipment share the router’s case and power, or could it be separate?
Solution
Section titled “Solution”Compare your drawing and prediction
Compare your drawing with these labels and directions.
| Part | Label or direction |
|---|---|
| Area A | Home LAN containing laptop, phone and home-pc |
router |
Joins the home LAN to the provider network |
| Area B | Provider’s WAN; its outline marks the provider boundary |
news |
Page server beyond the provider region |
| File request | phone to laptop, staying in Area A |
| File response | laptop to phone, staying in Area A |
| File programs | Client on phone; server on laptop |
| Page request | laptop to news, leaving Area A through Area B |
| Page response | news to laptop, returning through Area B into Area A |
| Page programs | Client browser on laptop; server on news |
home-pc role |
Blank: no exchange is given for its programs |
The networks carry the messages. The Web supplies the page service. The browser asks for the page and displays what comes back.
The drawing cannot answer whether phone can still get the shared file. It leaves out the equipment connecting the devices inside Area A.
If that equipment is inside the same powered-off box, the file exchange fails too. If it is separate equipment that still has power, the file exchange can still work.
The page request fails either way, because the router’s outside connection is gone.
The combined home router in the next module shows which jobs can share one box.
Recall check
Section titled “Recall check”Answer without opening the earlier lessons, then compare your reasons with each answer.
1. Can a server be inside the same LAN as its client?
Answer
Yes. The file-sharing server on laptop answers the client on phone within the home LAN in Area A.
2. Does laptop sending a file response make it the client of phone?
Answer
No. laptop is the sender of that response and remains the server for the file exchange. phone started the exchange by asking for the file.
3. What would make the file-sharing programs peers?
Answer
Both programs could share files and ask each other for files. Each could then ask and answer.
4. The local file exchange works, but the outside page does not. Does this tell you what broke?
Answer
No. The two home programs can exchange a file. You still need to check the outside connection and the page service to find why the page fails.
5. Are the Web, the Internet and your browser three names for the same thing?
Answer
No. The Web is a service, the Internet is connected networks, and the browser is a program. They have different jobs in the page exchange.
6. Does the fifth question on the opening lesson’s map represent a fifth device between laptop and web?
Answer
No. The numbers are questions, not devices. Question 5 asks how the router passes the message on and how the answer comes back.
- Find the client and server by looking at who asks and who answers.
- Separate local exchanges from exchanges that need other networks.
- Connected networks, the Web and a browser have different jobs.
- A drawing can leave out equipment needed to predict what still works.
Next, Interfaces, cables, and link state names the connections that these drawings leave out.
Further reading
Section titled “Further reading”- RFC 9110: HTTP Semantics, §3.3, for the page exchange’s program roles.
- RFC 1122: Requirements for Internet Hosts — Communication Layers, §1.1.2, for the joined-network model.