www.howtonetwork.org

CCNA & CCNP Certifcation Training

  • About
  • Contact
  • FAQ
  • Join
  • Home
  • CCNA
    • ICND1
    • ICND2
    • 101 CCNA LABS
  • CCNP
    • ROUTE
    • SWITCH
    • TSHOOT
    • 101 CCNP LABS
  • CompTIA
    • Security+
    • Network+
  • Design
    • CCDA
    • CCDP
You are here: Home / SWITCH / Module 3 / 802.1D Spanning Tree Protocol – Understanding the Spanning Tree Diameter

802.1D Spanning Tree Protocol – Understanding the Spanning Tree Diameter

The IEEE 802.1D specification recommends a maximum network diameter of 7 switches. The term ‘diameter’ refers to the maximum number of switches a frame would have to travel to get from one end of the network to the other. A network diameter of 7 switches means that no two distinct switches can be more than seven hops away from each other. To understand this concept, consider the switched network illustrated in Figure 3-28 below: 

 Understanding the STP Diameter
Fig. 3-28. Understanding the STP Diameter

In Figure 3-28, the diameter is 4. This means that if a frame travelled from one end of the network to the other, going through all switches, it would only transit a maximum of 4 switches. For example, the longest path that a frame would take to go from Switch 3 to Switch 4 could be either of the following:

  • Switch 3 > Switch 1 > Switch 2 > Switch 4
  • Switch 3 > Switch 2 > Switch 1 > Switch 4

The number seven is derived from a series of calculations based on various timers being tuned to their default values. The default Spanning Tree diameter is determined based on the Max Age and Forward Delay timers. These two values can be used to calculate the diameter using the following two formulas:

Diameter = (Max Age + 2 – (4 * Hello)) / 2
Diameter = ((2 * Forward Delay) – (4 * Hello)) / 3

Based on the default values for these timers, the STP network diameter is calculated as follows:

Diameter = (Max Age + 2 – (4 * Hello)) / 2
Diameter = (20 + 2 – (4 * 2)) / 2
Diameter = (22 – 8) / 2
Diameter = 14 / 2
Diameter = 7 seconds
Diameter = ((2 * Forward Delay) – (4 * Hello)) / 3
Diameter = ((2 * 15) – (4 * 2)) / 3
Diameter = (30 – 8) / 3
Diameter = 22 / 3
Diameter = 7.33 (rounded down to 7) seconds

This maximum network diameter restricts how far away from each other bridges in the network can be. However, the network diameter may be higher than 7 although this is not recommended, as it could result in Spanning Tree convergence issues. Cisco IOS software allows network administrators to change the Spanning Tree diameter when configuring the Root Bridge. When you specify the network diameter, the switch automatically sets an optimal Hello Time, Forward Delay time, and Max Age time for a network of that diameter, which can significantly reduce the convergence time.

STP Timer Warning

When working with STP in live networks, it is important that you do not arbitrarily adjust the default Spanning Tree parameters. These values are perfectly fine for almost every network. Changing these values, without a solid understanding of the implications, may cause unexpected results, even as far as a complete network meltdown. If you do not want to be remembered as the person who brought down the network, then it is recommended that you do not change these values without absolute justification or guidance from the Cisco Technical Assistance Center (TAC).

Prev

Next

About Us

This is a free bonus site for members of www.howtonetwork.com

Copyright

The content on this copyright Reality Press Ltd.
Copyright Reality Press Ltd.