Module 8 of 11Free to explore

OSI and TCP/IP: trace a request from link to HTTP

2 hours with practiceTheory and practiceEasy

Why a portal can reply while the page stays unavailable

Mira opens the training portal and sees “Access denied”. Her ticket says the Internet has gone down. The shift has a timestamp and a few records. Someone needs to determine which attempt received an HTTP response and which owner can provide the next evidence. The cabling team can explain the physical port state. The HTTP gateway operator can trace a request identifier and establish whether the request was forwarded to the application. To find the right person, separate the questions that different participants can answer about a single attempt.

Start with Mira’s actions. She entered a name, the browser obtained an address, opened a connection and requested a page. Dependencies concern this particular attempt. For example, an address can already be in the cache. The absence of a fresh query to a name server at that moment is compatible with the browser knowing the intended destination. Keep a separate card for each attempt and record where each piece of information came from.

Seven OSI layers on one page

Layer Responsibility A question for the shift
1. Physical Carry a signal over the physical medium Does the port report a physical link?
2. Data link Deliver frames on a local segment Which Ethernet interface observed the frame?
3. Network Address and forward between networks Which gateway was selected for the IP packet?
4. Transport Deliver between transport endpoints Was a TCP connection to the selected port established?
5. Session Organise dialogue between participants What manages the continuation of an interrupted dialogue?
6. Presentation Represent and transform data Can both participants interpret the supplied representation?
7. Application Provide network application services What HTTP response did the page request receive?

Work through layers 1 to 7 in numerical order, then work in the opposite direction from a symptom to the best evidence source. The OSI model gives engineers a vocabulary for discussing functions. A browser library can perform several of them. You should not expect the browser timeline to print seven consecutive events with these layer names. In particular, the session concept here and logging into a user account refer to different jobs. The former organises communication, while an application makes user access decisions.

Map the example onto the Internet stack

The Internet stack is commonly described in four layers. The link layer handles the local network. The Internet layer uses IP to move packets between networks. Transport includes TCP and UDP. The application layer includes protocols such as DNS and HTTP. The first two OSI layers roughly correspond to the lower part of the Internet stack. The third and fourth are helpful when discussing IP and transport. Applications and libraries share responsibilities associated with the upper three OSI layers.

Consider how the request in this exercise travels. The browser uses HTTP over a connection protected by TLS. TLS uses TCP here. TCP segments travel in IP packets and the local Ethernet link carries frames. At the next Ethernet hop a router builds a fresh frame. On the first hop the destination link address can belong to the gateway. Under ordinary routing without translation the destination IP remains that of the server. Different applications may use another transport or produce different records. Work from the protocol stack specified for the exercise.

Read five observations in time order

T7 10:05:00 client-dns   portal.example -> 192.0.2.18 (cached)
T7 10:05:01 client-route destination=192.0.2.18 next-hop=192.0.2.1
T7 10:05:01 client-tcp   destination=192.0.2.18:443 established
T7 10:05:02 browser-tls  peer-name=portal.example verified=yes finished=yes
T7 10:05:03 browser-http GET /lesson -> 403 request-id=R71

Find the latest confirmed step. A 403 response means that the server understood the request and refused to fulfil it. The code alone leaves the specific reason open. A reverse proxy in front of an application can generate the response itself. Use R71 to compare the gateway record of forwarding and response with the application audit. If the gateway changes identifiers, request its mapping. This comparison can identify the owner of the refusal. Successful identity verification and TLS completion describe properties of the protected connection. They do not grant Mira permission to read a lesson. The next-hop entry records a client routing choice. Without later observations a routing choice alone would be insufficient evidence of successful delivery.

Exercise. Send the ticket to the appropriate owner

U4 11:14 endpoint-link   up
U4 11:14 client-dns      portal.example -> 192.0.2.18
U4 11:14 client-tcp      192.0.2.18:443 established
U4 11:14 browser-tls     finished=yes identity=verified
U4 11:15 browser-http    GET /materials -> 503 request-id=R81
U5 11:16 client-dns      portal.example -> 192.0.2.18
U5 11:16 client-tcp      timeout

Write the two attempt identifiers on separate cards. For each, name the last confirmed outcome, its source and the evidence you will request from the owner. U4 has an HTTP 503 response. Request the HTTP gateway record for R81, its time and its upstream outcome. If the gateway forwarded the request, match this to an application record to locate the component that generated the response. In U5 the client reports a TCP timeout. Its journal cannot locate where the exchange stopped. Request corresponding observations from the network shift and the destination owner for that time. Merging attempts solely by portal name would accidentally give U5 credit for U4’s completed TLS handshake.

Save the decision as layer-check.txt. One line quoting the observed result and another naming an open question are usually more informative than a recital of all seven layers. Continue to VLAN, trunk and TLS diagnostics and apply the distinctions between a frame on a port, an established connection and permission to access a page.

Sources

The seven layers are described in ITU-T X.200. The Internet architecture is described in section 1.1.3 of RFC 1122. See RFC 9110, section 15 for response semantics.

The current TCP specification is RFC 9293.

Test your conclusion

Where does the path from the test workstation to the gateway break?

Workstation
VLAN 31 · link up
ARP gateway: request ×3, reply ×0
Both ends of the uplink
SW-A uplink: forwarding, allowed 12,31
SW-B uplink: forwarding, allowed 12
known-good VLAN 12: gateway reply

Independent exercise

The shift is reviewing two independent timetable attempts. Determine which received an HTTP response and which has only a client-side TCP timeout.

Evidence

D6 link up | name=schedule.example resolved | TCP established | TLS finished | HTTP 404 request=G19
D7 link up | name=schedule.example resolved | TCP timeout

Assignment

Identify the last observed result in each attempt. List the sources that can attribute the D6 response and the additional D7 observation needed to narrow down the failure.

Compare your reasoning

D6 received HTTP 404 with G19. Compare the gateway forwarding record with application audit using shared or mapped identifiers: a reverse proxy can generate the response. D7 is a client TCP timeout. Request a synchronized destination or network-boundary observation. The timeout alone cannot locate the failure.

Personal practice environment

Check an excerpt, find matching lines and compute the SHA-256 of the original text. Temporary data expires after 30 minutes or when you close the environment.