WO2015149635A1 - Address resource releasing method, apparatus and system - Google Patents

Address resource releasing method, apparatus and system Download PDF

Info

Publication number
WO2015149635A1
WO2015149635A1 PCT/CN2015/074760 CN2015074760W WO2015149635A1 WO 2015149635 A1 WO2015149635 A1 WO 2015149635A1 CN 2015074760 W CN2015074760 W CN 2015074760W WO 2015149635 A1 WO2015149635 A1 WO 2015149635A1
Authority
WO
WIPO (PCT)
Prior art keywords
user equipment
access point
wireless access
dynamic host
host configuration
Prior art date
Application number
PCT/CN2015/074760
Other languages
French (fr)
Chinese (zh)
Inventor
张长丰
徐亦斌
张印熙
张帅
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2015149635A1 publication Critical patent/WO2015149635A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • H04L61/5014Internet protocol [IP] addresses using dynamic host configuration protocol [DHCP] or bootstrap protocol [BOOTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/618Details of network addresses
    • H04L2101/622Layer-2 addresses, e.g. medium access control [MAC] addresses

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a method, device, and system for releasing an address resource.
  • the Dynamic Host Configuration Protocol (DHCP) packet can be sent to the DHCP server in two ways. One is local forwarding and the other is centralized forwarding. . In the local forwarding, the DHCP message sent by the user equipment is directly forwarded to the DHCP server by the access point (abbreviation: AP). In the centralized forwarding, the DHCP message sent by the user equipment is sent by the wireless AP. The controller (English: controller) is then forwarded by the controller to the DHCP server.
  • AP access point
  • controller International: controller
  • the DHCP server After the user equipment is authenticated, the DHCP server allocates an Internet Protocol (IP) address to the user equipment and determines the lease duration (English: lease duration).
  • IP Internet Protocol
  • the IP address can only be used by the user equipment before the lease expires. That is, the user equipment cannot use the IP address before the lease expires, regardless of whether the user equipment uses the IP address. Since the number of IP addresses that can be assigned by the DHCP server is limited, when the IP address on the DHCP server is allocated, if a new user device is online, the user device will not get an IP address and cannot access the network, but some have already The IP address assigned to the user equipment is not actually used, but the lease of the IP address has not arrived yet, resulting in waste of IP address resources.
  • IP Internet Protocol
  • the invention discloses an address resource release method, device and system for saving address resources.
  • a first aspect of the present invention discloses a method for releasing an address resource, including:
  • the AP obtains an offline message for the user equipment, where the offline message carries the hardware address of the user equipment;
  • the AP In the case that the AP is an authenticated AP of the user equipment, the AP sends a DHCP release message to the DHCP server, where the DHCP release message includes a hardware address of the user equipment.
  • the acquiring, by the AP, the offline message for the user equipment includes:
  • the AP receives the offline message sent by the user equipment.
  • the method further includes:
  • the AP receives a determination result sent by the controller.
  • the acquiring, by the AP, the offline message for the user equipment includes:
  • the AP receives the offline message sent by the controller for the user equipment, and the offline message also carries the reason for the offline of the user equipment;
  • the method further includes:
  • the AP determines, according to the offline reason of the user equipment, whether the AP is an authentication AP of the user equipment.
  • the method further includes:
  • the AP sends a DHCP release message generation request to the controller, where the DHCP release message generation request instructs the controller to send indication information to the user.
  • the authentication AP of the device sends a DHCP release message to the DHCP server by the authentication AP that triggers the user equipment, where the indication information includes the hardware address of the user equipment.
  • a second aspect of the present invention discloses an AP, including:
  • An obtaining unit configured to acquire an offline message for the user equipment, where the offline message carries a hardware address of the user equipment;
  • a sending unit configured to send a DHCP release message to the DHCP server, where the AP is an authentication AP of the user equipment, where the DHCP release message includes a hardware address of the user equipment.
  • the acquiring unit is specifically configured to receive a offline message sent by the user equipment
  • the sending unit is further configured to send a roaming information acquisition request for the user equipment to the controller, to trigger the controller to determine whether the AP is an authentication AP of the user equipment;
  • the obtaining unit is further configured to receive a determination result sent by the controller, and when the determining result is that the AP is an authentication AP of the user equipment, triggering, by the sending unit, performing the dynamic host configuration
  • the protocol server sends a dynamic host configuration protocol to release the message.
  • the acquiring unit is specifically configured to receive, by the controller, an offline message for the user equipment, where the offline message is further carried There is a reason for the user equipment to go offline;
  • the AP further includes:
  • a determining unit configured to determine, according to the offline reason of the user equipment acquired by the acquiring unit, whether the AP is an authentication AP of the user equipment, and when the determining result of the determining unit is yes, triggering the sending
  • the unit performs the step of sending a dynamic host configuration protocol release message to the dynamic host configuration protocol server.
  • the sending unit is further used And sending, in the case that the AP is not an authentication AP of the user equipment, a DHCP release message generation request to the controller, where the DHCP release message generation request instructs the controller to send indication information to the user equipment.
  • the authentication AP sends a DHCP release message to the DHCP server, and the indication information includes a hardware address of the user equipment.
  • a third aspect of the present invention discloses an address resource release system, including an AP and a DHCP server, wherein:
  • the AP is configured to obtain a downlink message for the user equipment, and if the AP is an authentication AP of the user equipment, send a DHCP release message to the DHCP server, where the offline message carries a hardware address of the user equipment, where the DHCP release message includes a hardware address of the user equipment;
  • the DHCP server is configured to receive the DHCP release message sent by the AP, and release an association between the IP address of the user equipment and the user equipment according to the DHCP release message.
  • the system further includes a controller and an authentication AP of the user equipment, where:
  • the AP is further configured to send a DHCP release message generation request to the controller.
  • the controller is configured to receive the DHCP release packet generation request sent by the AP, and send an indication information to the authentication AP of the user equipment according to the DHCP release packet generation request, where the indication information carries The hardware address of the user equipment;
  • the authentication AP of the user equipment is configured to receive the indication information sent by the controller, and send a DHCP release message to the DHCP server.
  • the DHCP server is further configured to receive the DHCP release message sent by the authentication AP of the user equipment.
  • the AP determines whether the AP is the authentication AP of the user equipment. If the AP is the authentication AP of the user equipment, the AP generates and sends a DHCP release message to the DHCP server. The triggering DHCP server releases the association between the IP address of the user equipment and the user equipment. In the embodiment of the present invention, after the user equipment goes offline, the DHCP server will release the IP address assigned to the user equipment, and the IP address becomes an unassigned IP address. When a new user equipment applies for an IP address, the DHCP server will This IP address is assigned to the new user equipment, so address resources can be saved.
  • FIG. 1 is a flowchart of a method for releasing an address resource according to an embodiment of the present invention
  • FIG. 2 is a flowchart of another address resource release method according to an embodiment of the present invention.
  • FIG. 3 is a structural diagram of an AP according to an embodiment of the present invention.
  • FIG. 4 is a structural diagram of another AP disclosed in an embodiment of the present invention.
  • FIG. 5 is a structural diagram of an address resource release system according to an embodiment of the present invention.
  • the invention discloses an address resource release method, device and system for saving address resources. The details are described below separately.
  • FIG. 1 is a flowchart of a method for releasing an address resource according to an embodiment of the present invention. As shown in FIG. 1, the address resource release method may include the following steps.
  • the AP acquires an offline message for the user equipment, where the offline message carries a hardware address of the user equipment.
  • the user equipment's offline message is sent by the user equipment to the AP.
  • the administrator lets the user equipment go offline and the user equipment costs are completed, the user equipment's offline message is sent by the controller. Give the AP.
  • the offline message sent to the AP carries the hardware address of the user equipment.
  • the hardware address of the user equipment is medium access control (English: media) Access control, abbreviation: MAC) address.
  • the AP In the case that the AP is an authentication AP of the user equipment, the AP sends a DHCP release message to the DHCP server, so that the DHCP server is configured to release the association between the IP address of the user equipment and the user equipment, where the DHCP release message includes the user.
  • the hardware address of the device In the case that the AP is an authentication AP of the user equipment, the AP sends a DHCP release message to the DHCP server, so that the DHCP server is configured to release the association between the IP address of the user equipment and the user equipment, where the DHCP release message includes the user.
  • the hardware address of the device In the case that the AP is an authentication AP of the user equipment, the AP sends a DHCP release message to the DHCP server, so that the DHCP server is configured to release the association between the IP address of the user equipment and the user equipment, where the DHCP release message includes the user.
  • the hardware address of the device In the case that the AP is
  • the AP determines whether the AP and the authentication AP of the user equipment are the same AP. If the AP is an authenticated AP of the user equipment, it indicates that the user equipment does not roam after the online authentication.
  • the user equipment accesses the network through the AP.
  • the AP generates a DHCP release (English: DHCP RELEASE) packet and releases the DHCP.
  • the packet is sent to the DHCP server to trigger the DHCP server to release the association between the IP address of the user equipment and the user equipment according to the DHCP release message of the user equipment.
  • the AP if the AP is not the authentication AP of the user equipment, it indicates that the user equipment roams from the authentication AP of the user equipment to the AP after the user equipment is authenticated, the AP sends a DHCP release message generation request to the controller, and the controller sends the indication information to the controller.
  • the authentication AP of the user equipment generates a DHCP release message by the authentication AP that triggers the user equipment, and the authentication AP of the user equipment sends the DHCP release message to the DHCP server.
  • the indication information includes the hardware address of the user equipment, and the authentication AP of the user equipment carries the hardware address of the user equipment in the DHCP release message sent by the user equipment according to the hardware address of the user equipment.
  • the AP sends a DHCP release message to the DHCP server to trigger the DHCP server to release the AP when the AP is the authentication AP of the user equipment.
  • the association between the IP address of the user device and the user device In the embodiment of the present invention, after the user equipment goes offline, the DHCP server will release the IP address assigned to the user equipment, and the IP address becomes an unassigned IP address. When a new user equipment applies for an IP address, the DHCP server will This IP address is assigned to the new user equipment, so address resources can be saved.
  • FIG. 2 is a flowchart of another address resource release method according to an embodiment of the present invention. As shown in FIG. 2, the address resource release method may include the following steps.
  • the AP forwards the IP address of the user equipment to the DHCP server to trigger the DHCP server to allocate an IP address to the user equipment.
  • the IP address acquisition request carries the hardware address of the user equipment.
  • the AP when the AP receives the authentication request sent by the user equipment, it indicates that the user equipment needs to access the network, and therefore sends an IP address acquisition request to the DHCP server to trigger the DHCP server to allocate an IP address to the user equipment, and allocate the IP address.
  • the address is sent to the AP.
  • the IP address acquisition request carries the hardware address of the user equipment, so that the DHCP server allocates an IP address to the user equipment.
  • the AP obtains an IP address allocated by the DHCP server for the user equipment, and generates a DHCP entry of the user equipment.
  • the AP After forwarding the IP address acquisition request to the DHCP server, the AP receives an IP address allocation response sent by the DHCP server, where the IP address allocation response includes the IP address of the user equipment. The AP then generates a DHCP entry for the user equipment.
  • the DHCP entry of the user equipment includes the mapping between the IP address of the user equipment and the hardware address.
  • the AP acquires an offline message for the user equipment, where the offline message carries a hardware address of the user equipment.
  • the AP acquiring the offline message for the user equipment may be an offline message sent by the AP to the user equipment, where the offline message carries the hardware address of the user equipment, or may be sent by the AP receiving controller.
  • the offline message carries the hardware address of the user equipment and the reason for the user equipment going offline.
  • the user equipment's offline message is sent by the user equipment to the AP; when the administrator lets the user equipment go offline, the user equipment's cost is completed, and so on, the user equipment's offline message It is sent to the AP by the controller.
  • the DHCP release packet may pass through other devices during the process of sending the DHCP release packet to the DHCP server. If DHCP snooping is used on these devices, DHCP snooping monitors whether the port that sends the DHCP release packet is the same as the port in the DHCP snooping table. If the packets are inconsistent, the packet is invalid. Message. Therefore, in order to make the forwarding path of the DHCP release packet consistent with the path of the DHCP packet in the IP address allocation process, the AP needs to determine whether the AP is the authentication AP of the user equipment after receiving the offline message sent by the user equipment.
  • the AP may determine whether the AP is the authentication AP of the user equipment, and may include the following steps.
  • A1 The AP sends a roaming information acquisition request to the user equipment to trigger the controller to determine whether the AP is an authentication AP of the user equipment, and sends the judgment result to the AP.
  • the offline message is sent by the user equipment to the AP. If the AP does not store information about whether the AP is the authentication AP of the user equipment, the AP sends a roaming information acquisition request to the controller to trigger the controller to determine whether the AP determines whether the AP is It is the authentication AP of the user equipment and sends the judgment result to the AP.
  • the AP receives the judgment result sent by the controller.
  • the AP After sending the roaming information acquisition request for the user equipment to the controller, the AP receives the judgment result sent by the controller, and identifies whether the judgment result is that the AP is the authentication AP of the user equipment.
  • the AP determines whether the AP is the authentication AP of the user equipment according to the offline reason of the user equipment.
  • the offline message when the offline message is sent by the controller to the AP, the offline message carries the reason for the downlink of the user equipment.
  • the downlink of the user equipment includes the direct offline and the roaming offline.
  • the direct offline is that the user equipment accesses the network through the AP from the authentication to the offline.
  • the AP is the authentication AP of the user equipment.
  • the authentication AP authenticates, and the user equipment does not access the network through the authentication AP but the AP accesses the network, that is, the user equipment roams from the authentication AP to the AP. Therefore, whether the AP is an authenticated AP of the user equipment can be determined according to the reason for the downlink of the user equipment.
  • the AP is the user equipment authentication in the same manner as the AP receives the offline message sent by the user equipment. AP.
  • the AP sends a DHCP release message to the DHCP server to trigger the DHCP server to release the association between the IP address of the user equipment and the user equipment.
  • the DHCP release message includes the user equipment. Hardware address.
  • the AP If the AP is an authenticated AP of the user equipment, it indicates that the user equipment does not roam after the online authentication.
  • the user equipment accesses the network through the AP.
  • the AP generates a DHCP release (English: DHCP RELEASE) packet and releases the DHCP.
  • the packet is sent to the DHCP server to trigger the DHCP server to release the association between the IP address of the user equipment and the user equipment according to the DHCP release message of the user equipment.
  • the AP if the AP is not the authentication AP of the user equipment, the AP sends a DHCP release message generation request to the controller, and the controller sends the indication information to the authentication AP of the user equipment to trigger the authentication AP of the user equipment.
  • a DHCP release message is generated, and the DHCP release message is sent by the authentication AP of the user equipment to the DHCP server.
  • the indication information includes the hardware address of the user equipment.
  • the AP if the AP is not the authentication AP of the user equipment, it indicates that the user equipment is authenticated to the DHCP relay agent after the user equipment is authenticated and the DHCP relay packet is not discarded.
  • the AP cannot directly send a DHCP release packet to the authentication device of the user equipment. Therefore, the AP sends a DHCP release packet generation request to the controller.
  • the controller sends the indication information to the user equipment according to the DHCP release packet generation request.
  • the authentication AP is configured to trigger the authentication of the user equipment to generate a DHCP release message, and the authentication AP of the user equipment sends the DHCP release message to the DHCP server to trigger the DHCP server to release the association between the IP address of the user equipment and the user equipment.
  • the indication information carries the hardware address of the user equipment, and the authentication AP carries the hardware address of the user equipment in the DHCP release message sent by the user equipment according to the hardware address of the user equipment in the indication information.
  • the DHCP release message is generated according to the DHCP entry of the user equipment, and the DHCP release message includes the hardware address and the IP address of the user equipment.
  • the AP clears the DHCP entry of the stored user equipment.
  • the AP forwards the IP address acquisition request of the user equipment to the DHCP server to trigger the DHCP server to allocate an IP address to the user equipment, obtain an offline message for the user equipment, and determine whether the AP is a user.
  • the authentication AP of the device sends a DHCP release message to the DHCP server to trigger the DHCP server to release the association between the IP address of the user equipment and the user equipment.
  • the DHCP server will release the IP address assigned to the user equipment, and the IP address becomes an unassigned IP address.
  • the DHCP server will This IP address is assigned to the new user equipment, so address resources can be saved.
  • FIG. 3 is a structural diagram of an AP according to an embodiment of the present invention.
  • the AP may include:
  • the obtaining unit 301 is configured to acquire a downlink message for the user equipment, where the offline message carries a hardware address of the user equipment;
  • the sending unit 302 is configured to send a DHCP release message to the DHCP server when the AP is the authentication AP of the user equipment, to trigger the DHCP server to release the association between the IP address of the user equipment and the user equipment, the DHCP release message. Includes the hardware address of the user device.
  • the obtaining unit 301 is specifically configured to receive an offline message sent by the user equipment.
  • the sending unit 302 is further configured to send a roaming information acquisition request for the user equipment to the controller, to trigger the controller to determine whether the AP is an authentication AP of the user equipment;
  • the obtaining unit 301 is further configured to receive a determination result sent by the controller.
  • the obtaining unit 301 is specifically configured to receive a downlink message sent by the controller for the user equipment, where the offline message further carries a downlink reason of the user equipment;
  • the AP can also include:
  • the determining unit is configured to determine, according to the offline reason of the user equipment acquired by the obtaining unit 301, whether the AP is an authentication AP of the user equipment.
  • the sending unit 302 is further configured to: when the AP is not the authentication AP of the user equipment, send a DHCP release message generation request to the controller, where the controller sends the indication information to the authentication AP of the user equipment.
  • the authentication AP that triggers the user equipment generates a DHCP release message
  • the authentication AP of the user equipment sends the DHCP release message to the DHCP server, where the indication information includes the hardware address of the user equipment.
  • the DHCP server releases the IP address assigned to the user equipment, and the IP address becomes an unassigned IP address.
  • the DHCP server assigns the IP address to the new user equipment, so address resources can be saved.
  • FIG. 4 is a structural diagram of another AP according to an embodiment of the present invention.
  • the AP may include a radio frequency (English: radio frequency, abbreviation: RF) module 401, a processor 402, a memory 403, and an Ethernet network interface controller 404.
  • RF module 401, processor 402, memory 403, and Ethernet network interface controller 404 may be connected by a bus.
  • the RF module 401 can support wireless communication of one or more frequency bands of 2.4 gigahertz (English: gigahertz, symbol: GHz), 3.6 GHz, 5 GHz, 60 GHz.
  • the processor 402 can be a central processing unit (English: central processing unit, abbreviated: CPU), or a combination of a CPU and a hardware chip.
  • the memory 403 may be a volatile memory (English: volatile memory), such as random access memory (English: random-access memory, abbreviation: RAM); or non-volatile memory (English: non-volatile memory), for example only Read memory (English: read-only memory, abbreviation: ROM), flash memory (English: flash memory), hard disk (English: hard disk drive, abbreviation: HDD) or solid state drive (English: solid-state drive, abbreviation: SSD); or any combination of the above types of memory.
  • a set of program codes is stored in the memory 403, and the processor 402 is configured to call the program code stored in the memory 403 to perform the following operations:
  • the DHCP release message is sent to the DHCP server, so that the DHCP server is released to release the association between the IP address of the user equipment and the user equipment, where the DHCP release message includes the hardware address of the user equipment.
  • the manner in which the processor 403 obtains the offline message for the user equipment is specifically:
  • the processor 403 After obtaining the offline message for the user equipment and sending the DHCP release message to the DHCP server, the processor 403 also performs the following operations:
  • the manner in which the processor 403 obtains the offline message for the user equipment is specifically:
  • the processor 403 After obtaining the offline message for the user equipment and sending the DHCP release message to the DHCP server, the processor 403 also performs the following operations:
  • the AP determines whether the AP is the authentication AP of the user equipment according to the offline condition of the user equipment.
  • the processor 403 further performs the following steps:
  • the AP sends a DHCP release message generation request controller, and the controller sends the indication information to the authentication AP of the user equipment to trigger the authentication AP of the user equipment to generate a DHCP release message, and
  • the DHCP release message is sent to the DHCP server by the authentication AP of the user equipment, and the indication information includes the hardware address of the user equipment.
  • the DHCP server releases the IP address assigned to the user equipment, and the IP address becomes an unassigned IP address.
  • the DHCP server assigns the IP address to the new user equipment, so address resources can be saved.
  • FIG. 5 is a structural diagram of an address resource release system according to an embodiment of the present invention.
  • the address resource release system may include an AP 501 and a DHCP server 502.
  • the structure of the AP 501 may be the same as that shown in FIG. 3 and FIG. 4, and details are not described herein. among them:
  • the AP 501 is configured to obtain a downlink message for the user equipment, and if the AP 501 is an authentication AP of the user equipment, generate and send a DHCP release message to the DHCP server 502, where the offline message carries the user equipment.
  • Hardware address, the DHCP release message includes a hardware address of the user equipment;
  • the DHCP server 502 is configured to receive the DHCP release message sent by the AP 501, and release the association between the IP address of the user equipment and the user equipment according to the DHCP release message.
  • the address resource release system may further include the controller 503 and the authentication AP 504 of the user equipment, where:
  • the AP 501 is further configured to send a DHCP release message generation request to the controller 503.
  • the controller 503 is configured to receive the DHCP release message generation request sent by the AP 501, and send the indication information to the authentication AP 504 of the user equipment, where the indication information carries the hardware address of the user equipment;
  • the authentication device AP504 of the user equipment is configured to receive the indication information sent by the controller 503, generate a DHCP release message, and send the DHCP release message to the DHCP server 502.
  • the DHCP server 502 is further configured to receive the DHCP release message sent by the authentication AP 504 of the user equipment, and release the message according to the dynamic host configuration protocol to release the association between the IP address of the user equipment and the user equipment.
  • the DHCP server releases the IP address assigned to the user equipment, and the IP address becomes an unassigned IP address.
  • the DHCP server assigns the IP address to the new user equipment, thus saving address resources.
  • an embodiment of the present invention further discloses a computer storage medium storing a computer program.
  • the computer program in the computer storage medium is read into a computer, the computer can cause the computer to complete the disclosure of the embodiment of the present invention. The entire steps of the address resource release method.
  • a person skilled in the art can understand that all or part of the various methods of the above embodiments can be completed by a program instruction processor, and the program can be stored in a computer readable storage medium, and the storage medium can include: Disk, read-only memory, random access device, disk or optical disk, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

Disclosed are an address resource releasing method, apparatus and system. The method comprises: a wireless access point obtains an offline message for a user equipment, the offline message carrying a hardware address of the user equipment; and in a case in which the wireless access point is an authenticated wireless access point of the user equipment, the wireless access point sends a dynamic host configuration protocol release packet to a dynamic host configuration protocol server, the dynamic host configuration protocol release packet comprising the hardware address of the user equipment. By implementing embodiments of the present invention, address resources can be saved.

Description

一种地址资源释放方法及装置、系统Address resource release method, device and system
本申请要求于2014年3月29日提交中国专利局、申请号为201410124486.X、发明名称为“一种地址资源释放方法及装置、系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to Chinese Patent Application No. 201410124486.X, filed on March 29, 2014, entitled "A Method and Apparatus for Releasing Address Resources, System", the entire contents of which are hereby incorporated by reference. Combined in this application.
技术领域Technical field
本发明涉及通信技术领域,具体涉及一种地址资源释放方法及装置、系统。The present invention relates to the field of communications technologies, and in particular, to a method, device, and system for releasing an address resource.
背景技术Background technique
在无线网络中,用户设备认证后可以通过两种方式将动态主机配置协议(英文:Dynamic Host Configuration Protocol,缩写:DHCP)报文发送给DHCP服务器,一种为本地转发,另一种为集中转发。在本地转发中,用户设备发送的DHCP报文由无线接入点(英文:access point,缩写:AP)直接转发给DHCP服务器;在集中转发中,用户设备发送的DHCP报文由无线AP发送给控制器(英文:controller),再由控制器转发给DHCP服务器。On a wireless network, after the user equipment is authenticated, the Dynamic Host Configuration Protocol (DHCP) packet can be sent to the DHCP server in two ways. One is local forwarding and the other is centralized forwarding. . In the local forwarding, the DHCP message sent by the user equipment is directly forwarded to the DHCP server by the access point (abbreviation: AP). In the centralized forwarding, the DHCP message sent by the user equipment is sent by the wireless AP. The controller (English: controller) is then forwarded by the controller to the DHCP server.
用户设备认证后,DHCP服务器给用户设备分配网际协议(英文:Internet Protocol,缩写:IP)地址,并确定租期(英文:lease duration)。在租期到达前该IP地址只可供该用户设备使用,即在租期到达前不管该用户设备有没有使用该IP地址,其它用户设备都无法使用该IP地址。由于DHCP服务器可分配的IP地址的数量是有限的,当DHCP服务器上的IP地址分配完以后,如果有新用户设备上线,该用户设备将得不到IP地址以致无法访问网络,但有的已经分配给用户设备的IP地址其实并没有被使用,只是该IP地址的租期还没有到达,以致造成IP地址资源的浪费。After the user equipment is authenticated, the DHCP server allocates an Internet Protocol (IP) address to the user equipment and determines the lease duration (English: lease duration). The IP address can only be used by the user equipment before the lease expires. That is, the user equipment cannot use the IP address before the lease expires, regardless of whether the user equipment uses the IP address. Since the number of IP addresses that can be assigned by the DHCP server is limited, when the IP address on the DHCP server is allocated, if a new user device is online, the user device will not get an IP address and cannot access the network, but some have already The IP address assigned to the user equipment is not actually used, but the lease of the IP address has not arrived yet, resulting in waste of IP address resources.
发明内容Summary of the invention
本发明公开了一种地址资源释放方法及装置、系统,用于节约地址资源。The invention discloses an address resource release method, device and system for saving address resources.
本发明第一方面公开一种地址资源释放方法,包括:A first aspect of the present invention discloses a method for releasing an address resource, including:
AP获取针对用户设备的下线消息,所述下线消息携带有所述用户设备的硬件地址;The AP obtains an offline message for the user equipment, where the offline message carries the hardware address of the user equipment;
在所述AP是所述用户设备的认证AP的情况下,所述AP向DHCP服务器发送DHCP释放报文,所述DHCP释放报文包括所述用户设备的硬件地址。 In the case that the AP is an authenticated AP of the user equipment, the AP sends a DHCP release message to the DHCP server, where the DHCP release message includes a hardware address of the user equipment.
结合本发明第一方面,在本发明第一方面的第一种可能的实现方式中,所述AP获取针对用户设备的下线消息包括:With reference to the first aspect of the present invention, in a first possible implementation manner of the first aspect, the acquiring, by the AP, the offline message for the user equipment includes:
AP接收用户设备发送的下线消息;The AP receives the offline message sent by the user equipment.
所述AP获取针对用户设备的下线消息之后,以及向DHCP服务器发送DHCP释放报文之前,所述方法还包括:After the AP obtains the offline message for the user equipment, and sends the DHCP release message to the DHCP server, the method further includes:
所述AP发送针对所述用户设备的漫游信息获取请求给控制器,以触发所述控制器判断所述AP是否是所述用户设备的认证AP;Sending, by the AP, a roaming information acquisition request for the user equipment to the controller, to trigger the controller to determine whether the AP is an authentication AP of the user equipment;
所述AP接收所述控制器发送的判断结果。The AP receives a determination result sent by the controller.
结合本发明第一方面,在本发明第一方面的第二种可能的实现方式中,所述AP获取针对用户设备的下线消息包括:With reference to the first aspect of the present invention, in a second possible implementation manner of the first aspect of the present disclosure, the acquiring, by the AP, the offline message for the user equipment includes:
AP接收控制器发送的针对用户设备的下线消息,所述下线消息还携带有所述用户设备的下线原因;The AP receives the offline message sent by the controller for the user equipment, and the offline message also carries the reason for the offline of the user equipment;
所述AP获取针对用户设备的下线消息之后,以及向DHCP服务器发送DHCP释放报文之前,所述方法还包括:After the AP obtains the offline message for the user equipment, and sends the DHCP release message to the DHCP server, the method further includes:
所述AP根据所述用户设备的下线原因判断所述AP是否是所述用户设备的认证AP。The AP determines, according to the offline reason of the user equipment, whether the AP is an authentication AP of the user equipment.
结合本发明第一方面以及第一方面的第一种和第二种中任一种可能的实现方式,在本发明第一方面的第三种可能的实现方式中,所述方法还包括:With reference to the first aspect of the present invention and the possible implementation of the first and second aspects of the first aspect, in a third possible implementation manner of the first aspect of the present invention, the method further includes:
在所述AP不是所述用户设备的认证AP的情况下,所述AP发送DHCP释放报文生成请求给控制器,所述DHCP释放报文生成请求指示所述控制器发送指示信息给所述用户设备的认证AP,以触发所述用户设备的认证AP向所述DHCP服务器发送DHCP释放报文,所述指示信息包括所述用户设备的硬件地址。If the AP is not the authentication AP of the user equipment, the AP sends a DHCP release message generation request to the controller, where the DHCP release message generation request instructs the controller to send indication information to the user. The authentication AP of the device sends a DHCP release message to the DHCP server by the authentication AP that triggers the user equipment, where the indication information includes the hardware address of the user equipment.
本发明第二方面公开一种AP,包括:A second aspect of the present invention discloses an AP, including:
获取单元,用于获取针对用户设备的下线消息,所述下线消息携带有所述用户设备的硬件地址;An obtaining unit, configured to acquire an offline message for the user equipment, where the offline message carries a hardware address of the user equipment;
发送单元,用于在所述AP是所述用户设备的认证AP的情况下,向DHCP服务器发送DHCP释放报文,所述DHCP释放报文包括所述用户设备的硬件地址。And a sending unit, configured to send a DHCP release message to the DHCP server, where the AP is an authentication AP of the user equipment, where the DHCP release message includes a hardware address of the user equipment.
结合本发明第二方面,在本发明第二方面的第一种可能的实现方式中,所述获取单元具体用于接收用户设备发送的下线消息;With reference to the second aspect of the present invention, in a first possible implementation manner of the second aspect of the present disclosure, the acquiring unit is specifically configured to receive a offline message sent by the user equipment;
所述发送单元,还用于发送针对所述用户设备的漫游信息获取请求给控制器,以触发所述控制器判断所述AP是否是所述用户设备的认证AP; The sending unit is further configured to send a roaming information acquisition request for the user equipment to the controller, to trigger the controller to determine whether the AP is an authentication AP of the user equipment;
所述获取单元,还用于接收所述控制器发送的判断结果,当所述判断结果为所述AP是所述用户设备的认证AP时,触发所述发送单元执行所述的向动态主机配置协议服务器发送动态主机配置协议释放报文的步骤。The obtaining unit is further configured to receive a determination result sent by the controller, and when the determining result is that the AP is an authentication AP of the user equipment, triggering, by the sending unit, performing the dynamic host configuration The protocol server sends a dynamic host configuration protocol to release the message.
结合本发明第二方面,在本发明第二方面的第二种可能的实现方式中,所述获取单元具体用于接收控制器发送的针对用户设备的下线消息,所述下线消息还携带有所述用户设备的下线原因;With reference to the second aspect of the present invention, in a second possible implementation manner of the second aspect of the present disclosure, the acquiring unit is specifically configured to receive, by the controller, an offline message for the user equipment, where the offline message is further carried There is a reason for the user equipment to go offline;
所述AP还包括:The AP further includes:
判断单元,用于根据所述获取单元获取的所述用户设备的下线原因判断所述AP是否是所述用户设备的认证AP,当所述判断单元的判断结果为是时,触发所述发送单元执行所述的向动态主机配置协议服务器发送动态主机配置协议释放报文的步骤。a determining unit, configured to determine, according to the offline reason of the user equipment acquired by the acquiring unit, whether the AP is an authentication AP of the user equipment, and when the determining result of the determining unit is yes, triggering the sending The unit performs the step of sending a dynamic host configuration protocol release message to the dynamic host configuration protocol server.
结合本发明第二方面以及第二方面的第一种和第二种中任一种可能的实现方式,在本发明第二方面的第三种可能的实现方式中,所述发送单元,还用于在所述AP不是所述用户设备的认证AP的情况下,发送DHCP释放报文生成请求给控制器,所述DHCP释放报文生成请求指示所述控制器发送指示信息给所述用户设备的认证AP,以触发所述用户设备的认证AP向所述DHCP服务器发送DHCP释放报文,所述指示信息包括所述用户设备的硬件地址。In conjunction with the second aspect of the present invention and the possible implementation of the first and second aspects of the second aspect, in a third possible implementation manner of the second aspect of the present invention, the sending unit is further used And sending, in the case that the AP is not an authentication AP of the user equipment, a DHCP release message generation request to the controller, where the DHCP release message generation request instructs the controller to send indication information to the user equipment. The authentication AP sends a DHCP release message to the DHCP server, and the indication information includes a hardware address of the user equipment.
本发明第三方面公开一种地址资源释放系统,包括AP和DHCP服务器,其中:A third aspect of the present invention discloses an address resource release system, including an AP and a DHCP server, wherein:
所述AP,用于获取针对用户设备的下线消息,并在所述AP是所述用户设备的认证AP的情况下,向DHCP服务器发送DHCP释放报文,其中,所述下线消息携带有所述用户设备的硬件地址,所述DHCP释放报文包括所述用户设备的硬件地址;The AP is configured to obtain a downlink message for the user equipment, and if the AP is an authentication AP of the user equipment, send a DHCP release message to the DHCP server, where the offline message carries a hardware address of the user equipment, where the DHCP release message includes a hardware address of the user equipment;
所述DHCP服务器,用于接收所述AP发送的所述DHCP释放报文,并根据所述DHCP放报文释放所述用户设备的IP地址与所述用户设备之间的关联。The DHCP server is configured to receive the DHCP release message sent by the AP, and release an association between the IP address of the user equipment and the user equipment according to the DHCP release message.
结合本发明第三方面,在本发明第三方面的第一种可能的实现方式中,With reference to the third aspect of the present invention, in a first possible implementation manner of the third aspect of the present invention,
在所述AP不是所述用户设备的认证AP的情况下,所述系统还包括控制器和所述用户设备的认证AP,其中:In the case that the AP is not an authentication AP of the user equipment, the system further includes a controller and an authentication AP of the user equipment, where:
所述AP,还用于发送DHCP释放报文生成请求给所述控制器;The AP is further configured to send a DHCP release message generation request to the controller.
所述控制器,用于接收所述AP发送的所述DHCP释放报文生成请求,并根据所述DHCP释放报文生成请求发送指示信息给所述用户设备的认证AP,所述指示信息携带有所述用户设备的硬件地址; The controller is configured to receive the DHCP release packet generation request sent by the AP, and send an indication information to the authentication AP of the user equipment according to the DHCP release packet generation request, where the indication information carries The hardware address of the user equipment;
所述用户设备的认证AP,用于接收所述控制器发送的所述指示信息,向所述DHCP服务器发送DHCP释放报文;The authentication AP of the user equipment is configured to receive the indication information sent by the controller, and send a DHCP release message to the DHCP server.
所述DHCP服务器,还用于接收所述用户设备的认证AP发送的所述DHCP释放报文。The DHCP server is further configured to receive the DHCP release message sent by the authentication AP of the user equipment.
本发明实施例中,AP在获取针对用户设备的下线消息之后,将判断AP是否是用户设备的认证AP,若AP是用户设备的认证AP,则生成并发送DHCP释放报文给DHCP服务器,以触发DHCP服务器释放用户设备的IP地址与用户设备之间的关联。本发明实施例中,当用户设备下线后,DHCP服务器将释放给用户设备分配的IP地址,将该IP地址变为未分配的IP地址,当有新用户设备申请IP地址时,DHCP服务器将该IP地址分配给新用户设备,因此,可以节约地址资源。In the embodiment of the present invention, after the AP obtains the offline message for the user equipment, the AP determines whether the AP is the authentication AP of the user equipment. If the AP is the authentication AP of the user equipment, the AP generates and sends a DHCP release message to the DHCP server. The triggering DHCP server releases the association between the IP address of the user equipment and the user equipment. In the embodiment of the present invention, after the user equipment goes offline, the DHCP server will release the IP address assigned to the user equipment, and the IP address becomes an unassigned IP address. When a new user equipment applies for an IP address, the DHCP server will This IP address is assigned to the new user equipment, so address resources can be saved.
附图说明DRAWINGS
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings to be used in the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without paying any creative work.
图1是本发明实施例公开的一种地址资源释放方法的流程图;FIG. 1 is a flowchart of a method for releasing an address resource according to an embodiment of the present invention;
图2是本发明实施例公开的另一种地址资源释放方法的流程图;2 is a flowchart of another address resource release method according to an embodiment of the present invention;
图3是本发明实施例公开的一种AP的结构图;3 is a structural diagram of an AP according to an embodiment of the present invention;
图4是本发明实施例公开的另一种AP的结构图;4 is a structural diagram of another AP disclosed in an embodiment of the present invention;
图5是本发明实施例公开的一种地址资源释放系统的结构图。FIG. 5 is a structural diagram of an address resource release system according to an embodiment of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都是本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly described with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
本发明公开了一种地址资源释放方法及装置、系统,用于节约地址资源。以下分别进行详细说明。The invention discloses an address resource release method, device and system for saving address resources. The details are described below separately.
请参阅图1,图1是本发明实施例公开的一种地址资源释放方法的流程图。如图1所示,该地址资源释放方法可以包括以下步骤。 Please refer to FIG. 1. FIG. 1 is a flowchart of a method for releasing an address resource according to an embodiment of the present invention. As shown in FIG. 1, the address resource release method may include the following steps.
S101、AP获取针对用户设备的下线消息,该下线消息携带有用户设备的硬件地址。S101. The AP acquires an offline message for the user equipment, where the offline message carries a hardware address of the user equipment.
当用户设备主动下线时,用户设备的下线消息由用户设备发送给AP;当管理员让用户设备下线、用户设备的资费用完等情况时,用户设备的下线消息由控制器发送给AP。其中,发送给AP的下线消息携带有用户设备的硬件地址。在支持电气电子工程师学会(英文:Institute of Electrical and Electronics Engineers,缩写:IEEE)802.11的无线局域网(英文wireless local area network,缩写:WLAN)中,用户设备的硬件地址为介质访问控制(英文:media access control,缩写:MAC)地址。When the user equipment is offline, the user equipment's offline message is sent by the user equipment to the AP. When the administrator lets the user equipment go offline and the user equipment costs are completed, the user equipment's offline message is sent by the controller. Give the AP. The offline message sent to the AP carries the hardware address of the user equipment. In the wireless local area network (English: wireless local area network, WLAN) supporting the Institute of Electrical and Electronics Engineers (English: 802.11), the hardware address of the user equipment is medium access control (English: media) Access control, abbreviation: MAC) address.
S102、在该AP是用户设备的认证AP的情况下,AP发送DHCP释放报文给DHCP服务器,以触发DHCP服务器释放用户设备的IP地址与用户设备之间的关联,该DHCP释放报文包括用户设备的硬件地址。S102: In the case that the AP is an authentication AP of the user equipment, the AP sends a DHCP release message to the DHCP server, so that the DHCP server is configured to release the association between the IP address of the user equipment and the user equipment, where the DHCP release message includes the user. The hardware address of the device.
可选地,AP在得到用户设备的下线消息之后,将会判断该AP与用户设备的认证AP是不是同一个AP。若该AP是用户设备的认证AP,则表明用户设备认证上线后没有漫游,即用户设备一直通过AP访问网络,AP将生成用户设备的DHCP释放(英文:DHCP RELEASE)报文,并将DHCP释放报文发送给DHCP服务器,以触发DHCP服务器根据用户设备的DHCP释放报文释放用户设备的IP地址与用户设备之间的关联。Optionally, after obtaining the offline message of the user equipment, the AP determines whether the AP and the authentication AP of the user equipment are the same AP. If the AP is an authenticated AP of the user equipment, it indicates that the user equipment does not roam after the online authentication. The user equipment accesses the network through the AP. The AP generates a DHCP release (English: DHCP RELEASE) packet and releases the DHCP. The packet is sent to the DHCP server to trigger the DHCP server to release the association between the IP address of the user equipment and the user equipment according to the DHCP release message of the user equipment.
相应地,若该AP不是用户设备的认证AP,则表明用户设备认证上线后从用户设备的认证AP漫游到AP,则AP发送DHCP释放报文生成请求给控制器,由控制器发送指示信息给用户设备的认证AP,以触发用户设备的认证AP生成DHCP释放报文,并由用户设备的认证AP将DHCP释放报文发送给DHCP服务器。该指示信息包括用户设备的硬件地址,用户设备的认证AP根据该指示信息中的用户设备的硬件地址在其发送的DHCP释放报文中携带用户设备的硬件地址。Correspondingly, if the AP is not the authentication AP of the user equipment, it indicates that the user equipment roams from the authentication AP of the user equipment to the AP after the user equipment is authenticated, the AP sends a DHCP release message generation request to the controller, and the controller sends the indication information to the controller. The authentication AP of the user equipment generates a DHCP release message by the authentication AP that triggers the user equipment, and the authentication AP of the user equipment sends the DHCP release message to the DHCP server. The indication information includes the hardware address of the user equipment, and the authentication AP of the user equipment carries the hardware address of the user equipment in the DHCP release message sent by the user equipment according to the hardware address of the user equipment.
在图1所描述的地址资源释放方法中,AP在获取针对用户设备的下线消息之后,在AP是用户设备的认证AP的情况下,发送DHCP释放报文给DHCP服务器,以触发DHCP服务器释放用户设备的IP地址与用户设备之间的关联。本发明实施例中,当用户设备下线后,DHCP服务器将释放给用户设备分配的IP地址,将该IP地址变为未分配的IP地址,当有新用户设备申请IP地址时,DHCP服务器将该IP地址分配给新用户设备,因此,可以节约地址资源。In the address resource release method described in FIG. 1 , after acquiring the offline message for the user equipment, the AP sends a DHCP release message to the DHCP server to trigger the DHCP server to release the AP when the AP is the authentication AP of the user equipment. The association between the IP address of the user device and the user device. In the embodiment of the present invention, after the user equipment goes offline, the DHCP server will release the IP address assigned to the user equipment, and the IP address becomes an unassigned IP address. When a new user equipment applies for an IP address, the DHCP server will This IP address is assigned to the new user equipment, so address resources can be saved.
请参阅图2,图2是本发明实施例公开的另一种地址资源释放方法的流程图。如图2所示,该地址资源释放方法可以包括以下步骤。 Referring to FIG. 2, FIG. 2 is a flowchart of another address resource release method according to an embodiment of the present invention. As shown in FIG. 2, the address resource release method may include the following steps.
S201、AP转发用户设备的IP地址获取请求给DHCP服务器,以触发DHCP服务器给用户设备分配IP地址,该IP地址获取请求携带有用户设备的硬件地址。S201: The AP forwards the IP address of the user equipment to the DHCP server to trigger the DHCP server to allocate an IP address to the user equipment. The IP address acquisition request carries the hardware address of the user equipment.
可选地,当AP接收到用户设备发送的认证请求时,则表明用户设备需要访问网络,因此发送IP地址获取请求给DHCP服务器,以触发DHCP服务器给用户设备分配IP地址,并将分配的IP地址发送给AP。其中,该IP地址获取请求携带有用户设备的硬件地址,以便DHCP服务器给用户设备分配IP地址。Optionally, when the AP receives the authentication request sent by the user equipment, it indicates that the user equipment needs to access the network, and therefore sends an IP address acquisition request to the DHCP server to trigger the DHCP server to allocate an IP address to the user equipment, and allocate the IP address. The address is sent to the AP. The IP address acquisition request carries the hardware address of the user equipment, so that the DHCP server allocates an IP address to the user equipment.
作为一种可能的实施方式,AP获取DHCP服务器为用户设备分配的IP地址,生成用户设备的DHCP表项。As a possible implementation manner, the AP obtains an IP address allocated by the DHCP server for the user equipment, and generates a DHCP entry of the user equipment.
AP在转发IP地址获取请求给DHCP服务器之后,接收到DHCP服务器发送的IP地址分配响应,该IP地址分配响应中包括用户设备的IP地址。之后AP将生成用户设备的DHCP表项,用户设备的DHCP表项包括用户设备的IP地址和硬件地址间的映射。After forwarding the IP address acquisition request to the DHCP server, the AP receives an IP address allocation response sent by the DHCP server, where the IP address allocation response includes the IP address of the user equipment. The AP then generates a DHCP entry for the user equipment. The DHCP entry of the user equipment includes the mapping between the IP address of the user equipment and the hardware address.
S202、AP获取针对用户设备的下线消息,该下线消息携带有用户设备的硬件地址。S202. The AP acquires an offline message for the user equipment, where the offline message carries a hardware address of the user equipment.
作为一种可能的实施方式,AP获取针对用户设备的下线消息可以为AP接收用户设备发送的下线消息,该下线消息携带有用户设备的硬件地址;也可以为AP接收控制器发送的针对用户设备的下线消息,该下线消息携带有用户设备的硬件地址和用户设备的下线原因。As a possible implementation manner, the AP acquiring the offline message for the user equipment may be an offline message sent by the AP to the user equipment, where the offline message carries the hardware address of the user equipment, or may be sent by the AP receiving controller. For the offline message of the user equipment, the offline message carries the hardware address of the user equipment and the reason for the user equipment going offline.
可选地,当用户设备主动下线时,用户设备的下线消息由用户设备发送给AP;当管理员让用户设备下线、用户设备的资费用完等情况时,用户设备的下线消息由控制器发送给AP。Optionally, when the user equipment is offline, the user equipment's offline message is sent by the user equipment to the AP; when the administrator lets the user equipment go offline, the user equipment's cost is completed, and so on, the user equipment's offline message It is sent to the AP by the controller.
由于AP在发送DHCP释放报文给DHCP服务器的过程中,DHCP释放报文可能会经过其它设备。如果这些设备上使用了DHCP监听(英文:DHCP snooping),DHCP snooping将监控发送该DHCP释放报文的端口和DHCP snooping表中的端口是否一致,若不一致,则表明该报文不合法,丢弃该报文。因此,为了使DHCP释放报文的转发路径与IP地址分配过程中的DHCP报文的路径一致,AP接收到用户设备发送的下线消息之后,首先需要判断该AP是否是用户设备的认证AP。The DHCP release packet may pass through other devices during the process of sending the DHCP release packet to the DHCP server. If DHCP snooping is used on these devices, DHCP snooping monitors whether the port that sends the DHCP release packet is the same as the port in the DHCP snooping table. If the packets are inconsistent, the packet is invalid. Message. Therefore, in order to make the forwarding path of the DHCP release packet consistent with the path of the DHCP packet in the IP address allocation process, the AP needs to determine whether the AP is the authentication AP of the user equipment after receiving the offline message sent by the user equipment.
作为一种可能的实施方式,当AP接收用户设备发送的下线消息时,AP判断该AP是否是用户设备的认证AP可以包括以下步骤。As a possible implementation manner, when the AP receives the offline message sent by the user equipment, the AP may determine whether the AP is the authentication AP of the user equipment, and may include the following steps.
A1、AP发送针对用户设备的漫游信息获取请求给控制器,以触发控制器判断AP是否是用户设备的认证AP,并将判断结果发送给AP。 A1: The AP sends a roaming information acquisition request to the user equipment to trigger the controller to determine whether the AP is an authentication AP of the user equipment, and sends the judgment result to the AP.
由于下线消息是由用户设备发送给AP的,如果AP并未存储AP是否是用户设备的认证AP的信息,AP发送针对用户设备的漫游信息获取请求给控制器,以触发控制器判断AP是否是用户设备的认证AP,并将判断结果发送给AP。The offline message is sent by the user equipment to the AP. If the AP does not store information about whether the AP is the authentication AP of the user equipment, the AP sends a roaming information acquisition request to the controller to trigger the controller to determine whether the AP determines whether the AP is It is the authentication AP of the user equipment and sends the judgment result to the AP.
A2、AP接收控制器发送的判断结果。A2. The AP receives the judgment result sent by the controller.
AP在发送针对用户设备的漫游信息获取请求给控制器之后,接收控制器发送的判断结果,并识别判断结果是否为AP是用户设备的认证AP。After sending the roaming information acquisition request for the user equipment to the controller, the AP receives the judgment result sent by the controller, and identifies whether the judgment result is that the AP is the authentication AP of the user equipment.
作为一种可能的实施方式,当AP接收控制器发送的针对用户设备的下线消息时,AP将根据用户设备的下线原因判断AP是否是用户设备的认证AP。As a possible implementation manner, when the AP receives the offline message sent by the controller for the user equipment, the AP determines whether the AP is the authentication AP of the user equipment according to the offline reason of the user equipment.
可选地,当下线消息是由控制器发送给AP的时,该下线消息携带有用户设备的下线原因。用户设备的下线原因包括直接下线和漫游下线,直接下线就是用户设备从认证后到下线一直通过AP访问网络,即AP是用户设备的认证AP;漫游下线就是用户设备认证时认证AP进行认证,而在下线前用户设备并未通过认证AP访问网络而是通过AP访问网络,即用户设备从认证AP漫游到AP后的下线。因此,可以根据用户设备的下线原因判断AP是否是用户设备的认证AP。Optionally, when the offline message is sent by the controller to the AP, the offline message carries the reason for the downlink of the user equipment. The downlink of the user equipment includes the direct offline and the roaming offline. The direct offline is that the user equipment accesses the network through the AP from the authentication to the offline. The AP is the authentication AP of the user equipment. The authentication AP authenticates, and the user equipment does not access the network through the authentication AP but the AP accesses the network, that is, the user equipment roams from the authentication AP to the AP. Therefore, whether the AP is an authenticated AP of the user equipment can be determined according to the reason for the downlink of the user equipment.
如果AP接收到的控制器发送的针对用户设备的下线消息中没有下线原因,则可以采用和AP接收用户设备发送的下线消息的情况下相同的方式判断该AP是否是用户设备的认证AP。If there is no offline reason in the offline message sent by the controller for the user equipment, it may be determined whether the AP is the user equipment authentication in the same manner as the AP receives the offline message sent by the user equipment. AP.
S203、在AP是用户设备的认证AP的情况下,AP发送DHCP释放报文给DHCP服务器,以触发DHCP服务器释放用户设备的IP地址与用户设备之间的关联,该DHCP释放报文包括用户设备的硬件地址。S203. In the case that the AP is an authentication AP of the user equipment, the AP sends a DHCP release message to the DHCP server to trigger the DHCP server to release the association between the IP address of the user equipment and the user equipment. The DHCP release message includes the user equipment. Hardware address.
若该AP是用户设备的认证AP,则表明用户设备认证上线后没有漫游,即用户设备一直通过AP访问网络,AP将生成用户设备的DHCP释放(英文:DHCP RELEASE)报文,并将DHCP释放报文发送给DHCP服务器,以触发DHCP服务器根据用户设备的DHCP释放报文释放用户设备的IP地址与用户设备之间的关联。If the AP is an authenticated AP of the user equipment, it indicates that the user equipment does not roam after the online authentication. The user equipment accesses the network through the AP. The AP generates a DHCP release (English: DHCP RELEASE) packet and releases the DHCP. The packet is sent to the DHCP server to trigger the DHCP server to release the association between the IP address of the user equipment and the user equipment according to the DHCP release message of the user equipment.
作为一种可能的实施方式,若AP不是用户设备的认证AP,则AP发送DHCP释放报文生成请求给控制器,由控制器发送指示信息给用户设备的认证AP,以触发用户设备的认证AP生成DHCP释放报文,并由用户设备的认证AP将DHCP释放报文发送给DHCP服务器,该指示信息包括用户设备的硬件地址。As a possible implementation, if the AP is not the authentication AP of the user equipment, the AP sends a DHCP release message generation request to the controller, and the controller sends the indication information to the authentication AP of the user equipment to trigger the authentication AP of the user equipment. A DHCP release message is generated, and the DHCP release message is sent by the authentication AP of the user equipment to the DHCP server. The indication information includes the hardware address of the user equipment.
可选地,若AP不是用户设备的认证AP,则表明用户设备认证上线后从用户设备的认证AP漫游到AP,为了生成的DHCP释放报文不被丢弃需要通知认证AP生成DHCP释放报文。 由于AP不能直接发送DHCP释放报文生成请求给用户设备的认证AP,因此,AP先发送DHCP释放报文生成请求给控制器,由控制器根据DHCP释放报文生成请求发送指示信息给用户设备的认证AP,以触发用户设备的认证AP生成DHCP释放报文,并由用户设备的认证AP将DHCP释放报文发送给DHCP服务器,以触发DHCP服务器释放用户设备的IP地址与用户设备之间的关联。其中,指示信息携带有用户设备的硬件地址,认证AP根据该指示信息中的用户设备的硬件地址在其发送的DHCP释放报文中携带用户设备的硬件地址。Optionally, if the AP is not the authentication AP of the user equipment, it indicates that the user equipment is authenticated to the DHCP relay agent after the user equipment is authenticated and the DHCP relay packet is not discarded. The AP cannot directly send a DHCP release packet to the authentication device of the user equipment. Therefore, the AP sends a DHCP release packet generation request to the controller. The controller sends the indication information to the user equipment according to the DHCP release packet generation request. The authentication AP is configured to trigger the authentication of the user equipment to generate a DHCP release message, and the authentication AP of the user equipment sends the DHCP release message to the DHCP server to trigger the DHCP server to release the association between the IP address of the user equipment and the user equipment. . The indication information carries the hardware address of the user equipment, and the authentication AP carries the hardware address of the user equipment in the DHCP release message sent by the user equipment according to the hardware address of the user equipment in the indication information.
可选地,当AP存储有用户设备的DHCP表项时,DHCP释放报文是根据用户设备的DHCP表项生成的,DHCP释放报文包括用户设备的硬件地址和IP地址。Optionally, when the AP stores the DHCP entry of the user equipment, the DHCP release message is generated according to the DHCP entry of the user equipment, and the DHCP release message includes the hardware address and the IP address of the user equipment.
可选地,当AP发送DHCP释放报文生成请求给控制器后,AP将清除存储的用户设备的DHCP表项。Optionally, after the AP sends a DHCP release packet generation request to the controller, the AP clears the DHCP entry of the stored user equipment.
在图2所描述的地址资源释放方法中,AP转发用户设备的IP地址获取请求给DHCP服务器,以触发DHCP服务器给用户设备分配IP地址,获取针对用户设备的下线消息,判断AP是否是用户设备的认证AP,在AP是用户设备的认证AP的情况下,发送DHCP释放报文给DHCP服务器,以触发DHCP服务器释放用户设备的IP地址与用户设备之间的关联。本发明实施例中,当用户设备下线后,DHCP服务器将释放给用户设备分配的IP地址,将该IP地址变为未分配的IP地址,当有新用户设备申请IP地址时,DHCP服务器将该IP地址分配给新用户设备,因此,可以节约地址资源。In the address resource release method described in FIG. 2, the AP forwards the IP address acquisition request of the user equipment to the DHCP server to trigger the DHCP server to allocate an IP address to the user equipment, obtain an offline message for the user equipment, and determine whether the AP is a user. The authentication AP of the device sends a DHCP release message to the DHCP server to trigger the DHCP server to release the association between the IP address of the user equipment and the user equipment. In the embodiment of the present invention, after the user equipment goes offline, the DHCP server will release the IP address assigned to the user equipment, and the IP address becomes an unassigned IP address. When a new user equipment applies for an IP address, the DHCP server will This IP address is assigned to the new user equipment, so address resources can be saved.
请参阅图3,图3是本发明实施例公开的一种AP的结构图。如图3所示,该AP可以包括:Please refer to FIG. 3. FIG. 3 is a structural diagram of an AP according to an embodiment of the present invention. As shown in FIG. 3, the AP may include:
获取单元301,用于获取针对用户设备的下线消息,该下线消息携带有用户设备的硬件地址;The obtaining unit 301 is configured to acquire a downlink message for the user equipment, where the offline message carries a hardware address of the user equipment;
发送单元302,用于在AP是用户设备的认证AP的情况下,发送DHCP释放报文给DHCP服务器,以触发DHCP服务器释放用户设备的IP地址与用户设备之间的关联,该DHCP释放报文包括用户设备的硬件地址。The sending unit 302 is configured to send a DHCP release message to the DHCP server when the AP is the authentication AP of the user equipment, to trigger the DHCP server to release the association between the IP address of the user equipment and the user equipment, the DHCP release message. Includes the hardware address of the user device.
作为一种可能的实施方式,获取单元301具体用于接收用户设备发送的下线消息;As a possible implementation, the obtaining unit 301 is specifically configured to receive an offline message sent by the user equipment.
发送单元302,还用于发送针对用户设备的漫游信息获取请求给控制器,以触发控制器判断AP是否是用户设备的认证AP;The sending unit 302 is further configured to send a roaming information acquisition request for the user equipment to the controller, to trigger the controller to determine whether the AP is an authentication AP of the user equipment;
获取单元301,还用于接收控制器发送的判断结果。The obtaining unit 301 is further configured to receive a determination result sent by the controller.
作为一种可能的实施方式,获取单元301具体用于接收控制器发送的针对用户设备的下线消息,该下线消息还携带有用户设备的下线原因; As a possible implementation manner, the obtaining unit 301 is specifically configured to receive a downlink message sent by the controller for the user equipment, where the offline message further carries a downlink reason of the user equipment;
AP还可以包括:The AP can also include:
判断单元,用于根据获取单元301获取的用户设备的下线原因判断AP是否是用户设备的认证AP。The determining unit is configured to determine, according to the offline reason of the user equipment acquired by the obtaining unit 301, whether the AP is an authentication AP of the user equipment.
作为一种可能的实施方式,发送单元302,还用于在AP不是用户设备的认证AP的情况下,发送DHCP释放报文生成请求给控制器,由控制器发送指示信息给用户设备的认证AP,以触发用户设备的认证AP生成DHCP释放报文,并由用户设备的认证AP将DHCP释放报文发送给DHCP服务器,该指示信息包括用户设备的硬件地址。As a possible implementation, the sending unit 302 is further configured to: when the AP is not the authentication AP of the user equipment, send a DHCP release message generation request to the controller, where the controller sends the indication information to the authentication AP of the user equipment. The authentication AP that triggers the user equipment generates a DHCP release message, and the authentication AP of the user equipment sends the DHCP release message to the DHCP server, where the indication information includes the hardware address of the user equipment.
在图3所描述的AP中,当用户设备下线后,DHCP服务器将释放给用户设备分配的IP地址,将该IP地址变为未分配的IP地址,当有新用户设备申请IP地址时,DHCP服务器将该IP地址分配给新用户设备,因此,可以节约地址资源。In the AP described in FIG. 3, after the user equipment goes offline, the DHCP server releases the IP address assigned to the user equipment, and the IP address becomes an unassigned IP address. When a new user equipment applies for an IP address, The DHCP server assigns the IP address to the new user equipment, so address resources can be saved.
请参阅图4,图4是本发明实施例公开的另一种AP的结构图。如图4所示,该AP可以包括射频(英文:radio frequency,缩写:RF)模块401、处理器402、存储器403和以太网网络接口控制器404。在本发明的一些实施例中,RF模块401、处理器402、存储器403和以太网网络接口控制器404可以通过总线连接。其中,RF模块401可以支持2.4吉赫兹(英文:gigahertz,符号:GHz),3.6GHz,5GHz,60GHz中的一个或多个频段的无线通信。处理器402可以是中央处理器(英文:central processing unit,缩写:CPU),或者是CPU和硬件芯片的组合。存储器403可以是易失性存储器(英文:volatile memory),例如随机存取存储器(英文:random-access memory,缩写:RAM);或者非易失性存储器(英文:non-volatile memory),例如只读存储器(英文:read-only memory,缩写:ROM),快闪存储器(英文:flash memory),硬盘(英文:hard disk drive,缩写:HDD)或固态硬盘(英文:solid-state drive,缩写:SSD);或者上述种类的存储器的任意组合。存储器403中存储一组程序代码,且处理器402用于调用存储器403中存储的程序代码,执行如下操作:Please refer to FIG. 4. FIG. 4 is a structural diagram of another AP according to an embodiment of the present invention. As shown in FIG. 4, the AP may include a radio frequency (English: radio frequency, abbreviation: RF) module 401, a processor 402, a memory 403, and an Ethernet network interface controller 404. In some embodiments of the invention, RF module 401, processor 402, memory 403, and Ethernet network interface controller 404 may be connected by a bus. The RF module 401 can support wireless communication of one or more frequency bands of 2.4 gigahertz (English: gigahertz, symbol: GHz), 3.6 GHz, 5 GHz, 60 GHz. The processor 402 can be a central processing unit (English: central processing unit, abbreviated: CPU), or a combination of a CPU and a hardware chip. The memory 403 may be a volatile memory (English: volatile memory), such as random access memory (English: random-access memory, abbreviation: RAM); or non-volatile memory (English: non-volatile memory), for example only Read memory (English: read-only memory, abbreviation: ROM), flash memory (English: flash memory), hard disk (English: hard disk drive, abbreviation: HDD) or solid state drive (English: solid-state drive, abbreviation: SSD); or any combination of the above types of memory. A set of program codes is stored in the memory 403, and the processor 402 is configured to call the program code stored in the memory 403 to perform the following operations:
获取针对用户设备的下线消息,该下线消息携带有用户设备的硬件地址;Obtaining an offline message for the user equipment, where the offline message carries a hardware address of the user equipment;
在AP是用户设备的认证AP的情况下,发送DHCP释放报文给DHCP服务器,以触发DHCP服务器释放用户设备的IP地址与用户设备之间的关联,该DHCP释放报文包括用户设备的硬件地址。When the AP is an authenticated AP of the user equipment, the DHCP release message is sent to the DHCP server, so that the DHCP server is released to release the association between the IP address of the user equipment and the user equipment, where the DHCP release message includes the hardware address of the user equipment. .
作为一种可能的实施方式,处理器403获取针对用户设备的下线消息的方式具体为:As a possible implementation manner, the manner in which the processor 403 obtains the offline message for the user equipment is specifically:
接收用户设备发送的下线消息; Receiving an offline message sent by the user equipment;
获取针对用户设备的下线消息之后,以及发送DHCP释放报文给DHCP服务器之前,处理器403还执行以下操作:After obtaining the offline message for the user equipment and sending the DHCP release message to the DHCP server, the processor 403 also performs the following operations:
发送针对用户设备的漫游信息获取请求给控制器,以触发控制器判断AP是否是用户设备的认证AP,并将判断结果发送给AP;Sending a roaming information acquisition request for the user equipment to the controller, to trigger the controller to determine whether the AP is an authentication AP of the user equipment, and sending the determination result to the AP;
接收控制器发送的判断结果。Receive the judgment result sent by the controller.
作为一种可能的实施方式,处理器403获取针对用户设备的下线消息的方式具体为:As a possible implementation manner, the manner in which the processor 403 obtains the offline message for the user equipment is specifically:
接收控制器发送的针对用户设备的下线消息,该下线消息还携带有用户设备的下线原因;Receiving an offline message sent by the controller for the user equipment, where the offline message also carries the reason for the user equipment to go offline;
获取针对用户设备的下线消息之后,以及发送DHCP释放报文给DHCP服务器之前,处理器403还执行以下操作:After obtaining the offline message for the user equipment and sending the DHCP release message to the DHCP server, the processor 403 also performs the following operations:
AP根据用户设备的下线原因判断AP是否是用户设备的认证AP。The AP determines whether the AP is the authentication AP of the user equipment according to the offline condition of the user equipment.
作为一种可能的实施方式,处理器403还执行以下步骤:As a possible implementation manner, the processor 403 further performs the following steps:
在AP不是用户设备的认证AP的情况下,AP发送DHCP释放报文生成请求控制器,由控制器发送指示信息给用户设备的认证AP,以触发用户设备的认证AP生成DHCP释放报文,并由用户设备的认证AP将DHCP释放报文发送给DHCP服务器,该指示信息包括用户设备的硬件地址。If the AP is not the authentication AP of the user equipment, the AP sends a DHCP release message generation request controller, and the controller sends the indication information to the authentication AP of the user equipment to trigger the authentication AP of the user equipment to generate a DHCP release message, and The DHCP release message is sent to the DHCP server by the authentication AP of the user equipment, and the indication information includes the hardware address of the user equipment.
在图4所描述的AP中,当用户设备下线后,DHCP服务器将释放给用户设备分配的IP地址,将该IP地址变为未分配的IP地址,当有新用户设备申请IP地址时,DHCP服务器将该IP地址分配给新用户设备,因此,可以节约地址资源。In the AP described in FIG. 4, after the user equipment goes offline, the DHCP server releases the IP address assigned to the user equipment, and the IP address becomes an unassigned IP address. When a new user equipment applies for an IP address, The DHCP server assigns the IP address to the new user equipment, so address resources can be saved.
请参阅图5,图5是本发明实施例公开的一种地址资源释放系统的结构图。如图5所示,该地址资源释放系统可以包括AP 501和DHCP服务器502,AP 501的结构可以和图3、图4所示的结构相同,本发明实施例不作赘述。其中:Referring to FIG. 5, FIG. 5 is a structural diagram of an address resource release system according to an embodiment of the present invention. As shown in FIG. 5, the address resource release system may include an AP 501 and a DHCP server 502. The structure of the AP 501 may be the same as that shown in FIG. 3 and FIG. 4, and details are not described herein. among them:
AP 501,用于获取针对用户设备的下线消息,并在AP 501是用户设备的认证AP的情况下,生成并发送DHCP释放报文给DHCP服务器502,其中,该下线消息携带有用户设备的硬件地址,该DHCP释放报文包括用户设备的硬件地址;The AP 501 is configured to obtain a downlink message for the user equipment, and if the AP 501 is an authentication AP of the user equipment, generate and send a DHCP release message to the DHCP server 502, where the offline message carries the user equipment. Hardware address, the DHCP release message includes a hardware address of the user equipment;
DHCP服务器502,用于接收AP501发送的DHCP释放报文,并根据DHCP释放报文释放用户设备的IP地址与用户设备之间的关联。The DHCP server 502 is configured to receive the DHCP release message sent by the AP 501, and release the association between the IP address of the user equipment and the user equipment according to the DHCP release message.
作为一种可能的实施方式,在AP501不是用户设备的认证AP的情况下,该地址资源释放系统还可以包括控制器503和用户设备的认证AP504,其中:As a possible implementation, in the case that the AP 501 is not the authentication AP of the user equipment, the address resource release system may further include the controller 503 and the authentication AP 504 of the user equipment, where:
AP501,还用于发送DHCP释放报文生成请求给控制器503; The AP 501 is further configured to send a DHCP release message generation request to the controller 503.
控制器503,用于接收AP501发送的DHCP释放报文生成请求,并发送指示信息给用户设备的认证AP504,指示信息携带有用户设备的硬件地址;The controller 503 is configured to receive the DHCP release message generation request sent by the AP 501, and send the indication information to the authentication AP 504 of the user equipment, where the indication information carries the hardware address of the user equipment;
用户设备的认证AP504,用于接收控制器503发送的指示信息,生成DHCP释放报文,并将DHCP释放报文发送给DHCP服务器502;The authentication device AP504 of the user equipment is configured to receive the indication information sent by the controller 503, generate a DHCP release message, and send the DHCP release message to the DHCP server 502.
DHCP服务器502,还用于接收用户设备的认证AP504发送的DHCP释放报文,并根据动态主机配置协议释放报文释放用户设备的IP地址与用户设备之间的关联。The DHCP server 502 is further configured to receive the DHCP release message sent by the authentication AP 504 of the user equipment, and release the message according to the dynamic host configuration protocol to release the association between the IP address of the user equipment and the user equipment.
在图5所描述的地址资源释放系统中,当用户设备下线后,DHCP服务器将释放给用户设备分配的IP地址,将该IP地址变为未分配的IP地址,当有新用户设备申请IP地址时,DHCP服务器将该IP地址分配给新用户设备,因此,可以节约地址资源。In the address resource release system described in FIG. 5, after the user equipment goes offline, the DHCP server releases the IP address assigned to the user equipment, and the IP address becomes an unassigned IP address. When a new user equipment applies for an IP address, At the address, the DHCP server assigns the IP address to the new user equipment, thus saving address resources.
一个实施例中,本发明实施例进一步公开一种计算机存储介质,该计算机存储介质存储有计算机程序,当计算机存储介质中的计算机程序被读取到计算机时,能够使得计算机完成本发明实施例公开的地址资源释放方法的全部步骤。In one embodiment, an embodiment of the present invention further discloses a computer storage medium storing a computer program. When the computer program in the computer storage medium is read into a computer, the computer can cause the computer to complete the disclosure of the embodiment of the present invention. The entire steps of the address resource release method.
需要说明的是,对于前述的各个方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受所描述的动作顺序的限制,因为依据本发明,某一些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均是优选实施例,所涉及的动作和模块并不一定是本发明所必须的。It should be noted that, for the foregoing various method embodiments, for the sake of simple description, they are all expressed as a series of action combinations, but those skilled in the art should understand that the present invention is not limited by the described action sequence. Because certain steps may be performed in other sequences or concurrently in accordance with the present invention. In the following, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令处理器来完成,该程序可以存储于一计算机可读存储介质中,存储介质可以包括:闪存盘、只读存储器、随机存取器、磁盘或光盘等。A person skilled in the art can understand that all or part of the various methods of the above embodiments can be completed by a program instruction processor, and the program can be stored in a computer readable storage medium, and the storage medium can include: Disk, read-only memory, random access device, disk or optical disk, etc.
以上所揭露的仅为本发明较佳实施例而已,当然不能以此来限定本发明之权利范围,因此依本发明权利要求所作的等同变化,仍属本发明所涵盖的范围。 The above is only the preferred embodiment of the present invention, and the scope of the present invention is not limited thereto, and thus equivalent changes made in the claims of the present invention are still within the scope of the present invention.

Claims (10)

  1. 一种地址资源释放方法,其特征在于,包括:An address resource release method, comprising:
    无线接入点获取针对用户设备的下线消息,所述下线消息携带有所述用户设备的硬件地址;The wireless access point acquires an offline message for the user equipment, where the offline message carries the hardware address of the user equipment;
    在所述无线接入点是所述用户设备的认证无线接入点的情况下,所述无线接入点向动态主机配置协议服务器发送动态主机配置协议释放报文,所述动态主机配置协议释放报文包括所述用户设备的硬件地址。In the case that the wireless access point is an authenticated wireless access point of the user equipment, the wireless access point sends a dynamic host configuration protocol release message to the dynamic host configuration protocol server, and the dynamic host configuration protocol is released. The message includes the hardware address of the user equipment.
  2. 如权利要求1所述的方法,其特征在于,所述无线接入点获取针对用户设备的下线消息包括:The method of claim 1, wherein the obtaining, by the wireless access point, the offline message for the user equipment comprises:
    无线接入点接收用户设备发送的下线消息;The wireless access point receives the offline message sent by the user equipment;
    所述无线接入点获取针对用户设备的下线消息之后,以及向动态主机配置协议服务器发送动态主机配置协议释放报文之前,所述方法还包括:After the wireless access point acquires the offline message for the user equipment, and sends the dynamic host configuration protocol release message to the dynamic host configuration protocol server, the method further includes:
    所述无线接入点发送针对所述用户设备的漫游信息获取请求给控制器,以触发所述控制器判断所述无线接入点是否是所述用户设备的认证无线接入点;Sending, by the wireless access point, a roaming information acquisition request for the user equipment to the controller, to trigger the controller to determine whether the wireless access point is an authenticated wireless access point of the user equipment;
    所述无线接入点接收所述控制器发送的判断结果。The wireless access point receives the determination result sent by the controller.
  3. 如权利要求1所述的方法,其特征在于,所述无线接入点获取针对用户设备的下线消息包括:The method of claim 1, wherein the obtaining, by the wireless access point, the offline message for the user equipment comprises:
    无线接入点接收控制器发送的针对用户设备的下线消息,所述下线消息还携带有所述用户设备的下线原因;The wireless access point receives the offline message sent by the controller for the user equipment, where the offline message also carries the reason for the offline of the user equipment;
    所述无线接入点获取针对用户设备的下线消息之后,以及向动态主机配置协议服务器发送动态主机配置协议释放报文之前,所述方法还包括:After the wireless access point acquires the offline message for the user equipment, and sends the dynamic host configuration protocol release message to the dynamic host configuration protocol server, the method further includes:
    所述无线接入点根据所述用户设备的下线原因判断所述无线接入点是否是所述用户设备的认证无线接入点。The wireless access point determines, according to the offline reason of the user equipment, whether the wireless access point is an authenticated wireless access point of the user equipment.
  4. 如权利要求1-3任一项所述的方法,其特征在于,所述方法还包括:The method of any of claims 1-3, wherein the method further comprises:
    在所述无线接入点不是所述用户设备的认证无线接入点的情况下,所述无线接入点发送动态主机配置协议释放报文生成请求给控制器,所述动态主机配置协议释放报文生成请求指示所述控制器发送指示信息给所述用户设备的认证无线接入点,以触发所述用 户设备的认证无线接入点向所述动态主机配置协议服务器发送动态主机配置协议释放报文,所述指示信息包括所述用户设备的硬件地址。In the case that the wireless access point is not the authenticated wireless access point of the user equipment, the wireless access point sends a dynamic host configuration protocol release message generation request to the controller, and the dynamic host configuration protocol release report The text generation request instructs the controller to send an indication information to the authenticated wireless access point of the user equipment to trigger the use The authentication wireless access point of the user equipment sends a dynamic host configuration protocol release message to the dynamic host configuration protocol server, where the indication information includes a hardware address of the user equipment.
  5. 一种无线接入点,其特征在于,包括:A wireless access point, comprising:
    获取单元,用于获取针对用户设备的下线消息,所述下线消息携带有所述用户设备的硬件地址;An obtaining unit, configured to acquire an offline message for the user equipment, where the offline message carries a hardware address of the user equipment;
    发送单元,用于在所述无线接入点是所述用户设备的认证无线接入点的情况下,向动态主机配置协议服务器发送动态主机配置协议释放报文,所述动态主机配置协议释放报文包括所述用户设备的硬件地址。a sending unit, configured to send a dynamic host configuration protocol release message to the dynamic host configuration protocol server, where the wireless access point is an authenticated wireless access point of the user equipment, where the dynamic host configuration protocol release report The text includes the hardware address of the user equipment.
  6. 如权利要求5所述的无线接入点,其特征在于,所述获取单元具体用于接收用户设备发送的下线消息;The wireless access point according to claim 5, wherein the obtaining unit is specifically configured to receive a offline message sent by the user equipment;
    所述发送单元,还用于发送针对所述用户设备的漫游信息获取请求给控制器,以触发所述控制器判断所述无线接入点是否是所述用户设备的认证无线接入点;The sending unit is further configured to send a roaming information acquisition request for the user equipment to the controller, to trigger the controller to determine whether the wireless access point is an authenticated wireless access point of the user equipment;
    所述获取单元,还用于接收所述控制器发送的判断结果,当所述判断结果为所述无线接入点是所述用户设备的认证无线接入点时,触发所述发送单元执行所述的向动态主机配置协议服务器发送动态主机配置协议释放报文的步骤。The acquiring unit is further configured to receive a determination result sent by the controller, and when the determining result is that the wireless access point is an authenticated wireless access point of the user equipment, triggering, sending, by the sending unit, The step of sending a dynamic host configuration protocol release message to the dynamic host configuration protocol server.
  7. 如权利要求5所述的无线接入点,其特征在于,所述获取单元具体用于接收控制器发送的针对用户设备的下线消息,所述下线消息还携带有所述用户设备的下线原因;The wireless access point according to claim 5, wherein the acquiring unit is specifically configured to receive an offline message sent by the controller for the user equipment, where the offline message further carries the user equipment Line reason
    所述无线接入点还包括:The wireless access point further includes:
    判断单元,用于根据所述获取单元获取的所述用户设备的下线原因判断所述无线接入点是否是所述用户设备的认证无线接入点,当所述判断单元的判断结果为是时,触发所述发送单元执行所述的向动态主机配置协议服务器发送动态主机配置协议释放报文的步骤。a determining unit, configured to determine, according to the offline reason of the user equipment acquired by the acquiring unit, whether the wireless access point is an authenticated wireless access point of the user equipment, and when the determining unit is determined to be And triggering, by the sending unit, the step of sending the dynamic host configuration protocol release message to the dynamic host configuration protocol server.
  8. 如权利要求5-7任一项所述的无线接入点,其特征在于,所述发送单元,还用于在所述无线接入点不是所述用户设备的认证无线接入点的情况下,发送动态主机配置协议释放报文生成请求给控制器,所述动态主机配置协议释放报文生成请求指示所述控制器发送指示信息给所述用户设备的认证无线接入点,以触发所述用户设备的认证无线接 入点向所述动态主机配置协议服务器发送动态主机配置协议释放报文,所述指示信息包括所述用户设备的硬件地址。The wireless access point according to any one of claims 5-7, wherein the sending unit is further configured to: if the wireless access point is not an authenticated wireless access point of the user equipment, Sending a dynamic host configuration protocol release message generation request to the controller, the dynamic host configuration protocol release message generation request instructing the controller to send indication information to the authenticated wireless access point of the user equipment, to trigger the User equipment authentication wireless connection The inbound point sends a dynamic host configuration protocol release message to the dynamic host configuration protocol server, where the indication information includes a hardware address of the user equipment.
  9. 一种地址资源释放系统,至少包括无线接入点和动态主机配置协议服务器,其特征在于,其中:An address resource release system includes at least a wireless access point and a dynamic host configuration protocol server, wherein:
    所述无线接入点,用于获取针对用户设备的下线消息,并在所述无线接入点是所述用户设备的认证无线接入点的情况下,向动态主机配置协议服务器发送动态主机配置协议释放报文,其中,所述下线消息携带有所述用户设备的硬件地址,所述动态主机配置协议释放报文包括所述用户设备的硬件地址;The wireless access point is configured to acquire a downlink message for the user equipment, and send the dynamic host to the dynamic host configuration protocol server if the wireless access point is the authenticated wireless access point of the user equipment Configuring a protocol release message, where the offline message carries a hardware address of the user equipment, and the dynamic host configuration protocol release message includes a hardware address of the user equipment;
    所述动态主机配置协议服务器,用于接收所述无线接入点发送的所述动态主机配置协议释放报文,并根据所述动态主机配置协议释放报文释放所述用户设备的网际协议地址与所述用户设备之间的关联。The dynamic host configuration protocol server is configured to receive the dynamic host configuration protocol release message sent by the wireless access point, and release the internet protocol address of the user equipment according to the dynamic host configuration protocol release message. The association between the user devices.
  10. 如权利要求9所述的系统,其特征在于,在所述无线接入点不是所述用户设备的认证无线接入点的情况下,所述系统还包括控制器和所述用户设备的认证无线接入点,其中:The system of claim 9 wherein said system further comprises a controller and said authenticated wireless device of said user equipment if said wireless access point is not an authenticated wireless access point of said user equipment Access point, where:
    所述无线接入点,还用于发送动态主机配置协议释放报文生成请求给所述控制器;The wireless access point is further configured to send a dynamic host configuration protocol release message generation request to the controller;
    所述控制器,用于接收所述无线接入点发送的所述动态主机配置协议释放报文生成请求,并根据所述动态主机配置协议释放报文生成请求发送指示信息给所述用户设备的认证无线接入点,所述指示信息包括所述用户设备的硬件地址;The controller is configured to receive the dynamic host configuration protocol release message generation request sent by the wireless access point, and send the indication information to the user equipment according to the dynamic host configuration protocol release message generation request Authenticating a wireless access point, the indication information includes a hardware address of the user equipment;
    所述用户设备的认证无线接入点,用于接收所述控制器发送的所述指示信息,向所述动态主机配置协议服务器发送动态主机配置协议释放报文;The authentication wireless access point of the user equipment is configured to receive the indication information sent by the controller, and send a dynamic host configuration protocol release message to the dynamic host configuration protocol server;
    所述动态主机配置协议服务器,还用于接收所述用户设备的认证无线接入点发送的所述动态主机配置协议释放报文。 The dynamic host configuration protocol server is further configured to receive the dynamic host configuration protocol release message sent by the authentication wireless access point of the user equipment.
PCT/CN2015/074760 2014-03-29 2015-03-20 Address resource releasing method, apparatus and system WO2015149635A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410124486.XA CN104955025B (en) 2014-03-29 2014-03-29 A kind of address resource method for releasing and device, system
CN201410124486.X 2014-03-29

Publications (1)

Publication Number Publication Date
WO2015149635A1 true WO2015149635A1 (en) 2015-10-08

Family

ID=54169300

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/074760 WO2015149635A1 (en) 2014-03-29 2015-03-20 Address resource releasing method, apparatus and system

Country Status (2)

Country Link
CN (1) CN104955025B (en)
WO (1) WO2015149635A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022037326A1 (en) * 2020-08-20 2022-02-24 华为技术有限公司 Access management method, authentication point, and authentication server

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101730090A (en) * 2009-12-24 2010-06-09 杭州华三通信技术有限公司 Method and equipment for releasing IP addresses by DHCP server
CN101795449A (en) * 2010-01-07 2010-08-04 杭州华三通信技术有限公司 Wireless network terminal access control method and device thereof

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102244866B (en) * 2011-08-18 2016-01-20 杭州华三通信技术有限公司 Gate verification method and access controller
US9344397B2 (en) * 2011-09-27 2016-05-17 Aruba Networks, Inc. Client aware DHCP lease management
CN102413203A (en) * 2011-12-01 2012-04-11 中兴通讯股份有限公司 IP (Internet Protocol) address allocation method and device
CN102594938B (en) * 2012-02-14 2015-09-16 杭州华三通信技术有限公司 Portal secondary address authentication method and device
CN103476143B (en) * 2012-06-07 2016-05-25 中国移动通信集团公司 A kind of WLAN discharges method, the Apparatus and system of IP resource

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101730090A (en) * 2009-12-24 2010-06-09 杭州华三通信技术有限公司 Method and equipment for releasing IP addresses by DHCP server
CN101795449A (en) * 2010-01-07 2010-08-04 杭州华三通信技术有限公司 Wireless network terminal access control method and device thereof

Also Published As

Publication number Publication date
CN104955025B (en) 2018-11-30
CN104955025A (en) 2015-09-30

Similar Documents

Publication Publication Date Title
US20210385154A1 (en) Multipath data transmission method and device
KR101376829B1 (en) Methods and apparatuses for ip address allocation
US9729501B2 (en) System and data card for stateless automatic configuration of IPv6 address and method for implementing the same
US9451643B2 (en) System and method for a multiple IP interface control protocol
US20200053165A1 (en) Session processing method and device
US20180069901A1 (en) Cloud-based virtual local networks
US20130080614A1 (en) Client Aware DHCP Lease Management
US20140052860A1 (en) Ip address allocation
RU2013106254A (en) METHOD OF TERMINAL ACCESS AUTHENTICATION AND EQUIPMENT LOCATED IN THE SUBSCRIBER'S TERRITORY
WO2016066080A1 (en) Address allocation
US9438557B2 (en) Adaptive dynamic host configuration protocol assignment with virtual local area network pool
WO2012163007A1 (en) Method for solving internet protocol address allocation conflict and related device and system thereof
KR20140030280A (en) Method for address processing, gateway device and access point
US20220210700A1 (en) Communication method, apparatus, and system
WO2017215492A1 (en) Device detection method and apparatus
JP2017528052A (en) Technique for delegating a prefix to a Wi-Fi client connected to a mobile access point router
WO2012174914A1 (en) Method and device for controlling address configuration manner
US20160308824A1 (en) Method for determining gre tunnel, gateway device, and access site
WO2018161795A1 (en) Routing priority configuration method, device, and controller
US9634917B2 (en) Method and system for detecting use of wrong internet protocol address
WO2015021834A1 (en) Method for issuing static route and ultimate provider edge
WO2018006684A1 (en) Message processing method and device, and router
WO2015149635A1 (en) Address resource releasing method, apparatus and system
CN111669309B (en) VxLAN establishing method, wireless controller and switch
WO2016177185A1 (en) Method and apparatus for processing media access control (mac) address

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15772444

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase
122 Ep: pct application non-entry in european phase

Ref document number: 15772444

Country of ref document: EP

Kind code of ref document: A1