Information processing method and device

The controller sends locator attribute information to the head node of the SR policy, which solves the problem that BSID allocation in the segmented routing policy is not conducive to network maintenance, realizes effective allocation and recycling of locator, and improves network maintenance efficiency and reliability.

CN119316334APending Publication Date: 2025-01-14HUAWEI TECH CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202310870655.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-07-14
Publication Date
2025-01-14

AI Technical Summary

Technical Problem

In the existing segmented routing policy, the way the head node allocates a binding segment identity (BSID) to the SR policy is not conducive to network maintenance, especially in the case of locator evolution, which causes locator to be recycled.

Method used

The controller sends the attribute information of the locator to the head node of the SR policy, so that the network node allocates the BSID to the SR policy from the corresponding network segment, ensuring the consistency of the locator between the controller and the network node, thereby facilitating network maintenance.

Benefits of technology

It realizes the effective allocation and recycling of locator in SR policy, improving network maintenance efficiency and reliability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119316334A_ABST
    Figure CN119316334A_ABST
Patent Text Reader

Abstract

The invention discloses an information processing method applied to a controller. Comprising the following steps: determining a first SR policy, wherein the first SR policy comprises a first SID (Service Identifier) of a first network node serving as a head node; the first SID belongs to a network segment corresponding to the first locator of the first network node. And sending the attribute information of the first locator to the first network node to trigger the first network node to allocate the BSID for the first SR policy from the network segment corresponding to the first locator. In the scheme, the controller appoints the head node to allocate the locator of the BSID for the first SR policy, so that the controller determines that the locator of the first network node used by the first SR policy is consistent with the locator used by the first network node to allocate the BSID for the first SR policy, and the maintenance of the network is facilitated.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communications, and in particular to an information processing method and device. Background Art

[0002] Segment routing (SR) is a protocol designed based on source routing to forward data packets on the network. SR policy is a tunnel diversion technology based on SR. The SR policy can include the path from the head node to the destination node. The controller can calculate the path and send the SR policy including the path to the head node. The path included in the SR policy can be reflected as a segment list, which can include multiple segment identifiers (SIDs) arranged in order.

[0003] In some scenarios, the head node of the SR policy can be a controller and can allocate a binding segment identifier (BSID) for the SR policy. Currently, the way the head node allocates the BSID is not conducive to network maintenance.

[0004] Therefore, a solution is urgently needed to solve the above problems. Summary of the invention

[0005] The embodiment of the present application provides an information processing method and device, in which a controller specifies a locator used by a head node to allocate a BSID, which is beneficial to network maintenance.

[0006] In the first aspect, an embodiment of the present application provides an information processing method that can be applied to a controller. The controller can determine a first SR policy, wherein the first SR policy includes a first segment identifier (segment identifier, SID) of a first network node, the first network node is the head node corresponding to the first SR policy, and the first SID belongs to the network segment corresponding to the first locator of the first network node. The controller can also obtain attribute information of the first locator, the attribute information indicates the first locator, and send the attribute information of the first locator to the first network node, the attribute information of the first locator is used to trigger the first network node to allocate a BSID for the first SR policy from the network segment corresponding to the first locator. It can be seen that, using this scheme, the controller can send attribute information of the locator (i.e., the first locator) of the first network node used by the first SR policy to the head node of the SR policy, so that the first network node allocates a BSID for the first SR policy from the network segment corresponding to the first locator, so that the controller determines that the locator of the first network node used by the first SR policy is consistent with the locator used by the first network node to allocate the BSID for the first SR policy, which is conducive to network maintenance.

[0007] In the second aspect, an embodiment of the present application provides an information processing method that can be applied to a controller. The controller can determine a first SR policy, wherein the first SR policy includes a first SID of a first network node, the first network node is the head node corresponding to the first SR policy, and the first SID belongs to the network segment corresponding to the first locator of the first network node. The controller can also obtain attribute information of the first locator, the attribute information indicates the first locator, and sends the attribute information of the first locator to the first network node, the attribute information of the first locator indicating the conditions that the first network node needs to meet for the locator used to allocate the BSID for the first SR policy. It can be seen that, using this scheme, the controller can send attribute information of the locator (i.e., the first locator) of the first network node used by the first SR policy to the head node of the SR policy, so that the first network node allocates a BSID for the first SR policy from the network segment corresponding to the first locator according to the attribute information, so that the controller determines that the locator of the first network node used by the first SR policy is consistent with the locator used by the first network node to allocate the BSID for the first SR policy, which is conducive to network maintenance.

[0008] The methods described in the first and second aspects above may have the following possible implementation schemes:

[0009] In a possible implementation, the controller may update the second SR policy to obtain the first SR policy when the locator of the first network node evolves. The head nodes of the first SR policy and the second SR policy are both the first network node. The second SR policy includes the second SID of the first network node, and the second SID belongs to the network segment corresponding to the second locator of the first network node. That is to say, the locator used to determine the second SRpolicy is the second locator. In a specific implementation, the controller may receive locator evolution indication information, and the locator evolution indication information indicates that the locator of the first network node has evolved from the second locator to the first locator. After receiving the locator evolution indication information, the controller may update the second SR policy in response to the evolution indication information to obtain the first SR policy. In this scenario, using this solution, the controller can determine that the locator of the first network node used by the first SR policy is consistent with the locator used by the first network node to allocate the BSID for the first SR policy, which is conducive to the recovery of the second locator.

[0010] In a possible implementation, considering that the prefix of the first locator can be used to identify the first locator, based on the prefix of the first locator, the first locator can be determined from multiple locators corresponding to the first network node. Therefore, the attribute information of the first locator can be the prefix of the first locator.

[0011] In a possible implementation, when a network node has multiple locators, the multiple locators may have corresponding priorities. Therefore, when a locator corresponding to a first network node has a priority, the priority of the first locator may be used to identify the first locator, and based on the priority of the first locator, the first locator may be determined from the multiple locators corresponding to the first network node, and therefore, the attribute information of the first locator may be the priority of the first locator.

[0012] In a possible implementation, when a network node has multiple locators, the multiple locators may be associated with flexible algorithms (flex-algo), for example, different locators are associated with different flexible algorithms. Therefore, when a locator corresponding to a first network node is associated with a flexible algorithm, the flexible algorithm associated with the first locator may be used to identify the first locator, and based on the flexible algorithm associated with the first locator, the first locator may be determined from the multiple locators corresponding to the first network node, and therefore, the attribute information of the first locator may be the flexible algorithm associated with the first locator.

[0013] In a possible implementation, the controller sends the attribute information of the first locator to the first network node. In a specific implementation, a Border Gateway Protocol (BGP) SR policy message may be sent to the first network node, and the BGP SR policy message includes the attribute information of the first locator. In this case, the first network node may parse the BGP SR policy message to obtain the attribute information of the first locator, so that the first network node can allocate a BSID for the first SR policy from the network segment corresponding to the first locator.

[0014] In one possible implementation, the BGP SR policy message may include a first type length value (TLV), and the first TLV is used to carry attribute information of the first locator. In this case, the first network node may parse the first TLV in the BGP SR policy message to obtain the attribute information of the first locator.

[0015] In a possible implementation, the controller sends the attribute information of the first locator to the first network node. In a specific implementation, a Path Computing Unit Protocol (PCEP) message may be sent to the first network node, and the PCEP message includes the attribute information of the first locator. In this case, the first network node may parse the PCEP message to obtain the attribute information of the first locator, so that the first network node can allocate a BSID for the first SR policy from the network segment corresponding to the first locator.

[0016] In a possible implementation, the PCEP message may include a second TLV, and the second TLV is used to carry the attribute information of the first locator. In this case, the first network node may parse the second TLV in the PCEP message to obtain the attribute information of the first locator.

[0017] In a possible implementation, after the first network node allocates the first BSID to the first SR policy in the network segment corresponding to the first locator, the first BSID may be reported to the controller. Accordingly, the controller may receive the first BSID reported by the first network node. Furthermore, the controller may associate the first BSID with the first SR policy, for example, the controller may save the correspondence between the first BSID and the first SR policy.

[0018] In a possible implementation, in addition to sending the first BSID to the controller, the first network node may also send attribute information of the first locator to the controller, so that the controller can verify the first BSID based on the attribute information of the first locator, for example, verify whether the first BSID belongs to the network segment corresponding to the first locator. Accordingly, in addition to receiving the first BSID sent by the first network node, the controller may also receive attribute information of the first locator sent by the first network node.

[0019] In a possible implementation, the first network node may carry the attribute information of the first BSID and the first locator in the same message and send it to the controller. For example, the first network node may send a BGP link state (LS) message to the controller, and the BGP LS message includes the attribute information of the first BSID and the first locator. In this case, the controller can obtain the attribute information of the first BSID and the first locator through the BGP LS message.

[0020] In one possible implementation, the first locator is determined by the controller. In a specific example, after determining the first SR policy, the controller may further determine the locator to which the first SID belongs, that is, determine the first locator according to the first SID. In another specific example, before determining the first SR policy, the controller may determine the first locator used to determine the first SR policy from at least one locator of the first network node, and further determine the first SR policy using the first SID in the network segment corresponding to the first locator.

[0021] In the third aspect, an embodiment of the present application provides an information processing method, which can be applied to a first network node, wherein the first network node is the head node corresponding to the first SR policy. The first SR policy includes a first SID of the first network node, the first SID belongs to the network segment corresponding to the first locator, and the first locator is the locator of the first network node. The first network node can receive attribute information of the first locator sent by the controller, the attribute information indicates the first locator, and the attribute information of the first locator is used to trigger the first network node to allocate a BSID for the first SR policy from the network segment corresponding to the first locator. After the first network node receives the attribute information of the first locator sent by the controller, the first BSID belonging to the network segment can be allocated to the first SR policy according to the attribute information of the first locator. It can be seen from this that, using this scheme, the controller can send attribute information of the locator (i.e., the first locator) of the first network node used by the first SR policy to the head node of the SR policy, so that the first network node allocates a BSID for the first SR policy from the network segment corresponding to the first locator, so that the controller determines that the locator of the first network node used by the first SR policy is consistent with the locator used by the first network node to allocate the BSID for the first SR policy, which is conducive to network maintenance.

[0022] In a fourth aspect, an embodiment of the present application provides an information processing method, which can be applied to a first network node, wherein the first network node is a head node corresponding to a first SR policy. The first SR policy includes a first SID of the first network node, the first SID belongs to the network segment corresponding to the first locator, and the first locator is the locator of the first network node. The first network node can receive attribute information of the first locator sent by the controller, the attribute information indicates the first locator, and the attribute information of the first locator indicates the conditions that the first network node needs to meet for the locator used to allocate the BSID for the first SR policy. After the first network node receives the attribute information of the first locator sent by the controller, it can allocate the first BSID for the first SR policy from the network segment according to the attribute information of the first locator. It can be seen from this that, using this scheme, the controller can send attribute information of the locator (i.e., the first locator) of the first network node used by the first SR policy to the head node of the SR policy, so that the first network node allocates the BSID for the first SRpolicy from the network segment corresponding to the first locator, so that the controller determines that the locator of the first network node used by the first SR policy is consistent with the locator used by the first network node to allocate the BSID for the first SR policy, which is conducive to network maintenance.

[0023] The methods described in the third aspect and the fourth aspect above may have the following possible implementation schemes:

[0024] In a possible implementation manner, the attribute information of the first locator includes: a prefix of the first locator, a priority of the first locator, or a flexible algorithm associated with the first locator.

[0025] In a possible implementation, the receiving the attribute information of the first locator sent by the controller includes: receiving a Border Gateway Protocol BGP SR policy message sent by the controller, wherein the BGP SR policy message includes the attribute information of the first locator.

[0026] In a possible implementation manner, the BGP SR policy message includes a first type length value TLV, and the first TLV carries attribute information of the first locator.

[0027] In a possible implementation manner, the receiving the attribute information of the first locator sent by the controller includes: receiving a Path Computation Protocol (PCEP) message sent by the controller, wherein the PCEP message includes the attribute information of the first locator.

[0028] In a possible implementation manner, the PCEP message includes a second TLV, and the second TLV carries attribute information of the first locator.

[0029] In a possible implementation, if the attribute information of the first locator is a prefix of the first locator, the first network node may determine the first locator based on the prefix, and further allocate a first BSID to the first SR policy in a network segment corresponding to the first locator.

[0030] In a possible implementation, if the attribute information of the first locator is the priority of the first locator, the first network node may determine the first locator from the multiple locators corresponding to the first network node according to the priority of the first locator. For example, the first network node may locally store a first mapping relationship between multiple locators of the first network node and the priorities corresponding to each locator. The first network node may query the first mapping relationship based on the priority of the first locator as an index to obtain the mapping relationship between the first locator and the priority of the first locator, and further determine the first locator based on the mapping relationship between the first locator and the priority of the first locator. After the first network node determines the first locator, it may further allocate a first BSID to the first SR policy in the network segment corresponding to the first locator.

[0031] In a possible implementation, if the attribute information of the first locator is the flexible algorithm associated with the first locator, the first network node may determine the first locator from the multiple locators corresponding to the first network node according to the flexible algorithm associated with the first locator. For example, the first network node may locally store a second mapping relationship between multiple locators of the first network node and the flexible algorithms respectively associated with each locator, and the first network node may query the second mapping relationship according to the flexible algorithm associated with the first locator as an index, thereby obtaining the mapping relationship between the first locator and the flexible algorithm associated with the first locator, and further determining the first locator based on the mapping relationship between the first locator and the flexible algorithm associated with the first locator. After the first network node determines the first locator, it may further allocate a first BSID to the first SR policy in the network segment corresponding to the first locator.

[0032] In a possible implementation manner, the method further includes: sending the first BSID to the controller.

[0033] In a possible implementation manner, sending the first BSID to the controller includes: sending the first BSID and attribute information of the first locator to the controller.

[0034] In a possible implementation, sending the attribute information of the first BSID and the first locator to the controller includes: sending a BGP link state LS message to the controller, wherein the BGP LS message includes the attribute information of the first BSID and the first locator.

[0035] In a fifth aspect, an embodiment of the present application provides an information processing device, which is applied to a controller, and the device includes: a processing unit, which is used to determine a first-segment routing policy SR policy, wherein the first SR policy includes a first segment identifier SID of a first network node, the first network node is the head node corresponding to the first SR policy, and the first SID belongs to the network segment corresponding to the first locator locator of the first network node; and obtain attribute information of the first locator, wherein the attribute information indicates the first locator; a sending unit, which is used to send the attribute information of the first locator to the first network node. Wherein: in one example, the attribute information of the first locator is used to trigger the first network node to allocate a binding segment identifier BSID to the first SR policy from the network segment corresponding to the first locator. In another example, the attribute information of the first locator indicates the conditions that the first network node needs to meet for the locator used to allocate the BSID for the first SRpolicy.

[0036] In a possible implementation manner, the attribute information of the first locator includes: a prefix of the first locator, a priority of the first locator, or a flexible algorithm associated with the first locator.

[0037] In a possible implementation manner, the sending unit is used to send a Border Gateway Protocol BGP SR policy message to the first network node, where the BGP SR policy message includes attribute information of the first locator.

[0038] In a possible implementation manner, the BGP SR policy message includes a first type length value TLV, and the first TLV carries attribute information of the first locator.

[0039] In a possible implementation manner, the sending unit is configured to send a Path Computation Protocol (PCEP) message to the first network node, where the PCEP message includes attribute information of the first locator.

[0040] In a possible implementation manner, the PCEP message includes a second TLV, and the second TLV carries attribute information of the first locator.

[0041] In a possible implementation manner, the device further includes: a receiving unit, configured to receive a first BSID corresponding to the first SR policy and sent by the first network node, where the first BSID belongs to a network segment corresponding to the first locator.

[0042] In a possible implementation manner, the receiving unit is configured to receive attribute information of the first BSID and the first locator sent by the first network node.

[0043] In a possible implementation manner, the receiving unit is configured to: receive a BGP link state LS message sent by the first network node, where the BGP LS message includes attribute information of the first BSID and the first locator.

[0044] In a possible implementation manner, the first locator is determined by the controller.

[0045] In one possible implementation, the processing unit is used to: in response to receiving locator evolution indication information, update the second SR policy to obtain the first SR policy; wherein: the locator evolution indication information indicates that the locator of the first network node evolves from the second locator to the first locator, the second SRpolicy includes the second SID of the first network node, the first network node is the head node corresponding to the second SR policy, and the second SID belongs to the network segment corresponding to the second locator.

[0046] In a sixth aspect, an embodiment of the present application provides an information processing device, which is applied to a first network node, and the device includes: a receiving unit, which is used to receive attribute information of a first locator sent by a controller, and the attribute information indicates the first locator, and the first locator is the locator of the first network node. Wherein: in one example, the attribute information of the first locator is used to trigger the first network node to allocate a binding segment identifier BSID to the first SR policy from the network segment corresponding to the first locator. In another example, the attribute information of the first locator indicates the conditions that the first network node needs to meet for the locator used to allocate the BSID for the first SR policy. The first SR policy includes a first segment identifier SID of the first network node, the first SID belongs to the network segment, and the first network node is the head node corresponding to the first SR policy; a processing unit, which is used to allocate a first BSID belonging to the network segment to the first SR policy according to the attribute information of the first locator.

[0047] In a possible implementation manner, the attribute information of the first locator includes: a prefix of the first locator, a priority of the first locator, or a flexible algorithm associated with the first locator.

[0048] In a possible implementation manner, the receiving unit is used to: receive a Border Gateway Protocol BGP SR policy message sent by the controller, where the BGP SR policy message includes attribute information of the first locator.

[0049] In a possible implementation manner, the BGP SR policy message includes a first type length value TLV, and the first TLV carries attribute information of the first locator.

[0050] In a possible implementation manner, the receiving unit is configured to: receive a Path Computation Protocol (PCEP) message sent by the controller, where the PCEP message includes attribute information of the first locator.

[0051] In a possible implementation manner, the PCEP message includes a second TLV, and the second TLV carries attribute information of the first locator.

[0052] In a possible implementation manner, the processing unit is configured to: determine the first locator according to a prefix of the first locator; and allocate the first BSID to the first SR policy from a network segment corresponding to the first locator.

[0053] In a possible implementation, the processing unit is configured to: determine the first locator from multiple locators corresponding to the first network node according to a priority of the first locator; and allocate the first BSID to the first SR policy from a network segment corresponding to the first locator.

[0054] In a possible implementation, the processing unit is configured to: determine the first locator from multiple locators corresponding to the first network node according to a flexible algorithm associated with the first locator; and allocate the first BSID to the first SR policy from a network segment corresponding to the first locator.

[0055] In a possible implementation manner, the device further includes: a sending unit, configured to send the first BSID to the controller.

[0056] In a possible implementation manner, the sending unit is configured to send the first BSID and the attribute information of the first locator to the controller.

[0057] In a possible implementation manner, the sending unit is configured to send a BGP link state LS message to the controller, where the BGP LS message includes attribute information of the first BSID and the first locator.

[0058] In a seventh aspect, an embodiment of the present application provides a device. The device includes a processor and a memory. The memory is used to store instructions or computer programs. The processor is used to execute the instructions or computer programs in the memory, execute the method described in any one of the first aspects above, or execute the method described in any one of the second aspects above, or execute the method described in any one of the third aspects above, or execute the method described in any one of the fourth aspects above.

[0059] In the eighth aspect, an embodiment of the present application provides a computer-readable storage medium, including instructions or a computer program, which, when executed on a computer, enables the computer to execute the method described in any one of the first aspect above, or execute the method described in any one of the second aspect above, or execute the method described in any one of the third aspect above, or execute the method described in any one of the fourth aspect above.

[0060] In the ninth aspect, an embodiment of the present application provides a computer program product comprising instructions or computer programs, which, when executed on a computer, enables the computer to execute the method described in any one of the first aspect above, or execute the method described in any one of the second aspect above, or execute the method described in any one of the third aspect above, or execute the method described in any one of the fourth aspect above.

[0061] In a tenth aspect, an embodiment of the present application provides a communication system, the communication system comprising:

[0062] A controller that executes the method described in any one of the first aspects above, and a first network node that executes the method described in any one of the third aspects above;

[0063] or,

[0064] A controller that executes the method described in any one of the third aspects above, and a first network node that executes the method described in any one of the fourth aspects above. BRIEF DESCRIPTION OF THE DRAWINGS

[0065] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0066] Figure 1 A schematic diagram of an exemplary application scenario provided for an embodiment of the present application;

[0067] Figure 2 A signaling interaction diagram of an information processing method provided in an embodiment of the present application;

[0068] Figure 3a A schematic diagram of the structure of a first TLV provided in an embodiment of the present application;

[0069] Figure 3b A schematic diagram of the structure of another first TLV provided in an embodiment of the present application;

[0070] Figure 3c A schematic diagram of the structure of another first TLV provided in an embodiment of the present application;

[0071] Figure 3d A schematic diagram of the structure of a second TLV provided in an embodiment of the present application;

[0072] Figure 3e A schematic diagram of the structure of another second TLV provided in an embodiment of the present application;

[0073] Figure 3f A schematic diagram of the structure of another second TLV provided in an embodiment of the present application;

[0074] Figure 4 A schematic diagram of the structure of an information processing device provided in an embodiment of the present application;

[0075] Figure 5 A schematic diagram of the structure of another information processing device provided in an embodiment of the present application;

[0076] Figure 6 A schematic diagram of the structure of a device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0077] The embodiment of the present application provides an information processing method and device, in which a controller specifies a locator used by a head node to allocate a BSID, which is beneficial to network maintenance.

[0078] For ease of understanding, possible application scenarios of the embodiments of the present application are first introduced.

[0079] See also Figure 1 , which is a schematic diagram of an exemplary application scenario provided in an embodiment of the present application.

[0080] like Figure 1 As shown, customer edge devices (CE) 1 and CE2 can communicate through network domain 100 and network domain 200. Network domain 100 includes provider edge device (PE) 1, provider backbone device (P) 1, P2, P4 and P5. Network domain 200 includes: P2, P3, P5 and PE2 and PE3. P2 and P5 are cross-domain nodes of network domain 100 and network domain 200.

[0081] In an example, the controller may calculate the SR policy and send the SR policy to the head node of the SR policy, and the head node allocates a BSID for the SR policy.

[0082] For example, the controller can calculate SR policy1 with P2 as the head node, and send the SR policy1 to P2, and P2 allocates BSID1 for the SR policy1. After P2 allocates BSID1 for the SR policy1, it can report the BSID1 to the controller. In one example, the controller can determine the end-to-end SR policy2 with PE1 as the head node and spanning network domain 100 and network domain 200 based on the BSID1.

[0083] Another example is given: the controller can calculate SR policy3 with PE1 as the head node, and send the SRpolicy3 to PE1, which will assign BSID2 to the SR policy3. After PE1 assigns BSID2 to the SR policy3, it can report the BSID2 to the controller. In one example, the controller can manage SR policy3 based on the BSID2, for example, it can associate the corresponding path management policy based on the BSID2. The SR policy3 mentioned here can be across network domain 100 and network domain 200, or it can be an SR policy within network domain 100.

[0084] In an embodiment of the present application, the SR policy may include a segment list, the segment list includes at least one SID, and the segment list includes the SID of the head node, that is, the SID of the head node is one of the at least one SID included in the segment list. The SID of the head node may be allocated from the locator corresponding to the head node. At present, in some scenarios, a network node may be configured with multiple locators. When the network node as the head node allocates a BSID for the SR policy, it may randomly determine the target locator from the multiple locators corresponding to itself, and allocate a BSID to the SR policy from the target locator. However, using this method, there may be a situation where the target locator used to allocate the BSID is inconsistent with the locator used to determine the SR policy, which is not conducive to network maintenance. Among them, the locator used to determine the SR policy refers to the locator to which the SID used to determine the SR policy belongs.

[0085] Now combined Figure 1 The scenario shown is an example:

[0086] Assume that PE1 includes locator1 and locator2, SID1 belongs to locator1, the head node of SR policy4 determined by the controller is PE1, and SID1 is included in SR policy4. When PE1 allocates BSID for SR policy4, it allocates BSID3 corresponding to SR policy4 from the network segment corresponding to locator2. However, this method is not conducive to network maintenance. For example, in the scenario where locator2 evolves to locator1, the controller reuses SID1 belonging to locator1 to calculate SR policy4, but the network node still allocates BSID3 corresponding to SR policy4 from the network segment corresponding to locator2, resulting in locator2 being unable to be recycled.

[0087] In order to solve the above problems, an embodiment of the present application provides an information processing method and device. Next, the information processing method and device provided by the embodiment of the present application are introduced.

[0088] See also Figure 2 , this figure is a signaling interaction diagram of an information processing method provided in an embodiment of the present application. Figure 2 The method shown may include the following S101-S105.

[0089] S101: A controller determines a first SR policy, where the first SR policy includes a first SID of a first network node, the first network node is a head node corresponding to the first SR policy, and the first SID belongs to a network segment corresponding to a first locator of the first network node.

[0090] In one example, the controller may calculate the first SR policy according to the collected network topology information. When calculating the SR policy, the controller may select the first SID to participate in the calculation of the first SR policy, and accordingly, the calculated first SR policy includes the first SID.

[0091] In an example, the controller may calculate the first SRpolicy for the service during the service deployment phase.

[0092] In yet another example, the controller may update the SR policy obtained through historical calculation in real time according to changes in network topology, thereby obtaining the first SR policy.

[0093] In another example, the controller may update the second SR policy to obtain the first SR policy when the locator of the first network node evolves. In a specific implementation, the controller may receive locator evolution indication information, and the locator evolution indication information indicates that the locator of the first network node evolves from the second locator to the first locator. After receiving the locator evolution indication information, the controller may update the second SR policy in response to the evolution indication information to obtain the first SR policy. Wherein: the second SR policy includes the second SID of the first network node, and the second SID belongs to the network segment corresponding to the second locator. That is, the locator used to determine the second SR policy is the second locator.

[0094] In the embodiment of the present application, the head nodes of the first SR policy and the second SR policy are both the first network node, and the paths indicated by the first SR policy and the second SR policy may be the same or different, which is not specifically limited in the embodiment of the present application.

[0095] The embodiments of the present application do not specifically limit the specific implementation method in which the controller receives the locator evolution indication information. In one example, the locator evolution indication information may be sent by the first network node to the controller. In another example, the locator evolution indication information may also be a name entered by a user on the controller.

[0096] S102: The controller obtains attribute information of the first locator, where the attribute information indicates the first locator.

[0097] In one example, after determining the first SR policy, the controller may further determine the locator to which the first SID belongs, that is, determine the first locator according to the first SID. In a specific example, the controller may determine the first locator to which the first SID belongs based on information of at least one locator of the first network node collected in advance.

[0098] In another example, the controller may also determine a first locator for determining the first SR policy from at least one locator of the first network node before determining the first SR policy, and further determine the first SR policy using a first SID in a network segment corresponding to the first locator.

[0099] In one example, after determining the first SR policy and the first locator, the controller may further obtain attribute information of the first locator. The attribute information can identify the first locator, or the attribute information can be used to determine the first locator from multiple locators corresponding to the first network node.

[0100] In one example, considering that the prefix of the first locator can be used to identify the first locator, based on the prefix of the first locator, the first locator can be determined from multiple locators corresponding to the first network node. Therefore, the attribute information of the first locator can be the prefix of the first locator.

[0101] Regarding the locator prefix, it should be noted that SR based on the Internet Protocol version 6 (IPv6) data plane is called Internet Protocol version 6 segment routing (SRv6). SRv6 uses a 128-bit IPv6 address as the SID. The SID format consists of five parts: address block, node ID, function ID, arguments, and padding. Among them:

[0102] block: The address block used to allocate SRv6 SIDs, that is, the common prefix of SRv6 SIDs.

[0103] Node ID: An ID used to describe a network node.

[0104] function ID: used to describe the local function ID of the node and is used to map to the local segment endpoint behavior.

[0105] arguments: used to describe function-related parameters. Currently, arguments are not used in most cases and can be set to 0.

[0106] Padding: If the total length of the above parts does not reach 128 bits, multiple zeros are needed to ensure that the entire field length is 128 bits.

[0107] Among them, block+node ID will form a routable locator. The locator itself is an IPv6 network segment, and all IPv6 addresses under this network segment can be allocated as SRv6 SIDs. After the network node is configured with a locator, a locator network segment route will be generated. Other network nodes can locate this node through the locator network segment route. At the same time, all SIDs published by this node can also be reached through this locator network segment route.

[0108] In another example, when a network node has multiple locators, the multiple locators may have corresponding priorities, so that the locators can be managed and maintained based on the priorities of the locators. Therefore, when a locator corresponding to a first network node has a priority, the priority of the first locator may be used to identify the first locator, and based on the priority of the first locator, the first locator may be determined from the multiple locators corresponding to the first network node, and therefore, the attribute information of the first locator may be the priority of the first locator.

[0109] In another example, when a network node has multiple locators, the multiple locators may be associated with flexible algorithms, for example, different locators may be associated with different flexible algorithms. Therefore, when a locator corresponding to a first network node is associated with a flexible algorithm, the flexible algorithm associated with the first locator may be used to identify the first locator, and based on the flexible algorithm associated with the first locator, the first locator may be determined from the multiple locators corresponding to the first network node, and therefore, the attribute information of the first locator may be the flexible algorithm associated with the first locator.

[0110] S103: The controller sends the attribute information of the first locator to the first network node.

[0111] After acquiring the attribute information of the first locator, the controller may send the attribute information of the first locator to the first network node.

[0112] In one example, the controller may send a BGP SR policy message to the first network node, and the BGP SR policy message includes attribute information of the first locator. In a specific example, in addition to the attribute information of the first locator, the BGP SR policy message may also include the first SRpolicy. In this case, the attribute information of the first SR policy and the first locator may be sent to the first network node through the BGP SR policy message. In this case, in an example, the BGP SRpolicy message may include a tunnel encapsulation attribute, and the tunnel encapsulation attribute includes attribute information of the first SR policy and the first locator.

[0113] In an example, the attribute information of the first locator may be carried via an available field (eg, a reserved field) in the BGP SR policy message.

[0114] In another example, the BGP SR policy message may include a first TLV, and the first TLV is used to carry the attribute information of the first locator. For example, the aforementioned tunnel encapsulation attribute includes the first TLV. In this case, the first network node may parse the first TLV to obtain the attribute information of the first locator.

[0115] When the attribute information of the first locator is the prefix of the first locator, the structure of the first TLV can be as follows: Figure 3a As shown, Figure 3a This is a schematic diagram of the structure of a first TLV provided in an embodiment of the present application. Figure 3a As shown, the first TLV includes: a type field, a length field, an attribute information type field, a locator length (loc-size) field and a locator field.

[0116] The type field indicates that the first TLV is used to carry attribute information of the locator.

[0117] The length field indicates the length of the value field (including the loc-size field and the locator field) of the first TLV.

[0118] The attribute information type field is used to indicate the type of attribute information carried, where the type of attribute information includes: prefix, priority, or associated flexible algorithm.

[0119] The loc-size field indicates the length of the first locator in bits, ranging from 1 to 128.

[0120] The locator field is used to carry the prefix of the first locator.

[0121] When the attribute information of the first locator is the priority of the first locator, the structure of the first TLV can be as follows: Figure 3b As shown, Figure 3b This is a schematic diagram of the structure of another first TLV provided in an embodiment of the present application. Figure 3b As shown, the first TLV includes: a type field, a length field, an attribute information type field and a preference field.

[0122] The preference field is used to carry the priority of the first locator.

[0123] For the type field, length field, and attribute information type field, please refer to the above Figure 3a The description is not repeated here.

[0124] When the attribute information of the first locator is a flexible algorithm associated with the first locator, the structure of the first TLV may be as follows: Figure 3c As shown, Figure 3c This is a schematic diagram of the structure of another first TLV provided in an embodiment of the present application. Figure 3c As shown, the first TLV includes: a type field, a length field, an attribute information type field and a flexible algorithm (flex-algo) field.

[0125] The flex-algo field is used to carry the flexible algorithm associated with the first locator.

[0126] For the type field, length field, and attribute information type field, please refer to the above Figure 3a The description is not repeated here.

[0127] In one example, the controller may send a PCEP message to the first network node, wherein the PCEP message includes attribute information of the first locator. In a specific example, in addition to the attribute information of the first locator, the PCEP message may also include the first SR policy. In this case, the first SR policy and the attribute information of the first locator may be sent to the first network node through the PCEP message.

[0128] In one example, the attribute information of the first locator may be carried via an available field (eg, a reserved field) in the PCEP message.

[0129] In another example, the PCEP message may include a second TLV, and the second TLV is used to carry the attribute information of the first locator. In this case, the first network node may parse the second TLV to obtain the attribute information of the first locator.

[0130] When the attribute information of the first locator is the prefix of the first locator, the structure of the second TLV can be as follows: Figure 3d As shown, Figure 3d This is a schematic diagram of the structure of a second TLV provided in an embodiment of the present application. Figure 3d As shown, the second TLV includes: a type field, a length field, an attribute information type field, a locator length (loc-size) field, an all-zero (must be zero, MBZ) field and a locator field. Figure 3d The format of the second TLV shown is the same as Figure 3a The fields included in the first TLV shown are basically the same, except that Figure 3d The second TLV shown also includes an MBZ field, so Figure 3d For details about the fields of the second TLV shown in FIG. Figure 3a The description part will not be repeated here.

[0131] When the attribute information of the first locator is the priority of the first locator, the structure of the second TLV can be as follows: Figure 3e As shown, Figure 3e This is a schematic diagram of the structure of another second TLV provided in an embodiment of the present application. Figure 3e As shown, the second TLV includes: a type field, a length field, an attribute information type field, a preference field and an MBZ field.

[0132] Figure 3e The format of the second TLV shown is the same as Figure 3b The fields included in the first TLV shown are basically the same, except that Figure 3e The second TLV shown also includes an MBZ field, so Figure 3e For details about the fields of the second TLV shown in FIG. Figure 3b The description part will not be repeated here.

[0133] When the attribute information of the first locator is a flexible algorithm associated with the first locator, the structure of the second TLV can be as follows: Figure 3f As shown, Figure 3f This is a schematic diagram of the structure of another second TLV provided in an embodiment of the present application. Figure 3f As shown, the second TLV includes: a type field, a length field, an attribute information type field, a flex-algo field and an MBZ field. Figure 3f The format of the second TLV shown is the same as Figure 3c The fields included in the first TLV shown are basically the same, except that Figure 3f The second TLV shown also includes an MBZ field, so Figure 3f For details about the fields of the second TLV shown in FIG. Figure 3c The description part will not be repeated here.

[0134] In one example, the controller may send a PCEP message to the first network node, wherein the PCEP message includes attribute information of the first locator. In a specific example, in addition to the attribute information of the first locator, the PCEP message may also include the first SR policy. In this case, the first SR policy and the attribute information of the first locator may be sent to the first network node through the PCEP message.

[0135] S104: The first network node receives attribute information of the first locator sent by the controller.

[0136] S105: The first network node allocates, according to the attribute information of the first locator, a first BSID belonging to the network segment corresponding to the first locator to the first SR policy.

[0137] After the controller sends the attribute information of the first locator to the first network node, the first network node may receive the attribute information of the first locator sent by the controller.

[0138] In one example, the attribute information of the first locator is used to trigger the first network node to allocate a binding segment identifier BSID to the first SR policy from the network segment corresponding to the first locator. In another example, the attribute information of the first locator indicates the conditions that the first network node must meet to allocate the locator used by the BSID for the first SR policy. After the first network node receives the attribute information of the first locator, it can allocate a first BSID belonging to the network segment to the first SR policy based on the attribute information of the first locator.

[0139] In an example, the first network node may determine the first locator according to the attribute information of the first locator, and further allocate a first BSID to the first SR policy from the network segment corresponding to the first locator.

[0140] In a specific example, if the attribute information of the first locator is the prefix of the first locator, the first network node can determine the first locator based on the prefix. For example, the first network node can match the received prefix with the prefixes of multiple locators corresponding to itself, thereby determining the first locator that matches the received prefix.

[0141] In another specific example, if the attribute information of the first locator is the priority of the first locator, the first network node may determine the first locator from the multiple locators corresponding to the first network node according to the priority of the first locator. For example, the first network node may locally store a first mapping relationship between multiple locators of the first network node and the priorities corresponding to each locator, and the first network node may query the first mapping relationship based on the priority of the first locator as an index, thereby obtaining a mapping relationship between the first locator and the priority of the first locator, and further determine the first locator based on the mapping relationship between the first locator and the priority of the first locator.

[0142] In another specific example, if the attribute information of the first locator is the flexible algorithm associated with the first locator, the first network node can determine the first locator from the multiple locators corresponding to the first network node according to the flexible algorithm associated with the first locator. For example, the first network node can locally store a second mapping relationship between multiple locators of the first network node and the flexible algorithms associated with each locator, and the first network node can query the second mapping relationship based on the flexible algorithm associated with the first locator as an index, thereby obtaining the mapping relationship between the first locator and the flexible algorithm associated with the first locator, and further determine the first locator based on the mapping relationship between the first locator and the flexible algorithm associated with the first locator.

[0143] It can be known from the above description that, by utilizing the solution of the embodiment of the present application, the controller can send attribute information of the locator of the first network node (i.e., the first locator) used by the first SR policy to the head node of the SR policy, so that the first network node allocates a BSID to the first SR policy from the network segment corresponding to the first locator, so that the locator of the first network node determined by the controller for the first SR policy is consistent with the locator used by the first network node to allocate the BSID for the first SR policy, which is beneficial to network maintenance. For example, in a scenario where the second locator of the first network node evolves to the first locator, the controller determines the first SR policy based on the evolved first locator, and the first network node allocates a BSID to the first SR policy based on the first locator, which is beneficial to the recovery of the second locator.

[0144] In one example, after the first network node allocates the first BSID to the first SR policy, the first BSID may be sent to the controller so that the controller associates the first BSID with the first SR policy. In one example, the first network node may send the first BSID to the controller via a BGP LS message. Regarding the carrying position of the first BSID in the BGP LS message, for example, conventional technology may be used, and no detailed description is given here.

[0145] In one example, in addition to sending the first BSID to the controller, the first network node may also send attribute information of the first locator to the controller, so that the controller can verify the first BSID based on the attribute information of the first locator, for example, to verify whether the first BSID belongs to the network segment corresponding to the first locator.

[0146] In a specific example, the attribute information of the first BSID and the first locator may be located in the same BGP LS message, so that the attribute information of the first BSID and the first locator may be reported to the controller through one BGP LS message. In another specific example, the attribute information of the first BSID and the first locator may also be carried through different BGP LS messages, which is not specifically limited in the embodiments of the present application.

[0147] In one example, the attribute information of the first locator may be carried by a third TLV field in a BGP LS message. The structure of the third TLV field may be the same as that of the second TLV or the first TLV, and the relevant content may refer to the description of the first TLV or the second TLV above.

[0148] The above is an introduction to the information processing method provided in the embodiment of the present application. Figure 1 The network architecture shown introduces a specific application scenario of the information processing method provided in an embodiment of the present application.

[0149] 1. Deploy new locators on PE1, P1, P2, and PE2.

[0150] 2. PE1, P1, P2, and PE2 publish new SIDs under the new locator, and the controller obtains the new SIDs published by PE1, P1, P2, and PE2 under the new locator.

[0151] 3. The controller recalculates the SR policy using the new locator.

[0152] 4. Send the recalculated SR Policy adhesion path and the attribute information of the new locator of P2 to the cross-domain node P2;

[0153] 5. After receiving the new SR Policy, the adhesion node allocates BSID4 for the new SR Policy in the network segment corresponding to the new locator of P2 according to the attribute information of the new locator specified by the controller, and reports the allocated BSID4 to the controller through BGP-LS.

[0154] 6. After receiving BSID4, the controller uses the new BSID4 as a hop of the end-to-end path spanning network domain 100 and network domain 200.

[0155] See also Figure 4 , which is a structural schematic diagram of an information processing device provided in an embodiment of the present application. Figure 4 The information processing device 400 shown can be applied to a controller to execute the information processing method performed by the controller provided in the above method embodiment.

[0156] like Figure 4 As shown, the information processing device 400 includes: a processing unit 401 and a sending unit 402.

[0157] The processing unit 401 is used to determine a first segment routing policy SR policy, where the first SR policy includes a first segment identifier SID of a first network node, the first network node is a head node corresponding to the first SR policy, and the first SID belongs to a network segment corresponding to a first locator locator of the first network node; and obtain attribute information of the first locator, where the attribute information indicates the first locator.

[0158] The sending unit 402 is used to send the attribute information of the first locator to the first network node. In one example, the attribute information of the first locator is used to trigger the first network node to allocate a binding segment identifier BSID to the first SR policy from the network segment corresponding to the first locator. In another example, the attribute information of the first locator indicates the conditions that the first network node must meet for the locator used to allocate the BSID for the first SR policy.

[0159] In a possible implementation manner, the attribute information of the first locator includes: a prefix of the first locator, a priority of the first locator, or a flexible algorithm associated with the first locator.

[0160] In a possible implementation manner, the sending unit 402 is configured to send a Border Gateway Protocol BGP SR policy message to the first network node, where the BGP SR policy message includes attribute information of the first locator.

[0161] In a possible implementation manner, the BGP SR policy message includes a first type length value TLV, and the first TLV carries attribute information of the first locator.

[0162] In a possible implementation manner, the sending unit 402 is configured to send a Path Computation Protocol (PCEP) message to the first network node, where the PCEP message includes attribute information of the first locator.

[0163] In a possible implementation manner, the PCEP message includes a second TLV, and the second TLV carries attribute information of the first locator.

[0164] In a possible implementation manner, the device further includes: a receiving unit, configured to receive a first BSID corresponding to the first SR policy and sent by the first network node, where the first BSID belongs to a network segment corresponding to the first locator.

[0165] In a possible implementation manner, the receiving unit is configured to receive attribute information of the first BSID and the first locator sent by the first network node.

[0166] In a possible implementation manner, the receiving unit is configured to: receive a BGP link state LS message sent by the first network node, where the BGP LS message includes attribute information of the first BSID and the first locator.

[0167] In a possible implementation manner, the first locator is determined by the controller.

[0168] In one possible implementation, the processing unit 401 is used to: in response to receiving locator evolution indication information, update the second SR policy to obtain the first SR policy; wherein: the locator evolution indication information indicates that the locator of the first network node evolves from the second locator to the first locator, the second SR policy includes the second SID of the first network node, the first network node is the head node corresponding to the second SR policy, and the second SID belongs to the network segment corresponding to the second locator.

[0169] See also Figure 5 , which is a structural schematic diagram of another information processing device provided in an embodiment of the present application. Figure 5The information processing device 500 shown can be applied to a first network node, and is used to execute the information processing method performed by the first network node provided in the above method embodiment.

[0170] like Figure 5 As shown, the information processing device 500 includes: a receiving unit 501 and a processing unit 502.

[0171] The receiving unit 501 is used to receive attribute information of a first locator sent by the controller, the attribute information indicating the first locator, and the first locator is the locator of the first network node. Wherein: in one example, the attribute information of the first locator is used to trigger the first network node to allocate a binding segment identifier BSID for the first SR policy from the network segment corresponding to the first locator. In another example, the attribute information of the first locator indicates the conditions that the first network node must meet for the locator used to allocate the BSID for the first SR policy. The first SR policy includes a first segment identifier SID of the first network node, the first SID belongs to the network segment, and the first network node is the head node corresponding to the first SR policy.

[0172] The processing unit 502 is configured to allocate a first BSID belonging to the network segment to the first SR policy according to the attribute information of the first locator.

[0173] In a possible implementation manner, the attribute information of the first locator includes: a prefix of the first locator, a priority of the first locator, or a flexible algorithm associated with the first locator.

[0174] In a possible implementation manner, the receiving unit 501 is used to: receive a Border Gateway Protocol BGP SR policy message sent by the controller, where the BGP SR policy message includes attribute information of the first locator.

[0175] In a possible implementation manner, the BGP SR policy message includes a first type length value TLV, and the first TLV carries attribute information of the first locator.

[0176] In a possible implementation manner, the receiving unit 501 is configured to: receive a Path Computation Protocol (PCEP) message sent by the controller, where the PCEP message includes attribute information of the first locator.

[0177] In a possible implementation manner, the PCEP message includes a second TLV, and the second TLV carries attribute information of the first locator.

[0178] In a possible implementation manner, the processing unit 502 is configured to: determine the first locator according to a prefix of the first locator; and allocate the first BSID to the first SR policy from a network segment corresponding to the first locator.

[0179] In a possible implementation, the processing unit 502 is configured to: determine the first locator from multiple locators corresponding to the first network node according to a priority of the first locator; and allocate the first BSID to the first SR policy from a network segment corresponding to the first locator.

[0180] In a possible implementation, the processing unit 502 is configured to: determine the first locator from multiple locators corresponding to the first network node according to a flexible algorithm associated with the first locator; and allocate the first BSID to the first SR policy from a network segment corresponding to the first locator.

[0181] In a possible implementation manner, the device further includes: a sending unit, configured to send the first BSID to the controller.

[0182] In a possible implementation manner, the sending unit is configured to send the first BSID and the attribute information of the first locator to the controller.

[0183] In a possible implementation manner, the sending unit is configured to send a BGP link state LS message to the controller, where the BGP LS message includes attribute information of the first BSID and the first locator.

[0184] It should be noted that the hardware structures of the information processing devices 400 and 500 mentioned above can be as follows: Figure 6 The structure shown, Figure 6 A schematic diagram of the structure of a device provided in an embodiment of the present application.

[0185] See also Figure 6 As shown, the device 600 includes: a processor 610, a communication interface 620 and a memory 630. The number of the processor 610 in the device 600 can be one or more. Figure 6In the embodiment of the present application, the processor 610, the communication interface 620 and the memory 630 may be connected via a bus system or other means, wherein: Figure 6 The connection via bus system 640 is taken as an example.

[0186] The processor 610 may be a central processing unit (CPU), a network processor (NP) or a combination of a CPU and a NP. The processor 610 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD) or a combination thereof. The PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL) or any combination thereof.

[0187] The memory 630 may include a volatile memory (English: volatile memory), such as a random-access memory (RAM); the memory 630 may also include a non-volatile memory (English: non-volatile memory), such as a flash memory (English: flash memory), a hard disk drive (HDD) or a solid-state drive (SSD); the memory 630 may also include a combination of the above-mentioned types of memories. The memory 630 may, for example, store the first SR policy.

[0188] Optionally, the memory 630 stores an operating system and a program, an executable module or a data structure, or a subset thereof, or an extended set thereof, wherein the program may include various operating instructions for implementing various operations. The operating system may include various system programs for implementing various basic services and processing hardware-based tasks. The processor 610 may read the program in the memory 630 to implement the information processing method provided in the embodiment of the present application.

[0189] The bus system 640 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus system 640 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 6 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0190] The embodiment of the present application also provides a computer-readable storage medium, including instructions or computer programs, which, when executed on a computer, enable the computer to execute the information processing method provided in the above embodiment.

[0191] The embodiments of the present application also provide a computer program product including instructions or a computer program, which, when executed on a computer, enables the computer to execute the information processing method provided in the above embodiments.

[0192] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0193] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0194] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of units is only a logical business division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0195] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0196] In addition, each business unit in each embodiment of the present application can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software business units.

[0197] If the integrated unit is implemented in the form of a software business unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0198] Those skilled in the art will appreciate that in one or more of the above examples, the services described in the present invention may be implemented using hardware, software, firmware, or any combination thereof. When implemented using software, the services may be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. Computer-readable media include computer storage media and communication media, wherein communication media include any media that facilitates the transmission of computer programs from one place to another. Storage media may be any available media that can be accessed by a general-purpose or special-purpose computer.

[0199] The above specific implementation modes further describe the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above are only specific implementation modes of the present invention.

[0200] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person of ordinary skill in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features thereof may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application.

Claims

1. An information processing method, characterized in that: Applied to a controller, the method comprises: Determine a first segment routing policy SR policy, where the first SR policy includes a first segment identifier SID of a first network node, the first network node is a head node corresponding to the first SR policy, and the first SID belongs to a network segment corresponding to a first locator locator of the first network node; Acquire attribute information of the first locator, where the attribute information indicates the first locator; Sending attribute information of the first locator to the first network node, where the attribute information of the first locator is used to trigger the first network node to allocate a binding segment identifier BSID for the first SR policy from a network segment corresponding to the first locator.

2. The method according to claim 1, characterized in that The attribute information of the first locator includes: The prefix of the first locator, the priority of the first locator, or the flexible algorithm associated with the first locator.

3. The method according to claim 1 or 2, characterized in that: The sending the attribute information of the first locator to the first network node includes: A Border Gateway Protocol (BGPSR) policy message is sent to the first network node, where the BGPSR policy message includes attribute information of the first locator.

4. The method according to claim 3, characterized in that: The BGPSR policy message includes a first type length value TLV, and the first TLV carries attribute information of the first locator.

5. The method according to claim 1 or 2, characterized in that: The sending the attribute information of the first locator to the first network node includes: A Path Computation Element Protocol (PCEP) message is sent to the first network node, where the PCEP message includes attribute information of the first locator.

6. The method according to claim 5, characterized in that The PCEP message includes a second TLV, and the second TLV carries attribute information of the first locator.

7. The method according to any one of claims 1 to 6, characterized in that: The method further comprises: A first BSID corresponding to the first SR policy and sent by the first network node is received, where the first BSID belongs to a network segment corresponding to the first locator.

8. The method according to claim 7, characterized in that The receiving, sent by the first network node, a first BSID corresponding to the first SR policy, includes: Receive the first BSID and the attribute information of the first locator sent by the first network node.

9. The method according to claim 8, characterized in that The receiving the first BSID and the attribute information of the first locator sent by the first network node includes: A BGP link state LS message sent by the first network node is received, where the BGP LS message includes attribute information of the first BSID and the first locator.

10. The method according to any one of claims 1 to 9, characterized in that: The first locator is determined by the controller.

11. The method according to any one of claims 1 to 10, characterized in that: The determining of the first segment routing policy SRpolicy includes: In response to receiving the locator evolution indication information, the second SR policy is updated to obtain the first SR policy; wherein: The locator evolution indication information indicates that the locator of the first network node evolves from the second locator to the first locator, the second SR policy includes the second SID of the first network node, the first network node is the head node corresponding to the second SR policy, and the second SID belongs to the network segment corresponding to the second locator.

12. An information processing method, characterized in that: Applied to a first network node, the method comprises: Receive attribute information of a first locator sent by a controller, where the attribute information indicates the first locator, the first locator is a locator of the first network node, and the attribute information of the first locator is used to trigger the first network node to allocate a binding segment identifier BSID for a first segment routing policy SR policy from a network segment corresponding to the first locator, the first SR policy includes a first segment identifier SID of the first network node, the first SID belongs to the network segment, and the first network node is a head node corresponding to the first SR policy; According to the attribute information of the first locator, a first BSID belonging to the network segment is allocated to the first SR policy.

13. The method according to claim 12, characterized in that The attribute information of the first locator includes: The prefix of the first locator, the priority of the first locator, or the flexible algorithm associated with the first locator.

14. The method according to claim 12 or 13, characterized in that The receiving controller sends the first locator attribute information, including: A Border Gateway Protocol (BGPSR) policy message sent by the controller is received, where the BGPSR policy message includes attribute information of the first locator.

15. The method according to claim 14, characterized in that The BGPSR policy message includes a first type length value TLV, and the first TLV carries attribute information of the first locator.

16. The method according to claim 12 or 13, characterized in that The receiving controller sends the first locator attribute information, including: A Path Computation Protocol (PCEP) message is received from the controller, where the PCEP message includes attribute information of the first locator.

17. The method according to claim 16, characterized in that The PCEP message includes a second TLV, and the second TLV carries attribute information of the first locator.

18. The method according to claim 13, characterized in that The allocating, according to the attribute information of the first locator, a first BSID belonging to the network segment to the first SR policy includes: Determine the first locator according to the prefix of the first locator; The first BSID is allocated to the first SR policy from the network segment corresponding to the first locator.

19. The method according to claim 13, characterized in that The allocating, according to the attribute information of the first locator, a first BSID belonging to the network segment to the first SR policy includes: Determine the first locator from a plurality of locators corresponding to the first network node according to a priority of the first locator; The first BSID is allocated to the first SR policy from the network segment corresponding to the first locator.

20. The method according to claim 13, characterized in that The allocating, according to the attribute information of the first locator, a first BSID belonging to the network segment to the first SR policy includes: determining the first locator from a plurality of locators corresponding to the first network node according to a flexible algorithm associated with the first locator; The first BSID is allocated to the first SR policy from the network segment corresponding to the first locator.

21. The method according to any one of claims 12 to 20, characterized in that: The method further comprises: The first BSID is sent to the controller.

22. The method according to claim 21, characterized in that The sending the first BSID to the controller includes: The first BSID and attribute information of the first locator are sent to the controller.

23. The method according to claim 22, characterized in that The sending the first BSID and the attribute information of the first locator to the controller includes: A BGP link state LS message is sent to the controller, where the BGP LS message includes attribute information of the first BSID and the first locator.

24. An information processing device, characterized in that: Applied to a controller, the device comprises: a processing unit, configured to determine a first segment routing policy SR policy, wherein the first SR policy includes a first segment identifier SID of a first network node, the first network node is a head node corresponding to the first SR policy, and the first SID belongs to a network segment corresponding to a first locator locator of the first network node; and obtain attribute information of the first locator, wherein the attribute information indicates the first locator; A sending unit is used to send attribute information of the first locator to the first network node, where the attribute information of the first locator is used to trigger the first network node to allocate a binding segment identifier BSID for the first SR policy from the network segment corresponding to the first locator.

25. An information processing device, characterized in that: Applied to a first network node, the device includes: a receiving unit, configured to receive attribute information of a first locator sent by a controller, wherein the attribute information indicates the first locator, the first locator is a locator of the first network node, the attribute information of the first locator is used to trigger the first network node to allocate a binding segment identifier BSID for a first segment routing policy SRpolicy from a network segment corresponding to the first locator, the first SR policy includes a first segment identifier SID of the first network node, the first SID belongs to the network segment, and the first network node is a head node corresponding to the first SR policy; A processing unit is configured to allocate a first BSID belonging to the network segment to the first SR policy according to the attribute information of the first locator.

26. A device, characterized in that include: Processor and memory; The memory is used to store instructions or computer programs; The processor is used to execute the instructions or computer programs to perform the method according to any one of claims 1 to 23.

27. A computer-readable storage medium, characterized in that: The method comprises instructions or computer programs, which, when executed on a computer, cause the computer to execute the method according to any one of claims 1 to 23.

28. A communication system, characterized in that: The system comprises: A controller that executes the method described in any one of claims 1 to 11 above, and a first network node that executes the method described in any one of claims 12 to 23 above.

Citation Information

Cited By

  • Information processing method and apparatus

    EP4734472A1

  • Information processing method and apparatus

    WO2025016209A1