CN115499360A - Fault processing method, device, equipment and medium under EVPN multi-homing scene - Google Patents

Fault processing method, device, equipment and medium under EVPN multi-homing scene Download PDF

Info

Publication number
CN115499360A
CN115499360A CN202210369625.XA CN202210369625A CN115499360A CN 115499360 A CN115499360 A CN 115499360A CN 202210369625 A CN202210369625 A CN 202210369625A CN 115499360 A CN115499360 A CN 115499360A
Authority
CN
China
Prior art keywords
mac
address
equipment
route
sent
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
CN202210369625.XA
Other languages
Chinese (zh)
Inventor
王雪伟
林伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Star Net Ruijie Networks Co Ltd
Original Assignee
Ruijie Networks Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ruijie Networks Co Ltd filed Critical Ruijie Networks Co Ltd
Priority to CN202210369625.XA priority Critical patent/CN115499360A/en
Publication of CN115499360A publication Critical patent/CN115499360A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or discovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/28Routing or path finding of packets in data switching networks using route fault recovery

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Small-Scale Networks (AREA)

Abstract

The embodiment of the invention provides a fault processing method, device, equipment and medium under an EVPN multi-homing scene. The method comprises the following steps: receiving an Ethernet automatic discovery route and a Media Access Control (MAC)/network protocol (IP) address advertisement route sent by opposite terminal PE equipment; determining each PE device in the opposite-end multi-homing PE device group according to the received Ethernet automatic discovery route; if at least one PE device in the PE device group is detected to be in fault, deleting the Ethernet automatic discovery route sent by the PE device in fault; and if the corresponding MAC/IP address advertisement route sent by other PE equipment in the PE equipment group is received, replacing the MAC/IP address advertisement route sent by the failed PE equipment with the corresponding MAC/IP address advertisement route sent by the other PE equipment. The fault processing method under the EVPN multi-homing scene provided by the embodiment of the invention solves the problem of flow delay caused by the loss of EVPN routing table entries under the EVPN multi-homing fault scene.

Description

Fault processing method, device, equipment and medium under EVPN multi-homing scene
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a method, a device, equipment and a medium for processing faults in an EVPN multi-homing scene.
Background
EVPN (Ethernet Virtual Private Network) is a VPN solution for next generation full service bearer, and it unifies control planes of various L2VPN and L3VPN services, and uses BGP (Border Gateway Protocol) extension Protocol to transfer reachability information of two or three layers, thereby implementing separation of forwarding plane and control plane.
In order to implement interworking between sites (sites), an EVPN instance is established on a PE (Provider Edge) device and is accessed to a CE (Customer Edge) device of each Site, and a neighbor relationship and an MPLS (Multi-Protocol Label Switching)/SR (Segment Routing) tunnel are established between PE devices. According to the connection form between the PE equipment and the CE equipment, the EVPN networking types can be divided into two types of CE multi-homing and CE single-homing. In fig. 1, the connection form between CE2 and PE3 belongs to a CE single-homing networking type, the connection form between CE1 and PE2 belongs to a CE multi-homing networking type, and the CE multi-homing networking type can support a load sharing function.
In CE multi-homing networking, a redundancy mode of EVPN networking may be configured, that is, an active mode of each PE connected to the same CE is configured to be a multi-active mode or a single-active mode. Whether the CE multi-homing networking carries out load sharing on the unicast traffic can be controlled by configuring the redundancy mode, if the PE1 and the PE2 are both configured to be the multi-active mode, the PE3 can simultaneously send the traffic to the PE1 and the PE2 in a load sharing mode when sending the unicast traffic to the CE 1.
In a CE multi-homing and multi-living scenario, some PE devices in the multi-homing PE devices may not learn the MAC address of the CE side, and at this time, the remote PE device may perceive the reachability of the MAC address of the CE side through the ethernet segment identification ESI value carried by the ethernet auto discovery route sent by the multi-homing PE device, which is called an alias. As shown in fig. 1, only PE1 in PE1 and PE2 sends a MAC/IP address advertisement route carrying the MAC address of CE1 side to PE3, but PE3 may sense that PE2 may also reach CE1 through an ethernet auto discovery route, that is, load sharing may be formed.
If CE1 needs to communicate with CE2, CE1 load balances traffic to PE1 and PE2, for example, CE1 selects PE1, PE1 learns the MAC address of CE1 and announces the route to a remote PE, namely PE3, through EVPN MAC/IP address announcement route, meanwhile, PE3 also receives the Ethernet automatic discovery route of PE1 and PE2, and through the alias process, PE3 considers that CE1 can be reached through PE1 and PE 2.
If PE1 fails, according to the EVPN standard flow, PE3 withdraws all routes of PE1, then no MAC/IP address of CE1 announces the route on PE3, CE1 is considered unreachable, but PE2 is reachable, and PE3 cannot reestablish the forwarding table entry to CE1 until PE2 learns the MAC route and issues to PE3 through the control plane.
In the time from the failure occurrence to the EVPN control plane learning and propagation to the remote PE, the remote PE may cause traffic delay due to missing forwarding entries of CE1, which affects service experience.
Disclosure of Invention
Aiming at the defects in the prior art, the embodiment of the invention provides a fault processing method, a fault processing device, fault processing equipment and a fault processing medium in an EVPN multi-homing scene.
In a first aspect, an embodiment of the present invention provides a method for handling a fault in an EVPN multi-homing scenario, where the method is applied to an operator edge PE device, and includes:
receiving an Ethernet automatic discovery route and a Media Access Control (MAC)/network protocol (IP) address advertisement route sent by opposite terminal PE equipment;
determining each PE device in the opposite-end multi-homing PE device group according to the received Ethernet automatic discovery route;
if at least one PE device in the PE device group is detected to be failed, deleting an Ethernet automatic discovery route sent by the failed PE device;
and if the corresponding MAC/IP address advertisement route sent by other PE equipment in the PE equipment group is received, replacing the MAC/IP address advertisement route sent by the failed PE equipment with the corresponding MAC/IP address advertisement route sent by the other PE equipment.
As above, optionally, the detecting that at least one PE device in the PE device group fails includes:
and aiming at each PE device in the PE device group, judging whether each PE device has a fault or not according to a communication protocol monitoring result between each PE device and each PE device.
As in the foregoing method, optionally, after deleting the ethernet auto discovery route sent by the failed PE device, the method further includes:
starting an aging timer;
and if the corresponding MAC/IP address notification route sent by other PE equipment in the PE equipment group is not received after the aging timer finishes timing, deleting the MAC/IP address notification route sent by the failed PE equipment.
As above, optionally, the determining, according to the received ethernet auto discovery route, each PE device in the peer-to-peer multihomed PE device group includes:
acquiring an Ethernet Segment Identification (ESI) value carried in each received Ethernet automatic discovery route;
determining a plurality of PE devices with the same ESI value as a multi-homing PE device group;
the ESI values corresponding to each multi-homed PE device group are marked.
As above, optionally, if it is detected that at least one PE device in the PE device group fails, after deleting the ethernet auto discovery route sent by the failed PE device, the method further includes:
and if the corresponding MAC/IP address notification route sent by other PE equipment in the PE equipment group is determined to be stored and the ESI value carried in the MAC/IP address notification route is the same as the ESI value corresponding to the PE equipment group, deleting the MAC/IP address notification route sent by the failed PE equipment.
As above, optionally, the receiving of the corresponding MAC/IP address advertisement route sent by other PE devices in the PE device group includes:
and receiving MAC/IP address notification routes sent by other PE devices in the PE device group, wherein the MAC address, the IP address and the ESI values carried in the received MAC/IP address notification routes are respectively the same as the MAC address, the IP address and the ESI values carried in the MAC/IP address notification routes sent by the failed PE device, and the ESI values are equal to the ESI values of the PE device group.
The method as described above, optionally, further includes:
and if detecting that each PE device in the PE device group has a fault, deleting the Ethernet automatic discovery route and the MAC/IP address advertisement route sent by the faulty PE device.
In a second aspect, an embodiment of the present invention provides a fault handling apparatus in an EVPN multi-homing scenario, applied to an operator edge PE device, including:
the receiving module is used for receiving an Ethernet automatic discovery route and a Media Access Control (MAC)/network protocol (IP) address advertisement route sent by opposite-end PE equipment;
a determining module, configured to determine, according to the received ethernet auto discovery route, each PE device in the peer-to-peer multihomed PE device group;
a detection deleting module, configured to delete the ethernet automatic discovery route sent by the failed PE device if it is detected that at least one PE device in the PE device group fails;
and the replacing module is used for replacing the MAC/IP address notification route sent by the failed PE device by using the corresponding MAC/IP address notification route sent by the other PE devices if the corresponding MAC/IP address notification route sent by the other PE devices in the PE device group is received.
Optionally, the detecting and deleting module is specifically configured to:
and aiming at each PE device in the PE device group, judging whether each PE device has a fault or not according to a communication protocol monitoring result between each PE device and each PE device.
As in the foregoing apparatus, optionally, the detecting and deleting module is further configured to:
starting an aging timer;
and if the corresponding MAC/IP address notification route sent by other PE equipment in the PE equipment group is not received after the aging timer finishes timing, deleting the MAC/IP address notification route sent by the failed PE equipment.
Optionally, the determining module is specifically configured to:
acquiring an Ethernet Segment Identification (ESI) value carried in each received Ethernet automatic discovery route;
determining a plurality of PE devices with the same ESI value as a multi-homing PE device group;
the ESI values corresponding to each multi-homed PE device group are marked.
As in the foregoing apparatus, optionally, the detecting and deleting module is further configured to:
and if the corresponding MAC/IP address notification route sent by other PE equipment in the PE equipment group is determined to be stored, and the ESI value carried in the MAC/IP address notification route is the same as the ESI value corresponding to the PE equipment group, deleting the MAC/IP address notification route sent by the failed PE equipment.
As with the apparatus described above, optionally, the replacement module is specifically configured to:
and receiving MAC/IP address notification routes sent by other PE devices in the PE device group, wherein the MAC address, the IP address and the ESI values carried in the received MAC/IP address notification routes are respectively the same as the MAC address, the IP address and the ESI values carried in the MAC/IP address notification routes sent by the failed PE device, and the ESI values are equal to the ESI values of the PE device group.
As in the foregoing apparatus, optionally, the detecting and deleting module is further configured to:
and if detecting that each PE device in the PE device group has a fault, deleting the Ethernet automatic discovery route and the MAC/IP address advertisement route sent by the faulty PE device.
In a third aspect, an embodiment of the present invention provides an electronic device, including:
the processor and the memory are communicated with each other through a bus; the memory stores program instructions executable by the processor, the processor invoking the program instructions to perform a method comprising: receiving an Ethernet automatic discovery route and a Media Access Control (MAC)/network protocol (IP) address advertisement route sent by opposite terminal PE equipment; determining each PE device in the opposite-end multi-homing PE device group according to the received Ethernet automatic discovery route; if at least one PE device in the PE device group is detected to be in fault, deleting the Ethernet automatic discovery route sent by the PE device in fault; and if the corresponding MAC/IP address notification route sent by other PE equipment in the PE equipment group is received, replacing the MAC/IP address notification route sent by the failed PE equipment with the corresponding MAC/IP address notification route sent by the other PE equipment.
In a fourth aspect, an embodiment of the present invention provides a storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the following method: receiving an Ethernet automatic discovery route and a Media Access Control (MAC)/network protocol (IP) address advertisement route sent by opposite terminal PE equipment; determining each PE device in the opposite-end multi-homing PE device group according to the received Ethernet automatic discovery route; if at least one PE device in the PE device group is detected to be in fault, deleting the Ethernet automatic discovery route sent by the PE device in fault; and if the corresponding MAC/IP address advertisement route sent by other PE equipment in the PE equipment group is received, replacing the MAC/IP address advertisement route sent by the failed PE equipment with the corresponding MAC/IP address advertisement route sent by the other PE equipment.
The fault processing method under the EVPN multi-homing scene provided by the embodiment of the invention receives an Ethernet automatic discovery route and a media access control MAC/network protocol IP address notification route which are sent by opposite terminal PE equipment; determining each PE device in the opposite-end multi-homing PE device group according to the received Ethernet automatic discovery route; if at least one PE device in the PE device group is detected to be in fault, deleting the Ethernet automatic discovery route sent by the PE device in fault; and if the corresponding MAC/IP address notification route sent by other PE equipment in the PE equipment group is received, replacing the MAC/IP address notification route sent by the failed PE equipment with the corresponding MAC/IP address notification route sent by the other PE equipment, so that the problem of flow delay caused by the loss of EVPN routing table entries in an EVPN multi-homing failure scene is solved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a schematic diagram of EVPN networking in the prior art;
fig. 2 is a schematic flow chart of a fault handling method in an EVPN multi-homing scenario according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a fault handling apparatus in an EVPN multi-homing scenario according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 2 is a schematic flow diagram of a fault processing method in an EVPN multi-homing scenario provided in the embodiment of the present invention, and as shown in fig. 2, the method includes:
step S21, receiving an Ethernet automatic discovery route and a media access control MAC/network protocol IP address advertisement route sent by opposite terminal PE equipment;
specifically, in order to implement interworking between sites in the EVPN network, an EVPN instance is established on the PE device and is connected to the CE device of each site, and a neighbor relationship and an MPLS/SR tunnel are established between PE devices. For convenience of description, in the present application, a PE device that executes the fault handling method in an EVPN multi-homing scenario is referred to as a far-end PE device, and a PE device that communicates with the far-end PE device is referred to as an opposite-end PE device.
The far-end PE device can transmit EVPN routes with each opposite-end PE device which establishes BGP neighbor relation, so that different PE devices can learn MAC addresses through a control surface. The EVPN Route includes an Ethernet Auto-Discovery Route (Ethernet Auto-Discovery Route) for notifying reachability of the local PE device to the access station, that is, whether the PE device is reachable to the connected station. The Ethernet automatic discovery route carries an Ethernet Segment Identifier (ESI) value, is a unique Identifier defined for connection between a PE device and a certain CE device, and is used to identify an interface connected to the certain CE device on the PE device, where ESI of the same CE device connected to multiple PE devices is the same and ESI of different CE devices connected to the same PE device is different in an EVPN multi-homing scenario.
After the opposite-end PE device learns the MAC address of the CE device through the data plane, the opposite-end PE device sends a media access control MAC/network protocol IP address advertisement route through the control plane, wherein the MAC/IP address advertisement route is one of EVPN routes and is used for sending reachable information of unicast MAC/IP addresses from the local-end PE device to other PE devices. In the MAC/IP address advertisement route sent by each peer PE device, the MAC/IP address advertisement route includes, but is not limited to, ESI values, and MAC addresses carried in the messages forwarded through the interfaces identified by each ESI value.
After the far-end PE device receives the Ethernet automatic discovery route and the MAC/IP address notification route issued by the opposite-end PE device through the control surface, the Ethernet automatic discovery route and the MAC/IP address notification route of each PE device are correspondingly stored, and a route forwarding table is determined according to the MAC/IP address notification route. It should be noted that, in a CE multi-homed scenario, some of the multi-homed PE devices may not learn the MAC address of the CE side, and further cannot send a MAC/IP address advertisement route to the remote PE device through the control plane. At this time, the remote PE device may perceive the reachability of the MAC address on the CE side through the ESI value carried by the automatic ethernet discovery route sent by the PE devices in the multi-homing PE device group, thereby perfecting the forwarding table.
S22, determining each PE device in the opposite-end multi-homing PE device group according to the received Ethernet automatic discovery route;
specifically, after receiving the ethernet auto discovery routes sent by each peer PE device, the remote PE device obtains ESI values carried in the ethernet auto discovery routes, determines multiple PE devices with the same ESI values as multi-homed PE device groups, and marks ESI values corresponding to each multi-homed PE device group, so as to distinguish different multi-homed PE device groups.
Step S23, if at least one PE device in the PE device group is detected to be in fault, deleting the Ethernet automatic discovery route sent by the PE device in fault;
specifically, the far-end PE device may detect whether the opposite-end PE device fails in real time, for example, for each PE device in the PE device group, the far-end PE device determines whether each PE device fails according to a communication protocol monitoring result therebetween, for example, determines whether each PE device fails according to border gateway protocol BGP session detection, and if the BGP session detection is abnormal, indicates that the opposite-end PE device fails, for example, determines whether each PE device fails according to bidirectional forwarding detection BFD.
When detecting that the opposite-end PE has a failure, the far-end PE device needs to delete the ethernet automatic discovery route corresponding to the opposite-end PE device, because the ethernet automatic discovery route identifies the reachability from the PE device to the ethernet segment of the CE device, and if the PE node has a failure, the ethernet segment is definitely unavailable, so the far-end PE device should delete the ethernet automatic discovery route of the failed PE device.
Moreover, because the failed PE device belongs to a PE device in the multi-homing PE device group, the failed PE device is unreachable to the MAC address, and does not represent that the MAC address is really unreachable, and the MAC address can still be reachable by other PE devices in the multi-homing group, the far-end PE device cannot directly delete the MAC/IP address advertisement route issued before the failed PE device.
Step S24, if receiving the corresponding MAC/IP address advertisement route sent by other PE devices in the PE device group, replacing the MAC/IP address advertisement route sent by the failed PE device with the corresponding MAC/IP address advertisement route sent by the other PE devices.
Specifically, if other PE devices in the subsequent PE device group learn the MAC address of the CE device, an MAC/IP address advertisement route is issued, and the remote PE device receives the MAC/IP address advertisement route corresponding to the MAC/IP address advertisement route issued by the failed PE device, may store the newly received MAC/IP address advertisement route sent by the other PE devices, and delete the MAC/IP address advertisement route of the failed PE device, that is, replace the MAC/IP address advertisement route sent by the failed PE device with the corresponding MAC/IP address advertisement route sent by the other PE devices, so that the remote PE device still retains the forwarding table entry in the time period before the other PE devices learn the MAC address of the CE device after a failure occurs in one of the PE devices in the multi-homed PE device group, thereby avoiding the problem of traffic delay. The corresponding MAC/IP address advertisement routes herein mean that the MAC addresses carried in the two MAC/IP address advertisement routes are the same, the IP addresses are the same, and the two PE devices belong to the same PE device group.
The fault processing method under the EVPN multi-homing scene provided by the embodiment of the invention receives an Ethernet automatic discovery route and a media access control MAC/network protocol IP address notification route which are sent by opposite terminal PE equipment; determining each PE device in the opposite-end multi-homing PE device group according to the received Ethernet automatic discovery route; if at least one PE device in the PE device group is detected to be in fault, deleting the Ethernet automatic discovery route sent by the PE device in fault; if the corresponding MAC/IP address notification routes sent by other PE equipment in the PE equipment group are received, the corresponding MAC/IP address notification routes sent by the other PE equipment are used for replacing the MAC/IP address notification routes sent by the failed PE equipment, when part of PE equipment in the multi-homing PE equipment group fails, the remote PE equipment keeps the MAC/IP address routes issued by the PE equipment before, and the MAC/IP address routes issued by the failed PE equipment are not deleted until new MAC/IP address routes issued by the other PE equipment are received, so that the problem of flow delay caused by the loss of EVPN routing table items under an EVPN multi-homing fault scene is solved.
On the basis of the foregoing embodiment, further, after deleting the ethernet auto discovery route sent by the failed PE device, the method further includes:
starting an aging timer;
and if the corresponding MAC/IP address notification route sent by other PE equipment in the PE equipment group is not received after the aging timer finishes timing, deleting the MAC/IP address notification route sent by the failed PE equipment.
Specifically, if the MAC address is truly unreachable, for example, the CE device corresponding to the MAC address is offline, and the PE device that issues the MAC/IP address advertisement route of the MAC address has failed, the CE device cannot revoke the MAC/IP address advertisement route, and the remote PE device may leave these unreachable MAC entries all the time, causing a traffic black hole, so that for the multihomed station, the remote PE device needs to set a timer to delete the aged MAC entries, for example, the timer is set as the MAC address aging time. Specifically, after deleting the ethernet auto discovery route sent by the failed PE device, the far-end PE device may start an aging timer; and if the corresponding MAC/IP address notification route sent by other PE equipment in the PE equipment group is not received after the aging timer finishes timing, deleting the MAC/IP address notification route sent by the failed PE equipment.
On the basis of the above embodiment, further, the method further includes:
and if detecting that each PE device in the PE device group has a fault, deleting the Ethernet automatic discovery route and the MAC/IP address advertisement route sent by the faulty PE device.
Specifically, if all PE devices in the multi-homed PE device group fail, the far-end PE device deletes all routing entries of these PE devices, including the ethernet auto-discovery route and the MAC/IP address advertisement route sent by the failed PE device.
Taking fig. 1 as an example, only PE1 in PE1 and PE2 sends a MAC/IP address advertisement route carrying a MAC address of the CE1 side to PE3, but PE3 may sense that PE2 may also reach CE1 through an ethernet auto discovery route, that is, load sharing may be formed. When CE1 needs to communicate with CE2, CE1 load balances traffic to PE1 and PE2, for example, CE1 selects PE1, PE1 learns the MAC address of CE1 and advertises a route to a remote PE through the MAC/IP address in the EVPN route, i.e., PE3 also receives the ethernet auto discovery route of PE1 and PE2, and PE3 considers CE1 to be reachable through PE1 and PE2 through an alias process, and establishes two forwarding entries to CE 1.
If one PE device in the multi-homed PE device group fails, such as PE1, the remote PE3: the MAC/IP address notification route issued by the failed PE device before is not deleted, because the failed PE device belongs to the PE devices in the multi-homing PE device group, the failed PE device cannot reach the MAC and does not represent that the MAC is really unreachable, and the MAC can still be reached through other PE devices in the multi-homing group. Meanwhile, the remote PE3 needs to delete its corresponding ethernet auto discovery route, because the ethernet auto discovery route identifies the reachability from the PE device to the ethernet segment of the CE device, and if the PE node fails, the network segment is definitely unavailable, so the remote PE3 should delete its ethernet auto discovery route.
If PE2 learns the MAC address of CE1, it will issue MAC/IP address announcement route to PE3, and PE3 can delete the MAC/IP address announcement route issued by PE1 after receiving the route.
If the MAC address of CE1 is aged and PE2 never issues the MAC/IP address advertisement route of the MAC address, and PE1 that learns the MAC address of CE1 has also failed, PE1 will not issue a withdrawal route, PE3 will not receive a MAC address withdrawal message, and the MAC address will remain on PE3, so a timer is set at PE3 to delete the aged MAC entry. If all the PE devices PE1 and PE2 in the multi-homing PE device group are in failure, the far-end PE3 deletes all the routing entries of the PE devices, and therefore the problem that forwarding entries of the far-end PE devices are incomplete when multi-homing partial nodes in the EVPN network are in failure is solved.
On the basis of the foregoing embodiment, further, if it is detected that at least one PE device in the PE device group fails, after deleting the ethernet auto discovery route sent by the failed PE device, the method further includes:
and if the corresponding MAC/IP address notification route sent by other PE equipment in the PE equipment group is determined to be stored, and the ESI value carried in the MAC/IP address notification route is the same as the ESI value corresponding to the PE equipment group, deleting the MAC/IP address notification route sent by the failed PE equipment.
In practical application, after deleting the ethernet auto discovery route sent by the failed PE device, it may also be determined whether a corresponding MAC/IP address advertisement route in the same group issued by other PE devices in the multi-homing PE device group where the failed PE device is located is stored, that is, whether other PE devices in the same multi-homing PE device group have learned the MAC address and have issued the MAC/IP address advertisement route. If the address exists, the deletion of the MAC/IP address notification route sent by the failed PE device is indicated to not influence the accessibility of the MAC address in a MAC address table, so that the MAC/IP address notification route sent by the failed PE device can be directly deleted. Namely, if it is determined that the corresponding MAC/IP address advertisement routes sent by other PE devices in the PE device group where the failed PE device is located are stored, and the ESI value carried in the MAC/IP address advertisement route is the same as the ESI value corresponding to the PE device group, the MAC/IP address advertisement route sent by the failed PE device is deleted.
On the basis of the foregoing embodiment, further, the receiving a corresponding MAC/IP address advertisement route sent by another PE device in the PE device group includes:
and receiving MAC/IP address notification routes sent by other PE devices in the PE device group, wherein the MAC address, the IP address and the ESI values carried in the received MAC/IP address notification routes are respectively the same as the MAC address, the IP address and the ESI values carried in the MAC/IP address notification routes sent by the failed PE device, and the ESI values are equal to the ESI values of the PE device group.
Specifically, only the ESI values issued by the PE device are the same and the MAC address in the MAC/IP address advertisement route having the same MAC address can be replaced, so after the MAC/IP address advertisement route sent by other PE devices in the PE device group is received, the ESI value, the IP address, and the MAC address carried in the MAC/IP address advertisement route are also obtained, if the ESI value is the same as the ESI value in the MAC/IP address advertisement route of the failed PE device, that is, the ESI value corresponding to the PE device group where the failed PE device is located is the same, and the MAC address is the same as the MAC address carried in the MAC/IP address advertisement route issued by the failed PE device, and the IP address is the same as the IP address carried in the MAC/IP address advertisement route issued by the failed PE device, the MAC/IP address advertisement route newly issued may be used to replace the MAC/IP address advertisement route of the stored failed PE device, otherwise, thereby avoiding a situation where the remote PE device erroneously deletes a MAC entry.
The failure processing method under the EVPN multi-homing scene provided by the embodiment of the invention has the advantages that when part of PE devices in the multi-homing PE device group have failures, the far-end PE device keeps the MAC/IP address routes issued by the PE devices before, and the MAC/IP address routes issued by the failed PE devices are not deleted until new MAC/IP address routes issued by other PE devices are received, so that the problem of flow delay caused by the loss of EVPN route table entries under the EVPN multi-homing failure scene is solved,
based on the same inventive concept, an embodiment of the present invention further provides a device for handling a fault in an EVPN multi-homing scenario, as shown in fig. 3, where the device is applied to provider edge PE equipment, and the device includes: a receiving module 31, a determining module 32, a detecting deletion module 33 and a replacing module 34, wherein:
the receiving module 31 is configured to receive an ethernet auto discovery route and a media access control MAC/network protocol IP address advertisement route sent by an opposite-end PE device; the determining module 32 is configured to determine each PE device in the peer-to-peer multihomed PE device group according to the received ethernet automatic discovery route; the detection deletion module 33 is configured to delete the ethernet automatic discovery route sent by the failed PE device if it is detected that at least one PE device in the PE device group fails; the replacing module 34 is configured to replace the MAC/IP address advertisement route sent by the failed PE device with the corresponding MAC/IP address advertisement route sent by the other PE device if the corresponding MAC/IP address advertisement route sent by the other PE device in the PE device group is received.
As with the above apparatus, optionally, the detecting and deleting module 33 is specifically configured to:
and aiming at each PE device in the PE device group, judging whether each PE device has a fault or not according to a communication protocol monitoring result between each PE device and each PE device.
As in the foregoing apparatus, optionally, the detecting and deleting module 33 is further configured to:
starting an aging timer;
and if the corresponding MAC/IP address notification route sent by other PE equipment in the PE equipment group is not received after the aging timer finishes timing, deleting the MAC/IP address notification route sent by the failed PE equipment.
As with the above apparatus, optionally, the determining module 32 is specifically configured to:
acquiring an Ethernet Segment Identification (ESI) value carried in each received Ethernet automatic discovery route;
determining a plurality of PE devices with the same ESI value as a multi-homing PE device group;
the ESI values corresponding to each multi-homed PE device group are marked.
As in the foregoing apparatus, optionally, the detecting and deleting module 33 is further configured to:
and if the corresponding MAC/IP address notification route sent by other PE equipment in the PE equipment group is determined to be stored, and the ESI value carried in the MAC/IP address notification route is the same as the ESI value corresponding to the PE equipment group, deleting the MAC/IP address notification route sent by the failed PE equipment.
As for the above apparatus, optionally, the replacing module 34 is specifically configured to:
and receiving MAC/IP address notification routes sent by other PE devices in the PE device group, wherein the MAC address, the IP address and the ESI values carried in the received MAC/IP address notification routes are respectively the same as the MAC address, the IP address and the ESI values carried in the MAC/IP address notification routes sent by the failed PE device, and the ESI values are equal to the ESI values of the PE device group.
As in the foregoing apparatus, optionally, the detecting and deleting module 33 is further configured to:
and if detecting that each PE device in the PE device group has a fault, deleting the Ethernet automatic discovery route and the MAC/IP address advertisement route sent by the faulty PE device.
The apparatus provided in the embodiment of the present invention is configured to implement the method, and its functions specifically refer to the method embodiment, which is not described herein again.
Fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention, and as shown in fig. 4, the electronic device includes: a processor (processor) 41, a memory (memory) 42, and a bus 43;
wherein, the processor 41 and the memory 42 complete the communication with each other through the bus 43; processor 41 is configured to call program instructions in memory 42 to perform the methods provided by the above-described method embodiments, including, for example: receiving an Ethernet automatic discovery route and a Media Access Control (MAC)/network protocol (IP) address advertisement route sent by opposite terminal PE equipment; determining each PE device in the opposite-end multi-homing PE device group according to the received Ethernet automatic discovery route; if at least one PE device in the PE device group is detected to be failed, deleting an Ethernet automatic discovery route sent by the failed PE device; and if the corresponding MAC/IP address advertisement route sent by other PE equipment in the PE equipment group is received, replacing the MAC/IP address advertisement route sent by the failed PE equipment with the corresponding MAC/IP address advertisement route sent by the other PE equipment.
Embodiments of the present invention disclose a computer program product comprising a computer program stored on a non-transitory computer-readable storage medium, the computer program comprising program instructions which, when executed by a computer, enable the computer to perform the methods provided by the above-mentioned method embodiments, for example, including: receiving an Ethernet automatic discovery route and a Media Access Control (MAC)/network protocol (IP) address advertisement route sent by opposite terminal PE equipment; determining each PE device in the opposite-end multi-homing PE device group according to the received Ethernet automatic discovery route; if at least one PE device in the PE device group is detected to be in fault, deleting the Ethernet automatic discovery route sent by the PE device in fault; and if the corresponding MAC/IP address notification route sent by other PE equipment in the PE equipment group is received, replacing the MAC/IP address notification route sent by the failed PE equipment with the corresponding MAC/IP address notification route sent by the other PE equipment.
Embodiments of the present invention provide a non-transitory computer-readable storage medium, which stores computer instructions, where the computer instructions cause the computer to perform the methods provided by the above method embodiments, for example, the methods include: receiving an Ethernet automatic discovery route and a Media Access Control (MAC)/network protocol (IP) address advertisement route sent by opposite terminal PE equipment; determining each PE device in the opposite-end multi-homing PE device group according to the received Ethernet automatic discovery route; if at least one PE device in the PE device group is detected to be in fault, deleting the Ethernet automatic discovery route sent by the PE device in fault; and if the corresponding MAC/IP address advertisement route sent by other PE equipment in the PE equipment group is received, replacing the MAC/IP address advertisement route sent by the failed PE equipment with the corresponding MAC/IP address advertisement route sent by the other PE equipment.
Those of ordinary skill in the art will understand that: all or part of the steps for realizing the method embodiments can be completed by hardware related to program instructions, the program can be stored in a computer readable storage medium, and the program executes the steps comprising the method embodiments when executed; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
The above-described embodiments of the apparatuses and the like are merely illustrative, wherein the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the embodiments of the present invention, and are not limited thereto; although embodiments of the present invention have been described in detail with reference to the foregoing embodiments, those skilled in the art will understand that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. A fault processing method under an EVPN multi-homing scene is characterized by being applied to provider edge PE equipment and comprising the following steps:
receiving an Ethernet automatic discovery route and a Media Access Control (MAC)/network protocol (IP) address advertisement route sent by opposite terminal PE equipment;
determining each PE device in the opposite-end multi-homing PE device group according to the received Ethernet automatic discovery route;
if at least one PE device in the PE device group is detected to be in fault, deleting the Ethernet automatic discovery route sent by the PE device in fault;
and if the corresponding MAC/IP address advertisement route sent by other PE equipment in the PE equipment group is received, replacing the MAC/IP address advertisement route sent by the failed PE equipment with the corresponding MAC/IP address advertisement route sent by the other PE equipment.
2. The method according to claim 1, wherein the detecting that at least one PE device in the PE device group has failed comprises:
and aiming at each PE device in the PE device group, judging whether each PE device has a fault or not according to a communication protocol monitoring result between each PE device and each PE device.
3. The method according to claim 1, wherein after deleting the etherauto discovery route sent by the failed PE device, further comprising:
starting an aging timer;
and if the corresponding MAC/IP address notification route sent by other PE equipment in the PE equipment group is not received after the aging timer finishes timing, deleting the MAC/IP address notification route sent by the failed PE equipment.
4. The method according to claim 1, wherein the determining each PE device in the peer-to-peer multihomed PE device group according to the received ethernet auto discovery route comprises:
acquiring an Ethernet Segment Identification (ESI) value carried in each received Ethernet automatic discovery route;
determining a plurality of PE devices with the same ESI value as a multi-homing PE device group;
the ESI values corresponding to each multi-homed PE device group are marked.
5. The method according to claim 4, wherein if it is detected that at least one PE device in the PE device group has a failure, after deleting the ethernet auto discovery route sent by the failed PE device, further comprising:
and if the corresponding MAC/IP address notification route sent by other PE equipment in the PE equipment group is determined to be stored, and the ESI value carried in the MAC/IP address notification route is the same as the ESI value corresponding to the PE equipment group, deleting the MAC/IP address notification route sent by the failed PE equipment.
6. The method according to claim 5, wherein the receiving corresponding MAC/IP address advertisement routes sent by other PE devices in the PE device group comprises:
and receiving MAC/IP address notification routes sent by other PE devices in the PE device group, wherein the MAC address, the IP address and the ESI values carried in the received MAC/IP address notification routes are respectively the same as the MAC address, the IP address and the ESI values carried in the MAC/IP address notification routes sent by the failed PE device, and the ESI values are equal to the ESI values of the PE device group.
7. The method of claim 1, further comprising:
and if detecting that each PE device in the PE device group has a fault, deleting the Ethernet automatic discovery route and the MAC/IP address advertisement route sent by the faulty PE device.
8. A fault processing device under an EVPN multi-homing scene is characterized by being applied to Provider Edge (PE) equipment and comprising:
the receiving module is used for receiving an Ethernet automatic discovery route and a Media Access Control (MAC)/network protocol (IP) address advertisement route sent by opposite terminal PE equipment;
a determining module, configured to determine, according to the received ethernet auto discovery route, each PE device in the peer-to-peer multihomed PE device group;
a detection deleting module, configured to delete the ethernet automatic discovery route sent by the failed PE device if it is detected that at least one PE device in the PE device group fails;
and the replacing module is used for replacing the MAC/IP address notification route sent by the failed PE device by using the corresponding MAC/IP address notification route sent by the other PE devices if the corresponding MAC/IP address notification route sent by the other PE devices in the PE device group is received.
9. An electronic device, comprising:
the processor and the memory are communicated with each other through a bus; the memory stores program instructions executable by the processor, the processor invoking the program instructions to perform the method of any of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the method according to any one of claims 1 to 7.
CN202210369625.XA 2022-04-08 2022-04-08 Fault processing method, device, equipment and medium under EVPN multi-homing scene Withdrawn CN115499360A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210369625.XA CN115499360A (en) 2022-04-08 2022-04-08 Fault processing method, device, equipment and medium under EVPN multi-homing scene

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210369625.XA CN115499360A (en) 2022-04-08 2022-04-08 Fault processing method, device, equipment and medium under EVPN multi-homing scene

Publications (1)

Publication Number Publication Date
CN115499360A true CN115499360A (en) 2022-12-20

Family

ID=84463980

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210369625.XA Withdrawn CN115499360A (en) 2022-04-08 2022-04-08 Fault processing method, device, equipment and medium under EVPN multi-homing scene

Country Status (1)

Country Link
CN (1) CN115499360A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105791072A (en) * 2014-12-22 2016-07-20 华为数字技术(苏州)有限公司 Access method and device of Ethernet virtual network
WO2017118880A1 (en) * 2016-01-08 2017-07-13 Telefonaktiebolaget Lm Ericsson (Publ) Faster convergence on primary provider edge (pe) failure in a single-active redundancy topology
US20190052559A1 (en) * 2017-08-08 2019-02-14 Dell Products Lp Method and system to avoid temporary traffic loss with bgp ethernet vpn multi-homing with data-plane mac address learning
CN110113260A (en) * 2019-04-28 2019-08-09 新华三技术有限公司 A kind of forwarding table updating method and device
CN113472645A (en) * 2020-03-30 2021-10-01 华为技术有限公司 Method, device and equipment for sending route and processing route
CN115277305A (en) * 2022-06-30 2022-11-01 新华三技术有限公司 Network management method, device, equipment and machine readable storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105791072A (en) * 2014-12-22 2016-07-20 华为数字技术(苏州)有限公司 Access method and device of Ethernet virtual network
WO2017118880A1 (en) * 2016-01-08 2017-07-13 Telefonaktiebolaget Lm Ericsson (Publ) Faster convergence on primary provider edge (pe) failure in a single-active redundancy topology
US20190052559A1 (en) * 2017-08-08 2019-02-14 Dell Products Lp Method and system to avoid temporary traffic loss with bgp ethernet vpn multi-homing with data-plane mac address learning
CN110113260A (en) * 2019-04-28 2019-08-09 新华三技术有限公司 A kind of forwarding table updating method and device
CN113472645A (en) * 2020-03-30 2021-10-01 华为技术有限公司 Method, device and equipment for sending route and processing route
CN115277305A (en) * 2022-06-30 2022-11-01 新华三技术有限公司 Network management method, device, equipment and machine readable storage medium

Similar Documents

Publication Publication Date Title
CN102035676B (en) ARP (Address Resolution Protocol) interaction based method and equipment for detecting and recovering link fault
US9858163B2 (en) Dual adjacency between edge devices at a network site
US20220174006A1 (en) Method for EVPN and VPLS Active-Active Integration, Device, and System
US11611509B2 (en) Communication method, communications device, and communications system
US20150350043A1 (en) Methods and arrangements for checking connectivity and detecting connectivity failure
CN109218456B (en) Method and device for processing aging time of MAC address table
US11711281B2 (en) Methods and network devices for detecting and resolving abnormal routes
CN109474495B (en) Tunnel detection method and device
CN110113260B (en) Forwarding table updating method and device
CA3104756A1 (en) Loop avoidance communications method, device, and system
CN112187633A (en) Link fault convergence method and device, electronic equipment and storage medium
CN113615132A (en) Fast flooding topology protection
CN101741740B (en) Method, system and equipment for balancing loads
CN115277305A (en) Network management method, device, equipment and machine readable storage medium
US9246796B2 (en) Transmitting and forwarding data
CN110661643B (en) Method, network device and medium for network management
CN113872843B (en) Route generation method, route processing method and device
CN115499360A (en) Fault processing method, device, equipment and medium under EVPN multi-homing scene
CN105515999B (en) Quick convergence method and device for end system address distribution information protocol
CN116055393A (en) Private line communication method, device and system
WO2021098806A1 (en) Message transmission path switching method, device and system
CN109981452B (en) Method and device for switching back PW link
US12034631B2 (en) Loop avoidance communications method, device, and system
CN115174312B (en) Broadcast information transmission method, tunnel endpoint device, electronic device, and medium
EP4395247A1 (en) Method and apparatus for receiving border gateway protocol routing, method and apparatus for sending border gateway protocol routing, and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20221221

Address after: 100036 11 / F, block a, East Tower, Zhongyi pengao building, 29 Fuxing Road, Haidian District, Beijing

Applicant after: BEIJING STAR-NET RUIJIE NETWORKS Co.,Ltd.

Address before: 350002 19 19, Jinyuan Chau Industrial Park, 618 Jinshan Road, Cangshan District, Fuzhou, Fujian

Applicant before: RUIJIE NETWORKS Co.,Ltd.

TA01 Transfer of patent application right
WW01 Invention patent application withdrawn after publication

Application publication date: 20221220

WW01 Invention patent application withdrawn after publication