Reading a Capture
Lesson 27 of 32 in Coddy's The OSI Model course.
Packet captures are usually summarized one packet per line, listing the nested layers and their key fields. Being able to skim such a dump and pull out one packet's facts is the everyday form of encapsulation knowledge.
A summary line like
2 eth aa:..:01>aa:..:02 ip 10.0.0.5>10.0.0.9 tcp 51000>443
reads: packet number 2, an Ethernet frame between those MACs, carrying an IP packet between those addresses, carrying a TCP segment from port 51000 to port 443. Destination port 443 tells you the payload is almost certainly HTTPS.
Challenge
EasyThe file capture.txt holds one summary line per packet. Find the packet whose TCP destination port is 53 and print its full line with grep.
Expected output:
3 eth aa:00:00:01>aa:00:00:02 ip 10.0.0.5>10.0.0.53 tcp 51002>53Try it yourself
All lessons in The OSI Model
Practice on your own: Terminal playground