WO2015085764A1 - Method of file access and cloud gateway - Google Patents

Method of file access and cloud gateway Download PDF

Info

Publication number
WO2015085764A1
WO2015085764A1 PCT/CN2014/081978 CN2014081978W WO2015085764A1 WO 2015085764 A1 WO2015085764 A1 WO 2015085764A1 CN 2014081978 W CN2014081978 W CN 2014081978W WO 2015085764 A1 WO2015085764 A1 WO 2015085764A1
Authority
WO
WIPO (PCT)
Prior art keywords
file
additional information
storage location
client
cloud gateway
Prior art date
Application number
PCT/CN2014/081978
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 华为技术有限公司
Publication of WO2015085764A1 publication Critical patent/WO2015085764A1/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]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/18File system types
    • G06F16/182Distributed file systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services

Definitions

  • the present invention relates to a cloud computing technology, and in particular, to a file access method and a cloud gateway.
  • a cloud storage gateway also called a cloud gateway, introduces technology, so that users do not need to change the interface design, and use the original access method, for example, a network file system (FS) or a universal Internet system.
  • the Common Internet File System (CIFS) can access cloud services provided by cloud service providers.
  • the cloud gateway needs to specify a database built-in or externally to save the directory structure and record file attributes such as file size, creator, creation/modification time, etc., and where the file is stored in the cloud server.
  • Embodiments of the present invention provide a method for accessing a cloud gateway file and a cloud gateway, so as to reduce network bandwidth resources and cloud gateway cache waste, and improve feedback efficiency to the client.
  • a first aspect of the present invention provides a method for accessing a file in a cloud gateway, including:
  • the cloud gateway downloads the additional information of the target file from the cloud server according to the first file access command, and sends the additional information of the target file to the client; If the cloud gateway receives the second file access command sent by the client, the second file access command includes a file identifier of the target file, and the second file access command is used to obtain the file of the target file. And the cloud gateway downloads the file content of the target file from the cloud server according to the second file access command, and sends the file content of the target file to the client.
  • the method before the cloud gateway receives the first file access command sent by the client, the method further includes:
  • the cloud gateway acquires two parts of the additional information and the file content of the target file according to the file type of the target file;
  • the cloud gateway allocates a first storage location to the additional information in the cloud server, and allocates a second storage location to the file content in the cloud server;
  • the cloud gateway stores the additional information in the cloud server according to the first storage location, and stores the file content in the cloud server according to the second storage location.
  • the cloud gateway downloads the addition of the target file from the cloud server according to the first file access command. And sending the additional information of the target file to the client, specifically:
  • the cloud gateway queries the block record table according to the file identifier of the target file, and obtains the first storage location of the additional information;
  • the cloud gateway downloads the additional information according to the first storage location, and sends the additional information to the client in combination with the first or second possible implementation manner of the first aspect, in the third aspect of the first aspect
  • the cloud gateway downloads the file content of the target file from the cloud server according to the second file access command, and sends the file content of the target file to the client, which specifically includes:
  • the cloud gateway queries the block record table according to the identifier of the target file, and obtains the second storage location of the file content;
  • the cloud gateway downloads the file content according to the second storage location, and sends the file content to the client in combination with the second possible implementation manner of the first aspect, the fourth possible implementation in the first aspect
  • the additional information includes a plurality of sub-information
  • the first storage location includes a corresponding to each of the plurality of sub-information a starting position and a size
  • the block record table further includes a priority corresponding to each sub-information
  • the downloading, by the cloud gateway, the additional information according to the first storage location includes:
  • the plurality of sub-information are sequentially downloaded according to the priority, the starting position, and the size corresponding to each sub-information, to obtain the additional information.
  • a second aspect of the present invention provides a cloud gateway, including:
  • a receiving module configured to receive a first file access command sent by the client, where the first file access command includes a file identifier of the target file;
  • a first processing module configured to download, according to the first file access command, additional information of the target file from a cloud server, and send the additional information of the target file to the client;
  • a second processing module configured to: when receiving the second file access command sent by the client, the second file access command includes a file identifier of the target file, where the second file access command is used to obtain the target
  • the file content of the file is downloaded from the cloud server according to the second file access command, and the file content of the target file is sent to the client.
  • the file storage module is further configured to:
  • the additional information is stored in the cloud server according to the first storage location, and the file content is stored in the cloud server according to the second storage location.
  • the first processing module is specifically configured to:
  • the second processing module is specifically configured to:
  • the additional information includes multiple sub-informations, where the first storage location is included in the multiple sub-information a starting position and a size corresponding to each sub-information; wherein the block record table further includes a priority corresponding to each sub-information;
  • the first processing module is specifically configured to sequentially download the plurality of sub-information according to a priority, a starting position, and a size corresponding to each sub-information to obtain the additional information.
  • the file access method and the cloud gateway provided by the embodiment of the present invention, when the client accesses the target file, the additional information of the cloud gateway download target file is returned to the client, and if the client further needs to obtain the content of the target file, the cloud gateway The file content of the download target file is returned to the client, which reduces network bandwidth resources and cloud gateway cache waste, and improves feedback efficiency to the client.
  • FIG. 1 is a flowchart of a file access method according to an embodiment of the present invention
  • FIG. 2 is an information interaction diagram of a file access method according to an embodiment of the present invention.
  • FIG. 3 is a schematic diagram of an MP3 file encapsulation format according to an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of a cloud gateway according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of a router 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.
  • the embodiments are a part of the embodiments of the invention, and not all of the embodiments. 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.
  • FIG. 1 is a flowchart of a method for accessing a file according to an embodiment of the present invention.
  • the method may include: S101.
  • a cloud gateway receives a first file access command sent by a client, where the first file access command is used. Including the file identifier of the target file;
  • the first file access command includes at least a file identifier of the target file, where the file identifier may be a file name or a file icon.
  • the first file access command is a command for the client to access file additional information, for example, the client clicks an access command issued by a file link on the Internet.
  • the cloud gateway may be a network device such as a switch or a router.
  • the cloud gateway downloads the additional information of the target file from the cloud server according to the first file access command, and sends the additional information of the target file to the client.
  • the cloud gateway downloads the additional information of the target file from the cloud server according to the first file access command, and sends the additional information of the target file to the client.
  • the additional information may include: description information of the entire file, statistical information, icons, and the like.
  • the cloud gateway receives the second file access command sent by the client, the second file access command includes a file identifier of the target file, where the second file access command is used to obtain the target file. And the cloud gateway downloads the file content of the target file from the cloud server according to the second file access command, and sends the file content of the target file to the client.
  • the second file access command is an instruction for the client to access the file content of the target file.
  • the cloud gateway If the cloud gateway receives the second file access command sent by the client, indicating that the client needs to obtain the file content of the target file, the cloud gateway downloads the file content of the target file from the cloud server and sends the file content to the client. If the cloud gateway does not receive the second file access command sent by the client, it is not necessary to download the file content of the target file from the cloud server.
  • the file content of the target file may include a file data portion, such as: a data frame of the music file, a document content of the text file, a bitmap content of the image file, and the like.
  • the additional information and the file content may be separately stored.
  • the cloud gateway may allocate a first storage location for the additional information in advance, and allocate a second storage location for the file content.
  • the cloud gateway stores the additional information of the target file in the first storage in the cloud server.
  • the location stores the file content of the target file in a second storage location in the cloud server, so that the cloud gateway downloads the required data from the corresponding storage area of the cloud server as needed.
  • the additional information of the target file stored in the first storage location may include a plurality of sub-information, where the sub-information may be continuously stored in the cloud server, or may be distributed and stored.
  • the cloud gateway further includes a block record table, which may include information such as a file identifier storage area attribute, a data storage location, a start location, and a size, and the cloud gateway may access the server by searching the block record table to obtain a corresponding storage location. Download attachment information or file content.
  • the additional information includes a plurality of sub-information
  • the first storage location a start location and a size corresponding to each of the plurality of sub-informations
  • the block record table further includes a priority corresponding to each sub-information
  • the cloud gateway according to a priority corresponding to each sub-information, The starting position and size, and the plurality of sub-information are sequentially downloaded to obtain the additional information.
  • the cloud gateway when the client accesses the target file, the cloud gateway first downloads the additional information of the target file and returns the information to the client, and only downloads the target file when the client further requests to obtain the file content of the target file.
  • the content of the file is returned to the client, which can reduce the waste of network bandwidth resources and cloud gateway cache, and improve the feedback efficiency to the client.
  • FIG. 2 is an information interaction diagram of a file access method according to an embodiment of the present invention.
  • the specific processes of the client, the cloud gateway, and the cloud server are:
  • the cloud gateway receives a first file access command sent by the client, where the first file access command includes a file identifier of the target file.
  • the cloud gateway Before the cloud gateway receives the first access command sent by a client, it also needs to store the target file on the cloud server through other clients.
  • the specific file storage process is as follows:
  • the cloud gateway acquires the additional information of the target file and the content of the file according to the file type of the target file;
  • the cloud gateway allocates a first storage location for the additional information in the cloud server, and allocates a second storage location to the file content in the cloud server;
  • the cloud gateway records, in a block record table, a file identifier of the target file, an identifier of the additional information, and a first storage location, and an identifier of the file content and a second storage location; When the target file specifies a part, the storage location is accurately found.
  • the cloud gateway stores the additional information in the cloud server according to the first storage location, and stores the file content in the cloud server according to the second storage location.
  • the additional information portion of the object file may contain a plurality of sub-information.
  • the example of the file format of the MP3 file provided by the embodiment of the present invention is as shown in FIG. 3 is a file format of the MP3 file, which includes the file content. (usually represented by Frame), additional information 1 (usually represented by ID3V1), additional information 2 (usually denoted by ID3V2), wherein the additional information 1 and the additional information 2 together constitute an additional information part of the MP3 file.
  • additional information 1 usually represented by ID3V1
  • ID3V2 additional information 2
  • the MP3 file may not have the ID3V2.
  • the MP3 file includes the ID3V2 as an example to illustrate the technical solution of the present invention, and is not intended to limit the present invention.
  • the additional information ID3V1 and ID3V2 of the MP3 file are stored in the first storage location of the cloud server, and the file content Frame is stored in the second storage location of the cloud server.
  • the client accesses the MP3 file as an example to describe the specific process of the file access method provided by the embodiment.
  • the client sends the first file access command to the cloud gateway, where the file identifier of the MP3 file is included.
  • the cloud gateway queries the block record table according to the file identifier of the target file according to the first file access command, and obtains the first storage location of the additional information.
  • the cloud gateway queries, according to the file identifier of the target file carried in the received first access command, the additional information of the MP3 file in the block record table, that is, the first storage location of ID3V1 and ID3V2, because the additional information part of the MP3 file includes two In addition, it is also necessary to query the priority of ID3V1 and ID3V2 of the sub-information and the like.
  • the cloud gateway downloads the additional information according to the first storage location.
  • the cloud gateway downloads the additional information from the first storage location of the cloud server according to the first storage location in the block record table, for example, may be obtained by means of a breakpoint download.
  • the additional information part of the MP3 file is two sub-informations of D3V1 and ID3V2, and the cloud gateway may sequentially download the plurality of sub-information according to the priority, the starting position and the size of each sub-information to obtain the additional information.
  • the amount of sub-information for specific additional information is variable, and the download method can be determined according to the actual situation.
  • S204 The cloud gateway sends the downloaded additional information of the target file to the client.
  • the cloud gateway returns the additional information of the MP3 file downloaded from the first storage location to the client, so that the client accesses the additional information of the MP3 file, and selects whether to obtain the file content portion of the MP3 file.
  • the client receives the additional information of the MP3 file returned by the cloud gateway. By reading the additional information, if the content of the MP3 file needs to be obtained, the client sends a second file access command to the cloud gateway to obtain the file content of the MP3 file.
  • the file identifier of the MP3 file is included in the second file access command.
  • the cloud gateway queries the block record table according to the identifier of the target file, and obtains the second storage location of the file content.
  • the cloud gateway queries the file content of the MP3 file in the block record table, that is, the second storage location of the Frame portion, according to the second file access command.
  • the cloud gateway downloads the file content according to the second storage location.
  • the cloud gateway downloads the file content portion from the cloud server according to the second storage location of the stored file content in the block record table, that is, downloads the file content portion of the MP3 file.
  • the specific downloading method is not limited in the present invention.
  • S208. The cloud gateway sends the downloaded file content of the target file to the client.
  • the cloud gateway returns the file content of the MP3 file downloaded from the second storage location to the client, so that the client accesses the file content of the MP3 file.
  • the first storage location stores additional information of the target file, including overall description information, statistical information, icons, and the like, and the additional information may be multiple sub-information, and the sub-information is not necessarily in the target file. It is continuous, and the storage location is not necessarily continuous.
  • the second storage location stores the file content of the target file.
  • the cloud gateway stores the additional information and the file content part of the target file in the first storage location and the second storage location of the cloud server, respectively, so that the client accesses the target file.
  • the additional information of the cloud gateway download target file is returned to the client, and only when the client further requests to obtain the file content of the target file, the file content of the download target file is returned to the client, which can reduce the network bandwidth resource and the cloud gateway cache. Waste, improve feedback efficiency on the client.
  • FIG. 4 is a schematic structural diagram of a cloud gateway according to an embodiment of the present invention, for implementing the method shown in any of FIG. 1 and FIG. 2 of the present invention.
  • the cloud gateway shown in Figure 4 includes:
  • the receiving module 41 is configured to receive a first file access command sent by the client, where the first file access command includes a file identifier of the target file;
  • the first processing module 42 is configured to download, according to the first file access command, additional information of the target file from a cloud server, and send the additional information of the target file to the client;
  • the second processing module 43 is configured to: if the receiving module 41 receives the second file access command sent by the client, where the second file access command includes a file identifier of the target file, where the second file access command is used Obtaining the file content of the target file, downloading the file content of the target file from the cloud server according to the second file access command, and sending the file content of the target file to the client.
  • the cloud gateway further includes a file storage module 44, configured to:
  • the additional information is stored in the cloud server according to the first storage location, and the file content is stored in the cloud server according to the second storage location.
  • the first processing module 42 is specifically configured to: Querying the block record table according to the identifier of the target file, obtaining the first storage location of the additional information;
  • the second processing module 43 is specifically configured to:
  • the additional information includes a plurality of sub-information, where the first storage location includes a starting location and a size corresponding to each of the plurality of sub-informments; and the block record table further includes each sub-information Corresponding priority
  • the first processing module 42 is specifically configured to download the multiple pieces of sub-information according to the priority, the starting position, and the size corresponding to each sub-information to obtain the additional information.
  • the cloud gateway provided by this embodiment corresponds to the method embodiment provided by FIG. 1 of the present invention.
  • the specific execution process refers to FIG. 2, and the cloud gateway stores the additional information of the target file and the file content part in the first storage of the cloud server.
  • the location and the second storage location when the client accesses the target file, the additional information of the cloud gateway download target file is returned to the client, and only when the client further requests to obtain the file content of the target file, the file content of the downloaded target file is returned to
  • the client can reduce the waste of network bandwidth resources and cloud gateway cache, and improve the feedback efficiency to the client.
  • FIG. 5 is a schematic structural diagram of a cloud gateway according to an embodiment of the present invention.
  • the cloud gateway includes: a processor 51, a memory 52, and at least one communication interface 53.
  • the processor 51, the memory 52, and the communication interface 53 are connected to each other by a bus or the like; for example, the connection through the bus 54 is taken as an example.
  • the bus 54 can be divided into an address bus, a data bus, a control bus, and the like.
  • the bus 54 can be an Aeripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus.
  • PCI Aeripheral Component Interconnect
  • EISA Extended Industry Standard Architecture
  • the memory 52 is configured to store computer program instructions.
  • the memory 52 may include a high speed random access memory (RAM) memory, and may also include a non-volatile memory (NVRAM), such as a disk memory.
  • RAM high speed random access memory
  • NVRAM non-volatile memory
  • the communication interface 53 is for communicating with the client; and is also for communicating with the cloud server.
  • the processor 51 is configured to invoke the computer program instructions stored in the memory 52 to implement the text provided by the embodiment of the present invention. Access methods, including:
  • the cloud gateway downloads the additional information of the target file from the cloud server according to the first file access command, and sends the additional information of the target file to the client;
  • the cloud gateway receives the second file access command sent by the client, the second file access command includes a file identifier of the target file, and the second file access command is used to obtain the file of the target file. And the cloud gateway downloads the file content of the target file from the cloud server according to the second file access command, and sends the file content of the target file to the client.
  • the method further includes: the cloud gateway acquiring the additional information and the file content of the target file according to the file type of the target file. section;
  • the cloud gateway allocates a first storage location to the additional information in the cloud server, and allocates a second storage location to the file content in the cloud server;
  • the cloud gateway stores the additional information in the cloud server according to the first storage location, and stores the file content in the cloud server according to the second storage location.
  • the cloud gateway downloads the additional information of the target file from the cloud server according to the first file access command, and sends the additional information of the target file to the client, which specifically includes:
  • the cloud gateway queries the block record table according to the file identifier of the target file, and obtains the first storage location of the additional information;
  • the cloud gateway downloads the additional information according to the first storage location, and sends the additional information to the client.
  • the cloud gateway downloads the target file from the cloud server according to the second file access command. And sending the file content of the target file to the client, specifically:
  • the cloud gateway queries the block record table according to the identifier of the target file, and obtains the second storage location of the file content;
  • the cloud gateway downloads the file content according to the second storage location, and sends the file content to the client.
  • the additional information includes a plurality of sub-information
  • the first storage location includes a starting location and a size corresponding to each of the plurality of sub-informations
  • the block record table further includes a sub-information corresponding to each sub-information.
  • the downloading, by the cloud gateway, the additional information according to the first storage location includes:
  • the plurality of sub-information are sequentially downloaded according to the priority, the starting position, and the size corresponding to each sub-information, to obtain the additional information.
  • the processor 51 may be a general-purpose processor, including a central processing unit (CPU), a network processor (P), etc., or a digital signal processor (DSP). ), Application Specific Integrated Circuit (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
  • CPU central processing unit
  • P network processor
  • DSP digital signal processor
  • ASIC Application Specific Integrated Circuit
  • FPGA Field-Programmable Gate Array
  • the aforementioned program can be stored in a computer readable storage medium.
  • the program when executed, performs the steps including the above-described method embodiments; and the foregoing storage medium includes: a medium such as a ROM, a RAM, a magnetic disk, or an optical disk that can store program codes.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

Provided are a method of file access and a cloud gateway. The method comprises: a cloud gateway receiving a first file access command sent by a client, wherein the first file access command comprises a file identifier of a target file; based on the first file access command, the cloud gateway downloading additional information of the target file from a cloud server, and sending the additional information of the target file to the client; and if the cloud gateway receives a second file access command sent by the client, the cloud gateway downloading file content of the target file from the cloud server based on the second file access command, and sending the file content of the target file to the client, thus reducing a waste of network bandwidth resources and a cloud gateway buffer, and improving feedback efficiency to the client.

Description

文件访问的方法和云网关 本申请要求于 2013年 12月 12日提交中国专利局、 申请号为 201310687488. 5、 发明名称 为 "文件访问的方法和云网关" 的中国专利申请的优先权,其全部内容通过引用结合在本 申请中。  Method for accessing files and cloud gateway This application claims priority to Chinese Patent Application No. 201310687488. 5, entitled "File Access Method and Cloud Gateway", which is filed on December 12, 2013. The entire contents are incorporated herein by reference.
技术领域 本发明实施例涉及云计算技术, 尤其涉及一种文件访问的方法和云网关。 背景技术 云存储技术中云存储网关, 也称云网关, 技术的引入, 使得用户无需改变接口设计, 使用原有的访问方式, 例如, 网络文件系统(Network file system, 简称 FS)或者通用英 特网文件系统 (Common Internet file system, 简称 CIFS), 就能访问由云服务提供商提供 的云服务。 通常云网关需要内置或外部指定一个数据库, 用来保存目录结构, 记录文件属 性, 例如文件大小、 创建者、 创建 /修改时间等, 和文件在云服务器的存放位置等信息。 The present invention relates to a cloud computing technology, and in particular, to a file access method and a cloud gateway. BACKGROUND In the cloud storage technology, a cloud storage gateway, also called a cloud gateway, introduces technology, so that users do not need to change the interface design, and use the original access method, for example, a network file system (FS) or a universal Internet system. The Common Internet File System (CIFS) can access cloud services provided by cloud service providers. Usually, the cloud gateway needs to specify a database built-in or externally to save the directory structure and record file attributes such as file size, creator, creation/modification time, etc., and where the file is stored in the cloud server.
目前, 用户通过客户端在云网关上执行打开目录操作时, 如果云网关上没有存储对应 文件, 则云网关会从云服务器下载完整文件, 并将该文件的基本信息, 例如: 文件大小、 创建者、 创建 /修改时间, 以及其他附加信息, 例如: "艺术家"、 "唱片集"、 "标题"等发 送给客户端, 然而实际上用户并不一定访问云网关会从云服务器下载的文件, 从而造成了 网络带宽资源的浪费, 甚至导致对客户端的反馈延迟。 发明内容 本发明实施例提供一种在云网关文件访问的方法和云网关, 以减少网络带宽资源和云 网关缓存浪费, 提卨对客户端的反馈效率。  Currently, when a user performs an open directory operation on the cloud gateway through the client, if the corresponding file is not stored on the cloud gateway, the cloud gateway downloads the complete file from the cloud server, and basic information of the file, for example: file size, creation , creation/modification time, and other additional information, such as: "artist", "album", "title", etc. are sent to the client, but in reality the user does not necessarily access the file that the cloud gateway will download from the cloud server. As a result, the network bandwidth resources are wasted, and even the feedback delay to the client is caused. SUMMARY OF THE INVENTION Embodiments of the present invention provide a method for accessing a cloud gateway file and a cloud gateway, so as to reduce network bandwidth resources and cloud gateway cache waste, and improve feedback efficiency to the client.
本发明第一方面提供一种在云网关文件访问的方法, 包括:  A first aspect of the present invention provides a method for accessing a file in a cloud gateway, including:
云网关接收客户端发送的第一文件访问命令,所述第一文件访问命令中包括目标文件 的文件标识;  Receiving, by the cloud gateway, a first file access command sent by the client, where the first file access command includes a file identifier of the target file;
所述云网关根据所述第一文件访问命令, 从云服务器下载所述目标文件的附加信息, 并将所述目标文件的附加信息发送给所述客户端; 若所述云网关收到所述客户端发送的第二文件访问命令,所述第二文件访问命令中包 括目标文件的文件标识, 所述第二文件访问命令用于获取所述目标文件的文件内容, 则所 述云网关根据所述第二文件访问命令从云服务器下载所述目标文件的文件内容,并将所述 目标文件的文件内容发送给所述客户端。 The cloud gateway downloads the additional information of the target file from the cloud server according to the first file access command, and sends the additional information of the target file to the client; If the cloud gateway receives the second file access command sent by the client, the second file access command includes a file identifier of the target file, and the second file access command is used to obtain the file of the target file. And the cloud gateway downloads the file content of the target file from the cloud server according to the second file access command, and sends the file content of the target file to the client.
在第一方面的第一种可能的实施方式中,所述云网关接收所述客户端发送的所述第一 文件访问命令之前, 还包括:  In a first possible implementation manner of the first aspect, before the cloud gateway receives the first file access command sent by the client, the method further includes:
所述云网关根据所述目标文件的文件类型获取所述目标文件的附加信息和文件内容 两部分;  The cloud gateway acquires two parts of the additional information and the file content of the target file according to the file type of the target file;
所述云网关在所述云服务器为所述附加信息分配第一存储位置,在所述云服务器为所 述文件内容分配第二存储位置;  The cloud gateway allocates a first storage location to the additional information in the cloud server, and allocates a second storage location to the file content in the cloud server;
在所述云网关的块记录表中记录所述目标文件的文件标识,所述附加信息的标识及所 述第一存储位置, 所述文件内容的标识及所述第二存储位置;  Recording, in a block record table of the cloud gateway, a file identifier of the target file, an identifier of the additional information, the first storage location, an identifier of the file content, and the second storage location;
所述云网关根据所述第一存储位置将所述附加信息存储在所述云服务器,根据所述第 二存储位置将所述文件内容存储在所述云服务器。  The cloud gateway stores the additional information in the cloud server according to the first storage location, and stores the file content in the cloud server according to the second storage location.
结合第一方面的第一种可能的实施方式, 在第一方面的第二种可能的实现方式中, 所 述云网关根据所述第一文件访问命令, 从云服务器下载所述目标文件的附加信息, 并将所 述目标文件的附加信息发送给所述客户端, 具体包括:  With reference to the first possible implementation manner of the first aspect, in a second possible implementation manner of the first aspect, the cloud gateway downloads the addition of the target file from the cloud server according to the first file access command. And sending the additional information of the target file to the client, specifically:
所述云网关根据所述目标文件的文件标识, 查询所述块记录表, 获得所述附加信息的 所述第一存储位置;  The cloud gateway queries the block record table according to the file identifier of the target file, and obtains the first storage location of the additional information;
所述云网关根据所述第一存储位置下载所述附加信息,并将所述附加信息发送给客户 结合第一方面的第一种或第二种可能的实施方式,在第一方面的第三种可能的实现方 式中, 所述云网关根据所述第二文件访问命令从云服务器下载所述目标文件的文件内容, 并将所述目标文件的文件内容发送给所述客户端, 具体包括:  The cloud gateway downloads the additional information according to the first storage location, and sends the additional information to the client in combination with the first or second possible implementation manner of the first aspect, in the third aspect of the first aspect In a possible implementation, the cloud gateway downloads the file content of the target file from the cloud server according to the second file access command, and sends the file content of the target file to the client, which specifically includes:
所述云网关根据所述目标文件的标识, 查询所述块记录表, 获得所述文件内容的所述 第二存储位置;  The cloud gateway queries the block record table according to the identifier of the target file, and obtains the second storage location of the file content;
所述云网关根据所述第二存储位置下载所述文件内容,并将所述文件内容发送给客户 结合第一方面的第二种可能的实施方式, 在第一方面的第四种可能的实现方式中, 所 述附加信息包括多个子信息,所述第一存储位置包括与所述多个子信息中每个子信息对应 的起始位置和大小; 所述块记录表中还包括与每个子信息对应的优先级; 所述云网关根据所述第一存储位置下载所述附加信息包括: The cloud gateway downloads the file content according to the second storage location, and sends the file content to the client in combination with the second possible implementation manner of the first aspect, the fourth possible implementation in the first aspect In the mode, the additional information includes a plurality of sub-information, and the first storage location includes a corresponding to each of the plurality of sub-information a starting position and a size; the block record table further includes a priority corresponding to each sub-information; and the downloading, by the cloud gateway, the additional information according to the first storage location includes:
根据每个子信息对应的优先级、 起始位置和大小, 依次下载所述多个子信息, 得到所 述附加信息。  The plurality of sub-information are sequentially downloaded according to the priority, the starting position, and the size corresponding to each sub-information, to obtain the additional information.
本发明第二方面提供一种云网关, 包括:  A second aspect of the present invention provides a cloud gateway, including:
接收模块, 用于接收客户端发送的第一文件访问命令, 所述第一文件访问命令中包括 目标文件的文件标识;  a receiving module, configured to receive a first file access command sent by the client, where the first file access command includes a file identifier of the target file;
第一处理模块, 用于根据所述第一文件访问命令, 从云服务器下载所述目标文件的附 加信息, 并将所述目标文件的附加信息发送给所述客户端;  a first processing module, configured to download, according to the first file access command, additional information of the target file from a cloud server, and send the additional information of the target file to the client;
第二处理模块, 用于若收到所述客户端发送的第二文件访问命令, 所述第二文件访问 命令中包括目标文件的文件标识,所述第二文件访问命令用于获取所述目标文件的文件内 容, 则根据所述第二文件访问命令从云服务器下载所述目标文件的文件内容, 并将所述目 标文件的文件内容发送给所述客户端。  a second processing module, configured to: when receiving the second file access command sent by the client, the second file access command includes a file identifier of the target file, where the second file access command is used to obtain the target The file content of the file is downloaded from the cloud server according to the second file access command, and the file content of the target file is sent to the client.
在第二方面的第一种可能的实施方式中, 还包括文件存储模块, 用于:  In a first possible implementation manner of the second aspect, the file storage module is further configured to:
根据目标文件的文件类型获取目标文件的附加信息和文件内容两部分;  Obtaining additional information and file content of the target file according to the file type of the target file;
在所述云服务器为所述附加信息分配第一存储位置,在所述云服务器为所述文件内容 分配第二存储位置;  Allocating, by the cloud server, the first storage location for the additional information, and assigning, by the cloud server, a second storage location to the file content;
在块记录表中记录所述目标文件的文件标识、所述附加信息的标识及所述第一存储位 置, 以及所述文件内容的标识及所述第二存储位置;  Recording, in the block record table, a file identifier of the target file, an identifier of the additional information, and the first storage location, and an identifier of the file content and the second storage location;
根据所述第一存储位置将所述附加信息存储在所述云服务器,根据所述第二存储位置 将所述文件内容存储在所述云服务器。  The additional information is stored in the cloud server according to the first storage location, and the file content is stored in the cloud server according to the second storage location.
结合第二方面的第一种可能的实施方式, 在第二方面的第二种可能的实现方式中, 所 述第一处理模块具体用于:  In conjunction with the first possible implementation of the second aspect, in a second possible implementation of the second aspect, the first processing module is specifically configured to:
根据所述目标文件的文件标识, 查询所述块记录表, 获得所述附加信息的所述第一存 储位置;  Querying the block record table according to the file identifier of the target file to obtain the first storage location of the additional information;
根据所述第一存储位置下载所述附加信息, 并将所述附加信息发送给客户端。  Downloading the additional information according to the first storage location, and transmitting the additional information to the client.
结合第二方面的第一种或第二种可能的实施方式,在第二方面的第三种可能的实现方 式中, 所述第二处理模块具体用于:  In conjunction with the first or second possible implementation of the second aspect, in a third possible implementation of the second aspect, the second processing module is specifically configured to:
根据所述目标文件的标识, 查询所述块记录表, 获得所述文件内容的所述第二存储位 置; 根据所述第二存储位置下载所述文件内容, 并将所述文件内容发送给客户端。 Querying the block record table according to the identifier of the target file, and obtaining the second storage location of the file content; Downloading the file content according to the second storage location, and transmitting the file content to the client.
结合第二方面的第二种可能的实施方式, 在第二方面的第四种可能的实现方式中, 所 述附加信息包括多个子信息,所述第一存储位置包括与所述多个子信息中每个子信息对应 的起始位置和大小; 则所述块记录表中还包括与每个子信息对应的优先级;  With reference to the second possible implementation of the second aspect, in a fourth possible implementation manner of the second aspect, the additional information includes multiple sub-informations, where the first storage location is included in the multiple sub-information a starting position and a size corresponding to each sub-information; wherein the block record table further includes a priority corresponding to each sub-information;
所述第一处理模块具体用于根据每个子信息对应的优先级、起始位置和大小, 依次下 载所述多个子信息, 得到所述附加信息。  The first processing module is specifically configured to sequentially download the plurality of sub-information according to a priority, a starting position, and a size corresponding to each sub-information to obtain the additional information.
本发明实施例提供的文件访问的方法和云网关, 客户端访问目标文件时, 云网关下载 目标文件的附加信息返回给客户端, 如果客户端还进一步需要获取目标文件的内容, 则云 网关再下载目标文件的文件内容返回给客户端, 减少网络带宽资源和云网关缓存浪费, 提 高对客户端的反馈效率。 附图说明 为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技 术描述中所需要使用的附图作一简单地介绍, 显而易见地, 下面描述中的附图是本发明的 —些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动性的前提下, 还可以根 据这些附图获得其他的附图。  The file access method and the cloud gateway provided by the embodiment of the present invention, when the client accesses the target file, the additional information of the cloud gateway download target file is returned to the client, and if the client further needs to obtain the content of the target file, the cloud gateway The file content of the download target file is returned to the client, which reduces network bandwidth resources and cloud gateway cache waste, and improves feedback efficiency to the client. BRIEF DESCRIPTION OF THE DRAWINGS In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, a brief description of the drawings used in the embodiments or the prior art description will be briefly described below. The drawings are some of the embodiments of the present invention, and those skilled in the art can obtain other drawings based on these drawings without any inventive labor.
图 1为本发明实施例提供的文件访问方法流程图;  FIG. 1 is a flowchart of a file access method according to an embodiment of the present invention;
图 2为本发明实施例提供的文件访问方法的信息交互图;  2 is an information interaction diagram of a file access method according to an embodiment of the present invention;
图 3为本发明实施例提供的 MP3文件封装格式示意图;  FIG. 3 is a schematic diagram of an MP3 file encapsulation format according to an embodiment of the present invention;
图 4为本发明实施例提供的云网关结构示意图;  4 is a schematic structural diagram of a cloud gateway according to an embodiment of the present invention;
图 5为本发明实施例提供的路由器结构示意图。 具体实施方式 为使本发明实施例的目的、 技术方案和优点更加清楚, 下面将结合本发明实施例中的 附图, 对本发明实施例中的技术方案进行清楚、 完整地描述, 显然, 所描述的实施例是本 发明一部分实施例, 而不是全部的实施例。 基于本发明中的实施例, 本领域普通技术人员 在没有做出创造性劳动前提下所获得的所有其他实施例, 都属于本发明保护的范围。  FIG. 5 is a schematic structural diagram of a router 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. The embodiments are a part of the embodiments of the invention, and not all of the embodiments. 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为本发明实施例提供的文件访问方法流程图, 如图 1所示, 所述方法可以包括: S101、云网关接收客户端发送的第一文件访问命令, 所述第一文件访问命令中包括目 标文件的文件标识; 所述第一文件访问命令中至少包含目标文件的文件标识,其中文件标识可以是文件名 称或者文件图标等。所述第一文件访问命令是用于客户端访问文件附加信息的命令,例如, 客户端点击互联网上文件链接发出的访问命令。 FIG. 1 is a flowchart of a method for accessing a file according to an embodiment of the present invention. As shown in FIG. 1 , the method may include: S101. A cloud gateway receives a first file access command sent by a client, where the first file access command is used. Including the file identifier of the target file; The first file access command includes at least a file identifier of the target file, where the file identifier may be a file name or a file icon. The first file access command is a command for the client to access file additional information, for example, the client clicks an access command issued by a file link on the Internet.
所述云网关可以是交换机、 路由器等网络设备。  The cloud gateway may be a network device such as a switch or a router.
S102、云网关根据所述第一文件访问命令,从云服务器下载所述目标文件的附加信息, 并将所述目标文件的附加信息发送给客户端;  S102. The cloud gateway downloads the additional information of the target file from the cloud server according to the first file access command, and sends the additional information of the target file to the client.
云网关根据第一文件访问命令, 从云服务器下载所述目标文件的附加信息, 并将所述 目标文件的附加信息发送给客户端。  The cloud gateway downloads the additional information of the target file from the cloud server according to the first file access command, and sends the additional information of the target file to the client.
其中, 附加信息可以包括: 文件整体的描述信息、 统计信息、 图标等。  The additional information may include: description information of the entire file, statistical information, icons, and the like.
S103、若所述云网关收到所述客户端发送的第二文件访问命令, 所述第二文件访问命 令中包括目标文件的文件标识, 所述第二文件访问命令用于获取所述目标文件的文件内 容, 则所述云网关根据所述第二文件访问命令从云服务器下载所述目标文件的文件内容, 并将所述目标文件的文件内容发送给所述客户端。  S103. If the cloud gateway receives the second file access command sent by the client, the second file access command includes a file identifier of the target file, where the second file access command is used to obtain the target file. And the cloud gateway downloads the file content of the target file from the cloud server according to the second file access command, and sends the file content of the target file to the client.
所述第二文件访问命令是用于客户端访问目标文件的文件内容的指令。  The second file access command is an instruction for the client to access the file content of the target file.
如果云网关接收到客户端发送的第二文件访问命令,表示客户端需要获取所述目标文 件的文件内容, 则云网关从云服务器下载所述目标文件的文件内容并发送给客户端。如果 云网关并未接收到客户端发送的第二文件访问命令,则不必从云服务器下载所述目标文件 的文件内容。  If the cloud gateway receives the second file access command sent by the client, indicating that the client needs to obtain the file content of the target file, the cloud gateway downloads the file content of the target file from the cloud server and sends the file content to the client. If the cloud gateway does not receive the second file access command sent by the client, it is not necessary to download the file content of the target file from the cloud server.
其中, 目标文件的文件内容可以包括文件数据部分, 例如: 音乐文件的数据帧, 文本 文件的文档内容, 图像文件的位图内容等。  The file content of the target file may include a file data portion, such as: a data frame of the music file, a document content of the text file, a bitmap content of the image file, and the like.
可选的, 为了便于云网关从云服务器中下载目标文件的附加信息和文件内容, 可以对 附加信息和文件内容进行分别存储。所述云网关可以事先为所述附加信息分配第一存储位 置, 为所述文件内容分配第二存储位置, 在存储过程中, 云网关将目标文件的附加信息存 储在云服务器中的第一存储位置,将目标文件的文件内容存储在云服务器中的第二存储位 置, 以便于云网关根据需要从云服务器相应的存储区下载所需的数据。  Optionally, in order to facilitate the cloud gateway to download additional information and file content of the target file from the cloud server, the additional information and the file content may be separately stored. The cloud gateway may allocate a first storage location for the additional information in advance, and allocate a second storage location for the file content. In the storage process, the cloud gateway stores the additional information of the target file in the first storage in the cloud server. The location stores the file content of the target file in a second storage location in the cloud server, so that the cloud gateway downloads the required data from the corresponding storage area of the cloud server as needed.
可选地, 在第一存储位置存储的目标文件的附加信息, 可以包括若干个子信息, 该若 干个子信息在云服务器中可以连续存储, 也可以分散存储。  Optionally, the additional information of the target file stored in the first storage location may include a plurality of sub-information, where the sub-information may be continuously stored in the cloud server, or may be distributed and stored.
所述云网关中还包括块记录表, 其中可以包含文件标识存储区属性、 数据存储位置、 起始位置、 大小等信息, 云网关访问服务器时可以通过查找该块记录表来从对应的存储位 置下载附件信息或者文件内容。 其中, 若附加信息包括多个子信息, 则所述第一存储位置 还包括与所述多个子信息中每个子信息对应的起始位置和大小;所述块记录表中还包括与 每个子信息对应的优先级; 所述云网关根据每个子信息对应的优先级、 起始位置和大小, 依次下载所述多个子信息, 获取所述附加信息。 The cloud gateway further includes a block record table, which may include information such as a file identifier storage area attribute, a data storage location, a start location, and a size, and the cloud gateway may access the server by searching the block record table to obtain a corresponding storage location. Download attachment information or file content. Wherein, if the additional information includes a plurality of sub-information, the first storage location a start location and a size corresponding to each of the plurality of sub-informations; the block record table further includes a priority corresponding to each sub-information; the cloud gateway according to a priority corresponding to each sub-information, The starting position and size, and the plurality of sub-information are sequentially downloaded to obtain the additional information.
本发明实施例提供的文件访问的方法, 客户端访问目标文件时, 云网关首先下载目标 文件的附加信息返回给客户端, 只有在客户端进一步请求获取目标文件的文件内容时, 才 下载目标文件的文件内容返回给客户端, 可以减少对网络带宽资源和云网关缓存的浪费, 提高对客户端的反馈效率。  In the file access method provided by the embodiment of the present invention, when the client accesses the target file, the cloud gateway first downloads the additional information of the target file and returns the information to the client, and only downloads the target file when the client further requests to obtain the file content of the target file. The content of the file is returned to the client, which can reduce the waste of network bandwidth resources and cloud gateway cache, and improve the feedback efficiency to the client.
图 2为本发明实施例提供的文件访问方法的信息交互图, 客户端, 云网关和云服务器 交互的具体过程包括:  2 is an information interaction diagram of a file access method according to an embodiment of the present invention. The specific processes of the client, the cloud gateway, and the cloud server are:
S201、云网关接收客户端发送的第一文件访问命令, 所述第一文件访问命令中包括目 标文件的文件标识。  S201. The cloud gateway receives a first file access command sent by the client, where the first file access command includes a file identifier of the target file.
在云网关接收某客户端发送的第一访问命令之前,还需要通过其他客户端将目标文件 存储在云服务器上, 具体的文件存储过程如下:  Before the cloud gateway receives the first access command sent by a client, it also needs to store the target file on the cloud server through other clients. The specific file storage process is as follows:
S201 K 所述云网关根据所述目标文件的文件类型获取目标文件的附加信息和文件内 容两部分;  S201 K, the cloud gateway acquires the additional information of the target file and the content of the file according to the file type of the target file;
52012、 所述云网关在所述云服务器为所述附加信息分配第一存储位置, 在所述云服 务器为所述文件内容分配第二存储位置;  52012, the cloud gateway allocates a first storage location for the additional information in the cloud server, and allocates a second storage location to the file content in the cloud server;
52013、 所述云网关在块记录表中记录所述目标文件的文件标识、 所述附加信息的标 识和第一存储位置, 以及所述文件内容的标识和第二存储位置; 用于云网关下载目标文件 指定部分时, 准确找到存储位置。  52013, the cloud gateway records, in a block record table, a file identifier of the target file, an identifier of the additional information, and a first storage location, and an identifier of the file content and a second storage location; When the target file specifies a part, the storage location is accurately found.
52014、 所述云网关根据所述第一存储位置将所述附加信息存储在所述云服务器, 根 据所述第二存储位置将所述文件内容存储在所述云服务器。  52014. The cloud gateway stores the additional information in the cloud server according to the first storage location, and stores the file content in the cloud server according to the second storage location.
所述目标文件的附加信息部分可以包含多个子信息。  The additional information portion of the object file may contain a plurality of sub-information.
以客户端访问的目标文件为动态影像专家压缩标准音频层面 3(Moving Picture Experts Group Audio Layer III, 简称 MP3 ) 文件为例, 图 3为本发明实施例提供的 MP3文件封装 格式示意图, 包括文件内容 (通常用 Frame表示) 、 附加信息 1 (通常用 ID3V1表示) 、 附加信息 2 (通常用 ID3V2表示) , 其中附加信息 1和附加信息 2共同组成此 MP3文件 的附加信息部分。 ID3V1和 ID3V2中记录了歌曲的信息, 比如歌曲名, 歌手等信息。  The example of the file format of the MP3 file provided by the embodiment of the present invention is as shown in FIG. 3 is a file format of the MP3 file, which includes the file content. (usually represented by Frame), additional information 1 (usually represented by ID3V1), additional information 2 (usually denoted by ID3V2), wherein the additional information 1 and the additional information 2 together constitute an additional information part of the MP3 file. Information about songs, such as song names, singers, etc., is recorded in ID3V1 and ID3V2.
某些情况下, MP3文件也可以没有 ID3V2,本发明实施例中,以 MP3文件包括 ID3V2 为例来说明本发明技术方案, 不作为对本发明的限定。 如图 3所示, MP3文件的附加信息 ID3V1和 ID3V2存储在云服务器的第一存储位置, 文件内容 Frame存储在云服务器的第二存储位置。 In some cases, the MP3 file may not have the ID3V2. In the embodiment of the present invention, the MP3 file includes the ID3V2 as an example to illustrate the technical solution of the present invention, and is not intended to limit the present invention. As shown in FIG. 3, the additional information ID3V1 and ID3V2 of the MP3 file are stored in the first storage location of the cloud server, and the file content Frame is stored in the second storage location of the cloud server.
下面以客户端访问此 MP3文件为例, 详细介绍本实施例提供的文件访问方法的具体 过程, 客户端向云网关发送所述第一文件访问命令, 其中包括所述 MP3文件的文件标识。  The client accesses the MP3 file as an example to describe the specific process of the file access method provided by the embodiment. The client sends the first file access command to the cloud gateway, where the file identifier of the MP3 file is included.
S202、 云网关根据所述第一文件访问命令, 根据所述目标文件的文件标识, 查询所述 块记录表, 获得所述附加信息的所述第一存储位置;  S202. The cloud gateway queries the block record table according to the file identifier of the target file according to the first file access command, and obtains the first storage location of the additional information.
云网关根据接收到的第一访问命令中携带的目标文件的文件标识,查询块记录表中此 MP3文件的附加信息即 ID3V1和 ID3V2的第一存储位置,由于此 MP3文件的附加信息部 分包含两个子信息, 另外, 还需要可以查询所述子信息的 ID3V1和 ID3V2的的优先级等。  The cloud gateway queries, according to the file identifier of the target file carried in the received first access command, the additional information of the MP3 file in the block record table, that is, the first storage location of ID3V1 and ID3V2, because the additional information part of the MP3 file includes two In addition, it is also necessary to query the priority of ID3V1 and ID3V2 of the sub-information and the like.
S203、 所述云网关根据所述第一存储位置下载所述附加信息。  S203. The cloud gateway downloads the additional information according to the first storage location.
具体地, 云网关根据块记录表中的第一存储位置, 从所述云服务器的第一存储位置下 载附加信息, 例如: 可以通过断点下载的方式获得。  Specifically, the cloud gateway downloads the additional information from the first storage location of the cloud server according to the first storage location in the block record table, for example, may be obtained by means of a breakpoint download.
另外, 所述 MP3文件的附加信息部分为 D3V1和 ID3V2两个子信息, 云网关可以根 据每个子信息对应的优先级、 起始位置和大小, 依次下载所述多个子信息, 得到所述附加 信息。 具体的附加信息的子信息数量不定, 下载方式可根据实际情况而定。  In addition, the additional information part of the MP3 file is two sub-informations of D3V1 and ID3V2, and the cloud gateway may sequentially download the plurality of sub-information according to the priority, the starting position and the size of each sub-information to obtain the additional information. The amount of sub-information for specific additional information is variable, and the download method can be determined according to the actual situation.
5204、 云网关将下载的所述目标文件的附加信息发送给客户端。  S204: The cloud gateway sends the downloaded additional information of the target file to the client.
云网关将从第一存储位置下载得到的 MP3文件的附加信息返回给客户端, 以使客户 端访问 MP3文件的附加信息, 选择是否要获取 MP3文件的文件内容部分。  The cloud gateway returns the additional information of the MP3 file downloaded from the first storage location to the client, so that the client accesses the additional information of the MP3 file, and selects whether to obtain the file content portion of the MP3 file.
5205、所述客户端发送的第二文件访问命令, 所述第二文件访问命令中包括目标文件 的文件标识, 所述第二文件访问命令用于获取所述目标文件的文件内容。  5205. The second file access command sent by the client, where the second file access command includes a file identifier of the target file, where the second file access command is used to obtain the file content of the target file.
客户端接收到云网关返回的 MP3文件的附加信息, 通过读取附加信息, 若需要获取 MP3文件内容, 则客户端再次向云网关发送第二文件访问命令, 以获取 MP3文件的文件 内容。 所述第二文件访问命令中包括此 MP3文件的文件标识。  The client receives the additional information of the MP3 file returned by the cloud gateway. By reading the additional information, if the content of the MP3 file needs to be obtained, the client sends a second file access command to the cloud gateway to obtain the file content of the MP3 file. The file identifier of the MP3 file is included in the second file access command.
5206、 所述云网关根据所述目标文件的标识, 查询所述块记录表, 获得所述文件内容 的所述第二存储位置;  5206. The cloud gateway queries the block record table according to the identifier of the target file, and obtains the second storage location of the file content.
云网关根据第二文件访问命令, 查询块记录表中此 MP3文件的文件内容即 Frame部 分的第二存储位置。  The cloud gateway queries the file content of the MP3 file in the block record table, that is, the second storage location of the Frame portion, according to the second file access command.
5207、 所述云网关根据所述第二存储位置下载所述文件内容。  S207. The cloud gateway downloads the file content according to the second storage location.
云网关根据块记录表中的存储文件内容的第二存储位置,从云服务器下载文件内容部 分, 即将 MP3文件的文件内容部分全部下载。 具体的下载方式本发明不作限制。 S208、 云网关将下载的所述目标文件的文件内容发送给客户端。 The cloud gateway downloads the file content portion from the cloud server according to the second storage location of the stored file content in the block record table, that is, downloads the file content portion of the MP3 file. The specific downloading method is not limited in the present invention. S208. The cloud gateway sends the downloaded file content of the target file to the client.
云网关将从第二存储位置下载得到的 MP3文件的文件内容返回给客户端, 以使客户 端访问 MP3文件的文件内容。  The cloud gateway returns the file content of the MP3 file downloaded from the second storage location to the client, so that the client accesses the file content of the MP3 file.
本实施例中, 第一存储位置存储着目标文件的附加信息, 包括整体的描述信息、 统计 信息、 图标等信息, 所述附加信息可以是多个子信息, 这些子信息在目标文件中并不一定 是连续, 存储位置也不一定连续。 第二存储位置存储着目标文件的文件内容。  In this embodiment, the first storage location stores additional information of the target file, including overall description information, statistical information, icons, and the like, and the additional information may be multiple sub-information, and the sub-information is not necessarily in the target file. It is continuous, and the storage location is not necessarily continuous. The second storage location stores the file content of the target file.
本发明实施例提供的在云网关文件访问的方法,云网关将目标文件的附加信息和文件 内容部分分别存储在云服务器的第一存储位置和第二存储位置, 以使客户端访问目标文件 时, 云网关下载目标文件的附加信息返回给客户端, 只有在客户端进一步请求获取目标文 件的文件内容时, 才下载目标文件的文件内容返回给客户端, 可以减少对网络带宽资源和 云网关缓存的浪费, 提高对客户端的反馈效率。  In the cloud gateway file access method provided by the embodiment of the present invention, the cloud gateway stores the additional information and the file content part of the target file in the first storage location and the second storage location of the cloud server, respectively, so that the client accesses the target file. The additional information of the cloud gateway download target file is returned to the client, and only when the client further requests to obtain the file content of the target file, the file content of the download target file is returned to the client, which can reduce the network bandwidth resource and the cloud gateway cache. Waste, improve feedback efficiency on the client.
图 4为本发明实施例提供的云网关结构示意图,用于实现本发明图 1和图 2任一所示 的方法。 如图 4所示云网关, 包括:  FIG. 4 is a schematic structural diagram of a cloud gateway according to an embodiment of the present invention, for implementing the method shown in any of FIG. 1 and FIG. 2 of the present invention. The cloud gateway shown in Figure 4 includes:
接收模块 41, 用于接收客户端发送的第一文件访问命令, 所述第一文件访问命令中 包括目标文件的文件标识;  The receiving module 41 is configured to receive a first file access command sent by the client, where the first file access command includes a file identifier of the target file;
第一处理模块 42, 用于根据所述第一文件访问命令, 从云服务器下载所述目标文件 的附加信息, 并将所述目标文件的附加信息发送给所述客户端;  The first processing module 42 is configured to download, according to the first file access command, additional information of the target file from a cloud server, and send the additional information of the target file to the client;
第二处理模块 43, 用于若接收模块 41收到所述客户端发送的第二文件访问命令, 所 述第二文件访问命令中包括目标文件的文件标识,所述第二文件访问命令用于获取所述目 标文件的文件内容,则根据所述第二文件访问命令从云服务器下载所述目标文件的文件内 容, 并将所述目标文件的文件内容发送给所述客户端。  The second processing module 43 is configured to: if the receiving module 41 receives the second file access command sent by the client, where the second file access command includes a file identifier of the target file, where the second file access command is used Obtaining the file content of the target file, downloading the file content of the target file from the cloud server according to the second file access command, and sending the file content of the target file to the client.
进一步的, 所述云网关还包括文件存储模块 44, 用于:  Further, the cloud gateway further includes a file storage module 44, configured to:
根据目标文件的文件类型获取目标文件的附加信息和文件内容两部分;  Obtaining additional information and file content of the target file according to the file type of the target file;
在所述云服务器为所述附加信息分配第一存储位置,在所述云服务器为所述文件内容 分配第二存储位置;  Allocating, by the cloud server, the first storage location for the additional information, and assigning, by the cloud server, a second storage location to the file content;
在块记录表中记录所述目标文件的文件标识、所述附加信息的标识及所述第一存储位 置, 以及所述文件内容的标识及所述第二存储位置;  Recording, in the block record table, a file identifier of the target file, an identifier of the additional information, and the first storage location, and an identifier of the file content and the second storage location;
根据所述第一存储位置将所述附加信息存储在所述云服务器,根据所述第二存储位置 将所述文件内容存储在所述云服务器。  The additional information is stored in the cloud server according to the first storage location, and the file content is stored in the cloud server according to the second storage location.
进一步的, 所述第一处理模块 42具体用于: 根据所述目标文件的标识, 查询所述块记录表, 获得所述附加信息的所述第一存储位 置; Further, the first processing module 42 is specifically configured to: Querying the block record table according to the identifier of the target file, obtaining the first storage location of the additional information;
根据所述第一存储位置下载所述附加信息, 并将所述附加信息发送给客户端。  Downloading the additional information according to the first storage location, and transmitting the additional information to the client.
进一步的, 所述第二处理模块 43具体用于:  Further, the second processing module 43 is specifically configured to:
根据所述目标文件的标识, 查询所述块记录表, 获得所述文件内容的所述第二存储位 置;  Querying the block record table according to the identifier of the target file to obtain the second storage location of the file content;
根据所述第二存储位置下载所述文件内容, 并将所述文件内容发送给客户端。  Downloading the file content according to the second storage location, and transmitting the file content to the client.
进一步的, 所述附加信息包括多个子信息, 所述第一存储位置包括与所述多个子信息 中每个子信息对应的起始位置和大小;则所述块记录表中还包括与每个子信息对应的优先 级;  Further, the additional information includes a plurality of sub-information, where the first storage location includes a starting location and a size corresponding to each of the plurality of sub-informments; and the block record table further includes each sub-information Corresponding priority
所述第一处理模块 42具体用于根据每个子信息对应的优先级、 起始位置和大小, 依 次下载所述多个子信息, 得到所述附加信息。  The first processing module 42 is specifically configured to download the multiple pieces of sub-information according to the priority, the starting position, and the size corresponding to each sub-information to obtain the additional information.
本实施例提供的云网关, 与本发明图 1所提供的方法实施例相对应, 具体执行过程参 照图 2, 云网关将目标文件的附加信息和文件内容部分分别存储在云服务器的第一存储位 置和第二存储位置, 客户端访问目标文件时, 云网关下载目标文件的附加信息返回给客户 端, 只有在客户端进一步请求获取目标文件的文件内容时, 才下载目标文件的文件内容返 回给客户端, 可以减少对网络带宽资源和云网关缓存的浪费, 提高对客户端的反馈效率。  The cloud gateway provided by this embodiment corresponds to the method embodiment provided by FIG. 1 of the present invention. The specific execution process refers to FIG. 2, and the cloud gateway stores the additional information of the target file and the file content part in the first storage of the cloud server. The location and the second storage location, when the client accesses the target file, the additional information of the cloud gateway download target file is returned to the client, and only when the client further requests to obtain the file content of the target file, the file content of the downloaded target file is returned to The client can reduce the waste of network bandwidth resources and cloud gateway cache, and improve the feedback efficiency to the client.
图 5为本发明实施例提供的云网关结构示意图, 如图 5所示, 所述云网关包括: 处理 器 51、 存储器 52、 至少一个通信接口 53。  FIG. 5 is a schematic structural diagram of a cloud gateway according to an embodiment of the present invention. As shown in FIG. 5, the cloud gateway includes: a processor 51, a memory 52, and at least one communication interface 53.
处理器 51、 存储器 52、 通信接口 53通过总线或其他方式相互连接; 图 5中以通过总 线 54相连为例。  The processor 51, the memory 52, and the communication interface 53 are connected to each other by a bus or the like; for example, the connection through the bus 54 is taken as an example.
其中, 所述总线 54可以分为地址总线、 数据总线、 控制总线等。 总线 54可以是外设 部件互连标准 (Aeripheral Component Interconnect, 简称 PCI) 总线或扩展工业标准结构 (Extended Industry Standard Architecture, 简称 EISA) 总线等。 为便于表示, 图 5中仅用 黑色粗线表示, 但并不表示仅有一根总线或一种类型的总线。  The bus 54 can be divided into an address bus, a data bus, a control bus, and the like. The bus 54 can be an Aeripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. For ease of representation, only thick black lines are used in Figure 5, but it does not mean that there is only one bus or one type of bus.
存储器 52, 用于存储计算机程序指令。 存储器 52 可以包含高速随机存取存储器 (Random Access Memory,简称 RAM)存储器,还可以包括非易失性存储器(Non-volatile Memory, 简称 NVRAM) , 例如磁盘存储器。  The memory 52 is configured to store computer program instructions. The memory 52 may include a high speed random access memory (RAM) memory, and may also include a non-volatile memory (NVRAM), such as a disk memory.
通信接口 53用于与客户端通信; 还用于与云服务器通信。  The communication interface 53 is for communicating with the client; and is also for communicating with the cloud server.
处理器 51用于调用存储器 52存储的计算机程序指令, 以实现本发明实施例提供的文 件访问方法, 包括: The processor 51 is configured to invoke the computer program instructions stored in the memory 52 to implement the text provided by the embodiment of the present invention. Access methods, including:
云网关接收客户端发送的第一文件访问命令,所述第一文件访问命令中包括目标文件 的文件标识;  Receiving, by the cloud gateway, a first file access command sent by the client, where the first file access command includes a file identifier of the target file;
所述云网关根据所述第一文件访问命令, 从云服务器下载所述目标文件的附加信息, 并将所述目标文件的附加信息发送给所述客户端;  The cloud gateway downloads the additional information of the target file from the cloud server according to the first file access command, and sends the additional information of the target file to the client;
若所述云网关收到所述客户端发送的第二文件访问命令,所述第二文件访问命令中包 括目标文件的文件标识, 所述第二文件访问命令用于获取所述目标文件的文件内容, 则所 述云网关根据所述第二文件访问命令从云服务器下载所述目标文件的文件内容,并将所述 目标文件的文件内容发送给所述客户端。  If the cloud gateway receives the second file access command sent by the client, the second file access command includes a file identifier of the target file, and the second file access command is used to obtain the file of the target file. And the cloud gateway downloads the file content of the target file from the cloud server according to the second file access command, and sends the file content of the target file to the client.
进一步的, 所述云网关接收所述客户端发送的所述第一文件访问命令之前, 还包括: 所述云网关根据所述目标文件的文件类型获取所述目标文件的附加信息和文件内容 两部分;  Further, before the cloud gateway receives the first file access command sent by the client, the method further includes: the cloud gateway acquiring the additional information and the file content of the target file according to the file type of the target file. section;
所述云网关在所述云服务器为所述附加信息分配第一存储位置,在所述云服务器为所 述文件内容分配第二存储位置;  The cloud gateway allocates a first storage location to the additional information in the cloud server, and allocates a second storage location to the file content in the cloud server;
在所述云网关的块记录表中记录所述目标文件的文件标识,所述附加信息的标识及所 述第一存储位置, 所述文件内容的标识及所述第二存储位置;  Recording, in a block record table of the cloud gateway, a file identifier of the target file, an identifier of the additional information, the first storage location, an identifier of the file content, and the second storage location;
所述云网关根据所述第一存储位置将所述附加信息存储在所述云服务器,根据所述第 二存储位置将所述文件内容存储在所述云服务器。  The cloud gateway stores the additional information in the cloud server according to the first storage location, and stores the file content in the cloud server according to the second storage location.
进一步的, 所述云网关根据所述第一文件访问命令, 从云服务器下载所述目标文件的 附加信息, 并将所述目标文件的附加信息发送给所述客户端, 具体包括:  Further, the cloud gateway downloads the additional information of the target file from the cloud server according to the first file access command, and sends the additional information of the target file to the client, which specifically includes:
所述云网关根据所述目标文件的文件标识, 查询所述块记录表, 获得所述附加信息的 所述第一存储位置;  The cloud gateway queries the block record table according to the file identifier of the target file, and obtains the first storage location of the additional information;
所述云网关根据所述第一存储位置下载所述附加信息,并将所述附加信息发送给客户 进一步的,所述云网关根据所述第二文件访问命令从云服务器下载所述目标文件的文 件内容, 并将所述目标文件的文件内容发送给所述客户端, 具体包括:  The cloud gateway downloads the additional information according to the first storage location, and sends the additional information to the client. The cloud gateway downloads the target file from the cloud server according to the second file access command. And sending the file content of the target file to the client, specifically:
所述云网关根据所述目标文件的标识, 查询所述块记录表, 获得所述文件内容的所述 第二存储位置;  The cloud gateway queries the block record table according to the identifier of the target file, and obtains the second storage location of the file content;
所述云网关根据所述第二存储位置下载所述文件内容,并将所述文件内容发送给客户 端。 进一步的, 所述附加信息包括多个子信息, 所述第一存储位置包括与所述多个子信息 中每个子信息对应的起始位置和大小; 所述块记录表中还包括与每个子信息对应的优先 级; The cloud gateway downloads the file content according to the second storage location, and sends the file content to the client. Further, the additional information includes a plurality of sub-information, the first storage location includes a starting location and a size corresponding to each of the plurality of sub-informations; and the block record table further includes a sub-information corresponding to each sub-information. Priority
所述云网关根据所述第一存储位置下载所述附加信息包括:  The downloading, by the cloud gateway, the additional information according to the first storage location includes:
根据每个子信息对应的优先级、 起始位置和大小, 依次下载所述多个子信息, 得到所 述附加信息。  The plurality of sub-information are sequentially downloaded according to the priority, the starting position, and the size corresponding to each sub-information, to obtain the additional information.
上述的处理器 51可以是通用处理器, 包括中央处理器(Central Processing Unit, 简称 CPU)、 网络处理器(Network Processor, 简称 P)等; 还可以是数字信号处理器(Digital Singnal Processor, 简称 DSP) 、 专用集成电路 (Application Specific Integrated Circuit, 简 称 ASIC) 、 现场可编程门阵列 (Field—Programmable Gate Array, 简称 FPGA) 或者其他 可编程逻辑器件、 分立门或者晶体管逻辑器件、 分立硬件组件等。  The processor 51 may be a general-purpose processor, including a central processing unit (CPU), a network processor (P), etc., or a digital signal processor (DSP). ), Application Specific Integrated Circuit (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
本领域普通技术人员可以理解:实现上述各方法实施例的全部或部分步骤可以通过程 序指令相关的硬件来完成。 前述的程序可以存储于一计算机可读取存储介质中。该程序在 执行时, 执行包括上述各方法实施例的步骤; 而前述的存储介质包括: R0M、 RAM, 磁 碟或者光盘等各种可以存储程序代码的介质。  One of ordinary skill in the art will appreciate that all or part of the steps of implementing the various method embodiments described above may be accomplished by the associated instructions. The aforementioned program can be stored in a computer readable storage medium. The program, when executed, performs the steps including the above-described method embodiments; and the foregoing storage medium includes: a medium such as a ROM, a RAM, a magnetic disk, or an optical disk that can store program codes.
最后应说明的是: 以上各实施例仅用以说明本发明的技术方案, 而非对其限制; 尽管 参照前述各实施例对本发明进行了详细的说明, 本领域的普通技术人员应当理解: 其依然 可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行 等同替换; 而这些修改或者替换, 并不使相应技术方案的本质脱离本发明各实施例技术方 案的范围。  It should be noted that the above embodiments are merely illustrative of the technical solutions of the present invention, and are not intended to be limiting; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art The technical solutions described in the foregoing embodiments may be modified, or some or all of the technical features may be equivalently replaced; and the modifications or substitutions do not deviate from the technical solutions of the embodiments of the present invention. range.

Claims

权 利 要 求 Rights request
1、 一种文件访问方法, 其特征在于, 包括: 1. A file access method, characterized by including:
云网关接收客户端发送的第一文件访问命令,所述第一文件访问命令中包括目标文件 的文件标识; The cloud gateway receives the first file access command sent by the client, where the first file access command includes the file identifier of the target file;
所述云网关根据所述第一文件访问命令, 从云服务器下载所述目标文件的附加信息, 并将所述目标文件的附加信息发送给所述客户端; The cloud gateway downloads the additional information of the target file from the cloud server according to the first file access command, and sends the additional information of the target file to the client;
若所述云网关收到所述客户端发送的第二文件访问命令,所述第二文件访问命令中包 括所述目标文件的文件标识, 所述第二文件访问命令用于获取所述目标文件的文件内容, 则所述云网关根据所述第二文件访问命令从云服务器下载所述目标文件的文件内容,并将 所述目标文件的文件内容发送给所述客户端。 If the cloud gateway receives the second file access command sent by the client, the second file access command includes the file identification of the target file, and the second file access command is used to obtain the target file. the file content of the target file, the cloud gateway downloads the file content of the target file from the cloud server according to the second file access command, and sends the file content of the target file to the client.
2、 根据权利要求 1所述的方法, 其特征在于, 所述云网关接收所述客户端发送的所 述第一文件访问命令之前, 还包括: 2. The method according to claim 1, characterized in that before the cloud gateway receives the first file access command sent by the client, it further includes:
所述云网关根据所述目标文件的文件类型获取所述目标文件的附加信息和文件内容 两部分; The cloud gateway obtains the additional information and file content of the target file according to the file type of the target file;
所述云网关在所述云服务器为所述附加信息分配第一存储位置,在所述云服务器为所 述文件内容分配第二存储位置; The cloud gateway allocates a first storage location for the additional information on the cloud server, and allocates a second storage location for the file content on the cloud server;
在所述云网关的块记录表中记录所述目标文件的文件标识,所述附加信息的标识及所 述第一存储位置, 所述文件内容的标识及所述第二存储位置; Record the file identifier of the target file, the identifier of the additional information and the first storage location, the identifier of the file content and the second storage location in the block record table of the cloud gateway;
所述云网关根据所述第一存储位置将所述附加信息存储在所述云服务器,根据所述第 二存储位置将所述文件内容存储在所述云服务器。 The cloud gateway stores the additional information in the cloud server according to the first storage location, and stores the file content in the cloud server according to the second storage location.
3、 根据权利要求 2所述的方法, 其特征在于, 所述云网关根据所述第一文件访问命 令, 从云服务器下载所述目标文件的附加信息, 并将所述目标文件的附加信息发送给所述 客户端, 具体包括: 3. The method according to claim 2, characterized in that, the cloud gateway downloads the additional information of the target file from the cloud server according to the first file access command, and sends the additional information of the target file. To the client, specifically include:
所述云网关根据所述目标文件的文件标识, 查询所述块记录表, 获得所述附加信息的 所述第一存储位置; The cloud gateway queries the block record table according to the file identifier of the target file to obtain the first storage location of the additional information;
所述云网关根据所述第一存储位置下载所述附加信息,并将所述附加信息发送给客户 The cloud gateway downloads the additional information according to the first storage location and sends the additional information to the customer
4、 根据权利要求 2或 3所述的方法, 其特征在于, 所述云网关根据所述第二文件访 问命令从云服务器下载所述目标文件的文件内容,并将所述目标文件的文件内容发送给所 述客户端, 具体包括: 所述云网关根据所述目标文件的标识, 查询所述块记录表, 获得所述文件内容的所述 第二存储位置; 4. The method according to claim 2 or 3, characterized in that, the cloud gateway downloads the file content of the target file from the cloud server according to the second file access command, and transfers the file content of the target file to Sent to the client, specifically including: The cloud gateway queries the block record table according to the identification of the target file to obtain the second storage location of the file content;
所述云网关根据所述第二存储位置下载所述文件内容,并将所述文件内容发送给客户 The cloud gateway downloads the file content according to the second storage location and sends the file content to the customer
5、 根据权利要求 3所述的方法, 其特征在于, 所述附加信息包括多个子信息, 所述 第一存储位置包括与所述多个子信息中每个子信息对应的起始位置和大小;所述块记录表 中还包括与每个子信息对应的优先级; 5. The method according to claim 3, wherein the additional information includes a plurality of sub-information, and the first storage location includes a starting position and size corresponding to each sub-information in the plurality of sub-information; The block record table also includes the priority corresponding to each sub-information;
所述云网关根据所述第一存储位置下载所述附加信息包括: The cloud gateway downloading the additional information according to the first storage location includes:
根据每个子信息对应的优先级、 起始位置和大小, 依次下载所述多个子信息, 得到所 述附加信息。 According to the priority, starting position and size corresponding to each sub-information, the multiple sub-information is downloaded in sequence to obtain the additional information.
6、 一种云网关, 其特征在于, 包括: 6. A cloud gateway, characterized by including:
接收模块, 用于接收客户端发送的第一文件访问命令, 所述第一文件访问命令中包括 目标文件的文件标识; A receiving module, configured to receive a first file access command sent by the client, where the first file access command includes the file identifier of the target file;
第一处理模块, 用于根据所述第一文件访问命令, 从云服务器下载所述目标文件的附 加信息, 并将所述目标文件的附加信息发送给所述客户端; The first processing module is configured to download the additional information of the target file from the cloud server according to the first file access command, and send the additional information of the target file to the client;
第二处理模块, 用于若收到所述客户端发送的第二文件访问命令, 所述第二文件访问 命令中包括目标文件的文件标识,所述第二文件访问命令用于获取所述目标文件的文件内 容, 则根据所述第二文件访问命令从云服务器下载所述目标文件的文件内容, 并将所述目 标文件的文件内容发送给所述客户端。 The second processing module is configured to receive a second file access command sent by the client. The second file access command includes the file identifier of the target file. The second file access command is used to obtain the target file. The file content of the file is downloaded from the cloud server according to the second file access command, and the file content of the target file is sent to the client.
7、 根据权利要求 6所述的云网关, 其特征在于, 还包括文件存储模块, 用于: 根据目标文件的文件类型获取目标文件的附加信息和文件内容两部分; 7. The cloud gateway according to claim 6, further comprising a file storage module configured to: obtain the additional information and file content of the target file according to the file type of the target file;
在所述云服务器为所述附加信息分配第一存储位置,在所述云服务器为所述文件内容 分配第二存储位置; Allocate a first storage location for the additional information on the cloud server, and allocate a second storage location for the file content on the cloud server;
在块记录表中记录所述目标文件的文件标识、所述附加信息的标识及所述第一存储位 置, 以及所述文件内容的标识及所述第二存储位置; Record the file identifier of the target file, the identifier of the additional information and the first storage location, as well as the identifier of the file content and the second storage location in the block record table;
根据所述第一存储位置将所述附加信息存储在所述云服务器,根据所述第二存储位置 将所述文件内容存储在所述云服务器。 The additional information is stored in the cloud server according to the first storage location, and the file content is stored in the cloud server according to the second storage location.
8、 根据权利要求 7所述的云网关, 其特征在于, 所述第一处理模块具体用于: 根据所述目标文件的文件标识, 查询所述块记录表, 获得所述附加信息的所述第一存 储位置; 根据所述第一存储位置下载所述附加信息, 并将所述附加信息发送给客户端。 8. The cloud gateway according to claim 7, wherein the first processing module is specifically configured to: query the block record table according to the file identifier of the target file, and obtain the additional information of the first storage location; Download the additional information according to the first storage location, and send the additional information to the client.
9、 根据权利要求 7或 8所述的云网关, 其特征在于, 所述第二处理模块具体用于: 根据所述目标文件的标识, 查询所述块记录表, 获得所述文件内容的所述第二存储位 置; 9. The cloud gateway according to claim 7 or 8, characterized in that the second processing module is specifically configured to: query the block record table according to the identification of the target file, and obtain all the contents of the file. The second storage location;
根据所述第二存储位置下载所述文件内容, 并将所述文件内容发送给客户端。 Download the file content according to the second storage location, and send the file content to the client.
10、 根据权利要求 8 所述的云网关, 其特征在于, 所述附加信息包括多个子信息, 所述第一存储位置包括与所述多个子信息中每个子信息对应的起始位置和大小;则所述块 记录表中还包括与每个子信息对应的优先级; 10. The cloud gateway according to claim 8, wherein the additional information includes a plurality of sub-information, and the first storage location includes a starting position and size corresponding to each sub-information in the plurality of sub-information; Then the block record table also includes the priority corresponding to each sub-information;
所述第一处理模块具体用于根据每个子信息对应的优先级、起始位置和大小, 依次下 载所述多个子信息, 得到所述附加信息。 The first processing module is specifically configured to sequentially download the plurality of sub-information according to the priority, starting position and size corresponding to each sub-information, and obtain the additional information.
PCT/CN2014/081978 2013-12-12 2014-07-10 Method of file access and cloud gateway WO2015085764A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310687488.5A CN104717254B (en) 2013-12-12 2013-12-12 The method and cloud gateway of file access
CN201310687488.5 2013-12-12

Publications (1)

Publication Number Publication Date
WO2015085764A1 true WO2015085764A1 (en) 2015-06-18

Family

ID=53370584

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/081978 WO2015085764A1 (en) 2013-12-12 2014-07-10 Method of file access and cloud gateway

Country Status (2)

Country Link
CN (1) CN104717254B (en)
WO (1) WO2015085764A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10887371B2 (en) * 2015-09-14 2021-01-05 Google Llc Systems and methods for content storage and retrieval
CN108076090B (en) * 2016-11-11 2021-05-18 华为技术有限公司 Data processing method and storage management system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1921479A (en) * 2005-08-23 2007-02-28 中兴通讯股份有限公司 Method and system for partaking load of flow media system
CN101068163A (en) * 2007-06-29 2007-11-07 华为技术有限公司 Method, device and network management system for realizing document transmission
CN101771931A (en) * 2008-12-26 2010-07-07 中国移动通信集团公司 P2P (peer 2 peer) resource downloading method and identification device
US20120124173A1 (en) * 2010-11-15 2012-05-17 International Business Machines Corporation Content delivery using multiple sources over heterogeneous interfaces

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1988547A (en) * 2005-12-23 2007-06-27 腾讯科技(深圳)有限公司 Method, server and system for online playing medium file
CN100449996C (en) * 2006-02-24 2009-01-07 中国移动通信集团公司 Method for mobile temrinal downloading information
US9525567B2 (en) * 2010-01-14 2016-12-20 Intelligent Mechatronic Systems Inc. Interface for PDA and computing device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1921479A (en) * 2005-08-23 2007-02-28 中兴通讯股份有限公司 Method and system for partaking load of flow media system
CN101068163A (en) * 2007-06-29 2007-11-07 华为技术有限公司 Method, device and network management system for realizing document transmission
CN101771931A (en) * 2008-12-26 2010-07-07 中国移动通信集团公司 P2P (peer 2 peer) resource downloading method and identification device
US20120124173A1 (en) * 2010-11-15 2012-05-17 International Business Machines Corporation Content delivery using multiple sources over heterogeneous interfaces

Also Published As

Publication number Publication date
CN104717254A (en) 2015-06-17
CN104717254B (en) 2019-01-08

Similar Documents

Publication Publication Date Title
JP6114834B2 (en) Information presentation method, apparatus, program, and recording medium
US8321503B2 (en) Context-specific network resource addressing model for distributed services
CN110401724B (en) File management method, file transfer protocol server and storage medium
US8108403B2 (en) User engagement during large file uploads
US9996549B2 (en) Method to construct a file system based on aggregated metadata from disparate sources
WO2017114206A1 (en) Method and device for processing short link, and short link server
WO2015014145A1 (en) Method and device for accelerating sub-resource loading velocity
US20190205056A1 (en) Transparent data movement between a private cloud and storage ecosystem and another storage system
KR20150004877A (en) Associating a file type with an application in a network storage service
JP2008542875A (en) Method, system, and computer-readable storage medium for synchronizing a modifiable document with multiple clients
WO2021007752A1 (en) Return-to-source method and related device in content delivery network
CN113748659B (en) Method, apparatus, and non-volatile computer-readable medium for receiving media data for a session
JP2011510410A (en) Content categorization method and system
WO2010115325A1 (en) Method and apparatus for processing and updating service contents in a distributed file system
WO2023179505A1 (en) Scheduling method and apparatus for content delivery network, and storage medium and electronic device
WO2019085780A1 (en) Cloud storage system and method for achieving user-defined data processing in cloud storage system
US8769277B2 (en) Content retrieval
WO2016101662A1 (en) Data processing method and relevant server
US20160315997A1 (en) File transfer method, device, and system
WO2015085764A1 (en) Method of file access and cloud gateway
CN110347656B (en) Method and device for managing requests in file storage system
EP2686791B1 (en) Variants of files in a file system
US20230031033A1 (en) Virtual file system for dynamically providing media content
WO2022257791A1 (en) Service code processing method and apparatus based on distributed network, and device and medium
WO2012171363A1 (en) Method and equipment for data operation in distributed cache system

Legal Events

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

Ref document number: 14869669

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: 14869669

Country of ref document: EP

Kind code of ref document: A1