A method, device and medium for processing EVPN routing in a dual SPINE MLAG environment
By establishing underlay routing and BGP neighbor relationships in a dual SPINE MLAG environment, the problem of traffic packet loss caused by link failures between VTEP equipment and SPINE equipment is solved, ensuring the stable operation and traffic forwarding of VXLAN tunnels.
Patent Information
- Application Number
- CN202310031537.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-01-10
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2043-01-10
AI Technical Summary
In a dual-SPINE MLAG environment, a link failure or device failure between the VTEP device and the SPINE device causes the Overlay route to be withdrawn and the VXLAN tunnel to go down, causing packet loss in the traffic from Hash to the VTEP device.
By establishing an underlay route between the VXLAN tunnel endpoint device and two SPINE devices, and determining the cross-device link aggregation group and virtual address, establishing a BGP neighbor relationship, the SPINE device can learn EVPN routes, and when a link or device fails, Determine EVPN routes on non-faulty links and keep VXLAN tunnels running.
This effectively avoids packet loss caused by the downtime of the VXLAN tunnel on the VTEP device, ensuring the stability and reliability of traffic forwarding.
Smart Images

Figure CN116248584B
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technologies, and in particular to a method, device, and medium for processing EVPN routing in a dual-SPINE MLAG environment. Background Art
[0002] The Virtual Extensible Local Area Network (VXLAN) is a Layer 2 virtual private network (VPN) technology based on the Internet Protocol (IP) network, using Media Access Control (MAC) in User Datagram Protocol (UDP) encapsulation. Ethernet Virtual Private Network (EVPN) is a VPN technology used to achieve Layer 2 interoperability. It uses the Border Gateway Protocol (BGP) to advertise routing information on the control plane and VXLAN encapsulation to forward user packets on the data plane. EVPN technology is also supported in multi-chassis link aggregation group (MLAG) scenarios, where two VXLAN tunneling endpoints (VTEPs) form a distributed aggregation system with HOST1.
[0003] In an existing dual-SPINE spine-and-leaf architecture, if VTEP1 and VTEP2 use the same VNI configuration, the EVPN routes (type 2, type 3, and type 5) sent by VTEP1 and VTEP2 to SPINE1 and SPINE2 have identical attributes. When VTEP3 and VTEP4 receive and process routes forwarded by the SPINE devices, they compare the attributes of the received routes. However, because the attributes of the received routes are identical, VTEP3 and VTEP4 discard the route forwarded by the SPINE device that they received later. Although the routes are forwarded by different SPINE devices, VTEP3 and VTEP4 can only store the route forwarded by one SPINE device. Consequently, if the link between the VTEP and one of the SPINE devices fails, or if one of the SPINE devices fails and the VTEP's route was learned from that SPINE device, the overlay route between the VTEP and the SPINE device is revoked, and the VXLAN tunnel goes down, resulting in packet loss for traffic hashed to the VTEP. Summary of the Invention
[0004] Embodiments of the present application provide a method, device, and medium for processing EVPN routes in a dual-SPINE MLAG environment, to address the technical problem in an existing dual-SPINE spine-and-leaf structure where, in the event of a link failure between a VTEP device and one of the SPINE devices, or a failure of one of the SPINE devices and the route on the VTEP device is learned from the SPINE device, the overlay route between the VTEP device and the SPINE device is revoked, the VXLAN tunnel is down, and traffic hashed to the VTEP device is lost.
[0005] In one aspect, an embodiment of the present application provides a method for processing EVPN routes in a dual-SPINE MLAG environment, including:
[0006] Establishing Underlay routes between each VXLAN tunnel endpoint device and two SPINE devices, determining a first inter-device link aggregation group and a second inter-device link aggregation group, and determining virtual addresses corresponding to the first inter-device link aggregation group and the second inter-device link aggregation group;
[0007] Establishing, according to the corresponding virtual address, a BGP neighbor relationship between the first inter-device link aggregation group and the second inter-device link aggregation group and the two SPINE devices, so that the two SPINE devices learn the next hop address of the first inter-device link aggregation group and obtain corresponding EVPN routes;
[0008] Forwarding the EVPN routes corresponding to the first inter-device link aggregation group to the second inter-device link aggregation group through the two SPINE devices, so that the third VXLAN tunnel endpoint device and the fourth VXLAN tunnel endpoint device in the second inter-device link aggregation group receive and store the EVPN routes corresponding to the first inter-device link aggregation group;
[0009] In the event of a link failure or device failure, an EVPN route learned based on a non-faulty link between a corresponding VXLAN tunnel endpoint device and another SPINE device is determined to implement traffic forwarding on the VXLAN tunnel endpoint device.
[0010] In one implementation of the present application, in the event of a link failure or device failure, determining an EVPN route learned based on a non-faulty link between a corresponding VXLAN tunnel endpoint device and another SPINE device to implement traffic forwarding on the VXLAN tunnel endpoint device specifically includes:
[0011] In the event that a link between any VXLAN tunnel endpoint device in the second inter-device link aggregation group and any of the two SPINE devices fails, or if any of the two SPINE devices fails, revoke the overlay route between the VXLAN tunnel endpoint device and the corresponding SPINE device;
[0012] In the VXLAN tunnel endpoint device, determining an EVPN route learned from another SPINE device of the two SPINE devices based on a non-failed link between the VXLAN tunnel endpoint device and the other SPINE device;
[0013] Based on the EVPN route, the VXLAN tunnel between the VXLAN tunnel endpoint device in the second inter-device link aggregation group and the first inter-device link aggregation group is put into operation to implement traffic forwarding on the VXLAN tunnel endpoint device.
[0014] In one implementation of the present application, determining the first inter-device link aggregation group and the second inter-device link aggregation group specifically includes:
[0015] Determine a first inter-device link aggregation group consisting of a first VXLAN tunnel endpoint device and a second VXLAN tunnel endpoint device, and use the first inter-device link aggregation group as a gateway between the first VXLAN tunnel endpoint device and the second VXLAN tunnel endpoint device;
[0016] And determine a second cross-device link aggregation group consisting of a third VXLAN tunnel endpoint device and a fourth VXLAN tunnel endpoint device, and use the second cross-device link aggregation group as the gateway between the third VXLAN tunnel endpoint device and the fourth VXLAN tunnel endpoint device.
[0017] In one implementation of the present application, determining the virtual addresses corresponding to the first inter-device link aggregation group and the second inter-device link aggregation group specifically includes:
[0018] Configuring the same virtual address for the first VXLAN tunnel endpoint device and the second VXLAN tunnel endpoint device in the first inter-device link aggregation group to obtain a virtual address corresponding to the first inter-device link aggregation group;
[0019] And configure the same virtual address for the third VXLAN tunnel endpoint device and the fourth VXLAN tunnel endpoint device in the second cross-device link aggregation group to obtain the virtual address corresponding to the second cross-device link aggregation group.
[0020] In one implementation of the present application, after establishing the BGP neighbor relationship between the first inter-device link aggregation group and the second inter-device link aggregation group and the two SPINE devices according to the corresponding virtual addresses, the method further includes:
[0021] Sending, based on the virtual address corresponding to the first inter-device link aggregation group, the EVPN routes corresponding to the first VXLAN tunnel endpoint device and the second VXLAN tunnel endpoint device in the first inter-device link aggregation group to the first SPINE device and the second SPINE device of the two SPINE devices;
[0022] Based on the corresponding EVPN route, the first SPINE device and the second SPINE device learn the next hop addresses corresponding to the first VXLAN tunnel endpoint device and the second VXLAN tunnel endpoint device in the first cross-device link aggregation group to obtain the corresponding EVPN route.
[0023] In one implementation of the present application, forwarding the EVPN routes corresponding to the first inter-device link aggregation group to the second inter-device link aggregation group through the two SPINE devices, so that the third VXLAN tunnel endpoint device and the fourth VXLAN tunnel endpoint device in the second inter-device link aggregation group receive and store the EVPN routes corresponding to the first inter-device link aggregation group, specifically includes:
[0024] Based on the virtual address corresponding to the second inter-device link aggregation group, send the corresponding EVPN route learned by the first SPINE device of the two SPINE devices to the third VXLAN tunnel endpoint device and the fourth VXLAN tunnel endpoint device in the second inter-device link aggregation group respectively;
[0025] and sending, based on the virtual address corresponding to the second inter-device link aggregation group, the corresponding EVPN route learned by the second SPINE device of the two SPINE devices to the third VXLAN tunnel endpoint device and the fourth VXLAN tunnel endpoint device in the second inter-device link aggregation group, respectively;
[0026] The EVPN route sent by the first SPINE device and the EVPN route sent by the second SPINE device are received through the third VXLAN tunnel endpoint device and the fourth VXLAN tunnel endpoint device, and the EVPN route sent by the first SPINE device and the EVPN route sent by the second SPINE device are stored in the third VXLAN tunnel endpoint device and in the fourth VXLAN tunnel endpoint device.
[0027] In one implementation of the present application, after determining the virtual addresses corresponding to the first inter-device link aggregation group and the second inter-device link aggregation group, the method further includes:
[0028] Establishing, based on the virtual address corresponding to the first inter-device link aggregation group and the virtual address corresponding to the second inter-device link aggregation group, a VXLAN tunnel between the first VXLAN tunnel endpoint device and the second VXLAN tunnel endpoint device in the first inter-device link aggregation group and between the third VXLAN tunnel endpoint device and the fourth VXLAN tunnel endpoint device in the second inter-device link aggregation group;
[0029] Through the VXLAN tunnel, traffic is forwarded between the first VXLAN tunnel endpoint device, the second VXLAN tunnel endpoint device, the third VXLAN tunnel endpoint device and the fourth VXLAN tunnel endpoint device.
[0030] In one implementation of the present application, before determining the first inter-device link aggregation group and the second inter-device link aggregation group, the method further includes:
[0031] Determine that the two VXLAN tunnel endpoint devices corresponding to the first inter-device link aggregation group do not overlap with the two VXLAN tunnel endpoint devices corresponding to the second inter-device link aggregation group.
[0032] On the other hand, an embodiment of the present application further provides a device for processing EVPN routes in a dual-SPINE MLAG environment, the device comprising:
[0033] at least one processor;
[0034] and, a memory communicatively coupled to the at least one processor;
[0035] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the above-mentioned method for processing EVPN routing in a dual-SPINE MLAG environment.
[0036] On the other hand, an embodiment of the present application further provides a non-volatile computer storage medium storing computer-executable instructions, wherein the computer-executable instructions are configured to:
[0037] This is a method for processing EVPN routes in a dual-SPINE MLAG environment.
[0038] The present invention provides a method, device, and medium for processing EVPN routes in a dual-SPINE MLAG environment, which have at least the following advantages:
[0039] After establishing an underlay route between the VXLAN tunnel endpoint VTEP device and the SPINE device, by determining the first and second cross-device link aggregation groups and their corresponding virtual adjacencies, a BGP neighbor relationship can be established between the first and second cross-device link aggregation groups and the two SPINE devices based on the virtual addresses. This allows the two SPINE devices to learn the next-hop address of the first cross-device link aggregation group and obtain a corresponding EVPN route. The two SPINE devices then forward the corresponding EVPN route to the second cross-device link aggregation group, allowing the third and fourth VXLAN tunnel endpoint devices in the second cross-device link aggregation group to receive and store the EVPN route corresponding to the first cross-device link aggregation group. In the event of a link or device failure, the EVPN route learned based on the non-faulty link between the VXLAN tunnel endpoint device and another SPINE device can be determined, ensuring that the VXLAN tunnel between the VXLAN tunnel endpoint devices remains operational, thereby ensuring traffic forwarding on the VXLAN tunnel endpoint devices and avoiding the technical problem of packet loss caused by VXLAN tunnel failure when traffic hashed to the VTEP device is hashed. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0041] Figure 1 A flowchart of a method for processing EVPN routes in a dual-SPINE MLAG environment provided in an embodiment of the present application;
[0042] Figure 2 A schematic diagram of another method for processing EVPN routes in a dual-SPINE MLAG environment provided in an embodiment of the present application;
[0043] Figure 3 A schematic diagram of the internal structure of a device for processing EVPN routing in a dual-SPINE MLAG environment provided in an embodiment of the present application. DETAILED DESCRIPTION
[0044] To make the purpose, technical solutions, and advantages of this application more clear, the technical solutions of this application will be clearly and completely described below in conjunction with the specific embodiments of this application and the corresponding drawings. Obviously, the embodiments described are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0045] The embodiment of the present application provides a method, device and medium for processing EVPN routes in a dual SPINE MLAG environment. After the underlay route between the VXLAN tunnel endpoint VTEP device and the SPINE device is established, by determining the first cross-device link aggregation group and the second cross-device link aggregation group and the corresponding virtual confrontation, a BGP neighbor relationship between the first cross-device link aggregation group and the second cross-device link aggregation group and the two SPINE devices can be established according to the virtual address, thereby enabling the two SPINE devices to learn the next hop address of the first cross-device link aggregation group and obtain the corresponding EVPN route once, and then the two SPINE devices forward the corresponding EVPN route to the second cross-device link aggregation group. Link aggregation group, so that the third VXLAN tunnel endpoint device and the fourth VXLAN tunnel endpoint device in the second cross-device link aggregation group receive and store the EVPN route corresponding to the first cross-device link aggregation group; in the event of a link failure or device failure, it is possible to determine the EVPN route learned based on the non-faulty link between the VXLAN tunnel endpoint device and another SPINE device, so that the VXLAN tunnel between the VXLAN tunnel endpoint devices remains in operation, thereby ensuring traffic forwarding on the VXLAN tunnel endpoint devices and avoiding the technical problem of packet loss caused by the failure of the VXLAN tunnel when the traffic Hash to the VTEP device is lost. This solves the technical problem in the existing dual-SPINE spine-leaf structure that, in the event of a link failure between the VTEP device and one of the SPINE devices, or a failure of one of the SPINE devices and the route on the VTEP device is learned from this SPINE device, the overlay route between the VTEP device and this SPINE device is withdrawn, the VXLAN tunnel fails, and thus the traffic Hash to the VTEP device is lost.
[0046] The technical solutions proposed in the embodiments of the present application are described in detail below with reference to the accompanying drawings.
[0047] Figure 1 A flowchart of a method for processing EVPN routing in a dual SPINE MLAG environment provided by an embodiment of the present application. Figure 1 As shown, the method for processing EVPN routes in a dual-SPINE MLAG environment provided by the embodiment of the present application mainly includes the following steps:
[0048] 101. Establish underlay routes between each VXLAN tunnel endpoint device and two SPINE devices, determine a first inter-device link aggregation group and a second inter-device link aggregation group, and determine virtual addresses corresponding to the first inter-device link aggregation group and the second inter-device link aggregation group.
[0049] When VTEPs are connected to a spine-and-leaf physical topology, dual SPINE devices and MLAG are provided to ensure service stability between hosts. Hosts are connected to both VTEPs simultaneously, forming an MLAG network between the VTEPs to provide reliable host access. The VTEPs are interconnected with both SPINE devices. If one SPINE device fails, services between hosts can be maintained through the remaining SPINE device.
[0050] First, the server establishes Underlay routing between each VXLAN tunnel endpoint VTEP device and the two SPINE devices, and determines the first cross-device link aggregation group and the second cross-device link aggregation group corresponding to the VTEP device, as well as the virtual address corresponding to the first cross-device link aggregation group and the virtual address corresponding to the second cross-device link aggregation group.
[0051] Specifically, the server determines a first cross-device link aggregation group consisting of a first VXLAN tunnel endpoint device and a second VXLAN tunnel endpoint device, and uses the first cross-device link aggregation group as the gateway for the first VXLAN tunnel endpoint device and the second VXLAN tunnel endpoint device, and determines a second cross-device link aggregation group consisting of a third VXLAN tunnel endpoint device and a fourth VXLAN tunnel endpoint device, and uses the second cross-device link aggregation group as the gateway for the third VXLAN tunnel endpoint device and the fourth VXLAN tunnel endpoint device.
[0052] The server configures the same virtual address for the first VXLAN tunnel endpoint device and the second VXLAN tunnel endpoint device in the first cross-device link aggregation group, so as to obtain the virtual address corresponding to the first cross-device link aggregation group. At the same time, the server also configures the same virtual address for the third VXLAN tunnel endpoint device and the fourth VXLAN tunnel endpoint device in the second cross-device link aggregation group, so as to obtain the virtual address corresponding to the second cross-device link aggregation group.
[0053] Figure 2 This is a structural diagram of another method for processing EVPN routing in a dual-SPINE MLAG environment provided by an embodiment of the present application. Figure 2As shown, the present application discloses an EVPN routing processing in a dual-SPINE MLAG environment, where the server combines the VTEP1 device and the VTEP2 device, i.e., the first VXLAN tunnel endpoint device and the second VXLAN tunnel endpoint device, into a first cross-device link aggregation group, and combines the VTEP3 device and the VTEP4 device, i.e., the third VXLAN tunnel endpoint device and the fourth VXLAN tunnel endpoint device, into a second cross-device link aggregation group. The server virtualizes VTEP1's address, LOOP0a.aaa / 32, to the virtual address corresponding to the first inter-device link aggregation group, namely, LOOP1 eeee / 32. It virtualizes VTEP2's address, LOOP0 bbbb / 32, to the virtual address corresponding to the first inter-device link aggregation group, namely, LOOP1e.eee / 32. It virtualizes VTEP3's address, LOOP0c.ccc / 32, to the virtual address corresponding to the second inter-device link aggregation group, namely, LOOP1 ffff / 32. And it virtualizes VTEP4's address, LOOP0 dddd / 32, to the virtual address corresponding to the second inter-device link aggregation group, namely, LOOP1 ffff / 32. VTEP1 and VTEP2 are connected via peer-links, and VTEP3 and VTEP4 are also connected via peer-links.
[0054] In the event that the link between the VTEP3 device and the SPINE1 device fails, the VTEP3 device finds the EVPN route corresponding to the first inter-device link aggregation group learned from the SPINE2 device, that is, the EVPN route corresponding to the first VXLAN tunnel endpoint device and the second VXLAN tunnel endpoint device. This keeps the VXLAN tunnel in the UP state, thereby enabling traffic forwarding on the VTEP3 device and avoiding the technical problem of traffic packet loss on the VTEP3 device caused by the failure of the VXLAN tunnel between the VTEP3 device and other VTEP devices.
[0055] In one embodiment of the present application, before determining the first cross-device link aggregation group and the second cross-device link aggregation group, the server also needs to determine that the corresponding two VXLAN tunnel endpoint devices in the first cross-device link aggregation group do not overlap with the corresponding two VXLAN tunnel endpoint devices in the second cross-device link aggregation group.
[0056] In one embodiment of the present application, after determining the virtual addresses corresponding to the first cross-device link aggregation group and the second cross-device link aggregation group, the server establishes VXLAN tunnels between the first VXLAN tunnel endpoint device and the second VXLAN tunnel endpoint device in the first cross-device link aggregation group and between the third VXLAN tunnel endpoint device and the fourth VXLAN tunnel endpoint device in the second cross-device link aggregation group based on the virtual address corresponding to the first cross-device link aggregation group and the virtual address corresponding to the second cross-device link aggregation group, and then forwards traffic between the first VXLAN tunnel endpoint device, the second VXLAN tunnel endpoint device, the third VXLAN tunnel endpoint device and the fourth VXLAN tunnel endpoint device through the VXLAN tunnel.
[0057] 102. Establish BGP neighbor relationships between the first inter-device link aggregation group and the second inter-device link aggregation group and the two SPINE devices according to the corresponding virtual addresses, so that the two SPINE devices learn the next hop address of the first inter-device link aggregation group and obtain corresponding EVPN routes.
[0058] The server establishes BGP neighbor relationships between the first cross-device link aggregation group and the second cross-device link aggregation group and the two SPINE devices respectively based on the virtual address corresponding to the first cross-device link aggregation group and the virtual address corresponding to the second cross-device link aggregation group, so that the two SPINE devices can learn the next hop address of the first cross-device link aggregation group based on the established BGP neighbor relationship, and obtain the EVPN routes corresponding to the first VXLAN tunnel endpoint device and the second VXLAN tunnel endpoint device in the first cross-device link aggregation group.
[0059] In one embodiment of the present application, after the server establishes BGP neighbor relationships between the first cross-device link aggregation group and the second cross-device link aggregation group and the two SPINE devices based on the corresponding virtual addresses, the server sends the EVPN routes corresponding to the first VXLAN tunnel endpoint device and the second VXLAN tunnel endpoint device in the first cross-device link aggregation group to the first SPINE device and the second SPINE device of the two SPINE devices based on the virtual address corresponding to the first cross-device link aggregation group, and then based on the EVPN routes corresponding to the first VXLAN tunnel endpoint device and the second VXLAN tunnel endpoint device, the first SPINE device and the second SPINE device learn the next hop addresses corresponding to the first VXLAN tunnel endpoint device and the second VXLAN tunnel endpoint device in the first cross-device link aggregation group, thereby enabling the first SPINE device and the second SPINE device to obtain the EVPN routes corresponding to the first VXLAN tunnel endpoint device and the second VXLAN tunnel endpoint device.
[0060] 103. Forward the EVPN routes corresponding to the first cross-device link aggregation group to the second cross-device link aggregation group through two SPINE devices, so that the third VXLAN tunnel endpoint device and the fourth VXLAN tunnel endpoint device in the second cross-device link aggregation group receive and store the EVPN routes corresponding to the first cross-device link aggregation group.
[0061] The server can forward the EVPN routes corresponding to the first inter-device link aggregation group, that is, the EVPN routes corresponding to the first VXLAN tunnel endpoint device and the second VXLAN tunnel endpoint device, to the second inter-device link aggregation group through the first SPINE device and the second SPINE device of the two SPINE devices, so that the third VXLAN tunnel endpoint device and the fourth VXLAN tunnel endpoint device in the second inter-device link aggregation group can receive the EVPN routes corresponding to the first inter-device link aggregation group, and store the EVPN routes corresponding to the first inter-device link aggregation group in the third VXLAN tunnel endpoint device and the fourth VXLAN tunnel endpoint device, respectively.
[0062] Specifically, based on the virtual address corresponding to the second cross-device link aggregation group, the server sends the EVPN route corresponding to the first cross-device link aggregation group learned by the first SPINE device of the two SPINE devices to the third VXLAN tunnel endpoint device and the fourth VXLAN tunnel endpoint device in the second cross-device link aggregation group, respectively. Moreover, based on the virtual address corresponding to the second cross-device link aggregation group, the server sends the EVPN route corresponding to the first cross-device link aggregation group learned by the second SPINE device of the two SPINE devices to the third VXLAN tunnel endpoint device and the fourth VXLAN tunnel endpoint device, and then receives the EVPN route sent by the first SPINE device and the EVPN route sent by the second SPINE device through the third VXLAN tunnel endpoint device and the fourth VXLAN tunnel endpoint device, and stores the EVPN route sent by the first SPINE device and the EVPN route sent by the second SPINE device in the third VXLAN tunnel endpoint device and the fourth VXLAN tunnel endpoint device.
[0063] 104. In the event of a link failure or device failure, determine an EVPN route learned based on a non-faulty link between the corresponding VXLAN tunnel endpoint device and another SPINE device to implement traffic forwarding on the VXLAN tunnel endpoint device.
[0064] In the event of a link failure or device failure, the server can determine the EVPN route learned based on the non-faulty link between the VXLAN tunnel endpoint device corresponding to the failure and another SPINE device, so that the VXLAN tunnel remains in operation and traffic forwarding on the VXLAN tunnel endpoint device can be achieved.
[0065] Specifically, when a link between any VXLAN tunnel endpoint device in the second cross-device link aggregation group and any SPINE device in the two SPINE devices fails, or when any SPINE device in the two SPINE devices fails, the server revokes the overlay route between the VXLAN tunnel endpoint device and the corresponding SPINE device, and then determines in the VXLAN tunnel endpoint device the EVPN route learned from the other SPINE device based on the non-faulty link between the VXLAN tunnel endpoint device and the other SPINE device in the two SPINE devices. Based on the learned EVPN route, the VXLAN tunnel between the VXLAN tunnel endpoint device in the second cross-device link aggregation group and the first cross-device link aggregation group is put into operation, thereby realizing traffic forwarding on the VXLAN tunnel endpoint device.
[0066] In traditional implementations, a VTEP device can only store routes sent to it by a single SPINE device. If the uplink port on the VTEP device that receives the SPINE route fails, the EVPN routes received from the SPINE device are lost, and the VXLAN tunnel goes down. At this point, the VTEP device needs to relearn the EVPN routes from another SPINE device. During this learning process, packets destined for the VTEP device may be lost.
[0067] The present application provides a method for processing EVPN routes in a dual-SPINE MLAG environment. The present application forms a cross-device link aggregation group by combining VTEP1 and VTEP2, thereby enabling VTEP3 and VTEP4 to simultaneously store EVPN routes sent by different SPINE devices. In the event that one of the SPINE devices fails, the EVPN routes sent by the other SPINE device are preferred, thereby preventing the VXLAN tunnel from going down and maintaining an UP state. This avoids packet loss and improves the forwarding efficiency of service messages.
[0068] The above is an embodiment of the method proposed in this application. Based on the same inventive concept, the embodiment of this application also provides a device for processing EVPN routing in a dual SPINE MLAG environment, whose structure is as follows Figure 3 shown.
[0069] Figure 3 This is a schematic diagram of the internal structure of a device for processing EVPN routing in a dual SPINE MLAG environment provided by an embodiment of the present application. Figure 3 As shown, the equipment includes:
[0070] at least one processor;
[0071] and, a memory communicatively coupled to the at least one processor;
[0072] The memory stores instructions that can be executed by at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to:
[0073] Establish underlay routes between each VXLAN tunnel endpoint device and the two SPINE devices, determine a first inter-device link aggregation group and a second inter-device link aggregation group, and determine virtual addresses corresponding to the first inter-device link aggregation group and the second inter-device link aggregation group;
[0074] Establishing BGP neighbor relationships between the first and second inter-device link aggregation groups and the two SPINE devices based on the corresponding virtual addresses, so that the two SPINE devices learn the next-hop address of the first inter-device link aggregation group and obtain corresponding EVPN routes.
[0075] Forwarding the EVPN routes corresponding to the first inter-device link aggregation group to the second inter-device link aggregation group through the two SPINE devices, so that the third VXLAN tunnel endpoint device and the fourth VXLAN tunnel endpoint device in the second inter-device link aggregation group receive and store the EVPN routes corresponding to the first inter-device link aggregation group;
[0076] In the event of a link failure or device failure, the EVPN route learned based on the non-faulty link between the corresponding VXLAN tunnel endpoint device and another SPINE device is determined to implement traffic forwarding on the VXLAN tunnel endpoint device.
[0077] The embodiment of the present application further provides a non-volatile computer storage medium storing computer-executable instructions, wherein the computer-executable instructions are configured as follows:
[0078] Establish underlay routes between each VXLAN tunnel endpoint device and the two SPINE devices, determine a first inter-device link aggregation group and a second inter-device link aggregation group, and determine virtual addresses corresponding to the first inter-device link aggregation group and the second inter-device link aggregation group;
[0079] Establishing BGP neighbor relationships between the first and second inter-device link aggregation groups and the two SPINE devices based on the corresponding virtual addresses, so that the two SPINE devices learn the next-hop address of the first inter-device link aggregation group and obtain corresponding EVPN routes.
[0080] Forwarding the EVPN routes corresponding to the first inter-device link aggregation group to the second inter-device link aggregation group through the two SPINE devices, so that the third VXLAN tunnel endpoint device and the fourth VXLAN tunnel endpoint device in the second inter-device link aggregation group receive and store the EVPN routes corresponding to the first inter-device link aggregation group;
[0081] In the event of a link failure or device failure, the EVPN route learned based on the non-faulty link between the corresponding VXLAN tunnel endpoint device and another SPINE device is determined to implement traffic forwarding on the VXLAN tunnel endpoint device.
[0082] In the 1990s, technological improvements could be clearly distinguished as either hardware improvements (for example, improvements to circuit structures like diodes, transistors, and switches) or software improvements (improvements to process flows). However, with the advancement of technology, many process flow improvements today can now be considered direct improvements to hardware circuit structures. Designers almost always create the corresponding hardware circuit structure by programming the improved process flow into the hardware circuit. Therefore, it cannot be said that a process flow improvement cannot be implemented using hardware modules. For example, a programmable logic device (PLD), such as a field programmable gate array (FPGA), is an integrated circuit whose logical function is determined by user programming. Designers can "integrate" a digital system on a PLD through their own programming, without having to hire a chip manufacturer to design and manufacture a dedicated integrated circuit chip. Moreover, nowadays, instead of manually fabricating integrated circuit chips, this programming is mostly done using "logic compiler" software. This is similar to the software compiler used when developing programs. Before compilation, the original code must also be written in a specific programming language, called a hardware description language (HDL). There is not just one HDL, but many, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art will also understand that by simply programming the method flow in one of these hardware description languages and then programming it into an integrated circuit, a hardware circuit that implements the logic method flow can be easily obtained.
[0083] The controller can be implemented in any suitable manner. For example, the controller can take the form of a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro)processor, logic gates, switches, application-specific integrated circuits (ASICs), programmable logic controllers, and embedded microcontrollers. Examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320. The memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art will also know that in addition to implementing the controller in a purely computer-readable program code format, the controller can be implemented in the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers, and embedded microcontrollers by logically programming the method steps. Therefore, such a controller can be considered a hardware component, and the devices included therein for implementing various functions can also be considered as structures within the hardware component. Or even, the devices for implementing various functions can be considered as both software modules that implement the method and structures within the hardware component.
[0084] The systems, devices, modules, or units described in the above embodiments may be implemented by computer chips or entities, or by products having certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
[0085] For the convenience of description, the above devices are described as being divided into various units according to their functions. Of course, when implementing this specification, the functions of each unit can be implemented in the same or multiple software and / or hardware.
[0086] Those skilled in the art will appreciate that the embodiments of this specification may be provided as methods, systems, or computer program products. Therefore, the embodiments of this specification may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the embodiments of this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0087] This specification is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of this specification. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0088] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.
[0089] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing the instructions executed on the computer or other programmable device for implementing the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0090] In a typical configuration, a computing device includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory.
[0091] Memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
[0092] Computer-readable media includes permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. The information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include transitory computer-readable media (transitory media), such as modulated data signals and carrier waves.
[0093] It should also be noted that the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, commodity, or apparatus that includes a series of elements includes not only those elements but also other elements not explicitly listed, or includes elements inherent to such process, method, commodity, or apparatus. In the absence of further limitations, an element defined by the phrase "comprises a ..." does not exclude the presence of other identical elements in the process, method, commodity, or apparatus that includes the element.
[0094] This specification may be described in the general context of computer-executable instructions, such as program modules, executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, and the like that perform specific tasks or implement specific abstract data types. This specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media, including storage devices.
[0095] The various embodiments in this specification are described in a progressive manner. Similar portions between the various embodiments can be referenced to each other, and each embodiment focuses on the differences from the other embodiments. In particular, the device, apparatus, and non-volatile computer storage medium embodiments are generally similar to the method embodiments, so their descriptions are relatively simplified. For relevant details, refer to the descriptions of the method embodiments.
[0096] The foregoing description of this specification describes specific embodiments. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims can be performed in an order different from that described in the embodiments and still achieve the desired results. Furthermore, the processes depicted in the accompanying drawings do not necessarily require the specific order shown or the sequential order to achieve the desired results. In certain embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0097] The foregoing description is merely one or more embodiments of this specification and is not intended to limit this specification. It will be apparent to those skilled in the art that various modifications and variations may be made to one or more embodiments of this specification. Any modifications, equivalent substitutions, or improvements made within the spirit and principles of one or more embodiments of this specification are intended to be within the scope of the claims of this specification.
Claims
1. A method for processing EVPN routing in a dual SPINE MLAG environment, characterized in that: The method comprises: Establish Underlay routes between each VXLAN tunnel endpoint device and two SPINE devices respectively, determine a first cross-device link aggregation group and a second cross-device link aggregation group, and determine virtual addresses corresponding to the first cross-device link aggregation group and the second cross-device link aggregation group; According to the corresponding virtual address, establish a BGP neighbor relationship between the first cross-device link aggregation group and the second cross-device link aggregation group and the two SPINE devices, so that the two SPINE devices learn the next hop address of the first cross-device link aggregation group and obtain the corresponding EVPN route; Forwarding the EVPN route corresponding to the first cross-device link aggregation group to the second cross-device link aggregation group through the two SPINE devices, so that the third VXLAN tunnel endpoint device and the fourth VXLAN tunnel endpoint device in the second cross-device link aggregation group receive and store the EVPN route corresponding to the first cross-device link aggregation group; In the event of a link failure or device failure, determining an EVPN route learned based on a non-failed link between a corresponding VXLAN tunnel endpoint device and another SPINE device to implement traffic forwarding on the VXLAN tunnel endpoint device; In the case of a link failure or a device failure, determining an EVPN route learned based on a non-faulty link between a corresponding VXLAN tunnel endpoint device and another SPINE device to implement traffic forwarding on the VXLAN tunnel endpoint device specifically includes: In the event that a link between any VXLAN tunnel endpoint device in the second inter-device link aggregation group and any SPINE device of the two SPINE devices fails, or in the event that any SPINE device of the two SPINE devices fails, the Overlay route between the VXLAN tunnel endpoint device and the corresponding SPINE device is revoked; In the VXLAN tunnel endpoint device, determining an EVPN route learned from another SPINE device based on a non-failed link between the VXLAN tunnel endpoint device and the other SPINE device of the two SPINE devices; Based on the EVPN route, the VXLAN tunnel between the VXLAN tunnel endpoint device in the second cross-device link aggregation group and the first cross-device link aggregation group is in a running state to implement traffic forwarding on the VXLAN tunnel endpoint device; The determining of the first inter-device link aggregation group and the second inter-device link aggregation group specifically includes: Determine a first inter-device link aggregation group consisting of a first VXLAN tunnel endpoint device and a second VXLAN tunnel endpoint device, and use the first inter-device link aggregation group as a gateway between the first VXLAN tunnel endpoint device and the second VXLAN tunnel endpoint device; And determine a second inter-device link aggregation group consisting of a third VXLAN tunnel endpoint device and a fourth VXLAN tunnel endpoint device, and use the second inter-device link aggregation group as a gateway between the third VXLAN tunnel endpoint device and the fourth VXLAN tunnel endpoint device; The determining of the virtual addresses corresponding to the first inter-device link aggregation group and the second inter-device link aggregation group specifically includes: Configuring the same virtual address for a first VXLAN tunnel endpoint device and a second VXLAN tunnel endpoint device in the first inter-device link aggregation group to obtain a virtual address corresponding to the first inter-device link aggregation group; And configure the same virtual address for the third VXLAN tunnel endpoint device and the fourth VXLAN tunnel endpoint device in the second cross-device link aggregation group to obtain the virtual address corresponding to the second cross-device link aggregation group.
2. The method for processing EVPN routing in a dual SPINE MLAG environment according to claim 1, characterized in that: After establishing the BGP neighbor relationship between the first inter-device link aggregation group and the second inter-device link aggregation group and the two SPINE devices according to the corresponding virtual addresses, the method further includes: Based on the virtual address corresponding to the first inter-device link aggregation group, the EVPN routes corresponding to the first VXLAN tunnel endpoint device and the second VXLAN tunnel endpoint device in the first inter-device link aggregation group are sent to the first SPINE device and the second SPINE device of the two SPINE devices; Based on the corresponding EVPN route, the first SPINE device and the second SPINE device learn the next hop addresses corresponding to the first VXLAN tunnel endpoint device and the second VXLAN tunnel endpoint device in the first cross-device link aggregation group to obtain the corresponding EVPN route.
3. The method for processing EVPN routing in a dual SPINE MLAG environment according to claim 1, characterized in that: The forwarding of the EVPN route corresponding to the first inter-device link aggregation group to the second inter-device link aggregation group through the two SPINE devices, so that the third VXLAN tunnel endpoint device and the fourth VXLAN tunnel endpoint device in the second inter-device link aggregation group receive and store the EVPN route corresponding to the first inter-device link aggregation group, specifically includes: Based on the virtual address corresponding to the second inter-device link aggregation group, send the corresponding EVPN route learned by the first SPINE device of the two SPINE devices to the third VXLAN tunnel endpoint device and the fourth VXLAN tunnel endpoint device in the second inter-device link aggregation group respectively; And based on the virtual address corresponding to the second inter-device link aggregation group, sending the corresponding EVPN route learned by the second SPINE device of the two SPINE devices to the third VXLAN tunnel endpoint device and the fourth VXLAN tunnel endpoint device in the second inter-device link aggregation group respectively; The EVPN route sent by the first SPINE device and the EVPN route sent by the second SPINE device are received through the third VXLAN tunnel endpoint device and the fourth VXLAN tunnel endpoint device, and the EVPN route sent by the first SPINE device and the EVPN route sent by the second SPINE device are stored in the third VXLAN tunnel endpoint device and in the fourth VXLAN tunnel endpoint device.
4. The method for processing EVPN routing in a dual SPINE MLAG environment according to claim 1, characterized in that: After determining the virtual addresses corresponding to the first inter-device link aggregation group and the second inter-device link aggregation group, the method further includes: Based on the virtual address corresponding to the first cross-device link aggregation group and the virtual address corresponding to the second cross-device link aggregation group, establish a VXLAN tunnel between the first VXLAN tunnel endpoint device and the second VXLAN tunnel endpoint device in the first cross-device link aggregation group and between the third VXLAN tunnel endpoint device and the fourth VXLAN tunnel endpoint device in the second cross-device link aggregation group; Through the VXLAN tunnel, traffic forwarding is performed between the first VXLAN tunnel endpoint device, the second VXLAN tunnel endpoint device, the third VXLAN tunnel endpoint device and the fourth VXLAN tunnel endpoint device.
5. The method for processing EVPN routing in a dual SPINE MLAG environment according to claim 1, characterized in that: Before determining the first inter-device link aggregation group and the second inter-device link aggregation group, the method further includes: Determine that the two corresponding VXLAN tunnel endpoint devices in the first cross-device link aggregation group do not overlap with the two corresponding VXLAN tunnel endpoint devices in the second cross-device link aggregation group.
6. A device for processing EVPN routing in a dual SPINE MLAG environment, characterized in that: The device comprises: at least one processor; and, a memory communicatively coupled to the at least one processor; The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute a method for processing EVPN routing in a dual SPINE MLAG environment as described in any one of claims 1-5.
7. A non-volatile computer storage medium storing computer executable instructions, characterized in that: The computer executable instructions are configured to: A method for processing EVPN routing in a dual SPINE MLAG environment as described in any one of claims 1 to 5.
