CN104836842A - Method and device for synchronizing FTP server files - Google Patents
Method and device for synchronizing FTP server files Download PDFInfo
- Publication number
- CN104836842A CN104836842A CN201510149009.3A CN201510149009A CN104836842A CN 104836842 A CN104836842 A CN 104836842A CN 201510149009 A CN201510149009 A CN 201510149009A CN 104836842 A CN104836842 A CN 104836842A
- Authority
- CN
- China
- Prior art keywords
- file
- base station
- group
- base stations
- date
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1095—Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
Abstract
The invention relates to the field of communication, and especially relates to a method and device for synchronizing FTP server files, and is used for solving the problem existing in the prior art that after a plurality of polling operations, the file needing to be downloaded is not searched, and the file synchronization efficiency is low. The method comprises that the time delay mean value of the MR file uploading process of each base station in each base station set is recorded; when a preset updating time point arrives, the latest base station downloading sequence of the corresponding base station set is determined according to the time delay mean value of the MR file uploading process of each base station in each base station set; the file directory, corresponding to each base station, being in the FTP server is polled according to the latest base station downloading sequence of each base station set, when the file directory corresponding to one base station stores a latest MR file, the latest MR file corresponding to the base station is downloaded. Ineffective base station file directory polling operations can be effectively avoided, unnecessary resource consumption can be reduced, and the file synchronization efficiency can be improved.
Description
Technical field
The present invention relates to the communications field, particularly relate to a kind of method and device of synchronous ftp server file.
Background technology
Measurement report (Measurement Report, MR) file is one of Main Basis of assessment wireless environment quality.According to code requirement, base station needs the MR files passe collected from each terminal to file to file transfer protocol (FTP) (File Transfer Protocol, FTP) server.Concrete, MR file was uploaded according to after the whole moment every 15 minutes in base station simultaneously, but due to network load problem, base station equipment generally all can adopt different time delays to upload MR file, to avoid the impact of uploading network and server simultaneously, and reach the effect of staggering the time and uploading.Such as, to base station IDs except the remainder of 60 is as the time delay uploading MR file of this base station.
MR file analysis software refers to that download MR file carries out the software of business diagnosis in real time from ftp server.The scheme of the realization of conventional MR file analysis software is download corresponding up-to-date MR file for business diagnosis according to base station catalogue from ftp server, namely does continual poll for base station catalogue.Concrete, MR analysis software compares to the latest document name under the catalogue of each base station and the recent file name downloaded incessantly according to base station catalogue, has judged whether that new file needs execution down operation.
Therefore, existing scheme does not consider the MR files passe time delay of each base station equipment, base station catalogue is carried out to the way of simple poll, causes having a large amount of polling operations not retrieve the file that need download, and causes file synchronization efficiency on the low side.
In addition, in actual application, a ftp server administration nearly ten thousand base station equipments, therefore ftp server preserves a large amount of files, and existing MR file analysis software adopts the way of base station catalogue being carried out to poll, file synchronization efficiency will be caused on the low side, and directly cause the impact on MR file analysis software handling property.
Summary of the invention
The embodiment of the present invention provides a kind of method and device of synchronous ftp server file, does not retrieve in order to solve polling operations a large amount of in prior art the file that need download, and the problem causing file synchronization efficiency on the low side.
The concrete technical scheme that the embodiment of the present invention provides is as follows:
A method for synchronous ftp server file, comprising:
Add up the time delay mean value that MR file is uploaded in each base station in each group of base stations respectively;
When putting the update time that arrival is preset, uploading the time delay mean value of MR file according to each base station in each group of base stations described respectively, determining the up-to-date base station downloading order of corresponding base station group;
Respectively according to the up-to-date base station downloading order of each group of base stations, poll is carried out to the file directory of each base station corresponding in ftp server, when determining to preserve up-to-date MR file in the file directory that wherein a base station is corresponding, download the up-to-date MR file that a described base station is corresponding.
Therefore, it is possible to effectively prevent invalid base station file directory poll, reduce meaningless resource overhead, improve the efficiency of file synchronization.
Preferably, comprise further:
In the pre-configured stage, all base stations administered by described ftp server are divided into the group of base stations of preset number, and arrange at least one of some update time, and wherein, each group of base stations comprises the base station of default some numbers.
Preferably, before in statistics group of base stations, the time delay mean value of MR file is uploaded in all base stations, comprising:
Be uploaded to the file generated time of each MR file of described ftp server respectively before arriving at some update time preset according to each base station in a described group of base stations, and each MR file described uploads the end time on described ftp server, what obtain that each base station described uploads MR file uploads time delay set;
Upload time delay set according to each acquisition, calculate the time delay mean value that corresponding base station uploads MR file respectively.
Preferably, when putting the update time that arrival is preset, uploading the time delay mean value of MR file according to each base station in a group of base stations respectively, determining the up-to-date base station downloading order of corresponding base station group, comprising:
When putting the update time that arrival is preset, the time delay mean value of MR file is uploaded according to each base station in a described group of base stations, all base stations in a described group of base stations are uploaded the time delay mean value of MR file by order arrangement from small to large, and using the up-to-date base station downloading order of ranking results as a described group of base stations.
Preferably, when determining to preserve up-to-date MR file in the file directory that wherein a base station is corresponding, downloading the up-to-date MR file that a described base station is corresponding, comprising:
When determining that the file generated time of the MR file preserved in the file directory that wherein a base station is corresponding is greater than the file generated time of the last MR file for a described base station download, determine to preserve up-to-date MR file in the file directory that a described base station is corresponding, and download up-to-date MR file corresponding to a described base station.
A device for synchronous ftp server file, comprising:
Statistic unit, uploads the time delay mean value of MR file for adding up each base station in each group of base stations respectively;
Updating block, when the update time for presetting in arrival putting, uploading the time delay mean value of MR file according to each base station in each group of base stations described respectively, determining the up-to-date base station downloading order of corresponding base station group;
Download unit, for the up-to-date base station downloading order respectively according to each group of base stations, poll is carried out to the file directory of each base station corresponding in ftp server, when determining to preserve up-to-date MR file in the file directory that wherein a base station is corresponding, download the up-to-date MR file that a described base station is corresponding.
Therefore, it is possible to effectively prevent invalid base station file directory poll, reduce meaningless resource overhead, improve the efficiency of file synchronization.
Preferably, comprise further:
Pre-configured unit, in the pre-configured stage, all base stations administered by described ftp server are divided into the group of base stations of preset number, and arrange at least one of some update time, and wherein, each group of base stations comprises the base station of default some numbers.
Preferably, before in statistics group of base stations, the time delay mean value of MR file is uploaded in all base stations, described statistic unit, is further used for:
Be uploaded to the file generated time of each MR file of described ftp server respectively before arriving at some update time preset according to each base station in a described group of base stations, and each MR file described uploads the end time on described ftp server, what obtain that each base station described uploads MR file uploads time delay set;
And upload time delay set according to each acquisition, calculate the time delay mean value that corresponding base station uploads MR file respectively.
Preferably, arrive preset update time put time, upload the time delay mean value of MR file according to each base station in a group of base stations respectively, when determining the up-to-date base station downloading order of corresponding base station group, described updating block specifically for:
When putting the update time that arrival is preset, the time delay mean value of MR file is uploaded according to each base station in a described group of base stations, all base stations in a described group of base stations are uploaded the time delay mean value of MR file by order arrangement from small to large, and using the up-to-date base station downloading order of ranking results as a described group of base stations.
Preferably, when determining to preserve up-to-date MR file in the file directory that wherein a base station is corresponding, when downloading up-to-date MR file corresponding to a described base station, described download unit specifically for:
When determining that the file generated time of the MR file preserved in the file directory that wherein a base station is corresponding is greater than the file generated time of the last MR file for a described base station download, determine to preserve up-to-date MR file in the file directory that a described base station is corresponding, and download up-to-date MR file corresponding to a described base station.
Accompanying drawing explanation
Fig. 1 is the general introduction flow chart of synchronous ftp server file in the embodiment of the present invention;
Fig. 2 is the particular flow sheet A of synchronous ftp server file in the embodiment of the present invention;
Fig. 3 is the particular flow sheet B of synchronous ftp server file in the embodiment of the present invention;
Fig. 4 is the structural representation of synchronous ftp server file device in the embodiment of the present invention.
Embodiment
The file that need download is not retrieved in order to solve polling operations a large amount of in prior art, cause the problem that file synchronization efficiency is on the low side, the invention provides a kind of synchronous ftp server document method and device, the method is: add up the time delay mean value that MR file is uploaded in each base station in each group of base stations respectively; When putting the update time that arrival is preset, uploading the time delay mean value of MR file respectively according to each base station in each group of base stations, determining the up-to-date base station downloading order of corresponding base station group; Respectively according to the up-to-date base station downloading order of each group of base stations, poll is carried out to the file directory of each base station corresponding in ftp server, when determining to preserve up-to-date MR file in the file directory that wherein a base station is corresponding, download the up-to-date MR file that this base station is corresponding.
Below in conjunction with accompanying drawing, the preferred embodiment of the present invention is described in detail.
MR file was uploaded according to after the whole moment every 15 minutes in base station simultaneously, but due to network load problem, base station equipment generally all can adopt different time delays to upload MR file, to avoid the impact of uploading network and server simultaneously, and reaches the effect of staggering the time and uploading.
Therefore, the present invention considers that the difference that MR file is uploaded in each base station uploads time delay, improves the method for poll base stations catalogue.
Constant at the strategy of base station equipment upload file, and Internet Transmission condition is not when having a significant change, the time delay that MR file is uploaded in base station is relatively fixed, therefore, MR file analysis software can effectively utilize each base station MR files passe time delay relatively to fix this feature, distributes base station catalogue polling priority, improves base station catalogue polling schemas, thus effectively reduce a large amount of polling operations and do not retrieve the file that need download, cause meaningless loss expense and file synchronization efficiency situation on the low side.
Consult shown in Fig. 1, the idiographic flow that the present invention realizes synchronous ftp server file is:
In the pre-configured stage, all base stations that ftp server is administered are divided into the group of base stations of preset number, and arrange at least one of some update time, wherein, each group of base stations comprises the base station of default some numbers.
Such as, all base stations of ftp server administration are 10000 altogether, according to equipment scale, they are divided into the group of base stations of preset number, i.e. several download thread, such as, are divided into 10 groups, often organize 1000 base stations.Arrange and put update time as morning 8 and late 8 points, it is variant that such setting mainly considers that the network in daytime and evening takies situation possibility, concrete time point can be determined according to specifically the taking situation of network, and some update time of setting can be one or more.
Step 100: add up the time delay mean value that MR file is uploaded in each base station in each group of base stations respectively.
Concrete, before in each group of base stations of statistics, the time delay mean value of MR file is uploaded in each base station, be uploaded to the file generated time of each MR file of described ftp server respectively before arriving at some update time preset according to each base station in a group of base stations, and each MR file described uploads the end time on described ftp server, what obtain that each base station uploads MR file uploads time delay set.Upload time delay set according to each acquisition, corresponding base station uploads the time delay mean value of MR file respectively.
The file generated time of MR file here determines according to the filename of MR file.The filename naming rule of existing MR file is " TD-LTE_MRO_< producer title >_< device coding >_< file generated time >.xml ".Therefore, according to the file generated time in the filename of a MR file, and this file is uploaded to ftp server uploads the end time, and what can obtain this file uploads time delay.
Such as, base station A to it under the base station catalogue corresponding to ftp server, upload the MR file of TD-LTE_MRO_< producer title 1>_< device coding 1>_<11:45:00>.x ml, the upload end time of this file on ftp server is 11:45:56, can the time delay of uploading of this file be therefore 56 seconds.
What be uploaded to each MR file of ftp server according to a base station uploads time delay set, and the number of MR file, obtains the time delay mean value that MR file is uploaded in this base station.
Such as, that uploads MR file according to said method accounting base-station A uploads time delay at every turn, the set of uploading time delay of uploading MR file for 56s, 56s, 56s}, and as seen this base station to upload time delay substantially fixing, and calculation delay mean value.
Step 110: when putting the update time that arrival is preset, uploading the time delay mean value of MR file respectively according to each base station in each group of base stations, determining the up-to-date base station downloading order of corresponding base station group.
When putting the update time that arrival is preset, the time delay mean value of MR file is uploaded according to each base station in a group of base stations, all base stations in a group of base stations are uploaded the time delay mean value of MR file by order arrangement from small to large, and using the up-to-date base station downloading order of ranking results as a group of base stations, the less sequence of average of instant Yangjing is more forward, more preferential when poll.
Such as, with by base station A, the group of base stations 1 of base station B, base station C, base station D composition is example, and their time delay mean value is respectively: 56s, 33s, 100s, 61s.This time delay mean value sorts to base station from small to large, can obtain up-to-date base station downloading order to be: base station B, base station D, base station A, base station C.
Step 120: respectively according to the up-to-date base station downloading order of each group of base stations, poll is carried out to the file directory of each base station corresponding in ftp server, when determining to preserve up-to-date MR file in the file directory that one of them base station is corresponding, download the up-to-date MR file that a base station is corresponding.
Here it may be noted that the up-to-date base station downloading order for each group of base stations, carry out the poll of base station catalogue respectively simultaneously, namely multiple MR file download thread is searched simultaneously and is downloaded up-to-date MR file, improves the efficiency of poll.
Such as, corresponding to the up-to-date base station downloading order of group of base stations 1, base station B, base station D, base station A, base station C, carry out poll to the file directory of the base station B of the correspondence in ftp server, base station D, base station A, base station C, judged whether up-to-date MR file.
When determining that the file generated time of the MR file preserved in the file directory that one of them base station is corresponding is greater than the file generated time of the last MR file for a base station download, determine to preserve up-to-date MR file in the file directory that base station is corresponding, and download up-to-date MR file corresponding to a base station.
The file generated time of MR file here is also obtained by the filename of MR file.
Such as, the file of the MR file that base station A uploads recently is called TD-LTE_MRO_< producer title 1>_< device coding 1>_<11:45:25>.x ml, when being polled to base station A, the MR file that a file is called TD-LTE_MRO_< producer title 1>_< device coding 1>_<12:00:43>.x ml is saved under finding file directory corresponding to base station A, therefore determine that this file is up-to-date MR file and downloads this file.
Consulting shown in Fig. 2 and Fig. 3, is the particular flow sheet of ftp file synchronous in the present invention.
Figure 2 shows that the idiographic flow upgrading base station downloading order.
Step 201: judge whether to arrive some update time preset, if perform step 202, otherwise performs step 203.
This sentences and puts update time as early 8 and late 8 is example.When determine arrive update time put time, need to upgrade the up-to-date base station downloading order of each group of base stations.
Step 202: the time delay mean value uploading MR file according to each base station in each group of base stations, upgrades the base station downloading order of corresponding base station group.
When determine arrive update time put time, add up the time delay mean value that MR file is uploaded in each base station in each group of base stations.
According to adding up the time delay mean value that MR file is uploaded in each base station obtained in two group of base stations 1 and 2, the base station downloading order in two group of base stations being upgraded, obtains:
The up-to-date base station downloading order of group of base stations A, base station 3, base station 2, base station 1, base station 4.
The up-to-date base station downloading order of group of base stations B, base station 2, base station 4, base station 1, base station 3.
Step 203: wait for some update time arriving and preset.
When do not arrive put update time time, continue wait for arrive update time point.
Step 204: after having upgraded the base station downloading order of each group of base stations, wait for next treatment cycle.
Therefore, return step 201, judge whether to arrive next one point update time.
Consult shown in Fig. 3, after putting update time, download the idiographic flow of up-to-date MR file.
Step 301: obtain the base station downloading order that current thread is responsible for, the list of component initial download.
For current responsible download thread for group of base stations A, the up-to-date base station downloading order of group of base stations A, base station 3, base station 2, base station 1, base station 4.
Step 302: the file directory corresponding according to each base station of download list successively poll, obtains up-to-date MR file.
The up-to-date base station downloading order of group of base stations A, successively to base station 3, base station 2, base station 1, poll is carried out in base station 4
Step 303: the file generated time whether under judging the base station catalogue that base station is corresponding with MR file is greater than the file of the file generated time of the MR file downloaded recently, if had, perform step 304, otherwise return step 302, inquire about file directory corresponding to next base station according to base station downloading order.
Here adopting the method for the file generated time comprised in comparison document name, determining whether as needing the up-to-date MR file downloaded.When being polled to base station 2, the file of the MR file that base station 2 is uploaded recently is called TD-LTE_MRO_< producer title 1>_< device coding 1>_<8:15:25>.xm l, when being polled to base station A, the MR file that a file is called TD-LTE_MRO_< producer title 1>_< device coding 1>_<8:30:43>.xm l is preserved under finding file directory corresponding to base station A, therefore judge that there is new MR file base station 2, then download this MR file.
Step 304: download up-to-date MR file, and by the file of this MR file downloaded as the download of respective base station the last time.
Step 305: what calculate this file uploads time delay.
According to the file generated time in the filename of this file be finally uploaded to ftp server uploads the end time, what calculate this file uploads time delay.For file TD-LTE_MRO_< producer title 1>_< device coding 1>_<8:30:43>.xm l, what be uploaded to ftp server uploads end time point 8:31:14, and therefore the time delay of uploading of this file is 31s.
Consult shown in Fig. 4, a kind of device of synchronous ftp server file, comprising:
Statistic unit 40, uploads the time delay mean value of MR file for adding up each base station in each group of base stations respectively;
Updating block 41, when the update time for presetting in arrival putting, uploading the time delay mean value of MR file respectively, determining the up-to-date base station downloading order of corresponding base station group according to each base station in each group of base stations;
Download unit 42, for the up-to-date base station downloading order respectively according to each group of base stations, poll being carried out to the file directory of each base station corresponding in ftp server, when determining to preserve up-to-date MR file in the file directory that wherein a base station is corresponding, downloading the up-to-date MR file that this base station is corresponding.
Preferably, comprise further:
All base stations that ftp server is administered in the pre-configured stage, are divided into the group of base stations of preset number by pre-configured unit 43, and arrange at least one of some update time, and wherein, each group of base stations comprises the base station of default some numbers.
Preferably, before in statistics group of base stations, the time delay mean value of MR file is uploaded in all base stations, statistic unit 40, is further used for:
Be uploaded to the file generated time of each MR file of ftp server respectively before arriving at some update time preset according to each base station in a group of base stations, and each MR file uploads the end time on ftp server, what obtain that each base station uploads MR file uploads time delay set;
And upload time delay set according to each acquisition, calculate the time delay mean value that corresponding base station uploads MR file respectively.
Preferably, arrive preset update time put time, upload the time delay mean value of MR file according to each base station in a group of base stations respectively, when determining the up-to-date base station downloading order of corresponding base station group, updating block 41 specifically for:
When putting the update time that arrival is preset, the time delay mean value of MR file is uploaded according to each base station in a group of base stations, all base stations in a group of base stations are uploaded the time delay mean value of MR file by order arrangement from small to large, and using the up-to-date base station downloading order of ranking results as a group of base stations.
Preferably, when determining to preserve up-to-date MR file in the file directory that wherein a base station is corresponding, when downloading up-to-date MR file corresponding to this base station, download unit 42 specifically for:
When determining that the file generated time of the MR file preserved in the file directory that wherein a base station is corresponding is greater than the file generated time of the MR file that the last time downloads for this base station, determine to preserve up-to-date MR file in the file directory that this base station is corresponding, and download up-to-date MR file corresponding to this base station.
In sum, the present invention is by statistics MR files passe file time delay, improve the polling procedure to MR file, the time delay mean value of MR file is uploaded respectively according to each base station in each group of base stations, determine the up-to-date base station downloading order of corresponding base station group, and respectively according to the up-to-date base station downloading order of each group of base stations, poll is carried out to the file directory of each base station corresponding in ftp server, thus effectively prevent invalid base station file directory poll, decrease meaningless resource overhead, improve the efficiency of file synchronization.
The present invention is in original file download flow process, have recorded one more and upload delay parameter, do not increase the resource overhead of system, and by adding Global treatment thread, namely different somes update time is set, enable the up-to-date base station downloading order after each renewal reflect actual network condition, fully take into account the possible difference of each time point network condition.
Those skilled in the art should understand, embodiments of the invention can be provided as method, system or computer program.Therefore, the present invention can adopt the form of complete hardware embodiment, completely software implementation or the embodiment in conjunction with software and hardware aspect.And the present invention can adopt in one or more form wherein including the upper computer program implemented of computer-usable storage medium (including but not limited to magnetic disc store, CD-ROM, optical memory etc.) of computer usable program code.
The present invention describes with reference to according to the flow chart of the method for the embodiment of the present invention, equipment (system) and computer program and/or block diagram.Should understand can by the combination of the flow process in each flow process in computer program instructions realization flow figure and/or block diagram and/or square frame and flow chart and/or block diagram and/or square frame.These computer program instructions can being provided to the processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device to produce a machine, making the instruction performed by the processor of computer or other programmable data processing device produce device for realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be stored in can in the computer-readable memory that works in a specific way of vectoring computer or other programmable data processing device, the instruction making to be stored in this computer-readable memory produces the manufacture comprising command device, and this command device realizes the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, make on computer or other programmable devices, to perform sequence of operations step to produce computer implemented process, thus the instruction performed on computer or other programmable devices is provided for the step realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
Although describe the preferred embodiments of the present invention, those skilled in the art once obtain the basic creative concept of cicada, then can make other change and amendment to these embodiments.So claims are intended to be interpreted as comprising preferred embodiment and falling into all changes and the amendment of the scope of the invention.
Obviously, those skilled in the art can carry out various change and modification to the embodiment of the present invention and not depart from the spirit and scope of the embodiment of the present invention.Like this, if these amendments of the embodiment of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.
Claims (10)
1. a method for synchronous ftp server file, is characterized in that, comprising:
Add up the time delay mean value that measurement report MR file is uploaded in each base station in each group of base stations respectively;
When putting the update time that arrival is preset, uploading the time delay mean value of MR file according to each base station in each group of base stations described respectively, determining the up-to-date base station downloading order of corresponding base station group;
Respectively according to the up-to-date base station downloading order of each group of base stations, poll is carried out to the file directory of each base station corresponding in file transfer protocol (FTP) ftp server, when determining to preserve up-to-date MR file in the file directory that wherein a base station is corresponding, download the up-to-date MR file that a described base station is corresponding.
2. the method for claim 1, is characterized in that, comprises further:
In the pre-configured stage, all base stations administered by described ftp server are divided into the group of base stations of preset number, and arrange at least one of some update time, and wherein, each group of base stations comprises the base station of default some numbers.
3. the method for claim 1, is characterized in that, before in statistics group of base stations, the time delay mean value of MR file is uploaded in all base stations, comprising:
Be uploaded to the file generated time of each MR file of described ftp server respectively before arriving at some update time preset according to each base station in a described group of base stations, and each MR file described uploads the end time on described ftp server, what obtain that each base station described uploads MR file uploads time delay set;
Upload time delay set according to each acquisition, calculate the time delay mean value that corresponding base station uploads MR file respectively.
4. the method as described in any one of claim 1-3, it is characterized in that, when putting the update time that arrival is preset, uploading the time delay mean value of MR file according to each base station in a group of base stations respectively, determine the up-to-date base station downloading order of corresponding base station group, comprising:
When putting the update time that arrival is preset, the time delay mean value of MR file is uploaded according to each base station in a described group of base stations, all base stations in a described group of base stations are uploaded the time delay mean value of MR file by order arrangement from small to large, and using the up-to-date base station downloading order of ranking results as a described group of base stations.
5. the method as described in any one of claim 1-3, is characterized in that, when determining to preserve up-to-date MR file in the file directory that wherein a base station is corresponding, downloading the up-to-date MR file that a described base station is corresponding, comprising:
When determining that the file generated time of the MR file preserved in the file directory that wherein a base station is corresponding is greater than the file generated time of the last MR file for a described base station download, determine to preserve up-to-date MR file in the file directory that a described base station is corresponding, and download up-to-date MR file corresponding to a described base station.
6. a device for synchronous ftp server file, is characterized in that, comprising:
Statistic unit, uploads the time delay mean value of MR file for adding up each base station in each group of base stations respectively;
Updating block, when the update time for presetting in arrival putting, uploading the time delay mean value of MR file according to each base station in each group of base stations described respectively, determining the up-to-date base station downloading order of corresponding base station group;
Download unit, for the up-to-date base station downloading order respectively according to each group of base stations, poll is carried out to the file directory of each base station corresponding in ftp server, when determining to preserve up-to-date MR file in the file directory that wherein a base station is corresponding, download the up-to-date MR file that a described base station is corresponding.
7. device as claimed in claim 6, is characterized in that, comprise further:
Pre-configured unit, in the pre-configured stage, all base stations administered by described ftp server are divided into the group of base stations of preset number, and arrange at least one of some update time, and wherein, each group of base stations comprises the base station of default some numbers.
8. device as claimed in claim 6, it is characterized in that, before in statistics group of base stations, the time delay mean value of MR file is uploaded in all base stations, described statistic unit, is further used for:
Be uploaded to the file generated time of each MR file of described ftp server respectively before arriving at some update time preset according to each base station in a described group of base stations, and each MR file described uploads the end time on described ftp server, what obtain that each base station described uploads MR file uploads time delay set;
And upload time delay set according to each acquisition, calculate the time delay mean value that corresponding base station uploads MR file respectively.
9. the device as described in any one of claim 6-8, it is characterized in that, when putting the update time that arrival is preset, uploading the time delay mean value of MR file according to each base station in a group of base stations respectively, when determining the up-to-date base station downloading order of corresponding base station group, described updating block specifically for:
When putting the update time that arrival is preset, the time delay mean value of MR file is uploaded according to each base station in a described group of base stations, all base stations in a described group of base stations are uploaded the time delay mean value of MR file by order arrangement from small to large, and using the up-to-date base station downloading order of ranking results as a described group of base stations.
10. the device as described in any one of claim 6-8, is characterized in that, when determining to preserve up-to-date MR file in the file directory that wherein a base station is corresponding, when downloading up-to-date MR file corresponding to a described base station, described download unit specifically for:
When determining that the file generated time of the MR file preserved in the file directory that wherein a base station is corresponding is greater than the file generated time of the last MR file for a described base station download, determine to preserve up-to-date MR file in the file directory that a described base station is corresponding, and download up-to-date MR file corresponding to a described base station.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510149009.3A CN104836842B (en) | 2015-03-31 | 2015-03-31 | A kind of method and device of synchronous ftp server file |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510149009.3A CN104836842B (en) | 2015-03-31 | 2015-03-31 | A kind of method and device of synchronous ftp server file |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104836842A true CN104836842A (en) | 2015-08-12 |
CN104836842B CN104836842B (en) | 2017-12-08 |
Family
ID=53814471
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510149009.3A Active CN104836842B (en) | 2015-03-31 | 2015-03-31 | A kind of method and device of synchronous ftp server file |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104836842B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107094183A (en) * | 2017-06-02 | 2017-08-25 | 中国石油大学(华东) | A kind of ftp file method for reliable transmission based on port-hopping |
CN112597228A (en) * | 2020-12-26 | 2021-04-02 | 中国农业银行股份有限公司 | File processing method and system |
CN112615918A (en) * | 2020-12-16 | 2021-04-06 | 杭州迪普科技股份有限公司 | Network management system and information synchronization method thereof |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101155395A (en) * | 2006-09-26 | 2008-04-02 | 华为技术有限公司 | Band width distribution method, system and device based on wireless system |
CN102571451A (en) * | 2012-02-16 | 2012-07-11 | 大唐移动通信设备有限公司 | Network element and method for uploading MR (Measure Report) messages by network element |
CN102609532A (en) * | 2012-02-15 | 2012-07-25 | 大唐移动通信设备有限公司 | Method and device for monitoring file directory |
CN103327123A (en) * | 2013-07-12 | 2013-09-25 | 北京金山云网络技术有限公司 | File synchronization method, client, server side and equipment |
US20140108505A1 (en) * | 2012-10-15 | 2014-04-17 | Hon Hai Precision Industry Co., Ltd. | File synchronization system and method |
CN104008116A (en) * | 2013-02-27 | 2014-08-27 | 联想(北京)有限公司 | File synchronization method and electronic device |
-
2015
- 2015-03-31 CN CN201510149009.3A patent/CN104836842B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101155395A (en) * | 2006-09-26 | 2008-04-02 | 华为技术有限公司 | Band width distribution method, system and device based on wireless system |
CN102609532A (en) * | 2012-02-15 | 2012-07-25 | 大唐移动通信设备有限公司 | Method and device for monitoring file directory |
CN102571451A (en) * | 2012-02-16 | 2012-07-11 | 大唐移动通信设备有限公司 | Network element and method for uploading MR (Measure Report) messages by network element |
US20140108505A1 (en) * | 2012-10-15 | 2014-04-17 | Hon Hai Precision Industry Co., Ltd. | File synchronization system and method |
CN104008116A (en) * | 2013-02-27 | 2014-08-27 | 联想(北京)有限公司 | File synchronization method and electronic device |
CN103327123A (en) * | 2013-07-12 | 2013-09-25 | 北京金山云网络技术有限公司 | File synchronization method, client, server side and equipment |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107094183A (en) * | 2017-06-02 | 2017-08-25 | 中国石油大学(华东) | A kind of ftp file method for reliable transmission based on port-hopping |
CN107094183B (en) * | 2017-06-02 | 2020-11-06 | 中国石油大学(华东) | FTP file reliable transmission method based on port hopping |
CN112615918A (en) * | 2020-12-16 | 2021-04-06 | 杭州迪普科技股份有限公司 | Network management system and information synchronization method thereof |
CN112615918B (en) * | 2020-12-16 | 2023-04-21 | 杭州迪普科技股份有限公司 | Network management system and information synchronization method thereof |
CN112597228A (en) * | 2020-12-26 | 2021-04-02 | 中国农业银行股份有限公司 | File processing method and system |
Also Published As
Publication number | Publication date |
---|---|
CN104836842B (en) | 2017-12-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109862065A (en) | Document down loading method, device and electronic equipment | |
CN103678319B (en) | Resource file update method, device and system and server | |
CN102868731B (en) | Method and device for software online updating and downloading acceleration | |
CN104850301A (en) | Method and system for classifying application icons on system desktop | |
CN105049514B (en) | A kind of document down loading method and device | |
CN110543324B (en) | Plug-in increment updating method and device for application program | |
CN101656739B (en) | Method, system and equipment for updating assembly | |
CN103731452A (en) | File synchronization system and method | |
CN105553684B (en) | A kind of communication system and its router upgrade method of application | |
CN105357031A (en) | OTA (over the air) upgrade method and device | |
CN104378234A (en) | Cross-data-center data transmission processing method and system | |
US20170272498A1 (en) | Streaming media file distribution method and system | |
CN104836842A (en) | Method and device for synchronizing FTP server files | |
CN103312489A (en) | Method and device for synchronizing terminal and server | |
CN103188305A (en) | Multithreading breakpoint resume method and system | |
CN104283955A (en) | Browser, server, downloading system and downloading method | |
EP3506599A1 (en) | Method for synchronizing contact information, apparatus, medium, electronic device and system | |
CN107025122B (en) | Light application access method and system | |
CN109391497A (en) | A kind of method, base station and the management station of version file upgrading | |
CN112416388A (en) | Intelligent mobile terminal software upgrading method and upgrading control system thereof | |
CN107908408A (en) | A kind of long-distance cloud mobile phone application installation method | |
CN103685295A (en) | Method, terminal and system for downloading multimedia files | |
CN104038985A (en) | Communication network searching method and electronic equipment | |
CN111651187A (en) | Method and system for updating version increment based on H5 micro terminal | |
CN104602047A (en) | Share method of EPG (error pattern generator) data, server, terminal and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
EXSB | Decision made by sipo to initiate substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |