Back in the day when 10 meg shared Ethernet was all the rage, it was pretty easy to
capture
packets. You could pretty much plug the protocol analyzer into any port of the hub and see all of
the traffic. In most cases, you could let the analyzer run for a entire day without filling up the 16
meg capture buffer.
Today things are much different. Most networks are switched and running full duplex
Ethernet. This
means that if we plug our protocol analyzer into just any port on the switch, all we will see is
Broadcast packets. This is great if you are doing a broadcast analysis of the segment, but typically
we need to see more than just broadcasts.
Here are the three methods I usually use for capturing packets in a switched environment:
The Hub -
Good Points
Easy. You can install
a 10/100 hub between the workstation and the network. Plug your
analyzer in and you will see all of the traffic to and from the workstation. You have to make
sure you are connecting at the same speed as the workstation when using a dual speed
hub. If you are at 100 and the workstation is a 10, you will only see broadcasts. I like the
NetGear DS108 hub for doing captures. It has worked well and it is really a hub. Some
manufacturers call a device a hub when it is really a switch.
Bad Points
You must break the
link between the device to be monitored and the network to install the
hub. If the device you are monitoring is a mission critical device, this might be a problem.
Half Duplex. Hubs
are half duplex devices and as such only support traffic flowing in one
direction at a time. If you are trying to test something that is full duplex, you will have
problems.
SPAN/MIRROR Port
Good Points
Does not require
you to break the link between the workstation and the switch.
Allows you to monitor
Full Duplex connections with a Half Duplex analyzer.
Can be configured
remotely.
Bad Points
Must be able to
login to switch in order to configure this option.
The switch must
support Span/Mirror ports.
Most switches only
support one Span/Mirror per device.
Some switches will
only monitor traffic in one direction. You will only be able to see the
packets in or out of the monitored port. Makes analysis VERY difficult.
If the bit rate
of the traffic in and out of the monitored port exceeds the transmit rate of the
port used to do the monitoring, packets can be lost.
VLAN tags a typically
removed before the the packets are sent out the monitor port.
Frames containing
physical level errors are not copied to the monitor port.
Inline Taps
Good Points
Preserves VLAN tags.
Can capture frames
containing physical level errors.
Can capture Full
Duplex traffic at full line rate.
Does not require
access to switch configuration.
Bad Points
Must break link
between switch and device to insert tap.
The analyzer used
to capture the packets must be able to receive packets on two
interfaces at the same time. These packet streams must be synchronized and put back
into a single stream for analysis. Examples of these analyzers are Fluke Networks Link
Analyzer and Finisar's THG.