Specific embodiment
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following description is related toDuring accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodimentDescribed in implementation method do not represent all implementation methods consistent with the application.Conversely, they be only with it is such as appendedThe example of the consistent apparatus and method of some aspects described in detail in claims, the application.
It is the purpose only merely for description specific embodiment in term used in this application, and is not intended to be limiting the application." one kind ", " described " and " being somebody's turn to do " of singulative used in the application and appended claims is also intended to include majorityForm, unless context clearly shows that other implications.It is also understood that term "and/or" used herein refers to and wrapsMay be combined containing one or more associated any or all of project listed.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the applicationA little information should not necessarily be limited by these terms.These terms are only used for being distinguished from each other open same type of information.For example, not departing fromIn the case of the application scope, the first information can also be referred to as the second information, and similarly, the second information can also be referred to asOne information.Depending on linguistic context, word as used in this " if " can be construed to " ... when " or " when ...When " or " in response to determining ".
As shown in figure 1, the representative network model of VXLAN includes following several parts:
VM (Virtual Machine, virtual machine):Many virtual machines, different void can be created on a serverPlan machine may belong to different VXLAN.The virtual machine for belonging to identical VXLAN is in same logic double layer network, each otherDouble layer intercommunication;Belong to two layers of isolation between the virtual machine of different VXLAN.VXLAN is come by VXLAN ID (Identity, mark)Mark, also known as VNI (VXLANNetwork Identifier, VXLAN network identifier), its length is 24 bits to VXLAN ID.
VTEP (VXLAN Tunnel End Point, VXLAN endpoint of a tunnel):The edge device of VXLAN.The phase of VXLANPass treatment is carried out all on VTEP, such as be transmitted to far after VXLAN tunnel encapsulations are carried out to the ether network packet that local VM sendsEnd VTEP, local VM etc. is transmitted to after being decapsulated to the VXLAN messages that distal end VTEP sends.VTEP can be an independencePhysical equipment, or virtual machine where server.
VXLAN tunnels:Point-to-point logical tunnel between two VTEP.VTEP be ether network packet packaging V XLAN,After UDP and IP, distal end VTEP is transmitted to by the VXLAN messages for obtaining are encapsulated by VXLAN tunnels, distal end VTEP is to thisVXLAN messages are decapsulated.
Nucleus equipment:P equipment in equipment in IP core network, such as Fig. 1.Nucleus equipment is not involved in VXLAN treatment, onlyNeed to carry out the message three layers of forwarding according to the purpose IP address of VXLAN messages.
VSI (Virtual Switch Instance, virtual switch instance):For a VXLAN provides two layers of friendship on VTEPChange the virtual switch instance of service.VSI can regard that the stylobate on VTEP carries out two layers of virtual switch of forwarding in VXLAN asMachine, it has the institute of traditional ethernet interchanger functional, including source MAC study, MAC address aging, floods.VSICorresponded with VXLAN.
Because the detection method in current VXLAN tunnels can only detect whether VXLAN tunnels there occurs failure, and cannotAbort situation is positioned, therefore, in order to solve the problem, a kind of fault detect side is provided in the application following examplesMethod, and it is a kind of can apply the method device.
In the method for the embodiment of the present application, when this equipment be VXLAN networks in a certain VXLAN tunnels (for convenience,A referred to as VXLAN tunnels) on VTEP when, this VTEP by a VXLAN tunnels to distal end VTEP send Fisrt fault examineText is observed and predicted, so that each miscellaneous equipment on a VXLAN tunnels in addition to this VTEP, is receiving Fisrt fault detection reportWen Hou, responds Fisrt fault detection response message;If this VTEP have received the Fisrt fault detection response of distal end VTEP responsesMessage, it is determined that a VXLAN tunnels are normal;If be not received by a certain miscellaneous equipment (for convenience, referred to as first itsIts equipment) respond Fisrt fault detection response message, it is determined that a VXLAN tunnel failures, and abort situation first itsIts equipment.
In the above-mentioned methods, one end VTEP in VXLAN tunnels sends failure and examines by the VXLAN tunnels to other end VTEPText is observed and predicted, each equipment of the fault detect message approach, including nucleus equipment and other end VTEP, receiving the failureAfter detection messages, fault detect response message can be responded, by the message response scenarios of each equipment of approach, you can know thisWhether VXLAN tunnels there occurs failure, and abort situation can be positioned.
By taking VXLAN tunnels as shown in Figure 2 as an example, the method to above-described embodiment is described in detail.In fig. 2,VXLAN tunnels Tunnel0 is established between VTEP1_1 and VTEP1_2, the corresponding VXLAN in the VXLAN tunnels is VXLAN10, shouldNucleus equipment on VXLAN tunnels has P2_1, P2_2 and P2_3.
As shown in figure 3, the fault detection method that VTEP1_1 is performed is comprised the following steps:
Step S301, VTEP1_1 generation by the fault detect message after VXLAN tunnel encapsulations, by Tunnel0 toVTEP1_2 sends the fault detect message;
Because fault detect message is VXLAN messages, then fault detect message includes:Outer layer IP, outer layer UDP andVXLAN heads, the IP address that the source IP address in outer layer IP is the IP address of VTEP1_1, purpose IP address are VTEP1_2,The ID 10 of the corresponding VXLAN10 of Tunnel0 is carried in VXLAN.
In addition, it is the type of message of fault detect message also to be carried in fault detect message for indicating the type of messageMark.Specifically, type of message mark can be carried in VXLAN, it is also possible to carried in other headers, such as outer layerIP, outer layer UDP heads.When type of message mark is carried in VXLAN, it is possible to use the reservation of one or more bitsPosition carries type of message mark, for example, using R (reservation) bit, or, using Reserved1 fields orAll bits in Reserved2 fields.
If the next-hop device P2_1 of VTEP1_1 can use, i.e. P2_1 is normal in itself, and between VTEP1_1 and P2_1Link it is normal, then P2_1 can respond fault detect response message to VTEP1_1 after the fault detect message is received, andAnd, when the purpose equipment of the fault detect message is not this equipment, the fault detect message is transmitted to next-hop device P2_2.Specifically, P2_1 is after the VXLAN messages that VTEP1_1 sends are received, carried by VXLAN of the VXLAN messagesType of message mark, identify the VXLAN messages for fault detect message, then on the one hand, judge the fault detect messagePurpose IP address in outer layer IP whether be this equipment IP address, judged result not to be, by the fault detect message afterIt is continuous to be transmitted to next-hop device P2_2;On the other hand, fault detect response message, the failure are generated for the fault detect messageDetection response message is IP messages, then, the source IP address in outer layer IP according to the fault detect message, and in the routing tableCorresponding forwarding information is searched, the fault detect response message is sent to VTEP1_1 according to the forwarding information for finding.
In actual implementation process, can include in above-mentioned fault detect response message:The corresponding VXLAN in VXLAN tunnelsID, sends the physical layer identifications of the equipment of the fault detect response message, and the physical layer identifications are specifically as follows IP address, MACAddress etc..Wherein, when the physical layer identifications are IP address, fault detect response message includes:Source IP address (as sendsThe physical layer identifications of the equipment of the fault detect response message), the ID 10 of purpose IP address and VXLAN10, wherein, source IPAddress is set to the IP address of P2_1, and purpose IP address are set to the IP address of VTEP1_1, is carried in fault detect response messageVXLAN ID are the VXLAN ID carried in the VXLAN of fault detect message.
, whereas if P2_1 is unavailable, i.e. P2_1 link failures between failure, and/or VTEP1_1 and P2_1 in itself,Then P2_1 cannot receive fault detect message, it is impossible to respond fault detect response message, also cannot be by the fault detect messageIt is transmitted to next-hop device P2_2.
In the case of foregoing P2_1 is available, if the next-hop device P2_2 of P2_1 also can use, i.e. P2_2 is in itself justOften, the link and between P2_1 and P2_2 is normal, then P2_2 can respond fault detect after the fault detect message is receivedResponse message to VTEP1_1, and, when the purpose equipment of the fault detect message is not this equipment, by the fault detect reportText is transmitted to next-hop device P2_3., whereas if P2_2 is unavailable, i.e. P2_2 failures in itself, and/or P2_1 and P2_2 itBetween link failure, then P2_2 cannot receive fault detect message, it is impossible to respond fault detect response message, also cannot will shouldFault detect message is transmitted to next-hop device P2_3.
In the case of foregoing P2_1 and P2_2 are available, if the next-hop device P2_3 of P2_2 also can use, i.e. P2_3 sheetsBody is normal, and link between P2_2 and P2_3 is normal, then P2_3 can respond failure after the fault detect message is receivedResponse message is detected to VTEP1_1, and, when the purpose equipment of the fault detect message is not this equipment, by failure inspectionObserve and predict text and be transmitted to next-hop device VTEP1_2., whereas if P2_3 is unavailable, i.e. P2_3 failures in itself, and/or P2_2 withLink failure between P2_3, then P2_3 cannot receive fault detect message, it is impossible to respond fault detect response message, also withoutThe fault detect message is transmitted to next-hop device VTEP1_2 by method.
In the case of foregoing P2_1, P2_2 and P2_3 are available, if the next-hop device VTEP1_2 of P2_3 also may be usedIt is normal in itself with, i.e. VTEP1_2, and link between P2_3 and VTEP1_2 is normal, then and VTEP1_2 is receiving the failureAfter detection messages, fault detect response message can be responded to VTEP1_1, and, it is in the purpose equipment of the fault detect messageDuring this equipment, do not continue to forward the fault detect message., whereas if VTEP1_2 is unavailable, i.e. VTEP1_2 originally diesBarrier, and/or the link failure between P2_3 and VTEP1_2, then VTEP1_2 cannot receive fault detect message, and cannotRespond fault detect response message.
Step S302, VTEP1_1 judge whether have received miscellaneous equipment P2_1 on Tunnel0, P2_2, P2_3, withAnd the fault detect response message that VTEP1_2 is responded, if having received fault detect response message (i.e. Fig. 3 of VTEP1_2 responsesIn situation one), then perform step S303, if be not received by the first miscellaneous equipment response fault detect response message (i.e.Situation two in Fig. 3), then perform step S304;
Specifically, a timer can be set, the timing total duration of the timer is scheduled time T, in step S301The timer is opened during middle transmission fault detect message, when the timing time of the timer reaches T, sentencing for step S302 is performedDisconnected operation.
In step s 302, the first miscellaneous equipment can be any appliance in P2_1, P2_2, P2_3, VTEP1_2.
Step S303, determines that Tunnel0 is normal;
Step S304, determines Tunnel0 failures, and abort situation is in the first miscellaneous equipment.
In addition, in another embodiment, VTEP1_1 is established with VTEP1_2, VTEP1_3, VTEP1_4, VTEP1_5VXLAN tunnels Tunnel0, tunnel structure now as shown in figure 4, for VXLAN tunnels Tunnel0 as shown in Figure 4, stillFault detection method as shown in Figure 3 can be used, fault detect and positioning is carried out.Specifically, VTEP1_1 to VTEP1_2,VTEP1_3, VTEP1_4, VTEP1_5 send fault detect message, appointing in VTEP1_2, VTEP1_3, VTEP1_4, VTEP1_5One VTEP can be directed to the fault detect message for receiving in the case of available, and fault detect response report is responded to VTEP1_1Text.VTEP1_1 can judge whether Tunnel0 there occurs failure according to the reception condition of fault detect response message, and rightAbort situation is positioned.If for example, VTEP1_1 is not received by VTEP1_2, VTEP1_3, VTEP1_4, VTEP1_5The fault detect response message that any VTEP is responded, it is determined that Tunnel0 failures, and abort situation is in the VTEP.
Clearly for the VXLAN tunnel structures beyond such as Fig. 2 and Fig. 4, the fault detection method of the embodiment of the present application is stillIt is applicable, the embodiment of the present application is not limited this.
Embodiment with foregoing fault detection method is corresponding, present invention also provides the embodiment of failure detector.
The embodiment of the application failure detector 60 can be applied in the equipment in VXLAN networks.Device embodimentCan be realized by software, it is also possible to realized by way of hardware or software and hardware combining.As a example by implemented in software, as oneDevice on individual logical meaning, is by corresponding computer in nonvolatile memory 50 by the processor 10 of equipment where itProgrammed instruction runs what is formed in reading internal memory 40.From for hardware view, as shown in figure 5, for the application fault detect is filledA kind of hardware structure diagram of 60 place equipment is put, except the processor 10 shown in Fig. 5, internal bus 20, network interface 30, internal memory40 and nonvolatile memory 50 outside, equipment in embodiment where device generally according to the equipment actual functional capability, alsoOther hardware can be included, this is repeated no more.
Fig. 6 is refer to, the failure detector 60 of the embodiment of the present application is included with lower unit:Transmitting element 601, receptionUnit 602 and determining unit 603, wherein:
Transmitting element 601, during for being the VTEP on a VXLAN tunnels when this equipment, by a VXLAN tunnels toDistal end VTEP sends Fisrt fault detection messages, so that each miscellaneous equipment on a VXLAN tunnels in addition to this equipment,After Fisrt fault detection messages are received, Fisrt fault detection response message is responded;
Receiving unit 602, during for being the VTEP on a VXLAN tunnels when this equipment, receiving Fisrt fault detection shouldAnswer message;
Determining unit 603, during for being the VTEP on a VXLAN tunnels when this equipment, if receiving unit 602 is receivedThe Fisrt fault detection response message that all other equipment is responded, it is determined that a VXLAN tunnels are normal, if receiving unitThe 602 Fisrt fault detection response messages for being not received by the response of the first miscellaneous equipment, it is determined that a VXLAN tunnel failures,And abort situation is in the first miscellaneous equipment.
Wherein, receiving unit 602, are additionally operable to when this equipment still belongs to the equipment on the 2nd VXLAN tunnels, and reception passes throughThe second fault detect message that second tunnel is sent;
Transmitting element 601, is additionally operable to when this equipment still belongs to the equipment on the 2nd VXLAN tunnels, in receiving unit 602After receiving the second fault detect message, the second fault detect response message is responded, and in the purpose of the second fault detect messageWhen equipment is not this equipment, the second fault detect message is transmitted to next-hop device.
Wherein, fault detect message is VXLAN tunnel encapsulation messages, and type of message mark is carried in fault detect messageKnow, it is fault detect message that type of message is identified for indicating the type of message.
Wherein, the corresponding VXLAN ID in VXLAN tunnels are carried in fault detect response message and the fault detect is sentThe physical layer identifications of the equipment of response message.
Wherein, transmitting element 601 specifically for responding the second fault detect response message in the following manner:According to receptionThe source IP address of the second fault detect message that unit 602 is received, searches corresponding forwarding information;According to the forwarding for findingInformation, the VTEP identified to the source IP address responds the second fault detect response message.
The function of unit and the implementation process of effect correspond to step in specifically referring to the above method in said apparatusImplementation process, will not be repeated here.
For device embodiment, because it corresponds essentially to embodiment of the method, so related part is referring to method realityApply the part explanation of example.Device embodiment described above is only schematical, wherein described as separating componentThe unit of explanation can be or may not be physically separate, and the part shown as unit can be or can alsoIt is not physical location, you can with positioned at a place, or can also be distributed on multiple NEs.Can be according to realitySelection some or all of module therein is needed to realize the purpose of application scheme.Those of ordinary skill in the art are not payingIn the case of going out creative work, you can to understand and implement.
The preferred embodiment of the application is the foregoing is only, is not used to limit the application, all essences in the applicationWithin god and principle, any modification, equivalent substitution and improvements done etc. should be included within the scope of the application protection.