Network Protocol Analysis Tip: Packet Slicing

Packet slicing can speed analysis. See a demonstration in this video.

Tony Fortunato

August 24, 2017

1 Min Read
Network Computing logo

As a network protocol analyst, "packet slicing" is one of the most important techniques I can share. Packet slicing simply saves a specific number of bytes from your packets rather than the entire packet. By default, most network protocol analyzers will save the entire packet, but there are many scenarios where you might want to save a portion of the packet instead of the entire packet.

Here are some examples/reasons when to consider slicing:

  • The data is not useful or unreadable/encrypted

  • To conserve disk space or reduce your trace file size

  • Legal issues around the payload of captured packets

  • Reduce load on your capture device. Some packet capture tools are less likely to drop packets when packets are sliced.

In the video below, I demonstrate how to slice packets from a trace file using Wireshark’s editcap application.

Check your protocol analyzer and determine if you can slice after you captured your packets. For example, Wireshark only allows you to configure packet slicing before you start your capture. For post-capture packet slicing, you can use Wireshark’s editcap application.

null

packetsliceimage.png

 

If you want the MAC, IP, TCP layers and a bit of the application layer, 128-byte slice will work just fine. Check whether your protocol analyzer requires fixed lengths for packet slicing; otherwise, you can input any number. Having the ability to input specific values provides an analyst with more flexibility and enables better precision.

null

packetslice-2.png

About the Author(s)

Tony Fortunato

Sr Network Performance Specialist

Tony Fortunato is a network performance expert who has been designing, implementing and troubleshooting networks since 1989. His company, The Technology Firm, provides clients of all sizes with services ranging from project management, network design, consulting, troubleshooting, designing custom-designed training courses, and assisting with equipment installation. Tony's experience in networking started with financial trading floor networks and ISPs, where he learned to integrate and support equipment from various vendors. Tony has taught and presented at numerous colleges and universities, public forums and private classes. He blogs frequently at NetworkDataPediaand has a popular YouTube channel.

SUBSCRIBE TO OUR NEWSLETTER
Stay informed! Sign up to get expert advice and insight delivered direct to your inbox
More Insights