Address allocation method and device, equipment and medium

By introducing a preset field identifier into the DHCP message, a management address is assigned to the wireless access point (AP) device and MQTT connection is used, which solves the problem of inaccurate address separation in small commercial scenarios and improves network security and stability.

CN121125691APending Publication Date: 2025-12-12SHEN ZHOU SHU MA WANG LUO BEI JING YOU XIAN GONG SI
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511403833.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-09-29
Publication Date
2025-12-12

AI Technical Summary

Technical Problem

In wireless network deployments in small commercial settings, existing technologies struggle to achieve precise separation of management and business address network segments while simplifying the deployment process, impacting network security and stability.

Method used

By introducing DHCP messages with preset field identifiers, management addresses and service addresses are specifically assigned to wireless access point (AP) devices. Management information is transmitted using MQTT connections, distinguishing the address allocation of AP devices from those of other STA devices.

Benefits of technology

It achieves precise separation of address allocation between AP devices and other STA devices, improves the security and stability of network management, reduces the risk of external attack penetration, and simplifies the deployment process of wireless networks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121125691A_ABST
    Figure CN121125691A_ABST
Patent Text Reader

Abstract

The invention relates to an address allocation method and device, equipment and a medium, and relates to the technical field of communication. The method comprises the following steps: replying a second message to first equipment through a second port under the condition that a first message sent by the first equipment from a first port is received; wherein the first message is a dynamic host configuration protocol DHCP discovery message; the second message is a DHCP providing message comprising a first allocation address and a preset field identifier; if the first equipment is wireless access point (AP) equipment, replying a fourth message to the first equipment through a fourth port under the condition that a third message sent by the first equipment from the third port is received and the first equipment receives the second message, so as to perform address allocation to the first equipment; wherein the third message is a DHCP discovery message; the fourth message is a DHCP providing message comprising the second allocation address. By adopting the method, accurate separation of address allocation can be realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communication technology, and in particular to an address allocation method, apparatus, device, and medium. Background Technology

[0002] In wireless network deployments for small businesses, network architecture simplicity and operational efficiency are core requirements. These scenarios typically rely on gateways (ACs, Access Controllers), access points (APs), and stations (STAs) to build the basic network. The AC needs to simultaneously handle device management and user service support. From a general network planning perspective, to ensure management security and service stability, it is an industry consensus to isolate the management address network segment of network devices (such as APs) from the service address network segment of end users (STAs). The management network segment is used for device configuration, status monitoring, and troubleshooting, while the service network segment is used for user data transmission. This separation reduces the interference of management operations on services and also reduces the risk of external attacks penetrating the device management layer through the service side. As small businesses become increasingly reliant on wireless networks, how to achieve effective isolation of address network segments while simplifying the deployment process has become a pressing practical problem in this field.

[0003] Currently, the mainstream technical solution for separating management address and service address network segments is based on virtual LAN partitioning. That is, different virtual LAN identifiers are assigned to device management services and user data services through network configuration. However, this solution is suitable for complex deployment scenarios such as medium and large enterprise networks. However, wireless network deployment in small commercial scenarios is characterized by lightweight configuration and rapid implementation. Consequently, address segment separation schemes based on virtual LANs have poor adaptability in small commercial scenarios and cannot achieve accurate separation of address allocation. Summary of the Invention

[0004] This application provides an address allocation method, apparatus, device, and medium that can achieve precise separation of address allocation.

[0005] To achieve the above objectives, this application adopts the following technical solution: Firstly, this application provides an address allocation method, including: Upon receiving a first message sent by the first device from the first port, a second message is sent back to the first device through the second port; wherein, the first message is a Dynamic Host Configuration Protocol (DHCP) Discover message; and the second message is a DHCP Offer message including a first assigned address and a preset field identifier; If the first device is a wireless access point (AP) device, upon receiving the third message sent by the first device from the third port, and the first device receiving the second message, the AP device replies with a fourth message through the fourth port to allocate an address to the first device; wherein, the third message is a DHCP discovery message; and the fourth message is a DHCP offer message including the second allocated address.

[0006] In one embodiment, it includes: If the first device is a workstation (STA) device, the first assigned address is used as the address of the first device so that the STA device can access the wireless network.

[0007] In one embodiment, it includes: Based on the second allocated address, a Message Queuing Telemetry Transport Protocol (MQTT) connection is established with the AP device.

[0008] In one embodiment, it includes: Management information is sent to the AP device via an MQTT connection; the management information includes configuration information, status information, and detection information.

[0009] In one embodiment, it includes: Based on the first port, a first message is sent to the access controller (AC) device; wherein, the first message is a Dynamic Host Configuration Protocol (DHCP) discovery message; Upon receiving a second message from the AC device and recognizing that the second message includes a preset field identifier, a third message is sent to the AC device via the third port; wherein, the second message is a DHCP offer message including the first assigned address and the preset field identifier; and the third message is a DHCP discovery message; Upon receiving a fourth message reply from the AC device, a Message Queuing Telemetry Transport Protocol (MQTT) connection is established with the AC device based on the second allocated address in the fourth message; wherein, the fourth message is a DHCP offer message including the second allocated address.

[0010] In one embodiment, it includes: After recognizing that the second message includes a preset field identifier, the Dynamic Host Configuration Protocol (DHCP) client configuration file is modified to update the message sending port to the third port and the receiving port to the fourth port, and the DHCP client process is restarted.

[0011] Secondly, this application provides an address allocation device, comprising: The first allocation module is used to reply to the first device with a second message through a second port when it receives a first message sent by the first device from a first port; wherein the first message is a Dynamic Host Configuration Protocol (DHCP) discovery message; and the second message is a DHCP offer message including a first allocation address and a preset field identifier. The second allocation module is used to, if the first device is a wireless access point (AP) device, reply to the first device with a fourth message through a fourth port when it receives a third message sent by the first device from a third port and the first device receives a second message, so as to allocate an address to the first device; wherein, the third message is a DHCP discovery message; and the fourth message is a DHCP offer message including the second allocated address.

[0012] This application also provides an address allocation device, including: The first sending module is used to send a first message to the access controller AC device based on the first port; wherein the first message is a Dynamic Host Configuration Protocol (DHCP) discovery message; The second sending module is used to send a third message to the AC device via the third port when it receives a second message reply from the AC device and recognizes that the second message includes a preset field identifier; wherein the second message is a DHCP offer message including a first allocation address and a preset field identifier; and the third message is a DHCP discovery message. The second allocation module is used to establish a Message Queuing Telemetry Transport Protocol (MQTT) connection with the AC device based on the second allocation address in the fourth message when it receives a fourth message reply from the AC device; wherein the fourth message is a DHCP offer message including the second allocation address.

[0013] Thirdly, this application provides a computing device, including a memory and a processor; The memory stores one or more computer programs, the one or more computer programs including instructions; when the instructions are executed by the processor, the computing device performs the method as described in any one of the first aspects.

[0014] Fourthly, this application provides a computer-readable storage medium for storing a computer program for performing the method as described in any one of the first aspects.

[0015] Fifthly, this application provides a computer program product comprising one or more computer instructions, wherein when the computer instructions are executed by a computer, the computer performs the method as described in any one of the first aspects.

[0016] As can be seen from the above technical solution, this application has at least the following beneficial effects: In this application, upon receiving a first message sent by a first device from a first port, a second message including a first allocated address and a preset field identifier is replied to the first device via a second port. If the first device is a wireless access point (AP) device, upon receiving a third message sent by the first device from a third port, and upon receiving the second message, a fourth message including a second allocated address is replied to the first device via a fourth port, thereby allocating an address to the first device. This solution, by introducing a preset field identifier, provides a method for targeted address allocation to AP devices, distinguishing AP devices from other STA devices through address allocation, and achieving precise separation of address allocation.

[0017] It should be understood that the descriptions of technical features, technical solutions, beneficial effects, or similar language in this application do not imply that all features and advantages can be achieved in any single embodiment. Rather, it is understood that the description of a feature or beneficial effect means that a specific technical feature, technical solution, or beneficial effect is included in at least one embodiment. Therefore, the descriptions of technical features, technical solutions, or beneficial effects in this specification do not necessarily refer to the same embodiment. Furthermore, the technical features, technical solutions, and beneficial effects described in this embodiment can be combined in any suitable manner. Those skilled in the art will understand that embodiments can be implemented without one or more specific technical features, technical solutions, or beneficial effects of a particular embodiment. In other embodiments, additional technical features and beneficial effects may be identified in specific embodiments that do not embody all embodiments. Attached Figure Description

[0018] Figure 1 This is an application environment diagram of an address allocation method provided in the embodiments of this application; Figure 2 This is a flowchart illustrating an address allocation method provided in an embodiment of this application; Figure 3 This is a flowchart illustrating yet another address allocation method provided in the embodiments of this application; Figure 4 This is a structural block diagram of an address allocation device provided in the embodiments of this application; Figure 5 This is a structural block diagram of another address allocation device provided in the embodiments of this application; Figure 6 This is an internal structural diagram of a computer device provided in the embodiments of the application. Detailed Implementation

[0019] The terms "first," "second," and "third," etc., used in this application specification and accompanying drawings are used to distinguish different objects, not to limit a specific order.

[0020] In the embodiments of this application, the terms "exemplary" or "for example" are used to indicate that something is an example, illustration, or description. Any embodiment or design that is described as "exemplary" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design. Specifically, the use of the terms "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.

[0021] To ensure clarity and conciseness in the description of the following embodiments, a brief introduction to the related technologies is given first: In wireless network deployments for small businesses, network architecture simplicity and operational efficiency are core requirements. These scenarios typically rely on gateways (ACs, Access Controllers), access points (APs), and stations (STAs) to build the basic network. The AC needs to simultaneously handle device management and user service support. From a general network planning perspective, to ensure management security and service stability, it is an industry consensus to isolate the management address network segment of network devices (such as APs) from the service address network segment of end users (STAs). The management network segment is used for device configuration, status monitoring, and troubleshooting, while the service network segment is used for user data transmission. This separation reduces the interference of management operations on services and also reduces the risk of external attacks penetrating the device management layer through the service side. As small businesses become increasingly reliant on wireless networks, how to achieve effective isolation of address network segments while simplifying the deployment process has become a pressing practical problem in this field.

[0022] Currently, the mainstream technical solution for separating management address and service address network segments is based on virtual LAN partitioning. That is, different virtual LAN identifiers are assigned to device management services and user data services through network configuration. However, this solution is suitable for complex deployment scenarios such as medium and large enterprise networks. However, wireless network deployment in small commercial scenarios is characterized by lightweight configuration and rapid implementation. Consequently, address segment separation schemes based on virtual LANs have poor adaptability in small commercial scenarios and cannot achieve accurate separation of address allocation.

[0023] To make the technical solution of this application clearer and easier to understand, the application scenarios of the technical solution of this application are described below with reference to the accompanying drawings. Figure 1 As shown in the figure, this figure is a schematic diagram of an application scenario provided by an embodiment of this application.

[0024] In this application scenario, both AP device 102 and STA device 103 initiate DHCP address requests through UDP port 67 and complete the address allocation through interaction with AC device 104.

[0025] To make the technical solution of this application clearer and easier to understand, the following describes an address allocation method provided by an embodiment of this application, taking the access controller AC device 104 as an example, in conjunction with the above application scenario. Figure 2 As shown, this figure is a flowchart of an address allocation method provided in an embodiment of this application.

[0026] S201. Upon receiving the first message sent by the first device from the first port, reply to the first device with a second message through the second port.

[0027] The first message is a Dynamic Host Configuration Protocol (DHCP) Discover message, i.e., DHCP Discover; the second message is a DHCP Offer message, i.e., DHCP Offer, which includes a first assigned address and a preset field identifier.

[0028] Optionally, the first port is UDP port 67; the second port is UDP port 68; the default field identifier can be DHCP Option 234.

[0029] For example, when the first device is powered on and has not yet obtained an IP address, the DHCP client is started by default. It broadcasts the first message DHCP Discover (which is automatically triggered when network access is needed, and is usually sent once per minute until a response is received) through the first port (UDP 67, the standard DHCP client sending port). The message content is "Request IP address allocation". AC listens on UDP port 67 and captures the DHCP Discover message (i.e., the first message) sent by the first device. Then, AC's DHCP server1 (service address pool server) allocates a first allocation address from the service address pool, adds a preset field identifier (Option 234) to the message, generates a second message (DHCP Offer), and sends the second message to the first device through the second port (UDP 68, the standard DHCP server reply port).

[0030] It should be noted that the AC device, or Access Controller, is responsible for managing AP devices and address allocation; the DHCP client is the Dynamic Host Configuration Protocol client module built into the device (such as the AP device); the DHCP Discover message is the first message in the DHCP protocol process, broadcast by the client to find a DHCP server; the DHCP Offer message is the second message in the DHCP protocol process, sent by the server to the client, including information such as the assigned IP address.

[0031] S202. If the first device is a wireless access point (AP) device, upon receiving the third message sent by the first device from the third port and the first device receiving the second message, the first device replies with a fourth message through the fourth port to allocate an address to the first device.

[0032] The third message is a DHCP discovery message; the fourth message is a DHCP offer message that includes the second assigned address.

[0033] Optionally, the third port is UDP port 6767; the fourth port is UDP port 6768.

[0034] Furthermore, a Message Queuing Telemetry Transport Protocol (MQTT) connection can be established with the AP device based on the second allocated address; management information can be sent to the AP device based on the MQTT connection; the management information includes configuration information, status information, and detection information.

[0035] Optionally, if the first device is a workstation (STA) device, the first assigned address is used as the address of the first device so that the STA device can access the wireless network.

[0036] For example, after receiving the second message (containing Option 234), the AP device first completes the standard DHCP process (responding to the AC device with a request message, receiving an acknowledgment message, and obtaining the first assigned address). Then, upon resolving the Option 234 identifier, it automatically modifies its own DHCP client configuration: changing the sending port to the third port (UDP 6767, a custom management port) and the receiving port to the fourth port (UDP 6768, a custom management port), and restarts the DHCP client process (the restarted DHCP client sends messages through the third port). After the AP device resolves the Option 234 identifier in the second message, the AP device sends a third message (DHCP Discover) through the third port (UDP 6767). At this time, the message target is the AC device's management address pool server (dhcp server2). The AC device's DHCP server2 listens on UDP port 6767 and captures the third packet sent by the AP device. DHCP server2 allocates a second allocation address (AP-specific management IP) from the management address pool. After the AC device generates a fourth packet (DHCP Offer), it sends the fourth packet to the AP device through the fourth port (UDP 6768). Furthermore, after receiving the fourth message, the AP device replies with a DHCP request message to the AC device, and finally receives the acknowledgment message (ACK) sent by the AC device, thus completing the acquisition of the second allocated address. Based on the second allocated address, it establishes an MQTT (Message Queuing Telemetry Transport) connection with the AC device, so that the AC device can send management information through MQTT, realizing centralized management of the AP device by the AC device, and completing the wireless network deployment without manual configuration.

[0037] Optionally, management information may include, but is not limited to, configuration information, status information, and detection information; configuration information: such as deployment parameters such as wireless network name, encryption method, and working channel; status information: such as global data such as the current load of the AC device and the operating status of other AP devices; detection information: such as link connectivity detection and AP device hardware status (temperature, signal strength) query commands.

[0038] If the first device is a STA device, after receiving the second message (containing the first allocated address, but the STA device does not recognize the Option 234 identifier), the STA device directly completes the subsequent DHCP process (responding to the request message and receiving the confirmation message). The AC device directly uses the first allocated address as the final service address of the STA device. That is, the STA device uses the first allocated address to access the wireless network and only uses it for service needs such as accessing the Internet. There is no need to establish a management connection with the AC device.

[0039] The aforementioned address allocation method, upon receiving a first message from a first device via a first port, replies to the first device via a second port with a second message including a first allocated address and a preset field identifier. If the first device is a wireless access point (AP), upon receiving a third message from a third port and the first device receiving the second message, replies to the first device via a fourth port with a fourth message including a second allocated address, thereby allocating an address to the first device. This solution, by introducing a preset field identifier, provides a method for targeted address allocation to AP devices, distinguishing AP devices from other STA devices through address allocation and achieving precise separation of address allocation.

[0040] Taking a wireless access point (AP) device 102 as an example, an address allocation method provided in this application embodiment will be described. For example... Figure 3 As shown, this figure is a flowchart of an address allocation method provided in an embodiment of this application: S301. Based on the first port, send the first message to the access controller AC device.

[0041] The first message is a Dynamic Host Configuration Protocol (DHCP) discovery message.

[0042] For example, when an AP device is first powered on and has not yet obtained any IP address, it needs to connect to the network and establish a connection with the AC device. The AP device will automatically start its built-in DHCP client, enter the address request state, and use the first port (UDP 67, the standard DHCP client sending port) as the message sending channel by default. It sends the first message (DHCP discovery message) in broadcast form. The message content includes basic information such as the AP device's device identifier, and the core request is "to request the AC device to assign an IP address". If no reply is received from the AC device, the AP device will resend once every minute until a response is obtained. Furthermore, the AC device's dhcp server1 (service address pool server) listens on UDP port 67 by default, which can capture the first message and prepare subsequent replies.

[0043] S302. Upon receiving a second message from the AC device and recognizing that the second message includes a preset field identifier, a third message is sent to the AC device via the third port.

[0044] The second message is a DHCP offer message that includes the first assigned address and a preset field identifier; the third message is a DHCP discovery message.

[0045] Optionally, after recognizing that the second message includes a preset field identifier, modify the Dynamic Host Configuration Protocol (DHCP) client configuration file, update the message sending port to the third port and the receiving port to the fourth port, and restart the DHCP client process.

[0046] For example, after the AC device (DHCP server1 is running) captures the first packet, it allocates the first allocation address from the service address pool, adds a preset field identifier (Option 234) to the reply second packet (DHCP provide packet), and sends it to the AP device through UDP port 68; After receiving the second message from the AC device via the default receive port (UDP 68), the AP device extracts the first allocated address from the message and recognizes the preset field identifier (Option 234) in the message. Then, the AP device uses the Option 234 identifier to confirm the AP device's modified configuration and restarts the DHCP client. Specifically, it edits its own DHCP client configuration file, updating the original "message sending port" from the first port (UDP 67) to the third port (UDP 6767) and the "message receiving port" to the fourth port (UDP 6768). After saving the configuration file, it restarts the DHCP client process to make the new port configuration take effect. Then, the AP device (with the DHCP client restarted) uses the updated third port (UDP 6767) to send a third message (DHCP discovery message) in broadcast form. At this time, the message target is clearly directed to the AC's management address pool server (dhcpserver2).

[0047] S303. Upon receiving the fourth message from the AC device, establish a Message Queuing Telemetry Transport Protocol (MQTT) connection with the AC device based on the second allocated address in the fourth message.

[0048] The fourth message is a DHCP offer message that includes the second assigned address.

[0049] For example, if the AC device has enabled dhcp server2 (management address pool server) and the server is listening on the third port (UDP 6767), after dhcp server2 captures the third packet sent by the AP device from the third port, it allocates a unique second allocation address (AP device exclusive management IP) from the management address pool, generates a fourth packet (DHCP provide packet) including the second allocation address, and sends it to the AP device through the fourth port (UDP 6768); After receiving the fourth message through the fourth port, the AP device extracts the second allocated address and completes the subsequent DHCP process (responding to the AC device with a request message and receiving an acknowledgment message). Finally, it configures the address as its own management IP and uses the second allocated address (management IP) as a communication identifier to actively establish an MQTT connection with the AC device (a lightweight IoT link adapted to low-bandwidth communication needs between devices).

[0050] In this embodiment, a first message is sent to the access controller (AC) device via a first port; upon receiving a second message from the AC device and recognizing that the second message includes a first allocated address and a preset field identifier, a third message is sent to the AC device via a third port; upon receiving a fourth message from the AC device including a second allocated address, a Message Queuing Telemetry Transport Protocol (MQTT) connection is established with the AC device based on the second allocated address in the fourth message. This solution, by introducing a preset field identifier, provides a way for the AC device to allocate addresses to AP devices and other STA devices in a targeted manner, achieving precise separation of address allocation.

[0051] The above text combined Figures 1 to 3 The address allocation method provided in the embodiments of this application has been described in detail. The apparatus and device provided in the embodiments of this application will be described below with reference to the accompanying drawings.

[0052] like Figure 4 As shown in the figure, this is a schematic diagram of an address allocation device 400 provided in an embodiment of this application. The address allocation device 400 includes: a first allocation module 401 and a second allocation module 402, wherein: The first allocation module 401 is used to reply to the first device with a second message through a second port when it receives a first message sent by the first device from the first port; wherein the first message is a Dynamic Host Configuration Protocol (DHCP) discovery message; and the second message is a DHCP offer message including the first allocation address and a preset field identifier. The second allocation module 402 is configured to, if the first device is a wireless access point (AP) device, upon receiving a third message sent by the first device from a third port and the first device receiving a second message, reply to the first device with a fourth message through a fourth port to allocate an address to the first device; wherein the third message is a DHCP discovery message; and the fourth message is a DHCP offer message including the second allocated address.

[0053] In one embodiment, the address allocation device 400 further includes: If the first device is a workstation (STA) device, the first assigned address is used as the address of the first device so that the STA device can access the wireless network.

[0054] In one embodiment, the address allocation device 400 further includes: Based on the second allocated address, a Message Queuing Telemetry Transport Protocol (MQTT) connection is established with the AP device.

[0055] In one embodiment, the address allocation device 400 further includes: Based on the MQTT connection, management information is sent to the AP device; wherein, the management information includes configuration information, status information and detection information.

[0056] like Figure 5 As shown in the figure, this is a schematic diagram of another address allocation device 500 provided in an embodiment of this application. The address allocation device 500 includes: a first sending module 501, a second sending module 502, and a second allocation module 503, wherein: The first sending module 501 is used to send a first message to the access controller AC device based on the first port; wherein the first message is a Dynamic Host Configuration Protocol (DHCP) discovery message; The second sending module 502 is used to send a third message to the AC device based on the third port when it receives a second message reply from the AC device and recognizes that the second message includes a preset field identifier; wherein the second message is a DHCP offer message including a first allocation address and a preset field identifier; and the third message is a DHCP discovery message. The second allocation module 503 is used to establish a Message Queuing Telemetry Transport Protocol (MQTT) connection with the AC device based on the second allocation address in the fourth message when the AC device replies with a fourth message; wherein the fourth message is a DHCP offer message including the second allocation address.

[0057] In one embodiment, the address allocation device 500 further includes: After recognizing that the second message includes a preset field identifier, the Dynamic Host Configuration Protocol (DHCP) client configuration file is modified to update the message sending port to the third port and the receiving port to the fourth port, and the DHCP client process is restarted.

[0058] The address allocation device 400 and address allocation device 500 according to the embodiments of this application can correspond to the execution of the methods described in the embodiments of this application, and the other operations and / or functions of each module / unit of the address allocation device 400 and address allocation device 500 are respectively for implementing Figure 2 , Figure 3 For the sake of brevity, the corresponding processes of each method in the illustrated embodiments will not be described in detail here.

[0059] This application also provides a computing device. This computing device can be a local computing device or an application server.

[0060] like Figure 6 As shown in the figure, this is a schematic diagram of a computing device provided in an embodiment of this application. The computing device 700 includes a bus 701, a processor 702, a communication interface 703, and a memory 704. The processor 702, the memory 704, and the communication interface 703 communicate with each other via the bus 701.

[0061] The 701 bus can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of representation, Figure 6 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.

[0062] The processor 702 can be any one or more of the following processors: central processing unit (CPU), graphics processing unit (GPU), microprocessor (MP), or digital signal processor (DSP).

[0063] The communication interface 703 is used for external communication.

[0064] Memory 704 may include volatile memory, such as random access memory (RAM). Memory 704 may also include non-volatile memory, such as read-only memory (ROM), flash memory, hard disk drive (HDD), or solid state drive (SSD).

[0065] The memory 704 stores executable code, and the processor 702 executes the executable code to perform the aforementioned address allocation method.

[0066] Specifically, in achieving Figure 4 and Figure 5 In the case of the illustrated embodiment, and Figure 4 and Figure 5 When the modules or units of the address allocation device described in the embodiment are implemented by software, the execution... Figure 6 The software or program code required for the functions of each module / unit can be partially or wholly stored in memory 704. Processor 702 executes the program code corresponding to each unit stored in memory 704 and performs the aforementioned address allocation method.

[0067] This application also provides a computer-readable storage medium. The computer-readable storage medium can be any available medium that a computing device can store, or a data storage device such as a data center containing one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid-state drive). The computer-readable storage medium includes instructions that instruct the computing device to execute the address allocation method described above.

[0068] This application also provides a computer program product comprising one or more computer instructions. When the computer instructions are loaded and executed on a computing device, all or part of the processes or functions described in this application are generated.

[0069] The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions may be transmitted from one website, computer, or data center to another website, computer, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) means.

[0070] When the computer program product is executed by a computer, the computer performs any of the aforementioned address allocation methods. The computer program product can be a software installation package; when any of the aforementioned address allocation methods is required, the computer program product can be downloaded and executed on the computer.

[0071] The descriptions of the processes or structures corresponding to the above figures each have their own emphasis. For parts of a process or structure that are not described in detail, please refer to the relevant descriptions of other processes or structures.

[0072] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any changes or substitutions within the technical scope disclosed in this application should be covered within the scope of protection of this application.

Claims

1. An address allocation method, characterized in that, Applied to access controller (AC) devices, the method includes: Upon receiving a first message sent by the first device from the first port, a second message is replied to the first device through the second port; wherein, the first message is a Dynamic Host Configuration Protocol (DHCP) Discover message; and the second message is a DHCP Offer message including a first allocation address and a preset field identifier; If the first device is a wireless access point (AP) device, upon receiving a third message sent from the third port by the first device and the first device receiving the second message, the AP device replies with a fourth message through the fourth port to allocate an address to the first device; wherein, the third message is a DHCP discovery message; and the fourth message is a DHCP offer message including a second allocated address.

2. The method according to claim 1, characterized in that... The method further includes: If the first device is a workstation (STA) device, the first assigned address is used as the address of the first device so that the STA device can access the wireless network.

3. The method according to claim 1, characterized in that... The method further includes: Based on the second allocated address, a Message Queuing Telemetry Transport Protocol (MQTT) connection is established with the AP device.

4. The method according to claim 3, characterized in that... The method further includes: Based on the MQTT connection, management information is sent to the AP device; wherein, the management information includes configuration information, status information and detection information.

5. An address allocation method, characterized in that, Applied to wireless access point (AP) devices, the method includes: Based on the first port, a first message is sent to the access controller (AC) device; wherein, the first message is a Dynamic Host Configuration Protocol (DHCP) discovery message; Upon receiving a second message from the AC device and recognizing that the second message includes a preset field identifier, a third message is sent to the AC device via the third port; wherein, the second message is a DHCP offer message including a first allocation address and a preset field identifier; and the third message is a DHCP discovery message; Upon receiving a fourth message reply from the AC device, a Message Queuing Telemetry Transport Protocol (MQTT) connection is established with the AC device based on the second allocation address in the fourth message; wherein the fourth message is a DHCP offer message including the second allocation address.

6. The method according to claim 5, characterized in that... The method further includes: After recognizing that the second message includes a preset field identifier, the Dynamic Host Configuration Protocol (DHCP) client configuration file is modified to update the message sending port to the third port and the receiving port to the fourth port, and the DHCP client process is restarted.

7. An address allocation device, characterized in that, The device is applied to an access controller AC device and includes: The first allocation module is configured to reply to the first device with a second message via a second port upon receiving a first message sent by the first device from a first port; wherein the first message is a Dynamic Host Configuration Protocol (DHCP) discovery message; and the second message is a DHCP offer message including a first allocation address and a preset field identifier. The second allocation module is configured to, if the first device is a wireless access point (AP) device, upon receiving a third message sent by the first device from a third port and the first device receiving the second message, reply to the first device with a fourth message through a fourth port to allocate an address to the first device; wherein the third message is a DHCP discovery message; and the fourth message is a DHCP offer message including the second allocated address.

8. An address allocation device, characterized in that, The device is applied to a wireless access point (AP) device and includes: The first sending module is used to send a first message to the access controller (AC) device based on the first port; wherein the first message is a Dynamic Host Configuration Protocol (DHCP) discovery message; The second sending module is configured to send a third message to the AC device via a third port when it receives a second message reply from the AC device and recognizes that the second message includes a preset field identifier; wherein the second message is a DHCP offer message including a first allocation address and a preset field identifier; and the third message is a DHCP discovery message. The second allocation module is used to establish a Message Queuing Telemetry Transport Protocol (MQTT) connection with the AC device based on the second allocation address in the fourth message when the AC device replies with a fourth message; wherein the fourth message is a DHCP offer message including the second allocation address.

9. A computing device, characterized in that, Including memory and processor; The memory stores one or more computer programs, the one or more computer programs including instructions; when the instructions are executed by the processor, the computing device performs the method as described in any one of claims 1 to 6.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium is used to store a computer program for performing the method as described in any one of claims 1 to 6.