CN103701897A - Server, terminal and file transmission method - Google Patents
Server, terminal and file transmission method Download PDFInfo
- Publication number
- CN103701897A CN103701897A CN201310732537.2A CN201310732537A CN103701897A CN 103701897 A CN103701897 A CN 103701897A CN 201310732537 A CN201310732537 A CN 201310732537A CN 103701897 A CN103701897 A CN 103701897A
- Authority
- CN
- China
- Prior art keywords
- file
- server
- terminal
- file transfer
- transfer parameter
- 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.)
- Pending
Links
Images
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
The invention provides a server, a terminal and a file transmission method. The server comprises an interactive unit used for establishing connection with the terminal, receiving a file transmission parameter sent by the terminal, and sending the file transmission parameter to the appointed server, so that the appointed server sends a file to the terminal according to the file transmission parameter. By the technical scheme, the file transmission efficiency can be improved and the file transmission stability is improved.
Description
Technical field
The present invention relates to communication technical field, in particular to a kind of server, a kind of terminal and a kind of document transmission method.
Background technology
At present, more and more frequent by Internet Transmission file, and also the file of transmission is also increasing.When carrying out file transfer, conventionally can run into network speed unstable, and to the situation of a plurality of terminal transmission identical file.
When the file transmitting terminal large and that receive is more, single service platform is difficult to bear load, is unfavorable for transfer of data and transmission control.
Therefore stability, how to guarantee file transfer becomes technical problem urgently to be resolved hurrily.
Summary of the invention
The present invention based on above-mentioned technical problem one of at least, has proposed a kind of new file transfer technology just, can improve the efficiency of file transfer, strengthens the stability of file transfer.
In view of this, the present invention proposes a kind of server, comprise: interactive unit, for connecting with terminal, and the file transfer parameter of receiving terminal transmission, and described file transfer parameter is sent to given server so that described given server according to described transformation parameter to described terminal Transmit message.
In this technical scheme, the file transfer parameter sending by receiving terminal, make server to formulate corresponding file transmission scenario according to the situation of terminal, such as the compress mode of file, data transmission link, network connection state etc., thereby improve the efficiency of file transfer, strengthen the stability of file transfer.By file transfer parameter is sent to given server, so that given server is to terminal Transmit message, make file transfer control and document transmission process to be separated, so that when transfer files, can select corresponding server transfer files according to the load capacity of Ftp server, to guarantee the stability of file transfer.
In technique scheme, preferably, described interactive unit also for: connect with at least one server; Described server also comprises: control unit, for according to the operating state of described at least one server, select described given server.
In this technical scheme, by select the server of transfer files according to the operating state of server, can guarantee that each Ftp server can be in normal loading range, thereby improve the stability of file transfer.
In technique scheme, preferably, described control unit specifically for: according to the operating state of described at least one server, select server in idle condition as described given server.
In this technical scheme, specifically, such as at needs during to terminal Transmit message, if use the server Transmit message in busy state, may increase on the one hand file and send the time of waiting for, also may cause on the other hand the excessive file that causes of server load to send unsuccessfully, and by selecting server or the less server Transmit message of work at present amount in idle condition, can shorten the stand-by period that file sends, improve the stability that file sends.
According to a further aspect in the invention, a kind of server has also been proposed, comprise: interactive unit, for connecting with another server, and the file transfer parameter of carrying out self terminal that described in receiving, another server forwards, and according to the file in described file transfer parameter, to described terminal Transmit message.
In this technical scheme, by the file in the file transfer parameter sending according to terminal, to terminal Transmit message, make, when to terminal Transmit message, can formulate corresponding file transmission scenario according to the actual conditions of terminal, such as the compress mode of file, data transmission link etc., thereby improve the stability of file transfer, avoid blindly to terminal, transmitting file by default transmission means, cause terminal cannot receive file, or transmitting time is longer.
In technique scheme, preferably, also comprise: processing unit, for the processing mode to described file according to described file transfer parameter, described file is processed, with the file after being processed; Described interactive unit also for: the file after described processing is sent to described terminal.
In this technical scheme, by before file sends, file being processed, such as compressing, cut apart etc., can select corresponding document handling modus according to the actual conditions of terminal (such as receiving the size etc. of file), so that the transmission of file.
In technique scheme, preferably, described processing unit specifically for: described file is cut apart, to obtain a plurality of divided files; Described interactive unit also for: described a plurality of divided files are sent to described terminal.
In this technical scheme, by file is cut apart, large file can be divided into a plurality of parts and transmit, thereby be conducive to the transmission to large file.Specifically, can be according to the situation of terminal, such as each file bag size receiving is cut apart file, to avoid the excessive obstruction that causes transmission link of file.When sending a plurality of divided file, can send successively, also can send i.e. parallel transmission, the efficiency sending to improve file simultaneously.
In technique scheme, preferably, described processing unit also for: before described specified file is cut apart, described file is compressed.
In this technical scheme, by file is compressed, can reduce the total bandwidth that file takies when sending, thus the time that reduction file sends.
In technique scheme, preferably, described processing unit also for: each divided file to described a plurality of divided files is encrypted.
In this technical scheme, by each divided file is encrypted, can avoid file by rogue program, to be distorted in transmitting procedure, thereby guarantee the integrality of file.Specifically, can adopt Message Digest 5 (such as Message Digest Algorithm 5 MD5) to be encrypted each divided file, to improve the encryption and decryption speed of system.In addition, before file is cut apart, also can adopt Message Digest 5 to be encrypted whole file, so that terminal is verified the integrality of whole file after a plurality of divided files are merged.
According to a further aspect in the invention, a kind of terminal has also been proposed, comprise: interactive unit, for connecting with server, and file transfer parameter is sent to described server, so that described server is forwarded to another server by described file transfer parameter, and connect with described another server, and receive the file that described another server sends according to described transformation parameter.
In this technical scheme, by file transfer parameter is sent to server, make server to formulate corresponding file transmission scenario according to the situation of terminal, such as the compress mode of file, data transmission link etc., thereby improve the stability of file transfer.And by receiving another server according to file transfer parameter Transmit message, make the control procedure of file transfer and document transmission process to be separated, so that when transfer files, can select corresponding server transfer files according to the load capacity of Ftp server, to guarantee the stability of file transfer.
In technique scheme, preferably, described interactive unit specifically for: receive a plurality of divided files that obtain after described another server sends described file is cut apart; Described terminal also comprises: processing unit, and for described a plurality of divided files are merged, with the file after being merged.
In this technical scheme, for the ease of the transmission to large file, server can be that a plurality of parts are transmitted by large file division when sending large file, thereby be conducive to the transmission to large file, therefore, when terminal receives a plurality of file after file is cut apart, need to merge a plurality of files, to guarantee to receive the integrality of file.Specifically, server is when sending a plurality of divided file, can send successively, so terminal file that reception server sends successively, and the efficiency sending in order to improve file, server also can send simultaneously, i.e. parallel transmission, therefore terminal also can receive simultaneously, i.e. parallel receive.
In technique scheme, preferably, described processing unit also for: the file after described merging is carried out to decompress(ion), to obtain described file.
In this technical scheme, the total bandwidth taking when sending in order to reduce file, the time sending to reduce file, server, when Transmit message, can compress file, therefore, terminal, after receiving file, need to be carried out decompress(ion) to file, to obtain the file of the original transmission of server.
In technique scheme, preferably, described processing unit also for: before described a plurality of divided files are merged, described a plurality of divided files are decrypted.
In this technical scheme, for fear of file, in transmitting procedure, by rogue program, distorted, guarantee the integrality of file, therefore, server, when Transmit message, can be encrypted file, and therefore, terminal, after receiving file, need to be decrypted file.Specifically, in order to improve the encryption and decryption speed of system, can adopt Message Digest 5 to be encrypted each divided file, terminal, after receiving a plurality of divided files, is verified the integrality of each divided file.If server before to file division, has also adopted Message Digest 5 to be encrypted to whole file, terminal, by after a plurality of Piece file mergences, also needs the completing property of whole file to verify.
According to a further aspect in the invention, a kind of document transmission system has also been proposed, comprise the server described in above-mentioned any one technical scheme, the server described at least one above-mentioned any one technical scheme, and the terminal described at least one above-mentioned any one technical scheme.
According to a further aspect in the invention, also proposed a kind of document transmission method, having comprised: connected with terminal; The file transfer parameter that receiving terminal sends; Described file transfer parameter is sent to given server so that described given server according to described transformation parameter to described terminal Transmit message.
In this technical scheme, the file transfer parameter sending by receiving terminal, makes server to formulate corresponding file transmission scenario according to the situation of terminal, such as the compress mode of file, data transmission link etc., thereby improves the stability of file transfer.By file transfer parameter is sent to given server, so that given server is to terminal Transmit message, make file transfer control and document transmission process to be separated, so that when transfer files, can select corresponding server transfer files according to the load capacity of Ftp server, to guarantee the stability of file transfer.
In technique scheme, preferably, described described file transfer parameter is sent to given server before, also comprise: connect with at least one server; According to the operating state of described at least one server, select described given server.
In this technical scheme, by select the server of transfer files according to the operating state of server, can guarantee that each Ftp server can be in normal loading range, thereby improve the stability of file transfer.
In technique scheme, preferably, the operating state of at least one server described in described basis, selects the step of described given server, be specially: according to the operating state of described at least one server, the server of selection in idle condition is as described given server.
In this technical scheme, specifically, such as at needs during to terminal Transmit message, if use the server Transmit message in busy state, may increase on the one hand file and send the time of waiting for, also may cause on the other hand the excessive file that causes of server load to send unsuccessfully, and by selecting server or the less server Transmit message of work at present amount in idle condition, can shorten the stand-by period that file sends, improve the stability that file sends.
According to a further aspect in the invention, also proposed a kind of document transmission method, having comprised: connected with another server; Receive the file transfer parameter of carrying out self terminal that described another server forwards; According to the file in described file transfer parameter, to described terminal Transmit message.
In this technical scheme, by the file in the file transfer parameter sending according to terminal, to terminal Transmit message, make, when to terminal Transmit message, can formulate corresponding file transmission scenario according to the actual conditions of terminal, such as the compress mode of file, data transmission link etc., thereby improve the stability of file transfer, avoid blindly to terminal, transmitting file by default transmission means, cause terminal cannot receive file, or transmitting time is longer.
In technique scheme, preferably, described according to the file in described file transfer parameter, before described terminal Transmit message, also comprise: according to the processing mode to described file in described file transfer parameter, described file is processed, with the file after being processed; File after described processing is sent to described terminal.
In this technical scheme, by before file sends, file being processed, such as compressing, cut apart etc., can select corresponding document handling modus according to the actual conditions of terminal (such as receiving the size etc. of file), so that the transmission of file.
In technique scheme, preferably, described according to the processing mode to described file in described file transfer parameter, the step that described file is processed, is specially: described file is cut apart, to obtain a plurality of divided files.
In this technical scheme, by file is cut apart, large file can be divided into a plurality of parts and transmit, thereby be conducive to the transmission to large file.Specifically, can be according to the situation of terminal, such as the file size that can receive is cut apart file at every turn, to avoid the excessive obstruction that causes transmission link of file.When sending a plurality of divided file, can send successively, also can send i.e. parallel transmission, the efficiency sending to improve file simultaneously.
In technique scheme, preferably, before being cut apart, described file also comprises: described file is compressed.
In this technical scheme, by file is compressed, can reduce the total bandwidth that file takies when sending, thus the time that reduction file sends.
In technique scheme, preferably, also comprise: each divided file in described a plurality of divided files is encrypted.
In this technical scheme, by each divided file is encrypted, can avoid file by rogue program, to be distorted in transmitting procedure, thereby guarantee the integrality of file.Specifically, can adopt Message Digest 5 (such as MD5) to be encrypted each divided file, to improve the encryption and decryption speed of system.In addition, before file is cut apart, also can adopt Message Digest 5 to be encrypted whole file, so that terminal is verified the integrality of whole file after a plurality of divided files are merged.
According to a further aspect in the invention, also proposed a kind of document transmission method, having comprised: connected with server; File transfer parameter is sent to described server, so that described server is forwarded to another server by described file transfer parameter; Receive the file that described another server sends according to described file transfer parameter.
In this technical scheme, by file transfer parameter is sent to server, make server to formulate corresponding file transmission scenario according to the situation of terminal, such as the compress mode of file, data transmission link, network connection state etc., thereby improve the stability of file transfer.And by receiving another server according to file transfer parameter Transmit message, make the control procedure of file transfer and document transmission process to be separated, so that when transfer files, can select corresponding server transfer files according to the load capacity of Ftp server, to guarantee the stability of file transfer.
In technique scheme, preferably, the step of the file that another server sends according to described transformation parameter described in described reception is specially: receive a plurality of divided files that obtain after described another server sends described file is cut apart; Described a plurality of divided files are merged, with the file after being merged.
In this technical scheme, for the ease of the transmission to large file, server can be that a plurality of parts are transmitted by large file division when sending large file, thereby be conducive to the transmission to large file, therefore, when terminal receives a plurality of file after file is cut apart, need to merge a plurality of files, to guarantee to receive the integrality of file.Specifically, server is when sending a plurality of divided file, can send successively, so terminal file that reception server sends successively, and the efficiency sending in order to improve file, server also can send simultaneously, i.e. parallel transmission, therefore terminal also can receive simultaneously, i.e. parallel receive.
In technique scheme, preferably, also comprise: the file after described merging is carried out to decompress(ion), to obtain described file.
In this technical scheme, the total bandwidth taking when sending in order to reduce file, the time sending to reduce file, server, when Transmit message, can compress file, therefore, terminal, after receiving file, need to be carried out decompress(ion) to file, to obtain the file of the original transmission of server.
In technique scheme, preferably, described described a plurality of divided files are merged before, described a plurality of divided files are decrypted.
In this technical scheme, for fear of file, in transmitting procedure, by rogue program, distorted, guarantee the integrality of file, therefore, server, when Transmit message, can be encrypted file, and therefore, terminal, after receiving file, need to be decrypted file.Specifically, in order to improve the encryption and decryption speed of system, can adopt Message Digest 5 to be encrypted each divided file, terminal, after receiving a plurality of divided files, is verified the integrality of each divided file.If server before to file division, has also adopted Message Digest 5 to be encrypted to whole file, terminal, by after a plurality of Piece file mergences, also needs the completing property of whole file to verify.
By above technical scheme, can improve the efficiency of file transfer, strengthen the stability of file transfer.
Accompanying drawing explanation
Fig. 1 shows the schematic block diagram of server according to an embodiment of the invention;
Fig. 2 shows the schematic block diagram of server according to another embodiment of the invention;
Fig. 3 shows the schematic block diagram of terminal according to an embodiment of the invention;
Fig. 4 shows the schematic block diagram of document transmission system according to an embodiment of the invention;
Fig. 5 shows the schematic flow diagram of document transmission method according to an embodiment of the invention;
Fig. 6 shows the schematic flow diagram of document transmission method according to another embodiment of the invention;
Fig. 7 shows the schematic flow diagram of document transmission method according to still another embodiment of the invention;
Fig. 8 shows the schematic block diagram of document transmission system according to another embodiment of the invention;
Fig. 9 shows the schematic block diagram of document transmission system according to still another embodiment of the invention;
Figure 10 shows the schematic flow diagram of file process of transmitting according to an embodiment of the invention;
Figure 11 shows the schematic flow diagram of file receiving course according to an embodiment of the invention.
Embodiment
In order more clearly to understand above-mentioned purpose of the present invention, feature and advantage, below in conjunction with the drawings and specific embodiments, the present invention is further described in detail.It should be noted that, in the situation that not conflicting, the application's embodiment and the feature in embodiment can combine mutually.
A lot of details have been set forth in the following description so that fully understand the present invention; but; the present invention can also adopt other to be different from other modes described here and implement, and therefore, protection scope of the present invention is not subject to the restriction of following public specific embodiment.
Fig. 1 shows the schematic block diagram of server according to an embodiment of the invention.
As shown in Figure 1, server 100 according to an embodiment of the invention, comprise: interactive unit 102, for connecting with terminal, and the file transfer parameter of receiving terminal transmission, and described file transfer parameter is sent to given server so that described given server according to described transformation parameter to described terminal Transmit message.
In this technical scheme, the file transfer parameter sending by receiving terminal, make Ftp server to formulate corresponding file transmission scenario according to the situation of terminal, such as the compress mode of file, data transmission link, network connection state etc., thereby improve the efficiency of file transfer, strengthen the stability of file transfer.By file transfer parameter is sent to given server, so that given server is to terminal Transmit message, make file transfer control and document transmission process to be separated, so that when transfer files, can select corresponding Ftp server transfer files according to the load capacity of Ftp server, to guarantee the stability of file transfer.
In technique scheme, preferably, described interactive unit 102 also for: connect with at least one server; Described server 100 also comprises: control unit 104, for according to the operating state of described at least one server, select described given server.
In this technical scheme, by select the server of transfer files according to the operating state of server, can guarantee that each Ftp server can be in normal loading range, thereby improve the stability of file transfer.
In technique scheme, preferably, described control unit 104 specifically for: according to the operating state of described at least one server, select server in idle condition as described given server.
In this technical scheme, specifically, such as at needs during to terminal Transmit message, if use the server Transmit message in busy state, may increase on the one hand file and send the time of waiting for, also may cause on the other hand the excessive file that causes of server load to send unsuccessfully, and by selecting server or the less server Transmit message of work at present amount in idle condition, can shorten the stand-by period that file sends, improve the stability that file sends.
Fig. 2 shows the schematic block diagram of server according to another embodiment of the invention.
As shown in Figure 2, server 200 according to another embodiment of the invention, comprise: interactive unit 202, for connecting with another server, and the file transfer parameter of carrying out self terminal that described in receiving, another server forwards, and according to the file in described file transfer parameter, to described terminal Transmit message.
In this technical scheme, by the file in the file transfer parameter sending according to terminal, to terminal Transmit message, make, when to terminal Transmit message, can formulate corresponding file transmission scenario according to the actual conditions of terminal, such as the compress mode of file, data transmission link etc., thereby improve the stability of file transfer, avoid blindly to terminal, transmitting file by default transmission means, cause terminal cannot receive file, or transmitting time is longer.
In technique scheme, preferably, also comprise: processing unit 204, for the processing mode to described file according to described file transfer parameter, described file is processed, with the file after being processed; Described interactive unit 202 also for: the file after described processing is sent to described terminal.
In this technical scheme, by before file sends, file being processed, such as compressing, cut apart etc., can select corresponding document handling modus according to the actual conditions of terminal (such as receiving the size etc. of file), so that the transmission of file.
In technique scheme, preferably, described processing unit 204 comprises: cutting unit 2042, for described file is cut apart, to obtain a plurality of divided files; Described interactive unit 202 also for: described a plurality of divided files are sent to described terminal.
In this technical scheme, by file is cut apart, large file can be divided into a plurality of parts and transmit, thereby be conducive to the transmission to large file.Specifically, can be according to the situation of terminal, such as the file size that can receive is cut apart file at every turn, to avoid the excessive obstruction that causes transmission link of file.When sending a plurality of divided file, can send successively, also can send i.e. parallel transmission, the efficiency sending to improve file simultaneously.
In technique scheme, preferably, described processing unit 204 also comprises: compression unit 2044, for before described specified file is cut apart, compresses described file.
In this technical scheme, by file is compressed, can reduce the total bandwidth that file takies when sending, thus the time that reduction file sends.
In technique scheme, preferably, described processing unit 204 also comprises: ciphering unit 2046, is encrypted for each divided file to described a plurality of divided files.
In this technical scheme, by each divided file is encrypted, can avoid file by rogue program, to be distorted in transmitting procedure, thereby guarantee the integrality of file.Specifically, can adopt Message Digest 5 (such as MD5) to be encrypted each divided file, to improve the encryption and decryption speed of system.In addition, before file is cut apart, also can adopt Message Digest 5 to be encrypted whole file, so that terminal is verified the integrality of whole file after a plurality of divided files are merged.
Fig. 3 shows the schematic block diagram of terminal according to an embodiment of the invention.
As shown in Figure 3, terminal 300 according to an embodiment of the invention, comprise: interactive unit 302, for connecting with server, and file transfer parameter is sent to described server, so that described server is forwarded to another server by described file transfer parameter, and connect with described another server, and receive the file that described another server sends according to described transformation parameter.
In this technical scheme, by file transfer parameter is sent to server, make server to formulate corresponding file transmission scenario according to the situation of terminal 300, such as the compress mode of file, data transmission link etc., thereby improve the stability of file transfer.And by receiving another server according to file transfer parameter Transmit message, make the control procedure of file transfer and document transmission process to be separated, so that when transfer files, can select corresponding server transfer files according to the load capacity of Ftp server, to guarantee the stability of file transfer.
In technique scheme, preferably, described interactive unit 302 specifically for: receive a plurality of divided files that obtain after described another server sends described file is cut apart; Described terminal also comprises: merge cells 304, and for described a plurality of divided files are merged, with the file after being merged.
In this technical scheme, for the ease of the transmission to large file, server can be that a plurality of parts are transmitted by large file division when sending large file, thereby be conducive to the transmission to large file, therefore, when terminal receives a plurality of file after file is cut apart, need to merge a plurality of files, to guarantee to receive the integrality of file.Specifically, server is when sending a plurality of divided file, can send successively, so terminal file that reception server sends successively, and the efficiency sending in order to improve file, server also can send simultaneously, i.e. parallel transmission, therefore terminal also can receive simultaneously, i.e. parallel receive.
In technique scheme, preferably, also comprise: decompress(ion) unit 306, carries out decompress(ion) for the file after described merge cells 304 is merged, to obtain described file.
In this technical scheme, the total bandwidth taking when sending in order to reduce file, the time sending to reduce file, server, when Transmit message, can compress file, therefore, terminal, after receiving file, need to be carried out decompress(ion) to file, to obtain the file of the original transmission of server.
In technique scheme, preferably, also comprise: decryption unit 308, before described a plurality of divided files being merged at described merge cells 304, is decrypted described a plurality of divided files.
In this technical scheme, for fear of file, in transmitting procedure, by rogue program, distorted, guarantee the integrality of file, therefore, server, when Transmit message, can be encrypted file, and therefore, terminal, after receiving file, need to be decrypted file.Specifically, in order to improve the encryption and decryption speed of system, can adopt Message Digest 5 to be encrypted each divided file, terminal, after receiving a plurality of divided files, is verified the integrality of each divided file.If server before to file division, has also adopted Message Digest 5 to be encrypted to whole file, terminal, by after a plurality of Piece file mergences, also needs the completing property of whole file to verify.
Fig. 4 shows the schematic block diagram of document transmission system according to an embodiment of the invention.
As shown in Figure 4, document transmission system 400 according to an embodiment of the invention, comprise server 100, at least one server 200 as shown in Figure 2 as shown in Figure 1, and at least one terminal 300 as shown in Figure 3.
Fig. 5 shows the schematic flow diagram of document transmission method according to an embodiment of the invention.
As shown in Figure 5, document transmission method, comprising: step 502, connects with terminal according to an embodiment of the invention; Step 504, the file transfer parameter that receiving terminal sends; Step 506, is sent to given server by described file transfer parameter so that described given server according to described transformation parameter to described terminal Transmit message.
In this technical scheme, the file transfer parameter sending by receiving terminal, makes server to formulate corresponding file transmission scenario according to the situation of terminal, such as the compress mode of file, data transmission link etc., thereby improves the stability of file transfer.By file transfer parameter is sent to given server, so that given server is to terminal Transmit message, make file transfer control and document transmission process to be separated, so that when transfer files, can select corresponding server transfer files according to the load capacity of Ftp server, to guarantee the stability of file transfer.
In technique scheme, preferably, described described file transfer parameter is sent to given server before, also comprise: connect with at least one server; According to the operating state of described at least one server, select described given server.
In this technical scheme, by select the server of transfer files according to the operating state of server, can guarantee that each Ftp server can be in normal loading range, thereby improve the stability of file transfer.
In technique scheme, preferably, the operating state of at least one server described in described basis, selects the step of described given server, be specially: according to the operating state of described at least one server, the server of selection in idle condition is as described given server.
In this technical scheme, specifically, such as at needs during to terminal Transmit message, if use the server Transmit message in busy state, may increase on the one hand file and send the time of waiting for, also may cause on the other hand the excessive file that causes of server load to send unsuccessfully, and by selecting server or the less server Transmit message of work at present amount in idle condition, can shorten the stand-by period that file sends, improve the stability that file sends.
Fig. 6 shows the schematic flow diagram of document transmission method according to another embodiment of the invention.
As shown in Figure 6, document transmission method according to another embodiment of the invention, comprising: step 602, connects with another server; Step 604, receives the file transfer parameter of carrying out self terminal that described another server forwards; Step 606, according to the file in described file transfer parameter, to described terminal Transmit message.
In this technical scheme, by the file in the file transfer parameter sending according to terminal, to terminal Transmit message, make, when to terminal Transmit message, can formulate corresponding file transmission scenario according to the actual conditions of terminal, such as the compress mode of file, data transmission link etc., thereby improve the stability of file transfer, avoid blindly to terminal, transmitting file by default transmission means, cause terminal cannot receive file, or transmitting time is longer.
In technique scheme, preferably, described according to the file in described file transfer parameter, before described terminal Transmit message, also comprise: according to the processing mode to described file in described file transfer parameter, described file is processed, with the file after being processed; File after described processing is sent to described terminal.
In this technical scheme, by before file sends, file being processed, such as compressing, cut apart etc., can select corresponding document handling modus according to the actual conditions of terminal (such as receiving the size etc. of file), so that the transmission of file.
In technique scheme, preferably, described according to the processing mode to described file in described file transfer parameter, the step that described file is processed, is specially: described file is cut apart, to obtain a plurality of divided files.
In this technical scheme, by file is cut apart, large file can be divided into a plurality of parts and transmit, thereby be conducive to the transmission to large file.Specifically, can be according to the situation of terminal, such as the file size that can receive is cut apart file at every turn, to avoid the excessive obstruction that causes transmission link of file.When sending a plurality of divided file, can send successively, also can send i.e. parallel transmission, the efficiency sending to improve file simultaneously.
In technique scheme, preferably, before being cut apart, described file also comprises: described file is compressed.
In this technical scheme, by file is compressed, can reduce the total bandwidth that file takies when sending, thus the time that reduction file sends.
In technique scheme, preferably, also comprise: each divided file in described a plurality of divided files is encrypted.
In this technical scheme, by each divided file is encrypted, can avoid file by rogue program, to be distorted in transmitting procedure, thereby guarantee the integrality of file.Specifically, can adopt Message Digest 5 (such as MD5) to be encrypted each divided file, to improve the encryption and decryption speed of system.In addition, before file is cut apart, also can adopt Message Digest 5 to be encrypted whole file, so that terminal is verified the integrality of whole file after a plurality of divided files are merged.
Fig. 7 shows the schematic flow diagram of document transmission method according to still another embodiment of the invention.
As shown in Figure 7, document transmission method according to still another embodiment of the invention, comprising: step 702, connects with server; Step 704, is sent to described server by file transfer parameter, so that described server is forwarded to another server by described file transfer parameter; Step 706, receives the file that described another server sends according to described file transfer parameter.
In this technical scheme, by file transfer parameter is sent to server, make server to formulate corresponding file transmission scenario according to the situation of terminal, such as the compress mode of file, data transmission link, network connection state etc., thereby improve the stability of file transfer.And by receiving another server according to file transfer parameter Transmit message, make the control procedure of file transfer and document transmission process to be separated, so that when transfer files, can select corresponding server transfer files according to the load capacity of Ftp server, to guarantee the stability of file transfer.
In technique scheme, preferably, the step of the file that another server sends according to described transformation parameter described in described reception is specially: receive a plurality of divided files that obtain after described another server sends described file is cut apart; Described a plurality of divided files are merged, with the file after being merged.
In this technical scheme, for the ease of the transmission to large file, server can be that a plurality of parts are transmitted by large file division when sending large file, thereby be conducive to the transmission to large file, therefore, when terminal receives a plurality of file after file is cut apart, need to merge a plurality of files, to guarantee to receive the integrality of file.Specifically, server is when sending a plurality of divided file, can send successively, so terminal file that reception server sends successively, and the efficiency sending in order to improve file, server also can send simultaneously, i.e. parallel transmission, therefore terminal also can receive simultaneously, i.e. parallel receive.
In technique scheme, preferably, also comprise: the file after described merging is carried out to decompress(ion), to obtain described file.
In this technical scheme, the total bandwidth taking when sending in order to reduce file, the time sending to reduce file, server, when Transmit message, can compress file, therefore, terminal, after receiving file, need to be carried out decompress(ion) to file, to obtain the file of the original transmission of server.
In technique scheme, preferably, described described a plurality of divided files are merged before, described a plurality of divided files are decrypted.
In this technical scheme, for fear of file, in transmitting procedure, by rogue program, distorted, guarantee the integrality of file, therefore, server, when Transmit message, can be encrypted file, and therefore, terminal, after receiving file, need to be decrypted file.Specifically, in order to improve the encryption and decryption speed of system, can adopt Message Digest 5 to be encrypted each divided file, terminal, after receiving a plurality of divided files, is verified the integrality of each divided file.If server before to file division, has also adopted Message Digest 5 to be encrypted to whole file, terminal, by after a plurality of Piece file mergences, also needs the completing property of whole file to verify.
Fig. 8 shows the schematic block diagram of document transmission system according to another embodiment of the invention.
As shown in Figure 8, document transmission system 800 according to another embodiment of the invention, comprising:
Transmission Control Server 802, being used for terminal (can be the terminal 808 shown in Fig. 8, terminal 810 and terminal 812) carry out the negotiation of transmission control parameters, wherein terminal can be transmitting terminal or receiving terminal, controls parameter can be: file total page number, transmitting time, re-transmission mark, file size, compress mode, filename, transmission means and data transmission link number etc.
Ftp server 804, for carrying out transfer of data with terminal (can be the terminal 808 shown in Fig. 8, terminal 810 and terminal 812).
When transfer files, terminal first connects with transmission Control Server 802, and file transfer parameter is sent to transmission Control Server 802, so that the transformation parameter that transmission Control Server 802 sends according to terminal selects corresponding Ftp server 804 to connect with terminal, Ftp server 804 is sent to terminal according to transformation parameter by file.
By transmission is controlled and separated with document transmission process, improved the efficiency of file transfer, guaranteed the stability of file transfer.
Fig. 9 shows the schematic block diagram of document transmission system according to still another embodiment of the invention.
As shown in Figure 9, document transmission system according to still another embodiment of the invention, comprising:
Transmitting terminal 902, wherein transmitting terminal 902 comprises:
Compressing file module 902E, for before file transfer, file being compressed, to reach the transmission quantity that reduces data.
File division module 902D, for cutting apart the file after compression before file transfer.
Fragment data queue 902C, for realizing depositing of all data fragmentations, so that file transfer control and management facilitates the transmission of multithreading, multilink, and breakpoint transmission.Each burst has a controll block, can comprise following parameter: current burst number, current burst size, current fragment data content and MD5(Message Digest Algorithm MD5, Message Digest Algorithm 5) data message summary.
Data transmission module 902B, transmits data for realizing, and comprises TCP/UDP mode, by the transmission means decision of transmission control module 902A, uses concrete transmission link.
Transmission control module 902A, controls file transfer for realizing, and belongs to signaling control section, is independent of data transmission module 902B, can control more quickly and efficiently transmitting data file.Each file transfer has a transmit control block, can comprise following parameter: file total page number, recipient's list, transmitting time, re-transmission mark, file size, compress mode, filename, transmission means and data transmission link number etc.Transmission control module 902A is sent to server 906 by parameter, for server 906, confirms, after confirming, sends data to server 906.
Server 906 comprises:
Transmission control module 9062, for terminal (comprising transmitting terminal 902 and receiving terminal 904) negotiate transmission parameters.
Data transmission module 9064, receives for the transformation parameter after consulting according to transmission control module 9064 data that transmitting terminal 902 sends, and sends data to receiving terminal 904.
Receiving terminal 904 comprises:
Transmission control module 904A, receives and controls file for realizing, and belongs to signaling control section, is independent of data transmission module 904B, can control more quickly and efficiently data file and receive.
Data transmission module 904B, receives for the data that server 906 is sent, and comprises TCP/UDP mode with the communication mode of server 906, by the transmission means decision of transmission control module 904A, uses concrete transmission link.
Fragment data queue 904C, for realizing depositing of all data fragmentations, so that file transfer control and management facilitates the transmission of multithreading, multilink, and breakpoint transmission.
Piece file mergence module 904D merges slicing files after receiving at file.
File decompression module 904E, carries out decompress(ion) for the file after being combined.
Figure 10 shows the schematic flow diagram of file process of transmitting according to an embodiment of the invention.
As shown in figure 10, file process of transmitting according to an embodiment of the invention, comprising:
Figure 11 shows the schematic flow diagram of file receiving course according to an embodiment of the invention.
As shown in figure 11, file receiving course according to an embodiment of the invention, comprising:
More than be described with reference to the accompanying drawings technical scheme of the present invention, considered in correlation technique, more when the file terminal large and that receive of transmission, single service platform is difficult to bear load, is unfavorable for transfer of data and transmits controlling.Therefore, the present invention proposes a kind of new file transfer technology, can improve the efficiency of file transfer, strengthen the stability of file transfer.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.
Claims (12)
1. a server, is characterized in that, comprising:
Interactive unit, for connecting with terminal, and the file transfer parameter that sends of receiving terminal, and is sent to given server by described file transfer parameter so that described given server according to described transformation parameter to described terminal Transmit message.
2. server according to claim 1, is characterized in that:
Described interactive unit also for: connect with at least one server;
Described server also comprises:
Control unit, for according to the operating state of described at least one server, selects described given server.
3. a server, is characterized in that, comprising:
Interactive unit, for connecting with another server, and receives the file transfer parameter of carrying out self terminal that described another server forwards, and
According to the file in described file transfer parameter, to described terminal Transmit message.
4. server according to claim 3, is characterized in that, also comprises:
Processing unit, for the processing mode to described file according to described file transfer parameter, processes described file, with the file after being processed;
Described interactive unit also for: the file after described processing is sent to described terminal.
5. server according to claim 4, is characterized in that, described processing unit comprises:
Cutting unit, for described file is cut apart, to obtain a plurality of divided files;
Ciphering unit, is encrypted for each divided file to described a plurality of divided files;
Described interactive unit also for: described a plurality of divided files are sent to described terminal.
6. a terminal, is characterized in that, comprising:
Interactive unit, for connecting with server, and is sent to described server by file transfer parameter, so that described server is forwarded to another server by described file transfer parameter, and
Connect with described another server, and receive the file that described another server sends according to described transformation parameter.
7. terminal according to claim 6, is characterized in that, described interactive unit specifically for: receive a plurality of divided files that described another server sends;
Described terminal also comprises:
Decryption unit, is decrypted for each divided file to described a plurality of divided files;
Merge cells, for a plurality of divided files after described decryption unit deciphering are merged, to obtain described file.
8. a document transmission method, is characterized in that, comprising:
Connect with terminal;
The file transfer parameter that receiving terminal sends;
Described file transfer parameter is sent to given server so that described given server according to described transformation parameter to described terminal Transmit message.
9. a document transmission method, is characterized in that, comprising:
Connect with another server;
Receive the file transfer parameter of carrying out self terminal that described another server forwards;
According to the file in described file transfer parameter, to described terminal Transmit message.
10. document transmission method according to claim 9, is characterized in that, described, according to the file in described file transfer parameter, before described terminal Transmit message, also comprises:
According to the processing mode to described file in described file transfer parameter, described file is cut apart, to obtain a plurality of divided files, and each divided file in described a plurality of divided files is encrypted.
11. 1 kinds of document transmission methods, is characterized in that, comprising:
Connect with server;
File transfer parameter is sent to described server, so that described server is forwarded to another server by described file transfer parameter;
Receive the file that described another server sends according to described transformation parameter.
12. document transmission methods according to claim 11, is characterized in that, the step of the file that another server sends according to described transformation parameter described in described reception is specially:
Receive a plurality of divided files that described another server sends;
Each divided file in described a plurality of divided files is decrypted;
A plurality of divided files after deciphering are merged, to obtain described file.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310732537.2A CN103701897A (en) | 2013-12-18 | 2013-12-18 | Server, terminal and file transmission method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310732537.2A CN103701897A (en) | 2013-12-18 | 2013-12-18 | Server, terminal and file transmission method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103701897A true CN103701897A (en) | 2014-04-02 |
Family
ID=50363291
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310732537.2A Pending CN103701897A (en) | 2013-12-18 | 2013-12-18 | Server, terminal and file transmission method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103701897A (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104580158A (en) * | 2014-12-12 | 2015-04-29 | 集时通(福建)信息科技有限公司 | Distributed platform file and content distribution method and distributed platform file and content distribution system |
CN105791245A (en) * | 2014-12-26 | 2016-07-20 | 北京航天测控技术有限公司 | Data sending and receiving method and device |
CN105872042A (en) * | 2016-03-29 | 2016-08-17 | 国家电网公司 | Double-side accelerating system based on HTTP protocol |
CN108769274A (en) * | 2018-08-27 | 2018-11-06 | 优视科技新加坡有限公司 | A kind of dialog mode document transmission method, device and equipment/terminal/server |
CN108769052A (en) * | 2018-06-12 | 2018-11-06 | 北斗巡星信息科技有限公司 | Wrist strap transmits the encrypted method and device of information |
CN109831506A (en) * | 2019-01-31 | 2019-05-31 | 百度在线网络技术(北京)有限公司 | File uploading method, device, terminal, server and readable storage medium storing program for executing |
CN110417922A (en) * | 2019-09-11 | 2019-11-05 | 北京搜狐新动力信息技术有限公司 | A kind of data transmission method, apparatus and system |
CN112511507A (en) * | 2020-11-17 | 2021-03-16 | 武汉默联股份有限公司 | Data processing device and data processing method |
CN114422247A (en) * | 2022-01-20 | 2022-04-29 | 零氪科技(北京)有限公司 | Data transmission method and device, electronic equipment and storage medium |
CN114996747A (en) * | 2022-08-03 | 2022-09-02 | 中科雨辰科技有限公司 | Method and system for off-line playing of encrypted file |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2010041469A1 (en) * | 2008-10-09 | 2010-04-15 | 日本電気株式会社 | Content distribution system, content distribution method, and computer program |
CN101867567A (en) * | 2010-04-16 | 2010-10-20 | 中山大学 | Multimedia release and management system applied to digital television |
CN102014301A (en) * | 2010-11-26 | 2011-04-13 | 优视科技有限公司 | Video playing method, system and server |
CN102148813A (en) * | 2010-09-30 | 2011-08-10 | 华为技术有限公司 | Media content transmission method and system |
CN102201924A (en) * | 2011-07-07 | 2011-09-28 | 无锡智感星际科技有限公司 | Method for distributing file based on RDS unidirectional broadcast channel |
-
2013
- 2013-12-18 CN CN201310732537.2A patent/CN103701897A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2010041469A1 (en) * | 2008-10-09 | 2010-04-15 | 日本電気株式会社 | Content distribution system, content distribution method, and computer program |
CN101867567A (en) * | 2010-04-16 | 2010-10-20 | 中山大学 | Multimedia release and management system applied to digital television |
CN102148813A (en) * | 2010-09-30 | 2011-08-10 | 华为技术有限公司 | Media content transmission method and system |
CN102014301A (en) * | 2010-11-26 | 2011-04-13 | 优视科技有限公司 | Video playing method, system and server |
CN102201924A (en) * | 2011-07-07 | 2011-09-28 | 无锡智感星际科技有限公司 | Method for distributing file based on RDS unidirectional broadcast channel |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104580158A (en) * | 2014-12-12 | 2015-04-29 | 集时通(福建)信息科技有限公司 | Distributed platform file and content distribution method and distributed platform file and content distribution system |
CN105791245B (en) * | 2014-12-26 | 2019-09-03 | 北京航天测控技术有限公司 | A kind of data sending, receiving method and device |
CN105791245A (en) * | 2014-12-26 | 2016-07-20 | 北京航天测控技术有限公司 | Data sending and receiving method and device |
CN105872042A (en) * | 2016-03-29 | 2016-08-17 | 国家电网公司 | Double-side accelerating system based on HTTP protocol |
CN108769052A (en) * | 2018-06-12 | 2018-11-06 | 北斗巡星信息科技有限公司 | Wrist strap transmits the encrypted method and device of information |
CN108769274A (en) * | 2018-08-27 | 2018-11-06 | 优视科技新加坡有限公司 | A kind of dialog mode document transmission method, device and equipment/terminal/server |
CN108769274B (en) * | 2018-08-27 | 2021-12-24 | 优视科技新加坡有限公司 | Conversational file transmission method and device, and equipment/terminal/server |
CN109831506A (en) * | 2019-01-31 | 2019-05-31 | 百度在线网络技术(北京)有限公司 | File uploading method, device, terminal, server and readable storage medium storing program for executing |
CN110417922A (en) * | 2019-09-11 | 2019-11-05 | 北京搜狐新动力信息技术有限公司 | A kind of data transmission method, apparatus and system |
CN112511507A (en) * | 2020-11-17 | 2021-03-16 | 武汉默联股份有限公司 | Data processing device and data processing method |
CN114422247A (en) * | 2022-01-20 | 2022-04-29 | 零氪科技(北京)有限公司 | Data transmission method and device, electronic equipment and storage medium |
CN114996747A (en) * | 2022-08-03 | 2022-09-02 | 中科雨辰科技有限公司 | Method and system for off-line playing of encrypted file |
CN114996747B (en) * | 2022-08-03 | 2022-10-04 | 中科雨辰科技有限公司 | Method and system for off-line playing of encrypted file |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103701897A (en) | Server, terminal and file transmission method | |
JP7029471B2 (en) | Uplink data decompression, compression method and equipment | |
CN101179393A (en) | Method and system for implementing document breakpoint transmission | |
KR101921015B1 (en) | Method for delivering data packets within a data communication system | |
CN102510409A (en) | Method and system for quickly and remotely updating program of mobile terminal by using wireless network | |
CN103024081B (en) | Be applicable to the terminal scheduling method of the point-to-point communication of effective guarantee communication system | |
TWI531919B (en) | System of document transceiving, device of document transceiving and method thereof | |
CN104378422A (en) | Mobile terminal and file transmission method and system thereof | |
CN104580158A (en) | Distributed platform file and content distribution method and distributed platform file and content distribution system | |
CN112615899A (en) | Large file transmission method, device and system | |
CN104901849A (en) | Internet behavior data collection method and system therefor | |
CN113328783B (en) | Data transmission method and device in heaven-earth integrated information network and storage medium | |
CN101197773B (en) | Packet compressed transmitting and received de-compression method and system based on multilink | |
CN103581683A (en) | Jpeg image encryption transmission method | |
CN102025515A (en) | File directory based file transmission method, device and system | |
CN105743951A (en) | Data sending method and apparatus and data receiving method and apparatus | |
CN102447606A (en) | Data transmission flow control method and device | |
EP2560319A1 (en) | Method, apparatus and system for data encryption transmission in m2m | |
CN105354505A (en) | Image adaption method and electronic device | |
CN100452656C (en) | Arrangement for application message decompression | |
CN115567201B (en) | Self-adaptive terminal quantum encryption and decryption method and system thereof | |
CN112788129A (en) | Engineering machinery vehicle remote upgrading system and method | |
CN114499990A (en) | Vehicle control method, device, equipment and storage medium | |
CN104869174A (en) | File transmission method based on third party message-oriented middle-ware | |
US20090185581A1 (en) | Network message transformation device and methods thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20140402 |
|
RJ01 | Rejection of invention patent application after publication |