Token Ring capture setup

The following will explain capturing on TokenRing a bit.

Table of contents

Supported Platforms

See the Supported Capture Media page for Wireshark capturing support on various platforms.

Packet Types

The TokenRing hardware on the network adapter filters all packets received, and delivers to the host

The driver for the adapter will also send copies of transmitted packets to the packet capture mechanism, so that they will be seen by a capture program as well.

Promiscuous mode

In order to capture TokenRing traffic other than Unicast traffic to and from the host on which you're running Wireshark, Multicast traffic, and Broadcast traffic, the adapter will have to be put into promiscuous mode, so that the filter mentioned above is switched off and all packets received are delivered to the host.

The Windows driver for the Madge Presto PCI 2000 TokenRing adapter requires you to enable promiscuous mode explicitly in order to do this, and the drivers for other Madge TokenRing adapters allow promiscuous mode to be disabled, in which case promiscuous mode will have to be re-enabled; see Madge's An Overview of Promiscuous Mode for more information on this. Note that those drivers also support permanently disabling promiscuous mode; promiscuous mode can never be re-enabled on an adapter on which promiscuous mode has been permanently disabled.

TokenRing adapter drivers on UN*X probably always support promiscuous mode if the adapter is capable of it (they probably won't be able to support it on an adapter on which it's been permanently disabled).

Shared Token Ring

Traditionally, TokenRing networks were shared networks, meaning all packets passed through, and thus were received by, all nodes on that network. Therefore, if a TokenRing adapter on such a network is put into promiscuous mode, all packets on the network will be seen by that adapter and thus can be captured with that adapter.

Switched Token Ring

Now, a TokenRing network can use switches to connect the nodes together. This can increase network performance a lot, but makes life much harder when capturing packets.

A TokenRing switch will do a similar thing to the TokenRing adapter hardware mentioned above, but inside the switch. It can infer, from traffic seen on a switch port, what Unicast address or addresses are used by the adapter connected to that port, and will forward to that port only Unicast traffic sent to that address or addresses, as well as all Multicast and Broadcast packets on the network.

As Unicast packets not sent to that host will not be put on the switch port to which that host's adapter is connected, that adapter won't those packets, so putting the adapter into promiscuous mode can't cause it to deliver packets to that host, and you won't see those packets even if you capture in promiscuous mode.

The following will describe some methods to circumvent this problem.

Capture on the machine you're interested in

If you only need the capture data from a specific host, try to capture on that machine.

Capture using a monitor mode of the switch

Some TokenRing switches, namely the more expensive manageable ones, have a monitor mode. This monitor mode can dedicate a port to connect your (Wireshark) capturing device. It's sometimes called 'SPAN' (Cisco). Using the switch management, you can select both the monitoring port and assign a specific port you wish to monitor. Actual procedures vary between switch models; you may need to use a terminal emulator, specialised SNMP client software or (more recently) a Web browser. Caution: the monitoring port must be at least as fast as the monitored port, or you will certainly lose packets.

Note that some switches might not support monitoring all traffic passing through the switch, only traffic on a particular port. On those switches, you might not be able to capture all traffic on the network, only traffic sent to or from some particular machine on the switch.

See SwitchReference for details about specific switch models.

Rumour has it that some switches can monitor the whole throughput of the switch. As a switch can transfer more traffic than a single line can transmit, you will be unlikely to see all traffic.

See Also


CategoryHowTo

CaptureSetup/TokenRing (last edited 2008-12-13 20:42:15 by GeraldCombs)