Packet flow puzzle
Put the packets of one HTTPS page load in order, from the DNS question to the first encrypted byte, and follow the addresses through a NAT router.
- Interactive lab
- Beginner
- 5 graded steps
- 0 of 5 solved
This lab is part of A host that keeps connecting.
Your goal
Your goalPut one web page load’s eight packets in the order a capture shows, and follow how the home router rewrites addresses.
A laptop at 192.168.1.20 opens https://www.contoso.example. Its home router does NAT, so on the internet side the laptop appears as 198.51.100.7.
The eight packets below are out of order. Move them until they match what a capture would show, then switch views to see how the router rewrites addresses.
What’s on screen
- Network path
- the strip at the top: the laptop, the home router with its inside and outside addresses, and the internet servers.
- Capture view
- two buttons. Inside the router shows addresses as the laptop sees them. Outside the router shows what the internet sees.
- Packet list
- the eight packets, each with up and down arrows to move it.
- Check order
- the button under the list. It tells you whether the order is right, or which packet is first out of place.
- Walkthrough
- the numbered path beside the workbench (below it on a phone). Each step says what to do and what you should see. Hints open one at a time.
Words to know
- HTTPS
- HTTP protected with TLS encryption
- DNS
- Domain Name System, which turns names into addresses
- TCP
- Transmission Control Protocol, the connection most network traffic uses
- TLS
- Transport Layer Security, the encryption behind HTTPS
- IP
- Internet Protocol address, the number that identifies a machine on a network
- SYN
- the first packet of a TCP connection
- ACK
- the acknowledgment flag in TCP
- SNI
- Server Name Indication, the site name a browser sends when TLS starts
Laptop
192.168.1.20Router (NAT)
192.168.1.1198.51.100.7Internet
DNS 192.0.2.53Web 203.0.113.80- TCPTCP [SYN, ACK] seq=0 ack=1
203.0.113.80:443 → 192.168.1.20:51514 - TLSTLS 1.3 ClientHello, SNI=www.contoso.example
192.168.1.20:51514 → 203.0.113.80:443 - UDPDNS response: www.contoso.example A 203.0.113.80
192.0.2.53:53 → 192.168.1.20:53001 - TLSTLS Application Data (the encrypted HTTP GET /)
192.168.1.20:51514 → 203.0.113.80:443 - TCPTCP [SYN] seq=0
192.168.1.20:51514 → 203.0.113.80:443 - UDPDNS query: A www.contoso.example?
192.168.1.20:53001 → 192.0.2.53:53 - TLSTLS 1.3 ServerHello, then encrypted extensions and certificate
203.0.113.80:443 → 192.168.1.20:51514 - TCPTCP [ACK] seq=1 ack=1
192.168.1.20:51514 → 203.0.113.80:443
More in Network defense
The whole walkthrough
Every step in order: 296 words, about 2 min. It gives away every answer, so try the steps first.