CN106453026B - Logical loops detection method and device based on VXLAN network - Google Patents
Logical loops detection method and device based on VXLAN network Download PDFInfo
- Publication number
- CN106453026B CN106453026B CN201610971530.XA CN201610971530A CN106453026B CN 106453026 B CN106453026 B CN 106453026B CN 201610971530 A CN201610971530 A CN 201610971530A CN 106453026 B CN106453026 B CN 106453026B
- Authority
- CN
- China
- Prior art keywords
- detection
- equipment
- itself
- messages
- group
- 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
Links
- 238000001514 detection method Methods 0.000 title claims abstract description 412
- 238000000034 method Methods 0.000 claims abstract description 20
- 238000010276 construction Methods 0.000 claims description 13
- 238000012544 monitoring process Methods 0.000 claims description 12
- 238000012360 testing method Methods 0.000 claims description 7
- 238000005259 measurement Methods 0.000 claims description 6
- 238000007689 inspection Methods 0.000 claims description 5
- 230000005641 tunneling Effects 0.000 claims description 5
- 230000005540 biological transmission Effects 0.000 claims description 4
- 238000010586 diagram Methods 0.000 description 9
- 238000004590 computer program Methods 0.000 description 5
- 238000012986 modification Methods 0.000 description 5
- 230000004048 modification Effects 0.000 description 5
- 238000012545 processing Methods 0.000 description 5
- 230000006870 function Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000005538 encapsulation Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012958 reprocessing Methods 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/55—Prevention, detection or correction of errors
- H04L49/555—Error detection
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/46—Interconnection of networks
- H04L12/4633—Interconnection of networks using encapsulation techniques, e.g. tunneling
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/46—Interconnection of networks
- H04L12/4641—Virtual LANs, VLANs, e.g. virtual private networks [VPN]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/35—Switches specially adapted for specific applications
- H04L49/354—Switches specially adapted for specific applications for supporting virtual local area networks [VLAN]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Small-Scale Networks (AREA)
Abstract
The invention discloses a kind of logical loops detection method and device based on VXLAN network, this method comprises: determining equipment of itself in the role of detection group, role is main detection device or auxiliary detection device;If it is determined that equipment of itself is main detection device in the role of detection group, is then sent to the auxiliary detection device of detection group and carry the detection messages that existing virtual LAN VLAN identifies, each detection messages carry an existing VLAN mark;It monitors whether to receive detection messages from two layers of port of equipment of itself, if receiving detection messages from two layers of port of equipment of itself, detects that there are logical loops for VXLAN network;If it is determined that equipment of itself detection device supplemented by the role of detection group, then monitor whether to receive detection messages from two layers of port of equipment of itself, if receiving detection messages from two layers of port of equipment of itself, detect that there are logical loops for VXLAN network.The program realizes the logical loops in detection VXLAN network.
Description
Technical field
It is espespecially a kind of based on virtual expansible local area network (Virtual the present invention relates to field of communication technology
EXtensible Local Area Network, VXLAN) network logical loops detection method and device.
Background technique
It is the architecture diagram of VXLAN network as shown in Figure 1, virtual expansible local area network tunneling termination (Virtual
EXtensible Local Area Network End Point, VTEP) 1, VTEP2, VTEP3 and VTEP4 establish between any two
The tunnel VXLAN.The problem of being drawn due to whole network planning, there may be logical loops for the VXLAN network.
Assuming that bridge device of the VTEP1-VTEP4 as VXLAN network, the server of their second lines of a couplet, which all operates in, is identified as 10
Virtual LAN (Virtual Local Area Network, VLAN) under, i.e. VTEP1-VTEP4 pass through VXLAN network turn
Send out the message of the carrying VLAN 10 received.If the problem of being drawn due to whole network planning, the end interconnected between VTEP1, VTEP2 and S5
Mouth is two layers of port (trunk mouthfuls), and VTEP3 is sent to the broadcasting packet of VTEP2 by three-layer port, after VTEP2 decapsulation,
Trunk mouthfuls of the first line of a couplet can be sent to, and after S5 receives broadcasting packet, all second line of a couplet mouths are sent to (including the end interconnected between S1
Mouthful), S1 receives broadcasting packet, and is sent to the VTEP2-VTEP4 interconnected therewith after carrying out VXLAN encapsulation, since VTEP3 passes through
Three-layer port is sent to the broadcasting packet of VTEP2, is received again by the trunk mouth of VTEP2 by VTEP2, this results in logic
Loop.
And not yet there is the logical loops detection method based on VXLAN network at present.
Summary of the invention
The embodiment of the present invention provides a kind of logical loops detection method and device based on VXLAN network, to detect
Logical loops present in VXALN network.
According to embodiments of the present invention, a kind of logical loops detection method based on VXLAN network is provided, is applied described
In the virtual expansible local area network tunneling termination VTEP that VXLAN network includes, which is characterized in that the VXLAN network includes
VTEP constitutes detection group, which comprises
Equipment of itself is determined in the role of the detection group, the role is main detection device or auxiliary detection device;
If it is determined that the equipment of itself is main detection device in the role of the detection group, then to the auxiliary inspection of the detection group
Measurement equipment sends the detection messages for carrying existing virtual LAN VLAN mark, and each described detection messages carrying one existing
VLAN mark;It monitors whether to receive the detection messages from two layers of port of the equipment of itself, if from the equipment of itself
Two layers of port receive the detection messages, then detect that there are logical loops for the VXLAN network;
If it is determined that equipment of itself detection device supplemented by the role of the detection group, then monitor whether from it is described itself
Two layers of port of equipment receive detection messages, if receiving the detection messages from two layers of port of the equipment of itself,
Detect that there are logical loops for the VXLAN network.
Specifically, determining that equipment of itself in the role of the detection group, specifically includes:
The selection request of broadcast carrying equipment of itself mark in the detection group, and receive other in the detection group
The selection request of the device identification of the corresponding VTEP of the carrying that VTEP is sent;
The device identification of other VTEP is compared with equipment of itself mark respectively;
If equipment of itself mark is maximum, it is determined that the equipment of itself detects based on the role in the detection group
Equipment;
If equipment of itself mark is not maximum, it is determined that the equipment of itself is supplemented by the role in the detection group
Detection device.
The detection messages that existing VLAN is identified are carried specifically, sending to the auxiliary detection device of the detection group, it is specific to wrap
It includes:
The VLAN mark that native vlan forwarding table includes is obtained, existing VLAN mark is obtained;
Construction includes the detection messages of each existing VLAN mark respectively;
By each three-layer port, into the detection group, corresponding auxiliary detection device sends the detection messages of construction.
Optionally, if the equipment of itself the detection group role be main detection device, the method also includes:
It will test the auxiliary detection device that message characteristic information is sent to the detection group, so that the auxiliary detection of the detection group
Equipment determines whether the message received is detection messages according to the detection messages characteristic information.
Optionally, if equipment of itself detection device supplemented by the role of the detection group, the method also includes:
Receive the detection messages characteristic information that the main detection device of the detection group is sent;
It monitors whether to receive detection messages from two layers of port of the equipment of itself, specifically include:
It monitors whether to receive message from two layers of port of the equipment of itself;
If receiving message from two layers of port of the equipment of itself, institute is determined according to the detection messages characteristic information
State whether message is detection messages;
If the message is detection messages, it is determined that receive detection messages from two layers of port of the equipment of itself.
Optionally, detect the VXLAN network there are after logical loops, the method also includes:
The VLAN mark that the detection messages that receive carry is deleted in native vlan forwarding table, with stop forwarding with
The VLAN that the detection messages received carry identifies relevant message.
According to embodiments of the present invention, a kind of logical loops detection device based on VXLAN network is also provided, is applied described
In the virtual expansible local area network tunneling termination VTEP that VXLAN network includes, the VTEP that the VXLAN network includes constitutes detection
Group, described device include:
Determining module, for determine equipment of itself in the role of the detection group, the role be main detection device or
Auxiliary detection device;
First detection module, for if it is determined that the equipment of itself the detection group role be main detection device, then
It is sent to the auxiliary detection device of the detection group and carries the detection messages that existing virtual LAN VLAN identifies, each detection
Message carries an existing VLAN mark;It monitors whether to receive the detection messages from two layers of port of the equipment of itself,
If receiving the detection messages from two layers of port of the equipment of itself, detect that there are logic boxs for the VXLAN network
Road;
Second detection module, for if it is determined that equipment of itself detection device supplemented by the role of the detection group, then
It monitors whether to receive detection messages from two layers of port of the equipment of itself, if receiving from two layers of port of the equipment of itself
To the detection messages, then detect that there are logical loops for the VXLAN network.
Specifically, the determining module, is specifically used for:
The selection request of broadcast carrying equipment of itself mark in the detection group, and receive other in the detection group
The selection request of the device identification of the corresponding VTEP of the carrying that VTEP is sent;
The device identification of other VTEP is compared with equipment of itself mark respectively;
If equipment of itself mark is maximum, it is determined that the equipment of itself detects based on the role in the detection group
Equipment;
If equipment of itself mark is not maximum, it is determined that the equipment of itself is supplemented by the role in the detection group
Detection device.
Specifically, the first detection module, is specifically used for:
The VLAN mark that native vlan forwarding table includes is obtained, existing VLAN mark is obtained;
Construction includes the detection messages of each existing VLAN mark respectively;
By each three-layer port, into the detection group, corresponding auxiliary detection device sends the detection messages of construction.
Optionally, if the equipment of itself the detection group role be main detection device, the first detection module
It is also used to:
It will test the auxiliary detection device that message characteristic information is sent to the detection group, so that the auxiliary detection of the detection group
Equipment determines whether the message received is detection messages according to the detection messages characteristic information.
Optionally, if equipment of itself detection device supplemented by the role of the detection group, second detection module
It is also used to:
Receive the detection messages characteristic information that the main detection device of the detection group is sent;
Second detection module, for monitoring whether that two layers of port from the equipment of itself receive detection messages,
It is specifically used for:
It monitors whether to receive message from two layers of port of the equipment of itself;
If receiving message from two layers of port of the equipment of itself, institute is determined according to the detection messages characteristic information
State whether message is detection messages;
If the message is detection messages, it is determined that receive detection messages from two layers of port of the equipment of itself.
Optionally, the first detection module and second detection module, are also used to:
Detecting the VXLAN network, there are the institute received after logical loops, is deleted in native vlan forwarding table
The VLAN mark of detection messages carrying is stated, it is relevant to stop forwarding the VLAN mark carried to the detection messages received
Message.
The present invention has the beneficial effect that:
The embodiment of the present invention provides a kind of logical loops detection method and device based on VXLAN network, by determining certainly
For body equipment in the role of the detection group, the role is main detection device or auxiliary detection device;If it is determined that described itself set
The standby role in the detection group is main detection device, then sends to the auxiliary detection device of the detection group and carry existing virtual office
The detection messages of VLAN mark are netted in domain, and each detection messages carry an existing VLAN mark;Monitor whether from it is described from
Two layers of port of body equipment receive the detection messages, if receiving the detection report from two layers of port of the equipment of itself
Text then detects that there are logical loops for the VXLAN network;If it is determined that the equipment of itself is supplemented by the role of the detection group
Detection device then monitors whether to receive detection messages from two layers of port of the equipment of itself, if from the equipment of itself
Two layers of port receive the detection messages, then detect that there are logical loops for the VXLAN network.In the program, detection group
Main detection device can issue detection messages, and whether receive detection messages by monitoring two layers of port and detect VXLAN
Network whether there is logical loops, and the auxiliary detection device in detection group directly passes through whether two layers of port of monitoring receive detection report
Text whether there is logical loops to detect VXLAN network, thus realize the logical loops in detection VXLAN network, so as to
Prevent VXLAN network from address vibration occurs, it is ensured that the normal forwarding of message in VXLAN network.
Detailed description of the invention
Fig. 1 is the architecture diagram of VXLAN network in the prior art;
Fig. 2 is the flow chart of the network loop detection method based on VXLAN network in the embodiment of the present invention;
Fig. 3 is the flow chart of S21 in the embodiment of the present invention;
Fig. 4 is the flow chart of S22 in the embodiment of the present invention;
Fig. 5 is the flow chart of S23 in the embodiment of the present invention;
Fig. 6 is the structural schematic diagram of the flow forwarding controller based on VXLAN network in the embodiment of the present invention.
Specific embodiment
In order to realize that logical loops present in detection VXALN network, the embodiment of the present invention provide a kind of based on VXLAN net
The network loop detection method of network, is applied in the VTEP that VXLAN network includes, and the process of this method is as shown in Fig. 2, execute step
It is rapid as follows:
S20: process starts.
S21: determine equipment of itself in the role of detection group, however, it is determined that equipment of itself is detected based on the role of detection group and set
It is standby, then execute S22;If it is determined that equipment of itself detection device supplemented by the role of detection group, then execute S23.
Detection group is that the VTEP for including is constituted by VXLAN network, includes a main detection device and multiple auxiliary in detection group
Detection device, that is to say, that the role of each VTEP is main detection device or auxiliary detection device.Due to main detection device and auxiliary
The operation that detection device executes is different, therefore VTEP needs to determine equipment of itself in the role of detection group first.
S22: it is sent to the auxiliary detection device of detection group and carries the detection messages that existing VLAN is identified, monitored whether from itself
Two layers of port of equipment receive detection messages, if receiving detection messages from two layers of port of equipment of itself, detect
There are logical loops for VXLAN network.
S23: monitoring whether to receive detection messages from two layers of port of equipment of itself, if from two layers of port of equipment of itself
Detection messages are received, then detect that there are logical loops for VXLAN network.
It for main detection device, needs to construct detection messages and issues the auxiliary detection device in detection group, if existing VLAN
It is identified with multiple, each detection messages carrying one existing VLAN mark, that is to say, that how many mark just constructs how many
Detection messages, the VLAN that each detection messages carry identify different;For main detection device and auxiliary detection device, require to monitor
Whether from two layers of port of equipment of itself detection messages are received, if (can be, but not limited to being from two layers of port of equipment of itself
Trunk mouthfuls) receive detection messages, then VXLAN network is detected there are logical loops, needs to delete in native vlan forwarding table
Except the VLAN mark that the detection messages received carry, phase is identified to stop forwarding the VLAN carried with the detection messages received
The message of pass abolishes the logical loops of VXLAN so that not reprocessing the VLAN identifies relevant message.
In the program, the main detection device of detection group can issue detection messages, and by monitoring whether two layers of port connect
Detection messages are received to detect VXLAN network and whether there is logical loops, the auxiliary detection device in detection group directly passes through monitoring
Whether two layers of port receive detection messages to detect VXLAN network with the presence or absence of logical loops, to realize detection VXLAN net
Logical loops in network, and logical loops can also be further abolished, so as to prevent VXLAN network from address shake occurs
It swings, it is ensured that the normal forwarding of message in VXLAN network.
Specifically, determining equipment of itself in above-mentioned S21 in the implementation of the role of detection group, as shown in figure 3, specific packet
It includes:
S211: the selection request of broadcast carrying equipment of itself mark in detection group, and receive other in detection group
The selection request of the device identification of the corresponding VTEP of the carrying that VTEP is sent.
S212: the device identification of other VTEP is compared with equipment of itself mark respectively, if equipment of itself mark is most
Greatly, then S213 is executed;If equipment of itself mark is not maximum, S214 is executed.
S213: determine that role of the equipment of itself in detection group is main detection device.
S214: equipment of itself detection device supplemented by the role in detection group is determined.
Size in the present embodiment by device identification determines the role of equipment of itself, that is to say, that selected equipment identifies most
The main detection device of big conduct, detection device supplemented by other VTEP.Determine equipment of itself there are many roles in detection group
Mode, which is not described herein again for other way.
Specifically, sending in above-mentioned S22 to the auxiliary detection device of detection group carries the detection messages that existing VLAN is identified
Implementation, as shown in figure 4, specifically including:
S221: the VLAN mark that native vlan forwarding table includes is obtained, existing VLAN mark is obtained.
The VLAN mark carried in the message that can be forwarded for including due to native vlan forwarding table, it can pass through
Existing VLAN mark is obtained by native vlan forwarding table.
S222: construction includes the detection messages of each existing VLAN mark respectively.
A VLAN mark is carried in each detection messages, and the VLAN mark carried in each detection messages is different.
S223: by each three-layer port, into detection group, corresponding auxiliary detection device sends the detection messages of construction.
Since, there are the tunnel VXLAN, VTEP passes through the corresponding VXLAN tunnel of three-layer port connection between the VTEP in detection group
Therefore road can pass through the detection messages of each three-layer port corresponding auxiliary detection device transmission construction into detection group.
A kind of optional embodiment, if equipment of itself is main detection device in the role of detection group, the above method is also wrapped
It includes: will test the auxiliary detection device that message characteristic information is sent to detection group, so that the auxiliary detection device of detection group is according to detection
Message characteristic information determines whether the message received is detection messages.
Main detection device can be with customized detection messages, such as carrying the message of detection messages characteristic information is detection report
Text after the main customized detection messages of detection device, needs will test message characteristic information and is synchronized to auxiliary detection device, so that detection
The auxiliary detection device of group determines whether the message received is detection messages according to detection messages characteristic information.Wherein, detection report
Literary characteristic information can be set according to actual needs, for example, can be set as message five-tuple, i.e. source media access control
The address (Media Access Control, MAC), target MAC (Media Access Control) address, type of message, source internet protocol (Internet
Protocol, IP) address and purpose IP address.
Correspondingly, if equipment of itself detection device supplemented by the role of detection group, method further include: receive the master of detection group
The detection messages characteristic information that detection device is sent.
The auxiliary detection device of detection group determines whether the message received is detection messages according to detection messages characteristic information.
Correspondingly, the realization side for monitoring whether to receive detection messages from two layers of port of equipment of itself in above-mentioned S23
Formula, as shown in figure 5, specifically including:
S231: it monitors whether to receive message from two layers of port of equipment of itself.
Whether two layers of port that auxiliary detection device can monitor equipment of itself receive message.
S232: if receiving message from two layers of port of equipment of itself, message is determined according to detection messages characteristic information
It whether is detection messages.
Specifically, carrying the packet check message of detection messages characteristic information, the report of detection messages characteristic information is not carried
Text is not detection messages.
S233: if message is detection messages, it is determined that receive detection messages from two layers of port of equipment of itself.
It may be implemented to monitor whether to receive detection messages from two layers of port of equipment of itself by S231-S233, thus
It further determines that in VXLAN network with the presence or absence of logical loops.
Based on the same inventive concept, the embodiment of the present invention provides a kind of logical loops detection device based on VXLAN network,
It applies in the VTEP that VXLAN network includes, the VTEP that VXLAN network includes constitutes detection group, the structure of the device such as Fig. 6 institute
Show, comprising:
Determining module 61, for determining equipment of itself in the role of detection group, role is main detection device or auxiliary detection
Equipment;
First detection module 62, for if it is determined that equipment of itself detection group role be main detection device, then to detection
The auxiliary detection device of group sends the detection messages for carrying existing VLAN mark, and each detection messages carry an existing VLAN mark
Know;It monitors whether to receive detection messages from two layers of port of equipment of itself, if receiving inspection from two layers of port of equipment of itself
Text is observed and predicted, then detects that there are logical loops for VXLAN network;
Second detection module 63, for if it is determined that equipment of itself detection device supplemented by the role of detection group, then monitoring are
It is no to receive detection messages from two layers of port of equipment of itself, if receiving detection messages from two layers of port of equipment of itself,
Detect that there are logical loops for VXLAN network.
In the program, the main detection device of detection group can issue detection messages, and by monitoring whether two layers of port connect
Detection messages are received to detect VXLAN network and whether there is logical loops, the auxiliary detection device in detection group directly passes through monitoring
Whether two layers of port receive detection messages to detect VXLAN network with the presence or absence of logical loops, to realize detection VXLAN net
Logical loops in network, so as to prevent VXLAN network from address vibration occurs, it is ensured that the normal of message turns in VXLAN network
Hair.
Specifically, determining module 61, is specifically used for:
Broadcast carries the selection request of equipment of itself mark in detection group, and receives the transmission of other VTEP in detection group
The corresponding VTEP of carrying device identification selection request;
The device identification of other VTEP is compared with equipment of itself mark respectively;
If equipment of itself mark is maximum, it is determined that role of the equipment of itself in detection group is main detection device;
If equipment of itself mark is not maximum, it is determined that equipment of itself detection device supplemented by the role in detection group.
Specifically, first detection module 62, is specifically used for:
The VLAN mark that native vlan forwarding table includes is obtained, existing VLAN mark is obtained;
Construction includes the detection messages of each existing VLAN mark respectively;
By each three-layer port, into detection group, corresponding auxiliary detection device sends the detection messages of construction.
Optionally, if equipment of itself in the role of detection group is main detection device, first detection module 62 is also used to:
Will test the auxiliary detection device that message characteristic information is sent to detection group so that the auxiliary detection device of detection group according to
Detection messages characteristic information determines whether the message received is detection messages.
Optionally, if equipment of itself detection device supplemented by the role of detection group, the second detection module 63 are also used to:
Receive the detection messages characteristic information that the main detection device of detection group is sent;
Second detection module 63, it is specific to use for monitoring whether that two layers of port from equipment of itself receive detection messages
In:
It monitors whether to receive message from two layers of port of equipment of itself;
If receiving message from two layers of port of equipment of itself, according to detection messages characteristic information determine message whether be
Detection messages;
If message is detection messages, it is determined that receive detection messages from two layers of port of equipment of itself.
Optionally, first detection module 62 and the second detection module 63, are also used to:
Detecting VXLAN network, there are the detection report received after logical loops, is deleted in native vlan forwarding table
The VLAN mark that text carries, to stop forwarding message relevant to the VLAN mark of the detection messages carrying received.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions
The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs
Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce
A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real
The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one
The step of function of being specified in a box or multiple boxes.
Although alternative embodiment of the invention has been described, created once a person skilled in the art knows basic
Property concept, then additional changes and modifications may be made to these embodiments.So the following claims are intended to be interpreted as include can
It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, those skilled in the art can carry out various modification and variations without departing from this hair to the embodiment of the present invention
The spirit and scope of bright embodiment.In this way, if these modifications and variations of the embodiment of the present invention belong to the claims in the present invention
And its within the scope of equivalent technologies, then the present invention is also intended to include these modifications and variations.
Claims (10)
1. a kind of logical loops detection method based on virtual expansible local area network VXLAN network, is applied in the VXLAN network
Including virtual expansible local area network tunneling termination VTEP in, which is characterized in that VTEP that the VXLAN network includes constitutes inspection
Survey group, which comprises
Equipment of itself is determined in the role of the detection group, the role is main detection device or auxiliary detection device;
If it is determined that the equipment of itself is main detection device in the role of the detection group, then set to the auxiliary detection of the detection group
Preparation send the detection messages for carrying existing virtual LAN VLAN mark, and each detection messages carry an existing VLAN mark
Know;It monitors whether to receive the detection messages from two layers of port of the equipment of itself, if from two layers of the equipment of itself
Port receives the detection messages, then detects that there are logical loops for the VXLAN network;
If it is determined that equipment of itself detection device supplemented by the role of the detection group, then monitor whether from the equipment of itself
Two layers of port receive detection messages, if receiving the detection messages from two layers of port of the equipment of itself, detect
To the VXLAN network, there are logical loops;
Wherein, it is sent to the auxiliary detection device of the detection group and carries the detection messages that existing VLAN is identified, specifically included:
The VLAN mark that native vlan forwarding table includes is obtained, existing VLAN mark is obtained;
Construction includes the detection messages of each existing VLAN mark respectively;
By each three-layer port, into the detection group, corresponding auxiliary detection device sends the detection messages of construction.
2. the method as described in claim 1, which is characterized in that determine equipment of itself in the role of the detection group, specific packet
It includes:
Broadcast carries the selection request of equipment of itself mark in the detection group, and receives other VTEP in the detection group
The selection request of the device identification of the corresponding VTEP of the carrying of transmission;
The device identification of other VTEP is compared with equipment of itself mark respectively;
If equipment of itself mark is maximum, it is determined that the equipment of itself is detected based on the role in the detection group and set
It is standby;
If equipment of itself mark is not maximum, it is determined that the equipment of itself detects supplemented by the role in the detection group
Equipment.
3. the method as described in claim 1, which is characterized in that if the equipment of itself is examined based on the role of the detection group
Measurement equipment, the method also includes:
It will test the auxiliary detection device that message characteristic information is sent to the detection group, so that the auxiliary detection device of the detection group
Determine whether the message received is detection messages according to the detection messages characteristic information.
4. the method as described in claim 1, which is characterized in that if the equipment of itself is examined supplemented by the role of the detection group
Measurement equipment, the method also includes:
Receive the detection messages characteristic information that the main detection device of the detection group is sent;
It monitors whether to receive detection messages from two layers of port of the equipment of itself, specifically include:
It monitors whether to receive message from two layers of port of the equipment of itself;
If receiving message from two layers of port of the equipment of itself, the report is determined according to the detection messages characteristic information
Whether text is detection messages;
If the message is detection messages, it is determined that receive detection messages from two layers of port of the equipment of itself.
5. the method as described in claim 1-4 is any, which is characterized in that detect that there are logical loops for the VXLAN network
Later, the method also includes:
The VLAN mark that the detection messages received carry is deleted, in native vlan forwarding table to stop forwarding and receive
The VLAN that the detection messages arrived carry identifies relevant message.
6. a kind of logical loops detection device based on VXLAN network, apply the VXLAN network include it is virtual expansible
In local area network tunneling termination VTEP, which is characterized in that the VTEP that the VXLAN network includes constitutes detection group, described device packet
It includes:
Determining module, for determining equipment of itself in the role of the detection group, the role is main detection device or auxiliary inspection
Measurement equipment;
First detection module, for if it is determined that the equipment of itself the detection group role be main detection device, then to institute
The auxiliary detection device for stating detection group sends the detection messages for carrying existing virtual LAN VLAN mark, each detection messages
Carry an existing VLAN mark;It monitors whether to receive the detection messages from two layers of port of the equipment of itself, if from
Two layers of port of the equipment of itself receive the detection messages, then detect that there are logical loops for the VXLAN network;
Second detection module, for if it is determined that equipment of itself detection device supplemented by the role of the detection group, then monitor
Whether from two layers of port of the equipment of itself detection messages are received, if receiving institute from two layers of port of the equipment of itself
Detection messages are stated, then detect that there are logical loops for the VXLAN network;
Wherein, the first detection module, is specifically used for:
The VLAN mark that native vlan forwarding table includes is obtained, existing VLAN mark is obtained;
Construction includes the detection messages of each existing VLAN mark respectively;
By each three-layer port, into the detection group, corresponding auxiliary detection device sends the detection messages of construction.
7. device as claimed in claim 6, which is characterized in that the determining module is specifically used for:
Broadcast carries the selection request of equipment of itself mark in the detection group, and receives other VTEP in the detection group
The selection request of the device identification of the corresponding VTEP of the carrying of transmission;
The device identification of other VTEP is compared with equipment of itself mark respectively;
If equipment of itself mark is maximum, it is determined that the equipment of itself is detected based on the role in the detection group and set
It is standby;
If equipment of itself mark is not maximum, it is determined that the equipment of itself detects supplemented by the role in the detection group
Equipment.
8. device as claimed in claim 6, which is characterized in that if the equipment of itself is examined based on the role of the detection group
Measurement equipment, the first detection module are also used to:
It will test the auxiliary detection device that message characteristic information is sent to the detection group, so that the auxiliary detection device of the detection group
Determine whether the message received is detection messages according to the detection messages characteristic information.
9. device as claimed in claim 8, which is characterized in that if the equipment of itself is examined supplemented by the role of the detection group
Measurement equipment, second detection module are also used to:
Receive the detection messages characteristic information that the main detection device of the detection group is sent;
Second detection module, for monitoring whether that two layers of port from the equipment of itself receive detection messages, specifically
For:
It monitors whether to receive message from two layers of port of the equipment of itself;
If receiving message from two layers of port of the equipment of itself, the report is determined according to the detection messages characteristic information
Whether text is detection messages;
If the message is detection messages, it is determined that receive detection messages from two layers of port of the equipment of itself.
10. the device as described in claim 6-9 is any, which is characterized in that the first detection module and second detection
Module is also used to:
Detecting the VXLAN network, there are the inspection received after logical loops, is deleted in native vlan forwarding table
The VLAN mark of text carrying is observed and predicted, to stop forwarding report relevant to the VLAN mark of the detection messages carrying received
Text.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610971530.XA CN106453026B (en) | 2016-11-04 | 2016-11-04 | Logical loops detection method and device based on VXLAN network |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610971530.XA CN106453026B (en) | 2016-11-04 | 2016-11-04 | Logical loops detection method and device based on VXLAN network |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106453026A CN106453026A (en) | 2017-02-22 |
CN106453026B true CN106453026B (en) | 2019-07-23 |
Family
ID=58180007
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610971530.XA Active CN106453026B (en) | 2016-11-04 | 2016-11-04 | Logical loops detection method and device based on VXLAN network |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106453026B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108306834A (en) * | 2017-12-28 | 2018-07-20 | 中国银联股份有限公司 | Method and apparatus for the risk for eliminating the initiation of virtual network loop |
CN111131085A (en) * | 2019-12-10 | 2020-05-08 | 苏州浪潮智能科技有限公司 | A method, device and medium for detecting network loop based on SONiC |
CN111245700B (en) * | 2020-01-16 | 2022-02-22 | 新华三信息安全技术有限公司 | Loop detection method and device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101056224A (en) * | 2007-05-31 | 2007-10-17 | 杭州华三通信技术有限公司 | A loop detection method and device for the network device |
CN101753376A (en) * | 2009-12-30 | 2010-06-23 | 杭州华三通信技术有限公司 | Method and equipment for detecting link state |
CN102624575A (en) * | 2011-01-28 | 2012-08-01 | 中兴通讯股份有限公司 | Detection method and system for avoiding Ethernet closed loops |
CN105743716A (en) * | 2016-04-21 | 2016-07-06 | 大连理工大学 | Method for dynamic planning of Ethernet network path of train |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8270319B2 (en) * | 2006-12-14 | 2012-09-18 | Rockstart Bidco, LP | Method and apparatus for exchanging routing information and establishing connectivity across multiple network areas |
-
2016
- 2016-11-04 CN CN201610971530.XA patent/CN106453026B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101056224A (en) * | 2007-05-31 | 2007-10-17 | 杭州华三通信技术有限公司 | A loop detection method and device for the network device |
CN101753376A (en) * | 2009-12-30 | 2010-06-23 | 杭州华三通信技术有限公司 | Method and equipment for detecting link state |
CN102624575A (en) * | 2011-01-28 | 2012-08-01 | 中兴通讯股份有限公司 | Detection method and system for avoiding Ethernet closed loops |
CN105743716A (en) * | 2016-04-21 | 2016-07-06 | 大连理工大学 | Method for dynamic planning of Ethernet network path of train |
Also Published As
Publication number | Publication date |
---|---|
CN106453026A (en) | 2017-02-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11012261B2 (en) | Associating VXLANs with tunnels | |
KR101770498B1 (en) | Method and device for checking health of link | |
CN102801820B (en) | MAC address publishing method and device in EVI network | |
US20110205904A1 (en) | Relay apparatus, virtual machine system, and relay method | |
CN106453026B (en) | Logical loops detection method and device based on VXLAN network | |
US20210385120A1 (en) | Systems and methods for sideline processing in a Virtual Network Function | |
US9806996B2 (en) | Information processing system and control method for information processing system | |
CN108259304B (en) | Forwarding table item synchronization method and device | |
JP5849843B2 (en) | Frame transmission system | |
US20160028589A1 (en) | Data loop detection | |
CN106899430A (en) | A kind of flow method for processing forwarding and device | |
CN106899500B (en) | Message processing method and device for cross-virtual extensible local area network | |
CN106603550A (en) | Network isolation method and network isolation device | |
CN104040538B (en) | A kind of the Internet, applications exchange method, apparatus and system | |
CN109495383A (en) | A kind of data processing method, device, communication system and the network equipment | |
US9280426B2 (en) | System and method for server redundancy | |
CN106909197A (en) | A kind of virtualized host time management method and virtualized host system | |
CN109802879A (en) | A kind of flow routing method and device | |
CN106230658B (en) | A kind of method and apparatus monitoring the network equipment | |
CN109586987A (en) | The test method and device of equipment in a kind of pair of cloud storage system | |
CN103366478B (en) | Anti-theft detection method and device for street lamp cable | |
CN106130867B (en) | Virtual machine communication method and device across data center | |
CN106817316B (en) | Method, apparatus and system for detecting path MTU | |
CN107181644A (en) | For the method and apparatus for the network performance for monitoring network application | |
CN104683152A (en) | VXLAN message processing method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |