WO2014032516A1 - 无线接入点版本升级的方法、系统及设备 - Google Patents

无线接入点版本升级的方法、系统及设备 Download PDF

Info

Publication number
WO2014032516A1
WO2014032516A1 PCT/CN2013/081354 CN2013081354W WO2014032516A1 WO 2014032516 A1 WO2014032516 A1 WO 2014032516A1 CN 2013081354 W CN2013081354 W CN 2013081354W WO 2014032516 A1 WO2014032516 A1 WO 2014032516A1
Authority
WO
WIPO (PCT)
Prior art keywords
version
hash value
response message
data response
version file
Prior art date
Application number
PCT/CN2013/081354
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 WO2014032516A1 publication Critical patent/WO2014032516A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition

Definitions

  • the present invention relates to a wireless access technology of a wireless local area network (WLAN), and in particular, to a method, system and device for upgrading a wireless access point (AP, Access Point) version.
  • WLAN wireless local area network
  • AP Access Point
  • the WLAN generally adopts a thin AP architecture of an AP plus an access controller (AC, Access Controller).
  • the AC performs configuration management and version upgrade operations, such as the CAPWAP (Control and Provisioning of Wireless Access Points Protocol), as shown in the dotted line in Figure 1 as CAPWAP management packets.
  • CAPWAP Control and Provisioning of Wireless Access Points Protocol
  • a control channel for transmitting packets the channel is disposed between the network and the AP, and the channel includes a broadband remote meter access server, a router, and a switch, and the solid line indicates a data packet transmission channel, and the AP connects the terminal to the corresponding channel.
  • the channel to achieve network access.
  • the CAPWAP defines the process of the AC to upgrade the AP.
  • the AP is in the scenario of the AP being connected to the AC for the first time and the AP is connected to the AC.
  • the AC needs to calculate the hash value of the AP version file before continuing the upgrade operation.
  • the AC needs to calculate the hash value of the AP version file to be downloaded each time the upgrade is performed, and the upgrade operation can be continued after the calculation is completed.
  • the upgrade efficiency is low. Summary of the invention
  • the embodiment of the present invention provides a method, a system, and a device for upgrading an AP version, so as to solve at least the problem that the AP version is inefficiently upgraded.
  • the technical solution of the embodiment of the present invention is implemented as follows:
  • the embodiment of the present invention provides a method for upgrading an AP version, where the method includes:
  • the local device searches for the hash identifier of the AP version file that the AP requests to download according to the version identifier of the version data request message sent by the AP.
  • the AC sends a version data response message indicating that the version is upgraded to the AP, where the version data response message carries a hash value of the AP version file that the AP requests to download, or a hash value that carries a value of zero.
  • the AC sends a version data response message to the AP, where the version data response message carries a hash value of the AP version file that the AP requests to download, or a hash value that carries a value of zero, including:
  • the AC locally queries the hash value of the AP version file that is requested to be downloaded, sends a version data response message to the AP, where the version data response message carries a hash value of the AP version file that the AP requests to download; Otherwise, a version data response message is sent to the AP, and the version data response message carries a hash value with a value of zero.
  • the method further includes: the AC calculating a hash value of the AP version file that the AP requests to download, and saving the calculated hash value locally.
  • the method further includes:
  • the AC sends a version data request message to the AP, where the version data request message carries a hash value of the AP version file that the AP requests to download.
  • the embodiment of the present invention further provides an AC, where the AC includes: a message receiving unit, a hash value query unit, a message sending unit, and a hash value storage unit;
  • the message receiving unit is configured to receive a version data request message that is sent by the AP and carries a version identifier;
  • the hash value storage unit is configured to store a hash value of the AP version file, and the hash value query unit is configured to: according to the version identifier that is carried by the version data request message received by the message receiving unit, The hash value storage unit queries a hash value of the AP version file that the AP requests to download;
  • the message sending unit is configured to send, to the AP, a version data response message indicating a version upgrade, where the version data response message carries a hash value or a carrying value of the AP version file queried by the hash value query unit.
  • the hash value calculation unit is further configured to calculate the AP when the hash value query unit does not query the hash value of the AP version file requested by the AP for downloading by the hash value storage unit.
  • a hash value of the downloaded AP version file is requested and stored to the hash value storage unit.
  • the message sending unit is further configured to: when the hash value query unit queries the hash value of the AP version file that the AP requests to download, send a version data response message to the AP, the version data.
  • the response message carries a hash value of the AP version file that the AP requests to download; when the hash value query unit does not query the hash value of the AP version file that the AP requests to download, the version data is sent to the AP.
  • the version data reply message carries a hash value with a value of zero.
  • the message sending unit is further configured to: when the hash value calculation unit calculates a hash value of the AP version file that the AP requests to download, send a version data request message to the AP, the version data.
  • the hash value of the calculated AP version file as described in the request message.
  • the embodiment of the present invention further provides an AP version upgrade system, including an AP, where the system further includes an AC;
  • the AC is configured to query, according to the version identifier carried in the version data request message sent by the AP, a hash value of the AP version file that the AP requests to download, and send a version data response message to the AP.
  • the version data response message carries the AP that the AP requests to download.
  • the hash value of the version file or a hash value that carries a value of zero.
  • the AC includes: a message receiving unit, a hash value query unit, a message sending unit, a hash value calculating unit, and a hash value storing unit; each unit function is the same as described above.
  • the technical solution provided by the embodiment of the present invention can directly read the hash value saved locally on the AC and send it to the AP, and does not need to recalculate the hash value of the AP version file, thereby saving the time for the version upgrade operation of the AP.
  • the efficiency of performing version upgrade operations on the AP can be effectively improved.
  • the AC calculates the hash value of the AP version file by reading the AP version file and distributing the file, and saves the value locally.
  • the local device can directly save the hash value saved and send it to the AP. This saves the time for the AP to upgrade the AP, especially when multiple APs are connected.
  • the efficiency of the version upgrade operation of the AP can be effectively improved.
  • FIG. 1 is a schematic diagram of networking of a WLAN in a related art thin AP architecture
  • FIG. 2 is a schematic flowchart of an implementation process of an AP version upgrade method according to an embodiment of the present invention
  • FIG. 3 is a schematic flowchart of an implementation process of an AP interacting with an AC to confirm an upgrade operation when an AP first accesses an AC according to an embodiment of the present invention
  • FIG. 4 is a schematic diagram of an implementation process for confirming an upgrade operation when an AP accesses an AC and interacts with an AC at any time of normal operation according to an embodiment of the present invention
  • FIG. 5 is a schematic structural diagram of an AP version upgrade system according to an embodiment of the present invention
  • FIG. 6 is a schematic flowchart of an implementation process of an AP version upgrade according to an embodiment of the present invention. detailed description
  • FIG. 2 is a schematic flowchart of an implementation process of an AP version upgrade method according to an embodiment of the present invention. As shown in FIG. 2, the method includes the following steps:
  • Step 21 The AC searches for the hash value of the AP version file that the AP requests to download according to the version identifier carried in the version data request message sent by the AP.
  • the AC upgrades the AP to the AP.
  • the two scenarios are applicable to the CAPWAP.
  • the AP can be used for the AP to access the AC for the first time.
  • step 21 the AP also interacts with the AC to confirm the upgrade.
  • FIG. 3 is a schematic diagram of an implementation process of interacting with an AC to confirm an upgrade operation when an AP first accesses an AC according to an embodiment of the present invention, as shown in FIG. 3, including the following steps:
  • Step 2111 The AC receives the uploaded AP version file.
  • Step 2112 When the AP accesses the AC for the first time, it sends an access request message carrying the version identifier of the AP version file currently running by the AP to the AC.
  • Step 2113 to step 2115 The AC detects whether the AP needs to be upgraded, and if yes, sends an access response message carrying the new version identifier to the AP, and then performs step 22; otherwise, the upgrade process is terminated, and the AP enters the configuration. Status.
  • the version identifier of the received access request message is first extracted, and the version identifier is compared with the version identifier of the locally saved AP version to determine the AP sending.
  • the corresponding version identifier corresponds to the new AP version file. If yes, the AP is not required to be upgraded. Otherwise, the AP needs to be upgraded.
  • Step 2121 The AC receives the uploaded AP. Version file.
  • Steps 2122 to 2124 The AC detects whether the AP needs to be upgraded. If yes, Sending a configuration update request message carrying the new version identifier to the AP, and notifying the AP to perform the version upgrade; otherwise, the operation is not performed.
  • the AC compares the version identifier of the newly uploaded AP version file with the version identifier of the AP version file corresponding to the AP that is locally maintained, and determines the AP version of the AP. Whether the file is a newer version. If yes, the AP is not required to be upgraded. Otherwise, the AP needs to be upgraded.
  • Step 2125 The AP returns a configuration update response message to the AC.
  • Step 22 The AC sends a version data response message to the AP, where the version data response message carries a hash value of the version file requested by the AP, or a hash value carrying a value of zero.
  • the AC sends a version data response message to the AP, where the data response message carries a hash value of the AP version file that the AP requests to download, or a hash value that carries a value of zero, including:
  • the AC If the AC locally queries the hash value of the AP version file that is requested to be downloaded, the AC sends a version data response message to the AP, where the message carries the hash value of the AP version file that is requested to be downloaded; otherwise, the AC sends the hash value to the AP.
  • a version data response message that carries a hash value with a value of zero.
  • the AC sends a version data response message to the AP, where the version data response message carries a hash value of the AP version file that the AP requests to download, or a hash value that carries a value of zero, and the version data response message is further
  • the AP will be asked to download the size value of the AP version file.
  • the AC queries the hash value of the AP version file to be downloaded locally, the AC sends a version data response message to the AP, where the version data response message carries the hash value of the AP version file that the AP requests to download.
  • the AP and the AC perform the following interactions: The AC fragments the AP version file and sends the version file data to the AP fragment through the version data request message.
  • the AP sends the data after receiving the version file data of the complete partial fragment. Merged into AP version In this file, the AP version file is verified according to the hash value and size value of the previously obtained AP version file. If the verification is successful, the upgrade operation is performed; otherwise, the version file data is continuously requested again until the verification is successful, and the upgrade is performed. operating.
  • the AC does not query the hash value of the AP version file that is requested to be downloaded locally, and sends a version data response message to the AP, where the data response message carries a hash value with a value of zero and a size value of the AP version file.
  • the AC fragments the AP version file and sends the version file data to the AP fragment through the version data request message.
  • the AC calculates the hash value of the AP version file, and the calculation is performed.
  • the hash value is saved locally.
  • the calculated hash value is carried in the data request message and sent to the AP.
  • the AP After receiving the version file data of all the pieces, the AP performs the following operations: The AP merges the received version file data into an AP version file, and performs an AP version file check according to the received file size and the hash value. If the verification is successful, the upgrade operation is performed; otherwise, the version file data is continuously requested again until the verification is successful, and the upgrade operation is performed.
  • FIG. 5 is a schematic structural diagram of a structure of an AP version file upgrade system according to an embodiment of the present invention. As shown in FIG. 5, the system includes: AC 51 and AP 52;
  • the AC 51 is configured to query, according to the version identifier carried in the version data request message sent by the AP 52, the hash value of the AP version file requested by the AP 52 to be downloaded, and send a version data response message to the AP 52, where the version data response
  • the message carries a hash value of the AP version file requested by the AP 52 to be downloaded, or a hash value carrying a value of zero.
  • the AC 51 includes: a message receiving unit 511, a hash value query unit 512, and a message transmitting unit 513 and a hash value storage unit 514;
  • the message receiving unit 511 is configured to receive a version data request message that is sent by the AP 52 and that carries the version identifier to request to download the AP version file.
  • the hash value query unit 512 is configured to receive the AP 52 at the message receiving unit 511.
  • the hash value storage unit 514 queries the hash value of the AP version file requested to be downloaded;
  • the message sending unit 513 is configured to send a version data response message to the AP 52, where the message carries a hash value of the AP version file, or carries a hash value with a value of zero.
  • the AC 51 further includes: a hash value calculation unit 515 configured to, when the hash value storage unit 514 does not query the hash value of the AP version file requested by the AP 52 to be downloaded, the hash value query unit 512 The hash value of the AP version file requested by the AP 52 for download is calculated and stored in the hash value storage unit 515.
  • a hash value calculation unit 515 configured to, when the hash value storage unit 514 does not query the hash value of the AP version file requested by the AP 52 to be downloaded, the hash value query unit 512 The hash value of the AP version file requested by the AP 52 for download is calculated and stored in the hash value storage unit 515.
  • the message sending unit 513 is further configured to send a version data response to the AP 52 when the hash value query unit 512 queries the hash value of the AP version file requested by the AP 52 in the hash value storage unit 514.
  • a message the version data response message carries a hash value of the AP version file requested by the AP 52 to be downloaded; the hash value query unit 512 does not query the AP version file of the AP 52 requesting the download in the hash value storage unit 514.
  • a version data response message is sent to the AP 52, the version data response message carrying a hash value having a value of zero.
  • the message sending unit 513 is further configured to: when the hash value calculating unit 515 calculates a hash value of the AP version file that is requested to be downloaded, send a version data request message to the AP 52, where the version data request is The message carries the hash value of the calculated AP version file.
  • the message receiving unit 511 and the message sending unit 513 may be combined into a messaging unit.
  • the message receiving unit 511 can be implemented by a receiver in the AC 51;
  • the hash value query unit 512 can be a central processing unit (CPU) in the AC 51, and a digital signal processor ( DSP, Digital Signal Processor) or Field-Programmable Gate Array (FPGA) implementation;
  • DSP Digital Signal Processor
  • FPGA Field-Programmable Gate Array
  • the message sending unit 513 can be implemented by a receiver in the AC 51;
  • the hash value storage unit 514 can be implemented by a memory in the AC 51;
  • the hash value calculation unit 515 can be implemented by a CPU, a DSP, or an FPGA in the AC 51.
  • FIG. 6 is a schematic flowchart of an implementation of upgrading an AP version according to an embodiment of the present invention. As shown in FIG. 6, the method includes the following steps:
  • Step 601 The AP sends a version data request message to the AC.
  • the version data request message carries the version identifier of the AP version
  • the AP and the AC are connected to the AC to confirm the step of performing the upgrade operation, and details are not described herein again.
  • Step 602 to step 603 The AC locally queries the hash value of the AP version file that the AP requests to download, and sends a version data response message to the AP.
  • the AC sends a version data response message to the AP, and sends a version data response message to the AP.
  • the version data response message carries a hash value of the AP version file that the AP requests to download. Otherwise, the AC sends the hash value of the AP version file that the AP requests to download.
  • the version data response message carries a hash value with a value of zero; the version data response message also carries the size value of the AP version file that the AP requests to download.
  • Step 604 ?? Step 605 The AC reads the AP version file, performs fragmentation, and sends the version file data of the fragment to the AP through the version data request message.
  • Step 606 After receiving the version file data of the fragment, the AP sends a version data response message to the AC to confirm that the data is successfully received.
  • step 606 the AP and the AC repeatedly perform step 605 and step 606 to perform multiple interactions to transmit the version file data of the slice.
  • the hash of the AP version file requested by the AP is calculated in the process of sending the version file data of the fragment. Value, and save the calculated hash value locally.
  • Step 607 The AC sends a version data request message to the AP, where the message carries the last piece of version file data.
  • step 602 the AC does not query the hash of the AP version file that is requested to be downloaded. If the value is the value, the AC will carry the hash value of the calculated AP version file in the version data request message and send it to the AP in the process of sending the version file data of the fragment.
  • Step 608 After receiving the version file data of the fragment, the AP sends a version data response message to the AC to confirm that the data is successfully received.
  • Step 609 The AP merges the received version file data into an AP version file, and performs a checksum upgrade operation.
  • the version file data received by the AP is an AP version file, and the AP version file is verified according to the received file size and the hash value. If the verification succeeds, the upgrade operation is performed; otherwise, the file is continued, and the version file is continuously requested again. Data, until the verification is successful, and the upgrade operation.
  • the AC directly reads the locally saved hash value and sends it to the AP, and does not need to recalculate the hash value of the AP version file, thereby saving the time for the AP to perform the version upgrade operation, especially in the case of When an AP accesses the AC at the same time, the AP can effectively improve the version upgrade operation of the AP.
  • the AC uses the AP version file to upgrade the AP for the first time
  • the AC uses the read AP version file and delivers the fragment.
  • the process calculates the hash value of the AP version file and saves the value locally.
  • the subsequent AC uses the AP version file to perform upgrade operations on other APs, it directly reads the locally saved hash value and sends it to the AP.
  • the time for upgrading the AP is saved. In particular, when multiple APs are connected to the AC at the same time, the efficiency of upgrading the AP is improved.

Landscapes

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

Abstract

本发明实施例公开了一种无线接入点(AP)版本升级的方法,接入控制器(AC)根据AP发送的版本数据请求消息携带的版本识别码,在本地查询所述AP请求下载的AP版本文件的哈希值,并向所述AP发送指示进行版本升级的版本数据应答消息,该版本数据应答消息携带所述AP请求下载的AP版本文件的哈希值、或携带值为零的哈希值。本发明实施例还同时公开了一种AP版本升级的系统及设备,采用本发明实施例的方案,节省了AC对AP版本升级时单独计算AP版本文件哈希值的时间,提高了AP版本升级的效率。

Description

无线接入点版本升级的方法、 系统及设备 技术领域
本发明涉及无线局域网( WLAN, Wireless Local Area Network )的无线 接入技术, 尤其涉及一种无线接入点(AP, Access Point )版本升级的方法、 系统及设备。 背景技术
相关技术中, WLAN普遍采用 AP加接入控制器( AC, Access Controller ) 的瘦 AP 架构。 在瘦 AP 架构下, AC 通过无线接入点控制配置协议 ( CAPWAP , Control And Provisioning of Wireless Access Points Protocol ) 对 AP进行配置管理、 版本升级等操作, 如图 1中虚线所示为 CAPWAP管 理报文和控制报文的传送通道, 该通道设置于网络和 AP之间, 通道中包括 宽带远程计接入服务器、 路由器和交换机, 实线所示为数据报文的传送通 道, AP将终端接入相应的通道, 以实现网络接入。
CAPWAP定义了 AC对 AP进行版本升级操作的流程,分为 AP首次接 入 AC时和 AP接入 AC后正常运行时两种场景, 其中, 在上述两种场景对 应的升级流程中, 当 AP向 AC请求 AP版本文件时, AC需要计算出该 AP 版本文件的哈希值之后才能继续升级操作。如此,当接入 AC的 AP较多时, AC在每次升级时都需要计算出请求下载的 AP版本文件的哈希值, 并在计 算完毕后才能继续升级操作, 升级效率低。 发明内容
有鉴于此,本发明实施例提供了一种 AP版本升级的方法、系统及设备, 以至少解决 AP版本升级效率低的问题。 为达到上述目的, 本发明实施例的技术方案是这样实现的: 本发明实施例提供了一种 AP版本升级的方法, 该方法包括:
AC根据 AP发送的版本数据请求消息携带的版本识别码的, 在本地查 询所述 AP请求下载的 AP版本文件的哈希值;
所述 AC向所述 AP发送指示进行版本升级的版本数据应答消息,该版 本数据应答消息携带所述 AP请求下载的 AP版本文件的哈希值、 或携带值 为零的哈希值。
优选地, 所述 AC向 AP发送版本数据应答消息, 该版本数据应答消息 携带所述 AP请求下载的 AP版本文件的哈希值、 或携带值为零的哈希值, 包括:
若所述 AC在本地查询到请求下载的 AP版本文件的哈希值,则向所述 AP发送版本数据应答消息, 该版本数据应答消息携带所述 AP请求下载的 AP版本文件的哈希值; 否则, 向所述 AP发送版本数据应答消息, 该版本 数据应答消息携带值为零的哈希值。
优选地, 所述 AC向 AP发送版本数据应答消息后, 该方法还包括: 所述 AC计算出所述 AP请求下载的 AP版本文件的哈希值, 并将计算 出的哈希值保存在本地。
优选地,所述 AC计算出所述 AP请求下载的 AP版本文件的哈希值后, 该方法还包括:
所述 AC向所述 AP发送版本数据请求消息,该版本数据请求消息携带 所述 AP请求下载的 AP版本文件的哈希值。
本发明实施例还提供了一种 AC, 该 AC包括; 消息接收单元、 哈希值 查询单元、 消息发送单元和哈希值存储单元; 其中,
所述消息接收单元, 配置为接收 AP发送的、 携带版本识别码的版本 数据请求消息; 所述哈希值存储单元, 用于存储 AP版本文件的哈希值; 所述哈希值查询单元, 配置为根据所述消息接收单元接收到的版本数 据请求消息携带的版本识别码,在所述哈希值存储单元查询所述 AP请求下 载的 AP版本文件的哈希值;
所述消息发送单元,配置为向所述 AP发送指示进行版本升级的版本数 据应答消息,该版本数据应答消息携带所述哈希值查询单元查询到的 AP版 本文件的哈希值、 或携带值为零的哈希值。
优选地, 所述哈希值计算单元, 还配置为在所述哈希值查询单元在哈 希值存储单元没有查询到所述 AP请求下载的 AP版本文件的哈希值时, 计 算所述 AP请求下载的 AP版本文件的哈希值并存储至所述哈希值存储单 元。
优选地, 所述消息发送单元, 还配置为在所述哈希值查询单元查询到 所述 AP请求下载的 AP版本文件的哈希值时, 向所述 AP发送版本数据应 答消息, 该版本数据应答消息携带所述 AP请求下载的 AP版本文件的哈希 值; 在所述哈希值查询单元没有查询到所述 AP请求下载的 AP版本文件的 哈希值时, 向所述 AP发送版本数据应答消息, 该版本数据应答消息携带值 为零的哈希值。
优选地, 所述消息发送单元, 还配置为在所述哈希值计算单元计算出 所述 AP请求下载的 AP版本文件的哈希值时, 向所述 AP发送版本数据请 求消息, 该版本数据请求消息所述计算出的 AP版本文件的哈希值。
相应地, 本发明实施例还提供了一种 AP版本升级系统, 包括 AP, 该 系统还包括 AC; 其中,
所述 AC,配置为根据所述 AP发送的版本数据请求消息携带的版本识 别码, 在本地查询所述 AP请求下载的 AP版本文件的哈希值; 向所述 AP 发送版本数据应答消息, 该版本数据应答消息携带所述 AP请求下载的 AP 版本文件的哈希值、 或携带值为零的哈希值。
优选地, 所述 AC包括: 消息接收单元、 哈希值查询单元、 消息发送单 元、 哈希值计算单元和哈希值存储单元; 各单元功能与以上所述相同。
本发明实施例所提供的技术方案,能够直接读取在 AC本地保存的哈希 值并发送给 AP, 不需要重新计算 AP版本文件的哈希值, 节省了对 AP进 行版本升级操作的时间, 特别是在多个 AP同时接入 AC时, 能有效提高对 AP进行版本升级操作的效率。
并且, AC在第一次使用 AP版本文件对 AP进行升级操作时, AC利用 读取 AP版本文件并分片下发的过程计算 AP版本文件的哈希值, 并将该值 保存在本地, 后续 AC使用该 AP版本文件对其他 AP进行升级操作时, 直 接读取在本地保存的哈希值并发送给 AP即可, 节省了对 AP进行版本升级 操作的时间, 特别是在多个 AP同时接入 AC时, 能有效提高对 AP进行版 本升级操作的效率。 附图说明
图 1为相关技术瘦 AP架构下 WLAN的组网示意图;
图 2为本发明实施例的 AP版本升级方法的实现流程示意图; 图 3为本发明实施例的 AP首次接入 AC时与 AC交互以确认进行升级 操作的实现流程示意图;
图 4为本发明实施例的 AP接入 AC后在正常运行的任意时刻与 AC交 互以确认进行升级操作的实现流程示意图;
图 5为本发明实施例的 AP版本升级系统的组成结构示意图; 图 6为本发明实施例的 AP版本升级的实现流程示意图。 具体实施方式
下面结合附图及具体实施例对本发明再作进一步详细的说明。 图 2为本发明实施例的 AP版本升级方法的实现流程示意图, 如图 2 所示, 包括以下步骤:
步骤 21 : AC根据 AP发送的版本数据请求消息携带的版本识别码, 在本地查询所述 AP请求下载的 AP版本文件的哈希值。
其中, AC对 AP进行版本升级操作可以应用于 CAPWAP规定的两种 升级场景, 既可以应用于 AP首次接入 AC时, 也可以应用于 AP接入 AC 后正常运行的任意时刻。
其中, 在步骤 21之前, AP与 AC还进行交互以确认进行升级。
图 3为本发明实施例的 AP首次接入 AC时与 AC交互以确认进行升级 操作的实现流程示意图, 如图 3所示, 包括以下步骤:
步骤 2111 : AC接收上传的 AP版本文件。
步骤 2112: AP首次接入 AC时, 向 AC发送携带 AP当前运行的 AP 版本文件的版本识别码的接入请求消息。
步骤 2113〜步骤 2115: AC检测是否需要对该 AP进行版本升级,如果 是, 则向 AP发送携带新版本识别码的接入响应消息, 然后执行步骤 22; 否则, 升级流程终止, AP进入配置下发状态。
其中, AC检测是否需要对该 AP进行版本升级时, 首先提取出接收的 接入请求消息携带的版本识别码,并将该版本识别码与本地保存的 AP版本 的版本识别码对比, 确定 AP发送的对应版本识别码是否对应新的 AP版本 文件, 如果是, 则不需要该 AP进行版本升级, 否则, 则需要该 AP进行版 本升级。
图 4为本发明实施例的 AP接入 AC后在正常运行的任意时刻与 AC交 互以确认进行升级操作的实现流程示意图, 如图 4所示, 包括以下步骤: 步骤 2121 : AC接收上传的 AP版本文件。
步骤 2122 ~ 2124: AC检测是否需要对该 AP进行版本升级, 如果是, 则向 AP发送携带新版本识别码的配置更新请求消息, 通知 AP进行版本升 级; 否则, 不执行操作。
其中, 所述 AC检测是否需要对该 AP进行版本升级时, AC将新上传 的 AP版本文件的版本识别码与本地维护的该 AP对应 AP版本文件的版本 识别码做比较, 确定 AP的 AP版本文件是否为较新的版本, 如果是, 则不 需要该 AP进行版本升级, 否则, 则需要该 AP进行版本升级。
步骤 2125: AP向 AC返回配置更新应答消息。
步骤 22: 所述 AC向所述 AP发送版本数据应答消息, 所述版本数据 应答消息携带所述 AP请求下载的版本文件的哈希值、或携带值为零的哈希 值。
其中, 所述 AC向 AP发送版本数据应答消息, 所述数据应答消息携带 所述述 AP请求下载的 AP版本文件的哈希值、 或携带值为零的哈希值, 包 括:
若步骤 21 中, AC在本地查询到请求下载的 AP版本文件的哈希值, 则向 AP发送版本数据应答消息, 所述消息携带请求下载的 AP版本文件的 哈希值; 否则, 向 AP发送版本数据应答消息, 所述消息携带值为零的哈希 值。
其中, 所述 AC向 AP发送版本数据应答消息, 所述版本数据应答消 息携带所述 AP请求下载的 AP版本文件的哈希值、或携带值为零的哈希值, 该版本数据应答消息还会携带所述 AP请求下载 AP版本文件的大小值。
其中, 所述 AC在本地查询到请求下载的 AP版本文件的哈希值, 则向 AP发送版本数据应答消息, 所述版本数据应答消息携带所述 AP请求下载 的 AP版本文件的哈希值和大小值之后, AP与 AC还根据进行以下交互操 作: AC将 AP版本文件分片, 并通过版本数据请求消息向 AP分片发送版 本文件数据, AP在接收完全部分片的版本文件数据后将数据合并为 AP版 本文件,根据之前获取的 AP版本文件的哈希值和大小值校验 AP版本文件, 若校验成功, 则进行升级操作; 否则, 继续重新请求版本文件数据, 直至 校验成功, 并进行升级操作。
其中, 所述 AC在本地没有查询到请求下载的 AP版本文件的哈希值, 则向 AP发送版本数据应答消息,所述数据应答消息携带值为零的哈希值和 AP版本文件的大小值之后, AC将 AP版本文件分片, 并通过版本数据请 求消息向 AP分片发送版本文件数据,在上述分片发送版本文件数据的过程 中, AC计算该 AP版本文件的哈希值, 将计算出的哈希值保存在本地, 在 AC通过数据请求消息向 AP发送最后一片版本文件数据时, 将计算出的哈 希值携带在该数据请求消息中, 发送给 AP。
其中,所述 AP接收到全部分片的版本文件数据之后,还进行以下操作: AP合并接收的版本文件数据为 AP版本文件, 根据接收的文件大小和哈希 值进行 AP版本文件校验, 若校验成功, 则进行升级操作; 否则, 继续重新 请求版本文件数据, 直至校验成功, 并进行升级操作。
图 5为本发明实施例的 AP版本文件升级系统的组成结构示意图,如图 5所示, 该系统包括: AC 51和 AP 52; 其中,
AC 51,配置为根据 AP 52发送的版本数据请求消息携带的版本识别码, 在本地查询 AP 52请求下载的 AP版本文件的哈希值;向 AP 52发送版本数 据应答消息,所述版本数据应答消息携带 AP 52请求下载的 AP版本文件的 哈希值、 或携带值为零的哈希值。
优选地, AC 51包括; 消息接收单元 511、 哈希值查询单元 512和消息 发送单元 513和哈希值存储单元 514; 其中,
消息接收单元 511, 配置为接收 AP 52 发送的、 携带版本识别码以请 求下载 AP版本文件的版本数据请求消息;
哈希值查询单元 512,配置为在所述消息接收单元 511接收到 AP 52发 送的、携带版本识别码以请求下载 AP版本文件的版本数据请求消息时,在 哈希值存储单元 514查询请求下载的 AP版本文件的哈希值;
消息发送单元 513, 配置为向 AP 52发送版本数据应答消息, 该消息携 带 AP版本文件的哈希值、 或携带值为零的哈希值。
优选地, AC 51还包括: 哈希值计算单元 515, 配置为在所述哈希值查 询单元 512在哈希值存储单元 514没有查询到 AP 52请求下载的 AP版本文 件的哈希值时,计算 AP 52请求下载的 AP版本文件的哈希值并存储至哈希 值存储单元 515。
优选地, 消息发送单元 513, 还配置为在所述哈希值查询单元 512在哈 希值存储单元 514查询到 AP 52请求下载的 AP版本文件的哈希值时, 向 AP 52发送版本数据应答消息,所述版本数据应答消息携带 AP 52请求下载 的 AP版本文件的哈希值; 在所述哈希值查询单元 512在哈希值存储单元 514没有查询到 AP 52请求下载的 AP版本文件的哈希值时, 向 AP 52发送 版本数据应答消息, 所述版本数据应答消息携带值为零的哈希值。
优选地, 所述消息发送单元 513, 还配置为在所述哈希值计算单元 515 计算出请求下载的 AP版本文件的哈希值时,向 AP 52发送版本数据请求消 息, 所述版本数据请求消息所述携带计算出的 AP版本文件的哈希值。
实际应用中, 所述消息接收单元 511和所述消息发送单元 513可以合 并为消息收发单元。
实际应用中, 所述消息接收单元 511, 可由 AC 51中的接收机实现; 所述哈希值查询单元 512, 可由 AC 51中的中央处理器(CPU, Central Processing Unit )、 数字信号处理器(DSP, Digital Signal Processor )或可编 程门阵列 (FPGA, Field - Programmable Gate Array ) 实现;
所述消息发送单元 513, 可由 AC 51中的接收机实现;
所述哈希值存储单元 514, 可由 AC 51中的存储器实现; 所述哈希值计算单元 515, 可由 AC 51中的 CPU、 DSP或 FPGA实现。 图 6为本发明实施例的 AP版本升级的实现流程示意图, 如图 6所示, 包括以下步骤:
步骤 601: AP向 AC发送版本数据请求消息;
该版本数据请求消息携带 AP版本的版本识别码;
其中, 步骤 601之前, 还包括如图 3或图 4所示的 AP与 AC交互以确 认进行升级操作的步骤, 此处不再赘述。
步骤 602 ~步骤 603: AC在本地查询 AP请求下载的 AP版本文件的哈 希值, 并向 AP发送版本数据应答消息;
其中, AC在本地查询到请求下载的 AP版本文件的哈希值, 则向 AP 发送版本数据应答消息, 该版本数据应答消息携带 AP请求下载的 AP版本 文件的哈希值; 否则, 向 AP发送版本数据应答消息, 该消息携带值为零的 哈希值;该版本数据应答消息还携带 AP请求下载的 AP版本文件的大小值。
步骤 604 ~步骤 605: AC读取 AP版本文件, 进行分片, 并通过版本 数据请求消息向 AP发送分片的版本文件数据;
步骤 606: AP接收到分片的版本文件数据后, 向 AC发送版本数据应 答消息, 确认数据接收成功;
步骤 606之后, AP与 AC按重复执行步骤 605和步骤 606, 进行多次 交互, 传输分片的版本文件数据。
其中, 若步骤 602中, AC在本地没有查询到 AP请求下载的 AP版本 文件的哈希值, 则在上述发送分片的版本文件数据的过程中,计算 AP请求 下载的 AP版本文件的哈希值, 并将计算出的哈希值保存在本地。
步骤 607: AC向 AP发送版本数据请求消息, 该消息携带最后一片版 本文件数据;
其中, 若步骤 602中, AC没有查询到请求下载的 AP版本文件的哈希 值,则 AC将在步骤 606所述的发送分片的版本文件数据的过程中,计算出 的 AP版本文件的哈希值携带在上述版本数据请求消息中, 发送给 AP。
步骤 608: AP接收到分片的版本文件数据后, 向 AC发送版本数据应 答消息, 确认数据接收成功;
步骤 609: AP合并接收的版本文件数据为 AP版本文件, 并进行校验 和升级操作。
其中, AP合并接收的版本文件数据为 AP版本文件, 根据接收的文件 大小和哈希值进行 AP版本文件校验,若校验成功,则进行升级操作;否贝' J, 继续重新请求版本文件数据, 直至校验成功, 并进行升级操作。
以上所述, 仅为本发明的较佳实施例而已, 并非用来限定本发明的保 护范围。 工业实用性
本发明实施例中, AC直接读取在本地保存的哈希值并发送给 AP, 不 需要重新计算该 AP版本文件的哈希值, 节省了对 AP进行版本升级操作的 时间, 特别是在多个 AP同时接入 AC时, 能有效提高对 AP进行版本升级 操作的效率; 并且, AC在第一次使用 AP版本文件对 AP进行升级操作时, AC利用读取 AP版本文件并分片下发的过程计算 AP版本文件的哈希值, 并将该值保存在本地, 后续 AC使用该 AP版本文件对其他 AP进行升级操 作时, 直接读取在本地保存的哈希值并发送给 AP即可, 节省了对 AP进行 版本升级操作的时间, 特别是在多个 AP 同时接入 AC 时, 能有效提高对 AP进行版本升级操作的效率。

Claims

权利要求书
1、 一种无线接入点 AP版本升级的方法, 该方法包括:
接入控制器 AC根据 AP发送的版本数据请求消息携带的版本识别码, 在本地查询所述 AP请求下载的 AP版本文件的哈希值;
所述 AC向所述 AP发送指示进行版本升级的版本数据应答消息,所述 版本数据应答消息携带所述 AP请求下载的 AP版本文件的哈希值、 或携带 值为零的哈希值。
2、 根据权利要求 1所述的方法, 其中, 所述 AC向所述 AP发送版本 数据应答消息, 所述消息携带 AP版本文件的哈希值、或携带值为零的哈希 值, 包括:
若所述 AC在本地查询到请求下载的 AP版本文件的哈希值,则向所述 AP发送版本数据应答消息, 所述版本数据应答消息携带所述 AP请求下载 的 AP版本文件的哈希值; 否则, 向所述 AP发送版本数据应答消息, 所述 版本数据应答消息携带值为零的哈希值。
3、 根据权利要求 1或 2所述的方法, 其中, 所述 AC向所述 AP发送 版本数据应答消息后, 该方法还包括:
所述 AC计算出所述 AP请求下载的 AP版本文件的哈希值, 并将计算 出的哈希值保存在本地。
4、 根据权利要求 3所述的方法, 其中, 所述 AC计算出所述 AP请求 下载的 AP版本文件的哈希值后, 该方法还包括:
所述 AC向所述 AP发送版本数据请求消息,所述版本数据请求消息携 带所述 AP请求下载的 AP版本文件的哈希值。
5、 一种 AC, 该 AC 包括; 消息接收单元、 哈希值查询单元、 消息发 送单元和哈希值存储单元; 其中,
所述消息接收单元, 配置为接收 AP发送的、 携带版本识别码的版本 数据请求消息;
所述哈希值存储单元, 用于存储 AP版本文件的哈希值;
所述哈希值查询单元, 配置为根据所述消息接收单元接收到的数据请 求消息携带的版本识别码,在所述哈希值存储单元查询所述 AP请求下载的
AP版本文件的哈希值;
所述消息发送单元,配置为向所述 AP发送指示进行版本升级的版本数 据应答消息, 所述版本数据应答消息携带所述哈希值查询单元查询到的 AP 版本文件的哈希值、 或携带值为零的哈希值。
6、 根据权利要求 5所述的 AC, 其中,
所述消息发送单元,还配置为在所述哈希值查询单元查询到所述 AP请 求下载的 AP版本文件的哈希值时, 向所述 AP发送版本数据应答消息, 所 述版本数据应答消息携带所述 AP请求下载的 AP版本文件的哈希值; 在所 述哈希值查询单元没有查询到所述 AP请求下载的 AP版本文件的哈希值 时, 向所述 AP发送版本数据应答消息, 所述版本数据应答消息携带值为零 的哈希值。
7、 根据权利要求 5或 6所述的 AC, 其中, 该 AC还包括:
哈希值计算单元,配置为在所述哈希值查询单元没有查询到所述 AP请 求下载的 AP版本文件的哈希值时, 计算所述 AP请求下载的 AP版本文件 的哈希值并存储至所述哈希值存储单元。
8、 根据权利要求 7所述的 AC, 其中,
所述消息发送单元,还配置为在所述哈希值计算单元计算出所述 AP请 求下载的 AP版本文件的哈希值时, 向所述 AP发送版本数据请求消息, 所 述版本数据请求消息携带所述计算出的 AP版本文件的哈希值。
9、 一种 AP版本升级系统, 包括 AP, 该系统还包括:
AC,配置为根据所述 AP发送的版本数据请求消息携带的版本识别码, 在本地查询所述 AP请求下载的 AP版本文件的哈希值; 向所述 AP发送版 本数据应答消息, 所述版本数据应答消息携带所述 AP请求下载的 AP版本 文件的哈希值、 或携带值为零的哈希值, 以进行 AP版本升级。
10、 根据权利要求 9所述的系统, 其中, 所述 AC为权利要求 5至 8 任一项所述的 AC。
PCT/CN2013/081354 2012-08-28 2013-08-13 无线接入点版本升级的方法、系统及设备 WO2014032516A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201210310332.0A CN103634782B (zh) 2012-08-28 2012-08-28 一种ap版本升级的方法、系统及设备
CN201210310332.0 2012-08-28

Publications (1)

Publication Number Publication Date
WO2014032516A1 true WO2014032516A1 (zh) 2014-03-06

Family

ID=50182477

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/081354 WO2014032516A1 (zh) 2012-08-28 2013-08-13 无线接入点版本升级的方法、系统及设备

Country Status (2)

Country Link
CN (1) CN103634782B (zh)
WO (1) WO2014032516A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108882277A (zh) * 2018-05-28 2018-11-23 新华三技术有限公司 一种版本升级的方法及装置
CN112367350A (zh) * 2020-09-29 2021-02-12 新华三大数据技术有限公司 一种版本文件运行方法及装置

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103987064B (zh) * 2014-05-09 2018-10-26 新华三技术有限公司 接入点ap升级方法及装置
CN106060135B (zh) * 2016-05-31 2019-08-06 新华三技术有限公司 一种版本更新方法和装置
CN106470124A (zh) * 2016-11-25 2017-03-01 杭州迪普科技股份有限公司 一种无线接入点的升级方法及装置
CN108471361B (zh) * 2018-03-28 2021-08-24 新华三技术有限公司 一种版本升级方法及装置

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005309759A (ja) * 2004-04-21 2005-11-04 Nippon Telegr & Teleph Corp <Ntt> 電子データ提供システムと方法およびプログラム
CN101668041A (zh) * 2009-09-10 2010-03-10 杭州华三通信技术有限公司 一种分布式ap下载的方法和装置
CN101808315A (zh) * 2010-04-08 2010-08-18 北京傲天动联技术有限公司 瘦ap升级方法

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005309759A (ja) * 2004-04-21 2005-11-04 Nippon Telegr & Teleph Corp <Ntt> 電子データ提供システムと方法およびプログラム
CN101668041A (zh) * 2009-09-10 2010-03-10 杭州华三通信技术有限公司 一种分布式ap下载的方法和装置
CN101808315A (zh) * 2010-04-08 2010-08-18 北京傲天动联技术有限公司 瘦ap升级方法

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108882277A (zh) * 2018-05-28 2018-11-23 新华三技术有限公司 一种版本升级的方法及装置
CN108882277B (zh) * 2018-05-28 2022-04-26 新华三技术有限公司 一种版本升级的方法及装置
CN112367350A (zh) * 2020-09-29 2021-02-12 新华三大数据技术有限公司 一种版本文件运行方法及装置
CN112367350B (zh) * 2020-09-29 2022-04-01 新华三大数据技术有限公司 一种版本文件运行方法及装置

Also Published As

Publication number Publication date
CN103634782A (zh) 2014-03-12
CN103634782B (zh) 2017-05-03

Similar Documents

Publication Publication Date Title
WO2014032516A1 (zh) 无线接入点版本升级的方法、系统及设备
JP7014887B2 (ja) Pduタイプ設定方法、ueポリシー設定方法、および関連エンティティ
US7693513B2 (en) Methods and apparatus for transferring service flow context of mobile broadband wireless access networks
WO2011006328A1 (zh) 设备固件升级系统及方法、设备管理服务器及移动终端
WO2016149908A1 (zh) 一种终端系统的升级方法、终端及系统
US9774642B2 (en) Method and device for pushing multimedia resource and display terminal
WO2010034257A1 (zh) 一种终端配置和管理方法及终端装置
WO2011076146A1 (zh) 下载应用数据的方法、数字电视接收终端及系统
WO2009030164A1 (fr) Procédé, système et dispositif pour empêcher l&#39;attaque par dégradation pendant qu&#39;un terminal se déplace
US20100298011A1 (en) Method and Appartus for Remote Software Installation and Execution on a Mobile Device
US20110093536A1 (en) Group owner selection with crossing requests
WO2012139474A1 (zh) 数据的获取方法、设备和系统
WO2012174799A1 (zh) 升级包下载及安装的方法、服务器及系统
WO2013083026A1 (zh) 无线局域网接入认证的方法及装置
WO2014161278A1 (zh) 一种移动终端及其升级方法
WO2015123890A1 (zh) 一种m2m中信息处理的方法和装置
WO2014043862A1 (zh) 用户设备跟踪方法及系统、接入设备、接入控制器
WO2011153771A1 (zh) 一种m2m终端远程升级的系统和方法
WO2012152090A1 (zh) 多模终端的终端管理升级方法及装置
WO2018032573A1 (zh) 数据处理方法、装置、服务器及终端
WO2012130048A1 (zh) 设备管理系统中对网关进行初始化的方法及装置
CN115879111A (zh) 一种安全启动的方法、装置和系统
WO2016184209A1 (zh) 一种应用下载方法、推送方法、装置及系统
WO2015006901A1 (zh) 一种数据流处理方法、设备和系统
US10979287B2 (en) Method and apparatus for receiving a solution when configuration function verification fails in a terminal

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

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

Country of ref document: EP

Kind code of ref document: A1