Testing with Wireshark

One of the best ways to test your work is to examine your packets in Wireshark. This can help you make sure your packets are formatted properly, and make sure you are forwarding packets as you expect. Moreover, looking at your traffic in Wireshark is how we will grade your work, so it is in your best interest to check your work this way!

To get started using wireshark for the IP-TCP project for the first time, we recommend the IP Implementation guide, which provides a general walkthrough of how to set up everything.

After you have started using Wireshark, we have various resources to help you test your work in Wireshark, for various components of the project:

General testing resources

For IP

To get started: IP implementation guide for a conceptual overview of how to think about IP-in-UDP encapsulation, and a tutorial on how to configure your UDP sockets, format packets, and examine them

Once you have Wireshark set up, here’s how you can use it to test various components:

We highly recommend using these techniques to help you debug your work! If you come to us with a debugging problem, one of the first things we’ll ask is “what does it look like in wireshark?”, as it’s one of the best and most objective ways to see what’s happening.