Appendix A. Working with Wireshark

When developing network applications, it's often useful to be able to see exactly what's being transmitted over the network. Maybe something weird is going on with your framing, you're trying to discover the user agent for your browser, or you want to see what's happening in the IP protocol or lower layers. We can employ a class of tools called packet sniffers to do this.

Packet sniffers

Packet sniffers are designed to capture all the network traffic that enters and leaves a computer, allowing us to see the full, raw contents of all packets that our programs send and receive, and all the headers and payloads of all the protocols on the stack.

We're going to take a quick look at one of these applications. It not ...

Get Learning Python Network Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.