CN110493029A - A kind of transmission method, transmitting device, electronic equipment and storage medium - Google Patents

A kind of transmission method, transmitting device, electronic equipment and storage medium Download PDF

Info

Publication number
CN110493029A
CN110493029A CN201910586438.5A CN201910586438A CN110493029A CN 110493029 A CN110493029 A CN 110493029A CN 201910586438 A CN201910586438 A CN 201910586438A CN 110493029 A CN110493029 A CN 110493029A
Authority
CN
China
Prior art keywords
file
transmitted
transmission
file set
size
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910586438.5A
Other languages
Chinese (zh)
Other versions
CN110493029B (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201910586438.5A priority Critical patent/CN110493029B/en
Publication of CN110493029A publication Critical patent/CN110493029A/en
Application granted granted Critical
Publication of CN110493029B publication Critical patent/CN110493029B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/14Network analysis or design
    • H04L41/147Network analysis or design for predicting network behaviour
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]

Abstract

This application discloses a kind of transmission methods, comprising: determines from file set to be transmitted to packaging file;At least target transmission time is calculated based on transmission response parameter and with the associated quantity of documents of file set to be transmitted;Wherein, transmission response parameter is at least related with the response time of terminal is received, quantity of documents, which is used to characterize, to be treated packaging file and carries out total number of files after packing processing in file set to be transmitted, is packaged at least one first file that file size meets first threshold to packaging file.The application also discloses a kind of transmitting device, electronic equipment and storage medium simultaneously.

Description

A kind of transmission method, transmitting device, electronic equipment and storage medium
Technical field
This application involves but be not limited to field of computer technology more particularly to a kind of transmission method, transmitting device, electronics are set Standby and storage medium.
Background technique
Currently, processing is optimized in transmission during file transmission for the small documents in file to be transmitted, This leads to the method for estimating transmission time based on the size of current network speed and file to be transmitted, when being unable to get accurate transmission Between.
Summary of the invention
The embodiment of the present application provides a kind of transmission method, transmitting device, electronic equipment and storage medium.The embodiment of the present application Technical solution be achieved in that
On the one hand, the embodiment of the present application provides a kind of transmission method, comprising:
It determines from file set to be transmitted to packaging file;
At least object transmission is calculated based on transmission response parameter and with the associated quantity of documents of file set to be transmitted Time;
Wherein, the transmission response parameter is at least related with the response time of terminal is received, and the quantity of documents is used for table Sign is described to packaging file to the total number of files in the file set to be transmitted described after packaging file carries out packing processing It is packaged at least one first file that file size meets first threshold.
It is optionally, described to determine from file set to be transmitted to packaging file, comprising:
Select file size meets multiple second files of second threshold from the file set to be transmitted;Wherein, often The file size of one second file is less than the file size of any third file in the file set to be transmitted, and described the Three files are the file in the file set to be transmitted in addition to the multiple second file.
Optionally, it is described at least based on transmission response parameter and with the associated number of files meter of file set to be transmitted Calculating target transmission time includes:
The first size and transmission network speed of file set to be transmitted are obtained, and calculates the first transmission time;
The second transmission time is calculated based on the transmission response parameter and the quantity of documents;
The mesh for being used for transmission the file set to be transmitted is calculated based on first transmission time and the second transmission time Mark transmission time.
Optionally, further includes:
Response time at least based on the reception terminal of file set to be transmitted determines the transmission response parameter.
Optionally, the response time of the reception terminal of the acquisition file set to be transmitted includes:
Obtain the hardware configuration parameter for receiving terminal and transmission network speed;
The reception terminal is at least obtained based on the hardware configuration parameter and the transmission network speed and is directed to Hyper text transfer The response time of agreement request.
Optionally, further includes:
At least determine that the file of first file is big based on quantity, file total size and the transmission network speed to packaging file Small and/or quantity.
Optionally, further includes:
File to be compressed is determined from file set to be transmitted;
Wherein, quantity of documents characterization to packaging file carries out packing processing and to the text to be compressed to described Total number of files after part progress compression processing in the file set to be transmitted.
It is optionally, described that file to be compressed is determined from file set to be transmitted, comprising:
Select file size meets at least one the 4th file of third threshold value from the file set to be transmitted;Wherein, The file size of each 4th file is greater than the file size of any third file in the file set to be transmitted, described Third file is that file size is in the file between second threshold and third threshold value in the file set to be transmitted.
Optionally, it is described at least based on transmission response parameter and with the associated number of files meter of file set to be transmitted Calculating target transmission time includes:
The second size and transmission network speed of file set to be transmitted are obtained, and calculates third transmission time;
The second transmission time is calculated based on the transmission response parameter and the quantity of documents;
The mesh for being used for transmission the file set to be transmitted is calculated based on the third transmission time and the second transmission time Mark transmission time.
Optionally, further includes:
Transmission network speed and transmission response parameter at least based on acquisition adjust the target transmission time.
On the other hand, the embodiment of the present application also provides a kind of electronic equipment, comprising: processor, memory and communication are total Line;
The communication bus is for realizing the communication connection between processor and memory;
The processor is used to execute the program that file transmits in memory, to realize the step such as above-mentioned transmission method Suddenly.
Another aspect, the embodiment of the present application also provide a kind of transmitting device, comprising:
First determination unit, for determining from file set to be transmitted to packaging file;
First processing units, at least based on transmission response parameter and with the associated file of file set to be transmitted Quantity calculates target transmission time;
Wherein, the transmission response parameter is at least related with the response time of terminal is received, and the quantity of documents is used for table Sign is described to packaging file to the total number of files in the file set to be transmitted described after packaging file carries out packing processing It is packaged at least one first file that file size meets first threshold.
Optionally, first determination unit is also used to the select file size from the file set to be transmitted and meets Multiple second files of second threshold;Wherein, the file size of each second file is less than the file set to be transmitted In any third file file size, the third file be the file set to be transmitted in remove the multiple second file File in addition.
Optionally, the first processing units are also used to obtain the first size and transmission network speed of file set to be transmitted, And calculate the first transmission time;
The second transmission time is calculated based on the transmission response parameter and the quantity of documents;
The mesh for being used for transmission the file set to be transmitted is calculated based on first transmission time and the second transmission time Mark transmission time.
Optionally, the transmitting device further include:
Second determination unit, at least determining institute based on quantity, file total size and the transmission network speed to packaging file State the file size and/or quantity of the first file.
Optionally, the transmitting device further include:
Third determination unit, for determining file to be compressed from file set to be transmitted;
Wherein, quantity of documents characterization to packaging file carries out packing processing and to the text to be compressed to described Total number of files after part progress compression processing in the file set to be transmitted.
Optionally, the third determination unit is also used to the select file size from the file set to be transmitted and meets At least one the 4th file of third threshold value;Wherein, the file size of each 4th file is greater than the file set to be transmitted The file size of any third file in conjunction, the third file are that file size is in second in the file set to be transmitted File between threshold value and third threshold value.
Optionally, the first processing units are also used to obtain the second size and transmission network speed of file set to be transmitted, And calculate third transmission time;
The second transmission time is calculated based on the transmission response parameter and the quantity of documents;
The mesh for being used for transmission the file set to be transmitted is calculated based on the third transmission time and the second transmission time Mark transmission time.
Optionally, the transmitting device further include:
The second processing unit, for the transmission network speed and the transmission response parameter adjustment object transmission at least based on acquisition Time.
In another aspect, the embodiment of the present application also provides a kind of storage medium, the storage medium is stored with one or more A program, one or more of programs can be executed by one or more processor, to realize such as above-mentioned transmission method The step of.
Transmission method provided by the embodiment of the present application is determined from file set to be transmitted to packaging file;At least base Target transmission time is calculated in transmission response parameter and with the associated quantity of documents of file set to be transmitted;Wherein, transmission response Parameter is at least related with the response time of terminal is received, quantity of documents for characterize treat packaging file carry out after packing processing to The total number of files in file set is transmitted, is packaged at least one first text that file size meets first threshold to packaging file Part;That is, in the embodiment of the present application, can by transmission response parameter related with the response time of terminal is received and with The associated quantity of documents of file set to be transmitted calculates target transmission time, to obtain the text of accurate file set to be transmitted Part transmission time realizes file transmission in this way, solving the problems, such as to be unable to get accurate file transmission time in the related technology The accurate prediction of time.
Detailed description of the invention
Fig. 1 is a kind of flow diagram for transmission method that embodiments herein provides;
Fig. 2 is the flow diagram for another transmission method that embodiments herein provides;
Fig. 3 is the flow diagram for another transmission method that embodiments herein provides;
Fig. 4 is a kind of flow diagram for transmission method that another embodiment of the application provides;
Fig. 5 is the structural schematic diagram for a kind of electronic equipment that embodiments herein provides.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete Site preparation description.
Embodiments herein provides a kind of transmission method, which can be applied to transmit with data and/data Any electric terminal equipment of write-in functions, electric terminal equipment herein are equal with following electronic equipments.
Shown in referring to Fig.1, method includes the following steps:
Step 101 is determined from file set to be transmitted to packaging file.
In the embodiment of the present application, file set to be transmitted includes to packaging file, and the file set to be transmitted is based on using The selection at family, which is determined, can also describe automatically select determination based on the user of acquisition, such as on a pcs terminal equipment, can be with It selects to determine that the disk in disk list is the file set to be transmitted based on user, can also determine in a disk Multiple files in one file or a file are the file set to be transmitted.It should be understood that packaging file Meet the file of preset condition including file attribute in file set to be transmitted;Here, file attribute includes but is not limited to file Size or file type.
In practical applications, electronic equipment is after determining file set to be transmitted, according to the user's operation detected to It determines in transmission file set to packaging file, or is described based on the user received automatically from file set to be transmitted In determine to packaging file, and then electronic equipment using to the relevant information of packaging file as estimating file set to be transmitted One of factor of target transmission time.
Step 102 calculates target at least based on transmission response parameter and with the associated quantity of documents of file set to be transmitted Transmission time.
Wherein, transmission response parameter is at least related with the response time of terminal is received, and quantity of documents is beaten for characterizing to treat APMB package carries out the total number of files after packing processing in file set to be transmitted, is packaged into file size to packaging file and meets At least one first file of first threshold.
In the embodiment of the present application, electronic equipment can actively obtain the transmission response parameter of file set to be transmitted or connect Receive other terminals as receive terminal feedback the transmission response parameter, the transmission response parameter at least with file set to be transmitted Reception terminal response time it is related, the response time be at least written with file to be transmitted the disk of the reception terminal when Between it is related.Electronic equipment, which can also be obtained, is used for characterization pair with the associated quantity of documents of file set to be transmitted, this document quantity Total number of files after packaging file carries out packing processing in file set to be transmitted, illustratively, such as to packaging file file There are 100 files in set, determining is 80 to packaging file quantity, if this 80 are estimated to packaging file and are packaged into 8 A first file, then the total number of files is exactly 28.
Here, electronic equipment determines after packaging file from file set to be transmitted, can will be packaged to packaging file Meet at least one first file of first threshold at file size, the first threshold customized can be arranged, can also be by electricity Sub- equipment is arranged automatically according to current transmission network speed, file set size to be transmitted or performance parameter, as will be described first threshold Range is set in 200 ± 10M.
In practical applications, electronic equipment determines after packaging file from file set to be transmitted, at least based on transmission Response parameter and target transmission time is calculated with the associated quantity of documents of file set to be transmitted, to obtain file set to be transmitted The communicating predicted time.
Transmission method provided by the embodiment of the present application is determined from file set to be transmitted to packaging file;At least base Target transmission time is calculated in transmission response parameter and with the associated quantity of documents of file set to be transmitted;Wherein, transmission response Parameter is at least related with the response time of terminal is received, quantity of documents for characterize treat packaging file carry out after packing processing to The total number of files in file set is transmitted, is packaged at least one first text that file size meets first threshold to packaging file Part;That is, in the embodiment of the present application, can based on transmission response parameter related with the response time of terminal is received and with The associated quantity of documents of file set to be transmitted calculates target transmission time, and then obtains the text of accurate file set to be transmitted Part transmission time realizes file transmission in this way, solving the problems, such as to be unable to get accurate file transmission time in the related technology The accurate prediction of time.
Based on previous embodiment, embodiments herein provides a kind of transmission method, is applied to electronic equipment, referring to Fig. 2 It is shown, method includes the following steps:
Step 201, select file size meets multiple second files of second threshold from file set to be transmitted.
Wherein, the file size of every one second file is big less than the file of any third file in file set to be transmitted Small, third file is the file in file set to be transmitted in addition to multiple second files.
In the embodiment of the present application, it is contemplated that each file be required to when being transmitted a transmission connection setup time and The disk write time, thus in order to improve the accuracy of estimating of file transmission time, after being packaged to multiple small documents Transmission, so that improves file transmission time estimates accuracy, as multiple second files are determined as wait be packaged in the present embodiment File;After electronic equipment determines file set to be transmitted, select file size meets second threshold from file set to be transmitted Multiple second files, obtain to packaging file, be such as determined as file size in file set to be transmitted less than the file of 5M To packaging file.
Step 202, the first size for obtaining file set to be transmitted and transmission network speed, and calculate the first transmission time.
In the embodiment of the present application, the first size can be understood as file set to be transmitted original size namely all quilts The file total size of selected transmission.Transmission network speed can be understood as the current net for the network for being used for transmission file set to be transmitted Speed.
In the embodiment of the present application, electronic equipment acquires the first size and transmission network speed, then with the first size divided by transmission Network speed obtains the first transmission time.
Step 203 calculates the second transmission time based on transmission response parameter and quantity of documents.
In the embodiment of the present application, due to being that file is successively transmitted one by one in transmission process, each file exists It requires to establish a http request with reception terminal when being transmitted, namely needs a transmission connection setup time, Er Qie This document is also required to consider a write time when being written to the disk for receiving terminal, thus electronic equipment acquires transmission response Parameter and quantity of documents then obtain the second transmission time multiplied by quantity of documents with transmission response parameter.
Wherein, transmission response parameter is at least related with the response time of terminal is received, and quantity of documents is beaten for characterizing to treat APMB package carries out the total number of files after packing processing in file set to be transmitted, is packaged into file size to packaging file and meets At least one first file of first threshold.
In the embodiment of the present application, electronic equipment can at least reception terminal based on file set to be transmitted response time Determine transmission response parameter.
In the embodiment of the present application, electronic equipment can obtain the reception terminal of file set to be transmitted as follows Response time:
The first step obtains the hardware configuration parameter for receiving terminal and transmission network speed.
In the embodiment of the present application, matching for the hardware configuration parameter including but not limited to processor of reception terminal of terminal is received Set the configuration parameter of parameter, the memory for receiving terminal.
Second step, at least based on hardware configuration parameter and transmission network speed obtain receive terminal asked for hypertext transfer protocol The response time asked.
In the embodiment of the present application, (the hardware by testing the electronic equipment obtained in advance is can be set in electronic equipment Configuration parameter+transmission network speed) with the mapping form of (response time).
Illustratively, mapping form includes at least list item one: processor I7+ memory solid state drive (Solid State Drive, SSD)+transmission network speed Gigabit Ethernet when, response time T1;List item one: processor I5+ memory, hard disk driver When (Hard Disk Drive, HDD)+transmission hundred Broadcom of network speed, response time T2.
In the embodiment of the present application, electronic equipment can be at least based on quantity, file total size and the transmission to packaging file Network speed determines the file size and/or quantity of the first file.
Transmission method provided by the present application, for improving the accuracy of estimating of file transmission time, when the file transmits Between be based primarily upon in transmission response parameter and file set to be transmitted and be packaged to packaging file that treated that total number of files is true It is fixed, thus it needs to be determined that the first file size and/or quantity, and the file size of the first file namely will quilt to packaging file Being packaged into great file can be determined based on quantity, file total size and the transmission network speed to packaging file, to obtain Most fast file transmission time, the efficiency and file transmission time for improving file transmission estimate accuracy.
Step 204 calculates the mesh for being used for transmission file set to be transmitted based on the first transmission time and the second transmission time Mark transmission time.
In the embodiment of the present application, electronic equipment acquires the first transmission time and the second transmission time, then with the first transmission Time adds the second transmission time, obtains target transmission time.
It should be noted that in the present embodiment with the explanation of same steps in other embodiments and identical content, Ke Yican According to the description in other embodiments, details are not described herein again.
Based on previous embodiment, embodiments herein provides a kind of transmission method, is applied to electronic equipment, referring to Fig. 3 It is shown, method includes the following steps:
Step 301 is determined from file set to be transmitted to packaging file.
Step 302 determines file to be compressed from file set to be transmitted.
In the embodiment of the present application, file set to be transmitted includes to packaging file and file to be compressed.
Wherein, the quantity of documents characterization in the present embodiment treats packaging file and carries out packing processing and to text to be compressed Part carries out the total number of files after compression processing in file set to be transmitted.
In the embodiment of the present application, since file transmission time is not only related with transmission response parameter and quantity of documents, equally Also related with file size, thus in order to further shorten the file transmission time of file set to be transmitted, step 302 is to be passed File to be compressed is determined in defeated file set, comprising: select file size meets third threshold value from file set to be transmitted At least one the 4th file that file size is greater than third threshold value is also carried out compression processing by least one the 4th file.
Wherein, the file size of every one the 4th file is big greater than the file of any third file in file set to be transmitted Small, third file is that file size is in the file between second threshold and third threshold value in file set to be transmitted.
In the embodiment of the present application, electronic equipment is determined from file set to be transmitted to packaging file and file to be compressed Afterwards, packaging file is treated be packaged processing and treat compressed file carrying out compression processing.
Step 303, the second size for obtaining file set to be transmitted and transmission network speed, and calculate third transmission time.
In the embodiment of the present application, the second size can be understood as treating the text to be transmitted after compressed file progress compression processing The size of part set.Transmission network speed can be understood as the current network speed for the network for being used for transmission file set to be transmitted.
In the embodiment of the present application, electronic equipment acquires the second size and transmission network speed, then with the second size divided by transmission Network speed obtains third transmission time.
Step 304 calculates the second transmission time based on transmission response parameter and quantity of documents.
In the embodiment of the present application, electronic equipment acquires transmission response parameter and quantity of documents, then uses transmission response parameter Multiplied by quantity of documents, the second transmission time is obtained.
Step 305 calculates the mesh for being used for transmission file set to be transmitted based on third transmission time and the second transmission time Mark transmission time.
In the embodiment of the present application, electronic equipment acquires third transmission time and the second transmission time, then is transmitted with third Time adds the second transmission time, obtains target transmission time.
It should be noted that in the present embodiment with the explanation of same steps in other embodiments and identical content, Ke Yican According to the description in other embodiments, details are not described herein again.
Based on previous embodiment, embodiments herein provides a kind of transmission method, is applied to electronic equipment, referring to Fig. 4 It is shown, method includes the following steps:
Step 401 is determined from file set to be transmitted to packaging file.
In the embodiment of the present application, electronic equipment can be after file transfer process starting, from file set to be transmitted really Determine to packaging file.For example, electronic equipment filters out text to be packaged from the corresponding transmission listed files of file set to be transmitted Part.Here, transmission listed files includes all corresponding files of leaf node, includes the corresponding file of empty list, big file And small documents;Illustratively, small documents include the file that file size is no more than 5M.
Further, electronic equipment creates packaging file from memory or hard disk, and all small documents are written in order In packaging file, limit each packaging file size be 200M and individually include quantity of documents be less than specific quantity such as 10000 small documents, while generating solution package informatin.
Step 402 calculates target at least based on transmission response parameter and with the associated quantity of documents of file set to be transmitted Transmission time.
Wherein, transmission response parameter is at least related with the response time of terminal is received, and quantity of documents is beaten for characterizing to treat APMB package carries out the total number of files after packing processing in file set to be transmitted, is packaged into file size to packaging file and meets At least one first file of first threshold.
It, can be in electricity after electronic equipment calculates the target transmission time of file set to be transmitted in the embodiment of the present application The target transmission time is shown in sub- equipment, so that user grasps the transmission situation of file set to be transmitted in real time.
In the embodiment of the present application, illustratively, the associated quantity of documents of file set to be transmitted treats packing for characterizing File carries out the total number of files after packing processing in file set to be transmitted.
Firstly, file of the electronic equipment to file size less than second threshold m carries out at packing in document transmission process Reason;In turn, after packing processing, electronic equipment can calculate how many small documents (smallCount) in total, Ji little Wen The total size smallTotalSize and these small documents of part can be packaged into how many a packaging files (mergeCount), And file size is greater than the quantity of documents (bigCount) that will not be packaged of m.So, total number of files is equal to bigCount's The sum of quantity of documents and the quantity of documents of mergeCount.
Secondly, electronic equipment detects the current network speed for the network for transmitting file set to be transmitted, transmission network is obtained Fast netSpeed.Electronic equipment determines the file size totalSize of file set to be transmitted after packing processing.
Finally, electronic equipment can use following formula, target transmission time T0=totalSize/ is calculated NetSpeed+ (bigCount+mergeCount) × transmission response parameter.
Further, it is verified on Migration Assistant, the transmission method improved using the embodiment of the present application The target transmission time being calculated and actual transmissions time are almost the same.
Step 403, the transmission network speed at least based on acquisition and transmission response parameter adjust target transmission time.
In the embodiment of the present application, it is contemplated that transmission response parameter and transmission network speed have incidence relation, it is possible to understand that, it passes Defeated response parameter can be with transmission network speed dynamic change;So, electronic equipment is in the object transmission for determining file set to be transmitted After time, transmission network speed and real-time transmission response parameter in real time can also be obtained, and at least based on the transmission network of acquisition Speed and transmission response parameters on target transmission time carry out dynamic adjustment, improve the accuracy of prediction.
Further, file set to be transmitted is sent to reception eventually based on determining target transmission time by electronic equipment End after reception terminal receives file set to be transmitted, is unpacked and is saved according to solution package informatin.
It should be noted that in the present embodiment with the explanation of same steps in other embodiments and identical content, Ke Yican According to the description in other embodiments, details are not described herein again.
Based on previous embodiment, embodiments herein provides a kind of electronic equipment, which can be applied to Fig. 1 In a kind of transmission method that~4 corresponding embodiments provide, referring to Figure 5, which includes: processor 51, storage Device 52 and communication bus 53, in which:
Communication bus 53 is for realizing the communication connection between processor 51 and memory 52.
Processor 51 is for executing the file-transfer program stored in memory 52, to perform the steps of
It determines from file set to be transmitted to packaging file;
At least target transmission time is calculated based on transmission response parameter and with the associated quantity of documents of file set to be transmitted;
Wherein, transmission response parameter is at least related with the response time of terminal is received, and quantity of documents is beaten for characterizing to treat APMB package carries out the total number of files after packing processing in file set to be transmitted, is packaged into file size to packaging file and meets At least one first file of first threshold.
In the other embodiments of the application, processor 51 is used to execute the file-transfer program stored in memory 52, To perform the steps of
Select file size meets multiple second files of second threshold from file set to be transmitted;Wherein, every 1 The file size of two files is less than the file size of any third file in file set to be transmitted, and third file is text to be transmitted File in part set in addition to multiple second files.
In the other embodiments of the application, processor 51 is used to execute the file-transfer program stored in memory 52, To perform the steps of
The first size and transmission network speed of file set to be transmitted are obtained, and calculates the first transmission time;
The second transmission time is calculated based on transmission response parameter and quantity of documents;
When being used for transmission the object transmission of file set to be transmitted based on the first transmission time and the calculating of the second transmission time Between.
In the other embodiments of the application, processor 51 is used to execute the file-transfer program stored in memory 52, To perform the steps of
Transmission response parameter is at least determined based on the response time of the reception terminal of file set to be transmitted.
In the other embodiments of the application, processor 51 is used to execute the file-transfer program stored in memory 52, To perform the steps of
Obtain the hardware configuration parameter for receiving terminal and transmission network speed;
The sound for receiving terminal and being directed to hypertext transfer protocol requests is at least obtained based on hardware configuration parameter and transmission network speed Between seasonable.
In the other embodiments of the application, processor 51 is used to execute the file-transfer program stored in memory 52, To perform the steps of
The file size of the first file is at least determined based on quantity, file total size and the transmission network speed to packaging file And/or quantity.
In the other embodiments of the application, processor 51 is used to execute the file-transfer program stored in memory 52, To perform the steps of
File to be compressed is determined from file set to be transmitted;
Wherein, quantity of documents characterization treats packaging file and carries out packing processing and treat compressed file carrying out at compression Total number of files after reason in file set to be transmitted.
In the other embodiments of the application, processor 51 is used to execute the file-transfer program stored in memory 52, To perform the steps of
Select file size meets at least one the 4th file of third threshold value from file set to be transmitted;Wherein, each The file size of 4th file is greater than the file size of any third file in file set to be transmitted, and third file is to be transmitted File size is in the file between second threshold and third threshold value in file set.
In the other embodiments of the application, processor 51 is used to execute the file-transfer program stored in memory 52, To perform the steps of
The second size and transmission network speed of file set to be transmitted are obtained, and calculates third transmission time;
The second transmission time is calculated based on transmission response parameter and quantity of documents;
When being used for transmission the object transmission of file set to be transmitted based on third transmission time and the calculating of the second transmission time Between.
In the other embodiments of the application, processor 51 is used to execute the file-transfer program stored in memory 52, To perform the steps of
Transmission network speed and transmission response parameter at least based on acquisition adjust target transmission time.
It should be noted that in the present embodiment step performed by processor specific implementation process, be referred to Fig. 1~ The realization process in transmission method that 4 corresponding embodiments provide, details are not described herein again.
Based on previous embodiment, embodiments herein provides a kind of transmitting device, which corresponds to above-mentioned Electronic equipment, the transmitting device can be applied in a kind of transmission method that the corresponding embodiment in Fig. 1~4 provides, the transmission Device, comprising:
First determination unit, for determining from file set to be transmitted to packaging file;
First processing units, at least based on transmission response parameter and with the associated quantity of documents of file set to be transmitted Calculate target transmission time;
Wherein, transmission response parameter is at least related with the response time of terminal is received, and quantity of documents is beaten for characterizing to treat APMB package carries out the total number of files after packing processing in file set to be transmitted, is packaged into file size to packaging file and meets At least one first file of first threshold.
Optionally, the first determination unit is also used to the select file size from file set to be transmitted and meets second threshold Multiple second files;Wherein, the file size of every one second file is less than any third file in file set to be transmitted File size, third file are the file in file set to be transmitted in addition to multiple second files.
Optionally, first processing units, are also used to obtain the first size and transmission network speed of file set to be transmitted, and count Calculate the first transmission time;
The second transmission time is calculated based on transmission response parameter and quantity of documents;
When being used for transmission the object transmission of file set to be transmitted based on the first transmission time and the calculating of the second transmission time Between.
Optionally, transmitting device further include:
Second determination unit, at least determining the based on quantity, file total size and the transmission network speed to packaging file The file size and/or quantity of one file.
Optionally, transmitting device further include:
Third determination unit, for determining file to be compressed from file set to be transmitted;
Wherein, quantity of documents characterization treats packaging file and carries out packing processing and treat compressed file carrying out at compression Total number of files after reason in file set to be transmitted.
Optionally, third determination unit is also used to the select file size from file set to be transmitted and meets third threshold value At least one the 4th file;Wherein, the file size of every one the 4th file is greater than any third file in file set to be transmitted File size, third file be file set to be transmitted in file size be in the text between second threshold and third threshold value Part.
Optionally, first processing units, are also used to obtain the second size and transmission network speed of file set to be transmitted, and count Calculate third transmission time;
The second transmission time is calculated based on transmission response parameter and quantity of documents;
When being used for transmission the object transmission of file set to be transmitted based on third transmission time and the calculating of the second transmission time Between.
Optionally, transmitting device further include:
The second processing unit, at least based on acquisition transmission network speed and transmission response parameter adjustment object transmission when Between.
It should be noted that in the present embodiment step performed by processor specific implementation process, be referred to Fig. 1~ The realization process in transmission method that 4 corresponding embodiments provide, details are not described herein again.
Based on previous embodiment, embodiments herein provides a kind of computer readable storage medium, this is computer-readable Storage medium is stored with one or more program, which can be executed by one or more processor, To realize following steps:
It determines from file set to be transmitted to packaging file;
At least target transmission time is calculated based on transmission response parameter and with the associated quantity of documents of file set to be transmitted;
Wherein, transmission response parameter is at least related with the response time of terminal is received, and quantity of documents is beaten for characterizing to treat APMB package carries out the total number of files after packing processing in file set to be transmitted, is packaged into file size to packaging file and meets At least one first file of first threshold.
In the other embodiments of the application, which can be executed by one or more processor, It can also perform the steps of
Select file size meets multiple second files of second threshold from file set to be transmitted;Wherein, every 1 The file size of two files is less than the file size of any third file in file set to be transmitted, and third file is text to be transmitted File in part set in addition to multiple second files.
In the other embodiments of the application, which can be executed by one or more processor, It can also perform the steps of
The first size and transmission network speed of file set to be transmitted are obtained, and calculates the first transmission time;
The second transmission time is calculated based on transmission response parameter and quantity of documents;
When being used for transmission the object transmission of file set to be transmitted based on the first transmission time and the calculating of the second transmission time Between.
In the other embodiments of the application, which can be executed by one or more processor, It can also perform the steps of
Transmission response parameter is at least determined based on the response time of the reception terminal of file set to be transmitted.
In the other embodiments of the application, which can be executed by one or more processor, It can also perform the steps of
Obtain the hardware configuration parameter for receiving terminal and transmission network speed;
The sound for receiving terminal and being directed to hypertext transfer protocol requests is at least obtained based on hardware configuration parameter and transmission network speed Between seasonable.
In the other embodiments of the application, which can be executed by one or more processor, It can also perform the steps of
The file size of the first file is at least determined based on quantity, file total size and the transmission network speed to packaging file And/or quantity.
In the other embodiments of the application, which can be executed by one or more processor, It can also perform the steps of
File to be compressed is determined from file set to be transmitted;
Wherein, quantity of documents characterization treats packaging file and carries out packing processing and treat compressed file carrying out at compression Total number of files after reason in file set to be transmitted.
In the other embodiments of the application, which can be executed by one or more processor, It can also perform the steps of
Select file size meets at least one the 4th file of third threshold value from file set to be transmitted;Wherein, each The file size of 4th file is greater than the file size of any third file in file set to be transmitted, and third file is to be transmitted File size is in the file between second threshold and third threshold value in file set.
In the other embodiments of the application, which can be executed by one or more processor, It can also perform the steps of
The second size and transmission network speed of file set to be transmitted are obtained, and calculates third transmission time;
The second transmission time is calculated based on transmission response parameter and quantity of documents;
When being used for transmission the object transmission of file set to be transmitted based on third transmission time and the calculating of the second transmission time Between.
In the other embodiments of the application, which can be executed by one or more processor, It can also perform the steps of
Transmission network speed and transmission response parameter at least based on acquisition adjust target transmission time.
It should be noted that in the present embodiment step performed by processor specific implementation process, be referred to Fig. 1~ The realization process in transmission method that 4 corresponding embodiments provide, details are not described herein again.
It should be understood by those skilled in the art that, embodiments herein can provide as method, system or computer program Product.Therefore, the shape of hardware embodiment, software implementation or embodiment combining software and hardware aspects can be used in the application Formula.Moreover, the application can be used, in one or more, which includes the computers of computer usable program code can use storage The form for the computer program product implemented on medium (including but not limited to magnetic disk storage and optical memory etc.).
The application is referring to method, the process of equipment (system) and computer program product according to the embodiment of the present application Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
The above, the only preferred embodiment of the application, are not intended to limit the protection scope of the application.

Claims (10)

1. a kind of transmission method, comprising:
It determines from file set to be transmitted to packaging file;
At least target transmission time is calculated based on transmission response parameter and with the associated quantity of documents of file set to be transmitted;
Wherein, the transmission response parameter is at least related with the response time of terminal is received, and the quantity of documents is for characterization pair Total number of files in the file set to be transmitted described after packaging file carries out packing processing, it is described to be beaten to packaging file It is bundled at least one first file that file size meets first threshold.
2. according to the method described in claim 1, described determine from file set to be transmitted to packaging file, comprising:
Select file size meets multiple second files of second threshold from the file set to be transmitted;Wherein, Mei Yisuo The file size for stating the second file is less than the file size of any third file in the file set to be transmitted, the third text Part is the file in the file set to be transmitted in addition to the multiple second file.
3. according to the method described in claim 1, it is described at least based on transmission response parameter and with the file set to be transmitted Associated quantity of documents calculates target transmission time
The first size and transmission network speed of file set to be transmitted are obtained, and calculates the first transmission time;
The second transmission time is calculated based on the transmission response parameter and the quantity of documents;
The target biography for being used for transmission the file set to be transmitted is calculated based on first transmission time and the second transmission time The defeated time.
4. according to the method described in claim 1, further include:
The file size of first file is at least determined based on quantity, file total size and the transmission network speed to packaging file And/or quantity.
5. method according to any one of claims 1 to 4, further includes:
File to be compressed is determined from file set to be transmitted;
Wherein, quantity of documents characterization to it is described to packaging file carry out packing processing and to the file to be compressed into Total number of files after row compression processing in the file set to be transmitted.
6. according to the method described in claim 5, further including at least one of:
It is described that file to be compressed is determined from file set to be transmitted, comprising:
Select file size meets at least one the 4th file of third threshold value from the file set to be transmitted;Wherein, each The file size of 4th file is greater than the file size of any third file in the file set to be transmitted, the third File is that file size is in the file between second threshold and third threshold value in the file set to be transmitted;
It is described at least to calculate object transmission based on transmission response parameter and with the associated quantity of documents of file set to be transmitted Time includes:
The second size and transmission network speed of file set to be transmitted are obtained, and calculates third transmission time;
The second transmission time is calculated based on the transmission response parameter and the quantity of documents;
The target biography for being used for transmission the file set to be transmitted is calculated based on the third transmission time and the second transmission time The defeated time.
7. according to the method described in claim 1, further include:
Transmission network speed and transmission response parameter at least based on acquisition adjust the target transmission time.
8. a kind of transmitting device, comprising:
First determination unit, for determining from file set to be transmitted to packaging file;
First processing units, at least based on transmission response parameter and with the associated quantity of documents of file set to be transmitted Calculate target transmission time;
Wherein, the transmission response parameter is at least related with the response time of terminal is received, and the quantity of documents is for characterization pair Total number of files in the file set to be transmitted described after packaging file carries out packing processing, it is described to be beaten to packaging file It is bundled at least one first file that file size meets first threshold.
9. a kind of electronic equipment, comprising: processor, memory and communication bus;
The communication bus is for realizing the communication connection between processor and memory;
The processor is used to execute the transfer program in memory, to realize such as biography of any of claims 1-7 The step of transmission method.
10. a kind of storage medium, the storage medium is stored with one or more program, and one or more of programs can It is executed by one or more processor, to realize such as the step of transmission method of any of claims 1-7.
CN201910586438.5A 2019-07-01 2019-07-01 Transmission method, transmission device, electronic equipment and storage medium Active CN110493029B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910586438.5A CN110493029B (en) 2019-07-01 2019-07-01 Transmission method, transmission device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910586438.5A CN110493029B (en) 2019-07-01 2019-07-01 Transmission method, transmission device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110493029A true CN110493029A (en) 2019-11-22
CN110493029B CN110493029B (en) 2022-07-26

Family

ID=68546462

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910586438.5A Active CN110493029B (en) 2019-07-01 2019-07-01 Transmission method, transmission device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110493029B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115037739A (en) * 2022-06-13 2022-09-09 深圳乐播科技有限公司 File transmission method and device, electronic equipment and storage medium
CN115270077A (en) * 2022-08-16 2022-11-01 南京网藤科技有限公司 Method and device for smoothing calculation progress, electronic equipment and computer readable medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102685159A (en) * 2011-03-10 2012-09-19 腾讯科技(深圳)有限公司 File transmission method and device
CN102708187A (en) * 2012-05-14 2012-10-03 成都信息工程学院 Reverse index mixed compression and decompression method based on Hbase database
CN106161633A (en) * 2016-07-20 2016-11-23 柏科数据技术(深圳)股份有限公司 A kind of based on the transmission method of packaging file under cloud computing environment and system
CN107766464A (en) * 2017-09-28 2018-03-06 努比亚技术有限公司 A kind of file memory method, terminal and computer-readable recording medium
CN108881454A (en) * 2018-06-28 2018-11-23 北京珠穆朗玛移动通信有限公司 Document transmission method, mobile terminal and storage medium
CN109842652A (en) * 2017-11-27 2019-06-04 中兴通讯股份有限公司 A kind of method for uploading of file, terminal, Cloud Server and computer storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102685159A (en) * 2011-03-10 2012-09-19 腾讯科技(深圳)有限公司 File transmission method and device
CN102708187A (en) * 2012-05-14 2012-10-03 成都信息工程学院 Reverse index mixed compression and decompression method based on Hbase database
CN106161633A (en) * 2016-07-20 2016-11-23 柏科数据技术(深圳)股份有限公司 A kind of based on the transmission method of packaging file under cloud computing environment and system
CN107766464A (en) * 2017-09-28 2018-03-06 努比亚技术有限公司 A kind of file memory method, terminal and computer-readable recording medium
CN109842652A (en) * 2017-11-27 2019-06-04 中兴通讯股份有限公司 A kind of method for uploading of file, terminal, Cloud Server and computer storage medium
CN108881454A (en) * 2018-06-28 2018-11-23 北京珠穆朗玛移动通信有限公司 Document transmission method, mobile terminal and storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115037739A (en) * 2022-06-13 2022-09-09 深圳乐播科技有限公司 File transmission method and device, electronic equipment and storage medium
CN115037739B (en) * 2022-06-13 2024-02-23 深圳乐播科技有限公司 File transmission method and device, electronic equipment and storage medium
CN115270077A (en) * 2022-08-16 2022-11-01 南京网藤科技有限公司 Method and device for smoothing calculation progress, electronic equipment and computer readable medium
CN115270077B (en) * 2022-08-16 2024-01-26 南京网藤科技有限公司 Method, device, electronic equipment and computer readable medium for smoothing calculation progress

Also Published As

Publication number Publication date
CN110493029B (en) 2022-07-26

Similar Documents

Publication Publication Date Title
CN109496419A (en) Document handling method, device and system
CN110493029A (en) A kind of transmission method, transmitting device, electronic equipment and storage medium
CN109426593A (en) The method and apparatus of automatic evaluation system performance
CN103067214A (en) Method, client, server and system used for testing web site performance
CN106131165B (en) Anti-stealing link method and device for content distributing network
CN105354505B (en) A kind of image adaptation method and electronic equipment
CN104780212A (en) Method for selecting server with highest connection speed and terminal
CN106371546A (en) Method and device for limiting power dissipation of whole cabinet
US9609068B2 (en) Session management system, session management apparatus, and non-transitory computer readable medium
CN109842652A (en) A kind of method for uploading of file, terminal, Cloud Server and computer storage medium
CN109542862A (en) For controlling the methods, devices and systems of the carry of file system
CN109392002A (en) A kind of method and apparatus of report network performance parameter
CN113556813B (en) Uplink data transmission method, device and system
CN104239125B (en) Object processing method, distributed file system and client device
CN102404345A (en) Distributed attack prevention method and device
US20030140146A1 (en) Method and system for interconnecting a Web server with a wireless portable communications device
CN109408427A (en) A kind of clock-domain crossing data processing method and system
CN109347982A (en) A kind of dispatching method and device of data center
CN106549784B (en) A kind of data processing method and equipment
CN108696455A (en) Method and device for processing service flow
CN107423187A (en) A kind of screen monitor method, apparatus and system
CN110493175A (en) A kind of information processing method, electronic equipment and storage medium
JP3945390B2 (en) Network device control system, server, and transmission control method
CN107181644B (en) Method and apparatus for monitoring the network performance of network application
WO2013027332A1 (en) Information processing device, information processing method, and program

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