CN110493358B - File transmission method and device based on ad hoc network technology and server - Google Patents

File transmission method and device based on ad hoc network technology and server Download PDF

Info

Publication number
CN110493358B
CN110493358B CN201910872787.3A CN201910872787A CN110493358B CN 110493358 B CN110493358 B CN 110493358B CN 201910872787 A CN201910872787 A CN 201910872787A CN 110493358 B CN110493358 B CN 110493358B
Authority
CN
China
Prior art keywords
intelligent hardware
configuration information
seed
download
file
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
CN201910872787.3A
Other languages
Chinese (zh)
Other versions
CN110493358A (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.)
Century Haihang Xiamen Technology Co ltd
Original Assignee
Century Haihang Xiamen 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 Century Haihang Xiamen Technology Co ltd filed Critical Century Haihang Xiamen Technology Co ltd
Priority to CN201910872787.3A priority Critical patent/CN110493358B/en
Publication of CN110493358A publication Critical patent/CN110493358A/en
Application granted granted Critical
Publication of CN110493358B publication Critical patent/CN110493358B/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]
    • 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/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1004Server selection for load balancing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention provides a file transmission method, a file transmission device and a file transmission server based on an ad hoc network technology, and relates to the technical field of information. The method comprises the following steps: receiving a download command from a remote server; dividing the school garden network into N subnets according to the communication connection relation of all intelligent hardware; selecting one intelligent hardware in each subnet as a seed intelligent hardware for receiving a downloading command; receiving first configuration information fed back by the intelligent seed hardware when the intelligent seed hardware downloads a file from a remote server based on a downloading command; and selecting other intelligent hardware of each subnet to receive the first configuration information and download files from the seed intelligent hardware based on the first configuration information. The invention has the advantages that the central scheduling server is arranged, so that the intelligent hardware occupies the minimum school network bandwidth resource when the intelligent hardware acquires the resource in a networking manner, the content resource can be quickly acquired, and other users can be ensured to surf the internet normally.

Description

File transmission method and device based on ad hoc network technology and server
Technical Field
The invention relates to the technical field of information, in particular to a file transmission method, a file transmission device and a server based on an ad hoc network technology.
Background
The intelligent hardware in the campus is provided with a software system, the software system can acquire a large amount of information including characters, pictures, audios, videos and the like through the Internet, and information display and interactive communication are carried out on the intelligent hardware.
Generally, the method for acquiring resources by intelligent hardware is to directly connect to a remote server to acquire corresponding content resources. However, the network outlet bandwidth of the school is generally limited, and the intelligent hardware installed in the school occupies a large amount of network bandwidth of the school if the number of the intelligent hardware is large, so that the network congestion of the school is caused and other normal internet surfing behaviors are affected when the intelligent hardware is networked to acquire information at the same time.
Disclosure of Invention
In view of this, embodiments of the present invention provide a file transmission method, an apparatus, and a server based on an ad hoc network technology, where a central scheduling server is provided, so that when an intelligent hardware acquires resources through networking, the intelligent hardware occupies the minimum school network bandwidth resource, and can quickly acquire content resources, thereby ensuring that other users surf the internet normally.
A first embodiment of the present invention provides a file transfer method based on an ad hoc network technology, including:
receiving a download command from a remote server;
dividing the school garden network into N subnets according to the communication connection relation of all intelligent hardware;
selecting one intelligent hardware in each subnet as a seed intelligent hardware for receiving the downloading command;
receiving first configuration information fed back when the seed intelligent hardware downloads a file from the remote server based on the downloading command;
and selecting other intelligent hardware of each subnet to receive the first configuration information and download files from the seed intelligent hardware based on the first configuration information.
As a further optimization, the first configuration information includes a download task number, a download file name, a check value, an IP, a port, and a download file number.
As a further optimization, the method further comprises the following steps:
receiving second configuration information fed back by the other intelligent hardware;
converting the other plurality of the smart hardware into the seed smart hardware based on the second configuration information;
distributing different amounts of intelligent hardware to each seed intelligent hardware based on the bandwidth load of each seed intelligent hardware, so that the different amounts of intelligent hardware can download files from the corresponding seed intelligent hardware.
As a further optimization, based on the download command, receiving first configuration information fed back by the seed intelligent hardware when downloading a file from the remote server, specifically:
based on the download command, the seed intelligent hardware starts to download the file from the remote server;
after the first file is downloaded, starting a TCP monitoring thread for receiving the real-time configuration information fed back by the intelligent seed hardware; the real-time configuration information comprises a download task number, a download file name, a check value, an IP (Internet protocol), a port and the number of the remaining download files;
and updating the final first configuration information based on the real-time configuration information.
A second embodiment of the present invention provides a file transfer device based on an ad hoc network technology, including:
a first receiving unit for receiving a download command from a remote server;
the dividing unit is used for dividing the school garden network into N subnets according to the communication connection relation of all the intelligent hardware;
the first selecting unit is used for selecting one intelligent hardware in each subnet as seed intelligent hardware to receive the downloading command;
the second receiving unit is used for receiving first configuration information fed back when the seed intelligent hardware downloads the file from the remote server based on the downloading command;
and the second selecting unit is used for selecting other intelligent hardware of each subnet, receiving the first configuration information and downloading files from the seed intelligent hardware based on the first configuration information.
For further optimization, the first configuration information includes a download task number, a download file name, a check value, an IP, a port, and a download file number.
As a further optimization, the method further comprises the following steps:
a third receiving unit, configured to receive second configuration information fed back by the other multiple intelligent hardware;
a conversion unit, configured to convert the other plurality of intelligent hardware into the seed intelligent hardware based on the second configuration information;
and the distribution unit is used for distributing different amounts of intelligent hardware to each seed intelligent hardware based on the bandwidth load of each seed intelligent hardware so as to enable the different amounts of intelligent hardware to download files from the corresponding seed intelligent hardware.
As a further optimization, the second receiving unit includes:
the file downloading module is used for downloading the file from the remote server by the seed intelligent hardware based on the downloading command;
the configuration information receiving module is used for starting a TCP monitoring thread after the first file is downloaded, and is used for receiving the real-time configuration information fed back by the intelligent seed hardware; the real-time configuration information comprises a download task number, a download file name, a check value, an IP (Internet protocol), a port and the number of residual download files;
and the information updating module is used for updating the final first configuration information based on the real-time configuration information.
A third embodiment of the present invention provides a file transmission server based on an ad hoc network technology, including a memory and a processor, where the memory stores a computer program, and the computer program can be executed by the processor, so as to implement the above file transmission method based on the ad hoc network technology.
The embodiment of the invention has the following beneficial effects:
according to the file transmission method, device and server based on the ad hoc network technology, the central scheduling server is arranged to divide a school park network into a plurality of subnets, the intelligent seed hardware is selected from each subnet and is connected with the remote server and carries out resource downloading, and then when other intelligent hardware is networked to obtain resources, the intelligent seed hardware is connected with the intelligent seed hardware and carries out file downloading.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a schematic flow chart of a file transmission method based on an ad hoc network technology according to a first embodiment of the present invention.
Fig. 2 is a schematic diagram of interaction between a file transfer server based on ad hoc network technology and a remote server and intelligent hardware.
Fig. 3 is a schematic structural diagram of a file transfer device based on ad hoc network technology according to a second embodiment of the present invention.
Icon: 100-a remote server; 200-a central scheduling server; 300-seed intelligence hardware; 400-other plurality of intelligent hardware; 201-a first receiving unit; 202-a dividing unit; 203-a first selection unit; 204-a second receiving unit; 205-second pick unit.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Meanwhile, in the description of the present invention, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.
Referring to fig. 1 and fig. 2, a first embodiment of the present invention provides a file transmission method based on ad hoc network technology, which can be executed by an execution center server, and can perform load balancing or content scheduling, and at least includes the following steps:
s101, a download command from the remote server 100 is received.
Specifically, in the embodiment, the central scheduling server 200 is applied to a campus network, and is communicatively connected to the remote server 100 of the school, and can receive a download command from the remote server 100, where the download command can be push service information of the remote server 100, such as school policy push, notification, and the like, but is not limited thereto.
S102, dividing the school garden network into N sub-networks according to the communication connection relation of all intelligent hardware.
Specifically, the smart hardware is a science and technology concept behind the smart phone, and through the mode that software and hardware combine, reform transform traditional equipment, and then let it possess intelligent function, and it includes, but not limited to, computer, smart mobile phone, intelligent flat board, smart television, intelligent bracelet, intelligent bluetooth headset, intelligent wrist-watch etc.. In this embodiment, because the campus network environment is complex, it cannot be guaranteed that all the intelligent hardware using the campus network can be in communication connection. Therefore, the central scheduling server 200 is in communication connection with all the intelligent hardware, and divides the school garden network into N subnets according to the communication connection relationship between the intelligent hardware and the intelligent hardware, so as to ensure that all the intelligent hardware in each subnet can communicate with each other.
S103, selecting one of the intelligent hardware in each of the subnets as a seed intelligent hardware 300 for receiving the download command.
Specifically, in this embodiment, after the central scheduling server 200 completes communication with all the intelligent hardware in each subnet, it first detects configuration information of each intelligent hardware, such as CPU, memory, network card, etc., and then selects an intelligent hardware with a healthy heartbeat in each subnet according to the configuration information of each intelligent hardware, that is, selects an intelligent hardware with the best performance as the seed intelligent hardware 300, and sends the download command to the seed intelligent hardware 300. The download command includes, but is not limited to, a download task number, a downloaded file list, a downloaded file name, a download address, and a check value, which may be an MD5 check value.
S104, receiving the first configuration information fed back when the seed intelligent hardware 300 downloads the file from the remote server 100 based on the download command.
Specifically, in this embodiment, the seed intelligent hardware 300 first searches for a corresponding folder in the remote server 100 according to the download address in the download command, and then downloads the file according to the download task number, the downloaded file list, and the downloaded file name. After the file is downloaded, an MD5 value corresponding to the downloaded file is generated in the seed intelligent hardware 300, and the MD5 value is verified with the MD5 verification value in the download command, and if the verification is successful, the file is downloaded correctly. Finally, the seed intelligent hardware 300 feeds back the first configuration information to the central scheduling server 200.
As a further optimization, the first configuration information includes a download task number, a download file name, a check value, an IP, a port, and a download file number. Wherein, the IP and the port are both the IP and the port information of the seed intelligent hardware 300.
S105, selecting a plurality of other intelligent hardware 400 of each subnet to receive the first configuration information and download files from the seed intelligent hardware 300 based on the first configuration information.
Specifically, in this embodiment, after receiving the first configuration information fed back by the seed intelligent hardware 300, that is, after receiving the information that the file download of the seed intelligent hardware 300 is completed, the central scheduling server 200 may select another plurality of intelligent hardware 400 in each subnet, send the first configuration information to these other plurality of intelligent hardware 400, allow the other plurality of intelligent hardware 400 to search for the seed intelligent hardware 300 corresponding to the first configuration information and located in the same subnet according to the IP address and the port in the first configuration information, and then download the file according to the download task number, the downloaded file name, and the download file number. After the file downloading is completed, MD5 values corresponding to the downloaded file are generated in the other intelligent hardware 400, and the MD5 values are verified with the MD5 verification values in the first configuration information, and if the verification is successful, the file downloading is correct.
According to the file transmission method based on the ad hoc network technology, the central scheduling server 200 is arranged to divide a school park network into a plurality of subnets, the seed intelligent hardware 300 is selected from each subnet and is connected with the remote server 100 firstly to download resources, and then when other intelligent hardware acquires resources through networking, the other intelligent hardware is connected with the seed intelligent hardware 300 to download files, so that the file acquisition speed of other intelligent hardware can be increased, each intelligent hardware does not need to be connected with a remote service area independently, content resources are acquired repeatedly, occupied school network bandwidth resources are reduced, and normal internet access of other users is guaranteed.
As a further optimization, on the basis of the above embodiment, in a preferred embodiment of the present invention, the method further includes:
receiving second configuration information fed back by the other intelligent hardware 400;
converting the other plurality of the smart hardware into the seed smart hardware 300 based on the second configuration information;
allocating different amounts of intelligent hardware to each of the seed intelligent hardware 300 based on the bandwidth load of each of the seed intelligent hardware 300, so as to enable the different amounts of intelligent hardware to download files from the corresponding seed intelligent hardware 300.
Specifically, in this embodiment, after the file is downloaded, the other intelligent hardware 400 sends the second configuration information to the central scheduling server 200. The second configuration information includes a download task number, a download file name, a check value, an IP, a port, and a download file number, where the IP and the port are IP and port information of the other plurality of intelligent hardware 400. After receiving the second configuration information, the central scheduling server 200 converts all the other intelligent hardware 400 into the seed intelligent hardware 300, and then the central scheduling server 200 detects the bandwidth load conditions of all the seed intelligent hardware 300 and allocates the intelligent hardware with different quantities according to the bandwidth load conditions of different seed intelligent hardware 300. That is, after receiving different second configuration information, different numbers of intelligent hardware download files to the corresponding seed intelligent hardware 300 according to the second configuration information, and then return the configuration information to the central scheduling server 200. By so circulating, each intelligent hardware can be converted into the seed intelligent hardware 300, and one intelligent hardware cannot be used as a download server by too many other intelligent hardware. More preferably, the central scheduling server 200 generally selects 2 to 4 other intelligent hardware to be converted into the seed intelligent hardware 300, so as to avoid that the first seed intelligent hardware 300 communicates with too many other intelligent hardware 400 at one time, which results in a large bandwidth load.
More preferably, after the first file is downloaded and the check value is checked, the other intelligent hardware 400 is converted into the seed intelligent hardware 300, so as to improve the conversion efficiency and the downloading speed.
As a further optimization, based on the download command, receiving first configuration information fed back by the seed intelligence hardware 300 when downloading a file from the remote server 100, specifically:
based on the download command, the seed intelligence hardware 300 starts the file download from the remote server 100;
after the first file is downloaded, starting a TCP monitoring thread for receiving the real-time configuration information fed back by the seed intelligent hardware 300; the real-time configuration information comprises a download task number, a download file name, a check value, an IP (Internet protocol), a port and the number of residual download files;
and updating the final first configuration information based on the real-time configuration information.
In this embodiment, the TCP listening thread is started to detect the file downloading process of the seed intelligent hardware 300, so as to ensure the accuracy of file downloading.
A second embodiment of the present invention provides a file transfer device based on an ad hoc network technology, including:
a first receiving unit 201 for receiving a download command from the remote server 100;
a dividing unit 202, configured to divide the campus network into N subnets according to the communication connection relationships of all the intelligent hardware;
a first selecting unit 203, configured to select one of the intelligent hardware in each of the subnets as a seed intelligent hardware 300, so as to receive the download command;
a second receiving unit 204, configured to receive, based on the download command, first configuration information fed back when the seed intelligence hardware 300 downloads a file from the remote server 100;
a second selecting unit 205, configured to select another plurality of intelligent hardware 400 of each subnet, so as to receive the first configuration information and download a file from the seed intelligent hardware 300 based on the first configuration information.
For further optimization, the first configuration information includes a download task number, a download file name, a check value, an IP, a port, and a download file number.
As a further optimization, the method further comprises the following steps:
a third receiving unit, configured to receive second configuration information fed back by the other multiple intelligent hardware 400;
a conversion unit, configured to convert the plurality of other intelligent hardware into the seed intelligent hardware 300 based on the second configuration information;
an allocating unit, configured to allocate, to each seed intelligent hardware 300, different amounts of intelligent hardware based on a bandwidth load of each seed intelligent hardware 300, so that the different amounts of intelligent hardware download files from the corresponding seed intelligent hardware 300.
As a further optimization, the second receiving unit 204 includes:
a file downloading module, configured to, based on the downloading command, start file downloading from the remote server 100 by the seed intelligent hardware 300;
a configuration information receiving module, configured to start a TCP monitoring thread after the first file is downloaded, and configured to receive real-time configuration information fed back by the seed intelligent hardware 300; the real-time configuration information comprises a download task number, a download file name, a check value, an IP (Internet protocol), a port and the number of the remaining download files;
and the information updating module is used for updating the final first configuration information based on the real-time configuration information.
A third embodiment of the present invention provides a file transfer server based on an ad hoc network technology, which includes a memory and a processor, where a computer program is stored in the memory, and the computer program can be executed by the processor, so as to implement the file transfer method based on the ad hoc network technology provided in the first embodiment of the present invention.
Illustratively, the computer program may be divided into one or more units, which are stored in the memory and executed by the processor to accomplish the present invention. The one or more units may be a series of computer program instruction segments capable of performing specific functions, which are used for describing the execution process of the computer program in the file transfer server based on the ad hoc network technology.
The file transmission server based on the ad hoc network technology can comprise a processor and a memory, but is not limited to the processor and the memory. It will be appreciated by those skilled in the art that the schematic diagram is merely an example of an ad hoc technology based file transfer server and does not constitute a limitation of the ad hoc technology based file transfer server, and may include more or less components than those shown, or combine some components, or different components, for example, the ad hoc technology based file transfer server may further include an input output device, a network access device, a bus, etc.
The Processor may be a Central Processing Unit (cpu), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, or the like. The general purpose processor may be a microprocessor or the processor may be any conventional processor or the like, and the control center of the ad hoc technology based file transfer server connects various parts of the entire ad hoc technology based file transfer server by using various interfaces and lines.
The memory may be used for storing the computer program and/or module, and the processor may implement various functions of the ad hoc network technology-based file transfer server by operating or executing the computer program and/or module stored in the memory and calling data stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. In addition, the memory may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device.
Wherein, the file transmission server integrated unit based on the ad hoc network technology can be stored in a computer readable storage medium if it is realized in the form of a software functional unit and sold or used as an independent product. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments may be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U.S. disk, removable hard disk, magnetic diskette, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signal, telecommunications signal, and software distribution medium, etc. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
It should be noted that the above-described embodiments of the apparatus are merely illustrative, where the units described as separate parts may or may not be physically separate, and the parts described as display units may or may not be physical units, may be located in one place, or may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. In addition, in the drawings of the embodiment of the apparatus provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between them, and may be specifically implemented as one or more communication buses or signal lines. One of ordinary skill in the art can understand and implement it without inventive effort.
While the foregoing is directed to the preferred embodiment of the present invention, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention.

Claims (7)

1. A file transmission method based on ad hoc network technology is characterized by comprising the following steps:
receiving a download command from a remote server;
dividing the school garden network into N subnets according to the communication connection relation of all intelligent hardware;
selecting one intelligent hardware in each subnet as a seed intelligent hardware for receiving the downloading command;
receiving first configuration information fed back when the seed intelligent hardware downloads a file from the remote server based on the downloading command; the first configuration information comprises a download task number, a download file name, a check value, an IP (Internet protocol), a port and the number of download files; selecting other intelligent hardware of each subnet to receive the first configuration information and download files from the seed intelligent hardware based on the first configuration information;
after receiving different second configuration information, the intelligent hardware with different quantities downloads files into corresponding seed intelligent hardware according to the second configuration information, and then returns the configuration information to the central scheduling server; the circulation ensures that each intelligent hardware can be converted into seed intelligent hardware, and one intelligent hardware cannot be used as a download server by other intelligent hardware; the central dispatching server selects 2-4 other intelligent hardware to be converted into seed intelligent hardware; the second configuration information comprises a download task number, a download file name, a check value, an IP (Internet protocol), a port and the number of download files;
after the first file is downloaded and the check value is corrected by other intelligent hardware, converting the other intelligent hardware into seed intelligent hardware;
and detecting the file downloading process of the seed intelligent hardware by starting a TCP monitoring thread.
2. The ad hoc network technology-based file transfer method according to claim 1, further comprising:
receiving second configuration information fed back by the other intelligent hardware;
converting the other plurality of the smart hardware into the seed smart hardware based on the second configuration information;
distributing different amounts of intelligent hardware to each seed intelligent hardware based on the bandwidth load of each seed intelligent hardware, so that the different amounts of intelligent hardware can download files from the corresponding seed intelligent hardware.
3. The ad hoc network technology-based file transmission method according to claim 2, wherein based on the download command, first configuration information fed back by the seed intelligent hardware when downloading a file from the remote server is received, specifically:
based on the download command, the seed intelligent hardware starts to download the file from the remote server;
after the first file is downloaded, starting a TCP monitoring thread for receiving the real-time configuration information fed back by the intelligent seed hardware; the real-time configuration information comprises a download task number, a download file name, a check value, an IP (Internet protocol), a port and the number of residual download files;
and updating the final first configuration information based on the real-time configuration information.
4. A file transmission device based on ad hoc network technology is characterized by comprising:
a first receiving unit for receiving a download command from a remote server;
the dividing unit is used for dividing the school garden network into N subnets according to the communication connection relation of all the intelligent hardware;
the first selecting unit is used for selecting one intelligent hardware in each subnet as seed intelligent hardware to receive the downloading command;
the second receiving unit is used for receiving first configuration information fed back when the seed intelligent hardware downloads the file from the remote server based on the downloading command;
a second selecting unit, configured to select another plurality of intelligent hardware of each subnet, to receive the first configuration information and download a file from the seed intelligent hardware based on the first configuration information;
the first configuration information comprises a download task number, a download file name, a check value, an IP (Internet protocol), a port and the number of download files; after receiving different second configuration information, the intelligent hardware with different quantities downloads files into corresponding seed intelligent hardware according to the second configuration information, and then returns the configuration information to the central scheduling server; the circulation ensures that each intelligent hardware can be converted into seed intelligent hardware, and one intelligent hardware cannot be used as a download server by other intelligent hardware; the central dispatching server selects 2-4 other intelligent hardware to be converted into seed intelligent hardware; the second configuration information comprises a download task number, a download file name, a check value, an IP (Internet protocol), a port and the number of download files;
after the first file is downloaded and the check value is corrected by other intelligent hardware, converting the other intelligent hardware into seed intelligent hardware;
and detecting the file downloading process of the seed intelligent hardware by starting a TCP monitoring thread.
5. The ad-hoc network technology-based file transfer device according to claim 4, further comprising:
a third receiving unit, configured to receive second configuration information fed back by the other multiple intelligent hardware;
a conversion unit, configured to convert the other plurality of intelligent hardware into the seed intelligent hardware based on the second configuration information;
and the distribution unit is used for distributing different amounts of intelligent hardware to each seed intelligent hardware based on the bandwidth load of each seed intelligent hardware so as to enable the different amounts of intelligent hardware to download files from the corresponding seed intelligent hardware.
6. The ad-hoc network technology-based file transfer device according to claim 5, wherein the second receiving unit comprises:
the file downloading module is used for downloading the file from the remote server by the seed intelligent hardware based on the downloading command;
the configuration information receiving module is used for starting a TCP monitoring thread after the first file is downloaded, and receiving the real-time configuration information fed back by the seed intelligent hardware; the real-time configuration information comprises a download task number, a download file name, a check value, an IP (Internet protocol), a port and the number of residual download files;
and the information updating module is used for updating the final first configuration information based on the real-time configuration information.
7. A file transfer server based on ad hoc network technology, comprising a memory and a processor, wherein the memory stores a computer program, and the computer program can be executed by the processor to implement the file transfer method based on ad hoc network technology according to any one of claims 1 to 3.
CN201910872787.3A 2019-09-16 2019-09-16 File transmission method and device based on ad hoc network technology and server Active CN110493358B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910872787.3A CN110493358B (en) 2019-09-16 2019-09-16 File transmission method and device based on ad hoc network technology and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910872787.3A CN110493358B (en) 2019-09-16 2019-09-16 File transmission method and device based on ad hoc network technology and server

Publications (2)

Publication Number Publication Date
CN110493358A CN110493358A (en) 2019-11-22
CN110493358B true CN110493358B (en) 2022-05-27

Family

ID=68558226

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910872787.3A Active CN110493358B (en) 2019-09-16 2019-09-16 File transmission method and device based on ad hoc network technology and server

Country Status (1)

Country Link
CN (1) CN110493358B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1571383A (en) * 2003-07-19 2005-01-26 华为技术有限公司 A method for implementing campus network
CN103634346A (en) * 2012-08-23 2014-03-12 腾讯科技(深圳)有限公司 Data distribution method and system for network data center
CN109194993A (en) * 2018-10-29 2019-01-11 中国建设银行股份有限公司 Media file distribution method and file distributing platform

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105162878B (en) * 2015-09-24 2018-08-31 网宿科技股份有限公司 Document distribution system based on distributed storage and method
CN109561124A (en) * 2017-09-27 2019-04-02 深圳市创易联合科技有限公司 A kind of method, system and the terminal device of file transmission

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1571383A (en) * 2003-07-19 2005-01-26 华为技术有限公司 A method for implementing campus network
CN103634346A (en) * 2012-08-23 2014-03-12 腾讯科技(深圳)有限公司 Data distribution method and system for network data center
CN109194993A (en) * 2018-10-29 2019-01-11 中国建设银行股份有限公司 Media file distribution method and file distributing platform

Also Published As

Publication number Publication date
CN110493358A (en) 2019-11-22

Similar Documents

Publication Publication Date Title
CN109618002B (en) Micro-service gateway optimization method, device and storage medium
CN110896355B (en) Network slice selection method and device
CN110750341B (en) Task scheduling method, device, system, terminal equipment and storage medium
CN111163130B (en) Network service system and data transmission method thereof
CN111049762A (en) Data acquisition method and device, storage medium and switch
US20180159920A1 (en) Server load balancing method, apparatus, and server device
CN107210924B (en) Method and apparatus for configuring a communication system
CN114244717B (en) Configuration method and device of virtual network card resources, computer equipment and medium
CN113918232B (en) Algorithm service calling method, device, server and storage medium
CN109982152A (en) P2P CDN method for processing business, intelligent gateway and CDN platform
CN113434249A (en) Mirror image synchronization method and device, docker host and storage medium
CN114090388A (en) Information acquisition method, server cluster, server and equipment
CN109947568A (en) Timed task processing method, system, computer equipment and storage medium
CN111104178A (en) Dynamic library loading method, terminal device and storage medium
CN110493358B (en) File transmission method and device based on ad hoc network technology and server
CN112532664A (en) Data upgrading method and device
CN108920333B (en) Event state monitoring method and event state monitor
CN115102999B (en) DevOps system, service providing method, storage medium and electronic device
CN109343880A (en) RN packet updating method, RN packet updating device and readable storage medium
CN116166421A (en) Resource scheduling method and equipment for distributed training task
CN115469961A (en) Method and device for creating container group, electronic equipment and storage medium
CN110971637B (en) Method for calling third-party service interface, scheduler and storage medium
CN111294374B (en) Heterogeneous equipment starting system, method and device and electronic equipment
CN109995577B (en) Method, device and system for updating strategy
CN115412777A (en) Streaming media data transmission method, device and system

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 361000 unit 2202, No. 63, Chengyi North Street, phase III, software park, Xiamen City, Fujian Province

Applicant after: Century Haihang (Xiamen) Technology Co.,Ltd.

Address before: 391000 Pioneer Building, 1302 Jimei Avenue, Jimei District, Xiamen City, Fujian Province

Applicant before: Century Haihang (Xiamen) Technology Co.,Ltd.

GR01 Patent grant
GR01 Patent grant