[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN114115940B - Version upgrading method and device - Google Patents

Version upgrading method and device Download PDF

Info

Publication number
CN114115940B
CN114115940B CN202111332125.0A CN202111332125A CN114115940B CN 114115940 B CN114115940 B CN 114115940B CN 202111332125 A CN202111332125 A CN 202111332125A CN 114115940 B CN114115940 B CN 114115940B
Authority
CN
China
Prior art keywords
version
aps
address
group
information
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
CN202111332125.0A
Other languages
Chinese (zh)
Other versions
CN114115940A (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.)
New H3C Big Data Technologies Co Ltd
Original Assignee
New H3C Big Data 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 New H3C Big Data Technologies Co Ltd filed Critical New H3C Big Data Technologies Co Ltd
Priority to CN202111332125.0A priority Critical patent/CN114115940B/en
Publication of CN114115940A publication Critical patent/CN114115940A/en
Application granted granted Critical
Publication of CN114115940B publication Critical patent/CN114115940B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application provides a version upgrading method and device, wherein the method is applied to an AC and comprises the following steps: acquiring address information and version identification of all APs managed by an AC (access controller) and address information of gateway equipment accessed by all APs; grouping all the APs according to the acquired address information and version identification to obtain each AP group; when receiving a version upgrading request message sent by any AP, searching an AP group in which the AP is located from all AP groups; if the number of the APs which are searched in the AP group and sent with the version upgrading request messages is not smaller than the set number, version upgrading response messages which only carry the equipment information of the APs which are finished with version upgrading are sent to the APs, so that the APs select the equipment information which meets the preset conditions from the equipment information, the latest version files are obtained from the corresponding APs, and version upgrading is carried out according to the obtained version files. The method and the device can lighten the load of the AC and shorten the version upgrading time of the AP.

Description

Version upgrading method and device
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a version upgrade method and apparatus.
Background
In WLAN (Wireless Local Area Networks, wireless local area network), a networking architecture of AC (Access Controller ) and AP (Access Point) may be used, and the AC centrally controls and manages multiple APs. The AC establishes a CAPWAP tunnel with the AP through a CAPWAP (Controlling and Provisioning of Wireless Access Point, wireless access point control and supply) protocol, and issues configuration information to the AP through the CAPWAP tunnel, and the AP completes self configuration by utilizing the configuration information. When the version of the AP needs to be upgraded, the AC also transmits the latest version file to the AP through the CAPWAP tunnel, and the AP upgrades the version of the AC by using the latest version file.
Since the AC typically manages a large number of APs, such as thousands of APs, when a large number of APs all need to be upgraded, the AC needs to send the latest version file to the large number of APs, which not only results in heavy load of the AC, but also results in a longer version upgrade time of the APs in the entire WLAN.
Disclosure of Invention
In order to overcome the problems in the related art, the application provides a version upgrading method and device.
According to a first aspect of embodiments of the present application, there is provided a version upgrade method, the method being applied to an AC, the method comprising:
acquiring address information and version identifiers of all APs managed by the AC and address information of gateway equipment accessed by all APs, wherein the address information of each AP only comprises a media access control (Media Access Control, MAC) address of the AP, the address information of the gateway equipment accessed by each AP only comprises a MAC address of the gateway equipment accessed by the AP, or the address information of each AP comprises a private network Internet protocol (Internet Protocol, IP) address and a MAC address of the AP, and the address information of the gateway equipment accessed by each AP comprises a private network IP address and a MAC address of the gateway equipment accessed by the AP;
grouping all the APs according to the acquired address information and version identifiers to obtain each AP group, wherein gateway equipment accessed by the APs in the same AP group are the same, and the version identifiers of the APs in the same AP group are the same;
When receiving a version upgrading request message sent by any one of all the APs, searching an AP group corresponding to the MAC address of the AP carried in the version upgrading request message from each AP group;
if the number of the APs which send the version upgrading request message in the searched AP group is not smaller than the set number, a version upgrading response message carrying only the equipment information of the APs which finish version upgrading in the searched AP group is sent to the APs, so that the APs select the equipment information meeting the preset condition from the equipment information, the latest version file is obtained from the APs corresponding to the selected equipment information, and version upgrading is carried out according to the obtained version file, wherein the set number is the number of APs which are set by the AC for the searched AP group and are directly obtained from the AC.
According to a second aspect of embodiments of the present application, there is provided a version upgrade method, where the method is applied to an AP, and the method includes:
when the version upgrade is required, a version upgrade request message is sent to the AC associated with the AP;
receiving a version upgrading response message sent by the AC;
if the version upgrading response message only carries the equipment information of other APs, selecting the equipment information meeting the preset conditions from the equipment information of other APs;
Acquiring the latest version file from the AP corresponding to the selected equipment information, and carrying out version upgrading according to the acquired version file;
when the AC receives the version upgrading request message, the version upgrading response message searches an AP group corresponding to the MAC address of the AP carried in the version upgrading request from each AP group, and is sent when the number of the APs which have sent the version upgrading request message in the searched AP group is not less than the set number;
each AP group is obtained by grouping all the APs according to the acquired address information and version identification of all the APs managed by the AC and the acquired address information of gateway equipment accessed by all the APs;
the address information of each AP only comprises the MAC address of the AP, and the address information of the gateway equipment accessed by each AP only comprises the MAC address of the gateway equipment accessed by the AP, or the address information of each AP comprises the private network IP address and the MAC address of the AP, and the address information of the gateway equipment accessed by each AP comprises the private network IP address and the MAC address of the gateway equipment accessed by the AP;
the gateway devices accessed by the APs in the same AP group are the same, and the version identifiers of the APs in the same AP group are the same;
The set number is the number of APs which are set by the AC for the searched AP group and directly acquire the latest version file from the AC.
According to a third aspect of embodiments of the present application, there is provided a version upgrade apparatus, the apparatus being applied to an AC, the apparatus comprising:
the access module is used for obtaining address information and version identification of all the APs managed by the AC and address information of all the gateway equipment accessed by the APs, wherein the address information of each AP only comprises the MAC address of the AP, the address information of the gateway equipment accessed by each AP only comprises the MAC address of the gateway equipment accessed by the AP, or the address information of each AP comprises the private network IP address and the MAC address of the AP, and the address information of the gateway equipment accessed by each AP comprises the private network IP address and the MAC address of the gateway equipment accessed by the AP;
the grouping module is used for grouping all the APs according to the acquired address information and version identifiers to obtain each AP group, wherein gateway equipment accessed by the APs in the same AP group are the same, and the version identifiers of the APs in the same AP group are the same;
the searching module is used for searching an AP group corresponding to the MAC address of the AP carried in the version upgrading request message from each AP group when receiving the version upgrading request message sent by any AP in all APs;
And the sending module is used for sending version upgrading response messages only carrying the equipment information of the APs which have completed version upgrading in the searched AP group to the APs if the number of the APs which have sent the version upgrading request messages in the searched AP group is not less than the set number, so that the APs select the equipment information meeting the preset condition from the equipment information, acquire the latest version files from the APs corresponding to the selected equipment information, and carry out version upgrading according to the acquired version files, wherein the set number is the number of APs which are set by the AC for the searched AP group and directly acquire the latest version files from the AC.
According to a fourth aspect of embodiments of the present application, there is provided a version upgrade apparatus, the apparatus being applied to an AP, the apparatus including:
the sending module is used for sending a version upgrading request message to the AC associated with the AP when the version upgrading is required;
the receiving module is used for receiving the version upgrading response message sent by the AC;
a selecting module, configured to select, if the version upgrade response message only carries device information of other APs, device information that meets a preset condition from the device information of the other APs;
The version upgrading module is used for acquiring the latest version file from the AP corresponding to the selected equipment information and carrying out version upgrading according to the acquired version file;
when the AC receives the version upgrading request message, the version upgrading response message searches an AP group corresponding to the MAC address of the AP carried in the version upgrading request from each AP group, and is sent when the number of the APs which have sent the version upgrading request message in the searched AP group is not less than the set number;
each AP group is obtained by grouping all the APs according to the acquired address information and version identification of all the APs managed by the AC and the acquired address information of gateway equipment accessed by all the APs;
the address information of each AP only comprises the MAC address of the AP, and the address information of the gateway equipment accessed by each AP only comprises the MAC address of the gateway equipment accessed by the AP, or the address information of each AP comprises the private network IP address and the MAC address of the AP, and the address information of the gateway equipment accessed by each AP comprises the private network IP address and the MAC address of the gateway equipment accessed by the AP;
the gateway devices accessed by the APs in the same AP group are the same, and the version identifiers of the APs in the same AP group are the same;
The set number is the number of APs which are set by the AC for the searched AP group and directly acquire the latest version file from the AC.
The technical scheme provided by the embodiment of the application can comprise the following beneficial effects:
in this embodiment of the present application, an AC may firstly group all APs according to address information and version identifiers of the APs managed by the AC and address information of gateway devices accessed by all APs, then, when receiving a version upgrade request packet sent by any AP, the AC first searches an AP group corresponding to an MAC address of the AP carried in the version upgrade request from each AP group, and then, when comparing that the number of APs in the searched AP group that have sent the version upgrade request packet is not less than a set number, the AC may send a version upgrade response packet carrying only device information of APs in the searched AP group that have completed version upgrade, so that the AP selects device information satisfying a preset condition from the device information, obtains a latest version file from the AP corresponding to the selected device information, and performs version upgrade according to the obtained version file.
Therefore, in the version upgrading process of the whole AP, the AC does not provide the corresponding latest version file independently, and part of APs which have completed version upgrading also participate in providing the latest version file, so that the load of the AC is greatly reduced, and the version upgrading time of the APs in the whole WLAN is shortened.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
Fig. 1 is a schematic flow chart of a version upgrading method according to an embodiment of the present application;
FIG. 2 is a second flow chart of a version upgrade method according to the embodiment of the present application;
fig. 3 is a schematic diagram of an interaction flow between an AC and an AP according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a version upgrade apparatus according to an embodiment of the present application;
FIG. 5 is a second schematic structural diagram of a version upgrade apparatus according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present application as detailed in the accompanying claims.
The terminology used in the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the present application. As used in this application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any or all possible combinations of one or more of the associated listed items.
Next, embodiments of the present application will be described in detail.
The embodiment of the application provides a version upgrading method, which is applied to an AC, as shown in fig. 1, and can include the following steps:
s11, address information and version identification of all APs managed by the AC and address information of gateway equipment accessed by all APs are obtained.
In this step, the address information of each AP includes only the MAC address of the AP, and the address information of the gateway device to which each AP accesses includes only the MAC address of the gateway device to which the AP accesses, or,
the address information of each AP may include a private IP address and a MAC address of the AP, and the address information of the gateway device to which each AP accesses may include a private IP address and a MAC address of the gateway device to which the AP accesses.
S12, grouping all the APs according to the acquired address information and version identification to obtain each AP group.
In this step, the gateway devices accessed by the APs in the same AP group are the same, and the version identifiers of the APs in the same AP group are the same.
S13, when receiving a version upgrading request message sent by any one of all the APs, searching an AP group corresponding to the MAC address of the AP carried in the version upgrading request message from each AP group.
And S14, if the number of the APs which send the version upgrading request message in the searched AP group is not less than the set number, sending a version upgrading response message which only carries the equipment information of the APs which finish version upgrading in the searched AP group to the APs, so that the APs select the equipment information meeting the preset condition from the equipment information, acquire the latest version file from the APs corresponding to the selected equipment information, and carry out version upgrading according to the acquired version file.
In this step, the set number is the number of APs that the AC sets for the found AP group and directly obtains the latest version file from the AC.
In addition, the device information of the AP with the version upgrade may be carried in a Tag Length Value (TLV) field in the version upgrade response message, and may include information such as a MAC address, a private IP address, a device model number, and a version number of the corresponding AP.
Specifically, in the above step S11, the AC may acquire address information and version identification of all access points APs managed by the AC, and address information of gateway devices to which all APs access, by:
receiving CAPWAP control messages sent by each AP after the AC is associated;
acquiring address information and version identification of the AP and address information of gateway equipment accessed by the AP from the CAPWAP control message;
when the address information of the AP only includes the MAC address of the AP and the address information of the gateway device accessed by the AP only includes the MAC address of the gateway device accessed by the AP, the MAC address of the gateway device accessed by the AP is located in the TLV field in the CAPWAP control message;
when the address information of the AP includes a private network IP address and a MAC address of the AP, and the address information of the gateway device to which the AP accesses includes a private network IP address and a MAC address of the gateway device to which the AP accesses, the private network IP address of the AP, and the MAC address and the private network IP address of the gateway device to which the AP accesses are located in TLV fields in the CAPWAP control message.
Here, the CAPWAP control message may also carry information such as a device model of the AP.
It should be noted that, after the execution of the step S13, if the number of the APs that have sent the version upgrade request message in the found AP group is smaller than the set number, the AC may directly respond to the version upgrade request message sent by the AP according to the existing manner, that is, send a version response request message carrying the latest version file to the AP, so that the AP performs version upgrade according to the latest version file carried in the received version response request message.
That is, for any AP group, the AC only directly provides the latest version file for the APs (which may be marked as the APs of the first upgrade version) that have previously set a number of APs in the AP group that send version upgrade request messages; for the APs in the AP group, which send the version upgrade request message after the APs, the AC does not directly provide the latest version file, but sends a version upgrade response message carrying the device information of the APs in the AP group, which have completed version upgrade, to the APs, so as to guide the corresponding AP to obtain the latest version file from one of the APs corresponding to the device information, thereby reducing the load of the AC.
Here, the set numbers corresponding to all AP groups may be identical, for example, the set numbers corresponding to all AP groups may be set to one fixed value by AC.
Of course, the set number corresponding to all AP groups may not be the same, for example, the set number corresponding to each AP group may be obtained by multiplying the total number of all APs in the AP group by the set percentage by AC.
It should be further noted that, after executing the step S14, for the subsequent AP, the AP may select, from the device information of the AP with the version upgrade completed carried in the version upgrade response message, the device information satisfying the preset condition; then, the AP may send a version upgrade request message to the AP corresponding to the selected device information, so as to obtain the latest version file; finally, the AP may perform version upgrade according to the obtained version file.
Here, when the AP selects the device information satisfying the preset condition, the AP may randomly select one piece of device information, so as to avoid that multiple APs in the AP group where the AP is located send a version upgrade request message to the AP that has completed version upgrade, which results in a larger load of the AP that has completed version upgrade.
Of course, the AP may select the AP device information closest to the AP, and the present application does not limit the selection method of the AP device information.
After the version upgrade is completed, the AP can be re-associated with the AC, and the AC can timely update the version information of the AP.
The embodiment of the application also provides a version upgrading method, which is applied to the AP, as shown in fig. 2, and the method can comprise the following steps:
s21, when version upgrading is needed, a version upgrading request message is sent to the AC associated with the AP.
The manner of determining when the AP needs to perform the version upgrade is known in the art, and will not be described in detail herein.
S22, receiving a version upgrading response message sent by the AC.
S23, if the version upgrading response message only carries the device information of other APs, selecting the device information meeting the preset condition from the device information of other APs.
In this step, when the version upgrade response message is an AC receiving the version upgrade request message, the AP group corresponding to the MAC address of the AP carried in the version upgrade request is searched from the AP groups, and the AP group is sent when the number of APs that have sent the version upgrade request message in the searched AP group is not less than the set number.
Here, each AP group is obtained by grouping all APs according to address information of all APs managed by the acquired AC and gateway devices to which the APs are connected.
The address information of each AP only comprises the MAC address of the AP, and the address information of the gateway device accessed by each AP only comprises the MAC address of the gateway device accessed by the AP; or, the address information of each AP includes a private IP address and a MAC address of the AP, and the address information of the gateway device to which each AP accesses includes a private IP address and a MAC address of the gateway device to which the AP accesses.
And, the gateway devices accessed by the APs in the same AP group are the same, and the version identifiers of the APs in the same AP group are the same.
The set number is the number of APs which are set by the AC for the found AP group and directly acquire the latest version file from the AC, and the setting manner of the set number is described when the version upgrade method is described on the AC side, which is not described in detail herein.
S24, acquiring the latest version file from the AP corresponding to the selected equipment information, and carrying out version upgrading according to the acquired version file.
Specifically, in the step S23, when the AP selects the device information satisfying the preset condition from the device information of the other APs, one piece of device information may be selected randomly from the device information of the other APs, so as to avoid that the plurality of APs in the AP group where the AP is located send the version upgrade request message to the AP which has completed the version upgrade, which results in a larger load of the AP which has completed the version upgrade.
Of course, the AP may select the AP device information closest to the AP, and the present application does not limit the selection method of the AP device information.
It should be noted that, after executing the step S22, if the AP finds that the version-up response message carries the latest version file, the AP performs version-up according to the latest version file.
Here, when the version upgrade response message is an AC receives the version upgrade request message, the AP group corresponding to the MAC address of the AP carried in the version upgrade request message is searched from the AP groups, and the AP group is sent when the number of the APs that have sent the version upgrade request message in the searched AP group is compared to be smaller than the set number.
The version upgrade method described above is described in detail with reference to specific embodiments.
It is assumed that a certain AC in a certain WLAN manages n APs, which are AP1, AP2, AP3, AP4 … … and APn, respectively.
After the APs 1, 2, 3, 4, … … and APn successfully associate with the AC, the CAPWAP control message is sent to the AC through the CAPWAP tunnel established between the AP and the AC. Each CAPWAP control message carries the MAC address and the private network IP address of the corresponding AP, the version identifier of the corresponding AP, and the MAC address and the private network IP address of the gateway device to which the corresponding AP is connected, and the private network IP address of the corresponding AP, and the MAC address and the private network IP address of the gateway device to which the AP is connected are all located in the TLV field in the CAPWAP control message.
The AC receives CAPWAP control messages sent by the APs, and obtains the MAC address and the private network IP address of each AP, the version identification of the AP, and the MAC address and the private network IP address of gateway equipment accessed by the AP.
And then, the AC groups all the APs according to the acquired address information and version identification to obtain each AP group.
Assuming that a certain AP group (e.g., AP group 1) includes AP1, AP2, AP3 and AP4, a specific presentation manner may be shown in table one below.
List one
As shown in fig. 3, assume that the AC first receives the version upgrade request packet 1 sent by the AP1, and searches, from the AP groups, for an AP group corresponding to the MAC address of the AP1 carried in the version upgrade request packet 1, where the search result is AP group 1.
The AC compares the number of APs in the AP group 1 that have sent the version upgrade request message with the set number, and since the former number is 0 and the latter number is 2, the number of APs in the AP group 1 that have sent the version upgrade request message is smaller than the set number, at this time, the AC considers that the AP1 is the AP of the first upgrade version, marks it (as shown in the following table two), and sends the version response request message 1 carrying the latest version file to the AP 1.
Watch II
After receiving the version response request message 1, the AP1 carries out version upgrading according to the latest version file carried in the version response request message 1, and associates with the AC again after successful upgrading.
After the AP1 successfully associates with the AC again, the AC updates the relevant version information of the AP1 in the AP group 1, as shown in table three below.
Watch III
Next, it is assumed that the AC receives the version upgrade request packet 2 sent by the AP2, and the AC searches, from the AP groups, for an AP group corresponding to the MAC address of the AP2 carried in the version upgrade request packet 2, where the search result is AP group 1.
The AC compares the number of APs in the AP group 1 that have sent the version upgrade request message with the set number, and since the former number is 1 and the latter number is 2, the comparison result is that the number of APs in the AP group 1 that have sent the version upgrade request message is smaller than the set number, at this time, the AC considers that AP2 is also the AP of the first upgrade version, marks it (as shown in the following table four), and sends the version response request message 2 carrying the latest version file to AP 2.
Table four
After receiving the version response request message 2, the AP2 carries out version upgrading according to the latest version file carried in the version response request message 2, and associates with the AC again after successful upgrading.
After the AP2 successfully associates with the AC again, the AC updates the relevant version information of the AP2 in the AP group 1, as shown in table five below.
TABLE five
And subsequently, supposing that the AC receives the version upgrading request message 3 sent by the AP3, the AC searches the AP group corresponding to the MAC address of the AP3 carried in the version upgrading request message 3 from all the AP groups, and the searching result is AP group 1.
The AC compares the number of APs in the AP group 1 that have sent the version upgrade request message with the set number, and since the former is 2 and the latter is 2, the comparison result is that the number of APs in the AP group 1 that have sent the version upgrade request message is equal to the set number, at this time, the AC considers that the AP3 is not the AP of the first upgrade version, and the AC sends, to the AP3, a version upgrade response message 3 that only carries device information (e.g., MAC addresses including the AP1 and the AP2, private network IP addresses, device model numbers, version identifiers, etc.) of the AP1 and the AP 2.
After receiving the version upgrading response message 3, the AP3 randomly selects one piece of equipment information from the pieces of equipment information carried in the version upgrading response message 3, and supposes that the equipment information of the AP1 is selected, the AP3 sends a version upgrading request message 4 to the AP1, carries out version upgrading according to the latest version file carried in the version upgrading response message 4 replied by the AP1, and associates with the AC again after successful upgrading.
After the AP3 successfully associates with the AC again, the AC updates the relevant version information of the AP3 in the AP group 1, as shown in the following table six.
TABLE six
The process flow when the AC receives the version upgrade request message 4 sent by the AP4 is similar to the process flow when the AC receives the version upgrade request message 3 sent by the AP3, and will not be described in detail herein.
According to the technical scheme, in the embodiment of the application, the AC firstly groups all APs according to address information and version identifiers of the APs managed by the AC and address information of gateway equipment accessed by all APs, then, when receiving a version upgrading request message sent by any AP, the AC firstly searches an AP group corresponding to the MAC address of the AP carried in the version upgrading request from each AP group, then, when comparing that the number of APs which have sent the version upgrading request message in the found AP group is not less than the set number, the AC sends a version response message carrying only equipment information of the AP which has completed version upgrading in the found AP group to the AP, so that the AP selects equipment information meeting preset conditions from the equipment information, obtains the latest version file from the AP corresponding to the selected equipment information, and carries out version upgrading according to the obtained version file.
Therefore, in the version upgrading process of the whole AP, the AC does not provide the corresponding latest version file independently, and part of APs which have completed version upgrading also participate in providing the latest version file, so that the load of the AC is greatly reduced, and the version upgrading time of the APs in the whole WLAN is shortened.
Based on the same inventive concept, the present application further provides a version upgrade device, where the version upgrade device is applied to an AC, and a structural schematic diagram of the version upgrade device is shown in fig. 4, and specifically includes:
an obtaining module 41, configured to obtain address information and version identifiers of all access points APs managed by the AC and address information of all gateway devices accessed by the APs, where the address information of each AP includes only a MAC address of the AP, and the address information of each gateway device accessed by the AP includes only a MAC address of the gateway device accessed by the AP, or the address information of each AP includes a private network IP address and a MAC address of the AP, and the address information of each gateway device accessed by the AP includes a private network IP address and a MAC address of the gateway device accessed by the AP;
the grouping module 42 is configured to group all APs according to the obtained address information and version identifier, so as to obtain each AP group, where the gateway devices accessed by the APs in the same AP group are the same, and the version identifiers of the APs in the same AP group are the same;
The searching module 43 is configured to, when receiving a version upgrade request packet sent by any AP of all APs, search, from the AP groups, an AP group corresponding to a MAC address of the AP carried in the version upgrade request packet;
and a sending module 44, configured to send, if the number of APs that have sent the version upgrade request message in the found AP group is not less than the set number, a version upgrade response message that only carries device information of APs that have completed version upgrade in the found AP group to the AP, so that the AP selects device information that satisfies a preset condition from the device information, obtains a latest version file from an AP corresponding to the selected device information, and performs version upgrade according to the obtained version file, where the set number is the number of APs that are set by the AC for the found AP group and directly obtain the latest version file from the AC.
Preferably, the obtaining module 41 is specifically configured to:
receiving a wireless access point control and provisioning CAPWAP control message sent by each AP after associating the AC;
acquiring address information and version identification of the AP and address information of gateway equipment accessed by the AP from the CAPWAP control message;
When the address information of the AP only includes the MAC address of the AP and the address information of the gateway device accessed by the AP only includes the MAC address of the gateway device accessed by the AP, the MAC address of the gateway device accessed by the AP is located in the tag length value TLV field in the CAPWAP control message;
when the address information of the AP includes the private network IP address and the MAC address of the AP, and the address information of the gateway device to which the AP accesses includes the private network IP address and the MAC address of the gateway device to which the AP accesses, the private network IP address of the AP, and the MAC address and the private network IP address of the gateway device to which the AP accesses are located in the TLV field in the CAPWAP control message.
Preferably, the sending module 44 is further configured to:
and when the number of the APs which have sent the version upgrading request message in the searched AP group is compared to be smaller than the set number, sending a version response request message carrying the latest version file to the AP, so that the AP carries out version upgrading according to the latest version file carried in the received version response request message.
Preferably, the set number is obtained by multiplying the total number of all APs in the found AP group by a set percentage by the AC.
The application further provides a version upgrading device, which is applied to the AP, and a schematic structural diagram of the device is shown in fig. 5, and specifically includes:
a sending module 51, configured to send a version upgrade request message to an access controller AC associated with the AP when version upgrade is required;
a receiving module 52, configured to receive the version upgrade response packet sent by the AC;
a selecting module 53, configured to select, if the version upgrade response message only carries device information of other APs, device information that meets a preset condition from the device information of the other APs;
the version upgrading module 54 is configured to obtain the latest version file from the AP corresponding to the selected device information, and perform version upgrading according to the obtained version file;
when the AC receives the version upgrading request message, the version upgrading response message searches an AP group corresponding to the MAC address of the AP carried in the version upgrading request from each AP group, and is sent when the number of the APs which have sent the version upgrading request message in the searched AP group is not less than the set number;
each AP group is obtained by grouping all the APs according to the acquired address information and version identification of all the APs managed by the AC and the acquired address information of gateway equipment accessed by all the APs;
The address information of each AP only comprises the MAC address of the AP, and the address information of the gateway equipment accessed by each AP only comprises the MAC address of the gateway equipment accessed by the AP, or the address information of each AP comprises the private network IP address and the MAC address of the AP, and the address information of the gateway equipment accessed by each AP comprises the private network IP address and the MAC address of the gateway equipment accessed by the AP;
the gateway devices accessed by the APs in the same AP group are the same, and the version identifiers of the APs in the same AP group are the same;
the set number is the number of APs which are set by the AC for the searched AP group and directly acquire the latest version file from the AC.
Preferably, the version upgrade module 54 is further configured to:
if the version upgrading response message carries the latest version file, carrying out version upgrading according to the latest version file;
and when the AC receives the version upgrading request message, searching an AP group corresponding to the MAC address of the AP carried in the version upgrading request message from each AP group, and transmitting the version upgrading request message when the number of the APs which have transmitted the version upgrading request message in the searched AP group is smaller than the set number.
According to the technical scheme, in the embodiment of the application, the AC firstly groups all APs according to address information and version identifiers of the APs managed by the AC and address information of gateway equipment accessed by all APs, then, when receiving a version upgrading request message sent by any AP, the AC firstly searches an AP group corresponding to the MAC address of the AP carried in the version upgrading request from each AP group, then, when comparing that the number of APs which have sent the version upgrading request message in the found AP group is not less than the set number, the AC sends a version response message carrying only equipment information of the AP which has completed version upgrading in the found AP group to the AP, so that the AP selects equipment information meeting preset conditions from the equipment information, obtains the latest version file from the AP corresponding to the selected equipment information, and carries out version upgrading according to the obtained version file.
Therefore, in the version upgrading process of the whole AP, the AC does not provide the corresponding latest version file independently, and part of APs which have completed version upgrading also participate in providing the latest version file, so that the load of the AC is greatly reduced, and the version upgrading time of the APs in the whole WLAN is shortened.
The present embodiment also provides an electronic device, as shown in fig. 6, including a processor 61 and a machine-readable storage medium 62, the machine-readable storage medium 62 storing machine-executable instructions executable by the processor 61, the processor 61 being caused by the machine-executable instructions to: implementing any version upgrading method.
The machine-readable storage medium may include random access Memory (Random Access Memory, RAM) or Non-Volatile Memory (NVM), such as at least one magnetic disk Memory. In the alternative, the machine-readable storage medium may also be at least one memory device located remotely from the foregoing processor.
The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; but also digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
In yet another embodiment provided herein, there is also provided a computer readable storage medium having stored therein a computer program which when executed by a processor implements the steps of any of the version upgrade methods described above.
The foregoing description of the preferred embodiments of the present invention is not intended to limit the invention to the precise form disclosed, and any modifications, equivalents, improvements and alternatives falling within the spirit and principles of the present invention are intended to be included within the scope of the present invention.

Claims (12)

1. A version upgrade method, applied to an access controller AC, comprising:
acquiring address information and version identifiers of all Access Points (APs) managed by the AC and address information of all gateway equipment accessed by the APs, wherein the address information of each AP only comprises an MAC address of the AP, the address information of the gateway equipment accessed by each AP only comprises an MAC address of the gateway equipment accessed by the AP, or the address information of each AP comprises a private network IP address and an MAC address of the AP, and the address information of the gateway equipment accessed by each AP comprises the private network IP address and the MAC address of the gateway equipment accessed by the AP;
Grouping all the APs according to the acquired address information and version identifiers to obtain each AP group, wherein gateway equipment accessed by the APs in the same AP group are the same, and the version identifiers of the APs in the same AP group are the same;
when receiving a version upgrading request message sent by any one of all the APs, searching an AP group corresponding to the MAC address of the AP carried in the version upgrading request message from each AP group;
if the number of the APs which send the version upgrading request message in the searched AP group is not smaller than the set number, a version upgrading response message carrying only the equipment information of the APs which finish version upgrading in the searched AP group is sent to the APs, so that the APs select the equipment information meeting the preset condition from the equipment information, the latest version file is obtained from the APs corresponding to the selected equipment information, and version upgrading is carried out according to the obtained version file, wherein the set number is the number of APs which are set by the AC for the searched AP group and are directly obtained from the AC.
2. The method according to claim 1, wherein obtaining address information and version identification of all access points APs managed by the AC and address information of gateway devices accessed by all APs specifically comprises:
Receiving a wireless access point control and provisioning CAPWAP control message sent by each AP after associating the AC;
acquiring address information and version identification of the AP and address information of gateway equipment accessed by the AP from the CAPWAP control message;
when the address information of the AP only includes the MAC address of the AP and the address information of the gateway device accessed by the AP only includes the MAC address of the gateway device accessed by the AP, the MAC address of the gateway device accessed by the AP is located in the tag length value TLV field in the CAPWAP control message;
when the address information of the AP includes the private network IP address and the MAC address of the AP, and the address information of the gateway device to which the AP accesses includes the private network IP address and the MAC address of the gateway device to which the AP accesses, the private network IP address of the AP, and the MAC address and the private network IP address of the gateway device to which the AP accesses are located in the TLV field in the CAPWAP control message.
3. The method according to claim 1 or 2, characterized in that the method further comprises:
and when the number of the APs which have sent the version upgrading request message in the searched AP group is compared to be smaller than the set number, sending a version response request message carrying the latest version file to the AP, so that the AP carries out version upgrading according to the latest version file carried in the received version response request message.
4. The method of claim 1, wherein the set number is obtained by multiplying a set percentage by a total number of all APs in the found AP group.
5. A version upgrade method, wherein the method is applied to an access point AP, the method comprising:
when version upgrading is required, a version upgrading request message is sent to an access controller AC associated with the AP;
receiving a version upgrading response message sent by the AC;
if the version upgrading response message only carries the equipment information of other APs, selecting the equipment information meeting the preset conditions from the equipment information of other APs;
acquiring the latest version file from the AP corresponding to the selected equipment information, and carrying out version upgrading according to the acquired version file;
when the AC receives the version upgrading request message, the version upgrading response message searches an AP group corresponding to the MAC address of the AP carried in the version upgrading request from each AP group, and is sent when the number of the APs which have sent the version upgrading request message in the searched AP group is not less than the set number;
Each AP group is obtained by grouping all the APs according to the acquired address information and version identification of all the APs managed by the AC and the acquired address information of gateway equipment accessed by all the APs;
the address information of each AP only comprises the MAC address of the AP, and the address information of the gateway equipment accessed by each AP only comprises the MAC address of the gateway equipment accessed by the AP, or the address information of each AP comprises the private network IP address and the MAC address of the AP, and the address information of the gateway equipment accessed by each AP comprises the private network IP address and the MAC address of the gateway equipment accessed by the AP;
the gateway devices accessed by the APs in the same AP group are the same, and the version identifiers of the APs in the same AP group are the same;
the set number is the number of APs which are set by the AC for the searched AP group and directly acquire the latest version file from the AC.
6. The method of claim 5, wherein the method further comprises:
if the version upgrading response message carries the latest version file, carrying out version upgrading according to the latest version file;
and when the AC receives the version upgrading request message, searching an AP group corresponding to the MAC address of the AP carried in the version upgrading request message from each AP group, and transmitting the version upgrading request message when the number of the APs which have transmitted the version upgrading request message in the searched AP group is smaller than the set number.
7. The method according to claim 5, wherein selecting device information satisfying a preset condition from the device information of the other APs specifically includes:
and randomly selecting one piece of equipment information from the equipment information of the other APs.
8. A version upgrade apparatus, the apparatus being applied to an access controller AC, the apparatus comprising:
an acquisition module, configured to acquire address information and version identifiers of all access points APs managed by the AC, and address information of gateway devices accessed by all APs, where the address information of each AP includes only a MAC address of the AP, the address information of the gateway equipment accessed by each AP only comprises the MAC address of the gateway equipment accessed by the AP, or the address information of each AP comprises the private network IP address and the MAC address of the AP, and the address information of the gateway equipment accessed by each AP comprises the private network IP address and the MAC address of the gateway equipment accessed by the AP;
the grouping module is used for grouping all the APs according to the acquired address information and version identifiers to obtain each AP group, wherein gateway equipment accessed by the APs in the same AP group are the same, and the version identifiers of the APs in the same AP group are the same;
The searching module is used for searching an AP group corresponding to the MAC address of the AP carried in the version upgrading request message from each AP group when receiving the version upgrading request message sent by any AP in all APs;
and the sending module is used for sending version upgrading response messages only carrying the equipment information of the APs which have completed version upgrading in the searched AP group to the APs if the number of the APs which have sent the version upgrading request messages in the searched AP group is not less than the set number, so that the APs select the equipment information meeting the preset condition from the equipment information, acquire the latest version files from the APs corresponding to the selected equipment information, and carry out version upgrading according to the acquired version files, wherein the set number is the number of APs which are set by the AC for the searched AP group and directly acquire the latest version files from the AC.
9. The apparatus of claim 8, wherein the obtaining module is specifically configured to:
receiving a wireless access point control and provisioning CAPWAP control message sent by each AP after associating the AC;
acquiring address information and version identification of the AP and address information of gateway equipment accessed by the AP from the CAPWAP control message;
When the address information of the AP only includes the MAC address of the AP and the address information of the gateway device accessed by the AP only includes the MAC address of the gateway device accessed by the AP, the MAC address of the gateway device accessed by the AP is located in the tag length value TLV field in the CAPWAP control message;
when the address information of the AP includes the private network IP address and the MAC address of the AP, and the address information of the gateway device to which the AP accesses includes the private network IP address and the MAC address of the gateway device to which the AP accesses, the private network IP address of the AP, and the MAC address and the private network IP address of the gateway device to which the AP accesses are located in the TLV field in the CAPWAP control message.
10. The apparatus according to claim 8 or 9, wherein the sending module is further configured to:
and when the number of the APs which have sent the version upgrading request message in the searched AP group is compared to be smaller than the set number, sending a version response request message carrying the latest version file to the AP, so that the AP carries out version upgrading according to the latest version file carried in the received version response request message.
11. A version upgrade apparatus, the apparatus being applied to an access point AP, the apparatus comprising:
The sending module is used for sending a version upgrading request message to the access controller AC associated with the AP when the version upgrading is required;
the receiving module is used for receiving the version upgrading response message sent by the AC;
a selecting module, configured to select, if the version upgrade response message only carries device information of other APs, device information that meets a preset condition from the device information of the other APs;
the version upgrading module is used for acquiring the latest version file from the AP corresponding to the selected equipment information and carrying out version upgrading according to the acquired version file;
when the AC receives the version upgrading request message, the version upgrading response message searches an AP group corresponding to the MAC address of the AP carried in the version upgrading request from each AP group, and is sent when the number of the APs which have sent the version upgrading request message in the searched AP group is not less than the set number;
each AP group is obtained by grouping all the APs according to the acquired address information and version identification of all the APs managed by the AC and the acquired address information of gateway equipment accessed by all the APs;
The address information of each AP only comprises the MAC address of the AP, and the address information of the gateway equipment accessed by each AP only comprises the MAC address of the gateway equipment accessed by the AP, or the address information of each AP comprises the private network IP address and the MAC address of the AP, and the address information of the gateway equipment accessed by each AP comprises the private network IP address and the MAC address of the gateway equipment accessed by the AP;
the gateway devices accessed by the APs in the same AP group are the same, and the version identifiers of the APs in the same AP group are the same;
the set number is the number of APs which are set by the AC for the searched AP group and directly acquire the latest version file from the AC.
12. The apparatus of claim 11, wherein the upgrade module is further configured to:
if the version upgrading response message carries the latest version file, carrying out version upgrading according to the latest version file;
and when the AC receives the version upgrading request message, searching an AP group corresponding to the MAC address of the AP carried in the version upgrading request message from each AP group, and transmitting the version upgrading request message when the number of the APs which have transmitted the version upgrading request message in the searched AP group is smaller than the set number.
CN202111332125.0A 2021-11-11 2021-11-11 Version upgrading method and device Active CN114115940B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111332125.0A CN114115940B (en) 2021-11-11 2021-11-11 Version upgrading method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111332125.0A CN114115940B (en) 2021-11-11 2021-11-11 Version upgrading method and device

Publications (2)

Publication Number Publication Date
CN114115940A CN114115940A (en) 2022-03-01
CN114115940B true CN114115940B (en) 2024-04-12

Family

ID=80378294

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111332125.0A Active CN114115940B (en) 2021-11-11 2021-11-11 Version upgrading method and device

Country Status (1)

Country Link
CN (1) CN114115940B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20060024714A (en) * 2004-09-14 2006-03-17 삼성전자주식회사 System and method for software automatic up-grade of mobile connection access point
WO2013107136A1 (en) * 2012-01-19 2013-07-25 华为技术有限公司 Terminal access authentication method and customer premise equipment
CN103906087A (en) * 2012-12-28 2014-07-02 华为技术有限公司 Access point upgrading method, device and system
WO2015003527A1 (en) * 2013-07-11 2015-01-15 成都西加云杉科技有限公司 Access point (ap) and system based on ap and access point controller (ac) architectures
WO2015003391A1 (en) * 2013-07-12 2015-01-15 华为技术有限公司 Gre tunnel implementation method, access device and convergence gateway
US11080040B1 (en) * 2020-05-20 2021-08-03 Hewlett Packard Enterprise Development Lp Firmware upgrade for access points

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20060024714A (en) * 2004-09-14 2006-03-17 삼성전자주식회사 System and method for software automatic up-grade of mobile connection access point
WO2013107136A1 (en) * 2012-01-19 2013-07-25 华为技术有限公司 Terminal access authentication method and customer premise equipment
CN103906087A (en) * 2012-12-28 2014-07-02 华为技术有限公司 Access point upgrading method, device and system
WO2015003527A1 (en) * 2013-07-11 2015-01-15 成都西加云杉科技有限公司 Access point (ap) and system based on ap and access point controller (ac) architectures
WO2015003391A1 (en) * 2013-07-12 2015-01-15 华为技术有限公司 Gre tunnel implementation method, access device and convergence gateway
US11080040B1 (en) * 2020-05-20 2021-08-03 Hewlett Packard Enterprise Development Lp Firmware upgrade for access points

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
符冬阳 ; .多DSP系统的版本快速加载方法.计算机系统应用.2013,(08),全文. *

Also Published As

Publication number Publication date
CN114115940A (en) 2022-03-01

Similar Documents

Publication Publication Date Title
US9313708B2 (en) Apparatus and method of changing access point in wireless network system
CN108366366B (en) Equipment upgrading method and device, storage medium and intelligent equipment
CN111885144B (en) Equipment binding method and device
CN111641997B (en) Equipment network access method and device based on Bluetooth Mesh network, and storage medium
CN101801110A (en) Wireless local area network upgrading method based on thin AP architecture
KR101344843B1 (en) Method and apparatus for searching base station using paging procedure in mobile network
CN102271421A (en) Method and device for establishing Mesh link
CN111641996B (en) Equipment network access method and device based on Bluetooth Mesh network, and storage medium
WO2017181623A1 (en) Network registration method for virtual sim card and terminal
EP2757833A1 (en) Method and apparatus for controlling wireless LAN access point selection of user equipment in wireless communication system
CN103179634A (en) Partner discovering and selecting method, device and system
CN112202877B (en) Gateway linkage method, gateway, cloud server and user terminal
CN114115940B (en) Version upgrading method and device
CN110401716A (en) Communication means and system between fringe node
CN109195199B (en) AP management method and device
KR20120006374A (en) Method and apparatus for connecting wireless communication device automatically
CN111131052B (en) Method and device for updating routing information
CN108924879B (en) Load balancing method for wireless Internet of things
CN110109933B (en) Information maintenance method, configuration management database system and storage medium
CN103200593A (en) Base station self-starting and auxiliary method and auxiliary device of self-starting
CN111417112A (en) Distributed OTA gateway networking and terminal access method and OTA upgrading system
CN107548121A (en) It is determined that the method and device of access network
CN115988482A (en) NF (network-to-network) accurate addressing method and device for co-construction shared heterogeneous network roaming scene
CN114598605A (en) Multi-device management method, first device, center device and storage medium
US10334023B2 (en) Content distribution method, system and server

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant