Fast recovery method and device for STP-based backup port
AssigneeXi'an Zhongxing New Software Co.Ltd.
InventorShurui Jia
Life of this patent
Estimating the term…
Abstract
Disclosed is a fast recovery method for a Spanning Tree Protocol (STP) based backup port, and the method includes: it is detected that a failure occurs on a port of an STP-based device; and it is determined whether there is a backup port taking a failed port as a master port, and when it is determined that there is such a backup port, said backup port is changed to a master port; further disclosed is a fast recovery device for an STP based backup port. By means of the technical solutions of the disclosure, it is possible to shorten significantly recovery time of a backup port, and improve greatly performance of link recovery.
Claims4
A fast recovery method for a Spanning Tree Protocol (STP) based backup port, the method comprising:
- detecting that a failure occurs on a port of an STP-based device;
- and
- determining whether there is a backup port taking a failed port as a master port, and when it is determined that there is such a backup port, changing said backup port to a master port;
- the method further comprising:
- after said backup port is changed to the master port, setting a state of the master port to a forwarding state;
- wherein before said backup port is changed to the master port, a state of said backup port is a blocked state;
- and
- when it is detected that a failure occurs on a port of an STP-based device, recording a port Identity (ID) of a failed port;
- wherein the determining whether there is a backup port taking a failed port as a master port comprises:
- determining whether in a port priority vector there is a port having a specified port field, i.e., port ID that is the same as the ID of the failed port, and when it is determined that there is such a port, determining said port as the backup port taking the failed port as a master port.
A fast recovery device for an STP-based backup port, the device comprising:
- a detection unit configured to, when detecting that a failure occurs on a port of an STP-based device, trigger a determination unit;
- the determination unit configured to determine whether there is a backup port taking a failed port as a master port, and when it is determined that there is such a backup port, trigger a processing unit;
- and
- the processing unit configured to change said backup port to a master port;
- wherein the processing unit is further configured to, after said backup port is changed to the master port, set a state of the master port to a forwarding state;
- and wherein before said backup port is changed to the master port, a state of said backup port is a blocked state;
- wherein the detection unit is further configured to, when detecting that a failure occurs on a port of an STP-based device, record a port Identity (ID) of a failed port;
- and
- the determination unit is configured to:
- determine whether in a port priority vector there is a port having a specified port field, i.e., port ID that is the same as the ID of the failed port, and when it is determined that there is such a port, determine said port as the backup port taking the failed port as a master port and trigger the processing unit.
Dependencies are inferred from the claim text.