Method and device for accessing AP (Access Point) to AC (Access Controller), electronic equipment and medium
By using unicast during AP access to AC to reduce broadcast messages, the problem of broadcast storms during AP access is solved, improving network performance and the processing capacity of the DHCP server.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- XINHUASAN INFORMATION TECH CO LTD
- Filing Date
- 2026-02-02
- Publication Date
- 2026-05-01
AI Technical Summary
During the process of AP connecting to AC, excessive broadcast messages lead to network bandwidth loss and high DHCP server concurrency, which can easily trigger broadcast storms.
By obtaining the DHCP server address from the AP that has already obtained an IP address, the address acquisition requests of other APs are sent to the DHCP server in unicast form, reducing the number of broadcasts and optimizing the IP address allocation process.
This reduces the number of broadcasts during the AP's IP address acquisition process, avoids broadcast storms, reduces the concurrency of the DHCP server, and improves network efficiency.
Smart Images

Figure CN121967374A_ABST
Abstract
Description
Technical Field
[0001] This specification relates to the field of communication technology, and in particular to methods, apparatus, electronic devices and media for AP to access AC. Background Technology
[0002] Currently, wireless LANs can adopt an AC (Access Controller) and AP (Access Point) architecture. This means the AC centrally controls and manages the APs, with all configurations stored on and distributed by the AC; no configuration is required on the APs themselves. There are several ways for the AC and APs to exchange messages, with the CAPWAP protocol being one of them.
[0003] In practical applications, the Access Point (AP) obtains its IP address from a DHCP (Dynamic Host Configuration Protocol) server and then connects to the Access Control Unit (AC). Generally, all APs obtain their addresses from the same DHCP server. The specific address obtained depends on the order in which the APs obtained their addresses and the method used by the DHCP server to assign addresses.
[0004] In real-world scenarios, users prefer to minimize broadcast messages in their network deployments. Excessive broadcast messages can lead to network bandwidth consumption, consume significant processing power of devices, and negatively impact the network architecture. When an AP connects to an AC, it needs to obtain an IP address, and in doing so, it broadcasts a DHCP message. If many APs are acquiring IP addresses in the environment, it can cause a broadcast storm. Furthermore, a large number of broadcasts can result in high concurrency on the DHCP server. Summary of the Invention
[0005] To overcome the problems existing in related technologies, this specification provides methods, devices, electronic devices and media for AP to connect to AC.
[0006] According to a first aspect of the embodiments of this specification, a method for an access point (AP) to access an access control (AC) is provided. The method includes: receiving a first address acquisition request broadcast by a first AP; sending the first address acquisition request to a DHCP server in a unicast manner based on a DHCP server address obtained from a second AP, wherein the second AP has already obtained an IP address through the DHCP server; receiving a first address allocation message sent by the DHCP server in response to the first address acquisition request, the first address allocation message including the first IP address; and sending the first address allocation message to the first AP, so that the first AP performs an access operation to the AC based on the first IP address.
[0007] According to a second aspect of the embodiments of this specification, a method for an AP to access an AC is provided, the method comprising: broadcasting an address acquisition request; if an address allocation message sent by a switch is received, the address allocation message including an IP address allocated to the AP by a DHCP server, then performing an access to the AC operation based on the IP address.
[0008] According to a third aspect of the embodiments of this specification, a method for accessing an Access Point (AP) to an Access Control Center (AC) is provided. The method includes: receiving an address acquisition request sent by a switch, the address acquisition request being used to request the allocation of an IP address for the AP; allocating an IP address for the AP according to the address acquisition request; and sending an address allocation message to the switch, the address allocation message including the IP address allocated to the AP.
[0009] According to a fourth aspect of the embodiments of this specification, an apparatus for accessing an Access Point (AP) to an Access Control Center (AC) is provided, comprising: a first address acquisition request receiving module, configured to receive a first address acquisition request broadcast by a first AP; a first unicast module, configured to send the first address acquisition request to a DHCP server in unicast form according to a DHCP server address obtained from a second AP, wherein the second AP has obtained an IP address through the DHCP server; a first address allocation message receiving module, configured to receive a first address allocation message sent by the DHCP server in response to the first address acquisition request, wherein the first address allocation message includes the first IP address; and a first address allocation message forwarding module, configured to send the first address allocation message to the first AP, so that the first AP performs an access operation to the AC according to the first IP address.
[0010] According to a fifth aspect of the embodiments of this specification, an apparatus for accessing an Access Point (AP) to an Access Control Center (AC) is provided, comprising: an address acquisition request broadcast module for broadcasting an address acquisition request; and a first access module for performing an access operation to the AC based on the IP address received from an address allocation message sent by a switch, wherein the address allocation message includes an IP address allocated to the AP by a DHCP server.
[0011] According to a sixth aspect of the embodiments of this specification, an apparatus for accessing an Access Point (AP) to an Access Control Center (AC) is provided, comprising: an address acquisition request receiving module, configured to receive an address acquisition request sent by a switch, the address acquisition request being used to request the allocation of an IP address for the AP; an allocation module, configured to allocate an IP address for the AP according to the address acquisition request; and an address allocation message sending module, configured to send an address allocation message to the switch, the address allocation message including the IP address allocated to the AP.
[0012] According to a seventh aspect of the embodiments of this specification, an electronic device is provided, comprising: processor; Memory used to store processor-executable instructions; The processor is configured to execute the AP access AC method according to the first aspect, the second aspect, the third aspect, or any corresponding embodiment thereof.
[0013] According to an eighth aspect of the embodiments of this specification, a computer-readable storage medium is provided, the computer-readable storage medium storing computer instructions, the computer instructions being configured to cause a computer to perform the AP access AC method of the first aspect, the second aspect, the third aspect or any corresponding embodiment thereof described above.
[0014] The technical solutions provided in the embodiments of this specification may include the following beneficial effects: In this embodiment of the specification, by obtaining the DHCP server address from the AP that has already obtained an IP address through the DHCP server, and sending the address acquisition requests of other APs to the DHCP server in the form of unicast according to the DHCP server address, the number of broadcasts in the process of APs obtaining IP addresses can be reduced, the generation of broadcast storms can be avoided, and the concurrency of the DHCP server can be reduced.
[0015] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this specification. Attached Figure Description
[0016] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this specification and, together with the description, serve to explain the principles of this specification.
[0017] Figure 1 This is a schematic diagram of a system architecture illustrated in this specification according to an exemplary embodiment.
[0018] Figure 2 This is a flowchart illustrating a method for an AP to access an AC according to an exemplary embodiment.
[0019] Figure 3 This is a flowchart illustrating an AP access AC method according to another exemplary embodiment of this specification.
[0020] Figure 4 This is a hardware structure diagram of a computer device containing the AP access AC device in the embodiments of this specification.
[0021] Figure 5 This is a block diagram illustrating an AP access AC device according to an exemplary embodiment of this specification.
[0022] Figure 6This is a block diagram illustrating another AP access AC device according to an exemplary embodiment of this specification.
[0023] Figure 7 This is a block diagram illustrating another AP access AC device according to an exemplary embodiment of this specification. Detailed Implementation
[0024] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this specification. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this specification as detailed in the appended claims.
[0025] The terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to be limiting of this specification. The singular forms “a,” “the,” and “the” as used in this specification and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as used herein refers to and includes any and all possible combinations of one or more of the associated listed items.
[0026] It should be understood that although the terms first, second, third, etc., may be used in this specification to describe various information, this information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another. For example, without departing from the scope of this specification, first information may also be referred to as second information, and similarly, second information may also be referred to as first information. Depending on the context, the word "if" as used herein may be interpreted as "when," "when," or "in response to determination."
[0027] The embodiments described in this specification will now be described in detail.
[0028] The following combination Figure 1 The system architecture of the method and apparatus for accessing an AC using an AP, as described in the embodiments of this specification, will be explained. It should be noted that... Figure 1 The examples shown are merely examples of system architectures that can be applied to the embodiments of this specification, in order to help those skilled in the art understand the technical content of this specification, but do not mean that the embodiments of this specification cannot be used in other devices, systems, environments or scenarios.
[0029] Figure 1 This is a schematic diagram of a system architecture illustrated in this specification according to an exemplary embodiment.
[0030] like Figure 1As shown, the system architecture may include, for example, an AC (Access Controller), an AP (Access Point), and a switch.
[0031] AC can be responsible for the centralized configuration, monitoring and management of multiple APs.
[0032] An access point (AP) is a terminal access device for a wireless network, providing wireless coverage and allowing users to connect to the network. APs include, but are not limited to, Fit APs (thin APs).
[0033] Switches may include, for example, core switches and access switches.
[0034] Core switches reside in the network core layer and are used for high-speed data exchange and routing decisions, connecting aggregation layer devices (such as access switches) and the server area. Core switches can also act as DHCP (Dynamic Host Configuration Protocol) servers, assigning IP addresses and related network configuration parameters to access points (APs).
[0035] Access switches, as network edge devices, can directly connect to end users (such as computers, IP phones, or access points), provide physical port access, perform initial isolation of user traffic based on VLANs, and aggregate traffic to the core switch via uplink. Access switches include, but are not limited to, PoE (Power Over Ethernet) switches.
[0036] It should be noted that this system architecture is suitable for various IP network environments and multiple network topologies. It can be used in traditional copper cable access and wireless access scenarios, as well as fiber optic access scenarios, including FTTR (Fiber to the Room) all-optical access networks.
[0037] The method for AP accessing AC provided in the embodiments of this specification will be described in detail below. For example... Figure 2 As shown, Figure 2 This is a flowchart illustrating an AP accessing an AC according to an exemplary embodiment of this specification. The AP accessing an AC method provided in the embodiments of this specification may include the following steps.
[0038] In step 210, the first AP broadcasts a request to obtain the first address.
[0039] According to embodiments of this specification, a first address acquisition request can be used to request an IP address. The first address acquisition request can, for example, be based on the DHCP protocol.
[0040] In step 220, after the switch receives the first address acquisition request broadcast by the first AP, it sends the first address acquisition request to the DHCP server in unicast form according to the DHCP server address obtained from the second AP.
[0041] According to the embodiments in this specification, the second AP is an AP that has already obtained an IP address through a DHCP server. The second AP can also obtain the IP address of the DHCP server, i.e., the DHCP server address, when obtaining its IP address.
[0042] According to embodiments of this specification, the switch may, for example, encapsulate the first address acquisition request into a unicast format and then send it to a DHCP server to request the DHCP server to assign an IP address to the first AP.
[0043] In step 230, after the DHCP server receives the first address acquisition request sent by the switch, it assigns a first IP address to the first AP according to the first address acquisition request.
[0044] In step 240, the DHCP server sends the first IP address to the switch.
[0045] In step 250, after the switch receives the first IP address sent by the DHCP server in response to the first address acquisition request, it sends the first IP address to the first AP.
[0046] In step 260, after the first AP receives the first IP address sent by the switch, it performs the access AC operation based on the first IP address.
[0047] According to the embodiments in this specification, the first AP can, for example, initiate the CAPWAP protocol discovery mechanism based on the first IP address, and send a Discovery Request in unicast or broadcast form to attempt to associate with the AC. After receiving the Discovery Request sent by the AP, the AC sends a Discover Response to the AP via unicast. The AP can determine whether to establish a session with the AC through the Discover Response, and complete the online connection by accessing the AC.
[0048] According to the embodiments of this specification, by obtaining the DHCP server address from the AP that has already obtained an IP address through the DHCP server, and sending the address acquisition requests of other APs to the DHCP server in the form of unicast based on the DHCP server address, the number of broadcasts in the process of APs obtaining IP addresses can be reduced, the generation of broadcast storms can be avoided, and the concurrency of the DHCP server can be reduced.
[0049] Optionally, the switch can encapsulate the first address acquisition request into a unicast target address acquisition request, which may include the content of the first address acquisition request and the expected number of access APs. Then, based on the DHCP server address, the switch sends the target address acquisition request to the DHCP server. The target address acquisition request may, for example, be based on the DHCP protocol.
[0050] If the DHCP server receives a target address acquisition request that includes the expected number of access points (APs), after the original IP address has already been sent to the switch, it can reserve multiple IP addresses within the address range corresponding to the original IP address, based on the expected number of APs. The address range corresponding to the original IP address may, for example, include IP addresses adjacent to the original IP address. The original IP address could, for example, be the second IP address of the second AP. Therefore, when assigning an IP address to the first AP, the DHCP server can allocate an IP address from the multiple reserved IP addresses.
[0051] Understandably, in addition to the content of the initial address retrieval request and the expected number of access points, the target address retrieval request may also include other data, such as the switch's MAC address. The DHCP server can then reply to the switch with an address allocation message based on the switch's MAC address.
[0052] According to the embodiments in this specification, the DHCP server reserves adjacent IP addresses for the APs under the switch based on the expected number of APs connected to the switch. Adjacent IPs help to aggregate routing entries, reduce the size of the routing table, speed up forwarding, and also help the AC manage APs more efficiently.
[0053] like Figure 3 The diagram shown is a flowchart illustrating a method for an AP to access an AC according to another exemplary embodiment. This embodiment describes a process for a second AP to access an AC, based on the foregoing embodiments, including the following steps: In step 310, the second AP broadcasts a request to obtain the second address.
[0054] According to embodiments of this specification, a second address acquisition request can be used to request an IP address. The second address acquisition request can, for example, be based on the DHCP protocol.
[0055] In step 320, after the switch receives the second address acquisition request broadcast by the second AP, it broadcasts the second address acquisition request.
[0056] According to embodiments of this specification, the switch can replicate the broadcast second address acquisition request in the upper-layer network where the DHCP server resides.
[0057] In step 330, after the DHCP server receives the second address acquisition request sent by the switch, it assigns a second IP address to the second AP according to the second address acquisition request.
[0058] In step 340, the DHCP server sends a second IP address to the switch.
[0059] In step 350, after the switch receives the second IP address sent by the DHCP server in response to the second address acquisition request, it sends the second IP address to the second AP.
[0060] In step 360, after the second AP receives the second IP address sent by the switch, it performs the access AC operation based on the second IP address.
[0061] According to the embodiments in this specification, the second AP performs the access AC operation based on the second IP address. For example, the first AP performs the access AC operation based on the first IP address, which will not be described again here.
[0062] In step 370, the switch sends a DHCP server address acquisition request to the second AP.
[0063] According to embodiments of this specification, a DHCP server address acquisition request may be based on an LLDP (Link Layer Discovery Protocol) message. The DHCP server address acquisition request may include a custom TLV (Type-Length-Value) format field for requesting the IP address of the DHCP server.
[0064] In step 380, after the second AP receives the DHCP server address acquisition request sent by the switch, it sends the DHCP server address to the switch according to the DHCP server address acquisition request.
[0065] According to embodiments of this specification, the AP can, for example, send the IP address of the DHCP server to the switch via an LLDP message. The LLDP message may include a custom TLV field for carrying the IP address of the DHCP server.
[0066] According to the embodiments in this specification, after the switch obtains the IP address of the DHCP server, when other APs come online subsequently, it can send the address acquisition requests of other APs to the DHCP server in a unicast manner based on the DHCP server address, thereby reducing the number of broadcasts.
[0067] Optionally, after connecting to the AC, the AP can send the AC's IP address to the switch. Based on this, the switch can send the AC's IP address to the AP to be connected. Upon receiving the AC's IP address, the AP can perform the connection operation based on the AC's IP address. For example, the AP can directly initiate a unicast connection request to the AC's IP address to connect to the AC. Exemplarily, the AP can inform the switch of the AC's IP address via an LLDP message, which may include a custom TLV field to carry the AC's IP address.
[0068] According to the embodiments in this specification, when the AP cannot connect to the network using a static IP address or an IP address specified by the DHCP server, it can connect using the AC's IP address, which has a higher success rate. Additionally, it can reduce the number of broadcasts and avoid broadcast storms.
[0069] Based on the aforementioned embodiments, the following describes a method for AP to access AC in conjunction with another embodiment.
[0070] According to the embodiments in this specification, when the first AP is connected to a switch, the AP is initially configured without an IP address. Upon startup, it broadcasts a DHCP message to obtain an IP address. When the switch receives this broadcast DHCP message, it directly copies the broadcast. The DHCP server for the corresponding VLAN (Virtual Local Area Network), upon receiving the broadcast DHCP message from the switch, assigns an IP address to the first AP and then sends it to the AP via the switch. After the first AP obtains its IP address, the switch queries the AP for the DHCP server's IP address using an LLDP message. This LLDP message contains a custom TLV format field used to request the DHCP server's IP address. The AP replies to the switch using an LLDP message, which also contains a custom TLV field carrying the DHCP server's IP address. Thus, the switch learns the IP address of the DHCP server for that VLAN.
[0071] When other APs subsequently connect, they broadcast DHCP messages. The switch no longer copies the broadcast; instead, it uses a unicast encapsulation format to send a DHCP request message to the previously obtained DHCP server address to obtain an IP address. The custom field in this DHCP message carries the current switch's MAC address and the expected number of APs to connect. The expected number of APs can, for example, equal the number of remaining interfaces. In this embodiment, it is assumed that the switch has 10 interfaces. Excluding the one uplink interface occupied by the previously connected AP, there are 8 remaining interfaces. Upon receiving this, the DHCP server unicasts a reply assigning an IP address to the current AP, and simultaneously reserves a reserved address closest to the previously connected AP according to the custom field carried in the broadcast. Subsequent APs will request IP addresses on behalf of the switch. After receiving the DHCP message used by the switch to request an IP address, the DHCP server assigns the previously reserved address to that AP.
[0072] Once the first AP obtains an IP address, it will initiate a connection request according to the procedure, connecting using the IP address configured by the DHCP server. If the DHCP server is not configured with an IP address or is configured incorrectly, the AP cannot connect using the IP address. In this case, the AP will initiate the connection process via broadcast, discovering the AC and establishing a connection with it. Assuming the first AP successfully connects via broadcast, it can inform the switch AC of its IP address using an LLDP message. The LLDP message can include a custom TLV field to carry the AC's IP address.
[0073] Once other access points (APs) have obtained IP addresses, the switch can inform them of the AC's IP address obtained from the first AP via an LLDP message. If other APs fail to connect via static IP address or DHCP server-assigned IP address, they can connect using the AC's IP address sent by the switch; that is, the AP directly initiates a unicast connection request to the AC's IP address. This reduces the number of broadcasts and avoids broadcast storms.
[0074] The AP access AC method disclosed herein is applicable to various IP network environments and multiple network topologies. It can be used in traditional copper cable access and wireless access scenarios, as well as fiber optic access scenarios, including FTTR all-optical access networks.
[0075] Corresponding to the embodiments of the aforementioned methods, this specification also provides embodiments of an AP access AC device and the terminals used therein.
[0076] The embodiments of the AP-AC connection device described in this specification can be applied to computer equipment, such as servers or terminal devices. The device embodiments can be implemented through software, hardware, or a combination of both. Taking software implementation as an example, as a logical device, it is formed by its processor reading the corresponding computer program instructions from non-volatile memory into memory and executing them. From a hardware perspective, such as... Figure 4 The diagram shown is a hardware structure diagram of a computer device housing the AP access AC device in an embodiment of this specification, except... Figure 4 In addition to the processor 410, memory 430, network interface 420, and non-volatile memory 440 shown, the server or electronic device where the device 431 is located in the embodiment may also include other hardware depending on the actual function of the computer device, which will not be described in detail here.
[0077] like Figure 5 As shown, Figure 5 This specification is a block diagram illustrating an AP access AC device according to an exemplary embodiment, applied to a switch, the device comprising: The first address acquisition request receiving module 510 is used to receive the first address acquisition request broadcast by the first AP; The first unicast module 520 is used to send a first address acquisition request to the DHCP server in unicast form according to the DHCP server address obtained from the second AP. The second AP has already obtained an IP address through the DHCP server. The first address allocation message receiving module 530 is used to receive the first address allocation message sent by the DHCP server in response to the first address acquisition request. The first address allocation message includes the first IP address. The first address allocation message forwarding module 540 is used to send the first address allocation message to the first AP so that the first AP can perform the access AC operation according to the first IP address.
[0078] Optionally, the device may further include: The AC address receiving module is used to receive the AC's IP address sent by the third AP, which has already connected to the AC via broadcast. The AC address forwarding module is used to send the AC's IP address to the first AP, so that the first AP can perform the access operation of the AC based on the AC's IP address.
[0079] Optionally, the device may further include: The second address acquisition request receiving module is used to receive the second address acquisition request broadcast by the second AP before sending the first address acquisition request to the DHCP server in the form of unicast according to the DHCP server address obtained from the second AP. The second address acquisition request broadcast module is used to broadcast second address acquisition requests. The second address allocation response receiving module is used to receive the second address allocation message sent by the DHCP server in response to the second address acquisition request. The second address allocation message includes the IP address of the DHCP server and the second IP address to be allocated to the second AP. The second address allocation message forwarding module is used to send the second address allocation message to the second AP; The DHCP server address acquisition request sending module is used to send a DHCP server address acquisition request to the second AP; The DHCP server address receiving module is used to receive the DHCP server address sent by the second AP.
[0080] Optionally, the first unicast module includes: The encapsulation submodule is used to encapsulate the first address acquisition request into a unicast format target address acquisition request, which includes the expected number of access APs. The target address acquisition request sending submodule is used to send a target address acquisition request to the DHCP server based on the DHCP server address.
[0081] Accordingly, this specification also provides an electronic device including a processor; a memory for storing processor-executable instructions; wherein the processor is configured to: receive a first address acquisition request broadcast by a first AP; send the first address acquisition request to a DHCP server in unicast form according to a DHCP server address obtained from a second AP, the second AP having already obtained an IP address through the DHCP server; receive a first address allocation message sent by the DHCP server in response to the first address acquisition request, the first address allocation message including a first IP address; and send the first address allocation message to the first AP, so that the first AP performs an access AC operation according to the first IP address.
[0082] like Figure 6 As shown, Figure 6 This is a block diagram illustrating another device for accessing an AC via an AP according to an exemplary embodiment, applicable to an AP, the device comprising: Address acquisition request broadcast module 610 is used to broadcast address acquisition requests; The first access module 620 is used to perform access AC operation based on the IP address if it receives an address allocation message sent by the switch, the address allocation message including the IP address allocated by the DHCP server to the AP.
[0083] Optionally, the address allocation message may also include an IP address for the DHCP server, and the device may further include: The DHCP server address acquisition request receiving module is used to receive DHCP server address acquisition requests sent by the switch. The DHCP server address sending module is used to send the IP address of the DHCP server to the switch based on the DHCP server address acquisition request.
[0084] Optionally, the device may further include: The second access module is used to perform the access AC operation based on the AC's IP address if it receives the AC's IP address sent by the switch. The AC address sending module is used to send the AC's IP address to the switch after the AC is connected.
[0085] Accordingly, this specification also provides an electronic device including a processor; a memory for storing processor-executable instructions; wherein the processor is configured to: broadcast an address acquisition request; and if it receives an address allocation message sent by a switch, the address allocation message including an IP address assigned to the AP by a DHCP server, then perform an access AC operation based on the IP address.
[0086] like Figure 7 As shown, Figure 7 This is a block diagram illustrating another AP access AC device according to an exemplary embodiment of this specification, which can be applied to a DHCP server. The device includes: Address acquisition request receiving module 710 is used to receive address acquisition requests sent by the switch. The address acquisition request is used to request the allocation of an IP address for the AP. The allocation module 720 is used to allocate IP addresses to APs based on address acquisition requests; Address allocation message sending module 730 is used to send address allocation messages to the switch. The address allocation message includes the IP address to be assigned to the AP.
[0087] Optionally, the device may further include: The reservation module is used to reserve multiple IP addresses within the address range corresponding to the original IP address, based on the expected number of APs, when the original IP address has already been sent to the switch and the address acquisition request includes the expected number of APs to be accessed. The allocation module includes: The reserved allocation submodule is used to allocate IP addresses to the AP from a pool of reserved IP addresses.
[0088] Accordingly, this specification also provides an electronic device including a processor; a memory for storing processor-executable instructions; wherein the processor is configured to: receive an address acquisition request sent by a switch, the address acquisition request being used to request the allocation of an IP address for an AP; allocate an IP address for the AP according to the address acquisition request; and send an address allocation message to the switch, the address allocation message including the IP address allocated to the AP.
[0089] According to the embodiments of this specification, by obtaining the DHCP server address from the AP that has already obtained an IP address through the DHCP server, and sending the address acquisition requests of other APs to the DHCP server in the form of unicast based on the DHCP server address, the number of broadcasts in the process of APs obtaining IP addresses can be reduced, the generation of broadcast storms can be avoided, and the workload of the DHCP server can be reduced.
[0090] The AP access AC device disclosed herein is suitable for various IP network environments and multiple network topologies. It can be used in traditional copper cable access and wireless access scenarios, as well as fiber optic access scenarios, including FTTR all-optical access networks.
[0091] The specific implementation process of the functions and roles of each module in the above device can be found in the implementation process of the corresponding steps in the above method, and will not be repeated here.
[0092] For the device embodiments, since they basically correspond to the method embodiments, the relevant parts can be referred to in the description of the method embodiments. The device embodiments described above are merely illustrative. The modules described as separate components may or may not be physically separate, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed across multiple network modules. Some or all of the modules can be selected to achieve the purpose of the solution in this specification according to actual needs. Those skilled in the art can understand and implement this without creative effort.
[0093] The foregoing has described specific embodiments of this specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims may be performed in a different order than that shown in the embodiments and may still achieve the desired result. Furthermore, the processes depicted in the drawings do not necessarily require the specific or sequential order shown to achieve the desired result. In some embodiments, multitasking and parallel processing are possible or may be advantageous.
[0094] Other embodiments of this specification will readily occur to those skilled in the art upon consideration of the specification and practice of the invention claimed herein. This specification is intended to cover any variations, uses, or adaptations that follow the general principles of this specification and include common knowledge or customary techniques in the art not claimed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this specification are indicated by the following claims.
[0095] It should be understood that this specification is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this specification is limited only by the appended claims.
[0096] The above description is merely a preferred embodiment of this specification and is not intended to limit this specification. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this specification should be included within the scope of protection of this specification.
Claims
1. A method for AP to access AC, applied to a switch, characterized in that, The method includes: Receive the first address acquisition request broadcast by the first AP; Based on the DHCP server address obtained from the second AP, the first address acquisition request is sent to the DHCP server in unicast form, and the second AP has already obtained an IP address through the DHCP server; Receive a first address allocation message sent by the DHCP server in response to the first address acquisition request, wherein the first address allocation message includes the first IP address; The first address allocation message is sent to the first AP so that the first AP can perform the access AC operation based on the first IP address.
2. The method according to claim 1, characterized in that, The method further includes: Receive the IP address of the AC sent by the third AP, which has already connected to the AC via broadcast. The IP address of the AC is sent to the first AP, so that the first AP can perform the access operation of the AC based on the IP address of the AC.
3. The method according to claim 1, characterized in that, Before sending the first address acquisition request to the DHCP server in a unicast manner based on the DHCP server address obtained from the second AP, the method further includes: Receive the second address acquisition request broadcast by the second AP; Broadcast the request to obtain the second address; Receive a second address allocation message sent by the DHCP server in response to the second address acquisition request, the second address allocation message including the DHCP server address and the allocation of a second IP address for the second AP; Send the second address allocation message to the second AP; Send a DHCP server address acquisition request to the second AP; Receive the DHCP server address sent by the second AP.
4. The method according to claim 1, characterized in that, The step of sending the first address acquisition request to the DHCP server in unicast form based on the DHCP server address obtained from the second AP includes: The first address acquisition request is encapsulated into a target address acquisition request in unicast format, wherein the target address acquisition request includes the expected number of access APs; Based on the DHCP server address, send the target address acquisition request to the DHCP server.
5. A method for AP to connect to AC, applied to AP, characterized in that, The method includes: Broadcast address retrieval request; If an address allocation message is received from the switch, and the address allocation message includes the IP address assigned to the AP by the DHCP server, then the access AC operation is performed based on the IP address.
6. The method according to claim 5, characterized in that, The address allocation message also includes the DHCP server address, and the method further includes: Receive DHCP server address acquisition requests sent by the switch; Based on the DHCP server address acquisition request, the DHCP server address is sent to the switch.
7. The method according to claim 5, characterized in that, The method further includes: If the switch receives the IP address of the AC, then the access AC operation is performed based on the IP address of the AC. After connecting to the AC, the IP address of the AC is sent to the switch.
8. A method for AP to access AC, applied to a DHCP server, characterized in that, The method includes: Receive an address acquisition request sent by the switch, the address acquisition request being used to request the allocation of an IP address for the AP; Assign an IP address to the AP based on the address acquisition request; Send an address allocation message to the switch, the address allocation message including the IP address to be allocated to the AP.
9. The method according to claim 8, characterized in that, The method further includes: If the original IP address has been sent to the switch and the address acquisition request includes the expected number of access APs, then multiple IP addresses are reserved within the address range corresponding to the original IP address based on the expected number of access APs. The step of allocating an IP address to the AP based on the address acquisition request includes: An IP address is assigned to the AP from among the multiple reserved IP addresses.
10. A device for accessing an Access Point (AP) to an Access Control Center (AC), applied to a switch, characterized in that: The device includes: The first address acquisition request receiving module is used to receive the first address acquisition request broadcast by the first AP. The first unicast module is used to send the first address acquisition request to the DHCP server in unicast form according to the DHCP server address obtained from the second AP, wherein the second AP has obtained an IP address through the DHCP server; The first address allocation message receiving module is used to receive the first address allocation message sent by the DHCP server in response to the first address acquisition request, wherein the first address allocation message includes the first IP address. The first address allocation message forwarding module is used to send the first address allocation message to the first AP, so that the first AP can perform the access AC operation according to the first IP address.
11. A device for connecting an AP to an AC, applied to an AP, characterized in that, The device includes: The address retrieval request broadcast module is used to broadcast address retrieval requests; The first access module is configured to, upon receiving an address allocation message sent by a switch, wherein the address allocation message includes an IP address allocated to the AP by a DHCP server, perform an access AC operation based on the IP address.
12. A device for accessing an Access Point (AP) to an Access Control Center (AC), applied to a DHCP server, characterized in that, The device includes: The address acquisition request receiving module is used to receive address acquisition requests sent by the switch, wherein the address acquisition request is used to request the allocation of an IP address for the AP; The allocation module is used to allocate an IP address to the AP based on the address acquisition request; The address allocation message sending module is used to send address allocation messages to the switch, the address allocation message including the IP address allocated to the AP.
13. An electronic device, characterized in that, The electronic device includes: processor; Memory used to store processor-executable instructions; The processor is configured to perform the AP access AC method according to any one of claims 1 to 9.
14. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions for causing the computer to perform the method of AP accessing AC as described in any one of claims 1 to 9.