CN105245457A - Method and device for accelerating convergence speed of designated port in MSTP - Google Patents
Method and device for accelerating convergence speed of designated port in MSTP Download PDFInfo
- Publication number
- CN105245457A CN105245457A CN201510689873.2A CN201510689873A CN105245457A CN 105245457 A CN105245457 A CN 105245457A CN 201510689873 A CN201510689873 A CN 201510689873A CN 105245457 A CN105245457 A CN 105245457A
- Authority
- CN
- China
- Prior art keywords
- port
- message
- mstpbpdu
- mstp
- test
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/02—Topology update or discovery
Abstract
The invention discloses a method and device for accelerating the convergence speed of a designated port in an MSTP. The method includes the following steps that: a first port transmits an MSTP BPDU message to a second port with hello-time adopted as intervals; and the second port receives and parses the MSTP BPDU message, if a parsing result indicates that the priority of a corresponding MSTP domain in the MSTP BPDU message is lower than the priority of the second port and the forwarding bit of the corresponding MSTP domain in the MSTP BPDU message is 0, the second port switches the state of the second port itself to a forwarding state from a discarding state in the corresponding MSTP domain. With the method and device of the invention adopted, a designated port of a certain type in the MSTP can quickly enter a forwarding state from a discarding state, and therefore, the speed of the convergence of the MSTP can be increased, and no loops are generated.
Description
Technical field
The present invention relates to a kind of P/A fast-negotiation mechanism, especially relate to a kind of method and the device of accelerating certain class designated port convergence rate in MSTP.
Background technology
When topology changes, MSTP (MultipleSpanningTreeprotocol, Multiple Spanning Tree Protocol) rely on P/A fast-negotiation mechanism, enable port enter Forwarding state fast, but this P/A fast-negotiation mechanism is only operated between Designated (appointment) port and Root (root) port.Not P/A fast-negotiation mechanism between Designated port and Backup (backup) port, Alternated (replacement) port, therefore can only by the way of waiting timer between Designated port and Backup port, Alternated port, namely need through two Forward-delay (forward delay) timers, this kind of Designated port just can be made to enter forwarding state, cause the convergence time of this kind of Designated port too very long.
Summary of the invention
The object of the invention is to the defect overcoming prior art, a kind of method and the device of accelerating designated port convergence rate in MSTP are provided, switch to Forwarding state to realize designated port fast from Discarding state.
For achieving the above object, the present invention proposes following technical scheme: a kind of method accelerating designated port convergence rate in MSTP, described method is applied between the first port and the second port, wherein, described first port is designated port and the second port is replacement port, or described first port is designated port and the second port is backup port, described method comprises:
Described first port is that interval sends MSTPBPDU message to the second port with hello-time;
Described second port accepts also resolves described MSTPBPDU message, if parse described MSTP
In BPDU message, the priority of priority ratio second port in corresponding MSTP territory is low and Forwarding position that the is corresponding MSTP territory of described MSTPBPDU message is 0, then described second port switches to Forwarding state by from the state in corresponding MSTP territory by Discarding state.
Preferably, after described second port accepts to MSTPBPDU message, message is given CPU and resolve, in resolving, obtain the value of MSTIDpriority field in message.
Preferably, if the priority parsing priority ratio second port in corresponding MSTP territory in described MSTPBPDU message is low and Forwarding position that the is corresponding MSTP territory of described MSTPBPDU message is 1, then described second port is maintained Discarding state.
Preferably, if the priority parsing priority ratio second port in corresponding MSTP territory in described MSTPBPDU message is high, then described second port is maintained Discarding state.
Preferably, a port has different roles in different MSTP territories, and described role comprises designated port, replaces port and backup port.
Present invention further teaches another technical scheme: a kind of device accelerating designated port convergence rate in MSTP, comprise the first Devices to test and the second Devices to test, the port of described first Devices to test is designated port and the port of the second Devices to test is replacement port, or the port of described first Devices to test is designated port and the port of the second Devices to test is backup port, wherein
Described first Devices to test is used for hello-time being that interval sends MSTPBPDU message to the second port;
Described second Devices to test is used for receiving and resolving described MSTPBPDU message, and it is low in the priority of port of priority ratio second Devices to test parsing corresponding MSTP territory in described MSTPBPDU message, and the Forwarding position in described MSTPBPDU message corresponding MSTP territory is when being 0, the state of port in corresponding MSTP territory controlling described second Devices to test switches to Forwarding state by Discarding state.
Preferably, the MSTPBPDU message received is given CPU and is resolved by described second Devices to test, obtains the value of MSTIDpriority field in message.
Preferably, described second Devices to test in the priority of himself port of priority ratio parsing corresponding MSTP territory in described MSTPBPDU message low and the Forwarding position in the corresponding MSTP territory of described MSTPBPDU message is 1 time, for control himself port is maintained Discarding state.
Preferably, himself port, when parsing the priority height of himself port of priority ratio in corresponding MSTP territory in described MSTPBPDU message, is maintained Discarding state for controlling by described second Devices to test.
Preferably, the port of described first Devices to test or the second Devices to test has different roles in different MSTP territories, and described role comprises designated port, replaces port and backup port.
The invention has the beneficial effects as follows: the convergence mechanism that the present invention is directed to certain class Designated port in MSTP makes improvement, make this kind of Designated port can enter Forwarding state fast from Discarding state, thus accelerate the speed of MSTP convergence, and do not produce any loop.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet that the present invention accelerates the method for designated port convergence rate in MSTP;
Fig. 2 is the structural representation of the embodiment of the present invention 1;
Fig. 3 is the form schematic diagram of MSTPBPDU message.
Embodiment
Below in conjunction with accompanying drawing of the present invention, clear, complete description is carried out to the technical scheme of the embodiment of the present invention.
The present embodiment is for the port2 port of the port1 port of Devices to test in Fig. 21 and Devices to test 2, and that specifically introduces that the present invention accelerates the method for designated port convergence rate in MSTP and device realizes principle.
In MSTP, a port serves as different roles in different MSTP territories (instance), and as in Fig. 2, the present embodiment 1 sets port1 port in instance1 as Designated port, is Alternated port in Instance2; Port2 port is Root port in instance1, is Designated port in instance2.
Shown in composition graphs 1 and Fig. 2, port1 port can be that interval sends MSTPBPDU message to port2 port with hello-time.
MSTPBPDU (the BridgeProtocolDataUnit that port2 port accepts is sent to port1 port, BPDU, the data message of interactive information is used in STP agreement) message, this message up sending is carried out dissection process to the control appliance (as CPU) in Devices to test 2, in resolving, obtains the value of MSTIDpriority field in message.As shown in Figure 3, MSTPBPDU message is here public technology to the form of MSTPBPDU message, so be not described in detail here.It should be noted that, here namely the hello-time time interval sends time interval of BPDU message, and every hello-time duration, port1 port sends a BPDU message from trend opposite end port2 port, to exchange current state information, and inform to survive in opposite end oneself.
In the present embodiment 1, if the priority that CPU parses the priority ratio port2 port of instance2 in MSTPBPDU message is low, and the Forwarding position of MSTPBPDU message instance2 is 0, then CPU control port2 port switches to Forwarding state by from the state in corresponding MSTP territory by Discarding state immediately.This mode can be avoided causing loop, and can complete the handoff procedure of Designated port status fast, accelerates the convergence time of topology.Here it should be explained that, forwarding field in MSTPBPDU, represent when setting to 0 that the port current state in this Instance sending message is non-forwarding state, when putting 1, represent that the state current in this Instance of the port that sends message is forwarding state.
If the priority parsing the priority ratio port2 port self of instance2 in MSTPBPDU message is low and Forwarding position that is MSTPBPDU message instance2 is 1, then port2 port is maintained Discarding state.If the priority parsing the priority ratio port2 port self of instance2 in MSTPBPDU message is high, then no matter whether Forwarding position is 0, port2 port makes the port role of oneself into Alternated or Backup port, and port2 port is maintained Discarding state.
The present embodiment 2 sets port1 port in instance1 as Designated port, is Backup port in Instance2; Port2 port is Root port in instance1, is Designated port in instance2.Specific implementation principle with introduce in above-described embodiment 1 identical, just repeat no more.
The present invention is for the Designated port of Backup port or Alternated port opposite end, originally can shorten this kind of Designated port is switched to forwarding state time by discarding state greatly, thus accelerate the speed of MSTP convergence.
Technology contents of the present invention and technical characteristic have disclosed as above; but those of ordinary skill in the art still may do all replacement and the modification that do not deviate from spirit of the present invention based on teaching of the present invention and announcement; therefore; scope should be not limited to the content that embodiment discloses; and various do not deviate from replacement of the present invention and modification should be comprised, and contained by present patent application claim.
Claims (10)
1. accelerate the method for designated port convergence rate in MSTP for one kind, it is characterized in that, described method is applied between the first port and the second port, wherein, described first port is designated port and the second port is replacement port, or described first port is designated port and the second port is backup port, described method comprises:
Described first port is that interval sends MSTPBPDU message to the second port with hello-time;
Described second port accepts also resolves described MSTPBPDU message, if the priority parsing priority ratio second port in corresponding MSTP territory in described MSTPBPDU message is low and Forwarding position that the is corresponding MSTP territory of described MSTPBPDU message is 0, then described second port switches to Forwarding state by from the state in corresponding MSTP territory by Discarding state.
2. method according to claim 1, is characterized in that, after described second port accepts to MSTPBPDU message, message is given CPU and resolves, obtain the value of MSTIDpriority field in message in resolving.
3. method according to claim 1, it is characterized in that, if the priority parsing priority ratio second port in corresponding MSTP territory in described MSTPBPDU message is low and Forwarding position that the is corresponding MSTP territory of described MSTPBPDU message is 1, then described second port is maintained Discarding state.
4. method according to claim 1, is characterized in that, if the priority parsing priority ratio second port in corresponding MSTP territory in described MSTPBPDU message is high, then described second port is maintained Discarding state.
5. method according to claim 1, is characterized in that, a port has different roles in different MSTP territories, and described role comprises designated port, replaces port and backup port.
6. accelerate the device of designated port convergence rate in MSTP for one kind, it is characterized in that, comprise the first Devices to test and the second Devices to test, the port of described first Devices to test is designated port and the port of the second Devices to test is replacement port, or the port of described first Devices to test is designated port and the port of the second Devices to test is backup port, wherein
Described first Devices to test is used for hello-time being that interval sends MSTPBPDU message to the second port;
Described second Devices to test is used for receiving and resolving described MSTPBPDU message, and it is low in the priority of port of priority ratio second Devices to test parsing corresponding MSTP territory in described MSTPBPDU message, and the Forwarding position in described MSTPBPDU message corresponding MSTP territory is when being 0, the state of port in corresponding MSTP territory controlling described second Devices to test switches to Forwarding state by Discarding state.
7. device according to claim 6, is characterized in that, the MSTPBPDU message received is given CPU and resolved by described second Devices to test, obtains the value of MSTIDpriority field in message.
8. device according to claim 6, it is characterized in that, described second Devices to test in the priority of himself port of priority ratio parsing corresponding MSTP territory in described MSTPBPDU message low and the Forwarding position in the corresponding MSTP territory of described MSTPBPDU message is 1 time, for control himself port is maintained Discarding state.
9. device according to claim 6, it is characterized in that, himself port, when parsing the priority height of himself port of priority ratio in corresponding MSTP territory in described MSTPBPDU message, is maintained Discarding state for controlling by described second Devices to test.
10. device according to claim 6, is characterized in that, the port of described first Devices to test or the second Devices to test has different roles in different MSTP territories, and described role comprises designated port, replaces port and backup port.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510689873.2A CN105245457B (en) | 2015-10-21 | 2015-10-21 | Accelerate the method and device of designated port convergence rate in MSTP |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510689873.2A CN105245457B (en) | 2015-10-21 | 2015-10-21 | Accelerate the method and device of designated port convergence rate in MSTP |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105245457A true CN105245457A (en) | 2016-01-13 |
CN105245457B CN105245457B (en) | 2018-08-28 |
Family
ID=55042962
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510689873.2A Active CN105245457B (en) | 2015-10-21 | 2015-10-21 | Accelerate the method and device of designated port convergence rate in MSTP |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105245457B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105939275A (en) * | 2015-09-23 | 2016-09-14 | 杭州迪普科技有限公司 | Method and device for computing MSTP domain |
WO2018035681A1 (en) * | 2016-08-22 | 2018-03-01 | 华为技术有限公司 | Method of establishing interface connection, and interface chip |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7480258B1 (en) * | 2003-07-03 | 2009-01-20 | Cisco Technology, Inc. | Cross stack rapid transition protocol |
CN101771570A (en) * | 2010-02-08 | 2010-07-07 | 杭州华三通信技术有限公司 | State switching method and device |
CN102255758A (en) * | 2011-08-11 | 2011-11-23 | 神州数码网络(北京)有限公司 | Method for increasing convergence rate of RSTP (Rapid Spanning Tree Protocol) |
CN103840965A (en) * | 2013-10-18 | 2014-06-04 | 深圳市新格林耐特通信技术有限公司 | Method for enhancing quick fault convergence in RSTP |
-
2015
- 2015-10-21 CN CN201510689873.2A patent/CN105245457B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7480258B1 (en) * | 2003-07-03 | 2009-01-20 | Cisco Technology, Inc. | Cross stack rapid transition protocol |
CN101771570A (en) * | 2010-02-08 | 2010-07-07 | 杭州华三通信技术有限公司 | State switching method and device |
CN102255758A (en) * | 2011-08-11 | 2011-11-23 | 神州数码网络(北京)有限公司 | Method for increasing convergence rate of RSTP (Rapid Spanning Tree Protocol) |
CN103840965A (en) * | 2013-10-18 | 2014-06-04 | 深圳市新格林耐特通信技术有限公司 | Method for enhancing quick fault convergence in RSTP |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105939275A (en) * | 2015-09-23 | 2016-09-14 | 杭州迪普科技有限公司 | Method and device for computing MSTP domain |
WO2018035681A1 (en) * | 2016-08-22 | 2018-03-01 | 华为技术有限公司 | Method of establishing interface connection, and interface chip |
CN108476245A (en) * | 2016-08-22 | 2018-08-31 | 华为技术有限公司 | Establish the method and port chip of port connection |
CN108476245B (en) * | 2016-08-22 | 2022-01-11 | 华为技术有限公司 | Method for establishing port connection and port chip |
Also Published As
Publication number | Publication date |
---|---|
CN105245457B (en) | 2018-08-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11050657B2 (en) | Method, device and node for message transmission, and computer storage medium | |
US9166887B2 (en) | Multicast convergence | |
US20160095047A1 (en) | Bluetooth low energy beacon device and advertising method | |
EP2676401B1 (en) | Methods for controlling elections in a multicast network | |
US20120294193A1 (en) | Method and System for Increasing Forwarding Efficiency of Virtual Private LAN Service Network | |
WO2008078245A3 (en) | Method and system to select devices of a wireless network, particularly a network of wireless lighting devices | |
WO2014180312A3 (en) | Methods for dynamically binding header field identifiers in a network control protocol | |
AU2015268591A1 (en) | System and method for multi-source multicasting in content-centric networks | |
US10924434B2 (en) | Graceful designated router handoff | |
US20160043876A1 (en) | Controlled switching of multicast traffic between selective and inclusive routes based on number of multicast receivers | |
US7646772B2 (en) | Graceful shutdown of LDP on specific interfaces between label switched routers | |
CN105245457A (en) | Method and device for accelerating convergence speed of designated port in MSTP | |
US20170346645A1 (en) | Network device configured to track multicast receivers | |
EP3166263B1 (en) | Routing calculation method and device for trill isis | |
CN104796340B (en) | A kind of multicast data transmission method and equipment | |
CN102761451A (en) | Improved single loop redundancy backup implementation based on rapid spanning tree protocol (RSTP) | |
CN100499658C (en) | Method for avoiding redundant Flood | |
US20160094367A1 (en) | Migrating multicast flow | |
CN104219151B (en) | A kind of Goose message flow table filter methods based on SDN | |
CN105245363A (en) | Open Flow based linear protection method | |
CN103780517A (en) | Driving system and driving method for cooperative work of controller and exchanger under different versions of OpenFlow | |
CN102238074B (en) | Designated router (DR) election method and router | |
CN104780138A (en) | Transparent transmission method and device for STP (Spanning Tree Protocol)/RSTP (Rapid Spanning Tree Protocol) message in private redundancy protocol network | |
EP2693702A1 (en) | Method and label switched router (lsr) for initiating label distribution protocol (ldp) session connection establishment | |
CN104202240A (en) | Method of accelerating RP (Rendezvous Point) switchover |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP01 | Change in the name or title of a patent holder |
Address after: 215000 unit 13 / 16, 4th floor, building B, No.5 Xinghan street, Suzhou Industrial Park, Jiangsu Province Patentee after: Suzhou Shengke Communication Co.,Ltd. Address before: 215000 unit 13 / 16, 4th floor, building B, No.5 Xinghan street, Suzhou Industrial Park, Jiangsu Province Patentee before: CENTEC NETWORKS (SU ZHOU) Co.,Ltd. |
|
CP01 | Change in the name or title of a patent holder |