|
|
||
|
|
||
|
|
||
|
|
||
![]()
Product Support
Product Activation FAQs
Downloads
Maintenance Programs
White Papers
WildPackets Forums
Technical Compendium
Additional Resources
Tip of the Month
Wireless Tips
Plugin Tips
Product Versions
Networking Books
Networking Glossary
Networking Links
Tech Support Requests
|
January 2005Bit by Bit: Using Binary Bit Filters in WildPackets' ProductsWhen we examine fields in the packet headers, most of these are one or more bytes in length. However, some fields, such as various flags, are only 1 bit in length. So there are occasions when we need to filter based on the value of a single bit or a combination of two or more bits. We can do this with a Value filter. Scenario: We want to examine all TCP connection setup frames. These will be all of the frames in which the TCP SYN flag bit is set to a value of 1. Before we can build the filter, we must determine the location of the SYN flag within the frame. The TCP flags are the last six bits of the byte at hex offset 0x2F. This byte is formatted as follows:
We are interested in all frames where the SYN flag bit is set to one. Since this would result in a value of 0x02 for this byte, we might be tempted to develop a value filter that will locate all frames with a hex value of 02 at offset 0x2F. This filters would not give us all of the SYN packets since the SYN flag may occur in combination with other flags. To solve this problem, we will build a bit filter to tell the analyzer that we want to see all frames in which the SYN bit is 1, while ignoring the value of the other bits in that byte. We can do so with a Value Filter. To build our filter, we’ll start by selecting an example packet with the SYN flag set to 1. The procedure for building the filter is as follows:
When we apply this filter, the analyzer will display only those packets with the SYN bit set to 1. There are many ways you could use binary filters e.g. certain types of ICMP packets or quality of service bits. Let your imagination run wild, and I’m sure you’ll find that binary filters are a simple, quick way to search through packets!
|
|
||||||
| COPYRIGHT © 2008 WILDPACKETS, INC — PRIVACY STATEMENT · CONTACT US | CORPORATE · PRODUCTS · SOLUTIONS · SERVICES · SUPPORT · PARTNERS · BUY NOW |
|
All registered and unregistered trademarks are the sole property of their respective owners |
|
United States
UK



