WO2008113296A1 - A method, a device and a system for delivering files - Google Patents

A method, a device and a system for delivering files Download PDF

Info

Publication number
WO2008113296A1
WO2008113296A1 PCT/CN2008/070524 CN2008070524W WO2008113296A1 WO 2008113296 A1 WO2008113296 A1 WO 2008113296A1 CN 2008070524 W CN2008070524 W CN 2008070524W WO 2008113296 A1 WO2008113296 A1 WO 2008113296A1
Authority
WO
WIPO (PCT)
Prior art keywords
file
unit
email address
sending
segment
Prior art date
Application number
PCT/CN2008/070524
Other languages
French (fr)
Chinese (zh)
Inventor
Binglin Liu
Yong Cheng
Original Assignee
Chongqing Yeahto Information Technology Co., Ltd.
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chongqing Yeahto Information Technology Co., Ltd. filed Critical Chongqing Yeahto Information Technology Co., Ltd.
Publication of WO2008113296A1 publication Critical patent/WO2008113296A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]

Definitions

  • the present invention relates to the field of file transmission, and more particularly to a method, apparatus and system for combining mail technology and instant messaging technology for transferring files.
  • Figure 1 is a schematic diagram of a widely used principle for transferring files using Email.
  • the user 11 sends a file to the user 14, first, the user 11 uploads the file to be sent to the outgoing mail server 12 (eg, SMTP) used by the user; then, the sending mail server 12 forwards the file and mail information to the user.
  • the receiving mail server 13 e.g., POP3 14; Finally, the file 14 is downloaded from the receiving mail server 13 by the user 14 to complete the file transfer.
  • the user cannot receive the mail normally due to the transmission failure, such as a network communication failure, an abnormality of the receiving mail server, etc., because in the prior art, the user cannot know the abnormal situation in time, and thus cannot Respond to the exception in a timely manner.
  • the user 14 can only be in a waiting state before the process of transmitting the file to the receiving mail server 13 by the mail server 12.
  • the user 14 must periodically check with the server for new mail, and the receiving process can be started after the sending process is completely finished.
  • a large number of invalid query requests not only occupy the user computer and network resources, but also Increased the load on the mail server and reduced its processing performance.
  • the object of the present invention is to solve the problem that the receiving end cannot know the transmission status of the file in time when the file is transmitted by using the mail in the prior art, and further, the problem that the transmission abnormality cannot be timely and the file cannot be obtained in time can be obtained.
  • the present invention discloses a file transmission method, comprising the steps of: determining a destination email address for transmitting a target file; and transmitting the target file to the destination email address; Sending an instant message to the receiving end by using an instant message, the instant message includes a control instruction for receiving the target file; if the receiving end receives the instant message including the control instruction, obtaining a corresponding target file from the destination email address .
  • the sending the target file to the destination email address comprises: dividing the target file into a plurality of file segments according to a preset rule; sending the file segment to the destination email address; and the receiving end is from the destination
  • the mail address obtaining target file includes: determining whether an instant message including the control instruction is received, and if received, obtaining a file segment from the destination email address; and combining the obtained file segments into a target file.
  • the instant message sent by the instant messaging to the receiving end is performed after the one or more file segments are sent to the destination email address.
  • the file transmission method may further include: sending, by using an instant messaging, the file segment as an instant message to the receiving end; the receiving end acquiring the file segment from the instant message; the receiving end obtaining the segment and the File segmentation obtained in instant messaging.
  • the sending the file segment as an instant message to the receiving end comprises: determining a current transmission rate of the instant messaging, and if the value is greater than a predetermined threshold, sending the file segment as an instant message to the receiving end.
  • the method before sending the file segment to the destination email address, the method further includes: determining a starting email address; and sending the file segment to the destination email address by using the starting email address to segment the file Send to the destination email address.
  • the starting email address and/or the destination email address are obtained by using instant messaging.
  • the instant message sent to the receiving end further includes a destination email address where the file segment is located; and the destination email address used by the receiving end to obtain the file segment is obtained from the instant message.
  • the starting email address and/or the destination email address are selected according to a predetermined rule from a preset email address list.
  • the number of the starting email addresses is multiple; the sending the file segment to the destination email address by using the starting email address is implemented by: segmenting the plurality of files by different starting The email address is concurrently transmitted to the destination email address.
  • the number of the destination email addresses is multiple, and the sending the file segments to the destination email address is implemented by: segmenting the plurality of files by using the initial email address and transmitting the corresponding email addresses to the corresponding multiple addresses. Destination email address.
  • the file transfer method may further include:: the multiple start email addresses and/or Or the destination email address is set to the preferred level according to the transmission speed; the file segment is sent by selecting the starting email address and/or the destination email address with a higher priority.
  • the file transmission method may further include: the receiving end verifies the obtained file segment and/or the merged target file, and if the verification fails, sending an instant message of the transmission failure to the sending end, the instant The message includes control instructions for resending the file segment and/or the object file; if the sender receives the control command, resending the corresponding file segment or object file.
  • a file transmission apparatus including a transmitting module and a receiving module located in different computing devices.
  • the sending module includes: a first instant messaging unit, configured to send and/or receive an instant message; a destination email address determining unit, configured to determine a destination email address of the sending target file; and an object file sending unit, configured to send the target file And the destination email address; the sending control unit is configured to control the target file sending unit to send the target file, and notify the first instant messaging unit to send the instant message, where the instant message includes a control instruction for receiving the target file;
  • the receiving module includes: a second instant messaging unit, configured to send and/or receive an instant message; an object file obtaining unit, configured to acquire a target file from the destination email address; and an acquiring control unit, configured to determine whether the second instant messaging unit is An instant message containing the control command of the receiving target file is received, and if received, the target file obtaining unit is notified to acquire the target file.
  • the target file sending unit further includes: a file dividing unit, configured to divide the target file into a plurality of file segments according to a preset rule; and a file segment sending unit, configured to distribute the file to the destination email address;
  • the sending control unit further includes: a file segment sending control unit, configured to control the file segment sending unit to send the file segment, and notify the first instant messaging unit to send an instant message, where the instant message includes a file segment for receiving the file segment Control instruction;
  • the target file obtaining unit further includes: a file segment obtaining unit, configured to obtain a file segment from the destination email address; and a file segment combining unit configured to combine the obtained file segments into the target file;
  • the obtaining control unit further includes: a file segment obtaining control unit, configured to determine whether the second instant messaging unit receives the instant message including the received file segmentation control instruction, and if received, the notification file segment obtaining unit acquires the file Segmentation.
  • the file segmentation sending control unit notifies the first instant messaging unit to send the instant message after the file segment sending unit sends one or more file segments to the destination email address. get on.
  • the target file sending unit further includes an instant file sending unit, configured to send an instant message including the file segment by using the first instant messaging unit;
  • the target file acquiring unit further includes an instant file receiving unit, configured to The file segment acquired by the instant message segment segment obtaining unit including the file segment received by the instant messaging unit and the file segment obtained by the instant file receiving unit.
  • the target file sending unit further includes: a rate comparing unit, configured to compare a transmission rate of the current first instant messaging unit, and if the value is greater than a predetermined threshold, notify the immediate file sending unit to send the file segment.
  • a rate comparing unit configured to compare a transmission rate of the current first instant messaging unit, and if the value is greater than a predetermined threshold, notify the immediate file sending unit to send the file segment.
  • the sending module further includes a start email address determining unit, configured to determine a starting email address.
  • the destination email address determining unit obtains the destination email address by using the instant message of the first instant messaging unit, and the starting email determining unit obtains the starting email address by using the instant message of the second instant messaging unit.
  • the instant message sent by the first instant messaging unit further includes the destination email address information of the file segment; the destination email address used by the file segment obtaining unit to obtain the file segment is from the instant message. Obtain.
  • the device may further include: a storage unit, configured to store a preset email address list; the destination address determining unit further includes a destination email address selection unit, configured to use the email address list of the storage unit according to a predetermined rule Selecting a destination email address; the initial email address determining unit further includes a starting email address selecting unit for selecting a starting email address from a list of email addresses of the storage unit according to a predetermined rule.
  • a storage unit configured to store a preset email address list
  • the destination address determining unit further includes a destination email address selection unit, configured to use the email address list of the storage unit according to a predetermined rule Selecting a destination email address
  • the initial email address determining unit further includes a starting email address selecting unit for selecting a starting email address from a list of email addresses of the storage unit according to a predetermined rule.
  • the sending control unit further includes: a first concurrency control unit, configured to control the file segment sending unit to concurrently transmit the plurality of file segments to the destination e-mail address through different initiating e-mail addresses.
  • a first concurrency control unit configured to control the file segment sending unit to concurrently transmit the plurality of file segments to the destination e-mail address through different initiating e-mail addresses.
  • the sending control unit further includes: a second concurrency control unit, configured to control the file segment sending unit to concurrently transmit the plurality of file segments to the plurality of destination e-mail addresses through different starting e-mail addresses.
  • a second concurrency control unit configured to control the file segment sending unit to concurrently transmit the plurality of file segments to the plurality of destination e-mail addresses through different starting e-mail addresses.
  • the sending module further includes a mail address preference unit, configured to set a priority according to a transmission speed of the start email address and/or the destination email address; and the file segment sending unit according to the mail The high priority mail address selected by the piece address preference unit sends a file segment.
  • a mail address preference unit configured to set a priority according to a transmission speed of the start email address and/or the destination email address
  • the receiving module further includes a checking unit, configured to check the received file segment or the merged target file, and if the verification fails, send an instant message of the failed transmission through the second instant messaging unit;
  • the control unit further includes a retransmission control unit, configured to determine whether the first instant messaging unit receives the instant message of the transmission failure, and if received, notify the file segment sending unit to send the corresponding file segment.
  • the invention also discloses a file transfer system using the device of claim 14, comprising: a mail server, an instant message server, a start client and a destination client,
  • the initial client includes an initial sending module, where the initial sending module includes: a first instant messaging unit, configured to send and/or receive an instant message; a destination email address determining unit, configured to determine a destination email for sending the target file An address file sending unit, configured to send the target file to the destination email address, a sending control unit, configured to control the target file sending unit to send the target file, and notify the first instant messaging unit to send the instant message, the instant message Including a control instruction for receiving an object file;
  • the destination client includes a destination receiving module, where the destination receiving module includes: a second instant messaging unit, configured to send and/or receive an instant message; an object file obtaining unit, configured to acquire a target file from the destination email address; And determining, by the second instant messaging unit, an instant message that includes the control instruction, and if received, notifying the target file obtaining unit to acquire the target file.
  • the destination receiving module includes: a second instant messaging unit, configured to send and/or receive an instant message; an object file obtaining unit, configured to acquire a target file from the destination email address; And determining, by the second instant messaging unit, an instant message that includes the control instruction, and if received, notifying the target file obtaining unit to acquire the target file.
  • the present invention has the following advantages:
  • the invention sends a control instruction for receiving a file to the receiving end by using instant messaging while sending the file by using the instant mail, and the receiving end can acquire the file in time after the file transfer is completed. Since the instant messaging control command or notification message is used, the receiving end can know the transmission status of the file at any time. For example, if the receiving end receives the instant message that the file has been sent, if the receiving end has not received the mail after the predetermined delay period expires, the mail transmission process may be considered abnormal, and the abnormal information may be timely communicated through instant messaging. Feedback to the sender, the sender can also respond and process accordingly, ensuring the reliability of file transfer.
  • the receiving end initiates the receiving process according to the received instant message notification, which avoids the waste waiting time in the prior art when the receiving end does not know when the mail is delivered, and does not need the receiving end to continuously try before the mail can be received.
  • the connection with the mail server effectively reduces the burden of unnecessary network communication.
  • the present invention divides the file to be sent into multiple file segments, and after sending a file segment to the email address, sends an instant message to the file receiving end to receive the file segment, thereby realizing file sending and receiving. Synchronization processing, can only start receiving after the traditional entire file is sent. Compared with the mail transmission scheme, the delay between transmission and delivery is small, and the total transmission time is significantly shortened.
  • user a sends a 10M file to user b.
  • user a's sending email address is a@serverl.com
  • user b's receiving email address is b@server2.com, sending and receiving data.
  • the speed is 1M/1 minute
  • the forwarding delay between server1 and server2 is fixed at 1 minute.
  • user a sends 10 minutes to serverl.com through the email account. After one minute delay, user b's email account.
  • the reception can be started. After 10 minutes, the whole transmission process takes 21 minutes. If the mail receiving end is not received in time, the total transmission process will take longer.
  • the file is divided into 10 segments for transmission, and each time a segment is transmitted, the b is notified to start receiving. It is assumed that only one segment can be transmitted at the same time by using the same account (many mail servers limit the same user to multiple servers simultaneously) Connection), then it takes 1 minute to transfer the first segment. After one minute delay, b can start receiving. After 1 minute, the reception is completed.
  • the transmission time of completing 1 segment of the file is 3 minutes, and a is sent after the first segment is sent. Then send the second paragraph, similarly, after 1 minute delay, b starts to receive the second segment, and so on until the last segment is sent and received.
  • the time taken after the accepted file combination process can be ignored, the total time is In 12 minutes, it is 80% more efficient than traditional technology.
  • a uses multiple accounts to transfer files to b at the same time (assuming that the transfer speed of each account is equal and only limited by the bandwidth allocated by the mail server and not limited by the bandwidth of the connection between the user's computer and its network service provider), for example
  • Each segment is transmitted with one account, and the file divided into 10 segments can be completely transferred within 1 minute. After 1 minute delay, b can start receiving.
  • a well-known point-to-point (P2P) transmission technology such as BT, requires high-speed file transfer.
  • a prerequisite is that there are multiple copies (all or part of the same) of the same resource on the network, and the more computers it distributes, the achievable transmission.
  • the faster the speed it is well known that this technology has a large number of trial connections and the effective speed of each connection is much larger than the bandwidth occupied by it.
  • the network communication bandwidth resource waste is Very serious, has begun to be limited by many operators; and existing instant messaging technology to achieve high-speed file transfer, the need to further expand the bandwidth available for client connections, which means increased investment.
  • the invention fully utilizes the user's existing mailbox resources and instant communication tools, and realizes high-speed transmission of files with almost no additional cost. More reliable.
  • the sending end After the sending end completes the sending of a file segment, it checks whether the file segment transmission is successful according to the instant message fed back by the receiving end, and if it fails, resends the file segment, thereby avoiding the process of using the mail to transfer the file in the prior art. If the transmission failure occurs in any part of the file transmission process, the entire file must be resent, which improves the reliability of file transmission and reduces the cost and resources required to handle file transmission abnormalities. In addition, the file is sent by mail. At the same time of segmentation, the file segment can be sent by sending an instant message, and the file segmentation failure of the mail transmission can be immediately remedied, further ensuring the reliability of the file transmission.
  • FIG. 1 is a schematic diagram of a principle of transmitting a file by using an email in the prior art
  • Figure 2 is a flow chart showing the steps of Embodiment 2 of the file transfer method based on the present invention
  • FIG. 3a and 3b are flowcharts showing the steps of Embodiment 4 of the file transmission method of the present invention.
  • FIG. 4 is a structural block diagram of an embodiment of a file transmission apparatus according to the present invention.
  • Figure 5 is a block diagram showing the system configuration of an embodiment of the file transfer system according to the present invention.
  • the instant messaging referred to in the present invention includes technologies such as Microsoft MSN, Windows Live Messenger, Tencent QQ, Yahoo Messenger, etc., which enable people to identify online users and exchange messages with them in real time, and also to complete specialization among users.
  • a system for real-time information exchange the system includes at least one server and a plurality of clients, and the client and the server maintain a connection, and each client can establish a direct connection, a mutual message, or a real-time forwarding through a server through scheduling of the server. Other clients send messages.
  • the instant message according to the present invention refers to real-time interaction content between each client and the client and the server, including information displayed to the client of the client in a plain-readable form, and also includes between clients and clients.
  • Some control commands transmitted between the server and the server, the control commands include action instructions, state feedback information, parameters required to execute the action instructions, and may also include various file transfer states, such as the total number of segments of the file, file segmentation Checksum, whether all file segments have been transferred, etc., this information can coordinate the actions of the receiving end and the sending end, and is often invisible to the user.
  • the receiving end receives the instant message including the control instruction
  • the destination mail related information such as the destination email address and its login account information, file segmentation parameter, and file
  • Verify the data, etc. so that the target file can be successfully obtained from the destination email address, and Now the user is greatly facilitated by the user, and the efficiency of text transmission is improved.
  • sending a file by the initial mail address means that the file sending operation is performed after logging in to the mail server corresponding to the initial mail address by using the login account corresponding to the initial mail address, which is described in the present invention.
  • Obtaining the file "or" from the mail address to obtain the mail” means that the mailing account corresponding to the mail address is used to log in to the corresponding mail server and then perform the receiving operation.
  • Embodiment 1 of the present invention discloses a file transmission method, including: determining a destination email address for transmitting a target file; transmitting an object file to be transmitted to the destination email address, and then transmitting an instant message to the receiving end by using an instant messaging
  • the instant message includes a control instruction for receiving the target file; if the receiving end receives the control instruction, the target file is obtained from the destination email address.
  • the transmitting and receiving sides of the file establish a communication connection using a communication terminal having both an instant messaging function and a mail transmitting and receiving function.
  • the destination email address is the email address used by the receiving end to obtain the target file, which may be the sender's address, or the recipient's or third party email address. For example, if the sender's email address is selected as the destination email address, the sender only needs to transfer the target file to the server where the email address is located, and the receiving end directly uses the login account corresponding to the sender's email address to log in to the email address.
  • the mail server obtains the target file, and since the process of transferring the mail between different mail servers is omitted, the time taken for the file segment to be sent from the transmission to the reception is reduced, and the time taken for the entire file transfer is also greatly reduced.
  • the target file can be sent to the destination email address as part of the email in a standard email format that can be downloaded directly through a common protocol.
  • the object file may be stored in a predetermined format at any position in the storage space to which the destination email address belongs, for example, in a draft format, as long as the receiving end can obtain the mail content from the destination email address in accordance with the predetermined format.
  • the essence is to transfer the target file locally from the user's client to the mail server, and then download the target file from the server to the receiving end without forwarding between the mail servers.
  • the destination email address and account information may be stored locally on the sender and/or the recipient's communication terminal, or may be stored on the server as a user profile, such as an instant messaging server. In this way, the transmitting and receiving parties can conveniently obtain the available shared email address and its account information from the local or the network for file transmission, thereby improving the efficiency of using the email account, and the encryption and authorization can be implemented through specific implementation.
  • the form of power increases security.
  • the stored email address and the account information corresponding to each user may be one or more. If there are multiple, the email address list may be established and stored, and the email address list is sent when the file is sent. Select the desired email address as the destination email address for this transfer.
  • the receiving party obtains the email account information by using instant messaging: For example, if the email address of the receiving end is used as the destination email address when transmitting the file, the communication terminal used by the receiving terminal selects an email address from the list of locally stored email addresses. The instant messaging is sent to the sending end in a certain format, and the sending end automatically sets it as the destination email address after receiving the information.
  • the information transmitted by using the instant messaging may be encrypted.
  • the transmission speed information corresponding to each destination mail address can be simultaneously stored.
  • the transmission speed information may be set in advance or may be recorded and set during previous transmissions. In this way, the priority can be set according to the transmission speed of the email address, and then the address with the higher priority is selected as the destination email address used for the transmission.
  • the target file is first divided into a plurality of file segments according to a preset rule, and then the file segment is sent to the file segment.
  • the destination email address, and the instant messaging is used to send an instant message containing the instruction for receiving the file segmentation control to the receiving end; if the receiving terminal receives the control command, the file segment is obtained from the destination email address, and the file segment is merged into Target file.
  • Step 201 The target file to be sent is divided into a plurality of file segments according to a preset rule.
  • the size of the file segment can be set according to preset rules. For example, it can be set to 500k or 700k bytes. For files smaller than this set size, you can directly Sending files larger than this setting can be divided into multiple file segments first. Each file segment may need to be attached with some additional information (such as the total number of file segments, the serial number of the segment, etc.); It can also be selected according to the effective capacity of the destination email address. For example, it can be set to 1/10 of the effective capacity of the mailbox, or 1/5 of the remaining space, etc., so as to prevent the transmission failure due to insufficient remaining space of the mailbox.
  • Step 202 Determine a destination email address to be used for the file transfer.
  • step 203 a file segment is sent as an email to the destination email address.
  • the file segmentation In the process of transmitting a file segmentation to a destination email address, it is a preferred method of the present invention to send the file segment as a mail to the destination email address.
  • the file segmentation can also be sent to the destination email address in a predetermined format as described in Embodiment 1.
  • the file segment When sent, the file segment can be sent as an attachment or body of the message.
  • the order in which the file segments are sent may be sent according to the sequence number of the file segment, or may not be sent in the order of the sequence numbers. Whether the transmission according to the serial number does not affect the reception of the receiving end, the receiving end can judge the serial number of the received segment according to the mail or the file segment and the instant message mentioned below, and after all the file segments are received, the assembly is completed. Merge files.
  • Step 204 Send an instant message to the receiving end, where the instant message includes a control instruction for receiving the file segment.
  • the instant message sent to the receiving end includes a control instruction for receiving the file segment, the control instruction can be set according to a format agreed by both parties, and the execution of the control instruction can be completely completed inside the computer without being displayed to the user or The user's participation is required. Of course, if necessary, the execution of the instructions can also be integrated into the user's interaction, such as the confirmation of the user.
  • the instant message may further include the total number of segments of the file segment, the identification information of each file segment, the destination email address information of the file segment, and the like, and the email address information may only be as needed. Including the email address, and may also include account information of the email address, such as a mail server, a login user name, a password, etc. Similarly, the information of the normal reorganization of the help file segments may be attached to a specific part of the mail for transmission: for example, attached The subject, body, attachments, etc. are optional.
  • the destination mail address information needs to be sent to the receiving end in an instant message can be determined by a person skilled in the art at the time of implementing the present invention, and the present invention is not limited thereto.
  • the sender's email address is used as the destination email address
  • the destination email address information can be included in the instant message so that the receiver can know where to receive it, and the receiver can successfully log in to the mail server to complete the email reception.
  • the destination email address information should include corresponding login account information.
  • each file segment is sent to the same destination email address, the information can only be sent once; if each file segment may use a different destination email address, it can be sent to the receiving party each time. Contains the destination email address information.
  • the receiving parties have established a trust relationship, the agreed email address can be selected according to the predetermined principle, so that the destination email address information does not need to be sent.
  • the file segment can be encrypted and sent to improve security during transmission.
  • Step 205 The receiving end receives the instant message, and obtains the file from the destination email address. Paragraph.
  • the file segmentation from the destination email address may be processed according to a preset rule, such as specifying that the file segment is located in the body of the email or the email attachment, and the sender may also attach a rule for extracting the file segment in the sent instant message. .
  • a preset rule such as specifying that the file segment is located in the body of the email or the email attachment
  • the sender may also attach a rule for extracting the file segment in the sent instant message. .
  • to get a file segment from the destination email address follow these steps: First, download the message from the destination email address to the local, and then extract the corresponding file segment from the message or attachment.
  • Step 206 steps 203 through 205 are repeated until all file segments are sent and retrieved.
  • Step 207 Combine the received file segments into a target file. For example, the resulting file segments are combined into a target file based on their identification information.
  • determining the destination email address can be done either before splitting the file or after splitting the file.
  • Embodiment 3 of the file transfer method of the present invention a start mail address used for transmitting a file is first determined, and then the file segment is transmitted to the destination mail address using the start mail address.
  • the sender only needs to know the address name of the destination email address, but does not need to understand
  • the two parties do not need to exchange the login account information of each other. Therefore, the security and privacy of the addresses of the two parties are ensured under the premise of using the respective addresses.
  • the instant access may be used to obtain or obtain the information according to the first embodiment.
  • select the starting email address For related content, refer to the above embodiment, and details are not described herein.
  • Embodiment 4 of the file transfer method of the present invention a plurality of mail addresses are selected as the start mail address.
  • the concurrent transmission can make the most use of the user's local and network bandwidth resources, so that the time to send the file segmentation to the destination email address will be significantly reduced, which further reduces the time spent on the entire file transfer and improves the file transfer. Immediacy.
  • the concurrent transmission can adopt multiple processes Transmissions can also be multi-threaded or other concurrent transmissions. Hereinafter, the embodiment will be described by taking multithreading as an example and referring to FIG. 3a.
  • Step 301 Split the target file to be sent into multiple file segments.
  • Step 302 Determine the starting email address to be used for this file transfer.
  • Step 303 Determine the destination email address to be used for this file transfer.
  • Step 304 Start a thread.
  • Step 305 Use the thread to select a file segment that has not been sent, and use a starting email address to segment the file to the destination email address.
  • Step 306 Repeat step 304 until the predetermined number of threads is started.
  • Step 307 Determine the transmission status of the thread. If the transmission process of a thread has ended, go to step 308.
  • Step 308 Send an instant message to the receiving end, the instant message containing a control instruction for receiving the file segment.
  • Step 309 Determine whether all file segments have been sent. If not, go to step 305.
  • the above method of transmitting file segments by using multiple threads is only a preferred implementation manner, and can also be implemented as follows:
  • a) Start multiple threads according to predetermined rules.
  • the number of threads can be set according to certain rules, such as network environment and device performance.
  • Each thread uses a starting email address to transfer a file segment to the destination email address. After the transfer is complete, the thread still selects other file segments to continue the transmission without having to restart the new thread.
  • Step 3101 Determine whether a new instant message including the received file segmentation control instruction is received, and if yes, perform step 3092.
  • Step 3102 Obtain a file segment corresponding to the control instruction from the destination email address.
  • Step 3103 Whether all file segments are obtained. If step 3101 is not performed, step 3104 is performed.
  • Step 3104 Combine the obtained file segments into a target file.
  • the fourth embodiment of the present invention is based on the file transfer method.
  • the main difference between the fifth embodiment of the present invention and the fourth embodiment is that the destination mail address is plural.
  • each destination email address corresponds to one or more starter addresses.
  • the file is segmented through the starting message The address is sent to the corresponding destination email address; correspondingly, the receiving end obtains the file segment from different destination email addresses and combines them into the target file.
  • the pressure of the mail server where the destination email address is located is also dispersed.
  • the file segmentation from the same destination email address is avoided.
  • the resulting load further improves the efficiency of the file segmentation at the receiving end and improves the speed of the entire file transfer.
  • Embodiment 4 please refer to the above embodiment, which is not mentioned here.
  • sending an instant message containing a control command to the receiving end may be performed after a file segment is sent to the destination email address; of course, multiple file segments may also be sent to the file segment. After the destination email address, the instant message is sent. The difference between the two is that if the latter is selected, the instant message should contain a control instruction to receive the plurality of file segments. Which transmission method is selected can be determined by those skilled in the art in the practice of the present invention.
  • the checksum information of the file segment can also be calculated and added to the sent mail.
  • the receiving end verifies the received file segment or the merged target file, and if the verification fails, sends an instant message of the failed transmission to the sender; if the sender receives the instant message, resends the corresponding file segment.
  • the checksum data of the file segment is obtained according to a certain checksum algorithm, and the checksum data and the file segmentation data packet are sent as an email, or the checksum data is used as an instant message. Send to the receiving end. In doing so, it is possible to avoid data transmission errors caused by network transmission and the like during mail transmission. For example, after receiving the file segmentation, the receiving end determines whether the file segmentation is in error according to the checksum data. If the error occurs, the verification data fails. At this time, the receiving end may send an instant message to the sender, requesting resending the file segment that is in error. segment. In addition, the receiving end can also receive the erroneous mail from the mail address again, and re-verify the file segmentation.
  • the received mail in the mail address is deleted, and if the mail is re-received from the mail address more than once
  • the preset number of times for example 5 or 10 times, requires the sender to resend the corresponding message.
  • the advantage of using this step is that when it is found that there is a file segmentation data error, it is only necessary to resend or obtain the file segment in which the error occurred. In the prior art, if the file transmission error occurs, the entire target file needs to be retransmitted. The problem, saving costs and resources.
  • the checksum data may be added to the entire target file, or the checksum data of the target file may be sent when the last file segment is sent, and the target file is merged at the receiving end, and then the entire file is verified. , to determine whether there is an error, this can avoid errors caused by file splitting and merging. If the receiver finds a checksum error, it can send an instant message to the sender requesting that the corresponding file segment be resent.
  • sending all file segments as a mail to the receiving end is only a preferred method of the present invention, and optionally, part of the file segment is sent as an instant message to the receiving. For example, the transmission rate of the instant messaging is determined.
  • the file segment is sent to the receiving end by using instant messaging.
  • the two can be optimally combined to improve the speed of file transmission.
  • the file segment can be sent by using an instant message, so that the transmission interruption caused by the abnormality of the mail transmission can be avoided, and the whole file transfer process becomes more reliable.
  • the receiving end also needs to obtain the file segment from the instant message, and merge the file segments obtained from the destination email address into the target file.
  • the file transfer method of the present invention has been described above.
  • the file transfer method of the present invention will be further described in detail from the perspective of user use in conjunction with a specific application environment.
  • Embodiment 6 is a description of a specific application embodiment of a file transmission method based on the present invention, in this embodiment,
  • User A needs to send file F to user B.
  • User A has two email addresses sl@maill.com and s2@mail2.com provided by mail server Sa; user B has two email addresses provided by mail server Sb: Rl@mail3.com, r2@mail4.com.
  • User A and User B establish a communication connection using a communication terminal having instant messaging and mail transceiving functions, and use instant messaging server Sc to implement instant messaging.
  • an email address sl@maill.com of user A is used as the destination email address, and user A directly transfers the file segment from the local to the destination email address sl@maill.com, and transmits the file segment to the destination email address.
  • user A can choose to use sl@maill.com as the sending address to segment the file as part of the mail, and send it to sl@maill.com in a standard mail format that can be directly downloaded through the general protocol.
  • the file segment can be stored in a specific format to any location in the storage space to which sl@maill.com belongs, as long as User B can obtain the mail content from sl@maill.com according to the predetermined format.
  • the specific implementation manner of this embodiment is as follows:
  • Step 401 First, user A initiates a file sending process, user A selects a file, selects receiving user B, and then issues a command to start transmission, and the instant messaging terminal (hereinafter referred to as sender A) where user A is located automatically sends the message to the user through the instant message.
  • the instant messaging terminal used by B (hereinafter referred to as the receiving end B) sends some basic information of the current transmission, such as the file name to be transmitted, the file size, and the check value used to verify the file.
  • step 402 it is determined whether the user B confirms the reception. If yes, step 403 is performed, and if not, the transmission is stopped.
  • Step 403 After confirming the reception, the user B sets the destination email address used by the sender and the receiver.
  • a list of mail addresses for User A and User B and their respective mail addresses can be established in advance in the instant messaging server.
  • the instant message server selects a high priority email address as the destination email address for the two users from the stored email address list, and notifies the receiving party of the address information or the receiving party itself Obtained on the message server.
  • the format of the list of email addresses is as follows:
  • the address information disclosed by Sl@maill.com to the server includes the mail address and the login authority information, and S2@mail2.com only discloses the independent address, and there is no account information, indicating The former can authorize specific users for mailing, while the latter is only used for self-receiving.
  • the format and content of the mail address list are only for convenience of explaining the implementation process of the embodiment, and those skilled in the art can implement various factors to manage the user's mail address information when implementing the present invention.
  • the setting of the email address priority can be considered in combination with the location of the user and the location of the mail server. For example, if the user uses Beijing Telecom's email address as the destination email address in Beijing to send the user in Chongqing, the speed is faster, but if the user still uses the Beijing Telecom email account as the destination email address in Chongqing, the sending speed will be It will be slower, so the email address priority setting can be set according to various factors such as the user's location and the location of the mail server. For the user whose public address information can be used as the starting or destination email address, the user can set the trusted friend list list to be filtered by the system.
  • the mail address list can also be stored locally on the user terminal. For example, after user B confirms the transmission, an e-mail address is selected from the list of e-mail addresses stored in the receiving end B or the computer, and then transmitted to the sending end A by means of instant messaging; the sending end A receives the instant. After the message is decrypted and extracted, the email address is automatically set to the destination email address.
  • Step 404 the sender A divides the file F into a plurality of file segments.
  • Step 405 Take the i-th file segment, where the value of i ranges from 1 to the total number of file segments.
  • Step 406 Calculate a content check value of the file segment i.
  • Step 407 The content check value of the file segment i is used as a part of the mail, and the content of the file segment i is sent as an attachment or mail content to the selected destination mail address Sl@maill.com.
  • Step 408 Send an instant message to the receiving end B, where the instant message includes a control instruction for receiving the segment i.
  • the destination email address information may be included in the instant message sent to the receiving end B.
  • Step 409 Count the sending speed of the mail in the current time period, and update the statistical result.
  • the statistics will eventually be updated to the email address list.
  • the purpose of saving statistics is to select the fastest address to send when there are multiple addresses to choose from.
  • step 410 step 405 is repeated until all the blocks are sent.
  • Step 411 Determine whether an instant message containing the control command of the received file segment i is received, and if the following steps are received.
  • Step 412 Obtain the destination email address information from the instant message.
  • the address information of the destination email address sl@maill.com is obtained from the instant message, including: receiving server, sending server, login user name, login password, and the like.
  • This step is an optional step.
  • the sending and receiving parties have established rules to correctly know the destination email address used in this sending operation, such as being recorded in the friend information, obtained from the instant messaging server, and before the destination email address is transmitted.
  • This step is not necessarily performed by the receiving end B automatically providing it to the transmitting end A and making a record or the like.
  • Step 413 The receiving end B downloads the mail from the destination email address sl@maill.com. If the download fails, wait for a certain period of time and then re-download. If the download cannot be successful after repeating a certain number of times, notify user A to resend file segment i.
  • Step 414 After successfully downloading the mail, send a notification to the sender A.
  • Step 415 Extract the file segment i from the mail and verify the file segmentation.
  • the data of the file segment i and the checksum data are obtained from the mail, and then the check value of the content of the downloaded file block i is calculated according to a predetermined algorithm, and compared with the received checksum data, if the same, it indicates Block i received successfully. Otherwise, the content of the file segment i is re-downloaded from the destination email address, and if it is not successful after repeating the specified number of times, the sender A is notified to resend the file segment i.
  • Step 416 Determine whether all the file segments are received. If yes, go to step 417.
  • Step 417 Combine all the file segments into the target file according to a predetermined algorithm.
  • the file segmentation is merged using an algorithm corresponding to file segmentation.
  • Step 418 Verify the merged target file. If it fails, send a notification message to the sender A to resend the file.
  • Step 419 Count the receiving speed of the current time period mail, and update the statistical result to the mail address list on the server.
  • the sender A first transmits the file segment to the start email address, and then the mail server Sa corresponding to the start email address.
  • the mail is sent to the mail server Sb, and finally the receiving end B obtains the mail and the file segment from the mail address of the mail server Sb.
  • the sender A sends the two file segments to the mail address rl@mail3 of the receiving end B through the mail addresses sl@maill.com and s2@mail2.com. Com and r2@mail4.com, Receiver B receives mail and corresponding file segments from rl@mail3.com and r2@mail4.com.
  • the destination email address and the initial email address may be comprehensively compared by the server according to factors such as the transmission speed of the email addresses of the two parties, and the best starting and destination email address pairs are given.
  • the receiving terminal B may also provide the address information for sending. End A, and then user A compares the transmission speed of the own address with the transmission speed. In this way, the receiving end B does not have to provide the login password of the local mail address.
  • the receiving end A divides the file to be transmitted into multiple blocks, and performs the following operations:
  • the first thread uses the content check value of the block i as the title of the email, and the content of the block i as an attachment, and sends the mail to rl@mail3.com through sl@maill.com.
  • the second thread uses the content check value of the block j as the title of the email, and the content of the block j as an attachment, and sends the mail to r3@mail4.com through s2@mail2.com.
  • how many threads are used to concurrently transfer file segments can be determined at the discretion of the user in accordance with the user's network conditions. Assume that user A's network bandwidth can reach a maximum upload rate of lOOKB/s. In this case, three email addresses with an average transfer rate of 40 KB/s, 30 KB/s, and 30 KB/s can be selected as the starting email address. Thread, so that the sum of the transmission rates is close to the maximum upload bandwidth of the user. When a thread finishes transmitting, according to the algorithm that the sum of all transmission rates is close to the maximum upload bandwidth of the user, one or more email addresses are reselected, in a new thread. Send other blocks, repeat this until all the blocks have been sent.
  • FIG. 4 it is a block diagram of an embodiment of a file transfer apparatus of the present invention, including a transmitting module 4100 and a receiving module 4200.
  • the sending module 4100 includes:
  • a first instant messaging unit 4101 configured to send and/or receive an instant message
  • the destination email address determining unit 4102 is configured to determine a destination email address of the sending target file;
  • the target file sending unit 4103 is configured to send the target file to the destination email address;
  • the sending control unit 4104 is configured to control the target file sending unit to send An object file, and notifying the first instant messaging unit 4101 to send an instant message, the instant message including a control instruction for receiving the target file;
  • the receiving module 4200 includes:
  • a second instant messaging unit 4201 configured to send and/or receive an instant message
  • the target file obtaining unit 4202 is configured to obtain the target file from the destination email address
  • the obtaining control unit 4203 is configured to determine whether the second instant messaging unit 4201 receives an instant message including the receiving target file control instruction, and if received, notify the target file obtaining unit 4202 to acquire the target file.
  • the target file sending unit 4103 includes: a file dividing unit 41031, configured to divide the target file into a plurality of file segments according to a preset rule; and a file segment sending unit 41032, configured to send the file segment to the destination Email address.
  • the sending control unit 4104 includes: a file segment sending control unit 41041, configured to control the file segment sending unit to send the file segment, and notify the first instant messaging unit 4101 to send an instant message, where the instant message includes The control instruction of the segment.
  • the target file obtaining unit includes 4202: a file segment obtaining unit 42021, configured to obtain a file segment from a destination email address, and a file segment combining unit 42022, configured to combine the obtained file segments into a target file.
  • the obtaining control unit 4203 includes: a file segment obtaining control unit 42031, configured to determine whether the second instant messaging unit 4201 receives an instant message including a received file segmentation control instruction, and if notified, notifies the file segment obtaining unit 42021 Get file segmentation.
  • the file segment transmission control unit 41041 notifies the first instant messaging unit 4101 that the sending of the instant message is performed after the file segment transmission control unit 41041 sends one or more file segments to the destination email address.
  • the target file sending unit 4103 may further include: an instant file sending unit 41033, configured to send an instant message including the file segment by using the first instant messaging unit.
  • an instant file sending unit 41033 configured to send an instant message including the file segment by using the first instant messaging unit.
  • the target file obtaining unit 4202 further includes: an instant file receiving unit 42223, configured to acquire a file segment from the instant message including the file segment received by the second instant messaging unit 4201, which is obtained by the file segment obtaining unit 42021
  • an instant file receiving unit 42223 configured to acquire a file segment from the instant message including the file segment received by the second instant messaging unit 4201, which is obtained by the file segment obtaining unit 42021
  • the file segmentation and the instant file receiving unit 42223 segment but how to use, the present invention does not limit this, for example, if an abnormality occurs in the mail sending unit, the file segment is sent using the instant file sending unit.
  • the target file sending unit 4103 may further include: a rate comparing unit 41034, configured to compare a current transmission rate of the first instant messaging unit, and if the value is greater than a predetermined threshold, notify the immediate file sending unit to send the file segment.
  • a rate comparing unit 41034 configured to compare a current transmission rate of the first instant messaging unit, and if the value is greater than a predetermined threshold, notify the immediate file sending unit to send the file segment.
  • a rate comparing unit 41034 configured to compare a current transmission rate of the first instant messaging unit, and if the value is greater than a predetermined threshold, notify the immediate file sending unit to send the file segment.
  • a rate comparing unit 41034 configured to compare a current transmission rate of the first instant messaging unit, and if the value is greater than a predetermined threshold, notify the immediate file sending unit to send the file segment.
  • the sending module 4100 may further include: a starting email address determining unit 4105, configured to determine a starting email address; and the target file sending unit 4103 may further include: a transmitting unit 41035, configured to segment the file Send from the starting email address to the destination email address.
  • the destination email address determining unit 4102 can obtain the destination email address by using the first instant messaging unit, and the starting email determining unit 4105 obtains the starting email address by using the second instant messaging unit.
  • the instant message sent by the first instant messaging unit 4101 further includes the destination email address information of the file segment; the file segment obtaining unit 42021 is configured to obtain the destination email address of the file segment from the instant. Obtained in the message.
  • the file transmission device further includes: a storage unit 4106, configured to store a preset email address list; the destination address determining unit 4102 further includes: a destination email address selection unit 41021, configured to use the storage unit according to a predetermined rule The destination email address is selected in the email address list of 4106; the initial email address determining unit 4105 further includes: a starting email address selecting unit 41051, configured to select a starting email address from the mailing address list of the storage unit 4106 according to a predetermined rule. .
  • the sending control unit 4104 further includes: a first concurrency control unit 41042, configured to control the file segment sending unit 41041 to concurrently transmit the plurality of file segments to the destination mail through different start email addresses. address.
  • a first concurrency control unit 41042 configured to control the file segment sending unit 41041 to concurrently transmit the plurality of file segments to the destination mail through different start email addresses. address.
  • the sending control unit 4104 further includes: a second concurrency control unit 41043, configured to control the file segment sending unit 41041 to concurrently transmit the plurality of file segments to different destination e-mail addresses through different starting e-mail addresses.
  • the sending module 4100 further includes: an email address preference unit 4107, configured to set a priority according to a transmission speed of the initial email address and/or a destination email address; the file segment sending unit 41032 according to the email address
  • the high priority mail address selected by the unit 41021 is preferably sent as a file segment.
  • the mail address preference unit 4107 can optimize the account in the following manner: Count the transmission speed of the mail address used, and record the data transmission speed of the mail address. In addition, the transmission speed can be described in combination with other factors, such as the backbone network, carrier, and geographic location information of the sender, to more accurately describe the transmission speed of the email address under different conditions.
  • the mail address preference unit sets the address priority based on the data, and the mail sending unit selects the mail sending file segment having the higher priority.
  • the receiving module 420 further includes: a checking unit 4204, configured to check the received file segment or the merged target file, and if the verification fails, send the transmission failed instant message through the second instant messaging unit 4201. .
  • a checking unit 4204 configured to check the received file segment or the merged target file, and if the verification fails, send the transmission failed instant message through the second instant messaging unit 4201. .
  • the sending control unit 4104 further includes: a retransmission control unit 41044, configured to determine whether the first instant messaging unit 4101 receives an instant message that the transmission failed, and if received, the notification file segment sending unit 41032 sends a corresponding file. segment.
  • FIG. 5 is a physical structural diagram of a file transfer system to which the file transfer apparatus of the present invention is applied, including a mail server 510, an instant message server 520, a start client 530, and a destination client 540.
  • Both the sending client and the destination client can include a sending module and a receiving module, so that the two clients can send files to each other. It is easy to know that if the process of restricting file transfer is one-way, for example, only the originating client is allowed to send files to the destination client, the originating client only includes the sending module, and the destination client only includes the receiving module. .
  • the destination address determining unit determines the destination mail address used for the current transmission before starting the file transfer. You can use the same email address as the destination email address, that is, the email address can be used to send a complete file to the destination client. You can also split the file into multiple file segments and use the starting email address to divide the file. The segment is transmitted to the destination email address; further, the first concurrency control unit may control the mail sending unit to transmit the plurality of file segments to the destination email address through different starting email addresses; and further, the second concurrency control may be performed. The unit control mail sending unit concurrently transmits the plurality of file segments to the plurality of destination mail addresses through different start mail addresses.
  • the mail address preference unit can set the priority of the mail address in the mail address list according to the transmission speed. It should be noted that the storage unit preset with the mail address list may be in the client and/or the instant message server.
  • the destination address selection unit or the start address selection unit is The destination unit selects the destination email address or the starting email address according to the priority, and then the initiating client or destination client obtains the email address by using instant messaging. It will be readily apparent from the description of the above embodiments that the mail system of the present invention uses the mail address as the starting or destination mail address to transfer the file, and how the starting or destination client obtains the start or destination determination. This is not a limitation.
  • the following describes the transmission process of the system by taking multiple initial email addresses and multiple destination email addresses as examples.
  • the file dividing unit divides the object file to be sent into a plurality of file segments; then, the second concurrency
  • the control unit control file segment sending unit transmits the plurality of file segments to the plurality of destination email addresses through different starting email addresses, and in the process, each time a file segment is sent, the sending control unit notifies the An instant messaging unit sends an instant message to the destination client, the instant message including control instructions for receiving the file segment.
  • the instant message may further include destination email address information corresponding to the control command, such as a mail server address, a login user name, a password, and the like.
  • the email address information is notified to the destination client after each file segment is sent, so that the email address can be adjusted at any time according to the actual transmission situation.
  • an instant message is sent to the destination client, where the instant message includes a control instruction for receiving the plurality of file segments.
  • the sending of the instant message after the one or more file segments are sent to the destination email address is a preferred method of the present invention. Of course, other time may be selected, for example, during file segment transmission, or when the transmission is completed. .
  • the file segment obtaining control unit of the destination client determines whether the second instant messaging unit receives the instant message including the received file segmentation control instruction, and if received, the notification file segment obtaining unit obtains the corresponding destination email address of the control instruction File segmentation.
  • the file segmentation unit combines the acquired file segments into a target file.
  • the file segment obtaining unit in the process of acquiring the file segment, the verification unit verifies the received file segment or the merged target file, and if the verification fails, sends the transmission failed instant message through the second instant messaging unit.
  • the retransmission control unit of the initiating client determines whether the first instant messaging unit receives the instant message of the transmission failure, and if so, notifies the file segment transmission control unit to send the corresponding file segment.
  • the rate comparison unit compares the current transmission rate of the first instant messaging unit, and if greater than the predetermined threshold, notifies the instant file sending unit to send the file segment as an instant message to the destination.
  • the client obtains the file segment from the instant message by the instant file receiving unit.
  • the file segment is combined with other file segments obtained by the file segment obtaining unit into the target file.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

A method, a device and a system for delivering files. The method comprises the steps of: determining a destination email address to which a target file will be sent; sending the target file to the destination email address; by means of instant messaging, sending an instant message including a control instruction for receiving the target file to a receipt side; obtaining the corresponding target file from the destination email address automatically if the instant message including the control instruction is received by the receipt side. Thus, the delivery status of the target file could be known by the receipt side in time by means of the instant message, and a feedback could be issued in time when an abnormity occurs during the delivery so that the reliability of the delivery is ensured. Furthermore, since the receipt side could determine firstly whether the delivery of the file is completed, it is possible to obtain the file in time and improve the efficiency of the file delivery.

Description

一种文件传输方法、 装置和系统  File transmission method, device and system
本申请要求于 2007 年 3 月 20 日提交中国专利局、 申请号为 200710087472.5、 发明名称为"一种文件传输方法、 装置和系统"的中国专利申 请的优先权, 其全部内容通过引用结合在本申请中。  This application claims priority to Chinese Patent Application No. 200710087472.5, entitled "A File Transfer Method, Apparatus and System", filed on March 20, 2007, the entire contents of which is incorporated herein by reference. In the application.
技术领域 Technical field
本发明涉及文件传输领域,特别是涉及一种将邮件技术和即时通讯技术结 合起来用以传输文件的方法、 装置和系统。  The present invention relates to the field of file transmission, and more particularly to a method, apparatus and system for combining mail technology and instant messaging technology for transferring files.
背景技术 Background technique
随着互联网及数码技术的普及,越来越多的普通用户拥有了数码相机、数 码摄像机等数码产品, 用户一般需要与家人、朋友分享拍摄的图片、 影像等文 件。文件传输是互联网实现文件分享的重要应用之一。在现有的文件传输技术 中, 通过 Email传输文件最为广大用户所接受。  With the popularity of the Internet and digital technology, more and more ordinary users have digital products such as digital cameras and digital cameras. Users generally need to share pictures, images and other files with family and friends. File transfer is one of the important applications of file sharing on the Internet. In the existing file transfer technology, the most popular users are accepted by Email.
图 1是一种被广泛应用的使用 Email传输文件的原理示意图。 例如, 若用 户 11向用户 14发送文件, 首先, 用户 11将要发送的文件上传至该用户使用 的发送邮件服务器 12(如, SMTP); 然后, 发送邮件服务器 12将该文件和邮件 信息转发至用户 14的接收邮件服务器 13(如, POP3); 最后, 由用户 14从接 收邮件服务器 13下载文件完成文件传输。  Figure 1 is a schematic diagram of a widely used principle for transferring files using Email. For example, if the user 11 sends a file to the user 14, first, the user 11 uploads the file to be sent to the outgoing mail server 12 (eg, SMTP) used by the user; then, the sending mail server 12 forwards the file and mail information to the user. The receiving mail server 13 (e.g., POP3) 14; Finally, the file 14 is downloaded from the receiving mail server 13 by the user 14 to complete the file transfer.
上述文件传输过程中 ,传输故障导致的用户无法正常接收邮件的情况时有 发生, 如网络通信故障, 接收邮件服务器异常等, 由于现有技术中, 用户无法 及时获知该异常情况, 因此也就无法对该异常及时做出响应处理。 并且, 在发 送邮件服务器 12将文件发送至接收邮件服务器 13这一过程结束之前, 用户 14只能处于等待状态。 在整个过程中, 用户 14必须定期向服务器查询是否有 新邮件, 待发送过程完全结束之后, 才能开始接收该邮件, 其中, 大量的无效 的查询请求不但占用了用户计算机以及网络的资源,而且也增加了邮件服务器 的负荷, 降低了其处理性能。  During the above file transfer process, the user cannot receive the mail normally due to the transmission failure, such as a network communication failure, an abnormality of the receiving mail server, etc., because in the prior art, the user cannot know the abnormal situation in time, and thus cannot Respond to the exception in a timely manner. Also, the user 14 can only be in a waiting state before the process of transmitting the file to the receiving mail server 13 by the mail server 12. Throughout the process, the user 14 must periodically check with the server for new mail, and the receiving process can be started after the sending process is completely finished. Among them, a large number of invalid query requests not only occupy the user computer and network resources, but also Increased the load on the mail server and reduced its processing performance.
发明内容 Summary of the invention
本发明的目的在于解决现有技术采用邮件传输文件时接收端无法及时获 知文件的传输状态, 并进一步导致无法及时对传输异常做出反馈, 无法及时获 取文件的问题。  The object of the present invention is to solve the problem that the receiving end cannot know the transmission status of the file in time when the file is transmitted by using the mail in the prior art, and further, the problem that the transmission abnormality cannot be timely and the file cannot be obtained in time can be obtained.
为解决上述问题, 本发明公开了一种文件传输方法, 包括下列步骤: 确定 用于发送目标文件的目的邮件地址; 将目标文件发送至所述目的邮件地址; 利 用即时通讯向接收端发送即时消息,所述即时消息包括用于接收该目标文件的 控制指令; 若接收端收到包含所述控制指令的即时消息,从所述目的邮件地址 获取相应的目标文件。 In order to solve the above problems, the present invention discloses a file transmission method, comprising the steps of: determining a destination email address for transmitting a target file; and transmitting the target file to the destination email address; Sending an instant message to the receiving end by using an instant message, the instant message includes a control instruction for receiving the target file; if the receiving end receives the instant message including the control instruction, obtaining a corresponding target file from the destination email address .
优选的 , 所述将目标文件发送至目的邮件地址包括: 将目标文件按预置规 则分割为多个文件分段; 将所述文件分段发送至所述目的邮件地址; 所述接收 端从目的邮件地址获取目标文件包括:判断是否收到包含所述控制指令的即时 消息 , 若收到 , 从所述目的邮件地址获取文件分段; 将获取到的文件分段组合 成为目标文件。  Preferably, the sending the target file to the destination email address comprises: dividing the target file into a plurality of file segments according to a preset rule; sending the file segment to the destination email address; and the receiving end is from the destination The mail address obtaining target file includes: determining whether an instant message including the control instruction is received, and if received, obtaining a file segment from the destination email address; and combining the obtained file segments into a target file.
优选的,所述利用即时通讯向接收端发送的即时消息是在将一个或多个文 件分段发送至所述目的邮件地址之后进行。  Preferably, the instant message sent by the instant messaging to the receiving end is performed after the one or more file segments are sent to the destination email address.
优选的, 所述的文件传输方法还可以包括: 利用即时通讯将文件分段作为 即时消息发送至接收端;接收端从该即时消息中获取文件分段; 所述接收端获 段以及从所述即时消息中获取的文件分段。  Preferably, the file transmission method may further include: sending, by using an instant messaging, the file segment as an instant message to the receiving end; the receiving end acquiring the file segment from the instant message; the receiving end obtaining the segment and the File segmentation obtained in instant messaging.
优选的, 所述将文件分段作为即时消息发送至接收端包括: 判断当前即时 通讯的传输速率, 若大于预定阀值, 将文件分段作为即时消息发送至接收端。  Preferably, the sending the file segment as an instant message to the receiving end comprises: determining a current transmission rate of the instant messaging, and if the value is greater than a predetermined threshold, sending the file segment as an instant message to the receiving end.
优选的,在将文件分段发送至所述目的邮件地址之前还可以包括: 确定起 始邮件地址;所述将文件分段发送至所述目的邮件地址是使用该起始邮件地址 将文件分段发送至所述目的邮件地址。  Preferably, before sending the file segment to the destination email address, the method further includes: determining a starting email address; and sending the file segment to the destination email address by using the starting email address to segment the file Send to the destination email address.
优选的, 所述起始邮件地址和 /或目的邮件地址是利用即时通讯获得。 优选的,所述向接收端发送的即时消息还包括文件分段所在的目的邮件地 址; 所述接收端用于获取文件分段的目的邮件地址是从该即时消息中获取。  Preferably, the starting email address and/or the destination email address are obtained by using instant messaging. Preferably, the instant message sent to the receiving end further includes a destination email address where the file segment is located; and the destination email address used by the receiving end to obtain the file segment is obtained from the instant message.
优选的 , 所述起始邮件地址和 /或目的邮件地址是从预置的邮件地址列表 中按预定规则选择。  Preferably, the starting email address and/or the destination email address are selected according to a predetermined rule from a preset email address list.
优选的, 所述起始邮件地址的个数为多个; 所述使用起始邮件地址将文件 分段发送至目的邮件地址通过以下步骤实现:将所述多个文件分段通过不同的 起始邮件地址并发传输至所述目的邮件地址。  Preferably, the number of the starting email addresses is multiple; the sending the file segment to the destination email address by using the starting email address is implemented by: segmenting the plurality of files by different starting The email address is concurrently transmitted to the destination email address.
优选的 , 所述目的邮件地址的个数为多个, 所述将文件分段发送至目的邮 件地址通过以下步骤实现:将所述多个文件分段通过起始邮件地址并发传输至 相应的多个目的邮件地址。  Preferably, the number of the destination email addresses is multiple, and the sending the file segments to the destination email address is implemented by: segmenting the plurality of files by using the initial email address and transmitting the corresponding email addresses to the corresponding multiple addresses. Destination email address.
优选的, 所述的文件传输方法还可以包括: 对所述多个起始邮件地址和 / 或目的邮件地址按传输速度设置优选级; 选择优先级高的起始邮件地址和 /或 目的邮件地址发送文件分段。 Preferably, the file transfer method may further include:: the multiple start email addresses and/or Or the destination email address is set to the preferred level according to the transmission speed; the file segment is sent by selecting the starting email address and/or the destination email address with a higher priority.
优选的, 所述的文件传输方法还可以包括:接收端校验获取到的文件分段 和 /或合并后的目标文件, 若校验失败, 则向发送端发送传输失败的即时消息, 该即时消息包括用于重发文件分段和 /或目标文件的控制指令; 若发送端收到 该控制指令 , 则重新发送相应的文件分段或目标文件。  Preferably, the file transmission method may further include: the receiving end verifies the obtained file segment and/or the merged target file, and if the verification fails, sending an instant message of the transmission failure to the sending end, the instant The message includes control instructions for resending the file segment and/or the object file; if the sender receives the control command, resending the corresponding file segment or object file.
依据本发明的另一实施例,还公开了一种文件传输装置, 包括位于不同计 算设备中的发送模块和接收模块 ,  According to another embodiment of the present invention, a file transmission apparatus is further disclosed, including a transmitting module and a receiving module located in different computing devices.
所述发送模块包括: 第一即时通讯单元, 用于发送和 /或接收即时消息; 目的邮件地址确定单元, 用于确定发送目标文件的目的邮件地址; 目标文件发 送单元, 用于将目标文件发送至所述目的邮件地址; 发送控制单元, 用于控制 目标文件发送单元发送目标文件, 以及通知第一即时通讯单元发送即时消息, 所述即时消息包括用于接收目标文件的控制指令;  The sending module includes: a first instant messaging unit, configured to send and/or receive an instant message; a destination email address determining unit, configured to determine a destination email address of the sending target file; and an object file sending unit, configured to send the target file And the destination email address; the sending control unit is configured to control the target file sending unit to send the target file, and notify the first instant messaging unit to send the instant message, where the instant message includes a control instruction for receiving the target file;
所述接收模块包括: 第二即时通讯单元, 用于发送和 /或接收即时消息; 目标文件获取单元, 用于从目的邮件地址获取目标文件; 获取控制单元, 用于 判断第二即时通讯单元是否收到包含有接收目标文件控制指令的即时消息,若 收到, 通知目标文件获取单元获取目标文件。  The receiving module includes: a second instant messaging unit, configured to send and/or receive an instant message; an object file obtaining unit, configured to acquire a target file from the destination email address; and an acquiring control unit, configured to determine whether the second instant messaging unit is An instant message containing the control command of the receiving target file is received, and if received, the target file obtaining unit is notified to acquire the target file.
优选的, 所述目标文件发送单元进一步包括: 文件分割单元, 用于将目标 文件按预置规则分割为多个文件分段; 文件分段发送单元, 用于将文件分 送至目的邮件地址;  Preferably, the target file sending unit further includes: a file dividing unit, configured to divide the target file into a plurality of file segments according to a preset rule; and a file segment sending unit, configured to distribute the file to the destination email address;
所述发送控制单元进一步包括: 文件分段发送控制单元, 用于控制文件分 段发送单元发送文件分段, 以及通知第一即时通讯单元发送即时消息,该即时 消息包含用于接收文件分段的控制指令;  The sending control unit further includes: a file segment sending control unit, configured to control the file segment sending unit to send the file segment, and notify the first instant messaging unit to send an instant message, where the instant message includes a file segment for receiving the file segment Control instruction;
所述目标文件获取单元进一步包括: 文件分段获取单元, 用于从目的邮件 地址获取文件分段; 文件分段组合单元, 用于将获取到的文件分段组合为目标 文件;  The target file obtaining unit further includes: a file segment obtaining unit, configured to obtain a file segment from the destination email address; and a file segment combining unit configured to combine the obtained file segments into the target file;
所述获取控制单元进一步包括: 文件分段获取控制单元, 用于判断第二即 时通讯单元是否收到包含有接收文件分段控制指令的即时消息, 若收到,通知 文件分段获取单元获取文件分段。  The obtaining control unit further includes: a file segment obtaining control unit, configured to determine whether the second instant messaging unit receives the instant message including the received file segmentation control instruction, and if received, the notification file segment obtaining unit acquires the file Segmentation.
优选的,所述文件分段发送控制单元通知第一即时通讯单元发送所述即时 消息是在文件分段发送单元将一个或多个文件分段发送至目的邮件地址之后 进行。 Preferably, the file segmentation sending control unit notifies the first instant messaging unit to send the instant message after the file segment sending unit sends one or more file segments to the destination email address. get on.
优选的, 所述目标文件发送单元还包括即时文件发送单元, 用于利用第一 即时通讯单元发送包含文件分段的即时消息;所述目标文件获取单元还包括即 时文件接收单元,用于从第二即时通讯单元接收到的包含文件分段的即时消息 件分段获取单元所获取的文件分段以及即时文件接收单元获取的文件分段。  Preferably, the target file sending unit further includes an instant file sending unit, configured to send an instant message including the file segment by using the first instant messaging unit; the target file acquiring unit further includes an instant file receiving unit, configured to The file segment acquired by the instant message segment segment obtaining unit including the file segment received by the instant messaging unit and the file segment obtained by the instant file receiving unit.
优选的, 所述目标文件发送单元还包括: 速率比较单元, 用于比较当前第 一即时通讯单元的传输速率, 若大于预定阀值,通知即时文件发送单元发送文 件分段。  Preferably, the target file sending unit further includes: a rate comparing unit, configured to compare a transmission rate of the current first instant messaging unit, and if the value is greater than a predetermined threshold, notify the immediate file sending unit to send the file segment.
优选的, 所述发送模块还包括起始邮件地址确定单元,用于确定起始邮件 地址。  Preferably, the sending module further includes a start email address determining unit, configured to determine a starting email address.
优选的,所述目的邮件地址确定单元利用第一即时通讯单元的即时消息获 得目的邮件地址,所述起始邮件确定单元利用第二即时通讯单元的即时消息获 得起始邮件地址。  Preferably, the destination email address determining unit obtains the destination email address by using the instant message of the first instant messaging unit, and the starting email determining unit obtains the starting email address by using the instant message of the second instant messaging unit.
优选的 ,所述第一即时通讯单元发送的即时消息中还包括文件分段所在的 目的邮件地址信息;所述文件分段获取单元用于获取文件分段的目的邮件地址 是从该即时消息中获取。  Preferably, the instant message sent by the first instant messaging unit further includes the destination email address information of the file segment; the destination email address used by the file segment obtaining unit to obtain the file segment is from the instant message. Obtain.
优选的, 所述的装置还可以包括: 存储单元, 用于存储预置的邮件地址列 表; 所述目的地址确定单元进一步包括目的邮件地址选择单元, 用于按预定规 则从存储单元的邮件地址列表中选择目的邮件地址;所述起始邮件地址确定单 元进一步包括起始邮件地址选择单元,用于按预定规则从存储单元的邮件地址 列表中选择起始邮件地址。  Preferably, the device may further include: a storage unit, configured to store a preset email address list; the destination address determining unit further includes a destination email address selection unit, configured to use the email address list of the storage unit according to a predetermined rule Selecting a destination email address; the initial email address determining unit further includes a starting email address selecting unit for selecting a starting email address from a list of email addresses of the storage unit according to a predetermined rule.
优选的, 所述发送控制单元还包括: 第一并发控制单元, 用于控制文件分 段发送单元将所述多个文件分段通过不同的起始邮件地址并发传输至所述目 的邮件地址。  Preferably, the sending control unit further includes: a first concurrency control unit, configured to control the file segment sending unit to concurrently transmit the plurality of file segments to the destination e-mail address through different initiating e-mail addresses.
优选的, 所述发送控制单元还包括: 第二并发控制单元, 用于控制文件分 段发送单元将所述多个文件分段通过不同的起始邮件地址并发传输至多个目 的邮件地址。  Preferably, the sending control unit further includes: a second concurrency control unit, configured to control the file segment sending unit to concurrently transmit the plurality of file segments to the plurality of destination e-mail addresses through different starting e-mail addresses.
优选的, 所述发送模块还包括邮件地址优选单元, 用于对所述起始邮件地 址和 /或目的邮件地址按传输速度设置优先级; 所述文件分段发送单元按照邮 件地址优选单元选择的高优先级的邮件地址发送文件分段。 Preferably, the sending module further includes a mail address preference unit, configured to set a priority according to a transmission speed of the start email address and/or the destination email address; and the file segment sending unit according to the mail The high priority mail address selected by the piece address preference unit sends a file segment.
优选的, 所述接收模块还包括校验单元, 用于校验收到的文件分段或合并 后的目标文件,若校验失败,通过第二即时通讯单元发送传输失败的即时消息; 所述发送控制单元还包括重发控制单元,用于判断第一即时通讯单元是否收到 传输失败的即时消息 ,若收到 ,则通知文件分段发送单元发送相应的文件分段。  Preferably, the receiving module further includes a checking unit, configured to check the received file segment or the merged target file, and if the verification fails, send an instant message of the failed transmission through the second instant messaging unit; The control unit further includes a retransmission control unit, configured to determine whether the first instant messaging unit receives the instant message of the transmission failure, and if received, notify the file segment sending unit to send the corresponding file segment.
本发明还公开了一种应用权利要求 14所述装置的文件传输系统, 包括: 邮件服务器、 即时消息服务器、 起始客户端和目的客户端,  The invention also discloses a file transfer system using the device of claim 14, comprising: a mail server, an instant message server, a start client and a destination client,
所述起始客户端包括起始发送模块,其中起始发送模块包括: 第一即时通 讯单元, 用于发送和 /或接收即时消息; 目的邮件地址确定单元, 用于确定发 送目标文件的目的邮件地址; 目标文件发送单元, 用于将目标文件发送至所述 目的邮件地址; 发送控制单元, 用于控制目标文件发送单元发送目标文件, 以 及通知第一即时通讯单元发送即时消息,所述即时消息包括用于接收目标文件 的控制指令;  The initial client includes an initial sending module, where the initial sending module includes: a first instant messaging unit, configured to send and/or receive an instant message; a destination email address determining unit, configured to determine a destination email for sending the target file An address file sending unit, configured to send the target file to the destination email address, a sending control unit, configured to control the target file sending unit to send the target file, and notify the first instant messaging unit to send the instant message, the instant message Including a control instruction for receiving an object file;
所述目的客户端包括目的接收模块,其中目的接收模块包括: 第二即时通 讯单元, 用于发送和 /或接收即时消息; 目标文件获取单元, 用于从目的邮件 地址获取目标文件; 获取控制单元, 用于判断第二即时通讯单元是否收到包含 有所述控制指令的即时消息, 若收到, 通知目标文件获取单元获取目标文件。  The destination client includes a destination receiving module, where the destination receiving module includes: a second instant messaging unit, configured to send and/or receive an instant message; an object file obtaining unit, configured to acquire a target file from the destination email address; And determining, by the second instant messaging unit, an instant message that includes the control instruction, and if received, notifying the target file obtaining unit to acquire the target file.
与现有技术相比, 本发明具有以下优点:  Compared with the prior art, the present invention has the following advantages:
本发明在使用邮件发送文件的同时,使用即时通讯向接收端发送用于接收 文件的控制指令, 当文件传输完成后, 接收端能够及时地获取该文件。 由于采 用即时消息发送控制指令或通知消息,因此接收端能够随时了解该文件的传输 状态。 例如, 若接收端收到文件已发送的即时消息,如果超过预定的延时期限 后接收端仍未收到该邮件, 则可认为该邮件传输过程异常, 并可将该异常信息 通过即时通讯及时反馈给发送端,发送端也可据此做出响应和处理,保证了文 件传输的可靠性。  The invention sends a control instruction for receiving a file to the receiving end by using instant messaging while sending the file by using the instant mail, and the receiving end can acquire the file in time after the file transfer is completed. Since the instant messaging control command or notification message is used, the receiving end can know the transmission status of the file at any time. For example, if the receiving end receives the instant message that the file has been sent, if the receiving end has not received the mail after the predetermined delay period expires, the mail transmission process may be considered abnormal, and the abnormal information may be timely communicated through instant messaging. Feedback to the sender, the sender can also respond and process accordingly, ensuring the reliability of file transfer.
另外, 邮件发送后接收端依据收到的即时消息通知启动接收过程,避免了 现有技术中接收端不知邮件何时送达而浪费等待时间,也无需接收端在邮件可 接收前持续不停尝试性与邮件服务器连接, 有效的降低了无谓网络通讯负担。  In addition, after the mail is sent, the receiving end initiates the receiving process according to the received instant message notification, which avoids the waste waiting time in the prior art when the receiving end does not know when the mail is delivered, and does not need the receiving end to continuously try before the mail can be received. The connection with the mail server effectively reduces the burden of unnecessary network communication.
进一步的,本发明将待发送的文件分割为多个文件分段,在将一个文件分 段发送至邮件地址后, 向文件接收端发送即时消息通知接收该文件分段, 实现 了文件发送和接收的同步处理,与传统的整个文件发送完毕后才能开始接收的 邮件传输方案比较, 发送和送达之间延迟小, 总的传输时间显著缩短。 假定用 户 a发送 1个 10M的文件到用户 b,按照常规方法,我们假设用户 a的发送邮 件地址是 a@serverl.com, 用户 b的接收邮件地址是 b@server2.com, 发送和 接收数据的速度为 1M/1分钟, serverl到 server2之间的转发延时固定为 1分 钟,则用户 a通过其该邮件账号发送文件到 serverl.com需要 10分钟,延时一分 钟后, 用户 b的邮件账号可以开始接收, 10分钟后接收完毕, 整个传输过程 耗时 21分钟, 这里如果考虑邮件接收端未能及时接收的情况, 则总的传输过 程所耗时间还将更长。 而利用本发明, 假定把文件分作 10段来传输, 每传输 一段后即通知 b开始接收,假定采用同一个帐号同时只能传输 1段(很多邮件 服务器会限制同一用户同时与服务器建立多个连接), 则 a传输完第一段需要 1分钟, 一分钟延时后 b可以开始接收, 1分钟后接收完毕, 完成 1段文件的 传输时间是 3分钟, 而 a发送完第一段后紧接着发送第 2段, 类似的, 延时 1 分钟后 b又开始接收第 2段,依次类推直到发送和接收完最后一段,接受完后 的文件组合过程所耗时间可以忽略, 则总耗时为 12分钟, 比传统技术提高了 80%的效率。 此外, 如果 a同时利用多个帐号向 b传输文件 (假定每个帐号的 传输速度相等并且只受邮件服务器分配的带宽限制而不受用户计算机到其网 络服务商之间连接带宽的限制), 例如每一段用一个帐号传输, 则被分成 10 段的文件可以在 1分钟内全部传输完毕, 1分钟延时后, b可以开始接收, 1 分钟接收完毕, 则传输 1个 10M的文件总耗时仅需 3分钟, 总速度提升达 6 倍之多;更进一步,如果接收端直接利用发送者的接收帐号登录接收邮件的话, 则邮件服务器的转发延迟的 1分钟也将不存在,发送和接收的总时间还可以提 升。 Further, the present invention divides the file to be sent into multiple file segments, and after sending a file segment to the email address, sends an instant message to the file receiving end to receive the file segment, thereby realizing file sending and receiving. Synchronization processing, can only start receiving after the traditional entire file is sent. Compared with the mail transmission scheme, the delay between transmission and delivery is small, and the total transmission time is significantly shortened. Suppose user a sends a 10M file to user b. According to the conventional method, we assume that user a's sending email address is a@serverl.com, user b's receiving email address is b@server2.com, sending and receiving data. The speed is 1M/1 minute, and the forwarding delay between server1 and server2 is fixed at 1 minute. Then user a sends 10 minutes to serverl.com through the email account. After one minute delay, user b's email account. The reception can be started. After 10 minutes, the whole transmission process takes 21 minutes. If the mail receiving end is not received in time, the total transmission process will take longer. With the present invention, it is assumed that the file is divided into 10 segments for transmission, and each time a segment is transmitted, the b is notified to start receiving. It is assumed that only one segment can be transmitted at the same time by using the same account (many mail servers limit the same user to multiple servers simultaneously) Connection), then it takes 1 minute to transfer the first segment. After one minute delay, b can start receiving. After 1 minute, the reception is completed. The transmission time of completing 1 segment of the file is 3 minutes, and a is sent after the first segment is sent. Then send the second paragraph, similarly, after 1 minute delay, b starts to receive the second segment, and so on until the last segment is sent and received. The time taken after the accepted file combination process can be ignored, the total time is In 12 minutes, it is 80% more efficient than traditional technology. In addition, if a uses multiple accounts to transfer files to b at the same time (assuming that the transfer speed of each account is equal and only limited by the bandwidth allocated by the mail server and not limited by the bandwidth of the connection between the user's computer and its network service provider), for example Each segment is transmitted with one account, and the file divided into 10 segments can be completely transferred within 1 minute. After 1 minute delay, b can start receiving. After 1 minute is received, transferring 10M files is only time-consuming. It takes 3 minutes, and the total speed is increased by 6 times. Further, if the receiving end directly uses the sender's receiving account to log in to receive the mail, the mail server's forwarding delay will not exist for 1 minute, and the total number of sending and receiving will not exist. Time can also be improved.
公知的点对点 (P2P )传输技术, 如 BT, 要实现高速文件传输, 一个前 提条件就是网络上存在大量同一资源的多个副本(全部或部分内容), 其分布 的计算机越多, 能够实现的传输速度越快, 众所周知, 这种技术由于存在大量 的尝试性连接以及每个连接实现的有效传速速度和其所占用的带宽比起来有 很大的差距,其带来的网络通讯带宽资源浪费是很严重的, 已经开始受到很多 运营商的限制; 而现有即时通讯技术要实现高速文件传输, 需要进一步扩大可 供客户端连接的带宽,这意味着投资的增加。本发明充分利用用户已有的邮箱 资源和即时通信工具, 在几乎不需要额外成本的情况下实现了文件的高速传 输。 可靠性更高。发送端完成一个文件分段的发送后,依据接收端反馈的即时 消息检验该文件分段发送是否成功, 若失败, 则重新发送该文件分段, 避免了 现有技术中使用邮件传输文件的过程中 ,若文件发送过程中任意部分出现传输 故障就必须重新发送整个文件的问题,提高了文件传输的可靠性,也降低了处 理文件传输异常所需的成本和资源; 另外, 在通过邮件发送文件分段的同时, 可通过发送即时消息发送文件分段,对于邮件传输失败的文件分段能够得到即 时补救, 进一步保证了文件传输的可靠性。 A well-known point-to-point (P2P) transmission technology, such as BT, requires high-speed file transfer. A prerequisite is that there are multiple copies (all or part of the same) of the same resource on the network, and the more computers it distributes, the achievable transmission. The faster the speed, it is well known that this technology has a large number of trial connections and the effective speed of each connection is much larger than the bandwidth occupied by it. The network communication bandwidth resource waste is Very serious, has begun to be limited by many operators; and existing instant messaging technology to achieve high-speed file transfer, the need to further expand the bandwidth available for client connections, which means increased investment. The invention fully utilizes the user's existing mailbox resources and instant communication tools, and realizes high-speed transmission of files with almost no additional cost. More reliable. After the sending end completes the sending of a file segment, it checks whether the file segment transmission is successful according to the instant message fed back by the receiving end, and if it fails, resends the file segment, thereby avoiding the process of using the mail to transfer the file in the prior art. If the transmission failure occurs in any part of the file transmission process, the entire file must be resent, which improves the reliability of file transmission and reduces the cost and resources required to handle file transmission abnormalities. In addition, the file is sent by mail. At the same time of segmentation, the file segment can be sent by sending an instant message, and the file segmentation failure of the mail transmission can be immediately remedied, further ensuring the reliability of the file transmission.
附图说明 DRAWINGS
图 1是现有技术使用电子邮件传输文件的原理示意图;  1 is a schematic diagram of a principle of transmitting a file by using an email in the prior art;
图 2是基于本发明的文件传输方法的实施例 2的步骤流程图;  Figure 2 is a flow chart showing the steps of Embodiment 2 of the file transfer method based on the present invention;
图 3a和图 3b 于本发明所述文件传输方法实施例 4的步骤流程图; 图 4是基于本发明的文件传输装置的实施例的结构框图;  3a and 3b are flowcharts showing the steps of Embodiment 4 of the file transmission method of the present invention; FIG. 4 is a structural block diagram of an embodiment of a file transmission apparatus according to the present invention;
图 5是基于本发明所述文件传输系统的实施例的系统结构框图。  Figure 5 is a block diagram showing the system configuration of an embodiment of the file transfer system according to the present invention.
具体实施方式 detailed description
在介绍本发明的具体实施方式之前,首先介绍一下本发明涉及的一些相关 概念:  Before introducing the specific embodiments of the present invention, first introduce some related concepts involved in the present invention:
本发明所指的即时通讯既包括似于微软 MSN、 windows live messenger, 腾讯 QQ、 雅虎通等使人们能在网上识别在线用户并与他们实时交换消息的技 术,也包括为实现在用户间完成专用信息实时交换的系统,其系统包括至少一 个服务器和多个客户端,客户端与服务器端保持连接,各客户端可以通过服务 器的调度建立直接的连接、互发消息或者通过服务器实时转发的形式向其它客 户端发送消息。  The instant messaging referred to in the present invention includes technologies such as Microsoft MSN, Windows Live Messenger, Tencent QQ, Yahoo Messenger, etc., which enable people to identify online users and exchange messages with them in real time, and also to complete specialization among users. A system for real-time information exchange, the system includes at least one server and a plurality of clients, and the client and the server maintain a connection, and each client can establish a direct connection, a mutual message, or a real-time forwarding through a server through scheduling of the server. Other clients send messages.
本发明所述的即时消息是指各客户端与客户端及服务器之间的实时交互 内容, 包括以明文可读形式向所述客户端的用户展示的信息,也包括各客户端 之间、客户端与服务器之间传输的一些控制命令,所述控制指令包括动作指令、 状态反馈信息、执行动作指令所需参数, 还可以包括各种文件传输状态, 如所 述文件的总段数、 文件分段的校验和、 所有文件分段是否已经传输完毕等, 这 些信息能够使接收端和发送端的动作相互协调, 往往对用户而言是不可见的。 因此, 当接收端收到包含所述控制指令的即时消息后, 即可自动从该指令中或 依据该指令获得目的邮件相关信息,如目的邮件地址及其登录帐号信息、文件 分段参数、 文件校验数据等, 从而顺利完成从目的邮件地址获取目标文件, 而 现给用户, 极大地方便了用户, 提高了文传输的效率。 The instant message according to the present invention refers to real-time interaction content between each client and the client and the server, including information displayed to the client of the client in a plain-readable form, and also includes between clients and clients. Some control commands transmitted between the server and the server, the control commands include action instructions, state feedback information, parameters required to execute the action instructions, and may also include various file transfer states, such as the total number of segments of the file, file segmentation Checksum, whether all file segments have been transferred, etc., this information can coordinate the actions of the receiving end and the sending end, and is often invisible to the user. Therefore, when the receiving end receives the instant message including the control instruction, the destination mail related information, such as the destination email address and its login account information, file segmentation parameter, and file, can be automatically obtained from the instruction or according to the instruction. Verify the data, etc., so that the target file can be successfully obtained from the destination email address, and Now the user is greatly facilitated by the user, and the efficiency of text transmission is improved.
本发明所述"通过起始邮件地址发送文件 "的操作均是指用与起始邮件地 址对应的登录帐号登录到与起始邮件地址对应的邮件服务器后执行文件发送 操作 , 本发明所述"从邮件地址获取文件 "或"从邮件地址获取邮件 "也是指用与 所述邮件地址对应的邮件帐号登录到相应的邮件服务器后执行接收操作。  The operation of "sending a file by the initial mail address" in the present invention means that the file sending operation is performed after logging in to the mail server corresponding to the initial mail address by using the login account corresponding to the initial mail address, which is described in the present invention. Obtaining the file "or" from the mail address to obtain the mail" means that the mailing account corresponding to the mail address is used to log in to the corresponding mail server and then perform the receiving operation.
下面结合附图和具体实施方式对本发明作进一步详细的说明。  The present invention will be further described in detail below in conjunction with the drawings and specific embodiments.
本发明的实施例 1公开了一种文件传输方法, 包括: 确定用于发送目标文 件的目的邮件地址; 将要传输的目标文件发送至所述目的邮件地址, 然后利用 即时通讯向接收端发送即时消息,该即时消息包括用于接收该目标文件的控制 指令; 若接收端收到该控制指令, 从目的邮件地址中获取该目标文件。  Embodiment 1 of the present invention discloses a file transmission method, including: determining a destination email address for transmitting a target file; transmitting an object file to be transmitted to the destination email address, and then transmitting an instant message to the receiving end by using an instant messaging The instant message includes a control instruction for receiving the target file; if the receiving end receives the control instruction, the target file is obtained from the destination email address.
在本例中,文件的收发双方使用同时具有即时通讯功能和邮件收发功能的 通讯终端建立通信连接。 目的邮件地址是接收端用来获取目标文件的邮件地 址, 其既可以是发送方的, 也可以是接收方或者是第三方的邮件地址。 例如, 若选择发送方的邮件地址作为目的邮件地址,发送方只需将目标文件传输至该 邮件地址所在的服务器中,接收端直接利用发送方的邮件地址对应的登录帐号 登录到该邮件地址对应的邮件服务器获取目标文件,由于省略了邮件在不同邮 件服务器之间传输的过程, 因此减少了文件分段从发送到接收所耗费的时间, 对于整个文件传输所耗费的时间也大大减少。  In this example, the transmitting and receiving sides of the file establish a communication connection using a communication terminal having both an instant messaging function and a mail transmitting and receiving function. The destination email address is the email address used by the receiving end to obtain the target file, which may be the sender's address, or the recipient's or third party email address. For example, if the sender's email address is selected as the destination email address, the sender only needs to transfer the target file to the server where the email address is located, and the receiving end directly uses the login account corresponding to the sender's email address to log in to the email address. The mail server obtains the target file, and since the process of transferring the mail between different mail servers is omitted, the time taken for the file segment to be sent from the transmission to the reception is reduced, and the time taken for the entire file transfer is also greatly reduced.
在将目标文件发送至目的邮件地址的过程中 ,将目标文件作为邮件发送至 目的邮件地址是本发明优选的方法。例如,可将目标文件作为邮件的组成部分, 以一封可以直接通过通用协议下载的标准邮件格式发送至目的邮件地址。 另 夕卜,也可以将目标文件以预定格式存储至目的邮件地址所属存储空间的任意位 置, 例如以草稿格式存储, 只要接收端能够按照该预定格式从目的邮件地址获 取邮件内容即可。 但是, 无论选用哪种方式, 其实质都是将目标文件从用户的 客户端本地传输至邮件服务器,再从该服务器将目标文件下载到接收端, 而不 需要邮件服务器之间的转发。  In the process of transmitting the target file to the destination email address, it is a preferred method of the present invention to send the target file as a mail to the destination email address. For example, the target file can be sent to the destination email address as part of the email in a standard email format that can be downloaded directly through a common protocol. Alternatively, the object file may be stored in a predetermined format at any position in the storage space to which the destination email address belongs, for example, in a draft format, as long as the receiving end can obtain the mail content from the destination email address in accordance with the predetermined format. However, no matter which method is chosen, the essence is to transfer the target file locally from the user's client to the mail server, and then download the target file from the server to the receiving end without forwarding between the mail servers.
所述目的邮件地址及帐号信息可以存储在发送方和 /或接收方的通讯终端 本地, 也可以按用户建档存储在服务器上, 例如即时消息服务器。 这样, 收发 双方能够方便的从本地或者从网络上获得可用的共享邮件地址及其帐号信息 用于文件的传输, 提高了邮件帐号的使用效率, 具体实施时可以通过加密、授 权等形式增加安全性。所述存储的与每个用户对应的邮件地址及其帐号信息可 以是 1个也可以是多个, 若为多个, 则可以建立并存储邮件地址列表, 在发送 文件时从该邮件地址列表中选择所需邮件地址作为本次传输的目的邮件地址。 The destination email address and account information may be stored locally on the sender and/or the recipient's communication terminal, or may be stored on the server as a user profile, such as an instant messaging server. In this way, the transmitting and receiving parties can conveniently obtain the available shared email address and its account information from the local or the network for file transmission, thereby improving the efficiency of using the email account, and the encryption and authorization can be implemented through specific implementation. The form of power increases security. The stored email address and the account information corresponding to each user may be one or more. If there are multiple, the email address list may be established and stored, and the email address list is sent when the file is sent. Select the desired email address as the destination email address for this transfer.
由于发送方需要将目标文件发送至目的邮件地址,因此对于发送和接收双 方来讲, 都需要知道目的邮件地址。 本发明优选的, 接收双方利用即时通讯获 得邮件帐号信息: 例如, 若发送文件时使用接收端的邮件地址作为目的邮件地 址,可由接收端使用的通讯终端从本地存储的邮件地址列表中选择一个邮件地 址利用即时通讯按一定格式发送至发送端,发送端收到该信息后自动将其设置 为目的邮件地址。优选的, 为了保证涉及邮件地址信息的即时消息在传输过程 中的安全性, 可对使用即时通讯传输的信息进行加密。  Since the sender needs to send the target file to the destination email address, both the sender and the receiver need to know the destination email address. Preferably, the receiving party obtains the email account information by using instant messaging: For example, if the email address of the receiving end is used as the destination email address when transmitting the file, the communication terminal used by the receiving terminal selects an email address from the list of locally stored email addresses. The instant messaging is sent to the sending end in a certain format, and the sending end automatically sets it as the destination email address after receiving the information. Preferably, in order to ensure the security of the instant message related to the mail address information during transmission, the information transmitted by using the instant messaging may be encrypted.
另外,还可同时存储与每个目的邮件地址相应的传输速度信息。该传输速 度信息可以预先设置, 也可以在历次传输过程中记录并设置。 这样, 可以按照 邮件地址的传输速度设置优先级,然后选择优先级高的地址作为本次传输所使 用的目的邮件地址。 当然,上述设置地址优先级以及选择目的邮件地址的方法
Figure imgf000011_0001
In addition, the transmission speed information corresponding to each destination mail address can be simultaneously stored. The transmission speed information may be set in advance or may be recorded and set during previous transmissions. In this way, the priority can be set according to the transmission speed of the email address, and then the address with the higher priority is selected as the destination email address used for the transmission. Of course, the above method of setting the address priority and selecting the destination email address
Figure imgf000011_0001
收及发送方所在的骨干网络、 运营商和地理位置信息等。  Receive the backbone network, carrier and geographic location information of the sender.
参见图 2, 是基于本发明的文件传输方法的实施例 2的步骤流程图, 在该 实施例中, 首先将目标文件按预置规则分割为多个文件分段, 然后将文件分段 发送至目的邮件地址,并且利用即时通讯向接收端发送含有用于接收文件分段 控制指令的即时消息; 若接收端收到该控制指令,从目的邮件地址获取文件分 段, 并将文件分段合并为目标文件。 具体描述如下:  Referring to FIG. 2, it is a flowchart of the steps of Embodiment 2 of the file transmission method according to the present invention. In this embodiment, the target file is first divided into a plurality of file segments according to a preset rule, and then the file segment is sent to the file segment. The destination email address, and the instant messaging is used to send an instant message containing the instruction for receiving the file segmentation control to the receiving end; if the receiving terminal receives the control command, the file segment is obtained from the destination email address, and the file segment is merged into Target file. The specific description is as follows:
步骤 201 , 将待发送的目标文件按预置规则分割为多个文件分段。  Step 201: The target file to be sent is divided into a plurality of file segments according to a preset rule.
将要发送的文件分割为多个文件分段, 文件分段的大小,可以按照预先设 定的规则进行, 例如, 可以设定为 500k或者 700k字节, 对于小于此设定大小 的文件, 可以直接发送, 大于此设定的文件, 可以先分割为多个文件分段, 各 文件分段可能需要附加一些额外的信息 (如文件分段的总数、 本分段的序号 等); 分段的大小也可以按照目的邮件地址的有效容量进行选择, 例如可以设 定为邮箱有效容量的 1/10, 或者是剩余空间的 1/5等, 这样可以防止由于邮箱 剩余空间不足而造成发送失败。  Split the file to be sent into multiple file segments. The size of the file segment can be set according to preset rules. For example, it can be set to 500k or 700k bytes. For files smaller than this set size, you can directly Sending files larger than this setting can be divided into multiple file segments first. Each file segment may need to be attached with some additional information (such as the total number of file segments, the serial number of the segment, etc.); It can also be selected according to the effective capacity of the destination email address. For example, it can be set to 1/10 of the effective capacity of the mailbox, or 1/5 of the remaining space, etc., so as to prevent the transmission failure due to insufficient remaining space of the mailbox.
步骤 202, 确定本次文件传输要使用的目的邮件地址。 步骤 203, 将一个文件分段作为邮件发送至目的邮件地址中。 Step 202: Determine a destination email address to be used for the file transfer. In step 203, a file segment is sent as an email to the destination email address.
在将文件分段传发送至目的邮件地址的过程中,将文件分段作为邮件发送 至目的邮件地址是本发明优选的方法。 当然, 也可以如实施例 1所述, 将文件 分段以预定格式发送至目的邮件地址。  In the process of transmitting a file segmentation to a destination email address, it is a preferred method of the present invention to send the file segment as a mail to the destination email address. Of course, the file segmentation can also be sent to the destination email address in a predetermined format as described in Embodiment 1.
发送时, 文件分段可以作为邮件的附件或者正文来发送。文件分段发送的 顺序可以是按照文件分段的序号发送,也可以不按照序号顺序进行发送。是否 按照序号来发送并不影响接收端的接收,接收端可以根据邮件或者文件分段以 及下面所提到的即时消息, 判断所接收的分段的序号, 等全部文件分段都接收 完成后, 组装合并文件。  When sent, the file segment can be sent as an attachment or body of the message. The order in which the file segments are sent may be sent according to the sequence number of the file segment, or may not be sent in the order of the sequence numbers. Whether the transmission according to the serial number does not affect the reception of the receiving end, the receiving end can judge the serial number of the received segment according to the mail or the file segment and the instant message mentioned below, and after all the file segments are received, the assembly is completed. Merge files.
步骤 204, 向接收端发送即时消息, 该即时消息包括用于接收文件分段的 控制指令。  Step 204: Send an instant message to the receiving end, where the instant message includes a control instruction for receiving the file segment.
向接收端发送的即时消息包含用于接收文件分段的控制指令,该控制指令 可按照双方约定的格式进行设置,并且该控制指令的执行可完全在计算机内部 自动完成, 而不用显示给用户或需要用户的参与, 当然, 如有必要, 指令的执 行过程也可以融入用户的交互, 比如需要用户的确认等。 优选的, 所述即时消 息还可以包括所述文件分段总段数、每一文件段的标识信息、所述文件分段所 在的目的邮件地址信息等,根据需要, 所述邮件地址信息既可以只包括邮件地 址, 也可以包括该邮件地址的帐户信息如邮件收发服务器、登录用户名、 密码 等; 同样,这些帮助文件分段正常重组的信息也可以附加在邮件的特定部分进 行传输: 比如附加在邮件主题、 正文、 附件上等都是可选的。  The instant message sent to the receiving end includes a control instruction for receiving the file segment, the control instruction can be set according to a format agreed by both parties, and the execution of the control instruction can be completely completed inside the computer without being displayed to the user or The user's participation is required. Of course, if necessary, the execution of the instructions can also be integrated into the user's interaction, such as the confirmation of the user. Preferably, the instant message may further include the total number of segments of the file segment, the identification information of each file segment, the destination email address information of the file segment, and the like, and the email address information may only be as needed. Including the email address, and may also include account information of the email address, such as a mail server, a login user name, a password, etc. Similarly, the information of the normal reorganization of the help file segments may be attached to a specific part of the mail for transmission: for example, attached The subject, body, attachments, etc. are optional.
是否需要将目的邮件地址信息以即时消息发送给接收端可由本领域技术 人员在实施本发明时自行决定, 本发明对此没有限制。 在本例中, 若使用发送 方的邮件地址作为目的邮件地址,则可以在即时消息中包含目的邮件地址信息 以便接收端能够知道从哪里接收,为了接收方顺利登录邮件服务器完成邮件接 收, 本例所述目的邮件地址信息应该包含相应的登录帐号信息。 当然, 若每个 文件分段都发送至相同的目的邮件地址,该信息只发送一次即可; 若每个文件 分段可能使用不同的目的邮件地址 ,则可以在每次给接收端的通知信息中包含 目的邮件地址信息。 又例如, 若接收双方已经建立了信任关系, 则可以按预定 原则选用约定的邮件地址,这样则不必再发送目的邮件地址信息。更进一步的, 还可将文件分段加密后发送, 以提高传输过程中的安全性。  Whether the destination mail address information needs to be sent to the receiving end in an instant message can be determined by a person skilled in the art at the time of implementing the present invention, and the present invention is not limited thereto. In this example, if the sender's email address is used as the destination email address, the destination email address information can be included in the instant message so that the receiver can know where to receive it, and the receiver can successfully log in to the mail server to complete the email reception. The destination email address information should include corresponding login account information. Of course, if each file segment is sent to the same destination email address, the information can only be sent once; if each file segment may use a different destination email address, it can be sent to the receiving party each time. Contains the destination email address information. For another example, if the receiving parties have established a trust relationship, the agreed email address can be selected according to the predetermined principle, so that the destination email address information does not need to be sent. Further, the file segment can be encrypted and sent to improve security during transmission.
步骤 205: 接收端接收即时消息, 并从目的邮件地址中获 目应的文件分 段。 Step 205: The receiving end receives the instant message, and obtains the file from the destination email address. Paragraph.
由于接收端是在一个文件分段发送完成后立即开始接收该文件分段,而不 必等待发送端发送完所有的文件分段后才开始接收, 因此, 大大减少了文件传 输所需的时间。 其中, 从目的邮件地址中提取文件分段可以按预置规则处理, 如规定文件分段位于邮件正文或者邮件附件中, 另外,发送方也可以在发送的 即时消息中附带提取文件分段的规则。例如,从目的邮件地址中获取文件分段 可按以下步骤: 首先, 将邮件从目的邮件地址中下载到本地, 然后从该邮件或 附件中提取相应的文件分段。 当然, 也可以直接从邮件地址中获取文件分段, 例如文件分段作为邮件附件, 则直接取得该附件即可。 由于邮箱中可能还存在 有其它的邮件,可以通过即时消息确定只接收特定的邮件主题的邮件, 不接收 其它的主题的邮件。  Since the receiving end starts receiving the file segment immediately after the completion of the transmission of a file segment, it does not have to wait for the transmitting end to send all the file segments before starting to receive, thereby greatly reducing the time required for file transfer. The file segmentation from the destination email address may be processed according to a preset rule, such as specifying that the file segment is located in the body of the email or the email attachment, and the sender may also attach a rule for extracting the file segment in the sent instant message. . For example, to get a file segment from the destination email address, follow these steps: First, download the message from the destination email address to the local, and then extract the corresponding file segment from the message or attachment. Of course, you can also obtain the file segment directly from the email address. For example, if the file segment is used as an email attachment, the attachment can be obtained directly. Since there may be other emails in the mailbox, you can use instant messaging to determine that only emails that receive a specific email subject are received, and that emails from other topics are not received.
步骤 206, 重复步骤 203至 205, 直到发送和获取完所有的文件分段。 步骤 207, 将接收到的文件分段组合成为目标文件。 例如, 将得到的文件 分段根据其标识信息组合成为目标文件。  Step 206, steps 203 through 205 are repeated until all file segments are sent and retrieved. Step 207: Combine the received file segments into a target file. For example, the resulting file segments are combined into a target file based on their identification information.
需要说明的是, 上述实施例所述的步骤流程并非本发明唯一的实现方式, 本领域的技术人员在实施本发明时可对其调整或组合, 本发明对此不作限制。 例如, 确定目的邮件地址既可以在分割文件之前也可以在分割文件之后进行。  It should be noted that the flow of the steps in the above embodiments is not the only implementation of the present invention, and those skilled in the art may adjust or combine the same in the implementation of the present invention, which is not limited by the present invention. For example, determining the destination email address can be done either before splitting the file or after splitting the file.
在本发明文件传输方法的实施例 3中,首先确定一个发送文件使用的起始 邮件地址, 然后将所述文件分段利用该起始邮件地址发送至目的邮件地址。一 般情况下,可选择发送方自己拥有的邮件地址作为起始邮件地址,选择接收端 自己的邮件地址作为目的地址,这样, 发送方只需知道目的邮件地址的地址名 即可, 而不需要了解其登录信息, 双方不必交换彼此的登录帐号信息, 因此, 在使用各自地址的前提下, 保证了双方地址的安全和隐私, 此外, 也可以按照 实施例 1 所述的利用即时通讯获取或从预置的邮件地址列表中选择目标邮件 地址类似的方法,选择起始邮件地址, 相关内容可参考上述实施例, 这里不再 赘述。  In Embodiment 3 of the file transfer method of the present invention, a start mail address used for transmitting a file is first determined, and then the file segment is transmitted to the destination mail address using the start mail address. Under normal circumstances, you can select the email address owned by the sender as the starting email address, and select the recipient's own email address as the destination address. In this way, the sender only needs to know the address name of the destination email address, but does not need to understand In the login information, the two parties do not need to exchange the login account information of each other. Therefore, the security and privacy of the addresses of the two parties are ensured under the premise of using the respective addresses. In addition, the instant access may be used to obtain or obtain the information according to the first embodiment. For the method of selecting the destination email address in the mailing address list, select the starting email address. For related content, refer to the above embodiment, and details are not described herein.
在本发明文件传输方法的实施例 4中:选择多个邮件地址作为起始邮件地 址。 采用并发传输可以最大可能的利用用户本地和网络的带宽资源, 这样, 将 文件分段发送至目的邮件地址的时间将显著减少,也进一步减少了整个文件传 输所耗费的时间,提高了文件传输的即时性。所述并发传输既可以采用多进程 传输也可以采用多线程传输, 也可以采用其它并发传输方式。 下面, 以多线程 为例并结合图 3a对该实施例进行描述。 In Embodiment 4 of the file transfer method of the present invention, a plurality of mail addresses are selected as the start mail address. The concurrent transmission can make the most use of the user's local and network bandwidth resources, so that the time to send the file segmentation to the destination email address will be significantly reduced, which further reduces the time spent on the entire file transfer and improves the file transfer. Immediacy. The concurrent transmission can adopt multiple processes Transmissions can also be multi-threaded or other concurrent transmissions. Hereinafter, the embodiment will be described by taking multithreading as an example and referring to FIG. 3a.
步骤 301 : 将待发送的目标文件分割为多个文件分段。  Step 301: Split the target file to be sent into multiple file segments.
步骤 302: 确定本次文件传输要使用的起始邮件地址。  Step 302: Determine the starting email address to be used for this file transfer.
步骤 303: 确定本次文件传输要使用的目的邮件地址。  Step 303: Determine the destination email address to be used for this file transfer.
步骤 304: 启动一个线程。  Step 304: Start a thread.
步骤 305: 使用线程选择一个尚未发送的文件分段利用一个起始邮件地址 将该文件分段传输至目的邮件地址。  Step 305: Use the thread to select a file segment that has not been sent, and use a starting email address to segment the file to the destination email address.
步骤 306: 重复执行步骤 304, 直到启动了预定的线程个数。  Step 306: Repeat step 304 until the predetermined number of threads is started.
步骤 307: 判断所述线程的传输状态, 若某个线程的传输过程已结束, 执 行步骤 308。  Step 307: Determine the transmission status of the thread. If the transmission process of a thread has ended, go to step 308.
步骤 308: 向接收端发送即时消息, 该即时消息含有用于接收文件分段的 控制指令。  Step 308: Send an instant message to the receiving end, the instant message containing a control instruction for receiving the file segment.
步骤 309: 判断所有的文件分段是否已发出, 若没有, 执行步骤 305。 当然 ,以上所述的利用多个线程发送文件分段的方法只是一种优选的实现 方式, 另外, 也可以按以下方式实现:  Step 309: Determine whether all file segments have been sent. If not, go to step 305. Of course, the above method of transmitting file segments by using multiple threads is only a preferred implementation manner, and can also be implemented as follows:
a)按预定规则启动多个线程。 其中, 线程的个数可按一定规则设定, 例如 网络环境、 设备性能等。  a) Start multiple threads according to predetermined rules. The number of threads can be set according to certain rules, such as network environment and device performance.
b)每一个线程利用一个起始邮件地址将一个文件分段传输至目的邮件地 址, 传输结束后, 仍由该线程选择其他文件分段继续传输, 而不必重新启动新 的线程。  b) Each thread uses a starting email address to transfer a file segment to the destination email address. After the transfer is complete, the thread still selects other file segments to continue the transmission without having to restart the new thread.
下面参见图 3b对接收端在本例中的步骤流程进行描述:  The process flow of the receiving end in this example is described below with reference to Figure 3b:
步骤 3101 : 判断是否接收到新的包含接收文件分段控制指令的即时消息, 若有, 执行步骤 3092。  Step 3101: Determine whether a new instant message including the received file segmentation control instruction is received, and if yes, perform step 3092.
步骤 3102: 从目的邮件地址中获取与所述控制指令相应的文件分段。 步骤 3103: 是否获取到所有的文件分段, 若没有执行步骤 3101 , 否则执 行步骤 3104。  Step 3102: Obtain a file segment corresponding to the control instruction from the destination email address. Step 3103: Whether all file segments are obtained. If step 3101 is not performed, step 3104 is performed.
步骤 3104: 将获取到的文件分段合并为目标文件。  Step 3104: Combine the obtained file segments into a target file.
以上介绍了本发明基于文件传输方法的实施例 4, 本发明的实施例 5与实 施例 4的主要区别在于目的邮件地址为多个。在该例中,每一个目的邮件地址 对应一个或多个起始件地址。对于每一个线程都是将文件分段通过起始邮件地 址发送至对应的目的邮件地址;相应的,接收端从不同的目的邮件地址中获得 文件分段, 并组合为目标文件。 容易看出, 由于文件分段被分散到不同的目的 邮件地址, 因此也分散了目的邮件地址所在邮件服务器的压力, 与实施例 3 比较,避免了从同一个目的邮件地址获取文件分段给服务器造成的负荷,也进 一步提高了接收端获取文件分段的效率,提高了整个文件传输的速度。 实施例 4的其它内容请参见上述实施例 , 这里不再赞述。 The fourth embodiment of the present invention is based on the file transfer method. The main difference between the fifth embodiment of the present invention and the fourth embodiment is that the destination mail address is plural. In this example, each destination email address corresponds to one or more starter addresses. For each thread, the file is segmented through the starting message The address is sent to the corresponding destination email address; correspondingly, the receiving end obtains the file segment from different destination email addresses and combines them into the target file. It is easy to see that since the file segmentation is dispersed to different destination email addresses, the pressure of the mail server where the destination email address is located is also dispersed. Compared with the third embodiment, the file segmentation from the same destination email address is avoided. The resulting load further improves the efficiency of the file segmentation at the receiving end and improves the speed of the entire file transfer. For other contents of Embodiment 4, please refer to the above embodiment, which is not mentioned here.
需要说明的是,在上述几个实施例中, 向接收端发送含有控制指令的即时 消息可以在一个文件分段发送至目的邮件地址之后进行; 当然,也可以在将多 个文件分段发送至目的邮件地址之后, 再发送该即时消息。 二者的区别在于, 若选择后者, 则该即时消息中应该含有接收所述多个文件分段的控制指令。选 择哪种发送方式可在实施本发明时, 由本领域技术人员自行决定。  It should be noted that, in the above embodiments, sending an instant message containing a control command to the receiving end may be performed after a file segment is sent to the destination email address; of course, multiple file segments may also be sent to the file segment. After the destination email address, the instant message is sent. The difference between the two is that if the latter is selected, the instant message should contain a control instruction to receive the plurality of file segments. Which transmission method is selected can be determined by those skilled in the art in the practice of the present invention.
优选的,还可计算并在所发送的邮件中加入文件分段的校验和信息。接收 端校验收到的文件分段或合并后的目标文件, 若校验失败, 则向发送方发送传 输失败的即时消息; 若发送方收到该即时消息, 重新发送相应的文件分段。  Preferably, the checksum information of the file segment can also be calculated and added to the sent mail. The receiving end verifies the received file segment or the merged target file, and if the verification fails, sends an instant message of the failed transmission to the sender; if the sender receives the instant message, resends the corresponding file segment.
在文件分段中,按照一定的校验和算法得到文件分段的校验和数据, 并把 校验和数据与该文件分段组成数据包作为邮件发送,或者将校验和数据作为即 时消息发送至接收端。 这样做, 可避免在邮件发送过程中, 由于网络传输等原 因, 造成的数据传输错误。 例如, 接收端得到文件分段后, 根据校验和数据判 断文件分段是否出错, 如果出错, 则校验数据失败, 此时接收端可向发送方发 送即时消息, 要求重发出错的文件分段。 另外, 接收端也可以再次从邮件地址 中接收出错的邮件, 并重新校验文件分段, 若校验通过, 则删除邮件地址中接 收过的邮件, 若重新从邮件地址中接收邮件的次数超过预设的次数, 例如 5 或者 10次, 则要求发送方重发相应的邮件。 采用本步骤的好处是, 当发现有 文件分段数据错误时, 只需要重新发送或获取发生错误的文件分段即可,避免 了现有技术中, 若文件传输错误则需要重新传输整个目标文件的问题, 节约了 成本和资源。  In the file segmentation, the checksum data of the file segment is obtained according to a certain checksum algorithm, and the checksum data and the file segmentation data packet are sent as an email, or the checksum data is used as an instant message. Send to the receiving end. In doing so, it is possible to avoid data transmission errors caused by network transmission and the like during mail transmission. For example, after receiving the file segmentation, the receiving end determines whether the file segmentation is in error according to the checksum data. If the error occurs, the verification data fails. At this time, the receiving end may send an instant message to the sender, requesting resending the file segment that is in error. segment. In addition, the receiving end can also receive the erroneous mail from the mail address again, and re-verify the file segmentation. If the verification is passed, the received mail in the mail address is deleted, and if the mail is re-received from the mail address more than once The preset number of times, for example 5 or 10 times, requires the sender to resend the corresponding message. The advantage of using this step is that when it is found that there is a file segmentation data error, it is only necessary to resend or obtain the file segment in which the error occurred. In the prior art, if the file transmission error occurs, the entire target file needs to be retransmitted. The problem, saving costs and resources.
进一步的,还可以在整个目标文件中加入校验和数据,或者在发送最后一 个文件分段时, 附带发送目标文件的校验和数据,在接收端合并得到目标文件 后, 再校验整个文件, 判断是否出错, 这样可以避免文件分割和合并时造成的 错误。 如果接收端发现校验和错误, 可以向发送方发送即时消息, 要求重新发 送相应的文件分段。 另外需要说明的是,在上述几个实施例中,将全部文件分段作为邮件发送 至接收端只是本发明优选的方法, 另夕卜,还可以选择将部分文件分段作为即时 消息发送至接收端, 例如, 判断即时通讯的传输速率, 若大于预定阀值, 则利 用即时通讯将文件分段以即时消息的方式发送至接收端。这样,通过综合比较 邮件传输与即时通讯传输, 让二者进行优化组合, 以提高文件传输的速度。 又 比如,在使用邮件发送文件分段出现异常时,可通过即时消息发送该文件分段, 这样可以避免在邮件传输出现异常时造成的传输中断,使整个文件传输的过程 变得更加可靠。相应的, 若使用即时消息发送文件分段, 接收端也需要从该即 时消息中获取文件分段,并将从目的邮件地址获取的文件分段一起合并为目标 文件。 Further, the checksum data may be added to the entire target file, or the checksum data of the target file may be sent when the last file segment is sent, and the target file is merged at the receiving end, and then the entire file is verified. , to determine whether there is an error, this can avoid errors caused by file splitting and merging. If the receiver finds a checksum error, it can send an instant message to the sender requesting that the corresponding file segment be resent. In addition, in the foregoing embodiments, sending all file segments as a mail to the receiving end is only a preferred method of the present invention, and optionally, part of the file segment is sent as an instant message to the receiving. For example, the transmission rate of the instant messaging is determined. If the transmission rate is greater than the predetermined threshold, the file segment is sent to the receiving end by using instant messaging. In this way, by comprehensively comparing mail transmission and instant messaging transmission, the two can be optimally combined to improve the speed of file transmission. For example, when an abnormality occurs in the file segmentation using the mail, the file segment can be sent by using an instant message, so that the transmission interruption caused by the abnormality of the mail transmission can be avoided, and the whole file transfer process becomes more reliable. Correspondingly, if the file segment is sent by using the instant message, the receiving end also needs to obtain the file segment from the instant message, and merge the file segments obtained from the destination email address into the target file.
以上描述了本发明的文件传输方法, 下面结合具体的应用环境,从用户使 用的角度对本发明所述的文件传输方法做进一步进行详细描述。  The file transfer method of the present invention has been described above. The file transfer method of the present invention will be further described in detail from the perspective of user use in conjunction with a specific application environment.
实施例 6是基于本发明的文件传输方法的具体应用实施例的描述,在该实 施例中,  Embodiment 6 is a description of a specific application embodiment of a file transmission method based on the present invention, in this embodiment,
用户 A需要将文件 F发送给用户 B,用户 A拥有两个由邮件服务器 Sa提 供的邮件地址 sl@maill.com和 s2@mail2.com;用户 B拥有两个由邮件服务器 Sb提供的邮件地址: rl@mail3.com, r2@mail4.com。 用户 A和用户 B使用同 时具有即时消息和邮件收发功能的通讯终端建立通信连接,并使用即时消息服 务器 Sc实现即时通讯。  User A needs to send file F to user B. User A has two email addresses sl@maill.com and s2@mail2.com provided by mail server Sa; user B has two email addresses provided by mail server Sb: Rl@mail3.com, r2@mail4.com. User A and User B establish a communication connection using a communication terminal having instant messaging and mail transceiving functions, and use instant messaging server Sc to implement instant messaging.
该实施例采用用户 A的一个邮件地址 sl@maill .com作为目的邮件地址, 用户 A直接将文件分段从本地传输至目的邮件地址 sl@maill .com, 在将文件 分段传输至目的邮件地址的过程中, 用户 A既可以选择将 sl@maill.com作为 发送地址将文件分段作为邮件的组成部分,以一封可以直接通过通用协议下载 的标准邮件格式发送至 sl@maill .com, 也可以采用特定格式将文件分段存储 至 sl@maill.com所属存储空间的任意位置, 只要用户 B能够按照该预定格式 从 sl@maill.com获取邮件内容即可。 该实施例具体实现方式如下:  In this embodiment, an email address sl@maill.com of user A is used as the destination email address, and user A directly transfers the file segment from the local to the destination email address sl@maill.com, and transmits the file segment to the destination email address. In the process, user A can choose to use sl@maill.com as the sending address to segment the file as part of the mail, and send it to sl@maill.com in a standard mail format that can be directly downloaded through the general protocol. The file segment can be stored in a specific format to any location in the storage space to which sl@maill.com belongs, as long as User B can obtain the mail content from sl@maill.com according to the predetermined format. The specific implementation manner of this embodiment is as follows:
步骤 401, 首先用户 A启动文件发送过程, 用户 A选择一个文件, 选择 接收用户 B, 然后发出开始传送的命令, 则用户 A所在的即时通讯终端 (以 下简称发送端 A ) 自动通过即时消息向用户 B所使用的即时通讯终端 (以下 简称接收端 B )发送一些本次传输的基本信息, 如要传输的文件名称, 文件大 小, 及用于校验文件的校验值等信息。 步骤 402, 判断用户 B是否确认接收, 若是, 执行步骤 403 , 若否, 停止 传送。 Step 401: First, user A initiates a file sending process, user A selects a file, selects receiving user B, and then issues a command to start transmission, and the instant messaging terminal (hereinafter referred to as sender A) where user A is located automatically sends the message to the user through the instant message. The instant messaging terminal used by B (hereinafter referred to as the receiving end B) sends some basic information of the current transmission, such as the file name to be transmitted, the file size, and the check value used to verify the file. In step 402, it is determined whether the user B confirms the reception. If yes, step 403 is performed, and if not, the transmission is stopped.
步骤 403,用户 B确认接收后 ,设置发送端和接收端使用的目的邮件地址。 可预先在即时消息服务器中建立用户 A和用户 B与其各自可使用邮件地 址的邮件地址列表。 当双方确认传输文件后, 由即时消息服务器从所存储的邮 件地址列表中为双方用户选择一个高优先级的邮件地址作为目的邮件地址,并 将该地址信息通知接收双方或者由接收双方自行从即时消息服务器上获取。所 述邮件地址列表的格式示意如下:  Step 403: After confirming the reception, the user B sets the destination email address used by the sender and the receiver. A list of mail addresses for User A and User B and their respective mail addresses can be established in advance in the instant messaging server. After the two parties confirm the transmission of the file, the instant message server selects a high priority email address as the destination email address for the two users from the stored email address list, and notifies the receiving party of the address information or the receiving party itself Obtained on the message server. The format of the list of email addresses is as follows:
Figure imgf000017_0001
Figure imgf000017_0001
以用户 A的邮件地址列表为例,其 Sl@maill.com向服务器公开的地址信 息包括邮件地址及其登录权限信息 ,而 S2@mail2.com则仅公开了独立的地址 , 没有帐户信息,表示前者可以授权特定用户用于邮件发送, 而后者仅用于自己 接收。  Taking the mail address list of user A as an example, the address information disclosed by Sl@maill.com to the server includes the mail address and the login authority information, and S2@mail2.com only discloses the independent address, and there is no account information, indicating The former can authorize specific users for mailing, while the latter is only used for self-receiving.
当然,所述邮件地址列表的格式及内容只是为了便于说明该实施例的实现 过程,本领域技术人员在实施本发明时可综合多种因素来管理用户邮件地址信 息。 例如, 对邮件地址优先级的设定就可结合用户所在位置、 邮件服务器所在 位置综合考虑。 比如, 若用户在北京使用北京电信的一个邮件地址作为目的邮 件地址给位于重庆的用户发送时速度较快,但如果用户在重庆仍用该北京电信 的邮件账户作为目的邮件地址, 则发送速度就会比较慢, 因此邮件地址优先级 的设置可根据用户所在位置、邮件服务器所在位置等多种因素进行设置。对于 公开的地址信息能够被哪些用户用作起始或目的邮件地址,则可以由用户自行 设定信赖的好友清单列表由系统执行过滤。  Of course, the format and content of the mail address list are only for convenience of explaining the implementation process of the embodiment, and those skilled in the art can implement various factors to manage the user's mail address information when implementing the present invention. For example, the setting of the email address priority can be considered in combination with the location of the user and the location of the mail server. For example, if the user uses Beijing Telecom's email address as the destination email address in Beijing to send the user in Chongqing, the speed is faster, but if the user still uses the Beijing Telecom email account as the destination email address in Chongqing, the sending speed will be It will be slower, so the email address priority setting can be set according to various factors such as the user's location and the location of the mail server. For the user whose public address information can be used as the starting or destination email address, the user can set the trusted friend list list to be filtered by the system.
另外, 邮件地址列表也可以存储在用户终端的本地。 例如, 当用户 B确 认传输后, 从接收端 B或计算机中所存储的邮件地址列表中选择一个邮件地 址经加密后, 使用即时通讯的方式传输至发送端 A; 发送端 A在收到该即时 信息后, 对其解密并提取出邮件地址然后自动将其设置为目的邮件地址。 In addition, the mail address list can also be stored locally on the user terminal. For example, after user B confirms the transmission, an e-mail address is selected from the list of e-mail addresses stored in the receiving end B or the computer, and then transmitted to the sending end A by means of instant messaging; the sending end A receives the instant. After the message is decrypted and extracted, the email address is automatically set to the destination email address.
从本发明这一实施例的描述可知, 无论双方的邮件地址以何种方式存储, 所述确定目的邮件地址的过程均可自动完成, 而不需要用户的参与。正如前文 本发明 此 作限 ii。 、 11 、 、 、 、 、 It can be seen from the description of this embodiment of the present invention that the process of determining the destination email address can be automatically completed regardless of the manner in which the email addresses of the two parties are stored, without the participation of the user. As stated in the previous text, this is limited to ii. , 11 , , , , , ,
步骤 404 , 发送端 A将文件 F分割为多个文件分段。  Step 404, the sender A divides the file F into a plurality of file segments.
步骤 405 , 取第 i个文件分段, i的取值范围是 1到文件分段的总数。  Step 405: Take the i-th file segment, where the value of i ranges from 1 to the total number of file segments.
步骤 406, 计算文件分段 i的内容校验值。  Step 406: Calculate a content check value of the file segment i.
步骤 407, 将文件分段 i的内容校验值作为邮件的一部分, 文件分段 i的 内容作为附件或邮件内容发送到选择的目的邮件地址 Sl@maill .com中。  Step 407: The content check value of the file segment i is used as a part of the mail, and the content of the file segment i is sent as an attachment or mail content to the selected destination mail address Sl@maill.com.
步骤 408, 向接收端 B发送即时消息, 该即时消息包括用于接收分段 i的 控制指令。  Step 408: Send an instant message to the receiving end B, where the instant message includes a control instruction for receiving the segment i.
可选的, 可在向接收端 B发送的即时消息中包含该目的邮件地址信息。 步骤 409: 统计在当前时段邮件的发送速度, 更新统计结果。  Optionally, the destination email address information may be included in the instant message sent to the receiving end B. Step 409: Count the sending speed of the mail in the current time period, and update the statistical result.
统计结果最终会被更新到邮件地址列表中。保存统计结果目的是在有多个 地址可供选择时, 选择最快的地址发送。  The statistics will eventually be updated to the email address list. The purpose of saving statistics is to select the fastest address to send when there are multiple addresses to choose from.
步骤 410, 重复执行步骤 405, 直至所有的分块发送完毕。  In step 410, step 405 is repeated until all the blocks are sent.
在接收端 A发送文件分段的同时, 接收端 B执行以下处理过程: 步骤 411 : 判断是否收到包含接收文件分段 i的控制指令的即时消息, 若 收到执行以下步骤。  While the receiving end A sends the file segment, the receiving end B performs the following processing: Step 411: Determine whether an instant message containing the control command of the received file segment i is received, and if the following steps are received.
步骤 412: 从即时消息中获得目的邮件地址信息。  Step 412: Obtain the destination email address information from the instant message.
从即时消息中获得该目的邮件地址 sl@maill .com的地址信息, 包括: 接 收服务器、发送服务器、登录用户名、登录密码等。本步骤为可选步骤, 例如, 收发双方已经建立规则可以正确获知本次发送操作所使用的目标邮件地址,如 在好友信息中记载、从即时通讯服务器料中获取、 目的邮件地址在开始传输之 前由接收端 B自动提供给发送端 A并且做了记录等等, 则该步骤不必执行。  The address information of the destination email address sl@maill.com is obtained from the instant message, including: receiving server, sending server, login user name, login password, and the like. This step is an optional step. For example, the sending and receiving parties have established rules to correctly know the destination email address used in this sending operation, such as being recorded in the friend information, obtained from the instant messaging server, and before the destination email address is transmitted. This step is not necessarily performed by the receiving end B automatically providing it to the transmitting end A and making a record or the like.
步骤 413: 接收端 B从目的邮件地址 sl@maill.com中下载邮件。 如果下 载失败, 则等待一定时间后重新下载, 如果重复一定次数仍不能下载成功, 则 通知用户 A重新发送文件分段 i。  Step 413: The receiving end B downloads the mail from the destination email address sl@maill.com. If the download fails, wait for a certain period of time and then re-download. If the download cannot be successful after repeating a certain number of times, notify user A to resend file segment i.
步骤 414: 成功下载邮件后, 向发送端 A发送通知。  Step 414: After successfully downloading the mail, send a notification to the sender A.
用户 A可根据需要决定是否删除目的邮件账户中的邮件。 步骤 415: 从邮件中提取文件分段 i, 并校验该文件分段。 User A can decide whether to delete the mail in the destination mail account as needed. Step 415: Extract the file segment i from the mail and verify the file segmentation.
首先从邮件中得到文件分段 i的数据和校验和数据 , 然后按预定算法计算 下载的文件块 i内容的校验值, 并与接收到的校验和数据进行比较, 若相同, 则表示分块 i接收成功。 否则从目的邮件地址重新下载文件分段 i的内容, 如 果重复指定的次数之后仍不成功, 则通知发送端 A重新发送文件分段 i。  First, the data of the file segment i and the checksum data are obtained from the mail, and then the check value of the content of the downloaded file block i is calculated according to a predetermined algorithm, and compared with the received checksum data, if the same, it indicates Block i received successfully. Otherwise, the content of the file segment i is re-downloaded from the destination email address, and if it is not successful after repeating the specified number of times, the sender A is notified to resend the file segment i.
步骤 416: 判断是否收到所有的文件分段, 若收到, 执行步骤 417。  Step 416: Determine whether all the file segments are received. If yes, go to step 417.
步骤 417: 按预定算法, 将所有的文件分段合并为目标文件。  Step 417: Combine all the file segments into the target file according to a predetermined algorithm.
采用与文件分割相应的算法合并文件分段。  The file segmentation is merged using an algorithm corresponding to file segmentation.
步骤 418: 校验合并后的目标文件, 若失败, 向发送端 A发送通知信息, 重发该文件。  Step 418: Verify the merged target file. If it fails, send a notification message to the sender A to resend the file.
步骤 419: 统计当前时段邮件的接收速度, 将统计结果更新到服务器上的 邮件地址列表。  Step 419: Count the receiving speed of the current time period mail, and update the statistical result to the mail address list on the server.
以上结合具体应用环境对本发明所述方法进行了描述, 在下面的实施例 6 中, 发送端 A首先将文件分段传输至起始邮件地址, 然后由该起始邮件地址 所对应的邮件服务器 Sa将该邮件发送至邮件服务器 Sb,最后接收端 B从邮件 服务器 Sb的邮件地址中获得邮件以及文件分段。 为了更好的理解本发明, 下 面的描述中, 发送端 A将两个文件分段分别通过邮件地址 sl@maill.com和 s2@mail2.com并发传输至收端 B的邮件地址 rl@mail3.com和 r2@mail4.com, 接收端 B从 rl@mail3.com和 r2@mail4.com接收邮件及相应的文件分段。  The method of the present invention has been described above in connection with a specific application environment. In the following embodiment 6, the sender A first transmits the file segment to the start email address, and then the mail server Sa corresponding to the start email address. The mail is sent to the mail server Sb, and finally the receiving end B obtains the mail and the file segment from the mail address of the mail server Sb. In order to better understand the present invention, in the following description, the sender A sends the two file segments to the mail address rl@mail3 of the receiving end B through the mail addresses sl@maill.com and s2@mail2.com. Com and r2@mail4.com, Receiver B receives mail and corresponding file segments from rl@mail3.com and r2@mail4.com.
其中, 目的邮件地址和起始邮件地址可由服务器按照双方邮件地址的传输 速度等因素进行综合比较, 给出最佳起始和目的邮件地址对, 当然, 也可以由 接收端 B提供地址信息给发送端 A, 再由用户 A结合自己地址的传输速度进 行比较选择, 采用这种方式, 接收端 B可以不必提供本地邮件地址的登录密 码。  The destination email address and the initial email address may be comprehensively compared by the server according to factors such as the transmission speed of the email addresses of the two parties, and the best starting and destination email address pairs are given. Of course, the receiving terminal B may also provide the address information for sending. End A, and then user A compares the transmission speed of the own address with the transmission speed. In this way, the receiving end B does not have to provide the login password of the local mail address.
开始实际的文件数据传输前, 接收端 A将要传输的文件分割为多块, 执 行如下操作:  Before starting the actual file data transmission, the receiving end A divides the file to be transmitted into multiple blocks, and performs the following operations:
a)计算分块的内容校验值。  a) Calculate the content check value of the block.
b)启动第一线程。  b) Start the first thread.
c)启动第二线程。  c) Start the second thread.
d)第一线程将分块 i的内容校验值作为 Email的标题, 分块 i的内容作为 附件, 通过 sl@maill .com发送邮件到 rl@mail3.com中。 e)第二线程将分块 j的内容校验值作为 Email的标题, 分块 j的内容作为 附件, 通过 s2@mail2.com发送邮件到 r3@mail4.com中。 d) The first thread uses the content check value of the block i as the title of the email, and the content of the block i as an attachment, and sends the mail to rl@mail3.com through sl@maill.com. e ) The second thread uses the content check value of the block j as the title of the email, and the content of the block j as an attachment, and sends the mail to r3@mail4.com through s2@mail2.com.
f)分别判断上述两个线程的传输过程是否已完成, 若完成, 向接收端 B发 送开始接收文件分段的即时消息,然后重复执行 d)或者 e)直到发送完所有的文 件分段。 当然, 在一个线程传输完成后, 结束该线程, 并重新启动一个线程也 是可以的。  f) respectively determining whether the transmission process of the above two threads has been completed, and if so, sending an instant message to the receiving end B to start receiving the file segment, and then repeating d) or e) until all the file segments have been sent. Of course, after a thread transfer is complete, it is okay to end the thread and restart a thread.
关于接收端 B如何从获取文件分段以及将文件分段合并为目标文件请参 见上述实施例, 这里不再赘述。  For details on how the receiving end B can obtain the file segmentation and merge the file segments into the target file, refer to the above embodiment, and details are not described herein again.
在上述过程中,使用多少个线程并发传输文件分段可根据用户的网络情况 在实施本发明时自行决定。 假设用户 A的网络带宽最大可以达到 lOOKB/s的 上传速率, 此时可选择三个平均传输速率分别为 40KB/s, 30KB/s, 30KB/s的邮 件地址作为起始邮件地址, 启动三个线程, 以使传输速率之和接近用户最大上 传带宽, 当某一个线程完成发送时,根据所有传输速率之和接近用户最大上传 带宽的算法, 重新选择一个或多个邮件地址, 在新的线程中发送其他的分块, 如此重复直至所有的分块发送完毕。  In the above process, how many threads are used to concurrently transfer file segments can be determined at the discretion of the user in accordance with the user's network conditions. Assume that user A's network bandwidth can reach a maximum upload rate of lOOKB/s. In this case, three email addresses with an average transfer rate of 40 KB/s, 30 KB/s, and 30 KB/s can be selected as the starting email address. Thread, so that the sum of the transmission rates is close to the maximum upload bandwidth of the user. When a thread finishes transmitting, according to the algorithm that the sum of all transmission rates is close to the maximum upload bandwidth of the user, one or more email addresses are reselected, in a new thread. Send other blocks, repeat this until all the blocks have been sent.
以上对本发明所述方法进行了详细介绍,下面结合具体的实施例对本发明 所述装置进行描述。 参见图 4, 是本发明的文件传输装置实施例框图, 包括发 送模块 4100和接收模块 4200,  The method of the present invention has been described in detail above, and the apparatus of the present invention will be described below in conjunction with specific embodiments. Referring to FIG. 4, it is a block diagram of an embodiment of a file transfer apparatus of the present invention, including a transmitting module 4100 and a receiving module 4200.
所述发送模块 4100包括:  The sending module 4100 includes:
第一即时通讯单元 4101 , 用于发送和 /或接收即时消息;  a first instant messaging unit 4101, configured to send and/or receive an instant message;
目的邮件地址确定单元 4102, 用于确定发送目标文件的目的邮件地址; 目标文件发送单元 4103 , 用于将目标文件发送至所述目的邮件地址; 发送控制单元 4104, 用于控制目标文件发送单元发送目标文件, 以及通 知第一即时通讯单元 4101发送即时消息, 所述即时消息包括用于接收目标文 件的控制指令;  The destination email address determining unit 4102 is configured to determine a destination email address of the sending target file; the target file sending unit 4103 is configured to send the target file to the destination email address; and the sending control unit 4104 is configured to control the target file sending unit to send An object file, and notifying the first instant messaging unit 4101 to send an instant message, the instant message including a control instruction for receiving the target file;
所述接收模块 4200包括:  The receiving module 4200 includes:
第二即时通讯单元 4201 , 用于发送和 /或接收即时消息;  a second instant messaging unit 4201, configured to send and/or receive an instant message;
目标文件获取单元 4202 , 用于从目的邮件地址获取目标文件;  The target file obtaining unit 4202 is configured to obtain the target file from the destination email address;
获取控制单元 4203 , 用于判断第二即时通讯单元 4201是否收到包含有接 收目标文件控制指令的即时消息, 若收到 , 通知目标文件获取单元 4202获取 目标文件。 优选的, 所述目标文件发送单元 4103 包括: 文件分割单元 41031 , 用于 将目标文件按预置规则分割为多个文件分段; 文件分段发送单元 41032, 用于 将文件分段发送至目的邮件地址。 The obtaining control unit 4203 is configured to determine whether the second instant messaging unit 4201 receives an instant message including the receiving target file control instruction, and if received, notify the target file obtaining unit 4202 to acquire the target file. Preferably, the target file sending unit 4103 includes: a file dividing unit 41031, configured to divide the target file into a plurality of file segments according to a preset rule; and a file segment sending unit 41032, configured to send the file segment to the destination Email address.
所述发送控制单元 4104包括: 文件分段发送控制单元 41041, 用于控制 文件分段发送单元发送文件分段, 以及通知第一即时通讯单元 4101发送即时 消息 , 该即时消息包含用于接收文件分段的控制指令。  The sending control unit 4104 includes: a file segment sending control unit 41041, configured to control the file segment sending unit to send the file segment, and notify the first instant messaging unit 4101 to send an instant message, where the instant message includes The control instruction of the segment.
所述目标文件获取单元包括 4202: 文件分段获取单元 42021, 用于从目的 邮件地址获取文件分段; 文件分段组合单元 42022, 用于将获取到的文件分段 组合为目标文件。  The target file obtaining unit includes 4202: a file segment obtaining unit 42021, configured to obtain a file segment from a destination email address, and a file segment combining unit 42022, configured to combine the obtained file segments into a target file.
所述获取控制单元 4203 包括: 文件分段获取控制单元 42031, 用于判断 第二即时通讯单元 4201是否收到包含有接收文件分段控制指令的即时消息, 若收到, 通知文件分段获取单元 42021获取文件分段。  The obtaining control unit 4203 includes: a file segment obtaining control unit 42031, configured to determine whether the second instant messaging unit 4201 receives an instant message including a received file segmentation control instruction, and if notified, notifies the file segment obtaining unit 42021 Get file segmentation.
优选的, 所述文件分段发送控制单元 41041通知第一即时通讯单元 4101 发送所述即时消息是在文件分段发送控制单元 41041 将一个或多个文件分段 发送至目的邮件地址之后进行。  Preferably, the file segment transmission control unit 41041 notifies the first instant messaging unit 4101 that the sending of the instant message is performed after the file segment transmission control unit 41041 sends one or more file segments to the destination email address.
优选的, 所述目标文件发送单元 4103 还可以包括: 即时文件发送单元 41033 , 用于利用第一即时通讯单元发送包含文件分段的即时消息。  Preferably, the target file sending unit 4103 may further include: an instant file sending unit 41033, configured to send an instant message including the file segment by using the first instant messaging unit.
所述目标文件获取单元 4202还包括: 即时文件接收单元 42023, 用于从 第二即时通讯单元 4201接收到的包含文件分段的即时消息中获取文件分段, 括文件分段获取单元 42021 所获取的文件分段以及即时文件接收单元 42023 分段, 但如何使用, 本发明对此不作限制, 例如若邮件发送单元出现异常时, 使用即时文件发送单元发送文件分段。  The target file obtaining unit 4202 further includes: an instant file receiving unit 42223, configured to acquire a file segment from the instant message including the file segment received by the second instant messaging unit 4201, which is obtained by the file segment obtaining unit 42021 The file segmentation and the instant file receiving unit 42223 segment, but how to use, the present invention does not limit this, for example, if an abnormality occurs in the mail sending unit, the file segment is sent using the instant file sending unit.
优选的, 所述目标文件发送单元 4103还可以包括: 速率比较单元 41034, 用于比较当前第一即时通讯单元的传输速率, 若大于预定阀值,通知即时文件 发送单元发送文件分段。 当然,使用该即时文件发送单元直接发送目标文件也 是可以的。  Preferably, the target file sending unit 4103 may further include: a rate comparing unit 41034, configured to compare a current transmission rate of the first instant messaging unit, and if the value is greater than a predetermined threshold, notify the immediate file sending unit to send the file segment. Of course, it is also possible to directly transmit the target file using the instant file sending unit.
优选的, 所述发送模块 4100还可以包括: 起始邮件地址确定单元 4105 , 用于确定起始邮件地址; 则所述目标文件发送单元 4103还可以包括: 传输单 元 41035, 用于将文件分段从起始邮件地址发送至目的邮件地址。 优选的, 所述目的邮件地址确定单元 4102可以利用第一即时通讯单元获 得目的邮件地址, 所述起始邮件确定单元 4105利用第二即时通讯单元获得起 始邮件地址。 Preferably, the sending module 4100 may further include: a starting email address determining unit 4105, configured to determine a starting email address; and the target file sending unit 4103 may further include: a transmitting unit 41035, configured to segment the file Send from the starting email address to the destination email address. Preferably, the destination email address determining unit 4102 can obtain the destination email address by using the first instant messaging unit, and the starting email determining unit 4105 obtains the starting email address by using the second instant messaging unit.
优选的, 所述第一即时通讯单元 4101发送的即时消息中还包括文件分段 所在的目的邮件地址信息;所述文件分段获取单元 42021用于获取文件分段的 目的邮件地址是从该即时消息中获取。  Preferably, the instant message sent by the first instant messaging unit 4101 further includes the destination email address information of the file segment; the file segment obtaining unit 42021 is configured to obtain the destination email address of the file segment from the instant. Obtained in the message.
优选的, 所述文件传输装置还包括: 存储单元 4106, 用于存储预置的邮 件地址列表; 所述目的地址确定单元 4102还包括: 目的邮件地址选择单元 41021 , 用于按预定规则从存储单元 4106 的邮件地址列表中选择目的邮件地 址; 所述起始邮件地址确定单元 4105还包括: 起始邮件地址选择单元 41051, 用于按预定规则从存储单元 4106的邮件地址列表中选择起始邮件地址。  Preferably, the file transmission device further includes: a storage unit 4106, configured to store a preset email address list; the destination address determining unit 4102 further includes: a destination email address selection unit 41021, configured to use the storage unit according to a predetermined rule The destination email address is selected in the email address list of 4106; the initial email address determining unit 4105 further includes: a starting email address selecting unit 41051, configured to select a starting email address from the mailing address list of the storage unit 4106 according to a predetermined rule. .
优选的, 所述发送控制单元 4104还包括: 第一并发控制单元 41042, 用 于控制文件分段发送单元 41041 将所述多个文件分段通过不同的起始邮件地 址并发传输至所述目的邮件地址。  Preferably, the sending control unit 4104 further includes: a first concurrency control unit 41042, configured to control the file segment sending unit 41041 to concurrently transmit the plurality of file segments to the destination mail through different start email addresses. address.
优选的, 所述发送控制单元 4104还包括: 第二并发控制单元 41043 , 用 于控制文件分段发送单元 41041 将所述多个文件分段通过不同的起始邮件地 址并发传输至多个目的邮件地址。 优选的, 所述发送模块 4100还包括, 邮件 地址优选单元 4107, 用于对所述起始邮件地址和 /或目的邮件地址按传输速度 设置优先级;所述文件分段发送单元 41032按照邮件地址优选单元 41021选择 的高优先级的邮件地址发送文件分段。  Preferably, the sending control unit 4104 further includes: a second concurrency control unit 41043, configured to control the file segment sending unit 41041 to concurrently transmit the plurality of file segments to different destination e-mail addresses through different starting e-mail addresses. . Preferably, the sending module 4100 further includes: an email address preference unit 4107, configured to set a priority according to a transmission speed of the initial email address and/or a destination email address; the file segment sending unit 41032 according to the email address The high priority mail address selected by the unit 41021 is preferably sent as a file segment.
邮件地址优选单元 4107可按以下方式对账户进行优选: 统计所使用的邮 件地址的发送速度, 并记录邮件地址的数据传输速度。 另外, 传输速度可以结 合其它因素进行描述, 例如发送方所在的骨干网络、 运营商和地理位置信息, 以更准确的描述邮件地址在不同情况下的传输速度。邮件地址优选单元根据这 些数据设置地址优先级, 邮件发送单元选择优先级高的邮件发送文件分段。  The mail address preference unit 4107 can optimize the account in the following manner: Count the transmission speed of the mail address used, and record the data transmission speed of the mail address. In addition, the transmission speed can be described in combination with other factors, such as the backbone network, carrier, and geographic location information of the sender, to more accurately describe the transmission speed of the email address under different conditions. The mail address preference unit sets the address priority based on the data, and the mail sending unit selects the mail sending file segment having the higher priority.
优选的, 所述接收模块 420还包括, 校验单元 4204, 用于校验收到的文 件分段或合并后的目标文件, 若校验失败, 通过第二即时通讯单元 4201发送 传输失败的即时消息。  Preferably, the receiving module 420 further includes: a checking unit 4204, configured to check the received file segment or the merged target file, and if the verification fails, send the transmission failed instant message through the second instant messaging unit 4201. .
所述发送控制单元 4104还包括: 重发控制单元 41044, 用于判断第一即 时通讯单元 4101是否收到传输失败的即时消息, 若收到, 则通知文件分段发 送单元 41032发送相应的文件分段。 参见图 5 , 图 5是应用本发明所述文件传输装置的文件传输系统的实体结 构图, 包括邮件服务器 510、 即时消息服务器 520、 起始客户端 530和目的客 户端 540。 The sending control unit 4104 further includes: a retransmission control unit 41044, configured to determine whether the first instant messaging unit 4101 receives an instant message that the transmission failed, and if received, the notification file segment sending unit 41032 sends a corresponding file. segment. Referring to FIG. 5, FIG. 5 is a physical structural diagram of a file transfer system to which the file transfer apparatus of the present invention is applied, including a mail server 510, an instant message server 520, a start client 530, and a destination client 540.
起始客户端和目的客户端中均可包含发送模块和接收模块,这样可以使两 个客户端之间能够互相发送文件。 容易得知, 若限制文件传输的过程为单向, 例如, 只允许起始客户端向目的客户端发送文件 , 则起始客户端中只包含发送 模块, 目的客户端中只包含接收模块即可。 下面以起始客户端向目的客户端发 送文件为例, 对该系统进行介绍。  Both the sending client and the destination client can include a sending module and a receiving module, so that the two clients can send files to each other. It is easy to know that if the process of restricting file transfer is one-way, for example, only the originating client is allowed to send files to the destination client, the originating client only includes the sending module, and the destination client only includes the receiving module. . The following describes the system by sending a file to the destination client as an example.
首先,在开始文件传输之前, 由目的地址确定单元确定本次传输使用的目 的邮件地址。可以使用同一个邮件地址作为目的邮件地址, 即该邮件地址既是 但可以将一个完整的文件发送至目的客户端, 而且,还可以将文件分割为多个 文件段, 使用起始邮件地址将文件分段传输至目的邮件地址; 进一步的, 可由 第一并发控制单元控制邮件发送单元将多个文件分段通过不同的起始邮件地 址并发传输至目的邮件地址; 更进一步的,可通过第二并发控制单元控制邮件 发送单元将所述多个文件分段通过不同的起始邮件地址并发传输至多个目的 邮件地址。  First, the destination address determining unit determines the destination mail address used for the current transmission before starting the file transfer. You can use the same email address as the destination email address, that is, the email address can be used to send a complete file to the destination client. You can also split the file into multiple file segments and use the starting email address to divide the file. The segment is transmitted to the destination email address; further, the first concurrency control unit may control the mail sending unit to transmit the plurality of file segments to the destination email address through different starting email addresses; and further, the second concurrency control may be performed. The unit control mail sending unit concurrently transmits the plurality of file segments to the plurality of destination mail addresses through different start mail addresses.
当使用多个起始邮件地址和 /或多个目的邮件地址时 , 或从多个起始邮件 地址或多个目的邮件地址中选择一个或一对邮件地址传输文件时,可在存储单 元预先设置邮件地址列表,邮件地址优选单元可对该邮件地址列表中的邮件地 址按传输速度设置优先级。 需要说明的是, 所述预置有邮件地址列表的存储单 元可以是在客户端和 /或即时消息服务器中 , 当起始客户端发起传输请求后 , 目的地址选择单元或起始地址选择单元从该存储单元中按优先级选择目的邮 件地址或起始邮件地址,然后起始客户端或目的客户端利用即时通讯获得该邮 件地址。 结合上文实施例的描述容易得知,本发明所述系统采用何种邮件地址 作为起始或目的邮件地址传输文件,以及起始或目的客户端如何获得起始或目 行确定, 本发明对此不作限制。  When using multiple start email addresses and/or multiple destination email addresses, or selecting one or a pair of email addresses to transfer files from multiple start email addresses or multiple destination email addresses, it can be preset in the storage unit. The mail address list, the mail address preference unit can set the priority of the mail address in the mail address list according to the transmission speed. It should be noted that the storage unit preset with the mail address list may be in the client and/or the instant message server. After the originating client initiates the transmission request, the destination address selection unit or the start address selection unit is The destination unit selects the destination email address or the starting email address according to the priority, and then the initiating client or destination client obtains the email address by using instant messaging. It will be readily apparent from the description of the above embodiments that the mail system of the present invention uses the mail address as the starting or destination mail address to transfer the file, and how the starting or destination client obtains the start or destination determination. This is not a limitation.
下面以多个起始邮件地址和多个目的邮件地址为例,对该系统的传输过程 进行描述。  The following describes the transmission process of the system by taking multiple initial email addresses and multiple destination email addresses as examples.
文件分割单元将待发送的目标文件分割为多个文件分段; 然后, 第二并发 控制单元控制文件分段发送单元将所述多个文件分段通过不同的起始邮件地 址并发传输至多个目的邮件地址, 在该过程中, 每完成一个文件分段的发送, 发送控制单元通知第一即时通讯单元向目的客户端发送即时消息,该即时消息 包括用于接收文件分段的控制指令。进一步的,该即时消息中还可以包括与所 述控制指令相应的目的邮件地址信息, 如收发邮件服务器地址、 登录用户名、 密码等。该邮件地址信息在每一个文件分段发送后通知目的客户端,这样可根 据实际的传输情况随时调整邮件地址, 当然也可以只通知一次, 经确认后就不 再变更。 另外, 还可以将多个文件分段并发传输至目的邮件地址后, 向目的客 户端发送一个即时消息 , 该即时消息中包括接收所述多个文件分段的控制指 令。所述在一个或多个文件分段发送至目的邮件地址后发送该即时消息是本发 明优选的方法, 当然也可以选择其它时间发送, 例如在文件分段发送过程中, 或即将发送完成时发送。 The file dividing unit divides the object file to be sent into a plurality of file segments; then, the second concurrency The control unit control file segment sending unit transmits the plurality of file segments to the plurality of destination email addresses through different starting email addresses, and in the process, each time a file segment is sent, the sending control unit notifies the An instant messaging unit sends an instant message to the destination client, the instant message including control instructions for receiving the file segment. Further, the instant message may further include destination email address information corresponding to the control command, such as a mail server address, a login user name, a password, and the like. The email address information is notified to the destination client after each file segment is sent, so that the email address can be adjusted at any time according to the actual transmission situation. Of course, it can be notified only once, and will not be changed after confirmation. In addition, after the plurality of file segments are concurrently transmitted to the destination email address, an instant message is sent to the destination client, where the instant message includes a control instruction for receiving the plurality of file segments. The sending of the instant message after the one or more file segments are sent to the destination email address is a preferred method of the present invention. Of course, other time may be selected, for example, during file segment transmission, or when the transmission is completed. .
目的客户端的文件分段获取控制单元判断第二即时通讯单元是否收到包 含有接收文件分段控制指令的即时消息, 若收到,通知文件分段获取单元从该 控制指令相应的目的邮件地址获取文件分段。文件分段组合单元将获取到的文 件分段组合成为目标文件。  The file segment obtaining control unit of the destination client determines whether the second instant messaging unit receives the instant message including the received file segmentation control instruction, and if received, the notification file segment obtaining unit obtains the corresponding destination email address of the control instruction File segmentation. The file segmentation unit combines the acquired file segments into a target file.
其中, 文件分段获取单元在获取文件分段的过程中,校验单元校验收到的 文件分段或合并后的目标文件, 若校验失败,通过第二即时通讯单元发送传输 失败的即时消息;起始客户端的重发控制单元判断第一即时通讯单元是否收到 传输失败的即时消息, 若收到, 则通知文件分段发送控制单元发送相应的文件 分段。  The file segment obtaining unit, in the process of acquiring the file segment, the verification unit verifies the received file segment or the merged target file, and if the verification fails, sends the transmission failed instant message through the second instant messaging unit. The retransmission control unit of the initiating client determines whether the first instant messaging unit receives the instant message of the transmission failure, and if so, notifies the file segment transmission control unit to send the corresponding file segment.
优选的,在文件分 送单元发送文件分段的同时,速率比较单元比较当 前第一即时通讯单元的传输速率, 若大于预定阀值,通知即时文件发送单元将 文件分段作为即时消息发送至目的客户端,并由即时文件接收单元从该即时消 息中获取文件分段, 最后,该文件分段与文件分段获取单元获得的其他文件分 段共同组合为目标文件。  Preferably, while the file distribution unit sends the file segment, the rate comparison unit compares the current transmission rate of the first instant messaging unit, and if greater than the predetermined threshold, notifies the instant file sending unit to send the file segment as an instant message to the destination. The client obtains the file segment from the instant message by the instant file receiving unit. Finally, the file segment is combined with other file segments obtained by the file segment obtaining unit into the target file.
上述关于本发明文件传输装置和文件传输系统的未详尽之处请参考方法 实施例所述内容。以上描述仅为本发明的具体实施个例,并不用以限制本发明, 凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等, 均应包含 在本发明的保护范围之内。  For the above-mentioned details about the file transmission device and the file transmission system of the present invention, please refer to the contents of the method embodiment. The above description is only the specific embodiment of the present invention, and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and scope of the present invention are included in the scope of the present invention. Inside.

Claims

权 利 要 求 Rights request
1、 一种文件传输方法, 其特征在于, 包括下列步骤:  A file transfer method, comprising the steps of:
确定用于发送目标文件的目的邮件地址;  Determine the destination email address used to send the target file;
将目标文件发送至所述目的邮件地址;  Sending the target file to the destination email address;
利用即时通讯向接收端发送即时消息,所述即时消息包括用于接收该目标 文件的控制指令;  Sending an instant message to the receiving end by using instant messaging, the instant message including a control instruction for receiving the target file;
若接收端收到包含所述控制指令的即时消息,从所述目的邮件地址获取相 应的目标文件。  If the receiving end receives the instant message containing the control command, the corresponding target file is obtained from the destination email address.
2、 根据权利要求 1所述的方法, 其特征在于, 所述将目标文件发送至目 的邮件地址包括:  2. The method according to claim 1, wherein the sending the target file to the destination email address comprises:
将目标文件按预置规则分割为多个文件分段;  Split the target file into multiple file segments according to preset rules;
将所述文件分段发送至所述目的邮件地址;  Sending the file segment to the destination email address;
所述接收端从目的邮件地址获取目标文件包括:  The receiving end acquires the target file from the destination email address, including:
判断是否收到包含所述控制指令的即时消息, 若收到,从所述目的邮件地 址获取文件分段;  Determining whether an instant message containing the control instruction is received, and if received, obtaining a file segment from the destination email address;
将获取到的文件分段组合成为目标文件。  Combine the obtained file segments into a target file.
3、 根据权利要求 2所述的方法, 其特征在于, 所述利用即时通讯向接收 端发送的即时消息是在将一个或多个文件分段发送至所述目的邮件地址之后 进行。  The method according to claim 2, wherein the instant message sent to the receiving end by using the instant messaging is performed after the one or more file segments are sent to the destination email address.
4、 根据权利要求 2所述的文件传输方法, 其特征在于, 还包括: 利用即时通讯将文件分段作为即时消息发送至接收端;  The file transmission method according to claim 2, further comprising: transmitting the file segment as an instant message to the receiving end by using instant messaging;
接收端从该即时消息中获取文件分段; 址中获取的文件分段以及从所述即时消息中获取的文件分段。  The receiving end obtains a file segment from the instant message; a file segment obtained in the address and a file segment obtained from the instant message.
5、 根据权利要求 4所述的方法, 其特征在于, 所述将文件分段作为即时 消息发送至接收端包括:  The method according to claim 4, wherein the sending the file segment as an instant message to the receiving end comprises:
判断当前即时通讯的传输速率, 若大于预定阀值,将文件分段作为即时消 息发送至接收端。  Determine the current instant messaging transmission rate. If it is greater than the predetermined threshold, send the file segment as an instant message to the receiving end.
6、 根据权利要求 2、 3、 4或 5所述的方法, 其特征在于, 在将文件分段 发送至所述目的邮件地址之前还包括:  6. The method of claim 2, 3, 4 or 5, further comprising: before sending the file segment to the destination email address:
确定起始邮件地址; 所述将文件分段发送至所述目的邮件地址是使用该起始邮件地址将文件 分段发送至所述目的邮件地址。 Determine the starting email address; The sending the file segment to the destination email address is to send the file segment to the destination email address using the starting email address.
7、 根据权利要求 6所述的方法, 其特征在于, 所述起始邮件地址和 /或目 的邮件地址是利用即时通讯获得。  7. The method according to claim 6, wherein the starting email address and/or the destination email address are obtained by instant messaging.
8、 根据权利要求 7所述的方法, 其特征在于, 所述向接收端发送的即时 消息还包括文件分段所在的目的邮件地址信息;所述接收端用于获取文件分段 的目的邮件地址是从该即时消息中获取。  The method according to claim 7, wherein the instant message sent to the receiving end further includes destination mail address information where the file segment is located; and the receiving end is configured to obtain a destination email address of the file segment. It is obtained from this instant message.
9、 根据权利要求 6所述的方法, 其特征在于, 所述起始邮件地址和 /或目 的邮件地址是从预置的邮件地址列表中按预定规则选择。  9. The method according to claim 6, wherein the starting email address and/or the destination email address are selected from a preset mailing address list by a predetermined rule.
10、根据权利要求 6所述的方法, 其特征在于, 所述起始邮件地址的个数 实现:  10. The method according to claim 6, wherein the number of the starting email addresses is implemented:
将所述多个文件分段通过不同的起始邮件地址并发传输至所述目的邮件 地址。  The plurality of file segments are concurrently transmitted to the destination mail address through different starting email addresses.
11、根据权利要求 6所述的方法, 其特征在于, 所述目的邮件地址的个数 为多个, 所述将文件分段发送至目的邮件地址通过以下步骤实现:  The method according to claim 6, wherein the number of the destination email addresses is plural, and the sending the file segments to the destination email address is implemented by the following steps:
将所述多个文件分段通过起始邮件地址并发传输至相应的多个目的邮件 地址。  The plurality of files are segmented and transmitted to the corresponding plurality of destination email addresses through the initial email address.
12、 根据权利要求 11所述的方法, 其特征在于, 还包括:  12. The method according to claim 11, further comprising:
对所述多个起始邮件地址和 /或目的邮件地址按传输速度设置优选级; 选 择优先级高的起始邮件地址和 /或目的邮件地址发送文件分段。  Setting a preferred level for the plurality of starting email addresses and/or destination email addresses according to the transmission speed; selecting a starting email address with a higher priority and/or a destination email address to send the file segment.
13、 根据权利要求 12所述的方法, 其特征在于, 还包括:  13. The method according to claim 12, further comprising:
接收端校验获取到的文件分段和 /或合并后的目标文件, 若校验失败, 则 向发送端发送传输失败的即时消息, 该即时消息包括用于重发文件分段和 /或 目标文件的控制指令; 若发送端收到该控制指令, 则重新发送相应的文件分段 或目标文件。  The receiving end verifies the obtained file segment and/or the merged target file, and if the verification fails, sends an instant message of the transmission failure to the sending end, where the instant message includes a file segment and/or target for resending the file. The control command of the file; if the sender receives the control command, resend the corresponding file segment or object file.
14、 一种文件传输装置, 其特征在于, 包括位于不同计算设备中的发送模 块和接收模块,  14. A file transfer device, comprising: a transmit module and a receive module located in different computing devices,
所述发送模块包括:  The sending module includes:
第一即时通讯单元, 用于发送和 /或接收即时消息;  a first instant messaging unit, configured to send and/or receive an instant message;
目的邮件地址确定单元, 用于确定发送目标文件的目的邮件地址; 目标文件发送单元, 用于将目标文件发送至所述目的邮件地址; 发送控制单元, 用于控制目标文件发送单元发送目标文件, 以及通知第一 即时通讯单元发送即时消息, 所述即时消息包括用于接收目标文件的控制指 令; a destination email address determining unit, configured to determine a destination email address of the sending target file; a target file sending unit, configured to send the target file to the destination email address, a sending control unit, configured to control the target file sending unit to send the target file, and notify the first instant messaging unit to send the instant message, where the instant message includes a control instruction for receiving an object file;
所述接收模块包括:  The receiving module includes:
第二即时通讯单元, 用于发送和 /或接收即时消息;  a second instant messaging unit, configured to send and/or receive an instant message;
目标文件获取单元, 用于从目的邮件地址获取目标文件;  An object file obtaining unit, configured to obtain a target file from a destination email address;
获取控制单元,用于判断第二即时通讯单元是否收到包含有接收目标文件 控制指令的即时消息, 若收到, 通知目标文件获取单元获取目标文件。  The acquiring control unit is configured to determine whether the second instant messaging unit receives the instant message including the receiving target file control instruction, and if not, notify the target file obtaining unit to acquire the target file.
15、 根据权利要求 14所述的装置, 其特征在于,  15. Apparatus according to claim 14 wherein:
所述目标文件发送单元进一步包括:  The target file sending unit further includes:
文件分割单元 , 用于将目标文件按预置规则分割为多个文件分段; 文件分段发送单元, 用于将文件分段发送至目的邮件地址;  a file dividing unit, configured to divide the target file into a plurality of file segments according to a preset rule; and a file segment sending unit, configured to send the file segment to the destination email address;
所述发送控制单元进一步包括:  The sending control unit further includes:
文件分段发送控制单元, 用于控制文件分段发送单元发送文件分段, 以及 通知第一即时通讯单元发送即时消息,该即时消息包含用于接收文件分段的控 制指令;  a file segment sending control unit, configured to control the file segment sending unit to send the file segment, and notify the first instant messaging unit to send an instant message, where the instant message includes a control instruction for receiving the file segment;
所述目标文件获取单元进一步包括:  The target file obtaining unit further includes:
文件分段获取单元 , 用于从目的邮件地址获取文件分段;  a file segment obtaining unit, configured to obtain a file segment from a destination email address;
文件分段组合单元, 用于将获取到的文件分段组合为目标文件;  a file segment combination unit, configured to combine the obtained file segments into a target file;
所述获取控制单元进一步包括:  The acquisition control unit further includes:
文件分段获取控制单元,用于判断第二即时通讯单元是否收到包含有接收 文件分段控制指令的即时消息,若收到,通知文件分段获取单元获取文件分段。  The file segment acquisition control unit is configured to determine whether the second instant messaging unit receives the instant message including the received file segmentation control instruction, and if received, the notification file segment obtaining unit acquires the file segment.
16、 根据权利要求 15所述的装置, 其特征在于, 所述文件分段发送控制 单元通知第一即时通讯单元发送所述即时消息是在文件分段发送单元将一个 或多个文件分段发送至目的邮件地址之后进行。  The device according to claim 15, wherein the file segment transmission control unit notifies the first instant messaging unit to send the instant message, and sends one or more file segments in the file segment sending unit. Go to the destination email address.
17、 根据权利要求 15所述的装置, 其特征在于,  17. Apparatus according to claim 15 wherein:
所述目标文件发送单元还包括即时文件发送单元,用于利用第一即时通讯 单元发送包含文件分段的即时消息;  The target file sending unit further includes an instant file sending unit, configured to send an instant message including the file segment by using the first instant messaging unit;
所述目标文件获取单元还包括即时文件接收单元,用于从第二即时通讯单 元接收到的包含文件分段的即时消息中获取文件分段; 单元所获取的文件分段以及即时文件接收单元获取的文件分段。 The target file obtaining unit further includes an instant file receiving unit, configured to obtain a file segment from the instant message including the file segment received by the second instant messaging unit; The file segment obtained by the unit and the file segment obtained by the instant file receiving unit.
18、 根据权利要求 17所述的装置, 其特征在于, 所述目标文件发送单元 还包括:  The apparatus according to claim 17, wherein the target file sending unit further comprises:
速率比较单元, 用于比较当前第一即时通讯单元的传输速率, 若大于预定 阀值, 通知即时文件发送单元发送文件分段。  The rate comparison unit is configured to compare the current transmission rate of the first instant messaging unit, and if greater than the predetermined threshold, notify the immediate file sending unit to send the file segment.
19、 根据权利要求 15、 16、 17或 18所述的装置, 其特征在于, 所述发送模块还包括起始邮件地址确定单元, 用于确定起始邮件地址; 地址。  The device according to claim 15, 16, 17, or 18, wherein the sending module further comprises a starting email address determining unit for determining a starting email address; an address.
20、 根据权利要求 19所述的装置, 其特征在于, 所述目的邮件地址确定 单元利用第一即时通讯单元的即时消息获得目的邮件地址,所述起始邮件确定 单元利用第二即时通讯单元的即时消息获得起始邮件地址。  The apparatus according to claim 19, wherein the destination email address determining unit obtains a destination email address by using an instant message of the first instant messaging unit, and the initial email determining unit utilizes the second instant messaging unit Instant messaging gets the starting email address.
21、 根据权利要求 20所述的装置, 其特征在于, 所述第一即时通讯单元 发送的即时消息中还包括文件分段所在的目的邮件地址信息;所述文件分段获 取单元用于获取文件分段的目的邮件地址是从该即时消息中获取。  The device according to claim 20, wherein the instant message sent by the first instant messaging unit further includes destination mail address information where the file segment is located; and the file segment obtaining unit is configured to acquire the file The destination email address of the segment is obtained from the instant message.
22、 根据权利要求 19所述的装置, 其特征在于, 还包括:  The device according to claim 19, further comprising:
存储单元, 用于存储预置的邮件地址列表;  a storage unit, configured to store a preset email address list;
所述目的地址确定单元进一步包括目的邮件地址选择单元,用于按预定规 则从存储单元的邮件地址列表中选择目的邮件地址;  The destination address determining unit further includes a destination email address selecting unit configured to select a destination email address from a mail address list of the storage unit according to a predetermined rule;
所述起始邮件地址确定单元进一步包括起始邮件地址选择单元,用于按预 定规则从存储单元的邮件地址列表中选择起始邮件地址。  The start mail address determining unit further includes a start mail address selecting unit for selecting a start mail address from a mail address list of the storage unit according to a predetermined rule.
23、 根据权利要求 19所述的装置, 其特征在于, 所述发送控制单元还包 括:  The device according to claim 19, wherein the sending control unit further comprises:
第一并发控制单元,用于控制文件分段发送单元将所述多个文件分段通过 不同的起始邮件地址并发传输至所述目的邮件地址。  And a first concurrency control unit, configured to control the file segment sending unit to concurrently transmit the plurality of file segments to the destination email address by using different starting email addresses.
24、 根据权利要求 19所述的装置, 其特征在于, 所述发送控制单元还包 括: 第二并发控制单元, 用于控制文件分段发送单元将所述多个文件分段通过 不同的起始邮件地址并发传输至多个目的邮件地址。  The device according to claim 19, wherein the sending control unit further comprises: a second concurrency control unit, configured to control the file segment sending unit to segment the plurality of files by different starting Email addresses are transmitted concurrently to multiple destination email addresses.
25、 根据权利要求 24所述的装置, 其特征在于, 所述发送模块还包括, 邮件地址优选单元, 用于对所述起始邮件地址和 /或目的邮件地址按传输 速度设置优先级; The device according to claim 24, wherein the sending module further comprises: a mail address preference unit, configured to transmit the start email address and/or the destination email address Speed setting priority;
所述文件分段发送单元按照邮件地址优选单元选择的高优先级的邮件地 址发送文件分段。  The file segment transmitting unit transmits the file segment in accordance with the high priority mail address selected by the mail address preference unit.
26、根据权利要求 25所述的项装置, 其特征在于, 所述接收模块还包括, 校验单元, 用于校验收到的文件分段或合并后的目标文件, 若校验失败, 通过第二即时通讯单元发送传输失败的即时消息;  The device according to claim 25, wherein the receiving module further comprises: a checking unit, configured to check the received file segment or the merged target file, and if the verification fails, pass the The instant messaging unit sends an instant message that the transmission fails;
所述发送控制单元还包括:  The sending control unit further includes:
重发控制单元, 用于判断第一即时通讯单元是否收到传输失败的即时消 息, 若收到, 则通知文件分段发送单元发送相应的文件分段。  The retransmission control unit is configured to determine whether the first instant messaging unit receives the instant message that the transmission failed, and if received, notify the file segment sending unit to send the corresponding file segment.
27、 一种应用权利要求 14所述装置的文件传输系统, 其特征在于, 包括: 邮件服务器、 即时消息服务器、 起始客户端和目的客户端,  27. A file transfer system for applying the apparatus of claim 14, comprising: a mail server, an instant message server, a start client, and a destination client,
所述起始客户端包括起始发送模块 , 其中起始发送模块包括:  The initial client includes an initial sending module, where the initial sending module includes:
第一即时通讯单元, 用于发送和 /或接收即时消息;  a first instant messaging unit, configured to send and/or receive an instant message;
目的邮件地址确定单元, 用于确定发送目标文件的目的邮件地址; 目标文件发送单元, 用于将目标文件发送至所述目的邮件地址;  a destination email address determining unit, configured to determine a destination email address of the sending target file; and an object file sending unit, configured to send the target file to the destination email address;
发送控制单元, 用于控制目标文件发送单元发送目标文件, 以及通知第一 即时通讯单元发送即时消息, 所述即时消息包括用于接收目标文件的控制指 令;  a sending control unit, configured to control the target file sending unit to send the target file, and notify the first instant messaging unit to send an instant message, where the instant message includes a control instruction for receiving the target file;
所述目的客户端包括目的接收模块, 其中目的接收模块包括:  The destination client includes a destination receiving module, where the destination receiving module includes:
第二即时通讯单元, 用于发送和 /或接收即时消息;  a second instant messaging unit, configured to send and/or receive an instant message;
目标文件获取单元, 用于从目的邮件地址获取目标文件;  An object file obtaining unit, configured to obtain a target file from a destination email address;
获取控制单元,用于判断第二即时通讯单元是否收到包含有所述控制指令 的即时消息, 若收到, 通知目标文件获取单元获取目标文件。  The acquiring control unit is configured to determine whether the second instant messaging unit receives the instant message including the control instruction, and if yes, notify the target file obtaining unit to acquire the target file.
PCT/CN2008/070524 2007-03-20 2008-03-18 A method, a device and a system for delivering files WO2008113296A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2007100874725A CN101272354B (en) 2007-03-20 2007-03-20 File transfer method, device and system
CN200710087472.5 2007-03-20

Publications (1)

Publication Number Publication Date
WO2008113296A1 true WO2008113296A1 (en) 2008-09-25

Family

ID=39765400

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2008/070524 WO2008113296A1 (en) 2007-03-20 2008-03-18 A method, a device and a system for delivering files

Country Status (2)

Country Link
CN (1) CN101272354B (en)
WO (1) WO2008113296A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111045850A (en) * 2019-12-26 2020-04-21 天津芯海创科技有限公司 Processing method for failure of sending maintenance packet and master control software
CN112330268A (en) * 2020-10-21 2021-02-05 中国南方电网有限责任公司 Regional power spot market data interactive verification method and system

Families Citing this family (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102255941A (en) * 2011-03-22 2011-11-23 苏州阔地网络科技有限公司 Transmission method and transmission system for files processed in batch based on preset priorities
CN103138871B (en) * 2011-11-23 2015-09-30 毕书清 The server data processing system of application program and method in mobile communcations system
CN103177019B (en) * 2011-12-23 2016-06-01 联想(北京)有限公司 Usb storage device and driving method thereof
CN102722474A (en) * 2012-03-20 2012-10-10 华为终端有限公司 Information processing method and terminal
CN103023755B (en) * 2012-12-07 2015-12-23 东莞宇龙通信科技有限公司 The method of transfer of data and electronic equipment
CN103116546B (en) * 2013-02-21 2015-08-19 北京控制工程研究所 The ground automated verification system of a kind of satellite extensive modification of program in-orbit
CN105743765B (en) * 2014-12-09 2020-04-14 华为技术有限公司 Method, terminal and system for acquiring mail
CN106202082B (en) * 2015-04-30 2020-01-14 菜鸟智能物流控股有限公司 Method and device for assembling basic data cache
US10334017B2 (en) * 2015-12-18 2019-06-25 Accenture Global Solutions Limited Tracking a status of a file transfer using feedback files corresponding to file transfer events
CN105871706A (en) * 2016-06-13 2016-08-17 珠海佳米科技有限公司 File transmission method and file transmission system
CN109753849B (en) * 2017-11-03 2021-08-17 杭州海康威视数字技术股份有限公司 Method and device for processing video analysis task
CN109672718A (en) * 2018-09-26 2019-04-23 深圳平安财富宝投资咨询有限公司 File delivery method, server, storage medium and device between system
CN109857545B (en) * 2018-12-29 2021-09-14 华为技术有限公司 Data transmission method and device
CN110275721B (en) * 2019-06-18 2020-10-02 珠海格力电器股份有限公司 Multi-connected air conditioning system, upgrading method and device thereof and air conditioning equipment
CN111245934A (en) * 2020-01-10 2020-06-05 深圳壹账通智能科技有限公司 Feedback method, device and equipment for file transmission and storage medium
CN114124925B (en) * 2020-08-25 2023-05-12 华为技术有限公司 E-mail synchronization method and electronic equipment
CN112333235A (en) * 2020-09-26 2021-02-05 深圳市星谷科技有限公司 Multi-operator multi-network aggregated file transmission method and system and intelligent terminal
CN112491990B (en) * 2020-11-17 2021-08-10 中科三清科技有限公司 Hybrid cloud network data transmission method and device, electronic equipment and storage medium
CN112905550A (en) * 2021-03-25 2021-06-04 武汉悦学帮网络技术有限公司 Data export method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020042838A1 (en) * 2000-10-11 2002-04-11 Tabayoyon Alfred T. Network-based document delivery system with receipt and display verification
CN1461132A (en) * 2003-06-13 2003-12-10 腾讯科技(深圳)有限公司 Electronic mail processing method in instantaneous communication system and its system
KR20040015784A (en) * 2004-02-02 2004-02-19 장중혁 File Transfer System with Instant Messenger including file transfer function, and File Tranfer Method by the system
US20060168026A1 (en) * 2004-12-16 2006-07-27 International Business Machines Corporation System and method enabling interactive electronic mail and real-time messaging

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005101936A (en) * 2003-09-25 2005-04-14 Canon Inc Communication apparatus and control method of communication apparatus
US20050091318A1 (en) * 2003-10-09 2005-04-28 International Business Machines Corporation Enabling a sender to control future recipients of an email

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020042838A1 (en) * 2000-10-11 2002-04-11 Tabayoyon Alfred T. Network-based document delivery system with receipt and display verification
CN1461132A (en) * 2003-06-13 2003-12-10 腾讯科技(深圳)有限公司 Electronic mail processing method in instantaneous communication system and its system
KR20040015784A (en) * 2004-02-02 2004-02-19 장중혁 File Transfer System with Instant Messenger including file transfer function, and File Tranfer Method by the system
US20060168026A1 (en) * 2004-12-16 2006-07-27 International Business Machines Corporation System and method enabling interactive electronic mail and real-time messaging

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111045850A (en) * 2019-12-26 2020-04-21 天津芯海创科技有限公司 Processing method for failure of sending maintenance packet and master control software
CN112330268A (en) * 2020-10-21 2021-02-05 中国南方电网有限责任公司 Regional power spot market data interactive verification method and system
CN112330268B (en) * 2020-10-21 2023-08-22 中国南方电网有限责任公司 Regional power spot market data interactive verification method and system

Also Published As

Publication number Publication date
CN101272354A (en) 2008-09-24
CN101272354B (en) 2012-05-02

Similar Documents

Publication Publication Date Title
WO2008113296A1 (en) A method, a device and a system for delivering files
US9344287B2 (en) Scalable transport system for multicast replication
US9900168B2 (en) System and method for reliable multicast data transport
KR100831654B1 (en) A method for data repair in a system capable of handling multicast and broadcast transmissions
US7962626B2 (en) Method and apparatus for transparent negotiations
US7930541B2 (en) E-mail communication apparatus
JP2007522750A5 (en)
JP2003016036A (en) Verifying system and method for reliability status of peer in peer-to-peer network environment
US20130238715A1 (en) Enabling communication between source and target mail transfer agents
CN101068245A (en) Shared file issuing and downloading method and file sharing control system
US20100017523A1 (en) Communication control apparatus and communication control method
US20160087794A1 (en) Combined authentication and encryption
US20080091781A1 (en) Group communication
WO2011015020A1 (en) File transmission method, system and client
US20020069248A1 (en) System and method for delivery and exchange of electronic data
CN112152914A (en) Instant messaging method and system based on Beidou short message
WO2014131294A1 (en) File transfer system and method, policy server, terminal and storage medium
US8650313B2 (en) Endpoint discriminator in network transport protocol startup packets
JP2003509970A (en) Packet authentication
KR101627256B1 (en) Session handover method for network communication having distributed servers
GB2401011A (en) A client terminal and a server are each provided with a message queue to facilitate session independent transfer of messages
CN112217735A (en) Information synchronization method and load balancing system
CN1956421A (en) Reliable transmission method for web service message
JP2004254039A (en) Mail communication relay system, mail communication relay apparatus, mail communication relay method, and mail communication relay program
WO2013063934A1 (en) Media message sending method, device and system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 08715260

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 08715260

Country of ref document: EP

Kind code of ref document: A1