[go: up one dir, main page]

CN115333974A - VSI-based loop detection method and device in DRNI network - Google Patents

VSI-based loop detection method and device in DRNI network Download PDF

Info

Publication number
CN115333974A
CN115333974A CN202210956917.3A CN202210956917A CN115333974A CN 115333974 A CN115333974 A CN 115333974A CN 202210956917 A CN202210956917 A CN 202210956917A CN 115333974 A CN115333974 A CN 115333974A
Authority
CN
China
Prior art keywords
message
vsi
drni
loop detection
interface
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
Application number
CN202210956917.3A
Other languages
Chinese (zh)
Other versions
CN115333974B (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.)
Yunhe Zhiwang Shanghai Technology Co ltd
Original Assignee
Hangzhou Clounix Technology 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 Hangzhou Clounix Technology Ltd filed Critical Hangzhou Clounix Technology Ltd
Priority to CN202210956917.3A priority Critical patent/CN115333974B/en
Publication of CN115333974A publication Critical patent/CN115333974A/en
Application granted granted Critical
Publication of CN115333974B publication Critical patent/CN115333974B/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
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0876Network utilisation, e.g. volume of load or congestion level
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Landscapes

  • Engineering & Computer Science (AREA)
  • Environmental & Geological Engineering (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention provides a loop detection method and a device based on VSI in a DRNI network, wherein the method comprises the following steps: enabling a loop detection function on each Leaf node in the first DRNI networking; the loop detection function is used for triggering a loop detection message to be sent to the CPU; constructing a loop detection message at each Leaf node in the first DRNI networking; the loop detection message is sent by broadcasting on the VSI of the loop detection message and is sent out on the first tunnel and each AC interface; judging whether the SMAC received in the preset time is a loop detection message of the equipment; if receiving the loop detection message from other panel ports except the internal control link port, discarding the two-layer unicast message and broadcast message based on the VSI, and removing the loop. The invention can detect whether the VSI in the DRNI network forms a ring or not, and the ring of the VSI is released through the block related interface when the VSI forms the ring.

Description

VSI-based loop detection method and device in DRNI network
Technical Field
The invention relates to the technical field of computers, in particular to a VSI-based loop detection method and device in a DRNI network.
Background
The link of the common aggregation can only be on one device and can only provide the protection of the link level, and after the device fails, the common aggregation cannot work, so the technology of the device level protection is needed.
DRNI (Distributed Resilient Network Interconnect) is a technology for cross-device link aggregation, and can virtualize two physical devices into one device at an aggregation level to implement cross-device link aggregation, thereby providing device-level redundancy protection and traffic load sharing. Besides the advantages of increasing bandwidth, improving link reliability and load sharing, the DRNI also has the following advantages:
the reliability is high: the link reliability is improved from a single board level to a device level.
Networking and configuration simplification: meanwhile, redundant backup is realized, tedious spanning tree protocol configuration is not needed, and networking and configuration are greatly simplified.
Independent upgrading: the two devices can be upgraded respectively, so that one device can work normally, and the running service is hardly influenced.
As shown in fig. 1, leaf1 and Leaf2 form load sharing to jointly forward traffic, and when one device fails, the traffic can be quickly switched to another device, thereby ensuring normal operation of the service.
The Leaf in the group network are communicated through Spine three layers, each Leaf establishes a tunnel through the common IP of two devices of the DRNI, but the devices connected with the Leaf are various, as shown in FIG. 1, when a Device2 and a Device3 are interconnected, a loop is possibly formed, and thus a traffic storm is caused.
Disclosure of Invention
In view of the above, the present invention is directed to a method and an apparatus for VSI-based loop detection in a DRNI network to improve the above-mentioned problems.
The embodiment of the invention provides a loop detection method based on VSI in a DRNI network, which comprises the following steps:
enabling a loop detection function on each Leaf node in the first DRNI networking; the loop detection function is used for triggering a loop detection message to be sent to the CPU; the common IP of the first DRNI networking and the common IP of the second DRNI networking establish a first tunnel, and the first DRNI networking is connected with each device through a DR interface; the AC interfaces and tunnels in the first DRNI networking and the second DRNI networking are bound in the same VSI;
constructing a loop detection message at each Leaf node in the first DRNI networking; the loop detection message is sent by broadcasting on the VSI of the loop detection message and is sent out on the first tunnel and each AC interface;
judging whether the SMAC received in the preset time is a loop detection message of the equipment;
if receiving the loop detection message from other panel ports except the internal control link port, discarding the two-layer unicast message and broadcast message based on the VSI, and removing the loop.
Preferably, the loop detection message ethernet header encapsulation format includes the following fields:
DMAC: the destination MAC address of the message uses a multicast MAC address 010F-E200-8570; when the device enables the loop detection function, the message of the destination address is redirected to the CPU for processing, and the original message is broadcasted in the VSI receiving the message;
SMAC: the source MAC address of the message adopts the bridge MAC of the equipment sending the message;
TPID: the type of the VLAN label is 0x8100;
VLAN: specific values of the VLAN tag, wherein the specific contents comprise priority and VLAN ID;
type: a protocol type;
data: the data is in TLV format; the Data includes the following contents: chassis ID TLV, slot ID TLV, VSI TLV, VLAN TLV, port ID TLV, and End of TLV.
Preferably, the releasing the loop comprises:
confirming a virtual interface of the VSI inner loop, and removing the loop; the virtual interface comprises an AC interface or a tunnel.
Preferably, the virtual interface of the inner ring of the VSI is confirmed; the virtual interface comprises an AC interface or a tunnel, and comprises:
virtual interfaces related to VSI on each Leaf node of a first DRNI networking send detection messages based on the virtual interfaces;
when the device receives a detection message from a virtual interface, checking whether the SMAC, the Chassis ID and the Slot ID in the detection message are information of the device;
if not, adding the virtual interface information of the received loop detection message into the detection message and sending the virtual interface information from the IPP port among the Leaf nodes, so as to forward the virtual interface information to other equipment of the first DRNI networking;
if yes, indicating that the virtual interface recorded in the DATA of the loop detection message is related to the virtual interface of the received detection message, namely, forming a loop; setting the corresponding virtual interface to be BLOCK according to the preset loop detection BLOCK priority;
after the detection is completed, ACLs discarded by the two-layer unicast message and the broadcast message which are matched with the VSI are deleted, and the VSI loop is released.
Preferably, the loop detection Block priorities are, in order from high to low:
the message sent by the user is received from the user, and the local virtual interface has the priority of BLOCK;
the tunnel sent by the AC interface can be received, and meanwhile, the AC interface sent by the tunnel can also be received, and the priority AC interface is set to be BLOCK;
a second AC interface sent by the first AC interface receives the signal, a first AC interface sent by the second AC interface receives the signal, and a BLOCK with a small port is sent by the second AC interface; when the tunnel is sent out and received from another tunnel, the tunnel index is small and the BLOCK is set based on the VSI;
the virtual interface capable of receiving and transmitting in one direction sets BLOCK.
Preferably, the method further comprises the following steps:
when the state of the associated virtual interface changes, starting a detection flow of the associated Block virtual interface; if the first tunnel fails or the first tunnel is unbound with the VSI, sending a detection message based on the virtual interface from the second AC interface immediately, and if the detection message is not received in advance, setting the state of the second AC interface to Forward.
The embodiment of the invention also provides a VSI-based loop detection device in a DRNI network, which comprises:
a loop detection enabling unit, configured to enable a loop detection function on each Leaf node in the first DRNI networking; the loop detection function is used for triggering a loop detection message to be sent to the CPU; the common IP of the first DRNI networking and the common IP of the second DRNI networking establish a first tunnel, and the first DRNI networking is connected with each device through a DR interface; the AC interfaces and tunnels in the first DRNI networking and the second DRNI networking are all bound in the same VSI;
a detection message constructing unit, configured to construct a loop detection message at each Leaf node in the first DRNI networking; the loop detection message is sent by broadcasting on the VSI of the loop detection message and is sent out on the first tunnel and each AC interface;
the judging unit is used for judging whether the SMAC received in the preset time is the loop detection message of the equipment;
and the removing unit is used for removing the two-layer unicast message and the broadcast message based on the VSI and removing the loop if the loop detection message is received from other panel ports except the internal control link port.
Preferably, the loop detection message ethernet header encapsulation format includes the following fields:
DMAC: the destination MAC address of the message uses multicast MAC address 010F-E200-8570; when the equipment enables the loop detection function, the message of the destination address is redirected to a CPU for processing, and the original message is broadcasted in the VSI receiving the message;
SMAC: the source MAC address of the message adopts the bridge MAC of the equipment sending the message;
TPID: the type of the VLAN label is 0x8100;
VLAN: specific values of the VLAN tag, wherein the specific contents comprise priority and VLAN ID;
type: a protocol type;
data: the data is in TLV format; the Data includes the following contents: a chatsis ID TLV, a Slot ID TLV, a VSI TLV, a VLAN TLV, a Port ID TLV, and an End of TLV.
Preferably, the releasing unit is specifically configured to: confirming a virtual interface of a loop in the VSI, and removing the loop; the virtual interface comprises an AC interface or a tunnel.
Preferably, the releasing unit is specifically configured to:
virtual interfaces related to VSI on each Leaf node of the first DRNI networking send detection messages based on the virtual interfaces;
when the device receives a detection message from a virtual interface, checking whether the SMAC, the Chassis ID and the Slot ID in the detection message are information of the device;
if not, adding the virtual interface information of the received loop detection message into the detection message and sending the virtual interface information from the IPP port among the Leaf nodes, so as to forward the virtual interface information to other equipment of the first DRNI networking;
if yes, indicating that the virtual interface recorded in the DATA of the loop detection message is related to the virtual interface of the received detection message, namely, forming a loop; setting a corresponding virtual interface to be BLOCK according to a preset loop detection BLOCK priority;
after the detection is completed, ACLs discarded by the two-layer unicast message and the broadcast message which are matched with the VSI are deleted, and the VSI loop is released.
Preferably, the loop detection Block priorities are, from high to low:
the message sent by the user is received from the user, and the local virtual interface has the priority of BLOCK;
the tunnel sent by the AC interface can be received, and meanwhile, the AC interface sent by the tunnel can also be received, and the priority AC interface is set to be BLOCK;
receiving by a second AC interface sent by the first AC interface, receiving by the first AC interface sent by the second AC interface, and obtaining a BLOCK with a small port; when the tunnel is sent out and received from another tunnel, the tunnel index is small and the BLOCK is set based on the VSI;
the virtual interface capable of receiving and transmitting in one direction sets BLOCK.
In summary, the present embodiment can check whether a loop exists in the DRNI networking, and release the loop through the interface related to BLOCK. When the DRNI environment is changed, the method can quickly respond, and update the state of the relevant interface to ensure that the traffic is normally forwarded.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is an overall architecture diagram of a DRNI network.
Fig. 2 is a flowchart illustrating a VSI-based loop detection method in a DRNI network according to a first embodiment of the present invention.
Fig. 3 is a network architecture diagram of a DRNI network according to a first embodiment of the present invention.
Fig. 4 is a message format diagram of a loop detection message.
Fig. 5 is a diagram illustrating a format of a loop detection message Data.
Fig. 6 is a schematic diagram of TLV format.
Fig. 7 is an End Of TLV format diagram.
Fig. 8 is a schematic diagram of loop detection.
Fig. 9 is a schematic structural diagram of a VSI-based loop detection apparatus in a DRNI network according to a second 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. All other embodiments, which can be obtained by a person skilled in the art without making any creative effort based on the embodiments in the present invention, belong to the protection scope of the present invention.
For better understanding of the technical solutions of the present invention, the following detailed descriptions of the embodiments of the present invention are provided with reference to the accompanying drawings.
It should be understood that the described embodiments are only some embodiments of the invention, and not all embodiments. All other embodiments, which can be obtained by a person skilled in the art without making any creative effort based on the embodiments in the present invention, belong to the protection scope of the present invention.
The terminology used in the embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the examples of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
The invention is described in further detail below with reference to the following detailed description and accompanying drawings:
referring to fig. 2 and 3 together, a first embodiment of the present invention provides a VSI-based loop detection method in a DRNI network, which includes:
s101, enabling a loop detection function on each Leaf node in the first DRNI networking; the loop detection function is used for triggering a loop detection message to be sent to the CPU; the common IP of the first DRNI networking and the common IP of the second DRNI networking establish a first tunnel, and the first DRNI networking is connected with each device through a DR interface; the AC interfaces and tunnels in the first DRNI network and the second DRNI network are bound in the same VSI.
In this embodiment, taking fig. 3 as an example, a DRNI network includes a first DRNI network 10 and a second DRNI network 20, the first DRNI network 10 includes a first Leaf node 11 and a second Leaf node 12, the second DRNI network 20 includes a third Leaf node 21 and a second Leaf node 22, a first tunnel is established between a common IP of the first DRNI network 10 and a common IP of the second DRNI network 20, and the DRNI is connected to each device (i.e., the first device 31, the second device 32, the third device 33, and the fourth device 34 in fig. 3) through a Distributed Relay interface (DR interface); each AC interface and the first tunnel in the DRNI network are bound in the same VSI (as is the Vxlan ID associated with the VSI). And all Leaf nodes in the group network are communicated through Spine three layers.
It should be noted that, in other embodiments of the present invention, the number of DRNI networks and the number of Leaf nodes in one DRNI network may be set according to actual needs, and the present invention is not limited in particular.
S102, constructing a loop detection message at each Leaf node in the first DRNI networking; the loop detection message is broadcast and sent on the VSI of the loop detection message and is sent out on the first tunnel and each AC interface;
and S103, judging whether the SMAC received in the preset time is the loop detection message of the equipment.
If not, no loop is formed.
S104, if receiving the loop detection message from other panel ports except the internal control link port, discarding the two-layer unicast message and the broadcast message based on the VSI, and removing the loop.
In this embodiment, in order to detect whether there is a loop in the networking, the loop detection function is first enabled on the first Leaf node 11 and the second Leaf node 12 in the first DRNI networking 10. This operation issues an acl that causes a loop detection message to be sent to the CPU, specifically by matching Ethernet type and DMAC.
Then, a loop detection message is constructed on the first Leaf node 11 and the second Leaf node 12.
As shown in fig. 4, the encapsulating format of the ethernet header of the loop detection packet is as follows:
DMAC: the destination MAC address of the message uses the multicast MAC address 010F-E200-8570. When the device enables the loop detection function, the message of the destination address is redirected to the CPU for processing, and the original message is broadcasted in the VSI receiving the message.
SMAC: the source MAC address of the message is the bridge MAC of the device sending the message.
TPID: the VLAN tag may be 0x8100.
VLAN: specific values of the VLAN tag include priority, VLAN ID, and the like.
Type: and the protocol type takes a value of 0x8570, and the value can be adjusted according to actual conditions.
Data: the data is in the form of TLV, the contents of which are shown in fig. 5.
The TLV format is type + length + value, where type represents the type of TLV, length is the length of TLV in bytes, and value is the value of TLV. Where an End Of TLV is mandatory, a part that must be contained, in addition to which 1 to several optional other TLVs may be contained before the End Of TLV. The TLV format is shown in fig. 6.
TYPE definition of TLV is shown in table 1 below:
TABLE 1
Figure BDA0003791730300000091
Figure BDA0003791730300000101
Where TLV for Mandatory is the part that DATA must contain. The End Of TLV format is shown in fig. 7.
In this embodiment, after the loop detection message is constructed, the loop detection message is broadcast and sent on the VSI of the present network, and the loop detection message is sent on the first tunnel, the first AC interface 41, and the second AC interface 42. If the SMAC is not received within the preset time (such as 1 second) and is the loop detection message of the equipment, the loop is considered to be not existed. If a loop detection message is received from a panel Port other than a PP (Intra-Port) (SMAC is a bridge MAC of the first Leaf node 11 or the second Leaf node 12), the next ACL discards both the two-layer unicast message and the broadcast message based on the VSI, and removes the loop. Wherein the loop is released as follows:
firstly, confirming virtual interfaces of a ring formed in a VSI, and sending a detection message based on the virtual interfaces related to the VSI on each Leaf node of a first DRNI networking;
then, when the device receives the detection message from the virtual interface, checking whether the SMAC, the Chassis ID and the Slot ID in the detection message are the information of the device;
if not, adding the virtual interface information of the received loop detection message into the detection message and sending the virtual interface information from the IPP port among the Leaf nodes, so as to forward the virtual interface information to other equipment of the first DRNI networking;
if yes, indicating that the virtual interface recorded in the DATA of the loop detection message is related to the virtual interface of the received detection message, namely, forming a loop; and setting the corresponding virtual interface to be BLOCK according to the preset loop detection BLOCK priority.
As shown in fig. 8, if the probe message sent by the second AC interface 42 is received from the first tunnel, and the probe message sent by the first tunnel is received from the second AC interface 42, the second AC interface 42 is set to Block, and a virtual interface associated with the second AC interface 42 is recorded as the first tunnel.
The priority of the loop detection Block is sequentially from high to low as follows:
the message sent by the virtual interface is received from the virtual interface, and the local virtual interface has the priority of BLOCK;
the tunnel sent by the AC interface can be received, and the AC interface sent by the tunnel can also be received, and the BLOCK is set on the AC interface preferentially;
a second AC interface sent by the first AC interface receives the signal, a first AC interface sent by the second AC interface receives the signal, and a BLOCK with a small port is sent by the second AC interface; when the tunnel is sent out, the tunnel is received from another tunnel, and the tunnel index is small, and the BLOCK is set based on the VSI;
the virtual interface capable of receiving and transmitting in one direction sets BLOCK.
After the detection is finished, ACLs discarded by the two-layer unicast message and the broadcast message which are matched with the VSI are deleted, the VSI loop is removed, and thus the flow can be normally forwarded.
In this embodiment, when the state of the associated virtual interface changes, the detection flow of the associated Block virtual interface is immediately started. And if the first tunnel fails or the first tunnel is unbound with the VSI, immediately sending a detection message based on the virtual interface from the second AC interface, and if the message is not received within 1 second, setting the state of the second AC interface to Forward.
In summary, the present embodiment can check whether a loop exists in the DRNI networking, and release the loop through the interface related to BLOCK. When the DRNI environment is changed, the method can quickly respond, and update the state of the relevant interface to ensure that the traffic is normally forwarded.
Referring to fig. 9, a VSI-based loop detection apparatus in a DRNI network according to a second embodiment of the present invention includes:
a loop detection enabling unit 210, configured to enable a loop detection function on each Leaf node in the first DRNI networking; the loop detection function is used for triggering a loop detection message to be sent to the CPU; the common IP of the first DRNI networking and the common IP of the second DRNI networking establish a first tunnel, and the first DRNI networking is connected with each device through a DR interface; the AC interfaces and tunnels in the first DRNI networking and the second DRNI networking are all bound in the same VSI;
a detection packet constructing unit 220, configured to construct a loop detection packet at each Leaf node in the first DRNI networking; the loop detection message is broadcast and sent on the VSI of the loop detection message and is sent out on the first tunnel and each AC interface;
a determining unit 230, configured to determine whether the SMAC is a loop detection packet of the device received within a preset time;
a removing unit 240, configured to discard both the two-layer unicast packet and the broadcast packet based on the VSI if the loop detection packet is received from the panel port other than the internal control link port, and remove the loop.
Preferably, the loop detection message ethernet header encapsulation format includes the following fields:
DMAC: the destination MAC address of the message uses a multicast MAC address 010F-E200-8570; when the device enables the loop detection function, the message of the destination address is redirected to the CPU for processing, and the original message is broadcasted in the VSI receiving the message;
SMAC: the source MAC address of the message adopts the bridge MAC of the equipment sending the message;
TPID: the type of the VLAN label is 0x8100;
VLAN: specific values of the VLAN tag, wherein the specific contents comprise priority and VLAN ID;
type: a protocol type;
data: the data is in TLV format; the Data includes the following contents: chassis ID TLV, slot ID TLV, VSI TLV, VLAN TLV, port ID TLV, and End of TLV.
Preferably, the release unit is used for confirming the virtual interface of the inner ring of the VSI and releasing the ring; the virtual interface comprises an AC interface or a tunnel.
Preferably, the releasing unit is specifically configured to:
virtual interfaces related to VSI on each Leaf node of the first DRNI networking send detection messages based on the virtual interfaces;
when the device receives a detection message from a virtual interface, checking whether the SMAC, the Chassis ID and the Slot ID in the detection message are information of the device;
if not, adding the virtual interface information of the received loop detection message into the detection message and sending the virtual interface information from the IPP port among the Leaf nodes, so as to forward the virtual interface information to other equipment of the first DRNI networking;
if yes, indicating that the virtual interface recorded in the DATA of the loop detection message is related to the virtual interface of the received detection message, namely, forming a loop; setting a corresponding virtual interface to be BLOCK according to a preset loop detection BLOCK priority;
after the detection is completed, ACLs discarded by the two-layer unicast message and the broadcast message which are matched with the VSI are deleted, and the VSI loop is released.
Preferably, the loop detection Block priorities are, in order from high to low:
the message sent by the user is received from the user, and the local virtual interface has the priority of BLOCK;
the tunnel sent by the AC interface can be received, and meanwhile, the AC interface sent by the tunnel can also be received, and the priority AC interface is set to be BLOCK;
a second AC interface sent by the first AC interface receives the signal, a first AC interface sent by the second AC interface receives the signal, and a BLOCK with a small port is sent by the second AC interface; when the tunnel is sent out and received from another tunnel, the tunnel index is small and the BLOCK is set based on the VSI;
the virtual interface capable of receiving and transmitting in one direction sets BLOCK.
In the embodiments provided in the embodiments of the present invention, it should be understood that the disclosed apparatus and method may be implemented in other manners. The apparatus and method embodiments described above are merely illustrative and, for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, the functional modules in the embodiments of the present invention may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules 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 or a part thereof which substantially contributes to the prior art 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, an electronic device, or a network device) 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. It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrases "comprising a," "8230," "8230," or "comprising" does not exclude the presence of additional like elements in a process, method, article, or apparatus that comprises the element.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A loop detection method based on VSI in DRNI network is characterized by comprising the following steps:
enabling a loop detection function on each Leaf node in the first DRNI networking; the loop detection function is used for triggering a loop detection message to be sent to the CPU; the common IP of the first DRNI networking and the common IP of the second DRNI networking establish a first tunnel, and the first DRNI networking is connected with each device through a DR interface; the AC interfaces and tunnels in the first DRNI networking and the second DRNI networking are bound in the same VSI;
constructing a loop detection message at each Leaf node in the first DRNI networking; the loop detection message is sent by broadcasting on the VSI of the loop detection message and is sent out on the first tunnel and each AC interface;
judging whether the SMAC received in the preset time is a loop detection message of the equipment;
and if loop detection messages are received from other panel ports except the internal control link port, discarding the two-layer unicast message and broadcast message based on the VSI, and removing the loop.
2. The VSI-based loop detection method in a DRNI network according to claim 1,
the loop detection message Ethernet header encapsulation format comprises the following fields:
DMAC: the destination MAC address of the message uses multicast MAC address 010F-E200-8570; when the equipment enables the loop detection function, the message of the destination address is redirected to a CPU for processing, and the original message is broadcasted in the VSI receiving the message;
SMAC: the source MAC address of the message adopts the bridge MAC of the equipment sending the message;
TPID: the type of the VLAN label is 0x8100;
VLAN: specific values of the VLAN tag, wherein the specific contents comprise priority and VLAN ID;
type: a protocol type;
data: the data is in TLV format; the Data includes the following contents: chassis ID TLV, slot ID TLV, VSI TLV, VLAN TLV, port ID TLV, and End of TLV.
3. The method of VSI-based loop detection in DRNI networks of claim 1, wherein the de-looping specifically comprises:
confirming a virtual interface of the VSI inner loop, and removing the loop; the virtual interface comprises an AC interface or a tunnel.
4. The method of claim 3, wherein the confirming the virtual interface of the intra-VSI loop and the unlooping comprises:
virtual interfaces related to VSI on each Leaf node of the first DRNI networking send detection messages based on the virtual interfaces;
when the equipment receives a detection message from a virtual interface, checking whether the SMAC, the Chassis ID and the SlotID in the detection message are the information of the equipment;
if not, adding the virtual interface information of the received loop detection message into the detection message and sending the virtual interface information from the IPP port among the Leaf nodes, so as to forward the virtual interface information to other equipment of the first DRNI networking;
if yes, indicating that the virtual interface recorded in the DATA of the loop detection message is related to the virtual interface of the received detection message, namely, forming a loop; setting a corresponding virtual interface to be BLOCK according to a preset loop detection BLOCK priority;
after the detection is completed, ACLs discarded by the two-layer unicast message and the broadcast message which are matched with the VSI are deleted, and the VSI loop is released.
5. The VSI-based loop detection method in a DRNI network of claim 4, wherein,
the priority of the loop detection Block is from high to low:
the message sent by the virtual interface is received from the virtual interface, and the local virtual interface has the priority of BLOCK;
the tunnel sent by the AC interface can be received, and the AC interface sent by the tunnel can also be received, and the BLOCK is set on the AC interface preferentially;
a second AC interface sent by the first AC interface receives the signal, a first AC interface sent by the second AC interface receives the signal, and a BLOCK with a small port is sent by the second AC interface; when the tunnel is sent out and received from another tunnel, the tunnel index is small and the BLOCK is set based on the VSI;
the virtual interface capable of receiving and transmitting in one direction sets BLOCK.
6. The method of VSI-based loop detection in a DRNI network of claim 4, further comprising:
when the state of the associated virtual interface changes, starting a detection flow of the associated Block virtual interface; and if the first tunnel fails or the first tunnel is unbound with the VSI, sending a detection message based on the virtual interface from the second AC interface, and if the detection message is not received in advance, setting the state of the second AC interface to Forward.
7. A VSI-based loop detection apparatus in a DRNI network, comprising:
a loop detection enabling unit, configured to enable a loop detection function on each Leaf node in the first DRNI networking; the loop detection function is used for triggering a loop detection message to be sent to the CPU; the common IP of the first DRNI networking and the common IP of the second DRNI networking establish a first tunnel, and the first DRNI networking is connected with each device through a DR interface; the AC interfaces and tunnels in the first DRNI networking and the second DRNI networking are all bound in the same VSI;
a detection message construction unit, configured to construct a loop detection message at each Leaf node in the first DRNI networking; the loop detection message is broadcast and sent on the VSI of the loop detection message and is sent out on the first tunnel and each AC interface;
a judging unit, configured to judge whether the SMAC is a loop detection packet of the device received within a preset time;
and the removing unit is used for removing the two-layer unicast message and the broadcast message based on the VSI and removing the loop if the loop detection message is received from other panel ports except the internal control link port.
8. The VSI-based loop detection apparatus in a DRNI network of claim 7, wherein,
the loop detection message Ethernet header packaging format comprises the following fields:
DMAC: the destination MAC address of the message uses multicast MAC address 010F-E200-8570; when the equipment enables the loop detection function, the message of the destination address is redirected to a CPU for processing, and the original message is broadcasted in the VSI receiving the message;
SMAC: the source MAC address of the message adopts the bridge MAC of the equipment sending the message;
TPID: the type of the VLAN label is 0x8100;
VLAN: specific values of the VLAN tag, wherein the specific contents comprise priority and VLAN ID;
type: a protocol type;
data: the data is in TLV format; the Data includes the following contents: a chatsis ID TLV, a Slot ID TLV, a VSI TLV, a VLAN TLV, a Port ID TLV, and an End of TLV.
9. The apparatus of claim 7, wherein the release unit is configured to confirm the virtual interface of the ring in the VSI and release the ring; the virtual interface comprises an AC interface or a tunnel.
10. The apparatus of claim 9, wherein the decommissioning unit is specifically configured to:
virtual interfaces related to VSI on each Leaf node of the first DRNI networking send detection messages based on the virtual interfaces;
when the equipment receives a detection message from a virtual interface, checking whether the SMAC, the Chassis ID and the Slot ID in the detection message are the information of the equipment;
if not, adding the virtual interface information of the received loop detection message into the detection message and sending the virtual interface information from the IPP port among the Leaf nodes, so as to forward the virtual interface information to other equipment of the first DRNI networking;
if yes, indicating that the virtual interface recorded in the DATA of the loop detection message is related to the virtual interface of the received detection message, namely, forming a loop; setting a corresponding virtual interface to be BLOCK according to a preset loop detection BLOCK priority;
and deleting ACLs discarded by the two-layer unicast message and the broadcast message which are matched with the VSI after the detection is finished, and removing the VSI loop.
CN202210956917.3A 2022-08-10 2022-08-10 Loop detection method and device based on VSI in DRNI network Active CN115333974B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210956917.3A CN115333974B (en) 2022-08-10 2022-08-10 Loop detection method and device based on VSI in DRNI network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210956917.3A CN115333974B (en) 2022-08-10 2022-08-10 Loop detection method and device based on VSI in DRNI network

Publications (2)

Publication Number Publication Date
CN115333974A true CN115333974A (en) 2022-11-11
CN115333974B CN115333974B (en) 2023-08-11

Family

ID=83920982

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210956917.3A Active CN115333974B (en) 2022-08-10 2022-08-10 Loop detection method and device based on VSI in DRNI network

Country Status (1)

Country Link
CN (1) CN115333974B (en)

Citations (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004032114A (en) * 2002-06-21 2004-01-29 Nippon Telegr & Teleph Corp <Ntt> Multicast MPLS communication method, system and network
CN101197648A (en) * 2008-01-02 2008-06-11 中兴通讯股份有限公司 Self-loop detection method and device used for access network
CN101534226A (en) * 2009-04-14 2009-09-16 杭州华三通信技术有限公司 VLAN-based whole network loop detection method and loop detection equipment
CN101707538A (en) * 2009-11-25 2010-05-12 烽火通信科技股份有限公司 Method for detecting and automatically recovering Ethernet loopback
EP2256995A2 (en) * 2009-05-27 2010-12-01 Huawei Technologies Co., Ltd. Loop detection method, system, and device in virtual private local area network
CN103607317A (en) * 2013-10-21 2014-02-26 华为技术有限公司 Two-layer loop detection method, two-layer loop detection device and communication system
US20140317250A1 (en) * 2013-04-23 2014-10-23 Telefonaktiebolaget L M Ericsson (Publ) Method and system for synchronizing with neighbor in a distributed resilient network interconnect (drni) link aggregation group
CN104125088A (en) * 2013-04-28 2014-10-29 中兴通讯股份有限公司 Method of interaction information between systems in same terminal of DRNI and system thereof
CN107505580A (en) * 2017-09-13 2017-12-22 江苏银佳电子设备有限公司 A kind of feeder assembly detection means of EPS emergency power supplies
US20180026872A1 (en) * 2016-07-21 2018-01-25 Cisco Technology, Inc. Detecting and preventing network loops
CN107872370A (en) * 2017-12-27 2018-04-03 广州芯德通信科技股份有限公司 A kind of Ethernet interface loop quick determination method
CN109039888A (en) * 2018-08-10 2018-12-18 新华三技术有限公司合肥分公司 Message loop removing method and distributed elastic DR equipment
CN109462518A (en) * 2018-10-24 2019-03-12 新华三技术有限公司 A kind of method and device of loop detection
CN111092787A (en) * 2019-12-16 2020-05-01 新华三大数据技术有限公司 Loop detection method, loop detection device, tunnel endpoint equipment and storage medium
CN111245700A (en) * 2020-01-16 2020-06-05 新华三信息安全技术有限公司 Loop detection method and device
CN112491688A (en) * 2020-11-18 2021-03-12 锐捷网络股份有限公司 Loop detection method, loop detection device and readable storage medium
CN113992582A (en) * 2021-09-17 2022-01-28 新华三信息安全技术有限公司 Message forwarding method and device
CN114389965A (en) * 2022-01-26 2022-04-22 芯河半导体科技(无锡)有限公司 Two-layer network loop detection positioning method
CN114567572A (en) * 2022-04-29 2022-05-31 南京金阵微电子技术有限公司 Network loop monitoring method, system, equipment and storage medium

Patent Citations (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004032114A (en) * 2002-06-21 2004-01-29 Nippon Telegr & Teleph Corp <Ntt> Multicast MPLS communication method, system and network
CN101197648A (en) * 2008-01-02 2008-06-11 中兴通讯股份有限公司 Self-loop detection method and device used for access network
CN101534226A (en) * 2009-04-14 2009-09-16 杭州华三通信技术有限公司 VLAN-based whole network loop detection method and loop detection equipment
EP2256995A2 (en) * 2009-05-27 2010-12-01 Huawei Technologies Co., Ltd. Loop detection method, system, and device in virtual private local area network
CN101707538A (en) * 2009-11-25 2010-05-12 烽火通信科技股份有限公司 Method for detecting and automatically recovering Ethernet loopback
US20140317250A1 (en) * 2013-04-23 2014-10-23 Telefonaktiebolaget L M Ericsson (Publ) Method and system for synchronizing with neighbor in a distributed resilient network interconnect (drni) link aggregation group
CN104125088A (en) * 2013-04-28 2014-10-29 中兴通讯股份有限公司 Method of interaction information between systems in same terminal of DRNI and system thereof
CN103607317A (en) * 2013-10-21 2014-02-26 华为技术有限公司 Two-layer loop detection method, two-layer loop detection device and communication system
US20180026872A1 (en) * 2016-07-21 2018-01-25 Cisco Technology, Inc. Detecting and preventing network loops
CN107505580A (en) * 2017-09-13 2017-12-22 江苏银佳电子设备有限公司 A kind of feeder assembly detection means of EPS emergency power supplies
CN107872370A (en) * 2017-12-27 2018-04-03 广州芯德通信科技股份有限公司 A kind of Ethernet interface loop quick determination method
CN109039888A (en) * 2018-08-10 2018-12-18 新华三技术有限公司合肥分公司 Message loop removing method and distributed elastic DR equipment
CN109462518A (en) * 2018-10-24 2019-03-12 新华三技术有限公司 A kind of method and device of loop detection
CN111092787A (en) * 2019-12-16 2020-05-01 新华三大数据技术有限公司 Loop detection method, loop detection device, tunnel endpoint equipment and storage medium
CN111245700A (en) * 2020-01-16 2020-06-05 新华三信息安全技术有限公司 Loop detection method and device
CN112491688A (en) * 2020-11-18 2021-03-12 锐捷网络股份有限公司 Loop detection method, loop detection device and readable storage medium
CN113992582A (en) * 2021-09-17 2022-01-28 新华三信息安全技术有限公司 Message forwarding method and device
CN114389965A (en) * 2022-01-26 2022-04-22 芯河半导体科技(无锡)有限公司 Two-layer network loop detection positioning method
CN114567572A (en) * 2022-04-29 2022-05-31 南京金阵微电子技术有限公司 Network loop monitoring method, system, equipment and storage medium

Non-Patent Citations (5)

* Cited by examiner, † Cited by third party
Title
CHUNGUI DENG: "Improved closed-loop detection and Octomap algorithm based on RGB-D SLAM", 《2020 IEEE INTERNATIONAL CONFERENCE ON ARTIFICIAL INTELLIGENCE AND COMPUTER APPLICATIONS (ICAICA)》 *
YUFENG XIAO: "A loopback detection mechanism for MPLS failures", 《2010 2ND IEEE INTERNATIONALCONFERENCE ON NETWORK INFRASTRUCTURE AND DIGITAL CONTENT》 *
吴少勇: "以太网的环路检测技术", 《中兴通讯技术》, vol. 18, no. 01 *
生活需要加点盐: "loopback-detection(环路检测)", 《CSDN》 *
郭琪;: "单端口环路检测技术的扩展应用", 电子测试, no. 2 *

Also Published As

Publication number Publication date
CN115333974B (en) 2023-08-11

Similar Documents

Publication Publication Date Title
US10122614B2 (en) Failure protection for traffic-engineered bit indexed explicit replication
US9258211B1 (en) Extending VPLS support for CE lag multi-homing
US7898942B2 (en) Ring network system, failure recovery method, failure detection method, node and program for node
US7787454B1 (en) Creating and/or managing meta-data for data storage devices using a packet switch appliance
CN115460068A (en) Method and system for high availability enhancement of computer networks
US20080101241A1 (en) Ethernet OAM at intermediate nodes in a PBT network
CN101517966B (en) Method of detecting transport leaks in hybrid switching networks
WO2008055426A1 (en) Method, system and node apparatus for transmitting ethernet connectibvity fault management message
CN109474495B (en) Tunnel detection method and device
CN109691031B (en) Service message transmission method and node device
CN102771087B (en) Fast LSP alert mechanism
CN107968753B (en) Method and device for modifying media access control address forwarding table
WO2018219303A1 (en) Defect detection in ip/mpls network tunnels
WO2021093463A1 (en) Packet forwarding method, first network device, and first device group
EP2840738B1 (en) Mep configuration method and network device
US12021658B2 (en) Switch device, in-vehicle communication system, and communication method
CN107018072B (en) A data frame sending method and access device
CN105450432A (en) Method for positioning port connection error and associated equipment
CN115333974B (en) Loop detection method and device based on VSI in DRNI network
CN108881015B (en) Message broadcasting method and device
CN102821169B (en) A kind of method that in network, MAC Address list item creates and the network equipment
CN113472672B (en) A message forwarding method and device
CN103685024B (en) Node protecting method and device
CN118827531B (en) Network link fault processing method, device, equipment, medium and networking
CN102664783A (en) Virtual local area network loop detection method and device thereof

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
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 3 / F, 665 Zhangjiang Road, China (Shanghai) pilot Free Trade Zone, Pudong New Area, Shanghai

Patentee after: Yunhe Zhiwang (Shanghai) Technology Co.,Ltd.

Country or region after: China

Address before: 310016 room 107, building D, integrated circuit design Industrial Park, No. 858, Jianshe Second Road, Xiaoshan Economic and Technological Development Zone, Xiaoshan District, Hangzhou City, Zhejiang Province

Patentee before: Hangzhou yunhezhi Network Technology Co.,Ltd.

Country or region before: China