Locator allocation method and device, equipment and storage medium

By extending the RA message of ICMPv6 messages and defining a new Option field, client devices can automatically obtain SRv6 Locators, solving the problem of the inability to allocate Locators in the prior art and improving the efficiency of automatic configuration of network node identifiers.

CN122001799APending Publication Date: 2026-05-08CHINA MOBILE COMM LTD RES INST +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411557937.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-04
Publication Date
2026-05-08

AI Technical Summary

Technical Problem

In existing technologies, client devices cannot obtain the network node identifier (Locator) address in the Segment Routing IPv6 (SRv6) protocol suite from upstream server devices.

Method used

By extending the Neighbor Discovery Protocol (NDP) of Internet Control Message Protocol version 6 (ICMPv6) and utilizing the Router Advertisement (RA) message in ICMPv6 messages, a new Option field is defined to indicate the SRv6 Locator, enabling client devices to automatically obtain the SRv6 Locator from the upstream server device.

Benefits of technology

This technology enables client devices to automatically obtain SRv6 Locators, solving the problem of the inability to allocate Locators in existing technologies and improving the efficiency of automatic configuration of network node identifiers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122001799A_ABST
    Figure CN122001799A_ABST
Patent Text Reader

Abstract

Provided in an embodiment of the present application are a Locator allocation method, apparatus, device and storage medium, the method comprising: receiving a first message sent by an ICMPv6 server, the message type of the first message being a router advertisement (RA) message, and the first message comprising a first option field, the first option field is used for indicating a segment routing (Srv6) network node identifier (Locator) based on the IPv6 (Internet Protocol Version 6) of the ICMPv6 client side. By adopting the method, the client device can automatically obtain the Srv6 Locator from the upstream server device by expanding the NDP and utilizing the RA message of the ICMPv6 message.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of transmission and IP technology, and in particular to a method, apparatus, device and storage medium for allocating a Locator. Background Technology

[0002] Internet Control Message Protocol version 6 (ICMPv6) is one of the foundational protocols based on Internet Protocol version 6 (IPv6). Currently, client devices such as Optical Network Units (ONUs), routers, and switches obtain IPv6 addresses from edge client devices in the operator's network, such as Broadband Remote Access Servers (BRAS) or Service Routers (SRs), through the IPv6 Neighbor Discovery Protocol (IPv6NDP).

[0003] However, IPv6 addresses and network node identifiers (Locators) in the Segment Routing IPv6 (SRv6) protocol suite based on the IPv6 forwarding plane are completely different resources, and there is currently no method to assign Locators to client devices. Summary of the Invention

[0004] The purpose of this application is to provide a method, apparatus, device, and storage medium for allocating a Locator, in order to solve the current problem of being unable to allocate a Locator to a client device.

[0005] One embodiment of this application provides a method for allocating network node identifiers (Locators), wherein the method is applied to an Internet Control Message Protocol version 6 (ICMPv6) client, and the method includes:

[0006] The first message sent by the ICMPv6 server is received. The message type of the first message is Router Advertisement (RA) message, and the first message includes a first option field. The first option field is used to indicate the IPv6-based segmented routing Srv6 network node identifier (Locator) of the ICMPv6 client.

[0007] Optionally, the method further includes, before receiving the first message sent by the ICMPv6 server:

[0008] A second message is sent to the ICMPv6 server. The message type of the second message is a Router Request RS message.

[0009] Optionally, the method, wherein sending a second message to the ICMPv6 server includes:

[0010] After accessing the network, the ICMPv6 client sends the second message to the ICMPv6 server.

[0011] Optionally, in the method, receiving the first message sent by the ICMPv6 server includes:

[0012] Receive the first message sent by the ICMPv6 server in a multicast manner according to a preset period.

[0013] Optionally, in the method, the first option field includes:

[0014] The Type subfield is used to indicate the type of the first option field, Option.

[0015] The Locator content indicator subfield is used to indicate the Srv6 Locator assigned by the ICMPv6 server to the ICMPv6 client.

[0016] Optionally, in the method, the first option field further includes one or more of the following:

[0017] The Reserved subfield is retained;

[0018] The Length subfield is used to indicate the length of the first Option field.

[0019] The Valid-lifetime subfield is used to indicate the valid lifespan of the Srv6 Locator;

[0020] The preferred-lifetime subfield indicates the preferred lifetime of the Srv6 Locator;

[0021] The LB-len subfield is used to indicate the length of the block segment of the Srv6 Locator;

[0022] The LN-Len subfield of node length is used to indicate the length of the Node segment of the Srv6 Locator;

[0023] The Fun-len subfield is used to indicate the length of the FunCT segment of the Srv6 Locator;

[0024] The Arg-len subfield is used to indicate the length of the parameter ARG segment of the Srv6 Locator.

[0025] One embodiment of this application also provides a method for allocating network node identifiers (Locators), wherein the method is applied to an Internet Control Message Protocol version 6 (ICMPv6) server, and the method includes:

[0026] Send a first message to the ICMPv6 client. The message type of the first message is Router Advertisement (RA) message, and the first message includes a first option field. The first option field is used to indicate the IPv6-based segmented routing Srv6 network node identifier (Locator) of the ICMPv6 client.

[0027] Optionally, the method further includes:

[0028] Receive a second message sent by the ICMPv6 client, wherein the message type of the second message is a Router Request RS message;

[0029] The first message sent to the ICMPv6 client includes:

[0030] The first message is sent to the ICMPv6 client according to the second message.

[0031] Optionally, the method, wherein sending the first message to the ICMPv6 client includes:

[0032] The first message is sent to the ICMPv6 client via multicast according to a preset period.

[0033] Optionally, in the method, the first option field includes:

[0034] The Type subfield is used to indicate the type of the first option field, Option.

[0035] The Locator content indicator subfield is used to indicate the Srv6 Locator assigned by the ICMPv6 server to the ICMPv6 client.

[0036] Optionally, in the method, the first option field further includes one or more of the following:

[0037] The Reserved subfield is retained;

[0038] The Length subfield is used to indicate the length of the first Option field.

[0039] The Valid-lifetime subfield is used to indicate the valid lifespan of the Srv6 Locator;

[0040] The preferred-lifetime subfield indicates the preferred lifetime of the Srv6 Locator;

[0041] The LB-len subfield is used to indicate the length of the block segment of the Srv6 Locator;

[0042] The LN-Len subfield of node length is used to indicate the length of the Node segment of the Srv6 Locator;

[0043] The Fun-len subfield is used to indicate the length of the FunCT segment of the Srv6 Locator;

[0044] The Arg-len subfield is used to indicate the length of the parameter ARG segment of the Srv6 Locator.

[0045] One embodiment of this application also provides a client device, which is an ICMPv6 client, comprising a transceiver for:

[0046] The first message sent by the ICMPv6 server is received. The message type of the first message is Router Advertisement (RA) message, and the first message includes a first option field. The first option field is used to indicate the IPv6-based segmented routing Srv6 network node identifier (Locator) of the ICMPv6 client.

[0047] One embodiment of this application also provides a server, which is an ICMPv6 server, comprising a transceiver for:

[0048] Send a first message to the ICMPv6 client. The message type of the first message is Router Advertisement (RA) message, and the first message includes a first option field. The first option field is used to indicate the IPv6-based segmented routing Srv6 network node identifier (Locator) of the ICMPv6 client.

[0049] One embodiment of this application also provides an apparatus for allocating network node identifiers (Locators), wherein the apparatus is applied to an Internet Control Message Protocol version 6 (ICMPv6) client, and the apparatus includes:

[0050] The receiving module is used to receive a first message sent by an ICMPv6 server. The message type of the first message is a Router Advertisement (RA) message, and the first message includes a first option field. The first option field is used to indicate the IPv6-based segmented routing Srv6 network node identifier (Locator) of the ICMPv6 client.

[0051] One embodiment of this application also provides an apparatus for allocating network node identifiers (Locators), wherein the apparatus is applied to an Internet Control Message Protocol version 6 (ICMPv6) server, and the apparatus includes:

[0052] The sending module is used to send a first message to the ICMPv6 client. The message type of the first message is a Router Advertisement (RA) message, and the first message includes a first option field. The first option field is used to indicate the IPv6-based segmented routing Srv6 network node identifier (Locator) of the ICMPv6 client.

[0053] One embodiment of this application also provides a network device, which includes a processor, a memory, and a program stored in the memory and executable on the processor, wherein the program, when executed by the processor, implements the method for allocating network node identifiers (Locators) as described in any of the preceding claims.

[0054] One embodiment of this application also provides a readable storage medium, wherein a program is stored on the readable storage medium, and when the program is executed by a processor, it implements the steps in the method for allocating network node identifiers (Locators) as described in any of the preceding claims.

[0055] One embodiment of this application also provides a computer program product, comprising computer instructions that, when executed by a processor, implement the steps of the method for allocating a network node identifier (Locator) as described in any of the preceding claims.

[0056] At least one of the above-mentioned technical solutions of this application has the following beneficial effects:

[0057] The method described in this application extends the NDP protocol and utilizes the RA message of ICMPv6 packets, enabling the client device to automatically obtain the Srv6 Locator from the upstream server device. Attached Figure Description

[0058] Figure 1 This is a schematic diagram of the structure of an SRv6 message;

[0059] Figure 2 This is a schematic diagram of the SID format for SRv6;

[0060] Figure 3 This is one of the schematic diagrams of the ICMPv6 message format;

[0061] Figure 4 A diagram illustrating the different message functions of the IPv6 NDP protocol;

[0062] Figure 5 This is a schematic diagram of a system architecture for one embodiment of the method described in this application.

[0063] Figure 6 This is a flowchart illustrating the method for allocating a Locator according to one embodiment of this application;

[0064] Figure 7 This is the second schematic diagram of the ICMPv6 message format;

[0065] Figure 8 This is one of the structural diagrams of the Option field for the first option;

[0066] Figure 9 This is the second structural diagram of the Option field for the first option;

[0067] Figure 10 This is a schematic diagram of the process for obtaining Srv6 Locator resources using the method described in the embodiments of this application;

[0068] Figure 11 This is a flowchart illustrating the method for allocating a Locator according to another embodiment of this application;

[0069] Figure 12 This is a schematic diagram of the structure of the client device described in the embodiments of this application;

[0070] Figure 13 This is a schematic diagram of the server structure described in an embodiment of this application;

[0071] Figure 14 This is a schematic diagram of the structure of the device according to one embodiment of this application;

[0072] Figure 15 This is a schematic diagram of the structure of the device according to another embodiment of this application. Detailed Implementation

[0073] To make the technical problems, technical solutions and advantages of this application clearer, a detailed description will be provided below in conjunction with the accompanying drawings and specific embodiments.

[0074] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such terms can be used interchangeably where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first" and "second" are generally of the same class, not limited in number; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.

[0075] To clearly illustrate the technical solution of this application, the relevant technologies will be described first.

[0076] SRv6 is short for SR-IPv6, which refers to applying Segment Routing (SR) to the IPv6 forwarding plane. This means encapsulating the SR instruction list (SID list) in IPv6 packets to guide the packets to be forwarded according to the source route.

[0077] The IPv6 header and the Segment Routing Header (SRH) can be configured as follows: Figure 1 As shown, a Next Header value of 43 in the IPv6 Header indicates that the lower-level header is a Routing Extension Header. The SRv6 data plane can be encapsulated using a Segment Routing Header (SRH), which encapsulates segment list information, with each segment being a 128-bit IPv6 address. An SRv6 tunnel is the management entity for the corresponding SID list and, like other tunnels, presents itself to services. SRv6 tunnels can carry all known payload types, including Layer 2, Layer 3, Multi-Protocol Label Switching (MPLS), Transmission Control Protocol (TCP), and User Datagram Protocol (UDP).

[0078] In SRv6, a SID can be understood as a router's IP address, and the SID list represents the list of IP addresses for the entire routing path. For example... Figure 2As shown, an SRv6 SID can be a 128-bit programmable SID, which can include a Locator, a Function (FUNCT), and Arguments (ARGS). The Locator is the network node identifier in the SRv6 protocol suite, assigned to a network node in the network topology, used to forward data packets to that node. The route corresponding to the Locator is advertised to the network by the network node through the Interior Gateway Protocol (IGP), helping other devices forward data packets to the network of the node that advertised the Locator. In an SRv6 SID, the Locator length is variable to adapt to different network sizes. The Locator can be further subdivided into B and N. B identifies the SRv6 SID block, typically assigned by the operator to a subnet, usually represented by a prefix. N is the identifier that distinguishes nodes within that subnet. The Function (FUNCT) expresses the forwarding action to be performed, equivalent to the opcode of a computer instruction. In SRv6 network programming, different forwarding behaviors are described by the Function section, such as forwarding data packets to a specified link or forwarding data by looking up data in a specified table. Arguments (ARGS) is an optional field that represents the parameters that an instruction takes when it is executed. These parameters may contain data streams, services, or any other relevant information.

[0079] In typical technologies, client devices obtain IPv6 addresses from edge client devices in the operator's network, such as BRAS or SR, via the IPv6 NDP protocol. However, the existing NDP protocol can only automatically allocate IPv6 address information. The SRv6 Locator address is a completely different address resource from IPv4 and IPv6 addresses. Currently, there is no solution for client devices to request the allocation of SRv6 Locator from upstream devices (such as BRAS, SR, Packet Data Network Gateway (PGW), or User Plane Function (UPF)). Moreover, edge client devices are usually dynamically online or may go online at any location. The online and offline times are random events, and it is not possible to obtain an SRv6 Locator by pre-configuring the SRv6 Locator address.

[0080] To address the aforementioned technical issues, the method described in this application extends the NDP protocol and utilizes the RA message of ICMPv6 packets, enabling the client device to automatically obtain the Srv6Locator from the upstream server device.

[0081] ICMPv6 is one of the fundamental protocols of IPv6. The protocol type number (i.e., the value of the Next Header field in an IPv6 message) for ICMPv6 is 58. The message format of an ICMPv6 message is as follows: Figure 3 As shown.

[0082] The meanings of each field in the ICMPv6 message are explained as follows:

[0083] Type indicates the message type. A value of 0 to 127 indicates that the ICMPv6 message type is an error message; a value of 128 to 255 indicates that the ICMPv6 message type is a message message.

[0084] The encoding Code indicates a further subdivision of the message type;

[0085] Checksum: Represents the checksum of an ICMPv6 message, where the checksum includes both the ICMPv6 data and the IPv6 header (the IPv6 header does not contain the checksum).

[0086] Data: Used to indicate ICMPv6 data.

[0087] The IPv6 NDP protocol is a fundamental protocol of IPv6. It uses five types of ICMPv6 messages—Neighbor Advertisement (NA), Neighbor Solicitation (NS), Router Advertisement (RA), Router Solicitation (RS), and Redirect—to determine the relationships and address information between neighboring nodes, and to perform functions such as address resolution, verifying neighbor reachability, duplicate address detection, router discovery / prefix discovery, automatic address configuration, and redirection.

[0088] Among them, the different types of message functions of the IPv6 NDP protocol, such as Figure 4 As shown, this protocol replaces the Address Resolution Protocol (ARP), Internet Control Message Protocol (ICMP) Router Discovery, and ICMP Redirect Message in IPv4.

[0089] like Figure 5This is a schematic diagram of a system architecture for one implementation of the method for allocating network node identifiers (Locators) as described in this application. The system employing this method, applied to the ICMPv6 protocol, may include a client device 1, a server 2 (also referred to as a central office device), and a management and control system 3 (such as a controller). The client device 1 may include a CPE and / or an optical modem, etc., and the server 2 may include a router and / or a BRAS, etc. The client device 1 may also be referred to as an ICMPv6 client, and the server 2 may also be referred to as an ICMPv6 server.

[0090] To address the current issue of being unable to allocate a Locator to client devices, one embodiment of this application describes a method for allocating a Locator, applied to an ICMPv6 client, such as... Figure 6 As shown, it includes:

[0091] S610, Receive a first message sent by an ICMPv6 server. The message type of the first message is a Router Advertisement (RA) message, and the first message includes a first option field. The first option field is used to indicate the IPv6-based segmented routing Srv6 network node identifier (Locator) of the ICMPv6 client.

[0092] Using the method described in the embodiments of this application, by extending the NDP protocol and utilizing the RA message of ICMPv6 messages, the client device can automatically obtain the Srv6 Locator from the upstream server device.

[0093] Specifically, the first message sent by the ICMPv6 server is also an ICMPv6 message, in which the message type of the ICMPv6 message (the first message) is RA message, that is, the Type value of the first message is 134.

[0094] In one embodiment, optionally, the format of the first message, which is also an ICMPv6 message, is as follows: Figure 7 As shown, the first message includes an IPv6 basic header and an ICMPv6 packet. The value of the Next Header field in the IPv6 basic header is 58.

[0095] Combination Figure 3 As shown, an ICMPv6 packet includes a Type field, a Code field, a Checksum field, and ICMPv6 Data. A Type value of 0 to 127 indicates an error message; a Type value of 128 to 255 indicates a message type.

[0096] In this embodiment of the application, the message type of the first message is a Router Advertisement (RA) message, that is, the value of the Type field is 134.

[0097] The first message includes at least one Option field in its ICMPv6 Data. In this embodiment, the first message includes a first Option field, which indicates the Srv6 Locator of the ICMPv6 client. Using this implementation, by extending the NDP protocol and utilizing the RA message of the ICMPv6 message, the client device can automatically obtain the Srv6 Locator from the upstream server device.

[0098] In one embodiment, optionally, as shown in the example Figure 8 As shown, the first option, the Option field, includes:

[0099] The Type subfield is used to indicate the type of the first option field, Option.

[0100] The Locator content indicator subfield is used to indicate the Srv6 Locator assigned by the ICMPv6 server to the ICMPv6 client.

[0101] In some embodiments, the number of characters in the Locator content indicator subfield may be less than or equal to 16 characters, which may be determined according to the protocol agreement, and is used to indicate the Srv6 Locator assigned to the client.

[0102] The Type subfield is used to indicate the character value of the Srv6 Locator. Unlike the character value of the Type subfield of the Option field in the usual technology, the type of the Option field, which is specifically used to indicate the first option, is set to be the character used to indicate the Srv6 Locator.

[0103] This implementation defines a new Option field (first Option field) for the RA message of the NDP protocol, compared to the prior art, to serve as the Option indicated by the Srv6 Locator.

[0104] In some of these embodiments, optionally, such as Figure 9 As shown, the first option field may also include one or more of the following:

[0105] The Reserved subfield is retained;

[0106] The Length subfield is used to indicate the length of the first Option field.

[0107] The Valid-lifetime subfield is used to indicate the valid lifespan of the Srv6 Locator;

[0108] The preferred-lifetime subfield indicates the preferred lifetime of the Srv6 Locator;

[0109] The LB-len subfield is used to indicate the length of the block segment of the Srv6 Locator;

[0110] The LN-Len subfield of node length is used to indicate the length of the Node segment of the Srv6 Locator;

[0111] The Fun-len subfield is used to indicate the length of the FunCT segment of the Srv6 Locator;

[0112] The Arg-len subfield is used to indicate the length of the parameter ARG segment of the Srv6 Locator.

[0113] In some embodiments, the number of characters in each of the subfields mentioned above in the first option Option field can be determined according to the protocol agreement, and is not limited here.

[0114] In some embodiments, optionally, the ICMPv6 data Data of the first message may include other Option fields in addition to the first Option field, such as a second Option field. While the first Option field indicates the Srv6 Locator of the client device, the second Option field may also indicate the IPv6 address of the client device.

[0115] Optionally, in the embodiments of this application, combined with Figure 5 As shown, in one implementation, the ICMPv6 server 2 (such as including a router and / or BRAS) can be configured to obtain multiple Srv6 Locator resources at once through the management system 3 (such as a controller located in a region or provincial capital), or multiple Srv6 Locator resources can be obtained through manual configuration. After the ICMPv6 server 2 obtains the multiple Srv6 Locator resources, it can send the Srv6 Locator allocated to the ICMPv6 client to the ICMPv6 client through the first option field in the RA message.

[0116] In one embodiment, optionally, the CMPv6 server 2 sends a first message carrying a first option field to the ICMPv6 client via multicast according to a preset period, so that client devices located on the network, especially edge client devices, can be aware of the existence of the CMPv6 server 2 and send the allocated Srv6 Locator resources to the ICMPv6 client through the first option field in the RA message.

[0117] In another embodiment, optionally, before the ICMPv6 client receives the first message sent by the CMPv6 server, the method further includes:

[0118] A second message is sent to the ICMPv6 server. The message type of the second message is a Router Request RS message.

[0119] Optionally, a second message is sent to the ICMPv6 server, including:

[0120] After accessing the network, the ICMPv6 client sends the second message to the ICMPv6 server.

[0121] Combination Figure 10 As shown, using this implementation method, the ICMPv6 client can trigger the ICMPv6 server to send an RA message by sending an RS message to the ICMPv6 server, and the first option field in the RA message carries the allocated Srv6 Locator resource.

[0122] Combination Figure 4 As shown, the Type field value in the RS message sent by the ICMPv6 client is 133.

[0123] The method described in this application extends the NDP protocol and defines a new Option type. It uses the RA message of ICMPv6 packets to carry the newly defined Option, enabling the client device to automatically obtain the Srv6 Locator from the upstream server device.

[0124] One embodiment of this application also provides a method for allocating network node identifiers (Locators), wherein the method is applied to an Internet Control Message Protocol version 6 (ICMPv6) server, such as... Figure 11 As shown, the method includes:

[0125] S1110, a first message is sent to the ICMPv6 client. The message type of the first message is a Router Advertisement (RA) message, and the first message includes a first option field. The first option field is used to indicate the IPv6-based segmented route Srv6 network node identifier (Locator) of the ICMPv6 client.

[0126] The method described in this application extends the NDP protocol and utilizes the RA message of ICMPv6 packets, enabling the client device to automatically obtain the Srv6 Locator from the upstream server device.

[0127] Optionally, the method further includes:

[0128] Receive a second message sent by the ICMPv6 client, wherein the message type of the second message is a Router Request RS message;

[0129] The first message sent to the ICMPv6 client includes:

[0130] The first message is sent to the ICMPv6 client according to the second message.

[0131] Optionally, the method, wherein sending the first message to the ICMPv6 client includes:

[0132] The first message is sent to the ICMPv6 client via multicast according to a preset period.

[0133] Optionally, in the method, the first option field includes:

[0134] The Type subfield is used to indicate the type of the first option field, Option.

[0135] The Locator content indicator subfield is used to indicate the Srv6 Locator assigned by the ICMPv6 server to the ICMPv6 client.

[0136] Optionally, in the method, the first option field further includes one or more of the following:

[0137] The Reserved subfield is retained;

[0138] The Length subfield is used to indicate the length of the first Option field.

[0139] The Valid-lifetime subfield is used to indicate the valid lifespan of the Srv6 Locator;

[0140] The preferred-lifetime subfield indicates the preferred lifetime of the Srv6 Locator;

[0141] The LB-len subfield is used to indicate the length of the block segment of the Srv6 Locator;

[0142] The LN-Len subfield of node length is used to indicate the length of the Node segment of the Srv6 Locator;

[0143] The Fun-len subfield is used to indicate the length of the FunCT segment of the Srv6 Locator;

[0144] The Arg-len subfield is used to indicate the length of the parameter ARG segment of the Srv6 Locator.

[0145] For a detailed description of the specific implementation of the method described in this application for an ICMPv6 server, please refer to the detailed description of the specific implementation of the method described in this application for an ICMPv6 client, which will not be repeated here.

[0146] One embodiment of this application also provides a client device, which is an ICMPv6 client, such as... Figure 12 As shown, the client device 1200 includes a transceiver 1210, used for:

[0147] The first message sent by the ICMPv6 server is received. The message type of the first message is Router Advertisement (RA) message, and the first message includes a first option field. The first option field is used to indicate the IPv6-based segmented routing Srv6 network node identifier (Locator) of the ICMPv6 client.

[0148] Optionally, the client device, before the transceiver 1210 receives the first message sent by the ICMPv6 server, is further configured to:

[0149] A second message is sent to the ICMPv6 server. The message type of the second message is a Router Request RS message.

[0150] Optionally, in the client device, transceiver 1210 sends a second message to the ICMPv6 server, including:

[0151] After accessing the network, the ICMPv6 client sends the second message to the ICMPv6 server.

[0152] Optionally, in the client device, the transceiver 1210 receives a first message sent by the ICMPv6 server, including:

[0153] Receive the first message sent by the ICMPv6 server in a multicast manner according to a preset period.

[0154] Optionally, in the client device, the first option's Option field includes:

[0155] The Type subfield is used to indicate the type of the first option field, Option.

[0156] The Locator content indicator subfield is used to indicate the Srv6 Locator assigned by the ICMPv6 server to the ICMPv6 client.

[0157] Optionally, in the client device, the first option field further includes one or more of the following:

[0158] The Reserved subfield is retained;

[0159] The Length subfield is used to indicate the length of the first Option field.

[0160] The Valid-lifetime subfield is used to indicate the valid lifespan of the Srv6 Locator;

[0161] The preferred-lifetime subfield indicates the preferred lifetime of the Srv6 Locator;

[0162] The LB-len subfield is used to indicate the length of the block segment of the Srv6 Locator;

[0163] The LN-Len subfield of node length is used to indicate the length of the Node segment of the Srv6 Locator;

[0164] The Fun-len subfield is used to indicate the length of the FunCT segment of the Srv6 Locator;

[0165] The Arg-len subfield is used to indicate the length of the parameter ARG segment of the Srv6 Locator.

[0166] One embodiment of this application also provides a server, said server being an ICMPv6 server, such as... Figure 13As shown, the server 1300 includes a transceiver 1310, used for:

[0167] Send a first message to the ICMPv6 client. The message type of the first message is Router Advertisement (RA) message, and the first message includes a first option field. The first option field is used to indicate the IPv6-based segmented routing Srv6 network node identifier (Locator) of the ICMPv6 client.

[0168] Optionally, in the server, the transceiver 1310 is further configured to:

[0169] Receive a second message sent by the ICMPv6 client, wherein the message type of the second message is a Router Request RS message;

[0170] Transceiver 1310 sends the first message to the ICMPv6 client, including:

[0171] The first message is sent to the ICMPv6 client according to the second message.

[0172] Optionally, in the server, the transceiver 1310 sends a first message to the ICMPv6 client, including:

[0173] The first message is sent to the ICMPv6 client via multicast according to a preset period.

[0174] Optionally, the server, wherein the first option Option field includes:

[0175] The Type subfield is used to indicate the type of the first option field, Option.

[0176] The Locator content indicator subfield is used to indicate the Srv6 Locator assigned by the ICMPv6 server to the ICMPv6 client.

[0177] Optionally, the server further includes one or more of the following in the first option field:

[0178] The Reserved subfield is retained;

[0179] The Length subfield is used to indicate the length of the first Option field.

[0180] The Valid-lifetime subfield is used to indicate the valid lifespan of the Srv6 Locator;

[0181] The preferred-lifetime subfield indicates the preferred lifetime of the Srv6 Locator;

[0182] The LB-len subfield is used to indicate the length of the block segment of the Srv6 Locator;

[0183] The LN-Len subfield of node length is used to indicate the length of the Node segment of the Srv6 Locator;

[0184] The Fun-len subfield is used to indicate the length of the FunCT segment of the Srv6 Locator;

[0185] The Arg-len subfield is used to indicate the length of the parameter ARG segment of the Srv6 Locator.

[0186] One embodiment of this application also provides an apparatus for allocating network node identifiers (Locators), applied to an Internet Control Message Protocol version 6 (ICMPv6) client, such as... Figure 14 As shown, the device includes:

[0187] The receiving module 1410 is used to receive a first message sent by an ICMPv6 server. The message type of the first message is a Router Advertisement (RA) message, and the first message includes a first option field. The first option field is used to indicate the IPv6-based segmented routing Srv6 network node identifier (Locator) of the ICMPv6 client.

[0188] Optionally, the apparatus further includes a sending module 1420, configured to send a second message to the ICMPv6 server before the receiving module 1410 receives the first message sent by the ICMPv6 server, wherein the message type of the second message is a Router Request RS message.

[0189] Optionally, in the aforementioned apparatus, the sending module 1420 sends a second message to the ICMPv6 server, including:

[0190] After accessing the network, the ICMPv6 client sends the second message to the ICMPv6 server.

[0191] Optionally, in the aforementioned apparatus, the receiving module 1410 receives a first message sent by the ICMPv6 server, including:

[0192] Receive the first message sent by the ICMPv6 server in a multicast manner according to a preset period.

[0193] Optionally, in the device, the first option field includes:

[0194] The Type subfield is used to indicate the type of the first option field, Option.

[0195] The Locator content indicator subfield is used to indicate the Srv6 Locator assigned by the ICMPv6 server to the ICMPv6 client.

[0196] Optionally, in the device, the first option field further includes one or more of the following:

[0197] The Reserved subfield is retained;

[0198] The Length subfield is used to indicate the length of the first Option field.

[0199] The Valid-lifetime subfield is used to indicate the valid lifespan of the Srv6 Locator;

[0200] The preferred-lifetime subfield indicates the preferred lifetime of the Srv6 Locator;

[0201] The LB-len subfield is used to indicate the length of the block segment of the Srv6 Locator;

[0202] The LN-Len subfield of node length is used to indicate the length of the Node segment of the Srv6 Locator;

[0203] The Fun-len subfield is used to indicate the length of the FunCT segment of the Srv6 Locator;

[0204] The Arg-len subfield is used to indicate the length of the parameter ARG segment of the Srv6 Locator.

[0205] One embodiment of this application also provides an apparatus for allocating network node identifiers (Locators), applied to an Internet Control Message Protocol version 6 (ICMPv6) server, such as... Figure 15 As shown, the device includes:

[0206] The sending module 1510 is used to send a first message to an ICMPv6 client. The message type of the first message is a Router Advertisement (RA) message, and the first message includes a first option field. The first option field is used to indicate the IPv6-based segmented routing Srv6 network node identifier (Locator) of the ICMPv6 client.

[0207] Optionally, the device further includes:

[0208] The receiving module 1520 is used to receive a second message sent by the ICMPv6 client, wherein the message type of the second message is a Router Request RS message;

[0209] The sending module 1510 sends a first message to the ICMPv6 client, including:

[0210] The first message is sent to the ICMPv6 client according to the second message.

[0211] Optionally, in the aforementioned apparatus, the sending module 1510 sends a first message to the ICMPv6 client, including:

[0212] The first message is sent to the ICMPv6 client via multicast according to a preset period.

[0213] Optionally, in the device, the first option field includes:

[0214] The Type subfield is used to indicate the type of the first option field, Option.

[0215] The Locator content indicator subfield is used to indicate the Srv6 Locator assigned by the ICMPv6 server to the ICMPv6 client.

[0216] Optionally, in the device, the first option field further includes one or more of the following:

[0217] The Reserved subfield is retained;

[0218] The Length subfield is used to indicate the length of the first Option field.

[0219] The Valid-lifetime subfield is used to indicate the valid lifespan of the Srv6 Locator;

[0220] The preferred-lifetime subfield indicates the preferred lifetime of the Srv6 Locator;

[0221] The LB-len subfield is used to indicate the length of the block segment of the Srv6 Locator;

[0222] The LN-Len subfield of node length is used to indicate the length of the Node segment of the Srv6 Locator;

[0223] The Fun-len subfield is used to indicate the length of the FunCT segment of the Srv6 Locator;

[0224] The Arg-len subfield is used to indicate the length of the parameter ARG segment of the Srv6 Locator.

[0225] One embodiment of this application also provides a network device, which includes a processor, a memory, and a program stored in the memory and executable on the processor, wherein the program, when executed by the processor, implements the method for allocating network node identifiers (Locators) as described in any of the preceding claims.

[0226] The specific implementation of the method for allocating network node identifiers (Locators) by the program running on the processor of the network device can be found in the detailed description of the method when applied to ICMPv6 clients or ICMPv6 servers, and will not be repeated here.

[0227] In addition, specific embodiments of this application also provide a readable storage medium storing a computer program thereon, wherein the program, when executed by a processor, implements the steps in the method for allocating network node identifiers (Locators) as described in any of the above.

[0228] Specifically, the readable storage medium is applied to the ICMPv6 client or ICMPv6 server mentioned above. When applied to the ICMPv6 client or ICMPv6 server, the execution steps in the method for allocating the network node identifier Locator are described in detail above and will not be repeated here.

[0229] Another embodiment of this application also provides a computer program product, which includes computer instructions that, when executed by a processor, implement the steps of the method for allocating a network node identifier (Locator) as described above.

[0230] Optionally, embodiments of this application may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0231] The computer program product described in this application includes computer instructions that, when executed by a processor, implement the various processes of the method embodiments shown above and achieve the same technical effects. To avoid repetition, these will not be repeated here.

[0232] In the several embodiments provided in this application, it should be understood that the disclosed methods and apparatus can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.

[0233] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can be physically included separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or in the form of hardware plus software functional units.

[0234] The integrated units implemented as software functional units described above can be stored in a computer-readable storage medium. These software functional units, stored in a storage medium, include several instructions that cause a computer device (which may be a personal computer, server, or network device, etc.) to execute some steps of the transmission and reception methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0235] The above describes the preferred embodiments of this application. It should be noted that those skilled in the art can make several improvements and modifications without departing from the principles described in this application, and these improvements and modifications should also be considered within the scope of protection of this application.

Claims

1. A method for assigning network node identifiers (Locators), characterized in that, The method, applied to an Internet Control Message Protocol version 6 (ICMPv6) client, includes: The first message sent by the ICMPv6 server is received. The message type of the first message is Router Advertisement (RA) message, and the first message includes a first option field. The first option field is used to indicate the IPv6-based segmented routing Srv6 network node identifier (Locator) of the ICMPv6 client.

2. The method according to claim 1, characterized in that, Before receiving the first message sent by the ICMPv6 server, the method further includes: A second message is sent to the ICMPv6 server. The message type of the second message is a Router Request RS message.

3. The method according to claim 2, characterized in that, Send a second message to the ICMPv6 server, including: After accessing the network, the ICMPv6 client sends the second message to the ICMPv6 server.

4. The method according to claim 1, characterized in that, The first message received from the ICMPv6 server includes: Receive the first message sent by the ICMPv6 server in a multicast manner according to a preset period.

5. The method according to claim 1, characterized in that, The first option, the Option field, includes: The Type subfield is used to indicate the type of the first option field, Option. The Locator content indicator subfield is used to indicate the Srv6Locator assigned by the ICMPv6 server to the ICMPv6 client.

6. The method according to claim 5, characterized in that, The first option field also includes one or more of the following: Reserved subfield; The Length subfield is used to indicate the length of the first Option field. The Valid-lifetime subfield is used to indicate the valid lifespan of the Srv6 Locator; The preferred-lifetime subfield indicates the preferred lifetime of the Srv6 Locator; The LB-len subfield is used to indicate the length of the block segment of the Srv6 Locator; The LN-Len subfield of node length is used to indicate the length of the Node segment of the Srv6 Locator; The Fun-len subfield is used to indicate the length of the FunCT segment of the Srv6 Locator; The Arg-len subfield is used to indicate the length of the parameter ARG segment of the Srv6 Locator.

7. A method for assigning network node identifiers (Locators), characterized in that, Applied to an Internet Control Message Protocol version 6 (ICMPv6) server, the method includes: Send a first message to the ICMPv6 client. The message type of the first message is Router Advertisement (RA) message, and the first message includes a first option field. The first option field is used to indicate the IPv6-based segmented routing Srv6 network node identifier (Locator) of the ICMPv6 client.

8. The method according to claim 7, characterized in that, The method further includes: Receive a second message sent by the ICMPv6 client, wherein the message type of the second message is a Router Request RS message; The first message sent to the ICMPv6 client includes: The first message is sent to the ICMPv6 client according to the second message.

9. The method according to claim 7, characterized in that, Sending the first message to the ICMPv6 client includes: The first message is sent to the ICMPv6 client via multicast according to a preset period.

10. The method according to claim 7, characterized in that, The first option, the Option field, includes: The Type subfield is used to indicate the type of the first option field, Option. The Locator content indicator subfield is used to indicate the Srv6Locator assigned by the ICMPv6 server to the ICMPv6 client.

11. The method according to claim 10, characterized in that, The first option field also includes one or more of the following: Reserved subfield; The Length subfield is used to indicate the length of the first Option field. The Valid-lifetime subfield is used to indicate the valid lifespan of the Srv6 Locator; The preferred-lifetime subfield indicates the preferred lifetime of the Srv6 Locator; The LB-len subfield is used to indicate the length of the block segment of the Srv6 Locator; The LN-Len subfield of node length is used to indicate the length of the Node segment of the Srv6 Locator; The Fun-len subfield is used to indicate the length of the FunCT segment of the Srv6 Locator; The Arg-len subfield is used to indicate the length of the parameter ARG segment of the Srv6 Locator.

12. A client device, wherein the client device is an ICMPv6 client, characterized in that, Including transceivers, used for: The first message sent by the ICMPv6 server is received. The message type of the first message is Router Advertisement (RA) message, and the first message includes a first option field. The first option field is used to indicate the IPv6-based segmented routing Srv6 network node identifier (Locator) of the ICMPv6 client.

13. A server, wherein the server is an ICMPv6 server, characterized in that, Including transceivers, used for: Send a first message to the ICMPv6 client. The message type of the first message is Router Advertisement (RA) message, and the first message includes a first option field. The first option field is used to indicate the IPv6-based segmented routing Srv6 network node identifier (Locator) of the ICMPv6 client.

14. An apparatus for allocating network node identifiers (Locators), characterized in that, The device, used in an Internet Control Message Protocol version 6 (ICMPv6) client, comprises: The receiving module is used to receive a first message sent by an ICMPv6 server. The message type of the first message is a Router Advertisement (RA) message, and the first message includes a first option field. The first option field is used to indicate the IPv6-based segmented routing Srv6 network node identifier (Locator) of the ICMPv6 client.

15. An apparatus for allocating network node identifiers (Locators), characterized in that, The apparatus, used in an Internet Control Message Protocol version 6 (ICMPv6) server, comprises: The sending module is used to send a first message to the ICMPv6 client. The message type of the first message is a Router Advertisement (RA) message, and the first message includes a first option field. The first option field is used to indicate the IPv6-based segmented routing Srv6 network node identifier (Locator) of the ICMPv6 client.

16. A network device, characterized in that, It includes a processor, a memory, and a program stored in the memory and executable on the processor, wherein the program, when executed by the processor, implements the method of allocating a network node identifier (Locator) as described in any one of claims 1 to 6, or implements the method of allocating a network node identifier (Locator) as described in any one of claims 7 to 11.

17. A readable storage medium, characterized in that, The readable storage medium stores a program that, when executed by a processor, implements the steps of the method for allocating network node identifiers (Locators) as described in any one of claims 1 to 6, or implements the steps of the method for allocating network node identifiers (Locators) as described in any one of claims 7 to 11.

18. A computer program product, characterized in that, Includes computer instructions that, when executed by a processor, implement the steps in the method for allocating a network node identifier (Locator) as described in any one of claims 1 to 6, or implement the steps in the method for allocating a network node identifier (Locator) as described in any one of claims 7 to 11.