WO2014040466A1 - 控制ap的方法和装置 - Google Patents

控制ap的方法和装置 Download PDF

Info

Publication number
WO2014040466A1
WO2014040466A1 PCT/CN2013/081386 CN2013081386W WO2014040466A1 WO 2014040466 A1 WO2014040466 A1 WO 2014040466A1 CN 2013081386 W CN2013081386 W CN 2013081386W WO 2014040466 A1 WO2014040466 A1 WO 2014040466A1
Authority
WO
WIPO (PCT)
Prior art keywords
switch
aps
data packet
control
controlling
Prior art date
Application number
PCT/CN2013/081386
Other languages
English (en)
French (fr)
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 WO2014040466A1 publication Critical patent/WO2014040466A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W92/00Interfaces specially adapted for wireless communication networks
    • H04W92/04Interfaces between hierarchically different network devices
    • H04W92/12Interfaces between hierarchically different network devices between access points and access point controllers

Definitions

  • the present invention relates to the field of communications, and in particular, to a method and apparatus for controlling a wireless access point (AP).
  • AP wireless access point
  • the CAPWAP (Control and Provisioning of the Wireless Access Points Protocol) protocol is a general-purpose tunneling protocol.
  • the AP discovers basic protocol functions such as the wireless access controller (AC), which is independent of the specific radio access technology.
  • the main function of the AP is to automatically discover the AC.
  • the AC authenticates the AP.
  • the AP obtains the software image from the AC.
  • the AP obtains the initial and dynamic configurations from the AC.
  • the CAPWAP protocol transport layer transmits two types of load information: data messages and control messages.
  • the data packets used by CAPWAP to carry data messages and the control packets used to carry control messages are sent based on different User Datagram Protocol (UDP) ports.
  • UDP User Datagram Protocol
  • the use of the CAPWAP protocol begins with the discovery phase of the entire process.
  • the AP sends a discovery request message
  • any AC that receives the request will respond with a discovery response message.
  • the AP selects an AC to establish a DTLS-based secure session.
  • both parties can communicate using the same session key.
  • the configuration is exchanged between the two to agree on the version information.
  • the AP may receive the specified settings and then turn them on.
  • the CAPWAP protocol will be used to encapsulate the wireless data frames sent between the AC and the AP.
  • the reliable mechanism of the CAPWAP protocol requires that messages must be paired.
  • the SP the message must consist of both the request message and the response message.
  • the message type values of all request messages are odd, and all response message type values are even. If the WTP or AC receives an unrecognized message and the message type is odd, then WTP or AC will increment the message type value by one, then respond to the sender, and bring the "unknown message type" in the response. Indication indicator. If the unrecognized message type is even, it indicates that the message itself should be a response message and should not be sent as a request message, so WTP or AC will ignore the message.
  • the CAPWAP control messages mainly have the following categories:
  • discovery message used to discover the location of the AC, AC, and capacity in the network
  • Join the message the AP is used to request the service from the AC, and the AC is used to respond to the AP;
  • the AC sends a configuration file to the AP
  • the AC sends a wireless connection device policy to the AP
  • the AC and the AP are used to exchange the CAPWAP management information specified by the protocol, and sometimes only the connection state information of one wireless connection device is exchanged.
  • the information of the type 3) maintenance control channel includes an AP heartbeat packet, which mainly includes an Echo Request and an Echo Response message, and is used to explicitly maintain the control channel when the control packet is not transmitted between the AP and the AC. connection.
  • the control of the AP is mainly implemented by the AC through the CAPWAP protocol, and the main control is still concentrated on the AC side, so that the burden of the corresponding AC is relatively heavy, and the AP needs to The AC is connected to the AC through the switch.
  • a method for controlling an AP including: a switch records information of a data packet transmitted between an acquired AP and an AC, where the switch is connected between the AP and the AC; The switch controls the AP according to the above information.
  • the controlling, by the switch, the AP according to the foregoing information includes: the switch controls the AP according to a frequency at which the AP sends the data packet.
  • the controlling, by the foregoing switch, the AP according to the frequency at which the AP sends the data packet includes: when the switch detects that the data packet sent by one or more APs is not received within a predetermined time, the switch performs the one or more The AP restarts.
  • the restarting of the one or more APs by the switch includes: determining, by the switch, whether a port on the switch corresponding to the one or more APs has a P0E function; if yes, using the POE function of the port to the one or more APs Restart.
  • the method further includes: determining, by the switch, the number of times that each of the one or more APs is restarted; and the number of restarting the one or more APs by the switch is greater than a threshold of times
  • the AP reports to the NMS.
  • the controlling, by the foregoing switch, the AP according to the frequency at which the AP sends the data packet includes: when the switch detects that one or more APs that transmit the data packet have a frequency greater than a predetermined frequency threshold, the switch may The AP reports to the NMS or shuts down the AP or APs.
  • the above data includes: an AP heartbeat packet for maintaining a connection of the control channel between the AP and the AC.
  • an apparatus for controlling an AP located in a switch, includes: a recording unit configured to record information of a data packet transmitted between an acquired AP and an AC, where the switch is connected Between the AP and the AC; the control unit is configured to control the AP according to the foregoing information.
  • the control unit includes: a control module, configured to control the AP according to a frequency at which the AP sends the data packet.
  • the control module includes: a restart submodule, configured to restart the one or more APs when the switch detects that the data packet sent by one or more APs is not received within a predetermined time.
  • the control of the AP is implemented by a switch connected between the AP and the AC, and the switch determines the state of the AP through the transmission of the data packet between the AP and the AC, thereby realizing effective control of the AP.
  • the technical problem of overloading the AC caused by the control of the AC being concentrated in the AC in the prior art is solved in the above manner, and the purpose of enhancing the control effect on the AP is achieved, and the control burden of the AC is also reduced.
  • the AP is more effectively controlled.
  • FIG. 1 is a preferred flow chart of a method of controlling an AP according to an embodiment of the present invention
  • 2 is another preferred flowchart of a method of controlling an AP according to an embodiment of the present invention
  • FIG. 3 is a block diagram showing a preferred structure of an apparatus for controlling an AP according to an embodiment of the present invention
  • Another preferred block diagram of an apparatus for controlling an AP is another preferred block diagram of an apparatus for controlling an AP.
  • Step S102 The switch records information about a data packet transmitted between an acquired AP and an AC, where the switch Connected between the AP and the AC;
  • Step S104 The switch controls the AP according to the above information.
  • the control of the AP is implemented by a switch connected between the AP and the AC. Specifically, the switch determines the state of the AP by transmitting the data packet between the AP and the AC, thereby implementing the effective for the AP. control.
  • the technical problem of overloading the AC caused by the control of the AC being concentrated in the AC in the prior art is solved in the above manner, and the purpose of enhancing the control effect on the AP is achieved, and the control burden of the AC is also reduced.
  • the AP is more effectively controlled.
  • the switch controls the AP according to the data packet between the AP and the AC, the switch can control the AP according to the frequency at which the AP sends the data packet.
  • the frequency of the AP packet is used to determine the current state of the AP.
  • the switch can monitor the echo message to determine whether the AP status is normal.
  • the abnormal AP device passes the POE reset function of the port to implement the AP power-off restart.
  • the controlling the AP according to the frequency at which the AP sends the data packet includes: when the switch detects that the data packet sent by one or more APs is not received within the predetermined time, the switch performs the one or more The AP restarts. If the AP does not receive the data packet sent by an AP for a certain period of time, the AP can be considered to be in an abnormal state. At this time, the AP can be restarted.
  • POE Power Over Ethernet
  • IP terminals such as IP phones, WLAN access points APs, network cameras, etc.
  • POE technology ensures the integrity of existing networks while ensuring the security of existing structured cabling, minimizing costs.
  • the switch determines whether the port on the switch corresponding to the one or more APs has the POE function; if yes, the POE function of the port is used.
  • One or more APs are restarted.
  • the switch can count the number of times the AP is powered off and restarted. If the AP fails internally and the faults are not restarted, the switch can set a threshold. If the switch is restarted. If the number of times is greater than the threshold, the event can be reported to the NMS. The NMS processes the abnormal AP.
  • the one or more APs are restarted, as shown in FIG.
  • Step S202 The switch determines the number of times each AP in one or more APs is restarted;
  • S204 The switch reports the AP that is restarted in the one or more APs to the network management system.
  • the above is mainly to say that if the keep-alive packet sent by the AP has not been received within the predetermined time, the AP is considered to be faulty and restarted. However, the AP may also send packets too frequently during a certain period of time. At this time, there may be problems or malfunctions in the AP. This is not the case that the restart can be solved.
  • the controlling the AP according to the frequency at which the AP sends the data packet includes: when the switch detects that one or more APs having a frequency of transmitting the data packet greater than a predetermined frequency threshold, the switch Multiple APs are reported to the NMS or the AP or APs are shut down.
  • the foregoing data includes, but is not limited to, an AP heartbeat packet for maintaining a connection of a control channel between the AP and the AC, for example, an echo request/echo response type CAPWAP packet.
  • a device for controlling an AP is further provided, and the device is used to implement the foregoing embodiments and preferred embodiments, and details are not described herein.
  • the term "unit” or "module” may implement a combination of software and/or hardware of a predetermined function.
  • the method includes: a recording unit 302 and a control unit 304, which will be described below.
  • the recording unit 302 is configured to record information of the data packet transmitted between the acquired AP and the AC, wherein the switch is connected between the AP and the AC;
  • the control unit 304 is coupled to the recording unit 302, and is configured to connect to the AP according to the foregoing information.
  • the control unit 304 includes:
  • the control module 402 is configured to control the AP according to the frequency at which the AP sends the data packet.
  • the control module includes: a restart submodule, configured to restart the one or more APs when the switch detects that the data packet sent by the one or more APs is not received within a predetermined time.
  • a restart submodule configured to restart the one or more APs when the switch detects that the data packet sent by the one or more APs is not received within a predetermined time.
  • an embodiment of the present invention provides a method for performing scanning on a UDP packet of a specific destination port number that is extracted according to a set scan interval and a specific duration of time that the packet is not received.
  • a method of automated management of APs under all ports The following is a detailed description of the specific implementation scheme - 1)
  • the premise of implementing the AP heartbeat packet detection is to set the port POE enable state, and the POE enablement includes two types: normal power supply and forced power supply.
  • the port can be powered off and restarted.
  • the detection of the AP heartbeat packet uses a conventional power supply function.
  • the CAPWAP packet extraction function needs to be implemented on the switch chip.
  • An ACL rule can be set on the switch chip to detect the protocol packet passing through the switch chip.
  • a CAPWAP packet whose packet type is UDP and whose destination port number is 5246, it is sent to the AP heartbeat packet detection processing program for processing.
  • the packet that meets the above requirements can be copied and extracted, and a copy is sent to the AP heartbeat packet detection processing program.
  • the original packet still completes the link keepalive between the AP and the AC according to the original process, thereby effectively avoiding The impact on the original system program.
  • the switch port connects to the AP through the twisted-pair cable and configures VLAN information.
  • the CAPWAP packet forwarding function of the port is enabled.
  • the port AP heartbeat detection enable time can be recorded.
  • the port heartbeat packet detection enable time can be calculated. Carrying information and length, judging whether the packet is good or bad, used to count the number of bad packets; each time the packet is received, the number of packets received is increased by one; if an AP heartbeat packet is not received within the set time interval, then The AP under the port performs a power-off restart, and records the restart time and increments the number of restarts. Through the statistics and analysis of these records, effective management of APs is achieved. 5) Set the unit check time, the AP restart interval, the number of packets received per unit time, the number of AP restarts per unit time, and the exception policy on each port. There are mainly but not limited to the following strategies:
  • each unit check time will count and analyze the recorded data. If the AP heartbeat packet is not received within the AP restart interval, the AP is restarted.
  • the alarm information of the number of packets is reported, and the alarm information can be reported to the upper-layer network management system to implement processing or control of the AP.
  • the network management system can perform the following processing on the AP, for example: alarm, alarm, and restart the AP and alarm and close the AP.
  • the switch can automatically manage the AP.
  • the switch can power off and restart the AP, thus eliminating the complexity of manual operations and improving the efficiency of managing APs.
  • the embodiment of the present invention provides an AP heartbeat packet detection implementation process. As shown in FIG.
  • Step S502 The port is enabled to detect the AP heartbeat packet, and only the enabled port performs the AP heartbeat packet detection. , while recording the enable time.
  • Step S504 Set a time interval for the port, and open a timer to count down the time interval and determine the port collection status. If the AP heartbeat packet is not received within the time interval, the AP under the port is considered to be present. Abnormally, the AP under the port is powered off and restarted, and the number of restarts is increased by 1.
  • Step S506 After receiving the AP heartbeat packet, the port records the time of receiving the heartbeat packet, increases the number of packets received by 1, and changes the packet receiving status of the port.
  • Step S508 The recorded data is counted in a unit time. When the statistical data is greater than the set threshold, the information is reported and the corresponding strategy is executed.
  • the switch detects the status of the AP and automatically resets the failed AP.
  • the switch is not only used to forward data, but also automatically manages the AP. It not only broadens the original functions of the switch, but also implements flexible control of the AP.
  • software is also provided for performing the technical solutions described in the above embodiments and preferred embodiments.
  • a storage medium is provided, the software being stored, including but not limited to: an optical disk, a floppy disk, a hard disk, a rewritable memory, and the like.
  • the control of the AP is implemented by a switch connected between the AP and the AC. Specifically, the switch transmits the data packet between the AP and the AC. Determine the state of the AP to achieve effective control of the AP.
  • the technical problem of overloading the AC caused by the control of the AC being concentrated in the AC in the prior art is solved in the above manner, and the purpose of enhancing the control effect on the AP is achieved, and the control burden of the AC is also reduced.
  • the AP is more effectively controlled.
  • modules or steps of the present invention can be implemented by a general-purpose computing device, which can be concentrated on a single computing device or distributed over a network composed of multiple computing devices.
  • they may be implemented by program code executable by the computing device, such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
  • the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps are fabricated as a single integrated circuit module.
  • the invention is not limited to any specific combination of hardware and software.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明公开了一种控制AP的方法和装置,其中,该方法包括:交换机记录获取到的AP与AC之间传输的数据包的信息,其中,所述交换机连接在所述AP和所述AC之间;所述交换机根据所述信息对所述AP进行控制。本发明解决了现有技术中对AC的控制都集中在AC而造成的AC的负荷过重的技术问题,达到了增强对AP的控制效果的目的,也减轻了AC的控制负担实现了对AP更为有效地控制。

Description

控制 AP的方法和装置
技术领域 本发明涉及通信领域, 具体而言, 涉及一种控制无线访问接入点(Wireless Access Point, 简称为 AP) 的方法和装置。 背景技术
CAPWAP(Control and Provisioning of Wireless Access Points Protocol Specification) 协议是一个通用的隧道协议,完成 AP发现无线访问控制器(Wireless Access Controller, 简称为 AC)等基本协议功能, 和具体的无线接入技术无关, 其主要功能是完成 AP自 动发现 AC, AC对 AP进行安全认证, AP从 AC获取软件映像, AP从 AC获得初始 和动态配置等。 CAPWAP协议传输层传输两种类型的负载信息:数据消息和控制消息。 CAPWAP 的用于承载数据消息的数据报文和用于承载控制消息的控制报文是基于不 同的用户数据报协议 (User Datagram Protocol, 简称为 UDP) 端口进行发送的。
CAPWAP协议的使用开始于整个流程的发现阶段。 当 AP发送一个发现请求消息 时, 任何接收到这个请求的 AC将会回应一个发现响应报文。 在接收到发现响应报文 后, AP选择一个 AC来建立一个基于 DTLS的安全会话。在会话密钥协商成功后, 双 方就可以采用同一份会话密钥进行通信了。 一旦 AP和 AC完成了 DTLS会话建立, 两者之间就会交换配置, 用来在版本信 息上达成一致。在这个交换过程中, AP可能会接收到规定设置,然后会开启这些设置。 当 AP和 AC之间完成版本和设置的交换, 并且 AP已经开启, CAPWAP协议将被用 来封装 AC和 AP之间发送的无线数据帧。
CAPWAP协议的可靠机制要求消息必须成对, SP, 消息必须同时由请求消息和响 应消息组成。 所有的请求消息的消息类型值都为奇数, 所有的响应的消息类型值都为 偶数。如果 WTP或者 AC接收到了一个不认识的消息,且消息类型是奇数,那么 WTP 或者 AC会将该消息类型值加一, 然后响应给发送者, 并且在响应中带上"不认识的消 息类型"的指示标识。如果不认识的消息类型为偶数, 则表明该消息本身应该是响应消 息而不应作为请求消息发送, 因此 WTP或者 AC将忽略这个消息。
CAPWAP的控制报文主要有以下几种分类:
1 ) 发现消息, 用于发现网络中的 AC, AC的位置以及容量; 2) 加入消息, AP用于向 AC请求服务, AC用于响应 AP;
3 ) 维持控制通道;
4) AC给 AP发送配置文件;
5 ) AC发送无线连接设备策略给 AP;
6) 请求和发送 firmware给 AP;
7) AC和 AP用于交换协议指定的 CAPWAP管理信息, 有时仅是交换一个无线连 接设备的连接状态信息。 在上述类型 3 ) 维持控制通道的信息中包括 AP心跳包, 主要包含 Echo Request 和 Echo Response两种消息, 用于在 AP和 AC之间不传输控制报文时, 来显式地维持 控制通道的连接。 目前, 在 AP+AC的"痩" AP架构中, 对 AP的控制主要是 AC通过 CAPWAP协议 实现的, 主要的控制还是集中在 AC侧, 这样相应的 AC的负担就比较重, 同时 AP 还需要通过交换机接入 AC, 因此, AC对 AP进行控制的控制效果也不是很好。 针对上述的问题, 目前尚未提出有效的解决方案。 发明内容 本发明提供了一种控制 AP的方法和装置, 以至少解决现有技术中对 AC的控制 都集中在 AC而造成的 AC的负荷过重的技术问题。 根据本发明的一个方面, 提供了一种控制 AP的方法, 包括: 交换机记录获取到 的 AP与 AC之间传输的数据包的信息, 其中, 上述交换机连接在上述 AP和上述 AC 之间; 上述交换机根据上述信息对上述 AP进行控制。 上述交换机根据上述信息对上述 AP进行控制包括:上述交换机根据上述 AP发送 上述数据包的频率对上述 AP进行控制。 上述交换机根据上述 AP发送上述数据包的频率对上述 AP进行控制包括:当上述 交换机检测到在预定时间内未接收到一个或多个 AP发送的上述数据包时, 上述交换 机对该一个或多个 AP进行重启。 上述交换机对该一个或多个 AP进行重启包括: 上述交换机确定该一个或多个 AP 对应的交换机上的端口是否具备 P0E功能; 如果具备, 则通过上述端口的 POE功能 对该一个或多个 AP进行重启。 在对该一个或多个 AP进行重启之后, 上述方法还包括: 上述交换机确定上述一 个或多个 AP中各个 AP重启的次数;上述交换机将该一个或多个 AP中重启的次数大 于次数阈值的 AP上报给网管。 上述交换机根据上述 AP发送上述数据包的频率对上述 AP进行控制包括:当上述 交换机检测到存在发送上述数据包的频率大于预定的频率阈值的一个或多个 AP时, 上述交换机将该一个或多个 AP上报给网管或者关闭该一个或多个 AP。 上述数据包括:用于维持上述 AP与上述 AC之间的控制通道的连接的 AP心跳包。 根据本发明的另一方面, 提供了一种控制 AP的装置, 位于交换机中, 包括: 记 录单元, 设置为记录获取到的 AP与 AC之间传输的数据包的信息, 其中, 上述交换 机连接在上述 AP和上述 AC之间; 控制单元, 设置为根据上述信息对上述 AP进行控 制。 优选地, 上述控制单元包括: 控制模块, 设置为根据上述 AP发送上述数据包的 频率对上述 AP进行控制。 优选地, 上述控制模块包括: 重启子模块, 设置为当上述交换机检测到在预定时 间内未接收到一个或多个 AP发送的上述数据包时, 对该一个或多个 AP进行重启。 在本发明中, 通过连接在 AP和 AC之间的交换机实现对 AP的控制, 交换机通过 AP和 AC之间的数据包的传输来确定 AP的状态, 从而实现对 AP的有效控制。 通过 上述方式解决了现有技术中对 AC的控制都集中在 AC而造成的 AC的负荷过重的技 术问题, 达到了增强对 AP的控制效果的目的, 也减轻了 AC的控制负担实现了对 AP 更为有效地控制。 附图说明 此处所说明的附图用来提供对本发明的进一步理解, 构成本申请的一部分, 本发 明的示意性实施例及其说明用于解释本发明, 并不构成对本发明的不当限定。 在附图 中- 图 1是根据本发明实施例的控制 AP的方法的一种优选流程图; 图 2是根据本发明实施例的控制 AP的方法的另一种优选流程图; 图 3是根据本发明实施例的控制 AP的装置的一种优选结构框图; 图 4是根据本发明实施例的控制 AP的装置的另一种优选结构框图; 以及 图 5是根据本发明实施例的对 AP心跳包进行检测的一种优选流程图。 具体实施方式 下文中将参考附图并结合实施例来详细说明本发明。 需要说明的是, 在不冲突的 情况下, 本申请中的实施例及实施例中的特征可以相互组合。 本发明实施例提供了一种优选的控制 AP的方法, 如图 1所示, 该方法包括以下 步骤: 步骤 S102: 交换机记录获取到的 AP与 AC之间传输的数据包的信息, 其中, 交 换机连接在 AP和 AC之间; 步骤 S104: 交换机根据上述信息对 AP进行控制。 在上述优选实施方式中, 通过连接在 AP和 AC之间的交换机实现对 AP的控制, 具体的, 交换机通过 AP和 AC之间的数据包的传输来确定 AP的状态, 从而实现对 AP的有效控制。通过上述方式解决了现有技术中对 AC的控制都集中在 AC而造成的 AC的负荷过重的技术问题, 达到了增强对 AP的控制效果的目的, 也减轻了 AC的控 制负担实现了对 AP更为有效地控制。 在交换机根据 AP和 AC之间的数据包对 AP进行控制的时候, 交换机可以根据 AP发送数据包的频率对 AP进行控制。 SP, 由 AP发包的频率来确定 AP当前的状态。 例如: 交换机可以通过监测 echo消息来确定 AP状态是否正常, 同时对异常的 AP设 备通过端口的 POE复位功能, 实现 AP掉电重启。 在一个优选实施方式中, 交换机根据 AP发送数据包的频率对 AP进行控制包括: 当交换机检测到在预定时间内未接收到一个或多个 AP发送的数据包时, 交换机对该 一个或多个 AP进行重启。 SP,如果在一定的时间长度内一直未收到某个 AP发送的数 据包, 则可以认为该 AP处于异常状态, 这个时候就可以对该 AP进行重启操作。 在对 AP进行重启的时候,可以利用端口的 POE (Power Over Ethernet)功能实现, POE指的是在现有的以太网 Cat.5布线基础架构不作任何改动的情况下, 在为一些基 于 IP的终端 (如 IP电话机、 无线局域网接入点 AP、 网络摄像机等)传输数据信号的 同时, 还能为此类设备提供直流供电的技术。 POE技术能在确保现有的结构化布线安 全的同时保证现有网络的正常运作, 最大限度地降低了成本。 优选的, 在利用 POE功 能对 AP进行复位重启时,可以按照以下方式进行: 交换机确定该一个或多个 AP对应 的交换机上的端口是否具备 POE功能; 如果具备, 则通过端口的 POE功能对该一个 或多个 AP进行重启。 SP, 在本实施例中, 只有到交换机对应的端口上具备 POE功能 与其连接的 AP才能通过 POE功能实现重启。 为了进一步提高对 AP的控制,交换机可以统计 AP掉电重启的次数,这样如果是 因为 AP 内部出现故障, 而且这些故障并非重启就可以解决的情况下, 交换机就可以 设定一个次数阈值, 如果重启的次数大于了这个阈值, 那么就可以将该事件上报给网 管, 由网管对该异常的 AP进行处理。 在一个优选实施方式中, 在对该一个或多个 AP 进行重启之后, 如图 2所示, 上述方法还包括以下步骤: 步骤 S202: 交换机确定一个或多个 AP中各个 AP重启的次数; 步骤 S204: 交换机将该一个或多个 AP中重启的次数大于次数阈值的 AP上报给 网管。 上述主要是说明如果在预定时间内一直未收到 AP发送的保活数据包, 就认为该 AP是有故障的, 就对其进行重启操作。 然而, AP也可能出现在某一时间段内发送数 据包的次数过于频繁, 这个时候也可能是 AP 内部出现了什么问题或者故障, 这样情 况就不是重启可以解决的了, 这个时候, 也可以将该检测到的故障 AP上报给网管, 由网管进行进一步处理或者为了减少该 AP频繁发送数据包带来的资源消耗, 可以关 闭该出现故障的 AP。 在一个优选实施方式中, 交换机根据 AP 发送数据包的频率对 AP进行控制包括:当交换机检测到存在发送数据包的频率大于预定的频率阈值的一个 或多个 AP时, 所交换机将该一个或多个 AP上报给网管或者关闭该一个或多个 AP。 在上述各个优选实施方式中, 上述的数据包括但不限于用于维持 AP与 AC之间 的控制通道的连接的 AP心跳包, 例如, echo request/echo response类型的 CAPWAP 包。 在本实施例中还提供了一种控制 AP的装置, 该装置用于实现上述实施例及优选 实施方式, 已经进行过说明的不再赘述。 如以下所使用的, 术语"单元"或者"模块"可 以实现预定功能的软件和 /或硬件的组合。尽管以下实施例所描述的装置较佳地以软件 来实现, 但是硬件, 或者软件和硬件的组合的实现也是可能并被构想的。 图 3是根据本发明实施例的控制 AP的装置的一种优选结构框图, 如图 3所示, 包括: 记录单元 302和控制单元 304, 下面对该结构进行说明。 记录单元 302, 设置为记录获取到的 AP与 AC之间传输的数据包的信息, 其中, 交换机连接在 AP和 AC之间; 控制单元 304, 与记录单元 302耦合, 设置为根据上述信息对 AP进行控制。 在一个优选实施方式中, 如图 4所示, 上述控制单元 304包括: 控制模块 402, 设置为根据 AP发送数据包的频率对 AP进行控制。 在一个优选实施方式中, 控制模块包括: 重启子模块, 设置为当交换机检测到在 预定时间内未接收到一个或多个 AP发送的数据包时, 对该一个或多个 AP进行重启。 本实施例是在交换机支持 POE功能的情况下实现对 AP的状态监测以及自动复位 的功能, 从而拓宽了对 AP的管理范围, 实现了 AP的非人工自动复位。 对于因为 AP 运行过程中产生故障而使得自身系统挂死的情况, 不再需要人工通过插拔电源或通过 重启开关来进行控制。 交换机会定期检查 AP的心跳检测包, 对于在特定时间内一直 未收到 AP心跳包的 AP,自动复位其对应端口的 POE使能,从而实现 AP的掉电重启, 使得 AP可以正常运行。 为了实现上述目的, 本发明实施例提供了一种通过对提取的特定目的端口号的 UDP包进行扫描, 根据设定的扫描间隔和允许未收到包的特定时长进行分析, 从而实 现对交换机中所有端口下的 AP的自动化管理的方法。 下面将结合具体的实施方案对 其进行详细描述- 1 ) 实现 AP心跳包检测的前提是设置端口 POE使能状态, POE使能包括常规供 电和强制供电两种。 常规供电时, 可对端口进行断电重启, 强制供电时, 不能对端口 进行断电重启, 优选的, 在优选本实施方式中, 实现 AP心跳包的检测使用的是常规 供电功能。
2) 需要在交换芯片上实现 CAPWAP包的提取功能, 可以在交换芯片上设置一条 ACL规则,检测通过该交换芯片的协议包。对于报文类型为 UDP, 目的端口号为 5246 的 CAPWAP包, 送至 AP心跳包检测处理程序进行处理。 优选的, 可以对满足上述要 求的报文进行复制提取, 复制一份送至 AP心跳包检测处理程序, 原来的报文仍然按 照原来的流程完成 AP与 AC的链路保活, 从而可以有效避免对原有系统程序的影响。 3 )交换机端口通过交绞线电缆连接 AP并配置 VLAN信息。每个端口下通过双绞 线电缆连接一个 AP, AP只需要通过双绞线电缆供电即可, 不再需要连接电源线。 当 端口下连接一个 AP后, 打开端口的 POE使能, 对 AP进行常规供电。 优选的, 为了 保证端口下链路上的 POE 断电与重启有意义: 首先需要检测端口的链路状态是否为 UP, 并保证端口下有 AP相连; 其次, 需要检测端口的 POE开关是否使能, 只有使能 了 POE功能的端口, 才会对它进行断电与重启处理。 AP系统在开始启动后, 交换机 端口状态显示为 UP。 同时, 在端口上配置 VLAN信息, 保证 AP系统起来之后可以和 AC之间进行正常通信。
4) 从端口 AP心跳检测使能开始记录各种检测数据。 端口 AP心跳检测使能后, 即打开端口的 CAPWAP包提包功能, 例如, 可以记录端口 AP心跳检测使能开启的时 间, 根据此时间可以计算出端口心跳包检测使能时长; 还可以根据包的携带信息及长 度大小, 判断包的好坏, 用于统计坏包个数; 每次收到包后, 收包个数加 1 ; 如果在 设置时间间隔内没有收到一个 AP心跳包,则对端口下 AP进行断电重启, 同时记录重 启的时间,并对重启次数加 1。通过对这些记录的统计与分析,实现对 AP的有效管理。 5 ) 在每个端口下设置单位检查时间、 AP重启时间间隔、 单位时间内收包告警个 数、 单位时间内 AP重启次数告警以及异常策略。 主要可以有但不限于以下几种策略:
1 )从端口 AP心跳检测使能开始, 每个单位检查时间会对记录的数据进行统计和 分析; 如果 AP重启时间间隔内没有收到 AP心跳包, 则对 AP进行重启;
2)当单位时间内的收包个数大于设置的告警个数时, 上报收包个数告警信息, 可 以将该告警信息上报给上层的网管, 以实现对 AP的处理或者控制。
3 ) 当单位时间内 AP的重启次数大于设置的告警阈值是, 上报告警信息。 优选的, 在收到告警后, 网管可以对 AP进行以下处理, 例如: 告警、 告警并重 启 AP以及告警并关闭 AP。 通过上述方式, 在完成端口下的 AP心跳检测配置之后, 当 AP出现异常时, 交换 机可以自动完成对 AP的管理。 当 AP出现异常无法工作时, 交换机可以对 AP进行断 电重启, 从而免去人工操作的复杂性, 提高了管理 AP的效率。 本实施例还提供了一种 AP心跳包检测实现流程, 如图 5所示, 包括以下步骤: 步骤 S502: 端口开启 AP心跳包检测使能, 只有使能的端口, 才会进行 AP心跳 包检测, 同时记录使能时间。 步骤 S504: 对端口设置一个时间间隔, 同时打开一个定时器对此时间间隔进行倒 计时及端口收包状态进行判断, 如果在此时间间隔内未收到 AP心跳包, 则认为此端 口下的 AP出现异常, 对端口下 AP进行断电重启, 重启次数加 1。 步骤 S506: 在端口接收到 AP心跳包后, 记录收到心跳包的时间, 收包个数加 1, 同时改变端口的收包状态。 步骤 S508: 单位时间内对记录的数据进行统计, 当统计的数据大于设定阀值时, 上报信息并执行相应策略。 通过上述方式, 在交换机具有端口 POE功能的情况下, 实现了交换机对 AP的状 态检测以及对出现故障的 AP进行自动的复位管理。交换机不再仅仅只用于转发数据, 同时也可以对 AP进行自动管理,不仅拓宽了交换机原有的功能,也实现了对 AP的灵 活控制。 在另外一个实施例中, 还提供了一种软件, 该软件用于执行上述实施例及优选实 施方式中描述的技术方案。 在另外一个实施例中, 还提供了一种存储介质, 该存储介质中存储有上述软件, 该存储介质包括但不限于: 光盘、 软盘、 硬盘、 可擦写存储器等。 从以上的描述中, 可以看出, 本发明实现了如下技术效果: 通过连接在 AP和 AC 之间的交换机实现对 AP的控制, 具体的, 交换机通过 AP和 AC之间的数据包的传输 来确定 AP的状态, 从而实现对 AP的有效控制。 通过上述方式解决了现有技术中对 AC的控制都集中在 AC而造成的 AC的负荷过重的技术问题, 达到了增强对 AP的控 制效果的目的, 也减轻了 AC的控制负担实现了对 AP更为有效地控制。 显然, 本领域的技术人员应该明白, 上述的本发明的各模块或各步骤可以用通用 的计算装置来实现, 它们可以集中在单个的计算装置上, 或者分布在多个计算装置所 组成的网络上, 可选地, 它们可以用计算装置可执行的程序代码来实现, 从而, 可以 将它们存储在存储装置中由计算装置来执行, 并且在某些情况下, 可以以不同于此处 的顺序执行所示出或描述的步骤, 或者将它们分别制作成各个集成电路模块, 或者将 它们中的多个模块或步骤制作成单个集成电路模块来实现。 这样, 本发明不限制于任 何特定的硬件和软件结合。 以上所述仅为本发明的优选实施例而已, 并不用于限制本发明, 对于本领域的技 术人员来说, 本发明可以有各种更改和变化。 凡在本发明的精神和原则之内, 所作的 任何修改、 等同替换、 改进等, 均应包含在本发明的保护范围之内。

Claims

权 利 要 求 书
1. 一种控制控制无线访问接入点 AP的方法, 其特征在于, 包括:
交换机记录获取到的 AP与无线访问控制器 AC之间传输的数据包的信息, 其中, 所述交换机连接在所述 AP和所述 AC之间;
所述交换机根据所述信息对所述 AP进行控制。
2. 根据权利要求 1所述的方法, 其中, 所述交换机根据所述信息对所述 AP进行 控制包括:
所述交换机根据所述 AP发送所述数据包的频率对所述 AP进行控制。
3. 根据权利要求 2所述的方法, 其中, 所述交换机根据所述 AP发送所述数据包 的频率对所述 AP进行控制包括:
当所述交换机检测到在预定时间内未接收到一个或多个 AP发送的所述数 据包时, 所述交换机对该一个或多个 AP进行重启。
4. 根据权利要求 3所述的方法, 其中, 所述交换机对该一个或多个 AP进行重启 包括:
所述交换机确定该一个或多个 AP对应的交换机上的端口是否具备 POE功 能;
如果具备, 则通过所述端口的 POE功能对该一个或多个 AP进行重启。
5. 根据权利要求 3或 4所述的方法, 其中, 在对该一个或多个 AP进行重启之后, 所述方法还包括:
所述交换机确定所述一个或多个 AP中各个 AP重启的次数; 所述交换机将该一个或多个 AP中重启的次数大于次数阈值的 AP上报给 网管。
6. 根据权利要求 2所述的方法, 其中, 所述交换机根据所述 AP发送所述数据包 的频率对所述 AP进行控制包括:
当所述交换机检测到存在发送所述数据包的频率大于预定的频率阈值的一 个或多个 AP时, 所述交换机将该一个或多个 AP上报给网管或者关闭该一个 或多个 AP。
7. 根据权利要求 1至 6中任一项所述的方法, 其中, 所述数据包括: 用于维持所 述 AP与所述 AC之间的控制通道的连接的 AP心跳包。
8. 一种控制控制无线访问接入点 AP的装置, 位于交换机中, 包括:
记录单元, 设置为记录获取到的 AP与无线访问控制器 AC之间传输的数 据包的信息, 其中, 所述交换机连接在所述 AP和所述 AC之间;
控制单元, 设置为根据所述信息对所述 AP进行控制。
9. 根据权利要求 8所述的装置, 其中, 所述控制单元包括:
控制模块, 设置为根据所述 AP发送所述数据包的频率对所述 AP进行控 制。
10. 根据权利要求 9所述的装置, 其中, 所述控制模块包括:
重启子模块, 设置为当所述交换机检测到在预定时间内未接收到一个或多 个 AP发送的所述数据包时, 对该一个或多个 AP进行重启。
PCT/CN2013/081386 2012-09-17 2013-08-13 控制ap的方法和装置 WO2014040466A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201210344150.5 2012-09-17
CN201210344150.5A CN103686854B (zh) 2012-09-17 2012-09-17 控制ap的方法和装置

Publications (1)

Publication Number Publication Date
WO2014040466A1 true WO2014040466A1 (zh) 2014-03-20

Family

ID=50277590

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/081386 WO2014040466A1 (zh) 2012-09-17 2013-08-13 控制ap的方法和装置

Country Status (2)

Country Link
CN (1) CN103686854B (zh)
WO (1) WO2014040466A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109640328A (zh) * 2018-12-21 2019-04-16 杭州全维技术股份有限公司 一种应用于多个网络ac的无感知切换接入点的方法

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104703165B (zh) 2013-12-10 2019-08-27 南京中兴新软件有限责任公司 一种处理无线接入的方法、转发设备及网络控制器
CN104320280B (zh) * 2014-10-30 2017-07-11 深圳市优特普电子有限公司 自动复位网络系统终端的方法及其以太网交换机和系统
CN105848168B (zh) 2015-01-16 2019-08-02 新华三技术有限公司 一种管理无线接入点ap的方法及装置
CN105450422A (zh) * 2015-12-02 2016-03-30 杭州敦崇科技股份有限公司 基于接入控制器和poe交换机的无线接入点故障远程自动恢复系统
CN105959223B (zh) * 2016-04-26 2019-11-12 新华三技术有限公司 一种报文转发方法及装置
CN106060859A (zh) * 2016-06-30 2016-10-26 杭州华三通信技术有限公司 Ap故障的检测修复方法以及装置
CN107797902B (zh) * 2016-09-06 2021-07-30 北京百度网讯科技有限公司 用于监控机器人操作系统的消息传输频率的方法和装置
CN106789110A (zh) * 2016-12-20 2017-05-31 深圳市菲菱科思通信技术股份有限公司 一种基于云方法的远程PoE控制及故障恢复方法和系统
CN107547444B (zh) * 2017-07-31 2021-11-26 新华三技术有限公司 一种流量统计方法及交换设备
CN108260179B (zh) * 2017-09-11 2021-03-23 新华三技术有限公司 接入点ap接入控制方法和装置

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102083136A (zh) * 2009-11-30 2011-06-01 杭州华三通信技术有限公司 无线网络的控制方法及无线控制器
WO2011082529A1 (zh) * 2010-01-08 2011-07-14 华为技术有限公司 一种组临时密钥更新方法、装置和系统
CN102395144A (zh) * 2011-11-11 2012-03-28 福建星网锐捷网络有限公司 无线接入点升级方法、系统及设备

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6327254B1 (en) * 1997-10-14 2001-12-04 Lucent Technologies Inc. Method for bandwidth sharing in a multiple access system for communications networks
US7028097B2 (en) * 2002-03-28 2006-04-11 Intel Corporation Wireless LAN with dynamic channel access management
JP5025356B2 (ja) * 2007-07-10 2012-09-12 キヤノン株式会社 通信システム、情報処理装置ならびに通信制御方法
CN101909291A (zh) * 2009-06-04 2010-12-08 上海共联通信信息发展有限公司 一种无线网络交换机的控制方法
CN101621515A (zh) * 2009-08-07 2010-01-06 中兴通讯股份有限公司 一种基于以太网上点对点协议的接入方法及一种交换机
CN102281182B (zh) * 2010-06-08 2014-03-26 华为技术有限公司 接入网络中的报文处理方法、接入控制器、接入点和系统
CN102164419B (zh) * 2011-05-09 2014-01-29 北京傲天动联技术股份有限公司 多速率无线网络的数据包的调度方法和使用该方法的设备

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102083136A (zh) * 2009-11-30 2011-06-01 杭州华三通信技术有限公司 无线网络的控制方法及无线控制器
WO2011082529A1 (zh) * 2010-01-08 2011-07-14 华为技术有限公司 一种组临时密钥更新方法、装置和系统
CN102395144A (zh) * 2011-11-11 2012-03-28 福建星网锐捷网络有限公司 无线接入点升级方法、系统及设备

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109640328A (zh) * 2018-12-21 2019-04-16 杭州全维技术股份有限公司 一种应用于多个网络ac的无感知切换接入点的方法

Also Published As

Publication number Publication date
CN103686854B (zh) 2018-05-04
CN103686854A (zh) 2014-03-26

Similar Documents

Publication Publication Date Title
WO2014040466A1 (zh) 控制ap的方法和装置
US11146470B2 (en) Apparatus and methods for monitoring and diagnosing a wireless network
US11310106B2 (en) Cloud-based control of a Wi-Fi network
US7940678B2 (en) Method for triggering failure detection in bidirectional forwarding detection
US7881230B2 (en) Facilitating self configuring link aggregation using link aggregation control protocol
US8254905B2 (en) Service monitoring and disconnection notification in a wireless gateway device
KR100455973B1 (ko) 홈 네트워크를 다중물리층으로 설정하는 방법
US8638692B2 (en) System and method for end-to-end automatic configuration of network elements using a link-level protocol
US10374895B2 (en) Configuration of communication interfaces for link aggregation
CN100553213C (zh) 一种wlan异常快速恢复的方法及设备
US8036106B1 (en) Distributed control packet transmission
WO2014176975A1 (zh) Drni中同一端内系统之间交互信息的方法和系统
WO2022048281A1 (zh) 一种改善链路聚合协议超时的方法和设备
WO2011137766A2 (zh) 确定网元运行状态的方法以及相关设备和系统
US8144574B1 (en) Distributed control packet processing
US7746949B2 (en) Communications apparatus, system and method of creating a sub-channel
US20180376470A1 (en) Method and apparatus for access point to station connection
CN103401702B (zh) 一种基于全分布式模型的tcp连接管理方法及设备
TWM574793U (zh) 可偵測外部裝置狀態的網路裝置
WO2013182156A1 (zh) 移动终端网络端口管理方法及装置
CN111224803A (zh) 一种堆叠系统中多主检测方法及堆叠系统
JP3567873B2 (ja) 無線通信ネットワーク及びそれに用いる障害検出方法
US20130024566A1 (en) Detection of link connectivity in communication systems
WO2014043853A1 (zh) 无线局域网中的转发方法和装置
WO2013040927A1 (zh) 分布式链路聚合方法及装置

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: 13837172

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 13837172

Country of ref document: EP

Kind code of ref document: A1