WO2014205839A1 - Method and apparatus for downloading file - Google Patents

Method and apparatus for downloading file Download PDF

Info

Publication number
WO2014205839A1
WO2014205839A1 PCT/CN2013/078501 CN2013078501W WO2014205839A1 WO 2014205839 A1 WO2014205839 A1 WO 2014205839A1 CN 2013078501 W CN2013078501 W CN 2013078501W WO 2014205839 A1 WO2014205839 A1 WO 2014205839A1
Authority
WO
WIPO (PCT)
Prior art keywords
file
server
csp
original
ucd
Prior art date
Application number
PCT/CN2013/078501
Other languages
French (fr)
Chinese (zh)
Inventor
秦晋
狄龙
谢军安
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to PCT/CN2013/078501 priority Critical patent/WO2014205839A1/en
Priority to CN201380000818.7A priority patent/CN104969532B/en
Publication of WO2014205839A1 publication Critical patent/WO2014205839A1/en

Links

Classifications

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

Definitions

  • a cloud storage service refers to a service in which a server provides a file management function such as storage, access, backup, and sharing of files to a user. Users can view the server as a hard disk or network disk on the network, and manage and edit the files stored on the server from anywhere, via the Internet.
  • a user can register with a different cloud service provider (C SP ) in a unified cloud disk (UCD) system, and register at the UCD server UCD server, and The UCD server provides related information registered by the user at the CSP server, such as the user name and password registered by the user at the CSP server, so that the UCD server can log in to the CSP server registered by the user according to the registration information of the user at the CSP server.
  • the user passes the UCD client.
  • the UCD Client sends a file operation request (such as uploading, downloading, changing the file name, etc.) to the UCD server.
  • the user uploads a file to the UCD server through the UCD client, and the UCD server selects a suitable CSP in the CSP that the user has registered according to a certain policy.
  • the specific policy may be: for example, the CSP server with the largest storage capacity.
  • the current fastest transmission CSP server, and this file is actually stored in the network disk of the CSP server selected by the UCD server.
  • the user only the file is stored in the CSP that the user has previously registered, but it is not clear which CSP server is stored.
  • the user uploads two files through the UCD client. These two files are stored by the UCD server to CSP server A and CSP server C respectively. It is also possible that these two files are simultaneously present in one CSP server.
  • the method and apparatus for downloading a file provided by the embodiment of the present invention may enable the terminal to download a file from the CSP server after logging in to the CSP server using the service provided by the CSP server.
  • a file downloading method after the first terminal logs in to the first CSP server by using registration information of the first cloud service provider CSP server by the user, In the process of the first CSP server providing the service to the first terminal, the method includes: the first CSP server receiving a file download request sent by the first terminal, where the file download request carries an identifier of the original file; Determining, by the first CSP server, that the original file corresponding to the identifier of the original file is fragmented, and acquiring an identifier of a first unified cloud disk UCD server that uploads a file block of the original file; the first CSP server according to the The identifier of the first UCD server sends a file acquisition request to the first UCD server, where the file acquisition request carries an identifier of the original file, and the file acquisition request is used to indicate that the first UCD server is based on the original The identifier of the file acquires the information of the stored original file, and stores the second CSP service
  • the CSP server acquires a file block, and synthesizes the obtained file block into an original file; the first CSP server receives a file acquisition response returned by the first UCD server, and sends the file acquisition response to the first a terminal, to instruct the first terminal to acquire the original file by using the file acquisition response.
  • the acquiring, by the first terminal, the original file by using the file obtaining response is: the file obtaining response carrying the original file, and the first terminal acquiring a response from the file Obtaining the original file; or the file obtaining response carrying a storage address of the original file at the first UCD server; the first terminal acquiring the content from the first UCD server according to the storage address Original file.
  • the method before the receiving the file download request sent by the first terminal, the method further includes: receiving a query request sent by the first terminal; Acquiring, by the user, the registration information of the first CSP server, the file block information that is stored by the user in the first CSP server, where the file block information includes the identifier of the first UCD server and the file block Sending a file block query request to the first UCD server according to the identifier of the first UCD server, where the file block query request includes an identifier of an original file to which the file block belongs;
  • the information of the original file returned by the first UCD server, the information of the returned original file includes: a name of the original file, an identifier of the original file, an identifier of the first UCD server, and a number of file blocks in which the original file is divided; Sending the name of the original file and the identifier of the original file to the first terminal, and storing Said information of the original document is returned; or
  • the file block information further includes a file block identifier bit, and the file is sent to the first UCD server according to the identifier of the first UCD server.
  • the first CSP server further determines that the file block identifier is an original file split identifier.
  • the download request further includes: the number of file blocks in which the original file is divided, and the identifier of the first UCD server; the first CSP server determines that the original file corresponding to the identifier of the original file is divided, And obtaining the identifier of the first unified cloud disk UCD server, where: the first CSP server determines that the number of file blocks in which the original file is divided is greater than 1, and acquires the first UCD server from the file download request.
  • the first CSP server determines that the original file corresponding to the identifier of the original file is fragmented, and obtains the identifier of the first unified cloud disk UCD server, specifically: the first CSP server is according to the original
  • the identifier of the file obtains the stored information of the original file corresponding to the identifier of the original file, where the information of the original file includes: an identifier of the original file and an identifier of the first UCD server and a number of file blocks in which the original file is divided; Determining that the number of file blocks in which the original file is divided is greater than 1, and from the original file Acquiring first identification information of the UCD server.
  • the method further includes:
  • the uploading block requesting a file block including the original file, file block information generated by the first UCD server, and the user in the first CSP server Registration information; storing the file block, and mapping the file block information and the registration information of the user at the first CSP server.
  • the method further includes:
  • Determining, by the first CSP server, that the file to be deleted corresponding to the identifier of the file to be deleted is divided, and acquiring an identifier of the second UCD server that uploads the file block of the file to be deleted; Sending, by the identifier of the second UCD server, the file deletion request to the second UCD server, where the file deletion request is used to instruct the second UCD server to send the file block to the fourth CSP server that stores the file block of the file to be deleted.
  • Delete the request and receive the fourth CSP After the file block returned by the server deletes the response, the file information of the file to be deleted stored by the second UCD server is deleted and a file deletion response is returned to the first CSP server;
  • 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.
  • the file deletion request further includes: a number of file blocks to be deleted, and an 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, and the identifier of the second UCD server is obtained: 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 identifier of the second UCD server is obtained from the file deletion request; or the first CSP server determines that the file corresponding to the identifier of the file to be deleted is divided.
  • the information of the deleted file includes: an identifier of the file to be deleted, an identifier of the second UCD server, and the file to be deleted. a number of the divided file blocks; the first CSP server determines that the number of the file blocks to be deleted that are to be deleted is greater than 1, and obtains the identifier of the second UCD server from the information of the file to be deleted. .
  • a second aspect of the embodiments of the present invention provides a file providing method, including: a unified cloud disk UCD server receives a file obtaining request sent by a first cloud service provider CSP server, where the file obtaining request carries an identifier of an original file; The identifier of the original file is used to obtain the stored information of the original file corresponding to the identifier of the original file, where the information of the original file includes the identifier of the second CSP server storing the file block, and the file block identifier stored by the second CSP server.
  • the order of the file blocks in the original file obtaining, according to the identifier of the second CSP server, the second CSP server indicated by the identifier of the second CSP server, corresponding to the file block identifier stored by the second CSP server a file block; merging each of the file blocks acquired from the second CSP server into the original file according to the order of the file blocks acquired from the second CSP server in the original file, And providing the original file to the first terminal.
  • the providing the original file to the first terminal includes: returning a file acquisition response to the first CSP server, where the file acquisition response carries the original file;
  • the file acquisition response is used to indicate that the first CSP server receives the file acquisition response and sends the file to the first terminal; or returns a file acquisition response to the first CSP server, where the file acquisition response carries the location Decoding a storage address of the original file in the UCD server; the file obtaining response is used to instruct the first CSP server to send the file acquisition response to the first terminal, and instructing the first terminal to perform the The storage address acquires the original file.
  • the method further includes: receiving, sending, by the second terminal a file upload request, the file upload request carries the size of the original file that the user needs to upload; obtains the information of the third CSP server registered by the user; and according to the information of the third CSP server and the size information of the original file Determining a second CSP server for uploading the file block of the original file, and after receiving the original file sent by the second terminal, uploading the file block of the original file to the second CSP server.
  • the information of the third CSP server includes the available storage space of the user in the third CSP server and the maximum supported by the third CSP server.
  • Determining, according to the information of the third CSP server and the size information of the original file, the second CSP server for uploading the file block of the original file is: determining that the available storage space is larger than the original file a size, and a third CSP server whose size of the largest file supported by the third CSP server is larger than the size of the original file as a second CSP server for uploading a 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, according to the information of the third CSP server and the size information of the original file, a file block for uploading the original file
  • the second CSP server is specifically configured to: determine that the available storage space is greater than at least two of the maximum file size supported by the third CSP server
  • a third CSP server as a block for uploading files a second CSP server, dividing the original file into at least two file blocks according to the determined size of a maximum file supported by the at least two second CSP servers, and uploading the at least two file blocks to the At least two second CSP servers, the size of the file block is smaller than the size of the largest file supported by the second CSP server.
  • the method further includes: storing information of the original file, where the information of the original file includes: an identifier of the original file, a number of file blocks in which the original file is divided, and a file block identifier of each file block, and storing the respective The identifier of the second CSP server of the file block, and the order of the file blocks in the original file.
  • the method further includes: determining an identifier, a file block identifier, and a file of the UCD server according to the identifier of the second CSP server storing the file block.
  • the order of the blocks in the original file is sent to the second CSP server.
  • the method further includes: receiving a file deletion request sent by the first CSP server, where the file deletion request carries an identifier of the file to be deleted;
  • the identifier of the file to be deleted is obtained by the identifier of the file to be deleted corresponding to the identifier 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.
  • An identifier of the server, an identifier of the file block stored by each fourth CSP server, and a file block deletion request is sent to the fourth CSP server according to the identifier of the fourth CSP server, where the file block deletion request carries the An identifier of a file stored by the four CSP servers, where the file deletion request is used to instruct the fourth CSP server to delete information about a file block and a file block corresponding to the file block identifier stored by the fourth CSP server; a file block deletion response sent by the fourth CSP server; deleting the information of the file to be deleted stored by the UCD server, and CSP server returns a response to the file deletion, the deletion response indicating that the first file CSP server deletion response to the first terminal transmits the file.
  • the third aspect of the embodiment of the present invention provides a cloud service provider CSP server, including: a receiving unit, configured to: after the first terminal logs in to the CSP server by using registration information of the CSP server by the user, and the CSP server 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 acquiring unit, in the process of providing the service to the first terminal; Determining an obtaining unit, configured to receive an identifier of the original file sent by the receiving unit, determine that an original file corresponding to the identifier of the original file is divided, and obtain a first unified file block that uploads the original file An identifier of the cloud disk UCD server, and sending the identifier of the first UCD server to the sending unit, where the sending unit is configured to receive the identifier of the first UCD server sent by the determining receiving unit, and according to the first The identifier of the UCD server sends a file acquisition request to the
  • the server further includes a storage unit, and the receiving unit is further configured to: before receiving the file download request sent by the first terminal, receive the query request sent by the first terminal, And sending the query request to the determining acquiring unit; the determining obtaining unit is further configured to receive the query request sent by the receiving unit, and obtain the foregoing according to the registration information of the user in the first CSP server File block information stored by the user in the storage unit, the file block information includes an identifier of the first UCD server, and an identifier of an original file to which the file block belongs, and the identifier of the original file and the first UCD server standard
  • the sending unit is further configured to receive the identifier of the original file sent by the determining acquiring unit and the identifier of the first UCD server, according to the identifier of the first UCD server
  • the first UCD server sends a file block query request, where the file block query request includes an identifier of the original file to which the file block belongs; the receiving unit is
  • the file block information further includes a file block identifier bit; the sending unit sends a file block query to the first UCD server according to the identifier of the first UCD server Before the request, the determining obtaining unit further determines that the file block identifier bit is an original file split identifier.
  • the file download request further includes: a number of file blocks in which the original file is divided, and an identifier of the first UCD server; the determining obtaining unit determines that the original file corresponding to the identifier of the original file is divided, and Obtaining the identifier of the first unified cloud disk UCD server is: 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 identifier of the first UCD server from the file download request ; or
  • the determining the obtaining unit determines that the original file corresponding to the identifier of the original file is fragmented, and obtains the identifier of the first unified cloud disk UCD server, which 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 identifier of the original file, the information of the original file includes: an identifier of the original file and an identifier of the first UCD server And the number of file blocks in which the original file is divided; the first CSP server determines that the number of file blocks in which the original file is divided is greater than 1, and acquires the identifier of the first UCD server from the information of the original file.
  • the receiving unit is further configured to receive an upload block request sent by the first UCD server;
  • the upload block request includes a file block of the original file and file block information generated by the first UCD server, and the user Registration information at the first CSP server;
  • the storage unit is further configured to receive an upload block request sent by the receiving unit, store the file block, and store the file block information and the registration information of the user at the first CSP server.
  • the receiving unit is further used for a file deletion request sent by the first terminal, where the file deletion request carries the identifier of the file to be deleted, Sending an identifier of the file to be deleted to the determining acquiring unit;
  • the determining obtaining unit is further configured to receive an identifier of the file to be deleted that is sent by the receiving unit, determine that the file to be deleted corresponding to the identifier of the file to be deleted is divided, and obtain the uploaded content to be deleted.
  • the sending unit is further configured to receive the identifier of the second UCD server that is sent by the determining acquiring unit, and send the file deletion request to the second UCD server according to the identifier of the second UCD server, where the file deletion request is sent And a method for instructing the second UCD server to send a file block deletion request to a fourth CSP server that stores the file block of the file to be deleted, and deleting 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;
  • 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 sending a file deletion response to the first terminal.
  • the file deletion request further includes: a number of file blocks to be deleted, and an identifier of the second UCD server; the determining acquisition 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: determining that the number of file blocks to be deleted in the file deletion request is greater than 1 And obtaining an identifier of the second UCD server from the file deletion request; or
  • the determining the obtaining unit determines that the file corresponding to the identifier of the file to be deleted is divided into blocks, and the identifier of the second UCD server is obtained: the first CSP server obtains the storage 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 deleted The number of file blocks to be divided by the file; determining that the number of file blocks to be deleted in the file to be deleted is greater than 1, and obtaining the identifier of the second UCD server from the information of the file to be deleted.
  • a fourth aspect of the present invention provides a unified cloud disk UCD server including:
  • a receiving unit configured to receive a file obtaining request sent by the first cloud service provider CSP server, where the file obtaining request carries an identifier of the original file, and sends the identifier of the original file to the determining acquiring unit;
  • the determining obtaining unit is configured to receive an identifier of the original file sent by the receiving unit, and obtain, according to the identifier of the original file, information about an original file that is stored corresponding to the identifier of the original file, where the original file is
  • the information includes an identifier of the second CSP server storing the file block, a file block identifier stored by the second CSP server, and an order of the file block in the original file; and from the second according to the identifier of the second CSP server a second CSP server indicated by the identifier of the CSP server acquires a file block corresponding to the file block identifier stored by the second CSP server; and the transmitting unit is configured to receive the file block sent by the determining obtaining unit and the File block In the order in the original file, each file block acquired from the second CSP server is merged into the original file according to the order of the file blocks in the original file, and the original file is provided to the first terminal .
  • the sending unit provides the original file to the first terminal, specifically:
  • 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 the file to the first terminal;
  • the file acquisition response carries a storage address of the original file at the UCD server; and the file acquisition response is used to instruct the first CSP server to acquire the file Sending a response to the first terminal, and instructing the first terminal to acquire the original file according to the storage address.
  • the receiving unit is further configured to receive, by the second terminal, the second terminal, after the user logs in to the UCD server by using the registration information of the UCD server. a file upload request, where the file upload request carries the size of the original file that the user needs to upload;
  • the determining obtaining unit is further configured to acquire information of a third CSP server that is registered by the user, and determine, according to information of the third CSP server and size information of the original file, a file block for uploading the original file.
  • the receiving unit is further configured to receive an original file sent by the second terminal, and send the original file to the sending unit;
  • the sending unit is further configured to receive the original file sent by the receiving unit, and upload the file block of the original file to the second CSP server determined by the determining acquiring unit.
  • the information of the third CSP server includes the available storage space of the user in the third CSP server and the third CSP server The maximum size of files supported;
  • Determining, by the determining obtaining unit, 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: determining that the available storage space is larger than the size of the original file. And the third CSP server whose size of the largest file supported by the third CSP server is larger than the size of the original file is determined as the second CSP server determined by the unit for uploading the file block, specifically: using the original file as And the determining, the obtaining unit determines, according to the information of the third CSP server and the size information of the original file, a second CSP server for uploading the file block of the original file.
  • At least two third CSP servers whose available storage space is larger than a size of a maximum file supported by the third CSP server as a second CSP server for uploading a file block, according to the determined at least two second CSPs
  • the size of the largest file supported by the server divides the original file into at least two files Block, the size of the file block is smaller than the maximum CFS server supported by the second CSP server, and the second CSP server is specifically: uploading the at least two file blocks to the at least two second CSP servers respectively .
  • the server further includes a storage unit
  • the storage unit is configured to store information of the original file, where the information of the original file includes: an identifier of the original file, a number of file blocks in which the original file is divided, and a file block identifier of each file block, and storing the respective The identifier of the second CSP server of the file block, and the order of the file blocks in the original file.
  • the sending unit is further configured to: identify, file, and file the UCD server according to the identifier of the second CSP server that stores the file block stored by the storage unit The block identification and the order of the file blocks in the original file are sent to the second CSP server.
  • the server further includes a deleting unit;
  • the receiving unit is further configured to receive a file deletion request sent by the first CSP server, where the file deletion request carries an identifier of the file to be deleted;
  • the determining obtaining unit is further configured to: obtain, according to the identifier of the file to be deleted, information about a file to be deleted corresponding to the identifier of the file to be deleted stored by the storage unit, and information about the file to be deleted
  • the identifier of the fourth C SP server storing the file block of the file to be deleted, the identifier of the file block stored by each fourth CSP server, and transmitting the information of the file to be deleted to the sending unit;
  • the sending unit is further configured to receive information about the file to be deleted that is sent by the determining acquiring unit, and send a file block deletion request to the fourth CSP server according to the identifier of the fourth CSP server, where the file block is deleted.
  • the request carries the identifier of the file stored by the fourth CSP server, where 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.
  • the receiving unit is further configured to receive a file block deletion response sent by the fourth CSP server;
  • the deleting unit is configured to delete information about the file to be deleted stored by the storage unit; 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 indicate the first CSP The server sends the file deletion response to the first terminal.
  • a fifth aspect of the embodiments of the present invention provides a CSP server, including: a transceiver, a memory, and a processor;
  • the transceiver is configured to receive, after the first terminal logs in to the CSP server by using registration information of the CSP server by the user, and the CSP server provides a service to the first terminal, receiving, by the first terminal, a file download request, where the file download request carries an identifier of the original file;
  • the memory is configured to store various programs and applications, and execute each of them under the call of the processor Program and application functions;
  • the processor is configured 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 a first unified cloud disk UCD server that uploads the file block of the original file. And sending a file acquisition request to the first UCD server according to the identifier of the first UCD server, where the file acquisition request carries an identifier of the original file; and the file obtaining request is used to indicate the first UCD server Obtaining 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, the second CSP server indicated by the identifier of the second CSP server Obtaining a file block, and synthesizing the obtained file block into an original file;
  • the transceiver is further configured to send a file acquisition response returned by the first UCD server, and send the file acquisition response to the first terminal, to instruct the first terminal to acquire the file by using the file acquisition response. Original file.
  • a fifth aspect of the embodiments of the present invention provides a UCD server, including: a transceiver, a memory, and a processor;
  • the transceiver is configured to receive a file acquisition request sent by a first cloud service provider CSP server, where the file acquisition request carries an identifier of the original file;
  • the memory is used in various programs and applications, and functions of the programs and applications are executed under the call of the processor;
  • the processor is configured to invoke various programs and applications stored in the memory, and obtain, according to the identifier of the original file, information of the original file that is stored corresponding to the identifier of the original file, where the information of the original file includes a file block.
  • the second CSP server acquires a file block corresponding to the file block identifier stored by the second CSP server; according to the order of the file blocks acquired from the second CSP server in the original file, each will be from the second CSP
  • the file blocks acquired by the server are merged into the original file;
  • the transceiver is further configured to provide the original file to the first terminal.
  • the terminal does not need to establish a connection with the UCD server, and the connected file with the CSP server can obtain the blocked file uploaded by the user through the UCD server. After that, the process of establishing a connection between the terminal and the UCD server is further avoided, and the user operation is reduced, thereby improving the user experience.
  • FIG. 1 is a flowchart of a method for downloading a file according to an embodiment of the present invention
  • FIG. 2 is a flowchart of a method for a terminal to upload a file through a UCD client according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram of an original file A and an original file B uploaded by a terminal through a UCD server through a UCD client according to an embodiment of the present invention
  • FIG. 4 is a flowchart of a method for acquiring user information stored in each C SP server file when a user logs in to the CSP server B through a terminal according to an embodiment of the present invention
  • FIG. 5 is a CSP server provided to the user by the CSP server and stored in the CSP. a schematic diagram of the server's files;
  • FIG. 6 is a flowchart of a method for acquiring a file uploaded by a UCD server according to an embodiment of the present invention
  • FIG. 7 is a flowchart of a method for deleting a file by a CSP server according to an embodiment of the present invention
  • FIG. 8 is a flowchart of a method for providing a file according to an embodiment of the present invention
  • FIG. 9 is a schematic structural diagram of a CSP server according to an embodiment of the present invention.
  • FIG. 10 is another schematic structural diagram of a CSP server according to an embodiment of the present disclosure
  • FIG. 11 is a schematic structural diagram of a UCD server according to an embodiment of the present disclosure
  • FIG. 12 is another schematic structural diagram of a UCD server according to an embodiment of the present invention.
  • FIG. 1 is a flowchart of a method for downloading a file according to an embodiment of the present invention, including the following steps: Step 101: In a process of providing a service to a first terminal, the first CSP server receives a file download request sent by the first terminal, where the file is sent The download request carries the identifier of the original file;
  • Step 102 The first CSP server determines that the original file corresponding to the identifier of the original file is divided, and obtains an identifier of the unified cloud disk UCD server.
  • Step 103 The first CSP server sends a file acquisition request to the UCDe server according to the identifier of the UCD server, where the file acquisition request carries an identifier of the original file, where the file acquisition request is used to indicate
  • the UCD server obtains the information of the stored original file according to the identifier of the original file, and indicates the identifier of the second CSP server according to the identifier of the second C SP server corresponding to the file block in the information of the original file.
  • the second CSP server obtains a file block, and synthesizes the obtained file block into an original file;
  • Step 103 The first CSP server receives a file acquisition response returned by the UCD server, and sends the file acquisition response to the first terminal, to instruct the first terminal to acquire the file by using the file acquisition response.
  • the original document The original document.
  • the terminal does not need to establish a connection with the UCD server, and the connection with the CSP server can be obtained through the user through the UCD.
  • the server uploads the blocked file, the process of establishing a connection between the terminal and the UCD server is avoided, thereby reducing user operations and thereby improving user experience.
  • the acquiring, by the first terminal, the original file by using the file obtaining response is: the file obtaining response carrying the original file, where the first terminal acquires the original file from a file obtaining response; or And the file obtaining 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.
  • the UCD server that receives the file deletion request is referred to as a second UCD server
  • the UCD server that receives the download request and the file upload request is referred to as a first UCD server.
  • the CSP server registered by the user is referred to as a third CSP server
  • the CSP server that is used by the user to register the CSP server for storing the original file is referred to as a second CSP server.
  • the CSP server that will store the original file (the file to be downloaded) is called the second CSP server
  • 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 to be 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 will be deleted.
  • 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 referred to as a first terminal
  • the terminal connected to the UCD server is referred to as a second terminal.
  • FIG. 2 is a flowchart of a method for restoring session content transmission according to an embodiment of the present invention, including the following steps:
  • Step 200 The second terminal sends a file upload request to the first UCD server by using the UCD client, where the file upload request carries the size information of the original file that the user needs to upload.
  • the terminal logs in to the first UCD server by using the registration information of the user on the first UCD server. It is worth noting that the terminal in the process of the present invention is connected to the UCD server, that is, the UCD client is installed. The terminal is called a second terminal.
  • Step 201 The first UCD server acquires information about the CSP server that the user has registered. Specifically, the first UCD server stores the registration information of the user at the third CSP server. As described above, in the embodiment of the present invention, the CSP server registered by the user is collectively referred to as a third CSP service. Device.
  • the registration information of the user at the third CSP server includes an identifier of the third CSP server (such as a connection address of the third CSP server), an account name and a password registered by the user at the third CSP server.
  • the first UCD server acquires information of the third CSP server from the third CSP server according to the registration information of the user at the third CSP server, where the information of the third CSP server includes the user's availability at the CSP server. Storage space, maximum file size supported by the third CSP server, and/or connection speed of the third CSP server.
  • the first UCD server stores the registration information of the user on the CSP server A, the CSP server B, and the CSP server C, and respectively sends the registration information to the CSP server A.
  • CSP server B obtains information of CSP server A and CSP server B.
  • CSP Server A, CSP Server C and CSP Server B are referred to as the third CSP server.
  • Step 202 The first UCD server determines, according to the information of the third CSP server and the size information of the original file, a second CSP server for uploading the file block of the original file.
  • Step 203 The first UCD server requests a response to the upload file sent by the second terminal.
  • Step 204 The second terminal uploads the original file to the UCD server.
  • Step 205 The first UCD server divides the original file, that is, blocks the original file.
  • the first UCD server blocks the original file according to the determined information of the second CSP server, and generates information of the original file, such as Metadata of the original file, and saves the information of the original file in the first UCD server.
  • the information of the third CSP server includes the available storage space of the user at the third CSP server and the size of a maximum file supported by the third CSP server;
  • the information and the size information of the original file determine the second CSP server for uploading the file block of the original file, specifically: determining that the available storage space is larger than the size of the original file, and the maximum file supported by the third CSP server
  • the third CSP server whose size is larger than the size of the original file is used as the second CSP server for uploading the file block;
  • the first UCD server determines that the CSP server A and the CSP server in the three CSP servers (ie, the third CSP server) registered by the user serve as the second CSP server that stores the file block, and then the original The file is divided into two file blocks.
  • 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.
  • the UCD server storing the information of the original file may include: storing information of the original file, where the information of the original file includes: an identifier of the original file, a number of file blocks in which the original file is divided, and a file block of each file block And an identifier of the second CSP server storing the file blocks, and an order of the file blocks in the original file.
  • the information of the original file stored by the first UCD server may further include the size of the original file and the time when the original file is modified.
  • the original file refers to a file sent by the second end to the first UCD server.
  • MetadatalD raw file can be server-assigned metadata
  • ChunkNum Number of file blocks The number of file blocks, this parameter is not stored when the file is not partitioned.
  • the value in 1 is 1, when the file is divided, the value of this parameter is the number of specific file blocks.
  • Chunklnfo file block letter file block related information (Chunklnfo may have multiple, depending on the number of ChunkNum)
  • the file block information contained in the original file information Chunklnfo includes: File block identifier (identifiable to identify the file block), storage
  • the CSP information of the file block (such as the name of the CSP, or the address of the CSP) and the order of the file blocks in the original file.
  • the file block information may further include a file block size and other file block information, such as a file block name, and the like, which is not limited herein.
  • the file block identifier if the first UCD server does not block the original file, the file block identifier may also be the identifier of the original file.
  • the file block information can be as shown in Table 2: Table 2.
  • CSPInfo CSP service The identifier of the second CSP server storing the file block, such as the name of the CSP name, the URI of the CSP, etc.
  • Seq file block The order of the file blocks in the original file, used to restore the original file at the beginning
  • the UCD server generates information Chunkdata of the file block for each file block based on the information of the original file.
  • the file block information includes: a file block identifier, a file block source (such as information of a first UCD server that sends a file block to the CSP), and an identifier of the original file to which the file block belongs.
  • the information of the file block may further include a file block identifier bit to indicate whether it is a divided file block or an original file.
  • Table 3 The information contained in the file block is as shown in Table 3:
  • the file block identifier is the identifier of the original file
  • the file block identifier bit takes a value of 0.
  • Step 206 or 206, the first UCD server requests the server by uploading a block
  • UploadChimkRequest uploads a file block to a second CSP server, wherein the upload block request includes a file block of the original file, file block information generated by the first UCD server, and registration of the user at the first CSP server information.
  • the first UCD server uploads the file block to the second CSP server according to the CSP server identifier in the information of the original file. Further, the upload block request also carries the account name and password registered by the user on the second CSP server.
  • Step 207 or 207 after receiving the Chunkdata data corresponding to the file block and the file block, the second CSP server 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 mapping the file block information and the registration information of the user on the first CSP server, and returning a server upload block response server UploadChimkResponse message to the UCD server.
  • the UCD server After the UCD server sends different file blocks and Chunkdata data to different second CSP servers, and receives all corresponding return confirmation messages, it is confirmed that different file blocks of the original file have been separately stored to different second CSP servers. At the office.
  • the first UCD server first establishes a connection with the second CSP server by using the account information registered by the user on the CSP server before performing step 206 or 206, and then sends an upload block request to the CSP server through the connection. And uploading a file block, so that the second CSP server stores the file block, and storing the file block information and the registration information of the user on the first CSP server, and returning a server upload block response server to the UCD server. UploadChunkResponse message.
  • the terminal needs to store the file in the CSP server: /home/test/A, Referred to as the original file A.
  • the UCD client sends an upload file request message to the first UCD server, where the upload file request message carries the size information of the UCD server original file, /home/test/A.
  • 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.
  • the user is registered in CSP server A, CSP server B, and CSP server C, respectively, and the CSP server includes CSP server A, CSP server B, and CSP server C.
  • the UCD server queries the information of the third CSP server that is registered by the user, and specifically sends: the user available resource query request to the CSP server A, the CSP server B, and the CSP server C, where the user available resource query request carries the first UCD server.
  • the first UCD server receives a response returned by each of the CSP server A, the CSP server B, and the CSP server C, where the response includes: a storage space available to the user in the CSP server, and a maximum file size supported by the CSP server. You can also include the connection speed.
  • the first UCD server determines the CSP of the uploaded file to determine the second CSP server according to the description in step 202, for example, according to the acquired information of the CSP server and the size information of the original file. It is assumed that in the embodiment, the first UCD server determines to store the original file, /home/test/A, into the CSP server A, the CSP server B, and the 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.
  • step 205 After receiving the original file /home/test/A uploaded by the user terminal through the UCD client, step 205 is executed, and the original file /home/test/A is divided into blocks, and the blocked file is processed through steps 206-207.
  • Blocks A1-A3 are sent to CSP server A, CSP server B and CSP server C, respectively.
  • the user also needs to upload the original file /home/test/B, referred to as the original file 8.
  • the first UCD server selects the 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.
  • the storage diagram of the original file A and the original file B uploaded by the user through the UCD client through the first UCD server in the CSP server is shown in FIG. 3: As shown in FIG. 3, the original file A is divided into file blocks A1- via the first UCD server. After A3, it is stored to CSP server A, CSP server B and CSP server C, respectively.
  • the original file B is only stored to the CSP server A via the first UCD server.
  • the first UCD server receives the original file A and then blocks it, and stores the original file A information as shown in Table 4:
  • the first UCD server receives the original file B, and the stored original file B information is shown in Table 5: Table 5 Original file B information Metadatal
  • Size 140M The first UCD server after the original file A is divided into file blocks A1-A3, the information of the file blocks generated for the file blocks A1-A3 are as follows:
  • the first UCD server does not block the original file B, but the information of the uploaded CSP server is the original file B information.
  • FIG. 4 is a flowchart of a method for a terminal to obtain a file information stored by a user in each CSP server in a process of providing a service to a terminal by a CSP server after the user logs in through the terminal according to the embodiment of the present invention, including the following steps:
  • Step 400 The first terminal logs the CSP server B through the registration information of the CSP server B, and receives the file query request QueryRequest from the CSP server B in the process of receiving the service provided by the CSP server B, and checks the file stored by the user on the CSP server B. information.
  • the terminal in this process may be a terminal that includes a UCD client, or a terminal that does not include a UCD client.
  • the terminal connected to the CSP server is referred to as a first terminal in this embodiment.
  • the CSP server to which the first terminal is connected is referred to as a first CSP server.
  • Step 401 Acquire, according to registration information of the user in the first CSP server, file block information that is stored by the user in the first CSP server.
  • the CSP server B queries the user store according to the registration information of the user on the CSP server B.
  • the Chimkdata information does not include the original file segmentation identifier, for example, when the ChimkBit is 0, indicating that the file content corresponding to the Chimkdata information is a complete file
  • the direct execution step is performed. 406.
  • the Chunkdata information includes the original file split identifier, such as when ChimkBit is 1, indicating that the file content corresponding to the Chimkdata information is a file block of a certain file
  • the identifier of the UCD server in the Source information according to the Chunkdata information is obtained (ie, sent)
  • the identifier of the first UCD server 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 as described in the file block, and step 402 is performed.
  • Step 402 Send a file block query request QueryChunkRequest to the first UCD server according to the identifier of the first UCD server, where the file block query request includes an identifier of the original file to which the file block belongs.
  • Step 403 The first UCD server obtains information about the original file stored by the first UCD server according to the identifier of the received original file.
  • the information of the original file includes: the name of the original file, the identifier of the original file, the identifier of the first UCD server, and the number of file blocks in which the original file is divided.
  • the information of the original file stored by the first UCD server may further include the size of the original file and the time when the original file is modified.
  • the first UCD server responds with a file block query
  • 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 location The first terminal is described.
  • the CSP server B can also generate a unified view according to the information of the original file received, and send the information of the original file to the terminal in a unified view.
  • the CSP in this process does not need to query the ChunkBit information in the ChunkData information, but obtains the original file information directly from the UCD server according to the Source information in the Chunkdata.
  • the first terminal logs in to the CSP server A and sends a query request QueryRequest to the CSP server A.
  • the query button can be clicked on the interface provided by the CSP server.
  • the user terminal sends the query request to the CSP server A as a prior art, and the embodiment of the present invention will not be described in detail herein.
  • the CSP server A obtains the file block information of the file Al, B of the user stored by the CSP server A according to the registration information of the user, such as the account name of the user.
  • the ChunkBit of the Chunkdata corresponding to A1 is obtained by the information of the stored file A1, that is, the file block identifier is determined to be the original file segmentation identifier, indicating that A1 is a file block after the original file is divided.
  • the CSP server A obtains the identifier of the first UCD server and the identifier of the original file to which the file block belongs according to the information of the stored file A1, and passes the identifier of the first server http: ⁇ ucd server.
  • com/cloudstora ge A UCD server sends a file block query request.
  • the file block query request carries the identifier of the original file MetadatalD: dG45gf56.
  • the UCD server After receiving the file block query request, the UCD server obtains the Metadata information corresponding to dG45gf56 according to the identifier of the original file carried, MetadatalD: dfi45gf56, and returns the Metadata information (Filename, ModifiedTime, Size, ChunkNum) to the CSP server A.
  • the CSP server A further obtains the information of the file B according to the account name of the user, and obtains the ChunkBit in the file block information of the file B to be 0, and determines that the file B stored by the CSP server is the original file.
  • the CSP server generates a unified view according to the obtained information of the original file A and the file block information of the original file B, and provides the unified view to the terminal.
  • FIG. 5 is a schematic diagram of a file stored by the CSP server to the user stored in the CSP server.
  • the file information uploaded by the CSP and the file information uploaded by the first UCD server are divided into two parts, and the file information uploaded by the first UCD server includes: a name of the original file, Original document identification and first UCD server ID (such as the first UCD server address, etc.).
  • first UCD server ID such as the first UCD server address, etc.
  • 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 source. Metadata information.
  • FIG. 6 is a flowchart of a method for obtaining a file uploaded by a UCD server according to an embodiment of the present invention. As shown in FIG. 6, the method includes the following steps:
  • Step 600 The first terminal logs in to the CSP server B through the account information registered in the CSP server B, and obtains the information of the file stored by the user on the CSP server.
  • the file download request is sent to the CSP server B.
  • the file download request carries the identifier of the original file and the name of the original file. Further, the file download request may further include information such as the number of file blocks (chunkNum information), and/or the identifier of the first UCD server, and the modification time of the original file.
  • Step 601 The CSP server B determines, according to the identifier of the original file, whether the original file corresponding to the identifier of the original file is divided into file blocks.
  • the file download request includes the file block quantity information, and the number of file blocks is less than or equal to 1, the original file corresponding to the identifier of the original file is not divided into file blocks, and the user can directly download from the CSP through the terminal.
  • the original file is identified by the corresponding file, and the subsequent steps are no longer performed.
  • the file download request may further include the identifier of the first UCD server, and step 602 is performed.
  • the CSP server B obtains the stored information of the original file corresponding to the identifier of the original file according to the identifier of the original file, where the information of the original file includes: an identifier of the original file and the first An identifier of the UCD server and a number of file blocks in which the original file is divided; the first CSP server determines that the number of file blocks in which the original file is divided is greater than 1, and acquires the first UCD server from the information of the original file Logo. Then, step 602 is performed. Step 602, sending, according to the identifier of the first UCD server, to the first UCD server. a file acquisition request, the file acquisition request carrying an identifier of the original file.
  • the file obtaining request is used to instruct the first UCD server to obtain information of the stored original file according to the identifier of the original file, and to store the identifier of the second CSP server of the file block according to the information of the original file.
  • the second CSP server indicated by the identifier of the second CSP server acquires a file block, and synthesizes the obtained file block into an original file.
  • the first UCD server acquires information of the original file stored in the UCD server according to the identifier of the received original file, where the information of the original file includes an identifier of the second CSP server storing the file block, and the second CSP server stores The file block identifier and the order of the file blocks in the original file.
  • Step 603 or step 603 ′ sending a file block download request to the second CSP server storing the file block according to the identifier of the second CSP server, where the file block download request carries a ChunkID.
  • Step 604 or step 604' after receiving the file block download request, the second CSP server sends a file block corresponding to ChunklD to the first UCD server, and sends a file block download response to the first UCD server.
  • the file block can be sent to the first in the file block download response
  • Step 605 The first UCD server merges the file blocks acquired from the second CSP server into the original file according to the order of the file blocks acquired from the second CSP server in the original file.
  • Step 606 The first UCD server obtains a response by sending a file to the CSP server B, where the file acquisition response carries the addresses of the merged file (ie, the original file) on the first UCD server, and the unified resource location of the port is obtained.
  • the file acquisition response carries the addresses of the merged file (ie, the original file) on the first UCD server, and the unified resource location of the port is obtained.
  • Step 607 The CSP server sends a file download response to the terminal, where the file download response carries the storage address of the merged file (ie, the original file) on the first UCD server.
  • Step 608 The terminal acquires a file from the first UCD server by using the URL.
  • the first UCD server may also merge step 605 directly in step 606.
  • the original file is sent to the CSP server B, so that the CSP server B sends the original file to the terminal in step 607. Therefore, step 608 is not executed.
  • the user clicks the download button "Download" corresponding to the file /home/test/A to send a file download request to the CSP server A.
  • the request in the file download request carries the identifier of the original file /home/test/A, and/or the number of file blocks (ChunkNum information). Since the ChunkNum in the request of the file is greater than 1, the CSP server B determines that the file stored by the CSP server B is a chunk file, and according to the identifier of the first UCD server included in the file download request, to the http://ucd server. .com/cloudstorage sends a file get request.
  • the file acquisition request carries the identifier of the original file A, MetadatalD: dG45gf56.
  • the UCD server can obtain the stored information of the original file corresponding to dG45gf56 according to MetadatalD.
  • the UCD server determines that the original file A is divided into three file blocks according to the stored original file information, and is stored in the CSP server A, the CSP server B, and the CSP server C, respectively, according to the ChimkID of each file block, to the corresponding CSP.
  • the server sends a file block download request to download the file blocks Al, A2, A3 from the three CSPs, respectively.
  • the three file blocks are merged into the original file according to the corresponding order information of 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 can download the file directly according to the link, and the file /home/test/A can be obtained.
  • FIG. 7 is a flowchart of a method for deleting a file by using a CSP server according to an embodiment of the present invention. As shown in FIG. 7, the method includes the following steps:
  • Step 700 After the user logs in to the CSP server B by using the account information registered by the user on the CSP server B, the user obtains the text stored by the user on the CSP server by executing the process corresponding to FIG. 4 A schematic diagram of the device, as shown in FIG. 5, sends a file deletion request to the CSP server B, where the file deletion request carries the identifier of the file to be deleted.
  • the terminal may click a delete button corresponding to a file in the schematic diagram to send a file deletion request to the first CSP server, such as CSP server B.
  • the file deletion request contains the identifier (metadatalD) 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.
  • the file deletion request may further include a file block quantity (ChunkNum information), and/or a second UCD server identifier, and a modification time of the file to be deleted, and the like, and may also include a source (source information), the number of file blocks. ( ChunkNum information).
  • Step 701 The CSP server B sends a file deletion request, such as the server DelFileRequestt, to the second UCD server according to the identifier of the second UCD server included in the file deletion request.
  • the file deletion request carries the identifier of the file to be deleted.
  • the CSP server B determines that the file to be deleted corresponding to the identifier of the file to be deleted is divided, and acquires a second UCD server that uploads the file block of the file to be deleted. logo.
  • the file deletion request further includes: a number of file blocks to be deleted, and an identifier of the second UCD server; the first CSP server determines a file corresponding to the identifier of the file to be deleted And the identifier of the second UCD server is determined to be: 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 request from the file. Obtaining an identifier of the second UCD server; or
  • the first CSP server determines that the file corresponding to the identifier of the file to be deleted is divided into blocks, and the identifier of the second UCD server is obtained by: the first CSP server obtains the identifier of the file to be deleted 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 deletion The number of file blocks that are divided by the file; the first The CSP server determines that the number of the file blocks to be deleted that are to be deleted is greater than 1, and obtains the identifier of the second UCD server from the information of the file to be deleted.
  • the second UCD server sends a file block deletion request to the fourth CSP server that stores the file block, such as the server DelChunkRequest, where the file block deletion request carries the identifier of the file stored by the fourth CSP server.
  • the file deletion request is used to instruct the fourth CSP server to delete the information of the file block and the file block corresponding to the file block identifier stored by the fourth CSP server.
  • the second UCD server obtains, according to the identifier of the file to be deleted, information about the file to be deleted corresponding to the identifier of the file to be deleted, and the information of the file to be deleted includes storage.
  • Step 704 After determining that the response corresponding to the sent file block deletion request is received, the second UCD server deletes the information of the file to be deleted stored by the second UCD server, and sends a file deletion response CSPDelFileResponse to the CSP server B, where the identifier carries the identifier. Bit, the identification file is successfully deleted; specifically, before deleting the information of the file to be deleted stored by the second UCD server, the second UCD server needs to determine that all the fourth CSP servers return the file block deletion response, and the file block The delete response contains the ID of the file that was successfully deleted.
  • Step 705 The CSP server B sends a file deletion response DelFileResponse to the first terminal, and the identifier carries the identifier bit, and the identifier file is deleted successfully.
  • FIG. 8 is a schematic diagram of a method for providing a file according to an embodiment of the present invention, including the following steps: Step 801: A unified cloud disk UCD server receives a file obtaining request sent by a first cloud service provider CSP server, where the file obtaining request carries an original Identification of the file;
  • Step 802 Acquire, according to the identifier of the original file, the stored information of the original file corresponding to the identifier of the original file, where the information of the original file includes an identifier of a second CSP server storing the file block, and the second CSP server stores File block identifier and the order of the file blocks in the original file;
  • Step 803 Obtain, according to the identifier of the second CSP server, a file block corresponding to the file block identifier stored by the second CSP server from the second CSP server indicated by the identifier of the second CSP server;
  • Step 804 Combine each file block acquired from the second CSP server into the original file according to the order of the file blocks acquired from the second CSP server in the original file, and merge the original file. Provided to the first terminal.
  • the UCD server in this embodiment may perform any of the steps performed by the UCD server (including the first UCD server and the second UCD server) in the processes of FIG. 1 to FIG. 7, and the embodiments of the present invention are not described in detail herein.
  • the UCD server is provided in this embodiment, so that the terminal can also obtain the file uploaded to the CSP server through the UCD server through the CSP server, thereby improving the user experience.
  • FIG. 9 is a schematic structural diagram of a CSP server according to an embodiment of the present invention, including: a receiving unit 901, a determining obtaining unit 902, a sending unit 903, and a storage unit 904. specific
  • the receiving unit 901 is configured to: after the first terminal logs in to the CSP server by using registration information of the CSP server by the user, and the CSP server provides a service to the first terminal, receiving, by the first terminal, a file download request, where the file download request carries an identifier of the original file, and sends the identifier of the original file to the determining acquisition unit; a 902, configured to receive an identifier of the original file sent by the receiving unit, determine that an original file corresponding to the identifier of the original file is divided, and obtain a first unified cloud that uploads a file block of the original file An identifier of the disk UCD server, and sending the identifier of the first UCD server to the sending unit; the sending unit 903, configured to receive the identifier of the first UCD server sent by the determining receiving unit, and according to the first The identifier of the UCD server sends a file acquisition request to the first UCD server, where the file acquisition request carries an identifier of the original file, and the
  • the receiving unit is further configured to receive a file acquisition response returned by the first UCD server, and send the file acquisition response to the sending unit, where the sending unit is further configured to receive file acquisition sent by the receiving unit Responding to, and sending the file acquisition response to the first terminal, to instruct the first terminal to acquire the original file by using the file acquisition response.
  • the CSP server further includes a storage unit 904; the receiving unit 901 is further configured to: before receiving the file download request sent by the first terminal, receive a query request sent by the first terminal, and The query request is sent to the determination obtaining unit 902; the determining obtaining unit 902 is further configured to receive the query request sent by the receiving unit, and obtain the user according to the registration information of the user in the first CSP server.
  • File block information stored by the storage unit includes an identifier of the first UCD server, and an identifier of an original file to which the file block belongs, and the identifier of the original file and the first UCD server
  • the identifier is sent to the sending unit 903; the sending unit 903 is further configured to receive the identifier of the original file sent by the determining acquiring unit and the identifier of the first UCD server, according to the first UCD server Identifying, by the identifier, sending a file block query request to the first UCD server, where the file block query request includes the file block Identification of the original file belongs; the information of the original document is returned to the first UCD server receiving unit 901 is further configured to receive the said return of the original
  • the information of the file includes: a name of the original file, an identifier of the original file, an identifier of the first UCD server, and a number of file blocks in which the original file is divided, and transmits information of the original file to the sending unit 903 and the storage.
  • the unit 904 is configured to receive information about an original file sent by the receiving unit, and store information of the original file.
  • the sending unit 903 is further configured to receive information about an original file 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 information of the original file to the first terminal.
  • the file block information further includes a file block identifier bit; and before the sending unit 903 sends the file block query request to the first UCD server according to the identifier of the first UCD server, the determining acquiring unit further determines
  • the file block identifier is an original file split identifier.
  • the file download request further includes: a quantity of the file block in which the original file is divided, and an identifier of the first UCD server; the determining acquiring unit 902 determines that the original file corresponding to the identifier of the original file is And determining, by the first CSP server, that the number of file blocks in which the original file is divided is greater than 1, and acquiring the first file from the file download request.
  • the identifier of the UCD server; or, the determining the obtaining unit 902 determines that the original file corresponding to the identifier of the original file is fragmented, and obtains the identifier of the first unified cloud disk UCD server, specifically: the first CSP server is configured according to The identifier of the original file acquires the stored information of the original file corresponding to the identifier of the original file, where the information of the original file includes: an identifier of the original file and an identifier of the first UCD server and a file block in which the original file is divided a quantity; the first CSP server determines a file block in which the original file is divided The number is greater than 1, and the identification of the first UCD server is obtained from the information of the original file.
  • the receiving unit 901 is further configured to receive an upload block request sent by the first UCD server, where the upload block request includes a file block of the original file and 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 an upload block request sent by the receiving unit, and store the And storing the file block information and the registration information of the user at the first CSP server.
  • the receiving unit 901 is further configured to send, by the first terminal, a file deletion request, where the file deletion request carries an identifier of the file to be deleted, and sends the identifier of the file to be deleted to the determining acquiring unit.
  • the determining obtaining unit 902 is further configured to receive an identifier of the file to be deleted sent by the receiving unit, determine that the file to be deleted corresponding to the identifier of the file to be deleted is divided, and obtain the required content for uploading An identifier of the second UCD server of the file block of the deleted file, and sending the identifier of the second UCD server to the sending unit;
  • the sending unit 903 is further configured to receive the second sent by the determining acquiring unit
  • the identifier of the UCD server sends the file deletion request to the second UCD server according to the identifier of the second UCD server, where the file deletion request is used to instruct the second UCD server to store the file of the file to be deleted.
  • the fourth CSP server of the block sends a file block deletion request, and receives the file block returned by the fourth CSP server After deleting the response, deleting the information of the file to be deleted stored by the second UCD server and returning a file deletion response to the first CSP server;
  • the receiving unit 901 is further configured to receive the file deletion response returned by the second UCD server, and Sending the file deletion response to the sending unit;
  • the sending unit 902 is further configured to receive the file deletion response sent by the receiving unit, and send a file deletion response to the first terminal.
  • the file deletion request further includes: a number of file blocks to be deleted, and an identifier of the second UCD server; and the determining obtaining unit determines an original file corresponding to the identifier of the file to be deleted And the identifier of the second UCD server is determined to be: determining that the number of file blocks to be deleted in the file deletion request is greater than 1 and obtaining the second from the file deletion request An identifier of the UCD server; or, the determining the obtaining unit 902 determines that the file corresponding to the identifier of the file to be deleted is divided into blocks, and acquiring the identifier of the second UCD server is specifically: the first CSP server according to the The identifier of the file to be deleted is obtained by the identifier of the file to be deleted, and the information of the file to be deleted includes: the identifier of the file to be deleted, and the second UCD server.
  • the storage unit may be a memory (memerry, or storage), or may be a random access memory (RAM), or may be a read only memory (ROM, -ead Only Memory).
  • RAM random access memory
  • ROM read only memory
  • -ead Only Memory The example is not limited here.
  • FIG. 10 is a schematic structural diagram of a terminal according to an embodiment of the present invention, including: a transceiver 1001, a memory 1002, and a processor 1003. specific
  • the transceiver 1001 is configured to receive, after the first terminal logs in to the CSP server by using registration information of the CSP server by the user, and the CSP server provides a service to the first terminal, receiving the first terminal.
  • a file download request where the file download request carries an identifier of the original file
  • the memory 1002 is configured to store various programs and applications, and execute functions of the programs and applications under the call of the processor;
  • the processor 1003 is configured to invoke, by using a memory, various identifiers of the first unified cloud disk UCD server that upload the file block of the original file, and send a file acquisition request to the first UCD server according to the identifier of the first UCD server.
  • the file obtaining request carries an identifier of the original file, where the file obtaining request is used to instruct the first UCD server to obtain information of the stored original file according to the identifier of the original file, and according to the original file
  • the identifier of the second CSP server storing the file block in the information, from the identifier of the second CSP server
  • the second CSP server obtains a file block, and synthesizes the obtained file block into an original file;
  • the transceiver 1001 is further used for a file acquisition response returned by the first UCD server, and acquires the file response Sending to the first terminal, to instruct the first terminal to acquire the original file by using the file acquisition response.
  • FIG. 11 is a unified cloud disk UCD server according to an embodiment of the present invention, including a receiving unit 1101, a determining acquiring unit 1102, a sending unit 1103, a storage unit 1104, and a deleting unit 1105. Specifically,
  • the receiving unit 1101 is configured to receive a file obtaining request sent by the first cloud service provider CSP server, where the file obtaining request carries the identifier of the original file, and sends the identifier of the original file to the determining obtaining unit 1102;
  • the determining obtaining unit 1102 is configured to receive an identifier of the original file sent by the receiving unit, and obtain, according to the identifier of the original file, information about an original file that is stored corresponding to the identifier of the original file, where the original file is
  • the information includes an identifier of the second CSP server storing the file block, a file block identifier stored by the second CSP server, and an order of the file block in the original file; and according to the identifier of the second CSP server, from the The second CSP server indicated by the identifier of the second CSP server acquires a file block corresponding to the file block identifier stored by the second CSP server;
  • the sending unit 1103 is configured to receive the file block sent by the determining acquiring unit and the order of the file block in the original file, according to the order of the file block in the original file, each from the second CSP server The obtained file blocks are merged into the original file, and the original file is provided to the first terminal.
  • the sending unit 1103 provides the original file to the first terminal, specifically: returning a file obtaining response to the first CSP server, where the file obtaining response carries the original file; and the file obtaining response is used to indicate Receiving, by the first CSP server, the file acquisition response to the first terminal; or returning a file acquisition response to the first CSP server, where the file acquisition response carries 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 acquire the original file according to the storage address.
  • the receiving unit 1101 is at the second terminal by the user at the UCD server. After the registration information is used to log in to the UCD server, the file uploading request is further received by the second terminal, where the file uploading request carries the size of the original file that the user needs to upload;
  • the determining obtaining unit 1102 is further configured to acquire information about a third CSP server that is registered by the user, and determine, according to information of the third CSP server and size information of the original file, a file block for uploading the original file.
  • Second CSP server
  • 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;
  • the sending unit 1102 is further configured to receive the original file sent by the receiving unit 1101, and upload the file block of the original file to the second CSP server determined by the determining acquiring unit 1102.
  • the information of the third CSP server includes the available storage space of the user at the third CSP server and the maximum file size supported by the third CSP server;
  • Determining, by the determining obtaining unit 1102, 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: determining that the available storage space is greater than the original file. a size, and the third CSP server whose size of the largest file supported by the third CSP server is larger than the size of the original file is determined as the second CSP server determined by the acquiring unit for obtaining the file block: Uploading to the second CSP server as a file block; or, the determining obtaining unit 1102 determines a second CSP for uploading a 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 configured to: determine at least two third CSP servers whose available storage space is larger than a size of a maximum file supported by the third CSP server as a second CSP server for uploading a file block, according to the determined at least two The size of the largest file supported by the second CSP server divides the original file into at least two file blocks. Said block is less than the size of the second file server branched CSP said determining unit determines said second acquiring CSP server is specifically: the at least two file blocks Uploaded to the at least two second CSP servers respectively.
  • the server further includes a storage unit 1104;
  • the storage unit 1104 is configured to store information of the original file, where the information of the original file includes: an identifier of the original file, a number of file blocks in which the original file is divided, and a file block identifier of each file block, and storing the file The identifier of the second CSP server of each file block, and the order of the file blocks in the original file.
  • the sending unit 1103 is further configured to: according to the identifier of the second CSP server that stores the file block stored by the storage unit 1104, the identifier of the UCD server, the file block identifier, and the file block in the original file. The order is sent to the second CSP server.
  • the server further includes a deleting unit 1105, where the receiving unit 1101 is further configured to receive a file deletion request sent by the first CSP server, where the file deletion request carries an identifier of the file to be deleted; 1102 is further configured to obtain, according to the identifier of the file to be deleted, information about a file to be deleted that is stored in the storage unit and that is related to the identifier of the file to be deleted, where the information about the file to be deleted includes Deleting the identifier of the fourth CSP server of the file block of the file, the identifier of the file block stored by each fourth CSP server, and using the step for receiving the information of the file to be deleted sent by the determining obtaining unit, according to the The identifier of the fourth CSP server sends a file block deletion request to the fourth CSP server, where the file block deletion request carries an identifier of a file stored by the fourth CSP server, where the file deletion request is used to indicate the The fourth CSP server deletes the file block identifier corresponding
  • FIG. 12 is a schematic structural diagram of a UCD server according to an embodiment of the present invention, including: a transceiver 1201. A memory 1202 and a processor 1203.
  • the transceiver 1201 is configured to receive a file acquisition request sent by the first cloud service provider CSP server, where the file acquisition request carries an identifier of the original file;
  • the memory 1202 is used for various programs and applications, and And executing, by the processor, a function of each program and an application;
  • the processor 1203 is configured to invoke various programs and applications stored in the memory, and obtain the stored identifier of the original file according to the identifier of the original file.
  • the information of the original file includes an identifier of a second CSP server storing the file block, a file block identifier stored by the second CSP server, and an order of the file block in the original file, according to the Identifying, by the second CSP server indicated by the identifier of the second CSP server, a file block corresponding to the file block identifier stored by the second CSP server; obtaining the file from the second CSP server according to the identifier of the second CSP server The order of the file blocks in the original file, merging the file blocks acquired from the second CSP server For the original document;
  • the transceiver 1201 is further configured to provide the original file to the first terminal.
  • processor 1203 can also be used to perform the steps performed by the UCD server described in FIG. 1 to FIG. 7 in the method embodiment, and the embodiments of the present invention are not described in detail herein.
  • the terminal may be various mobile terminals, such as a terminal smart phone, a tablet computer, a mobile reading device, and the like.
  • the respective devices included in the CSP server and the UCD server are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be implemented.
  • the specific names of the devices are only for convenience of distinguishing from each other, and are not intended to limit the scope of protection of the present invention.
  • the function of each functional module or each device of the CSP server and the UCD server of FIG. 1 to FIG. 7 can be completed by the processor of the terminal.

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

In the embodiments of the present application, in a process in which a terminal uses a service provided by a CSP server, the terminal does not need to additionally establish a connection to a UCD server, and the terminal can obtain, through a connection to the CSP server, a file uploaded by a user through the UCD server and divided into blocks, and accordingly, a process of additionally establishing, by the terminal, a connection to the UCD server is avoided, and operations of a user are simplified, thereby improving user experience.

Description

一种文件下载的方法和装置 技术领域 本发明涉及云计算领域, 尤其涉及一种文件下载的方法和装置。 背景技术 云存储服务是指服务器向用户提供文件的存储、 访问、 备份、 共享等文 件管理功能的服务。 用户可以将服务器看成一个放在网络上的硬盘或网盘, 不管在任何地方, 通过互联网, 即可管理、 编辑存储在服务器上的文件。  The present invention relates to the field of cloud computing, and in particular, to a file downloading method and apparatus. BACKGROUND A cloud storage service refers to a service in which a server provides a file management function such as storage, access, backup, and sharing of files to a user. Users can view the server as a hard disk or network disk on the network, and manage and edit the files stored on the server from anywhere, via the Internet.
在现有技术中, 用户可以在统一云磁盘(unified cloud disk, UCD ) 系 统中向不同的云业务提供商( cloud service provider, C SP )注册后, 并在 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 (C SP ) in a unified cloud disk (UCD) system, and register at the UCD server UCD server, and The UCD server provides related information registered by the user at the CSP server, such as the user name and password registered by the user at the CSP server, so that the UCD server can log in to the CSP server registered by the user according to the registration information of the user at the CSP server. The user passes the UCD client. The UCD Client sends a file operation request (such as uploading, downloading, changing the file name, 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, the user uploads a file to the UCD server through the UCD client, and the UCD server selects a suitable CSP in the CSP that the user has registered according to a certain policy. The specific policy may be: for example, the CSP server with the largest storage capacity. The current fastest transmission CSP server, and this file is actually stored in the network disk of the CSP server selected by the UCD server. For the user, only the file is stored in the CSP that the user has previously registered, but it is not clear which CSP server is stored. For example, the user uploads two files through the UCD client. These two files are stored by the UCD server to CSP server A and CSP server C respectively. It is also possible that these two files are simultaneously present in one CSP server.
此外, 用户有时会将一个文件分割成不同的文件块, 并将不同的文件块 存储到不同的设备(如服务器) 中。 这样即使一个文件块被盗, 由于无法获 得该文件的其他文件块, 整个文件还是无法获得, 从而保证了该文件安全性。 如现有的将一个文件分割为两个文件块, 并对两个文件块在不同的服务器上 分别进行存储, 一个文件块为文件中的敏感数据, 另一文件块为文件中的一 般数据, 从而通过文件分割的方法确保了文件的安全性。 在另一场景中, 用 户还有可能对大文件进行分块存储。 In addition, users sometimes split a file into different file blocks and store different file blocks in different devices (such as servers). So even if a file block is stolen, it is impossible to obtain The other file blocks of the file, the entire file is still not available, thus ensuring the security of the file. For example, an existing file is divided into two file blocks, and two file blocks are separately stored on different servers, one file block is sensitive data in the file, and the other file block is general data in the file. Thus the security of the file is ensured by the method of file segmentation. In another scenario, it is also possible for users to block large files.
然而, 如通过 UCD服务器选择 CSP服务器对文件块进行存储时, 同一文 件的不同文件块很有可能是存储在不同的 CSP服务器处的。 因此, 当同一文 件的不同文件块存储在不同 CSP服务器的网盘中时,用户终端在与 CSP服务器 建立连接时并不能从 CSP服务器获取存储的文件, 而只能通过终端另行与 UCD服务器建立连接后, 从 UCD服务器获取整个文件。 从而导致用户操作繁 瑣和不便, 体验不高。 发明内容  However, when a file block is selected by the UCD server to select a CSP server, 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 disk 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 through the terminal. After that, the entire file is obtained from the UCD server. As a result, the user's operation is cumbersome and inconvenient, and the experience is not high. Summary of the invention
本发明的实施例提供的文件下载的方法和装置, 可以使得终端在登录 CSP服务器在使用 CSP服务器提供的业务后, 从通过 CSP服务器下载文件。  The method and apparatus for downloading a file provided by the embodiment of the present invention may enable the terminal to download a file from the CSP server after logging in to the CSP server using the service provided by the CSP server.
才艮据本发明实施例的第一方面, 一种文件下载方法, 在第一终端通过用户 在所述第一云服务提供商 CSP服务器的注册信息登录所述第一 CSP服务器之 后, 且所述第一 CSP服务器向所述第一终端提供业务的过程中, 该方法包括: 所述第一 CSP服务器接收所述第一终端发送的文件下载请求, 所述文件下载 请求中携带原始文件的标识; 所述第一 CSP服务器确定与所述原始文件的标 识对应的原始文件被分块, 获取上传所述原始文件的文件块的第一统一云磁 盘 UCD服务器的标识;所述第一 CSP服务器根据所述第一 UCD服务器的标识 向所述第一 UCD服务器发送文件获取请求, 所述文件获取请求携带所述原始 文件的标识; 所述文件获取请求用于指示所述第一 UCD服务器根据所述原始 文件的标识获取存储的原始文件的信息, 并根据所述原始文件的信息中存储 文件块的第二 CSP服务器的标识, 从所述第二 CSP服务器的标识指示的第二 CSP服务器获取文件块, 并将所述获取的文件块合成为原始文件;所述第一 CSP服务器接收所述第一 UCD服务器返回的文件获取响应, 并将所述文件获 取响应发送给所述第一终端, 以指示所述第一终端通过所述文件获取响应获 取所述原始文件。 According to a first aspect of the present invention, a file downloading method, after the first terminal logs in to the first CSP server by using registration information of the first cloud service provider CSP server by the user, In the process of the first CSP server providing the service to the first terminal, the method includes: the first CSP server receiving a file download request sent by the first terminal, where the file download request carries an identifier of the original file; Determining, by the first CSP server, that the original file corresponding to the identifier of the original file is fragmented, and acquiring an identifier of a first unified cloud disk UCD server that uploads a file block of the original file; the first CSP server according to the The identifier of the first UCD server sends a file acquisition request to the first UCD server, where the file acquisition request carries an identifier of the original file, and the file acquisition request is used to indicate that the first UCD server is based on the original The identifier of the file acquires the information of the stored original file, and stores the second CSP service of the file block according to the information of the original file. 'S identification, from identifying the second indication of the second CSP server The CSP server acquires a file block, and synthesizes the obtained file block into an original file; the first CSP server receives a file acquisition response returned by the first UCD server, and sends the file acquisition response to the first a terminal, to instruct the first terminal to acquire the original file by using the file acquisition response.
结合本发明第一方面的第一可能, 所述第一终端通过所述文件获取响应 获取所述原始文件具体为: 所述文件获取响应携带所述原始文件, 所述第一 终端从文件获取响应中获取所述原始文件; 或所述文件获取响应携带所述原 始文件在所述第一 UCD服务器的存储地址;所述第一终端根据所述存储地址 从所述第一 UCD服务器中获取所述原始文件。  With reference to the first aspect of the first aspect of the present invention, the acquiring, by the first terminal, the original file by using the file obtaining response is: the file obtaining response carrying the original file, and the first terminal acquiring a response from the file Obtaining the original file; or the file obtaining response carrying a storage address of the original file at the first UCD server; the first terminal acquiring the content from the first UCD server according to the storage address Original file.
结合本发明实施例的第一方面或第一可能的第二可能, 所述接收所述第 一终端发送的文件下载请求之前, 该方法进一步包括:接收所述第一终端发 送的查询请求;根据所述用户在所述第一 CSP服务器的注册信息获取所述用户 在所述第一 CSP服务器存储的文件块信息, 所述文件块信息包含上传所述第 一 UCD服务器的标识、以及文件块所属的原始文件的标识;根据所述第一 UCD 服务器的标识向所述第一 UCD服务器发送文件块查询请求, 所述文件块查询 请求中包含所述文件块所属的原始文件的标识;接收所述第一 UCD服务器返 回的所述原始文件的信息, 所述返回的原始文件的信息包含: 原始文件的名 称、 原始文件的标识和第一 UCD服务器的标识以及原始文件被分割的文件块 数量; 将所述原始文件的名称和所述原始文件的标识发送给所述第一终端, 并存储所述返回的原始文件的信息;或将所述原始文件的信息发送给所述第 一终端。  In conjunction with the first aspect or the first possible second possibility of the embodiment of the present invention, before the receiving the file download request sent by the first terminal, the method further includes: receiving a query request sent by the first terminal; Acquiring, by the user, the registration information of the first CSP server, the file block information that is stored by the user in the first CSP server, where the file block information includes the identifier of the first UCD server and the file block Sending a file block query request to the first UCD server according to the identifier of the first UCD server, where the file block query request includes an identifier of an original file to which the file block belongs; The information of the original file returned by the first UCD server, the information of the returned original file includes: a name of the original file, an identifier of the original file, an identifier of the first UCD server, and a number of file blocks in which the original file is divided; Sending the name of the original file and the identifier of the original file to the first terminal, and storing Said information of the original document is returned; or transmitting information of the original document to the first terminal.
结合本发明实施例的第一方面的第二可能的第三可能,所述文件块信息进 一步包含文件块标识位;所述根据所述第一 UCD服务器的标识向所述第一 UCD服务器发送文件块查询请求之前, 所述第一 CSP服务器进一步确定所述 文件块标识位为原始文件分割标识。  With reference to 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 identifier bit, and the file is sent to the first UCD server according to the identifier of the first UCD server. Before the block query request, the first CSP server further determines that the file block identifier is an original file split identifier.
结合本发明实施例的第一方面的第二可能或第三可能的第四可能,所述文 件下载请求中进一步包含: 所述原始文件被分割的文件块数量, 以及所述第 一 UCD服务器的标识; 所述第一 CSP服务器确定与所述原始文件的标识对应 的原始文件被分块, 并获取第一统一云磁盘 UCD服务器的标识具体为: 所述 第一 CSP服务器确定所述原始文件被分割的文件块数量大于 1, 并从所述文件 下载请求中获取所述第一 UCD服务器的标识; 或,所述第一 CSP服务器确定与 所述原始文件的标识对应的原始文件被分块, 并获取第一统一云磁盘 UCD服 务器的标识具体为: 所述第一 CSP服务器根据所述原始文件的标识获取存储 的与所述原始文件的标识对应的原始文件的信息,所述原始文件的信息包含: 原始文件的标识和第一 UCD服务器的标识以及原始文件被分割的文件块数 量; 所述第一 CSP服务器确定所述原始文件被分割的文件块数量大于 1, 并从 所述原始文件的信息中获取所述第一 UCD服务器的标识。 In conjunction with the second possible or third possible fourth possibility of the first aspect of the embodiments of the present invention, The download request further includes: the number of file blocks in which the original file is divided, and the identifier of the first UCD server; the first CSP server determines that the original file corresponding to the identifier of the original file is divided, And obtaining the identifier of the first unified cloud disk UCD server, where: the first CSP server determines that the number of file blocks in which the original file is divided is greater than 1, and acquires the first UCD server from the file download request. Or the first CSP server determines that the original file corresponding to the identifier of the original file is fragmented, and obtains the identifier of the first unified cloud disk UCD server, specifically: the first CSP server is according to the original The identifier of the file obtains the stored information of the original file corresponding to the identifier of the original file, where the information of the original file includes: an identifier of the original file and an identifier of the first UCD server and a number of file blocks in which the original file is divided; Determining that the number of file blocks in which the original file is divided is greater than 1, and from the original file Acquiring first identification information of the UCD server.
结合本发明实施例第一方面的上述任一可能的第五可能, 该方法进一步 包括:  With reference to any of the above-mentioned possible fifth possibilities of the first aspect of the embodiments of the present invention, the method further includes:
接收所述第一 UCD服务器发送的上传块请求;所述上传块请求包含所述 原始文件的文件块、 所述第一 UCD服务器生成的文件块信息、 以及所述用户 在所述第一 CSP服务器的注册信息;存储所述文件块, 以及将所述文件块信息 以及所述用户在所述第一 CSP服务器的注册信息映射存储。  Receiving an upload block request sent by the first UCD server; the uploading block requesting a file block including the original file, file block information generated by the first UCD server, and the user in the first CSP server Registration information; storing the file block, and mapping the file block information and the registration information of the user at the first CSP server.
结合本发明实施例第一方面的上述任一可能的第六可能, 该方法进一步 包括:  With reference to any of the above-mentioned 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 an identifier of the file to be deleted;
所述第一 CSP服务器确定与所述需删除的文件的标识对应的需删除的文 件被分块, 并获取上传所述需删除的文件的文件块的第二 UCD服务器的标识; 根据所述第二 UCD服务器的标识向第二 UCD服务器发送所述文件删除 请求, 所述文件删除请求用于指示所述第二 UCD服务器向存储所述需删除的 文件的文件块的第四 CSP服务器发送文件块删除请求,并在收到所述第四 CSP 服务器返回的文件块删除响应后, 删除第二 UCD服务器存储的需删除的文件 的文件信息并向第一 CSP服务器返回文件删除响应; Determining, by the first CSP server, that the file to be deleted corresponding to the identifier of the file to be deleted is divided, and acquiring an identifier of the second UCD server that uploads the file block of the file to be deleted; Sending, by the identifier of the second UCD server, the file deletion request to the second UCD server, where the file deletion request is used to instruct the second UCD server to send the file block to the fourth CSP server that stores the file block of the file to be deleted. Delete the request and receive the fourth CSP After the file block returned by the server deletes the response, the file information of the file to be deleted stored by the second UCD server is deleted and a file deletion response is returned 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服务器的标识。  With reference to the sixth possible seventh possibility of the first aspect of the embodiment of the present invention, the file deletion request further includes: a number of file blocks to be deleted, and an 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, and the identifier of the second UCD server is obtained: 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 identifier of the second UCD server is obtained from the file deletion request; or the first CSP server determines that the file corresponding to the identifier of the file to be deleted is divided. And obtaining the identifier of the second UCD server, where the identifier of the file to be deleted corresponding to the identifier of the file to be deleted is obtained by the first CSP server according to the identifier of the file to be deleted, where the information needs to be deleted. The information of the deleted file includes: an identifier of the file to be deleted, an identifier of the second UCD server, and the file to be deleted. a number of the divided file blocks; the first CSP server determines that the number of the file blocks to be deleted that are to be deleted is greater than 1, and obtains the identifier of the second UCD server from the information of the file to be deleted. .
本发明实施例第二方面提供了一种文件提供方法,包括:统一云磁盘 UCD 服务器接收第一云服务提供商 CSP服务器发送的文件获取请求, 所述文件获 取请求携带原始文件的标识;根据所述原始文件的标识获取存储的与所述原 始文件的标识对应的原始文件的信息, 所述原始文件的信息包括存储文件块 的第二 CSP服务器的标识,第二 CSP服务器存储的文件块标识以及所述文件块 在原始文件中的次序;根据所述第二 CSP服务器的标识, 从所述第二 CSP服务 器的标识指示的第二 CSP服务器获取与所述第二 CSP服务器存储的文件块标 识对应的文件块;根据所述从所述第二 CSP服务器获取的文件块在原始文件中 的次序, 将各个从所述第二 CSP服务器获取的文件块合并为所述原始文件, 以及将所述原始文件提供给第一终端。 A second aspect of the embodiments of the present invention provides a file providing method, including: a unified cloud disk UCD server receives a file obtaining request sent by a first cloud service provider CSP server, where the file obtaining request carries an identifier of an original file; The identifier of the original file is used to obtain the stored information of the original file corresponding to the identifier of the original file, where the information of the original file includes the identifier of the second CSP server storing the file block, and the file block identifier stored by the second CSP server. The order of the file blocks in the original file; obtaining, according to the identifier of the second CSP server, the second CSP server indicated by the identifier of the second CSP server, corresponding to the file block identifier stored by the second CSP server a file block; merging each of the file blocks acquired from the second CSP server into the original file according to the order of the file blocks acquired from the second CSP server in the original file, And providing the original file to the first terminal.
结合本发明实施例第二方面的第一可能, 所述将所述原始文件提供给所 述第一终端包括: 向第一 CSP服务器返回文件获取响应, 所述文件获取响应 携带所述原始文件;所述文件获取响应用于指示所述第一 CSP服务器接收到所 述文件获取响应发送给所述第一终端; 或,向所述第一 CSP服务器返回文件获 取响应, 所述文件获取响应携带所述原始文件在所述 UCD服务器的存储地址; 所述文件获取响应用于指示所述第一 CSP服务器将所述文件获取响应发送给 所述第一终端,以及指示所述第一终端根据所述存储地址获取所述原始文件。  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, where the file acquisition response carries the original file; The file acquisition response is used to indicate that the first CSP server receives the file acquisition response and sends the file to the first terminal; or returns a file acquisition response to the first CSP server, where the file acquisition response carries the location Decoding a storage address of the original file in the UCD server; the file obtaining response is used to instruct the first CSP server to send the file acquisition response to the first terminal, and instructing the first terminal to perform the The storage address acquires the original file.
结合本发明实施例第二方面或第一可能的第二可能, 所述 UCD服务器在 第二终端通过用户在所述 UCD服务器的注册信息登录后,该方法进一步包括: 接收所述第二终端发送的文件上传请求, 所述文件上传请求携带了用户需上 传的原始文件的大小;获取所述用户注册过的第三 CSP服务器的信息;根据所 述第三 CSP服务器的信息及原始文件的大小信息确定用于上传所述原始文件 的文件块的第二 CSP服务器, 并在收到所述第二终端发送的原始文件后, 将 所述原始文件的文件块上传给所述第二 CSP服务器。  With reference to the second aspect of the embodiment of the present invention or the first possible second possibility, after the second terminal is logged in by the user in the registration information of the UCD server, the method further includes: receiving, sending, by the second terminal a file upload request, the file upload request carries the size of the original file that the user needs to upload; obtains the information of the third CSP server registered by the user; and according to the information of the third CSP server and the size information of the original file Determining a second CSP server for uploading the file block of the original file, and after receiving the original file sent by the second terminal, uploading the file block of the original file to the second CSP server.
结合本发明实施例第二方面的第二可能的第三可能, 所述第三 CSP服务 器的信息包含所述所述用户在所述第三 CSP服务器的可用存储空间以及第三 CSP服务器支持的最大文件的大小;所述根据所述第三 CSP服务器的信息及原 始文件的大小信息确定用于上传原始文件的文件块的第二 CSP服务器具体 为: 确定所述可用存储空间大于所述原始文件的大小, 且所述第三 CSP服务 器支持的最大文件的大小大于所述原始文件的大小的第三 CSP服务器作为用 于上传文件块的第二 CSP服务器; 所述将文件块上传给所述第二 CSP服务器 具体为: 将原始文件作为文件块上传给所述第二 CSP服务器;或, 所述根据所 述第三 CSP服务器的信息及原始文件的大小信息确定用于上传所述原始文件 的文件块的第二 CSP服务器具体为:确定可用存储空间大于所述第三 CSP服务 器支持的最大文件的大小的至少两个第三 CSP服务器作为用于上传文件块的 第二 CSP服务器,根据确定的所述至少两个第二 CSP服务器支持的最大文件的 大小将所述原始文件分割成至少两个文件块, 并将所述至少两个文件块分别 上传到所述至少两个第二 CSP服务器, 所述文件块的大小小于所述第二 CSP 服务器支持的最大文件的大小 。 With reference to 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 available storage space of the user in the third CSP server and the maximum supported by the third CSP server. Determining, according to the information of the third CSP server and the size information of the original file, the second CSP server for uploading the file block of the original file is: determining that the available storage space is larger than the original file a size, and a third CSP server whose size of the largest file supported by the third CSP server is larger than the size of the original file as a second CSP server for uploading a 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, according to the information of the third CSP server and the size information of the original file, a file block for uploading the original file The second CSP server is specifically configured to: determine that the available storage space is greater than at least two of the maximum file size supported by the third CSP server. a third CSP server as a block for uploading files a second CSP server, dividing the original file into at least two file blocks according to the determined size of a maximum file supported by the at least two second CSP servers, and uploading the at least two file blocks to the At least two second CSP servers, the size of the file block is smaller than the size of the largest file supported by the second CSP server.
结合本发明实施例第二方面的第二可能的第三可能, 所述在收到所述第 二终端发送的原始文件后以及将所述原始文件的文件块上传给所述第二 CSP 服务器之前, 该方法进一步包括: 存储所述原始文件的信息, 所述原始文件 的信息包括: 原始文件的标识、 原始文件被分割的文件块数量, 以及各文件 块的文件块标识,以及存储所述各文件块的第二 CSP服务器的标识, 以及所述 各文件块在原始文件中的次序。  With reference to 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 uploading the file block of the original file to the second CSP server The method further includes: storing information of the original file, where the information of the original file includes: an identifier of the original file, a number of file blocks in which the original file is divided, and a file block identifier of each file block, and storing the respective 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服务 器。  With reference to the third possible fourth possibility of the second aspect of the embodiment of the present invention, the method further includes: determining an identifier, a file block identifier, and a file of the UCD server according to the identifier of the second CSP server storing the file block. The order of the blocks in the original file is sent to the second CSP server.
结合本发明实施例第二方面的上述任一可能的第五可能, 该方法进一步 包括: 接收第一 CSP服务器发送的文件删除请求, 所述文件删除请求中携带 需删除的文件的标识;根据所述需删除的文件的标识获取存储的与所述需删 除的文件的标识对应的需删除的文件的信息, 所述需删除的文件的信息包含 存储所述需删除文件的文件块的第四 CSP服务器的标识、各第四 CSP服务器存 储的文件块的标识;据根据所述第四 CSP服务器的标识向所述第四 CSP服务器 发送文件块删除请求, 所述文件块删除请求中携带所述第四 CSP服务器存储 的文件志的标识, 所述文件删除请求用于指示所述第四 CSP服务器删除与所 述第四 CSP服务器存储的文件块标识对应的文件块及文件块的信息; 接收所 述第四 CSP服务器发送的文件块删除响应;删除所述 UCD服务器存储的所述需 删除的文件的信息, 并向第一 CSP服务器返回文件删除响应, 所述文件删除 响应用于指示第一 CSP服务器将所述文件删除响应发送至第一终端。 本发明实施例第三方面提供了一种云服务提供商 CSP服务器包括: 接收 单元, 用于在第一终端通过用户在所述 CSP服务器的注册信息登录所述 CSP 服务器之后, 且所述 CSP服务器向所述第一终端提供业务的过程中, 接收第 一终端发送的文件下载请求, 所述文件下载请求中携带原始文件的标识, 以 及将所述原始文件的标识发送给确定获取单元; 所述确定获取单元, 用于接 收所述接收单元发送的所述原始文件的标识, 确定与所述原始文件的标识对 应的原始文件被分块, 以及获取上传所述原始文件的文件块的第一统一云磁 盘 UCD服务器的标识,并将所述第一 UCD服务器的标识发送给发送单元;所述 发送单元, 用于接收所述确定接收单元发送的第一 UCD服务器的标识, 以及 根据所述第一 UCD服务器的标识向所述第一 UCD服务器发送文件获取请求, 所述文件获取请求携带所述原始文件的标识; 所述文件获取请求用于指示所 述第一 UCD服务器根据所述原始文件的标识获取存储的原始文件的信息, 并 根据所述元始文件的信息中文件块对应的第二 CSP服务器的标识, 从所述第 二 CSP服务器的标识指示的第二 CSP服务器获取文件块,并将所述获取的文件 块合成为原始文件;所述接收单元进一步用于接收所述第一 UCD服务器返回 的文件获取响应, 并将所述文件获取响应发送给所述发送单元, 所述发送单 元进一步用于接收所述接收单元发送的文件获取响应, 并将所述文件获取响 应发送给所述第一终端, 以指示所述第一终端通过所述文件获取响应获取所 述原始文件。 With reference to any of the foregoing possible fifth possibilities of the second aspect of the embodiments 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 an identifier of the file to be deleted; The identifier of the file to be deleted is obtained by the identifier of the file to be deleted corresponding to the identifier 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. An identifier of the server, an identifier of the file block stored by each fourth CSP server, and a file block deletion request is sent to the fourth CSP server according to the identifier of the fourth CSP server, where the file block deletion request carries the An identifier of a file stored by the four CSP servers, where the file deletion request is used to instruct the fourth CSP server to delete information about a file block and a file block corresponding to the file block identifier stored by the fourth CSP server; a file block deletion response sent by the fourth CSP server; deleting the information of the file to be deleted stored by the UCD server, and CSP server returns a response to the file deletion, the deletion response indicating that the first file CSP server deletion response to the first terminal transmits the file. The third aspect of the embodiment of the present invention provides a cloud service provider CSP server, including: a receiving unit, configured to: after the first terminal logs in to the CSP server by using registration information of the CSP server by the user, and the CSP server 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 acquiring unit, in the process of providing the service to the first terminal; Determining an obtaining unit, configured to receive an identifier of the original file sent by the receiving unit, determine that an original file corresponding to the identifier of the original file is divided, and obtain a first unified file block that uploads the original file An identifier of the cloud disk UCD server, and sending the identifier of the first UCD server to the sending unit, where the sending unit is configured to receive the identifier of the first UCD server sent by the determining receiving unit, and according to the first The identifier of the UCD server sends a file acquisition request to the first UCD server, where the file acquisition request carries An identifier of the original file; the file obtaining request is used to instruct the first UCD server to obtain information of the stored original file according to the identifier of the original file, and according to the information file block corresponding to the information of the metadata file An identifier of the second CSP server, acquiring a file block from the second CSP server indicated by the identifier of the second CSP server, and synthesizing the obtained file block into an original file; the receiving unit is further configured to receive the first The file returned by the UCD server obtains a response, and sends the file acquisition response to the sending unit, where the sending unit is further configured to receive a file obtaining response sent by the receiving unit, and send the file obtaining response to the The first terminal is configured to instruct the first terminal to acquire the original file by using the file acquisition response.
结合上述第三方面的第一可能, 所述服务器进一步包含存储单元;所述接 收单元进一步用于在接收所述第一终端发送的文件下载请求之前, 接收所述 第一终端发送的查询请求, 并将所述查询请求发送给所述确定获取单元;所述 确定获取单元进一步用于接收所述接收单元发送的查询请求, 并根据所述用 户在所述第一 CSP服务器的注册信息获取所述用户在所述存储单元存储的文 件块信息, 所述文件块信息包含所述第一 UCD服务器的标识、 以及文件块所 属的原始文件的标识, 并将所述原始文件的标识和所述第一 UCD服务器的标 识发送给所述发送单元;所述发送单元进一步用于接收所述确定获取单元发 送的所述原始文件的标识和所述第一 UCD服务器的标识, 根据所述第一 UCD 服务器的标识向所述第一 UCD服务器发送文件块查询请求, 所述文件块查询 请求中包含所述文件块所属的原始文件的标识;所述接收单元进一步用于接 收所述第一 UCD服务器返回的所述原始文件的信息, 所述返回的原始文件的 信息包含: 原始文件的名称、 原始文件的标识和第一 UCD服务器的标识以及 原始文件被分割的文件块数量, 并将所述原始文件的信息发送给所述发送单 元和所述存储单元;所述存储单元用于接收所述接收单元发送的原始文件的 信息, 以及存储所述原始文件的信息;所述发送单元进一步用于接收所述接收 单元发送的原始文件的信息, 并将所述原始文件的信息中的所述原始文件的 名称和所述原始文件的标识发送给所述第一终端, 或将所述原始文件的信息 发送给所述第一终端。 In combination with the first possibility of the foregoing third aspect, the server further includes a storage unit, and the receiving unit is further configured to: before receiving the file download request sent by the first terminal, receive the query request sent by the first terminal, And sending the query request to the determining acquiring unit; the determining obtaining unit is further configured to receive the query request sent by the receiving unit, and obtain the foregoing according to the registration information of the user in the first CSP server File block information stored by the user in the storage unit, the file block information includes an identifier of the first UCD server, and an identifier of an original file to which the file block belongs, and the identifier of the original file and the first UCD server standard The sending unit is further configured to receive the identifier of the original file sent by the determining acquiring unit and the identifier of the first UCD server, according to the identifier of the first UCD server The first UCD server sends a file block query request, where the file block query request includes an identifier of the original file to which the file block belongs; the receiving unit is further configured to receive the original file returned by the first UCD server The information of the returned original file includes: a name of the original file, an identifier of the original file, an identifier of the first UCD server, and a number of file blocks in which the original file is divided, and the information of the original file is sent to the a transmitting unit and a storage unit; the storage unit is configured to receive information of an original file sent by the receiving unit, and store information of the original file; the sending unit is further configured to receive the sending by the receiving unit The information of the original file, and the name of the original file in the information of the original file and the original ID file is transmitted to the first terminal, or the original document information transmitted to the first terminal.
结合上述第三方面的第一可能的第二可能,所述文件块信息进一步包含文 件块标识位;所述发送单元根据所述第一 UCD服务器的标识向所述第一 UCD 服务器发送文件块查询请求之前, 所述确定获取单元进一步确定所述文件块 标识位为原始文件分割标识。  Combining the first possible second possibility of the foregoing third aspect, the file block information further includes a file block identifier bit; the sending unit sends a file block query to the first UCD server according to the identifier of the first UCD server Before the request, the determining obtaining unit further determines that the file block identifier bit is an original file split identifier.
结合本发明实施例第三方面的上述任一可能的第三可能,  Combining any of the above possible third possibilities of the third aspect of the embodiments of the present invention,
所述文件下载请求中进一步包含: 原始文件被分割的文件块数量, 以及 所述第一 UCD服务器的标识; 所述确定获取单元确定与所述原始文件的标识 对应的原始文件被分块, 并获取第一统一云磁盘 UCD服务器的标识具体为: 所述第一 CSP服务器确定所述原始文件被分割的文件块数量大于 1, 并从所述 文件下载请求中获取所述第一 UCD服务器的标识;或  The file download request further includes: a number of file blocks in which the original file is divided, and an identifier of the first UCD server; the determining obtaining unit determines that the original file corresponding to the identifier of the original file is divided, and Obtaining the identifier of the first unified cloud disk UCD server is: 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 identifier of the first UCD server from the file download request ; or
所述确定获取单元确定与所述原始文件的标识对应的原始文件被分块, 并获取第一统一云磁盘 UCD服务器的标识具体为: 所述第一 CSP服务器根据 所述原始文件的标识获取存储的与所述原始文件的标识对应的原始文件的信 息, 所述原始文件的信息包含: 原始文件的标识和第一 UCD服务器的标识以 及原始文件被分割的文件块数量; 所述第一 CSP服务器确定所述原始文件被 分割的文件块数量大于 1,并从所述原始文件的信息中获取所述第一 UCD服务 器的标识。 The determining the obtaining unit determines that the original file corresponding to the identifier of the original file is fragmented, and obtains the identifier of the first unified cloud disk UCD server, which 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 identifier of the original file, the information of the original file includes: an identifier of the original file and an identifier of the first UCD server And the number of file blocks in which the original file is divided; the first CSP server determines that the number of file blocks in which the original file is divided is greater than 1, and acquires the identifier of the first UCD server from the information of the original file.
结合本发明实施例第三方面的上述任一可能的第四可能,  Combining any of the above 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 an upload block request sent by the first UCD server; the upload block request includes a file block of the original file and file block information generated by the first UCD server, and the user Registration information at the first CSP server;
所述存储单元进一步用于接收所述接收单元发送的上传块请求, 存储所 述文件块以及将所述文件块信息和所述用户在所述第一 CSP服务器的注册信 息映射存储。  The storage unit is further configured to receive an upload block request sent by the receiving unit, store the file block, and store the file block information and the registration information of the user at the first CSP server.
结合本发明实施例第三方面的上述任一可能的第五可能, 所述接收单元 进一步用于第一终端发送的文件删除请求, 所述文件删除请求中携带需删除 的文件的标识, 将所述需删除的文件的标识发送给所述确定获取单元;  With reference to any of the foregoing possible fifth possibilities of the third aspect of the embodiments of the present invention, the receiving unit is further used for a file deletion request sent by the first terminal, where the file deletion request carries the identifier of the file to be deleted, Sending an identifier of the file to be deleted to the determining acquiring unit;
所述确定获取单元进一步用于接收所述接收单元发送的需删除的文件的 标识, 确定与所述需删除的文件的标识对应的需删除的文件被分块, 并获取 上传所述需删除的文件的文件块的第二 UCD服务器的标识, 并将所述这第二 UCD服务器的标识发送给发送单元;  The determining obtaining unit is further configured to receive an identifier of the file to be deleted that is sent by the receiving unit, determine that the file to be deleted corresponding to the identifier of the file to be deleted is divided, and obtain the uploaded content to be deleted. An identifier of the second UCD server of the file block of the file, and sending the identifier 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 identifier of the second UCD server that is sent by the determining acquiring unit, and send the file deletion request to the second UCD server according to the identifier of the second UCD server, where the file deletion request is sent And a method for instructing the second UCD server to send a file block deletion request to a fourth CSP server that stores the file block of the file to be deleted, and deleting 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 sending a file deletion response to the first terminal.
结合本发明实施例第三方面的第五可能的第六可能, 所述文件删除请求 中进一步包含: 需删除的文件被分割的文件块数量, 以及第二 UCD服务器的 标识;所述确定获取单元确定与所述需删除的文件的标识对应的原始文件被 分块, 并获取第二 UCD服务器的标识具体为: 确定所述文件删除请求中所述 需删除的文件被分割的文件块数量大于 1,并从所述文件删除请求中获取所述 第二 UCD服务器的标识; 或  With reference to the fifth possible sixth possibility of the third aspect of the embodiment of the present invention, the file deletion request further includes: a number of file blocks to be deleted, and an identifier of the second UCD server; the determining acquisition 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: determining that the number of file blocks to be deleted in the file deletion request is greater than 1 And obtaining an identifier of the second UCD server from the file deletion request; or
所述确定获取单元确定与所述需删除的文件的标识对应的文件被分块, 并获取第二 UCD服务器的标识具体为: 所述第一 CSP服务器根据所述需删除 的文件的标识获取存储的与所述需删除的文件的标识对应的需删除的文件的 信息, 所述需删除的文件的信息包含: 所述需删除的文件的标识、 第二 UCD 服务器的标识以及所述需删除的文件被分割的文件块数量;确定存储的所述 需删除的文件被分割的文件块数量大于 1,并从所述需删除的文件的信息中获 取所述第二 UCD服务器的标识。  The determining the obtaining unit determines that the file corresponding to the identifier of the file to be deleted is divided into blocks, and the identifier of the second UCD server is obtained: the first CSP server obtains the storage 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 deleted The number of file blocks to be divided by the file; determining that the number of file blocks to be deleted in the file to be deleted is greater than 1, and obtaining the identifier of the second UCD server from the information of the file to be deleted.
本发明第四方面提供了一种统一云磁盘 UCD服务器包括:  A fourth aspect of the present invention provides a unified cloud disk UCD server including:
接收单元, 用于接收第一云服务提供商 CSP服务器发送的文件获取请求, 所述文件获取请求携带原始文件的标识;并将所述原始文件的标识发送给确 定获取单元;  a receiving unit, configured to receive a file obtaining request sent by the first cloud service provider CSP server, where the file obtaining request carries an identifier of the original file, and sends the identifier of the original file to the determining acquiring unit;
所述确定获取单元用于接收所述接收单元发送的所述原始文件的标识, 根据所述原始文件的标识获取存储的与所述原始文件的标识对应的原始文件 的信息, 所述原始文件的信息包括存储文件块的第二 CSP服务器的标识, 第 二 CSP服务器存储的文件块标识以及所述文件块在原始文件中的次序;以及根 据所述第二 CSP服务器的标识, 从所述第二 CSP服务器的标识指示的第二 CSP 服务器获取与所述第二 CSP服务器存储的文件块标识对应的文件块;以及将所 所述发送单元用于接收所述确定获取单元发送的文件块以及所述文件块 在原始文件中的次序, 根据所述文件块在原始文件中的次序, 将各个从所述 第二 CSP服务器获取的文件块合并为所述原始文件, 以及将所述原始文件提 供给第一终端。 The determining obtaining unit is configured to receive an identifier of the original file sent by the receiving unit, and obtain, according to the identifier of the original file, information about an original file that is stored corresponding to the identifier of the original file, where the original file is The information includes an identifier of the second CSP server storing the file block, a file block identifier stored by the second CSP server, and an order of the file block in the original file; and from the second according to the identifier of the second CSP server a second CSP server indicated by the identifier of the CSP server acquires a file block corresponding to the file block identifier stored by the second CSP server; and the transmitting unit is configured to receive the file block sent by the determining obtaining unit and the File block In the order in the original file, each file block acquired from the second CSP server is merged into the original file according to the order of the file blocks in the original file, and the original file is provided to the first terminal .
结合本发明第四方面的第一可能, 所述发送单元将所述原始文件提供给 第一终端具体为:  With reference to the first possibility of the fourth aspect of the present invention, the sending unit provides the original file to the first terminal, specifically:
向第一 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 indicate that the first CSP server receives the file acquisition response and sends the file to the first terminal; Or
向所述第一 CSP服务器返回文件获取响应, 所述文件获取响应携带所述 原始文件在所述 UCD服务器的存储地址;所述文件获取响应用于指示所述第 一 CSP服务器将所述文件获取响应发送给所述第一终端, 以及指示所述第一 终端根据所述存储地址获取所述原始文件。  Returning a file acquisition response to the first CSP server, where the file acquisition response carries a storage address of the original file at the UCD server; and the file acquisition response is used to instruct the first CSP server to acquire 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服务器后进一步用于 接收所述第二终端发送的文件上传请求, 所述文件上传请求携带了用户需上 传的原始文件的大小;  With the fourth aspect of the present invention or the first possible second possibility, the receiving unit is further configured to receive, by the second terminal, the second terminal, after the user logs in to the UCD server by using the registration information of the UCD server. a file upload request, where the file upload request carries the size of the original file that the user needs to upload;
所述确定获取单元进一步用于获取所述用户注册过的第三 CSP服务器的 信息, 根据所述第三 CSP服务器的信息及原始文件的大小信息确定用于上传 所述原始文件的文件块的第二 CSP服务器;  The determining obtaining unit is further configured to acquire information of a third CSP server that is registered by the user, and determine, according to information of the third CSP server and size information of the original file, a file block for uploading the original file. Two CSP servers;
所述接收单元进一步用于接收所述第二终端发送的原始文件, 并将所述 原始文件发送给所述发送单元;  The receiving unit is further configured to receive an 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 block of the original file to the second CSP server determined by the determining acquiring unit.
本发明第四方面的第二可能的第三可能, 所述第三 CSP服务器的信息包 含所述所述用户在所述第三 CSP服务器的可用存储空间以及第三 CSP服务器 支持的最大文件的大小; According to a second possible third aspect of the fourth aspect of the present invention, the information of the third CSP server includes the available storage space of the user in the third CSP server and the third CSP server The maximum size of files supported;
所述确定获取单元根据所述第三 CSP服务器的信息及原始文件的大小信 息确定用于上传原始文件的文件块的第二 CSP服务器具体为: 确定所述可用 存储空间大于所述原始文件的大小, 且所述第三 CSP服务器支持的最大文件 的大小大于所述原始文件的大小的第三 CSP服务器作为用于上传文件块的第 单元确定的所述第二 CSP服务器具体为: 将原始文件作为文件块上传给所述 第二 CSP服务器; 或, 所述确定获取单元根据所述第三 CSP服务器的信息及原 始文件的大小信息确定用于上传所述原始文件的文件块的第二 CSP服务器具 体为: 确定可用存储空间大于所述第三 CSP服务器支持的最大文件的大小的 至少两个第三 CSP服务器作为用于上传文件块的第二 CSP服务器,根据确定的 所述至少两个第二 CSP服务器支持的最大文件的大小将所述原始文件分割成 至少两个文件块, 所述文件块的大小小于所述第二 CSP服务器支持的最大文 确定的所述第二 CSP服务器具体为: 将所述至少两个文件块分别上传到所述 至少两个第二 CSP服务器。  Determining, by the determining obtaining unit, 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: determining that the available storage space is larger than the size of the original file. And the third CSP server whose size of the largest file supported by the third CSP server is larger than the size of the original file is determined as the second CSP server determined by the unit for uploading the file block, specifically: using the original file as And the determining, the obtaining unit determines, according to the information of the third CSP server and the size information of the original file, a second CSP server for uploading the file block of the original file. And determining: at least two third CSP servers whose available storage space is larger than a size of a maximum file supported by the third CSP server as a second CSP server for uploading a file block, according to the determined at least two second CSPs The size of the largest file supported by the server divides the original file into at least two files Block, the size of the file block is smaller than the maximum CFS server supported by the second CSP server, and the second CSP server is specifically: uploading the at least two file blocks to the at least two second CSP servers respectively .
结合本发明第四方面的第三可能的第四可能, 所述服务器进一步包括存 储单元;  In conjunction with the third possible fourth possibility of the fourth aspect of the present invention, the server further includes a storage unit;
所述存储单元用于存储所述原始文件的信息,所述原始文件的信息包括: 原始文件的标识、 原始文件被分割的文件块数量, 以及各文件块的文件块标 识,以及存储所述各文件块的第二 CSP服务器的标识, 以及所述各文件块在原 始文件中的次序。  The storage unit is configured to store information of the original file, where the information of the original file includes: an identifier of the original file, a number of file blocks in which the original file is divided, and a file block identifier of each file block, and storing the respective 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服务器。 结合本发明第四方面上述任一可能的第六可能, 所述服务器进一步包含 删除单元; With reference to the fourth possible fifth possibility of the fourth aspect of the present invention, the sending unit is further configured to: identify, file, and file the UCD server according to the identifier of the second CSP server that stores the file block stored by the storage unit The block identification and the order of the file blocks in the original file are sent to the second CSP server. With reference to any of the possible sixth possibilities of the fourth aspect of the present invention, the server further includes a deleting unit;
所述接收单元进一步用于接收第一 CSP服务器发送的文件删除请求, 所 述文件删除请求中携带需删除的文件的标识;  The receiving unit is further configured to receive a file deletion request sent by the first CSP server, where the file deletion request carries an identifier of the file to be deleted;
所述确定获取单元进一步用于根据所述需删除的文件的标识获取所述存 储单元存储的与所述需删除的文件的标识对应的需删除的文件的信息, 所述 需删除的文件的信息包含存储所述需删除文件的文件块的第四 C SP服务器的 标识、各第四 CSP服务器存储的文件块的标识, 并将所述需删除的文件的信息 发送给所述发送单元;  The determining obtaining unit is further configured to: obtain, according to the identifier of the file to be deleted, information about a file to be deleted corresponding to the identifier of the file to be deleted stored by the storage unit, and information about the file to be deleted The identifier of the fourth C SP server storing the file block of the file to be deleted, the identifier of the file block stored by each fourth CSP server, and transmitting 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 information about the file to be deleted that is sent by the determining acquiring unit, and send a file block deletion request to the fourth CSP server according to the identifier of the fourth CSP server, where the file block is deleted. The request carries the identifier of the file stored by the fourth CSP server, where 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;
所述删除单元用于删除所述存储单元存储的所述需删除的文件的信息; 所述发送单元进一步用于向第一 CSP服务器返回文件删除响应, 所述文 件删除响应用于指示第一 CSP服务器将所述文件删除响应发送至第一终端。  The deleting unit is configured to delete information about the file to be deleted stored by the storage unit; 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 indicate the first CSP The server sends the file deletion response to the first terminal.
本发明实施例第五方面提供了一种 CSP服务器, 包括: 发收器, 存储器 和处理器;  A fifth aspect of the embodiments of the present invention provides a CSP server, including: a transceiver, a memory, and a processor;
所述收发器用于接收在第一终端通过用户在所述 CSP服务器的注册信息 登录所述 CSP服务器之后,且所述 CSP服务器向所述第一终端提供业务的过程 中, 接收第一终端发送的文件下载请求, 所述文件下载请求中携带原始文件 的标识;  The transceiver is configured to receive, after the first terminal logs in to the CSP server by using registration information of the CSP server by the user, and the CSP server provides a service to the first terminal, receiving, by the first terminal, a file download request, where the file download request carries an identifier of the original file;
所述存储器用于存储各种程序与应用, 并在所述处理器的调用下执行各 程序与应用的功能; The memory is configured to store various programs and applications, and execute each of them under the call of the processor Program and application functions;
所述处理器用于调用存储器存储的各种程序与应用, 并且确定与所述原 始文件的标识对应的原始文件被分块, 获取上传所述原始文件的文件块的第 一统一云磁盘 UCD服务器的标识;根据所述第一 UCD服务器的标识向所述第 一 UCD服务器发送文件获取请求, 所述文件获取请求携带所述原始文件的标 识; 所述文件获取请求用于指示所述第一 UCD服务器根据所述原始文件的标 识获取存储的原始文件的信息, 并根据所述原始文件的信息中存储文件块的 第二 CSP服务器的标识, 从所述第二 CSP服务器的标识指示的第二 CSP服务器 获取文件块, 并将所述获取的文件块合成为原始文件;  The processor is configured 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 a first unified cloud disk UCD server that uploads the file block of the original file. And sending a file acquisition request to the first UCD server according to the identifier of the first UCD server, where the file acquisition request carries an identifier of the original file; and the file obtaining request is used to indicate the first UCD server Obtaining 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, the second CSP server indicated by the identifier of the second CSP server Obtaining a file block, and synthesizing the obtained file block into an original file;
所述收发器进一步用于所述第一 UCD服务器返回的文件获取响应, 并将 所述文件获取响应发送给所述第一终端, 以指示所述第一终端通过所述文件 获取响应获取所述原始文件。  The transceiver is further configured to send a file acquisition response returned by the first UCD server, and send the file acquisition response to the first terminal, to instruct the first terminal to acquire the file by using the file acquisition response. Original file.
本发明实施例第五方面提供了一种 UCD服务器, 包括: 发收器, 存储器 和处理器;  A fifth aspect of the embodiments of the present invention provides a UCD server, including: a transceiver, a memory, and a processor;
所述收发器用于器接收第一云服务提供商 CSP服务器发送的文件获取请 求, 所述文件获取请求携带原始文件的标识;  The transceiver is configured to receive a file acquisition request sent by a first cloud service provider CSP server, where the file acquisition request carries an identifier of the original file;
所述存储器用于各种程序与应用, 并在所述处理器的调用下执行各程序 与应用的功能;  The memory is used in various programs and applications, and 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 configured to invoke various programs and applications stored in the memory, and obtain, according to the identifier of the original file, information of the original file that is stored corresponding to the identifier of the original file, where the information of the original file includes a file block. An identifier of the second CSP server, a file block identifier stored by the second CSP server, and an order of the file block in the original file, according to the identifier of the second CSP server, indicating from the identifier of the second CSP server The second CSP server acquires a file block corresponding to the file block identifier stored by the second CSP server; according to the order of the file blocks acquired from the second CSP server in the original file, each will be from the second CSP The file blocks acquired by the server are merged into the original file; The transceiver is further configured to provide the original file to the first terminal.
通过上述方案可以看出, 终端在使用 CSP服务器提供的业务的过程中, 无需另行建立与 UCD服务器的连接, 而通过与 CSP服务器的连接就可以获取 通过用户通过 UCD服务器上传的被分块的文件后, 从而避免终端另行与 UCD 服务器建立连接的过程, 减化用户操作, 从而提高用户体验。  Through 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 connected file with the CSP server can obtain the blocked file uploaded by the user through the UCD server. After that, the process of establishing a connection between the terminal and the UCD server is further avoided, and the user operation is reduced, thereby improving the user experience.
附图说明 为了更清楚地说明本发明实施例的技术方案, 下面将对实施例描述中所 需要使用的附图作简单地介绍, 显而易见地, 下面描述中的附图仅仅是本发 明的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动性的 前提下, 还可以根据这些附图获得其他的附图。  BRIEF DESCRIPTION OF THE DRAWINGS In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some implementations of the present invention. For example, other drawings may be obtained from those skilled in the art without any inventive labor.
图 1为本发明实施例提供的文件下载的方法流程图;  FIG. 1 is a flowchart of a method for downloading a file according to an embodiment of the present invention;
图 2为本发明实施例提供的终端通过 UCD客户端上传文件的方法流程图; 图 3为本发明实施例提供的终端通过 UCD客户端经过 UCD服务器上传的 原始文件 A和原始文件 B在 CSP服务器的存储示意图 图 4为本发明实施例提供的用户通过终端登录 CSP服务器 B时,获取用户 存储在各 C SP服务器文件信息的方法流程图; 图 5为 CSP服务器提供给用户的该用户存储在 CSP服务器的文件的示意 图;  2 is a flowchart of a method for a terminal to upload a file through a UCD client according to an embodiment of the present invention; FIG. 3 is a schematic diagram of an original file A and an original file B uploaded by a terminal through a UCD server through a UCD client according to an embodiment of the present invention; FIG. 4 is a flowchart of a method for acquiring user information stored in each C SP server file when a user logs in to the CSP server B through a terminal according to an embodiment of the present invention; FIG. 5 is a CSP server provided to the user by the CSP server and stored in the CSP. a schematic diagram of the server's files;
图 6为本发明实施例提供的获取通过 UCD服务器上传的文件的方法流程 图;  FIG. 6 is a flowchart of a method for acquiring a file uploaded by a UCD server according to an embodiment of the present invention;
图 7为本发明实施例提供的终端通过 CSP服务器删除文件的方法流程图; 图 8为本发明实施例提供的提供文件的方法流程图  FIG. 7 is a flowchart of a method for deleting a file by a CSP server according to an embodiment of the present invention; FIG. 8 is a flowchart of a method for providing a file according to an embodiment of the present invention;
图 9为本发明实施例提供的 CSP服务器 的结构示意图;  FIG. 9 is a schematic structural diagram of a CSP server according to an embodiment of the present invention;
图 10为本发明实施例提供的 CSP服务器的另一结构示意图; 图 11为本发明实施例提供的 UCD服务器 的结构示意图; FIG. 10 is another schematic structural diagram of a CSP server according to an embodiment of the present disclosure; FIG. 11 is a schematic structural diagram of a UCD server according to an embodiment of the present disclosure;
图 12为本发明实施例提供的 UCD服务器的另一结构示意图 .  FIG. 12 is another schematic structural diagram of a UCD server according to an embodiment of the present invention.
具体实施方式 下面将结合本发明实施例中的附图, 对本发明实施例中的技术方案进行 清楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而 不是全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没有作 出创造性劳动前提下所获得的所有其他实施例, 都属于本发明保护的范围。  The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. example. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
图 1为本发明实施例提供的文件下载的方法流程图,包括如下步骤: 步骤 101、 第一 CSP服务器向第一终端提供业务的过程中, 接收第一终端 发送的文件下载请求, 所述文件下载请求中携带原始文件的标识;  FIG. 1 is a flowchart of a method for downloading a file according to an embodiment of the present invention, including the following steps: Step 101: In a process of providing a service to a first terminal, the first CSP server receives a file download request sent by the first terminal, where the file is sent The 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, and obtains an identifier of the unified cloud disk UCD server.
步骤 103、 所述第一 CSP服务器根据所述 UCD服务器的标识向所述 UCDe 取务器发送文件获取请求, 所述文件获取请求携带所述原始文件的标识; 所 述文件获取请求用于指示所述 UCD服务器根据所述原始文件的标识获取存储 的原始文件的信息, 并根据所述原始文件的信息中的文件块对应的第二 C SP 服务器的标识,从所述第二 CSP服务器的标识指示的第二 CSP服务器获取文件 块, 并将所述获取的文件块合成为原始文件;  Step 103: The first CSP server sends a file acquisition request to the UCDe server according to the identifier of the UCD server, where the file acquisition request carries an identifier of the original file, where the file acquisition request is used to indicate The UCD server obtains the information of the stored original file according to the identifier of the original file, and indicates the identifier of the second CSP server according to the identifier of the second C SP server corresponding to the file block in the information of the original file. The second CSP server obtains a file block, and synthesizes the obtained file block into an original file;
步骤 103、 所述第一 CSP服务器接收所述 UCD服务器返回的文件获取响 应, 并将所述文件获取响应发送给所述第一终端, 以指示所述第一终端通过 所述文件获取响应获取所述原始文件。  Step 103: The first CSP server receives a file acquisition response returned by the UCD server, and sends the file acquisition response to the first terminal, to instruct the first terminal to acquire the file by using the file acquisition response. The original document.
从以上实施例可以看出, 通过上述方案可以看出, 终端在使用 CSP服务 器提供的业务的过程中, 无需另行建立与 UCD服务器的连接, 而通过与 CSP 服务器的连接就可以获取通过用户通过 UCD服务器上传的被分块的文件后, 从而避免终端另行与 UCD服务器建立连接的过程, 减化用户操作, 从而提高 用户体验。 As can be seen from the above embodiment, 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 connection with the CSP server can be obtained through the user through the UCD. After the server uploads the blocked file, the process of establishing a connection between the terminal and the UCD server is avoided, thereby reducing user operations and thereby improving user experience.
进一步的, 所述第一终端通过所述文件获取响应获取所述原始文件具体 为: 所述文件获取响应携带所述原始文件, 所述第一终端从文件获取响应中 获取所述原始文件; 或, 所述文件获取响应携带所述原始文件在所述第一 UCD服务器的存储地址;所述第一终端根据所述存储地址从所述第一 UCD服 务器中获取所述原始文件。  Further, the acquiring, by the first terminal, the original file by using the file obtaining response is: the file obtaining response carrying the original file, where the first terminal acquires the original file from a file obtaining response; or And the file obtaining 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 should be noted that, in the embodiment of the present invention, for convenience of description, the UCD server that receives the file deletion request is referred to as a second UCD server, and the UCD server that receives the download request and the file upload request is referred to as a first UCD server. The CSP server registered by the user is referred to as a third CSP server, and the CSP server that is used by the user to register the CSP server for storing the original file is referred to as a second CSP server. The CSP server that will store the original file (the 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 to be 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 will be deleted. 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 referred to as a first terminal, and the terminal connected to the UCD server is referred to as a second terminal.
图 2为本发明实施例提供的恢复会话内容传输的方法流程图, 包括如下步 骤:  2 is a flowchart of a method for restoring session content transmission according to an 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 by using the UCD client, where the file upload request carries the size information of the original file that the user needs to upload.
在执行此步骤之前, 终端通过用户在所述第一 UCD服务器的注册信息登 录所述第一 UCD服务器, 值得说明的是, 本发明流程中的终端与 UCD服务器 连接, 即为安装了 UCD客户端的终端, 被称为第二终端。  Before performing this step, the terminal logs in to the first UCD server by using the registration information of the user on the first UCD server. It is worth noting that the terminal in the process of the present invention is connected to the UCD server, that is, the UCD client is installed. The terminal is called a second terminal.
步骤 201、 第一 UCD服务器获取所述用户注册过的 CSP服务器的信息。 具体的, 第一 UCD服务器存储了用户在第三 CSP服务器处的注册信息。 如上所述, 本发明实施例中将用户注册过的 CSP服务器统称为第三 CSP服务 器。 所述用户在第三 CSP服务器处的注册信息包括第三 CSP服务器的标识(如 第三 CSP服务器的连接地址) 、 用户在第三 CSP服务器注册的账户名及密码。 第一 UCD服务器根据所述用户在第三 CSP服务器处的注册信息, 从所述第三 CSP服务器处获取第三 CSP服务器的信息, 所述第三 CSP服务器的信息包括用 户在该 CSP服务器的可用存储空间、 第三 CSP服务器支持的最大文件大小, 和 /或第三 CSP服务器的连接速度。 Step 201: The first UCD server acquires information about the CSP server that the user has registered. Specifically, the first UCD server stores the registration information of the user at the third CSP server. As described above, in the embodiment of the present invention, the CSP server registered by the user is collectively referred to as a third CSP service. Device. The registration information of the user at the third CSP server includes an identifier of the third CSP server (such as a connection address of the third CSP server), an account name and a password registered by the user at the third CSP server. The first UCD server acquires information of the third CSP server from the third CSP server according to the registration information of the user at the third CSP server, where the information of the third CSP server includes the user's availability at the CSP server. Storage space, maximum file size supported by the third CSP server, and/or 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 the CSP server A and the CSP server B respectively. Therefore, the first UCD server stores the registration information of the user on the CSP server A, the CSP server B, and the CSP server C, and respectively sends the registration information to the CSP server A. And CSP server B obtains information of CSP server A and CSP server B. CSP Server A, CSP Server C and CSP Server B are referred to as the third CSP server.
步骤 202、 第一 UCD服务器根据所述第三 CSP服务器的信息及原始文件 的大小信息确定用于上传所述原始文件的文件块的第二 CSP服务器。  Step 202: The first UCD server determines, according to the information of the third CSP server and the size information of the original file, a second CSP server for uploading the file block of the original file.
步骤 203、 第一 UCD服务器向第二终端发送的上传文件请求响应。  Step 203: The first UCD server requests a response to the upload file sent by 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, blocks the original file.
当文件上传完成后, 第一 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 information of the original file, such as Metadata of the original file, and saves the information of the original file in the first UCD server.
作为一个例子, 所述第三 CSP服务器的信息包含所述所述用户在所述第 三 CSP服务器的可用存储空间以及第三 CSP服务器支持的最大文件的大小; 所述根据所述第三 CSP服务器的信息及原始文件的大小信息确定用于上 传原始文件的文件块的第二 CSP服务器具体为: 确定所述可用存储空间大于 所述原始文件的大小, 且所述第三 CSP服务器支持的最大文件的大小大于所 述原始文件的大小的第三 CSP服务器作为用于上传文件块的第二 CSP服务器; 所述将文件块上传给所述第二 CSP服务器具体为: 将原始文件作为文件块上 传给所述第二 CSP服务器;或, 所述根据所述第三 CSP服务器的信息及原始文 件的大小信息确定用于上传所述原始文件的文件块的第二 CSP服务器具体 为: 确定可用存储空间大于所述第三 CSP服务器支持的最大文件的大小的至 少两个第三 CSP服务器作为用于上传文件块的第二 CSP服务器,根据确定的所 述至少两个第二 CSP服务器支持的最大文件的大小将所述原始文件分割成至 少两个文件块, 并将所述至少两个文件块分别上传到所述至少两个第二 CSP 服务器, 所述文件块的大小小于所述第二 CSP服务器支持的最大文件的大 小 。 As an example, the information of the third CSP server includes the available storage space of the user at the third CSP server and the size of a maximum file supported by the third CSP server; The information and the size information of the original file determine the second CSP server for uploading the file block of the original file, specifically: determining that the available storage space is larger than the size of the original file, and the maximum file supported by the third CSP server The third CSP server whose size 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 CSP server is specifically: using the original file as a file block And being sent to the second CSP server; or determining, according to the information of the third CSP server and the size information of the original file, the second CSP server for uploading the file block of the original file is: determining available storage At least two third CSP servers having a larger space than a maximum file size supported by the third CSP server as a second CSP server for uploading a file block, according to the determined maximum file supported by the at least two second CSP servers The size of the original file is divided into at least two file blocks, and the at least two file blocks are respectively uploaded to the at least two second CSP servers, the size of the file block is smaller than the second CSP server The size of the largest file supported.
比如, 在本实施例中, 第一 UCD服务器确定用户注册过的三个 CSP服务 器(即第三 CSP服务器 ) 中的 CSP服务器 A和 CSP服务器做为存储文件块的第 二 CSP服务器, 则将原始文件分割为到少两个文件块, 每个文件的大小小于 CSP服务器 A的支持 的最大文件的大小或小于 CSP服务器 B支持 的最大文件 施例在此不做限定。  For example, in this embodiment, the first UCD server determines that the CSP server A and the CSP server in the three CSP servers (ie, the third CSP server) registered by the user serve as the second CSP server that stores the file block, and then the original The file is divided into two file blocks. 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.
进一步的, UCD服务器存储原始文件的信息可以包括: 存储所述原始文 件的信息, 所述原始文件的信息包括: 原始文件的标识、 原始文件被分割的 文件块数量, 以及各文件块的文件块标识,以及存储所述各文件块的第二 CSP 服务器的标识, 以及所述各文件块在原始文件中的次序。  Further, the UCD server storing the information of the original file may include: storing information of the original file, where the information of the original file includes: an identifier of the original file, a number of file blocks in which the original file is divided, and a file block of each file block And an identifier of the second CSP server storing the file blocks, and an order of the file blocks in the original file.
可选的, 第一 UCD服务器存储的原始文件的信息还可以包含原始文件的 大小和原始文件被修改的时间。 值得说明的是, 本发明实施例中, 原始文件 指第二端向第一 UCD服务器发送的文件。  Optionally, the information of the original file stored by the first UCD server may further include the size of the original file and the time when the original file is modified. It should be noted that, in the embodiment of the present invention, the original file refers to a 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 file Parameter Chinese name description
MetadatalD 原始文件 可以是服务器分配的元数据  MetadatalD raw file can be server-assigned metadata
的标识  Identification
Filename 原始文件 原始文件名称  Filename original file original file name
的名称  The name
ModifiedTime 原始文件 文件最后一次修改的时间  ModifiedTime Original file The time of the last modification of the file
修改曰期  Revised period
Size 原始文件 原始文件的文件大小  Size Original file The file size of the original file
大小  Size
ChunkNum 文件块数 文件块数量, 当文件没有被分块存储时, 此参数  ChunkNum Number of file blocks The number of file blocks, this parameter is not stored when the file is not partitioned.
里 取值为 1, 当文件被分块时, 则此参数取值为具体 的文件块的数目  The value in 1 is 1, when the file is divided, the value of this parameter is the number of specific file blocks.
Chunklnfo 文件块信 文件块相关信息(Chunklnfo可能有多个, 依赖于 息 ChunkNum的数量 ) 原始文件的信息中包含的各文件块信息 Chunklnfo包括: 文件块标识(可 唯一标识文件块的标识) 、 存储文件块的 CSP信息(如 CSP的名称, 或 CSP的 地址)和文件块在原始文件中的次序。 进一步的, 文件块信息还可以包含文 件块大小和其它的文件块信息, 如文件块的名称等本发明实施例在此不做限 定。 此外, 对文件块标识, 如果第一 UCD服务器没有对原始文件进行分块, 文件块标识也可以是原始文件的标识。 具体的, 文件块信息可以如表 2所示: 表 2、 文件块信息  Chunklnfo file block letter file block related information (Chunklnfo may have multiple, depending on the number of ChunkNum) The file block information contained in the original file information Chunklnfo includes: File block identifier (identifiable to identify the file block), storage The CSP information of the file block (such as the name of the CSP, or the address of the CSP) and the order of the file blocks in the original file. Further, the file block information may further include a file block size and other file block information, such as a file block name, and the like, which is not limited herein. In addition, for the file block identifier, if the first UCD server does not block the original file, the file block identifier may also be the identifier of the original file. Specifically, the file block information can be as shown in Table 2: Table 2. File block information
Figure imgf000023_0001
ChunkName 文件块 文件块名称
Figure imgf000023_0001
ChunkName file block file block name
名称  Name
CSPInfo CSP服务 存储所述文件块的第二 CSP服务器的标, 如 CSP名 器的标 称, CSP的 URI等  CSPInfo CSP service The identifier of the second CSP server storing the file block, such as the name of the CSP name, the URI of the CSP, etc.
 Knowledge
Seq 文件块 文件块在原始文件中的次序, 用于恢复原始文件 在原 始  Seq file block The order of the file blocks in the original file, used to restore the original file at the beginning
文件 中  In the file
的次序  Order
Size 文件块 文件块的大小  Size file block size of the file block
UCD服务器根据所述原始文件的信息,为每个文件块生成文件块的信息 Chunkdata。 具体的, 文件块的信息包含: 文件块标识、 文件块来源 (如发送 文件块到 CSP的第一 UCD服务器的信息) , 文件块所属的原始文件的标识。 进一步的, 文件块的信息还可以包含文件块标识位, 用以表示是否是分割后 的文件块还是原始文件。 其中, 文件块的信息包含的信息如表 3所示: The UCD server generates information Chunkdata of the file block for each file block based on the information of the original file. Specifically, the file block information includes: a file block identifier, a file block source (such as information of a first UCD server that sends a file block to the CSP), and an identifier of the original file to which the file block belongs. Further, the information of the file block may further include a file block identifier bit to indicate whether it is a divided file block or an original file. The information contained in the file block is as shown in Table 3:
文件块的信息  File block information
Figure imgf000024_0001
作为一个例子, 当 UCD服务器传递给第二 CSP服务器的为原始文件, 即 UCD没有对原始文件分块时, 文件块标识为原始文件的标识, 文件块标识位 取值为 0。 当 UCD服务器传递给第二 CSP服务器的为分割后的文件块时: 文 件块标识位取值为 1
Figure imgf000024_0001
As an example, when the UCD server delivers the original file to the second CSP server, that is, the UCD does not block the original file, the file block identifier is the identifier of the original file, and the file block identifier bit takes a value of 0. When the UCD server passes the split file block to the second CSP server: The file block identifier bit has a value of 1
步骤 206或 206, , 第一 UCD服务器通过上传块请求服务器 Step 206 or 206, , the first UCD server requests the server by uploading a block
UploadChimkRequest向第二 CSP服务器上传文件块,其中所述上传块请求包含 所述原始文件的文件块、 所述第一 UCD服务器生成的文件块信息、 以及所述 用户在所述第一 CSP服务器的注册信息。 UploadChimkRequest uploads a file block to a second CSP server, wherein the upload block request includes a file block of the original file, file block information generated by the first UCD server, and registration of the user at the first CSP server information.
具体的, 第一 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 information of the original file. Further, the upload block request also carries the account name and password registered by the user on the second CSP server.
步骤 207或 207,、第二 CSP服务器接收完文件块及文件块对应的 Chunkdata 数据后, 根据上传块请求中的帐户名和密码对第一 UCD服务器进行验证, 并 在验证通过后存储所述文件块, 以及将所述文件块信息以及所述用户在所述 第一 CSP服务器的注册信息映射存储, 并向 UCD服务器返回服务器上传块响 应月良务器 UploadChimkResponse消息。  Step 207 or 207, after receiving the Chunkdata data corresponding to the file block and the file block, the second CSP server 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 mapping the file block information and the registration information of the user on the first CSP server, and returning a server upload block response server UploadChimkResponse message to the UCD server.
当 UCD 服务器向不同的第二 CSP服务器发送完不同的文件块及 Chunkdata数据, 并接收到所有的对应的返回确认消息后, 确认原始文件的不 同文件块已经被分别存储到不同的第二 CSP服务器处。  After the UCD server sends different file blocks and Chunkdata data to different second CSP servers, and receives all corresponding return confirmation messages, it is confirmed that different file blocks of the original file have been separately stored to different second CSP servers. At the office.
作为另一种可选方式, 第一 UCD服务器在执行步骤 206或 206之前, 先通 过用户在 CSP服务器注册的帐户信息建立与第二 CSP服务器的连接,然后通过 该连接向 CSP服务器发送上传块请求以上传文件块,以便第二 CSP服务器存储 所述文件块, 以及将所述文件块信息以及所述用户在所述第一 CSP服务器的 注册信息映射存储, 并向 UCD 服务器返回服务器上传块响应服务器 UploadChunkResponse消息。  As an alternative, the first UCD server first establishes a connection with the second CSP server by using the account information registered by the user on the CSP server before performing step 206 or 206, and then sends an upload block request to the CSP server through the connection. And uploading a file block, so that the second CSP server stores the file block, and storing the file block information and the registration information of the user on the first CSP server, and returning a 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, suppose the terminal needs to store the file in the CSP server: /home/test/A, Referred to as the original file A. The UCD client sends an upload file request message to the first UCD server, where the upload file request message carries the size information of the UCD server original file, /home/test/A. After receiving the upload file 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 is registered in CSP server A, CSP server B, and CSP server C, respectively, and the CSP server includes CSP server A, CSP server B, and CSP server C. The UCD server queries the information of the third CSP server that is registered by the user, and specifically sends: the user available resource query request to the CSP server A, the CSP server B, and the CSP server C, where the user available resource query request carries the first UCD server. The account name and password registered by the user on the CSP server. The first UCD server receives a response returned by each of the CSP server A, the CSP server B, and the CSP server C, where the response includes: a storage space available to the user in the CSP server, and a maximum file size supported by the CSP server. You can also include the connection speed. The first UCD server determines the CSP of the uploaded file to determine the second CSP server according to the description in step 202, for example, according to the acquired information of the CSP server and the size information of the original file. It is assumed that in the embodiment, the first UCD server determines to store the original file, /home/test/A, into the CSP server A, the CSP server B, and the 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, step 205 is executed, and the original file /home/test/A is divided into blocks, and the blocked file is processed through steps 206-207. Blocks A1-A3 are sent to CSP server A, CSP server B and CSP server C, respectively.
在另一个一实施例中, ¾殳该用户还需上传原始文件 /home/test/ B, 简称 原始文件8。 而第一 UCD服务器根据原始文件 B的大小, 和获取到的各 CSP服 务器的信息, 选择 CSP服务器 A作为第二 CSP服务器存储该原始文件, 并不对 原始文件 B进行块。 用户通过 UCD客户端经过第一 UCD服务器上传的原始文件 A和原始文件 B在 CSP服务器的存储示意图如图 3所示: 如图 3所示, 原始文件 A经由第一 UCD服务器分成文件块 A1-A3后, 分别存储到 CSP服务器 A, CSP服务器 B和 CSP服务器 C。 而原始文件 B经由第一 UCD服务器只存储到了 CSP服务器 A。 In another embodiment, the user also needs to upload the original file /home/test/B, referred to as the original file 8. The first UCD server selects the 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. The storage diagram of the original file A and the original file B uploaded by the user through the UCD client through the first UCD server in the CSP server is shown in FIG. 3: As shown in FIG. 3, the original file A is divided into file blocks A1- via the first UCD server. After A3, it is stored to CSP server A, CSP server B and CSP server C, respectively. The original file B is only stored to the CSP server A via the first UCD server.
第一 UCD服务器收到原始文件 A后进行分块,及存储的原始文件 A的信息 如表 4所示:  The first UCD server receives the original file A and then blocks it, and stores the original file A information as shown in Table 4:
表 4 原始文件 A的信息 Table 4 Information of the original file A
Metadatal Metadatal
df345gf56  Df345gf56
D  D
Filename /home/test/ A  Filename /home/test/ A
ModifiedT  ModifiedT
20130312  20130312
ime Ime
Size 500M  Size 500M
ChunkNu  ChunkNu
3  3
m m
ChunklD 4295294298cdf  ChunklD 4295294298cdf
ChunkN  ChunkN
A1  A1
Chunklnf ame  Chunklnf ame
o[1 ] CSPInfo http://CSPA.com/clouddisk/  o[1 ] CSPInfo http://CSPA.com/clouddisk/
Seq 1  Seq 1
Size 200M  Size 200M
ChunklD 123973192feju  ChunklD 123973192feju
ChunkN  ChunkN
A2  A2
Chunklnf Chunklnf ame  Chunklnf Chunklnf ame
0 o[2] CSPInfo http://CSPB.com/clouddisk/  0 o[2] CSPInfo http://CSPB.com/clouddisk/
Seq 2  Seq 2
Size 120M  Size 120M
ChunklD 873910748wev  ChunklD 873910748wev
ChunkN  ChunkN
A3  A3
Chunklnf ame  Chunklnf ame
o[3] CSPInfo http://CSPC.com/clouddisk/  o[3] CSPInfo http://CSPC.com/clouddisk/
Seq 3  Seq 3
Size 180M 第一 UCD服务器收到原始文件 B,及存储的原始文件 B的信息如表 5所示: 表 5 原始文件 B的信息 Metadatal Size 180M The first UCD server receives the original file B, and the stored original file B information is shown in Table 5: Table 5 Original file B information Metadatal
542jd989a3  542jd989a3
D  D
Filename /home/test /B  Filename /home/test /B
ModifiedT  ModifiedT
20130402  20130402
ime Ime
Size 140M  Size 140M
ChunkNu  ChunkNu
1  1
m m
ChunklD 542jd989a3  ChunklD 542jd989a3
ChunkN  ChunkN
B  B
ame  Ame
Chunklnf Chunklnf  Chunklnf Chunklnf
CSPInfo http://CSPA.com/cloudstorag CSPInfo http://CSPA.com/cloudstorag
0 o[1 ] 0 o[1 ]
e/  e/
Seq 1  Seq 1
Size 140M 第一 UCD服务器在对原始文件 A分块文件块 A1-A3后,针对文件块 A1-A3 分别生成的文件块的信息如下表所示:  Size 140M The first UCD server after the original file A is divided into file blocks A1-A3, the information of the file blocks generated for the file blocks A1-A3 are as follows:
表 6 文件块 A1的信息  Table 6 Information of file block A1
Chunkl 4295294298cdf Chunkl 4295294298cdf
D  D
ChunkB 1  ChunkB 1
it It
Source http://ucd月艮务器. com/cloudstorage  Source http://ucd server. com/cloudstorage
Metadat df345gf56  Metadat df345gf56
alD 表 7 文件块 A2的信息 alD Table 7 File Block A2 Information
Chunkl 123973192feju Chunkl 123973192feju
D  D
ChunkB 1  ChunkB 1
it Source http://ucd月艮务器. com/cloudstorage It Source http://ucd server. com/cloudstorage
Metadat df345gf56  Metadat df345gf56
alD 表 8 文件块 A3的信息  alD Table 8 File Block A3 Information
Chunkl 873910748wev Chunkl 873910748wev
D  D
ChunkB 1  ChunkB 1
it  It
Source http://ucd月艮务器. com/cloudstorage  Source http://ucd server. com/cloudstorage
Metadat df345gf56  Metadat df345gf56
alD 第一 UCD服务器在对原始文件 B没有进行分块,但上传的 CSP服务器的信 原始文件 B的信息  alD The first UCD server does not block the original file B, but the information of the uploaded CSP server is the original file B information.
Figure imgf000030_0001
图 4为本发明实施例提供的 CSP服务器在用户通过终端登录后, 为终端提 供服务的过程中, 终端获取用户存储在各 CSP服务器文件信息的流程图包括 如下步骤:
Figure imgf000030_0001
FIG. 4 is a flowchart of a method for a terminal to obtain a file information stored by a user in each CSP server in a process of providing a service to a terminal by a CSP server after the user logs in through the terminal according to the embodiment of the present invention, including the following steps:
步骤 400、 第一终端通过用户在 CSP服务器 B的注册信息登录 CSP服务器 B , 并接收 CSP服务器 B提供服务的过程中, 向 CSP服务器 B发送文件查询请 求 QueryRequest, 查看用户在 CSP服务器 B存储的文件信息。 值得说明的是, 本流程中的终端可以是包含 UCD客户端的终端, 也可以 是不包含 UCD客户端的终端。 为了描述的方便, 本实施例将连接 CSP服务器 的终端称为第一终端。 将第一终端连接的 CSP服务器称为第一 CSP服务器。 Step 400: The first terminal logs the CSP server B through the registration information of the CSP server B, and receives the file query request QueryRequest from the CSP server B in the process of receiving the service provided by the CSP server B, and checks the file stored by the user on the CSP server B. information. It should be noted that the terminal in this process may be a terminal that includes a UCD client, or a terminal that does not include a UCD client. For convenience of description, the terminal connected to the CSP server is referred to as a first terminal in this embodiment. The CSP server to which the first terminal is connected is referred to as a first CSP server.
步骤 401、 根据所述用户在所述第一 CSP服务器的注册信息获取所述用户 在所述第一 CSP服务器存储的文件块信息;  Step 401: Acquire, according to registration information of the user in the first CSP server, file block information that is stored by the user in the first CSP server.
具体的, CSP服务器 B根据用户在 CSP服务器 B的注册信息查询用户存储 当 Chimkdata信息中没有包含原始文件分割标识, 如 ChimkBit为 0时, 表 明 Chimkdata信息对应的文件内容为完整文件, 则直接执行步骤 406。 当 Chunkdata信息包含原始文件分割标识, 如 ChimkBit为 1时, 表明该 Chimkdata 信息对应的文件内容为某一文件的文件块, 则获取根据 Chunkdata信息中的 Source信息中的 UCD服务器的标识 (如即发送文件块到 CSP服务器 B的第一 UCD服务器的标识, 如第一 UCD服务器的地址) , 以及文件块所述的原始文 件的标识, 并执行步骤 402。  Specifically, the CSP server B queries the user store according to the registration information of the user on the CSP server B. When the Chimkdata information does not include the original file segmentation identifier, for example, when the ChimkBit is 0, indicating that the file content corresponding to the Chimkdata information is a complete file, the direct execution step is performed. 406. When the Chunkdata information includes the original file split identifier, such as when ChimkBit is 1, indicating that the file content corresponding to the Chimkdata information is a file block of a certain file, the identifier of the UCD server in the Source information according to the Chunkdata information is obtained (ie, sent) The identifier of the first UCD server 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 as described in the file block, and step 402 is performed.
步骤 402、 根据所述第一 UCD服务器的标识向第一 UCD服务器发送文件 块查询请求 QueryChunkRequest, 所述文件块查询请求中包含所述文件块所属 的原始文件的标识。  Step 402: Send a file block query request QueryChunkRequest to the first UCD server according to the identifier of the first UCD server, where the file block query request includes an identifier of the original file to which the file block belongs.
步骤 403、 第一 UCD 服务器根据接收到的原始文件的标识, 获取第一 UCD服务器存储的原始文件的信息。原始文件的信息包括: 原始文件的名称、 原始文件的标识和第一 UCD服务器的标识以及原始文件被分割的文件块数 量。 可选的, 第一 UCD服务器存储的原始文件的信息还可以包含原始文件的 大小和原始文件被修改的时间。 第一 UCD服务器并通过文件块查询响应 Step 403: The first UCD server obtains information about the original file stored by the first UCD server according to the identifier of the received original file. The information of the original file includes: the name of the original file, the identifier of the original file, the identifier of the first UCD server, and the number of file blocks in which the original file is divided. Optionally, the information of the original file stored by the first UCD server may further include the size of the original file and the time when the original file is modified. The first UCD server responds with a file block query
QueryChunkResponse , 将原始文件的信息 Metadata信息发送给 CSP B的服务 哭口 QueryChunkResponse , send the information of the original file Metadata information to the service 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 location The first terminal is described.
作为一种可选方式, CSP服务器 B还可以根据接收到的原始文件的信息, 生成统一视图, 并将原始文件的信息以统一视图的形式发送给终端。  As an optional method, the CSP server B can also generate a unified view according to the information of the original file received, and send the information of the original file to the terminal in a 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 obtains the original file information directly from the UCD server according to the Source information in the Chunkdata.
作为一个例子,假设第一终端登录到 CSP服务器 A后向 CSP服务器 A发送 查询请求 QueryRequest, 如可以在 CSP服务器提供的界面点击查询按钮。 具体 的, 用户终端向 CSP服务器 A发送查询请求为现有技术, 本发明实施例在此不 再详述。 CSP服务器 A根据用户的注册信息, 如用户的帐户名, 获取 CSP服 务器 A存储有该用户的文件 Al, B的文件块信息。 并通过存储的文件 A1的信息 得到 A1对应的 Chunkdata的 ChunkBit为 1, 即确定所述文件块标识位为原始文 件分割标识, 表明 A1为对原始文件分割后的文件块。 CSP服务器 A根据存储 的文件 A1的信息获取上传所述第一 UCD服务器的标识、 以及文件块所属的原 始文件的标识, 并通过第一服务器的标识 http :〃ucd服务器 . com/cloudstora ge向 第一 UCD服务器发送文件块查询请求。 其中, 文件块查询请求携带原始文件 的标识 MetadatalD: dG45gf56。 UCD服务器在收到文件块查询请求后, 根据 携带的原始文件的标识 MetadatalD: dfi45gf56, 获取与 dG45gf56对应的 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 logs in to the CSP server A and sends a query request QueryRequest to the CSP server A. For example, the query button can be clicked on the interface provided by the CSP server. Specifically, the user terminal sends the query request to the CSP server A as a prior art, and the embodiment of the present invention will not be described in detail herein. The CSP server A obtains the file block information of the file Al, B of the user stored by the CSP server A according to the registration information of the user, such as the account name of the user. And the ChunkBit of the Chunkdata corresponding to A1 is obtained by the information of the stored file A1, that is, the file block identifier is determined to be the original file segmentation identifier, indicating that A1 is a file block after the original file is divided. The CSP server A obtains the identifier of the first UCD server and the identifier of the original file to which the file block belongs according to the information of the stored file A1, and passes the identifier of the first server http: 〃ucd server. com/cloudstora ge A UCD server sends a file block query request. The file block query request carries the identifier of the original file MetadatalD: dG45gf56. After receiving the file block query request, the UCD server obtains the Metadata information corresponding to dG45gf56 according to the identifier of the original file carried, MetadatalD: dfi45gf56, and returns the Metadata information (Filename, ModifiedTime, Size, ChunkNum) to the CSP server A. In addition, the CSP server A further obtains the information of the file B according to the account name of the user, and obtains the ChunkBit in the file block information of the file B to be 0, and determines that the file B stored by the CSP server is the original file. The CSP server generates a unified view according to the obtained information of the original file A and the file block information of the original file B, and provides the unified view 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 a file stored by the CSP server to the user stored in the CSP server. As shown in FIG. 5, the file information uploaded by the CSP and the file information uploaded by the first UCD server are divided into two parts, and the file information uploaded by the first UCD server includes: a name of the original file, Original document identification and first UCD server ID (such as the first UCD server address, etc.). Further, if the user uploads files through multiple first UCD servers, it may be separately listed for each first UCD server. This article will not be detailed. 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 source. Metadata information.
图 6为本发明实施例提供的获取通过 UCD服务器上传的文件的方法流程 图, 如图 6所示, 包含以下步骤:  FIG. 6 is a flowchart of a method for obtaining a file uploaded by a UCD server according to an embodiment of the present invention. As shown in FIG. 6, the method includes 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 in the CSP server B, and obtains the information of the file stored by the user on the CSP server. After FIG. 5, the file download request is sent to the CSP server B. The file download request carries the identifier of the original file and the name of the original file. Further, the file download request may further include information such as the number of file blocks (chunkNum information), and/or the identifier of the first UCD server, and the modification time of the original file.
步骤 601、 CSP服务器 B根据原始文件的标识确定该原始文件的标识对应 的原始文件是否被分割为文件块。  Step 601: The CSP server B determines, according to the identifier of the original file, whether the original file corresponding to the identifier of the original file is divided into file blocks.
具体的, 如果文件下载请求中包含了文件块数量信息, 且文件块数量小 于或等于 1时, 表明原始文件的标识对应的原始文件没有被分为文件块, 用户 可通过终端直接从 CSP下载与原始文件的标识对应的文件, 而不再执行后面 的步骤。 作为一种可选方式, 如果文件下载请求中包含了文件块数量信息, 且文件块数量大于 1时,文件下载请求中可以进一步包含第一 UCD服务器的标 识, 且执行步骤 602。  Specifically, if the file download request includes the file block quantity information, and the number of file blocks is less than or equal to 1, the original file corresponding to the identifier of the original file is not divided into file blocks, and the user can directly download from the CSP through the terminal. The original file is identified by the corresponding file, and the subsequent steps are no longer performed. As an alternative, if the file download request includes the file block quantity 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. 步骤 602、 根据所述第一 UCD服务器的标识向所述第一 UCD服务器发送 文件获取请求, 所述文件获取请求携带所述原始文件的标识。 所述文件获取 请求用于指示所述第一 UCD服务器根据所述原始文件的标识获取存储的原始 文件的信息, 并根据所述原始文件的信息中存储文件块的第二 CSP服务器的 标识,从所述第二 CSP服务器的标识指示的第二 CSP服务器获取文件块, 并将 所述获取的文件块合成为原始文件。 As an alternative, the CSP server B obtains the stored information of the original file corresponding to the identifier of the original file according to the identifier of the original file, where the information of the original file includes: an identifier of the original file and the first An identifier of the UCD server and a number of file blocks in which the original file is divided; the first CSP server determines that the number of file blocks in which the original file is divided is greater than 1, and acquires the first UCD server from the information of the original file Logo. Then, step 602 is performed. Step 602, sending, according to the identifier of the first UCD server, to the first UCD server. a file acquisition request, the file acquisition request carrying an identifier of the original file. The file obtaining request is used to instruct the first UCD server to obtain information of the stored original file according to the identifier of the original file, and to store the identifier of the second CSP server of the file block according to the information of the original file. The second CSP server indicated by the identifier of the second CSP server acquires a file block, and synthesizes the obtained file block into an original file.
进一步的, 第一 UCD服务器根据接收到的原始文件的标识,获取存储在 UCD服务器的原始文件的信息,所述原始文件的信息包括存储文件块的第二 CSP服务器的标识,第二 CSP服务器存储的文件块标识以及所述文件块在原始 文件中的次序。  Further, the first UCD server acquires information of the original file stored in the UCD server according to the identifier of the received original file, where the information of the original file includes an identifier of the second CSP server storing the file block, and the second CSP server stores The file block identifier and the order of the file blocks in the original file.
步骤 603或步骤 603' , 根据所述第二 CSP服务器的标识, 向存储文件块 的第二 CSP服务器发送文件块下载请求, 文件块下载请求中携带 ChunkID。  Step 603 or step 603 ′, sending a file block download request to the second CSP server storing the file block according to the identifier of the second CSP server, where the file block download request carries a ChunkID.
步骤 604或步骤 604' , 第二 CSP服务器接收文件块下载请求后, 向第一 UCD服务器发送与 ChunklD对应的文件块, 并向第一 UCD服务器发送文件块 下载响应。  Step 604 or step 604', after receiving the file block download request, the second CSP server sends a file block corresponding to ChunklD to the first UCD server, and sends a file block download response to the first UCD server.
作为一种可选方式, 文件块可在携带在文件块下载响应中发送给第一 As an alternative, the file block can be sent to the first in the file block download response
UCD服务器。 UCD server.
步骤 605、第一 UCD服务器根据所述从所述第二 CSP服务器获取的文件块 在原始文件中的次序, 将各个从所述第二 CSP服务器获取的文件块合并为所 述原始文件。  Step 605: The first UCD server merges the file blocks acquired from the second CSP server into the original file according to the order of the file blocks acquired from the second CSP server in the original file.
步骤 606、 第一 UCD服务器通过向 CSP服务器 B发送文件获取响应, 所述 文件获取响应中携带将合并后的文件(即原始文件)在第一 UCD服务器上的 存 4诸地址, 口统一资源定位符: Uniform Resource Locator, URL。  Step 606: The first UCD server obtains a response by sending a file to the CSP server B, where the file acquisition response carries the addresses of the merged file (ie, the original file) on the first UCD server, and the unified resource location of the port is obtained. Symbol: Uniform Resource Locator, URL.
步骤 607、 CSP服务器向终端发送文件下载响应, 所述文件下载响应中携 带合并后的文件 (即原始文件)在第一 UCD服务器上的存储地址。  Step 607: The CSP server sends a file download response to the terminal, where the file download response carries the storage address of the merged file (ie, the original file) on the first UCD server.
步骤 608、 终端通过所述 URL从第一 UCD服务器中获取文件。  Step 608: The terminal acquires a file from the first UCD server by using the URL.
值得说明的是: 第一 UCD服务器还可以在步骤 606中直接将步骤 605合并 的原始文件发送给 CSP服务器 B, 以便于 CSP服务器 B在步骤 607中将原始文件 发送给终端。 从而不在执行步骤 608. It is worth noting that: the first UCD server may also merge step 605 directly in step 606. The original file is sent to the CSP server B, so that the CSP server B sends the original file to the terminal in step 607. Therefore, 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的标识 MetadatalD: dG45gf56。 UCD服务器根据 MetadatalD可获得存储 的与 dG45gf56对应原始文件的信息。 UCD 服务器根据存储的原始文件的信 息, 确定原始文件 A被分割为 3个文件块, 分别存储在 CSP 服务器 A、 CSP 服务器 B、 CSP服务器 C, 则根据每个文件块的 ChimkID, 向对应的 CSP服 务器发送文件块下载请求, 以分别从这三个 CSP处下载文件块 Al, A2, A3。 在收到文件块 Al, 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 to send a file download request to the CSP server A. The request in the file download request carries the identifier of the original file /home/test/A, and/or the number of file blocks (ChunkNum information). Since the ChunkNum in the request of the file is greater than 1, the CSP server B determines that the file stored by the CSP server B is a chunk file, and according to the identifier of the first UCD server included in the file download request, to the http://ucd server. .com/cloudstorage sends a file get request. The file acquisition request carries the identifier of the original file A, MetadatalD: dG45gf56. The UCD server can obtain the stored information of the original file corresponding to dG45gf56 according to MetadatalD. The UCD server determines that the original file A is divided into three file blocks according to the stored original file information, and is stored in the CSP server A, the CSP server B, and the CSP server C, respectively, according to the ChimkID of each file block, to the corresponding CSP. The server sends a file block download request to download the file blocks Al, A2, A3 from the three CSPs, respectively. Upon receiving the file blocks Al, A2, A3, the three file blocks are merged into the original file according to the corresponding order information of 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 can download the file directly 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。 图 7为本发明实施例提供的能通过 CSP服务器删除文件的方法流程图, 如 图 7所示, 包含以下步骤:  Similarly, when the terminal logs in to the CSP server B and clicks to download the file block B, the CSP server B queries to obtain the ChunkNum corresponding to the original file B, indicating that the file is not split, and the user directly downloads the file from the CSP server B. Home/test/B. FIG. 7 is a flowchart of a method for deleting a file by using a CSP server according to an embodiment of the present invention. As shown in FIG. 7, the method includes 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 by using the account information registered by the user on the CSP server B, the user obtains the text stored by the user on the CSP server by executing the process corresponding to FIG. 4 A schematic diagram of the device, as shown in FIG. 5, sends a file deletion request to the CSP server B, where the file deletion request carries the identifier of the file to be deleted.
具体的,终端可以点击示意图中的某个文件对应的删除按钮,向第一 CSP 服务器, 如 CSP服务器 B发送文件删除请求。 文件删除请求中包含了从统一视 图中获得的需删除的文件的标识( MetadatalD ) , 和 /或需删除的文件的文件 名称, 和 /或第二 UCD服务器的标识。 进一步的, 文件删除请求中还可以包含 文件块数量(ChunkNum信息) , 和 /或第二 UCD服务器的标识, 和需删除的 文件的修改时间等信息还可以包含来源( source信息),文件块数( ChunkNum 信息) 。  Specifically, the terminal may click a delete button corresponding to a file in the schematic diagram to send a file deletion request to the first CSP server, such as CSP server B. The file deletion request contains the identifier (metadatalD) 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 further include a file block quantity (ChunkNum information), and/or a second UCD server identifier, and a modification time of the file to be deleted, and the like, and may also include a source (source information), the number of file blocks. ( ChunkNum information).
步骤 701、 CSP服务器 B根据文件删除请求中包含的第二 UCD服务器的标 识向第二 UCD服务器发送文件删除请求,如服务器 DelFileRequestt。 所述文件 删除请求中携带需删除的文件的标识。  Step 701: The CSP server B sends a file deletion request, such as the server DelFileRequestt, to the second UCD server according to the identifier of the second UCD server included in the file deletion request. The file deletion request carries the identifier of the file to be deleted.
具体的, 在执行该步骤之前, CSP服务器 B确定与所述需删除的文件的 标识对应的需删除的文件被分块, 并获取上传所述需删除的文件的文件块的 第二 UCD服务器的标识。  Specifically, before performing the step, the CSP server B determines that the file to be deleted corresponding to the identifier of the file to be deleted is divided, and acquires a 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: a number of file blocks to be deleted, and an identifier of the second UCD server; the first CSP server determines a file corresponding to the identifier of the file to be deleted And the identifier of the second UCD server is determined to be: 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 request from the file. Obtaining an identifier 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 the identifier of the second UCD server is obtained by: the first CSP server obtains the identifier of the file to be deleted 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 deletion The number of file blocks that are divided by the file; the first The CSP server determines that the number of the file blocks to be deleted that are to be deleted is greater than 1, and obtains the identifier of the second UCD server from the information of the file to be deleted.
步骤 702或步骤 702, 、 第二 UCD服务器向存储文件块的第四 CSP服务器 发送文件块删除请求, 如服务器 DelChunkRequest, 所述文件块删除请求中携 带所述第四 CSP服务器存储的文件志的标识, 所述文件删除请求用于指示所 述第四 CSP服务器删除与所述第四 CSP服务器存储的文件块标识对应的文件 块及文件块的信息。  In step 702 or step 702, the second UCD server sends a file block deletion request to the fourth CSP server that stores the file block, such as the server DelChunkRequest, where the file block deletion request carries the identifier of the file stored by the fourth CSP server. And the file deletion request is used to instruct the fourth CSP server to delete the information of the file block and the file block corresponding to the file block identifier stored by the fourth CSP server.
在执行此步骤之前, 第二 UCD服务器根据所述需删除的文件的标识获取 存储的与所述需删除的文件的标识对应的需删除的文件的信息, 所述需删除 的文件的信息包含存储所述需删除文件的文件块的第四 CSP服务器的标识、 各第四 CSP服务器存储的文件块的标识。  Before performing the step, the second UCD server obtains, according to the identifier of the file to be deleted, information about the file to be deleted corresponding to the identifier of the file to be deleted, and the information of the file to be deleted includes storage. The identifier of the fourth CSP server of the file block of the file to be deleted, and the identifier of the file block stored by each fourth CSP server.
步骤 703或步骤 703, , 第四 CSP服务器接收文件块删除请求后, 根据文 器发送文件块删除响应服务器 DelChunkResponse。 进一步的, 文件块删除响 应中还包含文件删除是否成功的标识。  Step 703 or step 703, after receiving the file block deletion request, the fourth CSP server deletes the response server DelChunkResponse according to the file sending file block. Further, the file block deletion response also includes an identifier indicating whether the file deletion is successful.
步骤 704、第二 UCD服务器确定接收到发出的文件块删除请求对应的响应 后, 删除第二 UCD服务器存储的需删除的文件的信息, 并向 CSP服务器 B发送 文件删除响应 CSPDelFileResponse,响应中携带标识位,标识文件成功被删除; 具体的, 在删除第二 UCD服务器存储的需删除的文件的信息之前, 第二 UCD服务器需确定所有的第四 CSP服务器均返回了文件块删除响应, 且文件 块删除响应均包含了文件成功被删除的标识。  Step 704: After determining that the response corresponding to the sent file block deletion request is received, the second UCD server deletes the information of the file to be deleted stored by the second UCD server, and sends a file deletion response CSPDelFileResponse to the CSP server B, where the identifier carries the identifier. Bit, the identification file is successfully deleted; specifically, before deleting the information of the file to be deleted stored by the second UCD server, the second UCD server needs to determine that all the fourth CSP servers return the file block deletion response, and the file block The delete response contains the ID of the file that was successfully deleted.
步骤 705、 CSP服务器 B向第一终端发送文件删除响应 DelFileResponse , 响应中携带标识位, 标识文件删除成功。  Step 705: The CSP server B sends a file deletion response DelFileResponse to the first terminal, and the identifier carries the identifier bit, and the identifier file is deleted successfully.
由以上实施例可以看出, 通过本发明的实施例, 终端可以不用直接连接 UCD服务器, 而直接连接 CSP服务器的情况下, 可以通过 CSP服务器管理(由 下载, 删除)用户通过装有 UCD客户端的终端通过 UCD服务器上传到 CSP服 务器的文件。 从而方便用户管理文件, 提高用户体验。 图 8为本发明实施例提供的一种提供文件的方法, 包括如下步骤: 步骤 801、统一云磁盘 UCD服务器接收第一云服务提供商 CSP服务器发送 的文件获取请求, 所述文件获取请求携带原始文件的标识; It can be seen from the above embodiment that, by using the embodiment of the present invention, the terminal can directly connect to the UCD server and directly connect to the CSP server, and can be managed (by downloading, deleting) by the CSP server through the UCD client. The terminal uploads to the CSP service through the UCD server. Server file. This makes it easy for users to manage files and improve the user experience. FIG. 8 is a schematic diagram of a method for providing a file according to an embodiment of the present invention, including the following steps: Step 801: A unified cloud disk UCD server receives a file obtaining request sent by a first cloud service provider CSP server, where the file obtaining request carries an original Identification of the file;
步骤 802、根据所述原始文件的标识获取存储的与所述原始文件的标识对 应的原始文件的信息, 所述原始文件的信息包括存储文件块的第二 CSP服务 器的标识, 第二 CSP服务器存储的文件块标识以及所述文件块在原始文件中 的次序;  Step 802: Acquire, according to the identifier of the original file, the stored information of the original file corresponding to the identifier of the original file, where the information of the original file includes an identifier of a second CSP server storing the file block, and the second CSP server stores File block identifier and the order of the file blocks in the original file;
步骤 803、 根据所述第二 CSP服务器的标识, 从所述第二 CSP服务器的标 识指示的第二 CSP服务器获取与所述第二 CSP服务器存储的文件块标识对应 的文件块;  Step 803: Obtain, according to the identifier of the second CSP server, a file block corresponding to the file block identifier stored by the second CSP server from the second CSP server indicated by the identifier of the second CSP server;
步骤 804、 根据所述从所述第二 CSP服务器获取的文件块在原始文件中的 次序, 将各个从所述第二 CSP服务器获取的文件块合并为所述原始文件, 以 及将所述原始文件提供给第一终端。  Step 804: Combine each file block acquired from the second CSP server into the original file according to the order of the file blocks acquired from the second CSP server in 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 may perform any of the steps performed by the UCD server (including the first UCD server and the second UCD server) in the processes of FIG. 1 to FIG. 7, and the embodiments of the present invention are not described in detail herein.
由本实施例提 UCD服务器, 可以使得终端通过 CSP服务器也可以获得通 过 UCD服务器上传到 CSP服务器的文件, 从而提高用户的体验。  The UCD server is provided in this embodiment, so that the terminal can also obtain the file uploaded to the CSP server through the UCD server through the CSP server, thereby improving the user experience.
图 9为本发明实施例提供的 CSP服务器的结构示意图, 包括: 接收单元 901、 确定获取单元 902、 发送单元 903、 存储单元 904。 具体的  FIG. 9 is a schematic structural diagram of a CSP server according to an embodiment of the present invention, including: a receiving unit 901, a determining obtaining 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: after the first terminal logs in to the CSP server by using registration information of the CSP server by the user, and the CSP server provides a service to the first terminal, receiving, by the first terminal, a file download request, where the file download request carries an identifier of the original file, and sends the identifier of the original file to the determining acquisition unit; a 902, configured to receive an identifier of the original file sent by the receiving unit, determine that an original file corresponding to the identifier of the original file is divided, and obtain a first unified cloud that uploads a file block of the original file An identifier of the disk UCD server, and sending the identifier of the first UCD server to the sending unit; the sending unit 903, configured to receive the identifier of the first UCD server sent by the determining receiving unit, and according to the first The identifier of the UCD server sends a file acquisition request to the first UCD server, where the file acquisition request carries an identifier of the original file, and the file acquisition request is used to indicate that the first UCD server is based on the identifier of the original file. Obtaining information of the stored original file, and acquiring a file block from the second CSP server indicated by the identifier of the second CSP server according to the identifier of the second CSP server corresponding to the file block in the information of the meta-start file, and The obtained file block is synthesized into an original file;
所述接收单元进一步用于接收所述第一 UCD服务器返回的文件获取响 应, 并将所述文件获取响应发送给所述发送单元, 所述发送单元进一步用于 接收所述接收单元发送的文件获取响应, 并将所述文件获取响应发送给所述 第一终端, 以指示所述第一终端通过所述文件获取响应获取所述原始文件。  The receiving unit is further configured to receive a file acquisition response returned by the first UCD server, and send the file acquisition response to the sending unit, where the sending unit is further configured to receive file acquisition sent by the receiving unit Responding to, and sending the file acquisition response to the first terminal, to instruct the first terminal to acquire the original file by using 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: before receiving the file download request sent by the first terminal, receive a query request sent by the first terminal, and The query request is sent to the determination obtaining unit 902; the determining obtaining unit 902 is further configured to receive the query request sent by the receiving unit, and obtain the user according to the registration information of the user in the first CSP server. File block information stored by the storage unit, the file block information includes an identifier of the first UCD server, and an identifier of an original file to which the file block belongs, and the identifier of the original file and the first UCD server The identifier is sent to the sending unit 903; the sending unit 903 is further configured to receive the identifier of the original file sent by the determining acquiring unit and the identifier of the first UCD server, according to the first UCD server Identifying, by the identifier, sending a file block query request to the first UCD server, where the file block query request includes the file block Identification of the original file belongs; the information of the original document is returned to the first UCD server receiving unit 901 is further configured to receive the said return of the original The information of the file includes: a name of the original file, an identifier of the original file, an identifier of the first UCD server, and a number of file blocks in which the original file is divided, and transmits information of the original file to the sending unit 903 and the storage. The unit 904 is configured to receive information about an original file sent by the receiving unit, and store information of the original file. The sending unit 903 is further configured to receive information about an original file 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 information of the original file to the first terminal.
进一步的, 所述文件块信息进一步包含文件块标识位;所述发送单元 903根 据所述第一 UCD服务器的标识向所述第一 UCD服务器发送文件块查询请求 之前,所述确定获取单元进一步确定所述文件块标识位为原始文件分割标识。  Further, the file block information further includes a file block identifier bit; and before the sending unit 903 sends the file block query request to the first UCD server according to the identifier of the first UCD server, the determining acquiring unit further determines The file block identifier is an original file split identifier.
进一步的, 所述文件下载请求中进一步包含: 原始文件被分割的文件块 数量, 以及所述第一 UCD服务器的标识; 所述确定获取单元 902确定与所述原 始文件的标识对应的原始文件被分块, 并获取第一统一云磁盘 UCD服务器的 标识具体为: 所述第一 CSP服务器确定所述原始文件被分割的文件块数量大 于 1, 并从所述文件下载请求中获取所述第一 UCD服务器的标识;或, 所述确 定获取单元 902确定与所述原始文件的标识对应的原始文件被分块,并获取第 一统一云磁盘 UCD服务器的标识具体为: 所述第一 CSP服务器根据所述原始 文件的标识获取存储的与所述原始文件的标识对应的原始文件的信息, 所述 原始文件的信息包含: 原始文件的标识和第一 UCD服务器的标识以及原始文 件被分割的文件块数量; 所述第一 CSP服务器确定所述原始文件被分割的文 件块数量大于 1, 并从所述原始文件的信息中获取所述第一 UCD服务器的标 识。  Further, the file download request further includes: a quantity of the file block in which the original file is divided, and an identifier of the first UCD server; the determining acquiring unit 902 determines that the original file corresponding to the identifier of the original file is And determining, by the first CSP server, that the number of file blocks in which the original file is divided is greater than 1, and acquiring the first file from the file download request. The identifier of the UCD server; or, the determining the obtaining unit 902 determines that the original file corresponding to the identifier of the original file is fragmented, and obtains the identifier of the first unified cloud disk UCD server, specifically: the first CSP server is configured according to The identifier of the original file acquires the stored information of the original file corresponding to the identifier of the original file, where the information of the original file includes: an identifier of the original file and an identifier of the first UCD server and a file block in which the original file is divided a quantity; the first CSP server determines a file block in which the original file is divided The number is greater than 1, and the identification of the first UCD server is obtained from the information of the original file.
进一步的, 所述接收单元 901进一步用于接收所述第一 UCD服务器发送的 上传块请求;所述上传块请求包含所述原始文件的文件块以及所述第一 UCD 服务器生成的文件块信息, 以及所述用户在所述第一 CSP服务器的注册信息; 所述存储单元 904进一步用于接收所述接收单元发送的上传块请求,存储所述 文件块以及将所述文件块信息和所述用户在所述第一 CSP服务器的注册信息 映射存储。 Further, the receiving unit 901 is further configured to receive an upload block request sent by the first UCD server, where the upload block request includes a file block of the original file and 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 an upload block request sent by the receiving unit, and store the And storing the file block information and the registration information of the user at 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 configured to send, by the first terminal, a file deletion request, where the file deletion request carries an identifier of the file to be deleted, and sends the identifier of the file to be deleted to the determining acquiring unit. The determining obtaining unit 902 is further configured to receive an identifier of the file to be deleted sent by the receiving unit, determine that the file to be deleted corresponding to the identifier of the file to be deleted is divided, and obtain the required content for uploading An identifier of the second UCD server of the file block of the deleted file, and sending the identifier of the second UCD server to the sending unit; the sending unit 903 is further configured to receive the second sent by the determining acquiring unit The identifier of the UCD server sends the file deletion request to the second UCD server according to the identifier of the second UCD server, where the file deletion request is used to instruct the second UCD server to store the file of the file to be deleted. The fourth CSP server of the block sends a file block deletion request, and receives the file block returned by the fourth CSP server After deleting the response, deleting the information of the file to be deleted stored by the second UCD server and returning a file deletion response to the first CSP server; the receiving unit 901 is further configured to receive the file deletion response returned by the second UCD server, and Sending the file deletion response to the sending unit; the sending unit 902 is further configured to receive the file deletion response sent by the receiving unit, and send a file deletion response to the first terminal.
进一步的, 所述文件删除请求中进一步包含: 需删除的文件被分割的文 件块数量, 以及第二 UCD服务器的标识;所述确定获取单元确定与所述需删除 的文件的标识对应的原始文件被分块,并获取第二 UCD服务器的标识具体为: 确定所述文件删除请求中所述需删除的文件被分割的文件块数量大于 1,并从 所述文件删除请求中获取所述第二 UCD服务器的标识; 或, 所述确定获取单 元 902确定与所述需删除的文件的标识对应的文件被分块, 并获取第二 UCD 服务器的标识具体为: 所述第一 CSP服务器根据所述需删除的文件的标识获 取存储的与所述需删除的文件的标识对应的需删除的文件的信息, 所述需删 除的文件的信息包含: 所述需删除的文件的标识、 第二 UCD服务器的标识以 及所述需删除的文件被分割的文件块数量;确定存储的所述需删除的文件被 分割的文件块数量大于 1,并从所述需删除的文件的信息中获取所述第二 UCD 服务器的标识。 Further, the file deletion request further includes: a number of file blocks to be deleted, and an identifier of the second UCD server; and the determining obtaining unit determines an original file corresponding to the identifier of the file to be deleted And the identifier of the second UCD server is determined to be: determining that the number of file blocks to be deleted in the file deletion request is greater than 1 and obtaining the second from the file deletion request An identifier of the UCD server; or, the determining the obtaining unit 902 determines that the file corresponding to the identifier of the file to be deleted is divided into blocks, and acquiring the identifier of the second UCD server is specifically: the first CSP server according to the The identifier of the file to be deleted is obtained by the identifier of the file to be deleted, and the information of the file to be deleted includes: the identifier of the file to be deleted, and the second UCD server. Logo And determining, by the number of the file blocks to be deleted, the number of file blocks to be deleted, the number of file blocks to be deleted is greater than 1, and acquiring the second UCD server from the information of the file to be deleted. Logo.
在上述装置实施例中, 存储单元可以为存储器(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 may be a random access memory (RAM), or may be a read only memory (ROM, -ead Only Memory). The example is not limited here.
图 10为本发明实施例提供的终端的结构示意图, 包括: 收发器 1001、 存 储器 1002、 处理器 1003。 具体的  FIG. 10 is a schematic structural diagram of a terminal according to 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 configured to receive, after the first terminal logs in to the CSP server by using registration information of the CSP server by the user, and the CSP server provides a service to the first terminal, receiving the first terminal. a file download request, where the file download request carries an identifier of the original file; the memory 1002 is configured to store various programs and applications, and execute functions of the programs and applications under the call of the processor; The processor 1003 is configured to invoke, by using a memory, various identifiers of the first unified cloud disk UCD server that upload the file block of the original file, and send a file acquisition request to the first UCD server according to the identifier of the first UCD server. The file obtaining request carries an identifier of the original file, where the file obtaining request is used to instruct the first UCD server to obtain information of the stored original file according to the identifier of the original file, and according to the original file The identifier of the second CSP server storing the file block in the information, from the identifier of the second CSP server The second CSP server obtains a file block, and synthesizes the obtained file block into an original file; the transceiver 1001 is further used for a file acquisition response returned by the first UCD server, and acquires the file response Sending to the first terminal, to instruct the first terminal to acquire the original file by using the file acquisition response.
此外, 处理器 1003还可以用于执行方法实施例中图 1到图 7描述的 CSP服 务器或 CSP服务器包含的功能模块执行的各步骤, 本发明实施例在此不再详 述。 图 11为本发明实施例提供的一种统一云磁盘 UCD服务器, 包括接收单元 1101 , 确定获取单元 1102, 发送单元 1103, 存储单元 1104和删除单元 1105, 具体的, In addition, the processor 1003 may also be used to perform the steps performed by the function modules included in the CSP server or the CSP server described in FIG. 1 to FIG. 7 in the method embodiment, and the embodiments of the present invention are not described in detail herein. FIG. 11 is a unified cloud disk UCD server according to an embodiment of the present invention, including a receiving unit 1101, a determining acquiring unit 1102, a sending unit 1103, a storage unit 1104, and a deleting unit 1105. Specifically,
接收单元 1101, 用于接收第一云服务提供商 CSP服务器发送的文件获取 请求, 所述文件获取请求携带原始文件的标识;并将所述原始文件的标识发送 给确定获取单元 1102;  The receiving unit 1101 is configured to receive a file obtaining request sent by the first cloud service provider CSP server, where the file obtaining request carries the identifier of the original file, and sends the identifier of the original file to the determining obtaining unit 1102;
所述确定获取单元 1102用于接收所述接收单元发送的所述原始文件的标 识, 根据所述原始文件的标识获取存储的与所述原始文件的标识对应的原始 文件的信息, 所述原始文件的信息包括存储文件块的第二 CSP服务器的标识, 第二 CSP服务器存储的文件块标识以及所述文件块在原始文件中的次序;以及 根据所述第二 CSP服务器的标识, 从所述第二 CSP服务器的标识指示的第二 CSP服务器获取与所述第二 CSP服务器存储的文件块标识对应的文件块;以及  The determining obtaining unit 1102 is configured to receive an identifier of the original file sent by the receiving unit, and obtain, according to the identifier of the original file, information about an original file that is stored corresponding to the identifier of the original file, where the original file is The information includes an identifier of the second CSP server storing the file block, a file block identifier stored by the second CSP server, and an order of the file block in the original file; and according to the identifier of the second CSP server, from the The second CSP server indicated by the identifier of the second CSP server acquires a file block corresponding to the file block identifier stored by the second CSP server;
1103; 1103;
所述发送单元 1103用于接收所述确定获取单元发送的文件块以及所述文 件块在原始文件中的次序, 根据所述文件块在原始文件中的次序, 将各个从 所述第二 CSP服务器获取的文件块合并为所述原始文件, 以及将所述原始文 件提供给第一终端。  The sending unit 1103 is configured to receive the file block sent by the determining acquiring unit and the order of the file block in the original file, according to the order of the file block in the original file, each from the second CSP server The obtained file blocks are merged into the original file, and the original file is provided to the first terminal.
进一步的, 所述发送单元 1103将所述原始文件提供给第一终端具体为: 向第一 CSP服务器返回文件获取响应, 所述文件获取响应携带所述原始 文件;所述文件获取响应用于指示所述第一 CSP服务器接收到所述文件获取响 应发送给所述第一终端; 或,向所述第一 CSP服务器返回文件获取响应, 所述 文件获取响应携带所述原始文件在所述 UCD服务器的存储地址;所述文件获 取响应用于指示所述第一 CSP服务器将所述文件获取响应发送给所述第一终 端, 以及指示所述第一终端根据所述存储地址获取所述原始文件。  Further, the sending unit 1103 provides the original file to the first terminal, specifically: returning a file obtaining response to the first CSP server, where the file obtaining response carries the original file; and the file obtaining response is used to indicate Receiving, by the first CSP server, the file acquisition response to the first terminal; or returning a file acquisition response to the first CSP server, where the file acquisition response carries 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 acquire the original file according to the storage address.
进一步的, 所述接收单元 1101在第二终端通过用户在所述 UCD服务器的 注册信息登录所述 UCD服务器后进一步用于接收所述第二终端发送的文件上 传请求, 所述文件上传请求携带了用户需上传的原始文件的大小; Further, the receiving unit 1101 is at the second terminal by the user at the UCD server. After the registration information is used to log in to the UCD server, the file uploading request is further received by the second terminal, where the file uploading request carries the size of the original file that the user needs to upload;
所述确定获取单元 1102进一步用于获取所述用户注册过的第三 CSP服务 器的信息, 根据所述第三 CSP服务器的信息及原始文件的大小信息确定用于 上传所述原始文件的文件块的第二 CSP服务器;  The determining obtaining unit 1102 is further configured to acquire information about a third CSP server that is registered by the user, and determine, according to information of the third CSP server and size information of the original file, a file block for uploading 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 block of the original file to the second CSP server determined by the determining acquiring unit 1102.
进一步的,所述第三 CSP服务器的信息包含所述所述用户在所述第三 CSP 服务器的可用存储空间以及第三 CSP服务器支持的最大文件的大小;  Further, the information of the third CSP server includes the available storage space of the user at the third CSP server and the maximum file size supported by the third CSP server;
所述确定获取单元 1102根据所述第三 CSP服务器的信息及原始文件的大 小信息确定用于上传原始文件的文件块的第二 CSP服务器具体为: 确定所述 可用存储空间大于所述原始文件的大小, 且所述第三 CSP服务器支持的最大 文件的大小大于所述原始文件的大小的第三 CSP服务器作为用于上传文件块 确定获取单元确定的所述第二 CSP服务器具体为: 将原始文件作为文件块上 传给所述第二 CSP服务器; 或, 所述确定获取单元 1102根据所述第三 CSP服务 器的信息及原始文件的大小信息确定用于上传所述原始文件的文件块的第二 CSP服务器具体为:确定可用存储空间大于所述第三 CSP服务器支持的最大文 件的大小的至少两个第三 CSP服务器作为用于上传文件块的第二 CSP服务器, 根据确定的所述至少两个第二 CSP服务器支持的最大文件的大小将所述原始 文件分割成至少两个文件块, 所述文件块的大小小于所述第二 CSP服务器支 述确定获取单元确定的所述第二 CSP服务器具体为: 将所述至少两个文件块 分别上传到所述至少两个第二 CSP服务器。 Determining, by the determining obtaining unit 1102, 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: determining that the available storage space is greater than the original file. a size, and the third CSP server whose size of the largest file supported by the third CSP server is larger than the size of the original file is determined as the second CSP server determined by the acquiring unit for obtaining the file block: Uploading to the second CSP server as a file block; or, the determining obtaining unit 1102 determines a second CSP for uploading a 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 configured to: determine at least two third CSP servers whose available storage space is larger than a size of a maximum file supported by the third CSP server as a second CSP server for uploading a file block, according to the determined at least two The size of the largest file supported by the second CSP server divides the original file into at least two file blocks. Said block is less than the size of the second file server branched CSP said determining unit determines said second acquiring CSP server is specifically: the at least two file blocks Uploaded to the at least two second CSP servers respectively.
进一步的, 所述服务器进一步包括存储单元 1104;  Further, the server further includes a storage unit 1104;
所述存储单元 1104用于存储所述原始文件的信息, 所述原始文件的信息 包括: 原始文件的标识、 原始文件被分割的文件块数量, 以及各文件块的文 件块标识,以及存储所述各文件块的第二 CSP服务器的标识, 以及所述各文件 块在原始文件中的次序。  The storage unit 1104 is configured to store information of the original file, where the information of the original file includes: an identifier of the original file, a number of file blocks in which the original file is divided, and a file block identifier of each file block, and storing the file The identifier of the second CSP server of each file block, and the order of the file blocks in the original file.
进一步的, 所述发送单元 1103进一步用于根据所述存储单元 1104存储的 存储所述文件块的第二 CSP服务器的标识将所述 UCD服务器的标识、 文件块 标识以及文件块在原始文件中的次序发送给所述第二 CSP服务器。  Further, the sending unit 1103 is further configured to: according to the identifier of the second CSP server that stores the file block stored by the storage unit 1104, the identifier of the UCD server, the file block identifier, and the file block in the original file. The order is sent to the second CSP server.
进一步的, 所述服务器进一步包含删除单元 1105, 所述接收单元 1101进 一步用于接收第一 CSP服务器发送的文件删除请求, 所述文件删除请求中携 带需删除的文件的标识;所述确定获取单元 1102进一步用于根据所述需删除 的文件的标识获取所述存储单元存储的与所述需删除的文件的标识对应的需 删除的文件的信息, 所述需删除的文件的信息包含存储所述需删除文件的文 件块的第四 CSP服务器的标识、 各第四 CSP服务器存储的文件块的标识, 并将 步用于接收所述确定获取单元发送的需删除的文件的信息, 根据根据所述第 四 CSP服务器的标识向所述第四 CSP服务器发送文件块删除请求,所述文件块 删除请求中携带所述第四 CSP服务器存储的文件志的标识, 所述文件删除请 求用于指示所述第四 CSP服务器删除与所述第四 CSP服务器存储的文件块标 识对应的文件块及文件块的信息; 所述接收单元 1101进一步用于接收所述第 四 CSP服务器发送的文件块删除响应;所述删除单元 1105用于删除所述存储单 元存储的所述需删除的文件的信息;所述发送单元 1103进一步用于向第一 CSP 服务器返回文件删除响应, 所述文件删除响应用于指示第一 CSP服务器将所 述文件删除响应发送至第一终端。  Further, the server further includes a deleting unit 1105, where the receiving unit 1101 is further configured to receive a file deletion request sent by the first CSP server, where the file deletion request carries an identifier of the file to be deleted; 1102 is further configured to obtain, according to the identifier of the file to be deleted, information about a file to be deleted that is stored in the storage unit and that is related to the identifier of the file to be deleted, where the information about the file to be deleted includes Deleting the identifier of the fourth CSP server of the file block of the file, the identifier of the file block stored by each fourth CSP server, and using the step for receiving the information of the file to be deleted sent by the determining obtaining unit, according to the The identifier of the fourth CSP server sends a file block deletion request to the fourth CSP server, where the file block deletion request carries an identifier of a file stored by the fourth CSP server, where the file deletion request is used to indicate the The fourth CSP server deletes the file block identifier corresponding to the fourth CSP server The information of the block and the file block; the receiving unit 1101 is further configured to receive a file block deletion response sent by the fourth CSP server; the deleting unit 1105 is configured to delete the file to be deleted stored by the storage unit The sending unit 1103 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.
图 12为本发明实施例提供的 UCD服务器的结构示意图, 包括: 收发器 1201、 存储器 1202、 处理器 1203。 FIG. 12 is a schematic structural diagram of a UCD server according to 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 configured to receive a file acquisition request sent by the first cloud service provider CSP server, where the file acquisition request carries an identifier of the original file; the memory 1202 is used for various programs and applications, and And executing, by the processor, a function of each program and an application; the processor 1203 is configured to invoke various programs and applications stored in the memory, and obtain the stored identifier of the original file according to the identifier of the original file. Corresponding information of the original file, the information of the original file includes an identifier of a second CSP server storing the file block, a file block identifier stored by the second CSP server, and an order of the file block in the original file, according to the Identifying, by the second CSP server indicated by the identifier of the second CSP server, a file block corresponding to the file block identifier stored by the second CSP server; obtaining the file from the second CSP server according to the identifier of the second CSP server The order of the file blocks in the original file, merging the file blocks acquired from the second CSP server For the original document;
所述收发器 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 can also be used to perform the steps performed by the UCD server described in FIG. 1 to FIG. 7 in the method embodiment, and the embodiments of the present invention are not described in detail herein.
在上述各实施例中, 终端可以是各种移动终端, 如种终智能手机, 平板 电脑, 移动阅读设备等。 在上述实施例中, 尤其图 9和图 11对应的实施例中, CSP服务器和 UCD服务器包括的各个装置只是按照功能逻辑进行划分的, 但 并不局限于上述的划分, 只要能够实现相应的功能即可; 另外, 各装置的具 体名称也只是为了便于相互区分, 并不用于限制本发明的保护范围。 图 1-图 7 的 CSP服务器和 UCD服务器的各功能模块或各装置的功能均可以由终端的的 处理器运行完成, 以上所述, 仅为本发明较佳的具体实施方式, 但本发明的保护范围并 不局限于此, 任何熟悉本技术领域的技术人员在本发明揭露的技术范围 内, 可轻易想到的变化或替换, 都应涵盖在本发明的保护范围之内。 因此, 本发明的保护范围应该以权利要求的保护范围为准。  In the above embodiments, the terminal may be various mobile terminals, such as a terminal smart phone, a tablet computer, a mobile reading device, and the like. In the above embodiment, especially in the embodiments corresponding to FIG. 9 and FIG. 11, the respective devices included in the CSP server and the UCD server are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be implemented. In addition, the specific names of the devices are only for convenience of distinguishing from each other, and are not intended to limit the scope of protection of the present invention. The function of each functional module or each device of the CSP server and the UCD server of FIG. 1 to FIG. 7 can be completed by the processor of the terminal. The above is only a preferred embodiment of the present invention, but the present invention is The scope of the protection is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the scope of the present invention are covered by the scope of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims

权利要求 书 claims
1.一种文件下载方法, 其特征在于, 在第一终端通过用户在所述第一云服 务提供商 CSP服务器的注册信息登录所述第一 CSP服务器之后, 且所述第一 CSP服务器向所述第一终端提供业务的过程中, 该方法包括: 1. A file downloading method, characterized in that, after the first terminal logs in to the first CSP server through the user's registration information on the first cloud service provider CSP server, and the first CSP server In the process of the first terminal providing services, the method includes:
所述第一 CSP服务器接收所述第一终端发送的文件下载请求, 所述文件 下载请求中携带原始文件的标识; 块, 获取上传所述原始文件的文件块的第一统一云磁盘 UCD服务器的标识; 所述第一 CSP服务器根据所述第一 UCD服务器的标识向所述第一 UCD服 务器发送文件获取请求, 所述文件获取请求携带所述原始文件的标识; 所述 文件获取请求用于指示所述第一 UCD服务器根据所述原始文件的标识获取存 储的原始文件的信息, 并根据所述原始文件的信息中存储文件块的第二 CSP 服务器的标识,从所述第二 CSP服务器的标识指示的第二 CSP服务器获取文件 块, 并将所述获取的文件块合成为原始文件; The first CSP server receives the file download request sent by the first terminal, and the file download request carries the identifier of the original file; block, and obtains the file block of the first unified cloud disk UCD server that uploaded the original file. Identification; The first CSP server sends a file acquisition request to the first UCD server according to the identification of the first UCD server, and the file acquisition request carries the identification of the original file; The file acquisition request is used to indicate The first UCD server obtains the stored original file information according to the identification of the original file, and obtains the information from the second CSP server based on the identification of the second CSP server that stores the file block in the original file information. The instructed second CSP server obtains the file blocks and synthesizes the obtained file blocks into the original file;
所述第一 CSP服务器接收所述第一 UCD服务器返回的文件获取响应, 并 将所述文件获取响应发送给所述第一终端, 以指示所述第一终端通过所述文 件获取响应获取所述原始文件。 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 first terminal to obtain the file acquisition response through the file acquisition response. Original file.
2、 如权利要求 1所述的方法, 其特征在于, 所述第一终端通过所述文件 获取响应获取所述原始文件具体为: 2. The method of claim 1, wherein the first terminal obtains the original file through the file acquisition response specifically as follows:
所述文件获取响应携带所述原始文件, 所述第一终端从文件获取响应中 获取所述原始文件; 或 The file acquisition response carries the original file, and the first terminal acquires the original file from the file acquisition response; or
所述文件获取响应携带所述原始文件在所述第一 UCD服务器的存储地 址;所述第一终端根据所述存储地址从所述第一 UCD服务器中获取所述原始 文件。 The file acquisition response carries the storage address of the original file in the first UCD server; the first terminal obtains the original file from the first UCD server according to the storage address.
3、 如权利要求 1或 2的方法, 其特征在于, 所述接收所述第一终端发送的 文件下载请求之前, 该方法进一步包括: 接收所述第一终端发送的查询请求; 3. The method of claim 1 or 2, wherein before receiving the file download request sent by the first terminal, the method further includes: Receive a query request sent by the first terminal;
根据所述用户在所述第一 CSP服务器的注册信息获取所述用户在所述第 一 CSP服务器存储的文件块信息, 所述文件块信息包含上传所述第一 UCD服 务器的标识、 以及文件块所属的原始文件的标识; Obtain the file block information stored by the user in the first CSP server according to the user's registration information in the first CSP server. The file block information includes the identification of uploading the first UCD server and the file block. Identification of the original document to which it belongs;
根据所述第一 UCD服务器的标识向所述第一 UCD服务器发送文件块查 询请求, 所述文件块查询请求中包含所述文件块所属的原始文件的标识; 接收所述第一 UCD服务器返回的所述原始文件的信息, 所述返回的原始 文件的信息包含: 原始文件的名称、 原始文件的标识和第一 UCD服务器的标 识以及原始文件被分割的文件块数量; Send a file block query request to the first UCD server according to the identification of the first UCD server, where the file block query request contains the identification of the original file to which the file block belongs; receive the response returned by the first UCD server. The information of the original file, the information of the returned original file includes: the name of the original file, the identifier of the original file, the identifier of the first UCD server, and the number of file blocks into which the original file is divided;
将所述原始文件的名称和所述原始文件的标识发送给所述第一终端, 并 存储所述返回的原始文件的信息;或将所述原始文件的信息发送给所述第一 终端。 Send the name of the original file and the identification 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.
4、 如权利要求 3所述的方法, 其特征在于: 所述文件块信息进一步包含 文件块标识位; 4. The method according to claim 3, characterized in that: the file block information further includes a file block identification bit;
所述根据所述第一 UCD服务器的标识向所述第一 UCD服务器发送文件块 查询请求之前, 所述第一 CSP服务器进一步确定所述文件块标识位为原始文 件分割标识。 Before sending the file block query request to the first UCD server according to the identification of the first UCD server, the first CSP server further determines that the file block identification bit is the original file segmentation identification.
5. 如权利要求 4或 3所述的方法, 其特征在于: 所述文件下载请求中进一 步包含: 所述原始文件被分割的文件块数量, 以及所述第一 UCD服务器的标 识; 所述第一 CSP服务器确定与所述原始文件的标识对应的原始文件被分块, 并获取第一统一云磁盘 UCD服务器的标识具体为: 所述第一 CSP服务器确定 所述原始文件被分割的文件块数量大于 1,并从所述文件下载请求中获取所述 第一 UCD服务器的标识; 或 分块, 并获取第一统一云磁盘 UCD服务器的标识具体为: 所述第一 CSP服务 器根据所述原始文件的标识获取存储的与所述原始文件的标识对应的原始文 件的信息, 所述原始文件的信息包含: 原始文件的标识和第一 UCD服务器的 标识以及原始文件被分割的文件块数量; 所述第一 CSP服务器确定所述原始 文件被分割的文件块数量大于 1, 并从所述原始文件的信息中获取所述第一 UCD服务器的标识。 5. The method according to claim 4 or 3, characterized in that: the file download request further includes: the number of file blocks into which the original file is divided, and the identification of the first UCD server; A 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. Specifically: the first CSP server determines the number of file blocks into which the original file is divided. Greater than 1, and obtain the identity of the first UCD server from the file download request; or divide into chunks, and obtain the identity of the first unified cloud disk UCD server. Specifically: the first CSP server obtains the identity of the first unified cloud disk UCD server according to the original file. The identification of the stored original file corresponding to the identification of the original file is obtained. The information of the original file includes: the identification of the original file, the identification of the first UCD server and the number of file blocks into which the original file is divided; the first CSP server determines the number of file blocks into which the original file is divided. is greater than 1, and the identity of the first UCD server is obtained from the information of the original file.
6、 如权利要求 1-5任一所述的方法, 其特征在于, 该方法进一步包括: 接收所述第一 UCD服务器发送的上传块请求;所述上传块请求包含所述 原始文件的文件块、 所述第一 UCD服务器生成的文件块信息、 以及所述用户 在所述第一 CSP服务器的注册信息; 6. The method according to any one of claims 1 to 5, characterized in that, the method further includes: receiving an upload block request sent by the first UCD server; the upload block request includes file blocks of the original file. , the file block information generated by the first UCD server, and the user's registration information on the first CSP server;
存储所述文件块, 以及将所述文件块信息以及所述用户在所述第一 CSP 服务器的注册信息映射存储。 Store the file block, and map and store the file block information and the user's registration information on the first CSP server.
7、 如权利要求 1-6任一所述的方法, 其特征在于, 该方法进一步包括: 接收第一终端发送的文件删除请求, 所述文件删除请求中携带需删除的 文件的标识; 7. The method according to any one of claims 1 to 6, characterized in that, the method further includes: receiving a file deletion request sent by the first terminal, the file deletion request carrying the identification of the file to be deleted;
所述第一 CSP服务器确定与所述需删除的文件的标识对应的需删除的文 件被分块, 并获取上传所述需删除的文件的文件块的第二 UCD服务器的标识; 根据所述第二 UCD服务器的标识向第二 UCD服务器发送所述文件删除 请求, 所述文件删除请求用于指示所述第二 UCD服务器向存储所述需删除的 文件的文件块的第四 CSP服务器发送文件块删除请求,并在收到所述第四 CSP 服务器返回的文件块删除响应后, 删除第二 UCD服务器存储的需删除的文件 的文件信息并向第一 CSP服务器返回文件删除响应; The first CSP server determines that the file to be deleted corresponding to the identification of the file to be deleted is divided into blocks, and obtains the identification of the second UCD server that uploads the file blocks of the file to be deleted; according to the second The identifier of the second UCD server sends the file deletion request to the second UCD server. The file deletion request is used to instruct the second UCD server to send the file block to the fourth CSP server that stores the file block of the file to be deleted. Delete request, and after receiving the file block deletion response returned by the fourth CSP server, delete the file information of the file to be deleted stored in the second UCD server and return 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.
8、 如权利要求 7所述的方法, 其特征在于, 所述文件删除请求中进一步 包含: 需删除的文件被分割的文件块数量, 以及第二 UCD服务器的标识; 所 述第一 CSP服务器确定与所述需删除的文件的标识对应的文件被分块, 并获 取第二 UCD服务器的标识具体为: 所述第一 CSP服务器确定所述文件删除请 求中所述需删除的文件被分割的文件块数量大于 1,并从所述文件删除请求中 获取所述第二 UCD服务器的标识; 或 8. The method of claim 7, wherein the file deletion request further includes: the number of file blocks into which the file to be deleted is divided, and the identifier of the second UCD server; the first CSP server determines The file corresponding to the identifier of the file to be deleted is divided into blocks, and the identifier of the second UCD server is obtained specifically as follows: The first CSP server determines the file deletion request. The number of file blocks divided by the file to be deleted in the request is greater than 1, and the identifier of the second UCD server is obtained from the file deletion request; or
所述第一 CSP服务器确定与所述需删除的文件的标识对应的文件被分 块, 并获取第二 UCD服务器的标识具体为: 所述第一 CSP服务器根据所述需 删除的文件的标识获取存储的与所述需删除的文件的标识对应的需删除的文 件的信息, 所述需删除的文件的信息包含: 所述需删除的文件的标识、 第二 UCD服务器的标识以及所述需删除的文件被分割的文件块数量; 所述第一 CSP服务器确定存储的所述需删除的文件被分割的文件块数量大于 1, 并从所 述需删除的文件的信息中获取所述第二 UCD服务器的标识。 The first CSP server determines that the file corresponding to the identifier of the file that needs to be deleted is divided into blocks, and obtains the identifier of the second UCD server specifically as follows: The first CSP server obtains the identifier of the file that needs to be deleted according to the identifier of the file that needs to be deleted. The stored information of the file that needs to be deleted corresponding to the identification of the file that needs to be deleted, the information of the file that needs to be deleted includes: the identification of the file that needs to be deleted, the identification of the second UCD server, and the identification of the file that needs to be deleted. The number of file blocks into which the file is divided; the first CSP server determines that the number of stored file blocks into which the file to be deleted is divided is greater than 1, and obtains the second UCD from the information about the file to be deleted The server's identity.
9、 一种文件提供方法, 其特征在于, 包括: 9. A file providing method, characterized by including:
统一云磁盘 UCD服务器接收第一云服务提供商 CSP服务器发送的文件获 取请求, 所述文件获取请求携带原始文件的标识; 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 identification of the original file;
根据所述原始文件的标识获取存储的与所述原始文件的标识对应的原始 文件的信息, 所述原始文件的信息包括存储文件块的第二 CSP服务器的标识, 第二 CSP服务器存储的文件块标识以及所述文件块在原始文件中的次序; 根据所述第二 CSP服务器的标识,从所述第二 CSP服务器的标识指示的第 二 CSP服务器获取与所述第二 CSP服务器存储的文件块标识对应的文件块; 根据所述从所述第二 CSP服务器获取的文件块在原始文件中的次序, 将 各个从所述第二 CSP服务器获取的文件块合并为所述原始文件, 以及将所述 原始文件提供给第一终端。 Obtain the stored original file information corresponding to the original file identification according to the original file identification, the original file information includes the identification of the second CSP server that stores the file blocks, and the file blocks stored by the second CSP server The identification and the order of the file blocks in the original file; According to the identification of the second CSP server, obtain the file blocks stored with the second CSP server from the second CSP server indicated by the identification of the second CSP server. Identify the corresponding file blocks; merge 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, and merge the file blocks obtained from the second CSP server into the original file. The original file is provided to the first terminal.
10、 如权利要求 9所述的方法, 其特征在于: 所述将所述原始文件提供给 所述第一终端包括: 10. The method of claim 9, wherein: providing the original file to the first terminal includes:
向第一 CSP服务器返回文件获取响应, 所述文件获取响应携带所述原始 文件;所述文件获取响应用于指示所述第一 CSP服务器接收到所述文件获取响 应发送给所述第一终端; 或 Return a file acquisition response to the first CSP server, where the file acquisition response carries the original file; the file acquisition response is used to indicate that the first CSP server has received the file acquisition response and sends it to the first terminal; or
向所述第一 CSP服务器返回文件获取响应, 所述文件获取响应携带所述 原始文件在所述 UCD服务器的存储地址;所述文件获取响应用于指示所述第 一 CSP服务器将所述文件获取响应发送给所述第一终端, 以及指示所述第一 终端根据所述存储地址获取所述原始文件。 Return a file acquisition response to the first CSP server, where 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 according to the storage Address to obtain the original file.
11、 如权利要求 9或 10所述的方法, 其特征在于, 所述 UCD服务器在第二 终端通过用户在所述 UCD服务器的注册信息登录后, 该方法进一步包括: 接收所述第二终端发送的文件上传请求, 所述文件上传请求携带了用户 需上传的原始文件的大小; 11. The method of claim 9 or 10, wherein after the UCD server logs in to the second terminal through the user's registration information on the UCD server, the method further includes: receiving the message sent by the second terminal. A file upload request that carries the size of the original file that the user needs to upload;
获取所述用户注册过的第三 CSP服务器的信息; Obtain the information of the third CSP server registered by the user;
根据所述第三 CSP服务器的信息及原始文件的大小信息确定用于上传所 述原始文件的文件块的第二 CSP服务器, 并在收到所述第二终端发送的原始 文件后, 将所述原始文件的文件块上传给所述第二 CSP服务器。 Determine a second CSP server for uploading file blocks of the original file based on the information of the third CSP server and the size information of the original file, and after receiving the original file sent by the second terminal, The file blocks of the original file are uploaded to the second CSP server.
12、 如权利要求 11所述的方法, 其特征在于, 所述第三 CSP服务器的信 息包含所述所述用户在所述第三 CSP服务器的可用存储空间以及第三 CSP服 务器支持的最大文件的大小; 12. The method of claim 11, wherein the information of the third CSP server includes the user's available storage space in the third CSP server and the size of the largest file supported by the third CSP server. size;
所述根据所述第三 CSP服务器的信息及原始文件的大小信息确定用于上 传原始文件的文件块的第二 CSP服务器具体为: 确定所述可用存储空间大于 所述原始文件的大小, 且所述第三 CSP服务器支持的最大文件的大小大于所 述原始文件的大小的第三 CSP服务器作为用于上传文件块的第二 CSP服务器; 所述将文件块上传给所述第二 CSP服务器具体为: 将原始文件作为文件块上 传给所述第二 CSP服务器;或 The second CSP server that determines the file blocks for uploading the original file based on the information of the third CSP server and the size information of the original file specifically: determines that the available storage space is greater 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 file blocks; the uploading of file blocks to the second CSP server is specifically: : Upload the original file as file blocks to the second CSP server; or
所述根据所述第三 CSP服务器的信息及原始文件的大小信息确定用于上 传所述原始文件的文件块的第二 CSP服务器具体为: 确定可用存储空间大于 所述第三 CSP服务器支持的最大文件的大小的至少两个第三 CSP服务器作为 用于上传文件块的第二 CSP服务器,根据确定的所述至少两个第二 CSP服务器 支持的最大文件的大小将所述原始文件分割成至少两个文件块, 并将所述至 少两个文件块分别上传到所述至少两个第二 CSP服务器, 所述文件块的大小 小于所述第二 CSP服务器支持的最大文件的大小 。 Determining the second CSP server for uploading the file blocks of the original file based on the information of the third CSP server and the size information of the original file is specifically: determining that the available storage space is greater than the maximum supported by the third CSP server. The at least two third CSP servers of the size of the file serve as the second CSP server for uploading the file chunks, and the original file is divided into at least two according to the determined maximum file size supported by the at least two second CSP servers. file blocks, and upload the at least two file blocks to the at least two second CSP servers respectively, the size of the file blocks Less than the maximum file size supported by the second CSP server.
13、 如权利要求 11所述的方法, 其特征在于, 所述在收到所述第二终端 发送的原始文件后以及将所述原始文件的文件块上传给所述第二 CSP服务器 之前, 该方法进一步包括: 13. The method of claim 11, wherein 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, Methods further include:
存储所述原始文件的信息, 所述原始文件的信息包括: 原始文件的标识、 原始文件被分割的文件块数量, 以及各文件块的文件块标识,以及存储所述各 文件块的第二 CSP服务器的标识, 以及所述各文件块在原始文件中的次序。 Store the information of the original file. 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, the file block identification of each file block, and the second CSP that stores each file block. The identification of the server, and the order of the file blocks in the original file.
14、 如权利要求 13所述的方法, 其特征在于, 该方法进一步包括: 根据所述存储所述文件块的第二 CSP服务器的标识将所述 UCD服务器的 标识、 文件块标识以及文件块在原始文件中的次序发送给所述第二 CSP服务 器。 14. The method of claim 13, further comprising: according to the identification of the second CSP server storing the file block, the UCD server's identification, the file block identification and the location of the file block. The order in the original file is sent to the second CSP server.
15、 如权利要求 9-14任一所述的方法, 其特征在于, 该方法进一步包括: 接收第一 CSP服务器发送的文件删除请求, 所述文件删除请求中携带需 删除的文件的标识; 15. The method according to any one of claims 9 to 14, characterized in that the method further includes: receiving a file deletion request sent by the first CSP server, the file deletion request carrying the identification of the file to be deleted;
根据所述需删除的文件的标识获取存储的与所述需删除的文件的标识对 应的需删除的文件的信息, 所述需删除的文件的信息包含存储所述需删除文 件的文件块的第四 CSP服务器的标识、 各第四 CSP服务器存储的文件块的标 识; Obtain the stored information of the file that needs to be deleted corresponding to the identification of the file that needs to be deleted according to the identification of the file that needs to be deleted, and the information of the file that needs to be deleted includes the third file block in which the file that needs to be deleted is stored. The identification of the four CSP servers and the identification of the file blocks stored by each fourth CSP server;
据根据所述第四 CSP服务器的标识向所述第四 CSP服务器发送文件块删 除请求, 所述文件块删除请求中携带所述第四 CSP服务器存储的文件志的标 识,所述文件删除请求用于指示所述第四 CSP服务器删除与所述第四 CSP服务 器存储的文件块标识对应的文件块及文件块的信息; A file block deletion request is sent to the fourth CSP server according to the identification of the fourth CSP server. The file block deletion request carries the identification of the file log stored by the fourth CSP server. The file deletion request is Instructing the fourth CSP server to delete the file block and file block information corresponding to the file block identifier stored by the fourth CSP server;
接收所述第四 CSP服务器发送的文件块删除响应; Receive the file block deletion response sent by the fourth CSP server;
删除所述 UCD服务器存储的所述需删除的文件的信息, 并向第一 CSP服 务器返回文件删除响应, 所述文件删除响应用于指示第一 CSP服务器将所述 文件删除响应发送至第一终端。 Delete the information of the file that needs to be deleted stored by the UCD server, and return a file deletion response to the first CSP server. The file deletion response is used to instruct the first CSP server to send the file deletion response to the first terminal. .
16、 一种云服务提供商 CSP服务器, 其特征在于, 包括: 16. A cloud service provider CSP server, characterized by including:
接收单元, 用于在第一终端通过用户在所述 CSP服务器的注册信息登录 所述 CSP服务器之后, 且所述 CSP服务器向所述第一终端提供业务的过程中, 接收第一终端发送的文件下载请求, 所述文件下载请求中携带原始文件的标 识, 以及将所述原始文件的标识发送给确定获取单元; A receiving unit configured to receive the file 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. Download request, the file download request carries the identifier of the original file, and sends the identifier of the original file to the determination acquisition unit;
所述确定获取单元,用于接收所述接收单元发送的所述原始文件的标识, 文件的文件块的第一统一云磁盘 UCD服务器的标识, 并将所述第一 UCD服务 器的标识发送给发送单元; The determination acquisition unit is configured to receive the identification of the original file sent by the receiving unit, the identification of the first unified cloud disk UCD server of the file block, and send the identification of the first UCD server to the sending unit. unit;
所述发送单元, 用于接收所述确定接收单元发送的第一 UCD服务器的标 识, 以及根据所述第一 UCD服务器的标识向所述第一 UCD服务器发送文件获 取请求, 所述文件获取请求携带所述原始文件的标识; 所述文件获取请求用 于指示所述第一 UCD服务器根据所述原始文件的标识获取存储的原始文件的 信息, 并根据所述元始文件的信息中文件块对应的第二 CSP服务器的标识, 从所述第二 CSP服务器的标识指示的第二 CSP服务器获取文件块,并将所述获 取的文件块合成为原始文件; The sending unit is configured to receive the identification of the first UCD server sent by the determination receiving unit, and send a file acquisition request to the first UCD server according to the identification of 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 to obtain the information of the stored original file according to the identification of the original file, and according to the first file block corresponding to the information of the original file. The identifier of the second CSP server, obtaining the file blocks from the second CSP server indicated by the identifier of the second CSP server, and synthesizing the obtained file blocks into the 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. The sending unit is further configured to receive the file acquisition response sent by the receiving unit. respond, and send the file acquisition response to the first terminal to instruct the first terminal to acquire the original file through the file acquisition response.
17、 如权利要求 16所述的服务器, 其特征在于, 所述服务器进一步包含 存储单元; 17. The server according to claim 16, wherein the server further includes a storage unit;
所述接收单元进一步用于在接收所述第一终端发送的文件下载请求之 前, 接收所述第一终端发送的查询请求, 并将所述查询请求发送给所述确定 获取单元; The receiving unit is further configured to receive a query request sent by the first terminal before receiving the file download request sent by the first terminal, and send the query request to the determination acquisition unit;
所述确定获取单元进一步用于接收所述接收单元发送的查询请求, 并根 据所述用户在所述第一 CSP服务器的注册信息获取所述用户在所述存储单元 存储的文件块信息, 所述文件块信息包含所述第一 UCD服务器的标识、 以及 文件块所属的原始文件的标识, 并将所述原始文件的标识和所述第一 UCD服 务器的标识发送给所述发送单元; The determination acquisition unit is further configured to receive the query request sent by the receiving unit, and based on Obtain the file block information of the user stored in the storage unit according to the user's registration information on the first CSP server. The file block information includes the identification of the first UCD server and the original file block to which the file block belongs. The identification of the file, and sending the identification of the original file and the identification of the first UCD server to the sending unit;
所述发送单元进一步用于接收所述确定获取单元发送的所述原始文件的 标识和所述第一 UCD服务器的标识, 根据所述第一 UCD服务器的标识向所述 第一 UCD服务器发送文件块查询请求, 所述文件块查询请求中包含所述文件 块所属的原始文件的标识; The sending unit is further configured to receive the identification of the original file and the identification of the first UCD server sent by the determination acquisition unit, and send the file block to the first UCD server according to the identification of the first UCD server. Query request, the file block query request includes the identification of the original file to which the file block belongs;
所述接收单元进一步用于接收所述第一 UCD服务器返回的所述原始文件 的信息, 所述返回的原始文件的信息包含: 原始文件的名称、 原始文件的标 识和第一 UCD服务器的标识以及原始文件被分割的文件块数量, 并将所述原 始文件的信息发送给所述发送单元和所述存储单元; The receiving unit is further configured to receive the original file information returned by the first UCD server. The returned original file information includes: the name of the original file, the identifier of the original file, and the identifier of the first UCD server; The number of file blocks into which the original file is divided, and sending the information of the original file 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 configured to receive the original file information sent by the receiving unit, and send the name of the original file and the identification of the original file in the original file information to the first terminal, Or send the information of the original file to the first terminal.
18、 如权利要求 17所述的服务器, 其特征在于, 所述文件块信息进一步包 含文件块标识位; 18. The server according to claim 17, wherein the file block information further includes a file block identification bit;
所述发送单元根据所述第一 UCD服务器的标识向所述第一 UCD服务器 发送文件块查询请求之前, 所述确定获取单元进一步确定所述文件块标识位 为原始文件分割标识。 Before the sending unit sends a file block query request to the first UCD server according to the identification of the first UCD server, the determination and acquisition unit further determines that the file block identification bit is the original file segmentation identification.
19、 如权利要求 16-18任一所述的服务器, 其特征在于: 19. The server according to any one of claims 16-18, characterized in that:
所述文件下载请求中进一步包含: 原始文件被分割的文件块数量, 以及 所述第一 UCD服务器的标识; 所述确定获取单元确定与所述原始文件的标识 对应的原始文件被分块, 并获取第一统一云磁盘 UCD服务器的标识具体为: 所述第一 CSP服务器确定所述原始文件被分割的文件块数量大于 1, 并从所述 文件下载请求中获取所述第一 UCD服务器的标识;或 The file download request further includes: the number of file blocks into which the original file is divided, and the identification of the first UCD server; the determination and acquisition unit determines that the original file corresponding to the identification of the original file is divided into blocks, and The specific identification of the first unified cloud disk UCD server is obtained as follows: 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 identification of the first UCD server from the file download request; or
所述确定获取单元确定与所述原始文件的标识对应的原始文件被分块, 并获取第一统一云磁盘 UCD服务器的标识具体为: 所述第一 CSP服务器根据 所述原始文件的标识获取存储的与所述原始文件的标识对应的原始文件的信 息, 所述原始文件的信息包含: 原始文件的标识和第一 UCD服务器的标识以 及原始文件被分割的文件块数量; 所述第一 CSP服务器确定所述原始文件被 分割的文件块数量大于 1,并从所述原始文件的信息中获取所述第一 UCD服务 器的标识。 The determination and acquisition unit determines that the original file corresponding to the identification of the original file is divided into blocks, and obtains the identification of the first unified cloud disk UCD server. Specifically: the first CSP server obtains storage according to the identification 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 into which the original file is divided; 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 identification of the first UCD server is obtained from the information of the original file.
20、 如权利要求 17-19任一所述的服务器, 其特征在于, 20. The server according to any one of claims 17-19, characterized in that,
所述接收单元进一步用于接收所述第一 UCD服务器发送的上传块请求; 所述上传块请求包含所述原始文件的文件块以及所述第一 UCD服务器生成的 文件块信息, 以及所述用户在所述第一 CSP服务器的注册信息; The receiving unit is further configured to receive an upload block request sent by the first UCD server; the upload block request includes file blocks of the original file and 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 upload block 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.
21、 如权利要求 16-20任一所述的服务器, 其特征在于, 21. The server according to any one of claims 16-20, characterized in that,
所述接收单元进一步用于第一终端发送的文件删除请求, 所述文件删除 请求中携带需删除的文件的标识, 将所述需删除的文件的标识发送给所述确 定获取单元; The receiving unit is further used to send a file deletion request sent by the first terminal. The file deletion request carries the identification of the file to be deleted, and sends the identification of the file to be deleted to the determination acquisition unit;
所述确定获取单元进一步用于接收所述接收单元发送的需删除的文件的 标识, 确定与所述需删除的文件的标识对应的需删除的文件被分块, 并获取 上传所述需删除的文件的文件块的第二 UCD服务器的标识, 并将所述这第二 UCD服务器的标识发送给发送单元; The determination and acquisition 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 document to the second UCD server according to the identification of the second UCD server. file deletion request, the file deletion request is used to instruct the second UCD server to send a file block deletion request to the fourth CSP server that stores the file blocks of the file to be deleted, and after receiving the file block deletion request from the fourth CSP server After returning the file block deletion response, delete the information of the file to be deleted stored in the second UCD server and return the 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.
22、 如权利要求 21所述的服务器, 其特征在于, 所述文件删除请求中进 一步包含: 需删除的文件被分割的文件块数量, 以及第二 UCD服务器的标识; 所述确定获取单元确定与所述需删除的文件的标识对应的原始文件被分块, 并获取第二 UCD服务器的标识具体为: 确定所述文件删除请求中所述需删除 的文件被分割的文件块数量大于 1, 并从所述文件删除请求中获取所述第二 UCD服务器的标识; 或 22. The server according to claim 21, wherein the file deletion request further includes: the number of file blocks into which the file to be deleted is divided, and the identification of the second UCD server; the determination and acquisition unit determines and 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 number of divided file blocks of the file to be deleted in the file deletion request is greater than 1, and Obtain the identification of the second UCD server from the file deletion request; or
所述确定获取单元确定与所述需删除的文件的标识对应的文件被分块, 并获取第二 UCD服务器的标识具体为: 所述第一 CSP服务器根据所述需删除 的文件的标识获取存储的与所述需删除的文件的标识对应的需删除的文件的 信息, 所述需删除的文件的信息包含: 所述需删除的文件的标识、 第二 UCD 服务器的标识以及所述需删除的文件被分割的文件块数量;确定存储的所述 需删除的文件被分割的文件块数量大于 1,并从所述需删除的文件的信息中获 取所述第二 UCD服务器的标识。 The determination and acquisition unit determines that the file corresponding to the identifier of the file to be deleted is divided into blocks, and obtains the identifier of the second UCD server. Specifically: the first CSP server obtains storage according to the identifier of the file to be deleted. The information of the file that needs to be deleted corresponding to the identifier of the file that needs to be deleted, the information of the file that needs to be deleted includes: the identifier of the file that needs to be deleted, the identifier of the second UCD server and the file that needs to be deleted The number of file blocks into which the file is divided is determined; the number of stored file blocks into which the file to be deleted is divided is greater than 1, and the identifier of the second UCD server is obtained from the information about the file to be deleted.
23、 一种统一云磁盘 UCD服务器, 其特征在于, 包括: 23. A unified cloud disk UCD server, characterized by including:
接收单元, 用于接收第一云服务提供商 CSP服务器发送的文件获取请求, 所述文件获取请求携带原始文件的标识;并将所述原始文件的标识发送给确 定获取单元; A receiving unit, configured to receive a file acquisition request sent by the first cloud service provider CSP server, where the file acquisition request carries the identification of the original file; and send the identification of the original file to the determination acquisition unit;
所述确定获取单元用于接收所述接收单元发送的所述原始文件的标识, 根据所述原始文件的标识获取存储的与所述原始文件的标识对应的原始文件 的信息, 所述原始文件的信息包括存储文件块的第二 CSP服务器的标识, 第 二 CSP服务器存储的文件块标识以及所述文件块在原始文件中的次序;以及根 据所述第二 CSP服务器的标识, 从所述第二 CSP服务器的标识指示的第二 CSP 服务器获取与所述第二 CSP服务器存储的文件块标识对应的文件块;以及将所 所述发送单元用于接收所述确定获取单元发送的文件块以及所述文件块 在原始文件中的次序, 根据所述文件块在原始文件中的次序, 将各个从所述 第二 CSP服务器获取的文件块合并为所述原始文件, 以及将所述原始文件提 供给第一终端。 The determination acquisition unit is configured to receive the identification of the original file sent by the receiving unit, Obtain the stored original file information corresponding to the original file identification according to the original file identification, the original file information includes the identification of the second CSP server that stores the file blocks, and the file blocks stored by the second CSP server The identification and the order of the file blocks in the original file; and according to the identification of the second CSP server, obtain the file stored with the second CSP server from the second CSP server indicated by the identification of the second CSP server. The file block corresponding to the block identifier; and the sending unit is used to receive the file block sent by the determination acquisition unit and the order of the file block in the original file, according to the order of the file block in the original file, Merging respective file blocks obtained from the second CSP server into the original file, and providing the original file to the first terminal.
24、 如权利要求 23所述的服务器, 其特征在于, 所述发送单元将所述原 始文件提供给第一终端具体为: 24. The server according to claim 23, wherein the sending unit provides the original file to the first terminal specifically as follows:
向第一 CSP服务器返回文件获取响应, 所述文件获取响应携带所述原始 文件;所述文件获取响应用于指示所述第一 CSP服务器接收到所述文件获取响 应发送给所述第一终端; 或 Return a file acquisition response to the first CSP server, where the file acquisition response carries the original file; the file acquisition response is used to indicate that the first CSP server has received the file acquisition response and sends it to the first terminal; or
向所述第一 CSP服务器返回文件获取响应, 所述文件获取响应携带所述 原始文件在所述 UCD服务器的存储地址;所述文件获取响应用于指示所述第 一 CSP服务器将所述文件获取响应发送给所述第一终端, 以及指示所述第一 终端根据所述存储地址获取所述原始文件。 Return a file acquisition response to the first CSP server. 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 obtain the file. A response is sent to the first terminal, and the first terminal is instructed to obtain the original file according to the storage address.
25、 如权利要求 22或 23所述的服务器, 其特征在于, 25. The server according to claim 22 or 23, characterized in that,
所述接收单元在第二终端通过用户在所述 UCD服务器的注册信息登录所 述 UCD服务器后进一步用于接收所述第二终端发送的文件上传请求, 所述文 件上传请求携带了用户需上传的原始文件的大小; The receiving unit 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. The file upload request carries the file that the user needs to upload. Original file size;
所述确定获取单元进一步用于获取所述用户注册过的第三 CSP服务器的 信息, 根据所述第三 CSP服务器的信息及原始文件的大小信息确定用于上传 所述原始文件的文件块的第二 CSP服务器; 所述接收单元进一步用于接收所述第二终端发送的原始文件, 并将所述 原始文件发送给所述发送单元; The determination and acquisition unit is further configured to obtain the information of the third CSP server registered by the user, and determine the third file block for uploading the original file according to the information of the third CSP server and the size information of the original file. 2. CSP server; 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 determination acquisition unit.
26、 如权利要求 25所述的服务器, 其特征在于, 所述第三 CSP服务器的 信息包含所述所述用户在所述第三 CSP服务器的可用存储空间以及第三 CSP 服务器支持的最大文件的大小; 26. The server according to claim 25, wherein the information of the third CSP server includes the storage space available to the user in the third CSP server and the largest file supported by the third CSP server. size;
所述确定获取单元根据所述第三 CSP服务器的信息及原始文件的大小信 息确定用于上传原始文件的文件块的第二 CSP服务器具体为: 确定所述可用 存储空间大于所述原始文件的大小, 且所述第三 CSP服务器支持的最大文件 的大小大于所述原始文件的大小的第三 CSP服务器作为用于上传文件块的第 单元确定的所述第二 CSP服务器具体为: 将原始文件作为文件块上传给所述 第二 CSP服务器; 或 The determination and acquisition unit specifically determines the second CSP server for uploading the file blocks of the original file based on the information of the third CSP server and the size information of the original file: determining that the available storage space is greater than the size of the original file. , and 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 third unit for uploading file blocks. The second CSP server specifically determines: The original file is as File chunks are uploaded to the second CSP server; or
所述确定获取单元根据所述第三 CSP服务器的信息及原始文件的大小信 息确定用于上传所述原始文件的文件块的第二 CSP服务器具体为: 确定可用 存储空间大于所述第三 CSP服务器支持的最大文件的大小的至少两个第三 CSP服务器作为用于上传文件块的第二 CSP服务器,根据确定的所述至少两个 第二 CSP服务器支持的最大文件的大小将所述原始文件分割成至少两个文件 块,所述文件块的大小小于所述第二 CSP服务器支持的最大文件的大小; 所述 The determination and acquisition unit specifically determines the second CSP server for uploading the file blocks of the original file based on the information of the third CSP server and the size information of the original file: determining that the available storage space is larger than that of the third CSP server. At least two third CSP servers supporting the maximum file size serve as the second CSP server for uploading file blocks, and the original file is divided according to the determined maximum file size supported by the at least two second CSP servers. into at least two file blocks, the size of the file block being smaller than the maximum file size supported by the second CSP server;
CSP服务器具体为:将所述至少两个文件块分别上传到所述至少两个第二 CSP 服务器。 Specifically, the CSP server uploads the at least two file blocks to the at least two second CSP servers respectively.
27、 如权利要求 26所述的服务器, 其特征在于, 所述服务器进一步包括 存储单元; 所述存储单元用于存储所述原始文件的信息,所述原始文件的信息包括: 原始文件的标识、 原始文件被分割的文件块数量, 以及各文件块的文件块标 识,以及存储所述各文件块的第二 CSP服务器的标识, 以及所述各文件块在原 始文件中的次序。 27. The server according to claim 26, characterized in that, the server further includes a storage unit; The storage unit is used to store the information of the original file. 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 stores the information of each file block. The identification of the second CSP server of the file block, and the order of each file block in the original file.
28、 如权利要求 27所述的服务器, 其特征在于, 二 CSP服务器的标识将所述 UCD服务器的标识、 文件块标识以及文件块在原 始文件中的次序发送给所述第二 CSP服务器。 28. The server of claim 27, wherein the identifier of the second CSP server sends the identifier of the UCD server, the file block identifier, and the order of the file blocks in the original file to the second CSP server.
29、 如权利要求 23-28任一所述的服务器, 其特征在于, 所述服务器进一 步包含删除单元; 29. The server according to any one of claims 23 to 28, characterized in that 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, where the file deletion request carries the identification of the file to be deleted;
所述确定获取单元进一步用于根据所述需删除的文件的标识获取所述存 储单元存储的与所述需删除的文件的标识对应的需删除的文件的信息, 所述 需删除的文件的信息包含存储所述需删除文件的文件块的第四 CSP服务器的 标识、各第四 CSP服务器存储的文件块的标识, 并将所述需删除的文件的信息 发送给所述发送单元; The determination and acquisition unit is further configured to obtain, according to the identification of the file to be deleted, the information of the file that needs to be deleted corresponding to the identification of the file that needs to be deleted and stored in the storage unit, the information of the file that needs to be deleted. Contains the identification of the fourth CSP server that stores the file blocks of the file that needs to be deleted, the identification of the file blocks stored by each fourth CSP server, and sends the information of the file that needs 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 that needs to be deleted sent by the determination acquisition unit, and send a file block deletion request to the fourth CSP server according to the identification of the fourth CSP server. 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 file block corresponding to the file block identifier stored by the fourth CSP server. Information;
所述接收单元进一步用于接收所述第四 CSP服务器发送的文件块删除响 应; The receiving unit is further configured to receive the file block deletion response sent by the fourth CSP server;
所述删除单元用于删除所述存储单元存储的所述需删除的文件的信息; 所述发送单元进一步用于向第一 CSP服务器返回文件删除响应, 所述文 件删除响应用于指示第一 CSP服务器将所述文件删除响应发送至第一终端。 The deletion unit is used to delete the information of the file to be deleted stored in the storage unit; the sending unit is further used to return a file deletion response to the first CSP server, the file The file deletion response is used to instruct the first CSP server to send the file deletion response to the first terminal.
30、 一种服务提供商 CSP服务器, 其特征在于, 包括: 发收器, 存储器 和处理器; 30. A service provider CSP server, characterized by including: a transceiver, a memory and a processor;
所述收发器用于接收在第一终端通过用户在所述 CSP服务器的注册信息 登录所述 CSP服务器之后,且所述 CSP服务器向所述第一终端提供业务的过程 中, 接收第一终端发送的文件下载请求, 所述文件下载请求中携带原始文件 的标识; The transceiver is configured to receive a 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. File download request, 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 each program and application 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 identification of the original file is divided into blocks, and obtain the first unified cloud disk UCD server that uploaded 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, and the file acquisition request carries the identification of the original file; The file acquisition request is used to instruct the first UCD server Obtain the stored original file information according to the identification of the original file, and obtain the second CSP server indicated by the identification of the second CSP server according to the identification of the second CSP server that stores the file block in the original file information. Obtain file blocks and synthesize the obtained file blocks into original files;
所述收发器进一步用于所述第一 UCD服务器返回的文件获取响应, 并将 所述文件获取响应发送给所述第一终端, 以指示所述第一终端通过所述文件 获取响应获取所述原始文件。 The transceiver is further used to obtain the file acquisition response returned by the first UCD server, and send the file acquisition response to the first terminal to instruct the first terminal to obtain the file acquisition response through the file acquisition response. Original file.
31、 一种统一云磁盘 UCD服务器, 其特征在于, 包括: 发收器, 存储器 和处理器; 31. A unified cloud disk UCD server, characterized by including: a transceiver, a memory and a processor;
所述收发器用于器接收第一云服务提供商 CSP服务器发送的文件获取请 求, 所述文件获取请求携带原始文件的标识; The transceiver is configured to receive a file acquisition request sent by the first cloud service provider CSP server, where the file acquisition request carries the identification of the original file;
所述存储器用于各种程序与应用, 并在所述处理器的调用下执行各程序 与应用的功能; 所述处理器用于调用存储器存储的各种程序与应用, 根据所述原始文件 的标识获取存储的与所述原始文件的标识对应的原始文件的信息, 所述原始 文件的信息包括存储文件块的第二 CSP服务器的标识,第二 CSP服务器存储的 文件块标识以及所述文件块在原始文件中的次序, 根据所述第二 CSP服务器 的标识,从所述第二 CSP服务器的标识指示的第二 CSP服务器获取与所述第二 CSP服务器存储的文件块标识对应的文件块;根据所述从所述第二 CSP服务器 获取的文件块在原始文件中的次序, 将各个从所述第二 CSP服务器获取的文 件块合并为所述原始文件 ; The memory is used for various programs and applications, and executes the functions of each program and application under the call of the processor; The processor is configured to call various programs and applications stored in the memory, and obtain the stored original file information corresponding to the identification of the original file according to the identification of the original file. The information of the original file includes storage of file blocks. The identifier of the second CSP server, the file block identifier stored by the second CSP server and the order of the file blocks in the original file, according to the identifier of the second CSP server, from the first file 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 of the file blocks obtained from the second CSP server is The file blocks obtained by the server are merged into the original file;
所述收发器进一步用于将所述原始文件提供给第一终端。 The transceiver is further configured to provide the original file to the first terminal.
PCT/CN2013/078501 2013-06-29 2013-06-29 Method and apparatus for downloading file WO2014205839A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2013/078501 WO2014205839A1 (en) 2013-06-29 2013-06-29 Method and apparatus for downloading file
CN201380000818.7A CN104969532B (en) 2013-06-29 2013-06-29 A kind of method and apparatus of file download

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 (1)

Publication Number Publication Date
WO2014205839A1 true WO2014205839A1 (en) 2014-12-31

Family

ID=52140906

Family Applications (1)

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

Country Status (2)

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

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110661829A (en) * 2018-06-28 2020-01-07 杭州海康威视系统技术有限公司 File downloading method and device, client and computer readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110022642A1 (en) * 2009-07-24 2011-01-27 Demilo David Policy driven cloud storage management and cloud storage policy router
CN101997924A (en) * 2010-11-22 2011-03-30 杨文军 Cloud storage file transfer protocol (CFTP)
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

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110022642A1 (en) * 2009-07-24 2011-01-27 Demilo David Policy driven cloud storage management and cloud storage policy router
CN101997924A (en) * 2010-11-22 2011-03-30 杨文军 Cloud storage file transfer protocol (CFTP)
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

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110661829A (en) * 2018-06-28 2020-01-07 杭州海康威视系统技术有限公司 File downloading method and device, client and computer readable storage medium

Also Published As

Publication number Publication date
CN104969532A (en) 2015-10-07
CN104969532B (en) 2018-12-07

Similar Documents

Publication Publication Date Title
WO2017000820A1 (en) File sharing method, apparatus, and system based on cloud storage
US9600679B2 (en) Techniques for resource operation based on usage, sharing, and recommendations with modular authentication
CN109582644B (en) File storage method, device, equipment and computer readable storage medium
US8321503B2 (en) Context-specific network resource addressing model for distributed services
US20140280859A1 (en) Sharing control system and method for network resources download information
WO2016070718A1 (en) Method, device, and browser for file downloading
WO2016101635A1 (en) Method, apparatus and device for synchronizing login status, and computer storage medium
WO2017054543A1 (en) Method and device for accessing resource of cloud storage
WO2014071786A1 (en) Method and system for file transmitting
WO2015043455A1 (en) Data transmission method, device, and system
WO2012151851A1 (en) Method, system and control server for sharing data among mobile terminals
CN111744174A (en) Account management method and device of cloud game, account login method and device and electronic equipment
WO2012083620A1 (en) Method, means and system for downloading streaming media files
WO2014179950A1 (en) File uploading method, client, and server
WO2014169768A1 (en) Method, system and front-end device for posting user generated content
CN104618388B (en) Fast registration login method and corresponding resetting server, information server
US9367572B2 (en) Metadata-based file-identification systems and methods
WO2014205842A1 (en) Content sharing method and social synchronizing apparatus
CN113395340A (en) Information updating method, device, equipment, system and readable storage medium
US9665732B2 (en) Secure Download from internet marketplace
WO2017114365A1 (en) Mail attachment filing method and cloud storage server
WO2016106705A1 (en) Content sharing method, terminal, server and system
CN111092958B (en) Node access method, device, system and storage medium
CN110677429A (en) File storage method and system, cloud device and terminal device
WO2014205839A1 (en) Method and apparatus for downloading file

Legal Events

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

Ref document number: 13888194

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 13888194

Country of ref document: EP

Kind code of ref document: A1