Enhancing STP and Configuring STP Protection Functions part 4

Latest reply: Jun 24, 2019 16:42:15 63 1 1 0

Loop Protection

4.1 Context
 

151249hkl3tasmzj16teze.jpg


On the network shown in the preceding figure, SW1 is the root bridge. GE0/0/23 on SW3 is a non-designated port and listens to BPDUs sent from SW2 though the port in Discarding state.
 

151249e65gu6k5n52zg5v5.jpg


GE0/0/23 on SW3 cannot receive BPDUs from SW2 due to a unidirectional link failure between SW2 and SW3. In this case, SW3 considers that SW2 is faulty and performs STP recalculation. According to STP recalculation, GE0/0/23 becomes a designated port and transitions to the Forwarding state. In this case, a loop occurs since packets can be sent from SW3 to SW2.


4.2 Basic Concepts


Normally, the root port and the port in Discarding state receive BPDUs. When the ports fail to receive BPDUs due to a unidirectional link failure, STP recalculation is performed. The root port becomes a designated port and the port in Discarding state transitions to the Forwarding state. As a result, a loop occurs.
After loop protection is enabled on the root port, if the role of the root port changes, for example, the root port becomes a designated port, the port is blocked, that is, the port transitions to the Discarding state until it receives new BPDUs.
After loop protection is enabled on a blocked port, the port remains in Discarding state even if it is elected as a designated port.
In MSTP, this function can be configured only on the root port, alternate port, and backup port.


4.3 Configuration Example 1 (Enable Loop Protection on the Root Port)
 

·         Without loop protection enabled

151249yevbh64t69fyby4t.jpg

 
After STP converges, GE0/0/22 on SW3 is elected as the root port and GE0/0/23 is elected as a designated port in Discarding state.
 

http://image.hw3static.com/hi/showimage-15712559-432623-6228397c4060eea0c94ca16c009cdfd5.jpg


Disable STP on GE0/0/22 of SW1 to simulate a unidirectional link failure. As a result, SW3 cannot receive BPDUs from GE0/0/22 of SW1.
 

http://image.hw3static.com/hi/showimage-15712563-432623-107d1e6fe6dd9a10a4aa9541d4117745.jpg


After STP converges again, GE0/0/23 of SW3 becomes the root port and GE0/0/22 becomes a designated port. In this case, a loop occurs.

·         With loop protection enabled 

http://image.hw3static.com/hi/showimage-15712569-432623-a3137d6f40f3b2b3ddd7a262a3297059.jpg

 

Enable loop protection on GE0/0/22 of SW3.
 

151250c15znh5efaaer1q5.jpg


SW3 performs STP recalculation. GE0/0/23 becomes the root port, and GE0/0/22 becomes a designated port. Since GE0/0/22 is enabled with loop protection, the port remains in Discarding state even though it is a designated port. This situation prevents a loop.


4.4 Configuration Example 2 (Enable Loop Protection on a Designated Port)
 

http://image.hw3static.com/hi/showimage-15712573-432623-624dd0b4f07ea48d3819d278bcffe962.jpg


This example enables loop protection on a designated port, as shown in the preceding figure.
 

151251dn15h1lih5hz7t75.jpg


If a unidirectional link failure occurs between SW2 and SW3, SW3 cannot receive BPDUs from GE0/0/23. Therefore, SW3 performs STP recalculation. According to STP recalculation, GE0/0/23 becomes a designated port but remains in Discarding state since it is enabled with loop protection. This prevents a loop.

 

To learn more:


Enhancing STP and Configuring STP Protection Functions part 1


Enhancing STP and Configuring STP Protection Functions part 2


Enhancing STP and Configuring STP Protection Functions part 3


  • x
  • convention:

MVE Created Jun 24, 2019 16:42:15 Helpful(0) Helpful(0)

Marvelous
  • x
  • convention:

Yogendra%20Jain

Reply

Reply
You need to log in to reply to the post Login | Register

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " Privacy."
If the attachment button is not available, update the Adobe Flash Player to the latest version!

Login and enjoy all the member benefits

Login
Fast reply Scroll to top