ESI dual-homing link switching method, system, device and medium

By initiating an address resolution request after receiving host route revocation information in the EVPN network, generating and announcing the host route, the problem of fast switching in the event of a link failure in EVPN dual-homing access scenarios is solved, achieving fast link switching and high network availability.

CN120750842APending Publication Date: 2025-10-03SHEN ZHOU SHU MA WANG LUO BEI JING YOU XIAN GONG SI
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511037981.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-07-28
Publication Date
2025-10-03

AI Technical Summary

Technical Problem

In EVPN dual-homing access scenarios, service switching takes a long time when a link fails, and rapid convergence is impossible. Existing technologies cannot achieve fast link switching.

Method used

After receiving the host route revocation information, an address resolution request is initiated to the site. If an address resolution reply is received within a preset time, the host route is generated and notified to the relevant devices to achieve link switching.

Benefits of technology

It achieves fast switching in the event of a link failure, reduces communication interruption time, and ensures high availability and stability of the network.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120750842A_ABST
    Figure CN120750842A_ABST
Patent Text Reader

Abstract

The invention relates to an ESI dual-homing link switching method, system and device and a medium, and relates to the field of communication. The method comprises the following steps: initiating an address resolution request to a site under the condition of receiving host routing revocation information for the site sent by a second access device; if an address resolution reply of the site is received under the condition that the preset time threshold is not exceeded, generating a host route for the site according to the address resolution reply and notifying the host route to the second access device and the third access device to realize link switching; wherein the third access equipment comprises equipment except the first access equipment and the second access equipment in an Ethernet virtual private EVPN (Ethernet Virtual Private Network) in which the first access equipment is located. By adopting the method, rapid switching of links can be realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technologies, and in particular to an ESI dual-homing link switching method, system, device, and medium. Background Art

[0002] In the Ethernet VPN over Virtual Extensible LAN (EVPN) technology solution, the Ethernet Segment Identifier (ESI) is a key concept. In EVPN dual-homing scenarios, sites connect to multiple access devices through static link aggregation to form a high-availability architecture.

[0003] like Figure 1 As shown in the figure, the first access device, the second access device, the third access device (a leaf switch), and the third access device (a spine switch) form the basic EVPN distributed gateway multi-homing access scenario. A site connects to the first and second access devices through static link aggregation, achieving dual-homing.

[0004] When a site accesses a tunnel, it sends an Address Resolution Protocol (ARP) request to the distributed gateway for the gateway address. The ARP request message from the site is hashed and routed along one of the aggregated links. For ease of analysis, the default hash calculation selects the second access device. When the second access device learns the site's host ARP entry, it generates an EVPN Type 2 route (for MAC / IP address reachability) and advertises it to the first access device and the third access device (a leaf node switch) via the third access device (a spine switch). After receiving the site's Type 2 host route, the first access device generates a host ARP entry for the site based on the ESI information carried in the host route. After receiving the site's Type 2 host route, the third access device (a leaf node switch) generates a host route entry for the site. Based on the ESI information carried in the host route, the host route to the site has two next hops: one to the first access device and the other to the second access device, implementing ECMP (equal-cost multi-path routing).

[0005] When the link between the site and the second access device fails, the ARP host table entry to the site on the second access device is deleted, and then the site's type 2 host route withdrawal information is sent, causing the ARP table entry and host route to the site on the first access device and the third access device - the leaf node switch device to be deleted. At this time, other sites cannot access the site through the host route. The first access device can only re-trigger the ARP learning of the site host based on the service traffic before other sites can access the site again. As a result, in the dual-homing access scenario, the service switching time is long when the link fails, and fast convergence cannot be achieved. Summary of the Invention

[0006] The present application provides an ESI dual-homing link switching method, system, device and medium, which can achieve rapid link switching.

[0007] To achieve the above objectives, this application adopts the following technical solutions: In a first aspect, the present application provides an ESI dual-homing link switching method, comprising: Initiating an address resolution request to the site upon receiving host route revocation information for the site sent by the second access device; If an address resolution reply is received from the site within a preset time threshold, a host route for the site is generated based on the address resolution reply and notified to the second access device and the third access device to achieve link switching; wherein the third access device includes devices other than the first access device and the second access device in the Ethernet virtual private EVPN network where the first access device is located.

[0008] In one embodiment, if no address resolution response is received from the site within a preset time threshold, the address table entry of the site is deleted, and the address resolution learning is waited for service traffic to trigger.

[0009] In one embodiment, the second access device and the first access device are leaf node switches in the EVPN network, and other network devices include backbone switches and other leaf node switches in the EVPN network. The site accesses the second access device and the first access device through static link aggregation, and the tunnel entrances of the second access device and the first access device are configured with the same Ethernet segment identifier ESI information.

[0010] In one embodiment, the method includes: In the event that a link between the second access device and the site fails, host route revocation information for the site is sent to the first access device, so that the first access device receives an address resolution reply from the site within a preset time threshold, regenerates the host route for the site based on the address resolution reply, and notifies the second access device and the third access device to achieve link switching.

[0011] In one embodiment, link recovery processing includes: When the link between the second access device and the site is restored, Ethernet auto-discovery routing EVPN type 1 and Ethernet segment routing EVPN type 4 are advertised in the network; and the address table entry of the site is regenerated based on the host route for the site received from the first access device.

[0012] In one embodiment, the method includes: Upon receiving the host route announced by the first access device, the routing table entry of the site is updated; wherein the update operation includes deleting the routing table entry pointing to the second access device as the next hop, and retaining the routing table entry pointing to the first access device as the next hop; wherein, upon receiving the host route withdrawal information for the site sent by the second access device, the first access device initiates an address resolution request to the site, and receives the address resolution reply from the site within a preset time threshold, generates a host route for the site based on the address resolution reply and announces it to the third access device to achieve link switching.

[0013] In one embodiment, the method includes: Based on the received Ethernet auto-discovery route EVPN type 1 and Ethernet segment route EVPN type 4, equal-cost routes pointing to the second access device and the first access device are regenerated.

[0014] In a second aspect, the present application provides an ESI dual-homing link switching system, including: The first access device is configured to, upon receiving host route revocation information for a site from the second access device, initiate an address resolution request to the site; if an address resolution reply is received from the site within a preset time threshold, generate a host route for the site based on the address resolution reply and notify the reply to the second access device and a third access device to implement link switching; wherein the third access device includes a device other than the first access device and the second access device in the Ethernet virtual private network (EVPN) in which the first access device is located; The second access device is configured to, when a link between the second access device and the site fails, send host route revocation information for the site to the first access device, so that the first access device receives an address resolution reply from the site within a preset time threshold, regenerates a host route for the site based on the address resolution reply, and notifies the regenerate host route to the second access device and the third access device, thereby implementing link switching; The third access device is configured to update the routing table entry of the site upon receiving the host route announced by the first access device; wherein the update operation includes deleting the routing table entry pointing to the second access device as the next hop, and retaining the routing table entry pointing to the first access device as the next hop; wherein, upon receiving the host route withdrawal information for the site sent by the second access device, the first access device initiates an address resolution request to the site, and receives the address resolution reply from the site within a preset time threshold, generates the host route for the site based on the address resolution reply and announces it to the third access device to achieve link switching.

[0015] In a third aspect, the present application provides a computing device, including a memory and a processor; One or more computer programs are stored in the memory, and the one or more computer programs include instructions; when the instructions are executed by the processor, the computing device executes the method as described in any one of the second aspects.

[0016] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium is used to store a computer program, and the computer program is used to execute the method as described in any one of the second aspects.

[0017] In a fifth aspect, the present application provides a computer program product, which includes one or more computer instructions. When the computer instructions are executed by a computer, the computer executes the method as described in any one of the second aspects.

[0018] It can be seen from the above technical solution that this application has at least the following beneficial effects: In this application, upon receiving host route revocation information for a site from a second access device, an address resolution request is initiated to the site, laying the foundation for obtaining the site's address in advance before service traffic is triggered. Furthermore, if an address resolution reply is received from the site within a preset time threshold, a host route for the site is generated based on the address resolution reply and notified to the second and third access devices, laying the foundation for rapid link switching. This solution provides a basis for determining the site's host route by proactively initiating an address resolution request to the site. Furthermore, by notifying the site's host route to the second and third access devices, rapid link switching is achieved.

[0019] It should be understood that the description of technical features, technical solutions, beneficial effects or similar language in this application does not imply that all features and advantages can be realized in any single embodiment. On the contrary, it is understood that the description of a feature or beneficial effect means that a specific technical feature, technical solution or beneficial effect is included in at least one embodiment. Therefore, the description of a technical feature, technical solution or beneficial effect in this specification does not necessarily refer to the same embodiment. Furthermore, the technical features, technical solutions and beneficial effects described in the present embodiment can also be combined in any appropriate manner. Those skilled in the art will understand that the embodiment can be implemented without one or more specific technical features, technical solutions or beneficial effects of a specific embodiment. In other embodiments, additional technical features and beneficial effects can also be identified in specific embodiments that do not embody all embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1 This is an application environment diagram of an ESI dual-homing link switching method provided in an embodiment of the present application; Figure 2 A schematic diagram of a flow chart of an ESI dual-homing link switching method provided in an embodiment of the present application; Figure 3 A structural block diagram of an ESI dual-homing link switching device provided in an embodiment of the application; Figure 4 This is a structural block diagram of another ESI dual-homing link switching device provided in the application embodiment; Figure 5 This is a structural block diagram of another ESI dual-homing link switching device provided in the application embodiment; Figure 6 This is a diagram of the internal structure of a computer device provided in an embodiment of the application. DETAILED DESCRIPTION

[0021] The terms "second", "first" and "second" in this application specification and the accompanying drawings are used to distinguish different objects rather than to limit a specific order.

[0022] In the embodiments of this application, words such as "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of this application should not be interpreted as being preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "for example" is intended to present the relevant concepts in a concrete manner.

[0023] To make the description of the following embodiments clear and concise, a brief introduction to the related technologies is first given: VXLAN (Virtual eXtensible Local Area Network) is an overlay network technology used to build a virtual Layer 2 network on top of an existing IP network (underlay). It is widely used in scenarios such as cloud computing, data center networks (DCNs), and software-defined networking (SDNs). VXLAN EVPN (Virtual eXtensible Local Area Network Ethernet Virtual Private Network) is a core overlay technology for modern data center networks and cloud computing. It combines the VXLAN data plane with the EVPN control plane to provide a scalable, automated, and high-performance Layer 2 / Layer 3 virtual network solution.

[0024] In the EVPN technology solution, the Ethernet Segment Identifier (ESI) is a key concept used to identify physical or logical links in multi-homing scenarios. ESI multi-homing allows a single device (such as a CE (Customer Edge Device)) to connect to multiple PEs (Provider Edge Devices) via multiple links, achieving high availability and load balancing.

[0025] In order to make the technical solution of this application clearer and easier to understand, the application scenarios of the technical solution of this application are introduced below with reference to the accompanying drawings. Figure 1 As shown in the figure, this figure is a schematic diagram of an application scenario provided by an embodiment of the present application.

[0026] In this application scenario, the first access device, the second access device, the third access device (a leaf switch), and the third access device (a spine switch) form the basic EVPN distributed gateway multi-homing access scenario. Sites access the first and second access devices through static link aggregation.

[0027] In order to make the technical solution of this application clearer and easier to understand, the following describes an ESI dual-homing link switching method applied to a first access device provided by an embodiment of this application in combination with the above application scenario. Figure 2 As shown in the figure, this figure is a flowchart of an ESI dual-homing link switching method provided in an embodiment of the present application.

[0028] S201: Upon receiving host route revocation information for a site sent by a second access device, initiate an address resolution request to the site.

[0029] The host route withdrawal message is a routing update notification that contains the site's identification information (such as the IP address and MAC-Media Access Control address) and the corresponding route entry invalidation flag. Its core function is to clearly inform other devices in the network that the host routing path that originally reached the site through the second access device is no longer available due to a link failure. Therefore, they must immediately remove or mark the invalid route from their respective routing tables to prevent subsequent data packets from being forwarded through this failed path, thereby reducing communication interruption time and invalid traffic. An address resolution request is a broadcast query initiated by a network device within a local area network (LAN) via the Address Resolution Protocol (ARP) protocol. The purpose of the request is to obtain the corresponding MAC address based on a known IP address. In this embodiment, it is an active response by the first access device after receiving the host route revocation information. Because the site is connected to both the second access device and the first access device via static link aggregation (i.e., the site forms a redundant connection with both access devices), and the tunnel entrances of the two access devices are configured with the same Ethernet segment identifier (ESI), this means that the second access device and the first access device belong to the same redundancy group within the EVPN network and jointly provide access services to the site. Therefore, upon learning that the link between the second access device and the site has failed, the first access device immediately sends an address resolution request to the site to query the site's current IP address-MAC address mapping to confirm whether the site can still access the network through the first access device.

[0030] It should be noted that the second access device and the first access device are leaf node switches in the EVPN network, and other network devices include backbone switches and other leaf node switches in the EVPN network. The site accesses the second access device and the first access device through static link aggregation, and the tunnel entrances of the second access device and the first access device are configured with the same Ethernet segment identifier ESI information.

[0031] For example, in the event of a link failure between the second access device and the site, in order to ensure the accuracy of network routing and the continuity of communication, the second access device will generate and send host route withdrawal information to other devices in the entire EVPN network (including the first access device and the third access device, etc.); further, when the first access device in the same network receives the host route withdrawal information for the site sent by the second access device, it will actively initiate an address resolution request to the site to obtain the address information of the site.

[0032] S202: If an address resolution reply is received from the site within a preset time threshold, a host route for the site is generated according to the address resolution reply and notified to the second access device and the third access device to implement link switching.

[0033] Among them, the time threshold can be pre-set and can be flexibly configured according to the actual situation of the network. For example, it can be appropriately extended when the network is congested (such as adjusted from 500ms to 1s) to avoid misjudgment due to link delay; shortened when the network is unobstructed (such as set to 300ms) to speed up fault handling efficiency and ensure the timeliness of link switching; the address resolution reply can be a response message containing its own address information returned by the site after receiving the address resolution request of the first access device (such as the mapping relationship between the site's IP address and the corresponding MAC address); the host route is a routing entry generated by the first access device based on the address resolution reply, which accurately points to the site, including the site's IP address, outbound interface (that is, the interface connecting the first access device to the site), next hop information, etc., which can enable other access devices in the network to clearly "the site can be reached through the first access device."

[0034] After the host route is generated, the first access device notifies the second and third access devices (such as other leaf node switches and backbone switches in the EVPN network) of the host route, ensuring that all network devices update their routing tables and switch the traffic originally sent to the second access device to the first access device, completing seamless link switching.

[0035] The third access device includes a device other than the first access device and the second access device in the Ethernet virtual private EVPN network where the first access device is located; optionally, Figure 1 The third access device in the system includes leaf node switches and backbone switches.

[0036] For example, assume that a site accesses the first access device and the second access device through static link aggregation. When the link between the second access device and the site is interrupted, the second access device sends a host route withdrawal message. Then, after receiving the host route withdrawal message, the first access device initiates an address resolution request. If a site reply (including the mapping of IP: 192.168.1.1 / 24 and MAC address 00:11:22:33:44:55) is received within a preset threshold (such as 500ms), a host route "192.168.1.1 / 24→outgoing interface Port1 / 1" is generated and announced to the second access device and the third access device. After all network devices update the routes, all traffic sent to 192.168.1.1 / 24 is forwarded through the first access device to achieve link switching.

[0037] Optionally, if no address resolution response is received from the site within a preset time threshold, the address table entry of the site is deleted, and the address resolution learning is waited for service traffic to trigger.

[0038] For example, if the first access device does not receive an address resolution response from the site within a preset time threshold (possibly due to a power outage at the site or a failure of both links), it will delete the site address entry (delete the site's IP-MAC mapping entry), which means that the first access device will clear the site address information cached locally and no longer consider itself to have a valid connection with the site; furthermore, the first access device will enter a "passive waiting" state, that is, it will no longer actively initiate a resolution request, but wait for subsequent service traffic to trigger a new address resolution process - for example, when there are other devices (such as Figure 1 When the first access device sends data to the site, it will automatically initiate a new address resolution request due to "no corresponding address entry" and re-verify the link availability.

[0039] It's important to note that if the site responds to address resolution requests (i.e., responds with an address resolution reply within a preset time threshold), the first access device confirms that the link between itself and the site is unobstructed. It can then publish new host routing information within the EVPN network, notifying other devices (i.e., the second and third access devices) to update the forwarding path to the site and switch traffic to the first access device. If no response is received, it indicates that the site may be completely disconnected from the network or experiencing network congestion. This process effectively ensures high site access availability and rapid link failover through dynamic switching of redundant links and real-time updates of routing information. Furthermore, through a combination of "active detection and passive triggering," it ensures rapid failover in the event of a link failure while preventing devices from excessively occupying network resources due to invalid requests, thus balancing network availability and stability.

[0040] The above-mentioned ESI dual-homing link switching method initiates an address resolution request to the site upon receiving host route revocation information for the site from the second access device. This lays the foundation for pre-acquiring the site's address before service traffic is triggered. Furthermore, if the site's address resolution reply is received within a preset time threshold, the host route for the site is generated based on the address resolution reply and notified to the second and third access devices, laying the foundation for rapid link switching. This solution provides a basis for determining the site's host route by proactively initiating an address resolution request to the site. Furthermore, by notifying the site's host route to the second and third access devices, rapid link switching is achieved.

[0041] Based on the above embodiments, the present invention provides an ESI dual-homing link switching method for a second access device. Specifically, it includes: In the event that a link between the second access device and the site fails, host route revocation information for the site is sent to the first access device, so that the first access device receives an address resolution reply from the site within a preset time threshold, regenerates the host route for the site based on the address resolution reply, and notifies the second access device and the third access device to achieve link switching.

[0042] Exemplarily, the second access device may confirm a link failure with the site through a multi-level detection mechanism to ensure the accuracy of fault judgment, such as physical layer detection (e.g., directly determining physical link disconnection through physical signals such as optical module signal loss (LOS) and electrical interface link interruption), link layer detection (e.g., periodically sending LLDP (Link Layer Discovery Protocol) messages or custom heartbeat frames, and determining a link logical failure if no response is received from the site for three consecutive periods (e.g., once every 100 ms), and service layer detection (e.g., monitoring the service traffic of the site, and assisting in verifying link unavailability if there is no bidirectional traffic and no protocol message interaction for five seconds). Furthermore, the second access device generates host route revocation information and notifies other devices in the network (including the first access device and the third access device) through the BGP EVPN protocol. The information content may include: Site identification information: IP address (such as 192.168.1.1 / 24), MAC address (such as 00:11:22:33:44:55); Redundancy group identifier: The ESI shared with the first access device (for example, 00:00:00:00:00:01:00:00:00:01), used to identify the redundant link group to which the site is connected. Route failure indicator: This clearly indicates that the original host route (Type 2 route) that reached the site through the second access device has failed. Fault timestamp: records the exact time when a link fault occurs, facilitating network tracing.

[0043] Based on the multicast characteristics of BGP EVPN, the revocation information can be quickly propagated to the entire EVPN domain, ensuring that the first access device and the third access device (other leaf nodes and backbone switches) are aware of the route change in a timely manner.

[0044] Optionally, link recovery processing is also included, including: When the link between the second access device and the site is restored, Ethernet auto-discovery routing EVPN type 1 and Ethernet segment routing EVPN type 4 are advertised in the network; and the address table entry of the site is regenerated based on the host route for the site received from the first access device.

[0045] For example, in an EVPN network, after the link between a second access device and a site recovers from a failure, the second access device must reintegrate into the site's redundant access architecture to achieve dynamic coordination of the redundant link and network routing consistency. Optionally, the second access device can confirm that the link with the site has been restored through multi-dimensional detection, avoiding misoperation caused by transient jitter. Furthermore, the second access device can advertise Ethernet auto-discovery routes (EVPN Type 1) and Ethernet segment routes (EVPN Type 4) to the EVPN network. Through these two mechanisms, redundancy group information synchronization and routing conflict avoidance are achieved. Furthermore, after advertising Type 1 and Type 4 routes, the second access device must obtain the site's current address information from the first access device to quickly rebuild its local address table and avoid service interruption. If the second access device has an old address entry (recorded before the link failure) in its local cache, it compares the update time in the first access device's host route and overwrites the old entry with the latest route information to ensure address information consistency.

[0046] Optionally, after the address table entry is rebuilt, the second access device and the first access device can negotiate a traffic load strategy (such as a load sharing mode - determining the link based on a hash algorithm, or a master-slave backup mode) through the EVPN protocol to achieve efficient collaboration after the link is restored.

[0047] It should be noted that EVPN Type 1 includes information such as the Ethernet Segment Identifier (ESI), source route identifier, route target, and recovery timestamp, which is used to announce to other devices in the network (especially the first access device) that "the second access device has recovered to an available state" and transmit redundancy group identity information to avoid route splitting; EVPN Type 4 includes information such as ESI, access device identifier, network segment status, and maximum transmission unit, which is used to announce the attribute information of the Ethernet segment (that is, the link connecting to the site) to which the second access device belongs to the network, helping other devices to identify the redundancy status and access capabilities of the network segment.

[0048] In an embodiment of the present application, by sending host route revocation information for the site to the first access device when a link failure occurs between the second access device and the site, the link failure is promptly notified to other access devices in the network, providing conditions for subsequent timely link switching and laying the foundation for the timeliness of link switching.

[0049] Based on the above embodiment, the present invention provides an ESI dual-homing link switching method applied to a third access device. Specifically, it includes: When the host route advertised by the first access device is received, an update operation is performed on the routing table entry of the site.

[0050] The update operation includes deleting the routing table entry that points to the second access device as the next hop, and retaining the routing table entry that points to the first access device as the next hop.

[0051] Among them, when the first access device receives the host route revocation information for the site sent by the second access device, it initiates an address resolution request to the site, and receives the address resolution reply from the site within the preset time threshold. According to the address resolution reply, the host route for the site is generated and notified to the third access device to realize link switching.

[0052] For example, after receiving the host route announced by the first access device, the third access device can first confirm the validity of the route through multiple verification methods to avoid invalid or erroneous routes causing traffic forwarding anomalies. This includes parsing the routing information and verifying its validity (e.g., ESI consistency check). Furthermore, after successful verification, the third access device can perform a routing table update, focusing on "clearing invalid paths and retaining valid paths," writing the new route to the local routing table and activating it to make it the optimal forwarding path for the site. The hardware forwarding table is also updated simultaneously to ensure consistency between the data plane (hardware forwarding) and the control plane (routing table), avoiding traffic black holes caused by "soft route updates without hardware updates." After the routing table is updated, the third access device can also confirm through real-time monitoring that traffic has been switched to the first access device, preventing update failures.

[0053] Furthermore, based on the received Ethernet auto-discovery route EVPN type 1 and Ethernet segment route EVPN type 4, equal-cost routes pointing to the second access device and the first access device are regenerated.

[0054] Exemplarily, the third access device receives and parses the EVPN Type 1 and Type 4 routes announced by the second access device, extracts the core information of the redundancy group and link attributes, and lays the foundation for generating equal-cost routes; further, the third access device can verify the consistency of the Type 1 / Type 4 routing information of the first access device and the second access device (such as ESI uniformity verification and link attribute symmetry verification, etc.) to avoid the failure of equal-cost routes due to attribute mismatch; then, the third access device can generate equal-cost routes pointing to the first access device and the second access device based on the verified information. The key is to ensure that the "priority, metric, and forwarding attributes" of the two routes are completely consistent.

[0055] In the embodiment of the present application, by updating the routing table entries for the site in the third access device, a foundation is laid for accurate traffic forwarding, ensuring smooth forwarding of business traffic.

[0056] Combined with the above Figures 1 to 2The ESI dual-homing link switching method provided in the embodiment of the present application is introduced in detail. The system, device, and equipment provided in the embodiment of the present application are introduced below.

[0057] An ESI dual-homing link switching system provided in an embodiment of the present application includes: a first access device, a second access device, and a third access device, wherein: The first access device is configured to, upon receiving host route revocation information for a site from the second access device, initiate an address resolution request to the site; if an address resolution reply is received from the site within a preset time threshold, generate a host route for the site based on the address resolution reply and notify the reply to the second access device and a third access device to implement link switching; wherein the third access device includes a device other than the first access device and the second access device in the Ethernet virtual private network (EVPN) in which the first access device is located; The second access device is configured to, when a link between the second access device and the site fails, send host route revocation information for the site to the first access device, so that the first access device receives an address resolution reply from the site within a preset time threshold, regenerates a host route for the site based on the address resolution reply, and notifies the regenerate host route to the second access device and the third access device, thereby implementing link switching; The third access device is configured to update the routing table entry of the site upon receiving the host route announced by the first access device; wherein the update operation includes deleting the routing table entry pointing to the second access device as the next hop, and retaining the routing table entry pointing to the first access device as the next hop; wherein, upon receiving the host route withdrawal information for the site sent by the second access device, the first access device initiates an address resolution request to the site, and receives the address resolution reply from the site within a preset time threshold, generates the host route for the site based on the address resolution reply and announces it to the third access device to achieve link switching.

[0058] In one embodiment, the first access device is specifically configured to: If no address resolution response is received from the site within the preset time threshold, the address table entry of the site is deleted and the address resolution learning is triggered by business traffic.

[0059] In one embodiment, the second access device and the first access device are leaf node switches in the EVPN network, and other network devices include backbone switches and other leaf node switches in the EVPN network. The site accesses the second access device and the first access device through static link aggregation, and the tunnel entrances of the second access device and the first access device are configured with the same Ethernet segment identifier ESI information.

[0060] In one embodiment, the second access device is specifically configured to: When the link between the second access device and the site is restored, Ethernet auto-discovery routing EVPN type 1 and Ethernet segment routing EVPN type 4 are advertised in the network; and the address table entry of the site is regenerated based on the host route for the site received from the first access device.

[0061] In one embodiment, the third access device is specifically configured to: Upon receiving the host route announced by the first access device, the routing table entry of the site is updated; wherein the update operation includes deleting the routing table entry pointing to the second access device as the next hop, and retaining the routing table entry pointing to the first access device as the next hop; wherein, upon receiving the host route withdrawal information for the site sent by the second access device, the first access device initiates an address resolution request to the site, and receives the address resolution reply from the site within a preset time threshold, generates a host route for the site based on the address resolution reply and announces it to the third access device to achieve link switching.

[0062] In one embodiment, the third access device is specifically configured to: Based on the received Ethernet auto-discovery route EVPN type 1 and Ethernet segment route EVPN type 4, equal-cost routes pointing to the second access device and the first access device are regenerated.

[0063] An embodiment of the present application also provides an ESI dual-homing link switching device, and the device provided in the embodiment of the present application will be introduced below.

[0064] like Figure 3 As shown, the figure is a schematic diagram of an ESI dual-homing link switching device provided by an embodiment of the present application. The device 300 includes: a request initiating module 301 and a notification module 302, wherein: The request initiating module 301 is configured to initiate an address resolution request to the site upon receiving host route revocation information for the site sent by the second access device; The notification module 302 is used to generate a host route for the site based on the address resolution reply and notify it to the second access device and the third access device if an address resolution reply is received from the site within a preset time threshold, so as to achieve link switching; wherein the third access device includes a device other than the first access device and the second access device in the Ethernet virtual private EVPN network where the first access device is located.

[0065] In one embodiment, the ESI dual-homing link switching device 300 further includes: The entry deletion module is used to delete the address entry of the site if no address resolution reply is received from the site within a preset time threshold, and wait for business traffic to trigger address resolution learning.

[0066] In one embodiment, the second access device and the first access device are leaf node switches in the EVPN network, and other network devices include backbone switches and other leaf node switches in the EVPN network. The site accesses the second access device and the first access device through static link aggregation, and the tunnel entrances of the second access device and the first access device are configured with the same Ethernet segment identifier ESI information.

[0067] like Figure 4 As shown, this figure is a schematic diagram of another ESI dual-homing link switching device provided in an embodiment of the present application. The device 400 includes: a revocation information sending module 401, wherein: The revocation information sending module 401 is used to send host route revocation information for the site to the first access device when a link between the second access device and the site fails, so that the first access device receives the address resolution reply of the site within a preset time threshold, regenerates the host route for the site based on the address resolution reply and notifies the second access device and the third access device to achieve link switching.

[0068] In one embodiment, the ESI dual-homing link switching device 400 further includes: A link recovery module is configured to, when the link between the second access device and the site is restored, advertise Ethernet auto-discovery routing EVPN type 1 and Ethernet segment routing EVPN type 4 in the network; and regenerate an address table entry for the site based on a host route for the site received from the first access device.

[0069] like Figure 5 As shown, this figure is a schematic diagram of another ESI dual-homing link switching device provided in an embodiment of the present application. The device 500 includes: a table entry updating module 501, wherein: The table entry update module 501 is used to update the routing table entry of the site when receiving the host route announced by the first access device; wherein the update operation includes deleting the routing table entry pointing to the second access device as the next hop, and retaining the routing table entry pointing to the first access device as the next hop; wherein, the first access device, when receiving the host route withdrawal information for the site sent by the second access device, initiates an address resolution request to the site, and receives the address resolution reply from the site within a preset time threshold, generates the host route for the site based on the address resolution reply and announces it to the third access device to achieve link switching.

[0070] In one embodiment, the ESI dual-homing link switching device 500 further includes: The route generation module is configured to regenerate equal-cost routes pointing to the second access device and the first access device respectively based on the received Ethernet automatic discovery route EVPN type 1 and Ethernet segment route EVPN type 4.

[0071] The ESI dual-homing link switching system according to the embodiment of the present application may correspond to executing the method described in the embodiment of the present application, and each device of the ESI dual-homing link switching system is respectively for implementing Figure 1 、 Figure 2 For the sake of brevity, the corresponding processes of the various methods in the illustrated embodiments are not described again here.

[0072] The embodiment of the present application further provides a computing device, which can be a local computing device or an application server.

[0073] like Figure 6 As shown, this figure is a schematic diagram of a computing device provided by an embodiment of the present application, and the computing device 700 includes a bus 701, a processor 702, a communication interface 703 and a memory 704. The processor 702, the memory 704 and the communication interface 703 communicate with each other via the bus 701.

[0074] The bus 701 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 6 Only one thick line is used in the diagram, but this does not mean that there is only one bus or one type of bus.

[0075] The processor 702 may be any one or more of a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor (MP), or a digital signal processor (DSP).

[0076] The communication interface 703 is used for communicating with the outside, for example, the communication interface 703 can be used for communicating with a terminal.

[0077] The memory 704 may include volatile memory, such as random access memory (RAM). The memory 704 may also include non-volatile memory, such as read-only memory (ROM), flash memory, hard disk drive (HDD), or solid state drive (SSD).

[0078] The memory 704 stores executable codes, and the processor 702 executes the executable codes to perform the aforementioned ESI dual-homing link switching method.

[0079] Specifically, when implementing the above embodiments, and when the ESI dual-homing link switching system described in the above embodiments is implemented by software, the software or program code required to execute each access device in the above embodiments may be partially or completely stored in the memory 704. The processor 702 executes the program code corresponding to each unit stored in the memory 704 to perform the above-mentioned ESI dual-homing link switching method.

[0080] Embodiments of the present application also provide a computer-readable storage medium. The computer-readable storage medium can be any available medium capable of being stored by a computing device, or a data storage device such as a data center that contains one or more available media. The available medium can be a magnetic medium (e.g., a floppy disk, hard disk, or magnetic tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive). The computer-readable storage medium includes instructions that instruct the computing device to execute the aforementioned ESI dual-homing link switching method.

[0081] The present application also provides a computer program product comprising one or more computer instructions that, when loaded and executed on a computing device, fully or partially generate the process or function described in the present application.

[0082] The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from one website, computer, or data center to another website, computer, or data center via wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) means.

[0083] When the computer program product is executed by a computer, the computer performs any of the aforementioned ESI dual-homing link switching methods. The computer program product may be a software installation package. When any of the aforementioned ESI dual-homing link switching methods is required, the computer program product may be downloaded and executed on the computer.

[0084] The descriptions of the processes or structures corresponding to the above figures have different emphases. For parts that are not described in detail in a certain process or structure, please refer to the relevant descriptions of other processes or structures.

[0085] The above description is only a specific implementation method of the present application, but the protection scope of the present application is not limited thereto. Any changes or replacements within the technical scope disclosed in the present application should be included in the protection scope of the present application.

Claims

1. An ESI dual-homing link switching method, characterized in that: Applied to a first access device, the method includes: Initiating an address resolution request to the site upon receiving host route revocation information for the site sent by the second access device; If an address resolution reply from the site is received within a preset time threshold, a host route for the site is generated based on the address resolution reply and notified to the second access device and the third access device to achieve link switching; wherein the third access device includes a device other than the first access device and the second access device in the Ethernet virtual private EVPN network where the first access device is located.

2. The method according to claim 1, characterized in that If no address resolution reply is received from the site within a preset time threshold, the address table entry of the site is deleted, and the address resolution learning is waited for to be triggered by service traffic.

3. The method according to claim 1, characterized in that The second access device and the first access device are leaf node switches in the EVPN network, and the other network devices include backbone switches and other leaf node switches in the EVPN network. The site accesses the second access device and the first access device through static link aggregation, and the tunnel entrances of the second access device and the first access device are configured with the same Ethernet segment identifier ESI information.

4. An ESI dual-homing link switching method, characterized in that: Applied to a second access device, the method includes: In the event that a link between the second access device and the site fails, host route revocation information for the site is sent to the first access device, so that the first access device receives an address resolution reply from the site within a preset time threshold, regenerates the host route for the site based on the address resolution reply, and notifies the second access device and the third access device to achieve link switching.

5. The method according to claim 4, characterized in that The method further includes link recovery processing, including: When the link between the second access device and the site is restored, announcing Ethernet auto-discovery routing EVPN type 1 and Ethernet segment routing EVPN type 4 in the network; Regenerate an address table entry of the site according to the host route for the site received from the first access device.

6. An ESI dual-homing link switching method, characterized in that: Applied to a third access device, the method includes: Upon receiving the host route advertised by the first access device, updating the routing table entry of the site; wherein the updating operation includes deleting the routing table entry pointing to the second access device as the next hop and retaining the routing table entry pointing to the first access device as the next hop; Among them, when the first access device receives the host route revocation information for the site sent by the second access device, it initiates an address resolution request to the site, and receives the address resolution reply from the site within a preset time threshold. According to the address resolution reply, the host route for the site is generated and notified to the third access device to achieve link switching.

7. The method according to claim 6, characterized in that The method further comprises: Based on the received Ethernet auto-discovery route EVPN type 1 and Ethernet segment route EVPN type 4, equal-cost routes pointing to the second access device and the first access device are regenerated.

8. An ESI dual-homing link switching system, characterized in that: The system includes a first access device, a second access device, and a third access device, including: The first access device is configured to, upon receiving host route revocation information for a site sent by the second access device, initiate an address resolution request to the site; if an address resolution reply from the site is received within a preset time threshold, generate a host route for the site based on the address resolution reply and notify the second access device and a third access device to implement link switching; wherein the third access device includes a device other than the first access device and the second access device in the Ethernet virtual private network (EVPN) in which the first access device is located; The second access device is configured to, when a link between the second access device and a site fails, send host route revocation information for the site to the first access device, so that the first access device receives an address resolution reply from the site within a preset time threshold, regenerates a host route for the site based on the address resolution reply, and notifies the regenerates the host route to the second access device and a third access device, thereby implementing link switching; The third access device is used to update the routing table entry of the site when it receives the host route announced by the first access device; wherein the update operation includes deleting the routing table entry pointing to the second access device as the next hop, and retaining the routing table entry pointing to the first access device as the next hop; wherein, the first access device, when receiving the host route withdrawal information for the site sent by the second access device, initiates an address resolution request to the site, and receives the address resolution reply of the site within a preset time threshold, generates a host route for the site based on the address resolution reply and announces it to the third access device to achieve link switching.

9. A computing device, characterized in that including memory and processor; One or more computer programs are stored in the memory, and the one or more computer programs include instructions; when the instructions are executed by the processor, the computing device executes the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that The computer-readable storage medium is used to store a computer program, and the computer program is used to execute the method according to any one of claims 1 to 7.