An address allocation method, apparatus and related device

By generating a unique identifier for the terminal through the authentication server and maintaining the association between the DHCP relay device and the server, the problem of fixed IP address allocation caused by the dynamic changes of the IPv6 address pool is solved, and fixed IPv6 address allocation for terminal devices is realized, which facilitates user management.

CN118449931BActive Publication Date: 2025-11-04NEW H3C TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410571957.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-09
Publication Date
2025-11-04
Estimated Expiration
2044-05-09

AI Technical Summary

Technical Problem

In existing technologies, the dynamic changes in the IPv6 address pool prevent devices from obtaining fixed IPv6 addresses, affecting user address statistics and audit screening.

Method used

The authentication server generates a unique identifier (DUID) for the terminal, and maintains the association between the terminal's MAC address and the identifier in the DHCP relay device and server to ensure that the DHCP server assigns a fixed IP address based on the identifier.

Benefits of technology

This enables terminal devices to apply for fixed IPv6 addresses, facilitating user address statistics and audit management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118449931B_ABST
    Figure CN118449931B_ABST
Patent Text Reader

Abstract

The application relates to the technical field of address management, in particular to an address allocation method, an address allocation device and related equipment. The method comprises the following steps: receiving an authentication message sent by a target terminal; generating an identifier for uniquely identifying the target terminal based on a username and a MAC address carried in the authentication message, and generating an association relationship between the MAC address of the target terminal and the identifier; receiving a target message sent by the target terminal, and generating an association relationship between an IP address carried in the target message and the identifier; sending the association relationship between the MAC address of the target terminal and the identifier to a DHCP relay device, and sending the association relationship between the IP address of the target terminal and the identifier to a DHCP server.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of address management, and particularly relates to an address allocation method and device and related equipment. BACKGROUND

[0002] With the IPv4 address pool becoming less and less available, the address usage of IPv6 has become a hard requirement for most enterprises. Since the IPv6 address pool is too large, users do not want the address to change dynamically, so there is a demand to fix the address to facilitate subsequent user address statistics and audit screening.

[0003] Currently, the standard protocol for applying for an IPv6 address is to use a DHCP Unique Identifier (DUID) as a unique identifier. However, DUIDs are variable in some use scenarios and are not variable in others. In actual networks, devices that are variable and devices that are not variable exist in a mixed manner. Thus, it cannot be guaranteed that each device can apply for a fixed IPv6 address. SUMMARY

[0004] The present application provides an address allocation method, device and related equipment.

[0005] In a first aspect, the present application provides an address allocation method applied to an authentication server; the method comprises the following steps:

[0006] receiving an authentication message sent by a target terminal, wherein the authentication message carries a username and a MAC address of the target terminal;

[0007] generating an identifier for uniquely identifying the target terminal based on the username and the MAC address of the target terminal, and generating an association relationship between the MAC address and the identifier of the target terminal;

[0008] receiving a target message sent by the target terminal, wherein the target message carries an allocated IP address of the target terminal, and an association relationship between the IP address and the identifier of the target terminal is generated;

[0009] sending the association relationship between the MAC address and the identifier of the target terminal to a DHCP relay device, and sending the association relationship between the IP address and the identifier of the target terminal to a DHCP server, so that the DHCP relay device carries the identifier in an address request message carrying the MAC address of the target terminal after receiving the address request message, and sends the address request message to the DHCP server, the DHCP server determines the associated IP address based on the identifier, and allocates the IP address to the target terminal.

[0010] Optionally, the target message is a charging message.

[0011] The target terminal sends a charging message to the authentication server after determining that the authentication is successful and applying for an IP address.

[0012] In a second aspect, the application provides an address allocation method applied to a DHCP relay device, and the method comprises the following steps:

[0013] receiving an association relationship between a MAC address of a target terminal and an identifier for uniquely identifying the target terminal, wherein the identifier is generated by the authentication server based on a username and the MAC address of the target terminal;

[0014] receiving an address request message carrying the MAC address of the target terminal;

[0015] determining the corresponding identifier based on the MAC address of the target terminal, and sending the identifier in the address request message to a DHCP server, so that the DHCP server determines the associated IP address based on the identifier and an association relationship between IP addresses of terminals and corresponding identifiers sent by the authentication server, and allocates the IP address to the target terminal.

[0016] In a third aspect, the application provides an address allocation method applied to a DHCP server, and the method comprises the following steps:

[0017] receiving an association relationship between an IP address of a target terminal and an identifier for uniquely identifying the target terminal sent by an authentication server, wherein the identifier is generated by the authentication server based on a username and a MAC address of the target terminal;

[0018] receiving an address request message sent by a DHCP relay device, wherein the address request message carries the identifier;

[0019] determining the associated IP address based on the identifier and an association relationship between IP addresses of terminals and corresponding identifiers sent by the authentication server, and allocating the IP address to the target terminal.

[0020] In a fourth aspect, the application provides an address allocation device for an authentication server, and the device comprises the following steps:

[0021] a receiving unit configured to receive an authentication message sent by a target terminal, wherein the authentication message carries a username and a MAC address of the target terminal;

[0022] a generating unit configured to generate an identifier for uniquely identifying the target terminal based on the username and the MAC address of the target terminal, and generate an association relationship between the MAC address of the target terminal and the identifier;

[0023] The receiving unit is further configured to receive a target message sent by the target terminal, the target message carrying the allocated IP address of the target terminal.

[0024] The generating unit is further configured to generate an association between the IP address of the target terminal and the identifier.

[0025] The sending unit is configured to send the association between the MAC address of the target terminal and the identifier to a DHCP relay device, and send the association between the IP address of the target terminal and the identifier to a DHCP server, so that the DHCP relay device carries the identifier in an address request message carrying the MAC address of the target terminal when receiving the address request message, and sends the address request message to the DHCP server, and the DHCP server determines the associated IP address based on the identifier, and allocates the IP address to the target terminal.

[0026] Optionally, the target message is a charging message.

[0027] The target terminal sends a charging message to the authentication server after determining that the authentication is successful and obtaining an IP address.

[0028] In a fifth aspect, the present application provides an address allocation apparatus applied to a DHCP relay device, and the apparatus comprises:

[0029] A first receiving unit is configured to receive an association between a MAC address of a target terminal and an identifier used for uniquely identifying the target terminal sent by an authentication server, wherein the identifier is generated by the authentication server based on a username and the MAC address of the target terminal.

[0030] A second receiving unit is configured to receive an address request message carrying the MAC address of the target terminal.

[0031] A sending unit is configured to determine a corresponding identifier based on the MAC address of the target terminal, and carry the identifier in the address request message to send to a DHCP server, so that the DHCP server determines an associated IP address based on the association between the IP address of each terminal and the corresponding identifier sent by the authentication server based on the identifier, and allocates the IP address to the target terminal.

[0032] In a sixth aspect, the present application provides an address allocation apparatus applied to a DHCP server, and the apparatus comprises:

[0033] The first receiving unit is configured to receive an association relationship between an IP address of a target terminal and an identifier for uniquely identifying the target terminal, which is sent by an authentication server, wherein the identifier is generated by the authentication server based on a username and a MAC address of the target terminal.

[0034] The second receiving unit is configured to receive an address request message sent by a DHCP relay device, wherein the address request message carries the identifier.

[0035] The allocating unit is configured to determine an associated IP address based on the association relationship between the IP address of each terminal and the corresponding identifier sent by the authentication server, and allocate the IP address to the target terminal.

[0036] In a seventh aspect, an address allocation apparatus is provided, and the address allocation apparatus comprises:

[0037] The memory is configured to store program instructions.

[0038] The processor is configured to invoke the program instructions stored in the memory, and execute the steps of the method according to any one of the first aspect or the second aspect or the third aspect.

[0039] In an eighth aspect, a computer readable storage medium is also provided, and the computer readable storage medium stores computer executable instructions, and the computer executable instructions are used to make the computer execute the steps of the method according to any one of the first aspect or the second aspect or the third aspect.

[0040] In summary, the address allocation method provided by the embodiments of the present application is applied to an authentication server, and the method comprises the following steps: receiving an authentication message sent by a target terminal, wherein the authentication message carries a username and a MAC address of the target terminal; generating an identifier for uniquely identifying the target terminal based on the username and the MAC address of the target terminal, and generating an association relationship between the MAC address of the target terminal and the identifier; receiving a target message sent by the target terminal, wherein the target message carries an allocated IP address of the target terminal, and generating an association relationship between the IP address of the target terminal and the identifier; sending the association relationship between the MAC address of the target terminal and the identifier to a DHCP relay device, and sending the association relationship between the IP address of the target terminal and the identifier to a DHCP server, so that the DHCP relay device carries the identifier in an address request message after receiving the address request message carrying the MAC address of the target terminal, and sends the address request message to the DHCP server, and the DHCP server determines an associated IP address based on the identifier, and allocates the IP address to the target terminal.

[0041] By using the address allocation method provided in the embodiments of the present application, the authentication server generates a fixed identification code (DUID) for uniquely identifying a terminal based on a username and a terminal MAC, and the relationship between the terminal MAC and the DUID is maintained by the DHCP relay device, the relationship between the terminal IP and the DUID is maintained by the DHCP server, the DHCP relay device carries the DUID corresponding to the terminal MAC in the address request message after receiving the address request message sent by the terminal, and sends the address request message to the DHCP server, and the DHCP server can allocate a fixed IP to the terminal based on the DUID. The purpose of allowing a fixed terminal to apply for a fixed IP address is achieved. BRIEF DESCRIPTION OF DRAWINGS

[0042] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the drawings needed in the description of the embodiments of the present application or the prior art will be briefly introduced. Obviously, the drawings in the following description are only some embodiments described in the present application, and other drawings can also be obtained by those skilled in the art according to these drawings of the embodiments of the present application.

[0043] Figure 1 A detailed flowchart of an address allocation method provided in the embodiments of the present application;

[0044] Figure 2 A detailed flowchart of another address allocation method provided in the embodiments of the present application;

[0045] Figure 3 A detailed flowchart of another address allocation method provided in the embodiments of the present application;

[0046] Figure 4 A process schematic diagram of an address allocation method provided in the embodiments of the present application;

[0047] Figure 5 A structure schematic diagram of an address allocation device provided in the embodiments of the present application;

[0048] Figure 6 A structure schematic diagram of another address allocation device provided in the embodiments of the present application;

[0049] Figure 7 A structure schematic diagram of another address allocation device provided in the embodiments of the present application;

[0050] Figure 8 A hardware architecture schematic diagram of an address allocation device provided in the embodiments of the present application;

[0051] Figure 9Another hardware architecture schematic diagram of an address allocation apparatus provided by an embodiment of the present application is shown in FIG. 2.

[0052] Figure 10 Another hardware architecture schematic diagram of an address allocation apparatus provided by an embodiment of the present application is shown in FIG. 2. DETAILED DESCRIPTION

[0053] The terminology used in the description of the application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the description of the application and the appended claims, the singular forms "a", "an" and "the" are intended to include both singular and plural forms, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and / or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and / or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups thereof.

[0054] It should be understood that although the terms first, second, third, etc. can be used herein to describe various information, but these information should not be limited to these terms. These terms are only used to distinguish information of the same type from each other. For example, the first information can also be called the second information without departing from the scope of the application, and similarly, the second information can also be called the first information. In addition, the word "if" used herein can be interpreted as "when" or "when" or "in response to determining" depending on the context.

[0055] For example, refer to Figure 1 A detailed flowchart of an address allocation method provided by an embodiment of the present application is shown in FIG. 3. The method is applied to an authentication server and includes the following steps:

[0056] Step 100: receiving an authentication message sent by a target terminal, the authentication message carrying a username and a MAC address of the target terminal.

[0057] In the embodiment of the present application, the target message is a charging message. Specifically, after determining that the authentication is successful and applying for an IP address, the target terminal sends a charging message to the authentication server.

[0058] In actual application, when a terminal device joins a local area network, terminal user authentication is required, that is, an authentication request is initiated to an authentication server (such as a 3A server) in the network, and the authentication server performs authorization authentication based on terminal user information.

[0059] Step 110: generating an identifier for uniquely identifying the target terminal based on the username and the MAC address of the target terminal, and generating an association between the MAC address of the target terminal and the identifier.

[0060] Specifically, in the embodiment of the present application, the authentication server records the username, MAC address and IP address of the target terminal, and processes the username and MAC address of the target terminal based on a preset algorithm to generate an identifier (e.g., DUID) for uniquely identifying the target terminal. The value of the DUID generated for each terminal is fixed and unchangeable. The authentication server also establishes an association between the MAC address of the target terminal and the identifier.

[0061] Step 120: receiving a target message sent by the target terminal, the target message carrying the allocated IP address of the target terminal, and generating an association between the IP address and the identifier of the target terminal.

[0062] In actual application, after determining that the authentication is passed, the target terminal sends a DHCP Discover message to query available DHCP servers and request allocation of IP address and other configuration information. After the terminal device is authenticated successfully and obtains the IP address, the terminal device sends a charging message to the authentication server, the charging message including the IP address (e.g., IPv6 address) information applied for by the terminal. After obtaining the IP address of the target terminal, the authentication server establishes an association between the IP address and the identifier of the terminal.

[0063] Step 130: sending the association between the MAC address and the identifier of the target terminal to the DHCP relay device, and sending the association between the IP address and the identifier of the target terminal to the DHCP service.

[0064] Specifically, the authentication server sends the association between the MAC address and the identifier of the target terminal to the DHCP relay device in the network, and simultaneously, the authentication server sends the association between the IP address and the identifier of the target terminal to the DHCP service.

[0065] In this way, the DHCP relay device maintains the association between the MAC address and the identifier of each terminal, and the DHCP server maintains the association between the IP address and the identifier of each terminal allocated with an IP address. When the target terminal is online again, the DHCP relay device can carry the identifier in the address request message carrying the MAC address of the target terminal and send the address request message to the DHCP server, so that the DHCP server determines the associated IP address based on the identifier and allocates the IP address to the target terminal.

[0066] In actual application, when the target terminal is online again, the DHCP relay device receives the DHCP Discover message sent by the target terminal, the DHCP Discover message including the MAC address and the virtual DUID (such as the variable DUID value) of the target terminal, at this time, the DHCP relay device can modify the DUID value in the original message to the value of the identifier corresponding to the MAC address of the target terminal, and then forward to the DHCP server, and the DHCP server judges whether the IP address corresponding to the identifier exists according to the value of the identifier after receiving the DHCP Discover message, if the IP address exists, the IP address is allocated to the target terminal.

[0067] That is, the fixed terminal of the user can obtain the fixed IP address from the DHCP server, and the authentication server can perform more convenient management and control when performing charging / auditing.

[0068] Similarly, referring to Fig. 2, a detailed flowchart of an address allocation method provided by the embodiment of the present application is shown, the method being applied to a DHCP relay device; the method including the following steps: Figure 2 Step 200: receiving the association relationship between the MAC address of the target terminal and the identifier for uniquely identifying the target terminal sent by the authentication server.

[0069] The identifier is generated by the authentication server based on the username and the MAC address of the target terminal.

[0070] Step 210: receiving the address request message carrying the MAC address of the target terminal.

[0071] Step 220: determining the corresponding identifier based on the MAC address of the target terminal, and sending the identifier in the address request message to the DHCP server.

[0072] In this way, the DHCP server determines the associated IP address based on the identifier and the association relationship between the IP address of each terminal and the corresponding identifier sent by the authentication server, and allocates the IP address to the target terminal.

[0073] Similarly, referring to Fig. 3, a detailed flowchart of an address allocation method provided by the embodiment of the present application is shown, the method being applied to a DHCP server; the method including the following steps:

[0074] Figure 3 Step 300: receiving the association relationship between the IP address of the target terminal and the identifier for uniquely identifying the target terminal sent by the authentication server.

[0075] The identifier is generated by the authentication server based on the username and the MAC address of the target terminal.

[0076] ​The identifier is generated by the authentication server based on the username and MAC address of the target terminal.

[0077] Step 310: Receive an address request message sent by the DHCP relay device, wherein the address request message carries the identifier.

[0078] Step 320: Based on the identifier, the authentication server determines the associated IP address by matching the IP address of each terminal with the corresponding identifier, and assigns the IP address to the target terminal.

[0079] The address allocation process provided in this application embodiment will be described in detail below with reference to specific application scenarios. For example, see [link to relevant documentation]. Figure 4 The diagram shown is a schematic representation of a process in which an authentication server, a DHCP relay device, and a DHCP server work together to allocate addresses, according to an embodiment of this application.

[0080] 1. End-user authentication is launched. The user sends an authentication request to the authentication server, and the authentication server successfully authorizes and authenticates the user.

[0081] 2. After successful terminal authentication and address application, the terminal will send an accounting message to the authentication server. The authentication server records the username, terminal MAC address, and IPv6 information carried in the accounting message, and generates a fixed value DUID1 based on the username and terminal MAC address.

[0082] 3. The authentication server sends the DUID1 and IPv6 binding relationship to the DHCP server;

[0083] 4. The authentication server sends the relationship between the terminal MAC address and DUID1 to DHCP relay devices that support DUID conversion (such as relay and authentication point gateways);

[0084] 5. When the terminal comes online again, the DHCP relay device receives a Discover message containing the relationship between the terminal's MAC address and the virtual DUID. It then modifies the Discover message, changing the DIUD value in the original message to the corresponding DUID1.

[0085] 6. The DHCP server determines whether there is an IPv6 binding relationship with DUID1 based on DUID1. If there is, it assigns the corresponding IPv6 to the terminal.

[0086] Based on the same inventive concept as the above-described embodiments, see, for example, the following: Figure 5 The diagram shown is a structural schematic of an address allocation device provided in an embodiment of this application. This device is applied to an authentication server and includes:

[0087] The receiving unit 50 is configured to receive an authentication message sent by the target terminal, the authentication message carrying a username and a MAC address of the target terminal.

[0088] The generating unit 51 is configured to generate an identifier for uniquely identifying the target terminal based on the username and the MAC address of the target terminal, and generate an association between the MAC address and the identifier of the target terminal.

[0089] The receiving unit 50 is further configured to receive a target message sent by the target terminal, the target message carrying an allocated IP address of the target terminal.

[0090] The generating unit 51 is further configured to generate an association between the IP address and the identifier of the target terminal.

[0091] The sending unit 52 is configured to send the association between the MAC address and the identifier of the target terminal to a DHCP relay device, and send the association between the IP address and the identifier of the target terminal to a DHCP server, so that the DHCP relay device, after receiving an address request message carrying the MAC address of the target terminal, carries the identifier in the address request message and sends the address request message to the DHCP server, the DHCP server determines the associated IP address based on the identifier, and allocates the IP address to the target terminal.

[0092] Optionally, the target message is a charging message.

[0093] The target terminal sends a charging message to the authentication server after determining that the authentication is successful and applying for an IP address.

[0094] For example, refer to Figure 6 As shown in the figure, a structure schematic diagram of an address allocation apparatus provided by an embodiment of the present application is shown, the apparatus being applied to a DHCP relay device; the apparatus comprises:

[0095] The first receiving unit 60 is configured to receive an association between a MAC address of a target terminal and an identifier for uniquely identifying the target terminal sent by an authentication server, wherein the identifier is generated by the authentication server based on a username and the MAC address of the target terminal.

[0096] The second receiving unit 61 is configured to receive an address request message carrying the MAC address of the target terminal.

[0097] The sending unit 62 is configured to determine the corresponding identifier based on the MAC address of the target terminal, and send the identifier in the address request message to the DHCP server, so that the DHCP server determines the associated IP address based on the identifier and the association between the IP address and the corresponding identifier of each terminal sent by the authentication server, and allocates the IP address to the target terminal.

[0098] For example, refer to Figure 7 As shown in the figure, a structure schematic diagram of an address allocation apparatus provided by the embodiment of the present application is provided, and the apparatus is applied to a DHCP server; the apparatus comprises:

[0099] The first receiving unit 70 is configured to receive the association between the IP address of the target terminal and the identifier for uniquely identifying the target terminal sent by the authentication server, wherein the identifier is generated by the authentication server based on the username and the MAC address of the target terminal.

[0100] The second receiving unit 71 is configured to receive the address request message sent by the DHCP relay device, wherein the address request message carries the identifier.

[0101] The allocation unit 72 is configured to determine the associated IP address based on the identifier and the association between the IP address and the corresponding identifier of each terminal sent by the authentication server, and allocate the IP address to the target terminal.

[0102] The above units can be one or more integrated circuits configured to implement the above method, for example, one or more application specific integrated circuits (ASICs), or one or more digital signal processors (DSPs), or one or more field programmable gate arrays (FPGAs), etc. For another example, when the above unit is implemented in the form of a processing element scheduling code, the processing element can be a general-purpose processor, such as a central processing unit (CPU) or other processor that can invoke program code. For another example, the units can be integrated together in the form of a system on a chip (SOC).

[0103] Further, the address allocation apparatus provided by the embodiment of the present application is from the hardware layer, and the hardware architecture schematic diagram of the address allocation apparatus can refer to Figure 8As shown in the figure, the address allocation apparatus can comprise a memory 80 and a processor 81,

[0104] The memory 80 is configured to store program instructions, and the processor 81 is configured to invoke the program instructions stored in the memory 80 and execute the above-mentioned method embodiments applied to the authentication server according to the obtained program instructions. The specific implementation manners and technical effects are similar, and will not be described here.

[0105] Optionally, the present application also provides an authentication server comprising at least one processing element (or chip) for executing the above-mentioned method embodiments applied to the authentication server.

[0106] Optionally, the present application also provides a program product, for example, a computer readable storage medium, which stores computer executable instructions for causing the computer to execute the above-mentioned method embodiments applied to the authentication server.

[0107] Further, the address allocation apparatus provided by the embodiments of the present application, from the hardware layer, the hardware architecture schematic diagram of the address allocation apparatus can refer to Figure 9 As shown in the figure, the address allocation apparatus can comprise a memory 90 and a processor 91,

[0108] The memory 90 is configured to store program instructions, and the processor 91 is configured to invoke the program instructions stored in the memory 90 and execute the above-mentioned method embodiments applied to the DHCP relay device according to the obtained program instructions. The specific implementation manners and technical effects are similar, and will not be described here.

[0109] Optionally, the present application also provides a DHCP relay device comprising at least one processing element (or chip) for executing the above-mentioned method embodiments applied to the DHCP relay device.

[0110] Optionally, the present application also provides a program product, for example, a computer readable storage medium, which stores computer executable instructions for causing the computer to execute the above-mentioned method embodiments applied to the DHCP relay device.

[0111] Further, the address allocation apparatus provided by the embodiments of the present application, from the hardware layer, the hardware architecture schematic diagram of the address allocation apparatus can refer to Figure 10 As shown in the figure, the address allocation apparatus can comprise a memory 100 and a processor 101,

[0112] The memory 100 is configured to store program instructions, and the processor 101 is configured to invoke the program instructions stored in the memory 100 and execute the above-mentioned method embodiments applied to the DHCP server according to the obtained program instructions. The specific implementation manners and technical effects are similar, and will not be described here.

[0113] Optionally, the present application also provides a DHCP server comprising at least one processing element (or chip) for executing the above-mentioned method embodiments applied to the DHCP server.

[0114] Optionally, the present application also provides a program product, for example, a computer readable storage medium, which stores computer executable instructions for causing the computer to execute the above-mentioned method embodiments applied to the DHCP server.

[0115] Here, the machine readable storage medium can be any electronic, magnetic, optical, or other physical storage apparatus, can contain or store information, such as executable instructions, data, etc. For example, the machine readable storage medium can be: RAM (Radom Access Memory), volatile memory, non-volatile memory, flash memory, storage drive (such as hard drive), solid state drive, any type of storage disk (such as optical disk, dvd, etc.), or similar storage medium, or combination thereof.

[0116] The system, apparatus, module or unit illustrated in the above embodiments can be specifically implemented by a computer chip or entity, or by a product with certain functions. A typical implementation device is a computer, and the specific form of the computer can be a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.

[0117] For the convenience of description, the above apparatus is described as various units respectively by function. Of course, the functions of each unit can be implemented in the same or multiple software and / or hardware in the implementation of the present application.

[0118] Those skilled in the art will understand that the embodiments of the present application can be provided as a method, a system, or a computer program product. Therefore, the present application can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the embodiments of the present application can take the form of a computer program product implemented on one or more computer usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer usable program code.

[0119] The computer program instructions can also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart or flowsheet block or blocks. Figure 1 one or more flowcharts and / or blocks Figure 1 one or more flowcharts and / or blocks

[0120] Also, these computer program instructions can be stored in a computer readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture including instructions which implement the Figure 1 one or more flowcharts and / or blocks Figure 1 one or more flowcharts and / or blocks

[0121] The computer program instructions can also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart or flowsheet block or blocks. Figure 1 one or more flowcharts and / or blocks Figure 1 one or more flowcharts and / or blocks

[0122] The above description is only preferred embodiments of the present application, and is not used to limit the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the scope of protection of the present application.

Claims

1. An address allocation method, characterized in that, Applied to an authentication server; the method includes: Receive an authentication message sent by the target terminal, the authentication message carrying the username and MAC address of the target terminal; An identifier is generated to uniquely identify the target terminal based on the username and MAC address of the target terminal, and an association relationship is generated between the MAC address of the target terminal and the identifier. Receive a target message sent by a target terminal, the target message carrying the assigned IP address of the target terminal, and generate an association between the IP address and the identifier of the target terminal; The association between the MAC address and the identifier of the target terminal is sent to the DHCP relay device, and the association between the IP address and the identifier of the target terminal is sent to the DHCP server. This allows the DHCP relay device to send the identifier along with the address request message containing the MAC address of the target terminal to the DHCP server after receiving the address request message. The DHCP server then determines the associated IP address based on the identifier and assigns the IP address to the target terminal.

2. The method as described in claim 1, characterized in that, The target message is a billing message; After the target terminal confirms successful authentication and obtains an IP address, it sends a billing message to the authentication server.

3. An address allocation method, characterized in that, Applied to DHCP relay devices; the method includes: The association between the MAC address of the target terminal sent by the authentication server and the identifier used to uniquely identify the target terminal is received, wherein the identifier is generated by the authentication server based on the username and MAC address of the target terminal; Receive an address request message carrying the MAC address of the target terminal; The corresponding identifier is determined based on the MAC address of the target terminal, and the identifier is sent to the DHCP server in the address request message. The DHCP server then determines the associated IP address based on the identifier, the association between the IP addresses of each terminal sent by the authentication server and the corresponding identifier, and assigns the IP address to the target terminal.

4. An address allocation method, characterized in that, Applied to a DHCP server; the method includes: The association between the IP address of the target terminal and the identifier used to uniquely identify the target terminal is received from the authentication server, wherein the identifier is generated by the authentication server based on the username and MAC address of the target terminal; Receive an address request message sent by a DHCP relay device, wherein the address request message carries the identifier; Based on the identifier, the authentication server determines the associated IP address by sending the IP address of each terminal and the corresponding identifier, and assigns the IP address to the target terminal.

5. An address allocation device, characterized in that, Applied to an authentication server; the device includes: The receiving unit is used to receive an authentication message sent by the target terminal, wherein the authentication message carries the username and MAC address of the target terminal; The generation unit is used to generate an identifier for uniquely identifying the target terminal based on the username and MAC address of the target terminal, and to generate the association between the MAC address of the target terminal and the identifier. The receiving unit is further configured to receive a target message sent by the target terminal, the target message carrying the assigned IP address of the target terminal; The generation unit is also used to generate the association between the IP address and the identifier of the target terminal; The sending unit is configured to send the association between the MAC address and the identifier of the target terminal to the DHCP relay device, and send the association between the IP address and the identifier of the target terminal to the DHCP server, so that after receiving an address request message carrying the MAC address of the target terminal, the DHCP relay device will carry the identifier in the address request message and send it to the DHCP server. The DHCP server will determine the associated IP address based on the identifier and assign the IP address to the target terminal.

6. The apparatus as claimed in claim 5, characterized in that, The target message is a billing message; After the target terminal confirms successful authentication and obtains an IP address, it sends a billing message to the authentication server.

7. An address allocation device, characterized in that, Applied to DHCP relay equipment; the device includes: The first receiving unit is used to receive the association between the MAC address of the target terminal and the identifier used to uniquely identify the target terminal sent by the authentication server, wherein the identifier is generated by the authentication server based on the username and MAC address of the target terminal; The second receiving unit is used to receive an address request message carrying the MAC address of the target terminal; The sending unit is configured to determine the corresponding identifier based on the MAC address of the target terminal, and send the identifier in the address request message to the DHCP server, so that the DHCP server determines the associated IP address based on the identifier, the association relationship between the IP addresses of each terminal sent by the authentication server and the corresponding identifier, and assigns the IP address to the target terminal.

8. An address allocation device, characterized in that, Applied to a DHCP server; the apparatus includes: The first receiving unit is used to receive the association between the IP address of the target terminal and the identifier used to uniquely identify the target terminal sent by the authentication server, wherein the identifier is generated by the authentication server based on the username and MAC address of the target terminal. The second receiving unit is used to receive an address request message sent by the DHCP relay device, wherein the address request message carries the identifier; The allocation unit is configured to determine the associated IP address based on the identifier, the association between the IP addresses of each terminal sent by the authentication server and the corresponding identifier, and allocate the IP address to the target terminal.

9. An address allocation device, characterized in that, The address allocation device includes: Memory, used to store program instructions; A processor is configured to invoke program instructions stored in the memory and execute the steps of the method as described in any one of claims 1-2, 3, or 4, according to the obtained program instructions.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions for causing the computer to perform the steps of the method as described in any one of claims 1-2, 3, or 4.

Citation Information

Patent Citations

  • IP address distribution system and method

    CN117118950A

  • Relay apparatus, relay program, relay method, and management system for managing devices connected to network

    US20100008374A1