Information processing method, node, and computer-readable storage medium

By advertising routing information for operational subinterfaces in PBB EVPN networks when subinterface failures occur, the method addresses packet loss issues, ensuring efficient data routing and minimizing bandwidth wastage.

JP7678875B2Active Publication Date: 2025-05-16ZTE CORP
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
JP2023528519
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2020-12-15
Filing Date
2021-09-29
Publication Date
2025-05-16
Estimated Expiration
2041-09-29

AI Technical Summary

Technical Problem

In Provider Backbone Bridge Ethernet (PBB EVPN) Virtual Private Networks, sub-interface failures can lead to packet loss due to the binding of Backbone Media Access Control Addresses (B-MAC) with the main interface, causing data messages to be incorrectly routed to failed sub-interfaces.

Method used

The method involves a first device in a dual homing relationship with a second device advertising first routing information corresponding to its subinterface within the network if the second subinterface is in a failed state but the main interface is operational, thereby redirecting data messages to the operational subinterface.

Benefits of technology

This approach effectively bypasses packet loss by ensuring data messages are routed to operational subinterfaces even if one subinterface fails, maintaining network efficiency and reducing bandwidth wastage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007678875000001
    Figure 0007678875000001
  • Figure 0007678875000002
    Figure 0007678875000002
  • Figure 0007678875000003
    Figure 0007678875000003
Patent Text Reader

Abstract

The present invention relates to an information processing method, a node, and a computer-readable storage medium applicable to a first device provided with a first sub-interface and in a dual-homing relationship with a second device provided with a second sub-interface corresponding to the first sub-interface, the information processing method including the step (S100) of advertising first routing information corresponding to the first sub-interface in a network when determining that the second sub-interface is in a fault state and that a main interface to which the second sub-interface is homed is in a normal state, and a third device transmitting a data message via the first sub-interface in accordance with the first routing information.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] This application is filed based on a Chinese patent application with application number 202011479889.8 and filing date December 15, 2020, and claims priority to the Chinese patent application, the entire contents of which are hereby incorporated by reference into this application.

[0002] TECHNICAL FIELD The embodiments of the present application relate to, but are not limited to, the field of communication technologies, and in particular to an information processing method, a node, and a computer-readable storage medium. [Background technology]

[0003] In a Provider Backbone Bridge Ethernet Virtual Private Network (PBB EVPN), all Ethernet Segment Identifiers (ESIs) are configured based on the main interface of the Provider Edge Router (PE), and the Backbone Media Access Control Address (B-MAC) representing this ESI in the data plane is also bound by this main interface. However, in reality, as an EVPN Attachment Circuit (AC), it is often a sub-interface of this main interface rather than the main interface itself.

[0004] In the data plane, the B-MAC entry representing the ESI is bound by the main interface, so other sub-interfaces of the main interface also depend on this B-MAC entry. In addition, sub-interface failure events often occur independently between different sub-interfaces for the same main interface. For example, even if one of the sub-interfaces is shut down by an administrator, the other sub-interfaces can forward messages normally. Therefore, if an individual sub-interface fails, the corresponding B-MAC entry cannot be revoked due to the failure of that sub-interface. Therefore, even if the destination user MAC (C-MAC: Customer MAC) of a data message is associated with that B-MAC entry, the data message will remain load-shared to the PE node where the sub-interface failure occurred, resulting in packet loss problems. Summary of the Invention [Problem to be solved by the invention]

[0005] The following provides a brief summary of the subject matter described in the present application that is not intended to limit the scope of the claims.

[0006] The embodiments of the present application provide an information processing method, a node, and a computer-readable storage medium that can solve the problem of data message bypass or packet loss due to a failure of a sub-interface of a PE in the related art. [Means for solving the problem]

[0007] In a first aspect, an embodiment of the present application provides an information processing method applied to a first device, the first device being in a dual-homing relationship with a second device, the first device being provided with a first sub-interface, and the second device being provided with a second sub-interface corresponding to the first sub-interface, the method including: The method includes, when it is determined that the second sub-interface is in a fault state and the main interface to which the second sub-interface is homed is in a normal state, advertising first routing information corresponding to the first sub-interface to a network, and causing a third device to send a data message to the first sub-interface according to the first routing information.

[0008] In a second aspect, an embodiment of the present application provides a node including a memory, a processor, and a computer program stored in the memory and executable by the processor, the computer program being executed by the processor to realize the information processing method described in the first aspect.

[0009] In a third aspect, embodiments of the present application further provide a computer-readable storage medium having stored thereon computer-executable instructions for performing the above information processing method.

[0010] Other features and advantages of the present application will be set forth in the following specification, and in part will be obvious from the specification, or may be learned by the practice of the present application. The objectives and other advantages of the present application may be attained by the structure particularly pointed out in the specification, claims, and drawings.

[0011] The drawings are used to provide a further understanding of the technical solution of the present application, constitute a part of the specification, and are used to explain the technical solution of the present application together with the embodiments of the present application, and are not intended to limit the technical solution of the present application. [Brief description of the drawings]

[0012] [Figure 1] 1 is a schematic diagram of a network topology for performing an information processing method according to an embodiment of the present application; [Diagram 2] 1 is a flowchart of an information processing method according to an embodiment of the present application. [Diagram 3] 4 is a flowchart of an information processing method according to another embodiment of the present application. [Figure 4]4 is a flowchart of an information processing method according to another embodiment of the present application. [Diagram 5] 11 is a detailed flowchart of forwarding a data message to a sub-interface in an information processing method according to another embodiment of the present disclosure; [Figure 6] 11 is a detailed flowchart of forwarding a data message to a sub-interface in an information processing method according to another embodiment of the present disclosure; DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0013] In order to more clearly understand the objectives, technical solutions and advantages of the present application, the present application will be described in more detail below with reference to the drawings and embodiments, in which the specific embodiments described herein are only used to describe the present application and are not intended to limit the present application.

[0014] It should be noted that although the schematic diagram of the device has functional modules partitioned and the flow chart shows a logical order, in some cases the modules within the device may be partitioned differently, or the steps shown or described may be performed in a different order than in the flow chart. Terms such as "first," "second," and the like in the specification and claims and in the foregoing drawings are not used to describe a particular order or priority, but are used to distinguish between similar objects.

[0015] The present application provides an information processing method, a node, and a computer-readable storage medium, in which for a first device and a second device in which dual homing exists, the first device is provided with a first sub-interface, and the second device is provided with a second sub-interface corresponding to the first sub-interface. When the first device determines that the second sub-interface of the second device is in a fault state but the main interface to which the second sub-interface is homed is still in a normal state, it advertises first routing information corresponding to the first sub-interface in the network, and allows a third device to send a data message to the first sub-interface of the first device according to the first routing information, thereby solving the problem of packet loss of data messages caused by the failure of a sub-interface of a device in related technologies.

[0016] Hereinafter, the embodiments of the present application will be further described with reference to the drawings. As shown in Fig. 1, Fig. 1 is a schematic diagram of a network topology for performing an information processing method according to an embodiment of the present application. In the example of Fig. 1, the network topology includes a first user network edge device (CE: Customer Edge) 110, a first PE 120, a second PE 130, a third PE 140, a first core router 150, and a second core router 160. Among them, the first CE 110 is dual-homing to the first PE 120 and the second PE 130, the first PE 120 and the second PE 130 are both connected to the first core router 150, and the first core router 150, the second core router 160, and the third PE 140 are connected in sequence.

[0017] 1, the first PE 120, the second PE 130, and the third PE 140 each include one first functional component 210 and two second functional components 220, and among these, the first functional component 210 is connected to each of the second functional components 220. The first PE 120 further includes a first main interface 121, a first sub-interface 122 homing to the first main interface 121, and a third sub-interface 123 homing to the first main interface 121, and the two second functional components 220 of the first PE 120 associate and bind the first sub-interface 122 and the third sub-interface 123. The second PE 130 further includes a second main interface 131, a second sub-interface 132 homing to the second main interface 131, and a fourth sub-interface 133 homing to the second main interface 131, and the two second functional components 220 of the second PE 130 associate and bind the second sub-interface 132 and the fourth sub-interface 133. The first sub-interface 122 and the second sub-interface 132 are associated based on the dual homing between the first PE 120 and the second PE 130, and the third sub-interface 123 and the fourth sub-interface 133 are associated based on the dual homing between the first PE 120 and the second PE 130.

[0018] However, the first sub-interface 122 and the second sub-interface 132 can receive messages having the same Virtual Local Area Network (VLAN) encapsulation, and the third sub-interface 123 and the fourth sub-interface 133 can receive messages having the same VLAN encapsulation.

[0019] Each PE is assigned routing information corresponding to the main interface and each sub-interface, and this routing information may be an Internet Interconnection Protocol (IP) address, a Media Access Control Address (MAC), an Ethernet Segment Identifier (ESI), etc., but is not particularly limited to this in this embodiment. However, between multiple sub-interfaces associated by a dual homing relationship between devices, such as between the first sub-interface 122 of the first PE 120 and the second sub-interface 132 of the second PE 130, the same routing information is held.

[0020] The second functional component 220 is a traffic instance that forwards data messages according to C-MAC, where the second functional component 220 can forward data messages between PEs using an encapsulation format such as VXLAN, PBB, MPLS, SRv6, etc., in which case the second functional component 220 can be referred to as a VXLAN EVPN instance, a PBB EVPN instance, an MPLS EVPN instance, and an SRv6 EVPN instance, etc., respectively.

[0021] The first functional component 210 is used to bear a traffic instance (corresponding to the second functional component 220), and the first functional component 210 can advertise routing information corresponding to a main interface or routing information corresponding to a sub-interface within the network. In addition, when both the first PE 120 and the second PE 130 in which a dual homing relationship exists operate normally, both the first functional component 210 of the first PE 120 and the first functional component 210 of the second PE 130 advertise only routing information corresponding to the main interface within the network, and only when a sub-interface of the first PE 120 is in a failed state, the routing information corresponding to the sub-interface of the second PE 130 corresponding to the failed sub-interface of the first PE 120 is advertised within the network by the first functional component 210 of the second PE 130, and only when a sub-interface of the second PE 130 is in a failed state, the routing information corresponding to the sub-interface of the first PE 120 corresponding to the failed sub-interface of the second PE 130 is advertised within the network by the first functional component 210 of the first PE 120. However, if the first PE120 determines that the main interface of the second PE130 is in a fault state, the first functional component 210 of the first PE120 does not advertise the routing information of the sub-interface of the first PE120 within the network, and if the second PE130 determines that the main interface of the first PE120 is in a fault state, the first functional component 210 of the second PE130 does not advertise the routing information of the sub-interface of the second PE130 within the network.

[0022] The network topologies and application scenarios described in the embodiments of the present application are described to more clearly explain the technical solutions of the embodiments of the present application, and are not intended to limit the technical solutions provided by the embodiments of the present application. It is known to those skilled in the art that with the evolution of network topologies and the emergence of new application scenarios, the technical solutions according to the embodiments of the present application can be similarly applied to similar technical problems.

[0023] As will be appreciated by those skilled in the art, the topology illustrated in FIG. 1 is not intended to limit embodiments of the present application, which may include more or fewer components than those illustrated, combine certain components, or include different arrangements of components.

[0024] Based on the above network topology structure, various embodiments of the information processing method of the present application are proposed.

[0025] As shown in Fig. 2, Fig. 2 is a flowchart of an information processing method according to an embodiment of the present application, the information processing method is applied to a first device (e.g., the first PE 120 in the network topology shown in Fig. 1), the first device has a dual-homing relationship with a second device (e.g., the second PE 130 in the network topology shown in Fig. 1), they are in the same Ethernet segment (ES), the first device is provided with a first sub-interface, and the second device is provided with a second sub-interface corresponding to the first sub-interface. The information processing method includes, but is not limited to, step S100.

[0026] Step S100: If it is determined that the second sub-interface is in a fault state and the main interface to which the second sub-interface is homed is in a normal state, advertise first routing information corresponding to the first sub-interface to the network, and allow the third device to send a data message to the first sub-interface according to the first routing information.

[0027] In addition, the first routing information corresponding to the first sub-interface may be an IP address, a B-MAC address, or other customized identifier that can uniquely mark the first sub-interface in the data plane, but this embodiment is not particularly limited thereto.

[0028] When the first device determines that the second sub-interface of the second device is in a failed state and the main interface to which the second sub-interface is homed is in a normal state, it indicates that other sub-interfaces of the second device are still working normally, but the second sub-interface cannot forward data messages; however, because all sub-interfaces of the second device are associated with B-MAC entries bound by the same main interface, and the B-MAC entries are not revoked solely by the failure of the second sub-interface, when the third device continues to send data messages according to the routing information corresponding to the main interface, the data messages will be distributed to the second sub-interfaces of the second device, resulting in a packet loss problem. In order to solve the above problem without affecting the normal transmission of data messages through the first sub-interface of the first device, when the first device determines that the second sub-interface is in a fault state and the main interface to which the second sub-interface is homed is in a normal state, the first device advertises first routing information corresponding to the first sub-interface in the network, and when the third device receives the first routing information, the third device can accurately transmit data messages to the first sub-interface according to the first routing information, thereby ensuring the normal transmission of data messages through the first sub-interface of the first device. In addition, since the second device does not issue routing information corresponding to the second sub-interface, the problem of packet loss caused by data messages being transmitted to the second sub-interface of the second device is also avoided.

[0029] However, if the packet loss problem occurs due to the third device sending a data message to the already failed second sub-interface, the packet loss result can be optimized to a bypass result via another node using an egress link protection technique, but the long-term bypass process still wastes network bandwidth, in such a case, in this embodiment, the bypass process of the data message can be quickly canceled before the second sub-interface is restored, thereby saving network bandwidth resources. In this embodiment, the technical effect of solving the packet loss problem and the technical effect of canceling the bypass of the data message can be determined based on whether the same technical means are combined with other technical means to realize the bypass process.

[0030] However, the first device advertises the first routing information corresponding to the first sub-interface in the network only when it determines that the second sub-interface is in a fault state and the main interface to which the second sub-interface is homed is in a normal state; that is, when both the first device and the second device are in a normal operating state, the first device does not need to advertise the first routing information corresponding to the first sub-interface; and when the second sub-interface is in a fault state, the first device transmits the first routing information only to the first sub-interface corresponding to the second sub-interface, not to all sub-interfaces, and the second device does not advertise the routing information corresponding to the second sub-interface, thereby reducing the number of routing information issued for sub-interfaces in the network, and reducing the routing pressure in the network, especially when, under a normal state (i.e., before any sub-interface of the ES fails), routing information specific to any sub-interface of the ES (e.g., routing information having the same nature as the first routing information) has not been issued to any other ES (e.g., a third device).

[0031] In one embodiment, the first routing information includes a common routing portion corresponding to the routing information of a main interface to which the first sub-interface is homed, and a specific routing portion that distinguishes the sub-interfaces homed to the main interface.

[0032] In one embodiment, the first routing information may be composed of an upper common routing part and a lower specific routing part, the common routing part may be an IPv6 prefix or other customized identifier that can uniquely mark the main interface in the data plane, etc., and the bit length of the common routing part may be appropriately selected according to the actual application situation. Meanwhile, the specific routing part may be an Ether Virtual Private Network Global Discriminator (EGD: EVPN Global Discriminator) that is globally unique in the network, a local discriminator, or other customized identifier that can be used to distinguish sub-interfaces, etc., and the bit length of the specific routing part may be appropriately selected according to the actual application situation. The specific contents of both the common routing part and the specific routing part may be appropriately selected according to the actual application situation, but this embodiment is not particularly limited thereto. For example, when the first routing information is an IPv6 address, the upper 104 bits of the first routing information are the common routing part that is an IPv6 prefix, and the lower 24 bits of the first routing information are the specific routing part that is an EGD.

[0033] However, if there is only one sub-interface in the same EVPN instance corresponding to the same first routing information (eg, ESI), the specific routing portion may be an EGD that can uniquely identify the sub-interface.

[0034] In addition, when the first functional component 210 of the first device bears an SRv6 EVPN instance, the first routing information corresponding to the first sub-interface is composed of the above-mentioned common routing part and specific routing part, and at this time, the routing information corresponding to the main interface includes the common routing part and does not include the specific routing part. When the first functional component of the first device bears an IP-VRF instance, the first routing information corresponding to the first sub-interface and the routing information corresponding to the main interface are both IP routing of this IP-VRF instance, and at this time, the specific routing part of the first routing information corresponding to the first sub-interface only needs to include an identifier that can uniquely identify the first sub-interface, for example, it may be an interface discriminator that can uniquely identify this first sub-interface in the ES to which the first device is homed, and the specific value of this interface discriminator may be appropriately selected according to the actual application situation (for example, the VLAN identification information of this sub-interface may be selected, etc.), but this embodiment is not particularly limited to this. If the EGD adopts other field transmission such as a VNI field, so that the unique part of the first routing information corresponding to the first sub-interface does not need to include the EGD, the first routing information based on the interface discriminator can be used, and it is advantageous that the routing information corresponding to the main interface has more valid bits and is more suitable for application to devices that do not support IPv6.

[0035] In addition, in one embodiment, as shown in FIG. 3, the information processing method may further include, but is not limited to, step S200.

[0036] Step S200: Receive a routing cancellation message sent by a second device, and if the routing cancellation message is for only a second sub-interface, determine based on the routing cancellation message that the second sub-interface is in a faulty state and the main interface to which the second sub-interface is homed is in a normal state.

[0037] In addition, before performing step S100, if the first device receives a routing cancellation message sent by the second device, and the routing cancellation message is only for the second sub-interface, the first device can determine that the second sub-interface is in a fault state. At this time, if the routing corresponding to the main interface to which the second sub-interface is homed has not yet been canceled, that is, if the main interface to which the second sub-interface is homed is in a normal state, the first device may trigger an operation of advertising first routing information corresponding to the first sub-interface in the network.

[0038] However, when a sub-interface or a main interface fails in a PE in the network, a routing cancellation message is flooded in the network. The routing cancellation message includes two types: a routing cancellation message corresponding to the main interface routing (e.g., RT-1 per ES routing) and a routing cancellation message corresponding to the sub-interface routing (e.g., RT-1 per EVI routing). When a sub-interface of a PE fails, the PE floods the network with a routing cancellation message corresponding to the sub-interface, and when a main interface of a PE fails, the PE floods the network with a routing cancellation message corresponding to the main interface and a routing cancellation message corresponding to the sub-interface. When the first device receives a routing cancellation message corresponding to a sub-interface (i.e., when the routing cancellation message is only for the second sub-interface), it indicates that only the second sub-interface is in a failure state in the second device and all other sub-interfaces of the second device are in a normal operating state, so that the first device can determine that the second sub-interface is in a failure state and the main interface to which the second sub-interface is homed is in a normal state. When the first device receives a routing cancellation message corresponding to the main interface (i.e., when the routing cancellation message is for the main interface), it indicates that the main interface of the second device and all sub-interfaces homing to the main interface are in a failed state, and therefore the first device can determine that the main interface of the second device itself has failed.Furthermore, if the main interface of the second device itself fails, i.e., if the second device does not function with respect to the main interface in the network, the initiating node (e.g., the third device) sending the data message deletes the routing information corresponding to the main interface of the second device, and therefore, the initiating node sending the data message does not select the second device as a destination node and does not include the second device in the forwarding path, so that the first device does not need to trigger the execution of an operation to advertise the first routing information corresponding to the first sub-interface in the network, which does not cause problems of data message bypass or packet loss.

[0039] It should be noted that the routing withdrawal message in this embodiment may be any routing message that can advertise the failure state of the corresponding first routing information, and does not necessarily need to be related to the MP_UNREACH_NLRI attribute in BGP.

[0040] In addition, in one embodiment, the step S100 of advertising the first routing information corresponding to the first sub-interface in the network may include, but is not limited to, the following steps.

[0041] Flood a Border Gateway Protocol (BGP) routing message in the network to advertise first routing information corresponding to the first sub-interface, where the BGP routing message includes the first routing information and a first device identifier for identifying the first device, where the first device identifier is used to carry the first routing information and the first device identifier using a first segment identifier (SID) list when the third device sends a data message, and a processing logical position of the first routing information in the first SID list is after a processing logical position of the first device identifier in the first SID list.

[0042] The first device identifier is an address for uniquely identifying the first device, and the value thereof may be appropriately selected depending on the actual application situation, and this embodiment does not particularly limit it.

[0043] In addition, when the first device (for example, the first PE 120 in FIG. 1) floods the first routing information corresponding to the first sub-interface in the network, for example, when flooding this first routing information using an Interior Gateway Protocol (IGP), both core routers in the network (for example, the first core router 150 and the second core router 160 in FIG. 1) perceive this first routing information, and in this case, the routing pressure of the core router increases. In order to avoid the core router from perceiving this first routing information and achieve the purpose of weight reduction, in this embodiment, the first routing information corresponding to the first sub-interface is flooded with a BGP routing message to avoid the core router from perceiving the first routing information.

[0044] In addition, when flooding the first routing information corresponding to the first sub-interface with a BGP routing message, the BGP routing message may carry a first device identifier for identifying the first device. When the third device receives the BGP routing message, it can obtain the first device identifier corresponding to the first device and the first routing information corresponding to the first sub-interface. When the third device needs to send a data message to the first sub-interface of the first device, the third device can use a first SID list to carry the first routing information and the first device identifier, and in the first SID list, the SID where the first routing information is located is in an inner layer of the SID where the first device identifier is located. Therefore, in the process of transmitting the data message from the third device to the first device, the first routing information is hidden in a segment routing header (SRH) corresponding to the first SID list, and the core router cannot perceive the first routing information. Only after the data message reaches the first device, the first routing information becomes apparent, that is, the first device does not need to advertise the first routing information to the core router when flooding it. Therefore, the first device can flood the first routing information corresponding to the first sub-interface with a BGP routing message, thereby reducing the routing pressure of the core router and achieving weight reduction.

[0045] It should be noted that when the first routing information is flooded with a BGP routing message, the first routing information may be routing information of a global routing table, an IP-VRF instance, or a MAC-VRF instance, or the first routing information is routing information in the same routing table as the routing information of the main interface.

[0046] In addition, the BGP routing message may also include bandwidth information for the third device to determine the first device identifier from the bandwidth information.

[0047] In addition, the bandwidth information in the BGP routing message represents the bandwidth processing capability of the device advertising the BGP routing message. Therefore, after the third device receives the BGP routing message including the bandwidth information from each device, when the third device transmits a data message, the third device first shares the load among the multiple devices corresponding to the destination routing information at a predetermined ratio according to the bandwidth information advertised by these devices, and then determines a final device identifier from the result of the load sharing, and can forward the data message with the determined final device identifier as the destination address. For example, if the bandwidth information of the first device indicates that the bandwidth processing capability of the first device is maximum, after the third device receives the BGP routing message carrying the first routing information and the bandwidth information, when the third device needs to forward a data message according to the first routing information, the third device will first share the load between the first device and the second device corresponding to the first routing information in a predetermined ratio according to the bandwidth information advertised by the first device and the second device, and because the bandwidth processing capability of the first device is maximum, the first device will share a larger amount of data forwarding as a result of the load sharing, so that the third device selects the first device identifier for identifying the first device as the destination address to forward the data message to the first device.

[0048] In addition, in one embodiment, as shown in FIG. 4, the information processing method can further include, but is not limited to, step S300 and step S400.

[0049] Step S300: Receive a first data message sent by a third device, the first data message carrying first routing information.

[0050] Step S400: Forward the first data message to a first sub-interface according to the first routing information and the local forwarding table entry.

[0051] In addition, when the first device advertises the first routing information corresponding to the first sub-interface in the network and the third device receives the first routing information, the third device may send a first data message to the first device according to the first routing information, and the first data message carries the first routing information. After receiving the first data message, the first device can forward the first data message to the first sub-interface according to the first routing information in the first data message and a local forwarding table entry, thereby transmitting traffic from the third device to the first device.

[0052] In addition, the message format of the first data message may have different types, for example, the first data message may be an SRv6 message type or a Multi-Protocol Label Switching (MPLS) message type, etc., and this embodiment is not particularly limited thereto. However, when the message format of the first data message is different, the local forwarding table entry may also be a different type, for example, when the first data message is an SRv6 message type, the local forwarding table entry is a local segment identifier forwarding table entry, and when the first data message is an MPLS message type, the local forwarding table entry is a label forwarding table entry.

[0053] In addition, in one embodiment, the first data message sent by the third device may further carry first MAC information, which is the MAC information (i.e., destination MAC information) of the destination node (e.g., the first CE110 in FIG. 1) where the first data message needs to arrive. In this case, before performing step S100 or before performing step S300, the information processing method may further include, but is not limited to, the following steps:

[0054] A second data message carrying the first routing information and second MAC information that is the same as the first MAC information is sent to the third device, and the third device constructs the first data message based on the first routing information and the second MAC information in the second data message.

[0055] It should be noted that before the third device sends the first data message to the first device, the first device also sends a second data message to the third device, where the second data message carries the first routing information and the second MAC information, and the second MAC information is the MAC information (i.e., the source MAC information of the user device) of the user device (e.g., the first CE 110 in FIG. 1). When the third device receives the second data message, it can learn and store the relationship between the first routing information and the second MAC information from the second data message, so that when the third device needs to send a data message to the user device (e.g., the first CE 110 in FIG. 1), it can obtain the stored second MAC information from the destination address information (i.e., the first MAC information), and can obtain the address information (e.g., the first device identifier) ​​of the first device in the forwarding path from the relationship between the second MAC information and the first routing information, and can construct the first data message in the embodiment shown in FIG. 4 based on the first MAC information and the first routing information.

[0056] If the first routing information is an IPv6 address, the steps of this embodiment may be executed before executing step S100 since the IPv6 address has the longest match property.

[0057] If the third device can obtain other second routing information (e.g., VNI or SID of End.DT2U type) from the first routing information, which can enable the first device to determine the EVPN instance (i.e., the traffic instance corresponding to the second functional component) to which the first data message is homed, the third device may replace the first routing information with the second routing information. In this case, the first device also needs to determine that the egress of the first data message is the first sub-interface according to the first MAC address.

[0058] Also, in one embodiment, the first routing information is entered into a destination address field of the first data message, in which case step S400 may include, but is not limited to, the following steps, as shown in FIG.

[0059] Step S410: Obtain first routing information from a destination address field of the first data message.

[0060] Step S420: If it is determined from the first routing information and the local forwarding table entry that the next hop is the first sub-interface, forward the first data message to the first sub-interface.

[0061] In addition, when the first device receives a first data message from the third device, it first obtains information in the destination address field in the first data message, then determines whether the information in the destination address field hits a local forwarding table entry, and if the information in the destination address field hits a local forwarding table entry, it can perform processing related to the first data message based on the related information described in the local forwarding table entry. Therefore, in this embodiment, when the first device receives a first data message, it first obtains first routing information from the destination address field of the first data message, then determines whether the first routing information hits a local forwarding table entry, and if it is determined that the first routing information hits a local forwarding table entry and the next hop is the first sub-interface from the hit local forwarding table entry, it can forward the first data message to the first sub-interface, thereby performing related processing for the first data message.

[0062] However, in some cases, determining that the next hop of the first data message is the first sub-interface needs to be based on the destination MAC of the first data message in addition to the first routing information. For example, if a specific part of the first routing information is an EGD and an ESI has multiple sub-interfaces in an EVPN instance identified by the EGD, these sub-interfaces use the same first routing information, so a destination MAC must be additionally selected among these sub-interfaces.

[0063] Also, in one embodiment, as shown in FIG. 6, when the first data message includes a first SRH and the first SRH carries the first routing information, step S400 may further include, but is not limited to, the following steps:

[0064] Step S430: Obtain a current segment identifier from the segment identification list of the first SRH.

[0065] Step S440: If the current segment identifier is the first routing information, and it is determined from the first routing information and the local forwarding table entry that the next hop is the first sub-interface, forward the first data message to the first sub-interface.

[0066] It should be noted that the embodiment shown in Figure 6 and the embodiment shown in Figure 5 are parallel technical solutions, and the differences between them are as follows: in the embodiment shown in Figure 5 above, the first data message does not encapsulate the SRH, and the first routing information is input into the destination address field of the first data message, while in the embodiment shown in Figure 6, the first data message encapsulates the first SRH, and the first routing information is input into the first SRH.

[0067] In addition, when the first data message encapsulates the first SRH, when the first device receives the first data message from the third device, the first device first determines whether the information in the destination address field in the first data message matches the own device, and if it matches, obtains a current segment identifier from the segment identification list of the first SRH, and then determines whether this current segment identifier hits a local forwarding table entry, and if the current segment identifier hits a local forwarding table entry, it can perform processing related to the first data message based on the related information described in the local forwarding table entry. Therefore, in this embodiment, when the first device determines that the information in the destination address field in the first data message matches the own device, it obtains a current segment identifier from the segment identification list of the first SRH of the first data message, and determines that this current segment identifier is the first routing information and that the first routing information hits a local forwarding table entry, and if it determines from the hit local forwarding table entry that the next hop is the first sub-interface, it can forward the first data message to the first sub-interface, thereby performing related processing for the first data message.

[0068] Additionally, an embodiment of the present application further provides a node including a memory, a processor, and a computer program stored in the memory and executable by the processor.

[0069] The processor and memory may be connected via a bus or other means. The memory can be used as a non-transitory computer-readable storage medium to store non-transitory software programs and non-transitory computer-executable programs. Furthermore, the memory can include high-speed random access memory and may also include non-transitory memory such as at least one magnetic disk storage device, flash memory, or other non-transitory solid-state memory. In some embodiments, the memory may include memory located remotely to the processor that can be connected to the processor via a network, if necessary. Examples of such networks include, but are not limited to, the Internet, a corporate intranet, a local area network, a mobile communication network, and combinations thereof.

[0070] In addition, the node of this embodiment can be applied as the first PE 120 or the second PE 130 in the network topology of the embodiment shown in Figure 1, and since the node of this embodiment and the first PE 120 or the second PE 130 in the network topology of the embodiment shown in Figure 1 have the same inventive concept, these embodiments have the same realization principles and technical effects, so they will not be described in detail here.

[0071] The non-transitory software programs and instructions necessary to realize the information processing methods of the above embodiments are stored in a memory and, when executed by a processor, perform the information processing methods of the above embodiments, for example, performing method step S100 of FIG. 2, method step S200 of FIG. 3, method steps S300 to S400 of FIG. 4, method steps S410 to S420 of FIG. 5, and method steps S430 to S440 of FIG. 6.

[0072] The above-described embodiment of the node is merely schematic, and the units shown here as separate components may or may not be physically separated, i.e., located in one place or distributed among multiple network units. Some or all of these modules may be selected to achieve the objectives of the embodiment according to actual needs.

[0073] Furthermore, one embodiment of the present application further provides a computer-readable storage medium storing computer-executable instructions that, when executed by a processor or controller, for example by one processor in the above-mentioned node embodiment, cause the processor to execute the information processing method in the above-mentioned embodiment, for example, method step S100 of FIG. 2, method step S200 of FIG. 3, method steps S300-S400 of FIG. 4, method steps S410-S420 of FIG. 5, and method steps S430-S440 of FIG. 6.

[0074] The embodiment of the present application includes: for a first device and a second device with dual homing, the first device is provided with a first sub-interface, and the second device is provided with a second sub-interface corresponding to the first sub-interface, when the first device determines that the second sub-interface of the second device is in a fault state and the main interface to which the second sub-interface is homed is in a normal state, the first device advertises first routing information corresponding to the first sub-interface in the network, and allows the third device to send data messages to the first sub-interface of the first device according to the first routing information. According to the solution of the embodiment of the present application, when the first device determines that the second sub-interface of the second device is in a fault state but the main interface to which the second sub-interface is homed is still in a normal state, the first device advertises first routing information corresponding to the first sub-interface in the network, and allows the third device to send data messages to the first sub-interface of the first device according to the first routing information, thereby solving the problem of packet loss of data messages caused by the failure of a sub-interface of a device in the related art.

[0075] As can be understood by those skilled in the art, all or part of the steps in the methods and systems disclosed above may be implemented as software, firmware, hardware, and appropriate combinations thereof. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). As known to those skilled in the art, the term computer storage media includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer readable instructions, data structures, program modules, or other data). Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cartridge, magnetic tape, magnetic disk storage or other magnetic storage, or any other medium that can be used to store the desired information and that can be accessed by a computer. Additionally, communication media typically includes computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transmission mechanism, and may include any information delivery media as known to those skilled in the art.

[0076] Although the above describes in detail preferred embodiments of the present application, the present application is not limited to the above embodiments, and those skilled in the art may make various equivalent modifications or substitutions without violating the spirit of the present application, and all of these equivalent modifications or substitutions are included in the scope defined by the claims of the present application.

Claims

1. An information processing method applied to a first device, comprising: The first device is in a dual-homing relationship with a second device, and the first device is provided with a first main interface and a first sub-interface, the first sub-interface is a sub-interface of the first main interface, and the first main interface is an interface for configuring an Ethernet segment identifier (ESI) corresponding to the first sub-interface; The second device is provided with a second main interface and a second sub-interface, the second sub-interface corresponds to the first sub-interface and is a sub-interface of the second main interface, and the second main interface is an interface for configuring an ESI corresponding to the second sub-interface; The method comprises: When determining that the second sub-interface is in a fault state and the second main interface is in a normal state, advertising first routing information corresponding to the first sub-interface to a network, and causing a third device to send a data message to the first sub-interface according to the first routing information; An information processing method, wherein the first routing information corresponding to the first sub-interface includes an identifier capable of uniquely marking the first sub-interface in a data plane.

2. The method of claim 1 , wherein the first routing information includes a common routing portion corresponding to routing information of the first main interface, and a specific routing portion for distinguishing the first sub-interface.

3. 2. The method of claim 1, further comprising: receiving a routing cancellation message sent by the second device; and if the routing cancellation message is for only the second sub-interface, determining based on the routing cancellation message that the second sub-interface is in a failed state and the second main interface is in a normal state.

4. The step of advertising first routing information corresponding to the first sub-interface to a network includes: flooding a Border Gateway Protocol (BGP) routing message in the network to advertise first routing information corresponding to the first sub-interface, the BGP routing message including the first routing information and a first device identifier for identifying the first device, the first device identifier being used to carry the first routing information and the first device identifier using a first segment identifier (SID) list when the third device sends a data message, and a processing logical position of the first routing information in the first SID list is after a processing logical position of the first device identifier in the first SID list; 2. The method of claim 1, wherein the BGP routing message further includes bandwidth information, the bandwidth information being used by the third device to determine the first device identifier as a destination address from the bandwidth information.

5. receiving a first data message transmitted by the third device, the first data message carrying the first routing information; The method of any one of claims 1 to 4, further comprising: forwarding the first data message to the first sub-interface according to the first routing information and a local forwarding table entry.

6. The first data message further carries a first media access control address (MAC) information; before advertising first routing information corresponding to the first sub-interface to a network or before receiving a first data message sent by the third device; 6. The method of claim 5, further comprising the step of: sending a second data message carrying the first routing information and second MAC information that is the same as the first MAC information to the third device, and causing the third device to construct the first data message based on the first routing information and the second MAC information in the second data message.

7. the first routing information is entered into a destination address field of the first data message, and the step of forwarding the first data message to the first sub-interface according to the first routing information and a local forwarding table entry comprises: obtaining the first routing information from a destination address field of the first data message; 6. The method of claim 5, further comprising the step of forwarding the first data message to the first sub-interface if it is determined from the first routing information and a local forwarding table entry that a next hop is the first sub-interface.

8. The first data message includes a first segment routing header (SRH), the first SRH carrying the first routing information; The step of forwarding the first data message to the first sub-interface according to the first routing information and a local forwarding table entry comprises: obtaining a current segment identifier from a segment identification list in the first SRH; 6. The method of claim 5, further comprising the step of forwarding the first data message to the first sub-interface if the current segment identifier is the first routing information and if it is determined from the first routing information and a local forwarding table entry that a next hop is the first sub-interface.

9. A node comprising a memory, a processor, and a computer program stored in the memory and executable by the processor, the node implementing the information processing method according to any one of claims 1 to 8 when the processor executes the computer program.

10. A computer-readable storage medium storing computer-executable instructions for executing the information processing method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Ethernet segment identifier adjacency detection processing method and device and storage medium

    CN110391951A

  • Message processing method and device

    CN111277482A

  • Traffic forwarding control method and device, flow forwarding method, chip and switch

    CN111935013A

  • Redundant host connection in a routed network

    US20100246388A1

  • Failure handling for active-standby redundancy in EVPN data center interconnect

    US20170288948A1