Wireshark / Packet Analysis Lab
Reading a packet capture is the skill behind half the troubleshooting and security questions on Network+ (N10-009) and CySA+ (CS0-004). Below are three short captures. Read each table, then answer four questions about it — every answer is graded immediately, with the fact behind it.
How to read a capture table
- Frame # — the packet's position in the capture, in order.
- Time — seconds since the capture started. Gaps and bursts matter: a scan fires many packets in milliseconds.
- Source / Destination — IP address and port, written as 192.168.1.50:49152. The port after the colon names the service on that side.
- Protocol — DNS, TCP, TLS and the rest. The protocol column tells you which layer to think in.
- Length — the frame size in bytes.
- Info — the one-line summary: flags, sequence numbers, and what the packet is asking for.
Teaching captures. These three captures were built for this lab — simplified, shortened and labelled so each pattern is easy to see. They are not recordings of real traffic, and the addresses, domain names and timings are made up for teaching. The protocols, ports and flag behaviour in them are real.
Capture 1 — Normal web browsing
A laptop at 192.168.1.50 opens https://example.com. First it must resolve the name, then it opens a connection to the web server at 93.184.216.34. Nothing here is an attack — learn this shape, because every anomaly in captures 2 and 3 is a deviation from it.
| Frame | Time | Source | Destination | Protocol | Length | Info |
|---|---|---|---|---|---|---|
| 1 | 0.000000 | 192.168.1.50:53412 | 8.8.8.8:53 | DNS | 73 | Standard query A example.com |
| 2 | 0.012341 | 8.8.8.8:53 | 192.168.1.50:53412 | DNS | 89 | Standard query response A 93.184.216.34 |
| 3 | 0.045210 | 192.168.1.50:49152 | 93.184.216.34:443 | TCP | 66 | [SYN] Seq=0 |
| 4 | 0.078932 | 93.184.216.34:443 | 192.168.1.50:49152 | TCP | 66 | [SYN, ACK] Seq=0 Ack=1 |
| 5 | 0.079104 | 192.168.1.50:49152 | 93.184.216.34:443 | TCP | 60 | [ACK] Seq=1 Ack=1 |
| 6 | 0.095622 | 192.168.1.50:49152 | 93.184.216.34:443 | TLSv1.3 | 217 | Client Hello |
| 7 | 0.132845 | 93.184.216.34:443 | 192.168.1.50:49152 | TLSv1.3 | 1083 | Server Hello, Certificate |
| 8 | 0.210388 | 192.168.1.50:49152 | 93.184.216.34:443 | TCP | 60 | [ACK] Seq=1 Ack=1024 |
Capture 2 — SYN scan
One host, 10.0.0.23, talks to 10.0.0.5 on the same local network. Watch the flags and the clock: the whole exchange below takes about six milliseconds. The scan continues in the same pattern to ports 445, 3306 and more — no handshake ever completes.
| Frame | Time | Source | Destination | Protocol | Length | Info |
|---|---|---|---|---|---|---|
| 1 | 0.000000 | 10.0.0.23:41001 | 10.0.0.5:22 | TCP | 60 | [SYN] Seq=0 |
| 2 | 0.001204 | 10.0.0.5:22 | 10.0.0.23:41001 | TCP | 60 | [RST, ACK] Seq=0 Ack=1 |
| 3 | 0.001510 | 10.0.0.23:41002 | 10.0.0.5:80 | TCP | 60 | [SYN] Seq=0 |
| 4 | 0.002718 | 10.0.0.5:80 | 10.0.0.23:41002 | TCP | 60 | [RST, ACK] Seq=0 Ack=1 |
| 5 | 0.003020 | 10.0.0.23:41003 | 10.0.0.5:443 | TCP | 60 | [SYN] Seq=0 |
| 6 | 0.004231 | 10.0.0.5:443 | 10.0.0.23:41003 | TCP | 60 | [RST, ACK] Seq=0 Ack=1 |
| 7 | 0.004540 | 10.0.0.23:41004 | 10.0.0.5:3389 | TCP | 60 | [SYN] Seq=0 |
| 8 | 0.005812 | 10.0.0.5:3389 | 10.0.0.23:41004 | TCP | 60 | [RST, ACK] Seq=0 Ack=1 |
Capture 3 — DNS exfiltration hint + retransmissions
A workstation at 192.168.1.75 makes unusual DNS queries, then downloads a file from 203.0.113.10 over HTTPS. Two things look odd. Only one of them is a real problem — the questions below ask you to tell them apart.
| Frame | Time | Source | Destination | Protocol | Length | Info |
|---|---|---|---|---|---|---|
| 1 | 0.000000 | 192.168.1.75:52100 | 8.8.8.8:53 | DNS | 118 | Standard query TXT a1b2c3d4e5f6g7h8.evil-example.net |
| 2 | 0.045210 | 8.8.8.8:53 | 192.168.1.75:52100 | DNS | 132 | Standard query response TXT |
| 3 | 0.120000 | 192.168.1.75:52101 | 8.8.8.8:53 | DNS | 124 | Standard query TXT k9j8h7g6f5e4d3c2b1.evil-example.net |
| 4 | 0.168000 | 8.8.8.8:53 | 192.168.1.75:52101 | DNS | 128 | Standard query response TXT |
| 5 | 0.500000 | 203.0.113.10:443 | 192.168.1.75:49200 | TCP | 1514 | [PSH, ACK] Seq=10001 Ack=512 Len=1460 |
| 6 | 0.812000 | 203.0.113.10:443 | 192.168.1.75:49200 | TCP | 1514 | [PSH, ACK] Seq=10001 Ack=512 Len=1460 [TCP Retransmission] |
| 7 | 1.024000 | 192.168.1.75:49200 | 203.0.113.10:443 | TCP | 66 | [ACK] Seq=512 Ack=11461 |
| 8 | 1.310000 | 203.0.113.10:443 | 192.168.1.75:49200 | TCP | 1514 | [PSH, ACK] Seq=11461 Ack=512 Len=1460 |
Packet analysis shows up on Network+ and CySA+
Practice the full exams — 800 Network+ questions in 8 weighted tests, and the complete CySA+ bank — free samples on CertCrack.
Free Network+ SampleFree CySA+ SampleWireshark lab FAQ
What is a SYN scan?
A SYN scan sends a TCP SYN packet to many ports on a target in quick succession and watches the replies. An RST reply means the port is closed; a SYN-ACK means it is open. Because the scanner never sends the final ACK, no connection is ever completed.
What is a TCP retransmission?
A retransmission is a TCP segment sent a second time with the same sequence number, because the first copy was lost or its acknowledgement never arrived. It is normal TCP reliability behaviour on a lossy link, not evidence of an attack by itself.
What is DNS exfiltration?
DNS exfiltration smuggles data out of a network inside DNS queries, often as long encoded labels in TXT or A queries to an attacker-controlled domain. A stream of unusual, long DNS queries to the same strange subdomain is the pattern analysts look for.