WO2022089212A1 - Fault handling method and device - Google Patents

Fault handling method and device Download PDF

Info

Publication number
WO2022089212A1
WO2022089212A1 PCT/CN2021/123642 CN2021123642W WO2022089212A1 WO 2022089212 A1 WO2022089212 A1 WO 2022089212A1 CN 2021123642 W CN2021123642 W CN 2021123642W WO 2022089212 A1 WO2022089212 A1 WO 2022089212A1
Authority
WO
WIPO (PCT)
Prior art keywords
network device
mac address
route
network
message
Prior art date
Application number
PCT/CN2021/123642
Other languages
French (fr)
Chinese (zh)
Inventor
李晓晶
张耀坤
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2022089212A1 publication Critical patent/WO2022089212A1/en

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/28Routing or path finding of packets in data switching networks using route fault recovery
    • 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
    • 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/16Multipoint routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/32Flooding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • H04L45/745Address table lookup; Address filtering

Definitions

  • the present application relates to the field of communications, and in particular, to a fault handling method and device.
  • Ethernet private virtual network (ethernet virtual private network, EVPN) is a private virtual network (virtual private network, VPN) technology used for Layer 2 network interconnection.
  • FIG. 1 it is a schematic diagram of the architecture of an EVPN.
  • EVPN includes multiple provider edge (PE) devices. PE devices within the EVPN are connected to each other. Customer edge (customer edge, CE) devices are connected to PE devices through switches.
  • the EVPN includes PE devices 1-3, and CE devices 1A and 1B are connected to PE device 1 through switch 1, CE device 2 is connected to PE device 2 through switch 2, and CE device 3 is connected to PE device 3 through switch 3 connect.
  • Each CE device can be connected to one or more user hosts.
  • E_LAN Ethernet local area network
  • CE device connects to the switch in the local routing table, such as the MAC route to the CE device. and/or the MAC route to the user-side host connected to the CE device, which is referred to as the MAC route of the CE device for short here.
  • MAC reachable media access control
  • the PE device sends a border gateway protocol (BGP) update (update) message to other PE devices, so that the other PE devices delete the MAC route of the CE device in the local routing table.
  • BGP border gateway protocol
  • the switch connected to the other PE device cannot sense that the switch is faulty in time. Therefore, the switch connected to the other PE device may send a message addressed to the MAC address to the other PE device.
  • the other PE device After receiving the packet, the other PE device cannot find the MAC route in the local routing table, and triggers unknown unicast flooding in the EVPN, thus causing waste of communication resources.
  • PE device 1 deletes the MAC route of CE device 1A and the MAC route of CE device 1B; and sends BGP update messages to PE device 2 and PE device 3 respectively, so that PE device 2 and PE device 3 delete the MAC route of CE device 1A and the MAC route of CE device 1B.
  • switch 2 and switch 3 cannot sense that switch 1 is faulty in time, and therefore may also send packets destined for CE device 1A. If PE device 2 receives the packet sent by switch 2 and destined for CE device 1A, it cannot find the MAC route of CE device 1A in the local routing table, which triggers unknown unicast flooding in the EVPN.
  • the embodiments of the present application provide a fault handling method and device, which help to reduce unknown unicast flooding, can be applied to various possible network scenarios such as EVPN, and help reduce unknown unicast traffic in the network. Flooding, thereby reducing the waste of communication resources.
  • the present application provides a fault handling method, wherein a first network device and a second network device are connected in communication.
  • the method includes: the second network device determines that the route to the MAC address is unreachable, where the MAC address is the MAC address of the user-side network device or the user host connected to the first network device.
  • the second network device sets indication information corresponding to the routing of the MAC address. The indication information is used to instruct the second network device not to forward the packet when it receives the packet addressed to the MAC address. Since the second network device does not forward the message addressed to the MAC address, it is helpful to reduce the flooding of unknown unicast traffic in the network, thereby reducing the waste of communication resources.
  • the method further includes: the second network device deletes the route of the MAC address. In this way, the storage space of the second network device can be released, thereby improving the utilization rate of the storage space.
  • deleting the route of the MAC address by the second network device includes: the second network device determines that the route to the MAC address is unreachable for a preset time, or determines to set the indication information to meet the preset time In this case, delete the route for the MAC address. That is, the second network device delays deleting the route of the MAC address. In this way, the risk of triggering unknown unicast flooding can be further reduced, thereby further reducing the waste of communication resources.
  • the second network device determines that the route to the MAC address is unreachable, including: when the third network device fails, or the link between the first network device and the third network device fails, the second network device fails.
  • the network device receives the first message from the first network device, and determines that the route of the MAC address is unreachable according to the first message.
  • the third network device is a user-side network device connected to the first network device. This possible design provides a specific implementation manner for determining that the MAC route is unreachable when the user-side network device is faulty or the link is faulty.
  • one or more other network devices are also connected to the user-side network device or user host having the MAC address.
  • the second network device receives the first message from the first network device, and determines that the route of the MAC address is unreachable according to the first message, which may include: the second network device receives the first message from the first network device, and One or more second messages are received from one or more other network devices. Then, the second network device determines that the route of the MAC address is unreachable according to the first message and the one or more second messages.
  • This possible design can be applied to multi-homing scenarios of user-side devices.
  • the second network device determining that the route to the MAC address is unreachable includes: the second network device determines that the route to the MAC address is unreachable according to determining that the state of the first network device is faulty.
  • This possible design provides a specific implementation manner for determining that the MAC route is unreachable when the network device, especially the device on the network side, fails.
  • one or more other network devices are also connected to the user-side network device or user host having the MAC address.
  • the second network device determines that the route of the MAC address is unreachable according to determining that the state of the first network device is faulty. If the status is all faulty, it is determined that the route to the MAC address is unreachable.
  • the method further includes: the second network device determines that the state of the first network device is faulty according to the detection message sent to the first network device.
  • the third network device includes a switch.
  • the first message is a BGP Update message.
  • the indication information includes that the next hop of the route of the MAC address is NULL0.
  • the first network device and the second network device are EVPN neighbors.
  • the first network device and the second network device are PE devices.
  • the present application provides a fault handling device.
  • the fault handling device may be a chip or a network device.
  • the fault handling device is used to execute any one of the methods provided in the first aspect.
  • the present application can divide the functional modules of the fault processing device.
  • each function module may be divided corresponding to each function, or two or more functions may be integrated into one processing module.
  • the present application may divide the fault processing device into a determination unit, a setting unit, a deletion unit, and the like according to functions.
  • the fault processing apparatus includes: a processor, configured to implement any one of the methods described in the first aspect above.
  • the apparatus may further include a memory, and the memory is coupled to the processor.
  • the processor executes the instructions stored in the memory, any one of the methods described in the first aspect can be implemented.
  • the device may also include a communication interface for the device to communicate with other devices, for example, a communication port may be a transceiver, circuit, bus, module, or other type of communication interface.
  • the instructions in the memory can be stored in advance or downloaded from the Internet and stored when the device is used, and this application does not uniquely limit the source of the instructions in the memory.
  • the coupling in this embodiment of the present application is an indirect coupling or connection between units or modules, which may be in electrical, mechanical or other forms, and is used for information interaction between units or modules.
  • the present application provides a computer readable storage medium, such as a computer non-transitory readable storage medium.
  • a computer program (or instruction) is stored thereon, and when the computer program (or instruction) runs on the fault processing apparatus, the fault processing apparatus is made to execute any one of the methods provided in the first aspect above.
  • the present application provides a computer program product that, when run on a computer, enables any one of the methods provided in the first aspect to be performed.
  • the present application provides a chip system, including: a processor, where the processor is configured to call and run a computer program stored in the memory from a memory, and execute any one of the methods provided in the first aspect.
  • the present application provides a fault handling system, including: a first network device and a second network device.
  • the first network device and the second network device are connected in communication.
  • the second network device is configured to execute any one of the methods provided by the first aspect.
  • the system may further include a third network device, where the third network device is a user-side network device connected to the first network device, for example, a switch or a CE device.
  • any fault processing device, computer storage medium, computer program product or conference system provided above can be applied to the corresponding methods provided above, therefore, the beneficial effects that can be achieved can be referred to.
  • the beneficial effects in the corresponding method will not be repeated here.
  • FIG. 1 is a schematic structural diagram of an EVPN applicable to an embodiment of the present application.
  • FIG. 2 is a schematic structural diagram of a fault handling system according to an embodiment of the present application.
  • FIG. 3 is a schematic structural diagram of another fault handling system provided by an embodiment of the present application.
  • FIG. 4 is a schematic structural diagram of a communication device according to an embodiment of the present application.
  • FIG. 5 is a schematic flowchart of a fault handling method provided by an embodiment of the present application.
  • FIG. 6 is a schematic structural diagram of a second network device according to an embodiment of the present application.
  • words such as “exemplary” or “for example” are used to represent examples, illustrations or illustrations. Any embodiments or designs described in the embodiments of the present application as “exemplary” or “such as” should not be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as “exemplary” or “such as” is intended to present the related concepts in a specific manner to facilitate understanding.
  • At least one (a) of a, b, or c can represent: a, b, c, a-b, a-c, b-c, or a-b-c, where a, b, c may be single or multiple .
  • At least one may also be described as one or more, and the multiple may be two, three, four or more, which is not limited in this application.
  • the PE device connected to the switch is deleted and other PE devices delete the MAC route of the CE device connected to the switch in the local routing table. This will cause the other PE device to trigger an unknown unicast in the EVPN because it cannot find the MAC route of the CE device in the local routing table after receiving the message "The destination MAC address is the MAC address of the CE device". Flood in the middle, resulting in a waste of communication resources.
  • an embodiment of the present application provides a fault handling method. Specifically, when the second network device determines that the route to the MAC address is unreachable, it sets indication information corresponding to the MAC address, where the indication information is used to indicate When the second network device receives the packet addressed to the MAC address, the packet is not forwarded.
  • the MAC address is the MAC address of the user-side network device or the user host connected to the first network device. In this way, even if the second network device cannot find the route of the MAC address in the local routing table when it receives the packet destined for the MAC address, it will not trigger unknown unicast in some application scenarios, such as the EVPN scenario. Compared with the traditional technology, the flooding in the system helps to reduce the waste of communication resources.
  • the technical solutions provided in the embodiments of the present application may be applied to E_LAN, or may also be referred to as: EVPN virtual private LAN service (VPLS) in some scenarios. Understandably, the embodiments of the present application may also be applied to other network scenarios that may cause similar technical problems.
  • E_LAN E_LAN
  • VPLS virtual private LAN service
  • the message transmission system 20 may include multiple network side network devices (eg, network side network devices 201-204), multiple user side network devices (eg, user side network devices 205-207), and multiple user hosts (eg, user hosts 208-211).
  • network side network devices e.g, network side network devices 201-204
  • user side network devices e.g, user side network devices 205-207
  • user hosts e.g, user hosts 208-211.
  • the network devices on the network side can communicate through the border gateway protocol (BGP).
  • the network devices on the network side may communicate through tunnels or communicate in other ways.
  • a network-side network device can be connected to one or more user-side network devices, for example, network-side network device 201 is connected to user-side network device 205, and network-side network device 204 is connected to user-side network devices 206-207.
  • the network device on the network side may be a PE device.
  • each PE device in the fault handling system 20 may be configured with the same EVPN instance.
  • Each network-side network device includes one or more outgoing interfaces, and each outgoing interface can be connected to a network-side network device or a user-side network device.
  • the network-side network device 204 includes outgoing interfaces 1-5, which are respectively used to connect the user-side network devices 206-207 and the network-side network devices 201-203.
  • the user-side network device communicates with another user-side network device through one or more network-side network devices.
  • the user-side network device 205 communicates with the user-side network device 206 through the network-side network device 201 and the network-side network device 204 .
  • a user-side network device can be connected to one or more network-side network devices.
  • the user-side network device 206 is connected to the network-side network device 204, that is, a single-homing scenario; the user-side network device 205 is connected to the network-side network device 201- 203 connection, that is, a multi-homing scenario.
  • One user side network device may be connected to one or more user hosts, for example, the user side network device 205 is connected to the user host 208, and the user side network device 206 is connected to the user hosts 209-210.
  • the user-side network device may be a CE device or a switch.
  • the switch may, for example, assume the role of an access server.
  • the user host communicates with another user host through one or more user side network devices and one or more network side network devices.
  • the user host 208 communicates with the user host 209 through the user side network device 205 , the network side network devices 201 and 204 , and the user side network device 206 .
  • Each network-side network device can maintain (or manage) a routing table locally, that is, a local routing table.
  • the local routing table can contain one or more routes, namely MAC routes.
  • Each route includes a destination MAC address and the identifier of the next hop node corresponding to the destination MAC address.
  • the identifier of the next-hop node is used to indicate the next-hop node of the packet whose destination address is the destination MAC address.
  • the destination MAC address included in the route in the local routing table maintained by the network device on the network side includes at least the following:
  • the destination MAC address is the MAC address of the user-side network device to which the network-side network device is connected.
  • the destination MAC address is the MAC address of the user host connected to the network device on the network side. For example, the MAC address of the user host connected to the network device on the network side through the user side network device.
  • the destination MAC address is the MAC address of the user-side network device connected to other network-side network devices.
  • the destination MAC address is the MAC address of the user host connected to other network-side network devices.
  • the routing table maintained by the network device 204 on the network side can illustratively include the following routing table entry information:
  • each network-side network device may learn the local MAC address, that is, the MAC address of the user-side network device connected to the network-side network device and the MAC address of the user host connected to the network-side network device. MAC address, and create a routing table entry (called a local routing table entry) based on the learned MAC address. Then, the network-side network device may send local routing table entries to other network-side network devices, and receive local routing table entries established by the other network-side network devices sent by the other network-side network devices. Each network-side network device generates a routing table based on the local routing table entries established by itself and the local routing table entries established by the other network-side network devices. For the specific implementation manner, reference may be made to the prior art, which will not be repeated here.
  • the PE devices can exchange their local routing table entry. Subsequently, when a network device on the network side receives the packet, it queries the routing table according to the destination address of the packet to determine the next hop node of the packet and forward the packet to the next hop node.
  • the fault handling system 20 may include multi-level user side network devices.
  • FIG. 3 it is an example of a fault handling system 20 including multi-level user side network devices.
  • the user host 211 in FIG. 3 accesses the network side network device 204 through the user side network device 212 and the user side network device 207 (ie, two levels of user side network devices).
  • One user-side network device may be connected to one or more user-side network devices.
  • FIG. 3 is drawn based on FIG. 2 . Therefore, for the explanation of other devices in FIG. 3 , reference may be made to the description for FIG. 2 , which will not be repeated here.
  • the user-side network device directly connected to the user host may be a CE device, and the user-side network device indirectly connected to the user host may be a switch.
  • the user-side network device 212 in FIG. 3 may be a CE device, and the user-side network device 207 may be a switch.
  • the fault handling system 20 can be used for EVPN.
  • the network device on the network side may specifically be a PE device, and the network device on the user side may specifically be a CE device or a switch.
  • any two PE devices can be connected through an operator's backbone (provider, P) device, and the P device acts as a forwarding device between the two PE devices to forward data packets between the PE devices.
  • the EVPN here may be a single-homing scenario or a multi-homing scenario (eg, a dual-homing scenario).
  • the single-homing scenario refers to a user-side network device (such as a CE device or a switch) accessing the EVPN through a PE device.
  • a user-side network device accesses the EVPN through multiple PE devices.
  • the dual-homing scenario refers to a user-side network device accessing the EVPN through two PE devices.
  • the PE device in FIG. 1 may be a specific implementation of the network-side network device in FIG. 2
  • the CE device and switch in FIG. 1 may be a specific implementation of the user-side network device in FIG. 2
  • the user host in 1 may be a specific implementation of the user host in FIG. 2 .
  • both the network-side network device and the user-side network device described above may be implemented by a communication device as shown in FIG. 4 .
  • FIG. 4 it is a schematic diagram of a hardware structure of a communication device 40 according to an embodiment of the present application.
  • the communication device 40 may be used to implement the functions of the network device on the network side or the network device on the user side.
  • the communication device 40 shown in FIG. 4 may include: a processor 401 , a memory 402 , a communication interface 403 and a bus 404 .
  • the processor 401 , the memory 402 and the communication interface 403 may be connected through a bus 404 .
  • the processor 401 is the control center for generating the communication device 40, which may be a general-purpose central processing unit (central processing unit, CPU), or other general-purpose processors.
  • the general-purpose processor may be a microprocessor or any conventional processor or the like.
  • processor 401 may include one or more CPUs, such as CPU 0 and CPU 1 shown in FIG. 4 .
  • the memory 402 may be read-only memory (ROM) or other type of static storage device that can store static information and instructions, random access memory (RAM) or other type of static storage device that can store information and instructions
  • ROM read-only memory
  • RAM random access memory
  • a dynamic storage device that can also be an electrically erasable programmable read-only memory (EEPROM), a magnetic disk storage medium, or other magnetic storage device, or can be used to carry or store instructions or data structures in the form of desired program code and any other medium that can be accessed by a computer, but is not limited thereto.
  • EEPROM electrically erasable programmable read-only memory
  • magnetic disk storage medium or other magnetic storage device, or can be used to carry or store instructions or data structures in the form of desired program code and any other medium that can be accessed by a computer, but is not limited thereto.
  • the memory 402 may exist independently of the processor 401 .
  • the memory 402 may be connected to the processor 401 through a bus 404 for storing data, instructions or program codes.
  • the processor 401 calls and executes the instructions or program codes stored in the memory 402, the fault handling method provided by the embodiment of the present application can be implemented.
  • the memory 402 may also be integrated with the processor 401 .
  • the communication interface 403 is used to connect the communication device 40 with other devices through a communication network, and the communication network can be an Ethernet, a radio access network (RAN), a wireless local area network (wireless local area networks, WLAN) and the like.
  • the communication interface 403 may include a receiving unit for receiving data, and a transmitting unit for transmitting data.
  • the bus 404 may be an industry standard architecture (industry standard architecture, ISA) bus, a peripheral component interconnect (peripheral component interconnect, PCI) bus, or an extended industry standard architecture (extended industry standard architecture, EISA) bus or the like.
  • the bus can be divided into address bus, data bus, control bus and so on. For ease of presentation, only one thick line is used in FIG. 4, but it does not mean that there is only one bus or one type of bus.
  • the structure shown in FIG. 4 does not constitute a limitation on the communication device 40.
  • the communication device 40 may include more or less components than those shown in the figure, or a combination of certain some components, or a different arrangement of components.
  • FIG. 5 it is a schematic flowchart of a fault processing method provided by an embodiment of the present application.
  • the method shown in FIG. 5 can be applied to the fault handling system shown in FIG. 2 or FIG. 3 .
  • the method shown in FIG. 5 is applied to the second network device.
  • the second network device is connected in communication with the first network device.
  • the second network device communicates with the first network device through BGP.
  • the second network device may be any one of the network-side network devices in FIG. 2 or FIG. 3 .
  • the first network device may be any one of the network-side network devices in FIG. 2 or FIG. 3 except the second network device.
  • the second network device and the first network device are EVPN neighbors.
  • EVPN neighbor usually refers to the neighbor relationship between PE devices.
  • EVPN neighbors can also communicate through established tunnels.
  • the type of the tunnel can be, for example, a label distribution protocol (LDP) tunnel, a virtual extensible local area network (VXLAN) protocol tunnel, and the like.
  • LDP label distribution protocol
  • VXLAN virtual extensible local area network
  • the second network device and the first network device are PE devices.
  • the method shown in Figure 5 may include the following steps:
  • the second network device determines that the route to the MAC address is unreachable, where the MAC address is the MAC address of the user-side network device or the user host connected to the first network device.
  • the second network device may be PE device 2
  • the first network device may be PE device 1
  • the network side network device may be switch 1
  • the user host may be CE device 1A Connected user host or CE device 1B connected user host.
  • the second network device may be the network-side network device 204
  • the first network device may be any one of the network-side network devices 201 to 203
  • the user-side network device may be the network On the side network device 205
  • the user host may be the user host 208 .
  • the second network device may be the network-side network device 201
  • the first network device may be the network-side network device 204
  • the user-side network device may be the network-side network device 206 or the network-side user equipment 207
  • the user host can be any one of the user hosts 209-211.
  • the MAC address is the MAC address of any user-side network device or any user host connected to the first network device.
  • a route to a MAC address, or a route to a MAC address refers to a route whose destination MAC address is the MAC address.
  • the route to the MAC address may be any route in the local routing table maintained by the second network device.
  • a route whose destination MAC address is a MAC address is referred to as a route to the MAC address, or a route to the MAC address.
  • the unified description is provided here and will not be described below.
  • S501 can be implemented in the following ways:
  • Mode 1 When the third network device fails, or the link between the first network device and the third network device fails, the second network device receives the first message from the first network device, and determines the MAC according to the first message. The route for the address is unreachable.
  • the third network device is a user-side network device connected to the first network device.
  • the third network device may be any user-side network device directly or indirectly connected to the first network device, such as a switch or a CE device.
  • the third network device may be CE device 1A or CE device 1B or switch 1 .
  • the third network device may be the user-side network device 205 .
  • the first message is received by the second network device from the first network device in the state of "the third network device is faulty, or the link between the first network device and the third network device is faulty", and is used to determine the Route unreachable message for the MAC address.
  • This embodiment of the present application does not limit the form of the first message to indicate unreachability, as long as the second network device can determine that the MAC route is unreachable based on the first message.
  • the second network device receives a first message sent by the first network device, where the first message is used to indicate an unreachable route, and the unreachable route is determined according to the first message.
  • the unreachable route includes the route in S501.
  • the first network device may send the first message to the second network device when it is determined that the third network device is faulty or the link between the first network device and the third network device is faulty.
  • the embodiment of the present application does not uniquely limit which information the first message carries to indicate an unreachable route.
  • the first message may be MAC withdraw route, such as withdraw type ad-route route.
  • the second network device receives a first message sent by the first network device, where the first message is used to indicate a currently reachable route through the first network device.
  • the second network device compares the currently reachable route indicated by the first message with the stored reachable route, so as to determine that the state in the local routing table has actually changed to an unreachable route.
  • the determined unreachable route includes the route in S501.
  • the first network device may send the first message to the second network device when the third network device fails, or when the link between the first network device and the third network device fails.
  • the second network device receives a first message sent by the first network device, where the first message is used to indicate a failure of the third network device, or a failure of a link between the first network device and the third network device.
  • the embodiment of the present application does not uniquely define what information the first message carries to indicate the failure of the third network device, or the failure of the link between the first network device and the third network device.
  • the first message may carry information for notifying the failure of the third network device, or information for notifying the failure of the link between the first network device and the third network device.
  • the first message may also carry information through A currently reachable route of the first network device, or a currently unreachable route through the first network device, and the like.
  • the first message may be a BGP Update message.
  • the way 1 may include: when the third network device fails, or when the link between the first network device and the third network device fails, the second network device receives the first message from the first network device, and receives the first message from the first network device.
  • the other one or more network devices respectively receive the corresponding one or more second messages.
  • the second network device determines that the route of the MAC address is unreachable according to the first message and the one or more second messages.
  • This optional implementation provides a method for determining that the route of the MAC address is unreachable when the fault handling method provided by the embodiment of the present application is applied to a multi-homing scenario.
  • the third network device is connected to multiple network-side network devices, and the third network device is multi-homed to access network-side network devices.
  • the plurality of network side network devices include a first network device.
  • the difference between the second message and the first message here is to distinguish messages sent by different network devices. Therefore, for a specific implementation manner of the second message, reference may be made to the relevant description of the first message above, which will not be repeated here.
  • the second network device may receive the first message sent by each network-side network device in the multiple network-side network devices / In the case of the second message, it is determined that the route in S501 is unreachable.
  • the unreachable route in S501 may be the route of the user-side network device 205 or the user host 208 route.
  • the user-side network device ie, the user-side network device 205
  • the user-side network device ie, the user-side network device 208
  • the packet to be sent to the user-side network device 205 or the user host 208 may be forwarded via the network-side network device 202 or the network-side network device 203 .
  • the CE device can receive packets through the multiple network-side network devices. Therefore, assuming that the third network device is the user-side network device 205, the network-side network device 204 may only consider that the user-side network device 204 receives the first message or the second message sent by the network-side network devices 201-203, respectively.
  • the route to the MAC address of the side network device 205 is unreachable or the route to the MAC address of the user host 208 is unreachable.
  • Manner 2 The second network device determines that the route of the MAC address is unreachable according to determining that the state of the first network device is faulty. Manner 2 can be understood as: in the case that the second network device actively determines that the state of the first network device is faulty, it determines that the route of the MAC address is unreachable.
  • the second network device determines that the state of the first network device is faulty according to the detection packet sent to the first network device. Specifically, the second network device may send a detection packet to the first network device, and does not receive a response packet for the detection packet within a preset period of time (eg, a preset period of time from sending the detection packet). When , it is determined that the state of the first network device is faulty. For example, the second network device may send a detection packet to the first network device based on a bidirectional forwarding detection (BFD) protocol or a connection fault management (connectivity fault management, CFM) protocol or the like.
  • BFD bidirectional forwarding detection
  • CFM connection fault management
  • one or more other network devices are also connected to the user-side network device or user host with the MAC address.
  • a CE device is multi-homed to multiple PEs. equipment.
  • Manner 2 may include: the second network device determines that the route of the MAC address is unreachable according to determining that the states of the first network device and the one or more other network devices are both faulty.
  • the second network device may determine that the MAC address is unreachable when determining that the multiple network devices are all faulty.
  • the unreachable route in S501 may be the route of the user-side network device 205 , or the user host 208 route. Since the user-side network device (ie, the user-side network device 205 ) or the user host (ie, the user host 208 ) with the MAC address is also connected to the network-side network devices 202 and 203 , the network-side network device 204 can determine the network-side network device 204 When the states of the network devices 201-203 are all faulty, it is determined that the MAC address is unreachable.
  • the second network device In response to the determination in S501, the second network device sets indication information corresponding to the route of the MAC address, where the indication information is used to instruct the second network device not to forward the packet when it receives the message addressed to the MAC address the message. For example, as a possible way of not forwarding the packet, the second network device may discard the packet.
  • This embodiment of the present application does not limit the specific implementation manner of setting the indication information uniquely, as long as the purpose of instructing the second network device not to forward the message sent to the MAC address can be achieved.
  • the following ways a-c serve as possible examples.
  • Setting the indication information may include: changing the route of the MAC address, so that the second network device does not forward the packet when receiving the packet addressed to the MAC address.
  • the indication information may be to modify the next hop of the route of the MAC address to NULL0. That is, the identifier of the next hop node included in the route of the MAC address is set to NULL0. For example, based on the above Table 1, assuming that the unreachable route is route 7, the "identification of the next hop corresponding to the destination MAC address" in route 7 is set to NULL0. After this setting, the route can be called a black hole route.
  • Setting the indication information may include: setting an indicator for the route of the MAC address. That is to say, each route in the local routing table corresponds to an indicator, and when the value of the indicator is set to a preset value, based on this, the second network device does not receive a packet addressed to the MAC address. Forward the message. Or, a corresponding indicator is set for at least the MAC address, not necessarily the entire route. When the value of the indicator is set to a preset value, the second network device receives the message sent to the MAC address based on this. The message is not forwarded when the message is sent.
  • Mode c Setting the indication information may include: storing the route of the MAC address, or at least the MAC address in an unreachable MAC routing table or a MAC address record table, so that the second network device belongs to the MAC address according to the MAC address.
  • the unreachable MAC routing table or the MAC address record table determines not to forward the packets sent to the MAC address.
  • the indication information may be considered to be the unreachable MAC routing table or the MAC address record table itself.
  • the method may further include the following S503.
  • S503 The second network device deletes the route of the MAC address.
  • the second network device determines that the route to the MAC address is unreachable for a preset time, or deletes the route to the MAC address according to the setting of the indication information to meet the preset time.
  • the second network device deletes the route of the MAC address after a preset time from determining that the route of the MAC address is unreachable.
  • the second network device deletes the route of the MAC address after a preset time from the determination of the indication information.
  • the second network device may implement the optional solution by setting a timer. For example, when it is determined that the route of the MAC address is unreachable or when the indication information is determined to be set, the timer starts and the timer is set. When the timing time meets the preset time, the route of the MAC address is deleted.
  • the timer can be implemented by software, can also be implemented by hardware, and can also be implemented by software combined with hardware.
  • the optional implementation manner can be understood as: the second network device delays deleting the route of the MAC address.
  • the delayed deletion here is mainly a relative concept that is different from the immediate deletion in the background art. Understandably, in practical applications, it takes a certain period of time to perform immediate deletion or delayed deletion.
  • the following describes several implementations of the preset time, which can be at least applied to implementations such as setting the indication information directly related to the route of the MAC address, such as the situation in which the indication information is set for the MAC route in the above-mentioned manner a or manner b:
  • the preset time is greater than or equal to the MAC aging time of the user-side network device connected to the second network device.
  • the preset time may be greater than or equal to the time corresponding to the multiple user-side network devices. The longest aging time among multiple MAC aging times of the user-side network device.
  • the user-side network device may delete the MAC route from the MAC routing table. Therefore, before the aging time of the MAC route arrives, the user-side network device may send a packet to the network-side network device connected to it according to the MAC route. The route is deleted, and the user-side network device will no longer send packets to the network-side network device connected to it according to the MAC route.
  • the switch 2 may send a packet to the PE device 2 before the aging time of the MAC address of the CE device 1A, so that the MAC address of the CE device 1A may not be found in the local routing table. route, which triggers unknown unicast flooding in the EVPN. After switch 2 reaches the aging time of the MAC address, PE device 2 will not receive the packets sent by switch 2 according to the route of the MAC address, so it will not cause unknown unicast flooding in the EVPN.
  • the indication information is the type of indication information related to the routing table entry of the MAC address
  • the indication information is set, it does not reach the user-side network device connected to the second network device.
  • the MAC route is deleted. Although it can ensure that the unknown unicast will not be flooded in the EVPN before the route is deleted, it cannot guarantee that the unknown unicast will not be caused after the route is deleted. Flood in EVPN. Therefore, it may be considered that the preset time is greater than or equal to the MAC aging time of the user-side network device connected to the second network device.
  • Implementation Mode 2 The preset time is greater than or equal to the failure detection period of the user-side network device connected to the second network device, and the failure detection period is a period used to detect whether other user-side network devices in the fault handling system are faulty.
  • the preset time may be greater than or equal to the multiple user-side network devices. The longest fault detection period in the fault detection period.
  • the user-side network device can periodically detect whether other user-side network devices in the fault handling system are faulty.
  • the switch 2 can periodically detect whether the switch 1 is faulty.
  • one user-side network device determines that another user-side network device is not faulty, then, during the failure detection period, the user-side user equipment may also send a message to the other user-side network device. message. Based on this, before the end of a fault detection period, if the network side network device connected to the other user side network device deletes the local route of the other user side network device, the network side network device will receive the When the packet of the other user-side network device cannot find the corresponding route, unknown unicast flooding in the EVPN occurs. When the next fault detection period comes, the user equipment on the user side can detect the failure of the other user side network equipment, so it will not send packets to the other user side network equipment. The network device on the network side connected to the network device will not receive the packet, so unknown unicast flooding in the EVPN will not occur.
  • the switch 2 determines that the switch 1 is not faulty, then before the fault detection period ends, even if the switch 1 is faulty, the switch 2 cannot sense it. Therefore, the switch 2 may also send a message to switch 1. If PE device 2 deletes the local route of switch 1 during the fault detection period, after the packet reaches PE device 2, PE device 2 cannot find the local route of switch 1 in the stored routing table, and Causes unknown unicast to flood in EVPN.
  • timing can be performed, and the second network device deletes the MAC route only after reaching or exceeding the failure detection period of the user-side network device connected to the second network device. In order to ensure that the unknown unicast traffic flooding caused by the premature deletion of the MAC route will not be caused.
  • Implementation mode 3 The preset time is greater than or equal to the minimum value between the MAC aging time of the user-side network device connected to the second network device and the failure detection period of the user-side network device connected to the second network device. The period used to detect whether other user-side network devices in the fault handling system are faulty.
  • Implementation mode 3 refers to the MAC aging time of the user-side network device connected to the second network device and the failure detection period of the user-side network device connected to the second network device. It is not repeated here.
  • the second network device determines that the route to the MAC address is unreachable, and the MAC address may be the MAC address of the user-side network device or user host connected to the first network device; in response to the determination, The second network device sets indication information corresponding to the route of the MAC address, where the indication information is used to instruct the second network device not to forward the message when receiving the message addressed to the MAC address.
  • the second network device since the second network device does not forward the message addressed to the MAC address, the unknown unicast will not be triggered to flood in the EVPN, thereby reducing the waste of communication resources.
  • the fault processing apparatus (such as the second network device) may be divided into functional modules according to the foregoing method examples.
  • each functional module may be divided corresponding to each function, or two or more functions may be integrated in in a processing module.
  • the above-mentioned integrated modules can be implemented in the form of hardware, and can also be implemented in the form of software function modules. It should be noted that, the division of modules in the embodiments of the present application is schematic, and is only a logical function division, and there may be other division manners in actual implementation.
  • FIG. 6 shows a schematic structural diagram of a second network device 60 provided by an embodiment of the present application.
  • the second network device 60 is configured to execute the above-mentioned fault handling method, for example, execute the fault handling method shown in FIG. 5 .
  • the second network device 60 may include a determining unit 601 and a setting unit 602 .
  • the determining unit 601 is configured to determine that the route to the MAC address is unreachable, where the MAC address is the MAC address of the user-side network device or the user host connected to the first network device.
  • a setting unit 602 is configured to, in response to the determination, set indication information corresponding to the route of the MAC address. The indication information is used to instruct the second network device not to forward the packet when it receives the packet addressed to the MAC address.
  • the determining unit 601 may be used to perform S501, and the setting unit 602 may be used to perform S502.
  • the second network device 60 further includes: a deletion unit 603, configured to delete the route of the MAC address after the setting unit 602 sets the indication information corresponding to the route of the MAC address.
  • a deletion unit 603 may be used to perform S503.
  • the deleting unit 603 is specifically configured to: determine that the route to the MAC address is unreachable for a preset time, or delete the route of the MAC address according to the condition that the setting instruction information meets the preset time.
  • the second network device 60 further includes: a receiving unit 604, configured to receive the first network device from the first network device when the third network device fails, or when the link between the first network device and the third network device fails. a message.
  • the determining unit 601 is specifically configured to: determine that the route of the MAC address is unreachable according to the first message.
  • the third network device is a user-side network device connected to the first network device.
  • one or more other network devices are also connected to the user-side network device or user host having the MAC address.
  • the receiving unit 604 is specifically configured to: receive the first message from the first network device, and receive one or more second messages from the other one or more network devices.
  • the determining unit 601 is specifically configured to: determine that the route of the MAC address is unreachable according to the first message and the one or more second messages.
  • the determining unit 601 is specifically configured to: determine that the route of the MAC address is unreachable according to determining that the state of the first network device is faulty.
  • the determining unit 601 is specifically configured to: determine that the route of the MAC address is unreachable according to determining that the states of the first network device and the one or more other network devices are both faulty.
  • the determining unit 601 is further configured to: determine that the state of the first network device is faulty according to the detection packet sent to the first network device.
  • the third network device includes a switch.
  • the first message is a BGP Update message.
  • the indication information includes that the next hop of the route of the MAC address is NULL0.
  • the first network device and the second network device are EVPN neighbors.
  • the first network device and the second network device are PE devices.
  • some or all of the functions implemented in the determining unit 601 , the setting unit 602 and the deleting unit 603 in the second network device 60 may be executed by the processor 401 in FIG. 4 in the memory 402 in FIG. 4 .
  • the receiving unit 604 may be implemented by the receiving unit in the communication interface 403 in FIG. 4 .
  • An embodiment of the present application further provides a fault processing system, where the fault processing system includes a first network device and a second network device, the second network device may be any of the second network devices 60 provided above, and the first network device 60 A network device may be any PE device shown in FIG. 1 that is not the second network device, or any network-side network device shown in FIG. 2 or FIG. 3 that is not the second network device.
  • the system may further include a third network device, for example, the third network device may be any switch or CE device shown in FIG. 1 , or any user-side network device shown in FIG. 2 or FIG. 3 .
  • Embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program runs on a computer, the computer is made to execute any one of the above-mentioned methods.
  • the embodiment of the present application also provides a chip.
  • the chip integrates a control circuit and one or more ports for implementing the functions of the second network device 60 described above.
  • the functions supported by the chip reference may be made to the above, which will not be repeated here.
  • the described program can be stored in a computer-readable storage medium.
  • the above-mentioned storage medium may be a read-only memory, a random access memory, or the like.
  • the above-mentioned processing unit or processor can be a central processing unit, a general-purpose processor, a specific integrated circuit (application specific integrated circuit, ASIC), a microprocessor (digital signal processor, DSP), a field programmable gate array (field programmable gate array, FPGA) or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof.
  • ASIC application specific integrated circuit
  • DSP digital signal processor
  • FPGA field programmable gate array
  • FPGA field programmable gate array
  • the embodiments of the present application also provide a computer program product containing instructions, when the instructions are run on a computer, the instructions cause the computer to execute any one of the methods in the foregoing embodiments.
  • the computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the procedures or functions according to the embodiments of the present application are generated in whole or in part.
  • the computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable device.
  • Computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, computer, server, or data center over a wire (e.g.
  • coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (eg infrared, wireless, microwave, etc.) means to transmit to another website site, computer, server or data center.
  • Computer-readable storage media can be any available media that can be accessed by a computer or data storage devices including one or more servers, data centers, etc., that can be integrated with the media.
  • Useful media may be magnetic media (eg, floppy disks, hard disks, magnetic tapes), optical media (eg, DVDs), or semiconductor media (eg, SSDs), and the like.
  • the above-mentioned devices for storing computer instructions or computer programs provided in the embodiments of the present application are all non-transitory (non-transitory) .

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Small-Scale Networks (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present application discloses a fault handling method and device, relating to the field of communications. The method helps reduce unknown unicast flooding, and helps reduce unknown unicast flooding in an ethernet virtual private network (EVPN) when used in scenarios such as EVPN, thereby reducing waste of communication resources. A first network device and a second network device are in communication connection. The method comprises: first, the second network device determines that a route to a media access control (MAC) address is unreachable, the MAC address being a MAC address of a user-side network device or a user host which is connected to the first network device; and second, in response to the determination, the second network device sets instruction information corresponding to the route to the MAC address, the instruction information being used for instructing the second network device, when receiving a message destined for the MAC address, not to forward the message.

Description

故障处理方法和装置Troubleshooting method and device
本申请要求于2020年10月26日提交国家知识产权局、申请号为202011159217.9、申请名称为“故障处理方法和装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 202011159217.9 and the application name "Fault Handling Method and Device", which was filed with the State Intellectual Property Office on October 26, 2020, the entire contents of which are incorporated into this application by reference.
技术领域technical field
本申请涉及通信领域,尤其涉及故障处理方法和装置。The present application relates to the field of communications, and in particular, to a fault handling method and device.
背景技术Background technique
以太网私有虚拟网络(ethernet virtual private network,EVPN)是一种用于二层网络互联的私有虚拟网络(virtual private network,VPN)技术。如图1所示,为一种EVPN的架构示意图。EVPN包括多个运营商边缘(provider edge,PE)设备。EVPN内的PE设备互相连接。客户边缘(customer edge,CE)设备通过交换机与PE设备连接。在图1中,EVPN包括PE设备1-3,且CE设备1A、1B通过交换机1与PE设备1连接,CE设备2通过交换机2与PE设备2连接,CE设备3通过交换机3与PE设备3连接。每个CE设备可以连接一个或多个用户主机。Ethernet private virtual network (ethernet virtual private network, EVPN) is a private virtual network (virtual private network, VPN) technology used for Layer 2 network interconnection. As shown in FIG. 1 , it is a schematic diagram of the architecture of an EVPN. EVPN includes multiple provider edge (PE) devices. PE devices within the EVPN are connected to each other. Customer edge (customer edge, CE) devices are connected to PE devices through switches. In Figure 1, the EVPN includes PE devices 1-3, and CE devices 1A and 1B are connected to PE device 1 through switch 1, CE device 2 is connected to PE device 2 through switch 2, and CE device 3 is connected to PE device 3 through switch 3 connect. Each CE device can be connected to one or more user hosts.
未来第五代(5th Generation,5G)承载网中,EVPN可以作为重要的业务实现方案。EVPN网络架构下的以太网专网(Ethernet local area network,E_LAN),在5G承载网中的应用也非常广泛。在E_LAN中,一个交换机故障时,连接该交换机的PE设备删除本地路由表中的该交换机连接的CE设备的可达媒体访问控制(media access control,MAC)路由,例如到达该CE设备的MAC路由和/或到达与该CE设备连接的用户侧主机的MAC路由,这里简称为该CE设备的MAC路由。之后,该PE设备向其他PE设备发送边界网关协议(border gateway protocol,BGP)更新(update)消息,以使其他PE设备删除本地路由表中的该CE设备的MAC路由。但是,与该其他PE设备连接的交换机不能及时感知该交换机已故障,因此,与该其他PE设备连接的交换机可能向该其他PE设备发送发往该MAC地址的报文。该其他PE设备接收到该报文后,不能在本地路由表中查找到该MAC路由,而触发未知单播在EVPN中泛洪,从而造成通信资源的浪费。In the future fifth generation (5th Generation, 5G) bearer network, EVPN can be used as an important service implementation solution. The Ethernet local area network (E_LAN) under the EVPN network architecture is also widely used in the 5G bearer network. In E_LAN, when a switch fails, the PE device connected to the switch deletes the reachable media access control (MAC) route of the CE device connected to the switch in the local routing table, such as the MAC route to the CE device. and/or the MAC route to the user-side host connected to the CE device, which is referred to as the MAC route of the CE device for short here. After that, the PE device sends a border gateway protocol (BGP) update (update) message to other PE devices, so that the other PE devices delete the MAC route of the CE device in the local routing table. However, the switch connected to the other PE device cannot sense that the switch is faulty in time. Therefore, the switch connected to the other PE device may send a message addressed to the MAC address to the other PE device. After receiving the packet, the other PE device cannot find the MAC route in the local routing table, and triggers unknown unicast flooding in the EVPN, thus causing waste of communication resources.
例如,基于图1,假设交换机1故障,则PE设备1删除CE设备1A的MAC路由和CE设备1B的MAC路由;且向PE设备2和PE设备3分别发送BGP更新消息,以使PE设备2和PE设备3均删除CE设备1A的MAC路由和CE设备1B的MAC路由。但是采用上述删除方式,交换机2和交换机3不能及时感知到交换机1已故障,因此还可能发送发往CE设备1A的报文。如果PE设备2接收到交换机2发送的发往CE设备1A的报文,则因不能在本地路由表中查找到该CE设备1A的MAC路由,而触发未知单播在EVPN中泛洪。For example, based on FIG. 1 , assuming that switch 1 fails, PE device 1 deletes the MAC route of CE device 1A and the MAC route of CE device 1B; and sends BGP update messages to PE device 2 and PE device 3 respectively, so that PE device 2 and PE device 3 delete the MAC route of CE device 1A and the MAC route of CE device 1B. However, by adopting the above deletion method, switch 2 and switch 3 cannot sense that switch 1 is faulty in time, and therefore may also send packets destined for CE device 1A. If PE device 2 receives the packet sent by switch 2 and destined for CE device 1A, it cannot find the MAC route of CE device 1A in the local routing table, which triggers unknown unicast flooding in the EVPN.
发明内容SUMMARY OF THE INVENTION
本申请实施例提供了一种故障处理方法和装置,有助于降低未知单播泛洪,可以应用于诸如EVPN等各种可能的网络场景中,有助于降低未知单播流量在网络中的泛洪,从而降低对通信资源的浪费。The embodiments of the present application provide a fault handling method and device, which help to reduce unknown unicast flooding, can be applied to various possible network scenarios such as EVPN, and help reduce unknown unicast traffic in the network. Flooding, thereby reducing the waste of communication resources.
为了达到上述目的,本申请提供了以下技术方案:In order to achieve the above purpose, the application provides the following technical solutions:
第一方面,本申请提供了一种故障处理方法,第一网络设备和第二网络设备通信 连接。该方法包括:第二网络设备确定到MAC地址的路由不可达,该MAC地址为与第一网络设备连接的用户侧网络设备或用户主机的MAC地址。响应于该确定,第二网络设备设置与该MAC地址的路由相对应的指示信息。该指示信息用于指示第二网络设备在接收到发往该MAC地址的报文时不转发该报文。由于第二网络设备不转发发往该MAC地址的报文,因此有助于降低未知单播流量在网络中的泛洪,从而降低对通信资源的浪费。In a first aspect, the present application provides a fault handling method, wherein a first network device and a second network device are connected in communication. The method includes: the second network device determines that the route to the MAC address is unreachable, where the MAC address is the MAC address of the user-side network device or the user host connected to the first network device. In response to the determination, the second network device sets indication information corresponding to the routing of the MAC address. The indication information is used to instruct the second network device not to forward the packet when it receives the packet addressed to the MAC address. Since the second network device does not forward the message addressed to the MAC address, it is helpful to reduce the flooding of unknown unicast traffic in the network, thereby reducing the waste of communication resources.
在一种可能的设计中,在第二网络设备设置与该MAC地址的路由相对应的指示信息之后,该方法还包括:第二网络设备删除该MAC地址的路由。这样,有助于释放第二网络设备的存储空间,从而提高存储空间的利用率。In a possible design, after the second network device sets the indication information corresponding to the route of the MAC address, the method further includes: the second network device deletes the route of the MAC address. In this way, the storage space of the second network device can be released, thereby improving the utilization rate of the storage space.
在一种可能的设计中,第二网络设备删除该MAC地址的路由,包括:第二网络设备确定到该MAC地址的路由不可达满足预设时间,或者确定设置该指示信息满足预设时间的情况下,删除该MAC地址的路由。也就是说,第二网络设备延迟删除该MAC地址的路由。这样,有助于进一步降低触发未知单播泛洪的风险,从而进一步降低对通信资源的浪费。In a possible design, deleting the route of the MAC address by the second network device includes: the second network device determines that the route to the MAC address is unreachable for a preset time, or determines to set the indication information to meet the preset time In this case, delete the route for the MAC address. That is, the second network device delays deleting the route of the MAC address. In this way, the risk of triggering unknown unicast flooding can be further reduced, thereby further reducing the waste of communication resources.
在一种可能的设计中,第二网络设备确定到MAC地址的路由不可达,包括:在第三网络设备故障,或者第一网络设备和第三网络设备之间的链路故障时,第二网络设备从第一网络设备接收第一消息,并根据第一消息确定该MAC地址的路由不可达。其中,第三网络设备为与第一网络设备连接的用户侧网络设备。该可能的设计提供了用户侧网络设备故障或者链路故障时,确定MAC路由不可达的一种具体实现方式。In a possible design, the second network device determines that the route to the MAC address is unreachable, including: when the third network device fails, or the link between the first network device and the third network device fails, the second network device fails. The network device receives the first message from the first network device, and determines that the route of the MAC address is unreachable according to the first message. The third network device is a user-side network device connected to the first network device. This possible design provides a specific implementation manner for determining that the MAC route is unreachable when the user-side network device is faulty or the link is faulty.
在一种可能的设计中,除第一网络设备外,其他一个或多个网络设备也与具有该MAC地址的用户侧网络设备或用户主机连接。该情况下,第二网络设备从第一网络设备接收第一消息,并根据第一消息确定该MAC地址的路由不可达,可以包括:第二网络设备从第一网络设备接收第一消息,并从其他一个或多个网络设备接收一个或多个第二消息。然后,第二网络设备根据第一消息和该一个或多个第二消息,确定该MAC地址的路由不可达。该可能的设计可以应用于用户侧设备的多归场景中。In a possible design, in addition to the first network device, one or more other network devices are also connected to the user-side network device or user host having the MAC address. In this case, the second network device receives the first message from the first network device, and determines that the route of the MAC address is unreachable according to the first message, which may include: the second network device receives the first message from the first network device, and One or more second messages are received from one or more other network devices. Then, the second network device determines that the route of the MAC address is unreachable according to the first message and the one or more second messages. This possible design can be applied to multi-homing scenarios of user-side devices.
在一种可能的设计中,第二网络设备确定到MAC地址的路由不可达,包括:第二网络设备根据确定第一网络设备的状态为故障,确定该MAC地址的路由不可达。该可能的设计提供了网络设备,特别是网络侧设备故障时确定MAC路由不可达的一种具体实现方式。In a possible design, the second network device determining that the route to the MAC address is unreachable includes: the second network device determines that the route to the MAC address is unreachable according to determining that the state of the first network device is faulty. This possible design provides a specific implementation manner for determining that the MAC route is unreachable when the network device, especially the device on the network side, fails.
在一种可能的设计中,除第一网络设备外,其他一个或多个网络设备也与具有该MAC地址的用户侧网络设备或用户主机连接。该情况下,第二网络设备根据确定第一网络设备的状态为故障,确定该MAC地址的路由不可达,包括:第二网络设备根据确定第一网络设备以及该其他一个或多个网络设备的状态均为故障,确定该MAC地址的路由不可达。该可能的设计可以应用于用户侧设备的多归场景中。In a possible design, in addition to the first network device, one or more other network devices are also connected to the user-side network device or user host having the MAC address. In this case, the second network device determines that the route of the MAC address is unreachable according to determining that the state of the first network device is faulty. If the status is all faulty, it is determined that the route to the MAC address is unreachable. This possible design can be applied to multi-homing scenarios of user-side devices.
在一种可能的设计中,该方法还包括:第二网络设备根据发往第一网络设备的检测报文,确定第一网络设备的状态为故障。In a possible design, the method further includes: the second network device determines that the state of the first network device is faulty according to the detection message sent to the first network device.
在一种可能的设计中,第三网络设备包括交换机。In one possible design, the third network device includes a switch.
在一种可能的设计中,第一消息为BGP Update报文。In a possible design, the first message is a BGP Update message.
在一种可能的设计中,该指示信息包括该MAC地址的路由的下一跳为NULL0。In a possible design, the indication information includes that the next hop of the route of the MAC address is NULL0.
在一种可能的设计中,第一网络设备和第二网络设备是EVPN邻居。In one possible design, the first network device and the second network device are EVPN neighbors.
在一种可能的设计中,第一网络设备和第二网络设备是PE设备。In one possible design, the first network device and the second network device are PE devices.
第二方面,本申请提供了一种故障处理装置。该故障处理装置可以是芯片或者网络设备。In a second aspect, the present application provides a fault handling device. The fault handling device may be a chip or a network device.
在一种可能的设计中,该故障处理装置用于执行上述第一方面提供的任一种方法。本申请可以根据上述第一方面提供的方法,对该故障处理装置进行功能模块的划分。例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。示例性的,本申请可以按照功能将该故障处理装置划分为确定单元、设置单元和删除单元等。上述划分的各个功能模块执行的可能的技术方案和有益效果的描述均可以参考上述第一方面中相应的技术方案,此处不再赘述。In a possible design, the fault handling device is used to execute any one of the methods provided in the first aspect. According to the method provided in the above-mentioned first aspect, the present application can divide the functional modules of the fault processing device. For example, each function module may be divided corresponding to each function, or two or more functions may be integrated into one processing module. Exemplarily, the present application may divide the fault processing device into a determination unit, a setting unit, a deletion unit, and the like according to functions. For descriptions of possible technical solutions and beneficial effects performed by each of the above-divided functional modules, reference may be made to the corresponding technical solutions in the first aspect, which will not be repeated here.
在另一种可能的设计中,该故障处理装置包括:处理器,用于实现上述第一方面描述的任一种方法。该装置还可以包括存储器,存储器与处理器耦合,处理器执行存储器中存储的指令时,可以实现上述第一方面描述的任一种方法。该设备还可以包括通信接口,该通信接口用于该设备与其它设备进行通信,示例性的,通信端口可以是收发器、电路、总线、模块或其它类型的通信接口。本申请中存储器中的指令可以预先存储也可以使用该装置时从互联网下载后存储,本申请对于存储器中指令的来源不进行唯一限定。本申请实施例中的耦合是单元或模块之间的间接耦合或连接,其可以是电性,机械或其它的形式,用于单元或模块之间的信息交互。In another possible design, the fault processing apparatus includes: a processor, configured to implement any one of the methods described in the first aspect above. The apparatus may further include a memory, and the memory is coupled to the processor. When the processor executes the instructions stored in the memory, any one of the methods described in the first aspect can be implemented. The device may also include a communication interface for the device to communicate with other devices, for example, a communication port may be a transceiver, circuit, bus, module, or other type of communication interface. In this application, the instructions in the memory can be stored in advance or downloaded from the Internet and stored when the device is used, and this application does not uniquely limit the source of the instructions in the memory. The coupling in this embodiment of the present application is an indirect coupling or connection between units or modules, which may be in electrical, mechanical or other forms, and is used for information interaction between units or modules.
第三方面,本申请提供了一种计算机可读存储介质,如计算机非瞬态的可读存储介质。其上储存有计算机程序(或指令),当该计算机程序(或指令)在故障处理装置上运行时,使得该故障处理装置执行上述第一方面提供的任一种方法。In a third aspect, the present application provides a computer readable storage medium, such as a computer non-transitory readable storage medium. A computer program (or instruction) is stored thereon, and when the computer program (or instruction) runs on the fault processing apparatus, the fault processing apparatus is made to execute any one of the methods provided in the first aspect above.
第四方面,本申请提供了一种计算机程序产品,当其在计算机上运行时,使得第一方面提供的任一种方法被执行。In a fourth aspect, the present application provides a computer program product that, when run on a computer, enables any one of the methods provided in the first aspect to be performed.
第五方面,本申请提供了一种芯片系统,包括:处理器,处理器用于从存储器中调用并运行该存储器中存储的计算机程序,执行第一方面提供的任一种方法。In a fifth aspect, the present application provides a chip system, including: a processor, where the processor is configured to call and run a computer program stored in the memory from a memory, and execute any one of the methods provided in the first aspect.
第六方面,本申请提供了一种故障处理系统,包括:第一网络设备和第二网络设备。第一网络设备和第二网络设备通信连接。第二网络设备用于执行第一方面提供的任一种方法。该系统还可以包括第三网络设备,所述第三网络设备为与所述第一网络设备连接的用户侧网络设备,例如可以是交换机或CE设备。In a sixth aspect, the present application provides a fault handling system, including: a first network device and a second network device. The first network device and the second network device are connected in communication. The second network device is configured to execute any one of the methods provided by the first aspect. The system may further include a third network device, where the third network device is a user-side network device connected to the first network device, for example, a switch or a CE device.
可以理解的是,上述提供的任一种故障处理装置、计算机存储介质、计算机程序产品或会议系统等均可以应用于上文所提供的对应的方法,因此,其所能达到的有益效果可参考对应的方法中的有益效果,此处不再赘述。It can be understood that any fault processing device, computer storage medium, computer program product or conference system provided above can be applied to the corresponding methods provided above, therefore, the beneficial effects that can be achieved can be referred to. The beneficial effects in the corresponding method will not be repeated here.
在本申请中,上述故障处理装置的名字对设备或功能模块本身不构成限定,在实际实现中,这些设备或功能模块可以以其他名称出现。只要各个设备或功能模块的功能和本申请类似,属于本申请权利要求及其等同技术的范围之内。In this application, the names of the above-mentioned fault handling apparatuses do not limit the devices or functional modules themselves, and in actual implementation, these devices or functional modules may appear in other names. As long as the functions of each device or functional module are similar to those of the present application, they fall within the scope of the claims of the present application and their equivalents.
本申请的这些方面或其他方面在以下的描述中会更加简明易懂。These and other aspects of the present application will be more clearly understood from the following description.
附图说明Description of drawings
图1为可适用于本申请实施例的一种EVPN的架构示意图;1 is a schematic structural diagram of an EVPN applicable to an embodiment of the present application;
图2为本申请实施例提供的一种故障处理系统的结构示意图;FIG. 2 is a schematic structural diagram of a fault handling system according to an embodiment of the present application;
图3为本申请实施例提供的另一种故障处理系统的结构示意图;3 is a schematic structural diagram of another fault handling system provided by an embodiment of the present application;
图4为本申请实施例提供的一种通信设备的结构示意图;FIG. 4 is a schematic structural diagram of a communication device according to an embodiment of the present application;
图5为本申请实施例提供的一种故障处理方法的流程示意图;FIG. 5 is a schematic flowchart of a fault handling method provided by an embodiment of the present application;
图6为本申请实施例提供的一种第二网络设备的结构示意图。FIG. 6 is a schematic structural diagram of a second network device according to an embodiment of the present application.
具体实施方式Detailed ways
本申请说明书和权利要求书及上述附图中的术语“第一”、“第二”和“第三”等是用于区别不同对象,而不是用于限定特定顺序。The terms "first", "second" and "third" in the description and claims of the present application and the above drawings are used to distinguish different objects, rather than to limit a specific order.
在本申请实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念,便于理解。In the embodiments of the present application, words such as "exemplary" or "for example" are used to represent examples, illustrations or illustrations. Any embodiments or designs described in the embodiments of the present application as "exemplary" or "such as" should not be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present the related concepts in a specific manner to facilitate understanding.
在本申请的描述中,除非另有说明,“/”表示前后关联的对象是一种“或”的关系,例如,A/B可以表示A或B;本申请中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况,其中A,B可以是单数或者复数。并且,在本申请的描述中,除非另有说明,“多个”是指两个或多于两个。“以下至少一项(个)”或其类似表达,是指的这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,a,b,或c中的至少一项(个),可以表示:a,b,c,a-b,a-c,b-c,或a-b-c,其中a,b,c可以是单个,也可以是多个。In the description of this application, unless otherwise stated, "/" indicates that the object associated with it is an "or" relationship, for example, A/B can indicate A or B; "and/or" in this application is only It is an association relationship that describes an associated object, which means that there can be three kinds of relationships, for example, A and/or B, which can be expressed as: A alone exists, A and B exist at the same time, and B exists alone, among which A, B Can be singular or plural. Also, in the description of the present application, unless stated otherwise, "plurality" means two or more than two. "At least one item(s) below" or similar expressions thereof refer to any combination of these items, including any combination of single item(s) or plural items(s). For example, at least one (a) of a, b, or c can represent: a, b, c, a-b, a-c, b-c, or a-b-c, where a, b, c may be single or multiple .
在本申请实施例中,至少一个还可以描述为一个或多个,多个可以是两个、三个、四个或者更多个,本申请不做限制。In the embodiments of the present application, at least one may also be described as one or more, and the multiple may be two, three, four or more, which is not limited in this application.
如前所述,在EVPN中,交换机故障时,连接该交换机的PE设备删除并使其他PE设备删除本地路由表中与该交换机连接的CE设备的MAC路由。这会导致该其他PE设备在接收到“目的MAC地址是该CE设备的MAC地址”的报文后,因不能在本地路由表中查找到该CE设备的MAC路由,而触发未知单播在EVPN中泛洪,从而造成通信资源的浪费。As mentioned above, in EVPN, when a switch fails, the PE device connected to the switch is deleted and other PE devices delete the MAC route of the CE device connected to the switch in the local routing table. This will cause the other PE device to trigger an unknown unicast in the EVPN because it cannot find the MAC route of the CE device in the local routing table after receiving the message "The destination MAC address is the MAC address of the CE device". Flood in the middle, resulting in a waste of communication resources.
鉴于此,本申请实施例提供了一种故障处理方法,具体的,在第二网络设备确定到MAC地址的路由不可达时,设置与该MAC地址相对应的指示信息,该指示信息用于指示第二网络设备在接收到发往该MAC地址的报文时不转发该报文。其中,该MAC地址为与第一网络设备连接的用户侧网络设备或用户主机的MAC地址。这样,即使第二网络设备在接收到发往该MAC地址的报文时,在本地路由表中不能查找到该MAC地址的路由,也不会触发未知单播在某些应用场景,如EVPN场景中的泛洪,相比传统技术,有助于降低对通信资源的浪费。In view of this, an embodiment of the present application provides a fault handling method. Specifically, when the second network device determines that the route to the MAC address is unreachable, it sets indication information corresponding to the MAC address, where the indication information is used to indicate When the second network device receives the packet addressed to the MAC address, the packet is not forwarded. The MAC address is the MAC address of the user-side network device or the user host connected to the first network device. In this way, even if the second network device cannot find the route of the MAC address in the local routing table when it receives the packet destined for the MAC address, it will not trigger unknown unicast in some application scenarios, such as the EVPN scenario. Compared with the traditional technology, the flooding in the system helps to reduce the waste of communication resources.
作为一种可能的场景示例,本申请实施例提供的技术方案可以应用于E_LAN,或者在一些场景下也可以被称为:EVPN虚拟专用局域网业务(virtual private LAN service,VPLS)。可以理解地,本申请实施例也可以应用于其他可能导致类似技术问题的网络场景中。As an example of a possible scenario, the technical solutions provided in the embodiments of the present application may be applied to E_LAN, or may also be referred to as: EVPN virtual private LAN service (VPLS) in some scenarios. Understandably, the embodiments of the present application may also be applied to other network scenarios that may cause similar technical problems.
本申请实施例提供的方案可以应用于图2所示的故障处理系统20中。如图2所示,该报文传输系统20可以包括多个网络侧网络设备(如网络侧网络设备201-204)、多 个用户侧网络设备(如用户侧网络设备205-207),以及多个用户主机(如用户主机208-211)。The solutions provided by the embodiments of the present application can be applied to the fault handling system 20 shown in FIG. 2 . As shown in FIG. 2, the message transmission system 20 may include multiple network side network devices (eg, network side network devices 201-204), multiple user side network devices (eg, user side network devices 205-207), and multiple user hosts (eg, user hosts 208-211).
网络侧网络设备之间可以通过边界网关协议(border gateway protocol,BGP)通信。网络侧网络设备之间可以通过隧道通信,或者其他方式通信。一个网络侧网络设备可以与一个或多个用户侧网络设备连接,例如,网络侧网络设备201与用户侧网络设备205连接,网络侧网络设备204与用户侧网络设备206-207连接。网络侧网络设备可以为PE设备。示例的,当网络侧网络设备是PE设备时,故障处理系统20中的各PE设备可以配置有同一EVPN实例。每个网络侧网络设备包含一个或多个出接口,每个出接口可以连接一个网络侧网络设备或者一个用户侧网络设备。例如,网络侧网络设备204包括出接口1-5,分别用于连接用户侧网络设备206-207、网络侧网络设备201-203。The network devices on the network side can communicate through the border gateway protocol (BGP). The network devices on the network side may communicate through tunnels or communicate in other ways. A network-side network device can be connected to one or more user-side network devices, for example, network-side network device 201 is connected to user-side network device 205, and network-side network device 204 is connected to user-side network devices 206-207. The network device on the network side may be a PE device. For example, when the network device on the network side is a PE device, each PE device in the fault handling system 20 may be configured with the same EVPN instance. Each network-side network device includes one or more outgoing interfaces, and each outgoing interface can be connected to a network-side network device or a user-side network device. For example, the network-side network device 204 includes outgoing interfaces 1-5, which are respectively used to connect the user-side network devices 206-207 and the network-side network devices 201-203.
用户侧网络设备通过一个或多个网络侧网络设备,与另一个用户侧网络设备通信。例如,用户侧网络设备205通过网络侧网络设备201和网络侧网络设备204,与用户侧网络设备206通信。一个用户侧网络设备可以与一个或多个网络侧网络设备连接,例如,用户侧网络设备206与网络侧网络设备204连接,即单归场景;用户侧网络设备205分别与网络侧网络设备201-203连接,即多归场景。一个用户侧网络设备可以与一个或多个用户主机连接,例如,用户侧网络设备205与用户主机208连接,用户侧网络设备206与用户主机209-210连接。用户侧网络设备可以为CE设备或交换机等。该交换机例如可以承担接入服务器的角色。The user-side network device communicates with another user-side network device through one or more network-side network devices. For example, the user-side network device 205 communicates with the user-side network device 206 through the network-side network device 201 and the network-side network device 204 . A user-side network device can be connected to one or more network-side network devices. For example, the user-side network device 206 is connected to the network-side network device 204, that is, a single-homing scenario; the user-side network device 205 is connected to the network-side network device 201- 203 connection, that is, a multi-homing scenario. One user side network device may be connected to one or more user hosts, for example, the user side network device 205 is connected to the user host 208, and the user side network device 206 is connected to the user hosts 209-210. The user-side network device may be a CE device or a switch. The switch may, for example, assume the role of an access server.
用户主机通过一个或多个用户侧网络设备,以及一个或多个网络侧网络设备,与另一个用户主机通信。例如,用户主机208通过用户侧网络设备205、网络侧网络设备201、204,以及用户侧网络设备206,与用户主机209通信。The user host communicates with another user host through one or more user side network devices and one or more network side network devices. For example, the user host 208 communicates with the user host 209 through the user side network device 205 , the network side network devices 201 and 204 , and the user side network device 206 .
每个网络侧网络设备可以在本地维护(或管理)路由表,即本地路由表。本地路由表可以包含一条或多条路由,即MAC路由。每条路由包括一个目的MAC地址,以及该目的MAC地址对应的下一跳节点的标识。该下一跳节点的标识用于指示目的地址是该目的MAC地址的报文的下一跳节点。Each network-side network device can maintain (or manage) a routing table locally, that is, a local routing table. The local routing table can contain one or more routes, namely MAC routes. Each route includes a destination MAC address and the identifier of the next hop node corresponding to the destination MAC address. The identifier of the next-hop node is used to indicate the next-hop node of the packet whose destination address is the destination MAC address.
网络侧网络设备维护的本地路由表中的路由包含的目的MAC地址,至少包括以下情况:The destination MAC address included in the route in the local routing table maintained by the network device on the network side includes at least the following:
情况1:该目的MAC地址是该网络侧网络设备连接的用户侧网络设备的MAC地址。Case 1: The destination MAC address is the MAC address of the user-side network device to which the network-side network device is connected.
情况2:该目的MAC地址是该网络侧网络设备连接的用户主机的MAC地址。例如,通过用户侧网络设备与是该网络侧网络设备连接的用户主机的MAC地址。Case 2: The destination MAC address is the MAC address of the user host connected to the network device on the network side. For example, the MAC address of the user host connected to the network device on the network side through the user side network device.
情况3:该目的MAC地址是与其他网络侧网络设备连接的用户侧网络设备的MAC地址。Case 3: The destination MAC address is the MAC address of the user-side network device connected to other network-side network devices.
情况4:该目的MAC地址是与其他网络侧网络设备连接的用户主机的MAC地址。Case 4: The destination MAC address is the MAC address of the user host connected to other network-side network devices.
例如,基于图2,网络侧网络设备204维护的路由表示例性地可以包括以下路由表项信息:For example, based on FIG. 2 , the routing table maintained by the network device 204 on the network side can illustratively include the following routing table entry information:
表1Table 1
Figure PCTCN2021123642-appb-000001
Figure PCTCN2021123642-appb-000001
Figure PCTCN2021123642-appb-000002
Figure PCTCN2021123642-appb-000002
需要说明的是,在一个示例中,每个网络侧网络设备可以学习本地MAC地址,即与该网络侧网络设备连接的用户侧网络设备的MAC地址和与该网络侧网络设备连接的用户主机的MAC地址,并基于学习到的MAC地址建立路由表项(称为本地路由表项)。然后,该网络侧网络设备可以向其他网络侧网络设备发送本地路由表项,并接收其他网络侧网络设备发送的该其他网络侧网络设备建立的本地路由表项。每个网络侧网络设备基于自身建立的本地路由表项和该其他网络侧网络设备建立的本地路由表项,生成路由表。其具体实现方式可以参考现有技术,此处不再赘述。It should be noted that, in an example, each network-side network device may learn the local MAC address, that is, the MAC address of the user-side network device connected to the network-side network device and the MAC address of the user host connected to the network-side network device. MAC address, and create a routing table entry (called a local routing table entry) based on the learned MAC address. Then, the network-side network device may send local routing table entries to other network-side network devices, and receive local routing table entries established by the other network-side network devices sent by the other network-side network devices. Each network-side network device generates a routing table based on the local routing table entries established by itself and the local routing table entries established by the other network-side network devices. For the specific implementation manner, reference may be made to the prior art, which will not be repeated here.
例如,当网络侧网络设备是PE设备时,PE设备之间可以通过自动发现路由(ad-route)、集成多播路由(inclusive multicast route)或已知单播路由(mac-route)等交换各自的本地路由表项。后续,当一个网络侧网络设备接收到报文时,根据报文的目的地址,查询路由表,以确定该报文的下一跳节点并向该下一跳节点转发该报文。For example, when the network device on the network side is a PE device, the PE devices can exchange their local routing table entry. Subsequently, when a network device on the network side receives the packet, it queries the routing table according to the destination address of the packet to determine the next hop node of the packet and forward the packet to the next hop node.
可选的,故障处理系统20中可以包含多级用户侧网络设备。例如,如图3所示,为一种包含多级用户侧网络设备的故障处理系统20的示例。具体的,图3中的用户主机211通过用户侧网络设备212和用户侧网络设备207(即两级用户侧网络设备)接入网络侧网络设备204。其中,一个用户侧网络设备可以连接一个或多个用户侧网络设备。图3是基于图2进行绘制的,因此,图3中其他设备的解释说明可以参考针对图2的描述,此处不再赘述。Optionally, the fault handling system 20 may include multi-level user side network devices. For example, as shown in FIG. 3 , it is an example of a fault handling system 20 including multi-level user side network devices. Specifically, the user host 211 in FIG. 3 accesses the network side network device 204 through the user side network device 212 and the user side network device 207 (ie, two levels of user side network devices). One user-side network device may be connected to one or more user-side network devices. FIG. 3 is drawn based on FIG. 2 . Therefore, for the explanation of other devices in FIG. 3 , reference may be made to the description for FIG. 2 , which will not be repeated here.
进一步可选的,与用户主机直接连接的用户侧网络设备可以是CE设备,与用户主机间接连接的用户侧网络设备可以是交换机。例如,图3中的用户侧网络设备212可以是CE设备,用户侧网络设备207可以是交换机。Further optionally, the user-side network device directly connected to the user host may be a CE device, and the user-side network device indirectly connected to the user host may be a switch. For example, the user-side network device 212 in FIG. 3 may be a CE device, and the user-side network device 207 may be a switch.
故障处理系统20可以用于EVPN。应用于EVPN时,上述网络侧网络设备具体可以是PE设备,上述用户侧网络设备具体可以是CE设备或交换机。在EVPN中,任意两个PE设备可以通过运营商骨干(provider,P)设备连接,P设备作为两个PE设备之间的转发设备,转发PE设备之间的数据报文。其中,这里的EVPN可以是单归场景或多归场景(如双归场景)。其中,单归场景是指一个用户侧网络设备(如CE设备或交换机)通过一个PE设备接入EVPN。多归场景是指一个用户侧网络设备通过多个PE设备接入EVPN。双归场景是指一个用户侧网络设备通过两个PE设备接入EVPN。The fault handling system 20 can be used for EVPN. When applied to EVPN, the network device on the network side may specifically be a PE device, and the network device on the user side may specifically be a CE device or a switch. In EVPN, any two PE devices can be connected through an operator's backbone (provider, P) device, and the P device acts as a forwarding device between the two PE devices to forward data packets between the PE devices. The EVPN here may be a single-homing scenario or a multi-homing scenario (eg, a dual-homing scenario). The single-homing scenario refers to a user-side network device (such as a CE device or a switch) accessing the EVPN through a PE device. In the multi-homing scenario, a user-side network device accesses the EVPN through multiple PE devices. The dual-homing scenario refers to a user-side network device accessing the EVPN through two PE devices.
示例的,结合图1,图1中的PE设备可以是图2中的网络侧网络设备的具体实现,图1中的CE设备和交换机可以是图2中的用户侧网络设备的具体实现,图1中的用户主机可以是图2中的用户主机的具体实现。By way of example, with reference to FIG. 1 , the PE device in FIG. 1 may be a specific implementation of the network-side network device in FIG. 2 , and the CE device and switch in FIG. 1 may be a specific implementation of the user-side network device in FIG. 2 . The user host in 1 may be a specific implementation of the user host in FIG. 2 .
在硬件实现上,上述网络侧网络设备和用户侧网络设备均可以通过如图4所示的通信设备实现。如图4所示,为本申请实施例提供的一种通信设备40的硬件结构示意图。通信设备40可以用于实现上述网络侧网络设备或用户侧网络设备的功能。In terms of hardware implementation, both the network-side network device and the user-side network device described above may be implemented by a communication device as shown in FIG. 4 . As shown in FIG. 4 , it is a schematic diagram of a hardware structure of a communication device 40 according to an embodiment of the present application. The communication device 40 may be used to implement the functions of the network device on the network side or the network device on the user side.
图4所示的通信设备40可以包括:处理器401、存储器402、通信接口403以及总线404。处理器401、存储器402以及通信接口403之间可以通过总线404连接。The communication device 40 shown in FIG. 4 may include: a processor 401 , a memory 402 , a communication interface 403 and a bus 404 . The processor 401 , the memory 402 and the communication interface 403 may be connected through a bus 404 .
处理器401是生成通信设备40的控制中心,可以是一个通用中央处理单元(central processing unit,CPU),也可以是其他通用处理器等。其中,通用处理器可以是微处理器或者是任何常规的处理器等。The processor 401 is the control center for generating the communication device 40, which may be a general-purpose central processing unit (central processing unit, CPU), or other general-purpose processors. Wherein, the general-purpose processor may be a microprocessor or any conventional processor or the like.
作为一个示例,处理器401可以包括一个或多个CPU,例如图4中所示的CPU 0和CPU 1。As an example, processor 401 may include one or more CPUs, such as CPU 0 and CPU 1 shown in FIG. 4 .
存储器402可以是只读存储器(read-only memory,ROM)或可存储静态信息和指令的其他类型的静态存储设备,随机存取存储器(random access memory,RAM)或者可存储信息和指令的其他类型的动态存储设备,也可以是电可擦可编程只读存储器(electrically erasable programmable read-only memory,EEPROM)、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。The memory 402 may be read-only memory (ROM) or other type of static storage device that can store static information and instructions, random access memory (RAM) or other type of static storage device that can store information and instructions A dynamic storage device that can also be an electrically erasable programmable read-only memory (EEPROM), a magnetic disk storage medium, or other magnetic storage device, or can be used to carry or store instructions or data structures in the form of desired program code and any other medium that can be accessed by a computer, but is not limited thereto.
一种可能的实现方式中,存储器402可以独立于处理器401存在。存储器402可以通过总线404与处理器401相连接,用于存储数据、指令或者程序代码。处理器401调用并执行存储器402中存储的指令或程序代码时,能够实现本申请实施例提供的故障处理方法。In one possible implementation, the memory 402 may exist independently of the processor 401 . The memory 402 may be connected to the processor 401 through a bus 404 for storing data, instructions or program codes. When the processor 401 calls and executes the instructions or program codes stored in the memory 402, the fault handling method provided by the embodiment of the present application can be implemented.
另一种可能的实现方式中,存储器402也可以和处理器401集成在一起。In another possible implementation manner, the memory 402 may also be integrated with the processor 401 .
通信接口403,用于通信设备40与其他设备通过通信网络连接,所述通信网络可以是以太网,无线接入网(radio access network,RAN),无线局域网(wireless local area networks,WLAN)等。通信接口403可以包括用于接收数据的接收单元,以及用于发送数据的发送单元。The communication interface 403 is used to connect the communication device 40 with other devices through a communication network, and the communication network can be an Ethernet, a radio access network (RAN), a wireless local area network (wireless local area networks, WLAN) and the like. The communication interface 403 may include a receiving unit for receiving data, and a transmitting unit for transmitting data.
总线404,可以是工业标准体系结构(industry standard architecture,ISA)总线、外部设备互连(peripheral component interconnect,PCI)总线或扩展工业标准体系结构(extended industry standard architecture,EISA)总线等。该总线可以分为地址总线、数据总线、控制总线等。为便于表示,图4中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The bus 404 may be an industry standard architecture (industry standard architecture, ISA) bus, a peripheral component interconnect (peripheral component interconnect, PCI) bus, or an extended industry standard architecture (extended industry standard architecture, EISA) bus or the like. The bus can be divided into address bus, data bus, control bus and so on. For ease of presentation, only one thick line is used in FIG. 4, but it does not mean that there is only one bus or one type of bus.
需要指出的是,图4中示出的结构并不构成对通信设备40的限定,除图4所示部件之外,通信设备40可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。It should be pointed out that the structure shown in FIG. 4 does not constitute a limitation on the communication device 40. In addition to the components shown in FIG. 4, the communication device 40 may include more or less components than those shown in the figure, or a combination of certain some components, or a different arrangement of components.
如图5所示,为本申请实施例提供的一种故障处理方法的流程示意图。图5所示的方法可以应用于图2或图3所示的故障处理系统中。图5所示的方法应用于第二网络设备。第二网络设备和第一网络设备通信连接。可选的,第二网络设备与第一网络设备之间通过BGP通信。第二网络设备可以是图2或图3中的任意一个网络侧网络设备。第一网络设备可以是图2或图3中任意一个除第二网络设备之外的任意一个网络侧网络设备。As shown in FIG. 5 , it is a schematic flowchart of a fault processing method provided by an embodiment of the present application. The method shown in FIG. 5 can be applied to the fault handling system shown in FIG. 2 or FIG. 3 . The method shown in FIG. 5 is applied to the second network device. The second network device is connected in communication with the first network device. Optionally, the second network device communicates with the first network device through BGP. The second network device may be any one of the network-side network devices in FIG. 2 or FIG. 3 . The first network device may be any one of the network-side network devices in FIG. 2 or FIG. 3 except the second network device.
可选的,第二网络设备和第一网络设备是EVPN邻居。EVPN邻居,通常指PE设备之间的邻居关系。EVPN邻居之间还可以通过建立的隧道通信,该隧道的类型例如可以是标签分发协议(label distribution protocol,LDP)隧道,虚拟局域网扩展(virtual extensible local area network,VXLAN)协议隧道等。可选的,第二网络设备和第一网络设备是PE设备。Optionally, the second network device and the first network device are EVPN neighbors. EVPN neighbor, usually refers to the neighbor relationship between PE devices. EVPN neighbors can also communicate through established tunnels. The type of the tunnel can be, for example, a label distribution protocol (LDP) tunnel, a virtual extensible local area network (VXLAN) protocol tunnel, and the like. Optionally, the second network device and the first network device are PE devices.
图5所示的方法可以包括以下步骤:The method shown in Figure 5 may include the following steps:
S501:第二网络设备确定到MAC地址的路由不可达,该MAC地址为与第一网络设备连接的用户侧网络设备或用户主机的MAC地址。S501: The second network device determines that the route to the MAC address is unreachable, where the MAC address is the MAC address of the user-side network device or the user host connected to the first network device.
例如,结合图1,第二网络设备可以是PE设备2,第一网络设备可以是PE设备1,网络侧网络设备可以是交换机1、CE设备1A或CE设备2A,用户主机可以是CE设备1A连接的用户主机或CE设备1B连接的用户主机。For example, referring to FIG. 1, the second network device may be PE device 2, the first network device may be PE device 1, the network side network device may be switch 1, CE device 1A or CE device 2A, and the user host may be CE device 1A Connected user host or CE device 1B connected user host.
例如,结合图2或图3,第二网络设备可以是网络侧网络设备204,第一网络设备可以是网络侧网络设备201-203中的任意一个网络侧网络设备,用户侧网络设备可以是网络侧网络设备205,用户主机可以是用户主机208。或者,结合图2或图3,第二网络设备可以是网络侧网络设备201,第一网络设备可以是网络侧网络设备204,用户侧网络设备可以是网络侧网络设备206或网络侧用户设备207,用户主机可以是用户主机209-211中的任一用户主机。For example, referring to FIG. 2 or FIG. 3 , the second network device may be the network-side network device 204 , the first network device may be any one of the network-side network devices 201 to 203 , and the user-side network device may be the network On the side network device 205 , the user host may be the user host 208 . Alternatively, with reference to FIG. 2 or FIG. 3 , the second network device may be the network-side network device 201 , the first network device may be the network-side network device 204 , and the user-side network device may be the network-side network device 206 or the network-side user equipment 207 , the user host can be any one of the user hosts 209-211.
其中,该MAC地址是与第一网络设备连接的任意一个用户侧网络设备或任意一个用户主机的MAC地址。到MAC地址的路由,或称MAC地址的路由,是指目的MAC地址是该MAC地址的路由。例如,到该MAC地址的路由可以是第二网络设备维护的本地路由表中的任意一条路由。The MAC address is the MAC address of any user-side network device or any user host connected to the first network device. A route to a MAC address, or a route to a MAC address, refers to a route whose destination MAC address is the MAC address. For example, the route to the MAC address may be any route in the local routing table maintained by the second network device.
需要说明的是,下文中为了描述方便,将目的MAC地址是一个MAC地址的路由,称为到该MAC地址的路由,或者该MAC地址的路由。在此统一说明,下文不再描述。It should be noted that, for convenience of description below, a route whose destination MAC address is a MAC address is referred to as a route to the MAC address, or a route to the MAC address. The unified description is provided here and will not be described below.
可选的,S501可以通过以下方式实现:Optionally, S501 can be implemented in the following ways:
方式1:在第三网络设备故障,或者第一网络设备和第三网络设备之间的链路故障时,第二网络设备从第一网络设备接收第一消息,并根据第一消息确定该MAC地址的路由不可达。其中,第三网络设备为与第一网络设备连接的用户侧网络设备。Mode 1: When the third network device fails, or the link between the first network device and the third network device fails, the second network device receives the first message from the first network device, and determines the MAC according to the first message. The route for the address is unreachable. The third network device is a user-side network device connected to the first network device.
其中,第三网络设备可以是与第一网络设备直接或间接连接的任意一个用户侧网络设备,如交换机或CE设备。例如,结合图1,若第一网络设备是PE设备1,则第三网络设备可以是CE设备1A或CE设备1B或交换机1。又如,结合图2或图3,若第一网络设备是网络侧网络设备201-203中的任意一个网络侧网络设备,则第三网络设备可以是用户侧网络设备205。The third network device may be any user-side network device directly or indirectly connected to the first network device, such as a switch or a CE device. For example, referring to FIG. 1 , if the first network device is PE device 1 , the third network device may be CE device 1A or CE device 1B or switch 1 . For another example, referring to FIG. 2 or FIG. 3 , if the first network device is any one of the network-side network devices 201 to 203 , the third network device may be the user-side network device 205 .
第一消息是在“第三网络设备故障,或者第一网络设备和第三网络设备之间的链路故障”这一状态下,第二网络设备接收的来自第一网络设备,并用于确定该MAC地址的路由不可达的消息。本申请实施例对第一消息采用何种形式指示不可达性不进行唯一方式的限定,只要第二网络设备能够基于该第一消息确定该MAC路由不可达即可。The first message is received by the second network device from the first network device in the state of "the third network device is faulty, or the link between the first network device and the third network device is faulty", and is used to determine the Route unreachable message for the MAC address. This embodiment of the present application does not limit the form of the first message to indicate unreachability, as long as the second network device can determine that the MAC route is unreachable based on the first message.
在一个示例中,第二网络设备接收第一网络设备发送的第一消息,第一消息用于指示不可达的路由,根据第一消息确定不可达的路由。其中,该不可达的路由包含S501中的路由。其中,第一网络设备可以在确定第三网络设备故障,或者第一网络设备和 第三网络设备之间的链路故障时,向第二网络设备发送第一消息。其中,本申请实施例对第一消息具体通过携带哪些信息来指示不可达的路由不进行唯一限定。在一种可能的情形中,该第一消息可以是MAC撤销路由,例如撤销类型的ad-route路由。In an example, the second network device receives a first message sent by the first network device, where the first message is used to indicate an unreachable route, and the unreachable route is determined according to the first message. The unreachable route includes the route in S501. The first network device may send the first message to the second network device when it is determined that the third network device is faulty or the link between the first network device and the third network device is faulty. Wherein, the embodiment of the present application does not uniquely limit which information the first message carries to indicate an unreachable route. In a possible situation, the first message may be MAC withdraw route, such as withdraw type ad-route route.
在另一个示例中,第二网络设备接收第一网络设备发送的第一消息,第一消息用于指示通过第一网络设备当前可达的路由。第二网络设备将第一消息所指示的当前可达的路由与已存储的可达的路由进行比对,从而确定本地路由表中状态实际已变更为不可达的路由。其中,确定的该不可达的路由包含S501中路由。该示例中,第一网络设备可以在第三网络设备故障,或者第一网络设备和第三网络设备之间的链路故障时,向第二网络设备发送第一消息。In another example, the second network device receives a first message sent by the first network device, where the first message is used to indicate a currently reachable route through the first network device. The second network device compares the currently reachable route indicated by the first message with the stored reachable route, so as to determine that the state in the local routing table has actually changed to an unreachable route. The determined unreachable route includes the route in S501. In this example, the first network device may send the first message to the second network device when the third network device fails, or when the link between the first network device and the third network device fails.
在又一个示例中,第二网络设备接收第一网络设备发送的第一消息,第一消息用于指示第三网络设备故障,或者第一网络设备和第三网络设备之间的链路故障。In yet another example, the second network device receives a first message sent by the first network device, where the first message is used to indicate a failure of the third network device, or a failure of a link between the first network device and the third network device.
其中,本申请实施例对第一消息具体通过携带哪些信息来指示第三网络设备故障,或者第一网络设备和第三网络设备之间的链路故障不进行唯一限定。例如,第一消息可以携带用于通告第三网络设备故障的信息,或者用于通告第一网络设备和第三网络设备之间的链路故障的信息。又如,第一消息除了携带用于通告上述“第三网络设备故障的信息,或者用于表示第一网络设备和第三网络设备之间的链路故障”的信息之外,还可以携带通过第一网络设备当前可达的路由,或者通过第一网络设备当前不可达的路由等。Wherein, the embodiment of the present application does not uniquely define what information the first message carries to indicate the failure of the third network device, or the failure of the link between the first network device and the third network device. For example, the first message may carry information for notifying the failure of the third network device, or information for notifying the failure of the link between the first network device and the third network device. For another example, in addition to carrying the information used to announce the above-mentioned “information about the failure of the third network device, or the information used to indicate the failure of the link between the first network device and the third network device”, the first message may also carry information through A currently reachable route of the first network device, or a currently unreachable route through the first network device, and the like.
本申请实施例对第一消息的类型不进行唯一限定。例如第一消息可以是BGP Update报文。This embodiment of the present application does not uniquely limit the type of the first message. For example, the first message may be a BGP Update message.
可选的,除第一网络设备外,其他一个或多个网络设备也与具有该MAC地址的用户侧网络设备连接。此时,方式1可以包括:在第三网络设备故障,或者第一网络设备和第三网络设备之间的链路故障时,第二网络设备从第一网络设备接收第一消息,并从该其他一个或多个网络设备分别接收对应的一个或多个第二消息。第二网络设备根据第一消息,以及该一个或多个第二消息,确定该MAC地址的路由不可达。Optionally, in addition to the first network device, one or more other network devices are also connected to the user-side network device having the MAC address. At this time, the way 1 may include: when the third network device fails, or when the link between the first network device and the third network device fails, the second network device receives the first message from the first network device, and receives the first message from the first network device. The other one or more network devices respectively receive the corresponding one or more second messages. The second network device determines that the route of the MAC address is unreachable according to the first message and the one or more second messages.
该可选的实现方式提供了本申请实施例提供的故障处理方法应用于多归场景时,确定该MAC地址的路由不可达的方法。具体的,第三网络设备与多个网络侧网络设备连接,该第三网络设备多归接入网络侧网络设备。该多个网络侧网络设备包含第一网络设备。This optional implementation provides a method for determining that the route of the MAC address is unreachable when the fault handling method provided by the embodiment of the present application is applied to a multi-homing scenario. Specifically, the third network device is connected to multiple network-side network devices, and the third network device is multi-homed to access network-side network devices. The plurality of network side network devices include a first network device.
其中,这里的第二消息与第一消息的区别在于区分不同网络设备发送的消息。因此,关于第二消息的具体实现方式,可以参考上文中对第一消息的相关描述,此处不再赘述。The difference between the second message and the first message here is to distinguish messages sent by different network devices. Therefore, for a specific implementation manner of the second message, reference may be made to the relevant description of the first message above, which will not be repeated here.
在一个示例中,如果第三网络设备多归接入多个网络侧网络设备,则第二网络设备可以在接收到该多个网络侧网络设备中的每个网络侧网络设备发送的第一消息/第二消息的情况下,确定S501中的路由不可达。In an example, if the third network device is multi-homed to multiple network-side network devices, the second network device may receive the first message sent by each network-side network device in the multiple network-side network devices / In the case of the second message, it is determined that the route in S501 is unreachable.
例如,基于图2,假设第一网络设备是网络侧网络设备201,第二网络设备是网络侧网络设备204,则S501中不可达的路由可以是用户侧网络设备205的路由,或者用户主机208的路由。由于具有该MAC地址的用户侧网络设备(即用户侧网络设备205)或用户主机(即用户主机208)还与网络侧网络设备202、203连接,则在用户侧网络 设备205和网络侧网络设备201之间的链路发生故障的情形下,需发往用户侧网络设备205或用户主机208的报文还存在经由网络侧网络设备202或网络侧网络设备203转发的可能性。例如在EVPN多归多活场景中,假设作为用户侧网络设备的CE设备多归接入多个网络侧网络设备,则CE设备可以通过该多个网络侧网络设备均可接收到报文。因此,假设第三网络设备是用户侧网络设备205,那么,网络侧网络设备204可以在接收到网络侧网络设备201-203分别发送的第一消息或第二消息的情况下,才认为到用户侧网络设备205的MAC地址的路由不可达或到用户主机208的MAC地址的路由不可达。For example, based on FIG. 2 , assuming that the first network device is the network device 201 on the network side and the second network device is the network device 204 on the network side, the unreachable route in S501 may be the route of the user-side network device 205 or the user host 208 route. Since the user-side network device (ie, the user-side network device 205 ) or the user-side network device (ie, the user-side network device 208 ) with the MAC address is also connected to the network-side network devices 202 and 203 , the user-side network device 205 and the network-side network device When the link between 201 is faulty, the packet to be sent to the user-side network device 205 or the user host 208 may be forwarded via the network-side network device 202 or the network-side network device 203 . For example, in an EVPN multi-homing and multi-active scenario, if a CE device serving as a user-side network device is multi-homed to multiple network-side network devices, the CE device can receive packets through the multiple network-side network devices. Therefore, assuming that the third network device is the user-side network device 205, the network-side network device 204 may only consider that the user-side network device 204 receives the first message or the second message sent by the network-side network devices 201-203, respectively. The route to the MAC address of the side network device 205 is unreachable or the route to the MAC address of the user host 208 is unreachable.
方式2:第二网络设备根据确定第一网络设备的状态为故障,确定该MAC地址的路由不可达。方式2可以理解为:第二网络设备在主动确定第一网络设备的状态为故障的情况下,确定该MAC地址的路由不可达。Manner 2: The second network device determines that the route of the MAC address is unreachable according to determining that the state of the first network device is faulty. Manner 2 can be understood as: in the case that the second network device actively determines that the state of the first network device is faulty, it determines that the route of the MAC address is unreachable.
可选的,第二网络设备根据发往第一网络设备的检测报文,确定第一网络设备的状态为故障。具体的,第二网络设备可以向第一网络设备发送检测报文,并在预设时间段(如从发送检测报文开始的预设时间段)内没有接收到针对该检测报文响应报文时,确定第一网络设备的状态为故障。例如,第二网络设备可以基于双向转发检测(bidirectional forwarding detection,BFD)协议或连接故障管理(connectivity fault management,CFM)协议等,向第一网络设备发送检测报文。Optionally, the second network device determines that the state of the first network device is faulty according to the detection packet sent to the first network device. Specifically, the second network device may send a detection packet to the first network device, and does not receive a response packet for the detection packet within a preset period of time (eg, a preset period of time from sending the detection packet). When , it is determined that the state of the first network device is faulty. For example, the second network device may send a detection packet to the first network device based on a bidirectional forwarding detection (BFD) protocol or a connection fault management (connectivity fault management, CFM) protocol or the like.
可选的,除第一网络设备外,其他一个或多个网络设备也与具有该MAC地址的用户侧网络设备或用户主机连接,例如EVPN多归多活场景下CE设备多归属于多个PE设备。此时,方式2可以包括:第二网络设备根据确定第一网络设备以及该其他一个或多个网络设备的状态均为故障,确定该MAC地址的路由不可达。Optionally, in addition to the first network device, one or more other network devices are also connected to the user-side network device or user host with the MAC address. For example, in an EVPN multi-homed multi-active scenario, a CE device is multi-homed to multiple PEs. equipment. At this time, Manner 2 may include: the second network device determines that the route of the MAC address is unreachable according to determining that the states of the first network device and the one or more other network devices are both faulty.
其中,第二网络设备确定其他一个或多个网络设备的状态为故障的方法,可以参考上述确定第一网络设备的状态为故障的方法,此处不再赘述。Wherein, for the method for the second network device to determine that the state of one or more other network devices is faulty, reference may be made to the above-mentioned method for determining the state of the first network device to be faulty, which will not be repeated here.
在一个示例中,多个网络设备与具有该MAC地址的用户侧网络设备或用户主机连接时,第二网络设备可以在确定该多个网络设备的状态均为故障时,确定该MAC地址不可达。In an example, when multiple network devices are connected to a user-side network device or a user host having the MAC address, the second network device may determine that the MAC address is unreachable when determining that the multiple network devices are all faulty. .
例如,基于图2,假设第二网络设备是网络侧网络设备204,第一网络设备是网络侧网络设备201,则S501中不可达的路由可以是用户侧网络设备205的路由,或者用户主机208的路由。由于具有该MAC地址的用户侧网络设备(即用户侧网络设备205)或用户主机(即用户主机208)还与网络侧网络设备202、203连接,因此,网络侧网络设备204可以在确定网络侧网络设备201-203的状态均为故障时,确定该MAC地址不可达。For example, based on FIG. 2 , assuming that the second network device is the network-side network device 204 and the first network device is the network-side network device 201 , the unreachable route in S501 may be the route of the user-side network device 205 , or the user host 208 route. Since the user-side network device (ie, the user-side network device 205 ) or the user host (ie, the user host 208 ) with the MAC address is also connected to the network-side network devices 202 and 203 , the network-side network device 204 can determine the network-side network device 204 When the states of the network devices 201-203 are all faulty, it is determined that the MAC address is unreachable.
S502:响应于S501中的确定,第二网络设备设置与该MAC地址的路由相对应的指示信息,该指示信息用于指示第二网络设备在接收到发往该MAC地址的报文时不转发该报文。例如,作为不转发该报文的一种可能的方式,第二网络设备可以对该报文进行丢弃。S502: In response to the determination in S501, the second network device sets indication information corresponding to the route of the MAC address, where the indication information is used to instruct the second network device not to forward the packet when it receives the message addressed to the MAC address the message. For example, as a possible way of not forwarding the packet, the second network device may discard the packet.
本申请实施例对设置该指示信息的具体实现方式不进行唯一限定,只要能够实现指示第二网络设备不对发往该MAC地址的报文进行转发的目的即可。以下方式a-c作为可能的示例。This embodiment of the present application does not limit the specific implementation manner of setting the indication information uniquely, as long as the purpose of instructing the second network device not to forward the message sent to the MAC address can be achieved. The following ways a-c serve as possible examples.
方式a:设置该指示信息,可以包括:改变该MAC地址的路由,从而使得第二网络设备在接收到发往该MAC地址的报文时不转发该报文。Manner a: Setting the indication information may include: changing the route of the MAC address, so that the second network device does not forward the packet when receiving the packet addressed to the MAC address.
例如,该指示信息可以是将该MAC地址的路由的下一跳修改为NULL0。也就是说,设置该MAC地址的路由包括的下一跳节点的标识为NULL0。例如,基于上述表1,假设不可达的路由是路由7,则将路由7中的“目的MAC地址对应的下一跳的标识”设置为NULL0。这样设置之后,该路由可以被称为黑洞路由。For example, the indication information may be to modify the next hop of the route of the MAC address to NULL0. That is, the identifier of the next hop node included in the route of the MAC address is set to NULL0. For example, based on the above Table 1, assuming that the unreachable route is route 7, the "identification of the next hop corresponding to the destination MAC address" in route 7 is set to NULL0. After this setting, the route can be called a black hole route.
方式b:设置该指示信息,可以包括:为该MAC地址的路由设置指示符。也就是说,本地路由表中的每个路由对应一个指示符,当将该指示符的值设置为预设值时,第二网络设备基于此在接收到发往该MAC地址的报文时不转发该报文。或者,至少为该MAC地址,而不一定是整条路由设置对应的指示符,当将该指示符的值设置为预设值时,第二网络设备基于此在接收到发往该MAC地址的报文时不转发该报文。Manner b: Setting the indication information may include: setting an indicator for the route of the MAC address. That is to say, each route in the local routing table corresponds to an indicator, and when the value of the indicator is set to a preset value, based on this, the second network device does not receive a packet addressed to the MAC address. Forward the message. Or, a corresponding indicator is set for at least the MAC address, not necessarily the entire route. When the value of the indicator is set to a preset value, the second network device receives the message sent to the MAC address based on this. The message is not forwarded when the message is sent.
方式c:设置该指示信息,可以包括:将该MAC地址的路由,或者至少该MAC地址存放在一张不可达MAC路由表或MAC地址记录表中,以使得第二网络设备根据该MAC地址属于该不可达MAC路由表或MAC地址记录表,确定不对发往该MAC地址的报文进行转发。其中,该指示信息可以认为是该不可达MAC路由表或MAC地址记录表本身。Mode c: Setting the indication information may include: storing the route of the MAC address, or at least the MAC address in an unreachable MAC routing table or a MAC address record table, so that the second network device belongs to the MAC address according to the MAC address. The unreachable MAC routing table or the MAC address record table determines not to forward the packets sent to the MAC address. The indication information may be considered to be the unreachable MAC routing table or the MAC address record table itself.
可选的,在执行S502之后,该方法还可以包括以下S503。Optionally, after performing S502, the method may further include the following S503.
S503:第二网络设备删除该MAC地址的路由。S503: The second network device deletes the route of the MAC address.
由于执行S502之后,当第二网络设备接收到发往该MAC地址的报文时,不再基于该路由转发该报文,因此,第二网络设备维护的该路由成为冗余路由,在此基础上,执行S503,有助于释放第二网络设备的存储空间,从而提高存储空间的利用率。After the execution of S502, when the second network device receives the packet addressed to the MAC address, it no longer forwards the packet based on the route. Therefore, the route maintained by the second network device becomes a redundant route. Based on this Above, executing S503 helps to release the storage space of the second network device, thereby improving the utilization rate of the storage space.
可选的,第二网络设备确定到该MAC地址的路由不可达满足预设时间,或者根据设置该指示信息满足预设时间的情况下,删除该MAC地址的路由。Optionally, the second network device determines that the route to the MAC address is unreachable for a preset time, or deletes the route to the MAC address according to the setting of the indication information to meet the preset time.
例如,第二网络设备在从确定该MAC地址的路由不可达开始的预设时间之后,删除该MAC地址的路由。For example, the second network device deletes the route of the MAC address after a preset time from determining that the route of the MAC address is unreachable.
又如,第二网络设备在从确定该指示信息开始的预设时间之后,删除该MAC地址的路由。For another example, the second network device deletes the route of the MAC address after a preset time from the determination of the indication information.
需要说明的是,具体实现时,第二网络设备可以通过设置定时器来实现该可选的方案,例如,在确定该MAC地址的路由不可达时或者确定设置该指示信息时,开始计时,并在计时时间满足预设时间时,删除该MAC地址的路由。其中,该定时器可以通过软件实现,也可以通过硬件实现,还可以通过软件结合硬件实现。It should be noted that, during specific implementation, the second network device may implement the optional solution by setting a timer. For example, when it is determined that the route of the MAC address is unreachable or when the indication information is determined to be set, the timer starts and the timer is set. When the timing time meets the preset time, the route of the MAC address is deleted. Wherein, the timer can be implemented by software, can also be implemented by hardware, and can also be implemented by software combined with hardware.
在一个示例中,该可选的实现方式可以理解为:第二网络设备延迟删除该MAC地址的路由。这里的延迟删除,主要是为区别于背景技术中的立即删除而言的相对概念。可以理解地,在实际应用中,无论执行立即删除还是延迟删除均需要经过一定的时间。In an example, the optional implementation manner can be understood as: the second network device delays deleting the route of the MAC address. The delayed deletion here is mainly a relative concept that is different from the immediate deletion in the background art. Understandably, in practical applications, it takes a certain period of time to perform immediate deletion or delayed deletion.
以下说明预设时间的几种实现方式,可以至少应用于诸如设置该指示信息与该MAC地址的路由直接相关的实现中,如采用上述方式a或方式b中为MAC路由设置指示信息的情形:The following describes several implementations of the preset time, which can be at least applied to implementations such as setting the indication information directly related to the route of the MAC address, such as the situation in which the indication information is set for the MAC route in the above-mentioned manner a or manner b:
实现方式1:预设时间大于或等于第二网络设备连接的用户侧网络设备的MAC老 化时间。Implementation 1: The preset time is greater than or equal to the MAC aging time of the user-side network device connected to the second network device.
其中,如果第二网络设备连接多个用户侧网络设备,且该多个用户侧网络设备上设置的MAC老化时间均不相同或不完全相同,则预设时间可以大于或等于该对应于多个用户侧网络设备的多个MAC老化时间中的最长老化时间。Wherein, if the second network device is connected to multiple user-side network devices, and the MAC aging times set on the multiple user-side network devices are all different or not identical, the preset time may be greater than or equal to the time corresponding to the multiple user-side network devices. The longest aging time among multiple MAC aging times of the user-side network device.
在一个MAC路由的老化时间到来时,该用户侧网络设备可以从MAC路由表中删除该MAC路由。由此,该用户侧网络设备在该MAC路由的老化时间到达前,可能会根据该MAC路由向与其连接的网络侧网络设备发送报文,而在该MAC路由的到达老化时间后,由于该MAC路由被删除,该用户侧网络设备不会再根据该MAC路由向与其连接的网络侧网络设备发送报文。应用于背景技术中的示例,交换机2在CE设备1A的MAC地址的老化时间到达前,可能向PE设备2发送报文,从而可能因不能在本地路由表中查找到CE设备1A的MAC地址的路由,而触发未知单播在EVPN中泛洪。交换机2在该MAC地址的老化时间到达后,PE设备2不会接收到交换机2根据该MAC地址的路由发送的报文,因此不会引发未知单播在EVPN中泛洪。When the aging time of a MAC route arrives, the user-side network device may delete the MAC route from the MAC routing table. Therefore, before the aging time of the MAC route arrives, the user-side network device may send a packet to the network-side network device connected to it according to the MAC route. The route is deleted, and the user-side network device will no longer send packets to the network-side network device connected to it according to the MAC route. In the example applied to the background technology, the switch 2 may send a packet to the PE device 2 before the aging time of the MAC address of the CE device 1A, so that the MAC address of the CE device 1A may not be found in the local routing table. route, which triggers unknown unicast flooding in the EVPN. After switch 2 reaches the aging time of the MAC address, PE device 2 will not receive the packets sent by switch 2 according to the route of the MAC address, so it will not cause unknown unicast flooding in the EVPN.
基于此,在上述设置指示信息时,如果该指示信息为与MAC地址的路由表项相关的指示信息类型,则在设置该指示信息之后,且没有到达第二网络设备连接的用户侧网络设备上设置的最长MAC老化时间之前,就删除该MAC路由,虽能保证在删除该路由之前不会引发未知单播在EVPN中泛洪,但不能保证在删除该路由之后也不会引发未知单播在EVPN中泛洪。因此,可以考虑设置预设时间大于或等于第二网络设备连接的用户侧网络设备的MAC老化时间。Based on this, when the above indication information is set, if the indication information is the type of indication information related to the routing table entry of the MAC address, after the indication information is set, it does not reach the user-side network device connected to the second network device. Before the set maximum MAC aging time, the MAC route is deleted. Although it can ensure that the unknown unicast will not be flooded in the EVPN before the route is deleted, it cannot guarantee that the unknown unicast will not be caused after the route is deleted. Flood in EVPN. Therefore, it may be considered that the preset time is greater than or equal to the MAC aging time of the user-side network device connected to the second network device.
实现方式2:预设时间大于或等于第二网络设备连接的用户侧网络设备的故障检测周期,该故障检测周期是用于检测故障处理系统中的其他用户侧网络设备是否故障的周期。Implementation Mode 2: The preset time is greater than or equal to the failure detection period of the user-side network device connected to the second network device, and the failure detection period is a period used to detect whether other user-side network devices in the fault handling system are faulty.
其中,如果第二网络设备连接多个用户侧网络设备,不同用户侧网络设备的故障检测周期均不相同或不完全相同,则预设时间可以大于或等于该多个用户设备所具有的多个故障检测周期中的最长故障检测周期。Wherein, if the second network device is connected to multiple user-side network devices, and the fault detection periods of different user-side network devices are different or not completely the same, the preset time may be greater than or equal to the multiple user-side network devices. The longest fault detection period in the fault detection period.
用户侧网络设备可以周期性检测故障处理系统中的其他用户侧网络设备是否故障。应用于背景技术中的示例,交换机2可以周期性地检测交换机1是否故障。The user-side network device can periodically detect whether other user-side network devices in the fault handling system are faulty. Applied to the example in the background art, the switch 2 can periodically detect whether the switch 1 is faulty.
如果在一个故障检测周期开始时,一个用户侧网络设备确定另一个用户侧网络设备没有发生故障,那么,在该故障检测周期内,该用户侧用户设备还可能向该另一个用户侧网络设备发送报文。基于此,在一个故障检测周期结束之前,如果与该另一个用户侧网络设备连接的网络侧网络设备删除了该另一个用户侧网络设备的本地路由,则该网络侧网络设备在接收到发往该另一个用户侧网络设备的报文时,因不能找到相应的路由,而引发未知单播在EVPN中泛洪。在下一个故障检测周期到来时,该用户侧用户设备则能够检测到该另一个用户侧网络设备故障,因此不会再向该另一个用户侧网络设备发送报文,那么,与该另一个用户侧网络设备连接的该网络侧网络设备就不会接收到该报文,因此不会引发未知单播在EVPN中泛洪。If at the beginning of a failure detection period, one user-side network device determines that another user-side network device is not faulty, then, during the failure detection period, the user-side user equipment may also send a message to the other user-side network device. message. Based on this, before the end of a fault detection period, if the network side network device connected to the other user side network device deletes the local route of the other user side network device, the network side network device will receive the When the packet of the other user-side network device cannot find the corresponding route, unknown unicast flooding in the EVPN occurs. When the next fault detection period comes, the user equipment on the user side can detect the failure of the other user side network equipment, so it will not send packets to the other user side network equipment. The network device on the network side connected to the network device will not receive the packet, so unknown unicast flooding in the EVPN will not occur.
应用于背景技术中的示例,在一个故障检测周期开始时,交换机2确定交换机1没有发生故障,则在该故障检测周期结束之前,即使交换机1发生了故障,交换机2也不能感知,因此,交换机2还可能向交换机1发送报文。如果在该故障检测周期内, PE设备2就删除了交换机1的本地路由,则该报文达到PE设备2之后,PE设备2会因不能在存储的路由表中找到交换机1的本地路由,而引发未知单播在EVPN中泛洪。The example applied to the background art, at the beginning of a fault detection period, the switch 2 determines that the switch 1 is not faulty, then before the fault detection period ends, even if the switch 1 is faulty, the switch 2 cannot sense it. Therefore, the switch 2 may also send a message to switch 1. If PE device 2 deletes the local route of switch 1 during the fault detection period, after the packet reaches PE device 2, PE device 2 cannot find the local route of switch 1 in the stored routing table, and Causes unknown unicast to flood in EVPN.
基于此,在设置与MAC路由关联的指示信息之后,可以进行计时,只有在到达或超过与第二网络设备连接的用户侧网络设备的故障检测周期之后,第二网络设备才删除该MAC路由,以保证不会导致提前删除MAC路由而引发的未知单播流量泛洪。Based on this, after setting the indication information associated with the MAC route, timing can be performed, and the second network device deletes the MAC route only after reaching or exceeding the failure detection period of the user-side network device connected to the second network device. In order to ensure that the unknown unicast traffic flooding caused by the premature deletion of the MAC route will not be caused.
实现方式3:预设时间大于或等于,第二网络设备连接的用户侧网络设备的MAC老化时间和第二网络设备连接的用户侧网络设备的故障检测周期中的最小值,该故障检测周期用于检测故障处理系统中的其他用户侧网络设备是否故障的周期。Implementation mode 3: The preset time is greater than or equal to the minimum value between the MAC aging time of the user-side network device connected to the second network device and the failure detection period of the user-side network device connected to the second network device. The period used to detect whether other user-side network devices in the fault handling system are faulty.
实现方式3参考了第二网络设备连接的用户侧网络设备的MAC老化时间和第二网络设备连接的用户侧网络设备的故障检测周期,其理由可以参考上述实现方式1、2中的描述,此处不再赘述。Implementation mode 3 refers to the MAC aging time of the user-side network device connected to the second network device and the failure detection period of the user-side network device connected to the second network device. It is not repeated here.
本申请实施例提供的故障处理方法,第二网络设备确定到MAC地址的路由不可达,MAC地址可以为与第一网络设备连接的用户侧网络设备或用户主机的MAC地址;响应于该确定,第二网络设备设置与MAC地址的路由相对应的指示信息,该指示信息用于指示第二网络设备在接收到发往MAC地址的报文时不转发报文。这样,与背景技术中的技术方案相比,由于第二网络设备不转发发往该MAC地址的报文,因此不会触发未知单播在EVPN中泛洪,从而降低了通信资源的浪费。In the fault handling method provided by the embodiment of the present application, the second network device determines that the route to the MAC address is unreachable, and the MAC address may be the MAC address of the user-side network device or user host connected to the first network device; in response to the determination, The second network device sets indication information corresponding to the route of the MAC address, where the indication information is used to instruct the second network device not to forward the message when receiving the message addressed to the MAC address. In this way, compared with the technical solution in the background art, since the second network device does not forward the message addressed to the MAC address, the unknown unicast will not be triggered to flood in the EVPN, thereby reducing the waste of communication resources.
上述主要从方法的角度对本申请实施例提供的方案进行了介绍。为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。The solutions provided by the embodiments of the present application have been introduced above mainly from the perspective of methods. In order to realize the above-mentioned functions, it includes corresponding hardware structures and/or software modules for executing each function. Those skilled in the art should easily realize that the present application can be implemented in hardware or a combination of hardware and computer software with the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein. Whether a function is performed by hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementations should not be considered beyond the scope of this application.
本申请实施例可以根据上述方法示例对故障处理装置(如第二网络设备)进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。需要说明的是,本申请实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。In this embodiment of the present application, the fault processing apparatus (such as the second network device) may be divided into functional modules according to the foregoing method examples. For example, each functional module may be divided corresponding to each function, or two or more functions may be integrated in in a processing module. The above-mentioned integrated modules can be implemented in the form of hardware, and can also be implemented in the form of software function modules. It should be noted that, the division of modules in the embodiments of the present application is schematic, and is only a logical function division, and there may be other division manners in actual implementation.
如图6所示,图6示出了本申请实施例提供的第二网络设备60的结构示意图。该第二网络设备60用于执行上述故障处理方法,例如,执行图5所示的故障处理方法。示例的,第二网络设备60可以包括确定单元601和设置单元602。As shown in FIG. 6 , FIG. 6 shows a schematic structural diagram of a second network device 60 provided by an embodiment of the present application. The second network device 60 is configured to execute the above-mentioned fault handling method, for example, execute the fault handling method shown in FIG. 5 . For example, the second network device 60 may include a determining unit 601 and a setting unit 602 .
确定单元601,用于确定到MAC地址的路由不可达,该MAC地址为与第一网络设备连接的用户侧网络设备或用户主机的MAC地址。设置单元602,用于响应于该确定,设置与该MAC地址的路由相对应的指示信息。该指示信息用于指示第二网络设备在接收到发往该MAC地址的报文时不转发该报文。例如,结合图5,确定单元601可以用于执行S501,设置单元602可以用于执行S502。The determining unit 601 is configured to determine that the route to the MAC address is unreachable, where the MAC address is the MAC address of the user-side network device or the user host connected to the first network device. A setting unit 602 is configured to, in response to the determination, set indication information corresponding to the route of the MAC address. The indication information is used to instruct the second network device not to forward the packet when it receives the packet addressed to the MAC address. For example, in conjunction with FIG. 5 , the determining unit 601 may be used to perform S501, and the setting unit 602 may be used to perform S502.
可选的,第二网络设备60还包括:删除单元603,用于在所述设置单元602设置与该MAC地址的路由相对应的指示信息之后,删除该MAC地址的路由。例如,结合 图5,删除单元603可以用于执行S503。Optionally, the second network device 60 further includes: a deletion unit 603, configured to delete the route of the MAC address after the setting unit 602 sets the indication information corresponding to the route of the MAC address. For example, in conjunction with FIG. 5, the deletion unit 603 may be used to perform S503.
可选的,删除单元603具体用于:确定到该MAC地址的路由不可达满足预设时间,或者根据设置该指示信息满足预设时间的情况下,删除该MAC地址的路由。Optionally, the deleting unit 603 is specifically configured to: determine that the route to the MAC address is unreachable for a preset time, or delete the route of the MAC address according to the condition that the setting instruction information meets the preset time.
可选的,第二网络设备60还包括:接收单元604,用于在第三网络设备故障,或者第一网络设备和第三网络设备之间的链路故障时,从第一网络设备接收第一消息。该情况下,确定单元601具体用于:根据第一消息确定该MAC地址的路由不可达。其中,第三网络设备为与第一网络设备连接的用户侧网络设备。Optionally, the second network device 60 further includes: a receiving unit 604, configured to receive the first network device from the first network device when the third network device fails, or when the link between the first network device and the third network device fails. a message. In this case, the determining unit 601 is specifically configured to: determine that the route of the MAC address is unreachable according to the first message. The third network device is a user-side network device connected to the first network device.
可选的,除第一网络设备外,其他一个或多个网络设备也与具有该MAC地址的用户侧网络设备或用户主机连接。该情况下,接收单元604具体用于:从第一网络设备接收第一消息,并从该其他一个或多个网络设备接收一个或多个第二消息。确定单元601具体用于:根据该第一消息和所述一个或多个第二消息,确定该MAC地址的路由不可达。Optionally, in addition to the first network device, one or more other network devices are also connected to the user-side network device or user host having the MAC address. In this case, the receiving unit 604 is specifically configured to: receive the first message from the first network device, and receive one or more second messages from the other one or more network devices. The determining unit 601 is specifically configured to: determine that the route of the MAC address is unreachable according to the first message and the one or more second messages.
可选的,确定单元601具体用于:根据确定第一网络设备的状态为故障,确定该MAC地址的路由不可达。Optionally, the determining unit 601 is specifically configured to: determine that the route of the MAC address is unreachable according to determining that the state of the first network device is faulty.
可选的,除第一网络设备外,其他一个或多个网络设备也与具有该MAC地址的用户侧网络设备或用户主机连接。该情况下,确定单元601具体用于:根据确定第一网络设备以及该其他一个或多个网络设备的状态均为故障,确定该MAC地址的路由不可达。Optionally, in addition to the first network device, one or more other network devices are also connected to the user-side network device or user host having the MAC address. In this case, the determining unit 601 is specifically configured to: determine that the route of the MAC address is unreachable according to determining that the states of the first network device and the one or more other network devices are both faulty.
可选的,确定单元601还用于:根据发往第一网络设备的检测报文,确定第一网络设备的状态为故障。Optionally, the determining unit 601 is further configured to: determine that the state of the first network device is faulty according to the detection packet sent to the first network device.
可选的,第三网络设备包括交换机。Optionally, the third network device includes a switch.
可选的,第一消息为BGP Update报文。Optionally, the first message is a BGP Update message.
可选的,该指示信息包括该MAC地址的路由的下一跳为NULL0。Optionally, the indication information includes that the next hop of the route of the MAC address is NULL0.
可选的,第一网络设备和第二网络设备是EVPN邻居。Optionally, the first network device and the second network device are EVPN neighbors.
可选的,第一网络设备和所述第二网络设备是PE设备。Optionally, the first network device and the second network device are PE devices.
关于上述可选方式的具体描述可以参见前述的方法实施例,此处不再赘述。此外,上述提供的任一种第二网络设备60的解释以及有益效果的描述均可参考上述对应的方法实施例,不再赘述。For the specific description of the foregoing optional manners, reference may be made to the foregoing method embodiments, which will not be repeated here. In addition, the explanation of any of the second network devices 60 provided above and the description of the beneficial effects may refer to the corresponding method embodiments above, which will not be repeated.
作为示例,结合图4,第二网络设备60中的确定单元601、设置单元602和删除单元603中的部分或全部实现的功能可以通过图4中的处理器401执行图4中的存储器402中的程序代码实现。接收单元604可以通过图4中的通信接口403中的接收单元实现。As an example, with reference to FIG. 4 , some or all of the functions implemented in the determining unit 601 , the setting unit 602 and the deleting unit 603 in the second network device 60 may be executed by the processor 401 in FIG. 4 in the memory 402 in FIG. 4 . program code implementation. The receiving unit 604 may be implemented by the receiving unit in the communication interface 403 in FIG. 4 .
本申请实施例还提供了一种故障处理系统,该故障处理系统包括第一网络设备和第二网络设备,该第二网络设备可以是上文提供的任意一种第二网络设备60,该第一网络设备则可以是图1示出的任意一个非第二网络设备的PE设备,或者图2或图3中示出的任意一个非第二网络设备的网络侧网络设备。该系统中还可以包括第三网络设备,该第三网络设备例如可以是图1示出的任意一个交换机或CE设备,或者图2或图3中示出的任意一个用户侧网络设备。An embodiment of the present application further provides a fault processing system, where the fault processing system includes a first network device and a second network device, the second network device may be any of the second network devices 60 provided above, and the first network device 60 A network device may be any PE device shown in FIG. 1 that is not the second network device, or any network-side network device shown in FIG. 2 or FIG. 3 that is not the second network device. The system may further include a third network device, for example, the third network device may be any switch or CE device shown in FIG. 1 , or any user-side network device shown in FIG. 2 or FIG. 3 .
本申请实施例还提供了一种计算机可读存储介质,该计算机可读存储介质上存储 有计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行上文提供的任一种第二网络设备所执行的方法。Embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program runs on a computer, the computer is made to execute any one of the above-mentioned methods. A method performed by a second network device.
关于上述提供的任一种故障处理系统和计算机可读存储介质中相关内容的解释及有益效果的描述,均可以参考上述对应的实施例,此处不再赘述。For the explanation and description of the beneficial effects of any fault handling system and computer-readable storage medium provided above, reference may be made to the above-mentioned corresponding embodiments, which will not be repeated here.
本申请实施例还提供了一种芯片。该芯片中集成了用于实现上述第二网络设备60的功能的控制电路和一个或者多个端口。可选的,该芯片支持的功能可以参考上文,此处不再赘述。本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可通过程序来指令相关的硬件完成。所述的程序可以存储于一种计算机可读存储介质中。上述提到的存储介质可以是只读存储器,随机接入存储器等。上述处理单元或处理器可以是中央处理器,通用处理器、特定集成电路(application specific integrated circuit,ASIC)、微处理器(digital signal processor,DSP),现场可编程门阵列(field programmable gate array,FPGA)或者其他可编程逻辑器件、晶体管逻辑器件、硬件部件或者其任意组合。The embodiment of the present application also provides a chip. The chip integrates a control circuit and one or more ports for implementing the functions of the second network device 60 described above. Optionally, for the functions supported by the chip, reference may be made to the above, which will not be repeated here. Those of ordinary skill in the art can understand that all or part of the steps for implementing the above embodiments can be completed by instructing relevant hardware through a program. The described program can be stored in a computer-readable storage medium. The above-mentioned storage medium may be a read-only memory, a random access memory, or the like. The above-mentioned processing unit or processor can be a central processing unit, a general-purpose processor, a specific integrated circuit (application specific integrated circuit, ASIC), a microprocessor (digital signal processor, DSP), a field programmable gate array (field programmable gate array, FPGA) or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof.
本申请实施例还提供了一种包含指令的计算机程序产品,当该指令在计算机上运行时,使得计算机执行上述实施例中的任意一种方法。该计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行计算机程序指令时,全部或部分地产生按照本申请实施例的流程或功能。计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,计算机指令可以从一个网站站点、计算机、服务器或者数据中心通过有线(例如同轴电缆、光纤、数字用户线(digital subscriber line,DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可以用介质集成的服务器、数据中心等数据存储设备。可用介质可以是磁性介质(例如,软盘、硬盘、磁带),光介质(例如,DVD)、或者半导体介质(例如SSD)等。The embodiments of the present application also provide a computer program product containing instructions, when the instructions are run on a computer, the instructions cause the computer to execute any one of the methods in the foregoing embodiments. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the procedures or functions according to the embodiments of the present application are generated in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable device. Computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, computer, server, or data center over a wire (e.g. coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (eg infrared, wireless, microwave, etc.) means to transmit to another website site, computer, server or data center. Computer-readable storage media can be any available media that can be accessed by a computer or data storage devices including one or more servers, data centers, etc., that can be integrated with the media. Useful media may be magnetic media (eg, floppy disks, hard disks, magnetic tapes), optical media (eg, DVDs), or semiconductor media (eg, SSDs), and the like.
应注意,本申请实施例提供的上述用于存储计算机指令或者计算机程序的器件,例如但不限于,上述存储器、计算机可读存储介质和通信芯片等,均具有非易失性(non-transitory)。It should be noted that the above-mentioned devices for storing computer instructions or computer programs provided in the embodiments of the present application, such as but not limited to, the above-mentioned memory, computer-readable storage medium, and communication chip, etc., are all non-transitory (non-transitory) .
在实施所要求保护的本申请过程中,本领域技术人员通过查看附图、公开内容、以及所附权利要求书,可理解并实现公开实施例的其他变化。在权利要求中,“包括”(comprising)一词不排除其他组成部分或步骤,“一”或“一个”不排除多个的情况。单个处理器或其他单元可以实现权利要求中列举的若干项功能。相互不同的从属权利要求中记载了某些措施,但这并不表示这些措施不能组合起来产生良好的效果。尽管结合具体特征及其实施例对本申请进行了描述,在不脱离本申请的精神和范围的情况下,可对其进行各种修改和组合。相应地,本说明书和附图仅仅是所附权利要求所界定的本申请的示例性说明,且视为已覆盖本申请范围内的任意和所有修改、变化、组合或等同物。Other variations to the disclosed embodiments can be understood and effected by those skilled in the art in practicing the claimed application, from review of the drawings, the disclosure, and the appended claims. In the claims, the word "comprising" does not exclude other components or steps, and "a" or "an" does not exclude a plurality. A single processor or other unit may fulfill the functions of several items recited in the claims. The mere fact that certain measures are recited in mutually different dependent claims does not indicate that these measures cannot be combined to advantage. Although the application has been described in conjunction with specific features and embodiments thereof, various modifications and combinations may be made without departing from the spirit and scope of the application. Accordingly, this specification and drawings are merely exemplary illustrations of the application as defined by the appended claims, and are deemed to cover any and all modifications, variations, combinations or equivalents within the scope of this application.

Claims (24)

  1. 一种故障处理方法,其特征在于,第一网络设备和第二网络设备通信连接,所述方法包括:A fault handling method, characterized in that a first network device and a second network device are connected in communication, the method comprising:
    所述第二网络设备确定到媒体访问控制MAC地址的路由不可达,所述MAC地址为与所述第一网络设备连接的用户侧网络设备或用户主机的MAC地址;The second network device determines that the route to the media access control MAC address is unreachable, and the MAC address is the MAC address of the user-side network device or user host connected to the first network device;
    响应于所述确定,所述第二网络设备设置与所述MAC地址的路由相对应的指示信息,所述指示信息用于指示所述第二网络设备在接收到发往所述MAC地址的报文时不转发所述报文。In response to the determination, the second network device sets indication information corresponding to the route of the MAC address, where the indication information is used to indicate that the second network device receives a message sent to the MAC address The message is not forwarded when the message is sent.
  2. 根据权利要求1所述的方法,其特征在于,在所述第二网络设备设置与所述MAC地址的路由相对应的指示信息之后,所述方法还包括:The method according to claim 1, wherein after the second network device sets the indication information corresponding to the route of the MAC address, the method further comprises:
    所述第二网络设备删除所述MAC地址的路由。The second network device deletes the route of the MAC address.
  3. 根据权利要求2所述的方法,其特征在于,所述第二网络设备删除所述MAC地址的路由,包括:The method according to claim 2, wherein deleting the route of the MAC address by the second network device comprises:
    所述第二网络设备确定到所述MAC地址的路由不可达满足预设时间,或者确定设置所述指示信息满足预设时间的情况下,删除所述MAC地址的路由。The second network device determines that the route to the MAC address is unreachable for a preset time, or determines that the setting of the indication information satisfies the preset time, and deletes the route to the MAC address.
  4. 根据权利要求1-3任一项所述的方法,其特征在于,所述第二网络设备确定到MAC地址的路由不可达,包括:The method according to any one of claims 1-3, wherein determining, by the second network device, that the route to the MAC address is unreachable, comprising:
    在第三网络设备故障,或者所述第一网络设备和所述第三网络设备之间的链路故障时,所述第二网络设备从所述第一网络设备接收第一消息,并根据所述第一消息确定所述MAC地址的路由不可达,其中,所述第三网络设备为与所述第一网络设备连接的用户侧网络设备;或者,When the third network device fails, or the link between the first network device and the third network device fails, the second network device receives the first message from the first network device, and sends the message according to the The first message determines that the route of the MAC address is unreachable, wherein the third network device is a user-side network device connected to the first network device; or,
    所述第二网络设备根据确定所述第一网络设备的状态为故障,确定所述MAC地址的路由不可达。The second network device determines that the route of the MAC address is unreachable according to determining that the state of the first network device is faulty.
  5. 根据权利要求4所述的方法,其特征在于,除所述第一网络设备外,其他一个或多个网络设备也与具有所述MAC地址的用户侧网络设备或用户主机连接;The method according to claim 4, wherein, in addition to the first network device, one or more other network devices are also connected to the user-side network device or the user host having the MAC address;
    所述第二网络设备从所述第一网络设备接收第一消息,并根据所述第一消息确定所述MAC地址的路由不可达,包括:The second network device receives a first message from the first network device, and determines, according to the first message, that the route of the MAC address is unreachable, including:
    所述第二网络设备从所述第一网络设备接收第一消息,并从所述其他一个或多个网络设备接收一个或多个第二消息;the second network device receives a first message from the first network device, and receives one or more second messages from the other one or more network devices;
    所述第二网络设备根据所述第一消息和所述一个或多个第二消息,确定所述MAC地址的路由不可达;或者,The second network device determines, according to the first message and the one or more second messages, that the route of the MAC address is unreachable; or,
    所述第二网络设备根据确定所述第一网络设备的状态为故障,确定所述MAC地址的路由不可达,包括:The second network device determines that the route of the MAC address is unreachable according to determining that the state of the first network device is faulty, including:
    所述第二网络设备根据确定所述第一网络设备以及所述其他一个或多个网络设备的状态均为故障,确定所述MAC地址的路由不可达。The second network device determines that the route of the MAC address is unreachable according to determining that the states of the first network device and the other one or more network devices are both faulty.
  6. 根据权利要求4或5所述的方法,其特征在于,所述方法还包括:The method according to claim 4 or 5, wherein the method further comprises:
    所述第二网络设备根据发往所述第一网络设备的检测报文,确定所述第一网络设备的状态为故障。The second network device determines that the state of the first network device is faulty according to the detection message sent to the first network device.
  7. 根据权利要求4至6任一项所述的方法,其特征在于,所述第三网络设备包括 交换机。The method according to any one of claims 4 to 6, wherein the third network device comprises a switch.
  8. 根据权利要求4至7任一项所述的方法,其特征在于,所述第一消息为边界网关协议更新BGP Update报文。The method according to any one of claims 4 to 7, wherein the first message is a Border Gateway Protocol update BGP Update message.
  9. 根据权利要求1至8任一项所述的方法,其特征在于,所述指示信息包括所述MAC地址的路由的下一跳为NULL0。The method according to any one of claims 1 to 8, wherein the indication information comprises that the next hop of the route of the MAC address is NULL0.
  10. 根据权利要求1至9任一项所述的方法,其特征在于,所述第一网络设备和所述第二网络设备是以太网私有虚拟网络EVPN邻居。The method according to any one of claims 1 to 9, wherein the first network device and the second network device are Ethernet private virtual network EVPN neighbors.
  11. 根据权利要求1至10任一项所述的方法,其特征在于,所述第一网络设备和所述第二网络设备是运营商边缘PE设备。The method according to any one of claims 1 to 10, wherein the first network device and the second network device are operator edge PE devices.
  12. 一种第二网络设备,其特征在于,第一网络设备和所述第二网络设备通信连接,所述第二网络设备包括:A second network device, characterized in that the first network device is communicatively connected to the second network device, and the second network device includes:
    确定单元,用于确定到媒体访问控制MAC地址的路由不可达,所述MAC地址为与所述第一网络设备连接的用户侧网络设备或用户主机的MAC地址;a determining unit, configured to determine that the route to the MAC address of the media access control is unreachable, where the MAC address is the MAC address of the user-side network device or user host connected to the first network device;
    设置单元,用于响应于所述确定,设置与所述MAC地址的路由相对应的指示信息,所述指示信息用于指示所述第二网络设备在接收到发往所述MAC地址的报文时不转发所述报文。a setting unit, configured to, in response to the determination, set indication information corresponding to the route of the MAC address, where the indication information is used to indicate that the second network device is receiving a packet destined for the MAC address the message is not forwarded.
  13. 根据权利要求12所述的第二网络设备,其特征在于,所述第二网络设备还包括:The second network device according to claim 12, wherein the second network device further comprises:
    删除单元,用于在所述设置单元设置与所述MAC地址的路由相对应的指示信息之后,删除所述MAC地址的路由。A deletion unit, configured to delete the route of the MAC address after the setting unit sets the indication information corresponding to the route of the MAC address.
  14. 根据权利要求13所述的第二网络设备,其特征在于,The second network device according to claim 13, wherein,
    所述删除单元具体用于:确定到所述MAC地址的路由不可达满足预设时间,或者确定设置所述指示信息满足预设时间的情况下,删除所述MAC地址的路由。The deletion unit is specifically configured to: determine that the route to the MAC address is unreachable for a preset time, or delete the route of the MAC address when it is determined that the indication information is set to meet the preset time.
  15. 根据权利要求12-14任一项所述的第二网络设备,其特征在于,The second network device according to any one of claims 12-14, wherein,
    所述第二网络设备还包括:接收单元,用于在第三网络设备故障,或者所述第一网络设备和所述第三网络设备之间的链路故障时,从所述第一网络设备接收第一消息;所述确定单元具体用于:根据所述第一消息确定所述MAC地址的路由不可达,其中,所述第三网络设备为与所述第一网络设备连接的用户侧网络设备;或者,The second network device further includes: a receiving unit, configured to receive a message from the first network device when the third network device fails, or when the link between the first network device and the third network device fails. receiving a first message; the determining unit is specifically configured to: determine, according to the first message, that the route of the MAC address is unreachable, wherein the third network device is a user-side network connected to the first network device equipment; or,
    所述确定单元具体用于:根据确定所述第一网络设备的状态为故障,确定所述MAC地址的路由不可达。The determining unit is specifically configured to: determine that the route of the MAC address is unreachable according to determining that the state of the first network device is faulty.
  16. 根据权利要求15所述的第二网络设备,其特征在于,除所述第一网络设备外,其他一个或多个网络设备也与具有所述MAC地址的用户侧网络设备或用户主机连接;The second network device according to claim 15, wherein, in addition to the first network device, one or more other network devices are also connected to the user-side network device or the user host having the MAC address;
    所述接收单元具体用于:从所述第一网络设备接收第一消息,并从所述其他一个或多个网络设备接收一个或多个第二消息;所述确定单元具体用于:根据所述第一消息和所述一个或多个第二消息,确定所述MAC地址的路由不可达;或者,The receiving unit is specifically configured to: receive a first message from the first network device, and receive one or more second messages from the other one or more network devices; the determining unit is specifically configured to: according to the the first message and the one or more second messages, it is determined that the route of the MAC address is unreachable; or,
    所述确定单元具体用于:根据确定所述第一网络设备以及所述其他一个或多个网络设备的状态均为故障,确定所述MAC地址的路由不可达。The determining unit is specifically configured to: determine that the route of the MAC address is unreachable according to determining that the states of the first network device and the other one or more network devices are both faulty.
  17. 根据权利要求15或16所述的第二网络设备,其特征在于,The second network device according to claim 15 or 16, wherein,
    所述确定单元还用于:根据发往所述第一网络设备的检测报文,确定所述第一网 络设备的状态为故障。The determining unit is further configured to: determine that the state of the first network device is faulty according to the detection message sent to the first network device.
  18. 根据权利要求15至17任一项所述的第二网络设备,其特征在于,所述第三网络设备包括交换机。The second network device according to any one of claims 15 to 17, wherein the third network device comprises a switch.
  19. 根据权利要求15至18任一项所述的第二网络设备,其特征在于,所述第一消息为边界网关协议更新BGP Update报文。The second network device according to any one of claims 15 to 18, wherein the first message is a Border Gateway Protocol Update BGP Update message.
  20. 根据权利要求12至19任一项所述的第二网络设备,其特征在于,所述指示信息包括所述MAC地址的路由的下一跳为NULL0。The second network device according to any one of claims 12 to 19, wherein the indication information includes that the next hop of the route of the MAC address is NULL0.
  21. 根据权利要求12至20任一项所述的第二网络设备,其特征在于,所述第一网络设备和所述第二网络设备是以太网私有虚拟网络EVPN邻居。The second network device according to any one of claims 12 to 20, wherein the first network device and the second network device are Ethernet private virtual network EVPN neighbors.
  22. 根据权利要求12至21任一项所述的第二网络设备,其特征在于,所述第一网络设备和所述第二网络设备是运营商边缘PE设备。The second network device according to any one of claims 12 to 21, wherein the first network device and the second network device are operator edge PE devices.
  23. 一种故障处理装置,其特征在于,包括:存储器和处理器,所述存储器用于存储计算机程序,所述处理器用于调用所述计算机程序,以执行权利要求1-11任一项所述的方法。A fault handling device, comprising: a memory and a processor, wherein the memory is used to store a computer program, and the processor is used to call the computer program to execute any one of claims 1-11. method.
  24. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行权利要求1-11任一项所述的方法。A computer-readable storage medium, characterized in that, a computer program is stored in the computer-readable storage medium, and when the computer program is executed on a computer, the computer is made to execute any one of claims 1-11. method described.
PCT/CN2021/123642 2020-10-26 2021-10-13 Fault handling method and device WO2022089212A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011159217.9 2020-10-26
CN202011159217.9A CN114513453A (en) 2020-10-26 2020-10-26 Fault processing method and device

Publications (1)

Publication Number Publication Date
WO2022089212A1 true WO2022089212A1 (en) 2022-05-05

Family

ID=81383623

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/123642 WO2022089212A1 (en) 2020-10-26 2021-10-13 Fault handling method and device

Country Status (2)

Country Link
CN (1) CN114513453A (en)
WO (1) WO2022089212A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115334046A (en) * 2022-07-04 2022-11-11 超聚变数字技术有限公司 MAC address deleting method and device

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115941587B (en) * 2022-11-11 2024-07-19 迈普通信技术股份有限公司 Multi-homing routing method, device, edge equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102255804A (en) * 2011-07-06 2011-11-23 北京星网锐捷网络技术有限公司 Message processing method, device and network equipment
CN106230729A (en) * 2016-08-29 2016-12-14 杭州华三通信技术有限公司 The method and apparatus that a kind of network appliance address is noticed
CN107493236A (en) * 2016-06-13 2017-12-19 中兴通讯股份有限公司 The management method and device of MAC forward tables, interchanger
CN109861909A (en) * 2019-03-29 2019-06-07 中国联合网络通信集团有限公司 A kind of failure convergence method and device
WO2020136662A1 (en) * 2018-12-27 2020-07-02 Telefonaktiebolaget Lm Ericsson (Publ) Nodes and methods for handling flooding of bum traffic

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102255804A (en) * 2011-07-06 2011-11-23 北京星网锐捷网络技术有限公司 Message processing method, device and network equipment
CN107493236A (en) * 2016-06-13 2017-12-19 中兴通讯股份有限公司 The management method and device of MAC forward tables, interchanger
CN106230729A (en) * 2016-08-29 2016-12-14 杭州华三通信技术有限公司 The method and apparatus that a kind of network appliance address is noticed
WO2020136662A1 (en) * 2018-12-27 2020-07-02 Telefonaktiebolaget Lm Ericsson (Publ) Nodes and methods for handling flooding of bum traffic
CN109861909A (en) * 2019-03-29 2019-06-07 中国联合网络通信集团有限公司 A kind of failure convergence method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115334046A (en) * 2022-07-04 2022-11-11 超聚变数字技术有限公司 MAC address deleting method and device
CN115334046B (en) * 2022-07-04 2023-09-01 超聚变数字技术有限公司 MAC address deleting method and device

Also Published As

Publication number Publication date
CN114513453A (en) 2022-05-17

Similar Documents

Publication Publication Date Title
US20200296025A1 (en) Route Processing Method and Apparatus, and Data Transmission Method and Apparatus
US10616091B2 (en) Exploratory linktrace operations in a computer network
WO2018166233A1 (en) Routing processing method, device and system
US9276898B2 (en) Method and device for link fault detecting and recovering based on ARP interaction
US8289839B2 (en) Scaling BFD sessions for neighbors using physical / sub-interface relationships
US8064338B2 (en) HVPLS hub connectivity failure recovery with dynamic spoke pseudowires
WO2022089212A1 (en) Fault handling method and device
JP2015508631A (en) Redundant network connection
WO2012028029A1 (en) Switching method and system
JP7053901B2 (en) Loop avoidance communication method, loop avoidance communication device and loop avoidance communication system
WO2020168854A1 (en) Evpn multicast method, apparatus and system
WO2020119644A1 (en) Forwarding entry generation method, apparatus, and device
US20210075714A1 (en) Forwarding entry monitoring method and apparatus
US11522792B2 (en) Method for discovering forwarding path and related device thereof
US8670299B1 (en) Enhanced service status detection and fault isolation within layer two networks
US20240214243A1 (en) Designated forwarder df election method and device
WO2013166911A1 (en) Method for processing conflict of identifiers of device groups in network, and route bridge
WO2021082803A1 (en) Routing information transmission method and apparatus, and data center interconnection network
WO2017219868A1 (en) Arp entry processing method and apparatus
WO2020147683A1 (en) Method for creating connectivity detection session, and network device and system
CN109873763B (en) Communication method and device
US9647924B2 (en) Propagating LDP MAC flush as TCN
EP4072072A1 (en) Multi-chassis link aggregation method and device
WO2021135472A1 (en) Method and apparatus for processing routing information
CN116366398A (en) Data transmission method, device, electronic equipment and storage medium

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21884941

Country of ref document: EP

Kind code of ref document: A1