A file synchronization method and device, electronic equipment and storage medium

By having the Local AC handle file synchronization on the AP side in a hierarchical WLAN network, the problems of resource consumption and operational complexity of the Central AC are solved, resulting in more efficient file synchronization.

CN116405480BActive Publication Date: 2025-11-07NEW H3C TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310248094.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-03-10
Publication Date
2025-11-07
Estimated Expiration
2043-03-10

AI Technical Summary

Technical Problem

In a WLAN hierarchical network with a large number of access points (APs), the existing file synchronization method is complex to operate and consumes a lot of processing resources from the Central AC.

Method used

The Central AC synchronizes the files corresponding to the specified services to the corresponding Local AC. The Local AC is responsible for completing the file synchronization operation on the AP side. Through the comparison and update mechanism of file name and signature, the consistency and integrity of the files are ensured.

Benefits of technology

It reduces the processing resource requirements of Central AC, simplifies the operation process, and improves the applicability and efficiency of file synchronization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116405480B_ABST
    Figure CN116405480B_ABST
Patent Text Reader

Abstract

The application provides a file synchronization method and device, electronic equipment and storage medium. The method is applied to a center AC, and comprises the following steps: receiving a file synchronization instruction input by an administrator; sending a first file synchronization message carrying a target file corresponding to a target service, a target file name corresponding to the target file and a target file signature to a target local AC accessed by a target AP, so that the target local AC judges whether the target file name is stored locally after receiving the message; if not, storing all contents carried in the message, and sending a first file synchronization request carrying the file name and the file signature to a corresponding target AP; if yes, comparing whether the file signature corresponding to the file name is consistent with the file signature; if yes, sending the request to the corresponding target AP; if not, updating the file corresponding to the file name and the file signature, and sending the request to the corresponding target AP. The application can save processing resources on the center AC side.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of communication technology, and in particular to a file synchronization method and device, electronic equipment and storage medium. BACKGROUND

[0002] In a wireless local area network (WLAN) hierarchical networking deployed with one central access controller (Central AC) and multiple local access controllers (Local ACs), as the hardware configuration of an access point (AP) is gradually improved, the ability of the AP to process services is also continuously improved. Therefore, some designated services (for example, unified communication and collaboration (UCC) services, etc.) are usually transferred from the Central AC to the AP, so that the Central AC can focus more on network management functions, thereby reducing the workload of the Central AC and improving the access rate of wireless terminals.

[0003] Currently, an administrator usually manually configures a file for each AP on the Central AC, and inputs a corresponding file synchronization instruction for each AP on the Central AC. The Central AC synchronizes the corresponding file to the corresponding AP through the corresponding Local AC. However, in the case where a large number of APs (for example, thousands or even tens of thousands of APs) are deployed in the WLAN hierarchical networking, using this file synchronization method is relatively complex to operate, and occupies a large amount of processing resources of the Central AC. SUMMARY

[0004] To overcome the problems in the related art, the present application provides a file synchronization method and device, electronic equipment and storage medium.

[0005] According to a first aspect of an embodiment of the present application, a file synchronization method is provided, the method being applied to a Central AC, and the method comprising:

[0006] receiving a file synchronization instruction input by an administrator, wherein the file synchronization instruction is used to instruct the Central AC to synchronize a target file corresponding to a target service to a target AP deployed with the target service;

[0007] sending a first file synchronization message carrying the target file corresponding to the target service, the target file name corresponding to the target file and the target file signature to a target Local AC accessing the target AP, so that the target Local AC judges whether the target file name is stored locally after receiving the first file synchronization message; if the judgment result is no, the target Local AC stores all contents carried in the first file synchronization message, and sends a first file synchronization request carrying the target file name and the target file signature to the target AP accessing itself; if the judgment result is yes, the target Local AC compares the file signature corresponding to the target file name stored locally with the target file signature; if the comparison result is consistent, the target Local AC executes the step of sending the first file synchronization request carrying the target file name and the target file signature to the target AP accessing itself; if the comparison result is inconsistent, the target Local AC updates the file corresponding to the target file name stored locally to the target file, updates the file signature corresponding to the target file name stored locally to the target file signature, and executes the step of sending the first file synchronization request carrying the target file name and the target file signature to the target AP accessing itself, so that the corresponding target AP judges whether the target file name is stored locally after receiving the first file synchronization request; if the judgment result is no, the corresponding target AP stores all contents carried in the first file synchronization request, and acquires and stores the target file from the corresponding target Local AC; if the judgment result is yes, the corresponding target AP compares the file signature corresponding to the target file name stored locally with the target file signature; if the comparison result is consistent, the corresponding target Local AC is informed that file synchronization is not needed; if the comparison result is inconsistent, the corresponding target Local AC updates the file corresponding to the target file name stored locally to the target file, and updates the file signature corresponding to the target file name stored locally to the target file signature.

[0008] According to a second aspect of the embodiment of the present application, a file synchronization method is provided, and the method is applied to a Local AC, and the method comprises the following steps:

[0009] receiving a first file synchronization message sent by a Central AC, wherein the first file synchronization message is sent by the Central AC after receiving a synchronization instruction input by an administrator, the synchronization instruction being used to instruct the Central AC to synchronize a target file corresponding to a target service to a target AP on which the target service is deployed, and the first file synchronization message carries the target file corresponding to the target service, a target file name corresponding to the target file and a target file signature;

[0010] judging whether the target file name is stored locally;

[0011] If the result of the judgment is no, all the contents carried in the first file synchronization message are stored, and the first file synchronization request carrying the target file name and the target file signature is sent to the target AP connected to the Central AC;

[0012] If the result of the judgment is yes, whether the file signature corresponding to the target file name stored locally is consistent with the target file signature is compared.

[0013] If the comparison result is consistent, the step of sending the first file synchronization request carrying the target file name and the target file signature to the target AP connected to the Central AC is performed.

[0014] If the comparison result is inconsistent, the file corresponding to the target file name stored locally is updated to the target file, the file signature corresponding to the target file name stored locally is updated to the target file signature, and the step of sending the first file synchronization request carrying the target file name and the target file signature to the target AP connected to the Central AC is performed, so that the corresponding target AP judges whether the target file name is stored locally after receiving the first file synchronization request. If the result of the judgment is no, all the contents carried in the first file synchronization request are stored, and the target file is obtained and stored from the corresponding target Local AC. If the result of the judgment is yes, whether the file signature corresponding to the target file name stored locally is consistent with the target file signature is compared. If the comparison result is consistent, the corresponding target Local AC is notified that file synchronization is not needed. If the comparison result is inconsistent, the file corresponding to the target file name stored locally is updated to the target file, and the file signature corresponding to the target file name stored locally is updated to the target file signature.

[0015] According to a third aspect of the embodiments of the present application, a file synchronization device is provided, which is applied to a Central AC, and the device comprises:

[0016] a receiving module, configured to receive a file synchronization instruction input by an administrator, wherein the file synchronization instruction is used to instruct the Central AC to synchronize a target file corresponding to a target service to a target AP in which the target service is deployed;

[0017] The first synchronization module is configured to send a first file synchronization message carrying the target file corresponding to the target service, a target file name corresponding to the target file, and a target file signature to a target Local AC accessed by the target AP, so that the target Local AC determines whether the target file name is stored locally after receiving the first file synchronization message; if the determination result is no, the target Local AC stores all contents carried in the first file synchronization message, and sends a first file synchronization request carrying the target file name and the target file signature to the target AP accessed by the target Local AC; if the determination result is yes, the target Local AC compares a file signature corresponding to the target file name stored locally with the target file signature; if the comparison result is consistent, the target Local AC performs the step of sending the first file synchronization request carrying the target file name and the target file signature to the target AP accessed by the target Local AC; if the comparison result is inconsistent, the target Local AC updates a file corresponding to the target file name stored locally to the target file, updates a file signature corresponding to the target file name stored locally to the target file signature, and performs the step of sending the first file synchronization request carrying the target file name and the target file signature to the target AP accessed by the target Local AC, so that the corresponding target AP determines whether the target file name is stored locally after receiving the first file synchronization request; if the determination result is no, the corresponding target AP stores all contents carried in the first file synchronization request, and acquires and stores the target file from the corresponding target Local AC; if the determination result is yes, the corresponding target AP compares a file signature corresponding to the target file name stored locally with the target file signature; if the comparison result is consistent, the corresponding target Local AC is notified that file synchronization is not needed; if the comparison result is inconsistent, the corresponding target Local AC updates a file corresponding to the target file name stored locally to the target file, and updates a file signature corresponding to the target file name stored locally to the target file signature.

[0018] According to a fourth aspect of the embodiments of the present application, a file synchronization device is provided, which is applied to a Local AC, and includes:

[0019] The receiving module is configured to receive a first file synchronization message sent by a Central AC, wherein the first file synchronization message is sent by the Central AC after receiving a synchronization instruction input by an administrator and indicating that the Central AC synchronizes a target file corresponding to a target service to a target AP on which the target service is deployed, and carries the target file corresponding to the target service, a target file name corresponding to the target file, and a target file signature;

[0020] The determining module is configured to determine whether the target file name is stored locally.

[0021] a first synchronization module, configured to, when the result of the judgment module is no, store all contents carried in the first file synchronization message, and send a first file synchronization request carrying the target file name and the target file signature to a target AP connected to itself;

[0022] a comparison module, configured to, when the result of the judgment module is yes, compare whether the file signature corresponding to the target file name stored locally is consistent with the target file signature, and when the comparison result is consistent, trigger the first synchronization module to perform the step of sending the first file synchronization request carrying the target file name and the target file signature to the target AP connected to itself;

[0023] an updating module, configured to, when the comparison result of the judgment module is inconsistent, update the file corresponding to the target file name stored locally to the target file, update the file signature corresponding to the target file name stored locally to the target file signature, trigger the first file synchronization module to perform the step of sending the first file synchronization request carrying the target file name and the target file signature to the target AP connected to itself, so that the target AP corresponding to the target file name judges whether the target file name is stored locally after receiving the first file synchronization request; if the result of the judgment is no, the target AP stores all contents carried in the first file synchronization request and acquires and stores the target file from the target Local AC corresponding to the target file name; if the result of the judgment is yes, the target AP compares whether the file signature corresponding to the target file name stored locally is consistent with the target file signature; if the comparison result is consistent, the target AP notifies the target Local AC corresponding to the target file name that file synchronization is not needed; if the comparison result is inconsistent, the target AP updates the file corresponding to the target file name stored locally to the target file and updates the file signature corresponding to the target file name stored locally to the target file signature.

[0024] According to a fifth aspect of the embodiments of the present application, an electronic device is provided, which includes a processor and a machine readable storage medium, the machine readable storage medium stores machine executable instructions which can be executed by the processor, and the processor is prompted by the machine executable instructions to implement the method steps of any of the above file synchronization methods.

[0025] According to a sixth aspect of the embodiments of the present application, a computer readable storage medium is provided, which stores a computer program, and the computer program is executed by a processor to implement the method steps of any of the above file synchronization methods.

[0026] The technical solutions provided by the embodiments of the present application can have the following beneficial effects:

[0027] In the embodiments of the present application, for the APs deployed in the WLAN hierarchical networking and having specified services, the Central AC no longer synchronizes the files corresponding to the specified services to the APs one by one through the corresponding Local AC, but synchronizes the files corresponding to the specified services to the corresponding Local AC, and the corresponding Local AC is responsible for completing the file synchronization operation of the specified services on the corresponding AP side. In this way, the processing resources on the Central AC side are greatly reduced, and compared with the existing synchronization process, the operation process is relatively simple and has good applicability.

[0028] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the present application. BRIEF DESCRIPTION OF DRAWINGS

[0029] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and serve to explain the principles of the present application, together with the description.

[0030] Figure 1 One of the flow diagrams of a file synchronization method provided by the embodiments of the present application;

[0031] Figure 2 The second flow diagram of a file synchronization method provided by the embodiments of the present application;

[0032] Figure 3 The architecture diagram of the WLAN hierarchical networking provided by the embodiments of the present application;

[0033] Figure 4 The first structure diagram of a file synchronization device provided by the embodiments of the present application;

[0034] Figure 5 The second structure diagram of a file synchronization device provided by the embodiments of the present application;

[0035] Figure 6 The structure diagram of an electronic device provided by the embodiments of the present application. DETAILED DESCRIPTION

[0036] The exemplary embodiments will be described in detail herein with reference to the attached drawings. When the description below refers to accompanying drawings, the same numbers on different drawings represent the same or similar elements unless otherwise noted.

[0037] The terminology used in this application is for the purpose of describing particular embodiments only and is not intended to be limiting. 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 will be further understood that the terms "comprises" and / or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and / or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups thereof.

[0038] It should be understood that, although the terms first, second, third, etc. can be used herein to describe various information, the information should not be limited to these terms. These terms are only used to distinguish one piece of information from another. For example, a first information can also be termed a second information without departing from the scope of the present application, similarly, a second information can also be termed a first information. Depending on the context, the word "if' or "if" as used herein can be interpreted as "when" or "upon" or "in response to determining" or "in response to detecting."

[0039] Next, the embodiments of the present application are described in detail.

[0040] The embodiments of the present application provide a file synchronization method, which is applied to a Central AC, as shown in the following table, the method can comprise the following steps: Figure 1

[0041] S11, receiving a file synchronization instruction input by an administrator.

[0042] In this step, the file synchronization instruction is used to instruct the Central AC to synchronize a target file corresponding to a target service to a target AP on which the target service is deployed.

[0043] Here, the target file corresponding to the target service can be an initial file corresponding to the target service, or an updated file corresponding to the target service.

[0044] ​S12, the target Local AC corresponding to the target AP access sends a first file synchronization message carrying a target file corresponding to the target service, a target file name corresponding to the target file and a target file signature, so that the target Local AC judges whether the local storage has the target file name when receiving the first file synchronization message; if the judgment result is no, stores all the contents carried in the first file synchronization message, and sends a first file synchronization request carrying the target file name and the target file signature to the target AP accessed to itself; if the judgment result is yes, compares the file signature corresponding to the target file name stored locally with the target file signature; if the comparison result is consistent, the step of sending the first file synchronization request carrying the target file name and the target file signature to the target AP accessed to itself is executed; if the comparison result is inconsistent, the file corresponding to the target file name stored locally is updated to the target file, the file signature corresponding to the target file name stored locally is updated to the target file signature, and the step of sending the first file synchronization request carrying the target file name and the target file signature to the target AP accessed to itself is executed, so that the local storage of the target file name is judged by the corresponding target AP; if the judgment result is no, all the contents carried in the first file synchronization request are stored, and the target file is obtained and stored from the corresponding target Local AC; if the judgment result is yes, the file signature corresponding to the target file name stored locally is compared with the target file signature; if the comparison result is consistent, the corresponding target Local AC is notified that file synchronization is not needed; if the comparison result is inconsistent, the file corresponding to the target file name stored locally is updated to the target file, and the file signature corresponding to the target file name stored locally is updated to the target file signature.

[0045] It should be noted that in this step, the Central AC can specifically send the first file synchronization message carrying the target file, the target file name corresponding to the target file and the target file signature to the target AP accessed to the target Local AC through the management channel between the Central AC and the target Local AC.

[0046] Here, the target file name can be obtained by the Central AC from the file synchronization instruction; the target file can be obtained by the Central AC from the local according to the file name; and the target file signature can be obtained by the Central AC by calculating the target file according to a preset algorithm. For example, the preset algorithm can be MD5 message-digest algorithm (MD5 Message-Digest Algorithm) and the like.

[0047] In addition to carrying the target file, the target file name corresponding to the target file and the target file signature, the first file synchronization message can also carry file size (which can be calculated by the Central AC) and other information.

[0048] In addition, in this step, the target file signature of the target service is carried in the first file synchronization message, which can ensure the integrity of the related file and facilitate the corresponding Local AC and the corresponding AP to know whether the content of the file corresponding to the same file name has changed in time.

[0049] It should be further explained that in the embodiment of the present application, the target Local AC can send the first file synchronization request to the corresponding target AP through a wireless access point control and supply (Controlling and Provisioning of Wireless Access Point, CAPWAP) tunnel established with the corresponding target AP.

[0050] Further, in the embodiment of the present application, the Central AC can also perform the following operations:

[0051] After monitoring that the target Local AC re-establishes connection with itself, a second file synchronization message carrying the latest file corresponding to the target service, the target file name corresponding to the latest file and the latest file signature is sent to the target Local AC, so that the target Local AC judges whether the local storage has the target file name when receiving the second file synchronization message; if the judgment result is no, all the contents carried in the second file synchronization message are stored, and a second file synchronization request carrying the target file name and the latest file signature is sent to the target AP accessed to itself; if the judgment result is yes, whether the file signature corresponding to the target file name stored in the local storage is consistent with the latest file signature is compared; if the comparison result is consistent, the step of sending the second file synchronization request carrying the target file name and the latest file signature to the target AP accessed to itself is executed; if the comparison result is inconsistent, the file corresponding to the target file name stored in the local storage is updated to the latest file, the file signature corresponding to the target file name stored in the local storage is updated to the latest file signature, and the step of sending the second file synchronization request carrying the target file name and the latest file signature to the target AP accessed to itself is executed, so that the local storage of the target AP is judged by the corresponding target Local AC; if the judgment result is no, all the contents carried in the second file synchronization request are stored, and the latest file is acquired and stored from the corresponding target Local AC; if the judgment result is yes, whether the file signature corresponding to the target file name stored in the local storage is consistent with the latest file signature is compared; if the comparison result is consistent, the corresponding target Local AC is informed that file synchronization is not needed; if the comparison result is inconsistent, the file corresponding to the target file name stored in the local storage is updated to the latest file, and the file signature corresponding to the target file name stored in the local storage is updated to the latest file signature.

[0052] It should be noted that, in the embodiment of the present application, for the target Local AC, when the file corresponding to the target file signature or the latest file signature is acquired, a file acquisition request carrying the signature can be sent to the Central AC, and the corresponding file can be acquired from the file acquisition response sent by the Central AC.

[0053] Similarly, for the target AP, when the file corresponding to the target file signature or the latest file signature is acquired, a file acquisition request carrying the corresponding signature can be sent to the corresponding target Local AC, and the corresponding file can be acquired from the file acquisition response sent by the Central AC.

[0054] It should be further noted that in the embodiments of this application, there may be a variety of reasons that cause the target Local AC to re-establish a connection with the Central AC. For example, it may be due to a failure in the WLAN hierarchical network where the Central AC is located, or it may be due to an anomaly in the Central AC or the target Local AC. Regardless of the reason, once the Central AC detects that the target Local AC has re-established a connection with itself, it will execute the above operation process so that the corresponding target Local AC and the corresponding target AP can decide whether to update relevant files and related file signatures. In this way, unlike the prior art, the administrator no longer needs to manually trigger the relevant file synchronization operation, making the operation simpler.

[0055] The above describes the implementation process of the file synchronization method from the perspective of the Central AC. The following describes the implementation process of the file synchronization method from the perspective of the Local AC.

[0056] This application also provides a file synchronization method, which is applied to Local AC, such as... Figure 2 As shown, the method may include the following steps:

[0057] S21. Receive the first file synchronization message sent by the Central AC.

[0058] In this step, the first file synchronization message is sent by the Central AC after receiving the synchronization instruction from the administrator to instruct the Central AC to synchronize the target file corresponding to the target service to the target AP where the target service is deployed. The message carries the target file corresponding to the target service, the target file name, and the target file signature.

[0059] S22. Determine whether the target file name is stored locally; if the result is no, execute steps S23 and S24; if the result is yes, execute step S25.

[0060] S23. Store all the contents carried in the first file synchronization message.

[0061] S24. Send a first file synchronization request carrying the target file name and target file signature to the target AP connected to it.

[0062] S25. Compare the file signature corresponding to the target file name stored locally with the target file signature; if the comparison result is consistent, proceed to step S24; if the comparison result is inconsistent, proceed to step S26.

[0063] S26, updating the file corresponding to the target file name stored locally to the target file, updating the file signature corresponding to the target file name stored locally to the target file signature, and starting to execute step S24 to determine whether the target file name is stored locally by the corresponding target AP; if the determination result is no, storing all the contents carried in the first file synchronization request and obtaining and storing the target file from the corresponding target Local AC; if the determination result is yes, comparing whether the file signature corresponding to the target file name stored locally is consistent with the target file signature; if the comparison result is consistent, notifying the corresponding target Local AC that file synchronization is not needed; if the comparison result is inconsistent, updating the file corresponding to the target file name stored locally to the target file, and updating the file signature corresponding to the target file name stored locally to the target file signature.

[0064] Further, in the embodiment of the present application, the Local AC can further perform the following operations:

[0065] receiving a file acquisition request for acquiring the target file corresponding to the target file signature sent by the target AP accessing to the Local AC;

[0066] sending a file acquisition response carrying the target file to the corresponding target AP, so that the corresponding target AP updates the file corresponding to the target file signature stored locally to the target file carried in the file acquisition response after receiving the file acquisition response.

[0067] Herein, the target file signature can be carried in the acquisition request.

[0068] Further, in the embodiment of the present application, the Local AC can further perform the following operations:

[0069] when a new AP deploying the target service or a faulty target AP recovering normally is monitored, sending a second file synchronization request carrying the target file name and the latest file signature corresponding thereto to the new AP or the faulty target AP to determine whether the target file name is stored locally by the new AP or the faulty target AP; if the determination result is no, storing all the contents carried in the second file synchronization request and obtaining and storing the latest file from the corresponding target Local AC; if the determination result is yes, comparing whether the file signature corresponding to the target file name stored locally is consistent with the latest file signature; if the comparison result is consistent, notifying the corresponding target Local AC that file synchronization is not needed; if the comparison result is inconsistent, updating the file corresponding to the target file name stored locally to the latest file, and updating the file signature corresponding to the target file name stored locally to the latest file signature.

[0070] The above operation process enables automatic file synchronization for specified services on newly added APs or target APs undergoing fault recovery. Unlike existing technologies, which require administrators to manually trigger file synchronization, this process is much simpler.

[0071] The above file synchronization method will be described in detail below with reference to specific embodiments.

[0072] Assuming a hierarchical WLAN network (e.g.) Figure 3 As shown, all APs connected to Local AC1 (i.e., AP1 and APm) and all APs connected to Local AC2 (i.e., APx and APy) have a specified service (e.g., UCC service) deployed on them.

[0073] Suppose that at some point, the Central AC receives a file synchronization command from the administrator. This command contains the filename of the file corresponding to the UCC service.

[0074] The Central AC retrieves the corresponding file from its local machine based on the filename and calculates the file signature using the MD5 message digest algorithm. Then, the Central AC sends a file synchronization message containing the filename, the filename, and the target file signature to the Local AC connected to the AP that has deployed UCC service. That is, the Central AC sends the file synchronization message to Local AC 1 and Local AC 2 respectively.

[0075] Taking Local AC 1 as an example, after receiving the file synchronization message, Local AC 1 determines whether the file name is stored locally.

[0076] Assuming the judgment result is yes, then Local AC 1 compares whether the file signature corresponding to the file name stored locally is consistent with the file signature.

[0077] If the judgment result is inconsistent, then Local AC 1 will update the file corresponding to the file name in its local storage to that file name, update the file signature corresponding to the file name in its local storage to that file signature, and send a file synchronization request carrying the file name and file signature to the APs (i.e., AP1 and APm) that have deployed UCC services and are connected to it.

[0078] Taking the AP1 as an example, after receiving the file synchronization request, it is judged whether the local storage has the target file name; assuming that the judgment result is yes, at this time, the AP1 continues to compare whether the file signature corresponding to the local storage target file name is consistent with the target file signature; assuming that the comparison result is no, at this time, the AP1 updates the file corresponding to the local storage target file name to the target file, and updates the file signature corresponding to the local storage target file name to the target file signature.

[0079] From the above technical solutions, it can be seen that in the embodiments of the present application, for the APs deployed with specified services in the WLAN hierarchical networking, the Central AC no longer synchronizes the files corresponding to the specified services to the APs one by one through the corresponding Local AC, but synchronizes the files corresponding to the specified services to the corresponding Local AC, and the corresponding Local AC is responsible for completing the file synchronization operation of the specified services on the corresponding AP side, so that the processing resources of the Central AC side are greatly reduced, and compared with the existing synchronization process, the operation process is relatively simple and has good applicability.

[0080] Based on the same inventive concept, the present application also provides a file synchronization device, which is applied to a Central AC, and a structure diagram thereof is shown in Figure 4 The device specifically comprises:

[0081] The receiving module 41 is configured to receive a file synchronization instruction input by an administrator, wherein the file synchronization instruction is used to instruct the Central AC to synchronize a target file corresponding to a target service to a target AP deployed with the target service;

[0082] The first synchronization module 42 is configured to send a first file synchronization message carrying the target file corresponding to the target service, the target file name corresponding to the target file and the target file signature to a target Local AC accessed by the target AP, so that the target Local AC determines whether the target file name is stored locally after receiving the first file synchronization message; if the determination result is no, the target Local AC stores all contents carried in the first file synchronization message, and sends a first file synchronization request carrying the target file name and the target file signature to the target AP accessed by the target Local AC; if the determination result is yes, the target Local AC compares the file signature corresponding to the target file name stored locally with the target file signature; if the comparison result is consistent, the target Local AC performs the step of sending the first file synchronization request carrying the target file name and the target file signature to the target AP accessed by the target Local AC; if the comparison result is inconsistent, the target Local AC updates the file corresponding to the target file name stored locally to the target file, updates the file signature corresponding to the target file name stored locally to the target file signature, and performs the step of sending the first file synchronization request carrying the target file name and the target file signature to the target AP accessed by the target Local AC, so that the corresponding target Local AC determines whether the target file name is stored locally after receiving the first file synchronization request; if the determination result is no, the target Local AC stores all contents carried in the first file synchronization request, and obtains and stores the target file from the corresponding target Local AC; if the determination result is yes, the target Local AC compares the file signature corresponding to the target file name stored locally with the target file signature; if the comparison result is consistent, the target Local AC notifies the corresponding target Local AC that file synchronization is not needed; if the comparison result is inconsistent, the target Local AC updates the file corresponding to the target file name stored locally to the target file, and updates the file signature corresponding to the target file name stored locally to the target file signature.

[0083] Preferably, the apparatus further comprises:

[0084] The second synchronization module ( Figure 4The target Local AC is reconnected to itself, and the second file synchronization message carrying the latest file corresponding to the target service, the target file name corresponding to the latest file, and the latest file signature is sent to the target Local AC, so that the target Local AC judges whether the target file name is stored locally after receiving the second file synchronization message; if the judgment result is no, all contents carried in the second file synchronization message are stored, and the second file synchronization request carrying the target file name and the latest file signature is sent to the target AP connected to itself; if the judgment result is yes, the file signature corresponding to the target file name stored locally is compared with the latest file signature; if the comparison result is consistent, the step of sending the second file synchronization request carrying the target file name and the latest file signature to the target AP connected to itself is performed; if the comparison result is inconsistent, the file corresponding to the target file name stored locally is updated to the latest file, the file signature corresponding to the target file name stored locally is updated to the latest file signature, and the step of sending the second file synchronization request carrying the target file name and the latest file signature to the target AP connected to itself is performed, so that the corresponding target AP judges whether the target file name is stored locally after receiving the second file synchronization request; if the judgment result is no, all contents carried in the second file synchronization request are stored, and the latest file is obtained and stored from the corresponding target Local AC; if the judgment result is yes, the file signature corresponding to the target file name stored locally is compared with the latest file signature; if the comparison result is consistent, the corresponding target Local AC is notified that file synchronization is not needed; and if the comparison result is inconsistent, the file corresponding to the target file name stored locally is updated to the latest file, and the file signature corresponding to the target file name stored locally is updated to the latest file signature.

[0085] Based on the same inventive concept, the application further provides a file synchronization device, which is applied to a Local AC, and a structural schematic diagram thereof is as shown in Figure 5 The device specifically comprises:

[0086] A first receiving module 51 is configured to receive a first file synchronization message sent by a Central AC, wherein the first file synchronization message is sent by the Central AC after receiving a synchronization instruction input by an administrator and indicating that the Central AC synchronizes a target file corresponding to a target service to a target AP on which the target service is deployed, and carries the target file corresponding to the target service, a target file name corresponding to the target file, and a target file signature.

[0087] a judging module 52, configured to judge whether the target file name is stored locally;

[0088] a first synchronizing module 53, configured to, when the judging result of the judging module 52 is no, store all contents carried in the first file synchronizing message, and send a first file synchronizing request carrying the target file name and the target file signature to a target AP connected to itself;

[0089] a comparing module 54, configured to, when the judging result of the judging module 52 is yes, compare whether the file signature corresponding to the target file name stored locally is consistent with the target file signature, and trigger the first synchronizing module 53 to perform the step of sending the first file synchronizing request carrying the target file name and the target file signature to the target AP connected to itself when the comparison result is consistent;

[0090] an updating module 55, configured to, when the comparison result of the judging module is inconsistent, update the file corresponding to the target file name stored locally to the target file, update the file signature corresponding to the target file name stored locally to the target file signature, and trigger the first synchronizing module 53 to perform the step of sending the first file synchronizing request carrying the target file name and the target file signature to the target AP connected to itself, so that the corresponding target AP judges whether the target file name is stored locally after receiving the first file synchronizing request; if the judging result is no, the first file synchronizing request is stored, and the target file is obtained and stored from the corresponding target Local AC; if the judging result is yes, whether the file signature corresponding to the target file name stored locally is consistent with the target file signature is compared; if the comparison result is consistent, the corresponding target Local AC is informed that file synchronization is not needed; if the comparison result is inconsistent, the file corresponding to the target file name stored locally is updated to the target file, and the file signature corresponding to the target file name stored locally is updated to the target file signature.

[0091] Preferably, the apparatus further comprises:

[0092] a second receiving module (not shown in the figure), configured to receive a file acquisition request for acquiring the target file corresponding to the target file signature sent by a target AP connected to itself; Figure 5 a sending module (not shown in the figure), configured to send the target file to the target AP connected to itself after receiving the file acquisition request;

[0093] Figure 5 ​(Not shown in the image) is used to send a file retrieval response carrying the target file to the corresponding target AP, so that after receiving the file retrieval response, the corresponding target AP updates the file corresponding to the target file signature stored locally to the target file carried in the file retrieval response.

[0094] Preferably, the device further includes:

[0095] Second synchronization module ( Figure 5 (Not shown in the image) is used to send a second file synchronization request carrying the target file name and its corresponding latest file signature to the new AP or the faulty target AP when a new AP deploying the target service or a faulty target AP recovers to normal operation. Upon receiving the second file synchronization request, the new AP or the faulty target AP determines whether the target file name is stored locally. If the determination result is no, it stores all the content carried in the second file synchronization request and obtains and stores the latest file from the corresponding target Local AC. If the determination result is yes, it compares whether the file signature corresponding to the target file name stored locally is consistent with the latest file signature. If the comparison result is consistent, it notifies the corresponding target Local AC that file synchronization is not required. If the comparison result is inconsistent, it updates the file corresponding to the target file name stored locally with the latest file and updates the file signature corresponding to the target file name stored locally with the latest file signature.

[0096] As can be seen from the above technical solutions, in this embodiment of the application, for APs with designated services deployed in a WLAN hierarchical network, the Central AC no longer synchronizes the files corresponding to the designated services for each AP through the corresponding Local AC. Instead, it synchronizes the files corresponding to the designated services to the corresponding Local AC, which is responsible for completing the file synchronization operation of the designated services on the AP side. In this way, the processing resources on the Central AC side are greatly reduced. Moreover, compared with the existing synchronization process, the operation is simpler and has better applicability.

[0097] This application also provides an electronic device, such as... Figure 6 As shown, it includes a processor 61 and a machine-readable storage medium 62, the machine-readable storage medium 62 storing machine-executable instructions that can be executed by the processor 61, the processor 61 being prompted by the machine-executable instructions to implement the steps of any of the above file synchronization methods.

[0098] The machine readable storage medium described above can include a random access memory (RAM) and can also include a non-volatile memory (NVM), such as at least one disk memory. Optionally, the machine readable storage medium can also be at least one storage device located remotely from the aforementioned processor.

[0099] The processor described above can be a general processor, including a central processing unit (CPU), a network processor (NP), etc. It can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic component, a discrete hardware component.

[0100] In yet another embodiment provided in the present application, a computer readable storage medium is provided, and the computer readable storage medium stores a computer program. The computer program is executed by a processor to implement the steps of any of the file synchronization methods described above.

[0101] The above only describes preferred embodiments of the present application and is not used to limit the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the scope of protection of the present application.

Claims

1. A file synchronization method, characterized by, The method is applied to a central access controller (Central AC), and the method comprises: receiving a file synchronization instruction input by an administrator, wherein the file synchronization instruction is used to instruct the Central AC to synchronize a target file corresponding to a target service to a target access point (AP) in which the target service is deployed; sending, to a target local access controller (Local AC) accessed by the target AP, a first file synchronization message carrying the target file corresponding to the target service, a target file name corresponding to the target file, and a target file signature, so that the target Local AC judges whether the target file name is stored locally after receiving the first file synchronization message; if the judgment result is no, the target Local AC stores all contents carried in the first file synchronization message, and sends a first file synchronization request carrying the target file name and the target file signature to the target AP accessed by itself; if the judgment result is yes, the target Local AC compares a file signature corresponding to the target file name stored locally with the target file signature; if the comparison result is consistent, the target Local AC performs the step of sending the first file synchronization request carrying the target file name and the target file signature to the target AP accessed by itself; if the comparison result is inconsistent, the target Local AC updates a file corresponding to the target file name stored locally to the target file, updates a file signature corresponding to the target file name stored locally to the target file signature, and performs the step of sending the first file synchronization request carrying the target file name and the target file signature to the target AP accessed by itself, so that the corresponding target AP judges whether the target file name is stored locally after receiving the first file synchronization request; if the judgment result is no, the corresponding target AP stores all contents carried in the first file synchronization request and acquires and stores the target file from the corresponding target Local AC; if the judgment result is yes, the corresponding target AP compares a file signature corresponding to the target file name stored locally with the target file signature; if the comparison result is consistent, the corresponding target AP notifies the corresponding target Local AC that file synchronization is not needed; if the comparison result is inconsistent, the corresponding target AP updates a file corresponding to the target file name stored locally to the target file, and updates a file signature corresponding to the target file name stored locally to the target file signature.

2. The method of claim 1, wherein, The method further comprises: After monitoring that the target Local AC re-establishes connection with itself, a second file synchronization message carrying the latest file corresponding to the target service, the target file name corresponding to the latest file and the latest file signature is sent to the target Local AC, so that the target Local AC judges whether the target file name is stored locally after receiving the second file synchronization message; if the judgment result is no, all contents carried in the second file synchronization message are stored, and a second file synchronization request carrying the target file name and the latest file signature is sent to the target AP accessed to itself; if the judgment result is yes, whether the file signature corresponding to the target file name stored locally is consistent with the latest file signature is compared; if the comparison result is consistent, the step of sending the second file synchronization request carrying the target file name and the latest file signature to the target AP accessed to itself is executed; if the comparison result is inconsistent, the file corresponding to the target file name stored locally is updated to the latest file, the file signature corresponding to the target file name stored locally is updated to the latest file signature, and the step of sending the second file synchronization request carrying the target file name and the latest file signature to the target AP accessed to itself is executed, so that the corresponding target AP judges whether the target file name is stored locally after receiving the second file synchronization request; if the judgment result is no, all contents carried in the second file synchronization request are stored, and the latest file is acquired and stored from the corresponding target Local AC; if the judgment result is yes, whether the file signature corresponding to the target file name stored locally is consistent with the latest file signature is compared; if the comparison result is consistent, the corresponding target Local AC is informed that file synchronization is not needed; if the comparison result is inconsistent, the file corresponding to the target file name stored locally is updated to the latest file, and the file signature corresponding to the target file name stored locally is updated to the latest file signature.

3. A file synchronization method characterized by, The method is applied to a local access controller (Local AC), and the method comprises: receiving a first file synchronization message sent by a central access controller (Central AC), wherein the first file synchronization message is sent by the Central AC after receiving a synchronization instruction input by an administrator and indicating that the Central AC synchronizes a target file corresponding to a target service to a target access point (AP) on which the target service is deployed, and carries the target file corresponding to the target service, a target file name corresponding to the target file and a target file signature; judging whether the target file name is stored locally; if the judgment result is no, storing all contents carried in the first file synchronization message, and sending a first file synchronization request carrying the target file name and the target file signature to the target AP accessed to itself; If the result of the judgment is yes, whether the file signature corresponding to the target file name stored locally is consistent with the target file signature is compared; If the comparison result is consistent, the step of sending a first file synchronization request carrying the target file name and the target file signature to the target AP connected to itself is performed; If the comparison result is inconsistent, the file corresponding to the target file name stored locally is updated to the target file, the file signature corresponding to the target file name stored locally is updated to the target file signature, the step of sending a first file synchronization request carrying the target file name and the target file signature to the target AP connected to itself is performed, so that the corresponding target AP judges whether the target file name is stored locally after receiving the first file synchronization request; if the result of the judgment is no, all contents carried in the first file synchronization request are stored, and the target file is obtained and stored from the corresponding target Local AC; if the result of the judgment is yes, whether the file signature corresponding to the target file name stored locally is consistent with the target file signature is compared; if the comparison result is consistent, the corresponding target Local AC is informed that file synchronization is not needed; if the comparison result is inconsistent, the file corresponding to the target file name stored locally is updated to the target file, and the file signature corresponding to the target file name stored locally is updated to the target file signature.

4. The method of claim 3, wherein, The method further comprises: receiving a file acquisition request sent by the target AP connected to itself for obtaining the target file corresponding to the target file signature; sending a file acquisition response carrying the target file to the corresponding target AP, so that the corresponding target AP updates the file corresponding to the target file signature stored locally to the target file carried in the file acquisition response after receiving the file acquisition response.

5. The method of claim 3, wherein, The method further comprises: when a new AP deploying the target service or a faulty target AP recovering normally is monitored, a second file synchronization request carrying the target file name and the latest file signature corresponding thereto is sent to the new AP or the faulty target AP, so that the new AP or the faulty target AP judges whether the target file name is stored locally after receiving the second file synchronization request; if the result of the judgment is no, all contents carried in the second file synchronization request are stored, and the latest file is obtained and stored from the corresponding target Local AC; if the result of the judgment is yes, whether the file signature corresponding to the target file name stored locally is consistent with the latest file signature is compared; if the comparison result is consistent, the corresponding target Local AC is informed that file synchronization is not needed; if the comparison result is inconsistent, the file corresponding to the target file name stored locally is updated to the latest file, and the file signature corresponding to the target file name stored locally is updated to the latest file signature.

6. A file synchronization apparatus characterized by comprising: The device is applied to a central access controller (Central AC), and the device comprises: The receiving module is configured to receive a file synchronization instruction input by an administrator, wherein the file synchronization instruction is used to instruct the Central AC to synchronize a target file corresponding to a target service to a target access point (AP) in which the target service is deployed; The first synchronization module is configured to send a first file synchronization message carrying the target file corresponding to the target service, a target file name corresponding to the target file, and a target file signature to a target local access controller (Local AC) accessed by the target AP, so that the target Local AC determines whether the target file name is stored locally after receiving the first file synchronization message; if the determination result is no, the target Local AC stores all contents carried in the first file synchronization message, and sends a first file synchronization request carrying the target file name and the target file signature to the target AP accessed by itself; if the determination result is yes, the target Local AC compares a file signature corresponding to the target file name stored locally with the target file signature; if the comparison result is consistent, the target Local AC performs the step of sending the first file synchronization request carrying the target file name and the target file signature to the target AP accessed by itself; if the comparison result is inconsistent, the target Local AC updates a file corresponding to the target file name stored locally to the target file, updates a file signature corresponding to the target file name stored locally to the target file signature, and performs the step of sending the first file synchronization request carrying the target file name and the target file signature to the target AP accessed by itself, so that the corresponding target AP determines whether the target file name is stored locally after receiving the first file synchronization request; if the determination result is no, the corresponding target AP stores all contents carried in the first file synchronization request, and acquires and stores the target file from the corresponding target Local AC; if the determination result is yes, the corresponding target AP compares a file signature corresponding to the target file name stored locally with the target file signature; if the comparison result is consistent, the corresponding target AP notifies the corresponding target Local AC that file synchronization is not needed; if the comparison result is inconsistent, the corresponding target AP updates a file corresponding to the target file name stored locally to the target file, and updates a file signature corresponding to the target file name stored locally to the target file signature.

7. The apparatus of claim 6, wherein, The apparatus further comprises: The second synchronization module is configured to, after monitoring that the target Local AC re-establishes connection with itself, send a second file synchronization message carrying a latest file corresponding to the target service, a target file name corresponding to the latest file, and a latest file signature to the target Local AC, so that the target Local AC judges whether the target file name is stored locally after receiving the second file synchronization message; if the judgment result is no, the target Local AC stores all contents carried in the second file synchronization message, and sends a second file synchronization request carrying the target file name and the latest file signature to a target AP connected to itself; if the judgment result is yes, the target Local AC compares a file signature corresponding to the target file name stored locally with the latest file signature; if the comparison result is consistent, the target Local AC performs the step of sending the second file synchronization request carrying the target file name and the latest file signature to the target AP connected to itself; if the comparison result is inconsistent, the target Local AC updates a file corresponding to the target file name stored locally to the latest file, updates a file signature corresponding to the target file name stored locally to the latest file signature, and performs the step of sending the second file synchronization request carrying the target file name and the latest file signature to the target AP connected to itself, so that the target AP corresponding to the target Local AC judges whether the target file name is stored locally after receiving the second file synchronization request; if the judgment result is no, the target AP stores all contents carried in the second file synchronization request, and acquires and stores the latest file from the target Local AC; if the judgment result is yes, the target AP compares a file signature corresponding to the target file name stored locally with the latest file signature; if the comparison result is consistent, the target AP notifies the target Local AC that file synchronization is not needed; if the comparison result is inconsistent, the target AP updates a file corresponding to the target file name stored locally to the latest file, and updates a file signature corresponding to the target file name stored locally to the latest file signature.

8. A file synchronization apparatus characterized by comprising: The device is applied to a local access controller (Local AC), and the device comprises: A first receiving module is configured to receive a first file synchronization message sent by a central access controller (Central AC), wherein the first file synchronization message is sent by the Central AC after receiving a synchronization instruction input by an administrator and indicating that the Central AC synchronizes a target file corresponding to a target service to a target access point (AP) on which the target service is deployed, and carries the target file corresponding to the target service, a target file name corresponding to the target file, and a target file signature; A judging module is configured to judge whether the target file name is stored locally. The first synchronization module is configured to, when the result of the judgment module is no, store all contents carried in the first file synchronization message, and send a first file synchronization request carrying the target file name and the target file signature to a target AP connected to itself; The comparison module is configured to, when the result of the judgment module is yes, compare whether the file signature corresponding to the target file name stored locally is consistent with the target file signature, and when the comparison result is consistent, trigger the first synchronization module to perform the step of sending the first file synchronization request carrying the target file name and the target file signature to the target AP connected to itself; The update module is configured to, when the comparison result of the judgment module is inconsistent, update the file corresponding to the target file name stored locally to the target file, update the file signature corresponding to the target file name stored locally to the target file signature, trigger the first file synchronization module to perform the step of sending the first file synchronization request carrying the target file name and the target file signature to the target AP connected to itself, so that the corresponding target AP judges whether the target file name is stored locally after receiving the first file synchronization request; if the result of the judgment is no, the first file synchronization request is stored, and the target file is obtained and stored from the corresponding target LocalAC; if the result of the judgment is yes, whether the file signature corresponding to the target file name stored locally is consistent with the target file signature is compared; if the comparison result is consistent, the corresponding target LocalAC is informed that file synchronization is not needed; if the comparison result is inconsistent, the file corresponding to the target file name stored locally is updated to the target file, and the file signature corresponding to the target file name stored locally is updated to the target file signature.

9. The apparatus of claim 8, wherein, The device further comprises: The second receiving module is configured to receive a file acquisition request sent by the target AP connected to itself for acquiring the target file corresponding to the target file signature; The sending module is configured to send a file acquisition response carrying the target file to the corresponding target AP, so that the corresponding target AP updates the file corresponding to the target file signature stored locally to the target file carried in the file acquisition response after receiving the file acquisition response.

10. The apparatus of claim 8, wherein, The device further comprises: The second synchronization module is configured to, when a new AP deploying the target service or a fault target AP is recovered is monitored, send a second file synchronization request carrying the target file name and the corresponding latest file signature to the new AP or the fault target AP, so that the new AP or the fault target AP judges whether the target file name is stored locally after receiving the second file synchronization request; if the result of the judgment is no, all contents carried in the second file synchronization request are stored, and the latest file is obtained from the corresponding target Local AC and stored; if the result of the judgment is yes, whether the file signature corresponding to the target file name stored locally is consistent with the latest file signature is compared; if the comparison result is consistent, the corresponding target Local AC is informed that file synchronization is not needed; and if the comparison result is inconsistent, the file corresponding to the target file name stored locally is updated to the latest file, and the file signature corresponding to the target file name stored locally is updated to the latest file signature.

11. An electronic device, comprising: The computer readable storage medium stores a computer program which, when executed by a processor, implements the method steps of any one of claims 1-2 or claims 3-5.

12. A computer-readable storage medium, characterized in that, The computer readable storage medium stores a computer program which, when executed by a processor, implements the method steps of any one of claims 1-2 or claims 3-5.

Citation Information

Patent Citations

  • Configuration synchronization method, device and equipment and readable storage medium

    CN111294391A

  • File synchronization method and device for avoiding conflict in synchronization process

    CN115277681A