CN111190877B - Distributed file distribution method and system based on enterprise intranet - Google Patents

Distributed file distribution method and system based on enterprise intranet Download PDF

Info

Publication number
CN111190877B
CN111190877B CN201911377930.8A CN201911377930A CN111190877B CN 111190877 B CN111190877 B CN 111190877B CN 201911377930 A CN201911377930 A CN 201911377930A CN 111190877 B CN111190877 B CN 111190877B
Authority
CN
China
Prior art keywords
downloaded
terminal
file
downloading
distribution server
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
CN201911377930.8A
Other languages
Chinese (zh)
Other versions
CN111190877A (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.)
Global Energy Interconnection Research Institute
Original Assignee
Global Energy Interconnection Research Institute
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 Global Energy Interconnection Research Institute filed Critical Global Energy Interconnection Research Institute
Priority to CN201911377930.8A priority Critical patent/CN111190877B/en
Publication of CN111190877A publication Critical patent/CN111190877A/en
Application granted granted Critical
Publication of CN111190877B publication Critical patent/CN111190877B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/18File system types
    • G06F16/182Distributed file systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides a distributed file distribution method and system based on an enterprise intranet, wherein the method comprises the following steps: recording the terminal address of the downloaded file to form a downloaded terminal list; determining a path of a terminal to be downloaded for downloading a file according to whether the concurrent file state of the distribution server is full; after the downloading terminal finishes file downloading, the terminal address of the downloading terminal is reported to the distribution server, and the downloaded terminal list is updated. By implementing the method and the device, the investment of hardware assets can be reduced, the problem that a plurality of terminals download to the same IP in an enterprise intranet is avoided, and quick and efficient file distribution is realized.

Description

Distributed file distribution method and system based on enterprise intranet
Technical Field
The invention relates to the technical field of information, in particular to a distributed file distribution method and system based on an enterprise intranet.
Background
Compared with a wide area network, the enterprise intranet is easier to realize interconnection and interworking between terminals, a mutual trust relationship can be established between the terminals in the enterprise, and the enterprise intranet has higher security than the wide area network, so that more and more enterprises select the enterprise intranet as a main office network. The original file distribution mode is to arrange a distribution server in a headquarter, the headquarter distribution server distributes the file to the company distribution servers of each province, and the terminal computer downloads the system file from the company distribution server of the province. Under the condition that the performance of the distribution server is limited, the congestion and downtime of the distribution server are easy to cause. The traditional solutions mainly comprise two solutions, one of which can be solved by adding a distribution server to form a distribution cluster to enlarge the concurrency number, but the cost is increased; another approach may be to wait in line, but the time taken to complete the entire file distribution is longer, especially if the distributed file is larger.
Disclosure of Invention
Therefore, the technical problem to be solved by the invention is to overcome the defects of high cost and long time consumption when the enterprise intranet is used for file distribution in the prior art, thereby providing a distributed file distribution method and system based on the enterprise intranet.
Therefore, the embodiment of the invention provides the following technical scheme:
the first aspect of the embodiment of the invention provides a distributed file distribution method based on an enterprise intranet, which comprises the following steps: recording the terminal address of the downloaded file to form a downloaded terminal list; determining a path of a terminal to be downloaded for downloading a file according to whether the concurrent file state of the distribution server is full; after the downloading terminal finishes file downloading, the terminal address of the downloading terminal is reported to the distribution server, and the downloaded terminal list is updated.
In an embodiment, the step of determining a path of the terminal to be downloaded to download the file according to whether the state of the concurrent file of the distribution server is full includes: when the concurrency of the distribution server is not full, directly downloading the file through the distribution server; when the concurrency of the distributing server is full, selecting a downloaded terminal address downloading file from the downloaded terminal list through Monte Carlo simulation.
In one embodiment, when the concurrency of the distributing server is full, the step of selecting a downloaded terminal address download file from the downloaded terminal list through monte carlo simulation includes: selecting a downloaded terminal address from the downloaded terminal list through Monte Carlo simulation; marking the downloaded terminal address with a occupying mark in a downloaded terminal list; and updating the occupation mark to a downloaded terminal list.
In an embodiment, after the terminal to be downloaded completes file downloading, reporting the terminal address of the terminal to the distribution server, and updating the downloaded terminal list, including: after the downloading terminal finishes the downloading task, the address of the terminal to be downloaded is sent to a distribution server; and the distribution server updates the downloaded terminal list according to the terminal address and cancels the occupation mark.
A second aspect of an embodiment of the present invention provides a distributed file distribution system based on an intranet, including: the recording module is used for recording the downloaded terminal addresses to form a downloaded terminal list; the selection module is used for determining a path of a file to be downloaded by the terminal to be downloaded according to whether the concurrent file state of the distribution server is full; and the updating module is used for reporting the terminal address of the terminal to the distribution server after the terminal to be downloaded finishes file downloading, and updating the downloaded terminal list.
A third aspect of the embodiment of the present invention provides a computer readable storage medium, where computer instructions are stored, where the computer instructions are configured to cause a computer to execute the distributed file distribution method based on the intranet according to the first aspect of the embodiment of the present invention.
A fourth aspect of the present invention provides a distributed file distribution device based on an intranet, including: the system comprises a memory and a processor, wherein the memory and the processor are in communication connection, the memory stores computer instructions, and the processor executes the computer instructions so as to execute the distributed file distribution method based on the enterprise intranet according to the first aspect of the embodiment of the invention.
The technical scheme of the invention has the following advantages:
the distributed file distribution method and system based on the enterprise intranet can reduce the investment of hardware assets, quickly and efficiently complete file distribution, and even if a distributed server fails, file cannot be downloaded or is suddenly lost, the file distribution can be continuously completed as long as the normal state of a downloaded terminal list is ensured.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are needed in the description of the embodiments or the prior art will be briefly described, and it is obvious that the drawings in the description below are some embodiments of the present invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of a specific example of a distributed file distribution method based on an intranet in an embodiment of the present invention;
FIG. 2 is a flowchart of another specific example of a distributed file distribution method based on an intranet in an embodiment of the present invention;
FIG. 3 is a flowchart of another specific example of a distributed file distribution method based on an intranet in an embodiment of the present invention;
FIG. 4 is a block diagram illustrating a distributed file distribution system based on an intranet in accordance with an embodiment of the present invention;
fig. 5 is a schematic diagram of a specific example of a distributed file distribution device based on an intranet in an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made apparent and fully in view of the accompanying drawings, in which some, but not all embodiments of the invention are shown. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
In addition, the technical features of the different embodiments of the present invention described below may be combined with each other as long as they do not collide with each other.
Examples
The embodiment of the invention provides a distributed file distribution method based on an enterprise intranet, which is shown in fig. 1 and comprises the following steps:
step S1: recording the terminal address of the downloaded file to form a downloaded terminal list. In the embodiment of the invention, when the distribution server provides distribution downloading, after a terminal finishes file downloading, the terminal IP is recorded in the list to form a downloaded terminal list.
Step S2: and determining a path of the terminal to be downloaded for downloading the file according to whether the concurrent file state of the distribution server is full. In the embodiment of the invention, when the distributing server is not fully loaded at the same time, the files are directly downloaded through the distributing server; when the distributing server is fully loaded concurrently, selecting a downloaded terminal address downloading file from the downloaded terminal list through Monte Carlo simulation.
Step S3: after the downloading terminal finishes file downloading, the terminal address of the downloading terminal is reported to the distribution server, and the downloaded terminal list is updated. In the embodiment of the invention, after the terminal to be downloaded finishes downloading, the information needs to be informed to the distribution server, and the IP is stored in the downloaded terminal list to become a new distribution endpoint.
In one embodiment, when the concurrency of the distributing server is full, the step of selecting a downloaded terminal address download file in the downloaded terminal list through monte carlo simulation, as shown in fig. 2, includes:
step S21: and selecting one downloaded terminal address from the downloaded terminal list through Monte Carlo simulation.
Step S22: and marking the downloaded terminal address with a occupation identifier in the downloaded terminal list.
Step S23: and updating the occupation mark to the downloaded terminal list.
In the embodiment of the invention, when the concurrent thread of the distributing server is full, the terminal to be downloaded is newly added into the downloaded terminal list, the IP of one downloaded terminal is randomly selected through Monte Carlo simulation, and the IP is identified in the downloaded terminal list and recorded in the corresponding list. The number and list of concurrency of the distribution servers may be initially polled to handle the download request. The larger the downloaded terminal list, the faster the distribution process. The downloaded terminal list is shown in the following table:
downloaded terminal Occupying mark Application downloading terminal
192.168.10.5 0
1
192.168.10.17 1 192.168.10.40
192.168.10.113 0
0
In one embodiment, after the downloading terminal completes the downloading of the file, the step of reporting the terminal address of the downloading terminal to the distribution server and updating the downloaded terminal list, as shown in fig. 3, includes:
step S31: and after the downloading terminal finishes the downloading task, the address of the terminal to be downloaded is sent to the distribution server.
Step S32: and the distribution server updates the downloaded terminal list according to the terminal address and cancels the occupation mark.
In the embodiment of the invention, the terminal to be downloaded is connected with the downloaded terminal through the IP to download the file to the appointed position, thus completing the distribution. When the terminal to be downloaded finishes downloading, the information needs to be informed to the distribution server, the occupation mark is modified in the downloaded terminal list, and the IP is stored in the downloaded terminal list to become a new distribution endpoint. The newly formed downloaded terminal list is shown in the following table:
Figure SMS_1
/>
Figure SMS_2
according to the distributed file distribution method based on the enterprise intranet, the downloaded terminal IP list is recorded, and the terminal which cannot be downloaded through the distribution server is assigned to the downloaded terminal to download the file. Selecting an IP from a downloaded terminal list for a terminal needing downloading through Monte Carlo simulation, and marking a occupation identifier after the IP. The method can reduce the investment of hardware assets, avoid the problem that a plurality of terminals download to the same IP, and realize the rapid and efficient completion of file distribution.
The embodiment of the invention provides a distributed file distribution system based on an enterprise intranet, as shown in fig. 4, comprising: the recording module 1 is used for recording the addresses of the downloaded terminals to form a downloaded terminal list; the selection module 2 is used for determining a path of a file to be downloaded by the terminal to be downloaded according to whether the state of the concurrent file of the distribution server is full; and the updating module 3 is used for reporting the terminal address of the terminal to the distribution server after the terminal to be downloaded finishes file downloading, and updating the downloaded terminal list.
The functional description of the distributed file distribution system based on the enterprise intranet provided by the embodiment of the invention is described in detail by referring to the distributed file distribution method based on the enterprise intranet in the embodiment.
The embodiment of the invention provides a distributed file distribution system based on an enterprise intranet, which can shorten the file distribution time by recording an IP list of a downloaded terminal and distributing the terminal which cannot be downloaded through a distribution server to the downloaded terminal for file downloading. Even if the distribution server fails, the file cannot be downloaded or the file is suddenly lost, but if the downloaded terminal list exists, the file distribution can be continuously completed. And selecting one IP from a downloaded terminal list for a terminal needing downloading through Monte Carlo simulation, and marking a occupation mark after the IP, so that the problem that a plurality of terminals download to the same IP is avoided.
The embodiment of the invention also provides a distributed file distribution device based on an enterprise intranet, as shown in fig. 5, the device terminal may include a processor 41 and a memory 42, where the processor 41 and the memory 42 may be connected by a bus or other manners, and in fig. 5, the connection is exemplified by a bus.
The processor 41 may be a central processing unit (Central Processing Unit, CPU). The processor 41 may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or a combination of the above.
Memory 42 acts as a non-transitory computer readable storage medium that may be used to store non-transitory software programs, non-transitory computer executable programs, and modules, such as corresponding program instructions/modules in embodiments of the present invention. The processor 41 executes various functional applications of the processor and data processing by running non-transitory software programs, instructions and modules stored in the memory 42, i.e., to implement the intranet-based distributed file distribution method in the above-described method embodiments.
Memory 42 may include a storage program area that may store an operating system, at least one application program required for functionality, and a storage data area; the storage data area may store data created by the processor 41, etc. In addition, memory 42 may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, memory 42 may optionally include memory located remotely from processor 41, which may be connected to processor 41 via a network. Examples of such networks include, but are not limited to, the internet, intranets, mobile communication networks, and combinations thereof.
One or more modules are stored in memory 42 that, when executed by processor 41, perform the intranet-based distributed file distribution method of the embodiment shown in fig. 1-3.
The details of the computer device may be understood in response to the corresponding relevant descriptions and effects of the embodiments shown in fig. 1-3, and are not described herein.
It will be appreciated by those skilled in the art that a program implementing all or part of the above-described embodiment method may be implemented by a computer program to instruct related hardware, and the program may be stored in a computer readable storage medium, and when executed, may include the above-described embodiment method flow. The storage medium may be a magnetic Disk, an optical Disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a Flash Memory (Flash Memory), a Hard Disk (HDD), or a Solid State Drive (SSD); the storage medium may also comprise a combination of memories of the kind described above.
It is apparent that the above examples are given by way of illustration only and are not limiting of the embodiments. Other variations or modifications of the above teachings will be apparent to those of ordinary skill in the art. It is not necessary here nor is it exhaustive of all embodiments. While still being apparent from variations or modifications that may be made by those skilled in the art are within the scope of the invention.

Claims (5)

1. The distributed file distribution method based on the enterprise intranet is characterized by comprising the following steps of:
recording the terminal address of the downloaded file to form a downloaded terminal list;
determining a path of a terminal to be downloaded for downloading a file according to whether the concurrent file state of the distribution server is full;
after the downloading terminal finishes file downloading, reporting the terminal address of the downloading terminal to a distribution server, and updating a downloaded terminal list;
the step of determining the path of the terminal to be downloaded for downloading the file according to whether the state of the concurrent file of the distribution server is fully loaded comprises the following steps:
when the concurrency of the distribution server is not full, directly downloading the file through the distribution server;
when the concurrency of the distributing server is full, selecting a downloaded terminal address downloading file from the downloaded terminal list through Monte Carlo simulation;
when the concurrency of the distributing server is full, selecting a downloaded terminal address downloading file from the downloaded terminal list through Monte Carlo simulation, wherein the method comprises the following steps:
selecting a downloaded terminal address from the downloaded terminal list through Monte Carlo simulation;
marking the downloaded terminal address with a occupying mark in a downloaded terminal list;
and updating the occupation mark to a downloaded terminal list.
2. The distributed file distribution method based on the intranet of claim 1, wherein after the terminal to be downloaded completes the file downloading, the step of reporting the terminal address to the distribution server and updating the downloaded terminal list includes:
after the downloading terminal finishes the downloading task, the address of the terminal to be downloaded is sent to a distribution server;
and the distribution server updates the downloaded terminal list according to the terminal address and cancels the occupation mark.
3. A distributed file distribution system based on an intranet, comprising:
the recording module is used for recording the downloaded terminal addresses to form a downloaded terminal list;
the selection module is used for determining a path of a file to be downloaded by the terminal to be downloaded according to whether the concurrent file state of the distribution server is full;
the updating module is used for reporting the terminal address of the terminal to the distribution server after the terminal to be downloaded finishes file downloading, and updating the downloaded terminal list;
the step of determining the path of the terminal to be downloaded for downloading the file according to whether the state of the concurrent file of the distribution server is fully loaded comprises the following steps:
when the concurrency of the distribution server is not full, directly downloading the file through the distribution server;
when the concurrency of the distributing server is full, selecting a downloaded terminal address downloading file from the downloaded terminal list through Monte Carlo simulation;
when the concurrency of the distributing server is full, selecting a downloaded terminal address downloading file from the downloaded terminal list through Monte Carlo simulation, wherein the method comprises the following steps:
selecting a downloaded terminal address from the downloaded terminal list through Monte Carlo simulation;
marking the downloaded terminal address with a occupying mark in a downloaded terminal list;
updating the occupation mark to a downloaded terminal list, and determining a path of a file to be downloaded by a terminal to be downloaded according to whether the state of the concurrent file of the distribution server is fully loaded, wherein the step comprises the following steps:
when the concurrency of the distribution server is not full, directly downloading the file through the distribution server;
when the concurrency of the distributing server is full, selecting a downloaded terminal address downloading file from the downloaded terminal list through Monte Carlo simulation;
when the concurrency of the distributing server is full, selecting a downloaded terminal address downloading file from the downloaded terminal list through Monte Carlo simulation, wherein the method comprises the following steps:
selecting a downloaded terminal address from the downloaded terminal list through Monte Carlo simulation;
marking the downloaded terminal address with a occupying mark in a downloaded terminal list;
and updating the occupation mark to a downloaded terminal list.
4. A computer readable storage medium having stored thereon computer instructions for causing the computer to perform the intranet-based distributed file distribution method of any one of claims 1-2.
5. A distributed file distribution device based on an intranet, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, the processor executing the computer instructions to perform the intranet-based distributed file distribution method of any one of claims 1-2.
CN201911377930.8A 2019-12-27 2019-12-27 Distributed file distribution method and system based on enterprise intranet Active CN111190877B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911377930.8A CN111190877B (en) 2019-12-27 2019-12-27 Distributed file distribution method and system based on enterprise intranet

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911377930.8A CN111190877B (en) 2019-12-27 2019-12-27 Distributed file distribution method and system based on enterprise intranet

Publications (2)

Publication Number Publication Date
CN111190877A CN111190877A (en) 2020-05-22
CN111190877B true CN111190877B (en) 2023-05-05

Family

ID=70707661

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911377930.8A Active CN111190877B (en) 2019-12-27 2019-12-27 Distributed file distribution method and system based on enterprise intranet

Country Status (1)

Country Link
CN (1) CN111190877B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004287631A (en) * 2003-03-20 2004-10-14 Konami Co Ltd Download service system, terminal, command column executing method and program
CN101005676A (en) * 2007-01-18 2007-07-25 上海柯斯软件有限公司 Method for down loading network resource using mobile terminal
CN101488138A (en) * 2008-01-18 2009-07-22 鹏智科技(深圳)有限公司 Network file downloading server and method
CN102195802A (en) * 2010-03-18 2011-09-21 中兴通讯股份有限公司 Terminal software transmission method, server and terminal
CN103023937A (en) * 2011-09-26 2013-04-03 北大方正集团有限公司 Method and system for distributing network files
CN106998367A (en) * 2017-05-24 2017-08-01 维沃移动通信有限公司 A kind of document down loading method and mobile terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102469146B (en) * 2010-11-19 2015-11-25 北京奇虎科技有限公司 A kind of cloud security downloading method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004287631A (en) * 2003-03-20 2004-10-14 Konami Co Ltd Download service system, terminal, command column executing method and program
CN101005676A (en) * 2007-01-18 2007-07-25 上海柯斯软件有限公司 Method for down loading network resource using mobile terminal
CN101488138A (en) * 2008-01-18 2009-07-22 鹏智科技(深圳)有限公司 Network file downloading server and method
CN102195802A (en) * 2010-03-18 2011-09-21 中兴通讯股份有限公司 Terminal software transmission method, server and terminal
CN103023937A (en) * 2011-09-26 2013-04-03 北大方正集团有限公司 Method and system for distributing network files
CN106998367A (en) * 2017-05-24 2017-08-01 维沃移动通信有限公司 A kind of document down loading method and mobile terminal

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
张志飞 ; 凌志浩 ; 祁学文 ; .MIF多接口终端多流并发下载的实现.自动化仪表.2012,(11),全文. *
葛翔 ; 彭会湘 ; 甘朝辉 ; .负载均衡的集群文件分发与下载服务设计.计算机与网络.2018,(14),全文. *

Also Published As

Publication number Publication date
CN111190877A (en) 2020-05-22

Similar Documents

Publication Publication Date Title
CN109844744B (en) Device, method and medium for communication of Internet of things
CN109714188B (en) Configuration data management method, device and storage medium based on Zookeeper
CN110830581B (en) Method for improving block chain response speed, block chain application system and related equipment
US20140129624A1 (en) Bt offline data download system and method, and computer storage medium
US20100313063A1 (en) Mitigating reduction in availability level during maintenance of nodes in a cluster
US20100262687A1 (en) Dynamic data partitioning for hot spot active data and other data
US9390156B2 (en) Distributed directory environment using clustered LDAP servers
CN105516284B (en) A kind of method and apparatus of Cluster Database distributed storage
US8713135B1 (en) Managing imaging of computing devices
CN112015595B (en) Master-slave database switching method, computing device and storage medium
CN108681592B (en) Index switching method, device and system and index switching central control device
CN105490843A (en) Information processing method and system
CN111147605B (en) Service registration method, device and equipment
WO2017143929A1 (en) Methods and systems for cloud database resource extension and service extension
CN111190877B (en) Distributed file distribution method and system based on enterprise intranet
CN105049463A (en) Distributed database, method of sharing data, and apparatus for a distributed database
CN114785662B (en) Storage management method, device, equipment and machine-readable storage medium
US20150172131A1 (en) Method and system for verifying quality of server
CN110868340B (en) Testing method and device, reconfigurable tester and controller
CN105245569A (en) Breakpoint uploading method and system
CN110769462B (en) Network access control method and device
US8782364B2 (en) Determining availability of data elements in a storage system
US20180025043A1 (en) Graph update flush to a shared memory
CN111639089B (en) Transaction processing method, transaction processing device, electronic equipment and computer readable storage medium
US10200242B2 (en) System and method to replicate server configurations across systems using sticky attributions

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