Advertising information processing method and device, and storage medium
The method and device address the incompatibility of flexible algorithms in different IGP processes by adjusting advertisement information, ensuring proper operation and network performance.
Patent Information
- Application Number
- JP2022568793
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2020-05-26
- Filing Date
- 2020-12-30
- Publication Date
- 2024-10-07
- Estimated Expiration
- 2040-12-30
AI Technical Summary
The issue arises when flexible algorithms in different Interior Gateway Protocol (IGP) processes are incompatible, leading to improper operation of advertisement information and deteriorated network performance.
A method and device that determine whether flexible algorithms in different IGP processes are the same, and if not, adjust or omit the advertisement information accordingly to ensure compatibility and proper operation.
Ensures that advertisement information can function correctly across different IGP processes, maintaining network performance by aligning or adjusting algorithms to meet customer requirements.
Smart Images

Figure 0007562701000001 
Figure 0007562701000002 
Figure 0007562701000003
Abstract
Description
[Technical field]
[0001] This application claims priority to Chinese Patent Application No. 202010453838.1, entitled “ADVERTISEMENT INFORMATION PROCESSING METHOD AND APPARATUS, AND STORAGE MEDIUM,” filed with the State Intellectual Property Office of the People's Republic of China on May 26, 2020, which is incorporated herein by reference in its entirety.
[0002] The present invention relates to the field of communications technology, and more particularly to an advertisement information processing method and device, and a storage medium. [Background technology]
[0003] The flexible algorithm (Flex-Algo) feature is an inherent component of the segment routing-traffic engineering (SR-TE) architecture. Flex-Algo typically includes link cost style (currently includes IGP, TE and link delay etc.), algorithm priority and link constraints for participating in the path computation during the path computation. Flex-Algo can provide policies so that the shortest constraint-based path can be computed based on IGP.
[0004] Nodes in the same IGP process are deployed with the same Flex-Algo. When nodes run different IGP processes simultaneously, the nodes can import the Flex-Algo in one IGP process to the other IGP process. However, the imported Flex-Algo may not function properly in the other IGP process. As a result, the forwarding route parameters may not meet the actual requirements of the customers, and the network performance will be degraded. Summary of the Invention
[0005] The embodiment of the present application provides an advertisement information processing method to solve the problem that advertisement information imported across processes cannot work normally when the flexible algorithms deployed in different IGP processes are different.
[0006] To achieve the above objectives, the present application provides the following technical solutions:
[0007] A first aspect of the present application provides an advertisement information processing method, where the method is applied to a first node in a network, where the first node runs a first interior gateway protocol (IGP) process and a second IGP process simultaneously, and the network further includes a second node and a third node, where the second node runs the first IGP process, and the third node runs the second IGP process. The method includes: the first node receives first advertisement information sent by the second node and including a destination address of the second node and a first identifier, where the first identifier indicates a first flexible algorithm in the first IGP process. The first node can obtain related information of flexible algorithms in each IGP process executed by the first node. After receiving the first advertisement information, the first node determines whether the first identifier indicates a flexible algorithm in the second IGP process that is the same as the first flexible algorithm indicated by the first identifier in the first IGP process. When the first node determines that the first identifier does not indicate the same flexible algorithm as the first flexible algorithm in the second IGP process, the first node advertises second advertisement information including the destination address and the second identifier to the third node in the second IGP process. The second identifier is different from the first identifier, and the second identifier indicates the second flexible algorithm in the second IGP process. The second flexible algorithm may be the same as the first flexible algorithm or may be different from the first flexible algorithm. The second advertisement information is used by the third node to generate first routing information for routing to the destination address. Alternatively, the third node may advertise the second advertisement information to another node, and the other node generates the first routing information for routing to the destination address based on the second advertisement information.Alternatively, when the first node determines that the first identifier does not indicate the same flexible algorithm in the second IGP process as the first flexible algorithm, the first node may choose not to advertise the third advertisement information including the destination address in the second IGP process.
[0008] It can be seen from the above first aspect that in the process of importing advertisement information across processes, the first node may first determine whether the flexible algorithm identifier held by the imported advertisement information indicates the same flexible algorithm in the IGP process where the advertisement information is imported. If not, the first node may include an identifier of a flexible algorithm supported by the IGP process where the advertisement information is imported for advertisement, or alternatively, may choose not to advertise the advertisement information in the IGP process where the advertisement information is imported. In this way, the problem that the advertisement information imported across processes cannot operate normally when the flexible algorithms deployed in the two IGP processes are different is resolved.
[0009] Referring to the first aspect, in a first possible implementation of the first aspect, the first identifier not indicating the same flexible algorithm in the second IGP process as the first flexible algorithm includes two cases: in the first case, the first identifier exists in the second IGP process, but the third flexible algorithm indicated by the first identifier in the second IGP process is different from the first flexible algorithm; in the second case, the first identifier does not exist in the second IGP process.
[0010] Referring to the first aspect or the first possible implementation of the first aspect, in a second possible implementation of the first aspect, before the first node advertises the second advertisement information to the third node in the second IGP process, the method further includes: the first node determines a second flexible algorithm based on the first flexible algorithm, where the second flexible algorithm satisfies a preset condition. Specifically, when the first node determines that the first identifier does not indicate the same flexible algorithm as the first flexible algorithm in the second IGP process, the first node may determine a first flexible algorithm in the first IGP process based on the first identifier, and then determine a second flexible algorithm in the second IGP process that satisfies the preset condition based on a definition of the first flexible algorithm.
[0011] It can be seen from the second possible implementation of the first aspect that when the flexible algorithms deployed in the two IGP processes are different, the flexible algorithm in the second IGP process that satisfies the pre-set conditions and into which the advertising information is imported can be determined based on the flexible algorithm that the imported algorithm identifier indicates in the first IGP process, so as to meet customer requirements and ensure network performance, while ensuring that the imported advertising information can operate normally across processes.
[0012] Referring to the second possible implementation of the first aspect, in a third possible implementation of the first aspect, the preset condition includes one or both of the following: first, the similarity between the second flexible algorithm and the first flexible algorithm satisfies a first threshold. Second, the priority of the second flexible algorithm satisfies a second threshold. The similarity satisfies the first threshold includes two cases: the definitions of the second flexible algorithm and the first flexible algorithm are completely the same, and the definitions are partially the same. For example, the first flexible algorithm includes a specific definition: during route calculation, a link cost style is A, an algorithm priority is B, and a link constraint for participating in route calculation is C. The definitions are the same case may mean that the definition of the flexible algorithm satisfies during route calculation, a link cost style is A, an algorithm priority is B, and a link constraint for participating in route calculation is C. The definitions are partially the same case may mean that the first threshold is considered to be satisfied when the definition of the flexible algorithm satisfies during route calculation, a link cost style is A, an algorithm priority is B, and a link constraint for participating in route calculation is C. The priority of the second flexible algorithm satisfying the second threshold may mean that a priority order is set for the flexible algorithms deployed in the second IGP process, and when the first node determines that the first identifier is present in the second IGP process but the flexible algorithm indicated by the first identifier in the second IGP process is different from the first flexible algorithm, or when the first identifier is not present in the second IGP process, the second flexible algorithm whose priority meets the second threshold may be selected based on the pre-configured priority order. The pre-configured condition may alternatively mean both that the similarity between the second flexible algorithm and the first flexible algorithm meets the first threshold and that the priority of the second flexible algorithm meets the second threshold.
[0013] Referring to the first aspect, or any one of the first to third possible implementations of the first aspect, in a fourth possible implementation of the first aspect, after the first node receives the first advertisement information sent by the second node, the method further includes: the first node generating, in the first IGP process, second routing information for routing to the destination address based on the first advertisement information, and the first node generating, in the second IGP process, the second advertisement information based on the second routing information.
[0014] With reference to the first aspect, or any one of the first to fourth possible implementations of the first aspect, in a fifth possible implementation of the first aspect, the method further includes: when the first identifier indicates a flexible algorithm that is the same as the first flexible algorithm in a second IGP process: the first node advertises fourth advertisement information to a third node in the second IGP process, where the fourth advertisement information includes a destination address and the first identifier, and the fourth advertisement information is used to generate third routing information for routing to the destination address.
[0015] It can be seen from the fifth possible implementation of the first aspect that in the process of importing advertising information across processes, the first node may first determine whether the flexible algorithm identifier held by the imported advertising information indicates the same flexible algorithm in the IGP process where the advertising information is imported. If so, the advertising information may be directly imported and advertised, thereby supporting the import of advertising information across processes in a scenario where the flexible algorithms deployed in the two IGP processes are the same.
[0016] Referring to a fifth possible implementation of the first aspect, in a sixth possible implementation of the first aspect, after the first node receives the first advertisement information sent by the second node, the method further includes: the first node generating, in the first IGP process, fourth routing information for routing to the destination address based on the first advertisement information, and the first node generating, in the second IGP process, fourth advertisement information based on the fourth routing information.
[0017] With reference to the first aspect or any one of the first to sixth possible implementations of the first aspect, in a seventh possible implementation of the first aspect, when the method is applied to segment routing over an IPv6 data plane SRv6 network, the first identifier is included in a type-length-value TLV field of a location information locator. The destination address included in the first advertisement information may point to a locator configured by the second node. In a route advertisement phase, after configuring the locator, the second node needs to advertise the locator information to another node in the first IGP process. The locator includes a first identifier of the first flexible algorithm. For example, the first identifier may be 128, and the first identifier may be included in a locator TLV field.
[0018] With reference to the first aspect or any one of the first to sixth possible implementations of the first aspect, in an eighth possible implementation of the first aspect, when the method is applied to a Multiprotocol Label Switching (MPLS) network, the destination address included in the first advertisement information may refer to a prefix-SID configured by the second node. After configuring a prefix-SID including a first identifier of the first flexible algorithm in the route advertisement phase, the second node needs to advertise the prefix-SID information to another node in the first IGP process. The first identifier may be included in a TLV field of the prefix-SID. The second node advertises the prefix-SID information to another node (including the first node) in the first IGP process in the form of a prefix-SID TLV, and the other node may calculate routing information for routing to the prefix-SID based on the first flexible algorithm indicated by the first identifier held by the first advertisement information.
[0019] A second aspect of the present application provides an advertisement information processing device. The processing device is a first node in a network. The first node runs a first interior gateway protocol (IGP) process and a second IGP process. The network further includes a second node and a third node, where the second node runs the first IGP process and the third node runs the second IGP process. The processing device includes a receiving module, a determining module, and an advertisement module. The receiving module is configured to receive first advertisement information sent by the second node, where the first advertisement information includes a destination address of the second node and a first identifier, and the first identifier indicates a first flexible algorithm in the first IGP process. The determining module is configured to determine whether the first identifier in the first advertisement information received by the receiving module indicates a flexible algorithm that is the same as the first flexible algorithm in the second IGP process. The advertising module is configured, when the determination module determines that the first identifier does not indicate a same flexible algorithm in the second IGP process as the first flexible algorithm, to advertise, in the second IGP process, second advertising information to a third node, where the second advertising information includes a destination address and a second identifier, where the second identifier indicates, in the second IGP process, a second flexible algorithm, and the second advertising information is used to generate first routing information for routing to the destination address, or to omit advertising of third advertising information in the second IGP process, where the third advertising information includes the destination address.
[0020] Referring to the second aspect, in a first possible implementation of the second aspect, the first identifier not indicating the same flexible algorithm in the second IGP process as the first flexible algorithm includes the first identifier being present in the second IGP process, where a third flexible algorithm indicated by the first identifier in the second IGP process is different from the first flexible algorithm, or the first identifier not being present in the second IGP process.
[0021] Referring to the above second aspect or the first possible implementation of the second aspect, in a second possible implementation of the second aspect, the processing device further includes a determining module, which is configured to determine the second flexible algorithm based on the first flexible algorithm before the advertising module advertises the second advertisement information to the third node in the second IGP process, where the second flexible algorithm satisfies a preset condition.
[0022] With reference to a second possible implementation of the second aspect, in a third possible implementation of the second aspect, the preset conditions include one or both of the following: the similarity between the second flexible algorithm and the first flexible algorithm satisfies a first threshold, and the priority of the second flexible algorithm satisfies a second threshold.
[0023] With reference to the second aspect or any one of the first to third possible implementations of the second aspect, in a fourth possible implementation of the second aspect, the processing device further includes a generating module, which is configured to generate, in the first IGP process, second routing information for routing to the destination address based on the first advertising information after the receiving module receives the first advertising information sent by the second node, and to generate, in the second IGP process, the second advertising information based on the second routing information.
[0024] With reference to the second aspect, or any one of the first to fourth possible implementations of the second aspect, in a fifth possible implementation of the second aspect, the advertising module is further configured to: advertise, when the determination module determines that the first identifier indicates the same flexible algorithm as the first flexible algorithm in the second IGP process, fourth advertising information to a third node in the second IGP process, where the fourth advertising information includes a destination address and the first identifier, and the fourth advertising information is used to generate third routing information for routing to the destination address.
[0025] Referring to a fifth possible implementation of the second aspect, in a sixth possible implementation of the second aspect, the generating module is further configured to, after the receiving module receives the first advertising information sent by the second node, generate, in the first IGP process, fourth routing information for routing to the destination address based on the first advertising information, and generate, in the second IGP process, the fourth advertising information based on the fourth routing information.
[0026] With reference to the second aspect or any one of the first to sixth possible implementations of the second aspect, in a seventh possible implementation of the second aspect, when the processing device is used in segment routing over an IPv6 data plane SRv6 network, the first identifier is included in a type-length-value TLV field of a location information locator.
[0027] With reference to the second aspect or any one of the first to sixth possible implementations of the second aspect, in an eighth possible implementation of the second aspect, when the processing device is used in a Multiprotocol Label Switching (MPLS) network, the first identifier is included in a Type-Length-Value TLV field of a prefix segment identifier prefix-SID.
[0028] A third aspect of the present application provides a network device, the network device including a processor and a memory, the memory configured to store computer-readable instructions (also called computer programs), and the processor configured to read the computer-readable instructions to implement the method provided in the first aspect and any implementation of the first aspect.
[0029] In some implementations, the network device further includes a transceiver configured to receive and transmit data.
[0030] A fourth aspect of the present application provides a computer storage medium. The computer storage medium may be non-volatile. The computer storage medium stores computer readable instructions. When the computer readable instructions are executed by a processor, the method of the first aspect or any possible implementation of the first aspect is performed.
[0031] In an embodiment of the present invention, an advertisement information processing method is used. In the process of importing advertisement information across processes, the first node may first determine whether the flexible algorithm identifier held by the imported advertisement information indicates the same flexible algorithm in the IGP process where the advertisement information is imported. If not, the first node may include an identifier of a flexible algorithm supported by the IGP process where the advertisement information is imported into the advertisement information for advertisement, or may choose not to advertise the advertisement information in the IGP process where the advertisement information is imported. In this way, the problem that the advertisement information imported across processes cannot operate normally when the flexible algorithms deployed in the two IGP processes are different is solved. [Brief description of the drawings]
[0032] [Figure 1] FIG. 1 is a schematic diagram of an architecture of a communication system according to an embodiment of the present application;
[0033] [Diagram 2] FIG. 1 is a schematic diagram of an embodiment of an advertisement information processing method according to an embodiment of the present application.
[0034] [Diagram 3] FIG. 2 is a schematic diagram of another embodiment of an advertisement information processing method according to an embodiment of the present application;
[0035] [Figure 4] FIG. 2 is a schematic diagram of the structure of a network device according to an embodiment of the present application;
[0036] [Diagram 5] 1 is a schematic diagram of a structure of an advertisement information processing device according to an embodiment of the present application; DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0037] In order to make the objectives, technical solutions and advantages of the present invention clearer, the following describes the embodiments of the present application with reference to the accompanying drawings. It is clear that the described embodiments are only a part, not all, of the embodiments of the present invention. When new application scenarios emerge, those skilled in the art can recognize that the technical solutions provided in the embodiments of the present invention can also be applied to similar technical problems.
[0038] In the specification, claims, and accompanying drawings of this application, the terms "first", "second", etc. are intended to distinguish between similar objects and do not necessarily indicate a specific order or sequence. It should be understood that such designated data are interchangeable in appropriate circumstances such that the embodiments described herein can be implemented in other orders than the order illustrated or described herein. Furthermore, the terms "include", "have", and any variations thereof are meant to cover a non-exclusive inclusion, e.g., a process, method, system, product, or device that includes a list of steps or modules is not necessarily limited to those explicitly listed steps or modules, but may include other steps or modules that are not explicitly listed or inherent to such process, method, system, product, or device. The names or numbers of steps in this application do not imply that the steps in a method procedure must be performed in the chronological / logical order indicated by the names or numbers. The order of execution of steps in a named or numbered procedure can be changed based on the technical objective to be achieved, so long as the same or similar technical effect can be achieved. The division into modules in this application is a logical division. In actual applications, there may be other division methods. For example, multiple modules may be combined or integrated into another system, or some features may be ignored or not implemented. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be implemented through some interfaces. Indirect coupling or communication connection between modules may be implemented in an electrical or other similar form. This is not limited in this application. In addition, modules or sub-modules described as separate components may or may not be physically separated, may or may not be a physical module, or may or may not be distributed among multiple circuit modules. Some or all of the modules may be selected according to actual requirements to implement the objectives of the solution of the present application.
[0039] Segment routing (SR) is a tunneling technique based on the source-routed forwarding mode. Based on SR, a network path is divided into segments, and segment identifiers (segment IDs, SIDs) are assigned to the segments and to the forwarding nodes in the network. The segments and network nodes are sequentially arranged in a segment list to form a forwarding path. Based on SR, the segment list, which identifies the forwarding path, is encoded in the data packet header for transmission along with the data packet. SR based on multi-protocol label switching (MPLS) is called SR-MPLS for short. SR based on IPv6 is called Internet Protocol version 6 segment routing (IPv6SR) or segment routing over IPv6 data plane (SRv6).
[0040] Specifically, in an SR-MPLS network, the SID is encoded into an MPLS label or an index in the MPLS label, and the SR route is encoded into an MPLS label stack in an MPLS data packet. A prefix segment is used to identify a destination address prefix in a network. The prefix segment is propagated to other nodes in the network based on an interior gateway protocol (IGP) and is globally visible. The prefix segment is identified by a prefix-SID. In an SRv6 network, a segment routing header (SRH) is inserted into an IPv6 packet. The SRH holds a SID list that holds the IP address of each node that needs to be included on the forwarding path. A transit node can implement hop-by-hop forwarding by continuously updating the destination address and offsetting the address stack based on the SID list. The SID list and the segment list have the same meaning. In an SRv6 network, a SID is a 128-bit IPv6 address. The SID includes three parts: locator, function, and argument. The locator is usually used for addresses (related to routing) and indicates the destination address corresponding to a node. In the route advertisement phase, the locator can be propagated to other nodes in the network based on the IGP protocol and is globally visible. The function indicates the function (e.g., topology or service) related to the SID. The argument is optional and indicates the parameters for performing the operation related to the function. For the specific contents related to SRv6 and SR-MPLS, reference may be made to the related standard technical documents in the prior art for understanding. Details are not described in this specification.
[0041] Common IGP protocols include Routing Information Protocol (RIP), open shortest path first (OSPF) protocol, and intermediate system to intermediate system (IS-IS) routing protocol. In traditional IGPs, several parameters are used to calculate the shortest path for routing data packets. For example, in OSPF protocol, the COST value is used to calculate the shortest path. However, many problems can occur when the shortest path is selected for every packet. Segment routing-traffic engineering (SR-TE) can include other constraints on the path calculation based on traditional IGP path calculation, so that packets in the network can be transmitted via non-shortest paths. Flexible algorithm (Flex-Algo) feature is an inherent component of SR-TE. Flexible algorithm can provide policies so that the shortest constraint-based path can be calculated based on IGP. The Internet Assigned Numbers Authority (IANA) defines the type values for different IGP algorithms. Algorithms 0 through 127 are reserved for standardization by the Institute of Electrical and Electronics Engineers (IEEE). Currently, two standard algorithm identifiers are defined in request for comments (RFC) 8402: algorithm 0 (the SPF algorithm based on IGP link metrics) and algorithm 1 (the strict SPF algorithm based on IGP link metrics).Algorithms 128 to 255 can be customized by operators, i.e., algorithms 128 to 255 are Flex-Algos, also called SR IGP flexible algorithms. Flex-Algos usually include link cost style (currently including IGP, TE and link delay, etc.), algorithm priority, and link constraints for participating in route computation during route computation. Link constraints refer to constraints that need to be respected during route computation for each locator or prefix-SID that holds a Flex-Algo.
[0042] The SRv6 network is used as an example. In the route advertisement phase in the Flex-Algo scenario, SRv6 needs to be enabled on each node in the SRv6 network, and a locator needs to be configured. Each locator may hold one Flex-Algo. After configuring the locator, the node uses the IGP protocol to advertise the locator information in the form of a locator TLV to another node in the SRv6 network. When another node needs to find the route included in the locator, it needs to use the Flex-Algo held in the locator to calculate the route to the route included in the locator. The locator information in an IGP process can be imported into another IGP process. However, in the current process of importing locator information across processes, the problem that the Flex-Algos placed in the two IGP processes may be different is not considered, and therefore the locator information imported across processes cannot operate in the IGP process where the locator information was imported. As a result, the forwarding route parameters do not meet the actual requirements of the customers, and the network performance is degraded. In order to avoid the above case, the embodiment of the present application provides an advertisement information processing method to solve the inter-process import problem of locator information or prefix-SID when the Flex-Algos deployed in two IGP processes are different, and ensure that when the Flex-Algos deployed in two IGP processes are different, the locator information or prefix-SID information can still work normally after being imported across processes. The present application further provides a corresponding device. The following provides a separate description.
[0043] First, the network architecture in the embodiment of the present application is described. Figure 1 is a schematic diagram of a network architecture according to an embodiment of the present application. The network 10 shown in Figure 1 uses segment routing (SR) technology and can be an SRv6 network or an SR-MPLS network, which is not limited in this embodiment of the present application.
[0044] As shown in FIG. 1, the network 10 may include multiple nodes, and an IGP protocol process (IGP process for short) runs on each node. The IGP process in this embodiment of the present application may be a RIP process, an OSPF process, or an IS-IS process, etc. FIG. 1 shows two IGP processes. The first IGP process includes node 1, node 2, and node 3. That is, node 1, node 2, and node 3 run the first IGP process. The second IGP process includes node 1, node 4, and node 5. That is, node 1, node 4, and node 5 run the second IGP process. It should be understood that the network 10 may further include more IGP processes, each IGP process may further include more nodes, and different connection relationships exist. In the scenario shown in FIG. 1, only two IGP processes and node 1, node 2, node 3, node 4, and node 5 are used as an example, which should not be construed as a limitation to the present application. For example, in addition to the first IGP process and the second IGP process, the node 1 may run another IGP process. In addition to the first IGP process, the node 2 or the node 3 may run another IGP process, for example, a third IGP process. Only the first IGP process and the second IGP process included in the network 10 are used as an example. The first IGP process may be any one of an RTP process, an OSPF process, or an IS-IS process, and the second IGP process may also be any one of an RTP process, an OSPF process, or an IS-IS process. The first IGP process and the second IGP process may be the same IGP protocol process, or may be different IGP protocol processes. For example, the first IGP process is an IS-IS process, and the second IGP process is an OSPF process. This is not limited in this embodiment of the present application.
[0045] In this embodiment of the present application, one or more flexible algorithms may be deployed in both the first IGP process and the second IGP process. Each flexible algorithm corresponds to a specific algorithm ID and includes a specific definition. The number of flexible algorithms deployed in the first IGP process and the second IGP process may be the same or different. When flexible algorithms with the same algorithm ID are deployed in the first IGP process and the second IGP process, the definition of the flexible algorithm indicated by the algorithm ID in the first IGP process may be the same or different from the definition of the flexible algorithm indicated by the algorithm ID in the second IGP process. This is not limited in this embodiment of the present application. For example, three flexible algorithms with algorithm IDs 128, 129, and 130 are deployed in the first IGP process, and two flexible algorithms with algorithm IDs 128 and 136 are deployed in the second IGP process. ID 128 indicates the first flexible algorithm in the first IGP process. The first flexible algorithm includes specific definitions: during route computation, link cost style A, algorithm priority B, and link constraint C for participating in route computation. 128 is also deployed in the second IGP process, and 128 indicates the first flexible algorithm in the second IGP process, i.e., 128 is specifically defined as a flexible algorithm of link cost style A, algorithm priority B, and link constraint C for participating in route computation during route computation. Alternatively, 128 may indicate a second flexible algorithm in the second IGP process, the definition of which is different from that of the first flexible algorithm. The second flexible algorithm includes specific definitions: during route computation, link cost style A, algorithm priority D, and link constraint F for participating in route computation.
[0046] Based on the above network 10, the embodiment of the present application provides an advertisement information processing method shown in FIG.
[0047] FIG. 2 is a schematic diagram of an embodiment of a communication information processing method according to an embodiment of the present application.
[0048] Referring to FIG. 2, an embodiment of an advertisement information processing method provided in an embodiment of the present application may include the following steps.
[0049] 201. A first node receives first advertisement information sent by a second node in a first IGP process, the first advertisement information including a destination address of the second node and a first identifier, the first identifier indicating a first flexible algorithm in the first IGP process.
[0050] In this embodiment of the present application, both the first node and the second node run a first IGP process. The first node is a node that runs multiple IGP processes simultaneously. For example, the first node can be node 1 in FIG. 1, which runs both the first IGP process and the second IGP process.
[0051] In the first IGP process, the second node first sends first advertisement information to the first node according to an IGP protocol, the first advertisement information includes a destination address of the second node and a first identifier, and the first identifier indicates a first flexible algorithm in the first IGP process.
[0052] Optionally, in an SRv6 network, the destination address included in the first advertisement information in this embodiment of the present application may point to a locator configured by the second node. In the route advertisement phase, after configuring the locator, the second node needs to advertise the locator information to another node in the first IGP process. The locator includes a first identifier of a first flexible algorithm. For example, the first identifier may be 128, and the first identifier may be included in a Locator TLV field. The second node advertises the locator information in the form of a Locator TLV to another node (including the first node) in the first IGP process, and the other node may calculate routing information for routing to the locator based on the first flexible algorithm indicated by the first identifier held by the first advertisement information.
[0053] Optionally, in an SR-MPLS network, the destination address included in the first advertisement information in this embodiment of the present application may point to a prefix-SID configured by the second node. After configuring a prefix-SID carrying a first identifier of the first flexible algorithm in the route advertisement phase, the second node needs to advertise the prefix-SID information to another node in the first IGP process. The first identifier may be included in a TLV field of the prefix-SID. The second node advertises the prefix-SID information in the form of a prefix-SID TLV to another node (including the first node) in the first IGP process, and the other node may calculate routing information for routing to the prefix-SID based on the first flexible algorithm indicated by the first identifier carried by the first advertisement information.
[0054] It should be noted that in this embodiment of the present application, in addition to the destination address and the first identifier of the second node, the first advertising information may include other information. Whether the first advertising information further includes other information, the specific content of the other information, and the specific form of the first advertising information are not limited in this embodiment of the present application.
[0055] 202. The first node determines whether the first identifier indicates the same flexible algorithm in the second IGP process as the first flexible algorithm.
[0056] In this embodiment of the present application, the first node can obtain information about all flexible algorithms deployed in all IGP processes executed by the first node from the first node. In this embodiment of the present application, after receiving the first advertisement information sent by the second node in the first IGP process, the first node first determines whether the first identifier indicates the same flexible algorithm as the first flexible algorithm in the second IGP process. Specifically, in this embodiment of the present application, whether the first identifier indicates the same flexible algorithm as the first flexible algorithm in the second IGP process includes the following two cases:
[0057] Case 1: A first identifier exists in a flexible algorithm deployed in a second IGP process, but the flexible algorithm indicated by the first identifier in the second IGP process is different from the first flexible algorithm indicated by the first identifier in the first IGP process. Specifically, the definitions of the two algorithms are different. For example, a flexible algorithm with an algorithm ID of "128" is deployed in both the first IGP process and the second IGP process. However, "128" indicates the first flexible algorithm in the first IGP process. The first flexible algorithm is specifically defined as follows: during route computation, link cost style A, algorithm priority B, and link constraint C for participating in route computation. The definition of the flexible algorithm indicated by "128" in the second IGP process is different from that of the first flexible algorithm, specifically including: during route computation, link cost style A, algorithm priority C, and link constraint F for participating in route computation.
[0058] Case 2: The Flexible Algorithm deployed in the second IGP process does not contain the first identifier, e.g., a first Flexible Algorithm with algorithm ID "128" is deployed in the first IGP process, but a Flexible Algorithm with algorithm ID "128" does not exist in the second IGP process.
[0059] In this embodiment of the present application, after receiving the first advertisement information sent by the second node in the first IGP process, the first node determines whether the second IGP process satisfies the above two cases. Specifically, the first node may first determine whether the first identifier exists in the second IGP process. If the first identifier does not exist in the second IGP process, the above case 2 is satisfied. If the first identifier exists in the second IGP process, it is further determined whether the flexible algorithm indicated by the first identifier in the second IGP process is the same as the first flexible algorithm. If the flexible algorithm is not the same as the first flexible algorithm, the above case 1 is satisfied.
[0060] 203. When the first identifier does not indicate a flexible algorithm in the second IGP process that is the same as the first flexible algorithm, the first node advertises the second advertisement information to the third node in the second IGP process. The second advertisement information includes a destination address and a second identifier, the second identifier indicates a second flexible algorithm in the second IGP process, and the second advertisement information is used to generate the first routing information for routing to the second node. Alternatively, when the first identifier does not indicate a flexible algorithm in the second IGP process that is the same as the first flexible algorithm, the first node omits advertising the third advertisement information including the destination address in the second IGP process.
[0061] In this embodiment of the present application, when the first node determines that the first identifier does not indicate the same flexible algorithm in the second IGP process as the first flexible algorithm, i.e., when the flexible algorithm deployed in the second IGP process meets case 1 or case 2 in stage 202, the first node may choose to advertise the second advertisement information to the third node in the second IGP process. The second advertisement information includes a destination address of the second node and a second identifier. The second identifier indicates the second flexible algorithm in the second IGP process.
[0062] Specifically, in this embodiment of the present application, after the first node determines that the first identifier does not indicate the same flexible algorithm as the first flexible algorithm in the second IGP process, the first node may first determine a second flexible algorithm from one or more flexible algorithms deployed in the second IGP process. Then, the first node generates second advertisement information, which holds the second identifier of the second flexible algorithm, and finally advertises the second advertisement information to the third node in the second IGP process. It should be noted that in this embodiment of the present application, the second identifier is an identifier different from the first identifier. The second flexible algorithm may be the same algorithm as the first flexible algorithm, or may be an algorithm different from the first flexible algorithm. This is not limited in this embodiment of the present application. In addition, when the first identifier exists in the second IGP process, the second flexible algorithm may alternatively be the flexible algorithm indicated by the first identifier in the second IGP process. This case is not excluded in this embodiment of the present application. The manner of determining the second flexible algorithm is also not specifically limited in this embodiment of the present application. In this embodiment of the present application, the third node may be any node in the second IGP process. The third node may generate first routing information for routing to the second node based on the second advertisement information advertised by the first node and using the second flexible algorithm indicated by the second identifier held by the second advertisement information.
[0063] Alternatively, in this embodiment of the present application, when the first node determines that the first identifier does not indicate the same flexible algorithm in the second IGP process as the first flexible algorithm, i.e., when the flexible algorithm deployed in the second IGP process meets case 1 or case 2 in stage 202, the first node may choose not to advertise the third advertisement information including the destination address of the second node, i.e., in the two cases, the first node may choose not to import the destination address of the second node in the first IGP process into the second IGP process.
[0064] In this embodiment of the present application, in the process of importing advertisement information across processes, the first node may first determine whether the flexible algorithm identifier held by the imported advertisement information indicates the same flexible algorithm in the IGP process where the advertisement information is imported. If the identifier does not indicate the same flexible algorithm, the first node may include an identifier of a flexible algorithm supported by the IGP process where the advertisement information is imported into the advertisement information for advertisement, or may choose not to advertise the advertisement information in the IGP process where the advertisement information is imported. In this way, the problem that the advertisement information imported across processes cannot operate normally when the flexible algorithms deployed in the two IGP processes are different is solved.
[0065] FIG. 3 is a schematic diagram of another embodiment of the advertisement information processing method according to an embodiment of the present application.
[0066] Referring to FIG. 3, another embodiment of the advertisement information processing method provided in the embodiment of the present application may include the following steps.
[0067] 301. A first node receives first advertisement information sent by a second node in a first IGP process, the first advertisement information including a destination address of the second node and a first identifier, the first identifier indicating a first flexible algorithm in the first IGP process.
[0068] For understanding this embodiment of the present application, please refer to step 201 in Figure 2. Details will not be described again here.
[0069] 302. The first node generates, in a first IGP process, first routing information for routing from the first node to a destination address based on the first advertisement information.
[0070] In this embodiment of the present application, after a first node receives first advertisement information sent by a second node in a first IGP process, the first node uses a first flexible algorithm to calculate and generate first routing information for routing to a destination address.
[0071] For example, in an SRv6 network, when the destination address of a second node in the first advertisement information is a locator configured by the second node, the first node calculates first routing information for routing to the locator using a first flexible algorithm indicated in the first IGP process by a first identifier included in a TLV field of the locator.
[0072] For example, in an SR-MPLS network, when the destination address of a second node in the first advertisement information is a prefix-SID configured by the second node, the first node calculates first routing information for routing to the prefix-SID using a first flexible algorithm indicated in the first IGP process by a first identifier included in the TLV field of the prefix-SID.
[0073] 303. The first node determines whether the first identifier exists in the second IGP process.
[0074] In this embodiment of the present application, after receiving the first advertisement information sent by the second node, the first node determines whether the first identifier exists in the second IGP process. For example, the first identifier included in the first advertisement information is an algorithm ID "128", and after receiving the first advertisement information sent by the second node, the first node determines whether a flexible algorithm with an algorithm ID of "128" exists in the second IGP process.
[0075] For understanding this embodiment of the present application, one may also refer to the relevant content of step 202 in Fig. 2, and details will not be described again here.
[0076] It should be noted that the order of steps 302 and 303 is not limited in this embodiment of the present application.
[0077] 304. If the first identifier exists in the second IGP process, the first node determines whether the first identifier indicates the same flexible algorithm in the second IGP process as the first flexible algorithm.
[0078] In this embodiment of the present application, when the first node determines that the first identifier exists in the second IGP process, the first node determines whether the first identifier indicates the same flexible algorithm in the second IGP process as the first flexible algorithm.
[0079] For understanding this embodiment of the present application, please refer to the relevant content of Case 1 in step 202 in Figure 2. Details will not be described again here.
[0080] 305. If the first identifier exists in the second IGP process but the flexible algorithm indicated by the first identifier in the second IGP process is different from the first flexible algorithm or the first identifier does not exist in the second IGP process, the first node advertises second advertisement information to the third node in the second IGP process. The second advertisement information includes a destination address of the second node and a second identifier. The second identifier indicates a second flexible algorithm in the second IGP process, the second flexible algorithm satisfies a preset condition, and the second advertisement information is used to generate second routing information for routing to the destination address.
[0081] In this embodiment of the present application, when the first node determines that the first identifier exists in the second IGP process but the flexible algorithm indicated by the first identifier in the second IGP process is different from the first flexible algorithm, or when the first identifier does not exist in the second IGP process, the first node may choose to advertise the second advertisement information to the third node in the second IGP process. The second advertisement information includes a destination address of the second node and a second identifier. The second identifier indicates a second flexible algorithm in the second IGP process, and the second flexible algorithm satisfies a preset condition. It is noted that the preset condition in this embodiment of the present application includes one or both of the following conditions: the similarity between the second flexible algorithm and the first flexible algorithm satisfies a first threshold, and the priority of the second flexible algorithm satisfies a second threshold.
[0082] Optionally, in this embodiment of the present application, the second Flexible Algorithm satisfying the preset condition may mean that the similarity between the second Flexible Algorithm and the first Flexible Algorithm meets a first threshold. In this embodiment of the present application, the similarity between the second Flexible Algorithm and the first Flexible Algorithm meets a first threshold includes two cases: the case where the definitions of the first Flexible Algorithm and the second Flexible Algorithm are completely the same, and the case where the definitions of the first Flexible Algorithm and the second Flexible Algorithm are partially the same.
[0083] If satisfying the first threshold means that the definitions of the second flexible algorithm and the first flexible algorithm are completely the same, when the first node determines that the first identifier exists in the second IGP process but the flexible algorithm indicated by the first identifier in the second IGP process is different from the first flexible algorithm or when the first identifier does not exist in the second IGP process, the first node may determine based on the definition of the first flexible algorithm, from the one or more flexible algorithms deployed in the second IGP process, whether there exists a second flexible algorithm having a definition that is completely the same as the definition of the first flexible algorithm. When it is determined that the second flexible algorithm exists, the first node generates second advertisement information carrying a second identifier of the second flexible algorithm and advertises the second advertisement information in the second IGP process.
[0084] If satisfying the first threshold means that the definitions of the third flexible algorithm and the first flexible algorithm are partially the same, when the first node determines that the first identifier exists in the second IGP process, but the flexible algorithm indicated by the first identifier in the second IGP process is different from the first flexible algorithm, or when the first identifier does not exist in the second IGP process, the first node may determine whether a second flexible algorithm exists based on a specific rule of similarity that satisfies the first threshold specified in the pre-set condition. For example, the first flexible algorithm includes a specific definition: during route computation, link cost style A, algorithm priority B, and link constraint C for participating in route computation. Satisfying the first threshold means that the definition of the flexible algorithm satisfies that during route computation, the link cost style is A and the algorithm priority is B. In this case, the first node may determine whether a second flexible algorithm that satisfies the condition exists in the flexible algorithm deployed in the second IGP process. When it is determined that the second flexible algorithm exists, the first node generates second advertisement information carrying a second identifier of the second flexible algorithm, and advertises the second advertisement information in the second IGP process. It should be noted that there may be another rule for the similarity to meet the first threshold, which is not limited in this embodiment of the present application.
[0085] Optionally, in this embodiment of the present application, the second flexible algorithm satisfying the preset condition may mean that the priority of the second flexible algorithm meets a second threshold. For example, a priority order is set for flexible algorithms deployed in the second IGP process. When the first node determines that the first identifier exists in the second IGP process, but the flexible algorithm indicated by the first identifier in the second IGP process is different from the first flexible algorithm, or when the first identifier does not exist in the second IGP process, the first node may alternatively select a second flexible algorithm whose priority meets the second threshold based on the preset priority order, generate second advertisement information carrying the second identifier of the second flexible algorithm, and advertise the second advertisement information in the second IGP process.
[0086] Optionally, in this embodiment of the present application, the second flexible algorithm satisfying the preset condition may alternatively mean that the similarity between the second flexible algorithm and the first flexible algorithm satisfies a first threshold and the priority of the second flexible algorithm satisfies a second threshold.
[0087] It should be noted that the pre-set condition in this embodiment of the present application may alternatively be another rule. The second flexible algorithm may have a corresponding relationship with the first flexible algorithm, or may be unrelated to the first flexible algorithm, which is not limited in this embodiment of the present application. For example, one or more flexible algorithms are set according to the requirements of a customer. When the first node determines that the first identifier exists in the second IGP process, but the flexible algorithm indicated by the first identifier in the second IGP process is different from the first flexible algorithm, or when the first identifier does not exist in the second IGP process, the first node may determine a second flexible algorithm according to the requirements of the customer, generate second advertisement information carrying the second identifier of the second flexible algorithm, and advertise the second advertisement information in the second IGP process.
[0088] Alternatively, in this embodiment of the present application, if the first identifier exists in the second IGP process but the first node determines that the flexible algorithm indicated by the first identifier in the second IGP process is different from the first flexible algorithm, or if the first identifier does not exist in the second IGP process, the first node may choose not to advertise the third advertisement information including the destination address of the second node in the second IGP process.
[0089] For understanding this embodiment of the present application, please refer to the relevant content of step 203 in Figure 2, and details will not be described again here.
[0090] It should be noted that in this embodiment of the present application, the second advertisement information may be generated based on the first routing information generated by the first node in stage 302. After determining the second flexible algorithm that satisfies the preset condition, the first node generates the second advertisement information, which holds a second identifier of the second flexible algorithm, for routing from the first node to a destination address and based on the first routing information generated in the first IGP process.
[0091] 306. If the first identifier exists in the second IGP process and the first identifier indicates the same flexible algorithm as the first flexible algorithm in the second IGP process, the first node advertises fourth advertisement information to the third node in the second IGP process, where the fourth advertisement information includes a destination address of the second node and the first identifier, and the fourth advertisement information is used to generate third routing information for routing to the second node.
[0092] In this embodiment of the present application, when the first node determines that the first identifier exists in the second IGP process and the first identifier indicates the same flexible algorithm as the first flexible algorithm in the second IGP process, the first node advertises fourth advertisement information to the third node in the second IGP process, where the fourth advertisement information holds a destination address and the first identifier of the second node. The third node may calculate third routing information for routing to the destination address based on the first flexible algorithm.
[0093] It should be noted that in this embodiment of the present application, the fourth advertisement information may be generated based on the first routing information generated by the first node in stage 302. After determining the first flexible algorithm indicated by the first identifier in the first IGP process and the flexible algorithm that is the same as the first flexible algorithm and indicated by the first identifier in the second IGP process, the first node generates second advertisement information, which holds the first identifier, for routing from the first node to a destination address and based on the first routing information generated in the first IGP process.
[0094] In this embodiment of the present application, in the process of importing advertisement information across processes, the first node may first determine whether the flexible algorithm identifier held by the imported advertisement information indicates the same flexible algorithm in the IGP process where the advertisement information is imported. If the flexible algorithm identifier indicates the same flexible algorithm, the advertisement information may be directly imported and advertised. If the flexible algorithm identifier does not indicate the same flexible algorithm, the first node may include an identifier of a flexible algorithm supported by the IGP process where the advertisement information is imported into the advertisement information for advertisement, or may choose not to advertise the advertisement information in the IGP process where the advertisement information is imported. In this way, the problem that the advertisement information imported across processes cannot operate normally when the flexible algorithms deployed in the two IGP processes are different is solved.
[0095] The above describes in detail the advertisement information processing method provided in the embodiment of the present application. The advertisement information processing device provided in the embodiment of the present application will be described below. Please refer to Figure 4.
[0096] To implement the aforementioned functions, it can be understood that the aforementioned first node includes corresponding hardware structures and / or software modules for performing various functions. Those skilled in the art should easily recognize that, in combination with the exemplary modules and algorithm steps described in the embodiments disclosed herein, the present application can be implemented by hardware or by a combination of hardware and computer software. Whether the functions are performed by hardware or by hardware driven by computer software depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be considered to go beyond the scope of the present application.
[0097] In terms of hardware structure, the first node may be implemented by a physical device or jointly implemented by multiple physical devices, or the first node may be a logical function module inside a physical device, which is not specifically limited in this embodiment of the present application.
[0098] For example, the first node in Figures 2 and 3 may be implemented using the network device 400 in Figure 4. The network device 400 may be a first node in a network. The first node runs a first Interior Gateway Protocol (IGP) process and a second IGP process. The network further includes a second node and a third node, where the second node runs the first IGP process and the third node runs the second IGP process. The network device 400 includes a processor 410, a memory 420, and a transceiver 430. The transceiver 430 is configured to communicate with another device or a communication network.
[0099] The processor 410 may be a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (server IC), or one or more integrated circuits configured to control program execution of the solutions of the present application.
[0100] The memory 420 may be a read-only memory (ROM) or another type of static storage device capable of storing static information and instructions, a random access memory (RAM) or another type of dynamic storage device capable of storing information and instructions, or may be an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or another compact disc storage device, an optical disc storage device (including a compact optical disc, laser disc, optical disc, digital versatile disc, or Blu-ray disc, etc.), a magnetic disk storage medium or another magnetic storage device, or any other medium that can be used to hold or store the expected program code in the form of instructions or data structures and that can be accessed by a computer. However, the memory 420 is not so limited. The memory 420 may exist independently and be connected to the processor 410. The memory 420 may alternatively be integrated into the processor 410.
[0101] The memory 420 is configured to store computer-executable instructions for executing the solution of the present application, and the processor 410 controls the execution. The processor 410 is configured to execute the computer-executable instructions stored in the memory 420 to implement the advertisement information processing method provided in the embodiment of the present application.
[0102] Specifically, when the network device 400 is the first node in FIG. 2 and FIG. 3, the processor 410 and determining whether the first identifier indicates a same flexible algorithm as the first flexible algorithm in the second IGP process; and, when the first identifier does not indicate a same flexible algorithm as the first flexible algorithm in the second IGP process, advertising second advertisement information to a third node in the second IGP process, where the second advertisement information includes a destination address and a second identifier, where the second identifier indicates a second flexible algorithm in the second IGP process, and the second advertisement information is used for generating first routing information for routing to the destination address; or, omitting advertising third advertisement information in the second IGP process, where the third advertisement information includes a destination address. For specific implementation, please refer to the detailed description of steps 201 to 203 in the embodiment shown in Figure 2 and the detailed description of steps 301 to 306 in the embodiment shown in Figure 3. Details will not be described again here.
[0103] Optionally, the computer-executable instructions in this embodiment of the present application may also be referred to as application program code, which is not specifically limited in this embodiment of the present application.
[0104] In this embodiment of the present application, the functional modules of the network device may be obtained through division according to the above-mentioned method example. For example, the functional modules may be obtained through division corresponding to various functions, or two or more functions may be integrated into one processing module. The integrated module may be implemented in the form of hardware, or may be implemented in the form of a software functional module. It should be noted that in this embodiment of the present application, the division into modules is an example, and is merely a division into logical functions. In actual implementation, another division scheme may be used.
[0105] For example, when the functional modules are divided in an integrated manner, Figure 5 is a schematic diagram of the structure of an advertisement information processing device 500. The processing device 500 corresponds to the first node in the embodiment of Figures 2 and 3.
[0106] Referring to FIG. 5, an advertisement information processing apparatus 500 provided in an embodiment of the present application may include: a receiving module 501, a determining module 502, and an advertisement module 503.
[0107] The receiving module 501 is configured to receive first advertisement information sent by a second node, where the first advertisement information includes a destination address of the second node and a first identifier, and the first identifier indicates a first flexible algorithm in a first IGP process. For specific implementation, please refer to the detailed description of step 201 of the embodiment shown in Fig. 2 and the detailed description of step 301 of the embodiment shown in Fig. 3. Details will not be described again here.
[0108] The determining module 502 is configured to determine whether the first identifier in the first advertisement information received by the receiving module 501 indicates a flexible algorithm that is the same as the first flexible algorithm in the second IGP process. For specific implementation, please refer to the detailed description of step 202 in the embodiment shown in Fig. 2 and the detailed description of steps 303 and 304 in the embodiment shown in Fig. 3. Details will not be described again here.
[0109] The advertising module 503 is configured to, when the determining module 502 determines that the first identifier does not indicate the same flexible algorithm as the first flexible algorithm in the second IGP process, advertise second advertising information to a third node in the second IGP process, where the second advertising information includes a destination address of the second node and a second identifier, where the second identifier indicates the second flexible algorithm in the second IGP process, and the second advertising information is used to generate first routing information for routing to the destination address, or omit advertising the third advertising information including the destination address in the second IGP process. For specific implementation, please refer to the detailed description of step 203 of the embodiment shown in Fig. 2 as well as the detailed description of step 305 of the embodiment shown in Fig. 3. Details will not be described again here.
[0110] In this embodiment of the present application, in the process of importing advertisement information across processes, the first node may first determine whether the flexible algorithm identifier held by the imported advertisement information indicates the same flexible algorithm in the IGP process where the advertisement information is imported. If not, the first node may include an identifier of a flexible algorithm supported by the IGP process where the advertisement information is imported into the advertisement information for advertisement, or may choose not to advertise the advertisement information in the IGP process where the advertisement information is imported. In this way, the problem that the advertisement information imported across processes cannot operate normally when the flexible algorithms deployed in the two IGP processes are different is solved.
[0111] Optionally, in an embodiment, the first identifier not indicating the same flexible algorithm as the first flexible algorithm in the second IGP process includes: the first identifier exists in the second IGP process, and a third flexible algorithm indicated by the first identifier in the second IGP process is different from the first flexible algorithm, or the first identifier does not exist in the second IGP process. For specific implementation, please refer to the detailed description of step 202 of the embodiment shown in Fig. 2 and the detailed description of steps 303 and 304 of the embodiment shown in Fig. 3. Details will not be described again here.
[0112] Optionally, in an embodiment, the processing device 500 further includes a determining module 504. The determining module 504 is configured to determine a second flexible algorithm based on the first flexible algorithm before the advertising module 503 advertises the second advertising information to a third node in the second IGP process, where the second flexible algorithm satisfies a preset condition. For specific implementation, please refer to the detailed description of step 305 of the embodiment shown in Fig. 3. Details will not be described again here.
[0113] Optionally, in an embodiment, the preset conditions include one or both of the following: the similarity between the second flexible algorithm and the first flexible algorithm meets a first threshold, and the priority of the second flexible algorithm meets a second threshold. For specific implementation, please refer to the detailed description of step 305 of the embodiment shown in Fig. 3. Details will not be described again here.
[0114] Optionally, in the embodiment, the processing device 500 further includes a generating module 505. The generating module 505 is configured to generate, in the first IGP process, second routing information for routing to a destination address based on the first advertising information after the receiving module 501 receives the first advertising information sent by the second node, and generate, in the second IGP process, second advertising information based on the second routing information. For specific implementation, please refer to the detailed description of steps 302 and 305 of the embodiment shown in Fig. 3. Details will not be described again here.
[0115] Optionally, in an embodiment, the advertising module 503 is further configured to: advertise fourth advertising information to a third node in a second IGP process when the determining module 502 determines that the first identifier indicates a flexible algorithm that is the same as the first flexible algorithm in the second IGP process, where the fourth advertising information includes a destination address and the first identifier, and the fourth advertising information is used to generate third routing information for routing to the destination address. For specific implementation, please refer to the detailed description of step 306 in the embodiment shown in FIG. 3. Details will not be described again here.
[0116] Optionally, in an embodiment, the generating module 505 is further configured to, after the receiving module 501 receives the first advertisement information sent by the second node, generate, in the first IGP process, fourth routing information for routing to a destination address based on the first advertisement information, and generate, in the second IGP process, fourth advertisement information based on the fourth routing information. For specific implementation, please refer to the detailed description of steps 302 and 306 of the embodiment shown in Fig. 3. Details will not be described again here.
[0117] Optionally, in an embodiment, when the processing device 500 is used for segment routing through an IPv6 data plane SRv6 network, the first identifier is included in a type-length-value TLV field of a location information locator. For specific implementation, please refer to the detailed description of step 201 of the embodiment shown in Fig. 2 and the detailed description of step 301 of the embodiment shown in Fig. 3. Details will not be described again here.
[0118] Optionally, in an embodiment, when the processing device 500 is used in a Multi-Protocol Label Switching (MPLS) network, the first identifier is included in a type-length-value TLV field of a prefix segment identifier prefix-SID. For specific implementation, please refer to the detailed description of step 201 of the embodiment shown in Fig. 2 and the detailed description of step 301 of the embodiment shown in Fig. 3. Details will not be described again here.
[0119] It should be understood that the judgment module 502, the decision module 504, and the generation module 505 in the above-mentioned embodiments may be implemented by a processor or a processor-related circuit component, and the receiving module 501 and the advertising module 503 in the above-mentioned embodiments may be implemented by a transceiver or a transceiver-related circuit component.
[0120] In addition, the determining module 502, the deciding module 504, and the generating module 505 may be software functional units, i.e., the kinetic energy steps of these units above may be implemented using software. In this case, these software units may be software codes stored in the memory 420 of the embodiment shown in FIG. 4. When reading the software codes from the memory 420, the processor 410 implements the functions of the processor of the embodiment shown in FIG. 4. For details, please refer to the detailed description of the processor 410 in FIG. 4. Details will not be described again here.
[0121] Optionally, the embodiment of the present application provides a chip system. The chip system includes a processor configured to support a terminal device in implementing the aforementioned data processing method. In a possible design, the chip system further includes a memory. The memory is configured to store program instructions and data required for the terminal device. The chip system may include a chip, or may include a chip and another discrete device. This is not specifically limited in this embodiment of the present application. For a specific implementation process, please refer to the detailed description of steps 201 to 203 of the embodiment shown in FIG. 2 and the detailed description of steps 301 to 306 of the embodiment shown in FIG. 3. Details will not be described again here.
[0122] It should be understood that the processor referred to in the embodiments of the present application may be a central processing unit (CPU), or the processor may be another general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), or another programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component, etc. The general-purpose processor may be a microprocessor, or the processor may be any conventional processor, etc.
[0123] It should be noted that when the processor is a general-purpose processor, a DSP, an ASIC, an FPGA, or another programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component, the memory (storage module) may be integrated into the processor.
[0124] It can be understood that the memory referred to in the embodiments of the present application can be a volatile memory or a non-volatile memory, or can include a volatile memory and a non-volatile memory. The non-volatile memory can be a Read-Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), or a Flash memory. The volatile memory can be a Random Access Memory (RAM) and is used as an external cache. By way of example and not limitation, many forms of RAM may be used, such as, for example, static random access memory (Static RAM, SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (Synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (Double Data Rate SDRAM, DDR SDRAM), enhanced synchronous dynamic random access memory (Enhanced SDRAM, ESDRAM), Synchlink dynamic random access memory (Synchlink DRAM, SLDRAM), and Direct Rambus random access memory (Direct Rambus RAM, DR RAM).
[0125] Note that memory described herein is intended to include, without being limited to, these and any other suitable types of memory.
[0126] It should be understood that the sequence numbers of the above processes do not mean the execution sequence in various embodiments of the present application. The execution order of the processes should be determined according to the functions and internal logic of the processes, and should not be construed as any limitation on the implementation process of the embodiments of the present application.
[0127] All or part of the above-described embodiments may be implemented by software, hardware, firmware, or any combination thereof. When software is used to implement the device, all or part of the device may be implemented in the form of a computer program product.
[0128] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the procedures or functions according to the embodiments of the present application are generated. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or another programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted from a computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center in a wired (e.g., coaxial cable, optical fiber, or digital subscriber line (DSL)) or wireless (e.g., infrared, radio wave, or microwave) manner. The computer-readable storage medium may be any available medium accessible to a computer, or a data storage device that integrates one or more available media, such as a server or data center. The usable medium may be a magnetic medium (eg, a floppy disk, a hard disk, or a magnetic tape), an optical medium (eg, a DVD), or a semiconductor medium (eg, a Solid State Disk (SSD)).
[0129] In combination with the examples described in the embodiments disclosed herein, those skilled in the art can recognize that the units and algorithm steps can be implemented by electronic hardware or a combination of computer software and electronic hardware. Whether these functions are performed by hardware or software depends on the specific application and the design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be considered as going beyond the scope of this application.
[0130] In some embodiments provided in the present application, it should be understood that the disclosed system, device, and method can be implemented in other ways. For example, the described device embodiment is only an example. For example, the division into units is only a division of logical functions. In actual implementation, other division ways may exist. For example, multiple units or components may be combined or integrated into another system, or some functions may be ignored or not performed. In addition, the shown or discussed mutual couplings or direct couplings or communication connections may be implemented through some interfaces. Indirect couplings or communication connections between devices or units may be implemented in electrical, mechanical, or other forms.
[0131] When these functions are implemented in the form of a software functional unit and sold or used as an independent product, the functions may be stored in a computer-readable storage medium. Based on such understanding, the technical solution of the present application contributes essentially or partially to the prior art, or a part of the technical solution may be implemented in the form of a software product. The computer software product is stored in a storage medium and includes some instructions for instructing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in the embodiments of the present application. The aforementioned storage medium includes any medium that can store program code, such as a USB flash drive, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
[0132] The above describes in detail the advertisement information processing method and device, and storage medium provided in the embodiments of the present application. The principles and implementations of the present application are described herein using specific examples. The description of the above embodiments is merely provided to facilitate understanding of the method and core ideas of the present application. In addition, a person skilled in the art can make modifications and modifications to the present application in terms of specific implementation and application scope based on the concept of the present application. Therefore, the contents of this specification should not be construed as limitations on the present application.
Claims
1. 1. An advertisement information processing method, the method being applied to a first node in a network, the first node running a first Interior Gateway Protocol (IGP) process and a second IGP process, the network further comprising a second node and a third node, the second node running the first IGP process and the third node running the second IGP process, the method comprising: receiving, by the first node, first advertisement information sent by the second node, the first advertisement information having a destination address of the second node and a first identifier, the first identifier indicating a first flexible algorithm in the first IGP process; - the first node determining whether the first identifier indicates the same flexible algorithm in the second IGP process as the first flexible algorithm; when the first identifier does not indicate the same flexible algorithm in the second IGP process as the first flexible algorithm; a step of advertising, by the first node in the second IGP process, second advertisement information to the third node, the second advertisement information having the destination address and a second identifier, the second identifier indicating a second flexible algorithm in the second IGP process, the second advertisement information being used to generate first routing information for routing to the destination address; or omitting, by the first node, advertising third advertisement information in the second IGP process, the third advertisement information having the destination address; A method comprising:
2. The first identifier does not indicate the same flexible algorithm in the second IGP process as the first flexible algorithm, the first identifier is present in the second IGP process, and a third flexible algorithm indicated by the first identifier in the second IGP process is different from the first flexible algorithm; or The first identifier does not exist in the second IGP process. and / or Before the step of the first node in the second IGP process advertising second advertisement information to the third node, the method further includes: determining, by the first node, the second flexible algorithm based on the first flexible algorithm, wherein the second flexible algorithm satisfies a predefined condition; The method of claim 1.
3. The preset condition is:
3. The method of claim 2, comprising one or both of: a similarity between the second flexible algorithm and the first flexible algorithm meeting a first threshold; and a priority of the second flexible algorithm meeting a second threshold.
4. After the step of the first node receiving first advertisement information transmitted by the second node, the method further comprises: the first node in the first IGP process generating second routing information for routing to the destination address based on the first advertisement information; the first node in the second IGP process generating the second advertisement information based on the second routing information; The method according to claim 1 , comprising:
5. The method further comprises:
4. The method according to claim 1, comprising: when the first identifier indicates, in the second IGP process, the same flexible algorithm as the first flexible algorithm, the first node in the second IGP process advertising fourth advertisement information to the third node, the fourth advertisement information having the destination address and the first identifier, the fourth advertisement information being used to generate third routing information for routing to the destination address.
6. After the step of the first node receiving first advertisement information transmitted by the second node, the method further comprises: the first node in the first IGP process generating second routing information for routing to the destination address based on the first advertisement information; the first node in the second IGP process generating the fourth advertisement information based on the second routing information; The method of claim 5 comprising:
7. When the method is applied to segment routing over an Internet Protocol version 6 IPv6 data plane SRv6 network, the first identifier is included in a Type-Length-Value TLV field of a Location Locator; or The method according to any one of claims 1 to 6, wherein when the method is applied to a Multiprotocol Label Switching (MPLS) network, the first identifier is included in a Type-Length-Value TLV field of a prefix segment identifier (prefix-SID).
8. An advertisement information processing device, the processing device being a first node in a network, the first node executing a first Interior Gateway Protocol (IGP) process and a second IGP process, the network further comprising a second node and a third node, the second node executing the first IGP process, and the third node executing the second IGP process, the processing device comprising: a receiving module configured to receive first advertisement information sent by the second node, the first advertisement information having a destination address of the second node and a first identifier, the first identifier indicating a first flexible algorithm in the first IGP process; a determining module configured to determine whether the first identifier in the first advertisement information received by the receiving module indicates a flexible algorithm in the second IGP process that is the same as the first flexible algorithm; when the determining module determines that the first identifier does not indicate the same flexible algorithm in the second IGP process as the first flexible algorithm, advertising second advertisement information to the third node in the second IGP process, the second advertisement information having the destination address and a second identifier, the second identifier indicating a second flexible algorithm in the second IGP process, the second advertisement information being used to generate first routing information for routing to the destination address; or omitting advertisement of third advertisement information in the second IGP process, the third advertisement information having the destination address; an advertising module configured to A processing device comprising:
9. The first identifier does not indicate the same flexible algorithm in the second IGP process as the first flexible algorithm, the first identifier is present in the second IGP process, and a third flexible algorithm indicated by the first identifier in the second IGP process is different from the first flexible algorithm; or The first identifier does not exist in the second IGP process. The processing device of claim 8 , comprising:
10. The processing device further comprises:
10. The processing device according to claim 8 or 9, wherein the advertising module comprises a determining module configured to determine the second flexible algorithm based on the first flexible algorithm before advertising the second advertising information to the third node in the second IGP process, the second flexible algorithm satisfying a preset condition.
11. 11. The processing device of claim 10, wherein the pre-set condition comprises one or both of: a similarity between the second flexible algorithm and the first flexible algorithm satisfies a first threshold; and a priority of the second flexible algorithm satisfies a second threshold.
12. The processing device further comprises:
12. The processing device according to claim 8, further comprising: a generating module configured to, after the receiving module receives the first advertising information transmitted by the second node, generate, in the first IGP process, second routing information for routing to the destination address based on the first advertising information, and generate, in the second IGP process, the second advertising information based on the second routing information.
13. The processing device of any one of claims 8 to 11, wherein the advertising module is further configured to, when the determination module determines that the first identifier indicates the same flexible algorithm as the first flexible algorithm in the second IGP process, advertise fourth advertising information to the third node in the second IGP process, the fourth advertising information having the destination address and the first identifier, and the fourth advertising information being used to generate third routing information for routing to the destination address.
14. The processing device described in claim 13, further comprising a generating module configured to, after the receiving module receives the first advertising information transmitted by the second node, generate, in the first IGP process, second routing information for routing to the destination address based on the first advertising information, and generate, in the second IGP process, the fourth advertising information based on the second routing information.
15. When the processing device is located in a segment routing over an IPv6 data plane SRv6 network, the first identifier is included in a Type-Length-Value TLV field of a location information locator; or 15. The processing device according to claim 8, wherein when the processing device is located in a Multi-Protocol Label Switching (MPLS) network, the first identifier is included in a Type-Length-Value TLV field of a prefix segment identifier (prefix-SID).
16. A processor and a memory, A network device, wherein the memory is configured to store computer readable instructions or computer programs, and the processor is configured to read the computer readable instructions to implement the method of any one of claims 1 to 7.
17. A computer program product for causing a computer to carry out the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Scalable network slice based queuing using segment routing flexible algorithm
US10601724B1
Enabling non-flexible-algorithm routers to participate in flexible-algorithm routing protocols
US20200145319A1
