Traffic forwarding method and device based on mlag dual-homing access evpn

By configuring preset attributes for MAC/IP routes using BGP extended community attributes in MLAG dual-homed access EVPN to form protection groups, the problem of traffic packet loss caused by primary link failure is solved, and traffic forwarding reliability is achieved under failure conditions.

CN115766414BActive Publication Date: 2026-03-24PURPLE MOUNTAIN LAB
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-21
Publication Date
2026-03-24

AI Technical Summary

Technical Problem

In the MLAG dual-homed access EVPN scenario, if the main link fails, downlink traffic arriving at PE1 will be directly dropped, resulting in packet loss.

Method used

In the event of a primary link failure, the first MAC/IP route associated with the target ESI is determined, and its routing attributes are configured to preset attribute values. By using the newly added BGP extended community attribute, the traffic exit is directed to the second PE, forming a protection group so that traffic can be forwarded to the target CE through the second PE.

Benefits of technology

In the event of a primary link failure, prevent packet loss and ensure that traffic can be securely forwarded through a backup link to achieve reliable traffic transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115766414B_ABST
    Figure CN115766414B_ABST
Patent Text Reader

Abstract

The application provides a traffic forwarding method and device based on MLAG dual-homing access EVPN, which comprises the following steps: in the case of main link failure, based on the target ESI corresponding to the main link, determining a first MAC / IP route associated with the target ESI, the route attribute of the first MAC / IP route being a preset attribute value, and the preset attribute value representing that the route has a proxy attribute; configuring the egress of target traffic to point to a second PE; the main link is a link between a target CE and a first PE, the backup link is a link between the target CE and the second PE, and the route attribute of the first MAC / IP route is configured by the second PE through the way of adding a BGP extended community attribute. Through the way of adding the BGP extended community attribute, the dual-homing PE can form a protection group for the MAC / IP route associated with the same ESI on the access side and the tunnel side, and can prevent traffic packet loss in the case of main link failure.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of computer network technology, and in particular to a traffic forwarding method and apparatus based on MLAG dual-homed access EVPN. Background Technology

[0002] In scenarios using a Multi-Chassis Link Aggregation Group (MLAG) dual-homed Ethernet Virtual Private Network (EVPN), a Customer Edge (CE) can be dual-homed to two Provider Edge (PE) devices. Taking CE1's dual-homed access to PE1 and PE2 as an example, the link between CE1 and PE1 can be the primary link, and the link between CE1 and PE2 can be the backup link. Downlink traffic destined for CE1 can reach PE1 and PE2 through load balancing. If the access-side link (i.e., the backup link) of PE2 fails, downlink traffic reaching PE2 can be routed through PE1 to CE1 via routing optimization. However, if the access-side link (i.e., the primary link) of PE1 fails, downlink traffic reaching PE1 will be directly dropped, resulting in packet loss. Preventing packet loss in the event of a primary link failure is a pressing issue in the industry. Summary of the Invention

[0003] To address the problems existing in the prior art, embodiments of the present invention provide a traffic forwarding method and apparatus based on MLAG dual-homed access EVPN.

[0004] In a first aspect, the present invention provides a traffic forwarding method based on MLAG dual-homed access EVPN, applied to a first network-side edge device (PE), comprising:

[0005] In the event of a primary link failure, based on the unique identifier (ESI) of the target Ethernet segment corresponding to the primary link, a first Media Access Control / Internet Protocol (MAC / IP) route associated with the target ESI is determined. The routing attribute of the first MAC / IP route is a preset attribute value, which indicates that the first MAC / IP route has a proxy attribute.

[0006] Based on the first MAC / IP route, the exit point of the target traffic is configured to point to the second PE, and the target traffic is the traffic to be sent to the target user-side edge device CE;

[0007] Wherein, the target CE is a CE that is dual-homed to the first PE and the second PE, the primary link in the EVPN is the link between the target CE and the first PE, the backup link in the EVPN is the link between the target CE and the second PE, the first MAC / IP route is the local route used by the second PE to forward traffic to the target CE, and the routing attributes of the first MAC / IP route are configured by the second PE by adding a Border Gateway Protocol (BGP) extended community attribute.

[0008] Optionally, according to the traffic forwarding method for MLAG dual-homed access EVPN provided by the present invention, when the MAC address entry of the target CE and the ARP entry of the target CE are learned by different PEs, the step of configuring the egress of the target traffic to point to the second PE based on the first MAC / IP route includes:

[0009] Based on the first MAC / IP route, configure the exit of the second MAC / IP route to point to the second PE, and configure the exit of the first table entry to point to the second PE;

[0010] The second MAC / IP route is the local route used by the first PE to forward traffic to the target CE, and the first entry is the entry in the neighbor table of the first PE corresponding to the target CE.

[0011] Optionally, according to the traffic forwarding method for MLAG dual-homed access EVPN provided by the present invention, when the MAC address entry of the target CE and the ARP entry of the target CE are learned by the same PE, before configuring the egress of the target traffic to point to the second PE based on the first MAC / IP route, the method further includes:

[0012] Delete the local MAC / IP route associated with the target ESI and send a target message to the second PE, the target message being used to instruct the second PE to delete the local MAC / IP route associated with the target ESI;

[0013] The step of configuring the exit point of the target traffic to the second PE based on the first MAC / IP route includes:

[0014] Based on the first MAC / IP route, configure the exit point of the first table entry to point to the second PE;

[0015] The first entry is the entry in the neighbor table of the first PE that corresponds to the target CE.

[0016] Secondly, the present invention also provides a traffic forwarding method based on MLAG dual-homed access EVPN, applied to a second PE, comprising:

[0017] Based on the target ESI corresponding to the main link, determine the first MAC / IP route associated with the target ESI. The first MAC / IP route is the local route used by the second PE to forward traffic to the target CE.

[0018] By adding a new BGP extended community attribute, the routing attribute of the first MAC / IP route is configured to a preset attribute value, and the preset attribute value indicates that the first MAC / IP route has a proxy attribute;

[0019] Wherein, the target CE is a CE that is dual-homed to the first PE and the second PE, the primary link in the EVPN is the link between the target CE and the first PE, and the backup link in the EVPN is the link between the target CE and the second PE.

[0020] Optionally, according to the traffic forwarding method for MLAG dual-homed access EVPN provided by the present invention, after configuring the routing attributes of the first MAC / IP route by adding a new BGP extended community attribute, the method further includes:

[0021] Determine whether the target message sent by the first PE is received, wherein the target message is used to instruct the second PE to delete the local MAC / IP route associated with the target ESI;

[0022] If it is determined that the target message sent by the first PE has been received, start the slow deletion timer;

[0023] The slow deletion timer is used to keep the exit of the first MAC / IP route pointing to the local access side within a preset time period.

[0024] Optionally, according to the traffic forwarding method for MLAG dual-homed access EVPN provided by the present invention, after configuring the routing attributes of the first MAC / IP route by adding a new BGP extended community attribute, the method further includes:

[0025] In the event of a backup link failure, a second MAC / IP route associated with the target ESI is determined. The second MAC / IP route is the local route used by the first PE to forward traffic to the target CE.

[0026] Based on the second MAC / IP route, configure the exit of the first MAC / IP route to point to the first PE, and configure the exit of the second table entry to point to the first PE;

[0027] The second entry is the entry in the neighbor table of the second PE that corresponds to the target CE.

[0028] Thirdly, the present invention also provides a traffic forwarding device based on MLAG dual-homed access EVPN, applied to a first PE, comprising:

[0029] The first determining module is used to determine, in the event of a main link failure, a first Media Access Control / Internet Protocol (MAC / IP) route associated with the target ESI based on the unique identifier (ESI) of the target Ethernet segment corresponding to the main link. The routing attribute of the first MAC / IP route is a preset attribute value, which indicates that the first MAC / IP route has a proxy attribute.

[0030] The first configuration module is used to configure the exit of the target traffic to point to the second PE based on the first MAC / IP route, wherein the target traffic is the traffic to be sent to the target CE;

[0031] Wherein, the target CE is a CE that is dual-homed to the first PE and the second PE, the primary link in the EVPN is the link between the target CE and the first PE, the backup link in the EVPN is the link between the target CE and the second PE, the first MAC / IP route is the local route used by the second PE to forward traffic to the target CE, and the routing attributes of the first MAC / IP route are configured by the second PE by adding a Border Gateway Protocol (BGP) extended community attribute.

[0032] Fourthly, the present invention also provides a traffic forwarding device based on MLAG dual-homed access EVPN, applied to a second PE, comprising:

[0033] The second determining module is used to determine the first MAC / IP route associated with the target ESI based on the target ESI corresponding to the main link. The first MAC / IP route is the local route used by the second PE to forward traffic to the target CE.

[0034] The second configuration module is used to configure the routing attributes of the first MAC / IP route to preset attribute values ​​by adding a new BGP extended community attribute. The preset attribute value indicates that the first MAC / IP route has proxy attributes.

[0035] Wherein, the target CE is a CE that is dual-homed to the first PE and the second PE, the primary link in the EVPN is the link between the target CE and the first PE, and the backup link in the EVPN is the link between the target CE and the second PE.

[0036] Fifthly, the present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the traffic forwarding method based on MLAG dual-homed access EVPN as described above.

[0037] In a sixth aspect, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the traffic forwarding method based on MLAG dual-homed access EVPN as described above.

[0038] The traffic forwarding method and apparatus based on MLAG dual-homed access EVPN provided by this invention, in the event of a primary link failure, determines the first MAC / IP route associated with the target ESI. The first MAC / IP route is the local route used by the second PE to forward traffic to the target CE, and the routing attribute of the first MAC / IP route is a preset attribute value, that is, there is a MAC / IP route with the routing attribute of proxy among the routes associated with the target ESI. Then, based on the first MAC / IP route, the exit of the target traffic can be configured to point to the second PE, and the target traffic can be forwarded to the second PE, so that the target traffic can be forwarded to the target CE through the second PE. By adding a BGP extended community attribute, the dual-homed PE can form a protection group on the access side and the tunnel side for the MAC / IP routes associated with the same ESI, which can prevent traffic packet loss in the event of a primary link failure. Attached Figure Description

[0039] To more clearly illustrate the technical solutions in this invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0040] Figure 1 This is a schematic diagram of EVPN-VXLAN networking provided by related technologies;

[0041] Figure 2 This is a schematic diagram of a primary link failure scenario on the EVPN-VXLAN access side provided by related technologies;

[0042] Figure 3 This is one of the flowcharts illustrating the traffic forwarding method based on MLAG dual-homed access EVPN provided by the present invention;

[0043] Figure 4 This is a schematic diagram of the MAC / IP forming a protection group corresponding to the same ESI in the dual-homing device provided by the present invention;

[0044] Figure 5 This is a schematic diagram of traffic bypass in the EVPN-VXLAN access-side main link failure scenario provided by the present invention;

[0045] Figure 6 This is the second flowchart of the traffic forwarding method based on MLAG dual-homed access EVPN provided by the present invention;

[0046] Figure 7 This is a schematic diagram of traffic bypass in a dual-homing device backup link failure scenario provided by the present invention;

[0047] Figure 8 This is one of the structural schematic diagrams of the traffic forwarding device based on MLAG dual-homed access EVPN provided by the present invention;

[0048] Figure 9 This is the second schematic diagram of the traffic forwarding device based on MLAG dual-homed access EVPN provided by the present invention;

[0049] Figure 10 This is a schematic diagram of the structure of the electronic device provided by the present invention. Detailed Implementation

[0050] To facilitate a clearer understanding of the various embodiments of the present invention, some relevant background knowledge will be introduced as follows.

[0051] Figure 1 This is a diagram of EVPN-VXLAN networking provided by relevant technologies, such as... Figure 1 As shown, in a scenario based on MLAG dual-homed access EVPN, the configuration schemes for EVPN-Extremely Extensible Virtual Local Area Network (VXLAN) networking include:

[0052] (1) Deploy M-LAG between CE1 and PE1 and PE2;

[0053] (2) CE1 is dual-homed to PE1 and PE2, and the same Ethernet Segment Identifier (ESI) is deployed.

[0054] (3) PE1, PE2 and PE3 establish Border Gateway Protocol (BGP) EVPN neighbors in pairs. A real VXLAN Tunnel End Point (VTEP) and a real Medium Access Control (MAC) address are deployed between PE1 and PE2. A virtual VTEP and a virtual MAC are deployed between PE1 and PE2 and PE3. For PE3, PE1 and PE2 are virtualized as a single device.

[0055] (4) PE1 learns the Address Resolution Protocol (ARP) entry of CE1, generates a local ARP, and forwards it to dual-homed PE2 and PE3 through EVPN neighbors; PE2 receives the ARP from PE1, performs Fast Reroute (FRR) in combination with the local Ethernet Segment (ES), and points the ARP to the local access side (AC) port (pointing to the CE1 exit);

[0056] (5) When CE2 accesses CE1, the traffic reaches PE3. PE3, through load balancing, partially reaches PE1 and partially reaches PE2, and then directly reaches CE1.

[0057] Figure 2 This is a diagram illustrating a primary link failure scenario on the EVPN-VXLAN access side, provided by relevant technologies, such as... Figure 2 As shown, when CE2 accesses CE1, the data packet reaches PE3. Downlink traffic reaches PE1 and PE2 via Equal Cost Multi Path (ECMP) routing. Figure 2 As shown, if the access-side link of PE2 fails (goes down), traffic from PE3, upon reaching PE2, will be routed through PE1 to CE1 via route optimization. If the access-side link of PE1 goes down, traffic from PE3 to PE1 will be directly dropped, resulting in packet loss.

[0058] To overcome the above-mentioned defects, the present invention provides a traffic forwarding method and apparatus based on MLAG dual-homed access EVPN. By forming a protection group on the access side and the tunnel side for the Medium Access Control (MAC) / Internet Protocol (IP) routes associated with the same ESI, it is possible to prevent traffic packet loss in the event of a main link failure.

[0059] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are within the scope of protection of this invention.

[0060] Figure 3 This is one of the flowcharts illustrating the traffic forwarding method for MLAG-based dual-homed access EVPN provided by this invention, as shown below. Figure 3 As shown, the execution entity of the traffic forwarding method can be a PE (Personal Equipment). The method includes:

[0061] Step 301: In the event of a main link failure, based on the unique identifier (ESI) of the target Ethernet segment corresponding to the main link, determine the first Media Access Control / Internet Protocol (MAC / IP) route associated with the target ESI. The routing attribute of the first MAC / IP route is a preset attribute value, which indicates that the first MAC / IP route has a proxy attribute.

[0062] Wherein, the target CE is a CE that is dual-homed to the first PE and the second PE, the primary link in the EVPN is the link between the target CE and the first PE, the backup link in the EVPN is the link between the target CE and the second PE, the first MAC / IP route is the local route used by the second PE to forward traffic to the target CE, and the routing attributes of the first MAC / IP route are configured by the second PE by adding a Border Gateway Protocol (BGP) extended community attribute.

[0063] Specifically, in the scenario of MLAG dual-homed access EVPN, the target CE can be dual-homed to the first PE and the second PE. The link between the target CE and the first PE can be the primary link, and the link between the target CE and the second PE can be the backup link. The second MAC / IP route can be generated by the first PE, and this second MAC / IP route is the local route used by the first PE to forward traffic to the target CE. The first MAC / IP route can be generated by the second PE, and this first MAC / IP route is the local route used by the second PE to forward traffic to the target CE. The routing attributes of the first MAC / IP route can be preset attribute values. The first MAC / IP route and the second MAC / IP route have the same ESI, that is, the target ESI.

[0064] It is understandable that the second PE configures the routing attributes to preset attribute values ​​by adding BGP extended community attributes. Since the preset attribute value indicates that the first MAC / IP route has proxy attributes, the dual-homed PE can form a protection group for the MAC / IP routes associated with the same ESI on the access side and the tunnel side.

[0065] Understandably, to enable different sites to learn each other's MAC information, EVPN defines a Network Layer Reachability Information (NLRI) based on the BGP protocol, known as EVPN NLRI. EVPN NLRI includes several commonly used EVPN route types; MAC / IP routing is EVPN Type 2 routing, also known as MAC / IP Advertisement Route.

[0066] Specifically, in the event of a main link failure, the MAC / IP route associated with the target ESI corresponding to the main link can be determined as the proxy route, i.e., the first MAC / IP route. Then, the traffic to be sent to the target CE can be configured based on the first MAC / IP route.

[0067] Step 302: Based on the first MAC / IP route, configure the exit of the target traffic to point to the second PE, wherein the target traffic is the traffic to be sent to the target user-side edge device CE.

[0068] Specifically, after determining the first MAC / IP route associated with the target ESI, which is the local route used by the first PE to forward traffic to the target CE, the exit point of the target traffic can be configured to point to the second PE, enabling the target traffic to be forwarded to the second PE, and then forwarded to the target CE through the second PE. Dual-homed PEs can form a protection group on the access side and tunnel side for the MAC / IP routes associated with the same ESI.

[0069] Optionally, Figure 4 This is a schematic diagram of the MAC / IP forming a protection group corresponding to the same ESI in the dual-homing device provided by the present invention, as shown in the figure. Figure 4As shown, the first PE can be PE1, the second PE can be PE2, and the target CE can be CE1. MAC / IP routes between the dual-homed devices (PE1 and PE2) form a protection group by adding BGP extended community attributes. For example, if PE1 learns a MAC / IP route from CE1, it generates a local MAC / IP route and can pass it to PE2 via BGP. PE2 can match the ESI carried in the route with its local ESI, and if the interface corresponding to the ESI is in a normal (up) state, PE2 can quickly reroute the MAC / IP route locally and generate a local MAC / IP route (i.e., the first MAC / IP route) with the proxy attribute (i.e., a preset attribute value). This route is then passed to PE1 via BGP extended community (e.g., the type field value is 0x06, the subtype field value is 0x08, and the val occupies the third byte with a value of 0x04). Therefore, this MAC / IP route forms a protection group between the dual-homed devices.

[0070] Optionally, Figure 5 This is a schematic diagram of traffic bypassing in a primary link failure scenario on the EVPN-VXLAN access side provided by the present invention, as shown below. Figure 5 As shown, in a scenario based on MLAG dual-homed access EVPN, CE1 can be dual-homed to PE1 and PE2. The link between CE1 and PE1 can be the primary link, and the link between CE1 and PE2 can be the backup link. The second MAC / IP route can be generated by PE1, and this second MAC / IP route is the local route used by PE1 to forward traffic to CE1. The first MAC / IP route can be generated by PE2, and this first MAC / IP route is the local route used by PE2 to forward traffic to CE1, and the routing attributes of the first MAC / IP route can be preset attribute values. The first MAC / IP route and the second MAC / IP route have the same ESI (e.g., ...). Figure 5 ES1 in the target ESI.

[0071] Optionally, such as Figure 5 As shown, in the event of a primary link failure, the MAC / IP route associated with the target ESI corresponding to the primary link can be determined based on the proxy attribute, i.e., the first MAC / IP route. Then, the traffic to be sent to CE1 can be configured based on the first MAC / IP route.

[0072] Optionally, such as Figure 5As shown, after determining the first MAC / IP route associated with the target ESI, the first MAC / IP route is the local route used by PE1 to forward traffic to CE1. The exit point of the target traffic can be configured to point to PE2, enabling the target traffic to be forwarded to PE2, and then forwarded to CE1 through PE2. Dual-homed PEs can form a protection group on the access side and tunnel side for the MAC / IP routes associated with the same ESI.

[0073] As can be seen, in the event of a main link failure, EVPN can switch accordingly on the AC side and the tunnel side to prevent packet loss. In other words, dual-homed PEs can form a protection group on the access side and the tunnel side for MAC / IP routes associated with the same ESI. Moreover, after forming this protection group, it can effectively prevent jitter in handling accidental downtime of the access side link.

[0074] The traffic forwarding method for MLAG-based dual-homed access EVPN provided by this invention determines the first MAC / IP route associated with the target ESI in the event of a primary link failure. This first MAC / IP route is the local route used by the second PE to forward traffic to the target CE, and its routing attribute is a preset attribute value. That is, there is a MAC / IP route with a proxy attribute among the routes associated with the target ESI. Based on the first MAC / IP route, the exit of the target traffic can be configured to point to the second PE, enabling the target traffic to be forwarded to the second PE, which then forwards the target traffic to the target CE. By adding a BGP extended community attribute, the dual-homed PE can form a protection group on the access side and tunnel side for the MAC / IP routes associated with the same ESI, thus preventing traffic packet loss in the event of a primary link failure.

[0075] Optionally, according to the traffic forwarding method for MLAG dual-homed access EVPN provided by the present invention, when the MAC address entry of the target CE and the ARP entry of the target CE are learned by different PEs, the step of configuring the egress of the target traffic to point to the second PE based on the first MAC / IP route includes:

[0076] Based on the first MAC / IP route, configure the exit of the second MAC / IP route to point to the second PE, and configure the exit of the first table entry to point to the second PE;

[0077] The second MAC / IP route is the local route used by the first PE to forward traffic to the target CE, and the first entry is the entry in the neighbor table of the first PE corresponding to the target CE.

[0078] Specifically, in the event of a main link failure, for the first scenario (i.e., the target CE's MAC address table entry and ARP table entry are learned by different PEs), the MAC / IP route with proxy attributes associated with the target ESI corresponding to the main link can be determined, i.e., the first MAC / IP route. This first MAC / IP route is the local route used by the second PE to forward traffic to the target CE. Therefore, the exit point of the second MAC / IP route can be configured to point to the second PE, and the exit point of the first entry can also be configured to point to the second PE. Furthermore, by querying the neighbor table, the exit point of the target traffic can be determined, enabling the target traffic to be forwarded to the second PE, which then forwards the target traffic to the target CE. Thus, dual-homed PEs can form a protection group on the access side and tunnel side for MAC / IP routes associated with the same ESI.

[0079] Optionally, such as Figure 5 As shown, in the case of a main link down, for the first scenario mentioned above, the local ARP exit still points to the local AC port. When PE1 detects the main link down, it queries the associated MAC / IP route based on the ESI corresponding to that interface. If a MAC / IP route with the Proxy attribute exists, it refreshes the MAC / IP exit to point to the next hop associated with the Proxy, i.e., to the tunnel side of PE2. When CE2 accesses CE1, the traffic reaching PE1 after being load-balanced by PE3 undergoes VXLAN encapsulation and is redirected to PE2. PE2 then decapsulates the VXLAN, queries its local exit, and finally reaches CE1.

[0080] Therefore, in the event of a main link failure, where the MAC address entries and ARP entries of the target CE are learned by different PEs, the dual-homed PE can forward the target traffic to the target CE, thus preventing packet loss.

[0081] Optionally, according to the traffic forwarding method for MLAG dual-homed access EVPN provided by the present invention, when the MAC address entry of the target CE and the ARP entry of the target CE are learned by the same PE, before configuring the egress of the target traffic to point to the second PE based on the first MAC / IP route, the method further includes:

[0082] Delete the local MAC / IP route associated with the target ESI and send a target message to the second PE, the target message being used to instruct the second PE to delete the local MAC / IP route associated with the target ESI;

[0083] The step of configuring the exit point of the target traffic to the second PE based on the first MAC / IP route includes:

[0084] Based on the first MAC / IP route, configure the exit point of the first table entry to point to the second PE;

[0085] The first entry is the entry in the neighbor table of the first PE that corresponds to the target CE.

[0086] Specifically, in the event of a main link failure, for the second scenario (i.e., the target CE's MAC address table entry and the target CE's ARP table entry are learned by the same PE), the MAC exit is invalid. The first PE can delete the local MAC / IP route associated with the target ESI and send a target message to the second PE to instruct the second PE to delete the local MAC / IP route associated with the target ESI.

[0087] It is understandable that after receiving the target message, the second PE can start a slow deletion timer. The slow deletion timer can be used to keep the exit of the first MAC / IP route pointing to the local access side within a preset time period. Within the preset time period, the first PE can detect that the MAC / IP route with proxy attributes associated with the target ESI still exists. That is, within the preset time period, the first PE can determine the first MAC / IP route associated with the target ESI.

[0088] Specifically, in the second scenario described above, the first PE can determine the first MAC / IP route associated with the target ESI. This first MAC / IP route is the local route used by the second PE to forward traffic to the target CE. Therefore, the first entry can be configured to point its exit point to the second PE. Furthermore, by querying the neighbor table, the exit point of the target traffic can be determined, enabling the forwarding of the target traffic to the second PE, which then forwards the target traffic to the target CE. Thus, a dual-homed PE can form a protection group on both the access side and the tunnel side for MAC / IP routes associated with the same ESI.

[0089] Optionally, such as Figure 5 As shown, in the case of a main link down, in the second scenario mentioned above, the MAC exit becomes invalid, causing the MAC / IP route (i.e., the second MAC / IP route) of PE1 on the control plane to be deleted, and PE2 is notified to cancel it. Upon receiving the MAC / IP route cancellation message, PE2 starts a slow deletion timer. During the timer period, the MAC / IP (i.e., the first MAC / IP route) on PE2 still points to the local AC interface. When PE1 detects that the ES is down, the MAC / IP corresponding to that ES still exists and has the Proxy attribute. At this time, PE1 refreshes the underlying Neighbor (NEIGH) table to associate the Proxy route with the tunnel side corresponding to the next hop.

[0090] Optionally, such as Figure 5As shown, during the timer period, when CE2 accesses CE1, and the traffic reaches PE1 via load balancing through PE3, PE1 queries the NEIGH table, points the egress to PE2, and performs VXLAN encapsulation. When the traffic reaches PE2, the VXLAN encapsulation is decapsulated, PE2 queries its local table entry, and redirects the traffic to CE1. When the PE2 slow deletion timer expires, both the NEIGH tables of PE1 and PE2 are deleted, and subsequent traffic triggers a re-ARP learning process.

[0091] Therefore, in the event of a main link failure, if the target CE's MAC address table entry and ARP table entry are learned by the same PE, the dual-homed PE can forward the target traffic to the target CE, thus preventing packet loss.

[0092] The traffic forwarding method for MLAG-based dual-homed access EVPN provided by this invention determines the first MAC / IP route associated with the target ESI in the event of a primary link failure. This first MAC / IP route is the local route used by the second PE to forward traffic to the target CE, and its routing attribute is a preset attribute value. That is, there is a MAC / IP route with a proxy attribute among the routes associated with the target ESI. Based on the first MAC / IP route, the exit of the target traffic can be configured to point to the second PE, enabling the target traffic to be forwarded to the second PE, which then forwards the target traffic to the target CE. By adding a BGP extended community attribute, the dual-homed PE can form a protection group on the access side and tunnel side for the MAC / IP routes associated with the same ESI, thus preventing traffic packet loss in the event of a primary link failure.

[0093] Figure 6 This is the second flowchart illustrating the traffic forwarding method based on MLAG dual-homed access EVPN provided by this invention, as follows: Figure 6 As shown, the execution entity of the traffic forwarding method can be a PE (Personal Equipment). The method includes:

[0094] Step 601: Based on the target ESI corresponding to the main link, determine the first MAC / IP route associated with the target ESI. The first MAC / IP route is the local route used by the second PE to forward traffic to the target CE.

[0095] Wherein, the target CE is a CE that is dual-homed to the first PE and the second PE, the primary link in the EVPN is the link between the target CE and the first PE, and the backup link in the EVPN is the link between the target CE and the second PE.

[0096] Specifically, in the scenario of dual-homed access EVPN based on MLAG, the target CE can be dual-homed to the first PE and the second PE. The link between the target CE and the first PE can be the primary link, and the link between the target CE and the second PE can be the backup link. The second MAC / IP route can be generated by the first PE, and this second MAC / IP route is the local route used by the first PE to forward traffic to the target CE. The first MAC / IP route can be generated by the second PE, and this first MAC / IP route is the local route used by the second PE to forward traffic to the target CE. The first MAC / IP route and the second MAC / IP route have the same ESI, which is the target ESI.

[0097] Specifically, in order to form a protection group for MAC / IP routes associated with the same ESI on the access side and the tunnel side, the second PE can determine the first MAC / IP route associated with the target ESI based on the target ESI corresponding to the main link, and then configure routing attributes for the first MAC / IP route.

[0098] Step 602: Configure the routing attribute of the first MAC / IP route to a preset attribute value by adding a new BGP extended community attribute. The preset attribute value indicates that the first MAC / IP route has a proxy attribute.

[0099] Specifically, after determining the first MAC / IP route associated with the target ESI, the routing attribute of the first MAC / IP route can be configured to a preset attribute value by adding a BGP extended community attribute. Since the preset attribute value indicates that the first MAC / IP route has a proxy attribute, the dual-homed PE can form a protection group on the access side and the tunnel side for the MAC / IP routes associated with the same ESI.

[0100] Understandably, in the event of a main link failure, the first PE can determine the MAC / IP route with proxy attributes associated with the target ESI through the target ESI corresponding to the main link, i.e., the first MAC / IP route. Since the first MAC / IP route is the local route used by the second PE to forward traffic to the target CE, the first PE will configure the exit of the target traffic (i.e., the traffic to be sent to the target CE, which is forwarded via the first PE) to point to the second PE, and then forward the target traffic to the target CE through the second PE. Therefore, a dual-homed PE can form a protection group on the access side and the tunnel side for the MAC / IP routes associated with the same ESI.

[0101] The traffic forwarding method based on MLAG dual-homed access EVPN provided by this invention configures the routing attributes of the first MAC / IP route to a preset attribute value by adding a BGP extended community attribute. Since the preset attribute value indicates that the first MAC / IP route has a proxy attribute, the dual-homed PE can form a protection group on the access side and the tunnel side for MAC / IP routes associated with the same ESI. This allows the first PE to configure the exit of the target traffic to point to the second PE in the event of a primary link failure, ensuring that the target traffic can be forwarded to the target CE through the second PE.

[0102] Optionally, according to the traffic forwarding method for MLAG dual-homed access EVPN provided by the present invention, after configuring the routing attributes of the first MAC / IP route by adding a new BGP extended community attribute, the method further includes:

[0103] Determine whether the target message sent by the first PE is received, wherein the target message is used to instruct the second PE to delete the local MAC / IP route associated with the target ESI;

[0104] If it is determined that the target message sent by the first PE has been received, start the slow deletion timer;

[0105] The slow deletion timer is used to keep the exit of the first MAC / IP route pointing to the local access side within a preset time period.

[0106] Understandably, in the event of a main link failure, for the second scenario (i.e., the target CE's MAC address entry and target CE's ARP entry are learned by the same PE), the MAC exit is invalid. The first PE can delete the local MAC / IP route associated with the target ESI and send a target message to the second PE to instruct the second PE to delete the local MAC / IP route associated with the target ESI.

[0107] Specifically, in order to ensure that the dual-homed PE can forward the target traffic to the target CE in the second scenario, the second PE can start a slow deletion timer after receiving the target message sent by the first PE. The slow deletion timer can be used to keep the exit of the first MAC / IP route pointing to the local access side within a preset time period.

[0108] Understandably, within a preset time period, the first PE can detect that the MAC / IP route with proxy attributes associated with the target ESI still exists. That is, within the preset time period, the first PE can determine the first MAC / IP route associated with the target ESI. This first MAC / IP route is the local route used by the second PE to forward traffic to the target CE. Therefore, the first PE can configure the exit point of the target traffic (i.e., the traffic to be sent to the target CE, which is forwarded via the first PE) to point to the second PE, and then forward the target traffic to the target CE through the second PE. Thus, a dual-homed PE can form a protection group on the access side and tunnel side for the MAC / IP routes associated with the same ESI.

[0109] Therefore, in the event of a main link failure, for scenarios where the MAC address entry and ARP entry of the target CE are learned by the same PE, a slow deletion timer can be started by the second PE to enable the dual-homed PE to forward the target traffic to the target CE, thus preventing traffic packet loss.

[0110] Optionally, according to the traffic forwarding method for MLAG dual-homed access EVPN provided by the present invention, after configuring the routing attributes of the first MAC / IP route by adding a new BGP extended community attribute, the method further includes:

[0111] In the event of a backup link failure, a second MAC / IP route associated with the target ESI is determined. The second MAC / IP route is the local route used by the first PE to forward traffic to the target CE.

[0112] Based on the second MAC / IP route, configure the exit of the first MAC / IP route to point to the first PE, and configure the exit of the second table entry to point to the first PE;

[0113] The second entry is the entry in the neighbor table of the second PE that corresponds to the target CE.

[0114] Specifically, in the event of a backup link failure, the second PE can determine the second MAC / IP route associated with the target ESI based on the target ESI. This second MAC / IP route is the local route used by the first PE to forward traffic to the target CE. The second PE can then configure the exit point of the first MAC / IP route to point to the first PE, and configure the exit point of the second entry to point to the first PE. The second PE can then send traffic forwarded via the second PE (traffic destined for the target CE) to the first PE, which will then forward the traffic to the target CE. Thus, a dual-homed PE can form a protection group on both the access side and the tunnel side for MAC / IP routes associated with the same ESI.

[0115] Optionally, Figure 7 This is a schematic diagram of traffic bypass in a dual-homed device backup link failure scenario provided by the present invention, as shown below. Figure 7 As shown, the first PE can be PE1, the second PE can be PE2, and the target CE can be CE1. When the backup link goes down, the local Ethernet Segmentation-Automatic Discovery (ES-AD) route on PE2 is cancelled. At the same time, PE2 quickly refreshes the MAC / IP egress of the MAC / IP route (i.e., the first MAC / IP route) from the dual-homed side corresponding to this ESI, refreshing it from the AC side to the tunnel side (pointing to PE1), and then refreshes the NEIGH table corresponding to this MAC / IP to point to the tunnel side.

[0116] Optionally, such as Figure 7 As shown, when CE2 accesses CE1, traffic to PE3 is load-balanced to PE2. On PE2, traffic is encapsulated via VXLAN before reaching PE1, where it is decapsulated and finally reaches CE1. This ensures that packet loss does not occur when the backup link goes down. When the backup link comes up, PE2 quickly reroutes to its local AC port, so traffic to PE2 does not bypass PE1 and directly reaches CE1 through its local AC port.

[0117] As can be seen, in the event of a backup link failure, EVPN can switch accordingly on the AC side and the tunnel side to prevent packet loss. In other words, dual-homed PEs can form a protection group on the access side and the tunnel side for MAC / IP routes associated with the same ESI. Moreover, after forming this protection group, it can effectively prevent jitter in the handling of accidental downtime of access-side links.

[0118] Therefore, in the event of a backup link failure, by configuring the traffic exit to point to the first PE, the traffic can be forwarded to the first PE, and then forwarded to the target CE via the first PE. The dual-homed PE can forward the target traffic to the target CE, which can prevent traffic packet loss.

[0119] The traffic forwarding method based on MLAG dual-homed access EVPN provided by this invention configures the routing attributes of the first MAC / IP route to a preset attribute value by adding a BGP extended community attribute. Since the preset attribute value indicates that the first MAC / IP route has a proxy attribute, the dual-homed PE can form a protection group on the access side and the tunnel side for MAC / IP routes associated with the same ESI. This allows the first PE to configure the exit of the target traffic to point to the second PE in the event of a primary link failure, ensuring that the target traffic can be forwarded to the target CE through the second PE.

[0120] The following describes the traffic forwarding device based on MLAG dual-homed access EVPN provided by the present invention. The traffic forwarding device based on MLAG dual-homed access EVPN described below can be referred to in correspondence with the traffic forwarding method based on MLAG dual-homed access EVPN described above.

[0121] Figure 8 This is one of the structural schematic diagrams of the traffic forwarding device based on MLAG dual-homed access EVPN provided by the present invention, such as... Figure 8 As shown, the device can be applied to a first PE. The device includes: a first determining module 801 and a first configuring module 802, wherein:

[0122] The first determining module 801 is used to determine, in the event of a main link failure, a first Media Access Control / Internet Protocol (MAC / IP) route associated with the target ESI based on the unique identifier (ESI) of the target Ethernet segment corresponding to the main link. The routing attribute of the first MAC / IP route is a preset attribute value, which indicates that the first MAC / IP route has a proxy attribute.

[0123] The first configuration module 802 is used to configure the exit of the target traffic to point to the second PE based on the first MAC / IP route, wherein the target traffic is the traffic to be sent to the target CE;

[0124] Wherein, the target CE is a CE that is dual-homed to the first PE and the second PE, the primary link in the EVPN is the link between the target CE and the first PE, the backup link in the EVPN is the link between the target CE and the second PE, the first MAC / IP route is the local route used by the second PE to forward traffic to the target CE, and the routing attributes of the first MAC / IP route are configured by the second PE by adding a Border Gateway Protocol (BGP) extended community attribute.

[0125] Optionally, according to the traffic forwarding device based on MLAG dual-homed access EVPN provided by the present invention, when the MAC address entry of the target CE and the ARP entry of the target CE are learned by different PEs, the first configuration module is specifically used for:

[0126] Based on the first MAC / IP route, configure the exit of the second MAC / IP route to point to the second PE, and configure the exit of the first table entry to point to the second PE;

[0127] The second MAC / IP route is the local route used by the first PE to forward traffic to the target CE, and the first entry is the entry in the neighbor table of the first PE corresponding to the target CE.

[0128] Optionally, according to the traffic forwarding device based on MLAG dual-homed access EVPN provided by the present invention, the device further includes a deletion module. When the MAC address entry of the target CE and the ARP entry of the target CE are learned by the same PE, before configuring the egress of the target traffic to point to the second PE based on the first MAC / IP route, the deletion module is used to:

[0129] Delete the local MAC / IP route associated with the target ESI and send a target message to the second PE, the target message being used to instruct the second PE to delete the local MAC / IP route associated with the target ESI;

[0130] The first configuration module is specifically used for:

[0131] Based on the first MAC / IP route, configure the exit point of the first table entry to point to the second PE;

[0132] The first entry is the entry in the neighbor table of the first PE that corresponds to the target CE.

[0133] The traffic forwarding device based on MLAG dual-homed access EVPN provided by this invention determines the first MAC / IP route associated with the target ESI in the event of a primary link failure. The first MAC / IP route is the local route used by the second PE to forward traffic to the target CE, and the routing attribute of the first MAC / IP route is a preset attribute value. That is, there is a MAC / IP route with the proxy attribute among the routes associated with the target ESI. Based on the first MAC / IP route, the exit of the target traffic can be configured to point to the second PE, and the target traffic can be forwarded to the second PE, so that the target traffic can be forwarded to the target CE. By adding a BGP extended community attribute, the dual-homed PE can form a protection group on the access side and the tunnel side for the MAC / IP routes associated with the same ESI, which can prevent traffic packet loss in the event of a primary link failure.

[0134] Figure 9 This is the second schematic diagram of the traffic forwarding device based on MLAG dual-homed access EVPN provided by the present invention, as shown below. Figure 9 As shown, this device can be applied to a second PE. The device includes: a second determining module 901 and a second configuring module 902, wherein:

[0135] The second determining module 901 is used to determine the first MAC / IP route associated with the target ESI based on the target ESI corresponding to the main link. The first MAC / IP route is the local route used by the second PE to forward traffic to the target CE.

[0136] The second configuration module 902 is used to configure the routing attribute of the first MAC / IP route to a preset attribute value by adding a new BGP extended community attribute. The preset attribute value indicates that the first MAC / IP route has a proxy attribute.

[0137] Wherein, the target CE is a CE that is dual-homed to the first PE and the second PE, the primary link in the EVPN is the link between the target CE and the first PE, and the backup link in the EVPN is the link between the target CE and the second PE.

[0138] Optionally, according to the traffic forwarding device based on MLAG dual-homed access EVPN provided by the present invention, the device further includes a timing module. After configuring the routing attributes of the first MAC / IP route by adding a BGP extended community attribute, the timing module is used to:

[0139] Determine whether the target message sent by the first PE is received, wherein the target message is used to instruct the second PE to delete the local MAC / IP route associated with the target ESI;

[0140] If it is determined that the target message sent by the first PE has been received, start the slow deletion timer;

[0141] The slow deletion timer is used to keep the exit of the first MAC / IP route pointing to the local access side within a preset time period.

[0142] Optionally, according to the traffic forwarding device based on MLAG dual-homed access EVPN provided by the present invention, the device further includes a third configuration module. After configuring the routing attributes of the first MAC / IP route by adding a BGP extended community attribute, the third configuration module is used to:

[0143] In the event of a backup link failure, a second MAC / IP route associated with the target ESI is determined. The second MAC / IP route is the local route used by the first PE to forward traffic to the target CE.

[0144] Based on the second MAC / IP route, configure the exit of the first MAC / IP route to point to the first PE, and configure the exit of the second table entry to point to the first PE;

[0145] The second entry is the entry in the neighbor table of the second PE that corresponds to the target CE.

[0146] The traffic forwarding device based on MLAG dual-homed access EVPN provided by this invention configures the routing attributes of the first MAC / IP route to a preset attribute value by adding a BGP extended community attribute. Since the preset attribute value indicates that the first MAC / IP route has a proxy attribute, the dual-homed PE can form a protection group on the access side and the tunnel side for MAC / IP routes associated with the same ESI. This allows the first PE to configure the exit of the target traffic to point to the second PE in the event of a primary link failure, ensuring that the target traffic can be forwarded to the target CE through the second PE.

[0147] Figure 10 This is a schematic diagram of the structure of the electronic device provided by the present invention, such as... Figure 10 As shown, the electronic device may include: a processor 1010, a communications interface 1020, a memory 1030, and a communication bus 1040, wherein the processor 1010, the communications interface 1020, and the memory 1030 communicate with each other through the communication bus 1040. The processor 1010 can call logical instructions in the memory 1030 to execute a traffic forwarding method based on MLAG dual-homed access EVPN, for example, the method includes:

[0148] In the event of a primary link failure, based on the unique identifier (ESI) of the target Ethernet segment corresponding to the primary link, a first Media Access Control / Internet Protocol (MAC / IP) route associated with the target ESI is determined. The routing attribute of the first MAC / IP route is a preset attribute value, which indicates that the first MAC / IP route has a proxy attribute.

[0149] Based on the first MAC / IP route, the exit point of the target traffic is configured to point to the second PE, and the target traffic is the traffic to be sent to the target user-side edge device CE;

[0150] Wherein, the target CE is a CE that is dual-homed to the first PE and the second PE, the primary link in the EVPN is the link between the target CE and the first PE, the backup link in the EVPN is the link between the target CE and the second PE, the first MAC / IP route is the local route used by the second PE to forward traffic to the target CE, and the routing attributes of the first MAC / IP route are configured by the second PE by adding a Border Gateway Protocol (BGP) extended community attribute.

[0151] Or, for example, the method includes:

[0152] Based on the target ESI corresponding to the main link, determine the first MAC / IP route associated with the target ESI. The first MAC / IP route is the local route used by the second PE to forward traffic to the target CE.

[0153] By adding a new BGP extended community attribute, the routing attribute of the first MAC / IP route is configured to a preset attribute value, and the preset attribute value indicates that the first MAC / IP route has a proxy attribute;

[0154] Wherein, the target CE is a CE that is dual-homed to the first PE and the second PE, the primary link in the EVPN is the link between the target CE and the first PE, and the backup link in the EVPN is the link between the target CE and the second PE.

[0155] Furthermore, the logical instructions in the aforementioned memory 1030 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0156] On the other hand, the present invention also provides a computer program product, which includes a computer program that can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer is able to execute the traffic forwarding method based on MLAG dual-homed access EVPN provided by the above methods. For example, the method includes:

[0157] In the event of a primary link failure, based on the unique identifier (ESI) of the target Ethernet segment corresponding to the primary link, a first Media Access Control / Internet Protocol (MAC / IP) route associated with the target ESI is determined. The routing attribute of the first MAC / IP route is a preset attribute value, which indicates that the first MAC / IP route has a proxy attribute.

[0158] Based on the first MAC / IP route, the exit point of the target traffic is configured to point to the second PE, and the target traffic is the traffic to be sent to the target user-side edge device CE;

[0159] Wherein, the target CE is a CE that is dual-homed to the first PE and the second PE, the primary link in the EVPN is the link between the target CE and the first PE, the backup link in the EVPN is the link between the target CE and the second PE, the first MAC / IP route is the local route used by the second PE to forward traffic to the target CE, and the routing attributes of the first MAC / IP route are configured by the second PE by adding a Border Gateway Protocol (BGP) extended community attribute.

[0160] Or, for example, the method includes:

[0161] Based on the target ESI corresponding to the main link, determine the first MAC / IP route associated with the target ESI. The first MAC / IP route is the local route used by the second PE to forward traffic to the target CE.

[0162] By adding a new BGP extended community attribute, the routing attribute of the first MAC / IP route is configured to a preset attribute value, and the preset attribute value indicates that the first MAC / IP route has a proxy attribute;

[0163] Wherein, the target CE is a CE that is dual-homed to the first PE and the second PE, the primary link in the EVPN is the link between the target CE and the first PE, and the backup link in the EVPN is the link between the target CE and the second PE.

[0164] In another aspect, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the traffic forwarding method based on MLAG dual-homed access EVPN provided by the above methods, for example, the method includes:

[0165] In the event of a primary link failure, based on the unique identifier (ESI) of the target Ethernet segment corresponding to the primary link, a first Media Access Control / Internet Protocol (MAC / IP) route associated with the target ESI is determined. The routing attribute of the first MAC / IP route is a preset attribute value, which indicates that the first MAC / IP route has a proxy attribute.

[0166] Based on the first MAC / IP route, the exit point of the target traffic is configured to point to the second PE, and the target traffic is the traffic to be sent to the target user-side edge device CE;

[0167] Wherein, the target CE is a CE that is dual-homed to the first PE and the second PE, the primary link in the EVPN is the link between the target CE and the first PE, the backup link in the EVPN is the link between the target CE and the second PE, the first MAC / IP route is the local route used by the second PE to forward traffic to the target CE, and the routing attributes of the first MAC / IP route are configured by the second PE by adding a Border Gateway Protocol (BGP) extended community attribute.

[0168] Or, for example, the method includes:

[0169] Based on the target ESI corresponding to the main link, determine the first MAC / IP route associated with the target ESI. The first MAC / IP route is the local route used by the second PE to forward traffic to the target CE.

[0170] By adding a new BGP extended community attribute, the routing attribute of the first MAC / IP route is configured to a preset attribute value, and the preset attribute value indicates that the first MAC / IP route has a proxy attribute;

[0171] Wherein, the target CE is a CE that is dual-homed to the first PE and the second PE, the primary link in the EVPN is the link between the target CE and the first PE, and the backup link in the EVPN is the link between the target CE and the second PE.

[0172] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.

[0173] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.

[0174] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A traffic forwarding method based on MLAG dual-homed access EVPN, characterized in that, Applied to the first network-side edge device (PE), including: In the event of a primary link failure, based on the unique identifier (ESI) of the target Ethernet segment corresponding to the primary link, a first Media Access Control / Internet Protocol (MAC / IP) route associated with the target ESI is determined. The routing attribute of the first MAC / IP route is a preset attribute value, which indicates that the first MAC / IP route has a proxy attribute. Based on the first MAC / IP route, the exit point of the target traffic is configured to point to the second PE, and the target traffic is the traffic to be sent to the target user-side edge device CE; Wherein, the target CE is a CE that is dual-homed to the first PE and the second PE, the primary link in the EVPN is the link between the target CE and the first PE, the backup link in the EVPN is the link between the target CE and the second PE, the first MAC / IP route is the local route used by the second PE to forward traffic to the target CE, and the routing attributes of the first MAC / IP route are configured by the second PE by adding a Border Gateway Protocol (BGP) extended community attribute.

2. The traffic forwarding method based on MLAG dual-homed access EVPN according to claim 1, characterized in that, When the MAC address entries and ARP entries of the target CE are learned by different PEs, configuring the egress of the target traffic to point to the second PE based on the first MAC / IP route includes: Based on the first MAC / IP route, configure the exit of the second MAC / IP route to point to the second PE, and configure the exit of the first table entry to point to the second PE; The second MAC / IP route is the local route used by the first PE to forward traffic to the target CE, and the first entry is the entry in the neighbor table of the first PE corresponding to the target CE.

3. The traffic forwarding method based on MLAG dual-homed access EVPN according to claim 1, characterized in that, If the MAC address entry and ARP entry of the target CE are learned by the same PE, before configuring the egress of the target traffic to point to the second PE based on the first MAC / IP route, the method further includes: Delete the local MAC / IP route associated with the target ESI and send a target message to the second PE, the target message being used to instruct the second PE to delete the local MAC / IP route associated with the target ESI; The step of configuring the exit point of the target traffic to the second PE based on the first MAC / IP route includes: Based on the first MAC / IP route, configure the exit point of the first table entry to point to the second PE; The first entry is the entry in the neighbor table of the first PE that corresponds to the target CE.

4. A traffic forwarding method based on MLAG dual-homed access EVPN, characterized in that, Applied to the second PE, including: Based on the target ESI corresponding to the main link, determine the first MAC / IP route associated with the target ESI. The first MAC / IP route is the local route used by the second PE to forward traffic to the target CE. By adding a new BGP extended community attribute, the routing attribute of the first MAC / IP route is configured to a preset attribute value, and the preset attribute value indicates that the first MAC / IP route has a proxy attribute; Wherein, the target CE is a CE that is dual-homed to the first PE and the second PE, the primary link in the EVPN is the link between the target CE and the first PE, and the backup link in the EVPN is the link between the target CE and the second PE.

5. The traffic forwarding method based on MLAG dual-homed access EVPN according to claim 4, characterized in that, After configuring the routing attributes of the first MAC / IP route to the preset attribute value by adding a new BGP extended community attribute, the method further includes: Determine whether the target message sent by the first PE is received, wherein the target message is used to instruct the second PE to delete the local MAC / IP route associated with the target ESI; If it is determined that the target message sent by the first PE has been received, start the slow deletion timer; The slow deletion timer is used to keep the exit of the first MAC / IP route pointing to the local access side within a preset time period.

6. The traffic forwarding method based on MLAG dual-homed access EVPN according to claim 4, characterized in that, After configuring the routing attributes of the first MAC / IP route to the preset attribute value by adding a new BGP extended community attribute, the method further includes: In the event of a backup link failure, a second MAC / IP route associated with the target ESI is determined. The second MAC / IP route is the local route used by the first PE to forward traffic to the target CE. Based on the second MAC / IP route, configure the exit of the first MAC / IP route to point to the first PE, and configure the exit of the second table entry to point to the first PE; The second entry is the entry in the neighbor table of the second PE that corresponds to the target CE.

7. A traffic forwarding device based on MLAG dual-homed access EVPN, characterized in that, Applied to the first PE, including: The first determining module is used to determine, in the event of a main link failure, a first Media Access Control / Internet Protocol (MAC / IP) route associated with the target ESI based on the unique identifier (ESI) of the target Ethernet segment corresponding to the main link. The routing attribute of the first MAC / IP route is a preset attribute value, which indicates that the first MAC / IP route has a proxy attribute. The first configuration module is used to configure the exit of the target traffic to point to the second PE based on the first MAC / IP route, wherein the target traffic is the traffic to be sent to the target CE; Wherein, the target CE is a CE that is dual-homed to the first PE and the second PE, the primary link in the EVPN is the link between the target CE and the first PE, the backup link in the EVPN is the link between the target CE and the second PE, the first MAC / IP route is the local route used by the second PE to forward traffic to the target CE, and the routing attributes of the first MAC / IP route are configured by the second PE by adding a Border Gateway Protocol (BGP) extended community attribute.

8. A traffic forwarding device based on MLAG dual-homed access EVPN, characterized in that, Applied to the second PE, including: The second determining module is used to determine the first MAC / IP route associated with the target ESI based on the target ESI corresponding to the main link. The first MAC / IP route is the local route used by the second PE to forward traffic to the target CE. The second configuration module is used to configure the routing attributes of the first MAC / IP route to preset attribute values ​​by adding a new BGP extended community attribute. The preset attribute value indicates that the first MAC / IP route has proxy attributes. Wherein, the target CE is a CE that is dual-homed to the first PE and the second PE, the primary link in the EVPN is the link between the target CE and the first PE, and the backup link in the EVPN is the link between the target CE and the second PE.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the traffic forwarding method based on MLAG dual-homed access EVPN as described in any one of claims 1 to 6.

10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the traffic forwarding method based on MLAG dual-homed access EVPN as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Fault processing method and apparatus

    CN108600075A

  • Method, equipment and system for processing message

    CN109672619A