Information processing methods, nodes, and computer-readable storage media
By announcing the routing information corresponding to the first sub-interface when the sub-interface of the PE device fails but the main interface is normal, the problem of data packet loss caused by sub-interface failure in PBB EVPN is solved, and normal forwarding of data packets and optimization of network resources are achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- ZTE CORP
- Filing Date
- 2020-12-15
- Publication Date
- 2026-06-30
AI Technical Summary
In PBB EVPN, the failure of the PE's sub-interfaces causes data packets to be routed or lost, a problem that existing technologies cannot effectively solve.
If the second sub-interface is determined to be faulty but the main interface is normal, the first device announces the routing information corresponding to the first sub-interface, so that the third device sends the data packets to the first sub-interface, thus preventing the data packets from being distributed to the faulty second sub-interface.
This solution resolves the data packet loss issue caused by sub-interface failure, reduces network bandwidth waste, and lowers network routing pressure.
Smart Images

Figure CN114697263B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to, but are not limited to, the field of communication technology, and particularly to an information processing method, a node, and a computer-readable storage medium. Background Technology
[0002] In Provider Backbone Bridge Ethernet Virtual Private Network (PBB EVPN), the Ethernet Segment Identifier (ESI) is configured based on the main interface of the provider edge router (PE). Correspondingly, the backbone media access control address (B-MAC) representing the ESI in the data plane is also bound to the main interface. However, the actual attachment circuit (AC) of the EVPN is often not the main interface itself, but a sub-interface of the main interface.
[0003] Since the B-MAC entry representing ESI in the data plane is bound to the main interface, other sub-interfaces of the main interface also depend on this B-MAC entry. Moreover, for different sub-interfaces of the same main interface, sub-interface failure events often occur independently. For example, when one sub-interface is shut down by the administrator, other sub-interfaces can still forward packets normally. Therefore, when individual sub-interfaces fail, the corresponding B-MAC entry cannot be revoked because of the failure of that sub-interface. So, when the destination user MAC (Customer MAC, C-MAC) of a data packet is associated with this B-MAC entry, the data packet will still be load-distributed to the PE node where the sub-interface failed, thus causing packet loss. Summary of the Invention
[0004] The following is an overview of the subject matter described in detail herein. This overview is not intended to limit the scope of the claims.
[0005] This invention provides an information processing method, node, and computer-readable storage medium that can solve the problem of data packet detour or packet loss caused by the failure of the PE sub-interface in related technologies.
[0006] In a first aspect, embodiments of the present invention provide an information processing method applied to a first device, wherein the first device and a second device have a dual-homing relationship, 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 method comprising:
[0007] If it is determined that the second sub-interface is in a failed state and the main interface to which the second sub-interface belongs is in a normal state, the first routing information corresponding to the first sub-interface is announced in the network, so that the third device sends data packets to the first sub-interface according to the first routing information.
[0008] In a second aspect, embodiments of the present invention also provide a node, including: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the information processing method described in the first aspect above.
[0009] Thirdly, embodiments of the present invention also provide a computer-readable storage medium storing computer-executable instructions for performing the information processing method described above.
[0010] This invention includes the following: For a first device and a second device with a dual-homing relationship, where the first device has a first sub-interface and the second device has 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 failed state while the main interface to which the second sub-interface belongs is in a normal state, the first device announces first routing information corresponding to the first sub-interface in the network, enabling a third device to send data packets to the first sub-interface according to the first routing information. According to the solution provided by this invention, when the first device determines that the second sub-interface of the second device is in a failed state while the main interface to which the second sub-interface belongs is still in a normal state, the first device announces first routing information corresponding to the first sub-interface in the network, enabling the third device to send data packets to the first sub-interface of the first device according to the first routing information, thereby solving the problem of data packet loss caused by the failure of a sub-interface of a device in related technologies.
[0011] Other features and advantages of the invention will be set forth in the description which follows, and will be apparent in part from the description, or may be learned by practicing the invention. The objects and other advantages of the invention may be realized and obtained by means of the structures particularly pointed out in the description, claims and drawings. Attached Figure Description
[0012] The accompanying drawings are provided to further understand the technical solutions of the present invention and constitute a part of the specification. They are used together with the embodiments of the present invention to explain the technical solutions of the present invention, and do not constitute a limitation on the technical solutions of the present invention.
[0013] Figure 1 This is a schematic diagram of a network topology for performing an information processing method according to an embodiment of the present invention;
[0014] Figure 2 This is a flowchart of an information processing method provided in one embodiment of the present invention;
[0015] Figure 3 This is a flowchart of an information processing method provided in another embodiment of the present invention;
[0016] Figure 4 This is a flowchart of an information processing method provided in another embodiment of the present invention;
[0017] Figure 5 This is a flowchart illustrating the forwarding of data packets to a sub-interface in an information processing method provided in another embodiment of the present invention.
[0018] Figure 6 This is a flowchart illustrating the forwarding of data packets to a sub-interface in an information processing method provided in another embodiment of the present invention. Detailed Implementation
[0019] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the invention.
[0020] It should be noted that although functional modules are divided in the device schematic diagram and a logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the device or the order in the flowchart. The terms "first," "second," etc., in the specification, claims, and the aforementioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.
[0021] This invention provides an information processing method, node, and computer-readable storage medium. For a first device and a second device with a dual-homing relationship, where the first device has a first sub-interface and the second device has 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 failed state but the main interface to which the second sub-interface belongs is still in a normal state, the first device announces first routing information corresponding to the first sub-interface in the network. This enables a third device to send data packets to the first sub-interface of the first device based on the first routing information, thereby solving the problem of data packet loss caused by the failure of a sub-interface of a device in related technologies.
[0022] The embodiments of the present invention will be further described below with reference to the accompanying drawings.
[0023] like Figure 1 As shown, Figure 1 This is a schematic diagram of a network topology for performing an information processing method according to an embodiment of the present invention. Figure 1 In the example, the network topology includes a first customer edge device (CE) 110, a first PE 120, a second PE 130, a third PE 140, a first core router 150, and a second core router 160. The first CE 110 is dual-homed to both the first PE 120 and the second PE 130. Both the first PE 120 and the second PE 130 are connected to the first core router 150. The first core router 150, the second core router 160, and the third PE 140 are connected sequentially.
[0024] exist Figure 1In the example, the first PE120, the second PE130, and the third PE140 each include a first functional component 210 and two second functional components 220, wherein the first functional component 210 is connected to each of the second functional components 220. Additionally, the first PE120 includes a first main interface 121, a first sub-interface 122, and a third sub-interface 123, with the first sub-interface 122 and the third sub-interface 123 belonging to the first main interface 121. The two second functional components 220 in the first PE120 are correspondingly bound to the first sub-interface 122 and the third sub-interface 123. The second PE130 also includes a second main interface 131, a second sub-interface 132, and a fourth sub-interface 133, with the second sub-interface 132 and the fourth sub-interface 133 belonging to the second main interface 131. The two second functional components 220 in the second PE130 are correspondingly bound to 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 relationship of the first PE120 and the second PE130, and the third sub-interface 123 and the fourth sub-interface 133 are associated based on the dual-homing relationship of the first PE120 and the second PE130.
[0025] It is worth noting that the first sub-interface 122 and the second sub-interface 132 can receive packets with the same Virtual Local Area Network (VLAN) encapsulation, and the third sub-interface 123 and the fourth sub-interface 133 can receive packets with the same VLAN encapsulation.
[0026] In each PE, corresponding routing information is assigned to the main interface and each sub-interface. This routing information can be an Internet Protocol (IP) address, a Media Access Control (MAC) address, or an Ethernet Segment Identifier (ESI), etc., and this embodiment does not specifically limit it. It is worth noting that multiple sub-interfaces associated with each other due to the dual-homing relationship between devices, such as the first sub-interface 122 of the first PE 120 and the second sub-interface 132 of the second PE 130, have the same routing information.
[0027] The second functional component 220 is a service instance that forwards data packets according to C-MAC. The second functional component 220 can use encapsulation formats such as VXLAN, PBB, MPLS, and SRv6 to forward data packets between PEs. In this 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, respectively.
[0028] The first functional component 210 is used to carry service instances (corresponding to the second functional component 220). Additionally, the first functional component 210 can advertise routing information corresponding to the main interface or the sub-interface in the network. It should be noted that when both the first PE120 and the second PE130, which have a dual-homing relationship, are working normally, the first functional component 210 in both the first PE120 and the second PE130 will only advertise routing information corresponding to the main interface in the network. When a sub-interface in the first PE120 is in a failed state, the routing information corresponding to the sub-interface in the second PE130 corresponding to the failed sub-interface in the first PE120 will be advertised by the first functional component 210 in the network. Similarly, when a sub-interface in the second PE130 is in a failed state, the routing information corresponding to the sub-interface in the first PE120 corresponding to the failed sub-interface in the second PE130 will be advertised by the first functional component 210 in the network. It is worth noting that if the first PE120 determines that the main interface of the second PE130 is in a failed state, the first functional component 210 in the first PE120 will not advertise the routing information of the sub-interface of the first PE120 in the network; if the second PE130 determines that the main interface of the first PE120 is in a failed state, the first functional component 210 in the second PE130 will not advertise the routing information of the sub-interface of the second PE130 in the network.
[0029] The network topologies and application scenarios described in the embodiments of this invention are intended to more clearly illustrate the technical solutions of the embodiments of this invention, and do not constitute a limitation on the technical solutions provided in the embodiments of this invention. As those skilled in the art will know, with the evolution of network topologies and the emergence of new application scenarios, the technical solutions provided in the embodiments of this invention are also applicable to similar technical problems.
[0030] It will be understood by those skilled in the art that Figure 1 The topology shown does not constitute a limitation on the embodiments of the present invention and may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0031] Based on the above network topology, various embodiments of the information processing method of the present invention are proposed.
[0032] like Figure 2 As shown, Figure 2 This is a flowchart of an information processing method provided in an embodiment of the present invention, which is applied to a first device (e.g., Figure 1 The first PE120 in the network topology shown, the first device and the second device (e.g. Figure 1The second PE130 in the network topology shown has a dual-homing relationship and is located in the same Ethernet segment (ES). The first device is configured with a first sub-interface, and the second device is configured with a second sub-interface corresponding to the first sub-interface. The information processing method includes, but is not limited to, the following steps:
[0033] Step S100: If it is determined that the second sub-interface is in a failed state and the main interface to which the second sub-interface belongs is in a normal state, the first routing information corresponding to the first sub-interface is announced to the network, so that the third device sends the data packet to the first sub-interface according to the first routing information.
[0034] It should be noted that the first routing information corresponding to the first sub-interface can be an IP address, a B-MAC address, or other custom identifiers that can uniquely identify the first sub-interface in the data plane. This embodiment does not impose any specific limitations on this.
[0035] 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 belongs is in a normal state, it means that the other sub-interfaces of the second device can still work normally. However, the second sub-interface can no longer forward data packets. But since all the sub-interfaces of the second device are associated with the same B-MAC entry bound to the same main interface, and this B-MAC entry cannot be revoked simply because the second sub-interface is failed, if the third device still sends data packets according to the routing information corresponding to the main interface, the data packets will be distributed to the second sub-interface of the second device, which will cause packet loss. To address the aforementioned issues and ensure the normal forwarding of data packets by the first sub-interface of the first device, when the first device determines that the second sub-interface is in a failed state and the main interface to which the second sub-interface belongs is in a normal state, it will advertise the first routing information corresponding to the first sub-interface in the network. When the third device receives the first routing information, it can accurately send data packets to the first sub-interface based on the first routing information, thus ensuring the normal forwarding of data packets by the first device's first sub-interface. In addition, since the second device does not publish routing information corresponding to the second sub-interface, packet loss caused by data packets being sent to the second sub-interface of the second device is also avoided.
[0036] It is worth noting that when packet loss occurs due to a third device sending data packets to a failed second sub-interface, egress link protection technology can optimize the packet loss result to bypassing other nodes. However, prolonged bypassing still wastes network bandwidth. In this case, this embodiment can quickly remove the bypassing of data packets before the second sub-interface recovers, thereby saving network bandwidth resources. For this embodiment, the technical effects of resolving packet loss and removing data packet bypassing can be based on the same technical means, and the decision to implement bypassing depends on whether it is combined with other technical means.
[0037] It is worth noting that the first device only announces the first routing information corresponding to the first sub-interface in the network when it determines that the second sub-interface is in a failed state and the main interface to which the second sub-interface belongs is in a normal state. That is to say, when both the first and second devices are in a normal working state, the first device does not need to announce the first routing information corresponding to the first sub-interface. In addition, when the second sub-interface is in a failed state, the first device only sends the first routing information for the first sub-interface corresponding to the second sub-interface, and does not send routing information for all sub-interfaces. Moreover, the second device does not announce the routing information corresponding to the second sub-interface. Therefore, the number of routing information advertisements for sub-interfaces in the network can be reduced, thereby reducing the routing pressure on the network. Especially under normal conditions (i.e., before any sub-interface on the ES fails), no routing information specific to any sub-interface on the ES (such as routing information with the same nature as the first routing information) is advertised to outside the ES (such as a third device).
[0038] In one embodiment, the first routing information includes a shared routing portion and a unique routing portion. The shared routing portion corresponds to the routing information of the main interface to which the first sub-interface belongs, and the unique routing portion is used to distinguish sub-interfaces belonging to the main interface.
[0039] In one embodiment, the first routing information may consist of a shared routing portion in the high bits and a unique routing portion in the low bits. The shared routing portion may be an IPv6 prefix or other custom identifiers that can uniquely identify the primary interface in the data plane, and its length can be appropriately selected based on the actual application. The unique routing portion may be a globally unique Ethernet Virtual Private Network Global Discreminator (EGD), a local identifier, or other custom identifiers that can be used to distinguish sub-interfaces, and its length can be appropriately selected based on the actual application. The specific content of both the shared and unique routing portions can be appropriately selected based on the actual application, and this embodiment does not impose specific limitations on this. For example, when the first routing information is an IPv6 address, the high 104 bits of the first routing information constitute the shared routing portion, which is an IPv6 prefix, while the low 24 bits constitute the unique routing portion, which is an EGD.
[0040] It is worth noting that when there is only one sub-interface in the same EVPN instance corresponding to the same first routing information (such as ESI), the unique routing part can be EGD, which can uniquely identify the sub-interface.
[0041] It should be noted that when the first functional component 210 of the first device carries an SRv6 EVPN instance, the first routing information corresponding to the first sub-interface consists of the aforementioned shared routing portion and unique routing portion. In this case, the routing information corresponding to the main interface includes the shared routing portion but does not include the unique routing portion. When the first functional component of the first device carries an IP-VRF instance, both the first routing information corresponding to the first sub-interface and the routing information corresponding to the main interface are IP routes of the IP-VRF instance. In this case, the unique routing portion of the first routing information corresponding to the first sub-interface only needs to include a marker that can uniquely identify the first sub-interface. For example, it can be an interface identifier that can uniquely identify the first sub-interface within the ES to which the first device belongs. The specific value of the interface identifier can be appropriately selected according to the actual application situation (for example, the VLAN identifier information of the sub-interface can be selected). This embodiment does not impose specific limitations on this. When EGD uses other fields for transmission (such as the VNI field), so that the unique part of the first routing information corresponding to the first sub-interface does not need to include EGD, the first routing information based on the interface distinguisher can be used. This can help to make the routing information corresponding to the main interface have more valid bits, thus making it more suitable for applications of devices that do not support IPv6.
[0042] Additionally, in one embodiment, such as Figure 3As shown, this information processing method may also include, but is not limited to, the following steps:
[0043] Step S200: When a route cancellation message is received from the second device, and the route cancellation message is only for the second sub-interface, it is determined from the route cancellation message that the second sub-interface is in a failed state and the main interface to which the second sub-interface belongs is in a normal state.
[0044] It should be noted that before executing step S100, if the first device receives a route cancellation message sent by the second device, and the route cancellation message is only for the second sub-interface, the first device can determine that the second sub-interface is in a failed state. At this time, if the route corresponding to the main interface to which the second sub-interface belongs has not been cancelled, that is, the main interface to which the second sub-interface belongs is in a normal state, the operation of announcing the first route information corresponding to the first sub-interface in the network can be triggered.
[0045] It is worth noting that when a PE (Preinstallation Equipment) experiences a sub-interface failure or a main interface failure, it will flood the network with route cancellation messages. There are two types of route cancellation messages: those corresponding to routes on the main interface (such as RT-1 per ES routes) and those corresponding to routes on sub-interfaces (such as RT-1 per EVI routes). Specifically, when a PE's sub-interface fails, the PE will flood the network with a route cancellation message corresponding to that sub-interface; when the PE's main interface fails, the PE will flood the network with both routes corresponding to the main interface and routes corresponding to sub-interfaces. When the first device receives a route cancellation message corresponding to a sub-interface (i.e., the route cancellation message only applies to the second sub-interface), it indicates that only the second sub-interface of the second device is in a failed state, while all other sub-interfaces of the second device are functioning normally. Therefore, the first device can determine that the second sub-interface is in a failed state and that the main interface to which the second sub-interface belongs is functioning normally. When the first device receives a route cancellation message corresponding to the main interface (i.e., the route cancellation message is for the main interface), it indicates that the main interface of the second device and all its sub-interfaces are in a failed state. Therefore, the first device can determine that the main interface itself on the second device has failed. It should be noted that when the main interface on the second device has failed, meaning the second device is ineffective for the main interface in the network, the originating node sending the data packet (e.g., the third device) will delete the routing information corresponding to the main interface of the second device. Therefore, the originating node will not select the second device as the destination node, nor will it include the second device in the forwarding path. Thus, the first device does not need to trigger the operation of advertising the first routing information corresponding to the first sub-interface in the network, and this will not cause data packet detours or packet loss.
[0046] It should be noted that the route cancellation message in this embodiment can be any route message that can announce the failure status of the corresponding first route information, and does not necessarily need to be related to the MP_UNREACH_NLRI attribute in BGP.
[0047] In another embodiment, the step S100 of announcing the first routing information corresponding to the first sub-interface in the network may include, but is not limited to, the following steps:
[0048] In the network, Border Gateway Protocol (BGP) routing messages are flooded to announce the first routing information corresponding to the first sub-interface. The BGP routing message includes the first routing information and a first device identifier for identifying the first device. The first device identifier is used to enable a third device to carry the first routing information and the first device identifier in a first segment ID (SID) list when sending data packets. The processing logic position of the first routing information in the first SID list is after the processing logic position of the first device identifier in the first SID list.
[0049] It should be noted that the first device identifier is an address used to uniquely identify the first device, and its value can be appropriately selected according to the actual application situation. This embodiment does not impose specific limitations on it.
[0050] It should be noted that when the first device (such as...) Figure 1 The first PE120 in the network floods the first routing information corresponding to the first sub-interface. For example, by using the Interior Gateway Protocol (IGP) to flood this first routing information, the core routers in the network (such as...) Figure 1 Both the first core router (150) and the second core router (160) in the system will be aware of the first routing information, which will increase the routing pressure on the core routers. In order to avoid the core routers being aware of the first routing information and thus achieve the goal of lightweighting, this embodiment uses BGP routing packets to flood the first routing information corresponding to the first sub-interface, thereby preventing the core routers from being aware of the first routing information.
[0051] It should be noted that when flooding the first routing information corresponding to the first sub-interface using BGP routing messages, a first device identifier for identifying the first device can also be carried in the BGP routing message. 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 packet to the first sub-interface of the first device, it can use a first SID list to carry the first routing information and the first device identifier. Furthermore, in the first SID list, the SID containing the first routing information is an inner layer of the SID containing the first device identifier. Therefore, during the transmission of the data packet from the third device to the first device, the first routing information is hidden in the Segment Routing Header (SRH) corresponding to the first SID list. The core router is unaware of this first routing information. The first routing information is only exposed after the data packet arrives at the first device. That is to say, the first device does not need to announce the first routing information to the core router when flooding the first routing information. Therefore, the first device can use BGP routing packets to flood the first routing information corresponding to the first sub-interface, thereby reducing the routing pressure on the core router and achieving the goal of lightweighting.
[0052] It should be noted that when flooding the first routing information using BGP routing messages, the first routing information can be routing information from the global routing table, a specific IP-VRF instance, or a specific MAC-VRF instance. Furthermore, the first routing information and the routing information of the main interface must be from the same routing table.
[0053] It should be noted that BGP routing messages may also include bandwidth information, which is used by a third device to determine the identifier of the first device based on the bandwidth information.
[0054] It should be noted that the bandwidth information in a BGP routing message reflects the bandwidth processing capacity of the device that advertised the BGP routing message. Therefore, after a third device receives BGP routing messages containing bandwidth information from various devices, when the third device sends a data packet, it can first distribute the load among the multiple devices corresponding to the target routing information according to the bandwidth information advertised by these devices. Then, based on the load distribution result, it determines the final device identifier and forwards the data packet using this determined final device identifier as the destination address. For example, assuming the bandwidth information of the first device indicates that the first device has the largest bandwidth processing capacity, after the third device receives a BGP routing message carrying the first routing information and bandwidth information, when the third device needs to forward data packets according to the first routing information, the third device will first distribute the load between the first device and the second device corresponding to the first routing information in proportion to the bandwidth information announced by the first device and the second device. Since the first device has the largest bandwidth processing capacity, the result of the load distribution will be that the first device will bear a larger amount of data forwarding. Therefore, the third device will select the first device identifier used to identify the first device as the destination address and forward the data packets to the first device.
[0055] Additionally, in one embodiment, such as Figure 4 As shown, this information processing method may also include, but is not limited to, the following steps:
[0056] Step S300: Receive a first data packet sent by a third device, wherein the first data packet carries first routing information;
[0057] Step S400: Forward the first data packet to the first sub-interface according to the first routing information and the local forwarding table entries.
[0058] It should be noted that when the first device announces the first routing information corresponding to the first sub-interface in the network, and the third device receives this first routing information, the third device can send a first data packet to the first device based on the first routing information, and this first data packet carries the first routing information. When the first device receives the first data packet, it can forward the first data packet to the first sub-interface according to the first routing information in the first data packet and its local forwarding table entries, thereby realizing the service transmission from the third device to the first device.
[0059] It should be noted that the format of the first data packet can be of different types. For example, the first data packet can be an SRv6 packet or a Multi-Protocol Label Switching (MPLS) packet, etc. This embodiment does not specifically limit this. It is worth noting that, depending on the format of the first data packet, the local forwarding table entry can also be of different types. For example, when the first data packet is an SRv6 packet, the local forwarding table entry is a local segment identifier forwarding table entry, while when the first data packet is an MPLS packet, the local forwarding table entry is a label forwarding table entry.
[0060] In another embodiment, the first data packet sent by the third device may also carry first MAC information, which is the destination node that the first data packet needs to reach (e.g., Figure 1 The MAC information (i.e., destination MAC information) of the first CE110 in the process, in this case, before executing step S100, or before executing step S300, the information processing method may also include, but is not limited to, the following steps:
[0061] Send a second data packet to a third device, which carries first routing information and second MAC information that is the same as the first MAC information, so that the third device can construct a first data packet based on the first routing information and the second MAC information in the second data packet.
[0062] It should be noted that before the third device sends the first data packet to the first device, the first device will also send a second data packet to the third device. This second data packet carries first routing information and second MAC information, where the second MAC information is the user equipment (e.g., Figure 1 The third device receives the MAC information of the first CE110 (i.e., the source MAC information of the user equipment). When the third device receives the second data packet, it can learn and save the relationship between the first routing information and the second MAC information from the second data packet. Therefore, when the third device needs to send a message to the user equipment (e.g., ...), it can... Figure 1 When the first CE110 in the process sends a data packet, it can obtain the stored second MAC information based on the destination address information (i.e., the first MAC information), and can obtain the address information (such as the first device identifier) of the first device in the forwarding path based on the relationship between the second MAC information and the first routing information. Then, it can construct a data packet based on the first MAC information and the first routing information. Figure 4 The first data packet in the illustrated embodiment.
[0063] It should be noted that when the first routing information is an IPv6 address, since IPv6 addresses have the longest matching characteristic, the steps in this embodiment can be executed before step S100.
[0064] It should be noted that when the first device can obtain other second routing information (such as a VNI or an End.DT2U type SID) that enables it to determine the EVPN instance (i.e., the service instance corresponding to the second functional component) to which the first data packet belongs, based on the first routing information, the third device can also use the second routing information to replace the first routing information. In this case, the first device also needs to determine that the exit of the first data packet is the first sub-interface through the first MAC address.
[0065] In another embodiment, the first routing information is filled into the destination address field of the first data packet. In this case, such as Figure 5 As shown, step S400 may include, but is not limited to, the following steps:
[0066] Step S410: Obtain first routing information from the destination address field of the first data packet;
[0067] Step S420: When the next hop is determined to be the first sub-interface based on the first routing information and the local forwarding table entry, the first data packet is forwarded to the first sub-interface.
[0068] It should be noted that when the first device receives a first data packet from the third device, the first device first obtains the destination address field information from the first data packet, and then determines whether the information in the destination address field matches a local forwarding table entry. If the information in the destination address field matches a local forwarding table entry, the first device can perform relevant processing on the first data packet according to the relevant information recorded in the local forwarding table entry. Therefore, in this embodiment, after receiving the first data packet, the first device first obtains the first routing information from the destination address field of the first data packet, and then determines whether the first routing information matches a local forwarding table entry. When it is determined that the first routing information matches a local forwarding table entry, and the next hop is determined to be the first sub-interface according to the matched local forwarding table entry, the first data packet can be forwarded to the first sub-interface to realize the relevant processing of the first data packet.
[0069] It should be noted that, in some cases, determining the next hop of the first data packet as the first sub-interface requires not only relying on the first routing information but also on the destination MAC address of the first data packet. For example, if the unique part of the first routing information is EGD, and ESI has multiple sub-interfaces in the EVPN instance identified by EGD, since these sub-interfaces use the same first routing information, it is necessary to additionally select among these sub-interfaces using the destination MAC address.
[0070] In another embodiment, when the first data packet includes a first SRH, and the first SRH carries the first routing information, then in this case, as Figure 6 As shown, step S400 may also include, but is not limited to, the following steps:
[0071] Step S430: Obtain the current segment identifier from the segment identifier list in the first SRH;
[0072] Step S440: When the current segment is identified as the first routing information, and the next hop is determined to be the first sub-interface based on the first routing information and the local forwarding table entry, the first data packet is forwarded to the first sub-interface.
[0073] It should be noted that, as Figure 6 The embodiments shown are similar to those described above. Figure 5 The embodiments shown are parallel technical solutions, and the difference between them is that: the above-mentioned... Figure 5 In the illustrated embodiment, the first data packet does not encapsulate an SRH, and the first routing information is filled into the destination address field of the first data packet; as shown Figure 6 In the embodiment shown, the first data packet is encapsulated with a first SRH, and the first routing information is filled in the first SRH.
[0074] It should be noted that when the first data packet is encapsulated with a first SRH, after the first device receives the first data packet from the third device, the first device first determines whether the destination address field information in the first data packet matches its own. If a match is found, the first device retrieves the current segment identifier from the segment identifier list of the first SRH, and then determines whether the current segment identifier matches a local forwarding table entry. If the current segment identifier matches a local forwarding table entry, the first device can perform relevant processing on the first data packet based on the relevant information recorded in the local forwarding table entry. Therefore, in this embodiment, when the first device determines that the destination address field information in the first data packet matches its own, the first device retrieves the current segment identifier from the segment identifier list of the first SRH of the first data packet. When the current segment identifier is first routing information, and it is determined that the first routing information matches a local forwarding table entry, and the next hop is determined to be the first sub-interface based on the matched local forwarding table entry, the first device can forward the first data packet to the first sub-interface, thereby realizing the relevant processing of the first data packet.
[0075] In addition, one embodiment of the present invention provides a node comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor.
[0076] The processor and memory can be connected via a bus or other means.
[0077] Memory, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs and non-transitory computer-executable programs. Furthermore, memory may include high-speed random access memory, and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, memory may optionally include memory remotely located relative to the processor, and these remote memories can be connected to the processor via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
[0078] It should be noted that the nodes in this embodiment can be applied as follows: Figure 1 The first PE120 or the second PE130 in the network topology of the illustrated embodiment, the nodes in this embodiment and such Figure 1 The first PE120 or the second PE130 in the network topology of the illustrated embodiment have the same inventive concept, and therefore these embodiments have the same implementation principle and technical effect, which will not be described in detail here.
[0079] The non-transitory software program and instructions required to implement the information processing method of the above embodiments are stored in memory. When executed by a processor, the information processing method of the above embodiments is executed, for example, the method described above. Figure 2 Method steps S100, Figure 3 Method steps S200, Figure 4 Method steps S300 to S400, Figure 5 Method steps S410 to S420 in the text Figure 6 Method steps S430 to S440.
[0080] The node embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.
[0081] Furthermore, one embodiment of the present invention provides a computer-readable storage medium storing computer-executable instructions that are executed by a processor or controller, for example, by a processor in the above-described node embodiment, causing the processor to perform the information processing methods described above, such as executing the methods described above. Figure 2 Method steps S100, Figure 3 Method steps S200, Figure 4 Method steps S300 to S400, Figure 5 Method steps S410 to S420 in the text Figure 6 Method steps S430 to S440.
[0082] It will be understood by those skilled in the art that all or some of the steps and systems in the methods disclosed above can be implemented as software, firmware, hardware, and suitable combinations thereof. Some or all of the physical components can 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 can be distributed on a computer-readable medium, which can include computer storage media (or non-transitory media) and communication media (or transient media). As is 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 technologies, CD-ROM, digital versatile disc (DVD) or other optical disc storage, magnetic cartridges, magnetic tape, disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and is accessible to a computer. Furthermore, as is known to those skilled in the art, communication media typically contain computer-readable instructions, data structures, program modules, or other data in modulated data signals such as carrier waves or other transmission mechanisms, and may include any information delivery medium.
[0083] The above is a detailed description of the preferred embodiments of the present invention. However, the present invention is not limited to the above embodiments. Those skilled in the art can make various equivalent modifications or substitutions without departing from the spirit of the present invention. All such equivalent modifications or substitutions are included within the scope defined by the claims of the present invention.
Claims
1. An information processing method applied to a first device, wherein the first device and a second device have a dual-homing relationship, 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 method comprising: If it is determined that the second sub-interface is in a failed state and the main interface to which the second sub-interface belongs is in a normal state, the first routing information corresponding to the first sub-interface is announced to the network, so that the third device sends data packets to the first sub-interface according to the first routing information.
2. The method of claim 1, wherein, The first routing information includes a shared routing portion and a unique routing portion. The shared routing portion corresponds to the routing information of the main interface to which the first sub-interface belongs, and the unique routing portion is used to distinguish sub-interfaces belonging to the main interface.
3. The method of claim 1, wherein, Also includes: When a route cancellation message is received from the second device, and the route cancellation message is only for the second sub-interface, it is determined from the route cancellation message that the second sub-interface is in a failed state and the main interface to which the second sub-interface belongs is in a normal state.
4. The method of claim 1, wherein, The announcement of the first routing information corresponding to the first sub-interface to the network includes: In the network, a Border Gateway Protocol (BGP) routing message is flooded to announce the first routing information corresponding to the first sub-interface. The BGP routing message includes the first routing information and a first device identifier for identifying the first device. The first device identifier is used to enable the third device to carry the first routing information and the first device identifier in a first segment identifier (SID) list when sending data packets. Furthermore, the processing logic position of the first routing information in the first SID list is after the processing logic position of the first device identifier in the first SID list.
5. The method of claim 4, wherein, The BGP routing message also includes bandwidth information, which is used to enable the third device to determine the identifier of the first device based on the bandwidth information.
6. The method according to any one of claims 1 to 5, characterized in that, Also includes: Receive a first data packet sent by the third device, wherein the first data packet carries the first routing information; The first data packet is forwarded to the first sub-interface based on the first routing information and the local forwarding table entry.
7. The method according to claim 6, characterized in that, The first data packet also carries a first Media Access Control (MAC) address. Before announcing the first routing information corresponding to the first sub-interface to the network, or before receiving the first data packet sent by the third device, the method further includes: Send a second data packet to the third device, carrying the first routing information and the same second MAC information as the first MAC information, so that the third device can construct the first data packet based on the first routing information and the second MAC information in the second data packet.
8. The method according to claim 6, characterized in that, The first routing information is filled into the destination address field of the first data packet. The step of forwarding the first data packet to the first sub-interface based on the first routing information and local forwarding table entries includes: Obtain the first routing information from the destination address field of the first data packet; When the next hop is determined to be the first sub-interface based on the first routing information and the local forwarding table entry, the first data packet is forwarded to the first sub-interface.
9. The method according to claim 6, characterized in that, The first data packet includes a first segment routing header (SRH), the first SRH carrying the first routing information. The step of forwarding the first data packet to the first sub-interface based on the first routing information and local forwarding table entries includes: Retrieve the current segment identifier from the segment identifier list in the first SRH; When the current segment is identified as the first routing information, and the next hop is determined to be the first sub-interface based on the first routing information and the local forwarding table entry, the first data packet is forwarded to the first sub-interface.
10. A node, comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, when the processor executes the computer program, it implements the information processing method as described in any one of claims 1 to 9.
11. A computer-readable storage medium storing computer-executable instructions for performing the information processing method according to any one of claims 1 to 9.