CN109347717A - VXLAN tunnel switching method and device - Google Patents
VXLAN tunnel switching method and device Download PDFInfo
- Publication number
- CN109347717A CN109347717A CN201811126731.5A CN201811126731A CN109347717A CN 109347717 A CN109347717 A CN 109347717A CN 201811126731 A CN201811126731 A CN 201811126731A CN 109347717 A CN109347717 A CN 109347717A
- Authority
- CN
- China
- Prior art keywords
- source port
- vtep equipment
- port
- vxlan
- vtep
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- 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
- 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
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0631—Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0654—Management of faults, events, alarms or notifications using network fault recovery
- H04L41/0668—Management of faults, events, alarms or notifications using network fault recovery by dynamic selection of recovery network elements, e.g. replacement by the most appropriate element after failure
Abstract
This disclosure relates to network communication technology field, a kind of VXLAN tunnel switching method and device are provided, the first VTEP equipment applied to EVPN networking, the described method includes: service traffics are switched to corresponding 2nd tunnel VXLAN of the second source port from corresponding first tunnel VXLAN of the first source port when detecting the first source port failure and normal the second source port;The fault notification information of the first source port is sent to the 2nd VTEP equipment by the second source port, so that the 2nd VTEP equipment processing business flow.The disclosure is when current source port breaks down, the transmission of fault notification information is carried out by the corresponding tunnel VXLAN of other normal source ports detected, it can guarantee the reliable diffusion of fault notification information and the correct switch of service traffics forward-path, improve the reliability of EVPN networking.
Description
Technical field
This disclosure relates to network communication technology field, in particular to a kind of VXLAN tunnel switching method and device.
Background technique
EVPN (Ethernet Virtual Private Network, Ethernet Virtual Private Network) is two layers a kind of
The control layer of VPN (Virtual Private Network, Virtual Private Network) technology, EVPN uses MP-BGP
(Multiprotocol Border Gateway Protocol, Multiprotocol Border Gateway Protocol) notices EVPN routing iinformation, number
VXLAN (Virtual eXtensible Local Area Network, expansible Virtual Local Area Network) encapsulation side is used according to layer
Formula E-Packets.
Basic EVPN group-network construction specifically includes that VM (Virtual Machine, virtual machine), CE
(CustomerEdge, customer edge) equipment and VTEP (VXLAN Tunnel End Point, VXLAN endpoint of a tunnel) equipment,
Establishing between the physical port of VTEP equipment has the tunnel VXLAN, the physical port in message repeating process it is possible that failure,
Cause the reliability of EVPN networking insufficient.
Summary of the invention
The disclosure is designed to provide a kind of VXLAN tunnel switching method and device, can to improve EVPN networking
By property.
To achieve the goals above, the disclosure the technical solution adopted is as follows:
In a first aspect, the first VTEP applied to EVPN networking is set present disclose provides a kind of VXLAN tunnel switching method
Standby, the EVPN networking further includes the 2nd VTEP equipment, the first source port and the 2nd VTEP of the first VTEP equipment
Establish the first tunnel VXLAN between first destination port of equipment, the second source port of the first VTEP equipment and described the
The 2nd tunnel VXLAN is established between second destination port of two VTEP equipment, which comprises when detecting first source
When port failure and normal second source port, by service traffics from corresponding first tunnel VXLAN of first source port
It is switched to corresponding 2nd tunnel VXLAN of second source port;By second source port by first source port
Fault notification information is sent to the 2nd VTEP equipment, so that the 2nd VTEP equipment handles the service traffics.
Second aspect, the disclosure additionally provide a kind of tunnel VXLAN switching device, the first VTEP applied to EVPN networking
Equipment, the EVPN networking further include the 2nd VTEP equipment, the first source port and described second of the first VTEP equipment
The first tunnel VXLAN, the second source port of the first VTEP equipment and institute are established between first destination port of VTEP equipment
State and establish the 2nd tunnel VXLAN between the second destination port of the 2nd VTEP equipment, described device include first detection module and
First execution module.First detection module is used to detect the first source port failure and second source port is normal
When, service traffics are switched to second source port corresponding from corresponding first tunnel VXLAN of first source port
Two tunnels VXLAN;First execution module is used for the fault notification information of first source port through second source port
It is sent to the 2nd VTEP equipment, so that the 2nd VTEP equipment handles the service traffics.
Compared with the prior art, a kind of VXLAN tunnel switching method and device that the disclosure provides, under normal circumstances, business
Flow by the forwarding of the first tunnel VXLAN between the first source port and the first destination port, when detecting the first source port therefore
When barrier, first detect whether there are normal other source ports, when detecting that the second source port is normal, by service traffics from the
Corresponding first tunnel VXLAN of one source port is switched to corresponding 2nd tunnel VXLAN of the second source port;Meanwhile passing through second
The fault message of first source port is sent to the 2nd VTEP equipment by source port, so that it is guaranteed that the 2nd VTEP equipment can handle industry
Business flow.The disclosure passes through the corresponding tunnel VXLAN of other normal source ports detected when current source port breaks down
Carry out the transmission of fault notification information, it is ensured that the reliable diffusion of fault notification information and service traffics forward-path it is correct
Switching, to guarantee the normal forwarding of service traffics, improves the reliability of EVPN networking.
To enable the above objects, features, and advantages of the disclosure to be clearer and more comprehensible, preferred embodiment is cited below particularly, and cooperate
Appended attached drawing, is described in detail below.
Detailed description of the invention
In order to illustrate more clearly of the technical solution of the disclosure, letter will be made to attached drawing needed in the embodiment below
It singly introduces, it should be understood that the following drawings illustrates only some embodiments of the disclosure, therefore is not construed as to range
It limits, it for those of ordinary skill in the art, without creative efforts, can also be according to these attached drawings
Obtain other relevant attached drawings.
Fig. 1 shows the error detection handover network architecture diagram of disclosure offer.
Fig. 2 shows the first block diagrams of the EVPN networking that the disclosure provides.
Fig. 3 shows the second block diagram of the EVPN networking of disclosure offer.
Fig. 4 shows the VXLAN tunnel switching method flow chart of disclosure offer.
Fig. 5 shows the block diagram of the first VTEP equipment of disclosure offer.
Fig. 6 shows the block diagram of the tunnel the VXLAN switching device of disclosure offer.
Icon: 10- error detection handover network;20-EVPN networking;The first VTEP equipment of 30-;The 2nd VTEP equipment of 40-;
The 3rd VTEP equipment of 50-;31- processor;32- memory;33- bus;34- communication interface;The tunnel 100-VXLAN switching dress
It sets;101- first detection module;The first execution module of 102-;The second detection module of 103-;The second execution module of 104-.
Specific embodiment
Below in conjunction with attached drawing in the disclosure, the technical solution in the disclosure is clearly and completely described, it is clear that
Described embodiment is only disclosure a part of the embodiment, instead of all the embodiments.Usually retouched in attached drawing here
The component for the disclosure stated and shown can be arranged and be designed with a variety of different configurations.Therefore, below to mentioning in the accompanying drawings
The detailed description of the embodiment of the disclosure of confession is not intended to limit claimed the scope of the present disclosure, but is merely representative of this
Disclosed selected embodiment.Based on embodiment of the disclosure, those skilled in the art are in the premise for not making creative work
Under every other embodiment obtained, belong to the disclosure protection range.
It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi
It is defined in a attached drawing, does not then need that it is further defined and explained in subsequent attached drawing.Meanwhile in the disclosure
In description, term " first ", " second " etc. are only used for distinguishing description, are not understood to indicate or imply relative importance.
Error code refers to that the signal that communication equipment receives bit error occurs compared with when the signal issues, and usually embodies
It is malfunctioned for communication equipment according to the data packet that CRC check algorithm detects.The error code as caused by line fault can pass through exclusion
Failure elimination;But the probability error code as caused by the reasons such as optical path shake, aging circuit is then difficult thoroughly to eliminate.
In order to reduce adverse effect caused by error code, it can use error detection handover network 10 and error code detected,
And circuit switching is carried out after detecting error code.Fig. 1 is please referred to, error detection handover network 10 includes 1#CE equipment, PE
(Provider Edge, the edge device in backbone network) equipment, UPE (Underlayer PE or User-end PE, user side
PE) equipment, SPE (Superstratum PE, upper layer PE) equipment and 2#CE equipment, wherein user-end provider edge is directly connected to user's
Equipment, SPE equipment link user-end provider edge and are located inside error detection handover network 10, and MP-BGP is run between UPE and SPE.Just
In normal situation, the service traffics between user-end provider edge and SPE equipment are all forwarded by main path, and main path is SPE equipment
Flow forward-path between the port port1 and the port port1' of user-end provider edge, i.e. SPE to UPE.But when user-end provider edge
When error code failure occurs for the port port1', if service traffics continue through main path and are forwarded, the shadow of error code will receive
It rings.At this time, it may be necessary to which the port port1' of user-end provider edge, which sends error code notification packet, gives SPE equipment, allow service traffics from main road quarter sawing
It changes to backup path to be forwarded, backup path is by the port port2 of SPE equipment and the port port2 〞 of PE equipment and PE
Flow forward-path between the port port1 〞 of equipment and the port port2' of user-end provider edge is constituted, i.e. SPE to PE to UPE.
After SPE equipment receives the error code notification packet of user-end provider edge transmission, the main path by service traffics from SPE to UPE is switched to
The backup path of SPE to PE to UPE is forwarded, and guarantees the normal forwarding of service traffics with this.
But EVPN agreement can detect error code at present, but cannot carry out route after detecting error code and cut
It changes;In addition, current error detection handover network 10 can not determine whether route completes switching, therefore reliability is insufficient, such as Fig. 1
In when user-end provider edge the port port1' occur error code failure when, the port port1' of user-end provider edge needs to send error code notification packet
SPE equipment, but the error code failure as existing for the port port1' are given, being unable to ensure the error code notification packet can correctly reach
SPE equipment, if user-end provider edge because detecting that the port port1' occurs error code failure and service traffics have been switched to PE to UPE,
And SPE equipment due to being not received by error code notification packet leads to that path is not switched to SPE to PE, such service traffics will
It can not normally forward, therefore business may be affected.
Based on the above issues, the disclosure provides a kind of VXLAN tunnel switching method and device, the tunnel the VXLAN switching side
On the one hand method and device extend EVPN agreement, allow EVPN agreement after detecting that error code failure occurs for physical port
Carry out circuit switching;It on the other hand, can be by service traffics from current source when detecting that error code failure occurs in current source port
The corresponding tunnel VXLAN in port is switched to the corresponding tunnel VXLAN of other normal source ports, and passes through other normal source ports pair
The tunnel VXLAN answered carries out the transmission of fault notification information, to guarantee the reliable diffusion and service traffics of fault notification information
The correct switch of forward-path, is further explained below.
Referring to figure 2., the first block diagram of the EVPN networking 20 provided Fig. 2 shows the disclosure.EVPN networking 20
Including 1#CE equipment, the first VTEP equipment 30, the 2nd VTEP equipment 40 and 2#CE equipment, 1#CE equipment and the first VTEP equipment 30
Communication connection, the 2nd VTEP equipment 40 are communicated to connect with 2#CE equipment, the first source port port1 of the first VTEP equipment 30 and the
The first tunnel VXLAN, the second source of the first VTEP equipment 30 are established between first destination port port1' of two VTEP equipment 40
The 2nd tunnel VXLAN is established between port port2 and the second destination port port2' of the 2nd VTEP equipment 40.
First tunnel VXLAN carries out the master of service traffics forwarding between the first VTEP equipment 30 and the 2nd VTEP equipment 40
Path, the 2nd tunnel VXLAN carry out the spare of service traffics forwarding between the first VTEP equipment 30 and the 2nd VTEP equipment 40
Path.
At present in practical applications, in order to further increase the reliability of EVPN networking 20, EVPN networking can also be set
20 include an other VTEP equipment in addition to the first VTEP equipment 30 and the 2nd VTEP equipment 40, for example, referring to figure 3.,
EVPN networking 20 further includes the 3rd VTEP equipment 50, the second source port port2 of the first VTEP equipment 30 and the 3rd VTEP equipment
Establish the tunnel VXLAN 1 between 50 port port1 〞, the port port2 〞 of the 3rd VTEP equipment 50 and the 2nd VTEP equipment 40
The tunnel VXLAN 2 is established between second destination port port2', the tunnel VXLAN 1 and the tunnel VXLAN 2 collectively form the first VTEP and set
Standby 30 and the 2nd carry out service traffics forwarding between VTEP equipment 40 backup path, the tunnel VXLAN 1 and the tunnel VXLAN 2 are suitable
In the 2nd tunnel VXLAN.
As another embodiment, other VTEP equipment in EVPN networking 20 can also be multiple, if EVPN group
Net 20 includes a number of other VTEP equipment, for example, 1#VTEP equipment and 2#VTEP equipment, in multiple other VTEP equipment one
It is a that the tunnel 1#VXLAN, another and the 2nd VTEP equipment 40 are established between the second source port port2 of the first VTEP equipment 30
The second destination port port2' between establish the tunnel 2#VXLAN, and established between the adjacent other VTEP equipment of any two
There is the tunnel VXLAN, then the tunnel VXLAN and 2# established between the adjacent other VTEP equipment of the tunnel 1#VXLAN, any two
The tunnel VXLAN collectively forms the spare road that service traffics forwarding is carried out between the first VTEP equipment 30 and the 2nd VTEP equipment 40
Diameter.For example, establishing the tunnel 1#VXLAN, 2#VTEP between 1#VTEP equipment and the second source port port2 of the first VTEP equipment 30
The tunnel 2#VXLAN, 1#VTEP equipment and 2# are established between equipment and the second destination port port2' of the 2nd VTEP equipment 40
The tunnel 3#VXLAN is established between VTEP equipment, the tunnel 1#VXLAN, the tunnel 2#VXLAN and the tunnel 3#VXLAN collectively form first
The backup path that service traffics forwarding is carried out between VTEP equipment 30 and the 2nd VTEP equipment 40, is equivalent to the 2nd tunnel VXLAN.
The quantity of other VTEP equipment is it is not limited here in EVPN networking 20.
First VTEP equipment 30, the 2nd VTEP equipment 40 and the 3rd VTEP equipment 50, which may each be, realizes VXLAN function
The hardware such as interchanger, router, be also possible to be deployed in virtual switch, virtual router etc. in host.First VTEP
Whens equipment 30 is virtual switch, the virtual router etc. that are deployed in host, program is stored in the memory module of host, such as
The tunnel VXLAN shown in fig. 6 switching device 100, the processing module of host after receiving and executing instruction, execute described program with
Realize the VXLAN tunnel switching method that the following embodiments of the disclosure disclose;First VTEP equipment 30 is to realize VXLAN function
Whens hardware such as interchanger, router etc., program, such as VXLAN shown in fig. 6 are stored in the memory module of the first VTEP equipment 30
Tunnel switching device 100, the processing module of the first VTEP equipment 30 execute described program after receiving and executing instruction to realize
The VXLAN tunnel switching method that the following embodiments of the disclosure disclose, following embodiments mainly with EVPN networking 20 include one its
It is described in detail for its VTEP equipment i.e. the 3rd VTEP equipment 50.
A kind of embodiment
Referring to figure 4., Fig. 4 shows the VXLAN tunnel switching method flow chart of disclosure offer.It cuts in the tunnel VXLAN
Method is changed applied to the first VTEP equipment 30 comprising following steps:
Step S101, when detecting the first source port failure and normal the second source port, by service traffics from the first source
Corresponding first tunnel VXLAN in port is switched to corresponding 2nd tunnel VXLAN of the second source port.
In the disclosure, service traffics can be the data being forwarded in EVPN networking 20, under normal circumstances, first
Service traffics between VTEP equipment 30 and the 2nd VTEP equipment 40 pass through the first source port port1 and the first destination port
The first tunnel VXLAN forwarding between port1', when the first VTEP equipment 30 detects its first source port port1, there are error codes
When failure, the first VTEP equipment 30 detects other source ports in addition to the first source port port1 first, and whether there is also error codes
Failure does not detect error code failure if the second source port port2 of the first VTEP equipment 30 is normal, and the first VTEP is set at this time
Standby 30 that service traffics are switched to the second source port port2 from corresponding first tunnel VXLAN the first source port port1 is corresponding
2nd tunnel VXLAN.
It is integrated in Fig. 3, if EVPN networking 20 further includes the 3rd VTEP equipment 50, when the first VTEP equipment 30 detects
First source port port1 there are when error code failure and the second source port port2 normal, the first VTEP equipment 30 by service traffics from
Corresponding first tunnel VXLAN first source port port1 is switched to the corresponding tunnel VXLAN 1 the second source port port2.
The fault notification information of first source port is sent to the 2nd VTEP equipment by the second source port by step S102,
So that the 2nd VTEP equipment processing business flow.
In the disclosure, when the first VTEP equipment 30 detects the first source port port1, there are error code failure and the second sources
When port port2 is normal, service traffics are switched to the second source from corresponding first tunnel VXLAN the first source port port1
Corresponding 2nd tunnel VXLAN mouthful port2, meanwhile, the first VTEP equipment 30 can by normal second source port port2 will therefore
Barrier advertised information is sent to the 2nd VTEP equipment 40, so that the 2nd VTEP equipment 40 can handle service traffics, that is, second
VTEP equipment 40 by the processing of service traffics from the associated first destination port port1' of the first source port port1 be switched to
The associated second destination port port2' of second source port port2.
It is integrated in Fig. 3, if EVPN networking 20 further includes the 3rd VTEP equipment 50, the first VTEP equipment 30 can be by just
Fault notification information is sent the 3rd VTEP equipment 50 by the second normal source port port2, and the 3rd VTEP equipment 50 passes through again
Fault notification information is sent the 2nd VTEP equipment 40 by the tunnel VXLAN 2, and the 2nd VTEP equipment 40 is receiving fault notification letter
After breath, the processing of service traffics is switched to and the from the associated first destination port port1' of the first source port port1
The associated second destination port port2' of two source port port2.
In the disclosure, fault notification information can be transmitted in a manner of protocol massages, can also be passed in a manner of data message
Defeated, when being transmitted in a manner of protocol massages, fault notification information is the control layer transmission in EVPN networking 20;When with data message
When mode is transmitted, fault notification information is the data Layer transmission in EVPN networking 20.
As an implementation, it when fault notification information is transmitted in a manner of protocol massages, i.e., is routed by BGP EVPN
When being transmitted, fault notification information is EVPN routing, and EVPN routing includes that malfunction is marked and marked with malfunction
The information of associated first source port port1, EVPN routing includes the information RD of EVPN networking 20, link information Ethernet
Segment Identifier, broadcast domain Ethernet Tag ID, source IP address Source IP Addres, purpose IP address
Destination IP Addres, malfunction mark and mark associated first source port CRC error with malfunction
bit。
When fault notification information is that EVPN is routed, the first VTEP equipment 30 passes through the second source port port2 for the road EVPN
By being sent to the 2nd VTEP equipment 40 so that the 2nd VTEP equipment 40 according to malfunction mark by the processing of service traffics from
The associated first destination port port1' of first source port port1 is switched to and associated second purpose of the second source port port2
Port port2'.
It is integrated in Fig. 3, if EVPN networking 20 further includes the 3rd VTEP equipment 50, the first VTEP equipment 30 is first passed through
The tunnel VXLAN 1 sends the EVPN that next-hop is 50 address of the 3rd VTEP equipment and routes, and the 3rd VTEP equipment 50 receives the road EVPN
The EVPN that next-hop is 40 address of the 2nd VTEP equipment is sent by and then by the tunnel VXLAN 2 to route.2nd VTEP equipment
After 40 receive EVPN routing, the processing of service traffics is associated with from the first source port port1 according to malfunction label
The first destination port port1' switch to and the associated second destination port port2' of the second source port port2.Specifically,
2nd VTEP equipment 40 receive EVPN routing after, according to EVPN route in CRC error bit be reversed VXLAN tunnel
The positioning in road finds exist in the 2nd VTEP equipment 40 to the tunnel reverse correlation VXLAN of the first VTEP equipment 30, exists simultaneously
The processing of service traffics is then switched to the second purpose from the first destination port port1' by corresponding second destination port port2'
Port port2'.
As another embodiment, when fault notification information is transmitted in a manner of data message, fault notification information is
First encapsulated message is stored with the fault message of the first source port port1 in the reserved field of the first encapsulated message, that is,
It says, it, can be in the reserved word of VXLAN tunnel encapsulation header if carrying out transmission fault advertised information using the tunnel VXLAN
The setting of Duan Jinhang CRC error bit obtains the first encapsulated message.
When fault notification information is the first encapsulated message, the first VTEP equipment 30 by the second source port port2 by this
One encapsulated message is sent to the 2nd VTEP equipment 40, so that the 2nd VTEP equipment 40 obtains the first source port in reserved field
The fault message of port1, and according to fault message by the processing of service traffics from associated first mesh of the first source port port1
Port port1' switch to and the associated second destination port port2' of the second source port port2.
It is integrated in Fig. 3, if EVPN networking 20 further includes the 3rd VTEP equipment 50, the first VTEP equipment 30 is passed sequentially through
First encapsulated message is sent to the 2nd VTEP equipment 40 by the tunnel VXLAN 1 and the tunnel VXLAN 2, so that the 2nd VTEP equipment 40
Obtain reserved field in the first source port port1 fault message, and according to fault message by the processing of service traffics from
The associated first destination port port1' of first source port port1 is switched to and associated second purpose of the second source port port2
Port port2', that is, the 2nd VTEP equipment 40 receive carry CRC error bit setting position the first encapsulated message it
Afterwards, the processing of service traffics is directly switched to the second destination port port2' from the first destination port port1'.
When the first VTEP equipment 30 detects the first source port port1 fault recovery, need service traffics from second
Corresponding 2nd tunnel VXLAN source port port2 switches back into the first tunnel VXLAN corresponding with the first source port port1, because
This, the disclosure can also include step S103~S104.
Step S103, when detecting the first source port fault recovery, by service traffics from the second source port corresponding
Two tunnels VXLAN switch back into corresponding first tunnel VXLAN of the first source port.
In the disclosure, it when the first VTEP equipment 30 detects the error code fault recovery of its first source port port1, needs
Service traffics are switched back into the first source port port1 corresponding from corresponding 2nd tunnel VXLAN the second source port port2
One tunnel VXLAN.
It is integrated in Fig. 3, if EVPN networking 20 further includes the 3rd VTEP equipment 50, when the first VTEP equipment 30 detects
When the error code fault recovery of the first source port port1, the first VTEP equipment 30 is corresponding from the second source port port2 by service traffics
The tunnel VXLAN 1 switch back into corresponding first tunnel VXLAN the first source port port1.
The Troubleshooting information of first source port is sent to the 2nd VTEP equipment by the first source port by step S104,
So that the 2nd VTEP equipment processing business flow.
In the disclosure, when the first VTEP equipment 30 detects the first source port port1 fault recovery, by service traffics
Corresponding first tunnel VXLAN the first source port port1 is switched back into from corresponding 2nd tunnel VXLAN the second source port port2,
Meanwhile the first VTEP equipment 30 Troubleshooting information can be sent to second by restoring normal first source port port1
VTEP equipment 40, so that the 2nd VTEP equipment 40 can handle service traffics, that is, the 2nd VTEP equipment 40 is by service traffics
Processing be associated with the first source port port1 from being switched back into the associated second destination port port2' of the second source port port2
The first destination port port1'.
It is integrated in Fig. 3, if EVPN networking 20 further includes the 3rd VTEP equipment 50, the first VTEP equipment 30 can be by extensive
Multiple normal first source port port1 sends Troubleshooting information to the 2nd VTEP equipment 40, and the 2nd VTEP equipment 40 is receiving
To after Troubleshooting information, by the processing of service traffics from associated second destination port of the second source port port2
Port2' is switched back into and the associated first destination port port1' of the first source port port1.
In the disclosure, Troubleshooting information can be transmitted in a manner of protocol massages, can also be passed in a manner of data message
Defeated, when being transmitted in a manner of protocol massages, Troubleshooting information is the control layer transmission in EVPN networking 20;When with data message
When mode is transmitted, Troubleshooting information is the data Layer transmission in EVPN networking 20.
As an implementation, when Troubleshooting information is transmitted in a manner of protocol massages, Troubleshooting information is
The revocation route requests of EVPN routing, the revocation road that the first VTEP equipment 30 is routed the EVPN by the first source port port1
2nd VTEP equipment 40 is sent to by request, the 2nd VTEP equipment 40 the revocation route requests for receiving EVPN routing it
Afterwards, the processing of service traffics is switched back into the first destination port port1' from the second destination port port2'.
As another embodiment, when Troubleshooting information is transmitted in a manner of data message, Troubleshooting information is
Second encapsulated message, wherein the second encapsulated message is the first source port port1 in the reserved field for delete the first encapsulated message
Message after fault message.That is, after the first VTEP equipment 30 detects the first source port port1 fault recovery,
The second encapsulated message can be obtained in the reset that the reserved field of VXLAN tunnel encapsulation header carries out CRC error bit.
Second encapsulated message is sent to the 2nd VTEP equipment 40, the 2nd VTEP by the first source port port1 by the first VTEP equipment 30
After equipment 40 receives the second encapsulated message, the processing of service traffics is switched back into the first mesh from the second destination port port2'
Port port1'.
The VXLAN tunnel switching method that the disclosure provides, has the advantages that
Firstly, extending existing EVPN agreement, the function for supporting error detection linkage has been increased newly in existing EVPN agreement
Can, allow EVPN agreement to carry out circuit switching after the error code for detecting current source port;
Secondly, the path selection mechanism of fault notification information is provided, it is corresponding by the other normal source ports detected
The tunnel VXLAN carry out fault notification information transmission, it is ensured that the reliable diffusion and service traffics of fault notification information turn
The correct switch in hair path improves the reliability of EVPN networking 20 to guarantee the normal forwarding of service traffics.
Another embodiment
Referring to figure 5., Fig. 5 shows the block diagram of the first VTEP equipment 30 of disclosure offer.First VTEP
Equipment 30 includes processor 31, memory 32, bus 33 and communication interface 34, and the processor 31, memory 32 and communication connect
Mouth 34 is connected by bus 33;Processor 31 is for executing the executable module stored in memory 32, such as computer program.
Wherein, memory 32 may include high-speed random access memory (RAM:Random Access Memory),
It may further include non-labile memory (non-volatile memory), for example, at least a magnetic disk storage.First
VTEP equipment 30 by least one communication interface 34 (can be wired or wireless) realize the first VTEP equipment 30 with extremely
Communication connection between few other network elements.
Bus 33 can be isa bus, pci bus or eisa bus etc..It is only indicated with a four-headed arrow in Fig. 5, but
It is not offered as only a bus or a type of bus.
Wherein, memory 32 is for storing program, such as the tunnel VXLAN shown in fig. 6 switching device 100.The tunnel VXLAN
Switching device 100 includes that at least one can be stored in the memory 32 or be consolidated in the form of software or firmware (firmware)
Change the software function module in the operating system (operating system, OS) of the first VTEP equipment 30.The processor
31 after receiving and executing instruction, and executes described program and is cut with the tunnel VXLAN for realizing that the above-mentioned first embodiment of the disclosure discloses
Change method.
Processor 31 may be a kind of IC chip, the processing capacity with signal.During realization, above-mentioned side
Each step of method can be completed by the integrated logic circuit of the hardware in processor 31 or the instruction of software form.Above-mentioned
Processor 31 can be general processor, including central processing unit (Central Processing Unit, abbreviation CPU), network
Processor (Network Processor, abbreviation NP) etc.;It can also be digital signal processor (DSP), specific integrated circuit
(ASIC), ready-made programmable gate array (FPGA) either other programmable logic device, discrete gate or transistor logic,
Discrete hardware components.
The disclosure additionally provides a kind of computer readable storage medium, is stored thereon with computer program, computer program
The VXLAN tunnel switching method that above-mentioned first embodiment discloses is realized when being executed by processor 31.
Fig. 6 is please referred to, Fig. 6 shows the block diagram of the tunnel the VXLAN switching device 100 of disclosure offer.It should
The tunnel VXLAN switching device 100 is applied to the first VTEP equipment 30 comprising first detection module 101, the first execution module
102, the second detection module 103 and the second execution module 104.
First detection module 101, for when detecting the first source port failure and normal the second source port, by Business Stream
Amount is switched to corresponding 2nd tunnel VXLAN of the second source port from corresponding first tunnel VXLAN of the first source port.
First execution module 102, for the fault notification information of the first source port to be sent to by the second source port
Two VTEP equipment, so that the 2nd VTEP equipment processing business flow.
In the disclosure, when fault notification information is transmitted in a manner of protocol massages, fault notification information is EVPN routing,
EVPN routing includes that malfunction marks and marks associated first source port with malfunction;First execution module 102, specifically
For EVPN routing to be sent to the 2nd VTEP equipment 40 by the second source port, so that the 2nd VTEP equipment 40 is according to failure shape
The processing of service traffics is associated with the second source port from switching to associated first destination port of the first source port by state label
The second destination port.
In the disclosure, when fault notification information is transmitted in a manner of data message, fault notification information is the first encapsulation
Message is stored with the fault message of the first source port in the reserved field of the first encapsulated message;First execution module 102, specifically
For the first encapsulated message to be sent to the 2nd VTEP equipment 40 by the second source port, protected so that the 2nd VTEP equipment 40 obtains
The fault message of the first source port in section of writeeing down characters, and close the processing of service traffics from the first source port according to fault message
First destination port of connection switches to and associated second destination port of the second source port.
Second detection module 103, for when detecting the first source port fault recovery, by service traffics from the second source
Corresponding 2nd tunnel VXLAN of mouth switches back into corresponding first tunnel VXLAN of the first source port.
Second execution module 104, for the Troubleshooting information of the first source port to be sent to by the first source port
Two VTEP equipment, so that the 2nd VTEP equipment processing business flow.
In the disclosure, when Troubleshooting information is transmitted in a manner of protocol massages, Troubleshooting information is EVPN routing
Revocation route requests.
In the disclosure, when Troubleshooting information is transmitted in a manner of data message, Troubleshooting information is the second encapsulation
Message, wherein the second encapsulated message be delete the first encapsulated message reserved field in the first source port fault message after
Message.
In conclusion a kind of VXLAN tunnel switching method and device that the disclosure provides, first applied to EVPN networking
VTEP equipment, EVPN networking further include the 2nd VTEP equipment, the first source port of the first VTEP equipment and the 2nd VTEP equipment
Establish the first tunnel VXLAN between first destination port, the of the second source port of the first VTEP equipment and the 2nd VTEP equipment
The 2nd tunnel VXLAN is established between two destination ports, which comprises when detecting the first source port failure and the second source
When mouth is normal, service traffics are switched to the second source port corresponding second from corresponding first tunnel VXLAN of the first source port
The tunnel VXLAN;The fault notification information of the first source port is sent to the 2nd VTEP equipment by the second source port, so that second
VTEP equipment processing business flow.The VXLAN tunnel switching method that the disclosure provides, has the advantages that firstly, extending
Existing EVPN agreement has increased the function of supporting error detection linkage newly, so that EVPN agreement can in existing EVPN agreement
To carry out circuit switching after the error code for detecting current source port;Secondly, providing the Path selection of fault notification information
Mechanism carries out the transmission of fault notification information by the corresponding tunnel VXLAN of other normal source ports detected, it is ensured that
The reliable diffusion of fault notification information and the correct switch of service traffics forward-path, to guarantee that the normal of service traffics turns
Hair, improves the reliability of EVPN networking.
In several embodiments provided herein, it should be understood that disclosed device and method can also pass through
Other modes are realized.The apparatus embodiments described above are merely exemplary, for example, flow chart and block diagram in attached drawing
Show the device of multiple embodiments according to the disclosure, the architectural framework in the cards of method and computer program product,
Function and operation.In this regard, each box in flowchart or block diagram can represent the one of a module, section or code
Part, a part of the module, section or code, which includes that one or more is for implementing the specified logical function, to be held
Row instruction.It should also be noted that function marked in the box can also be to be different from some implementations as replacement
The sequence marked in attached drawing occurs.For example, two continuous boxes can actually be basically executed in parallel, they are sometimes
It can execute in the opposite order, this depends on the function involved.It is also noted that every in block diagram and or flow chart
The combination of box in a box and block diagram and or flow chart can use the dedicated base for executing defined function or movement
It realizes, or can realize using a combination of dedicated hardware and computer instructions in the system of hardware.
In addition, each functional module in each embodiment of the disclosure can integrate one independent portion of formation together
Point, it is also possible to modules individualism, an independent part can also be integrated to form with two or more modules.
It, can be with if the function is realized and when sold or used as an independent product in the form of software function module
It is stored in a computer readable storage medium.Based on this understanding, the technical solution of the disclosure is substantially in other words
The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a
People's computer, server or network equipment etc.) execute each embodiment the method for the disclosure all or part of the steps.
And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited
The various media that can store program code such as reservoir (RAM, Random Access Memory), magnetic or disk.It needs
Illustrate, herein, relational terms such as first and second and the like be used merely to by an entity or operation with
Another entity or operation distinguish, and without necessarily requiring or implying between these entities or operation, there are any this realities
The relationship or sequence on border.Moreover, the terms "include", "comprise" or its any other variant are intended to the packet of nonexcludability
Contain, so that the process, method, article or equipment for including a series of elements not only includes those elements, but also including
Other elements that are not explicitly listed, or further include for elements inherent to such a process, method, article, or device.
In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including the element
Process, method, article or equipment in there is also other identical elements.
The foregoing is merely preferred embodiment of the present disclosure, are not limited to the disclosure, for the skill of this field
For art personnel, the disclosure can have various modifications and variations.It is all within the spirit and principle of the disclosure, it is made any to repair
Change, equivalent replacement, improvement etc., should be included within the protection scope of the disclosure.It should also be noted that similar label and letter exist
Similar terms are indicated in following attached drawing, therefore, once being defined in a certain Xiang Yi attached drawing, are then not required in subsequent attached drawing
It is further defined and explained.
Claims (10)
1. a kind of VXLAN tunnel switching method, which is characterized in that applied to the first VTEP equipment of EVPN networking, the EVPN
Networking further includes the 2nd VTEP equipment, the first source port of the first VTEP equipment and the first mesh of the 2nd VTEP equipment
Port between establish the first tunnel VXLAN, the second source port of the first VTEP equipment and the 2nd VTEP equipment
The 2nd tunnel VXLAN is established between second destination port, which comprises
When detecting that the first source port failure and second source port are normal, by service traffics from first source
Corresponding first tunnel VXLAN of mouth is switched to corresponding 2nd tunnel VXLAN of second source port;
The fault notification information of first source port is sent to the 2nd VTEP equipment by second source port, with
The 2nd VTEP equipment is set to handle the service traffics.
2. the method as described in claim 1, which is characterized in that the method also includes:
When detecting the first source port fault recovery, by the service traffics from second source port corresponding second
The tunnel VXLAN switches back into corresponding first tunnel VXLAN of first source port;
The Troubleshooting information of first source port is sent to the 2nd VTEP equipment by first source port, with
The 2nd VTEP equipment is set to handle the service traffics.
3. method according to claim 2, which is characterized in that when the fault notification information is transmitted in a manner of protocol massages
When, the fault notification information is EVPN routing, EVPN routing include malfunction mark and with the malfunction mark
Remember associated first source port;
It is described the fault notification information of first source port is sent to by the 2nd VTEP by second source port to set
It is standby, so that the step of the 2nd VTEP equipment handles the service traffics, comprising:
EVPN routing is sent to the 2nd VTEP equipment by second source port, so that the 2nd VTEP is set
It is standby according to malfunction label by the processing of the service traffics from associated first mesh of first source port
Port switching to associated second destination port of second source port.
4. method as claimed in claim 3, which is characterized in that when the Troubleshooting information is transmitted in a manner of protocol massages
When, the Troubleshooting information is the revocation route requests of EVPN routing.
5. method according to claim 2, which is characterized in that when the fault notification information is transmitted in a manner of data message
When, the fault notification information is the first encapsulated message, is stored with described first in the reserved field of first encapsulated message
The fault message of source port;
It is described the fault notification information of first source port is sent to by the 2nd VTEP by second source port to set
It is standby, so that the step of the 2nd VTEP equipment handles the service traffics, comprising:
First encapsulated message is sent to the 2nd VTEP equipment by second source port, so that described second
VTEP equipment obtains the fault message of first source port in the reserved field, and will be described according to the fault message
It is switched to and second source port described in the processing of service traffics from associated first destination port of first source port
Associated second destination port.
6. method as claimed in claim 5, which is characterized in that when the Troubleshooting information is transmitted in a manner of data message
When, the Troubleshooting information is the second encapsulated message, wherein second encapsulated message is to delete first encapsulated message
Reserved field described in the first source port fault message after message.
7. a kind of tunnel VXLAN switching device, which is characterized in that applied to the first VTEP equipment of EVPN networking, the EVPN
Networking further includes the 2nd VTEP equipment, the first source port of the first VTEP equipment and the first mesh of the 2nd VTEP equipment
Port between establish the first tunnel VXLAN, the second source port of the first VTEP equipment and the 2nd VTEP equipment
The 2nd tunnel VXLAN is established between second destination port, described device includes:
First detection module, for when detecting that the first source port failure and second source port are normal, by business
Flow is switched to the corresponding 2nd VXLAN tunnel of second source port from corresponding first tunnel VXLAN of first source port
Road;
First execution module, for the fault notification information of first source port to be sent to institute by second source port
The 2nd VTEP equipment is stated, so that the 2nd VTEP equipment handles the service traffics.
8. device as claimed in claim 7, which is characterized in that described device further include:
Second detection module, for when detecting the first source port fault recovery, by the service traffics from described
Corresponding 2nd tunnel VXLAN of two source ports switches back into corresponding first tunnel VXLAN of first source port;
Second execution module, for the Troubleshooting information of first source port to be sent to institute by first source port
The 2nd VTEP equipment is stated, so that the 2nd VTEP equipment handles the service traffics.
9. device as claimed in claim 8, which is characterized in that when the fault notification information is transmitted in a manner of protocol massages
When, the fault notification information is EVPN routing, EVPN routing include malfunction mark and with the malfunction mark
Remember associated first source port;First execution module, is specifically used for:
EVPN routing is sent to the 2nd VTEP equipment by second source port, so that the 2nd VTEP is set
It is standby according to malfunction label by the processing of the service traffics from associated first mesh of first source port
Port switching to associated second destination port of second source port.
10. device as claimed in claim 8, which is characterized in that when the fault notification information is transmitted in a manner of data message
When, the fault notification information is the first encapsulated message, is stored with described first in the reserved field of first encapsulated message
The fault message of source port;First execution module, is specifically used for:
First encapsulated message is sent to the 2nd VTEP equipment by second source port, so that described second
VTEP equipment obtains the fault message of first source port in the reserved field, and will be described according to the fault message
The processing of service traffics is associated with from switching to associated first destination port of first source port with second source port
Second destination port.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811126731.5A CN109347717B (en) | 2018-09-26 | 2018-09-26 | VXLAN tunnel switching method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811126731.5A CN109347717B (en) | 2018-09-26 | 2018-09-26 | VXLAN tunnel switching method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109347717A true CN109347717A (en) | 2019-02-15 |
CN109347717B CN109347717B (en) | 2021-06-08 |
Family
ID=65306626
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811126731.5A Active CN109347717B (en) | 2018-09-26 | 2018-09-26 | VXLAN tunnel switching method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109347717B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112838982A (en) * | 2019-11-22 | 2021-05-25 | 华为技术有限公司 | Method, equipment and system for switching message transmission path |
CN113194019A (en) * | 2021-05-12 | 2021-07-30 | 中国联合网络通信集团有限公司 | Data transmission control method and electronic equipment |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104270298A (en) * | 2014-09-30 | 2015-01-07 | 杭州华三通信技术有限公司 | Method and device for forwarding message in VXLAN |
CN105391612A (en) * | 2015-10-15 | 2016-03-09 | 北京星网锐捷网络技术有限公司 | Virtual extensible local area network (VXLAN) tunnel end point (VTEP) adjacency learning method and VXLAN VTEP adjacency learning device |
US20160226755A1 (en) * | 2015-01-30 | 2016-08-04 | Telefonaktiebolaget L M Ericsson (Publ) | Method and apparatus for connecting a gateway router to a set of scalable virtual ip network appliances in overlay networks |
CN106878072A (en) * | 2017-02-10 | 2017-06-20 | 新华三技术有限公司 | A kind of message transmitting method and device |
CN106899430A (en) * | 2016-12-09 | 2017-06-27 | 新华三技术有限公司 | A kind of flow method for processing forwarding and device |
CN106911548A (en) * | 2017-02-24 | 2017-06-30 | 新华三技术有限公司 | A kind of tunnel state changing method and device |
CN107819677A (en) * | 2017-10-26 | 2018-03-20 | 新华三技术有限公司 | A kind of message forwarding method and device |
CN107846342A (en) * | 2016-09-20 | 2018-03-27 | 华为技术有限公司 | A kind of retransmission method, equipment and the system of VXLAN messages |
CN108337158A (en) * | 2018-01-23 | 2018-07-27 | 新华三技术有限公司 | Unicast message retransmission method and device |
-
2018
- 2018-09-26 CN CN201811126731.5A patent/CN109347717B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104270298A (en) * | 2014-09-30 | 2015-01-07 | 杭州华三通信技术有限公司 | Method and device for forwarding message in VXLAN |
US20160226755A1 (en) * | 2015-01-30 | 2016-08-04 | Telefonaktiebolaget L M Ericsson (Publ) | Method and apparatus for connecting a gateway router to a set of scalable virtual ip network appliances in overlay networks |
CN105391612A (en) * | 2015-10-15 | 2016-03-09 | 北京星网锐捷网络技术有限公司 | Virtual extensible local area network (VXLAN) tunnel end point (VTEP) adjacency learning method and VXLAN VTEP adjacency learning device |
CN107846342A (en) * | 2016-09-20 | 2018-03-27 | 华为技术有限公司 | A kind of retransmission method, equipment and the system of VXLAN messages |
CN106899430A (en) * | 2016-12-09 | 2017-06-27 | 新华三技术有限公司 | A kind of flow method for processing forwarding and device |
CN106878072A (en) * | 2017-02-10 | 2017-06-20 | 新华三技术有限公司 | A kind of message transmitting method and device |
CN106911548A (en) * | 2017-02-24 | 2017-06-30 | 新华三技术有限公司 | A kind of tunnel state changing method and device |
CN107819677A (en) * | 2017-10-26 | 2018-03-20 | 新华三技术有限公司 | A kind of message forwarding method and device |
CN108337158A (en) * | 2018-01-23 | 2018-07-27 | 新华三技术有限公司 | Unicast message retransmission method and device |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112838982A (en) * | 2019-11-22 | 2021-05-25 | 华为技术有限公司 | Method, equipment and system for switching message transmission path |
CN112838982B (en) * | 2019-11-22 | 2024-04-26 | 华为技术有限公司 | Message transmission path switching method, device and system |
CN113194019A (en) * | 2021-05-12 | 2021-07-30 | 中国联合网络通信集团有限公司 | Data transmission control method and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN109347717B (en) | 2021-06-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11032197B2 (en) | Reroute detection in segment routing data plane | |
US20190020574A1 (en) | Failure protection for traffic-engineered bit indexed explicit replication | |
CN110324226A (en) | Improve the aliasing behavior of more host site flows in ether Virtual Private Network network | |
US11805010B2 (en) | Signaling IP path tunnels for traffic engineering | |
US9225629B2 (en) | Efficient identification of node protection remote LFA target | |
US7505402B2 (en) | Method and apparatus for providing faster convergence for redundant sites | |
WO2021258754A1 (en) | Message indication method and apparatus, and device and storage medium | |
US9001644B2 (en) | Ethernet virtual private network system for providing fast protection for access rings | |
US9628409B1 (en) | Designated forwarder election for multi-homed data center interconnect using multicast routing protocol state information | |
CN109873760A (en) | Handle the method and apparatus of routing and the method and apparatus of data transmission | |
US8854953B2 (en) | Optimizing endpoint selection of MRT-FRR detour paths | |
US8456982B2 (en) | System and method for fast network restoration | |
CN109039919B (en) | Forwarding path determining method, device, system, computer equipment and storage medium | |
CN108574634B (en) | Apparatus, system, and method for providing node protection across label switched paths sharing labels | |
US20080008168A1 (en) | Methods and apparatus for providing optimal identification and processing of layer 3 control channels | |
WO2012075204A1 (en) | Systems and methods for recovery from network changes | |
CN109587059B (en) | SR-BE inner layer tunnel label configuration method, device and communication system | |
ES2820775T3 (en) | Service fault location device and method | |
US8934335B2 (en) | System and method for enhancing loop free alternative coverage | |
CN103891220A (en) | MPLS fast re-route using LDP (LDP-FRR) | |
CN109347717A (en) | VXLAN tunnel switching method and device | |
WO2022057810A1 (en) | Service packet forwarding method, sr policy sending method, device, and system | |
US9515918B2 (en) | Computing forwarding tables for link failures | |
CN108494684A (en) | Create the method and device in tunnel | |
CN104506369A (en) | Packet loss position detecting method and device |
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 |