ArticlesBase.com - Free Articles Directory
Free Online Articles Directory
26.07.2008 Sign In Register Hello Guest
Email:
Password:
Remember Me 
forgot your password?


Packet-Sniffer Filtering Concepts-01

Author: Barry Koplowitz Author Ranking Blue | Posted: 12-02-2008 | Comments: 0 | Views: 23 | Got a Question? Ask.
Sign Up Now!

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.

Rate this Article: Current: 0 / 5 stars - 0 vote(s).

Article Source: http://www.articlesbase.com/computers-articles/packetsniffer-filtering-concepts01-331588.html

Print this Article Print article   Email to a Friend Send to friend   Publish this Article on your Website Publish this Article   Send Author Feedback Author feedback  
About the Author:
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
Submitting articles has become one of the most popular means of generating quality backlinks and targeted traffic to your website. Join us today - It's Free!

Article Comments

Comment on this article Comment on this article
Your Name
Your Email:
Comment Body
Enter Validation Code: Captcha


Related Articles

Baselining--Stress Testing--Performance Testing--Oh My--Part TWO-Testing
By: Barry Koplowitz | 23/07/2008 | Computers
This article is also available as a Podcast on "The ROOT Cause" available on iTunes. Written and Narrated by Barry Koplowitz. This is the second of two articles discussing the topic of Test Environments and Testing Practices. The first one, "Baselining--Stress Testing--Performance Testing--Oh My--Part One--Environments," focused on proper testing environment design....

How To Build A Simple Open-Source Distributed Protocol Analyzer
By: Barry Koplowitz | 29/12/2007 | Computers
This is the way that Network General (the creator of Sniffer ®) has deployed Distributed Sniffer ® since the beginning. While the product that you are using may be from another or Open-Source vendor,( i.e. Ethereal ®/ WireShark ®), this process is time honored and as such, is considered to...

The Application
By: Barry Koplowitz | 18/01/2008 | Computers
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. Rarely are all the required skills in one skull. Perhaps it is best understood once you think in terms of functions and skill-sets within a...

The Myths Of Network Utilization
By: Barry Koplowitz | 26/01/2008 | Computers
The Interpath Technologies Networking Myths Series™ This artilce is also availabe as a Podcast of "The Sniffer Guy" though iTunes. Mythology is not fantasy or lies. It describes a basic truth-but as metaphor. If you understand that it is describing a fundamental reality-by telling a story-you know to look for the reality...

The Importance Of Application
By: Barry Koplowitz | 13/01/2008 | Computers
Awareness of performance problems in a large enterprise network comes from different sources. Sometimes it is a monitoring tool and sometimes it is complaints from business users. Monitoring tool notifications stay within IT--quietly. With all the alligators to shoot, such issues may be left for a quieter time. Nevertheless, since those...

Interpath Application Flow Diagrams-01
By: Barry Koplowitz | 02/06/2008 | Computers
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. While it has been...

Interpath Technologies Transactional Analysis Methodology For It Troubleshooting
By: Barry Koplowitz | 28/12/2007 | Computers
During 11 years of troubleshooting high profile network & application performance issues across global enterprises up to 120,000 nodes--Interpath Technologies Corporation developed its specialized Network & Application performance Analysis methodology. We have helped companies like IBM, ING-Direct & Lucent Technologies find Resolution for under-performing networks & applications. Application & Network Performance Analysis...

Performance Tuning Is A Process--Not A Tool
By: Barry Koplowitz | 29/12/2007 | Computers
MULTI-MILLION DOLLAR loses occur every day due to poor application testing plans, too much trust in automated testing tools and a general lack of the big picture. Plans are made without understanding how IT all works together. Yet more automated tools hit the market every day. The Web is alive with...

Got a Question? Ask.

Ask the community a question about this article:

Q&A Powered by:
Powered by Yedda 

Latest Computers Articles

Get the Most Out of Your Nanny Spy Cameras - Use Them For Other Purposes!
By: Nahshon Roberts | 25/07/2008
Lest you think that nanny spy cameras are only good for spying on the nanny, think again. The term is another designation for hidden surveillance cameras, supposedly because these are now more commonly used to monitor childcare providers in an increasingly nanny-paranoid society. Nanny spy cameras are usually...

Analyzing Consumer Electronics Devices
By: James Brown | 24/07/2008
Many consumers are drawn to consumer electronics because of the technology that makes each device perform its mission. While many consumers might not have a technical degree, many have a working knowledge of what the device is equipped with and the selling points of the device after they enter a...

Types of Consumer Electronics
By: James Brown | 24/07/2008
With so many updates and changes made to consumer electronics lately, some consumers are having a difficult time understanding what types of consumer electronics are most popular among middle class Americans and those who live on limited incomes where budget cuts made most consumer electronics seem unaffordable. Families across the...

Benefits of Unlocked Cellular Phones
By: Abe S. | 24/07/2008
You may not know much about your cellular phone other than that you cannot live without it! Your cell phone is your connection to the rest of the world and is a very important tool. Many cell phones are made to use a SIM card - a Subscriber...

How to Start a Business Selling Cell Phones
By: Abe S. | 24/07/2008
In today's unstable economy with reduced income and rising prices, everyone wants to save money if they can. Even if the economy were booming, saving money is always a wise choice. There is no shame in wanting to save as much money as possible when it comes to...

How Can I Work With Sybase Database Tools?
By: Patricia Stevens | 23/07/2008
To use a Sybase server, you are should have Netscape Enterprise Server. You cannot get an access to Sybase from Netscape FastTrack Server. Sybase has both one-line, and multiline drivers on some Unix-platforms. If Sybase has the multiline driver for the concrete Unix-machine, you are obliged to use LiveWire for...

Baselining--Stress Testing--Performance Testing--Oh My--Part TWO-Testing
By: Barry Koplowitz | 23/07/2008
This article is also available as a Podcast on "The ROOT Cause" available on iTunes. Written and Narrated by Barry Koplowitz. This is the second of two articles discussing the topic of Test Environments and Testing Practices. The first one, "Baselining--Stress Testing--Performance Testing--Oh My--Part One--Environments," focused on proper testing environment design....

Page Yield / Cartridge Yield
By: Kwan Lo | 23/07/2008
Page yield is the number of pages that you can print with a printer cartridge. It is also known as cartridge yield. Many cartridge manufacturers use the terms "standard yield" or "high yield" to describe their printer cartridge but each cartridge should have a page yield value. It...

More from Barry Koplowitz

Baselining--Stress Testing--Performance Testing--Oh My--Part TWO-Testing
By: Barry Koplowitz | 23/07/2008 | Computers
This article is also available as a Podcast on "The ROOT Cause" available on iTunes. Written and Narrated by Barry Koplowitz. This is the second of two articles discussing the topic of Test Environments and Testing Practices. The first one, "Baselining--Stress Testing--Performance Testing--Oh My--Part One--Environments," focused on proper testing environment design....

How it Vendors Direct it Best Practices
By: Barry Koplowitz | 18/06/2008 | Computers
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. He asks him, "What are...

Interpath Application Flow Diagrams-01
By: Barry Koplowitz | 02/06/2008 | Computers
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. While it has been...

The Missing Link In It Management
By: Barry Koplowitz | 05/02/2008 | Computers
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. While working on muti-month projects that...

The Myths Of Network Utilization
By: Barry Koplowitz | 26/01/2008 | Computers
The Interpath Technologies Networking Myths Series™ This artilce is also availabe as a Podcast of "The Sniffer Guy" though iTunes. Mythology is not fantasy or lies. It describes a basic truth-but as metaphor. If you understand that it is describing a fundamental reality-by telling a story-you know to look for the reality...

The Application
By: Barry Koplowitz | 18/01/2008 | Computers
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. Rarely are all the required skills in one skull. Perhaps it is best understood once you think in terms of functions and skill-sets within a...

The Importance Of Application
By: Barry Koplowitz | 13/01/2008 | Computers
Awareness of performance problems in a large enterprise network comes from different sources. Sometimes it is a monitoring tool and sometimes it is complaints from business users. Monitoring tool notifications stay within IT--quietly. With all the alligators to shoot, such issues may be left for a quieter time. Nevertheless, since those...

The 7 Most Common Mistakes Using Packet-Sniffers
By: Barry Koplowitz | 08/01/2008 | Computers
This article is also covered in a "The Sniffer Guy" podcast--available at http://www.interpathtech.com --and--through iTunes. 1) Believing the "Intelligence" of the Software without understanding how it makes determinations. Software default settings are very seldom correct for YOU. For example, a device may say that a SQL server should respond in 50ms. But,...

Article Categories






Give Feedback

Sign up for our email newsletter

Receive updates, enter your email below