WO2011144077A2 - 点对点文件传输的方法及装置 - Google Patents

点对点文件传输的方法及装置 Download PDF

Info

Publication number
WO2011144077A2
WO2011144077A2 PCT/CN2011/074642 CN2011074642W WO2011144077A2 WO 2011144077 A2 WO2011144077 A2 WO 2011144077A2 CN 2011074642 W CN2011074642 W CN 2011074642W WO 2011144077 A2 WO2011144077 A2 WO 2011144077A2
Authority
WO
WIPO (PCT)
Prior art keywords
file
terminal
server
receiving
remaining
Prior art date
Application number
PCT/CN2011/074642
Other languages
English (en)
French (fr)
Other versions
WO2011144077A3 (zh
Inventor
邓士伟
徐玉丰
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to CN2011800005279A priority Critical patent/CN102217283A/zh
Priority to PCT/CN2011/074642 priority patent/WO2011144077A2/zh
Publication of WO2011144077A2 publication Critical patent/WO2011144077A2/zh
Publication of WO2011144077A3 publication Critical patent/WO2011144077A3/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]

Definitions

  • the present invention relates to the field of network communications, and in particular, to a method and apparatus for point-to-point file transmission.
  • Embodiments of the present invention provide a method and apparatus for point-to-point file transmission, which can improve the efficiency of point-to-point file transmission, improve user experience, and reduce waste of network bandwidth resources.
  • An aspect of the present invention provides a method for point-to-point file transmission, the method comprising:
  • the receiving terminal interrupts receiving the file, and sends a temporary file storage request to the server to notify the sender terminal to transfer the remaining file to the server cache;
  • the cached remaining file is downloaded from the server.
  • the method further includes:
  • the receiver terminal After the sender terminal and the server establish a file transmission channel, the receiver terminal receives and saves file transmission breakpoint information sent by the sender terminal.
  • the downloading the cached remaining files from the server includes:
  • the recipient terminal and the server establish a file transmission channel and continue to receive remaining files cached at the server.
  • Another aspect of the present invention provides a method for peer-to-peer file transmission, the method comprising:
  • the sender terminal receives the cache file notification sent by the server, saves the file transmission breakpoint information, and sends the remaining file to the server cache;
  • the sender terminal transmits the file transmission breakpoint information to the receiver terminal, and ends the file transmission with the receiver terminal.
  • Another aspect of the present invention provides a method for peer-to-peer file transmission, the method comprising:
  • the determining that the receiver terminal meets the condition of receiving a file again includes:
  • Another aspect of the present invention provides a terminal for point-to-point file transmission, including:
  • a file cache notification unit configured to interrupt receiving the file during the process of receiving the file sent by the sender terminal, and send a temporary file storage request to the server to notify the sender terminal to transfer the remaining file to the server cache;
  • the remaining file receiving unit is configured to download the cached remaining files from the server when the file condition is received again.
  • the breakpoint information storage unit is configured to receive and save the file transmission breakpoint information sent by the sender terminal after the sender terminal and the server establish a file transmission channel.
  • the remaining file receiving unit is further configured to: receive the temporary file notification information sent by the server when the file condition is received again, and establish a file transmission channel with the server, and receive the remaining files cached by the server.
  • a notification receiving unit configured to receive a cache file notification sent by the server during a process of transmitting a file to the receiver terminal;
  • a cache file transfer unit configured to: after the notification receiving unit receives the cache file notification, transfer the remaining file to the server for caching;
  • the breakpoint information transmission unit is configured to save the file transmission breakpoint information after the notification receiving unit receives the cache file notification, and send the file transmission breakpoint information to the receiver terminal.
  • Yet another aspect of the present invention provides a server for peer-to-peer file transmission, the server comprising:
  • a temporary file buffering unit configured to send a cache file notification to the sender terminal and cache the temporary file storage request initiated by the receiver terminal in a process of transmitting a file to the receiver terminal by the sender terminal The remaining files transmitted by the sender terminal;
  • a temporary file transfer unit configured to transmit the cached remaining file to the recipient terminal when determining that the recipient terminal satisfies the condition of receiving the file again.
  • the server further includes:
  • the condition determining unit is configured to receive the temporary file notification information sent by the server when the file condition is received again, and establish a file transmission channel with the server, and receive the remaining files cached in the server.
  • Yet another aspect of the present invention provides a system for point-to-point file transmission, the system comprising: the terminal as described above, and the server as described above.
  • the method includes: the receiving terminal interrupts receiving the file in the process of receiving the file sent by the sender terminal, and sends a temporary file storage request to the server to notify the sender terminal. Transferring the remaining files to the server cache; when the recipient terminal satisfies the condition of receiving the file again, the cached remaining files are downloaded from the server.
  • FIG. 1 is a schematic flowchart of a terminal side of a receiver of a peer-to-peer file transmission method according to an embodiment of the present invention
  • FIG. 2 is a schematic flowchart of a sender terminal side of a point-to-point file transmission method according to an embodiment of the present invention
  • FIG. 3 is a schematic flowchart of a server side of a point-to-point file transmission method according to an embodiment of the present invention
  • FIG. 4 is a schematic structural diagram of a system in a specific example of an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of signaling interaction in a specific example of an embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of a terminal for providing point-to-point file transmission according to an embodiment of the present invention.
  • FIG. 7 is a schematic structural diagram of a server for providing point-to-point file transmission according to an embodiment of the present invention.
  • FIG. 8 is a schematic structural diagram of a system for providing point-to-point file transmission according to an embodiment of the present invention.
  • Embodiments of the present invention provide a method, apparatus, and system for point-to-point file transmission, in particular, in a point-to-point file transmission process, when a receiver terminal temporarily abandons receiving a file, the remaining file is transmitted to a server for caching; and when receiving The next time the party terminal logs in or the conditions permit, the remaining files are downloaded from the server, thereby improving the efficiency of the peer-to-peer file transmission, improving the user experience, and reducing the waste of network bandwidth resources.
  • FIG. 1 is a schematic flowchart of the receiving terminal side of the point-to-point file transmission method according to the embodiment of the present invention. Methods include:
  • Step 11 The receiving terminal interrupts receiving the file in the process of receiving the file sent by the sender terminal, and sends a temporary file storage request to the server to notify the sender terminal to transfer the remaining file to the server cache.
  • the receiver terminal when the receiver terminal receives the file sent by the sender terminal, if the receiver terminal interrupts receiving the file, the receiver terminal notifies the sender terminal to transfer the remaining files to the server cache, specifically:
  • the recipient terminal sends a temporary file storage request to the server, and the server notifies the sender terminal to transfer the remaining files to the server for caching.
  • the receiver terminal further receives and saves the file transmission breakpoint information sent by the sender terminal.
  • Step 12 When the recipient terminal satisfies the condition of receiving the file again, the cached remaining file is downloaded from the server.
  • the receiver terminal can download the remaining file from the server.
  • the receiving terminal login authentication passes, and the receiving terminal receives the temporary file notification information sent by the server, determining that the receiving terminal meets the condition of receiving the file again, the receiving terminal and The server establishes a file transfer channel and continues to receive the remaining files cached on the server.
  • the foregoing embodiment is an implementation process of the receiver side in the peer-to-peer file transmission method.
  • the method can improve the efficiency of the point-to-point file transmission, improve the user experience, and reduce the waste of network bandwidth resources.
  • the embodiment of the present invention further provides a method for transmitting a point-to-point file, which is specifically a process of performing a terminal side of a sender
  • FIG. 2 is a schematic flowchart of a terminal side of a sender of a point-to-point file transmission method according to an embodiment of the present invention. Methods include:
  • Step 21 In the process of transmitting a file to the receiver terminal by the sender terminal, the sender terminal receives the cache file notification sent by the server, saves the file transmission breakpoint information, and sends the remaining file to the server cache.
  • Step 22 The sender terminal sends the file transmission breakpoint information to the receiver terminal, and ends the file transmission with the receiver terminal.
  • FIG. 3 is a schematic flowchart of a server-side process of a point-to-point file transmission method according to an embodiment of the present invention, where the method includes :
  • Step 31 Receive a temporary file storage request initiated by the receiver terminal in a process of transmitting a file by the sender terminal to the receiver terminal;
  • the server receives the temporary file storage request initiated by the receiver terminal.
  • Step 32 Send a cache file notification to the sender terminal, and cache the remaining files sent by the sender.
  • the server sends a cache file notification to the sender terminal, and caches the remaining files transmitted by the sender terminal after receiving the cache file notification response sent by the sender terminal.
  • Step 33 Determine that the receiver terminal satisfies the condition of receiving the file again, and transmits the remaining file to the receiver terminal.
  • the server determines whether the recipient terminal satisfies the re-received file condition, and if it is determined that the re-received file condition is satisfied, transfers the cached remaining file to the recipient terminal.
  • the foregoing determining that the receiver terminal meets the condition of receiving the file again includes:
  • FIG. 4 is a schematic diagram of a system architecture in the specific example.
  • the sender terminal may be a computer or a mobile terminal, and the receiver terminal may also be a computer or a mobile terminal;
  • the servers they interact with include:
  • FTSS Full Temp Store Service server for providing temporary file caching, notification, and transmission services, receiving a temporary file storage request from the receiving terminal, and establishing a temporary file transmission channel with the sender terminal, and buffering the remaining files sent by the sender terminal; After the receiver terminal goes online again and satisfies the file receiving condition, the temporary file notification information is sent to the receiving terminal to transmit the cached remaining file to the receiving terminal.
  • the service server is used for the login authentication of the receiver terminal.
  • the FTSS server is actively notified, and the FTSS server further determines whether the receiver terminal has temporary files to be received, that is, whether there are cached remaining files. And if present, actively notify the recipient terminal to acquire the cached remaining files.
  • the above FTSS server and AAS server may exist separately or may be integrated into one server to provide corresponding functions.
  • FIG. 5 is a schematic diagram of signaling interaction in a specific example of an embodiment of the present invention, where the figure includes:
  • the sender terminal A and the receiver terminal B perform file transmission, and the file transmission number is FileID;
  • the receiving terminal B needs to leave and has to stop receiving the file. At this time, the receiving terminal B initiates a temporary file storage request (Temp_StoreFile_request.req) to the FTSS server, and the temporary file storage request carries the FileID and the Sender. ID;
  • the FTSS server is based on the Sender The ID sends a cache file notification to the sender terminal A, and the cache file notification carries the FileID and the Receiver ID;
  • the sender terminal A saves the file transmission breakpoint information, stops transmitting the file to the receiver terminal B, and then initiates a temporary file transfer request to the FTSS server (Temp_FileTransfer) _request.req);
  • FTSS server returns a temporary file transfer response (Temp_FileTransfer_ request .res);
  • the sender terminal A and the FTSS server establish a file transmission channel, and start the remaining file transmission from the breakpoint, and transfer the remaining files to the FTSS server cache;
  • the sender terminal A After the sender terminal A establishes a file transmission channel with the FTSS server, it sends a file transmission breakpoint information to the receiver terminal B, and ends the file transmission with the receiver terminal B, and the receiver terminal B receives the file transmission breakpoint information. And save;
  • the receiving terminal B is online again. After obtaining the online information of the receiving terminal B, the AAS server performs login authentication on the receiving terminal B, and after the login authentication is passed, notifies the FTSS server that the receiving terminal B logs in.
  • the FTSS server further determines whether the receiving terminal B needs to transmit a temporary file, and if so, determines that the receiving terminal B satisfies the condition of receiving the file again, and sends the temporary file notification information to the receiving terminal B;
  • the receiving terminal B initiates a temporary file transfer request to the FTSS server Temp_StoreFile_ Receive.req;
  • the FTSS server returns a temporary file transfer response (Temp_StoreFile_receive.res) to the recipient terminal B.
  • the FTSS server establishes a temporary file transmission channel with the receiver terminal B, and the receiver terminal B starts to receive the cached remaining files from the FTSS server based on the file transmission breakpoint information.
  • the FTSS server can delete the cached temporary file, and the recipient terminal B can view the file information.
  • the efficiency of the point-to-point file transmission can be improved, the user experience is improved, and the waste of network bandwidth resources is reduced.
  • FIG. 6 is a schematic structural diagram of a point-to-point file transmission terminal according to an embodiment of the present invention, where the terminal includes:
  • the file cache notification unit 61 is configured to interrupt receiving the file in the process of receiving the file sent by the sender terminal, and send a temporary file storage request to the server to notify the sender terminal to transfer the remaining file to the server cache; For the specific implementation of the unit, refer to step 11 in the foregoing method embodiment.
  • the remaining file receiving unit 62 is configured to download the cached remaining file from the server when the file condition is received again.
  • the unit For the specific implementation of the unit, refer to step 12 in the foregoing method embodiment.
  • the terminal may further include:
  • the breakpoint information storage unit 63 is configured to receive and save the file transmission breakpoint information sent by the sender terminal after the sender terminal and the server establish a file transmission channel.
  • the remaining file receiving unit 62 is further configured to: receive the temporary file notification information sent by the server when the file condition is received again, and establish a file transmission channel with the server, and receive the remaining files cached in the server.
  • the terminal is a unit included as a receiver terminal, and the terminal may also serve as a sender terminal.
  • the terminal is a sender terminal, the terminal includes:
  • the notification receiving unit 64 is configured to receive the cache file notification sent by the server in the process of transmitting the file to the receiver terminal. For the specific implementation manner of the unit, refer to step 21 in the foregoing method embodiment.
  • the cache file transfer unit 65 is configured to: after the notification receiving unit 64 receives the cache file notification, transfer the remaining file to the server for caching; the specific implementation manner of the unit may refer to step 21 in the foregoing method embodiment. .
  • the breakpoint information transmission unit 66 is configured to: after the notification receiving unit 64 receives the cache file notification, save the file transmission breakpoint information, and send the file transmission breakpoint information to the receiver terminal, and the specific implementation of the unit For the manner, refer to step 22 in the above method embodiment.
  • FIG. 7 is a schematic structural diagram of a server for providing peer-to-peer file transmission according to an embodiment of the present invention, where the server includes:
  • the temporary file buffering unit 71 is configured to send a cache file notification to the sender terminal if the temporary file storage request initiated by the receiver terminal is received in the process of transmitting the file to the receiver terminal by the sender terminal, and The remaining files transmitted by the sender terminal are cached.
  • the temporary file buffering unit 71 refers to steps 31 and 32 in the foregoing method embodiment.
  • the temporary file transfer unit 72 is configured to transmit the cached remaining file to the recipient terminal when determining that the recipient terminal satisfies the re-receive file condition. For the specific implementation of the unit, refer to step 33 in the foregoing method embodiment.
  • the server further includes:
  • the condition determining unit 73 is configured to determine, after the receiving terminal login authentication passes, whether the receiving terminal has a temporary file to receive; if yes, determine that the receiving terminal satisfies the re-receiving file condition.
  • FIG. 8 is a schematic structural diagram of a system for providing point-to-point file transmission according to an embodiment of the present invention.
  • the system includes: the terminal and the server in the foregoing embodiment. Each unit.
  • each unit included is only divided according to functional logic, but is not limited to the above division, as long as the corresponding function can be implemented;
  • the specific names of the units are also for convenience of distinguishing from each other and are not intended to limit the scope of the present invention.
  • the terminal (including the sender terminal and the receiver terminal) of the present invention may be a mobile phone, a computer, or a fixed-line terminal; the server may be any network hardware device such as a computer, a base station, or the like.
  • the storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
  • the embodiments of the present invention can improve the efficiency of point-to-point file transmission, improve user experience, and reduce waste of network bandwidth resources.

Abstract

本发明实施例提供了一种点对点文件传输的方法及装置。所述方法包括:接收方终端在接收发送方终端发送文件的过程中,中断接收文件,并向服务器发送临时文件存储请求,以通知所述发送方终端将剩余文件传送到所述服务器缓存;当所述接收方终端满足再次接收文件条件时,从所述服务器下载缓存的剩余文件。通过上述方法实施例,就能够提高点对点文件传输的效率,提升用户体验,并减少了网络带宽资源浪费。

Description

点对点文件传输的方法及装置
技术领域
本发明涉及网络通信领域,尤其涉及一种点对点文件传输的方法及装置。
发明背景
目前,在现有的富通信套件(RCS,Rich Communication Suite)标准规范和即时通信软件中,对于点到点实时传输的文件,是直接在发送方终端和接收方终端之间建立文件传输通道,如果接收方终端临时需要停止接收文件退出通信软件,该点到点文件传输通道就会关闭,已经传输的部分就会丢弃掉,文件传输就会中止。这样对于大文件来说,会照成大量网络带宽资源浪费,并且用户体验不好。
发明内容
本发明实施例提供了一种点对点文件传输的方法及装置,能够提高点对点文件传输的效率,提升用户体验,并减少了网络带宽资源浪费。
本发明一方面提供了一种点对点文件传输的方法,所述方法包括:
接收方终端在接收发送方终端发送文件的过程中,中断接收文件,并向服务器发送临时文件存储请求,以通知所述发送方终端将剩余文件传送到所述服务器缓存;
当所述接收方终端满足再次接收文件条件时,从所述服务器下载缓存的剩余文件。
所述方法还包括:
在所述发送方终端和所述服务器建立文件传输通道之后,所述接收方终端接收并保存所述发送方终端发送的文件传输断点信息。
所述从所述服务器下载缓存的剩余文件,具体包括:
所述接收方终端接收到所述服务器发送的临时文件通知信息;
所述接收方终端和所述服务器建立文件传输通道,并继续接收缓存在所述服务器的剩余文件。
本发明另一方面提供了一种点对点文件传输的方法,所述方法包括:
在发送方终端向接收方终端传输文件的过程中,所述发送方终端接收服务器发送的缓存文件通知,保存文件传输断点信息,并将剩余文件发送到所述服务器缓存;
所述发送方终端发送所述文件传输断点信息给所述接收方终端,并结束与所述接收方终端的文件传输。
本发明另一方面提供了一种点对点文件传输的方法,所述方法包括:
在发送方终端向接收方终端传输文件的过程中,接收所述接收方终端发起的临时文件存储请求;
向所述发送方终端发送缓存文件通知,并缓存所述发送方传送来的剩余文件;
确定所述接收方终端满足再次接收文件条件,将所述剩余文件传送给所述接收方终端。
所述确定所述接收方终端满足再次接收文件条件,具体包括:
在所述接收方终端登录鉴权通过后,判断所述接收方终端是否有临时文件需要接收;
若有,则确定所述接收方终端满足再次接收文件的条件。
本发明又一方面提供了一种点对点文件传输的终端,包括:
文件缓存通知单元,用于在接收发送方终端发送文件的过程中,中断接收文件,并向服务器发送临时文件存储请求,以通知所述发送方终端将剩余文件传送到所述服务器缓存;
剩余文件接收单元,用于当满足再次接收文件条件时,从所述服务器下载缓存的剩余文件。
还包括:
断点信息存储单元,用于在所述发送方终端和所述服务器建立文件传输通道之后,接收并保存所述发送方终端发送的文件传输断点信息。
所述剩余文件接收单元进一步用于当满足再次接收文件条件时,接收所述服务器发送的临时文件通知信息,并与所述服务器建立文件传输通道,接收缓存在所述服务器的剩余文件。
还包括:
通知接收单元,用于在向接收方终端传输文件的过程中,接收所述服务器发送的缓存文件通知;
缓存文件传输单元,用于在所述通知接收单元接收到缓存文件通知后,将剩余文件传送到所述服务器进行缓存;
断点信息传输单元,用于在所述通知接收单元接收到缓存文件通知后,保存文件传输断点信息,并发送该文件传输断点信息给所述接收方终端。
本发明又一方面提供了一种点对点文件传输的服务器,所述服务器包括:
临时文件缓存单元,用于在发送方终端向接收方终端传输文件的过程中,若收到所述接收方终端发起的临时文件存储请求,则向所述发送方终端发送缓存文件通知,并缓存所述发送方终端传送来的剩余文件;
临时文件传送单元,用于在确定所述接收方终端满足再次接收文件条件时,将缓存的剩余文件传送给所述接收方终端。
所述服务器还包括:
条件确定单元,用于当满足再次接收文件条件时,接收所述服务器发送的临时文件通知信息,并与所述服务器建立文件传输通道,接收缓存在所述服务器的剩余文件。
本发明又一方面提供了一种点对点文件传输的系统,所述系统包括:如上任一所述的终端,以及如上所述的服务器。
由上述所提供的技术方案可以看出,所述方法包括:接收方终端在接收发送方终端发送文件的过程中,中断接收文件,并向服务器发送临时文件存储请求,以通知所述发送方终端将剩余文件传送到所述服务器缓存;当所述接收方终端满足再次接收文件条件时,从所述服务器下载缓存的剩余文件。通过上述方法实施例,就能够提高点对点文件传输的效率,提升用户体验,并减少了网络带宽资源浪费。
附图简要说明
图1为本发明实施例所提供点对点文件传输方法的接收方终端侧的流程示意图;
图2为本发明实施例所提供点对点文件传输方法的发送方终端侧的流程示意图;
图3为本发明实施例所提供点对点文件传输方法的服务器侧的流程示意图;
图4为本发明实施例所举具体实例中的系统架构示意图;
图5为本发明实施例所举具体实例中的信令交互示意图;
图6为本发明实施例所提供点对点文件传输的终端结构示意图;
图7为本发明实施例所提供点对点文件传输的服务器结构示意图;
图8为本发明实施例所提供点对点文件传输的系统结构示意图。
实施本发明的方式
本发明实施方式提供了一种点对点文件传输的方法、装置及系统,具体是在点对点的文件传输过程中,当接收方终端暂时放弃接收文件时,将剩余文件传送到服务器进行缓存;并当接收方终端下次登录或条件允许的情况下再继续从服务器下载剩余文件,从而提高了点对点文件传输的效率,提升了用户体验,并减少了网络带宽资源浪费。
为更好的描述本发明实施例,现结合附图对本发明的具体实施例进行说明,如图1所示为本发明实施例所提供点对点文件传输方法的接收方终端侧的流程示意图,所述方法包括:
步骤11:接收方终端在接收发送方终端发送文件的过程中,中断接收文件,并向服务器发送临时文件存储请求,以通知所述发送方终端将剩余文件传送到所述服务器缓存;
在该步骤中,在接收方终端接收发送方终端所发送的文件时,若所述接收方终端中断接收文件,则接收方终端通知发送方终端将剩余文件转到服务器缓存,具体来说:
接收方终端向服务器发送临时文件存储请求,由该服务器通知发送方终端将剩余文件传送到所述服务器进行缓存。
另外,在发送方终端和服务器建立文件传输通道之后,所述接收方终端还会接收并保存所述发送方终端发送来的文件传输断点信息。
步骤12:当所述接收方终端满足再次接收文件条件时,从所述服务器下载缓存的剩余文件。
在该步骤中,需要对接收方终端是否满足再次接收文件条件进行确定,当确定接收方终端满足再次接收文件条件时,该接收方终端就可以从所述服务器下载剩余文件。
在具体实现过程中,当所述接收方终端登录鉴权通过,且该接收方终端接收到服务器发送的临时文件通知信息时,确定接收方终端满足再次接收文件条件,则所述接收方终端和所述服务器建立文件传输通道,继续接收缓存在所述服务器的剩余文件。
上述实施例为点对点文件传输方法中接收方终端侧的实施过程,通过该方法就可以提高了点对点文件传输的效率,提升了用户体验,并减少了网络带宽资源浪费。
下面再针对点对点文件传输方法中发送方终端侧、服务器侧的具体实施过程进行详细描述:
本发明实施例还提供了一种点对点文件传输的方法,具体为发送方终端侧的实施过程,如图2为本发明实施例所提供点对点文件传输方法的发送方终端侧的流程示意图,所述方法包括:
步骤21:在发送方终端向接收方终端传输文件的过程中,所述发送方终端接收服务器发送的缓存文件通知,保存文件传输断点信息,并将剩余文件发送到所述服务器缓存;
步骤22:所述发送方终端发送所述文件传输断点信息给所述接收方终端,并结束与所述接收方终端的文件传输。
本发明实施例还提供了一种点对点文件传输的方法,具体为服务器侧的实施过程,如图3所示为本发明实施例所提供点对点文件传输方法的服务器侧的流程示意图,所述方法包括:
步骤31:在发送方终端向接收方终端传输文件的过程中,接收所述接收方终端发起的临时文件存储请求;
在该步骤中,在发送方终端向接收方终端传输文件的过程中,服务器收到所述接收方终端发起的临时文件存储请求
步骤32:向所述发送方终端发送缓存文件通知,并缓存所述发送方传送来的剩余文件;
在该步骤中,所述服务器向所述发送方终端发送缓存文件通知,并在在收到发送方终端发送的缓存文件通知响应后,缓存所述发送方终端传送来的剩余文件。
步骤33:确定所述接收方终端满足再次接收文件条件,将所述剩余文件传送给所述接收方终端。
在该步骤中,当接收方终端再次登陆时,服务器确定该接收方终端是否满足再次接收文件条件,若确定满足再次接收文件条件时,则将缓存的剩余文件传送给所述接收方终端。
上述确定所述接收方终端满足再次接收文件条件,具体包括:
在所述接收方终端登录鉴权通过后,判断所述接收方终端是否有临时文件需要接收;
若有,则确定所述接收方终端满足再次接收文件条件。
下面以具体的实例来进行详细说明,如图4所示为所举具体实例中的系统架构示意图,图中发送方终端可以为计算机或移动终端,接收方终端也可以为计算机或移动终端;与他们进行交互的服务器包括:
FTSS(File Temp Store Service)服务器,用于提供临时文件缓存、通知、传输服务,接收来自接收方终端的临时文件存储请求,并与发送方终端建立临时文件传输通道,缓存发送方终端发送来的剩余文件;并在接收方终端再次上线并满足文件接收条件之后,向接收方终端发送临时文件通知信息,以便将缓存的剩余文件传送给所述接收方终端。
AAS(Authorization Authentication Service)服务器,用于接收方终端的登陆鉴权,当接收方终端登陆鉴权通过后,主动通知FTSS服务器,FTSS服务器进一步判断接收方终端是否有临时文件待接收,即是否有缓存的剩余文件,如果存在则主动通知该接收方终端获取所述缓存的剩余文件。
上述的FTSS服务器和AAS服务器可以分别独立存在,也可以集成为一个服务器来提供相应的功能。
如图5所示为本发明实施例所举具体实例中的信令交互示意图,图中包括:
1、发送方终端A和接收方终端B进行文件传输,文件传输编号为FileID;
2、接收方终端B需要离开,不得不停止接收文件,这时接收方终端B向FTSS服务器发起临时文件存储请求(Temp_StoreFile_request.req),所述临时文件存储请求携带FileID和Sender ID;
3、FTSS服务器根据所述Sender ID向发送方终端A发起缓存文件通知,所述缓存文件通知携带FileID和Receiver ID;
4、发送方终端A保存文件传输断点信息,停止向接收方终端B继续传输文件,随后向FTSS服务器发起临时文件传输请求(Temp_FileTransfer _request.req);
5、FTSS服务器返回临时文件传输响应(Temp_FileTransfer_ request .res);
6、发送方终端A和FTSS服务器建立文件传输通道,并且从断点处开始剩余文件传输,将剩余文件传输给FTSS服务器缓存;
7、发送方终端A在与FTSS服务器建立文件传输通道之后,发送文件传输断点信息给接收方终端B,并且结束与接收方终端B的文件传输,该接收方终端B接收文件传输断点信息并保存;
8、接收方终端B再次上线,AAS服务器获取到接收方终端B在线的信息之后,对接收方终端B进行登录鉴权,并在登录鉴权通过后,通知FTSS服务器接收方终端B登录;
9、FTSS服务器进一步判断接收方终端B是否有临时文件需要传输,若判断有,则确定接收方终端B满足再次接收文件条件,并发送临时文件通知信息给接收方终端B;
10、接收方终端B向FTSS服务器发起接收临时文件传输请求Temp_StoreFile_ receive.req;
11、FTSS服务器向接收方终端B返回临时文件传输响应(Temp_StoreFile_receive.res)。
12、FTSS服务器与接收方终端B建立临时文件传输通道,接收方终端B基于文件传输断点信息开始从FTSS服务器继续接收缓存的剩余文件。
在剩余文件传输完成之后,FTSS服务器可以删除缓存的临时文件,而接收方终端B可以查看文件信息。
通过以上方法实施例技术方案的实施,就能够提高点对点文件传输的效率,提升用户体验,并减少了网络带宽资源浪费。
本发明实施例还提供了一种点对点文件传输的终端,如图6所示为本发明实施例所提供点对点文件传输终端的结构示意图,所述终端包括:
文件缓存通知单元61,用于在接收发送方终端发送文件的过程中,中断接收文件,并向服务器发送临时文件存储请求,以通知所述发送方终端将剩余文件传送到所述服务器缓存;该单元具体的实现方式可参考上述方法实施例中步骤11所述。
剩余文件接收单元62,用于当满足再次接收文件条件时,从所述服务器下载缓存的剩余文件,该单元具体的实现方式可参考上述方法实施例中步骤12所述。
所述终端还可包括:
断点信息存储单元63,用于在所述发送方终端和所述服务器建立文件传输通道之后,接收并保存所述发送方终端发送的文件传输断点信息。
上述剩余文件接收单元62进一步用于当满足再次接收文件条件时,接收所述服务器发送的临时文件通知信息,并与所述服务器建立文件传输通道,接收缓存在所述服务器的剩余文件。
上述终端是作为接收方终端时所包括的单元,该终端也可以作为发送方终端,当作为发送方终端时,该终端包括:
通知接收单元64,用于在向接收方终端传输文件的过程中,接收所述服务器发送的缓存文件通知;该单元具体的实现方式可参考上述方法实施例中步骤21所述。
缓存文件传输单元65,用于在所述通知接收单元64接收到缓存文件通知后,将剩余文件传送到所述服务器进行缓存;该单元具体的实现方式可参考上述方法实施例中步骤21所述。
断点信息传输单元66,用于在所述通知接收单元64接收到缓存文件通知后,保存文件传输断点信息,并发送该文件传输断点信息给所述接收方终端,该单元具体的实现方式可参考上述方法实施例中步骤22所述。
本发明实施例还提供了一种点对点文件传输的服务器,如图7所示为本发明实施例所提供点对点文件传输的服务器结构示意图,所述服务器包括:
临时文件缓存单元71,用于在发送方终端向接收方终端传输文件的过程中,若收到所述接收方终端发起的临时文件存储请求,则向所述发送方终端发送缓存文件通知,并缓存所述发送方终端传送来的剩余文件;该单元具体的实现方式可参考上述方法实施例中步骤31和32所述。
临时文件传送单元72,用于在确定所述接收方终端满足再次接收文件条件时,将缓存的剩余文件传送给所述接收方终端。该单元具体的实现方式可参考上述方法实施例中步骤33所述。
所述服务器还包括:
条件确定单元73,用于在所述接收方终端登录鉴权通过后,判断所述接收方终端是否有临时文件需要接收;若有,则确定所述接收方终端满足再次接收文件条件。
本发明实施例还提供了一种点对点文件传输的系统,如图8所示为本发明实施例所提供点对点文件传输的系统结构示意图,所述系统包括:上述实施例所述的终端和服务器中的各个单元。
值得注意的是,上述终端、服务器和系统实施例中,所包括的各个单元只是按照功能逻辑进行划分的,但并不局限于上述的划分,只要能够实现相应的功能即可;另外,各功能单元的具体名称也只是为了便于相互区分,并不用于限制本发明的保护范围。
本发明的终端(包括发送方终端和接收方终端)可以为手机、计算机、固话终端;服务器可以为任何网络硬件设备,如计算机,基站等。
另外,本领域普通技术人员可以理解实现上述方法实施例中的全部或部分步骤是可以通过程序来指令相关的硬件完成,相应的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。
综上所述,本发明实施例能够提高点对点文件传输的效率,提升用户体验,并减少了网络带宽资源浪费。
以上所述,仅为本发明较佳的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明实施例揭露的技术范围内,可轻易想到的变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应该以权利要求的保护范围为准。

Claims (13)

  1. 一种点对点文件传输的方法,其特征在于,所述方法包括:
    接收方终端在接收发送方终端发送文件的过程中,中断接收文件,并向服务器发送临时文件存储请求,以通知所述发送方终端将剩余文件传送到所述服务器缓存;
    当所述接收方终端满足再次接收文件条件时,从所述服务器下载缓存的剩余文件。
  2. 如权利要求1所述的方法,其特征在于,所述方法还包括:
    在所述发送方终端和所述服务器建立文件传输通道之后,所述接收方终端接收并保存所述发送方终端发送的文件传输断点信息。
  3. 如权利要求1所述的方法,其特征在于,所述从所述服务器下载缓存的剩余文件,具体包括:
    所述接收方终端接收到所述服务器发送的临时文件通知信息;
    所述接收方终端和所述服务器建立文件传输通道,并继续接收缓存在所述服务器的剩余文件。
  4. 一种点对点文件传输的方法,其特征在于,所述方法包括:
    在发送方终端向接收方终端传输文件的过程中,所述发送方终端接收服务器发送的缓存文件通知,保存文件传输断点信息,并将剩余文件发送到所述服务器缓存;
    所述发送方终端发送所述文件传输断点信息给所述接收方终端,并结束与所述接收方终端的文件传输。
  5. 一种点对点文件传输的方法,其特征在于,所述方法包括:
    在发送方终端向接收方终端传输文件的过程中,接收所述接收方终端发起的临时文件存储请求;
    向所述发送方终端发送缓存文件通知,并缓存所述发送方传送来的剩余文件;
    确定所述接收方终端满足再次接收文件条件,将所述剩余文件传送给所述接收方终端。
  6. 如权利要求5所述的方法,其特征在于,所述确定所述接收方终端满足再次接收文件条件,具体包括:
    在所述接收方终端登录鉴权通过后,判断所述接收方终端是否有临时文件需要接收;
    若有,则确定所述接收方终端满足再次接收文件的条件。
  7. 一种点对点文件传输的终端,其特征在于,包括:
    文件缓存通知单元,用于在接收发送方终端发送文件的过程中,中断接收文件,并向服务器发送临时文件存储请求,以通知所述发送方终端将剩余文件传送到所述服务器缓存;
    剩余文件接收单元,用于当满足再次接收文件条件时,从所述服务器下载缓存的剩余文件。
  8. 如权利要求7所述的终端,其特征在于,还包括:
    断点信息存储单元,用于在所述发送方终端和所述服务器建立文件传输通道之后,接收并保存所述发送方终端发送的文件传输断点信息。
  9. 如权利要求7所述的终端,其特征在于,
    所述剩余文件接收单元进一步用于当满足再次接收文件条件时,接收所述服务器发送的临时文件通知信息,并与所述服务器建立文件传输通道,接收缓存在所述服务器的剩余文件。
  10. 如权利要求7-9任一所述的终端,其特征在于,还包括:
    通知接收单元,用于在向接收方终端传输文件的过程中,接收所述服务器发送的缓存文件通知;
    缓存文件传输单元,用于在所述通知接收单元接收到缓存文件通知后,将剩余文件传送到所述服务器进行缓存;
    断点信息传输单元,用于在所述通知接收单元接收到缓存文件通知后,保存文件传输断点信息,并发送该文件传输断点信息给所述接收方终端。
  11. 一种点对点文件传输的服务器,其特征在于,所述服务器包括:
    临时文件缓存单元,用于在发送方终端向接收方终端传输文件的过程中,若收到所述接收方终端发起的临时文件存储请求,则向所述发送方终端发送缓存文件通知,并缓存所述发送方终端传送来的剩余文件;
    临时文件传送单元,用于在确定所述接收方终端满足再次接收文件条件时,将缓存的剩余文件传送给所述接收方终端。
  12. 如权利要求11所述的服务器,其特征在于,所述服务器还包括:
    条件确定单元,用于在所述接收方终端登录鉴权通过后,判断所述接收方终端是否有临时文件需要接收;若有,则确定所述接收方终端满足再次接收文件条件。
  13. 一种点对点文件传输的系统,其特征在于,所述系统包括:如权利要求7-10任一所述的终端,以及如权利要求11或12所述的服务器。
PCT/CN2011/074642 2011-05-25 2011-05-25 点对点文件传输的方法及装置 WO2011144077A2 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN2011800005279A CN102217283A (zh) 2011-05-25 2011-05-25 点对点文件传输的方法及装置
PCT/CN2011/074642 WO2011144077A2 (zh) 2011-05-25 2011-05-25 点对点文件传输的方法及装置

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2011/074642 WO2011144077A2 (zh) 2011-05-25 2011-05-25 点对点文件传输的方法及装置

Publications (2)

Publication Number Publication Date
WO2011144077A2 true WO2011144077A2 (zh) 2011-11-24
WO2011144077A3 WO2011144077A3 (zh) 2012-04-26

Family

ID=44746760

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/074642 WO2011144077A2 (zh) 2011-05-25 2011-05-25 点对点文件传输的方法及装置

Country Status (2)

Country Link
CN (1) CN102217283A (zh)
WO (1) WO2011144077A2 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103401914A (zh) * 2013-07-26 2013-11-20 浪潮电子信息产业股份有限公司 一种文件上传断点续传的方法

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101872570B1 (ko) * 2012-10-08 2018-06-28 패트릭 순-시옹 분산 저장 시스템 및 방법
CN104980399B (zh) * 2014-04-08 2020-04-21 腾讯科技(深圳)有限公司 一种文件传输方法、客户端及代理服务器
CN106604260B (zh) * 2015-10-20 2021-12-21 中兴通讯股份有限公司 一种应用下载方法及装置
CN106921718A (zh) * 2015-12-28 2017-07-04 镇江高科信息科技有限公司 文件传输的方法、文件传输的装置和终端
CN107623706A (zh) * 2016-07-13 2018-01-23 中兴通讯股份有限公司 文件传输方法及装置
CN107566540A (zh) * 2017-10-31 2018-01-09 云宏信息科技股份有限公司 大文件断点续传方法、装置及系统
CN112769876B (zh) * 2019-10-21 2023-04-07 浙江宇视科技有限公司 一种设备通道信息获取方法、装置、设备和介质
CN112003906B (zh) * 2020-08-03 2023-07-18 广州久零区块链技术有限公司 一种区块链电商用具有加密结构的点对点传输方法

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101005676A (zh) * 2007-01-18 2007-07-25 上海柯斯软件有限公司 一种使用移动终端下载网络资源的方法
CN101014022A (zh) * 2007-02-13 2007-08-08 北京亿企通信息技术有限公司 一种在即时通信工具中传输文件的方法、装置和系统
CN101202979A (zh) * 2006-12-15 2008-06-18 深圳市杰普林数码科技限公司 一种手机间互传文件的方法
CN101335785A (zh) * 2007-06-28 2008-12-31 王忱 电话数据终端系统及其数据自动传输方法

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101202979A (zh) * 2006-12-15 2008-06-18 深圳市杰普林数码科技限公司 一种手机间互传文件的方法
CN101005676A (zh) * 2007-01-18 2007-07-25 上海柯斯软件有限公司 一种使用移动终端下载网络资源的方法
CN101014022A (zh) * 2007-02-13 2007-08-08 北京亿企通信息技术有限公司 一种在即时通信工具中传输文件的方法、装置和系统
CN101335785A (zh) * 2007-06-28 2008-12-31 王忱 电话数据终端系统及其数据自动传输方法

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103401914A (zh) * 2013-07-26 2013-11-20 浪潮电子信息产业股份有限公司 一种文件上传断点续传的方法

Also Published As

Publication number Publication date
WO2011144077A3 (zh) 2012-04-26
CN102217283A (zh) 2011-10-12

Similar Documents

Publication Publication Date Title
WO2011144077A2 (zh) 点对点文件传输的方法及装置
WO2017193553A1 (zh) 网络切片的接入控制方法及装置、终端化小区和sdn控制器
WO2012074198A1 (en) Terminal and intermediate node in content oriented networking environment and communication method of terminal and intermediate node
WO2009116788A1 (en) Method of transmitting rlc data
WO2010120084A2 (en) Method of receiving a point-to-multipoint service in a wireless communication system
WO2019035638A1 (ko) 제 3자 응용 서버에서 단말의 무선 연결 타입 변경을 확인하는 방법
JP3585823B2 (ja) 無線通信システムおよびそのタイムアウト値更新方法
WO2016080816A1 (ko) 세션 기반 웹 서비스를 제공하는 방법 및 장치
WO2018128226A1 (ko) 이종 네트워크상에서의 컨텐츠 전송 방법 및 이를 위한 장치
WO2013083074A1 (zh) 通信监听方法、基站和终端
WO2014200177A1 (ko) 통신 네트워크에서 컨텐츠 전달 방법 및 이를 위한 장치
WO2010131935A2 (ko) 광대역 무선 접속 시스템에서 효율적인 시그널링 헤더의 구조
WO2021141296A1 (ko) 이동통신 시스템에서 시간 민감 네트워킹 동기화 정보 전달 방법 및 장치
WO2013069979A1 (ko) Http를 이용한 파일 전송 시스템, 그의 메시지 서버, 단말 및 방법
WO2015002443A1 (en) Mobile device and method for controlling transmission to web server in mobile device
WO2015199271A1 (en) Method and system for sharing files over p2p
WO2017092387A1 (zh) 一种可穿戴设备的通信实现方法及系统
WO2020167078A1 (en) Method and device for controlling video reception
EP2918138A1 (en) Method and apparatus for providing web service in wireless communication system
WO2014148865A1 (ko) 통합 sns 게이트웨이
WO2019052463A1 (zh) 基于WiFi Display的多媒体文件共享方法、设备以及系统
WO2018203643A1 (en) Http adaptive streaming server, method, and client terminal based on network environment monitoring
WO2010098527A1 (ko) Cpns 환경에서 종단 단말기가 다수의 이동통신 단말기에 연결되어 서비스를 제공받기 위한 방법 및 시스템과 이를 위한 cpns 서버 및 종단 단말기
WO2010090470A2 (en) System and method for providing message push service in wireless communication system
WO2012163028A1 (zh) 一种用户设备的处理方法、移动性管理实体的处理方法、用户设备、移动性管理实体及通信系统

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 201180000527.9

Country of ref document: CN

NENP Non-entry into the national phase in:

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 11782994

Country of ref document: EP

Kind code of ref document: A2