This wiki has been migrated to https://gitlab.com/wireshark/wireshark/-/wikis/home and is now deprecated. Please use that site instead.
Differences between revisions 11 and 13 (spanning 2 versions)
Revision 11 as of 2008-04-09 13:42:59
Size: 2076
Editor: tlvmail1
Comment:
Revision 13 as of 2011-06-27 05:31:51
Size: 2438
Editor: WenchaoWang
Comment:
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
XXX - add a brief STP description here The

'''Spanning Tree Protocol'''(

'''STP''') is a

network protocolthat ensures a loop-free topology for any bridged Ethernet local area network.
Line 6: Line 12:
XXX - add a brief description of STP history STP is a Data Link Layer protocol. It is standardized as IEEE 802.1D. As the name suggests, it creates a spanning tree within a mesh network of connected layer-2 bridges (typically Ethernet switches), and disables those links that are not part of the spanning tree, leaving a single active path between any two network nodes.
Line 9: Line 15:
 * ["LLC"]: Typically, STP uses [:LLC:802.2 LLC] as its transport protocol, running on link-layer protocols in the LanProtocolFamily such as ["Ethernet"].  * [[LLC]]: Typically, STP uses [[LLC|802.2 LLC]] as its transport protocol, running on link-layer protocols in the LanProtocolFamily such as [[Ethernet]].
Line 11: Line 18:
XXX - Add example traffic here (as plain text or Wireshark screenshot). {{attachment:STP.JPG}}
Line 14: Line 21:
Line 18: Line 24:
Line 21: Line 28:
 * Data: PVID is 2 bytes      * Data: PVID is 2 bytes
Line 29: Line 34:
* attachment:SampleCaptures/stp.pcap * [[attachment:SampleCaptures/stp.pcap]]
Line 32: Line 37:
A complete list of STP display filter fields can be found in the [http://www.wireshark.org/docs/dfref/s/stp.html display filter reference] A complete list of STP display filter fields can be found in the [[http://www.wireshark.org/docs/dfref/s/stp.html|display filter reference]]
Line 36: Line 41:
 stp }}}  stp
}}}
Line 40: Line 47:
 stp }}}  stp
}}}
Line 42: Line 51:
 * IEEE 802.1D: [http://standards.ieee.org/getieee802/download/802.1D-2004.pdf IEEE standard for local and metropolitan area networks--Media access control (MAC) Bridges] (for STP and RSTP).
 * IEEE 802.1Q: [http://standards.ieee.org/getieee802/download/802.1Q-2003.pdf IEEE Standards for local and metropolitan area networks-—Virtual Bridged Local Area Networks] (for MSTP).
 * IEEE 802.1D: [[http://standards.ieee.org/getieee802/download/802.1D-2004.pdf|IEEE standard for local and metropolitan area networks--Media access control (MAC) Bridges]] (for STP and RSTP).
 * IEEE 802.1Q: [[http://standards.ieee.org/getieee802/download/802.1Q-2003.pdf|IEEE Standards for local and metropolitan area networks-—Virtual Bridged Local Area Networks]] (for MSTP).

Spanning Tree Protocol (STP)

The

Spanning Tree Protocol(

STP) is a

network protocolthat ensures a loop-free topology for any bridged Ethernet local area network.

History

STP is a Data Link Layer protocol. It is standardized as IEEE 802.1D. As the name suggests, it creates a spanning tree within a mesh network of connected layer-2 bridges (typically Ethernet switches), and disables those links that are not part of the spanning tree, leaving a single active path between any two network nodes.

Protocol dependencies

Example traffic

STP.JPG

Wireshark

The STP dissector is fully functional and supports IEEE 802.1D BPDU, Rapid Spanning-Tree BPDUs, and MST/MSTI BPDUs. Also add info of additional Wireshark features where appropriate, like special statistics of this protocol.

Cisco has a custom TLV extension called Per Vlan Spanning Tree (PVST+). The extension is added to 802.1D and RST BPDUs sent on 802.1Q VLAN trunks. The extension at the end of the BPDU advertises the VLAN ID (PVID) that the BPDU was sent on. The extension has the following format. It should be noted that only 802.1D and not RST BPDUs include the one padding byte for alignment.

  • Even byte padding (802.1D only): 1 byte
  • Type (only PVID type 0x00 is supported): 2 bytes
  • Length: 2 bytes
  • Data: PVID is 2 bytes

Preference Settings

There are no STP specific preference settings.

Example capture file

* SampleCaptures/stp.pcap

Display Filter

A complete list of STP display filter fields can be found in the display filter reference

  • Show only the STP based traffic:
     stp

Capture Filter

  • Capture only the STP based traffic:
     stp

Discussion

STP (last edited 2011-06-27 05:32:14 by WenchaoWang)