Search

CN-122001799-A - Method, device, equipment and storage medium for allocating locators

CN122001799ACN 122001799 ACN122001799 ACN 122001799ACN-122001799-A

Abstract

The embodiment of the application provides a method, a device, equipment and a storage medium for allocating locators, wherein the method comprises the steps of receiving a first message sent by an ICMPv6 server, wherein the message type of the first message is Router Advertisement (RA) information, and the first message comprises a first Option field which is used for indicating an IPv 6-based segmented routing Srv6 network node identifier Locator of the ICMPv6 client. By adopting the method, the client device can automatically obtain the Srv6Locator from the upstream server device by expanding the NDP protocol and utilizing the RA message of the ICMPv6 message.

Inventors

  • HAN RUIBO
  • CHENG WEIQIANG
  • GONG LIYAN

Assignees

  • 中国移动通信有限公司研究院
  • 中国移动通信集团有限公司

Dates

Publication Date
20260508
Application Date
20241104

Claims (18)

  1. 1. A method for allocating network node identifiers, which is characterized by being applied to an ICMPv6 client of a sixth version of an internet control message protocol, the method comprising: And receiving a first message sent by an ICMPv6 server, wherein the message type of the first message is router advertisement RA message, and the first message comprises a first Option field which is used for indicating an IPv 6-based segmented routing Srv6 network node identifier Locator of the ICMPv6 client.
  2. 2. The method of claim 1, wherein prior to receiving the first message sent by the ICMPv6 server, the method further comprises: And sending a second message to the ICMPv6 server, wherein the message type of the second message is a router request RS message.
  3. 3. The method of claim 2, wherein sending the second message to the ICMPv6 server comprises: And after the ICMPv6 client accesses the network, the ICMPv6 client sends the second message to the ICMPv6 server.
  4. 4. The method of claim 1, wherein the receiving the first message sent by the ICMPv6 server includes: and receiving the first message sent by the ICMPv6 server in a multicast mode according to a preset period.
  5. 5. The method of claim 1, wherein the first Option field comprises: A Type subfield for indicating a Type of the first Option field; And the Locator content indication subfield is used for indicating the Srv6 Locator distributed by the ICMPv6 server for the ICMPv6 client.
  6. 6. The method of claim 5, wherein the first Option field further comprises one or more of: Reserving Reserved subfields; A Length subfield for indicating the Length of the first Option field; A Valid-lifetime subfield for indicating a Valid lifetime of the Srv6 Locator; a Preferred lifetime preference-lifetime sub-field for indicating a Preferred lifetime of the Srv6 Locator; A Block length LB-len subfield for indicating a Block segment length of the Srv6 Locator; A Node length LN-Len subfield, configured to indicate a Node segment length of the Srv6 Locator; A function length Fun-len subfield for indicating a length of a function FUNCT segment of the Srv6 Locator; a parameter length Arg-len subfield for indicating a parameter ARG segment length of said Srv6 Locator.
  7. 7. A method for allocating network node identifiers, which is characterized by being applied to an ICMPv6 server of a sixth version of an internet control message protocol, the method comprising: And sending a first message to the ICMPv6 client, wherein the message type of the first message is router advertisement RA message, and the first message comprises a first Option field, and the first Option field is used for indicating an IPv 6-based segmented routing Srv6 network node identifier Locator of the ICMPv6 client.
  8. 8. The method of claim 7, wherein the method further comprises: Receiving a second message sent by the ICMPv6 client, wherein the message type of the second message is a router request RS message; the method for sending the first message to the ICMPv6 client comprises the following steps: and sending the first message to the ICMPv6 client according to the second message.
  9. 9. The method of claim 7, wherein the sending the first message to the ICMPv6 client comprises: And sending the first message to the ICMPv6 client in a multicast mode according to a preset period.
  10. 10. The method of claim 7, wherein the first Option field comprises: A Type subfield for indicating a Type of the first Option field; And the Locator content indication subfield is used for indicating the Srv6 Locator distributed by the ICMPv6 server for the ICMPv6 client.
  11. 11. The method of claim 10, wherein the first Option field further comprises one or more of: Reserving Reserved subfields; A Length subfield for indicating the Length of the first Option field; A Valid-lifetime subfield for indicating a Valid lifetime of the Srv6 Locator; a Preferred lifetime preference-lifetime sub-field for indicating a Preferred lifetime of the Srv6 Locator; A Block length LB-len subfield for indicating a Block segment length of the Srv6 Locator; A Node length LN-Len subfield, configured to indicate a Node segment length of the Srv6 Locator; A function length Fun-len subfield for indicating a length of a function FUNCT segment of the Srv6 Locator; a parameter length Arg-len subfield for indicating a parameter ARG segment length of said Srv6 Locator.
  12. 12. A client device, the client device being an ICMPv6 client, comprising a transceiver for: And receiving a first message sent by an ICMPv6 server, wherein the message type of the first message is router advertisement RA message, and the first message comprises a first Option field which is used for indicating an IPv 6-based segmented routing Srv6 network node identifier Locator of the ICMPv6 client.
  13. 13. A server, the server being an ICMPv6 server, comprising a transceiver for: And sending a first message to the ICMPv6 client, wherein the message type of the first message is router advertisement RA message, and the first message comprises a first Option field, and the first Option field is used for indicating an IPv 6-based segmented routing Srv6 network node identifier Locator of the ICMPv6 client.
  14. 14. An apparatus for allocating a network node identifier Locator, which is applied to an ICMPv6 client of a sixth version of an internet control message protocol, the apparatus comprising: The receiving module is configured to receive a first message sent by an ICMPv6 server, where a message type of the first message is a router advertisement RA message, and the first message includes a first Option field, where the first Option field is used to indicate an IPv 6-based segment routing Srv6 network node identifier Locator of the ICMPv6 client.
  15. 15. An apparatus for allocating network node identifiers, which is applied to an ICMPv6 server of a sixth version of an internet control message protocol, the apparatus comprising: The sending module is configured to send a first message to an ICMPv6 client, where a message type of the first message is a router advertisement RA message, and the first message includes a first Option field, where the first Option field is used to indicate an IPv 6-based segment routing Srv6 network node identifier Locator of the ICMPv6 client.
  16. 16. A network device comprising a processor, a memory and a program stored on the memory and executable on the processor, which when executed by the processor implements a method of allocating a network node identifier Locator according to any one of claims 1 to 6 or implements a method of allocating a network node identifier Locator according to any one of claims 7 to 11.
  17. 17. A readable storage medium, characterized in that the readable storage medium has stored thereon a program, which when executed by a processor, implements the steps of the method of allocating network node identification Locator according to any of claims 1 to 6 or the steps of the method of allocating network node identification Locator according to any of claims 7 to 11.
  18. 18. A computer program product comprising computer instructions which, when executed by a processor, implement steps in a method of allocating a network node identifier, locators, according to any one of claims 1 to 6, or implement steps in a method of allocating a network node identifier, locators, according to any one of claims 7 to 11.

Description

Method, device, equipment and storage medium for allocating locators Technical Field The application relates to the technical field of transmission and IP, in particular to a method, a device, equipment and a storage medium for distributing locators. Background The sixth version of the internet control message protocol (Internet Control Message Protocol Version, ICMPv 6) is one of the underlying protocols based on internet protocol version6 (Internet Protocol Version, ipv 6). Currently, client devices such as optical network units (Optical Network Unit, ONUs), routers, switches, etc., acquire IPv6 addresses from edge client devices of an operator network, such as Broadband Remote access server (ACCESS SERVER, BRAS) or Service Router (SR), through IPv6 neighbor discovery protocol (IPv 6 Neighbor Discovery Protocol, IPv6 NDP). However, the IPv6 address and the network node identifier Locator in the segmented routing (Segment Routing IPv, SRv 6) protocol system based on the IPv6 forwarding plane are completely different resources, and no related method can allocate the Locator for the client device at present. Disclosure of Invention The application aims to provide a method, a device, equipment and a storage medium for allocating locators, which are used for solving the problem that the locators cannot be allocated to client equipment at present. An embodiment of the present application provides a method for allocating network node identifiers, where the method is applied to an ICMPv6 client of a sixth version of an internet control message protocol, and the method includes: And receiving a first message sent by an ICMPv6 server, wherein the message type of the first message is router advertisement RA message, and the first message comprises a first Option field which is used for indicating an IPv 6-based segmented routing Srv6 network node identifier Locator of the ICMPv6 client. Optionally, before the receiving the first message sent by the ICMPv6 server, the method further includes: And sending a second message to the ICMPv6 server, wherein the message type of the second message is a router request RS message. Optionally, the method, wherein sending the second message to the ICMPv6 server includes: And after the ICMPv6 client accesses the network, the ICMPv6 client sends the second message to the ICMPv6 server. Optionally, the method, wherein the receiving the first message sent by the ICMPv6 server includes: and receiving the first message sent by the ICMPv6 server in a multicast mode according to a preset period. Optionally, the method, wherein the first Option field includes: A Type subfield for indicating a Type of the first Option field; And the Locator content indication subfield is used for indicating the Srv6 Locator distributed by the ICMPv6 server for the ICMPv6 client. Optionally, the method of claim, wherein the first Option field further includes one or more of: Reserving Reserved subfields; A Length subfield for indicating the Length of the first Option field; A Valid-lifetime subfield for indicating a Valid lifetime of the Srv6 Locator; a Preferred lifetime preference-lifetime sub-field for indicating a Preferred lifetime of the Srv6 Locator; A Block length LB-len subfield for indicating a Block segment length of the Srv6 Locator; A Node length LN-Len subfield, configured to indicate a Node segment length of the Srv6 Locator; A function length Fun-len subfield for indicating a length of a function FUNCT segment of the Srv6 Locator; a parameter length Arg-len subfield for indicating a parameter ARG segment length of said Srv6 Locator. The embodiment of the application also provides a method for distributing network node identifiers (identifiers), wherein the method is applied to an ICMPv6 server of a sixth version of an Internet control message protocol, and comprises the following steps: And sending a first message to the ICMPv6 client, wherein the message type of the first message is router advertisement RA message, and the first message comprises a first Option field, and the first Option field is used for indicating an IPv 6-based segmented routing Srv6 network node identifier Locator of the ICMPv6 client. Optionally, the method, wherein the method further comprises: Receiving a second message sent by the ICMPv6 client, wherein the message type of the second message is a router request RS message; the method for sending the first message to the ICMPv6 client comprises the following steps: and sending the first message to the ICMPv6 client according to the second message. Optionally, the method, wherein the sending the first message to the ICMPv6 client includes: And sending the first message to the ICMPv6 client in a multicast mode according to a preset period. Optionally, the method, wherein the first Option field includes: A Type subfield for indicating a Type of the first Option field; And the Locator content indication subfield is used for indicating the Srv6 Locator distributed by the