This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

Spanning tree for bridges

0
18  2012-11-08 07:58:03.331868  3comEuro_6c:a0:2c   Spanning-tree-(for-bridges)_00  STP 120 MST. Root = 32768/0/00:1e:c1:6c:9f:fa  Cost = 0  Port = 0x8032

Why does this appear/occur every 2 seconds on my network? Is it really necessary for it to occur every 2 seconds?

asked 29 Jan '13, 09:18

cherokee's gravatar image

cherokee
1111
accept rate: 0%

edited 29 Jan '13, 09:22

SYN-bit's gravatar image

SYN-bit ♦♦
17.1k957245


2 Answers:

1

If you need spanning-tree in your network depends on your network topology. If you only have one switch (or a switch-stack), then you probably don't need it (unless you are afraid people will connect two ports by accident). You can configure your switches to not use spanning-tree to get rid of these packets.

But if you do need spanning-tree because you have multiple paths between switches, then yes, you need these messages in your network to do the loop detection and automatic reconfiguration of your switches in case a link fails.

answered 29 Jan '13, 09:26

SYN-bit's gravatar image

SYN-bit ♦♦
17.1k957245
accept rate: 20%

not to forget - "every 2 seconds" is an eternity in today's networks, so apart from sometimes being annoying in the packet list, BPDU frames do not hurt the network bandwidth.

(29 Jan '13, 10:03) Jasper ♦♦

It's like car insurance. You don't need it until you need it! So don't disable spanning tree. It's so insignificant that it's not even a packet....it's just a frame! :)

(29 Jan '13, 19:41) hansangb

0

By the way, Spanning Tree was developed to prevent layer 2 loops from occurring. In IP world, the TTL field can be used to prevent packets from looping around forever. However, there is no such field in an Ethernet frame. As a result, if you create a L2 loop, the frames will fly around infinitely. Creating a L2 loop is a great way to test the "real throughput" of any switch! :)

Spanning tree's job is to make sure that there is only one path to the root bridge (king of the hill). this way, even if you have redundant uplinks (not part of etherchannel) you are guaranteed not to have loops at layer 2. That's the sole purpose of spanning tree. Insuring that your L2 network is loop free.

answered 29 Jan '13, 19:44

hansangb's gravatar image

hansangb
7912619
accept rate: 12%

edited 30 Jan '13, 00:07

grahamb's gravatar image

grahamb ♦
19.8k330206

oops! Thanks Graham! I left the not out, I take it? :)

(30 Jan '13, 16:23) hansangb

I changed a "look" into "loop".

(30 Jan '13, 23:47) grahamb ♦