Communication method and apparatus, communication device, and computer storage medium

By introducing a new option in the DHCPv6 protocol to carry Locator information, the automation problem of SRv6 address allocation in the existing technology is solved, the automatic allocation of Locator information is realized, and it is suitable for a variety of communication systems, improving the efficiency and flexibility of address management. sex.

WO2024188330A1PCT designated stage expired Publication Date: 2024-09-19CHINA MOBILE COMM LTD RES INST +1
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/081813
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-16
Filing Date
2024-03-15
Publication Date
2024-09-19

AI Technical Summary

Technical Problem

It is difficult for existing network protocols DHCPv4 and DHCPv6 to automatically allocate SRv6 locator addresses, and locator address allocation relies on manual configuration, lacking an automated and efficient allocation mechanism.

Method used

By introducing new options in the DHCPv6 protocol and defining fields used to carry locator information, these options are used to request and allocate locator information when the client device and the DHCPv6 server interact, realizing automatic allocation of SRv6 addresses.

Benefits of technology

It realizes the automatic distribution of SRv6 Locator information, improves the efficiency and flexibility of network address management, reduces the dependence on manual configuration, and is suitable for various communication systems such as GSM, LTE and 5G networks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024081813_19092024_PF_FP_ABST
    Figure CN2024081813_19092024_PF_FP_ABST
Patent Text Reader

Abstract

Embodiments of the present invention disclose a communication method and apparatus, a communication device, and a computer storage medium. The method comprises: a client device receives a first message sent by a DHCPv6 server, wherein the first message comprises first information, the first information represents network node identifier Locator information allocated for the client device, the first message comprises a first option and a second option nested in the first option, and the first option and / or the second option are / is used for carrying the first information.
Need to check novelty before this filing date? Find Prior Art

Description

Communication method, device, communication equipment and computer storage medium

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application is based on the Chinese patent application with application number 202310258244.9 and application date March 16, 2023, and claims the priority of the Chinese patent application. The entire content of the Chinese patent application is hereby introduced into this application as a reference. Technical Field

[0003] The present invention relates to the field of communication technology, and in particular to a communication method, apparatus, communication equipment and computer storage medium. Background Art

[0004] Currently, the Dynamic Host Configuration Protocol (DHCPv4) for Internet Protocol Version 4 (IPv4) and the Dynamic Host Configuration Protocol (DHCPv6) for Internet Protocol Version 6 (IPv6) are technologies for assigning IPv4 / IPv6 addresses to clients. SRv6 is a segment routing (SR) solution based on IPv6 extensions. The locator address in SRv6 is a completely different address resource from the IPv4 / IPv6 address and can currently only be manually configured.

[0005] Summary of the Invention

[0006] To solve existing technical problems, embodiments of the present invention provide a communication method, apparatus, communication equipment, and computer storage medium.

[0007] To achieve the above-mentioned purpose, the technical solution of the embodiment of the present invention is implemented as follows:

[0008] In a first aspect, an embodiment of the present invention provides a communication method, which is applied to a client device and includes:

[0009] receiving a first message sent by a DHCPv6 server, where the first message includes first information, where the first information indicates network node identifier (Locator) information allocated to the client device;

[0010] The first message includes a first option and a second option nested in the first option, and the first option and / or the second option are used to carry the first information.

[0011] In the above solution, the first option includes a first field for indicating a first type code, and the second option includes a second field for indicating a second type code; the first type code and the second type code are used to indicate the allocation service of the locator information;

[0012] The second option also includes a third field, and the third field is used to carry the Locator information.

[0013] In the above solution, the first option also includes at least one of the following fields:

[0014] The fourth field is used to indicate the length of the option;

[0015] The fifth field is used to represent the identity alliance IA identifier;

[0016] a sixth field for indicating a first time during which the client device sends a request to the server that allocates the address to extend the valid lifetime of the address;

[0017] The seventh field is used to represent a second time. During the second time, the client device sends a request to any server that can be found to extend the valid life cycle of the address.

[0018] In the above solution, the second option also includes at least one of the following fields:

[0019] The eighth field is used to indicate the length of the option;

[0020] The ninth field is used to indicate the preferred lifecycle of the Locator information;

[0021] The tenth field is used to indicate the valid lifetime of the assigned prefix;

[0022] The eleventh field is used to indicate the length of the Locator information;

[0023] The twelfth field is used to indicate the length of the SRv6-related function information;

[0024] The thirteenth field is used to indicate the length of the SRv6-related variable Args information;

[0025] A fourteenth field for indicating the length of the common prefix block;

[0026] The fifteenth field is used to represent other information.

[0027] In the above solution, when receiving first messages sent by multiple DHCPv6 servers, the method further includes:

[0028] A first DHCPv6 server is selected from the multiple DHCPv6 servers, and locator information carried in a first message sent by the first DHCPv6 server is determined as target locator information.

[0029] In the above solution, the method further includes: sending a second message, wherein the second message includes at least information of the first DHCPv6 server;

[0030] receiving a third message sent by the first DHCPv6 server, where the third message is used to confirm locator information allocated to the client device;

[0031] The second message and / or the third message includes the first option and the second option nested in the first option.

[0032] In the above solution, before receiving the first message sent by the DHCPv6 server, the method further includes: sending a fourth message, wherein the fourth message is used to request the DHCPv6 server to allocate locator information;

[0033] The fourth message includes the first option and the second option nested in the first option.

[0034] In a second aspect, an embodiment of the present invention further provides a communication method, which is applied to a DHCPv6 server, and includes:

[0035] Sending a first message to a client device, where the first message includes first information, where the first information indicates locator information of a network node identifier allocated to the client device;

[0036] The first message includes a first option and a second option nested in the first option, and the first option and / or the second option are used to carry the first information.

[0037] In the above solution, the first option includes a first field for indicating a first type code, and the second option includes a second field for indicating a second type code; the first type code and the second type code are used to indicate the allocation service of the locator information;

[0038] The second option also includes a third field, and the third field is used to carry the Locator information.

[0039] In the above solution, the first option also includes at least one of the following fields:

[0040] The fourth field is used to indicate the length of the option;

[0041] The fifth field is used to represent the identity alliance IA identifier;

[0042] a sixth field for indicating a first time during which the client device sends a request to the server that allocates the address to extend the valid lifetime of the address;

[0043] The seventh field is used to represent a second time. During the second time, the client device sends a request to any server that can be found to extend the valid life cycle of the address.

[0044] In the above solution, the second option also includes at least one of the following fields:

[0045] The eighth field is used to indicate the length of the option;

[0046] The ninth field is used to indicate the preferred lifecycle of the Locator information;

[0047] The tenth field is used to indicate the valid lifetime of the assigned prefix;

[0048] The eleventh field is used to indicate the length of the Locator information;

[0049] The twelfth field is used to indicate the length of the SRv6-related function information;

[0050] The thirteenth field is used to indicate the length of the SRv6-related variable Args information;

[0051] A fourteenth field for indicating the length of the common prefix block;

[0052] The fifteenth field is used to represent other information.

[0053] In the above solution, the method further includes: receiving a second message sent by the client device, wherein the second message includes at least information of the first DHCPv6 server; and the second message includes the first option and a second option nested in the first option.

[0054] In the above solution, when the DHCPv6 server is the first DHCPv6 server, the method further includes: sending a third message to the client device, the third message being used to confirm the locator information allocated to the client device;

[0055] The third message includes the first option and the second option nested in the first option.

[0056] In the above solution, the method further includes: receiving a fourth message sent by the client device, wherein the fourth message is used to request the DHCPv6 server to allocate locator information;

[0057] The fourth message includes the first option and the second option nested in the first option.

[0058] In a third aspect, an embodiment of the present invention further provides a communication device, which is applied to a client device; the device includes a first receiving unit, configured to receive a first message sent by a DHCPv6 server, the first message including first information, the first information indicating locator information allocated to the client device;

[0059] The first message includes a first option and a second option nested in the first option, and the first option and / or the second option are used to carry the first information.

[0060] In a fourth aspect, an embodiment of the present invention further provides a communication device, which is applied to a DHCPv6 server; the device includes a second sending unit, configured to send a first message to a client device, wherein the first message includes first information, and the first information represents locator information allocated to the client device;

[0061] The first message includes a first option and a second option nested in the first option, and the first option and / or the second option are used to carry the first information.

[0062] In a fifth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the communication method described in the first or second aspect of the embodiment of the present invention.

[0063] In the sixth aspect, an embodiment of the present invention further provides a communication device, comprising a memory, a processor, and a computer program stored in the memory and runnable on the processor, wherein when the processor executes the program, the steps of the communication method described in the first or second aspect of the embodiment of the present invention are implemented.

[0064] Embodiments of the present invention provide a communication method, apparatus, communication device, and computer storage medium. The method includes: a client device receiving a first message sent by a DHCPv6 server, the first message including first information indicating network node identifier (Locator) information allocated to the client device; wherein the first message includes a first option and a second option nested within the first option, the first option and / or the second option being used to carry the first information. The technical solution of the embodiments of the present invention is employed to define two new options different from those traditionally used to allocate IPv4 or IPv6 addresses, thereby enabling the allocation of SRv6 Locator information by carrying or indicating Locator information through the new options. BRIEF DESCRIPTION OF THE DRAWINGS

[0065] FIG1 is a schematic diagram of a scenario in which a communication method according to an embodiment of the present invention is applied;

[0066] FIG2 is a schematic diagram of the SRv6 message format in an embodiment of the present invention;

[0067] FIG3 is a schematic diagram of the SID format in an embodiment of the present invention;

[0068] FIG4 is a flow chart of a communication method according to an embodiment of the present invention;

[0069] 5a and 5b are schematic diagrams of option formats in a communication method according to an embodiment of the present invention;

[0070] FIG6 is a second flow chart of a communication method according to an embodiment of the present invention;

[0071] FIG7 is a schematic diagram of an interaction flow of a communication method according to an embodiment of the present invention;

[0072] FIG8 is a schematic diagram of the first structure of a communication device according to an embodiment of the present invention;

[0073] FIG9 is a second schematic diagram of the structure of a communication device according to an embodiment of the present invention;

[0074] FIG10 is a schematic diagram of the hardware structure of a communication device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0075] The present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0076] The technical solutions of the embodiments of the present invention can be applied to various communication systems, such as a Global System of Mobile Communication (GSM) system, a Long Term Evolution (LTE) system, or a 5G system. Optionally, the 5G system or 5G network may also be referred to as a New Radio (NR) system or NR network.

[0077] Exemplarily, the communication system applied in the embodiment of the present invention may include a network device and a terminal device (also referred to as a terminal, a communication terminal, etc.); the network device may be a device that communicates with the terminal device. The network device may provide communication coverage within a certain area and may communicate with terminals located in the area. Optionally, the network device may be a base station in each communication system, such as an evolved base station (eNB, Evolutional Node B) in an LTE system, or a base station (gNB) in a 5G system or NR system.

[0078] It should be understood that in the embodiments of the present application, devices having communication functions in the network / system may be referred to as communication devices. Communication devices may include network devices and terminals having communication functions. The network devices and terminal devices may be the specific devices described above and will not be described in detail here. Communication devices may also include other devices in the communication system, such as network controllers, mobility management entities, and other network entities, which are not limited in the embodiments of the present invention.

[0079] It should be understood that the terms "system" and "network" are often used interchangeably herein. The term "and / or" is simply a description of an association between related objects, indicating that three possible relationships exist. For example, "A and / or B" can represent: A exists alone, A and B exist simultaneously, or B exists alone. Furthermore, the character " / " generally indicates that the related objects are in an "or" relationship.

[0080] The terms "first", "second" etc. in the specification and claims of the present application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchangeable in appropriate circumstances, so that the embodiments of the present application described herein can, for example, be implemented in an order other than those illustrated or described herein. In addition, the terms "comprise" and "have" and any of their variations are intended to cover non-exclusive inclusions, for example, the process, method, system, product or equipment comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or that are inherent to these processes, methods, products or equipment.

[0081] Before describing the communication method according to the embodiment of the present invention, DHCPv6 and SRv6 are briefly described.

[0082] FIG1 is a schematic diagram of a scenario in which the communication method according to an embodiment of the present invention is applied. As shown in FIG1 , DHCPv6 adopts a client / server communication mode. Client devices (e.g., optical modems, client-side desktop routers, optical network units (ONUs), routers, switches, client-side 4G / 5G CPE routers, etc.) can cooperate with edge devices (i.e., server-side) of the operator network (e.g., broadband remote access servers (BRASs), full-service routers (SRs), public data network (PDN) gateways (P-GWs), user plane functions (UPFs), etc.) to automatically obtain IPv6 addresses from the server-side through the DHCPv6 protocol.

[0083] Figure 2 is a schematic diagram of the SRv6 message format in an embodiment of the present invention; as shown in Figure 2, an SRv6 message includes an IPv6 header, a segment routing header (SRH), and a payload. The value of 43 in the Next Header in the IPv6 Header indicates that the lower-layer header is a Routing Extension Header. The SRv6 data plane can be encapsulated using a segment routing header (SRH). The SRH encapsulates segment list (SL) information, and each segment is a 128-bit IPv6 address. The SRv6 tunnel is the management entity of the corresponding SID list and, like other tunnels, is presented to the service. The SRv6 tunnel can carry all known types of payloads, including Layer 2, Layer 3, Multi-Protocol Label Switching (MPLS), Transmission Control Protocol (TCP), and User Datagram Protocol (UDP).

[0084] The SRv6 SID can be understood as the router's IP address, and the SID list represents the list of IP addresses for the entire routing path. As shown in Figure 3, the SRv6 SID can be a 128-bit programmable SID, which can include a locator, a function (FUNCT), and arguments (ARGS). The locator, which has a positioning function, is a network node identifier in the SRv6 protocol system. It is an identifier assigned to a network node in the network topology and is used to forward data packets to that network node. In other embodiments, the locator can also be called a location identifier. The route corresponding to the locator is published to the network by the network node via the Interior Gateway Protocol (IGP), helping other devices forward data packets to the node network that published the locator. In the SRv6 SID, the locator length is variable to adapt to networks of different sizes. The locator can be further divided into B and N. B identifies the SRv6 SID block (Block), which is generally assigned to a subnet by the operator and is usually represented by a prefix. N is the identifier that distinguishes nodes within the subnet (Node identifier). For compressible SIDs, the locator length equals the length of B + the length of N. 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 portion, such as forwarding a packet to a specific link or forwarding by looking up a table in a specified table. Arguments (ARGS) is an optional field that contains the parameters corresponding to the instruction execution. These parameters may include data flows, services, or any other relevant information.

[0085] An embodiment of the present invention provides a communication method. FIG4 is a flow chart of the communication method according to an embodiment of the present invention. As shown in FIG4 , the method includes:

[0086] Step 101: A client device receives a first message sent by a DHCPv6 server, where the first message includes first information, where the first information represents locator information allocated to the client device; wherein the first message includes a first option and a second option nested in the first option, where the first option and / or the second option are used to carry the first information.

[0087] In this embodiment, the first message includes a first option and a second option nested within the first option. By defining two new options, different from those used to allocate traditional IPv4 or IPv6 addresses, the new options carry or indicate locator information, thereby enabling SRv6 locator information allocation. The locator information is a network node identification segment in the SRv6 protocol architecture, primarily used to construct a SID for routing and forwarding. The locator information may include one or more locators.

[0088] In other embodiments, the first option may also be referred to as the first option field in the first message; the second option may also be referred to as the second option field in the first message, nested in the first option field, or may also be referred to as a sub-option or sub-option field.

[0089] In this embodiment, the first message may be a message sent by the server (DHCPv6 server) to the client (DHCPv6 client) during the interaction between the client (DHCPv6 client) and the server (DHCPv6 server) in the DHCPv6 protocol. In some optional embodiments, the first message may be an advertise message.

[0090] In this embodiment, the first information (ie, locator information) may be carried or indicated by the first option and / or the second option in the message. In the following embodiments, the second option carrying or indicating the first information (ie, locator information) is used as an example for description.

[0091] In some optional embodiments of the present invention, the first option includes a first field for representing a first type code, and the second option includes a second field for representing a second type code; the first type code and the second type code are used to indicate the allocation service of the Locator information; wherein, the second option also includes a third field, and the third field is used to carry the Locator information.

[0092] In this embodiment, on the one hand, the allocated Locator information is carried or indicated by the third field in the second option nested within the first option. On the other hand, the first option in the message includes a first field for indicating a first type code, and the second option in the message includes a second field for indicating a second type code. The first type code and the second type code are used to indicate the Locator information allocation service. Upon receiving the message, the receiver can determine that the message is related to the Locator information allocation service. In this case, the DHCPv6 server can allocate Locator information based on the message with the newly added first and second options (i.e., the Locator information is carried or indicated by the second option in the first message).

[0093] In some optional embodiments of the present invention, the first option further includes at least one of the following fields:

[0094] The fourth field is used to indicate the length of the option;

[0095] The fifth field is used to represent the Identity Association (IA) identifier;

[0096] a sixth field for indicating a first time during which the client device sends a request to the server that allocates the address to extend the valid lifetime of the address;

[0097] The seventh field is used to represent a second time. During the second time, the client device sends a request to any server that can be found to extend the valid life cycle of the address.

[0098] In this embodiment, referring to Figure 5a, the first field is, for example, the OPTION_IA_SRV6_LOCATOR field, which indicates a newly defined or to-be-allocated first type code; the fourth field is, for example, the option length (Option-len) field, which indicates the option length of the first option, which is usually 12 bytes + the length of the nested second option (such as the IA_SRV6_LOCATOR-options field in the figure).

[0099] The fifth field, for example, is the IAID field, which enables DHCPv6 servers and clients to identify, group, and manage a series of related IPv6 addresses. Each IA includes an IAID and associated configuration information. The IAID uniquely identifies the IA, and the same client must not have the same IAID. The IAID should not be lost or changed due to factors such as device restarts.

[0100] The sixth field is, for example, a T1 field, and the seventh field is, for example, a T2 field.

[0101] In some optional embodiments of the present invention, the second option further includes at least one of the following fields:

[0102] The eighth field is used to indicate the length of the option;

[0103] The ninth field is used to indicate the preferred lifecycle of the Locator information;

[0104] The tenth field is used to indicate the valid lifetime of the assigned prefix;

[0105] The eleventh field is used to indicate the length of the Locator information;

[0106] The twelfth field is used to indicate the length of SRv6-related function information;

[0107] The thirteenth field is used to indicate the length of the SRv6-related variable (Args) information;

[0108] A fourteenth field for indicating the length of the common prefix block;

[0109] The fifteenth field is used to represent other information.

[0110] In this embodiment, the second option may also include other information related to the Locator information, such as the Locator information length, the preferred lifecycle of the Locator information, etc.; in other embodiments, the second option may also include other information. Referring to Figure 5b, the second field may be, for example, the OPTION_IALOCATOR field, indicating a newly defined or to-be-assigned second type code; the third field may be, for example, the SRv6-Locator field, used to indicate or carry Locator information.

[0111] The eighth field may be the Option-len field, which indicates the option length of the second option, typically 28 bytes + the length of the IALocator-options field. The ninth field may be the Preferred-lifetime field, which indicates the preferred lifecycle of the assigned Locator. The tenth field may be the Valid-lifetime field, which indicates the valid lifecycle of the assigned prefix; wherein, the Valid-lifetime must be greater than or equal to the Preferred-lifetime.

[0112] The eleventh field may be a Locator length (LOC-Len) field, indicating the length of the Locator field.

[0113] The twelfth field may be a function length (Func-len) field, indicating the length of the function (Func) field.

[0114] The thirteenth field may be a variable (Args) length (Args-len) field.

[0115] The fourteenth field may be a common prefix block length (LB-len) field.

[0116] The fifteenth field may be an IALocator-options field, indicating other supplementary information that needs to be carried.

[0117] In some optional embodiments of the present invention, before receiving the first message sent by the DHCPv6 server, the method further includes: sending a fourth message, wherein the fourth message is used to request the DHCPv6 server to allocate locator information; wherein the fourth message includes the first option and the second option nested in the first option.

[0118] In this embodiment, before receiving the first message sent by the DHCPv6 server, the client device may further send a fourth message to the DHCPv6 server, wherein the fourth message is used to request the DHCPv6 server to assign locator information. Optionally, the fourth message may be sent by the client device via multicast. Optionally, the fourth message may be a solicitation message.

[0119] The fourth message also includes the new first option and the second option nested within the first option. When the fourth message is a soliciting message, the soliciting message has the meaning of requesting a query; the new first option and the second option nested within the first option included in the fourth message make the fourth message have the meaning of requesting the allocation of locator information.

[0120] In some optional embodiments of the present invention, when receiving first messages sent by multiple DHCPv6 servers, the method further includes: selecting a first DHCPv6 server from the multiple DHCPv6 servers, and determining that locator information carried in the first message sent by the first DHCPv6 server is target locator information.

[0121] In some optional embodiments, the method further includes: sending a second message, wherein the second message includes at least information about the first DHCPv6 server; receiving a third message sent by the first DHCPv6 server, wherein the third message is used to confirm the locator information allocated to the client device; wherein the second message and / or the third message includes the first option and the second option nested in the first option.

[0122] In this embodiment, the client device may receive the first message from multiple DHCPv6 servers. For example, when the client device multicasts the fourth message, multiple DHCPv6 servers may receive the fourth message. In this case, the client device may receive the first message from multiple DHCPv6 servers. Furthermore, the client device selects a first DHCPv6 server (or a target DHCPv6 server) from the multiple DHCPv6 servers. The client device selects the first DHCPv6 server from the multiple DHCPv6 servers based on a preset condition. Exemplarily, the preset condition may be a priority, that is, according to the priorities of the multiple DHCPv6 servers, the server with the highest priority is selected as the first DHCPv6 server. Alternatively, the preset condition may be a preset selection rule, according to which one of the multiple DHCPv6 servers is selected as the first DHCPv6 server. This embodiment does not limit this.

[0123] In this embodiment, each DHCPv6 server may carry or indicate the locator information allocated by each DHCPv6 server through the third field in the second option nested in the first option in the first message; after selecting or determining the first DHCPv6 server, the client device determines the locator information carried or indicated by the second option in the first message sent by the first DHCPv6 server as the selected locator information or the target locator information.

[0124] In this embodiment, after selecting the first DHCPv6 server (or target DHCPv6 server), the client device may send a second message to multiple DHCPv6 servers, wherein the second message includes at least information about the first DHCPv6 server (e.g., an identifier of the first DHCPv6 server) so that all relevant DHCPv6 servers obtain the target DHCPv6 server determined by the DHCPv6 client. Optionally, the second message may be a request message. Optionally, the client device may send the second message (e.g., a request message) to multiple DHCPv6 servers via multicast. Further, the client device may receive a third message from the first DHCPv6 server, wherein the third message is used to confirm the locator information (or target locator information) allocated to the client device, that is, the first DHCPv6 server sends the third message to determine that the locator information (or target locator information) is allocated to the client device for use. Optionally, the third message may be a reply message.

[0125] The second message and / or the third message include the first option and the second option nested within the first option. When the second message is a request message and the third message is a reply message, the inclusion of the first option and the second option nested within the first option in the second message and the third message gives the second message and the third message new meanings in this embodiment. Optionally, the second message may carry information about the selected first DHCPv6 server via a traditional option or message header parameter; the third message may also carry confirmation information for confirming the locator information allocated to the client device via a traditional option or message header parameter.

[0126] Based on the above embodiment, the present invention further provides a communication method. FIG6 is a flow chart of the communication method according to the present invention; as shown in FIG6 , the method includes:

[0127] Step 201: The DHCPv6 server sends a first message to a client device, where the first message includes first information, where the first information indicates locator information allocated to the client device; wherein the first message includes a first option and a second option nested in the first option, where the first option and / or the second option are used to carry the first information.

[0128] In this embodiment, the first message includes a first option and a second option nested in the first option. By defining two new options that are different from the traditional ones for allocating IPv4 or IPv6 addresses, the locator information is carried or indicated by the new options, thereby realizing the allocation of SRv6 locator information.

[0129] In some optional embodiments of the present invention, the first option includes a first field for representing a first type code, and the second option includes a second field for representing a second type code; the first type code and the second type code are used to indicate the allocation service of the Locator information; wherein, the second option also includes a third field, and the third field is used to carry the Locator information.

[0130] In this embodiment, on the one hand, the allocated Locator information is carried or indicated by the third field in the second option nested within the first option. On the other hand, the first option in the message includes a first field for indicating a first type code, and the second option in the message includes a second field for indicating a second type code. The first type code and the second type code are used to indicate the Locator information allocation service. Upon receiving the message, the receiver can determine that the message is related to the Locator information allocation service. In this case, the DHCPv6 server can allocate Locator information based on the message with the newly added first and second options (i.e., the Locator information is carried or indicated by the second option in the first message).

[0131] In some optional embodiments of the present invention, the first option further includes at least one of the following fields:

[0132] The fourth field is used to indicate the length of the option;

[0133] The fifth field is used to represent the identity alliance IA identifier;

[0134] a sixth field for indicating a first time during which the client device sends a request to the server that allocates the address to extend the valid lifetime of the address;

[0135] The seventh field is used to represent a second time. During the second time, the client device sends a request to any server that can be found to extend the valid life cycle of the address.

[0136] In this embodiment, referring to Figure 5a, the first field is, for example, the OPTION_IA_SRV6_LOCATOR field, which indicates a newly defined or to-be-allocated first type code; the fourth field is, for example, the option length (Option-len) field, which indicates the option length of the first option, which is usually 12 bytes + the length of the nested second option (such as the IA_SRV6_LOCATOR-options in the figure).

[0137] The fifth field, for example, is the IAID field, which enables DHCPv6 servers and clients to identify, group, and manage a series of related IPv6 addresses. Each IA includes an IAID and associated configuration information. The IAID uniquely identifies the IA, and the same client cannot have the same IAID. The IAID should not be lost or changed due to factors such as device restarts.

[0138] The sixth field is, for example, a T1 field, and the seventh field is, for example, a T2 field.

[0139] In some optional embodiments of the present invention, the second option further includes at least one of the following fields:

[0140] The eighth field is used to indicate the length of the option;

[0141] The ninth field is used to indicate the preferred lifecycle of the Locator information;

[0142] The tenth field is used to indicate the valid lifetime of the assigned prefix;

[0143] The eleventh field is used to indicate the length of the Locator information;

[0144] The twelfth field is used to indicate the length of the SRv6-related function information;

[0145] The thirteenth field is used to indicate the length of the SRv6-related variable Args information;

[0146] A fourteenth field for indicating the length of the common prefix block;

[0147] The fifteenth field is used to represent other information.

[0148] In this embodiment, the second option may also include other information related to the Locator information, such as the Locator information length, the preferred lifecycle of the Locator information, etc.; in other embodiments, the second option may also include other information. Referring to Figure 5b, the second field may be, for example, the OPTION_IALOCATOR field, indicating a newly defined or to-be-assigned second type code; the third field may be, for example, the SRv6-Locator field, used to indicate or carry Locator information.

[0149] The eighth field may be the Option-len field, which indicates the option length of the second option, typically 28 bytes + the length of the IALocator-options field. The ninth field may be the Preferred-lifetime field, which indicates the preferred lifecycle of the assigned Locator. The tenth field may be the Valid-lifetime field, which indicates the valid lifecycle of the assigned prefix; wherein, the Valid-lifetime must be greater than or equal to the Preferred-lifetime.

[0150] The eleventh field may be a Locator length (LOC-Len) field, indicating the length of the Locator field.

[0151] The twelfth field may be a function length (Func-len) field, indicating the length of the function (Func) field.

[0152] The thirteenth field may be a variable (Args) length (Args-len) field.

[0153] The fourteenth field may be a common prefix block length (LB-len) field.

[0154] The fifteenth field may be an IALocator-options field, indicating other supplementary information that needs to be carried.

[0155] In some optional embodiments of the present invention, the method further includes: receiving a second message sent by the client device, wherein the second message includes at least information about the first DHCPv6 server; and the second message includes the first option and a second option nested in the first option.

[0156] In some optional embodiments, when the DHCPv6 server is a first DHCPv6 server, the method further includes: sending a third message to the client device, where the third message is used to confirm the locator information allocated to the client device; wherein the third message includes the first option and the second option nested in the first option.

[0157] In this embodiment, after selecting a first DHCPv6 server (or a target DHCPv6 server), the client device may send a second message to multiple DHCPv6 servers. The second message includes at least information about the first DHCPv6 server (e.g., an identifier of the first DHCPv6 server) so that all relevant DHCPv6 servers obtain the target DHCPv6 server determined by the DHCPv6 client. Optionally, the second message may be a request message. Optionally, the client device may send the second message (e.g., a request message) to multiple DHCPv6 servers via multicast. Furthermore, if the DHCPv6 server is the first DHCPv6 server, that is, the DHCPv6 server is the target server selected by the client device, the DHCPv6 server sends a third message to the client device. The third message is used to confirm the locator information (or target locator information) allocated to the client device. That is, the first DHCPv6 server sends the third message to confirm that the locator information (or target locator information) is allocated to the client device. Optionally, the third message may be a reply message.

[0158] The second message and / or the third message include the first option and the second option nested within the first option. When the second message is a request message and the third message is a reply message, the inclusion of the first option and the second option nested within the first option in the second message and the third message gives the second message and the third message new meanings in this embodiment. Optionally, the second message may carry information about the selected first DHCPv6 server via a traditional option or message header parameter; the third message may also carry confirmation information for confirming the locator information allocated to the client device via a traditional option or message header parameter.

[0159] In some optional embodiments of the present invention, the method further includes: receiving a fourth message sent by the client device, the fourth message being used to request the DHCPv6 server to allocate locator information; wherein the fourth message includes the first option and a second option nested in the first option.

[0160] In this embodiment, before the DHCPv6 server sends the first message to the client device, the client device may send a fourth message to the DHCPv6 server, wherein the fourth message is used to request the DHCPv6 server to assign locator information. Optionally, the fourth message may be sent by the client device via multicast. Optionally, the fourth message may be a solicitation message.

[0161] The fourth message also includes the new first option and the second option nested within the first option. When the fourth message is a soliciting message, the soliciting message has the meaning of requesting a query; the new first option and the second option nested within the first option included in the fourth message make the fourth message have the meaning of requesting the allocation of locator information.

[0162] The communication method according to the embodiment of the present invention is described in detail below with reference to a specific example.

[0163] FIG7 is a schematic diagram of an interaction flow of a communication method according to an embodiment of the present invention. As shown in FIG7 , the method may include:

[0164] Step 31: The DHCPv6 client sends a solicitation message to multiple DHCPv6 servers in a multicast manner, requesting the DHCPv6 servers to allocate locator information to it.

[0165] The soliciting message carries a first option and a second option nested in the first option.

[0166] Step 32: The DHCPv6 server replies with an advertise message to the DHCPv6 client, indicating the locator information allocated to the DHCPv6 client and other required configuration parameters.

[0167] The advertise message carries the first option and the second option nested in the first option, and indicates the allocated Locator information through the third field in the second option (such as the SRv6-Locator field in FIG. 5 b ).

[0168] Step 33: The DHCPv6 client selects a server with the highest priority as the first DHCPv6 server, and sends a request message to all relevant DHCPv6 servers via multicast, indicating the ID of the first DHCPv6 server.

[0169] The request message carries a first option and a second option nested in the first option.

[0170] Step 34: The first DHCPv6 server sends a reply message to the DHCPv6 client to determine whether to allocate the target locator information and other required network configuration parameters to the DHCPv6 client.

[0171] The reply message carries a first option and a second option nested in the first option.

[0172] In this way, with the help of the above-mentioned DHCPv6 protocol interaction process, the request and allocation of the SRv6 Locator can be realized.

[0173] Based on the above embodiments, an embodiment of the present invention further provides a communication device, which is applied to a client device. Figure 8 is a schematic diagram of the first structure of the communication device according to an embodiment of the present invention. As shown in Figure 8, the device includes a first receiving unit 41, which is configured to receive a first message sent by a DHCPv6 server, wherein the first message includes first information, which represents locator information allocated to the client device.

[0174] The first message includes a first option and a second option nested in the first option, and the first option and / or the second option are used to carry the first information.

[0175] In some optional embodiments of the present invention, the first option includes a first field for indicating a first type code, and the second option includes a second field for indicating a second type code; the first type code and the second type code are used to indicate an allocation service of the Locator information;

[0176] The second option also includes a third field, and the third field is used to carry the Locator information.

[0177] In some optional embodiments of the present invention, the first option further includes at least one of the following fields:

[0178] The fourth field is used to indicate the length of the option;

[0179] The fifth field is used to represent the identity alliance IA identifier;

[0180] a sixth field for indicating a first time during which the client device sends a request to the server that allocates the address to extend the valid lifetime of the address;

[0181] The seventh field is used to represent a second time. During the second time, the client device sends a request to any server that can be found to extend the valid life cycle of the address.

[0182] In some optional embodiments of the present invention, the second option further includes at least one of the following fields:

[0183] The eighth field is used to indicate the length of the option;

[0184] The ninth field is used to indicate the preferred lifecycle of the Locator information;

[0185] The tenth field is used to indicate the valid lifetime of the assigned prefix;

[0186] The eleventh field is used to indicate the length of the Locator information;

[0187] The twelfth field is used to indicate the length of the SRv6-related function information;

[0188] The thirteenth field is used to indicate the length of the SRv6-related variable Args information;

[0189] A fourteenth field for indicating the length of the common prefix block;

[0190] The fifteenth field is used to represent other information.

[0191] In some optional embodiments of the present invention, the apparatus further includes a first processing unit 42; wherein,

[0192] The first processing unit 42 is configured to, when the first receiving unit 41 receives first messages sent by multiple DHCPv6 servers, select a first DHCPv6 server from the multiple DHCPv6 servers and determine the locator information carried in the first message sent by the first DHCPv6 server as the target locator information.

[0193] In some optional embodiments of the present invention, the apparatus further includes a first sending unit 43, configured to send a second message, where the second message includes at least information about the first DHCPv6 server;

[0194] The first receiving unit 41 is further configured to receive a third message sent by the first DHCPv6 server, where the third message is used to confirm the locator information allocated to the client device;

[0195] The second message and / or the third message includes the first option and the second option nested in the first option.

[0196] In some optional embodiments of the present invention, the apparatus further includes a first sending unit 43, configured to send a fourth message before the first receiving unit 41 receives the first message sent by the DHCPv6 server, wherein the fourth message is used to request the DHCPv6 server to allocate Locator information; wherein the fourth message includes the first option and the second option nested in the first option.

[0197] In an embodiment of the present invention, the first processing unit 42 in the device can be implemented by a central processing unit (CPU), a digital signal processor (DSP), a microcontroller unit (MCU) or a field-programmable gate array (FPGA) in actual applications; the first sending unit 43 and the first receiving unit 41 in the device can be implemented by a communication module (including: basic communication kit, operating system, communication module, standardized interface and protocol, etc.) and a transceiver antenna in actual applications.

[0198] An embodiment of the present invention further provides a communication device, which is applied to a DHCPv6 server. Figure 9 is a second schematic diagram of the structure of the communication device according to an embodiment of the present invention. As shown in Figure 9, the device includes a second sending unit 51 configured to send a first message to a client device, the first message including first information indicating locator information allocated to the client device.

[0199] The first message includes a first option and a second option nested in the first option, and the first option and / or the second option are used to carry the first information.

[0200] In some optional embodiments of the present invention, the first option includes a first field for indicating a first type code, and the second option includes a second field for indicating a second type code; the first type code and the second type code are used to indicate an allocation service of the Locator information;

[0201] The second option also includes a third field, and the third field is used to carry the Locator information.

[0202] In some optional embodiments of the present invention, the first option further includes at least one of the following fields:

[0203] The fourth field is used to indicate the length of the option;

[0204] The fifth field is used to represent the identity alliance IA identifier;

[0205] a sixth field for indicating a first time during which the client device sends a request to the server that allocates the address to extend the valid lifetime of the address;

[0206] The seventh field is used to represent a second time. During the second time, the client device sends a request to any server that can be found to extend the valid life cycle of the address.

[0207] In some optional embodiments of the present invention, the second option further includes at least one of the following fields:

[0208] The eighth field is used to indicate the length of the option;

[0209] The ninth field is used to indicate the preferred lifecycle of the Locator information;

[0210] The tenth field is used to indicate the valid lifetime of the assigned prefix;

[0211] The eleventh field is used to indicate the length of the Locator information;

[0212] The twelfth field is used to indicate the length of the SRv6-related function information;

[0213] The thirteenth field is used to indicate the length of the SRv6-related variable Args information;

[0214] A fourteenth field for indicating the length of the common prefix block;

[0215] The fifteenth field is used to represent other information.

[0216] In some optional embodiments of the present invention, the apparatus further includes a second receiving unit 52, configured to receive a second message sent by the client device, wherein the second message includes at least information about the first DHCPv6 server; and the second message includes the first option and a second option nested in the first option.

[0217] In some optional embodiments of the present invention, the second sending unit 51 is further configured to, when the DHCPv6 server is the first DHCPv6 server, send a third message to the client device, where the third message is used to confirm the locator information allocated to the client device; the third message includes the first option and the second option nested in the first option.

[0218] In some optional embodiments of the present invention, the apparatus further includes a second receiving unit 52, configured to receive a fourth message sent by the client device, wherein the fourth message is used to request the DHCPv6 server to allocate locator information; wherein the fourth message includes the first option and a second option nested in the first option.

[0219] In an embodiment of the present invention, the second sending unit 51 and the second receiving unit 52 in the device can be implemented in actual applications through a communication module (including: basic communication kit, operating system, communication module, standardized interface and protocol, etc.) and a transceiver antenna.

[0220] It should be noted that the communication device provided in the above embodiments is illustrated only by the division of the above-mentioned program modules when performing communication. In actual applications, the above-mentioned processing can be assigned to different program modules as needed, that is, the internal structure of the device can be divided into different program modules to complete all or part of the above-described processing. In addition, the communication device and the communication method embodiment provided in the above embodiments are based on the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.

[0221] An embodiment of the present invention further provides a communication device, which is the client device or DHCPv6 server described in the aforementioned embodiment. Figure 10 is a schematic diagram of the hardware structure of the communication device according to an embodiment of the present invention. As shown in Figure 10 , the communication device includes a memory 62, a processor 61, and a computer program stored in the memory 62 and executable by the processor 61. When the processor 61 executes the program, the steps of the communication method described above, which is applied to the client device or DHCPv6 server, are implemented.

[0222] Optionally, the communication device also includes at least one network interface 63. The various components in the communication device are coupled together via a bus system 64. It will be appreciated that bus system 64 is used to enable communication between these components. In addition to a data bus, bus system 64 also includes a power bus, a control bus, and a status signal bus. However, for clarity, in FIG10 , all of these buses are labeled as bus system 64.

[0223] It is understood that the memory 62 can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a flash memory, a magnetic surface memory, an optical disk, or a compact disc read-only memory (CD-ROM); the magnetic surface memory can be a magnetic disk or a magnetic tape. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), synchronous static random access memory (SSRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct rambus random access memory (DRRAM).The memory 62 described in the embodiments of the present invention is intended to include, but is not limited to, these and any other suitable types of memory.

[0224] The methods disclosed in the above embodiments of the present invention can be applied to or implemented by processor 61. Processor 61 may be an integrated circuit chip with signal processing capabilities. During implementation, each step of the above method can be completed by hardware integrated logic circuits in processor 61 or by software instructions. The above processor 61 may be a general-purpose processor, a DSP, or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, etc. Processor 61 can implement or execute the various methods, steps, and logic block diagrams disclosed in the embodiments of the present invention. A general-purpose processor may be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of the present invention can be directly implemented and executed by a hardware decoding processor, or by a combination of hardware and software modules in the decoding processor. The software module may be located in a storage medium located in memory 62. Processor 61 reads information from memory 62 and, in conjunction with its hardware, completes the steps of the above method.

[0225] In an exemplary embodiment, the communication device may be implemented by one or more application-specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), FPGAs, general-purpose processors, controllers, MCUs, microprocessors, or other electronic components to perform the aforementioned method.

[0226] In an exemplary embodiment, the present invention further provides a computer-readable storage medium, such as a memory 62 including a computer program. The computer program can be executed by a processor 61 of a communication device to perform the steps of the aforementioned method. The computer-readable storage medium can be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface mount storage, optical disk, or CD-ROM; or various devices including any one or any combination of the aforementioned memories.

[0227] The computer-readable storage medium provided by the embodiment of the present invention stores a computer program, which, when executed by a processor, implements the steps of the communication method applied to a client device or a DHCPv6 server.

[0228] The methods disclosed in the several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.

[0229] The features disclosed in the several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.

[0230] The features disclosed in the several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.

[0231] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is merely a logical function division. In actual implementation, there may be other division methods, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.

[0232] The units described above as separate components may or may not be physically separated, and the components displayed 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.

[0233] In addition, all functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately used as a unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0234] Those skilled in the art will understand that all or part of the steps of implementing the above-mentioned method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above-mentioned method embodiment; and the aforementioned storage medium includes: mobile storage devices, ROM, RAM, disks or optical disks, etc. Various media that can store program codes.

[0235] Alternatively, if the above-mentioned integrated unit of the present invention is implemented in the form of a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes a number of instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROM, RAM, magnetic disks or optical disks.

[0236] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any modifications or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in the present invention should be included in the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be based on the scope of protection of the claims.

Claims

1. A communication method, characterized in that: The method is applied to a client device, and the method comprises: Receiving a first message sent by a DHCPv6 server of the network protocol version 6 IPv6, wherein the first message includes first information, and the first information indicates the network node identifier Locator information allocated to the client device; The first message includes a first option and a second option nested in the first option, and the first option and / or the second option are used to carry the first information.

2. The method according to claim 1, characterized in that: The first option includes a first field for indicating a first type code, and the second option includes a second field for indicating a second type code; the first type code and the second type code are used to indicate an allocation service of the Locator information; The second option also includes a third field, and the third field is used to carry the Locator information.

3. The method according to claim 2, characterized in that The first option also includes at least one of the following fields: The fourth field is used to indicate the length of the option; The fifth field is used to represent the identity federation IA identifier; a sixth field for indicating a first time during which the client device sends a request to the server that allocates the address to the client device to extend the effective life cycle of the address; The seventh field is used to represent a second time, during which the client device sends a request to any server that can be found to extend the effective life cycle of the address.

4. The method according to claim 2, characterized in that: The second option also includes at least one of the following fields: The eighth field is used to indicate the length of the option; A ninth field for indicating a preferred life cycle of the Locator information; The tenth field is used to indicate the effective life cycle of the specified assigned prefix; The eleventh field is used to indicate the length of the Locator information; The twelfth field is used to indicate the length of the SRv6-related function information; The thirteenth field is used to indicate the length of the variable Args information related to SRv6; A fourteenth field for indicating the length of the common prefix block; The fifteenth field is used to represent other information.

5. The method according to any one of claims 1 to 4, characterized in that: In the case of receiving first messages sent by multiple DHCPv6 servers, the method further includes: A first DHCPv6 server is selected from the multiple DHCPv6 servers, and Locator information carried in a first message sent by the first DHCPv6 server is determined as target Locator information.

6. The method according to claim 5, characterized in that The method further comprises: Sending a second message, where the second message includes at least information about the first DHCPv6 server; Receive a third message sent by the first DHCPv6 server, the third message being used to confirm that the client is set The Locator information allocated by the device; The second message and / or the third message includes the first option and the second option nested in the first option.

7. The method according to any one of claims 1 to 6, characterized in that: Before receiving the first message sent by the DHCPv6 server, the method further includes: Sending a fourth message, where the fourth message is used to request the DHCPv6 server to allocate Locator information; The fourth message includes the first option and the second option nested in the first option.

8. A communication method, characterized in that: The method is applied to a DHCPv6 server, and the method comprises: Sending a first message to a client device, where the first message includes first information, where the first information indicates network node identifier Locator information allocated to the client device; The first message includes a first option and a second option nested in the first option, and the first option and / or the second option are used to carry the first information.

9. The method according to claim 8, characterized in that The first option includes a first field for indicating a first type code, and the second option includes a second field for indicating a second type code; the first type code and the second type code are used to indicate an allocation service of the Locator information; The second option also includes a third field, and the third field is used to carry the Locator information.

10. The method according to claim 9, characterized in that The first option also includes at least one of the following fields: The fourth field is used to indicate the length of the option; The fifth field is used to represent the identity federation IA identifier; a sixth field for indicating a first time during which the client device sends a request to the server that allocates the address to the client device to extend the effective life cycle of the address; The seventh field is used to represent a second time, during which the client device sends a request to any server that can be found to extend the effective life cycle of the address.

11. The method according to claim 9, characterized in that The second option also includes at least one of the following fields: The eighth field is used to indicate the length of the option; A ninth field for indicating a preferred life cycle of the Locator information; The tenth field is used to indicate the effective life cycle of the specified assigned prefix; The eleventh field is used to indicate the length of the Locator information; The twelfth field is used to indicate the length of the SRv6-related function information; The thirteenth field is used to indicate the length of the variable Args information related to SRv6; A fourteenth field for indicating the length of the common prefix block; The fifteenth field is used to represent other information.

12. The method according to any one of claims 8 to 11, characterized in that The method further comprises: Receive a second message sent by the client device, wherein the second message includes at least the first DHCPv6 server Information; the second message includes the first option and the second option nested in the first option.

13. The method according to claim 12, characterized in that In the case where the DHCPv6 server is a first DHCPv6 server, the method further includes: Sending a third message to the client device, where the third message is used to confirm the Locator information allocated to the client device; The third message includes the first option and the second option nested in the first option.

14. The method according to any one of claims 8 to 13, characterized in that The method further comprises: receiving a fourth message sent by the client device, where the fourth message is used to request the DHCPv6 server to allocate Locator information; The fourth message includes the first option and the second option nested in the first option.

15. A communication device, characterized in that: The device is applied to a client device; the device comprises a first receiving unit, configured to receive a first message sent by a DHCPv6 server, wherein the first message comprises first information, and the first information represents Locator information allocated to the client device; The first message includes a first option and a second option nested in the first option, and the first option and / or the second option are used to carry the first information.

16. A communication device, characterized in that: The device is applied to a DHCPv6 server; the device comprises a second sending unit, configured to send a first message to a client device, wherein the first message comprises first information, and the first information represents Locator information allocated to the client device; The first message includes a first option and a second option nested in the first option, and the first option and / or the second option are used to carry the first information.

17. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented; or When the program is executed by a processor, the steps of the method according to any one of claims 8 to 14 are implemented.

18. A communication device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps of the method according to any one of claims 1 to 7 are implemented; or, When the processor executes the program, the steps of the method according to any one of claims 8 to 14 are implemented.

Citation Information

Patent Citations

  • Message processing method, device and system

    CN115426305A

  • Communication method and device

    CN115499888A

  • Message processing method and device, network equipment and storage medium

    CN115604183A