Exercise: Capturing UDP Packets
Explore how to capture UDP packets using the tcpdump command-line tool. Understand how to filter relevant packets, save captures to .pcap files, and read them for analysis. This lesson equips you with practical skills in network packet capture and inspection essential for mastering the transport layer.
Let’s get into viewing real packets.
What is tcpdump?
tcpdump is a command-line tool that can be used to view packets being sent and received on a computer. The simplest way to run it is to simply type the following command into a terminal and hit enter. You can try this on the terminal provided at the end of this lesson!
tcpdump
Packets will start getting printed rapidly to give a comprehensive view of the traffic.
Sample Output
However, some might not find it to be very helpful because it does not allow for a more zoomed-in ...