Practice: How Network Communication Is Organized
On this page
Someone looking at the captured request says, “The router changes all the addresses, and the switch becomes the sender next.” Prepare an evidence-based correction. Then predict a separate request from phone.
Before you start
Section titled “Before you start”Finish Following one exchange. Record your answers before opening the solution. Use the supplied recordings; no learner lab is needed.
Your task
Section titled “Your task”Reach these four goals:
- Your annotated frame distinguishes application data and the three enclosing headers, with their byte sizes.
- Your ten layer assignments connect each observation to the question it concerns.
- Your prediction names the source and destination link interface on each side of the router for the phone’s request.
- Your correction uses captured evidence to distinguish a switch’s forwarding from a router’s header replacement.
Annotate the supplied frame
Section titled “Annotate the supplied frame”This is the request from Encapsulation and decapsulation, captured at web:eth0. The first block is the capture tool’s summary. The second gives every captured byte in order, grouped into rows for reading. Counting starts at byte zero.
Frame 4, 149 captured bytes:
06:54:26.990134 02:77:20:00:00:01 > 02:77:20:00:00:80, ethertype IPv4 (0x0800), length 149: 10.77.10.10.36490 > 10.77.20.80.80: Flags [P.], seq 1:84, ack 1, win 63, options [nop,nop,TS val 2112827989 ecr 1913778413], length 83: HTTP: GET /hello.txt HTTP/1.102 77 20 00 00 80 02 77 20 00 00 01 08 00 45 0000 87 ce 8c 40 00 3f 06 39 f1 0a 4d 0a 0a 0a 4d14 50 8e 8a 00 50 32 a1 d6 54 fe 73 86 65 80 1800 3f 33 6d 00 00 01 01 08 0a 7d ef 32 55 72 11f0 ed 47 45 54 20 2f 68 65 6c 6c 6f 2e 74 78 7420 48 54 54 50 2f 31 2e 31 0d 0a 48 6f 73 74 3a20 31 30 2e 37 37 2e 32 30 2e 38 30 0d 0a 55 7365 72 2d 41 67 65 6e 74 3a 20 63 75 72 6c 2f 382e 35 2e 30 0d 0a 41 63 63 65 70 74 3a 20 2a 2f2a 0d 0a 0d 0aMark the link, internet, transport, and application byte ranges. Name the unit enclosed by each header. Identify the two machine addresses and the link interfaces named by this frame. Explain why its source MAC does not identify the program that originally requested the file.
Use a four-row table and the established header sizes to account for the captured length. You need not translate every byte.
Assign ten observations
Section titled “Assign ten observations”Write a layer beside each observation. Add a one-sentence reason for numbers 3 and 10.
- A request’s action and path are in the expected arrangement.
- One conversation reaches the intended program.
- The interface reports a working link, but the server rejects the request syntax.
- A packet names the machine on the other network.
- A frame names the interface that should receive it locally.
- The response contains the requested text.
- Communication must distinguish programs running on one machine.
- The router lowers the packet’s TTL.
- A switch chooses where to forward using the destination MAC.
- A cable is unplugged, so no application response arrives over it.
Where an observation gives a cause and a consequence, classify the cause.
Predict another client’s link header
Section titled “Predict another client’s link header”phone requests the file from web. It uses the same home switch, router, and site switch, with no address sharing enabled. Use the interface reference below, extracted from the supplied phone capture.
| Interface | MAC address |
|---|---|
| phone:eth0 | 02:77:10:00:00:11 |
| router:eth0 | 02:77:10:00:00:01 |
| router:eth1 | 02:77:20:00:00:01 |
| web:eth0 | 02:77:20:00:00:80 |
Predict the interfaces and their MAC values at these two points:
| Point | From | To |
|---|---|---|
| Leaving phone | ? | ? |
| Leaving router onto site | ? | ? |
Also predict whether either IP address changes.
Expected evidence
Section titled “Expected evidence”Keep your annotation, ten assignments, prediction, and correction to the opening claim. Support each correction with paired observations. Distinguish capture points from modeled switch actions.
Hint for the frame
Start at the outside. Move forward by each header’s byte count; what remains is the application data. A payload includes everything inside its enclosing header.
Hint for the prediction
Find which machine must send onto each network. Then choose a receiver on that same network. The switch forwards between interfaces without making itself the frame’s source.
Solution
Section titled “Solution”Compare your annotation, assignments, and prediction
| Layer | Range and bytes | Payload |
|---|---|---|
| Link | 0 to 13 14 bytes |
IPv4 packet |
| Internet | 14 to 33 20 bytes |
TCP segment |
| Transport | 34 to 65 32 bytes |
Application data |
| Application | 66 to 148 83 bytes |
Request text |
The IP pair is 10.77.10.10 to 10.77.20.80. The MAC pair is 02:77:20:00:00:01 to 02:77:20:00:00:80.
The source MAC belongs to the router’s site interface. The packet still names the original client and final server. The server reads the request’s fields according to HTTP’s shared format.
Layer assignments: 1 application; 2 transport; 3 application; 4 internet; 5 link; 6 application; 7 transport; 8 internet; 9 link; 10 link. In 3, the server reports a message-format failure over a working path. In 10, the stated cause is a disconnected link, even though the visible consequence is a failed application exchange.
This capture ran on phone:
learner@phone:~$ curl -sS http://10.77.20.80/hello.txtHello from web.learner@phone:~$ Steps (3)
- Type
curl -sS http://10.77.20.80/hello.txt— Use phone as the client for the practice evidence - Press Enter
- Output:
Hello from web.
| Point | MACs | IPs | TTL |
|---|---|---|---|
phone:frame 4 |
02:77:10:02:77:10: |
10.77.10.77. |
64 |
router:frame 4 |
02:77:20:02:77:20: |
10.77.10.77. |
63 |
These observations match by IP identification 43014 and TCP sequence number 1896883636.
phone:eth0:
06:56:37.320731 02:77:10:00:00:11 > 02:77:10:00:00:01, ethertype IPv4 (0x0800), length 149: 10.77.10.11.47414 > 10.77.20.80.80: Flags [P.], seq 1:84, ack 1, win 63, options [nop,nop,TS val 762024267 ecr 96942214], length 83: HTTP: GET /hello.txt HTTP/1.1router:eth1:
06:56:37.320733 02:77:20:00:00:01 > 02:77:20:00:00:80, ethertype IPv4 (0x0800), length 149: 10.77.10.11.47414 > 10.77.20.80.80: Flags [P.], seq 1:84, ack 1, win 63, options [nop,nop,TS val 762024267 ecr 96942214], length 83: HTTP: GET /hello.txt HTTP/1.1The address cells show source above destination. The IP pair stays fixed across these two points. The link pair changes at the router. The laptop journey’s paired captures before and after each switch show unchanged fields, whereas the router’s incoming and outgoing observations differ. Those observations support the forwarding model; they do not directly record the switches’ internal operations.
Recall check
Section titled “Recall check”1. Why can a working link coexist with a failed application request?
Answer
Link state concerns the connection. An application can receive a malformed request and reject it, as the recorded server does. A working link also does not establish the rest of the delivery path.
2. What lets independently written client and server programs understand messages?
Answer
They implement the same protocol’s rules, including its message formats and exchange order.
3. Does saying “layer 3” identify a physical compartment inside a router?
Answer
No. It names the OSI Network layer’s responsibilities. The course’s approximate TCP/IP comparison calls that the internet layer.
4. Which header is encountered first at the receiving interface in this capture?
Answer
Ethernet’s link header. The internet and transport headers sit inside it, before the application data.
5. Does an unchanged IP pair imply an unchanged frame?
Answer
No. The router replaces the link addresses and lowers TTL while the IP endpoint addresses stay the same in this lab state.
- Connect each field to the question its layer answers.
- Count headers and their payload at explicit boundaries.
- Use observations on both sides of a device to support a claim about changes.
Next, One VM, a whole network prepares the lab for your own observations.
Further reading
Section titled “Further reading”- RFC 1122, §1.1.3, for the Internet protocol layers.
- RFC 1812, §5.2, for forwarding behavior.