CN106921582B - Method, device and system for preventing link from being blocked - Google Patents

Method, device and system for preventing link from being blocked Download PDF

Info

Publication number
CN106921582B
CN106921582B CN201511001394.3A CN201511001394A CN106921582B CN 106921582 B CN106921582 B CN 106921582B CN 201511001394 A CN201511001394 A CN 201511001394A CN 106921582 B CN106921582 B CN 106921582B
Authority
CN
China
Prior art keywords
switch
message
port
rpl owner
link
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.)
Active
Application number
CN201511001394.3A
Other languages
Chinese (zh)
Other versions
CN106921582A (en
Inventor
潘德志
丁成龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Huawei Digital Technologies Co Ltd
Original Assignee
Beijing Huawei Digital Technologies Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Huawei Digital Technologies Co Ltd filed Critical Beijing Huawei Digital Technologies Co Ltd
Priority to CN201511001394.3A priority Critical patent/CN106921582B/en
Publication of CN106921582A publication Critical patent/CN106921582A/en
Application granted granted Critical
Publication of CN106921582B publication Critical patent/CN106921582B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/12Avoiding congestion; Recovering from congestion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/25Routing or path finding in a switch fabric
    • H04L49/253Routing or path finding in a switch fabric using establishment or release of connections between ports
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/55Prevention, detection or correction of errors
    • H04L49/552Prevention, detection or correction of errors by ensuring the integrity of packets received through redundant connections

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Small-Scale Networks (AREA)

Abstract

The embodiment of the invention provides a method, a device and a system for preventing link blockage, which relate to the field of communication, can avoid modifying an ID of a main control switch, and simultaneously ensure that only one blocked port is arranged in a ring network, thereby ensuring the compatibility of the switch and the stability of a link. The method for preventing the link from being blocked comprises the following steps: the method comprises the steps that a first switch receives a first message sent by a second switch, wherein the first switch is a master switch, a loop protection link of the first switch has an RPL Owner port and one of the ports of the second switch, belongs to the same loop and is in a blocking state, and the first message is used for triggering the first switch to open the RPL Owner port of the first switch; and the first switch opens the RPL Owner port of the first switch according to the first message.

Description

Method, device and system for preventing link from being blocked
Technical Field
The present invention relates to the field of communications, and in particular, to a method, an apparatus, and a system for preventing link congestion.
Background
The g.8032 protocol is a standard protocol of an ethernet link layer defined by ITU-T (International Telecommunication Union-Telecommunication Standardization Sector). The g.8032 ring is a basic unit in a ring network, one g.8032 ring may include a plurality of switches, and at most two ports on each switch are added to the same g.8032 ring.
An existing g.8032 Ring includes a master switch and a plurality of ordinary switches, where one of two ports added to the g.8032 Ring on the master switch is an RPL Owner (Ring Protection Link Owner) port, and the RPL Owner port is used to control and manage the g.8032 Ring. When the g.8032 Ring normally works, in order to prevent a loop from occurring, a blocking port is to be set on any switch in the g.8032 Ring to form a blocking Link, and when other links fail, the blocking Link is opened, and traffic is switched to another side path on the Ring to be transmitted, so as to implement switching Protection, where the Link is called as a Ring Protection Link (RPL). After g.8032 ring initialization (including initial networking of g.8032 ring or replacement of a switch in g.8032 ring network) or restart of the master switch, the blocking port selected by the g.8032 ring is the port of the switch with the largest ID (identification) in the g.8032 ring, but because the RPL Owner port of the master switch is always in the blocking state, when the switch with the largest ID is a normal switch, that is, the blocking port is located on the normal switch, two blocking ports appear in the g.8032 ring, which causes link blocking.
In order to solve the above problem, in the prior art, the ID of the master switch is usually set to be full F (hexadecimal), so that the master switch is the switch with the largest ID in the g.8032 ring, that is, the RPL Owner port of the master switch becomes the blocking port selected by the g.8032 ring, however, modifying the ID of the master switch may reduce the compatibility of the switch and affect the stability of the link.
Disclosure of Invention
Embodiments of the present invention provide a method, an apparatus, and a system for preventing link blocking, which can avoid modifying an ID of a master switch, and ensure that only one blocking port is provided in a ring network, thereby ensuring compatibility of the switch and stability of a link.
In order to achieve the above purpose, the embodiment of the invention adopts the following technical scheme:
in a first aspect, an embodiment of the present invention provides a method for preventing a link from being blocked, including:
a first switch receives a first message sent by a second switch, wherein the first switch is a master switch, a loop protection link of the first switch has an RPL Owner port and one of the ports of the second switch belong to the same loop and is in a blocking state, and the first message is used for triggering the first switch to open the RPL Owner port of the first switch;
and the first switch opens the RPL Owner port of the first switch according to the first message.
In the method for preventing link congestion provided in the embodiment of the present invention, the first switch is a master switch, and the RPL Owner port of the first switch and one of the ports of the second switch belong to the same loop and are in a congestion state, because the first switch can open the RPL Owner port of the first switch according to the first message when the first switch receives the first message sent by the second switch, only one congestion port is provided in the ring network, and the ID of the first switch in the above method is not necessarily greater than the ID of the second switch, and the ID of the first switch is not modified to make the first switch be the switch with the largest ID in the g.8032 loop like in the prior art, thereby ensuring the compatibility of the switches and the stability of the link.
Further, the first message includes an identity ID of the second switch;
the opening, by the first switch, the RPL Owner port of the first switch according to the first message specifically includes:
the first switch confirms that the ID of the first switch is smaller than the ID of the second switch;
the first switch opens an RPL Owner port of the first switch.
In the method for preventing link blocking provided in the embodiment of the present invention, the ID of the first switch is smaller than the ID of the second switch, and the first switch can still open the RPL Owner port of the first switch according to the first message, so that only one blocking port is located in the ring network.
Further, the first switch includes a wait for recovery WTR timer;
after a first switch receives a first message sent by a second switch, and before the first switch opens an RPL Owner port of the first switch according to the first message, the method further includes:
if the WTR timer is not over time, the first switch adjusts the priority of the first message, so that the priority of the first message is higher than that of the WTR timer.
In the method for preventing link blocking according to the embodiment of the present invention, when the WTR timer does not time out, the first switch adjusts the priority of the first message, so that the adjusted priority of the first message is higher than the priority of the WTR timer, and thus when the ID of the first switch is smaller than the ID of the second switch, the first switch can still open the RPL Owner port of the first switch according to the first message. The problem that two blocked ports appear in a G.8032 ring because the first message cannot be executed by the first switch when the WTR timer is not overtime is solved, wherein the priority of the traditional WTR timer is higher than that of the first message.
Further, the method further comprises:
if the WTR timer is overtime, the first switch sends a second message to the second switch, so that the second switch opens a port in a blocking state in the second switch according to the second message.
Further, the first message is an unresponsive NR packet, and the second message is an unresponsive loop protection link blocking NRRB packet.
In a second aspect, an embodiment of the present invention provides a switch, where the switch is a first switch, and the first switch includes a receiving module and an opening module;
the receiving module is configured to receive a first message sent by a second switch, where the first switch is a master switch, a loop protection link of the first switch has an RPL Owner port and one of the ports of the second switch belong to the same loop and is in a blocking state, and the first message is used to trigger the first switch to open the RPL Owner port of the first switch;
the opening module is configured to open the RPL Owner port of the first switch according to the first message after the receiving module receives the first message sent by the second switch.
The technical effects of the switch provided in the embodiment of the present invention may refer to the technical effects of the first switch described in the method for preventing link congestion performed by the first switch in the first aspect, and are not described herein again.
Further, the first message includes an identity ID of the second switch;
the opening module is specifically configured to, after the receiving module receives the first message sent by the second switch, confirm that the ID of the first switch is smaller than the ID of the second switch, and open the RPL Owner port of the first switch.
Further, the first switch includes a wait for recovery WTR timer;
the switch also comprises an adjusting module;
the adjusting module is configured to, after the receiving module receives a first message sent by a second switch, and before the opening module opens an RPL Owner port of the first switch according to the first message, adjust the priority of the first message if the WTR timer is not timed out, so that the priority of the first message is higher than the priority of the WTR timer.
Further, the switch also comprises a sending module;
the sending module is configured to send a second message to the second switch if the WTR timer is overtime, so that the second switch opens a port in a blocking state in the second switch according to the second message.
Further, the first message is an unresponsive NR packet, and the second message is an unresponsive loop protection link blocking NRRB packet.
In a third aspect, an embodiment of the present invention provides a switch, including a memory, a processor, a communication interface, and a system bus;
the memory, the processor and the communication interface are connected via the system bus, the memory is configured to store computer instructions, and the processor is configured to execute the computer instructions stored by the memory, so as to cause the switch to perform the method for preventing link congestion as described in the first aspect or any one of the alternatives of the first aspect.
In a fourth aspect, an embodiment of the present invention further provides a system for preventing link congestion, where the system for preventing link congestion includes a first switch and a second switch connected to the first switch. The first switch may be the first switch described in the second aspect or any optional manner of the second aspect.
The embodiment of the invention provides a method, a device and a system for preventing link blocking.A first message sent by a second switch is received by a first switch, wherein the first switch is a master switch, a loop protection link of the first switch has an RPL Owner port and one port of the second switch, belongs to the same loop and is in a blocking state, and the first message is used for triggering the first switch to open the RPL Owner port of the first switch; and the first switch opens the RPL Owner port of the first switch according to the first message. Based on the description of the above embodiment, because the first switch can open the RPL Owner port of the first switch according to the first message when the first switch receives the first message sent by the second switch, so that only one blocking port is present in the ring network, and the ID of the first switch in the above method is not necessarily greater than the ID of the second switch, and the ID of the first switch is not modified to make the first switch the switch with the largest ID in the g.8032 ring like in the prior art, the compatibility of the switches and the stability of the link are ensured.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic networking diagram of a g.8032 ring according to an embodiment of the present invention;
fig. 2 is a first flowchart illustrating a method for preventing link congestion according to an embodiment of the present invention;
fig. 3 is a second flowchart illustrating a method for preventing link congestion according to an embodiment of the present invention;
fig. 4 is a third schematic flowchart of a method for preventing link congestion according to an embodiment of the present invention;
fig. 5 is a first schematic structural diagram of a switch according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a switch according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a switch according to an embodiment of the present invention;
fig. 8 is a hardware schematic diagram of a switch according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments.
The technology described in the embodiments of the present invention is applied to an ethernet link layer, particularly, a g.8032 ring, and is performed based on a g.8032 protocol. The ethernet link layer may include a plurality of loops, such as a plurality of g.8032 rings, and a g.8032 ring may include a plurality of switches, where at most two ports on each switch are added to the same g.8032 ring, and the same switch may access the plurality of g.8032 rings. Illustratively, as shown in fig. 1, a networking schematic diagram of a g.8032 ring is shown, where the g.8032 ring includes 4 switches (such as switch a, switch B, switch C, and switch D shown in fig. 1), where each switch has two ports to join the g.8032 ring (such as P1 and P2 ports of switch a, P3 and P4 ports of switch B, P5 and P6 ports of switch C, and P7 and P8 ports of switch D shown in fig. 1), and the P1 port of switch a is an RPL Owner port for controlling and managing the g.8032 ring. When the g.8032 ring normally works, in order to prevent a loop from occurring, a blocking port is to be set on any switch in the g.8032 ring to form a blocking link, and when other links fail, the blocking link is opened, and the flow is switched to the other side path on the ring for transmission, so as to implement switching protection.
If the ID (identity) of the master switch is not modified, taking the g.8032 ring shown in fig. 1 as an example, the IDs of the 4 switches are, in order from large to small: switch D, switch a, switch B, and switch C. The process of g.8032 ring selection blocking port specifically includes: when all port configurations for switch B, switch C, and switch D are complete, the P3-P8 ports are all blocking states. The switch B, the switch C, and the switch D all send out an NR (No Request, No answer) message, where the NR message carries an ID of the switch that sent the NR message, for example, the NR message sent by the switch D carries an ID of the switch D. When the switch B and the switch C receive the NR message sent by the switch D, because the ID of the switch D is larger than the ID of the switch B and the ID of the switch C, the switch B and the switch C can open the P3-P6 ports according to the NR message sent by the switch D, and the switch B and the switch C stop sending the NR message outwards. The switch D opens any one port (such as P7 port) of P7 or P8, and the switch D still sends the NR message to the outside. Thus, only one port of switch B, switch C, and switch D is eventually blocked (e.g., P8 port).
While the RPL Owner port of switch a (i.e., the P1 port) is always in the blocking state. When the switch a restarts, the g.8032 ring is initially networked, or the switch in the ring is changed, the switch a starts a WTR (Wait To Restore) timer, and sends an NR packet To the outside. When the switch D receives the NR packet sent by the switch a, because the ID of the switch a is smaller than the ID of the switch D, the switch D does not open the blocking port (e.g., P8 port) on the switch D; when the switch a receives the NR packet sent by the switch D, because the WTR timer is not timed out, according to the g.8032 protocol, the priority of the WTR timer is higher than the priority of the NR packet, and the switch a does not execute the NR packet sent by the switch D, so the P1 port on the switch a is not opened, thereby forming a double-blocked port to cause link blocking. In this case, it is necessary to wait until the WTR timer expires and then the switch a sends an NRRB (No Request RPL Blocked, No reply RPL blocking) packet to the switch D, so that the switch D opens a Blocked port (e.g., a P8 port) on the switch D to eliminate the phenomenon.
Embodiments of the present invention provide a method, an apparatus, and a system for preventing link blocking, which can avoid modifying an ID of a master switch, and ensure that only one blocking port is provided in a ring network, thereby ensuring compatibility of the switch and stability of a link.
It should be noted that, for convenience of description and better understanding of the technical solutions in the embodiments of the present invention, in the following embodiments of the present invention, the second switch is a switch with the largest ID in the g.8032 ring except for the master switch, and a process of selecting a blocked port by all switches in the g.8032 ring except for the master switch is the same as a process of negotiating that only one port is finally blocked in the switch D by the switch B, the switch C, and the switch D, which will not be described again in the following embodiments. For example, the embodiment of the present invention may be applied to, but is not limited to, initial networking of a g.8032 ring or replacement of a switch in the g.8032 ring network, and a process of restarting a first switch.
It should be noted that the terms "system" and "network" are often used interchangeably herein. The term "and/or" herein is merely an association describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
An embodiment of the present invention provides a method for preventing a link from being blocked, as shown in fig. 2, the method includes:
s101, a first switch receives a first message sent by a second switch, wherein the first switch is a master switch, a loop protection link of the first switch has an RPL Owner port and one of the ports of the second switch, belongs to the same loop and is in a blocking state, and the first message is used for triggering the first switch to open the RPL Owner port of the first switch.
Wherein, the first message is an no-response NR message.
When the RPL Owner port of the first switch and one of the ports of the second switch are in a blocking state, both the first switch and the second switch send an NR packet to the outside, so that the first switch can receive the NR packet sent by the second switch, and the second switch can also receive the NR packet sent by the first switch.
S102, the first switch opens the RPL Owner port of the first switch according to the first message.
Wherein, the first message includes the ID of the second exchanger.
It should be noted that the ID of the switch is an identifier that can uniquely identify the switch in the network in which the switch is located. For example, the ID of the switch may be a system ID of the switch, a bridge MAC (Media Access Control) address, and the like.
Specifically, as shown in fig. 3, the step S102 may include steps S102a and S102 b:
s102a, the first switch confirms that the ID of the first switch is smaller than the ID of the second switch.
S102b, the first switch opens the RPL Owner port of the first switch.
When the first switch receives the first message sent by the second switch, the first switch can confirm that the ID of the first switch is smaller than the ID of the second switch, and the first switch can open the RPL Owner port of the first switch, so that only one blocking port is arranged in the ring network, and the ID of the first switch is not modified for the first switch to be the switch with the largest ID in the g.8032 ring like the prior art, thereby ensuring the compatibility of the switches and the stability of the link.
It should be further noted that, as shown in fig. 4, after step S101 and before step S102, the method further includes step S103:
and S103, if the WTR timer is not overtime, the first switch adjusts the priority of the first message so that the priority of the first message is higher than that of the WTR timer.
As shown in table 1, the type of the event in the g.8032 protocol and the priority corresponding to the event are specified for the g.8032 protocol. Generally, a higher-priority protocol event is preferentially executed in the g.8032 ring, that is, when a higher-priority protocol event exists in the g.8032 ring, a lower-priority protocol event cannot be executed.
TABLE 1
G.8032 protocol events Type (B) Priority level
Clear Local Highest point of the design
FS Local
R-APS(FS) Remote
Local SF Local
Local Clear SF Local
R-APS(SF) Remote
R-APS(MS) Remote
MS Local
WTR Expires Local
WTR Running Local
WTB Expires Local
WTB Running Local
R-APS(NRRB) Remote
R-APS(NR) Remote Lowest level of
As can be seen from table 1, the priority of the WTR timer is significantly higher than the priority of the NR packet.
In the method for preventing link congestion provided in the embodiment of the present invention, if the WTR timer is not expired, the first switch adjusts the priority of the first message, so that the first switch executes the adjusted first message when the WTR timer is not expired. The type of the event and the priority corresponding to the event in the g.8032 protocol specified by the g.8032 protocol of the adjusted priority of the first message are shown in table 2.
TABLE 2
Figure BDA0000893199910000091
Figure BDA0000893199910000101
Since the priority of the adjusted first message (i.e., NR packet) is higher than that of the WTR timer, the first switch can open the RPL Owner port of the first switch even if the ID of the first switch is smaller than that of the second switch.
It should be noted that, after the first switch receives the NR packet sent by the second switch, if the WTR timer is overtime, the first switch sends a second message to the second switch, so that the second switch opens the port in the blocking state in the second switch according to the second message. The second message is an NRRB packet for the non-reply loop protection link, that is, the first switch may directly send the NRRB packet to the second switch, so that the second switch opens a port in a blocking state in the second switch.
It should be noted that, the first message provided in the embodiment of the present invention is an NR packet, and the second message is an NRRB packet. As long as the first message is used to trigger the first switch to open the rploser port of the first switch, and the second message is used to trigger the second switch to open the port in the blocking state in the second switch, the present invention is not limited by the comparison.
It should be further noted that the scheme for adjusting the priority of the first message by the first switch to open the RPL Owner port of the first switch when the WTR timer is not overtime provided by the embodiment of the present invention is only an implementation manner of the present invention, and other methods that can cause the first switch to receive the indication for triggering the first switch to open the RPL Owner port of the first switch when there are two blocking ports in the ring network also belong to the protection scope of the present invention, and the present invention is not limited thereto.
The embodiment of the invention provides a method for preventing link blocking, which comprises the steps that a first switch receives a first message sent by a second switch, wherein the first switch is a master switch, a loop protection link of the first switch has an RPLOwner port and one port of the second switch, the ports belong to the same loop and are in a blocking state, and the first message is used for triggering the first switch to open the RPL Owner port of the first switch; and the first switch opens the RPL Owner port of the first switch according to the first message. Based on the description of the above embodiment, because the first switch can open the RPL Owner port of the first switch according to the first message when the first switch receives the first message sent by the second switch, so that only one blocking port is present in the ring network, and the ID of the first switch in the above method is not necessarily greater than the ID of the second switch, and the ID of the first switch is not modified to make the first switch the switch with the largest ID in the g.8032 ring like in the prior art, the compatibility of the switches and the stability of the link are ensured.
An embodiment of the present invention provides a switch, as shown in fig. 5, where the switch is a first switch, and the first switch is configured to perform the steps performed by the first switch in the above method. The first switch may include modules corresponding to the respective steps. Illustratively, a receiving module 10 and an opening module 11 may be included.
The receiving module 10 is configured to receive a first message sent by a second switch, where the first switch is a master switch, a loop protection link of the first switch has an RPL Owner port and one of ports of the second switch, which belong to the same loop and are in a blocking state, and the first message is used to trigger the first switch to open the RPL Owner port of the first switch.
The opening module 11 is configured to open the RPL Owner port of the first switch according to the first message after the receiving module 10 receives the first message sent by the second switch.
Optionally, the first message includes an identity ID of the second switch.
The opening module 11 is specifically configured to, after the receiving module 10 receives the first message sent by the second switch, confirm that the ID of the first switch is smaller than the ID of the second switch, and open the RPL Owner port of the first switch.
Optionally, the first switch includes a wait for recovery WTR timer.
As shown in fig. 6, the switch also includes an adjustment module 12.
An adjusting module 12, configured to, after the receiving module 10 receives the first message sent by the second switch, and before the opening module 11 opens the RPL Owner port of the first switch according to the first message, adjust the priority of the first message if the WTR timer is not over time, so that the priority of the first message is higher than the priority of the WTR timer.
Optionally, as shown in fig. 7, the switch further includes a sending module 13.
A sending module 13, configured to send a second message to the second switch if the WTR timer is overtime, so that the second switch opens a port in the second switch in the blocking state according to the second message.
Optionally, the first message is an unresponsive NR message, and the second message is an unresponsive loop protection link blocking NRRB message.
It can be understood that the first switch in the embodiment of the present invention may correspond to the first switch in the method for preventing link congestion in any one of the embodiments shown in fig. 2 to fig. 4, and the division and/or the function of each unit in the first switch in the embodiment of the present invention are all for implementing the method flow shown in any one of fig. 2 to fig. 4, and are not described herein again for brevity.
Alternatively, as another embodiment of the present invention, the functions of the receiving module 10 may be implemented by a receiver, the functions of the opening module 11 and the adjusting module 12 may be implemented by a processor, the functions of the transmitting module 13 may be implemented by a transmitter, and the transmitter and the receiver may be integrated into one transceiver.
The embodiment of the invention provides a switch, which is a first switch, wherein the first switch comprises a receiving module and an opening module; the receiving module is used for receiving a first message sent by a second switch, wherein the first switch is a master switch, a loop protection link of the first switch has an RPL Owner port and one of the ports of the second switch, belongs to the same loop and is in a blocking state, and the first message is used for triggering the first switch to open the RPL Owner port of the first switch; and the opening module is used for opening the RPL Owner port of the first switch according to the first message after the receiving module receives the first message sent by the second switch. Based on the description of the above embodiment, because the first switch can open the RPL Owner port of the first switch according to the first message when the first switch receives the first message sent by the second switch, so that only one blocking port is present in the ring network, and the ID of the first switch in the above method is not necessarily greater than the ID of the second switch, and the ID of the first switch is not modified to make the first switch the switch with the largest ID in the g.8032 ring like in the prior art, the compatibility of the switches and the stability of the link are ensured.
An embodiment of the present invention further provides a switch, where the switch is a first switch, and as shown in fig. 7, the switch includes: memory 20, processor 21, communication interface 22, and system bus 23.
The memory 20, the processor 21 and the communication interface 22 are connected by a system bus 23, the memory 20 is used for storing some computer instructions, and the processor 21 is used for executing the computer instructions, so that the first switch executes the method for preventing the link from being blocked as shown in any one of fig. 2 to fig. 4. For a specific method for preventing link blocking, reference may be made to the related description in the embodiment shown in any one of fig. 2 to fig. 4, and details are not repeated here.
The processor 21 may be a Central Processing Unit (CPU). The processor 21 may also be other general purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), field-programmable gate arrays (FPGAs) or other programmable logic devices, discrete gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The processor 21 may be a dedicated processor. Further, the special purpose processor may also include a chip having other special purpose processing functions of the first switch.
The memory 20 may include a volatile memory (volatile memory), such as a random-access memory (RAM); the memory 20 may also include a non-volatile memory (non-volatile memory), such as a read-only memory (ROM), a flash memory (flash memory), a Hard Disk Drive (HDD) or a solid-state drive (SSD); the memory 20 may also comprise a combination of memories of the kind described above.
The system bus 23 may include a data bus, a power bus, a control bus, a signal status bus, and the like. For clarity of illustration in this embodiment, the various buses are illustrated in FIG. 7 as system bus 23.
The communication interface 22 may include a receiver and a transmitter. And in a specific implementation of the first switch, the receiver and the transmitter may specifically be a transceiver on the first switch. The transceiver may be a wireless transceiver. For example, the wireless transceiver may be a wireless communication module of the first switch, or the like. The processor 21 transmits and receives data to and from other devices, for example, a second switch, via the transceiver.
In a specific implementation process, each step in the method flow shown in any one of fig. 2 to fig. 4 may be implemented by executing computer execution instructions in a software form through hardware. To avoid repetition, further description is omitted here.
The embodiment of the invention provides a switch. Based on the description of the above embodiment, because the first switch can open the rploser port of the first switch according to the first message when the first switch receives the first message sent by the second switch, so that only one blocking port is present in the ring network, and the ID of the first switch in the above method is not necessarily greater than the ID of the second switch, and the ID of the first switch is not modified to make the first switch the switch with the largest ID in the g.8032 ring like in the prior art, the compatibility of the switches and the stability of the link are ensured.
The embodiment of the invention provides a system for preventing link blockage, which comprises a first switch and a second switch connected with the first switch. For the description of the first switch, reference may be specifically made to the related description of the first switch in the embodiments shown in fig. 5, fig. 6, fig. 7, and fig. 8, and details are not repeated here.
In the system for preventing link congestion provided in the embodiment of the present invention, the first switch respectively completes the method for preventing link congestion according to the embodiment of the present invention by executing corresponding steps in the method flow shown in any one of fig. 2 to fig. 4.
It will be clear to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely used as an example, and in practical applications, the above function distribution may be performed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to perform all or part of the above described functions. For the specific working processes of the system, the apparatus and the unit described above, reference may be made to the corresponding processes in the foregoing method embodiments, and details are not described here again.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) or a processor (processor) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (9)

1. A method of preventing link congestion, comprising:
a first switch receives a first message sent by a second switch, wherein the first switch is a master switch, a loop protection link of the first switch has an RPL Owner port and one of the ports of the second switch belong to the same loop and is in a blocking state, and the first message is used for triggering the first switch to open the RPL Owner port of the first switch;
the first switch opens an RPL Owner port of the first switch according to the first message;
the first message comprises an identity ID of the second switch;
the opening, by the first switch, the RPL Owner port of the first switch according to the first message specifically includes:
the first switch confirms that the ID of the first switch is smaller than the ID of the second switch;
the first switch opens an RPL Owner port of the first switch.
2. The method according to claim 1, wherein the first switch includes a wait-to-resume WTR timer;
after a first switch receives a first message sent by a second switch, and before the first switch opens an RPL Owner port of the first switch according to the first message, the method further includes:
if the WTR timer is not over time, the first switch adjusts the priority of the first message, so that the priority of the first message is higher than that of the WTR timer.
3. The method of preventing link blocking according to claim 2, further comprising:
if the WTR timer is overtime, the first switch sends a second message to the second switch, so that the second switch opens a port in a blocking state in the second switch according to the second message.
4. The method according to claim 3, wherein the first message is an unacknowledged NR message, and the second message is an unacknowledged Loop protection Link Block (NRRB) message.
5. A switch, characterized in that the switch is a first switch comprising a receiving module and an opening module;
the receiving module is configured to receive a first message sent by a second switch, where the first switch is a master switch, a loop protection link of the first switch has an RPL Owner port and one of the ports of the second switch belong to the same loop and is in a blocking state, and the first message is used to trigger the first switch to open the RPL Owner port of the first switch;
the opening module is configured to open the RPL Owner port of the first switch according to the first message after the receiving module receives the first message sent by the second switch;
the first message comprises an identity ID of the second switch;
the opening module is specifically configured to, after the receiving module receives the first message sent by the second switch, confirm that the ID of the first switch is smaller than the ID of the second switch, and open the RPL Owner port of the first switch.
6. The switch of claim 5, wherein the first switch comprises a wait-to-resume (WTR) timer;
the switch also comprises an adjusting module;
the adjusting module is configured to, after the receiving module receives a first message sent by a second switch, and before the opening module opens an RPL Owner port of the first switch according to the first message, adjust the priority of the first message if the WTR timer is not timed out, so that the priority of the first message is higher than the priority of the WTR timer.
7. The switch of claim 6, further comprising a sending module;
the sending module is configured to send a second message to the second switch if the WTR timer is overtime, so that the second switch opens a port in a blocking state in the second switch according to the second message.
8. The switch of claim 7, wherein the first message is an unacknowledged NR message and the second message is an unacknowledged Loop protection Link blocking NRRB message.
9. A system for preventing link blocking, comprising a first switch according to any one of claims 5 to 8, and a second switch connected to the first switch.
CN201511001394.3A 2015-12-28 2015-12-28 Method, device and system for preventing link from being blocked Active CN106921582B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201511001394.3A CN106921582B (en) 2015-12-28 2015-12-28 Method, device and system for preventing link from being blocked

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201511001394.3A CN106921582B (en) 2015-12-28 2015-12-28 Method, device and system for preventing link from being blocked

Publications (2)

Publication Number Publication Date
CN106921582A CN106921582A (en) 2017-07-04
CN106921582B true CN106921582B (en) 2020-01-03

Family

ID=59456195

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201511001394.3A Active CN106921582B (en) 2015-12-28 2015-12-28 Method, device and system for preventing link from being blocked

Country Status (1)

Country Link
CN (1) CN106921582B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107426099B (en) * 2017-08-30 2020-02-07 阳光凯讯(北京)科技有限公司 Message order-preserving method and system during multi-chassis link aggregation flow redistribution

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101753397A (en) * 2010-01-29 2010-06-23 上海埃德电子股份有限公司 System, method and device for rapidly self-healing Ethernet ring
WO2013143096A1 (en) * 2012-03-29 2013-10-03 Telefonaktiebolaget L M Ericsson Mac copy in nodes detecting failure in a ring protection communication network
CN104065546A (en) * 2014-07-04 2014-09-24 引通通讯科技(上海)有限公司 Ethernet protection switching method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110044166A1 (en) * 2009-08-18 2011-02-24 Electronics And Telecommunications Research Institute Method for operating node in ethernet ring network

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101753397A (en) * 2010-01-29 2010-06-23 上海埃德电子股份有限公司 System, method and device for rapidly self-healing Ethernet ring
WO2013143096A1 (en) * 2012-03-29 2013-10-03 Telefonaktiebolaget L M Ericsson Mac copy in nodes detecting failure in a ring protection communication network
CN104065546A (en) * 2014-07-04 2014-09-24 引通通讯科技(上海)有限公司 Ethernet protection switching method

Also Published As

Publication number Publication date
CN106921582A (en) 2017-07-04

Similar Documents

Publication Publication Date Title
US9692697B2 (en) Control channel establishing method, forwarding point, and controller
CN110275680B (en) Double-control double-active storage system
EP2597821B1 (en) Method and system for auto-configuration, and network node
CN110209514A (en) In the method that embedded type sensor access platform realizes DDS service
US9906412B2 (en) Collaboration method and system in distributed resilient network interconnect system
US9246751B2 (en) Ethernet ring protection switching method, network device and system
WO2016095344A1 (en) Link switching method and device, and line card
WO2020052687A1 (en) Network element anti-looping method and apparatus, device, and readable storage medium
CN103200093A (en) Method and device for improving processing performance of multiple virtual router redundancy protocol (VRRP) back-up sets
KR20200134236A (en) Data transmission method and device
CN106921582B (en) Method, device and system for preventing link from being blocked
CN103107946B (en) Multicast recovery method and apparatus and include the trunking of this multicast recovery device
US9967137B2 (en) System and method for protecting virtual circuits in dynamic multi-domain environment
US20230198881A1 (en) Method and device for improving link aggregation protocol timeout
CN101945083B (en) Authentication method and counterfeit judgment method for virtual router redundancy protocol
EP3537671A1 (en) Protection switching method and system, and nodes
CN102098795B (en) Method and system for re-accessing control terminal
CN105681187A (en) VRRP (Virtual Router Redundancy Protocol) backup set management method and related device
CN111224803B (en) Multi-master detection method in stacking system and stacking system
CN103840965A (en) Method for enhancing quick fault convergence in RSTP
US11070303B2 (en) Management message loop detection in precision time protocol
WO2011134255A1 (en) Method for processing service board switch and framework control apparatus
KR20140009488A (en) Method and system for setting detection frame timeout duration of ethernet node
CN108616461B (en) Policy switching method and device
CN109450787B (en) LACP (Link aggregation control protocol) operation method, device, system and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant