CN106790633B - A kind of long-range multifile transmission method based on priority dynamic adjustment - Google Patents
A kind of long-range multifile transmission method based on priority dynamic adjustment Download PDFInfo
- Publication number
- CN106790633B CN106790633B CN201710002662.6A CN201710002662A CN106790633B CN 106790633 B CN106790633 B CN 106790633B CN 201710002662 A CN201710002662 A CN 201710002662A CN 106790633 B CN106790633 B CN 106790633B
- Authority
- CN
- China
- Prior art keywords
- file
- transmitted
- priority
- transmission
- data blocks
- 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
Links
- 230000005540 biological transmission Effects 0.000 title claims abstract description 54
- 238000000034 method Methods 0.000 title claims abstract description 39
- 238000012546 transfer Methods 0.000 description 3
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000011217 control strategy Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/24—Traffic characterised by specific attributes, e.g. priority or QoS
- H04L47/2425—Traffic characterised by specific attributes, e.g. priority or QoS for supporting services specification, e.g. SLA
- H04L47/2433—Allocation of priorities to traffic types
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/24—Traffic characterised by specific attributes, e.g. priority or QoS
- H04L47/2458—Modification of priorities while in transit
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/50—Queue scheduling
- H04L47/62—Queue scheduling characterised by scheduling criteria
- H04L47/625—Queue scheduling characterised by scheduling criteria for service slots or service orders
- H04L47/6275—Queue scheduling characterised by scheduling criteria for service slots or service orders based on priority
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The present invention discloses a kind of long-range multifile transmission method based on priority dynamic adjustment, comprising: the priority of S1, initialization file to be transmitted, and file to be transmitted is divided into several data blocks;S2, multiple data blocks are selected to be transmitted according to the priority of file to be transmitted;S3, judge whether to complete the transmission of All Files, if then terminating process;If otherwise obtaining the information for not completing the file of transmission, it is transferred to step S4;S4, basis do not complete the priority of the information update file to be transmitted of the file of transmission, are transferred to step S2.The present invention takes into account the factors such as emergency degree, file size, transmission time, it can be ensured that multiple files can in time, rationally, be reliably transferred to receiving end.
Description
Technical Field
The invention relates to a remote multi-file transmission method. And more particularly, to a remote multi-file transmission method dynamically adjusted based on priority.
Background
In some fields with special requirements, it is necessary to transmit non-real-time data information in a file manner, and existing file transmission methods such as file sharing and FTP have respective weaknesses. The file sharing method is generally used for the host in the same network segment, and the security of the shared file is difficult to ensure; the application of the FTP method requires the configuration of a special FTP server, and the client/service mode thereof determines the inequality of the statuses of both the transmitter and the receiver.
At present, many equal point-to-point (Peer-to-Peer) transmission methods appear in the field of network transmission, and the following two methods are mostly adopted when remote multi-file transmission is performed: the first is serial transmission, that is, the next file is transmitted after the transmission of one file is finished, and the method has no priority consideration and cannot ensure the priority processing of the emergency file; the second method is parallel transmission, a plurality of files are sent to a destination at the same time, the method generally has priority control, but the priority control strategy is simple to make and is often made only according to one factor, which may cause unreasonable priority setting, and especially in the process of parallel sending of a large number of files, some small-capacity files may not get a sending opportunity for a long time due to low priority.
Therefore, it is desirable to provide a remote multi-file transmission method that dynamically adjusts based on priority.
Disclosure of Invention
The invention aims to provide a remote multi-file transmission method based on dynamic priority adjustment, and aims to solve the problem that a low-priority file cannot obtain a sending opportunity for a long time when a large number of files are sent in the conventional remote multi-file transmission method.
In order to achieve the purpose, the invention adopts the following technical scheme:
a remote multi-file transmission method based on priority dynamic adjustment comprises the following steps:
s1, initializing the priority of the file to be transmitted, and dividing the file to be transmitted into a plurality of data blocks;
s2, selecting a plurality of data blocks to be transmitted according to the priority of the file to be transmitted;
s3, judging whether the transmission of all files is finished, if yes, ending the process; if not, the information of the file which is not transmitted is obtained, and the step is switched to step S4;
s4, updating the priority of the file to be transmitted according to the information of the file which is not transmitted, and going to step S2.
Preferably, the method for initializing the priority of the file to be transmitted in step S1 is as follows: and initializing the priority of each file to be transmitted according to the urgency degree of each file to be transmitted and the size of each file to be transmitted.
Preferably, the method for dividing the file to be transmitted into a plurality of data blocks in step S1 is as follows: and determining the size of the data block according to the size of the file to be transmitted, the number of transmission channels and the bandwidth, and dividing the file to be transmitted into a plurality of data blocks.
Preferably, the number of data blocks transmitted in step S2 is determined according to the number of transmission channels and the bandwidth.
Preferably, the information of the file which has not been transferred in step S3 includes the total size of the untransmitted data blocks of the file which has not been transferred, the urgency of the file which has not been transferred, and the transfer duration of the file which has not been transferred.
Preferably, the formula for updating the priority of the file to be transmitted according to the information of the file which is not transmitted in step S4 is as follows:
wherein, p (i) is the priority of the ith file to be transmitted; a (i) is the urgency level of the ith file to be transmitted; l (i) is the total size of the untransmitted data blocks of the ith file to be transmitted; t (i) is the accumulated transmission time of the ith file to be transmitted; a, l and t are respectively weight values of adjusting factors, a + l + t is equal to 1, a is more than or equal to 0 and less than or equal to 1, l is more than or equal to 0 and less than or equal to 1, and t is more than or equal to 0 and less than or equal to 1; n is the number of files to be transmitted currently.
Preferably, after step S2 and before step S3, the method further comprises the steps of:
and S5, recording receiving information when the data block is received, wherein the receiving information comprises the size of the file to which the received data block belongs, the storage position of the received data block and the transmission state of the file to which the received data block belongs.
The invention has the following beneficial effects:
the technical scheme of the invention has reasonable design and strong adaptability and popularization, can solve the problems of multi-user receiving, multi-file sending and the like in the field with special requirements on file transmission, can dynamically and automatically adjust the sending priority according to the transmission condition at that time in the multi-file sending process, and can make a reasonable sending strategy by considering the factors of urgency degree, file size, sending time and the like.
Drawings
The following describes embodiments of the present invention in further detail with reference to the accompanying drawings.
Fig. 1 shows a flow chart of a method for remote multi-file transfer that is dynamically adjusted based on priority.
Detailed Description
In order to more clearly illustrate the invention, the invention is further described below with reference to preferred embodiments and the accompanying drawings. Similar parts in the figures are denoted by the same reference numerals. It is to be understood by persons skilled in the art that the following detailed description is illustrative and not restrictive, and is not to be taken as limiting the scope of the invention.
As shown in fig. 1, the remote multi-file transmission method based on dynamic priority adjustment disclosed by the present invention comprises the following steps:
s1, initializing the priority of the file to be transmitted, and dividing the file to be transmitted into a plurality of data blocks;
s2, selecting a plurality of data blocks to be transmitted according to the priority of the file to be transmitted;
s3, judging whether the transmission of all files is finished, if yes, ending the process; if not, the information of the file which is not transmitted is obtained, and the step is switched to step S4;
s4, updating the priority of the file to be transmitted according to the information of the file which is not transmitted, and going to step S2.
Wherein,
in step S1, the specific method for initializing the priority of the file to be transmitted is as follows: initializing the priority of each file to be transmitted according to the urgency degree of each file to be transmitted and the size of each file to be transmitted; the specific method for dividing the file to be transmitted into a plurality of data blocks comprises the following steps: determining the size of the data blocks according to the size of the file to be transmitted, the number of transmission channels and the bandwidth, and dividing the file to be transmitted into a plurality of data blocks, wherein the size of all the data blocks is consistent, the large file is divided into a large number of data blocks, and the small file is divided into a small number of data blocks.
In step S2, the number of data blocks for single transmission is determined according to the number of transmission channels and the bandwidth, and when the number of data blocks for single transmission is determined, it is possible to transmit a partial data block of one large file, a plurality of small files, a partial data block of one small file and one large file, or partial data blocks of two large files at a time; the higher the priority of the file to be transmitted is, the greater the probability that the data block of the file to be transmitted is selected for transmission is, and the probability calculation formula is as follows:
wherein, p (i) is the priority of the ith file to be transmitted, and the higher the value is, the higher the priority is; sp (i) is the probability that the data block of the ith file to be transmitted is selected for transmission; n is the number of files to be transmitted currently.
In step S3, the information of the file that has not been transferred includes the total size of the untransmitted data blocks of the file that has not been transferred, the urgency of the file that has not been transferred, the transfer duration of the file that has not been transferred, and so on.
In step S4, the formula for updating the priority of the file to be transmitted according to the information of the file that has not been transmitted is:
wherein, p (i) is the priority of the ith file to be transmitted, and the higher the value is, the higher the priority is; a (i) is the urgency degree of the ith file to be transmitted, the value range is {1, 2, 3, 4, 5}, the greater the value is, the higher the urgency degree is, otherwise, the lower the urgency degree is; l (i) is the total size of the untransmitted data blocks of the ith file to be transmitted; t (i) starting to transmit the ith file to be transmitted from the data block of the file to the current accumulated transmission time; a, l and t are respectively weight values of adjusting factors, a + l + t is equal to 1, a is more than or equal to 0 and less than or equal to 1, l is more than or equal to 0 and less than or equal to 1, and t is more than or equal to 0 and less than or equal to 1; n is the number of files to be transmitted currently.
After step S2 and before step S3, the method further comprises the steps of:
s5, recording reception information when receiving the data block, the reception information including: the size of the file to which the received data block belongs, the storage position of the received data block, the transmission state of the file to which the received data block belongs and the like, and the transmission state of the file to which the received data block belongs comprises unfinished transmission or finished transmission, so that the transmission state is acquired at the transmitting end and the receiving end of file transmission simultaneously, and the controllability of the transmission process is higher.
It should be understood that the above-mentioned embodiments of the present invention are only examples for clearly illustrating the present invention, and are not intended to limit the embodiments of the present invention, and it will be obvious to those skilled in the art that other variations or modifications may be made on the basis of the above description, and all embodiments may not be exhaustive, and all obvious variations or modifications may be included within the scope of the present invention.
Claims (5)
1. A remote multi-file transmission method based on priority dynamic adjustment is characterized by comprising the following steps:
s1, initializing the priority of the file to be transmitted, and dividing the file to be transmitted into a plurality of data blocks;
s2, selecting a plurality of data blocks to be transmitted according to the priority of the file to be transmitted;
s3, judging whether the transmission of all files is finished, if yes, ending the process; if not, the information of the file which is not transmitted is obtained, and the step is switched to step S4;
s4, updating the priority of the file to be transmitted according to the information of the file which is not transmitted, and turning to the step S2;
wherein, the information of the file which is not completed in the step S3 includes the total size of the untransmitted data blocks of the file which is not completed to transmit, the urgency level of the file which is not completed to transmit, and the transmission duration of the file which is not completed to transmit;
in step S4, the formula for updating the priority of the file to be transmitted according to the information of the file that has not been transmitted is:
wherein, p (i) is the priority of the ith file to be transmitted; a (i) is the urgency level of the ith file to be transmitted; l (i) is the total size of the untransmitted data blocks of the ith file to be transmitted; t (i) is the transmission duration of the ith file to be transmitted; a, l and t are respectively weight values of adjusting factors, a + l + t is equal to 1, a is more than or equal to 0 and less than or equal to 1, l is more than or equal to 0 and less than or equal to 1, and t is more than or equal to 0 and less than or equal to 1; n is the number of files to be transmitted currently.
2. The method for remote multi-file transmission based on dynamic adjustment of priority according to claim 1, wherein the method for initializing the priority of the file to be transmitted in step S1 is as follows: and initializing the priority of each file to be transmitted according to the urgency degree of each file to be transmitted and the size of each file to be transmitted.
3. The method for remote multi-file transmission based on dynamic adjustment of priority level according to claim 1, wherein the method for dividing the file to be transmitted into a plurality of data blocks in step S1 is as follows: and determining the size of the data block according to the size of the file to be transmitted, the number of transmission channels and the bandwidth, and dividing the file to be transmitted into a plurality of data blocks.
4. The remote multi-file transmission method based on dynamic adjustment of priority as claimed in claim 1, wherein the number of data blocks transmitted in step S2 is determined according to the number of transmission channels and the bandwidth.
5. The remote multi-file transmission method based on dynamic adjustment of priority according to claim 1, wherein after step S2 and before step S3, the method further comprises the steps of:
and S5, recording receiving information when the data block is received, wherein the receiving information comprises the size of the file to which the received data block belongs, the storage position of the received data block and the transmission state of the file to which the received data block belongs.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710002662.6A CN106790633B (en) | 2017-01-03 | 2017-01-03 | A kind of long-range multifile transmission method based on priority dynamic adjustment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710002662.6A CN106790633B (en) | 2017-01-03 | 2017-01-03 | A kind of long-range multifile transmission method based on priority dynamic adjustment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106790633A CN106790633A (en) | 2017-05-31 |
CN106790633B true CN106790633B (en) | 2019-11-08 |
Family
ID=58949340
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710002662.6A Active CN106790633B (en) | 2017-01-03 | 2017-01-03 | A kind of long-range multifile transmission method based on priority dynamic adjustment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106790633B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109088860A (en) * | 2018-07-20 | 2018-12-25 | 珠海许继芝电网自动化有限公司 | A kind of cross-safety zone data transmission scheduling method and system |
CN113326124A (en) * | 2021-05-20 | 2021-08-31 | 深圳证券通信有限公司 | Method for presetting priority of file transmission task |
CN113411393A (en) * | 2021-06-17 | 2021-09-17 | 中国工商银行股份有限公司 | File pushing method and device |
CN114389954B (en) * | 2022-01-18 | 2024-06-18 | 中科边缘智慧信息科技(苏州)有限公司 | Data transmission control method and system based on fixed bandwidth |
CN115150391B (en) * | 2022-07-25 | 2023-05-09 | 中电金信软件有限公司 | File transmission method and device, electronic equipment and readable storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102611760A (en) * | 2012-04-16 | 2012-07-25 | 苏州阔地网络科技有限公司 | File transmission method and system |
CN103281431A (en) * | 2013-02-26 | 2013-09-04 | 深圳市中兴移动通信有限公司 | Method and device for intelligently transferring file |
CN103501541A (en) * | 2013-09-06 | 2014-01-08 | 航天数字传媒有限公司 | Bandwidth allocation method and device, and file transmission method and device |
CN104394095A (en) * | 2014-11-07 | 2015-03-04 | 北京奇虎科技有限公司 | Data transmission method, data transmission system and source server |
CN105450785A (en) * | 2016-01-26 | 2016-03-30 | 青岛海信电器股份有限公司 | File transmission method and device |
CN105812456A (en) * | 2016-03-08 | 2016-07-27 | 北京恒华伟业科技股份有限公司 | File transmission method and device |
-
2017
- 2017-01-03 CN CN201710002662.6A patent/CN106790633B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102611760A (en) * | 2012-04-16 | 2012-07-25 | 苏州阔地网络科技有限公司 | File transmission method and system |
CN103281431A (en) * | 2013-02-26 | 2013-09-04 | 深圳市中兴移动通信有限公司 | Method and device for intelligently transferring file |
CN103501541A (en) * | 2013-09-06 | 2014-01-08 | 航天数字传媒有限公司 | Bandwidth allocation method and device, and file transmission method and device |
CN104394095A (en) * | 2014-11-07 | 2015-03-04 | 北京奇虎科技有限公司 | Data transmission method, data transmission system and source server |
CN105450785A (en) * | 2016-01-26 | 2016-03-30 | 青岛海信电器股份有限公司 | File transmission method and device |
CN105812456A (en) * | 2016-03-08 | 2016-07-27 | 北京恒华伟业科技股份有限公司 | File transmission method and device |
Also Published As
Publication number | Publication date |
---|---|
CN106790633A (en) | 2017-05-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106790633B (en) | A kind of long-range multifile transmission method based on priority dynamic adjustment | |
CA2581333A1 (en) | Adaptive bandwidth utilization for telemetered data | |
CN109495157B (en) | Full-duplex high-throughput rate bidirectional ARQ communication system and method based on CCSDS protocol | |
US20130077623A1 (en) | Multi-lane based ethernet apparatus and lane operating method for dynamic lane operation | |
EP3240218B1 (en) | Network admission control | |
CN105721414A (en) | Multi-acked multicast protocol | |
CN105915311B (en) | Subscriber station of a bus system and method for time-optimized transmission of data in a bus system | |
CN101207570A (en) | Data transmission method, data sending rate control method and base station | |
US8654642B2 (en) | Wireless packet transmission apparatus and packet priority control scheduling method | |
CN111064788B (en) | Signal transmission method, robot, and computer-readable storage medium | |
US10420140B2 (en) | Multi-destination burst protocol | |
CN113783798B (en) | Data transmission method and system and edge service equipment | |
US20190013868A1 (en) | Transporting multiple low-speed data streams across a high-speed communication link | |
CN112511702B (en) | Media frame pushing method, server, electronic equipment and storage medium | |
CN114866185A (en) | Method for transmitting multi-priority data frame | |
CN107888508B (en) | PC-NC-based numerical control system and anti-interference weak real-time communication method thereof | |
CN104202124A (en) | Erp (enterprise resource planning) data package communication method | |
US20240015785A1 (en) | Systems, devices, and methods related to conserving communication bandwidth with spare time schedule | |
US7401134B2 (en) | Packet processing architecture | |
WO2005083965A1 (en) | Transmission device, reception device, communication system, communication method, communication program, and computer-readable recording medium containing the same | |
CN1694457A (en) | Ethernet MAC adaptation for real-time services and data transfer method using it | |
US11937279B2 (en) | Systems, devices, and methods related to configuring a multi-stream network with a messaging schedule | |
CN109450517A (en) | RDSS communications control method and system | |
CN103457865A (en) | Communication device and multi-protocol multichannel hierarchical data transmission method | |
CN112188519B (en) | Wireless terminal based on multi-target optimization control strategy and control method |
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 |