Skip to content

Practice: How Network Communication Is Organized

Module
How Network Communication Is Organized
Difficulty
Easy
Updated
Tested on
Ubuntu 24.04.5 LTS, netlab 1.0, GNU Bash 5.2.21, tcpdump 4.99.4, curl 8.5.0
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.

Finish Following one exchange. Record your answers before opening the solution. Use the supplied recordings; no learner lab is needed.

Reach these four goals:

  1. Your annotated frame distinguishes application data and the three enclosing headers, with their byte sizes.
  2. Your ten layer assignments connect each observation to the question it concerns.
  3. Your prediction names the source and destination link interface on each side of the router for the phone’s request.
  4. Your correction uses captured evidence to distinguish a switch’s forwarding from a router’s header replacement.

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.1
02 77 20 00 00 80 02 77 20 00 00 01 08 00 45 00
00 87 ce 8c 40 00 3f 06 39 f1 0a 4d 0a 0a 0a 4d
14 50 8e 8a 00 50 32 a1 d6 54 fe 73 86 65 80 18
00 3f 33 6d 00 00 01 01 08 0a 7d ef 32 55 72 11
f0 ed 47 45 54 20 2f 68 65 6c 6c 6f 2e 74 78 74
20 48 54 54 50 2f 31 2e 31 0d 0a 48 6f 73 74 3a
20 31 30 2e 37 37 2e 32 30 2e 38 30 0d 0a 55 73
65 72 2d 41 67 65 6e 74 3a 20 63 75 72 6c 2f 38
2e 35 2e 30 0d 0a 41 63 63 65 70 74 3a 20 2a 2f
2a 0d 0a 0d 0a

Mark 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.

Write a layer beside each observation. Add a one-sentence reason for numbers 3 and 10.

  1. A request’s action and path are in the expected arrangement.
  2. One conversation reaches the intended program.
  3. The interface reports a working link, but the server rejects the request syntax.
  4. A packet names the machine on the other network.
  5. A frame names the interface that should receive it locally.
  6. The response contains the requested text.
  7. Communication must distinguish programs running on one machine.
  8. The router lowers the packet’s TTL.
  9. A switch chooses where to forward using the destination MAC.
  10. A cable is unplugged, so no application response arrives over it.

Where an observation gives a cause and a consequence, classify the cause.

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.

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.

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:

A request from phone
learner@phone:~$ curl -sS http://10.77.20.80/hello.txtHello from web.learner@phone:~$ 

Step-by-step replay of a verified session · Recorded on Ubuntu 24.04.5 LTS, networking lab (netlab 1.0), GNU Bash 5.2.21. The practice capture comes from phone, a different client using the same routed path.
Steps (3)
  1. Type curl -sS http://10.77.20.80/hello.txt — Use phone as the client for the practice evidence
  2. Press Enter
  3. Output: Hello from web.
Point MACs IPs TTL
phone:eth0
frame 4
02:77:10:00:00:11
02:77:10:00:00:01
10.77.10.11
10.77.20.80
64
router:eth1
frame 4
02:77:20:00:00:01
02:77:20:00:00:80
10.77.10.11
10.77.20.80
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.1

router: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.1

The 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.

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.