iSnare.com - Free Content Articles Directory
Authors Contents [Advanced Search][Add OpenSearch][Job Search]
Distribute your articles to thousands of article sites for only $2 and below! Read more...

Index  Computers and Technology
 

Packet-Sniffer Filtering Concepts-01

 
[ Contact the Author] [ Send to a Friend] [ Article Publisher] [Make PDF] [ Print] [ Bookmark & Share]
 
Read our Terms of Service before reprinting this article. The submitter specified above has claimed the rights to this article.
Barry Koplowitz

This article is also available as a "The Sniffer Guy" Podcast on iTunes.

The most frequent questions we receive are about how to create filters with a packet-sniffer. In an article titled “The 7 Most Common Mistakes Using Packet-Sniffers” I do touch on this topic. However, it was just one of seven items discussed and rates more attention on its own.

Creating filters is one of the most important skills required for successfully using packet-sniffers, and one of the most common reasons for inconclusive or just plain wrong results. You can design a perfect test--place the probes in exactly the right places--capture data during the tests as planned—and still end up with garbage if your Capture Filters are incorrect. Similarly, you can have perfect captures in the can and never find what you need to see, if your Display Filters are incorrect.

There is a problem with discussing this topic. Since each product uses different screens and commands to perform what are essentially the same functions, a command or GUI tutorial would not be able to address the real issue. After all, there are instruction manuals and guides from Network General (now NetScout), or Wireshark or whatever product you are using. Those guides are readily available and are usually well written. So, why is there still a problem? It is because the real problem is not how to tell the software what you want it to filter, it is instead, knowing what you want to filter—and why. Knowing what you want to filter is a thought process and a troubleshooting process. It is conceptual rather than a set of instructions. This makes it difficult to say exactly where to click or what to type, but it does makes it possible to show you an approach that applies to all packet-sniffers. This topic is huge and this brief article cannot cover it all so there will be follow up articles in the future. But first let’s review Capture Filters compared to Display Filters.

Capture Filters:

Filter out unwanted information from entering the capture buffer during capture. There is no way to correct a bad capture filter other than retesting. If it didn’t make it to the buffer it is gone to the bit bucket. Ideally, you will only use these when the data flow is too large for you to be able to get what you need in a single buffer. Under those conditions, they are mandatory as you are drinking from the Fire Hose and will completely recycle your capture buffers before the entire transaction you are looking for can complete resulting in buffers that only have part of the transaction. This is of limited value.

Display Filters:

Filter out unwanted information from displaying. They do not affect what is in the capture buffer and can be changed again and again while you work out what you want to see.

The following are a few points to remember when creating filters. They provide a conceptual approach rather than a list of instructions.

Compounding Filters:

Display filters can be compounded. This is where you filter, look and then filter again—further reducing the display. It is a good practice. Filter from the general to the specific. Do not try for that hole-in-one. Take your strokes and get the ball closer and closer to the tee. You will know more about what you are looking at each time and are far less likely to overlook something important.

Filters Only Remove:

Always remember that filters remove what you don’t want; they do not add what you do want. Even if you filter “for” a string, or address, it means filter out everything but that string—it is still filtering out. This is important for the way that you think about the process.

Boolean:

Pay attention to the basics of Boolean Statements. A classic mistake is filtering for a given address in both Source and Destination. For example:

Source = 10.10.10.10 AND Destination = 10.10.10.10. You may want to see or capture everything To or From 10.10.10.10, but the statement means, capture only packets that have 10.10.10.10 as their source address AND their destination address. Typically, nothing will qualify because most protocols would only have any given IP address as either the source OR the destination. (There are exceptions.) This illustrates the difference between “AND” and “OR.” If you made this mistake on a capture filter, it will mean performing the test over again.

TCP Port Numbers:

When creating filters in order to follow a specific conversation, determine which IP address would most likely be initiating the conversation. They will have the Ephemeral (temporary) TCP Port while the receiver will be addressed on the predetermined TCP Port appropriate for that implementation of that specific protocol with that particular application. Verify the Destination TCP Port value. It may not be what you expect. HTTP is usually TCP 80, but will often be implemented as 8080 or any other value. Don’t assume the Port Number. Get it from the application Subject Matter Expert or discover this through the process of capturing and following the initiator’s communication with the destination IP address. If you filter on an assumption, you will have nothing in the buffer or displayed—if you are wrong. Measure twice; cut once.

To further complicate matters, I myself will frequently recommend that different TCP Ports be used than what is typical for a given service. Besides the obvious security benefits such a practice offers, there are solid monitoring and troubleshooting benefits. For example, if different instances of a database that are hosted on the same server use different TCP Ports, monitoring and troubleshooting become easier. But, these non-standard port assignments can have side-effects on standard packet-sniffer filters. For example, Oracle would not use TCP 1521. This means that your Packet-Sniffer may not find it if you use a default filter for Oracle. That filter may simply map Oracle to TCP 1521, which wouldn’t work in such a situation. That is exactly why I make such a recommendation. I want to be able to differentiate between them. This way I can filter to capture one instance versus another instance of the same database on the same server! That can be a great way to monitor an application or to simply avoid drinking packets out of the Fire Hose.

Sting Filters:

Pay attention to where the string you are looking for is likely to be displayed in your particular Packet-Sniffer. Think about the nature of the value you are using for your filter. Is it a value created by the software that you are using or is it something actually embedded in the packet? For example, the Delta Time (time between packets) is not something that is actually part of the packet, nor is any “Absolute” time value. On the other hand, if there are TCP Time Stamps in the packet, that is part of the data. This is especially important when working with the same captures across different packet-sniffer software. The software generated values are created by that code and will not always be identical to the same field generated by different code. Don’t lose time trying to reconcile them; you can’t.

RFC’s:

Take the time to research the protocols you are investigating. An hour with the RFC can save you days of trouble and make the difference between success and failure. They will show you what should be focus of your filters.

Misleading Yet Normal Results: Some situations can cause you to think your filters are bad when they are fine. Such as environments or protocols, where you may only see one side of the conversation. For example, let’s use ARP. The ARP Query is a broadcast and widely visible, but the response is unicast and only visible on the segment to which it is directed, or along that Interpath. You may see many queries and no replies but that is normal. Another example is where load balancing or asynchronous routing are involved. In such cases, you may see only one side of the conversation and to make matters worse—they might switch on you. All of this is normal. If you need to see both sides (as you usually will) you will need to place your probes where they will be able to do so. This requires planning, which brings us to my closing recommendation.

Planning:

Filtering is best done with a plan. That plan should be created BEFORE captures begin. For example, know the throughput of the segments you are planning to monitor or test before you start live testing. Know if capture filters are needed and experiment with ways of getting what you need with minimal use of capture filters. Know what you are looking for and place your probes where you will be able to see what you need. Once that degree of planning is in place, the filters to use come naturally.

Important NoticeDISCLAIMER: All information, content, and data in this article are sole opinions and/or findings of the individual user or organization that registered and submitted this article at Isnare.com without any fee. The article is strictly for educational or entertainment purposes only and should not be used in any way, implemented or applied without consultation from a professional. We at Isnare.com do not, in anyway, contribute or include our own findings, facts and opinions in any articles presented in this site. Publishing this article does not constitute Isnare.com's support or sponsorship for this article. Isnare.com is an article publishing service. Please read our Terms of Service for more information.

Barry Koplowitz founded Interpath Technologies Corporation in 1999. He was an instructor for Network General and NAI traveling around the USA teaching for Sniffer University and is a executive consultant to large enterprise environments in the area of Processes-Network/Application Analysis and Troubleshooting. He is the writer and host of The Sniffer Guy podcast. http://www.interpathtech.com

Article Tags: capture [See Dictionary], filter [See Dictionary], tcp [See Dictionary]
Got a question about this article? Ask the community!
Article published on February 13, 2008 at Isnare.com
 
Rate [Ratings: 0 / 5] [Votes: 1]

The Ethical Conflicts Created by MBO Incentive Programs
Submitted by: Barry Koplowitz

Is there anyone who actually believes that MBO Incentive Programs are beneficial Everyone I know in the Information Technology industry can site several examples of serious mistakes that were PUSHED through because someone, or several someones, had an MBO deadline...

The New Information Technology Marketplace
Submitted by: Barry Koplowitz

This article is also available as a Podcast on "The RootCause" podcast series available on iTunes As our country begins what I can only hope is a new era, I find myself wondering about the future of our industry...

Multi-Tier Latency Concepts-01
Submitted by: Barry Koplowitz

Multi-Tier Latency Concepts-01 by Barry Koplowitz This article is also available as a Podcast on "The RootCause" podcast series available on iTunes...

The Myth Of Network Latency
Submitted by: Barry Koplowitz

This article is also available as a Podcast on "The ROOT Cause" podcast series available on iTunes There is a great deal of confusion surrounding the concept of Latency...

The Enterprise Network Saturation Point
Submitted by: Barry Koplowitz

Size doesn't matter--it's the complexity that gets you I have seen networks of less than two thousand nodes become so complex that they become essentially unmanageable, while networks of ten's of thousands of nodes are under control...

The Technical Enterprise Practitioner (TEP) ™
Submitted by: Barry Koplowitz

As IT environments become more complex, technologists and their managers have stepped farther away from trying to understand the “What” or “How” of their technology...

Baselining--Stress Testing--Performance Testing--Oh My--Part TWO-Testing
Submitted by: Barry Koplowitz

This article is also available as a Podcast on "The ROOT Cause" available on iTunes Written and Narrated by Barry Koplowitz...

Baselining--Stress Testing--Performance Testing--Oh My--Part One--Environments
Submitted by: Barry Koplowitz

Baselining--Stress Testing--Performance Testing--OH MY--Part One--Environments by Barry Koplowitz...

How it Vendors Direct it Best Practices
Submitted by: Barry Koplowitz

This article is covered in a podcast on "The ROOT Cause" Podcast Series available on itunes TOOLS CREATE NEEDS There is an old vaudeville routine about a man who finds another man, a bit inebriated, crawling around on the cement under a street light looking for something...

Interpath Application Flow Diagrams-01
Submitted by: Barry Koplowitz

This article is also covered as a podcast on "The ROOT Cause" podcast series, available on iTunes Interpath Application Flow Diagrams have been the second most frequently read or listened to topic on the Interpath Technologies website and The Sniffer Guy / The ROOT Cause podcast series...

What's So Great About Packet-Sniffers?
Submitted by: Barry Koplowitz

There are many products on the market that provide different levels of Network Management or Server Management...

Mentoring In It
Submitted by: Barry Koplowitz

This article is also available as a "The Sniffer Guy" podcast on iTunes ATTENTION AMERICAN IT MANAGERS: Within the next decade most of your best people will retire or die...

The Missing Link In It Management
Submitted by: Barry Koplowitz

There is a role that is needed within the IT Management Structure that is missing In my opinion, this role could save large corporations many millions of dollars per year while contributing greatly to the overall health of all IT departments, and their personnel...

The Myths Of Network Utilization & Automated Metrics
Submitted by: Barry Koplowitz

The Interpath Technologies Networking Myths Series™ This artilce is also availabe as a Podcast of "The Sniffer Guy" though iTunes...

The Application & Network Performance Analysis Troubleshooting Team (NAPA)™
Submitted by: Barry Koplowitz

This article is the topic of Episode 5 of “The Sniffer Guy” podcast series available through iTunes INTRODUCTION: Application & Network Performance Analysis is a team sport...

Martin Yale 1217A Autofolder Review
Submitted by: Jeff McRitchie

For years the standard in paper folding machines, the Martin Yale Intimus 1217A is well-known in the small print industry for being a solid and flexible machine...

It’s a Mod Chip World!
Submitted by: Michiel Van Kets

No Nintendo Wii game console seems complete without a mod chip installation and with today’s latest mod chip innovations it’s easier than ever to buy and install your own Wii modification chip...

Martin Yale 400 Paper Jogging Machine Review
Submitted by: Jeff McRitchie

Any business that produces and binds a lot of documents on a regular basis should have a paper jogging machine on hand...

Laminating Film For Beginners
Submitted by: Jeff McRitchie

Roll laminators are awesome machines, but sometimes it can be difficult to know what supplies you need to use with your new laminating system...

PC200 Spiral Coil Binding Machine Review
Submitted by: Jeff McRitchie

The PC200 is positioned as a low-cost spiral coil binding solution for low volume users Here we take a look at this machine and examine its strengths and weaknesses...

Martin Yale 700E Paper Cutter Review
Submitted by: Jeff McRitchie

A commercial-quality paper cutter, the Martin Yale 700E is meant to be used in smaller print shops or in-house production floors for medium to large businesses...

Rhino Tuff CI 3000 Coil Inserter Review
Submitted by: Jeff McRitchie

Rhino's CI 3000 features a unique design that purports to make it easier to do spiral coil book binding...

Lamitek PhotoPro 13 Laminator Review
Submitted by: Jeff McRitchie

There are many laminators available and sometimes it is hard to know which one you should buy It is always a good idea to get a versatile machine, such as one that can do both hot and cold lamination, while also providing a crystal-clear finish...

Lamitek Photosmart 13 Laminator Review
Submitted by: Jeff McRitchie

The emergence and increasing numbers if digital printers has sparked an interest in laminating machines that can work with high-quality photos and/or glossier printed pages...

PC200E Spiral Coil Binding Machine Review
Submitted by: Jeff McRitchie

As the least expensive spiral coil binding machine that offers disengageable dies and an electric coil inserter, the PC200E is well positioned in the marketplace...

Be Careful When Buying Cheap Adobe Software
Submitted by: Adrianna Noton

When individuals are looking to buy software they always love finding cheap Adobe software However are these really great prices too good to be true...

What is the Difference Between Standard and High Yield Toner Cartridges?
Submitted by: Adriana N

There have been improvements in the manufacturing of printer toner cartridges Toner found in a cartridge is dry powder blended with a polymer that sticks on to the paper as printing takes place...

Inverted Microscope: A Great Tool For Studying Living Cells
Submitted by: Edison Rammsey

When you hear the term inverted microscope, you probably think of observing samples from under a microscope...

Digital Microscope: Eight Reasons Why You Must Have it Now!
Submitted by: Edison Rammsey

Welcome the Digital Age through a digital microscope With its eight benefits to be enjoyed, all other microscope will look small in comparison, pun intended...

Should Small Businesses Adapt to the Point of Sale System?
Submitted by: Adrianna Noton

In earlier times, a cash register along with a pen and notebook were sufficient means for processing and keeping track of transactions...

Isnare.com Footer Divider

© 2004-2009. Isnare Free Articles - An Isnare Online Technologies Free Articles Project. All Rights Reserved.   Privacy Policy