CN109525675B - Northbound server file downloading method and device, computer equipment and storage medium - Google Patents

Northbound server file downloading method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN109525675B
CN109525675B CN201811434363.0A CN201811434363A CN109525675B CN 109525675 B CN109525675 B CN 109525675B CN 201811434363 A CN201811434363 A CN 201811434363A CN 109525675 B CN109525675 B CN 109525675B
Authority
CN
China
Prior art keywords
file
server
northbound
updated
files
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811434363.0A
Other languages
Chinese (zh)
Other versions
CN109525675A (en
Inventor
冯德洪
莫景画
唐艺龙
刘湘明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Haige Icreate Technology Co ltd
Original Assignee
Guangdong Haige Icreate Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Haige Icreate Technology Co ltd filed Critical Guangdong Haige Icreate Technology Co ltd
Priority to CN201811434363.0A priority Critical patent/CN109525675B/en
Publication of CN109525675A publication Critical patent/CN109525675A/en
Application granted granted Critical
Publication of CN109525675B publication Critical patent/CN109525675B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]

Abstract

The invention relates to a download method, a device, computer equipment and a storage medium of a northbound server file, wherein the method comprises the following steps: determining a file scanning time, which is determined according to a period of updating the file to the north server, then, the files stored in the north server are scanned according to the file scanning time to obtain an updated file list, the updated file list identifies files updated by the northbound server, and then downloads the updated files identified in the updated file list from the files stored by the northbound server, the files of the northbound server can be scanned according to the period of updating the files by the northbound server, thereby determining the latest updated file of the northbound server and downloading the updated file in time, reducing the time delay of file downloading, and because the data volume of the updated file of the northbound server every time is relatively small, the phenomenon that network resources are wasted due to the fact that the bandwidth of the server is occupied for a long time is avoided, and the quality of the network is conveniently evaluated and optimized in time.

Description

Northbound server file downloading method and device, computer equipment and storage medium
Technical Field
The present invention relates to the field of internet technologies, and in particular, to a method and an apparatus for downloading a file from a northbound server, a computer device, and a computer-readable storage medium.
Background
With the development of internet technology, users can conveniently access the mobile internet through intelligent terminals such as mobile phones and tablet computers, and timely master the quickly updated network information in the internet. In order to ensure the reliability of the internet, a network engineer needs to monitor and evaluate the quality of the internet by downloading files stored in the northbound server.
For example, MR (Measurement Report) Measurement is an important function of a mobile network system, and a Measurement result reported by a physical layer can be used for triggering a radio resource control sublayer in the mobile internet system to complete time such as cell selection/reselection and handover, and also can be used for operation and maintenance of the mobile internet system and observation of an operating state of the mobile internet system. After the measurement is finished, each base station generates a statistical file, the statistical files of a plurality of base stations are packaged into one or more compressed files to be stored in a northbound server, and the quality of the mobile internet can be evaluated and optimized by downloading the files.
However, in the conventional technology, after the data file of the north server is completely generated in the previous day or a certain delay amount is defined, the acquisition and downloading are performed through the FTP, for example, eight am in the current day is defined, and the acquisition and downloading of the data file in the previous day is started, so that the download mode may cause that statistics can be completed only after the MR index generation is delayed for at least 12 hours, and the download delay is serious. With the continuous deployment of an LTE (Long Term Evolution) network and the gradual improvement of terminals, the delay requirement of network optimization on MR index generation is gradually increased, and the conventional technology has serious delay and cannot meet the requirements of network engineers.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a northbound server file downloading method, a northbound server file downloading apparatus, a computer device and a computer readable storage medium, which solve the technical problem of the conventional technology that the time delay is serious.
A download method of northbound server files comprises the following steps:
determining the scanning time of the file; the file scanning time is determined according to the period of updating the file by the northbound server;
scanning the files stored in the northbound server according to the file scanning time to obtain an updated file list; the update file list identifies files updated by the northbound server;
downloading the updated files identified in the updated file list from files stored by the northbound server.
A northbound server file downloading apparatus, comprising:
the determining module is used for determining the file scanning time; the file scanning time is determined according to the period of updating the file by the northbound server;
the acquisition module is used for scanning the files stored in the northbound server according to the file scanning time to acquire an updated file list; the update file list identifies files updated by the northbound server;
and the downloading module is used for downloading the updated file identified in the updated file list from the files stored in the northbound server.
A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the method for downloading a northbound server file as described above when executing the computer program.
A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method for downloading a northbound server file as described above.
The method, the device, the computer equipment and the storage medium for downloading the files of the northbound server determine the file scanning time, the file scanning time is determined according to the period of updating the files of the northbound server, then the files stored in the northbound server are scanned according to the file scanning time to obtain an updated file list, the updated files are identified in the updated file list, then the updated files identified in the updated file list are downloaded from the files stored in the northbound server, the files of the northbound server can be scanned according to the period of updating the files of the northbound server, so that the latest updated files of the northbound server are determined and are downloaded in time, on one hand, the updated files of the northbound server can be downloaded in time, and the data volume of the updated files of the northbound server each time is relatively small, compared with the traditional technology in which data files waiting for one day are completely generated and then downloaded, the method and the system are beneficial to avoiding network resource waste caused by long-time occupation of server bandwidth in the downloading process, and are convenient for a network engineer to download files updated by a northbound server in time and evaluate and optimize the quality of the network in time.
Drawings
FIG. 1 is a diagram of an application environment of a method for downloading northbound server files in one embodiment;
FIG. 2 is a flowchart illustrating a method for downloading a northbound server file in one embodiment;
FIG. 3 is a diagram of a download system for northbound server files, in one embodiment;
FIG. 4 is a diagram illustrating the structure of a master-slave server model in one embodiment;
FIG. 5 is a logical representation of the generation and distribution of tasks in one embodiment;
FIG. 6 is a block diagram of an apparatus for downloading northbound server files in one embodiment;
FIG. 7 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
It should be noted that the terms "first \ second \ third" related to the embodiments of the present invention only distinguish similar objects, and do not represent a specific ordering for the objects, and it should be understood that "first \ second \ third" may exchange a specific order or sequence when allowed. It should be understood that the terms first, second, and third, as used herein, are interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in other sequences than those illustrated or otherwise described herein.
The method for downloading the northbound server file provided by the present invention can be applied to the application environment shown in fig. 1, and fig. 1 is an application environment diagram of the method for downloading the northbound server file in an embodiment, wherein a base station 100 can send data to a northbound server 200 in a file form for storage, and a network engineer can access the northbound server 200 through a server 300 such as an FTP download server and download the file from the northbound server 200. Specifically, taking MR measurement data as an example to describe the above process, the base station 100 may generate an xml (extensible markup language) statistical file according to measurement report data obtained by network device measurement, and pack the statistical files of several base stations into one or more compressed files to be stored in the northbound server according to a certain time period, for example, the first base station 110 may send the file to the first northbound server 210, the second base station 120 may send the file to the second northbound server 220, the third base station 130, and the fourth base station 140 may send the file to the third northbound server 230, and so on, and then the server 200 may download corresponding files from the northbound servers, and a network engineer may evaluate and optimize network quality according to the downloaded files. The northbound server 200 and the server 300 may be implemented by separate servers or a server cluster composed of a plurality of servers.
In an embodiment, a method for downloading a northbound server file is provided, and referring to fig. 2, fig. 2 is a flowchart illustrating a method for downloading a northbound server file in an embodiment, which may be applied to the server 300 shown in fig. 1, and the method for downloading a northbound server file may include the following steps:
step S101, determining a file scanning time.
The file scanning time refers to a time when the server 300 scans a file stored in the northbound server 200, the northbound server 200 may be a server cluster, and the file scanning time may refer to a time when all or part of the northbound servers in the northbound server cluster are scanned.
In this step, the file scanning time is determined according to the period of updating the file by the northbound server, that is, the time of scanning the file stored in the northbound server 200 by the server 300 is determined according to the period of updating the file by the northbound server. For the northbound server 200, it generally receives the file reported by the base station 100, and when the base station 100 reports a new file to the northbound server 200, the northbound server 200 needs to update the file stored therein, so as to ensure that the stored file can timely and accurately reflect the current network quality. The north server 200 generally updates its stored files at a certain period, and if the period for updating the files by the north server is 15 minutes, the file scanning time may be set to scan the files stored in the north server 200 every 15 minutes, that is, every 15 minutes by the server 300.
Step S102, scanning the files stored in the northbound server according to the file scanning time, and acquiring an updated file list.
The server 300 may scan the file stored in the northbound server 200 according to the file scanning time to obtain an updated file list; wherein the update file list identifies files updated to the server in a north direction.
Specifically, the server 300 may scan all the files stored in the northbound server 200 to obtain various file information of the target file, for example, the server 300 may scan the files stored in the northbound server 200 by using the FTP protocol or a command line tool to obtain the file information of the target file with the "TD-LTE character file name", for example, the IP address, the file name, and the file storage time of the target file, from which it is known which files are the most updated files among the files stored in the northbound server 200, and then may establish an update file list through which the files updated by the northbound server are identified.
Step S103, downloading the updated file identified in the updated file list from the files stored in the northbound server.
In this step, the server 200 downloads the file corresponding to the updated file identified in the updated file list from the north server according to the updated file identified in the updated file list. Specifically, if the updated files identified in the updated file list are file 1 and file 2, and the files stored in the northbound server 200 include file 1, file 2, file 3, and file 4, the server 200 downloads file 1 and file 2 from the files stored in the northbound server 200 according to file 1 and file 2 identified in the updated file list, because file 1 and file 2 are updated files of the northbound server 200, and after downloading the updated files, the network engineer can evaluate the current network quality.
The method for downloading the files of the northbound server determines the scanning time of the files, the scanning time of the files is determined according to the period of updating the files of the northbound server, then the files stored in the northbound server are scanned according to the scanning time of the files to obtain an updated file list, the updated files which are updated by the northbound server are identified in the updated file list, then the updated files which are identified in the updated file list are downloaded from the files stored in the northbound server, the files of the northbound server can be scanned according to the period of updating the files of the northbound server, so as to determine the latest updated files of the northbound server, and the updated files are downloaded in time, on one hand, the updated files of the northbound server can be downloaded in time, and because the data volume of the updated files of the northbound server each time is relatively small, compared with the method that the files waiting for one day are all generated and then downloaded in the prior art, the method is favorable for avoiding the waste of network resources caused by the long-time occupation of the server bandwidth in the downloading process, and is convenient for a network engineer to download the updated file of the northbound server in time and evaluate and optimize the quality of the network in time.
In one embodiment, the step of determining the file scan time may comprise:
acquiring a reporting period of the base station reporting the measurement data to a north server; and setting the reporting period as the file scanning time.
In this embodiment, the base station 100 sends the measurement data obtained by the measurement of the network device to the northbound server 200 according to a certain reporting period, where the reporting period refers to a time period for the base station 100 to report the measurement data to the northbound server 200, and in each reporting period, each base station generates an xml statistical file according to the measurement data, and packs the statistical files of a plurality of base stations into one or more compressed files according to a certain rule to be reported to the northbound server 200 for storage, and the statistical file carries the measurement data, and the measurement data is used to trigger the northbound server 200 to update its stored file according to the reporting period, that is, when the northbound server 200 receives the measurement data, the northbound server 200 updates its stored file, and since the measurement data reported by the base station is reported according to a certain reporting period, the northbound server 200 also updates its stored file according to the reporting period, thus, the reporting period is set as the file scanning time, so that when the northbound server 200 updates the stored file, the file stored in the northbound server 200 can be scanned in time, and the updated file in the northbound server 200 can be known in time.
In one embodiment, scanning the file stored in the northbound server according to the file scanning time, and the step of obtaining the updated file list may include:
step S201, scanning the file stored in the northbound server according to the file scanning time to obtain a first file list.
In this step, the first file list identifies files stored in the northbound server, for example, file 1, file 2, file 3, file 4, and file 5 are stored in the northbound server 200, and the first file list identifies these files, which indicates that file 1, file 2, file 3, file 4, and file 5 are currently stored in the northbound server. This step may scan all files stored in the northbound server, thereby obtaining a first file list.
Step S202, a second file list pre-stored locally is obtained.
As shown in fig. 3, fig. 3 is a schematic diagram of a north server file downloading system in one embodiment, which may include a server 300, a database 400 locally configured by the server 300, and a file storage server 500, where the file storage server 500 may be used to store files downloaded from the north server.
In this step, the server 300 may obtain a second file list pre-stored in the database 400 from the locally configured database 400, where the second file list identifies a downloaded file, and the downloaded file refers to a file that the server 300 has downloaded from the north to the server 200. Specifically, assuming that the server 300 has downloaded the file 3 and the file 4 from the north server 200, the second file list identifies the file 3 and the file 4.
Step S203, an updated file list is obtained according to the first file list and the second file list.
In this step, the server 300 determines to update the file list according to the files identified in the first file list and the second file list. Where the first file list identifies files stored in the northbound server 200 and the second file list identifies files that the server 300 has downloaded from the northbound server 200, then an updated file list may be obtained from the first file list and the second file list. Specifically, it is assumed that the first file list identifies file 1, file 2, file 3, file 4, and file 5, and the second file list identifies file 3 and file 4, so that file 1, file 2, and file 5 belong to files updated by the northbound server 200, and file 1, file 2, and file 5 need to be identified, so that an updated file list identifying file 1, file 2, and file 5 can be constructed, that is, the updated file identified in the updated file list refers to the file identified in the first file list, and the file not identified in the second file list.
Then, the server 300 may download the corresponding file from the northbound server 200 based on the obtained updated file list, and store the corresponding file in a specific file storage server 500, where the file storage server 500 may be a Cehp file system server.
The technical solution of the above embodiment can compare the first file list with the second file list, since the first file list identifies the file stored in the northbound server 200 and the second file list identifies the file downloaded from the northbound server 200 by the server 300, the updated file list can be obtained according to the files identified in the first file list and the second file list, and since the updated file of the northbound server 200 is identified in the updated list file, based on the updated list file, the server 300 can download the updated file from the northbound server 200, so that the updated file can be downloaded without repeating the downloading of the file stored in the northbound server 200, and only the updated file is downloaded, but the general data volume of the updated file is small, the server bandwidth cannot be occupied for a long time due to the downloading process, and the waste of bandwidth resources is avoided while quasi-real-time synchronization is realized, the technical problem that the downloading time delay of mass data is overlong is solved.
In one embodiment, the step of downloading the updated files identified in the updated files list from the files stored by the northbound server may include:
step S301, a plurality of download tasks are generated according to the update file list.
In this step, since the number of updated files identified in the update file list may be multiple, multiple download tasks may be generated according to the updated files identified in the update file list. E.g., the updated files identified in the update file list include file 1, file 2, and file 5, then 3 download tasks may be generated.
In step S302, a plurality of download tasks are distributed to a plurality of slave servers.
The step is mainly to distribute a plurality of downloading tasks to a plurality of slave servers for downloading by a distributed master-slave model in a distributed system downloading manner, distribute the plurality of downloading tasks to the plurality of slave servers through a master server, and trigger the plurality of slave servers to download updated files from files stored in the north server 200.
Specifically, referring to fig. 4, fig. 4 is a schematic structural diagram of a master-slave server model in an embodiment, a server 300 may be built based on a master-slave model, the server 300 may include a master server 310 and a plurality of slave servers, such as a first slave server 321, a second slave server 322, a third slave server 323, and a fourth slave server 324, the master server 310 may allocate a plurality of download tasks to the first slave server 321, the second slave server 322, the third slave server 323, and the fourth slave server 324, and the allocation manner may be average allocation, that is, the download tasks are evenly allocated to each slave server according to the number of the download tasks, and the download tasks may be reasonably allocated in consideration of the task download condition of each slave server, the server stability, and other factors.
Step S303 acquires a plurality of updated files downloaded from the server.
In this step, after downloading the corresponding updated files from each slave server, the updated files are obtained from each slave server, so as to obtain the updated files of the north server 200.
The embodiment mainly distributes the downloading tasks to the plurality of slave servers for downloading so as to obtain the updated files of the northbound server, and the files downloaded from the northbound server are mainly downloaded in an FTP mode.
In one embodiment, the step of generating a plurality of download tasks according to the updated file list may further include:
extracting the file name and the download address of each updated file from the updated file list; wherein the number of the updated files is multiple; and generating the downloading task according to the file name and the downloading address of each updated file.
In this embodiment, the information carried by the updated file list may include a file name and a download address of the updated file, where the download address is mainly used to identify a northbound server where the updated file is located, and may be, for example, an IP address of the northbound server. For example, if files 1 and 3 are stored in the first northbound server 210 and file 5 is stored in the second northbound server 220, the information carried in the update list may include: files with file names file 1 and file 3 are stored in the first north server 210, and files with file name file 5 are stored in the second north server 220. Then, a plurality of download tasks may be generated according to the file name and the download address of each updated file, for example, the corresponding download tasks may be allocated to each individual thread with the same download address, such as an IP address, and downloaded in the chronological order of the update of the file in the northbound server 200. According to the scheme of the embodiment, the downloading task can be generated according to the file name and the downloading address of the updated file, downloading is facilitated for different downloading address allocation servers, the situation that the updated file is downloaded for multiple times or is omitted due to disorder when each server downloads the file from a north server is avoided, and the accuracy of file downloading is guaranteed.
In one embodiment, the step of allocating the plurality of download tasks to the plurality of slave servers may further comprise:
acquiring task downloading conditions of a plurality of slave servers; and distributing the plurality of downloading tasks to the plurality of slave servers according to the task downloading condition.
In the embodiment, the downloading tasks are respectively allocated to the slave servers according to the task downloading conditions of the slave servers, the task downloading conditions can be used for reflecting how large the slave servers can accept the downloading tasks, the task downloading conditions can be the number and the downloading speed of the downloading tasks currently executed by the slave servers, in order to ensure that the downloading tasks can be efficiently completed, and considering that the downloading speed, the number and the size of the downloading tasks of the slave servers have differences, if the downloading tasks are simply and evenly allocated, part of the tasks are easy to generate task accumulation from the servers, the downloading tasks need to be reasonably allocated according to the task downloading conditions of the slave servers.
Specifically, referring to fig. 5, fig. 5 is a logic diagram of generating and allocating tasks in an embodiment, a task scheduler may be set in a main server, and when a plurality of download tasks are initiated, the plurality of download tasks are allocated by the task scheduler, and the task scheduler may obtain a task download condition of a slave server, so as to allocate the download tasks according to the task download condition. For example, the master server initiates 300 FTP download tasks, there are 3 slave servers, and normally 300 FTP are equally allocated to 3 slave servers, and each obtains 100 FTP download tasks from the server, but since there are differences in download speed, number of files and size of each FTP, if simple equal distribution would result in a partial accumulation of slave server tasks, some slave servers are idle, and the downloading condition of each task of the slave server can be obtained from the downloading configuration information table of each slave server, wherein, the download configuration information table records information including IP address of download task, user account password, file download path of download task and file type of download task, when generating multiple download tasks, more download tasks may be assigned to the better performing slave servers, e.g. 300 download tasks may be assigned to 3 slave servers to perform the download tasks, possibly in the form of 120, 80 and 100.
According to the technical scheme of the embodiment, the plurality of downloads can be reasonably distributed to different slave servers according to the task downloading condition of the slave servers, the phenomenon that the tasks are piled up from the servers due to the fact that the downloading tasks are simply and evenly distributed is avoided, and the task downloading efficiency is improved.
Further, referring to fig. 5, the master server may also query the status of the slave servers at certain time intervals, for example, every 10 seconds, where the status may include a health status of the server and a task downloading condition, and after each slave server receives the query of the master server, each slave server may return a query result, which may include whether task downloading is performed normally, and return a to-be-executed download configuration information table, where the to-be-executed download configuration information table may be used for the master server to obtain the task downloading condition of the slave server, so as to reasonably allocate a download task. The reason why the master server inquires and detects the state of the slave server is that the slave server for executing the downloading task may cause unavailability of the rest interface of the slave server due to network jitter or server downtime, and in this case, the master server may determine whether the slave server is available by counting the continuous occurrence of unavailability of the rest interface within a certain time range, that is, the slave server can normally execute the downloading task, so that on one hand, the downloading task can be ensured to be performed smoothly, on the other hand, the slave server with a bad state can be found in time, and the allocation of the downloading task can be adjusted.
In an embodiment, there is provided a downloading apparatus of a northbound server file, and referring to fig. 6, fig. 6 is a block diagram illustrating a structure of the downloading apparatus of the northbound server file in an embodiment, the downloading apparatus of the northbound server file may include:
a determining module 101, configured to determine a file scanning time; the file scanning time is determined according to the period of updating the file by the northbound server;
an obtaining module 102, configured to scan a file stored in the northbound server according to the file scanning time, and obtain an updated file list; the update file list identifies files updated to the server in a north direction;
a downloading module 103, configured to download the updated file identified in the updated file list from the files stored in the northbound server.
In one embodiment, the determination module 101 is further configured to:
acquiring a reporting period of the base station reporting the measurement data to a north server; and setting the reporting period as the file scanning time.
In one embodiment, the obtaining module 102 is further configured to:
scanning files stored in a northbound server according to the file scanning time to obtain a first file list; the first file list identifies files stored in the northbound server; acquiring a second file list pre-stored locally; the second file list identifies downloaded files; the downloaded file is a file which is downloaded from the northbound server; and acquiring an updated file list according to the first file list and the second file list.
In one embodiment, the updated file identified by the updated file list is a file identified in the first file list and not identified in the second file list.
In one embodiment, the download module 103 is further configured to:
generating a plurality of downloading tasks according to the updated file list; distributing a plurality of downloading tasks to a plurality of slave servers; the downloading tasks are used for triggering the servers to download the updated files from the files stored in the north orientation server; a plurality of updated files downloaded from a server are obtained.
In one embodiment, the download module 103 is further configured to:
extracting the file name and the download address of each updated file from the updated file list; wherein the number of the updated files is multiple; and generating each downloading task according to the file name and the downloading address of each updated file.
In one embodiment, the download module 103 is further configured to:
acquiring task downloading conditions of a plurality of slave servers; and distributing the plurality of downloading tasks to the plurality of slave servers according to the task downloading condition.
The download device of the northbound server file of the present invention corresponds to the download method of the northbound server file of the present invention one to one, and for the specific limitation of the download device of the northbound server file, reference may be made to the above limitation on the download method of the northbound server file. The modules in the downloading device of the northbound server file can be wholly or partially implemented by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server such as an FTP server, and its internal structure diagram may be as shown in fig. 7. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing relevant data involved in the process of executing the steps of the downloading method of the northbound server file. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a method of downloading northbound server files.
Those skilled in the art will appreciate that the architecture shown in fig. 7 is merely a block diagram of some of the structures associated with the inventive arrangements and is not intended to limit the computing devices to which the inventive arrangements may be applied, as a particular computing device may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
determining the scanning time of the file; scanning files stored in a northbound server according to the file scanning time to obtain an updated file list; the updated files identified in the updated file list are downloaded from files stored by the northbound server.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
acquiring a reporting period of the base station reporting the measurement data to a north server; and setting the reporting period as the file scanning time.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
scanning files stored in a northbound server according to the file scanning time to obtain a first file list; acquiring a second file list pre-stored locally; and acquiring an updated file list according to the first file list and the second file list.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
generating a plurality of downloading tasks according to the updated file list; distributing a plurality of downloading tasks to a plurality of slave servers; a plurality of updated files downloaded from a server are obtained.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
extracting the file name and the download address of each updated file from the updated file list; wherein the number of the updated files is multiple; and generating the downloading task according to the file name and the downloading address of each updated file.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
acquiring task downloading conditions of a plurality of slave servers; and distributing the plurality of downloading tasks to the plurality of slave servers according to the task downloading condition.
According to the computer equipment, the files of the northbound server can be scanned according to the period of updating the files of the northbound server through the computer program running on the processor, so that the latest updated files of the northbound server are determined, and the updated files are downloaded in time, on one hand, the updated files of the northbound server can be downloaded in time, and in addition, the data volume of the updated files of the northbound server every time is relatively small, compared with the prior art that the updated files are downloaded after all the data files waiting for one day are generated, the waste of network resources caused by the fact that the bandwidth of the server is occupied for a long time in the downloading process is avoided, a network engineer can download the updated files of the northbound server in time conveniently, and the quality of a network is evaluated and optimized in time.
It will be understood by those skilled in the art that all or part of the processes in the method for downloading the northbound server file according to any of the above embodiments may be implemented by a computer program, which may be stored in a non-volatile computer readable storage medium, and the computer program may include the processes of the above embodiments of the method when executed. Any reference to memory, storage, databases, or other media used in embodiments provided herein may include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
Accordingly, in one embodiment there is provided a computer readable storage medium having a computer program stored thereon, the computer program when executed by a processor implementing the steps of:
determining the scanning time of the file; scanning files stored in a northbound server according to the file scanning time to obtain an updated file list; the updated files identified in the updated file list are downloaded from files stored by the northbound server.
In one embodiment, the computer program when executed by the processor further performs the steps of:
acquiring a reporting period of the base station reporting the measurement data to a north server; and setting the reporting period as the file scanning time.
In one embodiment, the computer program when executed by the processor further performs the steps of:
scanning files stored in a northbound server according to the file scanning time to obtain a first file list; acquiring a second file list pre-stored locally; and acquiring an updated file list according to the first file list and the second file list.
In one embodiment, the computer program when executed by the processor further performs the steps of:
generating a plurality of downloading tasks according to the updated file list; distributing a plurality of downloading tasks to a plurality of slave servers; a plurality of updated files downloaded from a server are obtained.
In one embodiment, the computer program when executed by the processor further performs the steps of:
extracting the file name and the download address of each updated file from the updated file list; wherein the number of the updated files is multiple; and generating the downloading task according to the file name and the downloading address of each updated file.
In one embodiment, the computer program when executed by the processor further performs the steps of:
acquiring task downloading conditions of a plurality of slave servers; and distributing the plurality of downloading tasks to the plurality of slave servers according to the task downloading condition.
The computer readable storage medium can scan files of the northbound server according to the period of updating the files of the northbound server through the stored computer program, so that the latest updated files of the northbound server are determined, and the updated files are downloaded in time.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A download method of northbound server files is characterized by comprising the following steps:
determining the scanning time of the file; the file scanning time is determined according to the period of updating the file by the northbound server; the file stored in the northbound server is obtained by the base station reporting; the determining the file scanning time comprises: acquiring a reporting period of the base station reporting the measurement data to the northbound server; the measurement data is used for triggering the northbound server to update the stored file according to the reporting period; the reporting period is a time period for the base station to report the measurement data to the northbound server; setting the reporting period as the file scanning time;
scanning the files stored in the northbound server according to the file scanning time to obtain an updated file list; the update file list identifies files updated by the northbound server;
downloading the updated files identified in the updated file list from files stored by the northbound server.
2. The method for downloading the files of the northbound server as claimed in claim 1, wherein the step of scanning the files stored in the northbound server according to the file scanning time to obtain the updated file list includes:
scanning the files stored in the northbound server according to the file scanning time to obtain a first file list; the first file list identifies files stored in the northbound server;
acquiring a second file list pre-stored locally; the second file list identifies downloaded files; the downloaded file is a file which is downloaded from the northbound server;
and acquiring the updated file list according to the first file list and the second file list.
3. The method of downloading northbound server files as set forth in claim 2, wherein the updated file identified by the updated file list is a file identified in the first file list and not identified in the second file list.
4. The method of downloading a northbound server file as claimed in claim 1, wherein the step of downloading the updated file identified in the list of updated files from the files stored in the northbound server includes:
generating a plurality of downloading tasks according to the updated file list;
distributing the plurality of download tasks to a plurality of slave servers; the plurality of download tasks are used for triggering the plurality of slave servers to download the updated files from the files stored in the northbound server;
obtaining the updated files downloaded from the server.
5. The method for downloading the northbound server file as claimed in claim 4, wherein the step of generating a plurality of downloading tasks according to the updated file list includes:
extracting a file name and a download address of each updated file from the updated file list; wherein the number of the updated files is multiple;
and generating each downloading task according to the file name and the downloading address of each updated file.
6. The method as claimed in claim 4 or 5, wherein the step of distributing the download tasks to the slave servers comprises
Acquiring task downloading conditions of the plurality of slave servers;
and distributing the plurality of downloading tasks to the plurality of slave servers according to the task downloading condition.
7. A download apparatus for northbound server files, comprising:
the determining module is used for determining the file scanning time; the file scanning time is determined according to the period of updating the file by the northbound server; the file stored in the northbound server is obtained by the base station reporting; the determining module is further configured to obtain a reporting period for the base station to report the measurement data to the northbound server; the measurement data is used for triggering the northbound server to update the stored file according to the reporting period; the reporting period is a time period for the base station to report the measurement data to the northbound server; setting the reporting period as the file scanning time;
the acquisition module is used for scanning the files stored in the northbound server according to the file scanning time to acquire an updated file list; the update file list identifies files updated by the northbound server;
and the downloading module is used for downloading the updated file identified in the updated file list from the files stored in the northbound server.
8. The downloading device of the northbound server file as set forth in claim 7, wherein the obtaining module is further configured to: scanning the files stored in the northbound server according to the file scanning time to obtain a first file list; the first file list identifies files stored in the northbound server; acquiring a second file list pre-stored locally; the second file list identifies downloaded files; the downloaded file is a file which is downloaded from the northbound server; and acquiring the updated file list according to the first file list and the second file list.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the method of downloading a northbound server file as claimed in any one of claims 1 to 6 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method for downloading a northbound server file as claimed in any one of claims 1 to 6.
CN201811434363.0A 2018-11-28 2018-11-28 Northbound server file downloading method and device, computer equipment and storage medium Active CN109525675B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811434363.0A CN109525675B (en) 2018-11-28 2018-11-28 Northbound server file downloading method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811434363.0A CN109525675B (en) 2018-11-28 2018-11-28 Northbound server file downloading method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109525675A CN109525675A (en) 2019-03-26
CN109525675B true CN109525675B (en) 2021-08-03

Family

ID=65794580

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811434363.0A Active CN109525675B (en) 2018-11-28 2018-11-28 Northbound server file downloading method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109525675B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110519332A (en) * 2019-07-31 2019-11-29 浪潮电子信息产业股份有限公司 A kind of file backup method of server, correlation technique, relevant apparatus

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013016142A1 (en) * 2011-07-22 2013-01-31 Raketu Communications, Inc. Self-adapting direct peer to peer communication and messaging system
CN105338107A (en) * 2015-11-20 2016-02-17 上海斐讯数据通信技术有限公司 Stronghold operation synchronous management system and stronghold operation synchronous management method
CN108228879A (en) * 2018-01-23 2018-06-29 平安普惠企业管理有限公司 A kind of data-updating method, storage medium and smart machine
CN108667881A (en) * 2017-03-31 2018-10-16 中国科学院声学研究所 A kind of synchronous method of the business datum of intelligent terminal and Cloud Server
CN108683574A (en) * 2018-04-13 2018-10-19 青岛海信智慧家居系统股份有限公司 A kind of apparatus control method, server and intelligent domestic system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013016142A1 (en) * 2011-07-22 2013-01-31 Raketu Communications, Inc. Self-adapting direct peer to peer communication and messaging system
CN105338107A (en) * 2015-11-20 2016-02-17 上海斐讯数据通信技术有限公司 Stronghold operation synchronous management system and stronghold operation synchronous management method
CN108667881A (en) * 2017-03-31 2018-10-16 中国科学院声学研究所 A kind of synchronous method of the business datum of intelligent terminal and Cloud Server
CN108228879A (en) * 2018-01-23 2018-06-29 平安普惠企业管理有限公司 A kind of data-updating method, storage medium and smart machine
CN108683574A (en) * 2018-04-13 2018-10-19 青岛海信智慧家居系统股份有限公司 A kind of apparatus control method, server and intelligent domestic system

Also Published As

Publication number Publication date
CN109525675A (en) 2019-03-26

Similar Documents

Publication Publication Date Title
CN112099958B (en) Distributed multi-task management method and device, computer equipment and storage medium
CN110460676B (en) Request quantity control method and device, storage medium and computer equipment
EP3675420B1 (en) Distributed storage system upgrade management method and device, and distributed storage system
EP3059900A1 (en) Network service template management method and device
WO2021109750A1 (en) Node management method, device and apparatus, storage medium, and system
CN109547253B (en) File downloading method and device, computer equipment and storage medium
US20130148596A1 (en) Resource management system and method of centralized base station in mobile communication network
CN110933178A (en) Method for adjusting node configuration in cluster system and server
CN111159233B (en) Distributed caching method, system, computer equipment and storage medium
CN109525675B (en) Northbound server file downloading method and device, computer equipment and storage medium
CN111356182A (en) Resource scheduling and processing method and device
CN113886058A (en) Cross-cluster resource scheduling method and device
CN110891033B (en) Network resource processing method, device, gateway, controller and storage medium
WO2013139092A1 (en) Automatic supplement and acquisition method and device for north ftp performance file of telecommunication network management system
CN111404978A (en) Data storage method and cloud storage system
US20210195467A1 (en) Integration method, device and system for multiple centralized units
EP4345614A1 (en) Pod deployment method and apparatus
CN115481114A (en) Data cleaning method and device, computer equipment and storage medium
CN107305581B (en) Table connection method in distributed database system and distributed database system
CN114143314A (en) Edge container-based mixed cloud system, method, device and related equipment
CN114172903A (en) Node capacity expansion method, device, equipment and medium of slarm scheduling system
CN112887919B (en) Short message sending method and system for multi-channel short message cluster scheduling and electronic equipment
CN115129484B (en) Cluster capacity expansion and contraction method and device, storage medium and electronic device
CN114584625B (en) Message processing method and device, electronic equipment and storage medium
CN117955974A (en) File downloading method, device, electronic equipment and computer readable storage medium

Legal Events

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