CN106254440B - AP upgrading method and device - Google Patents

AP upgrading method and device Download PDF

Info

Publication number
CN106254440B
CN106254440B CN201610613605.7A CN201610613605A CN106254440B CN 106254440 B CN106254440 B CN 106254440B CN 201610613605 A CN201610613605 A CN 201610613605A CN 106254440 B CN106254440 B CN 106254440B
Authority
CN
China
Prior art keywords
upgraded
data blocks
upgrading
upgrade
data block
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN201610613605.7A
Other languages
Chinese (zh)
Other versions
CN106254440A (en
Inventor
余忠益
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou DPTech Technologies Co Ltd
Original Assignee
Hangzhou DPTech Technologies Co Ltd
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 Hangzhou DPTech Technologies Co Ltd filed Critical Hangzhou DPTech Technologies Co Ltd
Priority to CN201610613605.7A priority Critical patent/CN106254440B/en
Publication of CN106254440A publication Critical patent/CN106254440A/en
Application granted granted Critical
Publication of CN106254440B publication Critical patent/CN106254440B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1074Peer-to-peer [P2P] networks for supporting data block transmission mechanisms
    • H04L67/1078Resource delivery mechanisms
    • H04L67/108Resource delivery mechanisms characterised by resources being split in blocks or fragments
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/084Configuration by using pre-existing information, e.g. using templates or copying from other elements
    • H04L41/0846Configuration by using pre-existing information, e.g. using templates or copying from other elements based on copy from other elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/04Arrangements for maintaining operational condition

Abstract

The application provides an AP upgrading method and device, wherein the method comprises the following steps: the AP to be upgraded receives a data block index table which is issued by the AC and corresponds to the upgrade file; the upgrading file is divided into a plurality of data blocks by the AC, and the data blocks are distributed and stored in different upgraded APs; the data block index table comprises a mapping relation between the data blocks and the IP of the upgraded AP which stores the data blocks; downloading data blocks from each upgraded AP based on the data block index table; and splicing the downloaded data blocks into the upgrade file, and upgrading the upgrade file based on the upgrade file obtained by splicing. In the embodiment of the application, the AP to be upgraded acquires the upgrade file from the upgraded AP, and the method replaces the prior art that the upgrade file is acquired from the AC, so that the time for upgrading the AP is changed from linear increase to logarithmic increase, and along with the increase of the number of the APs, the time for upgrading the AP is obviously saved.

Description

AP upgrading method and device
Technical Field
the present application relates to the field of communications technologies, and in particular, to an AP upgrading method and apparatus.
Background
an AC (Wireless Access Point) is a network device, is used to control Wireless APs (Wireless Access points) in a centralized manner, is a core of a Wireless network, is responsible for managing all Wireless APs in the Wireless network, and includes: configuration issuing, relevant configuration parameter modification, radio frequency management only, access security control and the like. CAPWAP (Control And Provisioning of Wireless Access Points Protocol Specification), specifies how the AP obtains the software version from the AC. Specifically, the upgrade command is issued when the AC finds that the AP image versions do not match. Then, the AP will receive the image file segments and assemble them into a complete upgrade file, and finally, the upgrade is completed. Due to the limited bandwidth and processing power of the AC, only a certain number of AP upgrades can be supported at one time. The remaining APs can only be added to the wait queue until the previous AP is upgraded, and the time spent in the upgrade process is increased linearly. When the number of APs is large, the upgrade time is too long.
disclosure of Invention
in view of this, the present application provides a method and an apparatus for upgrading an AP, so as to solve the problem that when the number of APs is large, the upgrading time is too long.
specifically, the method is realized through the following technical scheme:
An AP upgrading method is applied to an AP to be upgraded and comprises the following steps:
Receiving a data block index table which is sent by an AC and corresponds to an upgrade file; the upgrading file is divided into a plurality of data blocks by the AC, and the data blocks are distributed and stored in different upgraded APs; the data block index table comprises a mapping relation between the data blocks and the IP of the upgraded AP which stores the data blocks;
Downloading data blocks from each upgraded AP based on the data block index table;
and splicing the downloaded data blocks into the upgrade file, and upgrading the upgrade file based on the upgrade file obtained by splicing.
in the method for upgrading the AP, the method further includes:
receiving the size of the upgrade file sent by the AC and a hash value calculated based on the upgrade file;
The upgrading file obtained based on splicing is upgraded, and the upgrading file comprises:
Integrity check is carried out on the upgrade files obtained through splicing based on the size of the upgrade files and the hash values of the upgrade files;
And when the integrity check passes, upgrading the upgrade file obtained based on the splicing, and sending a response message of successful upgrading to the AC after the upgrade is successful.
in the method for upgrading the AP, the method further includes:
when a data block download on any upgraded AP fails, the data block is downloaded from the AC.
an upgrading method of an AP is applied to an AC and comprises the following steps:
Splitting an upgrade file into a plurality of data blocks, and storing the data blocks in different upgraded APs;
Generating a data block index table corresponding to the upgrade file; the data block index table comprises a mapping relation between the data blocks and the IP of the upgraded AP which stores the data blocks;
and issuing the data block index table to the AP to be upgraded.
In the method for upgrading the AP, the method further includes:
and after receiving a response message of successful upgrading sent by the AP to be upgraded, splitting the upgrading file into a plurality of data blocks again to distribute the data blocks to each upgraded AP, and updating the data block index table.
An upgrading device of an AP is applied to the AP to be upgraded and comprises:
the receiving unit is used for receiving a data block index table which is sent by the AC and corresponds to the upgrade file; the upgrading file is divided into a plurality of data blocks by the AC, and the data blocks are distributed and stored in different upgraded APs; the data block index table comprises a mapping relation between the data blocks and the IP of the upgraded AP which stores the data blocks;
A downloading unit, configured to download the data block from each upgraded AP based on the data block index table;
And the upgrading unit is used for splicing the downloaded data blocks into the upgrading file and upgrading the upgrading file based on the upgrading file obtained by splicing.
In the AP upgrading apparatus, the method further includes:
the receiving unit is further configured to receive the size of the upgrade file sent by the AC and a hash value calculated based on the upgrade file;
the upgrading unit is further used for carrying out integrity check on the upgrade files obtained by splicing based on the size of the upgrade files and the hash values of the upgrade files; and when the integrity check passes, upgrading the upgrade file obtained based on the splicing, and sending a response message of successful upgrading to the AC after the upgrade is successful.
In the upgrade apparatus for an AP, the download unit is further configured to:
when a data block download on any upgraded AP fails, the data block is downloaded from the AC.
an upgrading device of an AP, applied to an AC, comprises:
The split unit is used for splitting the upgrade file into a plurality of data blocks and storing the data blocks in different upgraded APs;
the generating unit is used for generating a data block index table corresponding to the upgrading file; the data block index table comprises a mapping relation between the data blocks and the IP of the upgraded AP which stores the data blocks;
And the issuing unit is used for issuing the data block index table to the AP to be upgraded.
in the upgrade apparatus of the AP, the splitting unit is further configured to:
and after receiving a response message of successful upgrading sent by the AP to be upgraded, splitting the upgrading file into a plurality of data blocks again to distribute the data blocks to each upgraded AP, and updating the data block index table.
according to the technical scheme provided by the embodiment of the application, the AP to be upgraded receives the data block index table issued by the AC, and downloads the data block to the upgraded AP according to the data block index table. And the AP to be upgraded is spliced into an upgrade file according to the received data blocks, and the upgrade is completed according to the upgrade file. With the increase of the number of the APs to be upgraded, the technical scheme has more obvious advantages, the work of transmitting the data block is completed by the upgraded APs with the increasing number, and the problem that the upgrading time is too long when the number of the APs is large is effectively solved.
drawings
Fig. 1A is a flowchart of an AP upgrading method shown in the present application;
fig. 1B is a flowchart of another AP upgrade method shown in the present application;
fig. 2 is a logic block diagram of an upgrading apparatus of an AP shown in the present application;
fig. 3 is a hardware configuration diagram of an upgrade apparatus of an AP shown in the present application;
Fig. 4 is a logic block diagram of an upgrade apparatus of another AP shown in the present application;
Fig. 5 is a hardware configuration diagram of another AP upgrade apparatus according to the present application.
Detailed Description
in order to make the technical solutions in the embodiments of the present invention better understood and make the above objects, features and advantages of the embodiments of the present invention more comprehensible, the technical solutions in the embodiments of the present invention are described in further detail below with reference to the accompanying drawings.
The CAPWAP protocol specifies the manner in which the AP is upgraded. Firstly, in the phase of AP associating AC, AC sends Join Response message to AP. And triggering the AP to respond to the AC by the file version in the Join Response message to download the upgrading file, and upgrading according to the upgrading file. Secondly, after the AP associates with the AC, when the user considers that it is necessary to upgrade a certain AP, the AP is determined to be upgraded on the AC, so that the AC sends an upgrade command (Configuration Update Request message) to the AP, the AP is triggered to respond to the Request for downloading the upgrade file from the AC, and the upgrade is performed according to the upgrade file. In both modes, the AP downloads the upgrade file directly to the AC. Due to the limited bandwidth and processing power of the AC, only a certain number of AP upgrades can be supported at one time. The remaining APs are added to the wait queue and may not be upgraded until the previous AP is upgraded. The time spent by the upgrading process is increased linearly, and when the number of the APs is large, the upgrading time is too long.
in order to solve the above problem, in the technical solution of the embodiment of the present application, the AC divides the upgrade file into a plurality of data blocks, and allocates the data blocks to the upgraded APs. The AP to be upgraded does not obtain the upgrade file directly from the AC, but downloads data blocks from the upgraded AP to be spliced into the upgrade file, and then upgrades according to the upgrade file. Thus, large scale AP upgrades are no longer limited by the bandwidth and processing power of the AC.
referring to fig. 1A, a flowchart of an AP upgrading method shown in the present application is described from an AP side to be upgraded; the method comprises the following steps:
step 101: receiving a data block index table which is sent by an AC and corresponds to an upgrade file; the upgrading file is divided into a plurality of data blocks by the AC, and the data blocks are distributed and stored in different upgraded APs; the data block index table comprises a mapping relation between the data blocks and the IP of the upgraded AP which stores the data blocks;
Step 102: downloading data blocks from each upgraded AP based on the data block index table;
Step 103: and splicing the downloaded data blocks into the upgrade file, and upgrading the upgrade file based on the upgrade file obtained by splicing.
Corresponding to the above flowchart of the method for upgrading the AP described from the side of the AP to be upgraded, referring to fig. 1B, the present application shows a flowchart of another method for upgrading an AP, which is described from the side of the AC; the method comprises the following steps:
Step 111: splitting an upgrade file into a plurality of data blocks, and storing the data blocks in different upgraded APs;
Step 112: generating a data block index table corresponding to the upgrade file; the data block index table comprises a mapping relation between the data blocks and the IP of the upgraded AP which stores the data blocks;
Step 113: and issuing the data block index table to the AP to be upgraded.
In this embodiment, the AC splits the upgrade file into a plurality of data blocks, plans the storage location of each data block, and stores each data block in a different upgraded AP, respectively, and the AP to be upgraded will not download the upgrade file directly from the AC, but download the upgrade file from the upgraded AP. Therefore, with the increase of the number of the APs, the speed of obtaining the upgrade files from the upgraded APs with the gradually increasing number of the APs to be upgraded is remarkably increased.
specifically, the AC may split the upgrade file into a plurality of data blocks based on a preset policy, and store the data blocks in different upgraded APs respectively.
The preset strategy can set a strategy most beneficial to the AP upgrading efficiency according to the application environment. For example: in an embodiment shown, the preset policy may be: the AC splits the upgrade file into a plurality of data blocks, and averagely distributes the split data blocks and respectively stores the data blocks on different upgraded APs, so that the number of the data blocks stored on each upgraded AP is kept consistent, and the efficiency of each downloading path is balanced when the AP to be upgraded respectively downloads the upgrade file to the upgraded AP concurrently.
After the upgrade file is split, the AC stores the data blocks into different upgraded APs, and creates a mapping relation between the data blocks and the IP of the upgraded AP storing the data blocks. In order to record the mapping relationship, the AC may add an identifier or a sequence number to the split data blocks, and therefore the mapping relationship may be that the identifier or the sequence number of the data block corresponds to an IP of the upgraded AP in which the data block is stored. The AC distributes the work of downloading the upgrade file from the receiving AP originally limited to the local to each upgraded AP by creating the mapping relation. And the AC generates a data block index table corresponding to the upgrade file and includes the mapping relation.
after the configuration work is completed, the AP to be upgraded sends an upgrade request to the AC under two conditions: firstly, in the phase that the AP to be upgraded is associated with the AC, the AC sends a Join Response message to the AP to be upgraded. Triggering the AP to be upgraded to respond to the AC by the file version in the Join Response message; secondly, after the AP to be upgraded is associated with the AC, when the user considers that the AP to be upgraded is necessary to be upgraded, the AP to be upgraded is determined to be upgraded on the AC, so that the AC sends an upgrade command to the AP to be upgraded, and the AP to be upgraded is triggered to respond to the upgrade request to the AC.
in this example, after receiving an upgrade request sent by an AP to be upgraded, the AC issues the data block index table corresponding to the upgrade file to the AP to be upgraded, so that the AP to be upgraded downloads the data blocks from each upgraded AP according to the data block index table. The AP to be upgraded requests the upgraded AP for the data of the upgrade file through the data block index table, so that the efficiency is greatly improved.
Specifically, the process of downloading the data block from the upgraded AP by the AP to be upgraded may be as follows: and traversing the IP of each upgraded AP and the identification or serial number of the data block in the data block index table by the AP to be upgraded, and counting the identification or serial number of all the data blocks corresponding to each IP. After the statistics is completed, the AP to be upgraded sends the identification or the serial number of all the data blocks corresponding to the AP to each IP, and each upgraded AP returns the data blocks by using the identification or the serial number of all the corresponding data blocks.
Alternatively, the process of downloading the data block from the upgraded AP by the AP to be upgraded may also be as follows: and traversing each table entry of the data block index table by the AP to be upgraded, and sending the identifier or the serial number of the corresponding data block to the IP of the upgraded AP in the table entry so that each upgraded AP returns the data block by using the identifier or the serial number of the data block.
In practical application, the better one of the two modes can be selected according to the application environment and the application equipment.
in this example, the AP to be upgraded cannot download the data block from the upgraded AP when the following two situations occur: firstly, in the process that the AC stores the data block into the planned upgraded AP, packet loss occurs. In this case, the upgraded AP does not store the data block corresponding to the local IP in the data block index entry, the AP to be upgraded sends the identifier or the serial number of the data block to the upgraded AP, and the value of the data block in the received response message is null. And secondly, the upgraded AP stores the data block corresponding to the local IP in the data block index table entry, but the upgraded AP works abnormally and cannot respond after receiving a download request sent by the AP to be upgraded.
In order to further ensure the success of obtaining the upgrade file by the AP to be upgraded, when the AP to be upgraded cannot obtain the corresponding data block from the upgraded AP, the AP to be upgraded may directly download the data block from the AC according to the identifier or serial number of the data block.
In this example, since the AP to be upgraded downloads the data block of the upgrade file from at least one upgraded AP, there may be a difference between the downloaded data block and the data block actually split by the AC based on the upgrade file in the downloading process of the data block; alternatively, during the downloading of the data block, a loss of the data block may occur.
In order to avoid the situation, after receiving the upgrade request sent by the AP to be upgraded, the AC may also issue verification information for performing integrity verification on the upgrade file.
in an embodiment shown, the AC may send the size of the upgrade file and a hash value calculated based on the upgrade file to the AP to be upgraded.
In this embodiment, the AP to be upgraded splices the downloaded data blocks to obtain an upgrade file, and may perform integrity check on the upgrade file obtained by splicing according to the verification information issued by the AC.
For example: the AP to be upgraded can verify whether the spliced upgrade file is consistent with the original upgrade file in size according to the size of the upgrade file so as to determine whether the received data block is missing; if the received size of the upgrade file is consistent with the size of the spliced upgrade file, the hash value of the upgrade file at the splicing position can be further calculated, and whether the hash value is consistent with the hash value of the upgrade file sent by the AC or not can be further calculated; if the upgrade files are consistent, the upgrade files at the splicing part pass integrity verification, and the upgrade operations can be normally performed by using the upgrade files obtained by splicing.
After the integrity is verified, the AP to be upgraded can be upgraded based on the upgrade file obtained by splicing.
In this embodiment, after the upgrade is completed, the AP to be upgraded becomes an upgraded AP, and sends a response message indicating that the upgrade is successful to the AC. And after receiving the response message, the AC adds the upgraded AP into the queue of the upgraded AP. The AC splits the upgrade file into a plurality of data blocks based on a preset strategy, plans the storage position of each data block again, and stores each data block on different upgraded APs. The upgraded AP that has completed the upgrade before will also provide the data block of the upgrade file for the subsequent AP to be upgraded.
therefore, in the embodiment of the application, with the increase of the number of the upgraded APs, the APs to be upgraded can concurrently acquire the data of the upgrade files from more and more upgraded APs, and compared with the prior art, the upgrade efficiency is remarkably improved.
In order to compare the AP upgrade efficiency in the embodiment of the present application with the AP upgrade efficiency in the prior art more intuitively, a specific example of the upgrade efficiency calculation is shown below:
Assuming that the upper limit of the transmission rate of each AP is a bits/sec, the upper limit of the transmission rate of the AC is also a bits/sec, the size of the upgrade file is K bits, and the total number of APs is N.
the prior art AP upgrade time is the total data volume divided by the AC's actual transmission rate b, i.e.:
Time1 ═ K/b × N seconds
The upgrade time of the embodiment of the application is as follows:
since the first upgrade file exists only on the AC, the time to upgrade the AP1 is K/a seconds.
on the second upgrade, the AP2 will request all data blocks from the AP1, so the time for the second upgrade is K/a seconds.
In the third upgrade, the AP3 will request half of the data blocks from the AP1 and half of the data blocks from the AP2, and since the AP3 requests the AP1 and the AP2 concurrently, the time for the third upgrade is K/2a seconds.
By analogy, the time for the ith upgrade is K/(i-1) a seconds. The total upgrade time is therefore:
Time=K/a+K/a+K/2a+K/3a+,...,+K/(N-1)a
=K/a+K/a*(1+1/2+1/3+,…,+1/(N-1))
=K/a+K/a*(ln(N)+r)
k/a (ln (n) + r +1) seconds, r is an euler constant equal to 0.5772156649.
The upgrade time of the AP in the prior art is increased linearly, while the upgrade time of the embodiment of the present invention is increased logarithmically, and as N is increased, the upgrade time of the embodiment of the present invention is much smaller and more distant than the upgrade time of the prior art.
Corresponding to the embodiment of the method for upgrading the AP, the present application further provides an embodiment of an apparatus for executing the above method embodiment.
Referring to fig. 2, a logic block diagram of an AP upgrading apparatus shown in the present application is shown, where the apparatus is applied to an AP to be upgraded.
as shown in fig. 2, the AP upgrading apparatus 20 includes:
a receiving unit 210, configured to receive a data block index table corresponding to an upgrade file sent by an AC; the upgrading file is divided into a plurality of data blocks by the AC, and the data blocks are distributed and stored in different upgraded APs; the data block index table includes a mapping relationship between the data blocks and the IP of the upgraded AP in which the data blocks are stored.
a downloading unit 220, configured to download the data block from each upgraded AP based on the data block index table.
and the upgrading unit 230 is configured to splice the downloaded data blocks into the upgrade file, and upgrade the data blocks based on the upgrade file obtained by splicing.
In this example:
The receiving unit 210 is further configured to receive the size of the upgrade file sent by the AC and a hash value calculated based on the upgrade file.
the upgrade unit 230 is further configured to perform integrity check on the upgrade file obtained by splicing based on the size of the upgrade file and the hash value of the upgrade file; and when the integrity check passes, upgrading the upgrade file obtained based on the splicing, and sending a response message of successful upgrading to the AC after the upgrade is successful.
In this example, the downloading unit 220 is further configured to download the data block from the AC when the data block on any upgraded AP fails to be downloaded.
the embodiment of the upgrading device of the AP can be applied to the AP. The device embodiments may be implemented by software, or by hardware, or by a combination of hardware and software. Taking a software implementation as an example, as a logical device, the AP reads corresponding computer program instructions in the non-volatile memory into the memory through the processor of the AP where the AP is located, and executes the computer program instructions. In terms of hardware, as shown in fig. 3, a hardware structure diagram of an AP where an upgrading apparatus of the AP is located is shown, except for the processor, the memory, the network interface, and the nonvolatile memory shown in fig. 3, an AP where the apparatus is located in the embodiment may also include other hardware according to an actual function of the upgrading apparatus of the AP, which is not described again.
Referring to fig. 4, a logic block diagram of an upgrading apparatus of an AP, which is applied to an AC, is shown in the present application.
as shown in fig. 4, the AP upgrading apparatus 40 includes:
The splitting unit 410 is configured to split the upgrade file into a plurality of data blocks, and store the plurality of data blocks in different upgraded APs.
A generating unit 420, configured to generate a data block index table corresponding to the upgrade file; the data block index table includes a mapping relationship between the data blocks and the IP of the upgraded AP in which the data blocks are stored.
And the issuing unit 430 is configured to issue the data block index table to the AP to be upgraded.
In this example, the splitting unit 410 is further configured to, after receiving a response message that the upgrade is successful and sent by the AP to be upgraded, split the upgrade file into a plurality of data blocks again and allocate the data blocks to each upgraded AP, and update the data block index table.
the embodiment of the upgrading device of the AP can be applied to the AC. The device embodiments may be implemented by software, or by hardware, or by a combination of hardware and software. In the case of software implementation, as a logical device, the device is formed by reading corresponding computer program instructions in the nonvolatile memory into the memory for operation through the processor of the AC in which the device is located. In terms of hardware, as shown in fig. 5, a hardware structure diagram of an AC where an upgrading apparatus of an AP is located in the present application is shown, except for the processor, the memory, the network interface, and the nonvolatile memory shown in fig. 5, an AC where an apparatus is located in an embodiment may also include other hardware according to an actual function of the upgrading apparatus of the AP, which is not described again.
The implementation process of the functions and actions of each unit in the above device is specifically described in the implementation process of the corresponding step in the above method, and is not described herein again.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the application. One of ordinary skill in the art can understand and implement it without inventive effort.
the above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the scope of protection of the present application.

Claims (8)

1. An AP upgrading method is applied to an AP to be upgraded and is characterized by comprising the following steps:
Receiving a data block index table which is sent by an AC and corresponds to an upgrade file; the upgrading file is divided into a plurality of data blocks by the AC, and the data blocks are distributed and stored in different upgraded APs; the data block index table comprises a mapping relation between the data blocks and the IP of the upgraded AP which stores the data blocks;
Downloading data blocks in parallel from each upgraded AP based on the data block index table;
and splicing the downloaded data blocks into the upgrade file, upgrading the upgrade file based on the upgrade file obtained by splicing, sending a response file which is upgraded successfully to the AC after the upgrade is completed, so that the AC splits the upgrade file into a plurality of data blocks and distributes the data blocks to each upgraded AP after receiving the response message, and updating the data block index table.
2. The method of claim 1, further comprising:
receiving the size of the upgrade file sent by the AC and a hash value calculated based on the upgrade file;
The upgrading file obtained based on splicing is upgraded, and the upgrading file comprises:
Integrity check is carried out on the upgrade files obtained through splicing based on the size of the upgrade files and the hash values of the upgrade files;
And when the integrity check passes, upgrading the upgrade file obtained based on the splicing, and sending a response message of successful upgrading to the AC after the upgrade is successful.
3. The method of claim 1, further comprising:
When a data block download on any upgraded AP fails, the data block is downloaded from the AC.
4. an AP upgrading method applied to an AC is characterized by comprising the following steps:
splitting an upgrade file into a plurality of data blocks, and storing the data blocks in different upgraded APs;
Generating a data block index table corresponding to the upgrade file; the data block index table comprises a mapping relation between the data blocks and the IP of the upgraded AP which stores the data blocks;
issuing the data block index table to the APs to be upgraded so that the APs to be upgraded download the data blocks in parallel from the upgraded APs based on the data block index table;
And after receiving a response message of successful upgrading sent by the AP to be upgraded, splitting the upgrade file into a plurality of data blocks again, distributing the data blocks to each upgraded AP, and updating the data block index table.
5. the utility model provides an upgrading device of AP is applied to the AP that waits to upgrade, its characterized in that includes:
The receiving unit is used for receiving a data block index table which is sent by the AC and corresponds to the upgrade file; the upgrading file is divided into a plurality of data blocks by the AC, and the data blocks are distributed and stored in different upgraded APs; the data block index table comprises a mapping relation between the data blocks and the IP of the upgraded AP which stores the data blocks;
A downloading unit, configured to download the data blocks in parallel from the upgraded APs based on the data block index table;
And the upgrading unit is used for splicing the downloaded data blocks into the upgrading file, upgrading the upgrading file based on the upgrading file obtained by splicing, sending a response file which is successfully upgraded to the AC after the upgrading is completed, so that the AC splits the upgrading file into a plurality of data blocks and distributes the data blocks to each upgraded AP after receiving the response message, and updating the data block index table.
6. The apparatus of claim 5, further comprising:
The receiving unit is further configured to receive the size of the upgrade file sent by the AC and a hash value calculated based on the upgrade file;
the upgrading unit is further used for carrying out integrity check on the upgrade files obtained by splicing based on the size of the upgrade files and the hash values of the upgrade files; and when the integrity check passes, upgrading the upgrade file obtained based on the splicing, and sending a response message of successful upgrading to the AC after the upgrade is successful.
7. The apparatus of claim 5, wherein the downloading unit is further configured to:
when a data block download on any upgraded AP fails, the data block is downloaded from the AC.
8. an upgrading device of an AP, which is applied to an AC, is characterized by comprising:
the split unit is used for splitting the upgrade file into a plurality of data blocks and storing the data blocks in different upgraded APs;
the generating unit is used for generating a data block index table corresponding to the upgrading file; the data block index table comprises a mapping relation between the data blocks and the IP of the upgraded AP which stores the data blocks;
The issuing unit is used for issuing the data block index table to the AP to be upgraded so that the AP to be upgraded downloads the data blocks from all the upgraded APs in parallel based on the data block index table;
The splitting unit is further configured to: and after receiving a response message of successful upgrading sent by the AP to be upgraded, splitting the upgrade file into a plurality of data blocks again, distributing the data blocks to each upgraded AP, and updating the data block index table.
CN201610613605.7A 2016-07-29 2016-07-29 AP upgrading method and device Active CN106254440B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610613605.7A CN106254440B (en) 2016-07-29 2016-07-29 AP upgrading method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610613605.7A CN106254440B (en) 2016-07-29 2016-07-29 AP upgrading method and device

Publications (2)

Publication Number Publication Date
CN106254440A CN106254440A (en) 2016-12-21
CN106254440B true CN106254440B (en) 2019-12-06

Family

ID=57606723

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610613605.7A Active CN106254440B (en) 2016-07-29 2016-07-29 AP upgrading method and device

Country Status (1)

Country Link
CN (1) CN106254440B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108882277B (en) * 2018-05-28 2022-04-26 新华三技术有限公司 Version upgrading method and device
CN112035147A (en) * 2020-09-14 2020-12-04 上海仙塔智能科技有限公司 Upgrade time management method, upgrade time management system, and computer storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101668041A (en) * 2009-09-10 2010-03-10 杭州华三通信技术有限公司 Method for downloading distributed AP and device
CN101715199A (en) * 2009-11-16 2010-05-26 中兴通讯股份有限公司 Method and device for upgrading access point
CN101801110A (en) * 2010-03-10 2010-08-11 北京傲天动联技术有限公司 Wireless local area network upgrading method based on thin AP architecture
CN103200596A (en) * 2013-03-25 2013-07-10 福建三元达通讯股份有限公司 Method for fast batch update of access points (AP) in thin AP framework wireless local area network (WLAN) network
CN103906087A (en) * 2012-12-28 2014-07-02 华为技术有限公司 Access point upgrading method, device and system
CN104283933A (en) * 2013-07-12 2015-01-14 腾讯科技(深圳)有限公司 Data downloading method, client-side and system
CN105389191A (en) * 2015-12-11 2016-03-09 北京奇虎科技有限公司 Software upgrading method, apparatus and system based on local area network

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101447884B (en) * 2007-11-26 2011-08-03 华为技术有限公司 Method for achieving software upgrade by cooperation among network elements, equipment and system therefor
CN101478446B (en) * 2008-12-30 2011-07-20 华为技术有限公司 Network appliance version loading method, apparatus and system
CN102055785A (en) * 2009-11-09 2011-05-11 杭州华三通信技术有限公司 Online upgrade method for distributed system, distributed system and equipment
CN102647436B (en) * 2011-02-21 2016-04-20 腾讯科技(深圳)有限公司 A kind of based on point-to-point file publishing method and system
CN102298527B (en) * 2011-06-21 2017-03-15 中兴通讯股份有限公司 A kind of method of CPE parallel upgrades version and realize system
CN102413185B (en) * 2011-11-25 2015-02-04 广州杰赛科技股份有限公司 Cloud platform automatic updating system based on BT technology

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101668041A (en) * 2009-09-10 2010-03-10 杭州华三通信技术有限公司 Method for downloading distributed AP and device
CN101715199A (en) * 2009-11-16 2010-05-26 中兴通讯股份有限公司 Method and device for upgrading access point
CN101801110A (en) * 2010-03-10 2010-08-11 北京傲天动联技术有限公司 Wireless local area network upgrading method based on thin AP architecture
CN103906087A (en) * 2012-12-28 2014-07-02 华为技术有限公司 Access point upgrading method, device and system
CN103200596A (en) * 2013-03-25 2013-07-10 福建三元达通讯股份有限公司 Method for fast batch update of access points (AP) in thin AP framework wireless local area network (WLAN) network
CN104283933A (en) * 2013-07-12 2015-01-14 腾讯科技(深圳)有限公司 Data downloading method, client-side and system
CN105389191A (en) * 2015-12-11 2016-03-09 北京奇虎科技有限公司 Software upgrading method, apparatus and system based on local area network

Also Published As

Publication number Publication date
CN106254440A (en) 2016-12-21

Similar Documents

Publication Publication Date Title
CN108549580B (en) Method for automatically deploying Kubernets slave nodes and terminal equipment
CN108074177B (en) Data reconciliation method, system and computer-readable storage medium
EP3382534B1 (en) Page jumping method and apparatus
KR101998012B1 (en) Method and apparatus for updating network service technicians
EP2989543B1 (en) Method and device for updating client
CN112000355B (en) Method and device for firmware upgrading and household appliance
CN108089913B (en) Virtual machine deployment method of super-fusion system
CN111158738B (en) Headset firmware upgrading method and device and readable storage medium
CN109391673A (en) A kind of method, system and the terminal device of management update file
KR20130012929A (en) Method and system for efficient download of data package
US20130111458A1 (en) Method and system for on-demand patch generation and management
CN109413210A (en) Target drives upgrade method, device, equipment and the medium of distributed cluster system
US20220413823A1 (en) Methods and apparatuses for installing device application
EP4050850A1 (en) Service upgrading method, device and system
CN110417828A (en) A kind of upgrade method and device of internet-of-things terminal
CN113342854A (en) Method and system for generating unique ID of mobile equipment
KR20180005542A (en) Apparatus and method for verifing data integrity
CN106254440B (en) AP upgrading method and device
CN112995806A (en) Method, device, system and storage medium for upgrading optical network unit
CN102880478B (en) Oftware updating method
CN111176685A (en) Upgrading method and device
CN108108173A (en) A kind of information processing method and device
CN103297482A (en) Information processing method and device
CN111399866B (en) Updating method and device of VNF (virtual network function) package
CN108881338B (en) Method and device for upgrading network function virtualization mirror image file

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: Binjiang District and Hangzhou city in Zhejiang Province Road 310051 No. 68 in the 6 storey building

Applicant after: Hangzhou Dipu Polytron Technologies Inc

Address before: Binjiang District and Hangzhou city in Zhejiang Province Road 310051 No. 68 in the 6 storey building

Applicant before: Hangzhou Dipu Technology Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant