[go: up one dir, main page]

CN104969532B - Method and device for file download - Google Patents

Method and device for file download Download PDF

Info

Publication number
CN104969532B
CN104969532B CN201380000818.7A CN201380000818A CN104969532B CN 104969532 B CN104969532 B CN 104969532B CN 201380000818 A CN201380000818 A CN 201380000818A CN 104969532 B CN104969532 B CN 104969532B
Authority
CN
China
Prior art keywords
file
server
mark
original document
blocks
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201380000818.7A
Other languages
Chinese (zh)
Other versions
CN104969532A (en
Inventor
秦晋
狄龙
谢军安
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
XFusion Digital Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of CN104969532A publication Critical patent/CN104969532A/en
Application granted granted Critical
Publication of CN104969532B publication Critical patent/CN104969532B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

According to the embodiment of the application, in the process of using the service provided by the CSP server, the terminal does not need to be additionally connected with the UCD server, and the blocked files uploaded by the UCD server through a user can be acquired through the connection with the CSP server, so that the process that the terminal is additionally connected with the UCD server is avoided, the user operation is simplified, and the user experience is improved.

Description

一种文件下载的方法和装置Method and device for file download

技术领域technical field

本发明涉及云计算领域,尤其涉及一种文件下载的方法和装置。The invention relates to the field of cloud computing, in particular to a method and device for downloading files.

背景技术Background technique

云存储服务是指服务器向用户提供文件的存储、访问、备份、共享等文件管理功能的服务。用户可以将服务器看成一个放在网络上的硬盘或网盘,不管在任何地方,通过互联网,即可管理、编辑存储在服务器上的文件。Cloud storage service refers to the service in which the server provides users with file management functions such as file storage, access, backup, and sharing. Users can regard the server as a hard disk or network disk on the network, no matter where they are, they can manage and edit files stored on the server through the Internet.

在现有技术中,用户可以在统一云磁盘(unified cloud disk,UCD)系统中向不同的云业务提供商(cloud service provider,CSP)注册后,并在UCD服务器UCD服务器处注册,以及向UCD服务器提供用户在CSP服务器处注册的相关信息,如用户在CSP服务器处注册的用户名和密码,以便UCD服务器可以根据用户在CSP服务器处的注册信息登录用户注册过的CSP服务器.用户通过UCD客户端(UCD Client),向UCD服务器发出文件操作请求(如上传,下载,改文件名等)。In the prior art, a user can register with a different cloud service provider (cloud service provider, CSP) in a unified cloud disk (unified cloud disk, UCD) system, register at the UCD server UCD server, and register with the UCD server The server provides information related to the user's registration at the CSP server, such as the user name and password registered at the CSP server, so that the UCD server can log in to the CSP server that the user has registered based on the user's registration information at the CSP server. The user passes through the UCD client (UCD Client), send a file operation request (such as upload, download, rename, etc.) to the UCD server.

比如,用户通过UCD客户端向UCD服务器上传一个文件,UCD服务器端会根据一定的策略在用户已经注册的CSP中选择一个合适的CSP,具体的策略可以为:如当前存储容量最大的CSP服务器,当前传输速度最快CSP服务器,并将此文件真正存储在由UCD服务器选定的CSP服务器的网盘中。对用户来说,只知道文件存储在用户事先注册的CSP器,但不清楚到底存储在哪个CSP服务器。比如,用户通过UCD客户端上传了2个文件,这两个文件被UCD服务器分别存储到了CSP服务器A和CSP服务器C处,也有可能这两个文件被同时存在一个CSP服务器。For example, if a user uploads a file to the UCD server through the UCD client, the UCD server will select a suitable CSP among the CSPs registered by the user according to a certain strategy. The specific strategy can be: for example, the CSP server with the largest storage capacity currently, The current fastest transmission speed is the CSP server, and this file is actually stored in the network disk of the CSP server selected by the UCD server. For the user, it is only known that the file is stored in the CSP server registered by the user in advance, but it is not clear which CSP server it is stored in. For example, the user uploads two files through the UCD client, and the two files are stored in the CSP server A and the CSP server C respectively by the UCD server. It is also possible that the two files are stored in one CSP server at the same time.

此外,用户有时会将一个文件分割成不同的文件块,并将不同的文件块存储到不同的设备(如服务器)中。这样即使一个文件块被盗,由于无法获得该文件的其他文件块,整个文件还是无法获得,从而保证了该文件安全性。如现有的将一个文件分割为两个文件块,并对两个文件块在不同的服务器上分别进行存储,一个文件块为文件中的敏感数据,另一文件块为文件中的一般数据,从而通过文件分割的方法确保了文件的安全性。在另一场景中,用户还有可能对大文件进行分块存储。In addition, users sometimes split a file into different file blocks and store different file blocks in different devices (such as servers). In this way, even if a file block is stolen, the entire file cannot be obtained because other file blocks of the file cannot be obtained, thereby ensuring the security of the file. For example, in the existing method, a file is divided into two file blocks, and the two file blocks are stored on different servers. One file block is the sensitive data in the file, and the other file block is the general data in the file. Thereby, the security of the file is ensured by the method of file division. In another scenario, users may also store large files in blocks.

然而,如通过UCD服务器选择CSP服务器对文件块进行存储时,同一文件的不同文件块很有可能是存储在不同的CSP服务器处的。因此,当同一文件的不同文件块存储在不同CSP服务器的网盘中时,用户终端在与CSP服务器建立连接时并不能从CSP服务器获取存储的文件,而只能通过终端另行与UCD服务器建立连接后,从UCD服务器获取整个文件。从而导致用户操作繁琐和不便,体验不高。However, if the UCD server selects the CSP server to store the file blocks, different file blocks of the same file are likely to be stored at different CSP servers. Therefore, when different file blocks of the same file are stored in the network disks of different CSP servers, the user terminal cannot obtain the stored file from the CSP server when establishing a connection with the CSP server, but can only establish a connection with the UCD server separately through the terminal After that, get the entire file from the UCD server. As a result, the user's operation is cumbersome and inconvenient, and the experience is not high.

发明内容Contents of the invention

本发明的实施例提供的文件下载的方法和装置,可以使得终端在登录CSP服务器在使用CSP服务器提供的业务后,从通过CSP服务器下载文件。The method and device for downloading files provided by the embodiments of the present invention can enable the terminal to download files from the CSP server after logging in to the CSP server and using services provided by the CSP server.

根据本发明实施例的第一方面,一种文件下载方法,在第一终端通过用户在所述第一云服务提供商CSP服务器的注册信息登录所述第一CSP服务器之后,且所述第一CSP服务器向所述第一终端提供业务的过程中,该方法包括:所述第一CSP服务器接收所述第一终端发送的文件下载请求,所述文件下载请求中携带原始文件的标识;所述第一CSP服务器确定与所述原始文件的标识对应的原始文件被分块,获取上传所述原始文件的文件块的第一统一云磁盘UCD服务器的标识;所述第一CSP服务器根据所述第一UCD服务器的标识向所述第一UCD服务器发送文件获取请求,所述文件获取请求携带所述原始文件的标识;所述文件获取请求用于指示所述第一UCD服务器根据所述原始文件的标识获取存储的原始文件的信息,并根据所述原始文件的信息中存储文件块的第二CSP服务器的标识,从所述第二CSP服务器的标识指示的第二CSP服务器获取文件块,并将所述获取的文件块合成为原始文件;所述第一CSP服务器接收所述第一UCD服务器返回的文件获取响应,并将所述文件获取响应发送给所述第一终端,以指示所述第一终端通过所述文件获取响应获取所述原始文件。According to the first aspect of the embodiments of the present invention, a file download method, after the first terminal logs in the first CSP server through the user's registration information on the first cloud service provider CSP server, and the first In the process of the CSP server providing services to the first terminal, the method includes: the first CSP server receives a file download request sent by the first terminal, and the file download request carries an identifier of an original file; the The first CSP server determines that the original file corresponding to the identifier of the original file is divided into blocks, and obtains the identifier of the first unified cloud disk UCD server that uploads the file block of the original file; the first CSP server according to the first CSP server An identifier of a UCD server sends a file acquisition request to the first UCD server, and the file acquisition request carries the identifier of the original file; the file acquisition request is used to instruct the first UCD server to Identifying and obtaining the information of the stored original file, and according to the identification of the second CSP server storing the file block in the information of the original file, obtaining the file block from the second CSP server indicated by the identification of the second CSP server, and The acquired file blocks are synthesized into an original file; the first CSP server receives the file acquisition response returned by the first UCD server, and sends the file acquisition response to the first terminal to instruct the second A terminal acquires the original file through the file acquisition response.

结合本发明第一方面的第一可能,所述第一终端通过所述文件获取响应获取所述原始文件具体为:所述文件获取响应携带所述原始文件,所述第一终端从文件获取响应中获取所述原始文件;或所述文件获取响应携带所述原始文件在所述第一UCD服务器的存储地址;所述第一终端根据所述存储地址从所述第一UCD服务器中获取所述原始文件。In combination with the first possibility of the first aspect of the present invention, the obtaining the original file by the first terminal through the file obtaining response specifically includes: the file obtaining response carries the original file, and the first terminal obtains the response from the file or the file acquisition response carries the storage address of the original file in the first UCD server; the first terminal acquires the original file from the first UCD server according to the storage address Original file.

结合本发明实施例的第一方面或第一可能的第二可能,所述接收所述第一终端发送的文件下载请求之前,该方法进一步包括:接收所述第一终端发送的查询请求;根据所述用户在所述第一CSP服务器的注册信息获取所述用户在所述第一CSP服务器存储的文件块信息,所述文件块信息包含上传所述第一UCD服务器的标识、以及文件块所属的原始文件的标识;根据所述第一UCD服务器的标识向所述第一UCD服务器发送文件块查询请求,所述文件块查询请求中包含所述文件块所属的原始文件的标识;接收所述第一UCD服务器返回的所述原始文件的信息,所述返回的原始文件的信息包含:原始文件的名称、原始文件的标识和第一UCD服务器的标识以及原始文件被分割的文件块数量;将所述原始文件的名称和所述原始文件的标识发送给所述第一终端,并存储所述返回的原始文件的信息;或将所述原始文件的信息发送给所述第一终端。In combination with the first aspect of the embodiments of the present invention or the first possible second possibility, before receiving the file download request sent by the first terminal, the method further includes: receiving the query request sent by the first terminal; according to The user's registration information on the first CSP server obtains the file block information stored by the user on the first CSP server, and the file block information includes the identification of the uploaded first UCD server and the file block to which the file block belongs the identification of the original file; send a file block query request to the first UCD server according to the identification of the first UCD server, the file block query request includes the identification of the original file to which the file block belongs; receive the The information of the original file returned by the first UCD server, the information of the original file returned includes: the name of the original file, the identification of the original file and the identification of the first UCD server and the divided file block quantity of the original file; Sending the name of the original file and the identifier of the original file to the first terminal, and storing the information of the returned original file; or sending the information of the original file to the first terminal.

结合本发明实施例的第一方面的第二可能的第三可能,所述文件块信息进一步包含文件块标识位;所述根据所述第一UCD服务器的标识向所述第一UCD服务器发送文件块查询请求之前,所述第一CSP服务器进一步确定所述文件块标识位为原始文件分割标识。In combination with the second possible third possibility of the first aspect of the embodiment of the present invention, the file block information further includes a file block identification bit; the sending the file to the first UCD server according to the identification of the first UCD server Before the block query request, the first CSP server further determines that the file block identification bit is an original file segmentation identification.

结合本发明实施例的第一方面的第二可能或第三可能的第四可能,所述文件下载请求中进一步包含:所述原始文件被分割的文件块数量,以及所述第一UCD服务器的标识;所述第一CSP服务器确定与所述原始文件的标识对应的原始文件被分块,并获取第一统一云磁盘UCD服务器的标识具体为:所述第一CSP服务器确定所述原始文件被分割的文件块数量大于1,并从所述文件下载请求中获取所述第一UCD服务器的标识;或,所述第一CSP服务器确定与所述原始文件的标识对应的原始文件被分块,并获取第一统一云磁盘UCD服务器的标识具体为:所述第一CSP服务器根据所述原始文件的标识获取存储的与所述原始文件的标识对应的原始文件的信息,所述原始文件的信息包含:原始文件的标识和第一UCD服务器的标识以及原始文件被分割的文件块数量;所述第一CSP服务器确定所述原始文件被分割的文件块数量大于1,并从所述原始文件的信息中获取所述第一UCD服务器的标识。In combination with the second possibility of the first aspect of the embodiment of the present invention or the fourth possibility of the third possibility, the file download request further includes: the number of file blocks that the original file is divided into, and the number of blocks of the first UCD server Identification; the first CSP server determines that the original file corresponding to the identification of the original file is divided into blocks, and obtaining the identification of the first unified cloud disk UCD server is specifically: the first CSP server determines that the original file is divided into blocks The number of divided file blocks is greater than 1, and the identification of the first UCD server is obtained from the file download request; or, the first CSP server determines that the original file corresponding to the identification of the original file is divided into blocks, And obtaining the identification of the first unified cloud disk UCD server is specifically: the first CSP server acquires and stores the information of the original file corresponding to the identification of the original file according to the identification of the original file, and the information of the original file Contains: the identifier of the original file and the identifier of the first UCD server and the number of file blocks of the original file; the first CSP server determines that the number of file blocks of the original file is greater than 1, and from the original file The identifier of the first UCD server is obtained from the information.

结合本发明实施例第一方面的上述任一可能的第五可能,该方法进一步包括:In combination with any of the above-mentioned possible fifth possibilities of the first aspect of the embodiment of the present invention, the method further includes:

接收所述第一UCD服务器发送的上传块请求;所述上传块请求包含所述原始文件的文件块、所述第一UCD服务器生成的文件块信息、以及所述用户在所述第一CSP服务器的注册信息;存储所述文件块,以及将所述文件块信息以及所述用户在所述第一CSP服务器的注册信息映射存储。Receiving the upload block request sent by the first UCD server; the upload block request includes the file block of the original file, the file block information generated by the first UCD server, and the user's information on the first CSP server registration information; store the file block, and map and store the file block information and the registration information of the user on the first CSP server.

结合本发明实施例第一方面的上述任一可能的第六可能,该方法进一步包括:In combination with any of the above possible sixth possibilities of the first aspect of the embodiments of the present invention, the method further includes:

接收第一终端发送的文件删除请求,所述文件删除请求中携带需删除的文件的标识;receiving a file deletion request sent by the first terminal, where the file deletion request carries the identifier of the file to be deleted;

所述第一CSP服务器确定与所述需删除的文件的标识对应的需删除的文件被分块,并获取上传所述需删除的文件的文件块的第二UCD服务器的标识;The first CSP server determines that the file to be deleted corresponding to the identifier of the file to be deleted is divided into blocks, and obtains the identifier of the second UCD server that uploads the file block of the file to be deleted;

根据所述第二UCD服务器的标识向第二UCD服务器发送所述文件删除请求,所述文件删除请求用于指示所述第二UCD服务器向存储所述需删除的文件的文件块的第四CSP服务器发送文件块删除请求,并在收到所述第四CSP服务器返回的文件块删除响应后,删除第二UCD服务器存储的需删除的文件的文件信息并向第一CSP服务器返回文件删除响应;Send the file deletion request to the second UCD server according to the identifier of the second UCD server, and the file deletion request is used to instruct the second UCD server to send the file to the fourth CSP that stores the file block of the file to be deleted The server sends a file block deletion request, and after receiving the file block deletion response returned by the fourth CSP server, deletes the file information of the file to be deleted stored in the second UCD server and returns the file deletion response to the first CSP server;

所述第一CSP服务器接收第二UCD服务器返回的所述文件删除响应,向所述第一终端发送所述文件删除响应。The first CSP server receives the file deletion response returned by the second UCD server, and sends the file deletion response to the first terminal.

结合本发明实施例第一方面的第六可能的第七可能,所述文件删除请求中进一步包含:需删除的文件被分割的文件块数量,以及第二UCD服务器的标识;所述第一CSP服务器确定与所述需删除的文件的标识对应的文件被分块,并获取第二UCD服务器的标识具体为:所述第一CSP服务器确定所述文件删除请求中所述需删除的文件被分割的文件块数量大于1,并从所述文件删除请求中获取所述第二UCD服务器的标识;或,所述第一CSP服务器确定与所述需删除的文件的标识对应的文件被分块,并获取第二UCD服务器的标识具体为:所述第一CSP服务器根据所述需删除的文件的标识获取存储的与所述需删除的文件的标识对应的需删除的文件的信息,所述需删除的文件的信息包含:所述需删除的文件的标识、第二UCD服务器的标识以及所述需删除的文件被分割的文件块数量;所述第一CSP服务器确定存储的所述需删除的文件被分割的文件块数量大于1,并从所述需删除的文件的信息中获取所述第二UCD服务器的标识。In combination with the sixth possibility and the seventh possibility of the first aspect of the embodiment of the present invention, the file deletion request further includes: the number of file blocks of the file to be deleted, and the identifier of the second UCD server; the first CSP The server determines that the file corresponding to the identifier of the file to be deleted is divided into blocks, and obtaining the identifier of the second UCD server is specifically: the first CSP server determines that the file to be deleted in the file deletion request is divided. The number of file blocks is greater than 1, and the identification of the second UCD server is obtained from the file deletion request; or, the first CSP server determines that the file corresponding to the identification of the file to be deleted is divided into blocks, And obtaining the identification of the second UCD server is specifically: the first CSP server obtains the information of the file to be deleted corresponding to the identification of the file to be deleted according to the identification of the file to be deleted, and the required The information of the deleted file includes: the identifier of the file to be deleted, the identifier of the second UCD server, and the number of file blocks of the file to be deleted; the first CSP server determines that the stored file needs to be deleted The number of file blocks into which the file is divided is greater than 1, and the identifier of the second UCD server is obtained from the information of the file to be deleted.

本发明实施例第二方面提供了一种文件提供方法,包括:统一云磁盘UCD服务器接收第一云服务提供商CSP服务器发送的文件获取请求,所述文件获取请求携带原始文件的标识;根据所述原始文件的标识获取存储的与所述原始文件的标识对应的原始文件的信息,所述原始文件的信息包括存储文件块的第二CSP服务器的标识,第二CSP服务器存储的文件块标识以及所述文件块在原始文件中的次序;根据所述第二CSP服务器的标识,从所述第二CSP服务器的标识指示的第二CSP服务器获取与所述第二CSP服务器存储的文件块标识对应的文件块;根据所述从所述第二CSP服务器获取的文件块在原始文件中的次序,将各个从所述第二CSP服务器获取的文件块合并为所述原始文件,以及将所述原始文件提供给第一终端。The second aspect of the embodiment of the present invention provides a method for providing a file, including: the unified cloud disk UCD server receives the file acquisition request sent by the first cloud service provider CSP server, and the file acquisition request carries the identifier of the original file; according to the The identification of the original file obtains the information of the stored original file corresponding to the identification of the original file, and the information of the original file includes the identification of the second CSP server storing the file block, the file block identification stored by the second CSP server, and The order of the file blocks in the original file; according to the identification of the second CSP server, obtain the file block identification corresponding to the storage of the second CSP server from the second CSP server indicated by the identification of the second CSP server file blocks; according to the order of the file blocks obtained from the second CSP server in the original file, each file block obtained from the second CSP server is merged into the original file, and the original The file is provided to the first terminal.

结合本发明实施例第二方面的第一可能,所述将所述原始文件提供给所述第一终端包括:向第一CSP服务器返回文件获取响应,所述文件获取响应携带所述原始文件;所述文件获取响应用于指示所述第一CSP服务器接收到所述文件获取响应发送给所述第一终端;或,向所述第一CSP服务器返回文件获取响应,所述文件获取响应携带所述原始文件在所述UCD服务器的存储地址;所述文件获取响应用于指示所述第一CSP服务器将所述文件获取响应发送给所述第一终端,以及指示所述第一终端根据所述存储地址获取所述原始文件。In combination with the first possibility of the second aspect of the embodiment of the present invention, the providing the original file to the first terminal includes: returning a file acquisition response to the first CSP server, the file acquisition response carrying the original file; The file acquisition response is used to indicate that the first CSP server receives the file acquisition response and sends it to the first terminal; or, returns a file acquisition response to the first CSP server, and the file acquisition response carries the The storage address of the original file in the UCD server; the file acquisition response is used to instruct the first CSP server to send the file acquisition response to the first terminal, and instruct the first terminal to send the file acquisition response to the first terminal according to the The storage address obtains the original file.

结合本发明实施例第二方面或第一可能的第二可能,所述UCD服务器在第二终端通过用户在所述UCD服务器的注册信息登录后,该方法进一步包括:接收所述第二终端发送的文件上传请求,所述文件上传请求携带了用户需上传的原始文件的大小;获取所述用户注册过的第三CSP服务器的信息;根据所述第三CSP服务器的信息及原始文件的大小信息确定用于上传所述原始文件的文件块的第二CSP服务器,并在收到所述第二终端发送的原始文件后,将所述原始文件的文件块上传给所述第二CSP服务器。In combination with the second aspect of the embodiment of the present invention or the first possible second possibility, after the UCD server logs in the second terminal through the user's registration information on the UCD server, the method further includes: receiving the The file upload request, the file upload request carries the size of the original file that the user needs to upload; obtain the information of the third CSP server registered by the user; according to the information of the third CSP server and the size information of the original file Determine the second CSP server for uploading the file blocks of the original file, and upload the file blocks of the original file to the second CSP server after receiving the original file sent by the second terminal.

结合本发明实施例第二方面的第二可能的第三可能,所述第三CSP服务器的信息包含所述所述用户在所述第三CSP服务器的可用存储空间以及第三CSP服务器支持的最大文件的大小;所述根据所述第三CSP服务器的信息及原始文件的大小信息确定用于上传原始文件的文件块的第二CSP服务器具体为:确定所述可用存储空间大于所述原始文件的大小,且所述第三CSP服务器支持的最大文件的大小大于所述原始文件的大小的第三CSP服务器作为用于上传文件块的第二CSP服务器;所述将文件块上传给所述第二CSP服务器具体为:将原始文件作为文件块上传给所述第二CSP服务器;或,所述根据所述第三CSP服务器的信息及原始文件的大小信息确定用于上传所述原始文件的文件块的第二CSP服务器具体为:确定可用存储空间大于所述第三CSP服务器支持的最大文件的大小的至少两个第三CSP服务器作为用于上传文件块的第二CSP服务器,根据确定的所述至少两个第二CSP服务器支持的最大文件的大小将所述原始文件分割成至少两个文件块,并将所述至少两个文件块分别上传到所述至少两个第二CSP服务器,所述文件块的大小小于所述第二CSP服务器支持的最大文件的大小。In combination with the second possible third possibility of the second aspect of the embodiment of the present invention, the information of the third CSP server includes the user's available storage space in the third CSP server and the maximum supported by the third CSP server. The size of the file; the second CSP server determining the file block for uploading the original file according to the information of the third CSP server and the size information of the original file is specifically: determining that the available storage space is larger than that of the original file size, and the third CSP server whose maximum file size supported by the third CSP server is larger than the size of the original file is used as the second CSP server for uploading the file block; the uploading the file block to the second The CSP server is specifically: uploading the original file as a file block to the second CSP server; or, determining the file block for uploading the original file according to the information of the third CSP server and the size information of the original file The second CSP server is specifically: determining at least two third CSP servers whose available storage space is greater than the size of the largest file supported by the third CSP server as the second CSP server for uploading file blocks, according to the determined the size of the largest file supported by at least two second CSP servers, dividing the original file into at least two file blocks, and uploading the at least two file blocks to the at least two second CSP servers respectively, the The size of the file block is smaller than the size of the largest file supported by the second CSP server.

结合本发明实施例第二方面的第二可能的第三可能,所述在收到所述第二终端发送的原始文件后以及将所述原始文件的文件块上传给所述第二CSP服务器之前,该方法进一步包括:存储所述原始文件的信息,所述原始文件的信息包括:原始文件的标识、原始文件被分割的文件块数量,以及各文件块的文件块标识,以及存储所述各文件块的第二CSP服务器的标识,以及所述各文件块在原始文件中的次序。In combination with the second possible third possibility of the second aspect of the embodiment of the present invention, after receiving the original file sent by the second terminal and before uploading the file blocks of the original file to the second CSP server , the method further includes: storing the information of the original file, the information of the original file including: the identification of the original file, the number of file blocks into which the original file is divided, and the file block identification of each file block, and storing the The identifier of the second CSP server of the file block, and the order of the file blocks in the original file.

结合本发明实施例第二方面的第三可能的第四可能,该方法进一步包括:In combination with the third possibility and the fourth possibility of the second aspect of the embodiment of the present invention, the method further includes:

根据所述存储所述文件块的第二CSP服务器的标识将所述UCD服务器的标识、文件块标识以及文件块在原始文件中的次序发送给所述第二CSP服务器。Sending the identification of the UCD server, the identification of the file block, and the order of the file blocks in the original file to the second CSP server according to the identification of the second CSP server storing the file block.

结合本发明实施例第二方面的上述任一可能的第五可能,该方法进一步包括:接收第一CSP服务器发送的文件删除请求,所述文件删除请求中携带需删除的文件的标识;根据所述需删除的文件的标识获取存储的与所述需删除的文件的标识对应的需删除的文件的信息,所述需删除的文件的信息包含存储所述需删除文件的文件块的第四CSP服务器的标识、各第四CSP服务器存储的文件块的标识;据根据所述第四CSP服务器的标识向所述第四CSP服务器发送文件块删除请求,所述文件块删除请求中携带所述第四CSP服务器存储的文件志的标识,所述文件删除请求用于指示所述第四CSP服务器删除与所述第四CSP服务器存储的文件块标识对应的文件块及文件块的信息;接收所述第四CSP服务器发送的文件块删除响应;删除所述UCD服务器存储的所述需删除的文件的信息,并向第一CSP服务器返回文件删除响应,所述文件删除响应用于指示第一CSP服务器将所述文件删除响应发送至第一终端。In combination with any of the above-mentioned possible fifth possibilities of the second aspect of the embodiment of the present invention, the method further includes: receiving a file deletion request sent by the first CSP server, where the file deletion request carries the identifier of the file to be deleted; according to the The identification of the file to be deleted obtains the stored information of the file to be deleted corresponding to the identification of the file to be deleted, and the information of the file to be deleted includes the fourth CSP storing the file block of the file to be deleted The identifier of the server, the identifier of the file block stored by each fourth CSP server; according to the identifier of the fourth CSP server, a file block deletion request is sent to the fourth CSP server, and the file block deletion request carries the first file block deletion request The identification of the file log stored by the fourth CSP server, the file deletion request is used to instruct the fourth CSP server to delete the file block and the information of the file block corresponding to the file block identification stored by the fourth CSP server; receiving the The file block deletion response sent by the fourth CSP server; delete the information of the file to be deleted stored in the UCD server, and return the file deletion response to the first CSP server, and the file deletion response is used to indicate the first CSP server Send the file deletion response to the first terminal.

本发明实施例第三方面提供了一种云服务提供商CSP服务器包括:接收单元,用于在第一终端通过用户在所述CSP服务器的注册信息登录所述CSP服务器之后,且所述CSP服务器向所述第一终端提供业务的过程中,接收第一终端发送的文件下载请求,所述文件下载请求中携带原始文件的标识,以及将所述原始文件的标识发送给确定获取单元;所述确定获取单元,用于接收所述接收单元发送的所述原始文件的标识,确定与所述原始文件的标识对应的原始文件被分块,以及获取上传所述原始文件的文件块的第一统一云磁盘UCD服务器的标识,并将所述第一UCD服务器的标识发送给发送单元;所述发送单元,用于接收所述确定接收单元发送的第一UCD服务器的标识,以及根据所述第一UCD服务器的标识向所述第一UCD服务器发送文件获取请求,所述文件获取请求携带所述原始文件的标识;所述文件获取请求用于指示所述第一UCD服务器根据所述原始文件的标识获取存储的原始文件的信息,并根据所述元始文件的信息中文件块对应的第二CSP服务器的标识,从所述第二CSP服务器的标识指示的第二CSP服务器获取文件块,并将所述获取的文件块合成为原始文件;所述接收单元进一步用于接收所述第一UCD服务器返回的文件获取响应,并将所述文件获取响应发送给所述发送单元,所述发送单元进一步用于接收所述接收单元发送的文件获取响应,并将所述文件获取响应发送给所述第一终端,以指示所述第一终端通过所述文件获取响应获取所述原始文件。The third aspect of the embodiment of the present invention provides a cloud service provider CSP server including: a receiving unit, configured to log in to the CSP server after the first terminal uses the user's registration information on the CSP server, and the CSP server In the process of providing services to the first terminal, receiving a file download request sent by the first terminal, the file download request carrying the identifier of the original file, and sending the identifier of the original file to the determining and obtaining unit; Determining an acquisition unit, configured to receive the identifier of the original file sent by the receiving unit, determine that the original file corresponding to the identifier of the original file is divided into blocks, and acquire the first unified file block uploaded to the original file The identification of the cloud disk UCD server, and the identification of the first UCD server is sent to the sending unit; the sending unit is used to receive the identification of the first UCD server sent by the determining receiving unit, and according to the first The identification of the UCD server sends a file acquisition request to the first UCD server, and the file acquisition request carries the identification of the original file; the file acquisition request is used to instruct the first UCD server according to the identification of the original file Acquiring the information of the stored original file, and according to the identification of the second CSP server corresponding to the file block in the information of the original file, obtaining the file block from the second CSP server indicated by the identification of the second CSP server, and storing the The obtained file blocks are synthesized into an original file; the receiving unit is further configured to receive the file obtaining response returned by the first UCD server, and send the file obtaining response to the sending unit, and the sending unit further uses receiving the file acquisition response sent by the receiving unit, and sending the file acquisition response to the first terminal, so as to instruct the first terminal to acquire the original file through the file acquisition response.

结合上述第三方面的第一可能,所述服务器进一步包含存储单元;所述接收单元进一步用于在接收所述第一终端发送的文件下载请求之前,接收所述第一终端发送的查询请求,并将所述查询请求发送给所述确定获取单元;所述确定获取单元进一步用于接收所述接收单元发送的查询请求,并根据所述用户在所述第一CSP服务器的注册信息获取所述用户在所述存储单元存储的文件块信息,所述文件块信息包含所述第一UCD服务器的标识、以及文件块所属的原始文件的标识,并将所述原始文件的标识和所述第一UCD服务器的标识发送给所述发送单元;所述发送单元进一步用于接收所述确定获取单元发送的所述原始文件的标识和所述第一UCD服务器的标识,根据所述第一UCD服务器的标识向所述第一UCD服务器发送文件块查询请求,所述文件块查询请求中包含所述文件块所属的原始文件的标识;所述接收单元进一步用于接收所述第一UCD服务器返回的所述原始文件的信息,所述返回的原始文件的信息包含:原始文件的名称、原始文件的标识和第一UCD服务器的标识以及原始文件被分割的文件块数量,并将所述原始文件的信息发送给所述发送单元和所述存储单元;所述存储单元用于接收所述接收单元发送的原始文件的信息,以及存储所述原始文件的信息;所述发送单元进一步用于接收所述接收单元发送的原始文件的信息,并将所述原始文件的信息中的所述原始文件的名称和所述原始文件的标识发送给所述第一终端,或将所述原始文件的信息发送给所述第一终端。In combination with the first possibility of the third aspect above, the server further includes a storage unit; the receiving unit is further configured to receive the query request sent by the first terminal before receiving the file download request sent by the first terminal, and sending the query request to the determination acquisition unit; the determination acquisition unit is further configured to receive the query request sent by the receiving unit, and obtain the user's registration information in the first CSP server according to the The file block information stored by the user in the storage unit, the file block information includes the identification of the first UCD server and the identification of the original file to which the file block belongs, and combines the identification of the original file with the first The identification of the UCD server is sent to the sending unit; the sending unit is further configured to receive the identification of the original file sent by the determination acquisition unit and the identification of the first UCD server, according to the identification of the first UCD server The identification sends a file block query request to the first UCD server, and the file block query request includes the identification of the original file to which the file block belongs; the receiving unit is further configured to receive the returned by the first UCD server The information of the original file, the information of the original file returned includes: the name of the original file, the identification of the original file and the identification of the first UCD server and the number of file blocks that the original file is divided into, and the information of the original file sent to the sending unit and the storage unit; the storage unit is used to receive the information of the original file sent by the receiving unit, and store the information of the original file; the sending unit is further used to receive the received The information of the original file sent by the unit, and the name of the original file and the identifier of the original file in the information of the original file are sent to the first terminal, or the information of the original file is sent to the Describe the first terminal.

结合上述第三方面的第一可能的第二可能,所述文件块信息进一步包含文件块标识位;所述发送单元根据所述第一UCD服务器的标识向所述第一UCD服务器发送文件块查询请求之前,所述确定获取单元进一步确定所述文件块标识位为原始文件分割标识。In combination with the first possible second possibility of the third aspect above, the file block information further includes a file block identification bit; the sending unit sends a file block query to the first UCD server according to the identification of the first UCD server Before the request, the determination acquisition unit further determines that the file block identification bit is an original file division identification.

结合本发明实施例第三方面的上述任一可能的第三可能,In combination with any of the above possible third possibilities of the third aspect of the embodiment of the present invention,

所述文件下载请求中进一步包含:原始文件被分割的文件块数量,以及所述第一UCD服务器的标识;所述确定获取单元确定与所述原始文件的标识对应的原始文件被分块,并获取第一统一云磁盘UCD服务器的标识具体为:所述第一CSP服务器确定所述原始文件被分割的文件块数量大于1,并从所述文件下载请求中获取所述第一UCD服务器的标识;或The file download request further includes: the number of file blocks that the original file is divided into, and the identification of the first UCD server; the determination acquisition unit determines that the original file corresponding to the identification of the original file is divided into blocks, and Obtaining the identification of the first unified cloud disk UCD server is specifically: the first CSP server determines that the number of file blocks in which the original file is divided is greater than 1, and obtains the identification of the first UCD server from the file download request ;or

所述确定获取单元确定与所述原始文件的标识对应的原始文件被分块,并获取第一统一云磁盘UCD服务器的标识具体为:所述第一CSP服务器根据所述原始文件的标识获取存储的与所述原始文件的标识对应的原始文件的信息,所述原始文件的信息包含:原始文件的标识和第一UCD服务器的标识以及原始文件被分割的文件块数量;所述第一CSP服务器确定所述原始文件被分割的文件块数量大于1,并从所述原始文件的信息中获取所述第一UCD服务器的标识。The determining and obtaining unit determines that the original file corresponding to the original file identifier is divided into blocks, and obtaining the identifier of the first unified cloud disk UCD server is specifically: the first CSP server obtains the storage according to the identifier of the original file The information of the original file corresponding to the identification of the original file, the information of the original file includes: the identification of the original file and the identification of the first UCD server and the number of file blocks that the original file is divided into; the first CSP server It is determined that the number of file blocks into which the original file is divided is greater than 1, and the identifier of the first UCD server is acquired from the information of the original file.

结合本发明实施例第三方面的上述任一可能的第四可能,In combination with any of the above-mentioned possible fourth possibilities of the third aspect of the embodiments of the present invention,

所述接收单元进一步用于接收所述第一UCD服务器发送的上传块请求;所述上传块请求包含所述原始文件的文件块以及所述第一UCD服务器生成的文件块信息,以及所述用户在所述第一CSP服务器的注册信息;The receiving unit is further configured to receive the upload block request sent by the first UCD server; the upload block request includes the file block of the original file and the file block information generated by the first UCD server, and the user Registration information on the first CSP server;

所述存储单元进一步用于接收所述接收单元发送的上传块请求,存储所述文件块以及将所述文件块信息和所述用户在所述第一CSP服务器的注册信息映射存储。The storage unit is further configured to receive the block upload request sent by the receiving unit, store the file block, and map and store the file block information and the user's registration information on the first CSP server.

结合本发明实施例第三方面的上述任一可能的第五可能,所述接收单元进一步用于第一终端发送的文件删除请求,所述文件删除请求中携带需删除的文件的标识,将所述需删除的文件的标识发送给所述确定获取单元;In combination with any of the above-mentioned possible fifth possibilities of the third aspect of the embodiment of the present invention, the receiving unit is further used for the file deletion request sent by the first terminal, the file deletion request carries the identifier of the file to be deleted, and the The identification of the file to be deleted is sent to the determination acquisition unit;

所述确定获取单元进一步用于接收所述接收单元发送的需删除的文件的标识,确定与所述需删除的文件的标识对应的需删除的文件被分块,并获取上传所述需删除的文件的文件块的第二UCD服务器的标识,并将所述这第二UCD服务器的标识发送给发送单元;The determining and obtaining unit is further configured to receive the identification of the file to be deleted sent by the receiving unit, determine that the file to be deleted corresponding to the identification of the file to be deleted is divided into blocks, and obtain and upload the file to be deleted. The identification of the second UCD server of the file block of the file, and sending the identification of the second UCD server to the sending unit;

所述发送单元进一步用于接收所述确定获取单元发送的所述第二UCD服务器的标识,根据所述第二UCD服务器的标识向第二UCD服务器发送所述文件删除请求,所述文件删除请求用于指示所述第二UCD服务器向存储所述需删除的文件的文件块的第四CSP服务器发送文件块删除请求,并在收到所述第四CSP服务器返回的文件块删除响应后,删除第二UCD服务器存储的需删除的文件的信息并向第一CSP服务器返回文件删除响应;The sending unit is further configured to receive the identification of the second UCD server sent by the determination acquisition unit, and send the file deletion request to the second UCD server according to the identification of the second UCD server, and the file deletion request It is used to instruct the second UCD server to send a file block deletion request to the fourth CSP server storing the file block of the file to be deleted, and delete the file block after receiving the file block deletion response returned by the fourth CSP server. The second UCD server stores the information of the file to be deleted and returns a file deletion response to the first CSP server;

所述接收单元进一步用于接收第二UCD服务器返回的所述文件删除响应,并将所述文件删除响应发送给所述发送单元;The receiving unit is further configured to receive the file deletion response returned by the second UCD server, and send the file deletion response to the sending unit;

所述发送单元进一步用于接收所述接收单元发送的所述文件删除响应,并向所述第一终端发送文件删除响应。The sending unit is further configured to receive the file deletion response sent by the receiving unit, and send the file deletion response to the first terminal.

结合本发明实施例第三方面的第五可能的第六可能,所述文件删除请求中进一步包含:需删除的文件被分割的文件块数量,以及第二UCD服务器的标识;所述确定获取单元确定与所述需删除的文件的标识对应的原始文件被分块,并获取第二UCD服务器的标识具体为:确定所述文件删除请求中所述需删除的文件被分割的文件块数量大于1,并从所述文件删除请求中获取所述第二UCD服务器的标识;或In combination with the fifth possibility and the sixth possibility of the third aspect of the embodiment of the present invention, the file deletion request further includes: the number of divided file blocks of the file to be deleted, and the identifier of the second UCD server; the determining and obtaining unit Determining that the original file corresponding to the identifier of the file to be deleted is divided into blocks, and obtaining the identifier of the second UCD server is specifically: determining that the number of file blocks of the file to be deleted in the file deletion request is greater than 1 , and obtain the identifier of the second UCD server from the file deletion request; or

所述确定获取单元确定与所述需删除的文件的标识对应的文件被分块,并获取第二UCD服务器的标识具体为:所述第一CSP服务器根据所述需删除的文件的标识获取存储的与所述需删除的文件的标识对应的需删除的文件的信息,所述需删除的文件的信息包含:所述需删除的文件的标识、第二UCD服务器的标识以及所述需删除的文件被分割的文件块数量;确定存储的所述需删除的文件被分割的文件块数量大于1,并从所述需删除的文件的信息中获取所述第二UCD服务器的标识。The determining and obtaining unit determines that the file corresponding to the identifier of the file to be deleted is divided into blocks, and obtaining the identifier of the second UCD server is specifically: the first CSP server acquires and stores the file according to the identifier of the file to be deleted. The information of the file to be deleted corresponding to the identifier of the file to be deleted, the information of the file to be deleted includes: the identifier of the file to be deleted, the identifier of the second UCD server, and the file to be deleted The number of divided file blocks of the file; determine that the stored number of divided file blocks of the file to be deleted is greater than 1, and obtain the identifier of the second UCD server from the information of the file to be deleted.

本发明第四方面提供了一种统一云磁盘UCD服务器包括:The fourth aspect of the present invention provides a unified cloud disk UCD server including:

接收单元,用于接收第一云服务提供商CSP服务器发送的文件获取请求,所述文件获取请求携带原始文件的标识;并将所述原始文件的标识发送给确定获取单元;A receiving unit, configured to receive a file acquisition request sent by the CSP server of the first cloud service provider, where the file acquisition request carries the identifier of the original file; and send the identifier of the original file to the determination acquisition unit;

所述确定获取单元用于接收所述接收单元发送的所述原始文件的标识,根据所述原始文件的标识获取存储的与所述原始文件的标识对应的原始文件的信息,所述原始文件的信息包括存储文件块的第二CSP服务器的标识,第二CSP服务器存储的文件块标识以及所述文件块在原始文件中的次序;以及根据所述第二CSP服务器的标识,从所述第二CSP服务器的标识指示的第二CSP服务器获取与所述第二CSP服务器存储的文件块标识对应的文件块;以及将所述文件块以及所述文件块在原始文件中的次序发送给所述发送单元;The determining and acquiring unit is configured to receive the identifier of the original file sent by the receiving unit, acquire the stored information of the original file corresponding to the identifier of the original file according to the identifier of the original file, and the information of the original file The information includes the identification of the second CSP server storing the file block, the file block identification stored by the second CSP server and the order of the file block in the original file; and according to the identification of the second CSP server, from the second The second CSP server indicated by the identifier of the CSP server obtains the file block corresponding to the file block ID stored by the second CSP server; and sends the file block and the order of the file block in the original file to the sending unit;

所述发送单元用于接收所述确定获取单元发送的文件块以及所述文件块在原始文件中的次序,根据所述文件块在原始文件中的次序,将各个从所述第二CSP服务器获取的文件块合并为所述原始文件,以及将所述原始文件提供给第一终端。The sending unit is configured to receive the file blocks sent by the determining and obtaining unit and the order of the file blocks in the original file, and obtain each file block from the second CSP server according to the order of the file blocks in the original file. The file blocks of are merged into the original file, and the original file is provided to the first terminal.

结合本发明第四方面的第一可能,所述发送单元将所述原始文件提供给第一终端具体为:In combination with the first possibility of the fourth aspect of the present invention, the sending unit providing the original file to the first terminal specifically includes:

向第一CSP服务器返回文件获取响应,所述文件获取响应携带所述原始文件;所述文件获取响应用于指示所述第一CSP服务器接收到所述文件获取响应发送给所述第一终端;或Returning a file acquisition response to the first CSP server, the file acquisition response carrying the original file; the file acquisition response is used to instruct the first CSP server to receive the file acquisition response and send it to the first terminal; or

向所述第一CSP服务器返回文件获取响应,所述文件获取响应携带所述原始文件在所述UCD服务器的存储地址;所述文件获取响应用于指示所述第一CSP服务器将所述文件获取响应发送给所述第一终端,以及指示所述第一终端根据所述存储地址获取所述原始文件。Returning a file acquisition response to the first CSP server, the file acquisition response carrying the storage address of the original file in the UCD server; the file acquisition response is used to instruct the first CSP server to obtain the file sending a response to the first terminal, and instructing the first terminal to acquire the original file according to the storage address.

结合本发明第四方面或第一可能的第二可能,所述接收单元在第二终端通过用户在所述UCD服务器的注册信息登录所述UCD服务器后进一步用于接收所述第二终端发送的文件上传请求,所述文件上传请求携带了用户需上传的原始文件的大小;In combination with the fourth aspect of the present invention or the first possible second possibility, the receiving unit is further configured to receive the message sent by the second terminal after the second terminal logs in to the UCD server through the user's registration information on the UCD server. A file upload request, the file upload request carries the size of the original file to be uploaded by the user;

所述确定获取单元进一步用于获取所述用户注册过的第三CSP服务器的信息,根据所述第三CSP服务器的信息及原始文件的大小信息确定用于上传所述原始文件的文件块的第二CSP服务器;The determining and acquiring unit is further configured to acquire information of a third CSP server registered by the user, and determine the first file block used for uploading the original file according to the information of the third CSP server and the size information of the original file. Two CSP servers;

所述接收单元进一步用于接收所述第二终端发送的原始文件,并将所述原始文件发送给所述发送单元;The receiving unit is further configured to receive the original file sent by the second terminal, and send the original file to the sending unit;

所述发送单元进一步用于接收所述接收单元发送的所述原始文件,并将所述原始文件的文件块上传给所述确定获取单元确定的所述第二CSP服务器。The sending unit is further configured to receive the original file sent by the receiving unit, and upload the file blocks of the original file to the second CSP server determined by the determining and obtaining unit.

本发明第四方面的第二可能的第三可能,所述第三CSP服务器的信息包含所述所述用户在所述第三CSP服务器的可用存储空间以及第三CSP服务器支持的最大文件的大小;In the second possible third possibility of the fourth aspect of the present invention, the information of the third CSP server includes the user's available storage space on the third CSP server and the size of the largest file supported by the third CSP server ;

所述确定获取单元根据所述第三CSP服务器的信息及原始文件的大小信息确定用于上传原始文件的文件块的第二CSP服务器具体为:确定所述可用存储空间大于所述原始文件的大小,且所述第三CSP服务器支持的最大文件的大小大于所述原始文件的大小的第三CSP服务器作为用于上传文件块的第二CSP服务器;所述发送单元将所述原始文件的文件块上传给所述确定获取单元确定的所述第二CSP服务器具体为:将原始文件作为文件块上传给所述第二CSP服务器;或,所述确定获取单元根据所述第三CSP服务器的信息及原始文件的大小信息确定用于上传所述原始文件的文件块的第二CSP服务器具体为:确定可用存储空间大于所述第三CSP服务器支持的最大文件的大小的至少两个第三CSP服务器作为用于上传文件块的第二CSP服务器,根据确定的所述至少两个第二CSP服务器支持的最大文件的大小将所述原始文件分割成至少两个文件块,所述文件块的大小小于所述第二CSP服务器支持的最大文件的大小;所述发送单元将所述原始文件的文件块上传给所述确定获取单元确定的所述第二CSP服务器具体为:将所述至少两个文件块分别上传到所述至少两个第二CSP服务器。The determining and obtaining unit determining the second CSP server for uploading the file block of the original file according to the information of the third CSP server and the size information of the original file is specifically: determining that the available storage space is larger than the size of the original file , and the third CSP server whose maximum file size supported by the third CSP server is larger than the size of the original file is used as the second CSP server for uploading file blocks; the sending unit sends the file blocks of the original file Uploading to the second CSP server determined by the determining and obtaining unit is specifically: uploading the original file as a file block to the second CSP server; or, the determining and obtaining unit according to the information of the third CSP server and Determining the second CSP server for uploading the file blocks of the original file based on the size information of the original file is specifically: determining at least two third CSP servers whose available storage space is larger than the maximum file size supported by the third CSP server as The second CSP server for uploading the file block divides the original file into at least two file blocks according to the determined maximum file size supported by the at least two second CSP servers, and the size of the file block is smaller than the determined The size of the largest file supported by the second CSP server; the sending unit uploads the file blocks of the original file to the second CSP server determined by the determining and obtaining unit, specifically: uploading the at least two file blocks Upload to the at least two second CSP servers respectively.

结合本发明第四方面的第三可能的第四可能,所述服务器进一步包括存储单元;In a fourth possibility in combination with the third possibility of the fourth aspect of the present invention, the server further includes a storage unit;

所述存储单元用于存储所述原始文件的信息,所述原始文件的信息包括:原始文件的标识、原始文件被分割的文件块数量,以及各文件块的文件块标识,以及存储所述各文件块的第二CSP服务器的标识,以及所述各文件块在原始文件中的次序。The storage unit is used for storing the information of the original file, and the information of the original file includes: the identification of the original file, the number of file blocks into which the original file is divided, and the file block identification of each file block, and storing the The identifier of the second CSP server of the file block, and the order of the file blocks in the original file.

结合本发明第四方面的第四可能的第五可能,所述发送单元进一步用于根据所述存储单元存储的存储所述文件块的第二CSP服务器的标识将所述UCD服务器的标识、文件块标识以及文件块在原始文件中的次序发送给所述第二CSP服务器。In combination with the fifth possibility of the fourth possibility of the fourth aspect of the present invention, the sending unit is further configured to send the UCD server identifier, file The block identifier and the order of the file blocks in the original file are sent to the second CSP server.

结合本发明第四方面上述任一可能的第六可能,所述服务器进一步包含删除单元;In combination with the sixth possibility of any of the above-mentioned possibilities in the fourth aspect of the present invention, the server further includes a deletion unit;

所述接收单元进一步用于接收第一CSP服务器发送的文件删除请求,所述文件删除请求中携带需删除的文件的标识;The receiving unit is further configured to receive a file deletion request sent by the first CSP server, wherein the file deletion request carries the identifier of the file to be deleted;

所述确定获取单元进一步用于根据所述需删除的文件的标识获取所述存储单元存储的与所述需删除的文件的标识对应的需删除的文件的信息,所述需删除的文件的信息包含存储所述需删除文件的文件块的第四CSP服务器的标识、各第四CSP服务器存储的文件块的标识,并将所述需删除的文件的信息发送给所述发送单元;The determining and acquiring unit is further configured to acquire the information of the file to be deleted corresponding to the identifier of the file to be deleted stored in the storage unit according to the identifier of the file to be deleted, and the information of the file to be deleted is Including the identification of the fourth CSP server storing the file block of the file to be deleted, the identification of the file block stored by each fourth CSP server, and sending the information of the file to be deleted to the sending unit;

所述发送单元进一步用于接收所述确定获取单元发送的需删除的文件的信息,根据根据所述第四CSP服务器的标识向所述第四CSP服务器发送文件块删除请求,所述文件块删除请求中携带所述第四CSP服务器存储的文件志的标识,所述文件删除请求用于指示所述第四CSP服务器删除与所述第四CSP服务器存储的文件块标识对应的文件块及文件块的信息;The sending unit is further configured to receive the information of the file to be deleted sent by the determination and acquisition unit, and send a file block deletion request to the fourth CSP server according to the identifier of the fourth CSP server, and the file block deletion The request carries the identifier of the file log stored by the fourth CSP server, and the file deletion request is used to instruct the fourth CSP server to delete the file block and the file block corresponding to the file block identifier stored by the fourth CSP server Information;

所述接收单元进一步用于接收所述第四CSP服务器发送的文件块删除响应;The receiving unit is further configured to receive a file block deletion response sent by the fourth CSP server;

所述删除单元用于删除所述存储单元存储的所述需删除的文件的信息;The deletion unit is used to delete the information of the file to be deleted stored in the storage unit;

所述发送单元进一步用于向第一CSP服务器返回文件删除响应,所述文件删除响应用于指示第一CSP服务器将所述文件删除响应发送至第一终端。The sending unit is further configured to return a file deletion response to the first CSP server, where the file deletion response is used to instruct the first CSP server to send the file deletion response to the first terminal.

本发明实施例第五方面提供了一种CSP服务器,包括:发收器,存储器和处理器;The fifth aspect of the embodiment of the present invention provides a CSP server, including: a transceiver, a memory, and a processor;

所述收发器用于接收在第一终端通过用户在所述CSP服务器的注册信息登录所述CSP服务器之后,且所述CSP服务器向所述第一终端提供业务的过程中,接收第一终端发送的文件下载请求,所述文件下载请求中携带原始文件的标识;The transceiver is used to receive the information sent by the first terminal after the first terminal logs into the CSP server through the user's registration information on the CSP server, and the CSP server provides services to the first terminal. A file download request, where the file download request carries the identifier of the original file;

所述存储器用于存储各种程序与应用,并在所述处理器的调用下执行各程序与应用的功能;The memory is used to store various programs and applications, and execute the functions of the programs and applications under the call of the processor;

所述处理器用于调用存储器存储的各种程序与应用,并且确定与所述原始文件的标识对应的原始文件被分块,获取上传所述原始文件的文件块的第一统一云磁盘UCD服务器的标识;根据所述第一UCD服务器的标识向所述第一UCD服务器发送文件获取请求,所述文件获取请求携带所述原始文件的标识;所述文件获取请求用于指示所述第一UCD服务器根据所述原始文件的标识获取存储的原始文件的信息,并根据所述原始文件的信息中存储文件块的第二CSP服务器的标识,从所述第二CSP服务器的标识指示的第二CSP服务器获取文件块,并将所述获取的文件块合成为原始文件;The processor is used to call various programs and applications stored in the memory, and determine that the original file corresponding to the identifier of the original file is divided into blocks, and obtain the first unified cloud disk UCD server that uploads the file blocks of the original file Identification; send a file acquisition request to the first UCD server according to the identification of the first UCD server, the file acquisition request carries the identification of the original file; the file acquisition request is used to indicate the first UCD server Acquire the information of the stored original file according to the identifier of the original file, and according to the identifier of the second CSP server storing the file block in the information of the original file, from the second CSP server indicated by the identifier of the second CSP server Obtaining file blocks, and synthesizing the obtained file blocks into an original file;

所述收发器进一步用于所述第一UCD服务器返回的文件获取响应,并将所述文件获取响应发送给所述第一终端,以指示所述第一终端通过所述文件获取响应获取所述原始文件。The transceiver is further used for the file acquisition response returned by the first UCD server, and sends the file acquisition response to the first terminal, so as to instruct the first terminal to acquire the file acquisition response through the file acquisition response. Original file.

本发明实施例第五方面提供了一种UCD服务器,包括:发收器,存储器和处理器;The fifth aspect of the embodiment of the present invention provides a UCD server, including: a transceiver, a memory, and a processor;

所述收发器用于器接收第一云服务提供商CSP服务器发送的文件获取请求,所述文件获取请求携带原始文件的标识;The transceiver is used to receive the file acquisition request sent by the first cloud service provider CSP server, and the file acquisition request carries the identifier of the original file;

所述存储器用于各种程序与应用,并在所述处理器的调用下执行各程序与应用的功能;The memory is used for various programs and applications, and the functions of the programs and applications are executed under the call of the processor;

所述处理器用于调用存储器存储的各种程序与应用,根据所述原始文件的标识获取存储的与所述原始文件的标识对应的原始文件的信息,所述原始文件的信息包括存储文件块的第二CSP服务器的标识,第二CSP服务器存储的文件块标识以及所述文件块在原始文件中的次序,根据所述第二CSP服务器的标识,从所述第二CSP服务器的标识指示的第二CSP服务器获取与所述第二CSP服务器存储的文件块标识对应的文件块;根据所述从所述第二CSP服务器获取的文件块在原始文件中的次序,将各个从所述第二CSP服务器获取的文件块合并为所述原始文件;The processor is used to call various programs and applications stored in the memory, and obtain the stored original file information corresponding to the original file identifier according to the original file identifier, and the original file information includes storage file blocks The identifier of the second CSP server, the identifier of the file blocks stored by the second CSP server and the order of the file chunks in the original file, according to the identifier of the second CSP server, from the first indicated by the identifier of the second CSP server The second CSP server obtains the file blocks corresponding to the file block identifiers stored by the second CSP server; according to the order of the file blocks obtained from the second CSP server in the original file, each file block from the second CSP The file chunks obtained by the server are merged into said original file;

所述收发器进一步用于将所述原始文件提供给第一终端。The transceiver is further configured to provide the original file to the first terminal.

通过上述方案可以看出,终端在使用CSP服务器提供的业务的过程中,无需另行建立与UCD服务器的连接,而通过与CSP服务器的连接就可以获取通过用户通过UCD服务器上传的被分块的文件后,从而避免终端另行与UCD服务器建立连接的过程,减化用户操作,从而提高用户体验。From the above solution, it can be seen that in the process of using the service provided by the CSP server, the terminal does not need to establish a connection with the UCD server, and the segmented file uploaded by the user through the UCD server can be obtained through the connection with the CSP server Finally, the process of establishing a connection between the terminal and the UCD server is avoided, and user operations are simplified, thereby improving user experience.

附图说明Description of drawings

为了更清楚地说明本发明实施例的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following will briefly introduce the accompanying drawings that need to be used in the description of the embodiments. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For Those of ordinary skill in the art can also obtain other drawings based on these drawings without any creative effort.

图1为本发明实施例提供的文件下载的方法流程图;Fig. 1 is the method flowchart of the file download provided by the embodiment of the present invention;

图2为本发明实施例提供的终端通过UCD客户端上传文件的方法流程图;Fig. 2 is the flow chart of the method for the terminal to upload files through the UCD client provided by the embodiment of the present invention;

图3为本发明实施例提供的终端通过UCD客户端经过UCD服务器上传的原始文件A和原始文件B在CSP服务器的存储示意图Fig. 3 is the schematic diagram of storing the original file A and the original file B uploaded by the terminal through the UCD server through the UCD server in the CSP server according to the embodiment of the present invention

图4为本发明实施例提供的用户通过终端登录CSP服务器B时,获取用户存储在各CSP服务器文件信息的方法流程图;4 is a flowchart of a method for obtaining file information stored in each CSP server by the user when the user logs in to the CSP server B through a terminal provided by an embodiment of the present invention;

图5为CSP服务器提供给用户的该用户存储在CSP服务器的文件的示意图;Fig. 5 is a schematic diagram of the user's file stored in the CSP server provided to the user by the CSP server;

图6为本发明实施例提供的获取通过UCD服务器上传的文件的方法流程图;Fig. 6 is the flow chart of the method for obtaining the file uploaded by the UCD server provided by the embodiment of the present invention;

图7为本发明实施例提供的终端通过CSP服务器删除文件的方法流程图;FIG. 7 is a flowchart of a method for a terminal to delete a file through a CSP server according to an embodiment of the present invention;

图8为本发明实施例提供的提供文件的方法流程图Figure 8 is a flowchart of a method for providing files provided by an embodiment of the present invention

图9为本发明实施例提供的CSP服务器的结构示意图;FIG. 9 is a schematic structural diagram of a CSP server provided by an embodiment of the present invention;

图10为本发明实施例提供的CSP服务器的另一结构示意图;Fig. 10 is another schematic structural diagram of the CSP server provided by the embodiment of the present invention;

图11为本发明实施例提供的UCD服务器的结构示意图;FIG. 11 is a schematic structural diagram of a UCD server provided by an embodiment of the present invention;

图12为本发明实施例提供的UCD服务器的另一结构示意图.Fig. 12 is another schematic structural diagram of the UCD server provided by the embodiment of the present invention.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

图1为本发明实施例提供的文件下载的方法流程图,包括如下步骤:Fig. 1 is the flow chart of the method for file download provided by the embodiment of the present invention, including the following steps:

步骤101、第一CSP服务器向第一终端提供业务的过程中,接收第一终端发送的文件下载请求,所述文件下载请求中携带原始文件的标识;Step 101. During the process of providing services to the first terminal, the first CSP server receives a file download request sent by the first terminal, and the file download request carries the identifier of the original file;

步骤102、所述第一CSP服务器确定与所述原始文件的标识对应的原始文件被分块,并获取统一云磁盘UCD服务器的标识;Step 102, the first CSP server determines that the original file corresponding to the identifier of the original file is divided into blocks, and obtains the identifier of the unified cloud disk UCD server;

步骤103、所述第一CSP服务器根据所述UCD服务器的标识向所述UCDe取务器发送文件获取请求,所述文件获取请求携带所述原始文件的标识;所述文件获取请求用于指示所述UCD服务器根据所述原始文件的标识获取存储的原始文件的信息,并根据所述原始文件的信息中的文件块对应的第二CSP服务器的标识,从所述第二CSP服务器的标识指示的第二CSP服务器获取文件块,并将所述获取的文件块合成为原始文件;Step 103, the first CSP server sends a file acquisition request to the UCD server according to the identifier of the UCD server, and the file acquisition request carries the identifier of the original file; the file acquisition request is used to indicate the The UCD server obtains the information of the stored original file according to the identifier of the original file, and according to the identifier of the second CSP server corresponding to the file block in the information of the original file, from the identifier indicated by the second CSP server The second CSP server obtains the file blocks, and synthesizes the obtained file blocks into an original file;

步骤103、所述第一CSP服务器接收所述UCD服务器返回的文件获取响应,并将所述文件获取响应发送给所述第一终端,以指示所述第一终端通过所述文件获取响应获取所述原始文件。Step 103. The first CSP server receives the file acquisition response returned by the UCD server, and sends the file acquisition response to the first terminal, so as to instruct the first terminal to obtain the file acquisition response through the file acquisition response. Describe the original document.

从以上实施例可以看出,通过上述方案可以看出,终端在使用CSP服务器提供的业务的过程中,无需另行建立与UCD服务器的连接,而通过与CSP服务器的连接就可以获取通过用户通过UCD服务器上传的被分块的文件后,从而避免终端另行与UCD服务器建立连接的过程,减化用户操作,从而提高用户体验。As can be seen from the above embodiments, it can be seen from the above scheme that in the process of using the service provided by the CSP server, the terminal does not need to establish a connection with the UCD server, and can obtain the information passed by the user through the UCD through the connection with the CSP server. After the server uploads the divided files, the process of establishing a connection between the terminal and the UCD server is avoided, user operations are simplified, and user experience is improved.

进一步的,所述第一终端通过所述文件获取响应获取所述原始文件具体为:所述文件获取响应携带所述原始文件,所述第一终端从文件获取响应中获取所述原始文件;或,所述文件获取响应携带所述原始文件在所述第一UCD服务器的存储地址;所述第一终端根据所述存储地址从所述第一UCD服务器中获取所述原始文件。Further, the obtaining the original file by the first terminal through the file obtaining response specifically includes: the file obtaining response carries the original file, and the first terminal obtains the original file from the file obtaining response; or , the file acquisition response carries the storage address of the original file in the first UCD server; the first terminal acquires the original file from the first UCD server according to the storage address.

值得说明的是,本发明实施例中为描述方便,将接收文件删除请求的UCD服务器称为第二UCD服务器,将接收下载请求和文件上传请求的UCD服务器称为第一UCD服务器。将用户注册过的CSP服务器称为第三CSP服务器,将在用户注册的过CSP服器确定用于存储原始文件的CSP服务器称为第二CSP服务器。即将存储原始文件(需下载的文件)的CSP服务器称为第二CSP服务器,将存储需删除的文件的CSP服务器称为第四CSP服务器。将上传或需下载的文件的标识称为原始文件的标识,将需删除的文件的标识称为需删除的文件的标识,将原始文件的标识对应的信息称为原始文件的信息,将需删除的文件的标识对应的信息称为需删除的文件的信息。将与CSP服务器连接的终端称为第一终端,将与UCD服务器连接的终端称为第二终端。It is worth noting that, for the convenience of description in this embodiment of the present invention, the UCD server that receives the file deletion request is called the second UCD server, and the UCD server that receives the download request and the file upload request is called the first UCD server. The CSP server registered by the user is called the third CSP server, and the CSP server determined by the CSP server registered by the user to store the original file is called the second CSP server. The CSP server that stores the original file (file to be downloaded) is called the second CSP server, and the CSP server that stores the file to be deleted is called the fourth CSP server. The identifier of the file to be uploaded or downloaded is called the identifier of the original file, the identifier of the file to be deleted is called the identifier of the file to be deleted, the information corresponding to the identifier of the original file is called the information of the original file, and the identifier of the file to be deleted is called the identifier of the original file. The information corresponding to the identifier of the file is called the information of the file to be deleted. The terminal connected to the CSP server is called a first terminal, and the terminal connected to the UCD server is called a second terminal.

图2为本发明实施例提供的恢复会话内容传输的方法流程图,包括如下步骤:Fig. 2 is the flow chart of the method for resuming session content transmission provided by the embodiment of the present invention, including the following steps:

步骤200、第二终端通过UCD客户端向第一UCD服务器发送文件上传请求,所述文件上传请求携带用户需上传的原始文件的大小信息。Step 200, the second terminal sends a file upload request to the first UCD server through the UCD client, and the file upload request carries the size information of the original file to be uploaded by the user.

在执行此步骤之前,终端通过用户在所述第一UCD服务器的注册信息登录所述第一UCD服务器,值得说明的是,本发明流程中的终端与UCD服务器连接,即为安装了UCD客户端的终端,被称为第二终端。Before performing this step, the terminal logs into the first UCD server through the registration information of the user in the first UCD server. The terminal is called the second terminal.

步骤201、第一UCD服务器获取所述用户注册过的CSP服务器的信息。Step 201, the first UCD server obtains the information of the CSP server registered by the user.

具体的,第一UCD服务器存储了用户在第三CSP服务器处的注册信息。如上所述,本发明实施例中将用户注册过的CSP服务器统称为第三CSP服务器。所述用户在第三CSP服务器处的注册信息包括第三CSP服务器的标识(如第三CSP服务器的连接地址)、用户在第三CSP服务器注册的账户名及密码。第一UCD服务器根据所述用户在第三CSP服务器处的注册信息,从所述第三CSP服务器处获取第三CSP服务器的信息,所述第三CSP服务器的信息包括用户在该CSP服务器的可用存储空间、第三CSP服务器支持的最大文件大小,和/或第三CSP服务器的连接速度。Specifically, the first UCD server stores the registration information of the user at the third CSP server. As mentioned above, in the embodiment of the present invention, the CSP servers registered by the user are collectively referred to as the third CSP server. The registration information of the user at the third CSP server includes the identifier of the third CSP server (such as the connection address of the third CSP server), the account name and password registered by the user at the third CSP server. The first UCD server obtains the information of the third CSP server from the third CSP server according to the registration information of the user at the third CSP server, and the information of the third CSP server includes the available information of the user at the CSP server. storage space, the maximum file size supported by the third CSP server, and/or the connection speed of the third CSP server.

本实施例中,假设用户分别在CSP服务器A和CSP服务器B处注册,因此,第一UCD服务器存储了用户在CSP服务器A和CSP服务器B,CSP服务器C的注册信息,并分别向CSP服务器A和CSP服务器B处获取CSP服务器A和CSP服务器B的信息。CSP服务器A,CSP服务器C和CSP服务器B被称为第三CSP服务器。In this embodiment, it is assumed that the user is registered at CSP server A and CSP server B respectively, therefore, the first UCD server has stored the registration information of the user at CSP server A and CSP server B, and CSP server C, and sends CSP server A respectively and CSP server B to obtain the information of CSP server A and CSP server B. CSP server A, CSP server C and CSP server B are referred to as a third CSP server.

步骤202、第一UCD服务器根据所述第三CSP服务器的信息及原始文件的大小信息确定用于上传所述原始文件的文件块的第二CSP服务器。Step 202, the first UCD server determines the second CSP server for uploading the file blocks of the original file according to the information of the third CSP server and the size information of the original file.

步骤203、第一UCD服务器向第二终端发送的上传文件请求响应。Step 203, the first UCD server sends a file upload request response to the second terminal.

步骤204、第二终端向UCD服务器上传原始文件。Step 204, the second terminal uploads the original file to the UCD server.

步骤205,第一UCD服务器分割原始文件,即对原始文件分块。Step 205, the first UCD server divides the original file, that is, divides the original file into blocks.

当文件上传完成后,第一UCD服务器根据确定的第二CSP服务器的信息,对原始文件进行分块,并生成原始文件的信息,如原始文件的Metadata,并将原始文件的信息保存在第一UCD服务器处。After the file upload is completed, the first UCD server blocks the original file according to the determined information of the second CSP server, and generates the information of the original file, such as the Metadata of the original file, and saves the information of the original file in the first at the UCD server.

作为一个例子,所述第三CSP服务器的信息包含所述所述用户在所述第三CSP服务器的可用存储空间以及第三CSP服务器支持的最大文件的大小;As an example, the information of the third CSP server includes the user's available storage space on the third CSP server and the size of the largest file supported by the third CSP server;

所述根据所述第三CSP服务器的信息及原始文件的大小信息确定用于上传原始文件的文件块的第二CSP服务器具体为:确定所述可用存储空间大于所述原始文件的大小,且所述第三CSP服务器支持的最大文件的大小大于所述原始文件的大小的第三CSP服务器作为用于上传文件块的第二CSP服务器;所述将文件块上传给所述第二CSP服务器具体为:将原始文件作为文件块上传给所述第二CSP服务器;或,所述根据所述第三CSP服务器的信息及原始文件的大小信息确定用于上传所述原始文件的文件块的第二CSP服务器具体为:确定可用存储空间大于所述第三CSP服务器支持的最大文件的大小的至少两个第三CSP服务器作为用于上传文件块的第二CSP服务器,根据确定的所述至少两个第二CSP服务器支持的最大文件的大小将所述原始文件分割成至少两个文件块,并将所述至少两个文件块分别上传到所述至少两个第二CSP服务器,所述文件块的大小小于所述第二CSP服务器支持的最大文件的大小。The determining the second CSP server for uploading the file block of the original file according to the information of the third CSP server and the size information of the original file is specifically: determining that the available storage space is larger than the size of the original file, and the The third CSP server whose maximum file size supported by the third CSP server is greater than the size of the original file is used as the second CSP server for uploading the file block; the uploading the file block to the second CSP server is specifically : uploading the original file as a file block to the second CSP server; or, determining the second CSP for uploading the file block of the original file according to the information of the third CSP server and the size information of the original file The server is specifically: determining at least two third CSP servers whose available storage space is greater than the size of the largest file supported by the third CSP server as the second CSP server for uploading file blocks, according to the determined at least two third CSP servers The size of the largest file supported by two CSP servers divides the original file into at least two file blocks, and uploads the at least two file blocks to the at least two second CSP servers respectively, the size of the file block smaller than the maximum file size supported by the second CSP server.

比如,在本实施例中,第一UCD服务器确定用户注册过的三个CSP服务器(即第三CSP服务器)中的CSP服务器A和CSP服务器做为存储文件块的第二CSP服务器,则将原始文件分割为到少两个文件块,每个文件的大小小于CSP服务器A的支持的最大文件的大小或小于CSP服务器B支持的最大文件的大小。当然,UCD还可以根据其它的策略对原始文件进行分块,本发明实施例在此不做限定。For example, in this embodiment, the first UCD server determines that CSP server A and CSP server among the three CSP servers registered by the user (that is, the third CSP server) are used as the second CSP server for storing file blocks, and the original The file is divided into at least two file blocks, and the size of each file is smaller than the maximum file size supported by CSP server A or smaller than the maximum file size supported by CSP server B. Of course, the UCD can also divide the original file into blocks according to other strategies, which are not limited in this embodiment of the present invention.

进一步的,UCD服务器存储原始文件的信息可以包括:存储所述原始文件的信息,所述原始文件的信息包括:原始文件的标识、原始文件被分割的文件块数量,以及各文件块的文件块标识,以及存储所述各文件块的第二CSP服务器的标识,以及所述各文件块在原始文件中的次序。Further, the UCD server storing the information of the original file may include: storing the information of the original file, and the information of the original file includes: the identifier of the original file, the number of file blocks into which the original file is divided, and the file block number of each file block ID, and the ID of the second CSP server storing the file blocks, and the order of the file blocks in the original file.

可选的,第一UCD服务器存储的原始文件的信息还可以包含原始文件的大小和原始文件被修改的时间。值得说明的是,本发明实施例中,原始文件指第二端向第一UCD服务器发送的文件。Optionally, the original file information stored by the first UCD server may also include the size of the original file and the time when the original file was modified. It should be noted that, in this embodiment of the present invention, the original file refers to the file sent by the second end to the first UCD server.

具体的,原始文件的信息如表1所示:Specifically, the information of the original file is shown in Table 1:

表1原始文件的信息Table 1 Information of the original document

原始文件的信息中包含的各文件块信息ChunkInfo包括:文件块标识(可唯一标识文件块的标识)、存储文件块的CSP信息(如CSP的名称,或CSP的地址)和文件块在原始文件中的次序。进一步的,文件块信息还可以包含文件块大小和其它的文件块信息,如文件块的名称等本发明实施例在此不做限定。此外,对文件块标识,如果第一UCD服务器没有对原始文件进行分块,文件块标识也可以是原始文件的标识。具体的,文件块信息可以如表2所示:The ChunkInfo of each file block contained in the information of the original file includes: the file block identifier (the identifier that can uniquely identify the file block), the CSP information storing the file block (such as the name of the CSP, or the address of the CSP) and the location of the file block in the original file in the order. Further, the file block information may also include the file block size and other file block information, such as the name of the file block, etc. This embodiment of the present invention does not limit it here. In addition, for the file block identifier, if the first UCD server does not divide the original file into blocks, the file block identifier may also be an identifier of the original file. Specifically, the file block information may be shown in Table 2:

表2、文件块信息Table 2. File block information

UCD服务器根据所述原始文件的信息,为每个文件块生成文件块的信息Chunkdata。具体的,文件块的信息包含:文件块标识、文件块来源(如发送文件块到CSP的第一UCD服务器的信息),文件块所属的原始文件的标识。进一步的,文件块的信息还可以包含文件块标识位,用以表示是否是分割后的文件块还是原始文件。其中,文件块的信息包含的信息如表3所示:The UCD server generates file block information Chunkdata for each file block according to the information of the original file. Specifically, the information of the file block includes: the file block identifier, the source of the file block (such as the information of the first UCD server sending the file block to the CSP), and the identifier of the original file to which the file block belongs. Further, the information of the file block may also include a file block identification bit, which is used to indicate whether it is a divided file block or an original file. Among them, the information contained in the file block information is shown in Table 3:

表3文件块的信息Table 3 Information of file blocks

作为一个例子,当UCD服务器传递给第二CSP服务器的为原始文件,即UCD没有对原始文件分块时,文件块标识为原始文件的标识,文件块标识位取值为0。当UCD服务器传递给第二CSP服务器的为分割后的文件块时:文件块标识位取值为1As an example, when the UCD server transmits the original file to the second CSP server, that is, when the UCD does not divide the original file into blocks, the file block identifier is the identifier of the original file, and the value of the file block identifier bit is 0. When the UCD server sends the divided file blocks to the second CSP server: the value of the file block identification bit is 1

步骤206或206’,第一UCD服务器通过上传块请求服务器UploadChunkRequest向第二CSP服务器上传文件块,其中所述上传块请求包含所述原始文件的文件块、所述第一UCD服务器生成的文件块信息、以及所述用户在所述第一CSP服务器的注册信息。Step 206 or 206', the first UCD server uploads the file chunk to the second CSP server through the upload chunk request server UploadChunkRequest, wherein the upload chunk request includes the file chunk of the original file and the file chunk generated by the first UCD server information, and the registration information of the user on the first CSP server.

具体的,第一UCD服务器根据原始文件的信息中的CSP服务器标识向第二CSP服务器上传文件块。进一步的,上传块请求中还携带用户在第二CSP服务器注册的帐户名和密码。Specifically, the first UCD server uploads the file block to the second CSP server according to the CSP server identifier in the original file information. Further, the upload block request also carries the user's account name and password registered on the second CSP server.

步骤207或207’、第二CSP服务器接收完文件块及文件块对应的Chunkdata数据后,根据上传块请求中的帐户名和密码对第一UCD服务器进行验证,并在验证通过后存储所述文件块,以及将所述文件块信息以及所述用户在所述第一CSP服务器的注册信息映射存储,并向UCD服务器返回服务器上传块响应服务器UploadChunkResponse消息。Step 207 or 207', after the second CSP server receives the file block and the corresponding Chunkdata data of the file block, it verifies the first UCD server according to the account name and password in the upload block request, and stores the file block after the verification is passed , and map and store the file chunk information and the registration information of the user on the first CSP server, and return an UploadChunkResponse message to the UCD server.

当UCD服务器向不同的第二CSP服务器发送完不同的文件块及Chunkdata数据,并接收到所有的对应的返回确认消息后,确认原始文件的不同文件块已经被分别存储到不同的第二CSP服务器处。When the UCD server sends different file blocks and Chunkdata data to different second CSP servers, and receives all corresponding return confirmation messages, it confirms that different file blocks of the original file have been stored in different second CSP servers respectively place.

作为另一种可选方式,第一UCD服务器在执行步骤206或206之前,先通过用户在CSP服务器注册的帐户信息建立与第二CSP服务器的连接,然后通过该连接向CSP服务器发送上传块请求以上传文件块,以便第二CSP服务器存储所述文件块,以及将所述文件块信息以及所述用户在所述第一CSP服务器的注册信息映射存储,并向UCD服务器返回服务器上传块响应服务器UploadChunkResponse消息。As another alternative, before the first UCD server executes step 206 or 206, it first establishes a connection with the second CSP server through the account information registered by the user in the CSP server, and then sends an upload block request to the CSP server through the connection To upload the file block, so that the second CSP server stores the file block, and maps and stores the file block information and the registration information of the user in the first CSP server, and returns the server upload block response server to the UCD server UploadChunkResponse message.

作为一个例子,假设终端需要在CSP服务器中存储文件:/home/test/A,简称原始文件A。通过UCD客户端向第一UCD服务器发送上传文件请求消息,所述上传文件请求消息中携带了及用户在UCD服务器原始文件,/home/test/A,的大小信息。第一UCD服务器在收到终端通过UCD客户端发送的上传文件请求消息后,根据用户在UCD服务器注册的账户名查询用户注册过的第三CSP服务器的信息。在此例子中,该用户分别在CSP服务器A,CSP服务器B和CSP服务器C进行了注册,则第在CSP服务器包含CSP服务器A,CSP服务器B和CSP服务器C。UCD服务器查询用户注册过的第三CSP服务器的信息具体为:分别向CSP服务器A,CSP服务器B和CSP服务器C发送用户可用资源查询请求,所述用户可用资源查询请求携带第一UCD服务器中存储的用户在该CSP服务器注册的账户名及密码。第一UCD服务器接收CSP服务器A,CSP服务器B和CSP服务器C各自返回的响应,所述响应中包含:用户在该CSP服务器中可用的存储空间、CSP服务器支持的最大文件大小进一步的,该响应中还可以包含连接速度。第一UCD服务器根据步骤202中的描述,比如根据获取的CSP服务器的信息和原始文件的大小信息,确定上传文件的CSP即确定第二CSP服务器。假设本实施例中,第一UCD服务器确定将原始文件,/home/test/A,分块存储到CSP服务器A,CSP服务器B和CSP服务器C。则第二CSP服务器包含CSP服务器A,CSP服务器B和CSP服务器C。然后,UCD服务器向UCD Client发送上传文件请求响应,允许UCD Client上传原始文件/home/test/A。在接收到用户终端通过UCD客户端上传的原始文件/home/test/A后,执行步骤205,将原始文件/home/test/A分块后,并通过步骤206-207将分块后的文件块A1-A3分别发送给CSP服务器A,CSP服务器B和CSP服务器C。As an example, assume that the terminal needs to store a file in the CSP server: /home/test/A, referred to as the original file A. The UCD client sends a file upload request message to the first UCD server, and the file upload request message carries the size information of the user's original file on the UCD server, /home/test/A. After receiving the file upload request message sent by the terminal through the UCD client, the first UCD server queries the information of the third CSP server registered by the user according to the account name registered by the user on the UCD server. In this example, the user has registered on CSP server A, CSP server B and CSP server C respectively, and the second CSP server includes CSP server A, CSP server B and CSP server C. The UCD server inquires about the information of the third CSP server registered by the user as follows: sending user available resource query requests to CSP server A, CSP server B, and CSP server C respectively, and the user available resource query requests carry information stored in the first UCD server. The account name and password registered by the user on the CSP server. The first UCD server receives the responses returned by CSP server A, CSP server B and CSP server C respectively, which include: the storage space available to the user in the CSP server, the maximum file size supported by the CSP server. Further, the response can also include the connection speed. The first UCD server determines the CSP of the uploaded file according to the description in step 202, for example, according to the obtained information of the CSP server and the size information of the original file, that is, determines the second CSP server. Assume that in this embodiment, the first UCD server determines to store the original file, /home/test/A, in blocks on CSP server A, CSP server B, and CSP server C. Then the second CSP server includes CSP server A, CSP server B and CSP server C. Then, the UCD server sends an upload file request response to the UCD Client, allowing the UCD Client to upload the original file /home/test/A. After receiving the original file /home/test/A uploaded by the user terminal through the UCD client, execute step 205, divide the original file /home/test/A into chunks, and divide the chunked files through steps 206-207 Blocks A1-A3 are sent to CSP server A, CSP server B and CSP server C respectively.

在另一个一实施例中,假设该用户还需上传原始文件/home/test/B,简称原始文件B。而第一UCD服务器根据原始文件B的大小,和获取到的各CSP服务器的信息,选择CSP服务器A作为第二CSP服务器存储该原始文件,并不对原始文件B进行块。In another embodiment, it is assumed that the user also needs to upload the original file /home/test/B, referred to as the original file B. The first UCD server selects CSP server A as the second CSP server to store the original file according to the size of the original file B and the acquired information of each CSP server, and does not block the original file B.

用户通过UCD客户端经过第一UCD服务器上传的原始文件A和原始文件B在CSP服务器的存储示意图如图3所示:如图3所示,原始文件A经由第一UCD服务器分成文件块A1-A3后,分别存储到CSP服务器A,CSP服务器B和CSP服务器C。而原始文件B经由第一UCD服务器只存储到了CSP服务器A。The storage schematic diagram of the original file A and the original file B uploaded by the user through the UCD client through the first UCD server on the CSP server is shown in Figure 3: as shown in Figure 3, the original file A is divided into file blocks A1- After A3, store them in CSP server A, CSP server B and CSP server C respectively. The original file B is only stored in the CSP server A via the first UCD server.

第一UCD服务器收到原始文件A后进行分块,及存储的原始文件A的信息如表4所示:After the first UCD server receives the original file A, it is divided into blocks, and the information of the stored original file A is as shown in Table 4:

表4原始文件A的信息Table 4 Information of original file A

第一UCD服务器收到原始文件B,及存储的原始文件B的信息如表5所示:The first UCD server receives original file B, and the information of stored original file B is as shown in table 5:

表5原始文件B的信息Table 5 Information of original file B

第一UCD服务器在对原始文件A分块文件块A1-A3后,针对文件块A1-A3分别生成的文件块的信息如下表所示:After the first UCD server blocks the file blocks A1-A3 of the original file A, the information of the file blocks generated respectively for the file blocks A1-A3 is shown in the following table:

表6文件块A1的信息Table 6 Information of file block A1

ChunkIDChunkID 4295294298cdf4295294298cdf ChunkBitChunkBit 11 Sourcesource http://ucd服务器.com/cloudstoragehttp://ucd-server.com/cloudstorage MetadataIDMetadataID df345gf56df345gf56

表7文件块A2的信息Table 7 Information of file block A2

ChunkIDChunkID 123973192feju123973192feju ChunkBitChunkBit 11 Sourcesource http://ucd服务器.com/cloudstoragehttp://ucd-server.com/cloudstorage MetadataIDMetadataID df345gf56df345gf56

表8文件块A3的信息Table 8 Information of file block A3

ChunkIDChunkID 873910748wev873910748wev ChunkBitChunkBit 11 Sourcesource http://ucd服务器.com/cloudstoragehttp://ucd-server.com/cloudstorage MetadataIDMetadataID df345gf56df345gf56

第一UCD服务器在对原始文件B没有进行分块,但上传的CSP服务器的信息据:The first UCD server did not divide the original file B into blocks, but the information of the uploaded CSP server according to:

表9原始文件B的信息Table 9 Information of original file B

ChunkIDChunkID hf52987fd3hf52987fd3 ChunkBitChunkBit 00 Sourcesource http://ucd服务器.com/cloudstoragehttp://ucd-server.com/cloudstorage MetadataIDMetadataID 542jd989a3542jd989a3

图4为本发明实施例提供的CSP服务器在用户通过终端登录后,为终端提供服务的过程中,终端获取用户存储在各CSP服务器文件信息的流程图包括如下步骤:FIG. 4 is a flow chart for the terminal to obtain the file information stored by the user in each CSP server in the CSP server provided by the embodiment of the present invention after the user logs in through the terminal and provides services for the terminal, including the following steps:

步骤400、第一终端通过用户在CSP服务器B的注册信息登录CSP服务器B,并接收CSP服务器B提供服务的过程中,向CSP服务器B发送文件查询请求QueryRequest,查看用户在CSP服务器B存储的文件信息。Step 400, the first terminal logs in to the CSP server B through the user's registration information on the CSP server B, and in the process of receiving the service provided by the CSP server B, sends a file query request QueryRequest to the CSP server B to view the files stored by the user on the CSP server B information.

值得说明的是,本流程中的终端可以是包含UCD客户端的终端,也可以是不包含UCD客户端的终端。为了描述的方便,本实施例将连接CSP服务器的终端称为第一终端。将第一终端连接的CSP服务器称为第一CSP服务器。It should be noted that the terminal in this process may be a terminal including a UCD client, or a terminal not including a UCD client. For convenience of description, in this embodiment, the terminal connected to the CSP server is referred to as the first terminal. The CSP server to which the first terminal is connected is referred to as the first CSP server.

步骤401、根据所述用户在所述第一CSP服务器的注册信息获取所述用户在所述第一CSP服务器存储的文件块信息;Step 401, obtaining the file block information stored by the user in the first CSP server according to the registration information of the user in the first CSP server;

具体的,CSP服务器B根据用户在CSP服务器B的注册信息查询用户存储的每个文件对应的Chunkdata数据是否包含原始文件分割标识;Specifically, the CSP server B queries whether the Chunkdata data corresponding to each file stored by the user contains the original file segmentation identifier according to the registration information of the user on the CSP server B;

当Chunkdata信息中没有包含原始文件分割标识,如ChunkBit为0时,表明Chunkdata信息对应的文件内容为完整文件,则直接执行步骤406。当Chunkdata信息包含原始文件分割标识,如ChunkBit为1时,表明该Chunkdata信息对应的文件内容为某一文件的文件块,则获取根据Chunkdata信息中的Source信息中的UCD服务器的标识(如即发送文件块到CSP服务器B的第一UCD服务器的标识,如第一UCD服务器的地址),以及文件块所述的原始文件的标识,并执行步骤402。When the Chunkdata information does not contain the original file segmentation identifier, for example, when the ChunkBit is 0, it indicates that the content of the file corresponding to the Chunkdata information is a complete file, and step 406 is directly executed. When the Chunkdata information contains the original file segmentation identifier, for example, when ChunkBit is 1, it indicates that the file content corresponding to the Chunkdata information is a file block of a certain file, then obtain the identifier of the UCD server according to the Source information in the Chunkdata information (such as sending The first UCD server identification of the file block to the CSP server B, such as the address of the first UCD server), and the identification of the original file described in the file block, and step 402 is executed.

步骤402、根据所述第一UCD服务器的标识向第一UCD服务器发送文件块查询请求QueryChunkRequest,所述文件块查询请求中包含所述文件块所属的原始文件的标识。Step 402: Send a file chunk query request QueryChunkRequest to the first UCD server according to the identifier of the first UCD server, where the file chunk query request includes the identifier of the original file to which the file chunk belongs.

步骤403、第一UCD服务器根据接收到的原始文件的标识,获取第一UCD服务器存储的原始文件的信息。原始文件的信息包括:原始文件的名称、原始文件的标识和第一UCD服务器的标识以及原始文件被分割的文件块数量。可选的,第一UCD服务器存储的原始文件的信息还可以包含原始文件的大小和原始文件被修改的时间。第一UCD服务器并通过文件块查询响应QueryChunkResponse,将原始文件的信息Metadata信息发送给CSP B的服务器。Step 403, the first UCD server obtains the information of the original file stored in the first UCD server according to the received original file identifier. The information of the original file includes: the name of the original file, the identifier of the original file and the identifier of the first UCD server, and the number of file blocks into which the original file is divided. Optionally, the original file information stored by the first UCD server may also include the size of the original file and the time when the original file was modified. The first UCD server responds to the QueryChunkResponse through the file block query, and sends the Metadata information of the original file to the server of CSP B.

步骤404、将所述原始文件的名称和所述原始文件的标识发送给所述第一终端,并存储所述返回的原始文件的信息;或将所述原始文件的信息发送给所述第一终端。Step 404: Send the name of the original file and the identifier of the original file to the first terminal, and store the information of the returned original file; or send the information of the original file to the first terminal terminal.

作为一种可选方式,CSP服务器B还可以根据接收到的原始文件的信息,生成统一视图,并将原始文件的信息以统一视图的形式发送给终端。As an optional manner, the CSP server B may also generate a unified view according to the received information of the original file, and send the information of the original file to the terminal in the form of the unified view.

当然,此流程中的CSP不用查询ChunkData信息中的ChunkBit信息,而是根据Chunkdata中的Source信息,直接从UCD服务器获取原始文件的信息。Of course, the CSP in this process does not need to query the ChunkBit information in the ChunkData information, but directly obtains the information of the original file from the UCD server according to the Source information in the Chunkdata.

作为一个例子,假设第一终端登录到CSP服务器A后向CSP服务器A发送查询请求QueryRequest,如可以在CSP服务器提供的界面点击查询按钮。具体的,用户终端向CSP服务器A发送查询请求为现有技术,本发明实施例在此不再详述。CSP服务器A根据用户的注册信息,如用户的帐户名,获取CSP服务器A存储有该用户的文件A1,B的文件块信息。并通过存储的文件A1的信息得到A1对应的Chunkdata的ChunkBit为1,即确定所述文件块标识位为原始文件分割标识,表明A1为对原始文件分割后的文件块。CSP服务器A根据存储的文件A1的信息获取上传所述第一UCD服务器的标识、以及文件块所属的原始文件的标识,并通过第一服务器的标识http://ucd服务器.com/cloudstorage向第一UCD服务器发送文件块查询请求。其中,文件块查询请求携带原始文件的标识MetadataID:df345gf56。UCD服务器在收到文件块查询请求后,根据携带的原始文件的标识MetadataID:df345gf56,获取与df345gf56对应的Metadata信息,并将Metadata的信息(Filename,ModifiedTime,Size,ChunkNum)返回给CSP服务器A。此外,CSP服务器A进一步还根据用户的帐户名获得文件B的信息,并获得文件B的文件块信息中的ChunkBit为0,则确定CSP服务器存储的文件B为原始文件。CSP服务器根据获取的原始文件A的信息以及原始文件B的文件块信息生成统一视图,提供给终端。As an example, assume that the first terminal sends a query request QueryRequest to the CSP server A after logging in to the CSP server A, for example, a query button may be clicked on an interface provided by the CSP server. Specifically, it is a prior art that the user terminal sends a query request to the CSP server A, and the embodiment of the present invention will not be described in detail here. According to the user's registration information, such as the user's account name, the CSP server A obtains the file block information of the user's files A1 and B stored in the CSP server A. And through the information of the stored file A1, the ChunkBit of the Chunkdata corresponding to A1 is obtained as 1, that is, it is determined that the file block identification bit is the original file segmentation identification, indicating that A1 is the file block after the original file is divided. The CSP server A acquires and uploads the identification of the first UCD server and the identification of the original file to which the file block belongs according to the information of the stored file A1, and sends the information to the second through the identification http://ucdserver.com/cloudstorage of the first server. A UCD server sends a file block query request. Wherein, the file block query request carries the identifier MetadataID of the original file: df345gf56. After receiving the file block query request, the UCD server obtains the Metadata information corresponding to df345gf56 according to the MetadataID of the original file carried: df345gf56, and returns the Metadata information (Filename, ModifiedTime, Size, ChunkNum) to CSP server A. In addition, the CSP server A further obtains the information of the file B according to the user's account name, and obtains that the ChunkBit in the file block information of the file B is 0, and then determines that the file B stored by the CSP server is an original file. The CSP server generates a unified view according to the acquired information of the original file A and the file block information of the original file B, and provides it to the terminal.

具体的,在本实施例中,图5为CSP服务器提供给用户的该用户存储在该CSP服务器的文件的示意图。如图5所示,分为两个部分,直接通过CSP上传的文件列表信息,和通过第一UCD服务器上传的文件信息,所述通过第一UCD服务器上传的文件信息包括:原始文件的名称、原始文件的标识和第一UCD服务器标识(如第一UCD服务器地址等)。进一步的,如果该用户通多个第一UCD服务器上传文件,则可以针对每个第一UCD服务器单独列出。本文不再详述。作为一种可选方式,CSP在获取存储的文件的原始文件的信息之前,还可以不查询文件块的信息中的ChunkBit信息,而是直接根据文件块来源Source的信息,向对应的UCD服务器请求Metadata信息。Specifically, in this embodiment, FIG. 5 is a schematic diagram of the user's files stored in the CSP server provided by the CSP server to the user. As shown in Figure 5, be divided into two parts, the file list information uploaded directly by CSP, and the file information uploaded by the first UCD server, the described file information uploaded by the first UCD server includes: the title of original file, The identifier of the original file and the identifier of the first UCD server (such as the address of the first UCD server, etc.). Further, if the user uploads files through multiple first UCD servers, each first UCD server may be listed separately. This article will not go into details. As an optional method, before obtaining the information of the original file of the stored file, the CSP may not query the ChunkBit information in the information of the file block, but directly request the corresponding UCD server according to the information of the source of the file block. Metadata information.

图6为本发明实施例提供的获取通过UCD服务器上传的文件的方法流程图,如图6所示,包含以下步骤:Fig. 6 is the flow chart of the method for obtaining the file uploaded by the UCD server provided by the embodiment of the present invention, as shown in Fig. 6, comprising the following steps:

步骤600、第一终端通过在CSP服务器B注册的帐户信息登陆CSP服务器B,并获取用户存储在该CSP服务器的文件的信息,如图5后,向CSP服务器B发送文件下载请求。所述文件下载请求中携带原始文件的标识和/原始文件的名称。进一步的,文件下载请求中还可以包含文件块数量(ChunkNum信息),和/或第一UCD服务器的标识,和原始文件修改时间等信息。Step 600, the first terminal logs in to the CSP server B through the account information registered on the CSP server B, and obtains the information of the file stored by the user on the CSP server, as shown in Figure 5, and then sends a file download request to the CSP server B. The file download request carries the identifier of the original file and/or the name of the original file. Further, the file download request may also include information such as the number of file chunks (ChunkNum information), and/or the identifier of the first UCD server, and the modification time of the original file.

步骤601、CSP服务器B根据原始文件的标识确定该原始文件的标识对应的原始文件是否被分割为文件块。In step 601, the CSP server B determines whether the original file corresponding to the original file identifier is divided into file blocks according to the original file identifier.

具体的,如果文件下载请求中包含了文件块数量信息,且文件块数量小于或等于1时,表明原始文件的标识对应的原始文件没有被分为文件块,用户可通过终端直接从CSP下载与原始文件的标识对应的文件,而不再执行后面的步骤。作为一种可选方式,如果文件下载请求中包含了文件块数量信息,且文件块数量大于1时,文件下载请求中可以进一步包含第一UCD服务器的标识,且执行步骤602。Specifically, if the file download request contains information on the number of file blocks, and the number of file blocks is less than or equal to 1, it indicates that the original file corresponding to the original file identifier has not been divided into file blocks, and the user can download directly from the CSP through the terminal. The file corresponding to the identification of the original file will not be executed in the following steps. As an optional manner, if the file download request includes file block number information, and the file block number is greater than 1, the file download request may further include the identifier of the first UCD server, and step 602 is performed.

作为另一种可选方式,CSP服务器B根据所述原始文件的标识获取存储的与所述原始文件的标识对应的原始文件的信息,所述原始文件的信息包含:原始文件的标识和第一UCD服务器的标识以及原始文件被分割的文件块数量;所述第一CSP服务器确定所述原始文件被分割的文件块数量大于1,并从所述原始文件的信息中获取所述第一UCD服务器的标识。然后执行步骤602.As another alternative, the CSP server B obtains the stored original file information corresponding to the original file ID according to the original file ID, and the original file information includes: the original file ID and the first The identification of the UCD server and the number of file blocks of the original file; the first CSP server determines that the number of file blocks of the original file is greater than 1, and obtains the first UCD server from the information of the original file logo. Then execute step 602.

步骤602、根据所述第一UCD服务器的标识向所述第一UCD服务器发送文件获取请求,所述文件获取请求携带所述原始文件的标识。所述文件获取请求用于指示所述第一UCD服务器根据所述原始文件的标识获取存储的原始文件的信息,并根据所述原始文件的信息中存储文件块的第二CSP服务器的标识,从所述第二CSP服务器的标识指示的第二CSP服务器获取文件块,并将所述获取的文件块合成为原始文件。Step 602: Send a file acquisition request to the first UCD server according to the identifier of the first UCD server, where the file acquisition request carries the identifier of the original file. The file acquisition request is used to instruct the first UCD server to acquire the information of the stored original file according to the identifier of the original file, and according to the identifier of the second CSP server storing the file block in the information of the original file, from The second CSP server indicated by the identifier of the second CSP server obtains the file blocks, and synthesizes the obtained file blocks into an original file.

进一步的,第一UCD服务器根据接收到的原始文件的标识,获取存储在UCD服务器的原始文件的信息,所述原始文件的信息包括存储文件块的第二CSP服务器的标识,第二CSP服务器存储的文件块标识以及所述文件块在原始文件中的次序。Further, the first UCD server obtains the information of the original file stored in the UCD server according to the identifier of the received original file, the information of the original file includes the identifier of the second CSP server storing the file block, and the second CSP server stores The file block identifiers and the order of the file blocks in the original file.

步骤603或步骤603’,根据所述第二CSP服务器的标识,向存储文件块的第二CSP服务器发送文件块下载请求,文件块下载请求中携带ChunkID。Step 603 or step 603', according to the identification of the second CSP server, send a file chunk download request to the second CSP server storing the file chunk, and the file chunk download request carries ChunkID.

步骤604或步骤604’,第二CSP服务器接收文件块下载请求后,向第一UCD服务器发送与ChunkID对应的文件块,并向第一UCD服务器发送文件块下载响应。In step 604 or step 604', after receiving the file chunk download request, the second CSP server sends the file chunk corresponding to the ChunkID to the first UCD server, and sends a file chunk download response to the first UCD server.

作为一种可选方式,文件块可在携带在文件块下载响应中发送给第一UCD服务器。As an optional manner, the file block may be carried in the file block download response and sent to the first UCD server.

步骤605、第一UCD服务器根据所述从所述第二CSP服务器获取的文件块在原始文件中的次序,将各个从所述第二CSP服务器获取的文件块合并为所述原始文件。Step 605: The first UCD server merges the file blocks obtained from the second CSP server into the original file according to the order of the file blocks obtained from the second CSP server in the original file.

步骤606、第一UCD服务器通过向CSP服务器B发送文件获取响应,所述文件获取响应中携带将合并后的文件(即原始文件)在第一UCD服务器上的存储地址,如统一资源定位符:Uniform Resource Locator,URL。Step 606, the first UCD server sends a file acquisition response to the CSP server B, and the file acquisition response carries the storage address of the merged file (that is, the original file) on the first UCD server, such as a uniform resource locator: Uniform Resource Locator, URL.

步骤607、CSP服务器向终端发送文件下载响应,所述文件下载响应中携带合并后的文件(即原始文件)在第一UCD服务器上的存储地址。Step 607, the CSP server sends a file download response to the terminal, and the file download response carries the storage address of the merged file (that is, the original file) on the first UCD server.

步骤608、终端通过所述URL从第一UCD服务器中获取文件。Step 608, the terminal obtains the file from the first UCD server through the URL.

值得说明的是:第一UCD服务器还可以在步骤606中直接将步骤605合并的原始文件发送给CSP服务器B,以便于CSP服务器B在步骤607中将原始文件发送给终端。从而不在执行步骤608.It is worth noting that: the first UCD server can also directly send the original file merged in step 605 to CSP server B in step 606, so that CSP server B can send the original file to the terminal in step 607. Thus step 608 is not executed.

作为一个例子,终端通过注册的帐户信息登录到CSP服务器B后,根据获得的示意图,用户点击文件/home/test/A对应的下载按钮“Download”,向CSP服务器A发送文件下载请求。所述文件下载请求中请求中携带了原始文件/home/test/A的标识,和/或文件块数量(ChunkNum信息)。由于文件下法载请求中的ChunkNum大于1,CSP服务器B确定此CSP服务器B存储的文件是分块文件,则根据文件下载请求中包含的第一UCD服务器的标识,向http://ucd服务器.com/cloudstorage发送文件获取请求。所述文件获取请求中携带原始文件A的标识MetadataID:df345gf56。UCD服务器根据MetadataID可获得存储的与df345gf56对应原始文件的信息。UCD服务器根据存储的原始文件的信息,确定原始文件A被分割为3个文件块,分别存储在CSP服务器A、CSP服务器B、CSP服务器C,则根据每个文件块的ChunkID,向对应的CSP服务器发送文件块下载请求,以分别从这三个CSP处下载文件块A1,A2,A3。在收到文件块A1,A2,A3,根据每个文件块对应次序信息,将这三个文件块合并成原始文件。再根据合并后完整文件的存储位置,生成下载链接,发送给CSP服务器A,并通过CSP服务器A转发给终端。终端根据链接直接下载文件,即可获得文件/home/test/A。As an example, after the terminal logs in to the CSP server B through the registered account information, according to the obtained schematic diagram, the user clicks the download button "Download" corresponding to the file /home/test/A, and sends a file download request to the CSP server A. The file download request carries the identifier of the original file /home/test/A and/or the number of file chunks (ChunkNum information). Since the ChunkNum in the file download request is greater than 1, the CSP server B determines that the file stored in the CSP server B is a block file, and then sends the file to the http://ucd server according to the identifier of the first UCD server contained in the file download request. .com/cloudstorage sends a file fetch request. The file acquisition request carries the metadata ID of the original file A: df345gf56. According to the MetadataID, the UCD server can obtain the stored information of the original file corresponding to df345gf56. According to the stored original file information, the UCD server determines that the original file A is divided into three file blocks, which are stored in CSP server A, CSP server B, and CSP server C respectively. Then, according to the ChunkID of each file block, the corresponding CSP The server sends file block download requests to download file blocks A1, A2, and A3 from the three CSPs respectively. After receiving the file blocks A1, A2, and A3, these three file blocks are combined into an original file according to the sequence information corresponding to each file block. Then, according to the storage location of the merged complete file, a download link is generated, sent to the CSP server A, and forwarded to the terminal through the CSP server A. The terminal directly downloads the file according to the link, and the file /home/test/A can be obtained.

类似的,当终端登录到CSP服务器B并点击下载文件块B时,CSP服务器B查询得到原始文件B对应的ChunkNum为1,说明此文件未被分割,用户则直接从CSP服务器B处下载文件/home/test/B。Similarly, when the terminal logs in to CSP server B and clicks to download file block B, CSP server B queries and finds that the ChunkNum corresponding to the original file B is 1, indicating that the file has not been divided, and the user directly downloads the file from CSP server B/ home/test/B.

图7为本发明实施例提供的能通过CSP服务器删除文件的方法流程图,如图7所示,包含以下步骤:Fig. 7 is the flow chart of the method that can delete file through CSP server that the embodiment of the present invention provides, as shown in Fig. 7, comprises the following steps:

步骤700、用户通过第一终端使用用户在CSP服务器B注册的帐户信息登陆CSP服务器B后,通过执行图4对应的流程获取用户存储在CSP服务器的文件的示意图,如图5后,向CSP服务器B发送文件删除请求,所述文件删除请求中携带需删除的文件的标识。Step 700: After the user logs in to the CSP server B through the first terminal using the account information registered by the user on the CSP server B, obtain the schematic diagram of the file stored by the user on the CSP server by executing the process corresponding to FIG. 4 , as shown in FIG. B sends a file deletion request, and the file deletion request carries the identifier of the file to be deleted.

具体的,终端可以点击示意图中的某个文件对应的删除按钮,向第一CSP服务器,如CSP服务器B发送文件删除请求。文件删除请求中包含了从统一视图中获得的需删除的文件的标识(MetadataID),和/或需删除的文件的文件名称,和/或第二UCD服务器的标识。进一步的,文件删除请求中还可以包含文件块数量(ChunkNum信息),和/或第二UCD服务器的标识,和需删除的文件的修改时间等信息还可以包含来源(source信息),文件块数(ChunkNum信息)。Specifically, the terminal may click a delete button corresponding to a certain file in the diagram to send a file deletion request to the first CSP server, such as CSP server B. The file deletion request includes the identifier (MetadataID) of the file to be deleted obtained from the unified view, and/or the file name of the file to be deleted, and/or the identifier of the second UCD server. Further, the file deletion request may also include the number of file blocks (ChunkNum information), and/or the identifier of the second UCD server, and the modification time of the file to be deleted, and may also include the source (source information), the number of file blocks (ChunkNum information).

步骤701、CSP服务器B根据文件删除请求中包含的第二UCD服务器的标识向第二UCD服务器发送文件删除请求,如服务器DelFileRequestt。所述文件删除请求中携带需删除的文件的标识。Step 701, CSP server B sends a file deletion request to the second UCD server according to the identifier of the second UCD server included in the file deletion request, such as server DelFileRequestt. The file deletion request carries the identifier of the file to be deleted.

具体的,在执行该步骤之前,CSP服务器B确定与所述需删除的文件的标识对应的需删除的文件被分块,并获取上传所述需删除的文件的文件块的第二UCD服务器的标识。Specifically, before performing this step, the CSP server B determines that the file to be deleted corresponding to the identifier of the file to be deleted is divided into blocks, and obtains the second UCD server that uploads the file block of the file to be deleted. logo.

进一步的,所述文件删除请求中进一步包含:需删除的文件被分割的文件块数量,以及第二UCD服务器的标识;所述第一CSP服务器确定与所述需删除的文件的标识对应的文件被分块,并获取第二UCD服务器的标识具体为:所述第一CSP服务器确定所述文件删除请求中所述需删除的文件被分割的文件块数量大于1,并从所述文件删除请求中获取所述第二UCD服务器的标识;或Further, the file deletion request further includes: the number of divided file blocks of the file to be deleted, and the identification of the second UCD server; the first CSP server determines the file corresponding to the identification of the file to be deleted is divided into blocks, and the identification of the second UCD server is obtained as follows: the first CSP server determines that the number of file blocks to be deleted in the file deletion request is greater than 1, and deletes the file from the file deletion request obtain the identity of the second UCD server; or

所述第一CSP服务器确定与所述需删除的文件的标识对应的文件被分块,并获取第二UCD服务器的标识具体为:所述第一CSP服务器根据所述需删除的文件的标识获取存储的与所述需删除的文件的标识对应的需删除的文件的信息,所述需删除的文件的信息包含:所述需删除的文件的标识、第二UCD服务器的标识以及所述需删除的文件被分割的文件块数量;所述第一CSP服务器确定存储的所述需删除的文件被分割的文件块数量大于1,并从所述需删除的文件的信息中获取所述第二UCD服务器的标识。The first CSP server determines that the file corresponding to the identifier of the file to be deleted is divided into blocks, and obtaining the identifier of the second UCD server is specifically: the first CSP server obtains according to the identifier of the file to be deleted The stored information of the file to be deleted corresponding to the identifier of the file to be deleted, the information of the file to be deleted includes: the identifier of the file to be deleted, the identifier of the second UCD server, and the file to be deleted The number of divided file blocks of the file; the first CSP server determines that the stored number of divided file blocks of the file to be deleted is greater than 1, and obtains the second UCD from the information of the file to be deleted The server's ID.

步骤702或步骤702’、第二UCD服务器向存储文件块的第四CSP服务器发送文件块删除请求,如服务器DelChunkRequest,所述文件块删除请求中携带所述第四CSP服务器存储的文件志的标识,所述文件删除请求用于指示所述第四CSP服务器删除与所述第四CSP服务器存储的文件块标识对应的文件块及文件块的信息。Step 702 or step 702', the second UCD server sends a file chunk deletion request to the fourth CSP server storing the file chunks, such as the server DelChunkRequest, and the file chunk deletion request carries the identifier of the file record stored in the fourth CSP server The file deletion request is used to instruct the fourth CSP server to delete the file block and file block information corresponding to the file block identifier stored in the fourth CSP server.

在执行此步骤之前,第二UCD服务器根据所述需删除的文件的标识获取存储的与所述需删除的文件的标识对应的需删除的文件的信息,所述需删除的文件的信息包含存储所述需删除文件的文件块的第四CSP服务器的标识、各第四CSP服务器存储的文件块的标识。Before performing this step, the second UCD server obtains the stored information of the file to be deleted corresponding to the identifier of the file to be deleted according to the identifier of the file to be deleted, and the information of the file to be deleted includes stored The identification of the fourth CSP server of the file block of the file to be deleted, and the identification of the file block stored by each fourth CSP server.

步骤703或步骤703’,第四CSP服务器接收文件块删除请求后,根据文件块的标识删除对应的文件块以及存储的文件块的信息。并向第二UCD服务器发送文件块删除响应服务器DelChunkResponse。进一步的,文件块删除响应中还包含文件删除是否成功的标识。In step 703 or step 703', after receiving the file block deletion request, the fourth CSP server deletes the corresponding file block and the stored information of the file block according to the identifier of the file block. And send the file chunk deletion response server DelChunkResponse to the second UCD server. Further, the file block deletion response also includes an identifier of whether the file deletion is successful.

步骤704、第二UCD服务器确定接收到发出的文件块删除请求对应的响应后,删除第二UCD服务器存储的需删除的文件的信息,并向CSP服务器B发送文件删除响应CSPDelFileResponse,响应中携带标识位,标识文件成功被删除;Step 704: After the second UCD server confirms that the response corresponding to the file block deletion request has been received, it deletes the information of the file to be deleted stored in the second UCD server, and sends a file deletion response CSPDelFileResponse to the CSP server B, carrying the identifier in the response bit, indicating that the file has been successfully deleted;

具体的,在删除第二UCD服务器存储的需删除的文件的信息之前,第二UCD服务器需确定所有的第四CSP服务器均返回了文件块删除响应,且文件块删除响应均包含了文件成功被删除的标识。Specifically, before deleting the information of the file to be deleted stored in the second UCD server, the second UCD server needs to determine that all the fourth CSP servers have returned file block deletion responses, and the file block deletion responses all include the file successfully deleted. Identifier for deletion.

步骤705、CSP服务器B向第一终端发送文件删除响应DelFileResponse,响应中携带标识位,标识文件删除成功。Step 705, the CSP server B sends a file deletion response DelFileResponse to the first terminal, and the response carries an identification bit, indicating that the file deletion is successful.

由以上实施例可以看出,通过本发明的实施例,终端可以不用直接连接UCD服务器,而直接连接CSP服务器的情况下,可以通过CSP服务器管理(由下载,删除)用户通过装有UCD客户端的终端通过UCD服务器上传到CSP服务器的文件。从而方便用户管理文件,提高用户体验。As can be seen from the above embodiments, through the embodiments of the present invention, the terminal does not need to directly connect to the UCD server, but under the situation of directly connecting to the CSP server, the user can be managed (downloaded, deleted) through the CSP server through the UCD client. The file uploaded by the terminal to the CSP server through the UCD server. In this way, it is convenient for users to manage files and improve user experience.

图8为本发明实施例提供的一种提供文件的方法,包括如下步骤:Figure 8 is a method for providing files provided by an embodiment of the present invention, including the following steps:

步骤801、统一云磁盘UCD服务器接收第一云服务提供商CSP服务器发送的文件获取请求,所述文件获取请求携带原始文件的标识;Step 801, the unified cloud disk UCD server receives the file acquisition request sent by the first cloud service provider CSP server, and the file acquisition request carries the identifier of the original file;

步骤802、根据所述原始文件的标识获取存储的与所述原始文件的标识对应的原始文件的信息,所述原始文件的信息包括存储文件块的第二CSP服务器的标识,第二CSP服务器存储的文件块标识以及所述文件块在原始文件中的次序;Step 802: Obtain the stored original file information corresponding to the original file ID according to the original file ID, the original file information includes the ID of the second CSP server storing the file block, and the second CSP server stores file block identifiers and the order of the file blocks in the original file;

步骤803、根据所述第二CSP服务器的标识,从所述第二CSP服务器的标识指示的第二CSP服务器获取与所述第二CSP服务器存储的文件块标识对应的文件块;Step 803, according to the identification of the second CSP server, obtain the file block corresponding to the file block identification stored in the second CSP server from the second CSP server indicated by the identification of the second CSP server;

步骤804、根据所述从所述第二CSP服务器获取的文件块在原始文件中的次序,将各个从所述第二CSP服务器获取的文件块合并为所述原始文件,以及将所述原始文件提供给第一终端。Step 804, according to the order of the file blocks obtained from the second CSP server in the original file, merge each file block obtained from the second CSP server into the original file, and merge the original file provided to the first terminal.

此外,本实施例中的UCD服务器还可以执行图1-图7流程中UCD服务器(包含第一UCD服务器和第二UCD服务器)执行的任一步骤,本发明实施例在此不再详述。In addition, the UCD server in this embodiment can also execute any step performed by the UCD server (including the first UCD server and the second UCD server) in the flow charts in FIGS. 1-7 , which will not be described in detail in this embodiment of the present invention.

由本实施例提UCD服务器,可以使得终端通过CSP服务器也可以获得通过UCD服务器上传到CSP服务器的文件,从而提高用户的体验。The UCD server mentioned in this embodiment can enable the terminal to obtain the files uploaded to the CSP server through the UCD server through the CSP server, thereby improving user experience.

图9为本发明实施例提供的CSP服务器的结构示意图,包括:接收单元901、确定获取单元902、发送单元903、存储单元904。具体的FIG. 9 is a schematic structural diagram of a CSP server provided by an embodiment of the present invention, including: a receiving unit 901 , a determination and acquisition unit 902 , a sending unit 903 , and a storage unit 904 . specific

接收单元901,用于在第一终端通过用户在所述CSP服务器的注册信息登录所述CSP服务器之后,且所述CSP服务器向所述第一终端提供业务的过程中,接收第一终端发送的文件下载请求,所述文件下载请求中携带原始文件的标识,以及将所述原始文件的标识发送给确定获取单元;所述确定获取单元902,用于接收所述接收单元发送的所述原始文件的标识,确定与所述原始文件的标识对应的原始文件被分块,以及获取上传所述原始文件的文件块的第一统一云磁盘UCD服务器的标识,并将所述第一UCD服务器的标识发送给发送单元;所述发送单元903,用于接收所述确定接收单元发送的第一UCD服务器的标识,以及根据所述第一UCD服务器的标识向所述第一UCD服务器发送文件获取请求,所述文件获取请求携带所述原始文件的标识;所述文件获取请求用于指示所述第一UCD服务器根据所述原始文件的标识获取存储的原始文件的信息,并根据所述元始文件的信息中文件块对应的第二CSP服务器的标识,从所述第二CSP服务器的标识指示的第二CSP服务器获取文件块,并将所述获取的文件块合成为原始文件;The receiving unit 901 is configured to receive the message sent by the first terminal after the first terminal logs into the CSP server through the user's registration information on the CSP server, and the CSP server provides services to the first terminal. A file download request, wherein the file download request carries the identifier of the original file, and sends the identifier of the original file to the determining and obtaining unit; the determining and obtaining unit 902 is configured to receive the original file sent by the receiving unit the identification of the original file, determine that the original file corresponding to the identification of the original file is divided into blocks, and obtain the identification of the first unified cloud disk UCD server that uploads the file blocks of the original file, and use the identification of the first UCD server Send to the sending unit; the sending unit 903 is configured to receive the identification of the first UCD server sent by the determining receiving unit, and send a file acquisition request to the first UCD server according to the identification of the first UCD server, The file acquisition request carries the identifier of the original file; the file acquisition request is used to instruct the first UCD server to acquire the information of the stored original file according to the identifier of the original file, and according to the information of the original file The identification of the second CSP server corresponding to the file block in the file, obtaining the file block from the second CSP server indicated by the identification of the second CSP server, and synthesizing the obtained file block into an original file;

所述接收单元进一步用于接收所述第一UCD服务器返回的文件获取响应,并将所述文件获取响应发送给所述发送单元,所述发送单元进一步用于接收所述接收单元发送的文件获取响应,并将所述文件获取响应发送给所述第一终端,以指示所述第一终端通过所述文件获取响应获取所述原始文件。The receiving unit is further configured to receive the file acquisition response returned by the first UCD server, and send the file acquisition response to the sending unit, and the sending unit is further configured to receive the file acquisition response sent by the receiving unit response, and send the file acquisition response to the first terminal, so as to instruct the first terminal to acquire the original file through the file acquisition response.

进一步的,所述CSP服务器进一步包含存储单元904;所述接收单元901进一步用于在接收所述第一终端发送的文件下载请求之前,接收所述第一终端发送的查询请求,并将所述查询请求发送给所述确定获取单元902;所述确定获取单元902进一步用于接收所述接收单元发送的查询请求,并根据所述用户在所述第一CSP服务器的注册信息获取所述用户在所述存储单元存储的文件块信息,所述文件块信息包含所述第一UCD服务器的标识、以及文件块所属的原始文件的标识,并将所述原始文件的标识和所述第一UCD服务器的标识发送给所述发送单元903;所述发送单元903进一步用于接收所述确定获取单元发送的所述原始文件的标识和所述第一UCD服务器的标识,根据所述第一UCD服务器的标识向所述第一UCD服务器发送文件块查询请求,所述文件块查询请求中包含所述文件块所属的原始文件的标识;所述接收单元901进一步用于接收所述第一UCD服务器返回的所述原始文件的信息,所述返回的原始文件的信息包含:原始文件的名称、原始文件的标识和第一UCD服务器的标识以及原始文件被分割的文件块数量,并将所述原始文件的信息发送给所述发送单元903和所述存储单元904;所述存储单元904用于接收所述接收单元发送的原始文件的信息,以及存储所述原始文件的信息;所述发送单元903进一步用于接收所述接收单元发送的原始文件的信息,并将所述原始文件的信息中的所述原始文件的名称和所述原始文件的标识发送给所述第一终端,或将所述原始文件的信息发送给所述第一终端。Further, the CSP server further includes a storage unit 904; the receiving unit 901 is further configured to receive the query request sent by the first terminal before receiving the file download request sent by the first terminal, and send the The query request is sent to the determination and acquisition unit 902; the determination and acquisition unit 902 is further configured to receive the query request sent by the receiving unit, and obtain the user's information in the first CSP server according to the registration information of the user in the first CSP server. The file block information stored by the storage unit, the file block information includes the identification of the first UCD server and the identification of the original file to which the file block belongs, and the identification of the original file and the identification of the first UCD server The identification of the original file is sent to the sending unit 903; the sending unit 903 is further configured to receive the identification of the original file sent by the determination acquisition unit and the identification of the first UCD server, according to the identification of the first UCD server The identification sends a file block query request to the first UCD server, and the file block query request includes the identification of the original file to which the file block belongs; the receiving unit 901 is further configured to receive the returned by the first UCD server The information of the original file, the information of the original file returned includes: the name of the original file, the identification of the original file and the identification of the first UCD server and the number of file blocks that the original file is divided into, and the original file The information is sent to the sending unit 903 and the storage unit 904; the storage unit 904 is used to receive the information of the original file sent by the receiving unit, and store the information of the original file; the sending unit 903 further uses for receiving the original file information sent by the receiving unit, and sending the name of the original file and the identifier of the original file in the information of the original file to the first terminal, or sending the original file The information is sent to the first terminal.

进一步的,所述文件块信息进一步包含文件块标识位;所述发送单元903根据所述第一UCD服务器的标识向所述第一UCD服务器发送文件块查询请求之前,所述确定获取单元进一步确定所述文件块标识位为原始文件分割标识。Further, the file block information further includes a file block identification bit; before the sending unit 903 sends a file block query request to the first UCD server according to the identification of the first UCD server, the determining and obtaining unit further determines The file block identification bit is an original file division identification.

进一步的,所述文件下载请求中进一步包含:原始文件被分割的文件块数量,以及所述第一UCD服务器的标识;所述确定获取单元902确定与所述原始文件的标识对应的原始文件被分块,并获取第一统一云磁盘UCD服务器的标识具体为:所述第一CSP服务器确定所述原始文件被分割的文件块数量大于1,并从所述文件下载请求中获取所述第一UCD服务器的标识;或,所述确定获取单元902确定与所述原始文件的标识对应的原始文件被分块,并获取第一统一云磁盘UCD服务器的标识具体为:所述第一CSP服务器根据所述原始文件的标识获取存储的与所述原始文件的标识对应的原始文件的信息,所述原始文件的信息包含:原始文件的标识和第一UCD服务器的标识以及原始文件被分割的文件块数量;所述第一CSP服务器确定所述原始文件被分割的文件块数量大于1,并从所述原始文件的信息中获取所述第一UCD服务器的标识。Further, the file download request further includes: the number of file blocks the original file is divided into, and the identifier of the first UCD server; the determining and obtaining unit 902 determines that the original file corresponding to the identifier of the original file is divided into Blocking, and obtaining the identifier of the first unified cloud disk UCD server is specifically: the first CSP server determines that the number of file blocks that the original file is divided into is greater than 1, and obtains the first file block from the file download request. The identification of the UCD server; or, the determining and obtaining unit 902 determines that the original file corresponding to the identification of the original file is divided into blocks, and obtaining the identification of the first unified cloud disk UCD server is specifically: the first CSP server according to The identification of the original file acquires the stored information of the original file corresponding to the identification of the original file, and the information of the original file includes: the identification of the original file and the identification of the first UCD server and the divided file blocks of the original file Quantity; the first CSP server determines that the number of file blocks into which the original file is divided is greater than 1, and obtains the identifier of the first UCD server from the information of the original file.

进一步的,所述接收单元901进一步用于接收所述第一UCD服务器发送的上传块请求;所述上传块请求包含所述原始文件的文件块以及所述第一UCD服务器生成的文件块信息,以及所述用户在所述第一CSP服务器的注册信息;所述存储单元904进一步用于接收所述接收单元发送的上传块请求,存储所述文件块以及将所述文件块信息和所述用户在所述第一CSP服务器的注册信息映射存储。Further, the receiving unit 901 is further configured to receive the upload block request sent by the first UCD server; the upload block request includes the file block of the original file and the file block information generated by the first UCD server, and the registration information of the user in the first CSP server; the storage unit 904 is further configured to receive the upload block request sent by the receiving unit, store the file block and combine the file block information with the user The registration information mapping is stored in the first CSP server.

进一步的,所述接收单元901进一步用于第一终端发送的文件删除请求,所述文件删除请求中携带需删除的文件的标识,将所述需删除的文件的标识发送给所述确定获取单元;所述确定获取单元902进一步用于接收所述接收单元发送的需删除的文件的标识,确定与所述需删除的文件的标识对应的需删除的文件被分块,并获取上传所述需删除的文件的文件块的第二UCD服务器的标识,并将所述这第二UCD服务器的标识发送给发送单元;所述发送单元903进一步用于接收所述确定获取单元发送的所述第二UCD服务器的标识,根据所述第二UCD服务器的标识向第二UCD服务器发送所述文件删除请求,所述文件删除请求用于指示所述第二UCD服务器向存储所述需删除的文件的文件块的第四CSP服务器发送文件块删除请求,并在收到所述第四CSP服务器返回的文件块删除响应后,删除第二UCD服务器存储的需删除的文件的信息并向第一CSP服务器返回文件删除响应;所述接收单元901进一步用于接收第二UCD服务器返回的所述文件删除响应,并将所述文件删除响应发送给所述发送单元;所述发送单元902进一步用于接收所述接收单元发送的所述文件删除响应,并向所述第一终端发送文件删除响应。Further, the receiving unit 901 is further used for sending the file deletion request sent by the first terminal, the file deletion request carrying the identification of the file to be deleted, and sending the identification of the file to be deleted to the determining and obtaining unit The determining and obtaining unit 902 is further used to receive the identification of the file to be deleted sent by the receiving unit, determine that the file to be deleted corresponding to the identification of the file to be deleted is divided into blocks, and obtain and upload the required file The identifier of the second UCD server of the file block of the deleted file, and send the identifier of the second UCD server to the sending unit; the sending unit 903 is further configured to receive the second UCD server sent by the determination acquisition unit. The identification of the UCD server, according to the identification of the second UCD server, the file deletion request is sent to the second UCD server, and the file deletion request is used to instruct the second UCD server to store the file to be deleted. The fourth CSP server of the block sends a file block deletion request, and after receiving the file block deletion response returned by the fourth CSP server, deletes the information of the file to be deleted stored in the second UCD server and returns to the first CSP server File deletion response; the receiving unit 901 is further configured to receive the file deletion response returned by the second UCD server, and send the file deletion response to the sending unit; the sending unit 902 is further configured to receive the The file deletion response sent by the receiving unit, and sends the file deletion response to the first terminal.

进一步的,所述文件删除请求中进一步包含:需删除的文件被分割的文件块数量,以及第二UCD服务器的标识;所述确定获取单元确定与所述需删除的文件的标识对应的原始文件被分块,并获取第二UCD服务器的标识具体为:确定所述文件删除请求中所述需删除的文件被分割的文件块数量大于1,并从所述文件删除请求中获取所述第二UCD服务器的标识;或,所述确定获取单元902确定与所述需删除的文件的标识对应的文件被分块,并获取第二UCD服务器的标识具体为:所述第一CSP服务器根据所述需删除的文件的标识获取存储的与所述需删除的文件的标识对应的需删除的文件的信息,所述需删除的文件的信息包含:所述需删除的文件的标识、第二UCD服务器的标识以及所述需删除的文件被分割的文件块数量;确定存储的所述需删除的文件被分割的文件块数量大于1,并从所述需删除的文件的信息中获取所述第二UCD服务器的标识。Further, the file deletion request further includes: the number of divided file blocks of the file to be deleted, and the identification of the second UCD server; the determining and obtaining unit determines the original file corresponding to the identification of the file to be deleted is divided into blocks, and obtaining the identification of the second UCD server is specifically: determining that the file block number to be deleted in the file deletion request is greater than 1, and obtaining the second UCD server from the file deletion request The identification of the UCD server; or, the determination acquisition unit 902 determines that the file corresponding to the identification of the file to be deleted is divided into blocks, and obtaining the identification of the second UCD server is specifically: the first CSP server according to the The identification of the file to be deleted obtains the stored information of the file to be deleted corresponding to the identification of the file to be deleted, and the information of the file to be deleted includes: the identification of the file to be deleted, the second UCD server identification and the number of file blocks of the file to be deleted; determine that the number of file blocks of the file to be deleted is greater than 1, and obtain the second file from the information of the file to be deleted The identity of the UCD server.

在上述装置实施例中,存储单元可以为存储器(memerry,或storage),也可以是随机存储器(RAM,random access memory),也可以是只读存储器(ROM,-ead Only Memory),本发明实施例在此不做限定。In the above device embodiment, the storage unit may be a memory (memerry, or storage), or a random access memory (RAM, random access memory), or a read-only memory (ROM, -ead Only Memory). Examples are not limited here.

图10为本发明实施例提供的终端的结构示意图,包括:收发器1001、存储器1002、处理器1003。具体的FIG. 10 is a schematic structural diagram of a terminal provided by an embodiment of the present invention, including: a transceiver 1001 , a memory 1002 , and a processor 1003 . specific

所述收发器1001用于接收在第一终端通过用户在所述CSP服务器的注册信息登录所述CSP服务器之后,且所述CSP服务器向所述第一终端提供业务的过程中,接收第一终端发送的文件下载请求,所述文件下载请求中携带原始文件的标识;所述存储器1002用于存储各种程序与应用,并在所述处理器的调用下执行各程序与应用的功能;所述处理器1003用于调用存储器存储的各种程序与应用,并且确定与所述原始文件的标识对应的原始文件被分块,获取上传所述原始文件的文件块的第一统一云磁盘UCD服务器的标识;根据所述第一UCD服务器的标识向所述第一UCD服务器发送文件获取请求,所述文件获取请求携带所述原始文件的标识;所述文件获取请求用于指示所述第一UCD服务器根据所述原始文件的标识获取存储的原始文件的信息,并根据所述原始文件的信息中存储文件块的第二CSP服务器的标识,从所述第二CSP服务器的标识指示的第二CSP服务器获取文件块,并将所述获取的文件块合成为原始文件;所述收发器1001进一步用于所述第一UCD服务器返回的文件获取响应,并将所述文件获取响应发送给所述第一终端,以指示所述第一终端通过所述文件获取响应获取所述原始文件。The transceiver 1001 is used to receive the first terminal after the first terminal logs in the CSP server through the user's registration information on the CSP server, and the CSP server provides services to the first terminal. The file download request sent, the file download request carries the identification of the original file; the memory 1002 is used to store various programs and applications, and execute the functions of each program and application under the call of the processor; the The processor 1003 is used to call various programs and applications stored in the memory, and determine that the original file corresponding to the identifier of the original file is divided into blocks, and obtain the first unified cloud disk UCD server that uploads the file blocks of the original file Identification; send a file acquisition request to the first UCD server according to the identification of the first UCD server, the file acquisition request carries the identification of the original file; the file acquisition request is used to indicate the first UCD server Acquire the information of the stored original file according to the identifier of the original file, and according to the identifier of the second CSP server storing the file block in the information of the original file, from the second CSP server indicated by the identifier of the second CSP server acquire file blocks, and synthesize the acquired file blocks into an original file; the transceiver 1001 is further used for the file acquisition response returned by the first UCD server, and sends the file acquisition response to the first terminal, to instruct the first terminal to acquire the original file through the file acquisition response.

此外,处理器1003还可以用于执行方法实施例中图1到图7描述的CSP服务器或CSP服务器包含的功能模块执行的各步骤,本发明实施例在此不再详述。In addition, the processor 1003 may also be used to execute the steps performed by the CSP server or the functional modules contained in the CSP server described in FIGS.

图11为本发明实施例提供的一种统一云磁盘UCD服务器,包括接收单元1101,确定获取单元1102,发送单元1103,存储单元1104和删除单元1105,具体的,Figure 11 is a unified cloud disk UCD server provided by an embodiment of the present invention, including a receiving unit 1101, a determination and acquisition unit 1102, a sending unit 1103, a storage unit 1104 and a deletion unit 1105, specifically,

接收单元1101,用于接收第一云服务提供商CSP服务器发送的文件获取请求,所述文件获取请求携带原始文件的标识;并将所述原始文件的标识发送给确定获取单元1102;The receiving unit 1101 is configured to receive the file acquisition request sent by the CSP server of the first cloud service provider, the file acquisition request carrying the identification of the original file; and send the identification of the original file to the determination acquisition unit 1102;

所述确定获取单元1102用于接收所述接收单元发送的所述原始文件的标识,根据所述原始文件的标识获取存储的与所述原始文件的标识对应的原始文件的信息,所述原始文件的信息包括存储文件块的第二CSP服务器的标识,第二CSP服务器存储的文件块标识以及所述文件块在原始文件中的次序;以及根据所述第二CSP服务器的标识,从所述第二CSP服务器的标识指示的第二CSP服务器获取与所述第二CSP服务器存储的文件块标识对应的文件块;以及将所述文件块以及所述文件块在原始文件中的次序发送给所述发送单元1103;The determining and acquiring unit 1102 is configured to receive the identifier of the original file sent by the receiving unit, and acquire the stored information of the original file corresponding to the identifier of the original file according to the identifier of the original file, and the original file The information includes the identification of the second CSP server storing the file block, the file block identification stored by the second CSP server and the order of the file block in the original file; and according to the identification of the second CSP server, from the first The second CSP server indicated by the identifier of the second CSP server obtains the file block corresponding to the file block identifier stored by the second CSP server; and sends the file block and the order of the file block in the original file to the Sending unit 1103;

所述发送单元1103用于接收所述确定获取单元发送的文件块以及所述文件块在原始文件中的次序,根据所述文件块在原始文件中的次序,将各个从所述第二CSP服务器获取的文件块合并为所述原始文件,以及将所述原始文件提供给第一终端。The sending unit 1103 is configured to receive the file blocks sent by the determining and acquiring unit and the order of the file blocks in the original file, and send each of the file blocks from the second CSP server according to the order of the file blocks in the original file The obtained file blocks are merged into the original file, and the original file is provided to the first terminal.

进一步的,所述发送单元1103将所述原始文件提供给第一终端具体为:Further, the sending unit 1103 providing the original file to the first terminal specifically includes:

向第一CSP服务器返回文件获取响应,所述文件获取响应携带所述原始文件;所述文件获取响应用于指示所述第一CSP服务器接收到所述文件获取响应发送给所述第一终端;或,向所述第一CSP服务器返回文件获取响应,所述文件获取响应携带所述原始文件在所述UCD服务器的存储地址;所述文件获取响应用于指示所述第一CSP服务器将所述文件获取响应发送给所述第一终端,以及指示所述第一终端根据所述存储地址获取所述原始文件。Returning a file acquisition response to the first CSP server, the file acquisition response carrying the original file; the file acquisition response is used to instruct the first CSP server to receive the file acquisition response and send it to the first terminal; Or, return a file acquisition response to the first CSP server, where the file acquisition response carries the storage address of the original file in the UCD server; the file acquisition response is used to instruct the first CSP server to transfer the A file acquisition response is sent to the first terminal, and instructs the first terminal to acquire the original file according to the storage address.

进一步的,所述接收单元1101在第二终端通过用户在所述UCD服务器的注册信息登录所述UCD服务器后进一步用于接收所述第二终端发送的文件上传请求,所述文件上传请求携带了用户需上传的原始文件的大小;Further, the receiving unit 1101 is further configured to receive a file upload request sent by the second terminal after the second terminal logs in to the UCD server through the user's registration information on the UCD server, and the file upload request carries The size of the original file to be uploaded by the user;

所述确定获取单元1102进一步用于获取所述用户注册过的第三CSP服务器的信息,根据所述第三CSP服务器的信息及原始文件的大小信息确定用于上传所述原始文件的文件块的第二CSP服务器;The determining and acquiring unit 1102 is further configured to acquire the information of the third CSP server registered by the user, and determine the size of the file block for uploading the original file according to the information of the third CSP server and the size information of the original file. Second CSP server;

所述接收单元1101进一步用于接收所述第二终端发送的原始文件,并将所述原始文件发送给所述发送单元1103;The receiving unit 1101 is further configured to receive the original file sent by the second terminal, and send the original file to the sending unit 1103;

所述发送单元1102进一步用于接收接收单元1101发送的所述原始文件,并将所述原始文件的文件块上传给所述确定获取单元1102确定的所述第二CSP服务器。The sending unit 1102 is further configured to receive the original file sent by the receiving unit 1101 , and upload the file blocks of the original file to the second CSP server determined by the determining and acquiring unit 1102 .

进一步的,所述第三CSP服务器的信息包含所述所述用户在所述第三CSP服务器的可用存储空间以及第三CSP服务器支持的最大文件的大小;Further, the information of the third CSP server includes the user's available storage space on the third CSP server and the size of the largest file supported by the third CSP server;

所述确定获取单元1102根据所述第三CSP服务器的信息及原始文件的大小信息确定用于上传原始文件的文件块的第二CSP服务器具体为:确定所述可用存储空间大于所述原始文件的大小,且所述第三CSP服务器支持的最大文件的大小大于所述原始文件的大小的第三CSP服务器作为用于上传文件块的第二CSP服务器;所述发送单元1103将所述原始文件的文件块上传给所述确定获取单元确定的所述第二CSP服务器具体为:将原始文件作为文件块上传给所述第二CSP服务器;或,所述确定获取单元1102根据所述第三CSP服务器的信息及原始文件的大小信息确定用于上传所述原始文件的文件块的第二CSP服务器具体为:确定可用存储空间大于所述第三CSP服务器支持的最大文件的大小的至少两个第三CSP服务器作为用于上传文件块的第二CSP服务器,根据确定的所述至少两个第二CSP服务器支持的最大文件的大小将所述原始文件分割成至少两个文件块,所述文件块的大小小于所述第二CSP服务器支持的最大文件的大小;所述发送单元1103将所述原始文件的文件块上传给所述确定获取单元确定的所述第二CSP服务器具体为:将所述至少两个文件块分别上传到所述至少两个第二CSP服务器。The determining and acquiring unit 1102 determines the second CSP server for uploading the file block of the original file according to the information of the third CSP server and the size information of the original file, specifically: determining that the available storage space is larger than that of the original file size, and the third CSP server whose maximum file size supported by the third CSP server is larger than the size of the original file is used as the second CSP server for uploading file blocks; the sending unit 1103 sends the original file Uploading the file block to the second CSP server determined by the determining and obtaining unit is specifically: uploading the original file as a file block to the second CSP server; or, the determining and obtaining unit 1102 according to the third CSP server The information and the size information of the original file determine the second CSP server for uploading the file blocks of the original file is specifically: determine at least two third CSP servers whose available storage space is greater than the size of the largest file supported by the third CSP server The CSP server is used as a second CSP server for uploading file blocks, and divides the original file into at least two file blocks according to the determined size of the largest file supported by the at least two second CSP servers, and the file blocks The size is smaller than the size of the largest file supported by the second CSP server; the sending unit 1103 uploads the file block of the original file to the second CSP server determined by the determining and obtaining unit, specifically: uploading the at least The two file blocks are respectively uploaded to the at least two second CSP servers.

进一步的,所述服务器进一步包括存储单元1104;Further, the server further includes a storage unit 1104;

所述存储单元1104用于存储所述原始文件的信息,所述原始文件的信息包括:原始文件的标识、原始文件被分割的文件块数量,以及各文件块的文件块标识,以及存储所述各文件块的第二CSP服务器的标识,以及所述各文件块在原始文件中的次序。The storage unit 1104 is used for storing the information of the original file, and the information of the original file includes: the identification of the original file, the number of file blocks into which the original file is divided, and the file block identification of each file block, and storing the The identification of the second CSP server of each file block, and the sequence of each file block in the original file.

进一步的,所述发送单元1103进一步用于根据所述存储单元1104存储的存储所述文件块的第二CSP服务器的标识将所述UCD服务器的标识、文件块标识以及文件块在原始文件中的次序发送给所述第二CSP服务器。Further, the sending unit 1103 is further configured to send the identifier of the UCD server, the identifier of the file block, and the ID of the file block in the original file according to the identifier of the second CSP server storing the file block stored in the storage unit 1104. The sequence is sent to the second CSP server.

进一步的,所述服务器进一步包含删除单元1105,所述接收单元1101进一步用于接收第一CSP服务器发送的文件删除请求,所述文件删除请求中携带需删除的文件的标识;所述确定获取单元1102进一步用于根据所述需删除的文件的标识获取所述存储单元存储的与所述需删除的文件的标识对应的需删除的文件的信息,所述需删除的文件的信息包含存储所述需删除文件的文件块的第四CSP服务器的标识、各第四CSP服务器存储的文件块的标识,并将所述需删除的文件的信息发送给所述发送单元1103;所述发送单元1103进一步用于接收所述确定获取单元发送的需删除的文件的信息,根据根据所述第四CSP服务器的标识向所述第四CSP服务器发送文件块删除请求,所述文件块删除请求中携带所述第四CSP服务器存储的文件志的标识,所述文件删除请求用于指示所述第四CSP服务器删除与所述第四CSP服务器存储的文件块标识对应的文件块及文件块的信息;所述接收单元1101进一步用于接收所述第四CSP服务器发送的文件块删除响应;所述删除单元1105用于删除所述存储单元存储的所述需删除的文件的信息;所述发送单元1103进一步用于向第一CSP服务器返回文件删除响应,所述文件删除响应用于指示第一CSP服务器将所述文件删除响应发送至第一终端。Further, the server further includes a deletion unit 1105, and the receiving unit 1101 is further configured to receive a file deletion request sent by the first CSP server, wherein the file deletion request carries the identifier of the file to be deleted; the determination acquisition unit 1102 is further used for obtaining the information of the file to be deleted corresponding to the identifier of the file to be deleted stored in the storage unit according to the identifier of the file to be deleted, the information of the file to be deleted includes storing the The identifier of the fourth CSP server of the file block of the file to be deleted, the identifier of the file block stored by each fourth CSP server, and send the information of the file to be deleted to the sending unit 1103; the sending unit 1103 further It is used to receive the information of the file to be deleted sent by the determining and obtaining unit, and send a file block deletion request to the fourth CSP server according to the identifier of the fourth CSP server, and the file block deletion request carries the the identifier of the file log stored by the fourth CSP server, and the file deletion request is used to instruct the fourth CSP server to delete the file block and the information of the file block corresponding to the file block identifier stored by the fourth CSP server; the The receiving unit 1101 is further configured to receive the file block deletion response sent by the fourth CSP server; the deleting unit 1105 is configured to delete the information of the file to be deleted stored in the storage unit; the sending unit 1103 further uses and returning a file deletion response to the first CSP server, where the file deletion response is used to instruct the first CSP server to send the file deletion response to the first terminal.

图12为本发明实施例提供的UCD服务器的结构示意图,包括:收发器1201、存储器1202、处理器1203。FIG. 12 is a schematic structural diagram of a UCD server provided by an embodiment of the present invention, including: a transceiver 1201 , a memory 1202 , and a processor 1203 .

具体的,所述收发器1201用于器接收第一云服务提供商CSP服务器发送的文件获取请求,所述文件获取请求携带原始文件的标识;所述存储器1202用于各种程序与应用,并在所述处理器的调用下执行各程序与应用的功能;所述处理器1203用于调用存储器存储的各种程序与应用,根据所述原始文件的标识获取存储的与所述原始文件的标识对应的原始文件的信息,所述原始文件的信息包括存储文件块的第二CSP服务器的标识,第二CSP服务器存储的文件块标识以及所述文件块在原始文件中的次序,根据所述第二CSP服务器的标识,从所述第二CSP服务器的标识指示的第二CSP服务器获取与所述第二CSP服务器存储的文件块标识对应的文件块;根据所述从所述第二CSP服务器获取的文件块在原始文件中的次序,将各个从所述第二CSP服务器获取的文件块合并为所述原始文件;Specifically, the transceiver 1201 is used to receive a file acquisition request sent by the CSP server of the first cloud service provider, and the file acquisition request carries the identifier of the original file; the memory 1202 is used for various programs and applications, and Execute the functions of various programs and applications under the invocation of the processor; the processor 1203 is used to call various programs and applications stored in the memory, and obtain the stored identification of the original file according to the identification of the original file The information of the corresponding original file, the information of the original file includes the identification of the second CSP server storing the file block, the file block identification stored by the second CSP server and the order of the file block in the original file, according to the first The identification of the second CSP server, obtaining the file block corresponding to the file block identification stored in the second CSP server from the second CSP server indicated by the identification of the second CSP server; according to the acquisition from the second CSP server the order of the file blocks in the original file, and merge each file block obtained from the second CSP server into the original file;

所述收发器1201进一步用于将所述原始文件提供给第一终端。The transceiver 1201 is further configured to provide the original file to the first terminal.

此外,处理器1203还可以用于执行方法实施例中图1到图7描述的UCD服务器执行的各步骤,本发明实施例在此不再详述。In addition, the processor 1203 may also be configured to execute the steps performed by the UCD server described in FIG. 1 to FIG. 7 in the method embodiment, which will not be described in detail in this embodiment of the present invention.

在上述各实施例中,终端可以是各种移动终端,如种终智能手机,平板电脑,移动阅读设备等。在上述实施例中,尤其图9和图11对应的实施例中,CSP服务器和UCD服务器包括的各个装置只是按照功能逻辑进行划分的,但并不局限于上述的划分,只要能够实现相应的功能即可;另外,各装置的具体名称也只是为了便于相互区分,并不用于限制本发明的保护范围。图1-图7的CSP服务器和UCD服务器的各功能模块或各装置的功能均可以由终端的的处理器运行完成,In the above embodiments, the terminal may be various mobile terminals, such as a smart phone, a tablet computer, a mobile reading device, and the like. In the above-mentioned embodiments, especially in the embodiments corresponding to Fig. 9 and Fig. 11, each device included in the CSP server and UCD server is only divided according to functional logic, but it is not limited to the above-mentioned division, as long as the corresponding functions can be realized In addition, the specific names of the devices are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the present invention. The functions of each functional module or device of the CSP server and UCD server in Figures 1-7 can be completed by the processor of the terminal,

以上所述,仅为本发明较佳的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到的变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应该以权利要求的保护范围为准。The above is only a preferred embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any person skilled in the art within the technical scope disclosed in the present invention can easily think of changes or Replacement should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be determined by the protection scope of the claims.

Claims (16)

1. a kind of document down loading method, which is characterized in that in first terminal by user in the first cloud service provider server Registration information log in the first cloud service provider server after, and the first cloud service provider server is to institute During first terminal offer business is provided, this method comprises:
The first cloud service provider server receives the file download request that the first terminal is sent, the file download The mark of original document is carried in request;
The first cloud service provider server determines that the original document corresponding with the mark of the original document is divided Block obtains the mark for uploading the first unified cloud disk server of blocks of files of the original document;
The first cloud service provider server is united according to the mark of the described first unified cloud disk server to described first One cloud disk server sends file acquisition request, and the file acquisition request carries the mark of the original document;The text Part acquisition request is used to indicate the institute that the described first unified cloud disk server obtains storage according to the mark of the original document The information of original document is stated, and according to the second cloud service provider server of storage file block in the information of the original document Mark, from the second cloud service provider server mark instruction the second cloud service provider server obtain file Block, and the blocks of files of the acquisition is synthesized into the original document;
The first cloud service provider server receives the file acquisition response that the described first unified cloud disk server returns, And file acquisition response is sent to the first terminal, to indicate that the first terminal is responded by the file acquisition Obtain the original document.
2. the method as described in claim 1, which is characterized in that the first terminal obtains institute by file acquisition response State original document specifically:
The file acquisition response carries the original document, and the first terminal obtains described original from file acquisition response File;Or
The file acquisition response carries the original document in the storage address of the described first unified cloud disk server;It is described First terminal obtains the original document from the described first unified cloud disk server according to the storage address.
3. method according to claim 1 or 2, which is characterized in that the file download for receiving the first terminal and sending Before request, this method further comprises:
Receive the inquiry request that the first terminal is sent;
The user is obtained described first in the registration information of the first cloud service provider server according to the user The file block message of cloud service provider server storage, the blocks of files information include to upload the described first unified cloud disk clothes The mark of the original document belonging to the mark and blocks of files of business device;
Blocks of files is sent to the described first unified cloud disk server according to the mark of the described first unified cloud disk server to look into Ask request, the mark comprising the original document belonging to the blocks of files in the blocks of files inquiry request;
Receive the information for the original document that the described first unified cloud disk server returns, the original text of the return The information of part includes: the title of the original document, the mark of the original document and the first unified cloud disk server Mark and the divided file number of blocks of the original document;
The mark of the title of the original document and the original document is sent to the first terminal, and stores the return The original document information;Or the information of the original document is sent to the first terminal.
4. method as claimed in claim 3, it is characterised in that: the file block message further includes blocks of files marker;
The mark according to the described first unified cloud disk server sends file to the described first unified cloud disk server Before block inquiry request, the first cloud service provider server further determines that the blocks of files marker is original document Segmentation mark.
5. method as claimed in claim 3, it is characterised in that: further included in the file download request: described original The mark of the divided file number of blocks of file and the first unified cloud disk server;First cloud service provides The determining original document corresponding with the mark of the original document of quotient's server obtains the described first unified cloud by piecemeal The mark of disk server specifically: the first cloud service provider server determines the divided file of the original document Number of blocks is greater than 1, and the mark of the described first unified cloud disk server is obtained from the file download request;Or
The first cloud service provider server determine original document corresponding with the mark of the original document by piecemeal, and Obtain the mark of the described first unified cloud disk server specifically: the first cloud service provider server is according to the original The mark of beginning file obtains the information of the exhaled original document corresponding with the mark of the original document of storage, the original text The information of part includes: the mark of the original document and mark and the original text of the described first unified cloud disk server The divided file number of blocks of part;The first cloud service provider server determines the divided blocks of files of the original document Quantity is greater than 1, and the mark of the described first unified cloud disk server is obtained from the information of the original document.
6. the method as described in claim 1, which is characterized in that this method further comprises:
Receive the upload block request that the described first unified cloud disk server is sent;The upload block request includes the original text The blocks of files of part, the file block message of the first unified cloud disk server generation and the user are in first cloud The registration information of service provider server;
The blocks of files is stored, and by the file block message and the user in the first cloud service provider service The registration information mapping storage of device.
7. the method as described in claim 1, which is characterized in that this method further comprises:
The file deletion requests that first terminal is sent are received, the mark for the file that need to be deleted is carried in the file deletion requests;
The first cloud service provider server determines the file that need to be deleted corresponding with the mark of the file that need to be deleted By piecemeal, and obtain the mark of the second unified cloud disk server of the blocks of files for uploading the file that need to be deleted;
The file is sent to the second unified cloud disk server according to the mark of the described second unified cloud disk server to delete Request, the file deletion requests are used to indicate the described second unified cloud disk server to the storage file that need to be deleted 4th cloud service provider server of blocks of files sends blocks of files removal request, and is receiving the 4th cloud service provider After the blocks of files that server returns deletes response, the file that the need that the described second unified cloud disk server stores are deleted is deleted The file information simultaneously returns to file deletion response to the first cloud service provider server;
The first cloud service provider server receives the file that the described second unified cloud disk server returns and deletes Response sends the file to the first terminal and deletes response.
8. the method for claim 7, which is characterized in that further include: need to delete in the file deletion requests The mark of the divided file number of blocks of file and the second unified cloud disk server;The first cloud service provider clothes The determining file corresponding with the mark of the file that need to be deleted of device be engaged in by piecemeal, and obtains the second unified cloud disk server Mark specifically: the first cloud service provider server determines the file quilt for needing to delete described in the file deletion requests The file number of blocks of segmentation is greater than 1, and the mark of the described second unified cloud disk server is obtained from the file deletion requests Know;Or the first cloud service provider server determine file corresponding with the mark of the file that need to be deleted by piecemeal, And obtain the mark of the described second unified cloud disk server specifically: the first cloud service provider server is according to The mark for the file that need to be deleted obtains the information of the file that need to be deleted corresponding with the mark of the file that need to be deleted of storage, The information of the file that need to be deleted includes: the mark of the file that need to be deleted, the second unified cloud disk server Mark and the divided file number of blocks of file that need to be deleted;The first cloud service provider server determines storage The divided file number of blocks of file that need to be deleted be greater than 1, and obtain institute from the information of the file that need to be deleted State the mark of the second unified cloud disk server.
9. a kind of first cloud service provider server characterized by comprising
Receiving unit, for being logged in by user in the registration information of the first cloud service provider server in first terminal After the first cloud service provider server, and the first cloud service provider server is provided to the first terminal During business, the file download request that first terminal is sent is received, carries original document in the file download request Mark, and the mark of the original document is sent to determining acquiring unit;
The determining acquiring unit, for receiving the mark for the original document that the receiving unit is sent, it is determining with it is described The corresponding original document of the mark of original document is by piecemeal, and obtains the first of the blocks of files for uploading the original document The mark of unified cloud disk server, and the mark of the described first unified cloud disk server is sent to transmission unit;
The transmission unit, for receiving the mark for the described first unified cloud disk server that the determining receiving unit is sent Know, and file is sent to the described first unified cloud disk server according to the mark of the described first unified cloud disk server and is obtained Request is taken, the file acquisition request carries the mark of the original document;File acquisition request is used to indicate described the One unified cloud disk server obtains the information of the original document of storage according to the mark of the original document, and according to institute The mark for stating the corresponding second cloud service provider server of blocks of files in the information of original document is mentioned from second cloud service Blocks of files is obtained for the second cloud service provider server of the mark instruction of quotient's server, and by the file of the acquisition Block synthesizes the original document;
The receiving unit is further used for receiving the file acquisition response that the described first unified cloud disk server returns, and will The file acquisition response is sent to the transmission unit, and the transmission unit is further used for receiving the receiving unit transmission File acquisition response, and by the file acquisition response be sent to the first terminal, to indicate that the first terminal passes through The file acquisition response obtains the original document.
10. server as claimed in claim 9, which is characterized in that the server further includes storage unit;
The receiving unit is further used for before receiving the file download request that the first terminal is sent, and receives described the The inquiry request that one terminal is sent, and the inquiry request is sent to the determining acquiring unit;
The determining acquiring unit is further used for receiving the inquiry request that the receiving unit is sent, and is existed according to the user The registration information of the first cloud service provider server obtains the blocks of files letter that the user stores in the storage unit Breath, the blocks of files information include described original belonging to the mark and blocks of files of the described first unified cloud disk server The mark of file, and the mark of the mark of the original document and the described first unified cloud disk server is sent to the hair Send unit;
The transmission unit is further used for receiving the mark of the original document that the determining acquiring unit is sent and described The mark of first unified cloud disk server, according to the mark of the described first unified cloud disk server to the described first unified cloud Disk server sends blocks of files inquiry request, includes described original belonging to the blocks of files in the blocks of files inquiry request The mark of file;
The receiving unit is further used for receiving the letter for the original document that the described first unified cloud disk server returns Breath, the information of the original document of the return includes: the title of the original document, the mark of the original document and institute State the mark and the divided file number of blocks of original document of the first unified cloud disk server, and by the original document Information is sent to the transmission unit and the storage unit;
The storage unit is used to receive the information for the original document that the receiving unit is sent, and the storage original document Information;
The transmission unit is further used for receiving the information for the original document that the receiving unit is sent, and by the original The title of the original document in the information of beginning file and the mark of the original document are sent to the first terminal, or will The information of the original document is sent to the first terminal.
11. server as claimed in claim 10, which is characterized in that the file block message further includes file block identification Position;
The transmission unit is according to the mark of the described first unified cloud disk server to the described first unified cloud disk server Before sending blocks of files inquiry request, the determining acquiring unit further determines that the blocks of files marker for original document point Cut mark.
12. the server as described in claim 9-11 is any, it is characterised in that:
It is further included in the file download request: the divided file number of blocks of the original document and described first The mark of unified cloud disk server;The determining acquiring unit determination is corresponding with the mark of the original document described original File obtains the mark of the described first unified cloud disk server by piecemeal specifically: the first cloud service provider clothes Business device determines that the divided file number of blocks of the original document is greater than 1, and obtains from the file download request described the The mark of one unified cloud disk server;Or
The determining original document corresponding with the mark of the original document of determining acquiring unit obtains institute by piecemeal State the mark of the first unified cloud disk server specifically: the first cloud service provider server is according to the original document Mark obtain storage the original document corresponding with the mark of the original document information, the letter of the original document Breath includes: the mark of the original document and the mark of the described first unified cloud disk server and the original document are divided The file number of blocks cut;The first cloud service provider server determines that the divided file number of blocks of the original document is big In 1, and obtain from the information of the original document mark of the described first unified cloud disk server.
13. server as claimed in claim 10, which is characterized in that
The receiving unit is further used for receiving the upload block request that the described first unified cloud disk server is sent;On described The file block message of blocks of files of the block request comprising the original document and the first unified cloud disk server generation is passed, And the user is in the registration information of the first cloud service provider server;
The storage unit is further used for receiving the upload block request that the receiving unit is sent, store the blocks of files and By the file block message and the user the first cloud service provider server registration information mapping storage.
14. server as claimed in claim 9, which is characterized in that
The receiving unit is further used for receiving the file deletion requests that first terminal is sent, and takes in the file deletion requests The mark of the file that need to be deleted is sent to the determining acquiring unit by the mark for the file that band need to be deleted;
The determining acquiring unit is further used for receiving the mark for the file that the need that the receiving unit is sent are deleted, determine with The corresponding file that need to be deleted of mark of the file that need to be deleted obtains the text for uploading the file that need to be deleted by piecemeal The mark of the unified cloud disk server of the second of part block, and the mark of the described second unified cloud disk server is sent to transmission Unit;
The transmission unit is further used for receiving the described second unified cloud disk server that the determining acquiring unit is sent Mark, the text is sent to the described second unified cloud disk server according to the mark of the described second unified cloud disk server Part removal request, the file deletion requests, which are used to indicate the described second unified cloud disk server, described need to delete to storing 4th cloud service provider server of the blocks of files of file sends blocks of files removal request, and is receiving the 4th cloud service After the blocks of files that provider server returns deletes response, delete what the need that the described second unified cloud disk server stores were deleted The information of file simultaneously returns to file deletion response to the first cloud service provider server;
The receiving unit is further used for receiving the file deletion response that the described second unified cloud disk server returns, And the file is deleted into response and is sent to the transmission unit;
The transmission unit is further used for receiving the file that the receiving unit is sent and deletes response, and to described first Terminal sends file and deletes response.
15. server as claimed in claim 14, which is characterized in that further included in the file deletion requests: need to delete The mark of the divided file number of blocks of the file removed and the second unified cloud disk server;The determining acquisition is single The determining original document corresponding with the mark of the file that need to be deleted of member obtains the described second unified cloud magnetic by piecemeal The mark of disk server specifically: determine the divided file number of blocks of file for needing to delete described in the file deletion requests Greater than 1, and obtain from the file deletion requests mark of the described second unified cloud disk server;Or
The determining acquiring unit determines that file corresponding with the mark of the file that need to be deleted by piecemeal, and obtains described the The mark of two unified cloud disk servers specifically: the first cloud service provider server is according to the file that need to be deleted Mark obtain storage corresponding with the mark of the file that need to the be deleted file that need to be deleted information, it is described to delete The information of file includes: the mark of the file that need to be deleted, the mark of the second unified cloud disk server and described The divided file number of blocks of the file that need to be deleted;Determine that the divided file number of blocks of file that need to be deleted of storage is big In 1, and obtain from the information of the file that need to be deleted the mark of the described second unified cloud disk server.
16. a kind of cloud service provider server characterized by comprising transceiver, memory and processor;
The transceiver is stepped on by user in the registration information of the cloud service provider server for receiving in first terminal After recording the cloud service provider server, and the cloud service provider server provides business to the first terminal In the process, the file download request that first terminal is sent is received, the mark of original document is carried in the file download request;
The memory executes each program and application for storing various programs and application under the calling of the processor Function;
The various programs and application that the processor is used to that memory to be called to store, and the determining mark with the original document The corresponding original document obtains the first unified cloud disk server of the blocks of files for uploading the original document by piecemeal Mark;File acquisition is sent to the described first unified cloud disk server according to the mark of the described first unified cloud disk server Request, the file acquisition request carry the mark of the original document;The file acquisition request is used to indicate described first Unified cloud disk server obtains the information of the original document of storage according to the mark of the original document, and according to described The mark of second cloud service provider server of storage file block in the information of original document is provided from second cloud service The second cloud service provider server of the mark instruction of quotient's server obtains blocks of files, and by the blocks of files of the acquisition Synthesize the original document;
The transceiver is further used for the file acquisition response that the described first unified cloud disk server returns, and by the text Part obtains response and is sent to the first terminal, to indicate that the first terminal obtains the original by file acquisition response Beginning file.
CN201380000818.7A 2013-06-29 2013-06-29 Method and device for file download Active CN104969532B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2013/078501 WO2014205839A1 (en) 2013-06-29 2013-06-29 Method and apparatus for downloading file

Publications (2)

Publication Number Publication Date
CN104969532A CN104969532A (en) 2015-10-07
CN104969532B true CN104969532B (en) 2018-12-07

Family

ID=52140906

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201380000818.7A Active CN104969532B (en) 2013-06-29 2013-06-29 Method and device for file download

Country Status (2)

Country Link
CN (1) CN104969532B (en)
WO (1) WO2014205839A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110661829B (en) * 2018-06-28 2021-09-21 杭州海康威视系统技术有限公司 File downloading method and device, client and computer readable storage medium
US20220405417A1 (en) * 2021-06-17 2022-12-22 International Business Machines Corporation Sensitive data classification in non-relational databases

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102685223A (en) * 2012-04-28 2012-09-19 广州市动景计算机科技有限公司 Cloud-storage-based file processing method and system
CN102833294A (en) * 2011-06-17 2012-12-19 阿里巴巴集团控股有限公司 File processing method and system based on cloud storage, and server cluster system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8799322B2 (en) * 2009-07-24 2014-08-05 Cisco Technology, Inc. Policy driven cloud storage management and cloud storage policy router
CN101997924A (en) * 2010-11-22 2011-03-30 杨文军 Cloud storage file transfer protocol (CFTP)

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102833294A (en) * 2011-06-17 2012-12-19 阿里巴巴集团控股有限公司 File processing method and system based on cloud storage, and server cluster system
CN102685223A (en) * 2012-04-28 2012-09-19 广州市动景计算机科技有限公司 Cloud-storage-based file processing method and system

Also Published As

Publication number Publication date
WO2014205839A1 (en) 2014-12-31
CN104969532A (en) 2015-10-07

Similar Documents

Publication Publication Date Title
US10992781B2 (en) Method, user equipment, server, and apparatus for implementing information sharing
CN103577500B (en) Distributed file system carries out the method and the distributed file system of data processing
US20100205196A1 (en) Virtual File System for the Web
CN103414759B (en) Network disk file transmission method and device
CN102546836A (en) Method, terminal, server and system for uploading files
US8880698B2 (en) Storage of content data in a peer-to-peer network
WO2017000820A1 (en) File sharing method, apparatus, and system based on cloud storage
CN103731489B (en) A kind of date storage method, system and equipment
CN106357539B (en) A kind of data capture method and equipment
CN103024053A (en) Cloud storage method, resource scheduling system and cloud storage node and system
CN103699597A (en) Method for downloading file through browser and browser
US20140359066A1 (en) System, method and device for offline downloading resource and computer storage medium
CN107517239A (en) Data transmission method and device
WO2016070718A1 (en) Method, device, and browser for file downloading
CN105049631B (en) Enter the method and mobile terminal of row information transmission in address list program
CN104410680A (en) Method, client terminal, server and system of sharing file/file folder
CN110347656B (en) Method and device for managing requests in file storage system
WO2017114365A1 (en) Mail attachment filing method and cloud storage server
EP3042500B1 (en) Metadata-based file-identification systems and methods
CN113395340A (en) Information updating method, device, equipment, system and readable storage medium
CN104967646A (en) File downloading method and apparatus
KR101575229B1 (en) User terminal for multi data searching and searching method thereof
CN104969532B (en) Method and device for file download
CN103973772B (en) File read/write method and device
WO2016197884A1 (en) Identity-based data processing method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20211222

Address after: 450046 Floor 9, building 1, Zhengshang Boya Plaza, Longzihu wisdom Island, Zhengdong New Area, Zhengzhou City, Henan Province

Patentee after: xFusion Digital Technologies Co., Ltd.

Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd.