Detailed description of Spanning Tree Protocol-switch port status under STP

Source: Internet
Author: User

If each port on a vswitch has a host. So without listening and learning, it is easy to cause a broadcast storm. The Spanning Tree Protocol STP is generated to solve such problems.

How the Spanning Tree works:

The international standard for Spanning Tree Protocol is 802.1b. the Network Bridge/switch that runs the Spanning Tree Algorithm communicates configuration information with other switches through the Network Bridge Protocol Data Unit BPDU within the specified interval of 2 seconds by default. The process is as follows:

◆ Select only one root bridge in the given broadcast domain of the root bridge by comparing the priority of the bridge ).

◆ The remaining non-root bridges only have one port leading to the root switch, which is called the root port.

◆ Each CIDR block has only one forwarding port.

◆ All connection ports of the root switch are forwarding ports.

Note: The Spanning Tree Protocol is generally enabled on the switch by default, and can work normally without manual intervention. However, this automatic generation scheme may cause the data transmission path to be not optimized. Therefore, you can manually set the bridge priority to influence the generation result of the Spanning Tree.

Status of the Spanning Tree:

The port on the switch that runs the Spanning Tree Protocol is always in the following four States. During normal operation, the port is in the forwarding or blocking status. When the device identifies a change in the network topology, the switch automatically changes the status. During this period, the port is currently in the listening and learning status.

Blocking: all ports are started in blocking status to prevent loops. The spanning tree determines which port is switched to the forwarding state. The blocked port does not forward data but can accept BPDU.

Listener: Do not send and receive data, receive and send bpdu, do not learn the temporary status of the address ).

Learning: do not receive or forward data, receive and send bpdu, and start to learn the temporary status of the MAC address table ).

Forward: the port can forward and accept data.

  1. Spanning Tree Protocol learning key points full record
  2. Understanding the topology changes of the Spanning Tree Protocol

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.