TCP/IP: Following a Packet
Follow a network connection from a local application through DNS, routing, TCP and the receiving service.
Educational reference drafted for the Nullwire archive. This is not a claim of completed training or original research; verify examples and customise before presenting it as finished work.
Objective
Understand what happens between entering an address in a browser and receiving a response. The path is layered; failures at one layer may look like failures at another.
The journey
- An application determines the destination, potentially resolving a hostname through DNS.
- The machine selects a route and next hop.
- On a local Ethernet or Wi-Fi network, frames use link-layer addresses to reach the next hop.
- IP carries source and destination addresses across networks.
- TCP can establish a connection using SYN, SYN-ACK and ACK.
- The application exchanges protocol messages, often over TLS for HTTPS.
This is a simplified model: some modern applications use QUIC over UDP rather than TCP.
Look at your own host
On Linux, inspect configured routes and addresses:
ip address
ip route
Use a harmless destination you control or a public documentation domain to inspect DNS:
getent ahosts example.com
ping can test basic reachability, but a blocked ICMP response does not prove an application is unavailable.
Important distinctions
Port: A logical endpoint for a transport protocol, not a physical socket.
NAT: Address translation, commonly used on consumer networks. It can complicate attribution because many devices share one public IP address.
Latency: Time taken to complete an operation. High latency is not always packet loss; server processing and queues also matter.
Small lab
Sketch a connection from your laptop to a local service. Label the gateway, subnet, DNS resolver, transport, destination port and application protocol. Compare your diagram with ip route.
Diagnostic principle
Ask one question per layer. If name resolution works, that does not prove the service is listening. If the TCP connection succeeds, that does not prove the application is healthy.