CN111431957B - File processing method, device, equipment and system - Google Patents

File processing method, device, equipment and system Download PDF

Info

Publication number
CN111431957B
CN111431957B CN201910023653.4A CN201910023653A CN111431957B CN 111431957 B CN111431957 B CN 111431957B CN 201910023653 A CN201910023653 A CN 201910023653A CN 111431957 B CN111431957 B CN 111431957B
Authority
CN
China
Prior art keywords
file
storage
storage device
client
identifier
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910023653.4A
Other languages
Chinese (zh)
Other versions
CN111431957A (en
Inventor
蒋志刚
汤素文
马建坤
赵著禺
陈治国
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nail Holding Cayman Co ltd
Original Assignee
Nail Holding Cayman Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nail Holding Cayman Co ltd filed Critical Nail Holding Cayman Co ltd
Priority to CN201910023653.4A priority Critical patent/CN111431957B/en
Publication of CN111431957A publication Critical patent/CN111431957A/en
Application granted granted Critical
Publication of CN111431957B publication Critical patent/CN111431957B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0604Improving or facilitating administration, e.g. storage management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0629Configuration or reconfiguration of storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/067Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]
    • 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/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/146Markers for unambiguous identification of a particular session, e.g. session cookie or URL-encoding

Abstract

The embodiment of the invention provides a file processing method, a device, equipment and a system, wherein the method comprises the following steps: the client responds to the file sending operation and sends first application information to the storage management server, wherein the first application information comprises a local area network identifier corresponding to the client; receiving storage configuration information sent by a storage management server, wherein the storage configuration information comprises a first file identifier distributed by the storage management server and an address of a storage device, and the storage device is selected from a storage device set corresponding to a local area network identifier by the storage management server; and storing the file and the first file identification into the storage device according to the address of the storage device. Based on the method, the file sent by the user through the client is stored in the local area network, so that when another user in the same local area network needs to download the file, the file is only needed to be downloaded from the local area network, and the file transmission efficiency is higher.

Description

File processing method, device, equipment and system
Technical Field
The present invention relates to the field of internet technologies, and in particular, to a method, an apparatus, a device, and a system for processing a file.
Background
With development of cloud technology and massive access demands of a large number of users to services, more and more services are realized based on cloud.
For example, user a may send a file in a chat window with user B. According to the current processing logic, the file is uploaded to the cloud for storage by the instant messaging application of the user A. Therefore, when the user B triggers the downloading operation on the file, the instant messaging application program of the user B downloads the file from the cloud. The download time required for file download in this mode can be relatively long.
Disclosure of Invention
The embodiment of the invention provides a file processing method, device, equipment and system, which are used for realizing efficient transmission of files between a transmitting party and a receiving party.
In a first aspect, an embodiment of the present invention provides a file processing method, applied to a client, including:
responding to file sending operation, sending first application information to a storage management server, wherein the first application information comprises a local area network identifier corresponding to the client, and the storage management server is positioned at the server;
receiving storage configuration information sent by the storage management server, wherein the storage configuration information comprises a first file identifier distributed by the storage management server and an address of a storage device, and the storage device is selected from a storage device set corresponding to the local area network identifier by the storage management server;
And storing the file and the first file identification into the storage device according to the address of the storage device.
In a second aspect, an embodiment of the present invention provides a file processing apparatus, located in a terminal device running with a client, where the apparatus includes:
the storage management system comprises a sending module, a storage management server and a storage management server, wherein the sending module is used for responding to file sending operation and sending first application information to the storage management server, the first application information comprises a local area network identifier corresponding to the client, and the storage management server is located at the server;
the storage management server side is used for receiving storage configuration information sent by the storage management server side, wherein the storage configuration information comprises a first file identifier and an address of a storage device distributed by the storage management server side, and the storage device is selected from a storage device set corresponding to the local area network identifier by the storage management server side;
and the storage module is used for storing the file and the first file identification into the storage device according to the address of the storage device.
In a third aspect, an embodiment of the present invention provides a terminal device, including a first processor and a first memory, where the first memory stores executable code, and when the executable code is executed by the first processor, causes the first processor to execute the file processing method in the first aspect.
Embodiments of the present invention provide a non-transitory machine-readable storage medium having stored thereon executable code which, when executed by a processor of a terminal device, causes the processor to perform the file processing method in the first aspect.
In a fourth aspect, an embodiment of the present invention provides a file processing method, which is applied to a storage management server, where the storage management server is located at a server, and the method includes:
receiving first application information sent by a client in response to file sending operation, wherein the first application information comprises a local area network identifier corresponding to the client;
selecting a storage device from a storage device set corresponding to the local area network identifier;
distributing a first file identifier;
and sending the first file identification and the selected address of the storage device to the client, and sending the first file identification to the storage device, so that the client stores the file and the first file identification into the storage device according to the address of the storage device.
In a fifth aspect, an embodiment of the present invention provides a file processing apparatus, located in a server running a storage management server, where the server is located at a server, where the apparatus includes:
The receiving module is used for receiving first application information sent by a client in response to file sending operation, wherein the first application information comprises a local area network identifier corresponding to the client;
a selecting module, configured to select a storage device from a storage device set corresponding to the lan identifier;
the distribution module is used for distributing the first file identification;
and the sending module is used for sending the first file identification and the selected address of the storage device to the client, and sending the first file identification to the storage device so that the client can store the file and the first file identification into the storage device according to the address of the storage device.
In a sixth aspect, an embodiment of the present invention provides a server, including a second processor and a second memory, where the second memory has executable code stored thereon, and when the executable code is executed by the second processor, the second processor is caused to perform the file processing method in the fourth aspect.
Embodiments of the present invention provide a non-transitory machine-readable storage medium having executable code stored thereon, which when executed by a processor of a server, causes the processor to perform the file processing method in the fourth aspect.
In a seventh aspect, an embodiment of the present invention provides a file processing method, applied to a storage device, including:
the method comprises the steps that registration information is sent to a storage management server-side, wherein the registration information comprises an address of storage equipment and a corresponding local area network identifier, and the storage management server-side is located at the server-side;
receiving a first file identifier sent by the storage management server in response to a file storage behavior triggered by a client, wherein the client corresponds to the local area network identifier, and the storage management server determines that the storage device corresponding to the local area network identifier can be used by the client to allocate the first file identifier;
and if the first file identifier and the file sent by the client are received, storing the first file identifier and the file.
In an eighth aspect, an embodiment of the present invention provides a file processing apparatus, located in a storage device, where the apparatus includes:
the system comprises a sending module, a storage management server and a storage management server, wherein the sending module is used for sending registration information to the storage management server, the registration information comprises an address of a storage device and a corresponding local area network identifier, and the storage management server is positioned at the server;
a receiving module, configured to receive a first file identifier sent by the storage management server in response to a file storage behavior triggered by a client, where the client corresponds to the local area network identifier, and the storage management server determines that the storage device corresponding to the local area network identifier can be used by the client to allocate the first file identifier;
And the storage module is used for storing the first file identifier and the file if the first file identifier and the file sent by the client are received through the receiving module.
In a ninth aspect, an embodiment of the present invention provides a storage device, including a third processor and a third memory, where the third memory has executable code stored thereon, and when the executable code is executed by the third processor, the third processor is caused to perform the file processing method in the seventh aspect.
Embodiments of the present invention provide a non-transitory machine-readable storage medium having executable code stored thereon, which when executed by a processor of a storage device, causes the processor to perform the file processing method in the seventh aspect.
In a tenth aspect, an embodiment of the present invention provides a file processing system, including:
the system comprises a client, a storage device and a storage management server, wherein the client and the storage device are both positioned in the same local area network, and the storage management server is positioned at the server;
the client is used for responding to the file sending operation and sending first application information to the storage management server, wherein the first application information comprises a local area network identifier corresponding to the client; receiving storage configuration information sent by the storage management server, wherein the storage configuration information comprises a first file identifier distributed by the storage management server and an address of the storage device; storing a file and the first file identification into the storage device according to the address of the storage device;
The storage management server is configured to select the storage device from a storage device set corresponding to the local area network identifier, allocate the first file identifier, send the first file identifier and an address of the storage device to the client, and send the first file identifier to the storage device;
and the storage device is used for storing the first file identifier and the file if the first file identifier and the file sent by the client are received.
In the embodiment of the present invention, when a user a sends a file to another user B through a certain client, a storage management server located at a server (which may also be referred to as a cloud or a remote end, and is not located in a local area network where the user a and the user B are located) applies for a local storage device for storing the file, that is, applies for a storage device in the same local area network as the client. The storage management server responds to the application of the client, when the available storage equipment exists in the local area network where the client is located, one storage equipment (called target storage equipment) is selected, the address (such as an IP address) of the selected storage equipment is sent to the client, meanwhile, a file identifier (called first file identifier) corresponding to the file stored secondarily is allocated to the client, and the allocated first file identifier is respectively sent to the client and the target storage equipment. Therefore, the client sends the file to be stored and the obtained first file identification to the target storage device, and the target storage device discovers that the first file identification sent by the client is identical to the first file identification distributed to the client by the storage management server, so that the first file identification and the file sent by the client are stored. Based on the above, the storage of the file sent by the user A through the client in the local area network where the user A is located is realized, so that when the user B in the same local area network needs to download the file, the file only needs to be downloaded from the local area network. Compared with the storage of the file at the server through the public network, the file transmission efficiency is higher.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions of the prior art, the following description will briefly explain the drawings used in the embodiments or the description of the prior art, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of a file storage process of a file processing system according to an embodiment of the present invention;
FIG. 2 is a schematic diagram illustrating another file storage process of the file processing system according to an embodiment of the present invention;
FIG. 3 is a schematic diagram illustrating a file storage process of a file processing system according to an embodiment of the present invention;
FIG. 4 is a schematic diagram illustrating a file storage process of a file processing system according to an embodiment of the present invention;
FIG. 5 is a schematic diagram illustrating a file downloading process of the file processing system according to an embodiment of the present invention;
FIG. 6 is a schematic diagram illustrating another file downloading process of the file processing system according to the embodiment of the present invention;
FIG. 7 is a schematic diagram of a document processing apparatus according to an embodiment of the present invention;
Fig. 8 is a schematic structural diagram of a terminal device corresponding to the file processing device provided in the embodiment shown in fig. 7;
FIG. 9 is a schematic diagram of another document processing apparatus according to an embodiment of the present invention;
FIG. 10 is a schematic diagram of a server corresponding to the file processing apparatus provided in the embodiment shown in FIG. 9;
FIG. 11 is a schematic diagram of a file processing apparatus according to another embodiment of the present invention;
fig. 12 is a schematic structural diagram of a storage device corresponding to the file processing apparatus provided in the embodiment shown in fig. 11.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The terminology used in the embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in this application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise, the "plurality" generally includes at least two, but does not exclude the case of at least one.
It should be understood that the term "and/or" as used herein is merely one relationship describing the association of the associated objects, meaning that there may be three relationships, e.g., a and/or B, may represent: a exists alone, A and B exist together, and B exists alone. In addition, the character "/" herein generally indicates that the front and rear associated objects are an "or" relationship.
The words "if", as used herein, may be interpreted as "at … …" or "at … …" or "in response to a determination" or "in response to a detection", depending on the context. Similarly, the phrase "if determined" or "if detected (stated condition or event)" may be interpreted as "when determined" or "in response to determination" or "when detected (stated condition or event)" or "in response to detection (stated condition or event), depending on the context.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a product or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such product or system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a commodity or system comprising such elements.
In addition, the sequence of steps in the method embodiments described below is only an example and is not strictly limited.
FIG. 1 is a schematic diagram illustrating a file storage process of a file processing system according to an embodiment of the present invention, where, as shown in FIG. 1, the file processing system includes: client, storage device, storage management server. The client and the storage device are both located in the same local area network, and the storage management server is located at the server.
In practice, the client may be some sort of instant messaging application, some sort of client providing data storage functionality, etc. The storage device herein refers broadly to an electronic device with a storage function, and may be a PC, a server, a notebook, or the like. The storage management server is a server for managing storage devices, and may be a service deployed in a certain device in the cloud.
The storage management server and the business server are located at the server, which should be understood to be located at the remote end or the cloud end, and refer to that they are not located in the same lan with respect to the client.
The meaning of "client and storage device both within the same local area network" in this context is described below by taking a client as an example of some instant messaging application:
Assuming that a company builds up its own wireless lan, electronic devices with storage functions in the company can all be used as storage devices in the document, and these storage devices all access the wireless lan. In addition, it is assumed that some instant messaging application program is installed in the terminal devices of the staff in the company, and the staff in the company can connect the terminal devices of the staff in the company to the wireless local area network, so that the instant messaging application program and the storage device corresponding to each staff are located in the same local area network.
That is, the client is located in a local area network, and the terminal device of a user installed with the client is located in a local area network, which is only used for descriptive purposes.
Taking a client as an example of an instant messaging application, a staff a in an enterprise may send a file to another staff b through the instant messaging application, or staff a may send a file to a work group. In this scenario, the file processing system provided in this embodiment may be used to store the file on the local area network side of the enterprise, that is, to store the file in a certain storage device in the local area network. The file is stored in the local area network because the transmission efficiency of the file in the local area network is much higher than that in the public network, for example, the downloading speed of the file from the local area network by staff b is much faster than that of the file from the server.
Based on this, in the storing process of the file, the functions of the respective constituent elements in the file processing system shown in fig. 1 are summarized as follows:
the client is used for responding to the file sending operation and sending first application information to the storage management server, wherein the first application information comprises a local area network identifier corresponding to the client; receiving storage configuration information sent by a storage management server, wherein the storage configuration information comprises a first file identifier and an address of storage equipment, which are distributed by the storage management server; and storing the file and the first file identification into the storage device according to the address of the storage device.
The storage management server is used for selecting the storage device from the storage device set corresponding to the local area network identifier, distributing the first file identifier, sending the first file identifier and the address of the storage device to the client, and sending the first file identifier to the storage device.
And the storage device is used for storing the first file identifier and the file if the first file identifier and the file sent by the client are received.
For better visual understanding of the operation of the file processing system, as shown in fig. 1, the file storage process may include the following steps:
100. The storage device sends registration information to the storage management server, wherein the registration information comprises the address of the storage device and the corresponding local area network identifier.
In the embodiment of the invention, to realize the storage of the file in the local area network of the user, one precondition is that: the local area network has registered storage devices that can be used for file storage. Therefore, the storage devices in a local area network need to register with the storage management server.
Taking an enterprise as an example, an administrator within the enterprise may access a storage management server to perform registration of storage devices within the enterprise. For example, the administrator may fill in the registration interface with an address (such as an IP address and a MAC address) of at least one storage device and a lan identifier corresponding to the enterprise, where the lan identifier may be a network name and a network address of the lan, and in some scenarios, the lan identifier may also be an enterprise name.
The administrator in the enterprise accesses the storage management server through each storage device to be registered, so that the management device can automatically fill in the own IP address at the corresponding position in the registration interface, and the administrator can also manually input the IP address. At this time, each storage device sends registration information including its own address and the corresponding lan identifier to the storage management server based on the operation of the administrator.
Of course, the administrator in the enterprise may access the storage management server through any device, and the administrator may also write the addresses and the lan identifiers of all the storage devices to be registered into the corresponding locations in the registration interface displayed by the storage management server, so as to form the registration information of these storage devices.
After receiving the registration information of each storage device, the storage management server stores the correspondence between the local area network identifier and the address of each storage device.
In addition, the registration information of the storage device may further include available storage space information of the storage device, such as what storage capacity and storage locations (or storage paths) may be provided by a certain storage device for storing files, where the available storage space information may be set by an administrator.
101. And responding to the file sending operation, and sending the local area network identification corresponding to the client to the storage management server by the client.
For convenience of description, the client is denoted as App, and when the client is installed in the terminal device of the user a, the client corresponding to the user a is denoted as App-a, and similarly, the client corresponding to the user B is denoted as App-B. Assuming that the client is an instant messaging application program, in a scenario that the user a sends a file to the user B through App-a, the file sending operation is an operation that the user a loads the file into a chat window with the user B.
At this time, based on the file sending operation of the user a, the client (i.e., the client installed in the terminal device of the user a: app-a) sends first application information to the storage management server, where the first application information includes the lan identifier corresponding to App-a, that is, the identifier of the lan where the terminal device of App-a is currently installed.
Optionally, the first application information may further include file size information of a file to be stored, so that the storage management server may select a storage device that meets the file size later.
The first application information is used for applying for the storage equipment for storing the file to the storage management server side.
102. The storage management server selects storage equipment from a storage equipment set corresponding to the local area network identifier, and distributes a first file identifier.
103. And the storage management server side sends the first file identification and the address of the selected storage device to the client side.
104. And the storage management server side sends the first file identification to the selected storage device.
As stated in step 100, an administrator may register one or more storage devices in a local area network with a storage management server, so that the storage device set in step 102 is made up of the storage devices registered in the local area network. The storage device set includes the address of each storage device, and may even further include the available storage space information of each storage device.
Optionally, when the first application information includes file size information, the storage management server selects a storage device that satisfies the file size information from the storage device set. For convenience of description, the selected storage device is referred to as a target storage device.
Of course, when there are a plurality of storage devices satisfying the file size information, the storage management server may further select an optimal storage device from among the storage devices as a target storage device in combination with factors such as bandwidth and load of the storage device.
When the storage management server selects the target storage device, a first file identifier is further allocated for the current file storage behavior of the App-A, further storage configuration information containing the first file identifier and the address of the target storage device is sent to the App-A, and meanwhile, the first file identifier is sent to the target storage device.
The first file identifier is a storage index of a file sent by the user A through the App-A in the target storage device. In addition, the first file identifier can also be used for the follow-up target storage device to carry out validity authentication on the file storage behavior of the App-A.
105. And the client sends a file storage request to the storage device according to the received address of the storage device, wherein the file storage request comprises a file and a first file identifier.
106. The storage device discovers that the first file identifier in the file storage request is consistent with the first file identifier sent to the storage management server side, and stores the first file identifier and the file.
After receiving the first file identification and the address of the target storage device sent by the storage management server, the App-A sends the file to be stored and the first file identification to the target storage device according to the address of the target storage device. And if the target storage device finds that the first file identifier sent by the App-A is consistent with the file identifier received by the target storage device from the storage management server, the target storage device indicates that the current file storage behavior of the App-A is effective, and the file sent by the App-A is stored locally corresponding to the first file identifier.
Based on the method, the storage of the file sent by the user A through the client in the local area network where the user A is located is realized. Thus, when the user B in the same local area network needs to download the file, the user B only needs to download the file from the storage device storing the file in the local area network through the client App-B. Compared with the storage of the file at the server through the public network, the file transmission efficiency is higher.
Fig. 2 is a schematic diagram of another file storage process of the file processing system according to the embodiment of the present invention, where, as shown in fig. 2, the file processing system may include, in addition to the client, the storage device, and the storage management server shown in fig. 1, a service server corresponding to the client, where the service server is located at the server, that is, located at the cloud.
Therefore, in the file storage process, the client is further used for responding to the file sending operation, uploading the file to the service server for storage, and obtaining a second file identifier distributed by the service server for the file. The business server is used for storing the file and distributing a second file identifier.
For better visual understanding of the working process of the file processing system in this embodiment, as shown in fig. 2, the storing process of the file may include the following steps:
201. the client receives file sending operation triggered by a user.
202. And the client uploads the file to the business server for storage.
203. And the business server side stores the file and distributes a second file identifier for the file.
204. And the business server side sends the second file identification to the client side.
205. The client sends first application information to the storage management server, wherein the first application information comprises a local area network identifier and a second file identifier corresponding to the client.
206. The storage management server selects a storage device from the storage device set corresponding to the local area network identifier, and allocates a first file identifier.
207. And the storage management server side sends the first file identification and the address of the selected storage device to the client side.
208. And the storage management server side sends the first file identification to the selected storage device.
209. And the client sends a file storage request to the storage device according to the received address of the storage device, wherein the file storage request comprises a file and a first file identifier.
210. The storage device discovers that the first file identifier in the file storage request is consistent with the first file identifier sent to the storage management server side, and stores the first file identifier and the file.
The registration process of the storage device is omitted in this embodiment.
The scenario in which user a sends a file to user B through client App-a is still described in the foregoing as an example. In this embodiment, based on the triggering of the user a, app-a stores the file in a storage device in the local area network where the user a and the user B are located on the one hand, and stores the file in the service server on the other hand. The data is stored in the service server, on the one hand, because in some practical application scenarios, security and other considerations may be taken into account, authentication needs to be performed on the file storage behavior of the user a, and at this time, the service server needs to execute authentication processing logic. On the other hand, when no storage device exists in the local area network or the storage device storing a certain file fails, the file stored in the service server can be used as a spam scheme to ensure that the user B can download and obtain the file.
For example, the authentication processing logic of the business server to the file storage behavior of the client may be: whether the user A has the authority to send the file to the user B, whether the file size meets the requirement, whether the file type is allowed, and the like are judged. If the file storage behavior of the user A passes the authentication, the service server allocates a second file identifier for the file, stores the file and the second file identifier, and feeds back the second file identifier to the App-A. Similar to the first file identifier, the second file identifier may be used as a storage index of the file at the service end.
According to the above process, the storage management server may store the correspondence between the first file identifier, the second file identifier and the target storage device, where the target storage device is the storage device selected by the storage management server and used for storing the first file identifier and the file. This correspondence may be used in the process of downloading the file by user B, as will be described in the following embodiments.
In order to ensure the storage security of the file, in the process of storing the file in the storage device, some security protection mechanisms are further provided in the embodiment of the present invention, which is described below in conjunction with fig. 3.
Fig. 3 is a schematic diagram of a file storage process of a file processing system according to an embodiment of the present invention, and fig. 3 is taken as an example of a file processing system including a client, a storage device, and a storage management server shown in fig. 1, and it is understood that the solution of this embodiment is also applicable when the file processing system further includes a service server as shown in fig. 2. As shown in fig. 3, the storing process of the file may include the steps of:
301. and the client responds to the file sending operation and sends the local area network identifier corresponding to the client to the storage management server.
302. The storage management server selects storage equipment from a storage equipment set corresponding to the local area network identifier, and distributes a first file identifier, first authentication information and a secret key.
The selected storage device may be referred to as a target storage device.
The first authentication information may be, for example, a storage task identifier and/or token (token) allocated by the storage management server for the current file storage behavior of the client.
The token has a set life cycle, such as 1 minute. The storage task identification may be a randomly generated string of characters or numbers. The key may be generated by the storage management server based on a set key generation algorithm.
The key is used for encrypting and protecting the file. The first authentication information is used for verifying the validity of the file storage behavior of the client.
303. And the storage management server side sends the first file identification, the address of the selected storage device, the first authentication information and the secret key to the client side.
304. And the storage management server side sends the first file identification and the first authentication information to the selected storage device.
305. And the client sends a file storage request to the storage device according to the received address of the storage device, wherein the file storage request comprises the file encrypted by the key, a first file identifier and first authentication information.
306. The storage device discovers that the first file identification and the first authentication information in the file storage request are matched with the first file identification and the first authentication information received by the storage device from the storage management server, and then the first file identification and the file are stored.
Taking the storage task identifier and the token as examples, if the storage device finds that the first file identifier and the storage task identifier carried in the file storage request sent by the client are consistent with the first file identifier and the storage task identifier received by the storage management server, the token carried in the file storage request is consistent with the token received by the storage management server, and the token does not exceed the set life cycle, the file storage request is considered to be valid, and the first file identifier and the encrypted file are stored.
It is to be understood that, here, the first file identifier and the first authentication information are corresponding, and the correspondence refers to: assuming that the storage management server allocates corresponding file identifiers and authentication information for two file storage behaviors (usually corresponding to two different files) successively, for example, allocates a file identifier a and authentication information a for the storage behavior of the file 1, allocates a file identifier b and authentication information b for the storage behavior of the file 2, and the storage devices corresponding to the two files are both devices T, the device T will receive the file identifier a and authentication information a corresponding to the storage behavior of the file 1, and the file identifier b and authentication information b corresponding to the storage behavior of the file 2. At this time, if the file storage request sent by a certain client includes the file identification a and the authentication information b, the file storage request will not pass the authentication even if the file identification a and the authentication information b are stored in the storage device T, since the file identification a and the authentication information b do not have a correspondence relationship.
307. The storage device sends a file storage success notification to the client.
308. The client generates CRC corresponding to the file.
Wherein, cyclic redundancy check code (Cyclic Redundancy Check, CRC for short).
309. The client sends the CRC to the storage management server.
It should be noted that the execution of steps 307-309 is not limited to this embodiment, as is equally applicable in the embodiments shown in fig. 1 or fig. 2.
Based on the above process, the file is encrypted by the key, so that the security of the file in the transmission process is ensured; and through the authentication of the first authentication information, the validity of the file storage behavior executed by the client to the storage device is ensured.
According to the above process, the final storage management server may store the corresponding relationship among the first file identifier, the second file identifier, the target storage device, the key and the CRC, where the target storage device is the storage device selected by the storage management server and used for storing the first file identifier and the file. The correspondence may be used in the downloading process of the file, which will be described in the following embodiments.
In one or more embodiments, it is mentioned that, based on the triggering of the file storage behavior of the client, the storage management server selects a storage device from the storage devices included in the corresponding local area network, so that the client stores the file to be stored in the storage device.
Assuming that the selected storage device is referred to as a target storage device, optionally, as described above, the storage management server may select an optimal storage device from among the storage devices as the target storage device based on the file size, bandwidth, load, and the like.
Alternatively, however, the storage management server may select the target storage device according to a probing process as illustrated in fig. 4 below.
Fig. 4 is a schematic diagram of a further file storage process of the file processing system according to the embodiment of the present invention, and fig. 4 is taken as an example for describing that the file processing system includes the client, the storage device, and the storage management server shown in fig. 1, and it can be understood that the solution of this embodiment is also applicable when the file processing system further includes the service server shown in fig. 2. As shown in fig. 4, the storing process of the file may include the steps of:
401. and the client responds to the file sending operation and sends the local area network identifier corresponding to the client to the storage management server.
402. And the storage management server side sends the storage equipment set corresponding to the local area network identifier to the client side.
403. And the client sends a detection request to each storage device according to the address of each storage device in the storage device set.
Wherein the probe request is used to probe whether each storage device is available. The probe request may be, for example, a ping command to probe whether the memory device is capable of ping.
404. And the client determines available storage equipment of the client according to detection results respectively corresponding to the storage equipment.
If the client is able to receive a probe response sent by a certain storage device in response to a probe request, this indicates that the storage device is available, and conversely, if no probe response fed back by the certain storage device is received, this indicates that the storage device is not available.
Because a certain storage device in the local area network may fail for some reasons, so that the storage device cannot be used by the client at present, through the detection process, it can be ensured that the target storage device selected by the storage management server is a storage device which can be used by the client which triggers the file storage behavior at present, so as to ensure reliable storage of the file in the local area network.
405. The client sends the available storage equipment to the storage management server.
406. The storage management server selects a storage device from the available storage devices and allocates a first file identifier.
407. And the storage management server side sends the first file identification and the address of the selected storage device to the client side.
408. And the storage management server side sends the first file identification to the selected storage device.
409. And the client sends a file storage request to the storage device according to the received address of the storage device, wherein the file storage request comprises a file and a first file identifier.
410. The storage device discovers that the first file identifier in the file storage request is consistent with the first file identifier sent to the storage management server side, and stores the first file identifier and the file.
The above describes the implementation of the file storage process in the above-described file processing system by several embodiments, and the following describes the implementation of the file download process in connection with the following several embodiments.
It should be noted that, first, the scenario that the user a sends the file to the user B through App-a is accepted in the foregoing, the user downloading the file may be either user a or user B, that is, user a may download the file through App-a, or user B may download the file through App-B, so that the client in the downloading process of the file described below may be either App-a or App-B in the scenario. Whether App-a or App-B, is a representation of the same client App attached with different user attributes.
In the scenario where user a sends a file to user B, the file download process is described below taking the more general case of user B downloading the file as an example.
Fig. 5 is a schematic diagram of a file downloading process of the file processing system according to an embodiment of the present invention, where, as shown in fig. 5, the file downloading process may include the following steps:
501. the client responds to the file downloading operation aiming at a certain file and sends second application information to the storage management server, wherein the second application information comprises a second file identifier corresponding to the file and a local area network identifier corresponding to the client.
Based on the file sending operation of the user A to the user B, prompt information of the file can be displayed in the App-B of the user B, for example, when the client is an instant messaging application program, the user A sends a file in a chat window with the user B, and the user B can see the file in the chat window so as to execute file downloading operation on the file.
In the scenario where the user a sends a file to the user B, when the file sent by the user a is also stored in the service server illustrated in fig. 2, the file has a file identifier corresponding to the file stored in the service server, that is, the aforementioned second file identifier.
Therefore, the App-B can send second application information carrying the second file identification and the local area network identification corresponding to the App-B to the storage management server based on the file downloading operation triggered by the user B.
In fact, the user A and the user B are in the same local area network at this time, namely, the terminal equipment where the App-A is located and the terminal equipment where the App-B is located are accessed into the same local area network at this time.
In this embodiment, the second application information is used to apply to the storage management server for the configuration information required for downloading the file, which may be referred to as downloading configuration information.
502. The storage management server determines that a first file identifier corresponding to the second file identifier exists.
503. The storage management server side sends the first file identification and the address of the storage device storing the first file identification to the client side.
After receiving the second application information, the storage management server first inquires whether a first file identifier corresponding to a second file identifier in the second application information exists locally, where the first file identifier is a file identifier corresponding to the file when the file is stored in the target storage device, as described above. If there is a first file identification corresponding to the second file identification, it is stated that the file was previously stored in a certain storage device in the local area network, from which storage device the user B can download the file. Then, the storage management server determines the storage device storing the first file identifier, namely the file, as the target storage device in the previous description.
As described above, the storage management server may maintain the correspondence between the first file identifier, the second file identifier, and the target storage device, and thus, the storage management server may determine whether the first file identifier corresponding to the second file identifier exists and the target storage device storing the first file identifier based on the correspondence.
After the first file identifier and the target storage device are obtained through inquiry, the download configuration information containing the first file identifier and the address of the target storage device can be sent to the client, namely the App-B, so that the App-B can download the file corresponding to the first file identifier from the target storage device according to the address of the target storage device.
504. And the client downloads the corresponding file from the storage device according to the address of the storage device and the first file identifier.
In this embodiment, for the file downloader, since the file is stored in the storage device in the local area network, the downloader can quickly download the required file from the storage device in the local area network, thereby improving the downloading efficiency of the file.
In addition, it should be noted that, if the storage management server finds that the first file identifier corresponding to the second file identifier does not exist locally after receiving the second application information sent by the client, it indicates that the file to be downloaded is not stored in a storage device in the local area network corresponding to the client, and at this time, the storage management server may feed back error prompt information to the client, so that when the client cannot successfully download the file from the storage device, the client downloads the file from the service server according to the second file identifier.
In the file storage process, it is mentioned that some security protection mechanisms are provided to ensure the storage security of the file, and accordingly, some security protection mechanisms may also be provided in the file downloading process to avoid malicious downloading of the file, which is described below in connection with fig. 6.
Fig. 6 is a schematic diagram of another file downloading process of the file processing system according to the embodiment of the present invention, and as shown in fig. 6, the file downloading process may include the following steps:
601. the client responds to the file downloading operation aiming at a certain file and sends second application information to the storage management server, wherein the second application information comprises a second file identifier corresponding to the file and a local area network identifier corresponding to the client.
602. And if the storage management server determines that the first file identifier corresponding to the second file identifier exists, the storage management server sends an authentication instruction to the service server.
603. And the business server authenticates whether the user corresponding to the client has the downloading authority of the file.
604. And if the authentication is passed, the service server side sends an authentication passing notification to the storage management server side.
In this embodiment, the service server may also verify the file downloading behavior of the user B to verify whether the user B has the file downloading authority, similar to the verification that the service server may verify the file storing behavior of the user a in the file storing process.
For example, it is verified whether the file is sent to the user B, whether the terminal device corresponding to the user B performing the downloading operation meets the requirement, and so on.
It should be noted that if the storage management server does not find that the first file identifier corresponding to the second file identifier is locally stored, the error prompt information may be fed back to the client, and at this time, the client may download the corresponding file from the service server according to the second file identifier, and in the downloading process, the service server may also perform the authentication process described above.
605. The storage management server determines the address of the storage device storing the first file identifier and distributes second authentication information corresponding to the file downloading behavior.
Similar to the file storage process, the download task identification and/or token may be included in the second authentication information. The download task identification is used to identify a download process. Tokens have certain lifecycle limitations.
606. The storage management server side sends the address of the storage device, the first file identification, the second authentication information, CRC and the key corresponding to the first file identification to the client side.
As described above, based on the execution result of the file storage process, the storage management server may maintain the correspondence between the first file identifier, the second file identifier, the key required to encrypt the file, the CRC of the file, and the address of the target storage device storing the file and the first file identifier. Thus, based on the correspondence, the storage management server can obtain the CRC, the key, and the address of the target storage device.
607. And the storage management server side sends the first file identification and the second authentication information to the storage equipment.
608. And the client sends a file downloading request to the storage device according to the address of the storage device, wherein the file downloading request comprises a first file identifier and second authentication information.
609. The storage device determines whether the file downloading request is effective according to the first file identifier and the second authentication information received from the storage management server, and obtains an encrypted file corresponding to the first file identifier when the file downloading request is effective.
The process of verifying the file downloading behavior triggered by the user B according to the second authentication information is similar to the process of verifying the file storing behavior of the user a according to the first authentication information, which is not described herein.
610. The storage device sends the encrypted file to the client.
611. The client decrypts the encrypted file according to the received key to obtain the required file.
612. And the client performs CRC verification on the obtained file according to the received CRC.
The process of CRC validation may be: the client calculates the file obtained by decryption to obtain a corresponding CRC, and the corresponding CRC is assumed to be a first CRC; the CRC corresponding to the first file identification received by the client from the storage management server is called a second CRC; comparing whether the first CRC is consistent with the second CRC, if so, determining that the decrypted file is the file sent by the user A, and if not, determining that the file is possibly tampered, and considering that the file is failed to be downloaded. If the file downloading fails, the client can also download the corresponding file from the service server according to the second file identifier.
In this embodiment, for the file downloader, since the files are simultaneously stored in the storage device in the local area network and in the service server of the server, the downloader can preferentially and rapidly download and obtain the required files from the storage device in the local area network, so as to improve the downloading efficiency of the files, but when the files cannot be successfully downloaded from the local area network, the files can also be downloaded from the service server, thereby ensuring that the files can be successfully downloaded.
A file processing apparatus of one or more embodiments of the present invention will be described in detail below. Those skilled in the art will appreciate that these document processing devices may be configured using commercially available hardware components through the steps taught by the present solution.
Fig. 7 is a schematic structural diagram of a file processing apparatus according to an embodiment of the present invention, where, as shown in fig. 7, the file processing apparatus is located in a terminal device running a client mentioned in the foregoing embodiment, and the file processing apparatus may be implemented as a functional module in the client, or as a combination of the functional module in the client and related hardware in the terminal device. The document processing apparatus includes: a transmitting module 11, a receiving module 12, and a storage module 13.
The sending module 11 is configured to send, in response to a file sending operation, first application information to a storage management server, where the first application information includes a local area network identifier corresponding to the client, and the storage management server is located at a server.
The receiving module 12 is configured to receive storage configuration information sent by the storage management server, where the storage configuration information includes a first file identifier and an address of a storage device allocated by the storage management server, and the storage device is selected by the storage management server from a storage device set corresponding to the local area network identifier.
And the storage module 13 is used for storing the file and the first file identification into the storage device according to the address of the storage device.
Optionally, the apparatus further comprises: the detection module is used for acquiring the storage equipment set from the storage management server; sending a detection request to each storage device according to the address of each storage device in the storage device set, wherein the detection request is used for detecting whether each storage device is available or not; determining available storage equipment of the client according to detection results respectively corresponding to the storage equipment; and sending the available storage devices of the client to the storage management server through the sending module 11 so that the storage management server can select the storage devices from the storage management devices.
Optionally, the storage configuration information further includes first authentication information allocated by the storage management server and corresponding to file storage behavior. Thus, the storage module 13 may be specifically configured to: and sending a file storage request to the storage device according to the address of the storage device, wherein the file storage request comprises the file, the first file identifier and the first authentication information, so that the storage device stores the first file identifier and the file when determining that the file storage request is effective according to the first file identifier and the first authentication information received from the storage management server. The receiving module 12 may also be configured to: and receiving a file storage success notification sent by the storage equipment.
Optionally, the apparatus further comprises: and the generating module is used for responding to the file storage success notice, generating a cyclic redundancy check code corresponding to the file and transmitting the cyclic redundancy check code to the storage management server through the transmitting module 11.
Optionally, the storage configuration information further includes a key allocated by the storage management server and corresponding to the first file identifier. The storage module 13 may be specifically configured to: encrypting the file according to the key; and storing the encrypted file into the storage device according to the address of the storage device.
Optionally, the storage module 13 may also be configured to: responding to the file sending operation, uploading the file to a service server corresponding to the client for storage, wherein the service server is positioned at the server; and acquiring a second file identifier distributed by the business server for the file.
Therefore, the first application information also comprises the second file identifier. Based on this, the transmitting module 11 may also be configured to: and responding to the file downloading operation aiming at the file, and sending second application information to the storage management server, wherein the second application information comprises the second file identifier and the local area network identifier. The receiving module 12 may also be configured to: and receiving download configuration information sent by the storage management server, wherein the download configuration information comprises the first file identifier and the address of the storage device, and the storage device is determined by the storage management server to have the first file identifier corresponding to the second file identifier, and then the first file identifier is stored in each storage device corresponding to the local area network identifier. The apparatus may further include: and the downloading module is used for downloading the file corresponding to the first file identifier from the storage equipment.
Optionally, the download configuration information further includes second authentication information allocated by the storage management server and corresponding to a file downloading behavior. The download module may also be configured to: according to the address of the storage device, a file downloading request is sent to the storage device through the sending module 11, wherein the file downloading request comprises the first file identifier and the second authentication information, so that the storage device can acquire the file corresponding to the first file identifier when determining that the file downloading request is effective according to the first file identifier and the second authentication information received from the storage management server; and receiving the file transmitted by the storage device through the receiving module 12.
Optionally, the download configuration information further includes a key corresponding to the first file identifier, which has been allocated by the storage management server. Thus, the download module may also be used to: downloading an encrypted file corresponding to the first file identifier from the storage device; decrypting the encrypted file according to the key to obtain the file.
Optionally, the download configuration information further includes a cyclic redundancy check code corresponding to the file. Thus, the download module may also be used to: and verifying the cyclic redundancy check code for the downloaded file.
Optionally, the download module may be further configured to: and if the file is not successfully downloaded from the storage device, downloading the file from the service server according to the second file identifier.
The apparatus shown in fig. 7 may perform the method performed by the client in the foregoing embodiments, and for the portions of this embodiment not described in detail, reference may be made to the related descriptions of the foregoing embodiments, which are not repeated herein.
In one possible design, the structure of the file processing device shown in fig. 7 may be implemented as a terminal device, which may be, for example, a mobile phone, a tablet computer, a notebook computer, a digital assistant, etc. of the user, where the client is running. As shown in fig. 8, the terminal device may include: a first processor 21, and a first memory 22. Wherein the first memory 22 stores executable code thereon, which when executed by the first processor 21, causes at least the first processor 21 to perform the steps of:
responding to file sending operation, sending first application information to a storage management server, wherein the first application information comprises a local area network identifier corresponding to the client, and the storage management server is positioned at the server;
Receiving storage configuration information sent by the storage management server, wherein the storage configuration information comprises a first file identifier distributed by the storage management server and an address of a storage device, and the storage device is selected from a storage device set corresponding to the local area network identifier by the storage management server;
and storing the file and the first file identification into the storage device according to the address of the storage device.
The structure of the terminal device may further include a first communication interface 23, which is used for the terminal device to communicate with other devices or a communication network.
In addition, embodiments of the present invention provide a non-transitory machine-readable storage medium having stored thereon executable code that, when executed by a processor of a terminal device, causes the processor to perform the steps performed by the client in the foregoing embodiments.
Fig. 9 is a schematic structural diagram of another file processing device according to an embodiment of the present invention, where the file processing device is located at a storage management server mentioned in the foregoing embodiment, and the storage management server may be specifically implemented as a server of a certain server or a service in the server, as shown in fig. 9, where the file processing device includes: a receiving module 31, a selecting module 32, an allocating module 33, and a transmitting module 34.
The receiving module 31 is configured to receive first application information sent by a client in response to a file sending operation, where the first application information includes a local area network identifier corresponding to the client.
A selecting module 32, configured to select a storage device from a storage device set corresponding to the lan identifier.
An allocation module 33 is configured to allocate the first file identifier.
And the sending module 34 is configured to send the first file identifier and the selected address of the storage device to the client, and send the first file identifier to the storage device, so that the client stores the file and the first file identifier in the storage device according to the address of the storage device.
Optionally, the selection module 32 may specifically be configured to: transmitting the storage device set to the client through the transmitting module 34, so that the client determines available storage devices of the client from the storage device set; receiving, by the receiving module 31, the available storage devices sent by the client; the storage device is selected from the available storage devices.
Optionally, the receiving module 31 may be further configured to: and receiving registration information sent by each storage device in the storage device set, wherein the registration information comprises the address of the storage device and the local area network identifier. The apparatus further comprises: and the storage module is used for storing the local area network identification and the storage equipment set.
Optionally, the allocation module 33 may also be configured to: first authentication information corresponding to a file storage behavior is assigned. Thus, the first authentication information is sent to the client and the storage device through the sending module 34, so that the storage device performs validity authentication on the file storing behavior of the client according to the first authentication information.
Optionally, the allocation module 33 may also be configured to: and distributing a key corresponding to the first file identifier. Thus, the key is sent to the client by the sending module 34, so that the client encrypts the file according to the key.
Optionally, the first application information further includes a second file identifier, where the second file identifier is allocated by the service server when the client stores the file to a corresponding service server, and the service server is located at the service end. The receiving module 31 may also be configured to: and receiving second application information sent by the client in response to the file downloading operation for the file, wherein the second application information comprises the local area network identifier and the second file identifier. The apparatus further comprises: and the processing module is configured to send, if it is determined that the first file identifier corresponding to the second file identifier exists, the first file identifier and an address of the storage device storing the first file identifier to the client through the sending module 34, so that the client downloads the file from the storage device according to the address of the storage device and the first file identifier.
Optionally, the processing module is further configured to: before the sending module 34 sends the first file identifier and the address of the storage device storing the first file identifier to the client, an authentication instruction is sent to the service server by the sending module 34, so that the service server authenticates whether the user corresponding to the client has the downloading authority of the file.
Optionally, the allocation module 33 is further configured to: second authentication information corresponding to the file download behavior is assigned. Thus, the second authentication information is sent to the client and the storage device through the sending module 34, so that the storage device performs validity authentication on the downloading action of the file by the client according to the second authentication information.
Optionally, the sending module is further configured to: and sending the distributed key corresponding to the first file identifier to the client so that the client decrypts the encrypted file downloaded from the storage device according to the key.
The apparatus shown in fig. 9 may perform the method performed by the storage management server in the foregoing embodiments, and for the portions not described in detail in this embodiment, reference may be made to the description related to the foregoing embodiments, which is not repeated herein.
In one possible design, the structure of the file processing device shown in fig. 9 described above may be implemented as a server running a storage management server. As shown in fig. 10, the server may include: a second processor 41 and a second memory 42. Wherein the second memory 42 has executable code stored thereon, which when executed by the second processor 41, causes at least the second processor 41 to perform the steps of:
receiving first application information sent by a client in response to file sending operation, wherein the first application information comprises a local area network identifier corresponding to the client;
selecting a storage device from a storage device set corresponding to the local area network identifier;
distributing a first file identifier;
and sending the first file identification and the selected address of the storage device to the client, and sending the first file identification to the storage device, so that the client stores the file and the first file identification into the storage device according to the address of the storage device.
The server may further include a second communication interface 43 for the server to communicate with other devices or communication networks.
In addition, embodiments of the present invention provide a non-transitory machine-readable storage medium having executable code stored thereon, which when executed by a processor of a server, causes the processor to perform the steps performed by the storage management server in the foregoing embodiments.
Fig. 11 is a schematic structural diagram of another file processing apparatus according to an embodiment of the present invention, which is located in a storage device, and as shown in fig. 11, the file processing apparatus includes: a transmitting module 51, a receiving module 52, and a storage module 53.
The sending module 51 is configured to send registration information to a storage management server, where the registration information includes an address of a storage device and a corresponding lan identifier, and the storage management server is located at a server.
A receiving module 52, configured to receive a first file identifier sent by the storage management server in response to a file storage behavior triggered by a client, where the client corresponds to the local area network identifier, and the storage management server determines that the storage device corresponding to the local area network identifier may be used by the client to allocate the first file identifier.
The storage module 53 is configured to store the first file identifier and the file if the first file identifier and the file sent by the client are received by the receiving module 52.
Optionally, the receiving module 52 is further configured to: receiving first authentication information which is sent by the storage management server and corresponds to the file storage behavior; and receiving a file storage request sent by the client, wherein the file storage request comprises the file, and the first file identifier and the first authentication information received from the storage management server. Thus, the storage module 53 is further configured to: determining that the file storage request is valid according to the first file identifier and the first authentication information received from the storage management server; and storing the first file identification and the file.
Optionally, the receiving module 52 is further configured to: receiving second authentication information and the first file identification which are sent by the storage management server side in response to a file downloading action triggered by a client side, wherein the file downloading action corresponds to the file; and receiving a file downloading request sent by the client, wherein the file downloading request comprises the first file identifier and the second authentication information received from the storage management server. At this time, the apparatus further includes: the download processing module is used for determining that the file download request is effective according to the first file identifier and the second authentication information received from the storage management server; and sending the file corresponding to the first file identifier to the client.
The apparatus shown in fig. 11 may perform the method performed by the storage device in the foregoing embodiments, and for the portions of this embodiment not described in detail, reference may be made to the description related to the foregoing embodiments, which are not described herein.
In one possible design, the structure of the file processing apparatus shown in fig. 11 described above may be implemented as a storage device. As shown in fig. 12, the storage device may include: a third processor 61, and a third memory 62. Wherein the third memory 62 stores executable code, which when executed by the third processor 61, causes at least the third processor 61 to perform the steps of:
the method comprises the steps that registration information is sent to a storage management server-side, wherein the registration information comprises an address of storage equipment and a corresponding local area network identifier, and the storage management server-side is located at the server-side;
receiving a first file identifier sent by the storage management server in response to a file storage behavior triggered by a client, wherein the client corresponds to the local area network identifier, and the storage management server determines that the storage device corresponding to the local area network identifier can be used by the client to allocate the first file identifier;
And if the first file identifier and the file sent by the client are received, storing the first file identifier and the file.
The storage device may further include a third communication interface 63 in the structure of the storage device, for communicating with other devices or a communication network.
Additionally, embodiments of the present invention provide a non-transitory machine-readable storage medium having stored thereon executable code that, when executed by a processor of a storage device, causes the processor to perform the steps performed by the storage device in the previous embodiments.
The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by adding necessary general purpose hardware platforms, or may be implemented by a combination of hardware and software. Based on such understanding, the foregoing aspects, in essence and portions contributing to the art, may be embodied in the form of a computer program product, which may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of computer-readable media.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (30)

1. A method for processing a file, the method being applied to a client, the method comprising:
responding to file sending operation, sending first application information to a storage management server, wherein the first application information comprises a local area network identifier corresponding to the client, and the storage management server is positioned at the server;
receiving storage configuration information sent by the storage management server, wherein the storage configuration information comprises a first file identifier distributed by the storage management server and an address of a storage device, and the storage device is selected from a storage device set corresponding to the local area network identifier by the storage management server;
storing a file and the first file identifier into the storage device according to the address of the storage device, so that the storage device stores the first file identifier and the file if the storage device determines that the first file identifier sent by the client is consistent with the first file identifier received from the storage management server;
responding to the file sending operation, uploading the file to a service server corresponding to the client for storage, wherein the service server is positioned at the server;
Acquiring a second file identifier distributed by the business server for the file;
the first application information also comprises the second file identifier.
2. The method according to claim 1, wherein the method further comprises:
acquiring the storage equipment set from the storage management server;
sending a detection request to each storage device according to the address of each storage device in the storage device set, wherein the detection request is used for detecting whether each storage device is available or not;
determining available storage equipment of the client according to detection results respectively corresponding to the storage equipment;
and sending the available storage equipment of the client to the storage management server so that the storage management server can select the storage equipment from the storage management server.
3. The method of claim 1, wherein the storage configuration information further includes first authentication information allocated by the storage management server and corresponding to file storage behavior;
the storing the file and the first file identifier in the storage device according to the address of the storage device includes:
according to the address of the storage device, a file storage request is sent to the storage device, wherein the file storage request comprises the file, the first file identifier and the first authentication information, so that the storage device stores the first file identifier and the file when determining that the file storage request is effective according to the first file identifier and the first authentication information received from the storage management server;
And receiving a file storage success notification sent by the storage equipment.
4. A method according to claim 3, characterized in that the method further comprises:
generating a cyclic redundancy check code corresponding to the file in response to the file storage success notification;
and sending the cyclic redundancy check code to the storage management server.
5. The method of claim 1, wherein the storage configuration information further includes a key allocated by the storage management server and corresponding to the first file identifier;
the storing the file in the storage device according to the address of the storage device includes:
encrypting the file according to the key;
and storing the encrypted file into the storage device according to the address of the storage device.
6. The method according to claim 1, wherein the method further comprises:
responding to file downloading operation aiming at the file, and sending second application information to the storage management server, wherein the second application information comprises a second file identifier and a local area network identifier;
receiving download configuration information sent by the storage management server, wherein the download configuration information comprises the first file identifier and an address of the storage device, and the storage device is determined by the storage management server to have the first file identifier corresponding to the second file identifier, and then the first file identifier is stored in each storage device corresponding to the local area network identifier;
And downloading the file corresponding to the first file identifier from the storage device.
7. The method of claim 6, wherein the download configuration information further includes second authentication information allocated by the storage management server and corresponding to a file downloading behavior;
the downloading the file corresponding to the first file identifier from the storage device includes:
according to the address of the storage device, a file downloading request is sent to the storage device, wherein the file downloading request comprises the first file identifier and the second authentication information, so that the storage device can acquire the file corresponding to the first file identifier when determining that the file downloading request is effective according to the first file identifier and the second authentication information received from the storage management server;
and receiving the file sent by the storage equipment.
8. The method according to claim 6 or 7, wherein the download configuration information further includes a key corresponding to the first file identifier that has been allocated by the storage management server;
the downloading the file corresponding to the first file identifier from the storage device includes:
Downloading an encrypted file corresponding to the first file identifier from the storage device;
decrypting the encrypted file according to the key to obtain the file.
9. The method according to claim 6 or 7, wherein the download configuration information further includes a cyclic redundancy check code corresponding to the file, and the method further includes:
and verifying the cyclic redundancy check code for the downloaded file.
10. The method according to claim 6 or 7, characterized in that the method further comprises:
and if the file is not successfully downloaded from the storage device, downloading the file from the service server according to the second file identifier.
11. The file processing method is characterized by being applied to a storage management server, wherein the storage management server is positioned at a server, and the method comprises the following steps:
receiving first application information sent by a client in response to a file sending operation, wherein the first application information comprises local area network identifiers corresponding to the client, and the first application information also comprises second file identifiers distributed by a service server when the client stores the file to the corresponding service server, and the service server is positioned at the service end;
Selecting a storage device from a storage device set corresponding to the local area network identifier;
distributing a first file identifier;
and sending the first file identification and the selected address of the storage device to the client, sending the first file identification to the storage device, so that the client stores the file and the first file identification in the storage device according to the address of the storage device, and enabling the storage device to store the first file identification and the file if the first file identification sent by the client is determined to be consistent with the first file identification received from the storage management server.
12. The method of claim 11, wherein selecting a storage device from a set of storage devices corresponding to the lan identification comprises:
transmitting the storage device set to the client so that the client can determine available storage devices of the client from the storage device set;
receiving the available storage equipment sent by the client;
the storage device is selected from the available storage devices.
13. The method according to claim 12, wherein the method further comprises:
Receiving registration information sent by each storage device in the storage device set, wherein the registration information comprises addresses of the storage devices and the local area network identifier;
storing the local area network identification and the storage device set.
14. The method of claim 11, wherein the method further comprises:
assigning first authentication information corresponding to a file storage behavior;
and respectively sending the first authentication information to the client and the storage device so that the storage device performs validity authentication on the file storing behavior of the client according to the first authentication information.
15. The method of claim 11, wherein the method further comprises:
distributing a key corresponding to the first file identifier;
and sending the key to the client so that the client encrypts the file according to the key.
16. The method according to any one of claims 11 to 15, further comprising:
receiving second application information sent by a client in response to a file downloading operation for the file, wherein the second application information comprises the local area network identifier and the second file identifier;
And if the first file identifier corresponding to the second file identifier exists, sending the first file identifier and the address of the storage device storing the first file identifier to the client so that the client downloads the file from the storage device according to the address of the storage device and the first file identifier.
17. The method of claim 16, wherein before sending the first file identification and the address of the storage device storing the first file identification to the client, further comprising:
and sending an authentication instruction to the service server to enable the service server to authenticate whether the user corresponding to the client has the downloading authority of the file.
18. The method of claim 16, wherein the method further comprises:
distributing second authentication information corresponding to the file downloading behavior;
and respectively sending the second authentication information to the client and the storage device so that the storage device performs validity authentication on the downloading behavior of the file by the client according to the second authentication information.
19. The method of claim 16, wherein the method further comprises:
and sending the distributed key corresponding to the first file identifier to the client so that the client decrypts the encrypted file downloaded from the storage device according to the key.
20. A method of file processing, characterized by being applied to a storage device, the method comprising:
the method comprises the steps that registration information is sent to a storage management server-side, wherein the registration information comprises an address of storage equipment and a corresponding local area network identifier, and the storage management server-side is located at the server-side;
receiving a first file identifier sent by the storage management server in response to a file storage behavior triggered by a client, wherein the client corresponds to the local area network identifier, the client uploads a file corresponding to the first file identifier to a business server corresponding to the client for storage, the business server distributes a second file identifier for the file, and the storage management server determines that the storage device corresponding to the local area network identifier can be used by the client to distribute the first file identifier;
And if the first file identifier sent by the client is determined to be consistent with the first file identifier received from the storage management server, storing the first file identifier and the file.
21. The method of claim 20, wherein the method further comprises:
receiving first authentication information which is sent by the storage management server and corresponds to the file storage behavior;
and if it is determined that the first file identifier sent by the client is consistent with the first file identifier received from the storage management server, storing the first file identifier and the file, including:
receiving a file storage request sent by the client, wherein the file storage request comprises the file, and the first file identifier and the first authentication information which are received from the storage management server;
determining that the file storage request is valid according to the first file identifier and the first authentication information received from the storage management server;
and storing the first file identification and the file.
22. The method of claim 20, wherein the method further comprises:
Receiving second authentication information and the first file identification which are sent by the storage management server side in response to a file downloading action triggered by a client side, wherein the file downloading action corresponds to the file;
receiving a file downloading request sent by the client, wherein the file downloading request comprises the first file identifier and the second authentication information received from the storage management server;
determining that the file downloading request is valid according to the first file identifier and the second authentication information received from the storage management server;
and sending the file corresponding to the first file identifier to the client.
23. A document processing apparatus in a terminal device operating with a client, the apparatus comprising:
the storage management system comprises a sending module, a storage management server and a storage management server, wherein the sending module is used for responding to file sending operation and sending first application information to the storage management server, the first application information comprises a local area network identifier corresponding to the client, and the storage management server is located at the server;
the storage management server side is used for receiving storage configuration information sent by the storage management server side, wherein the storage configuration information comprises a first file identifier and an address of a storage device distributed by the storage management server side, and the storage device is selected from a storage device set corresponding to the local area network identifier by the storage management server side;
The storage module is used for storing the file and the first file identifier into the storage device according to the address of the storage device, so that the storage device stores the first file identifier and the file if the storage device determines that the first file identifier sent by the client is consistent with the first file identifier received from the storage management server;
responding to the file sending operation, uploading the file to a service server corresponding to the client for storage, wherein the service server is positioned at the server;
acquiring a second file identifier distributed by the business server for the file;
the first application information also comprises the second file identifier.
24. A terminal device, comprising: a memory, a processor; wherein the memory has stored thereon executable code which, when executed by the processor, causes the processor to perform the file processing method of any of claims 1 to 10.
25. A document processing apparatus in a server operating with a storage management server, the server being located at the server, the apparatus comprising:
The receiving module is used for receiving first application information sent by a client in response to file sending operation, wherein the first application information comprises local area network identifiers corresponding to the client, the first application information also comprises second file identifiers distributed by a service server when the client stores the files to the corresponding service server, and the service server is positioned at the service server;
a selecting module, configured to select a storage device from a storage device set corresponding to the lan identifier;
the distribution module is used for distributing the first file identification;
the sending module is configured to send the first file identifier and the selected address of the storage device to the client, send the first file identifier to the storage device, so that the client stores the file and the first file identifier in the storage device according to the address of the storage device, and enable the storage device to store the first file identifier and the file if it is determined that the first file identifier sent by the client is consistent with the first file identifier received from the storage management server.
26. A server, comprising: a memory, a processor; wherein the memory has stored thereon executable code which, when executed by the processor, causes the processor to perform the file processing method of any of claims 11 to 19.
27. A document processing apparatus, located in a storage device, the apparatus comprising:
the system comprises a sending module, a storage management server and a client, wherein the sending module is used for sending registration information to the storage management server, the registration information comprises an address of a storage device and a corresponding local area network identifier, the client also stores a file corresponding to a first file identifier to a corresponding business server, the business server distributes a second file identifier for the file, and the storage management server is positioned at the server;
a receiving module, configured to receive a first file identifier sent by the storage management server in response to a file storage behavior triggered by a client, where the client corresponds to the local area network identifier, and the storage management server determines that the storage device corresponding to the local area network identifier can be used by the client to allocate the first file identifier;
And the storage module is used for storing the first file identifier and the file if the first file identifier sent by the client is determined to be consistent with the first file identifier received from the storage management server.
28. A memory device, comprising: a memory, a processor; wherein the memory has stored thereon executable code which, when executed by the processor, causes the processor to perform the file processing method of any of claims 20 to 22.
29. A document processing system, comprising:
the system comprises a client, a storage device and a storage management server, wherein the client and the storage device are both positioned in the same local area network, and the storage management server is positioned at the server;
the client is used for responding to the file sending operation and sending first application information to the storage management server, wherein the first application information comprises a local area network identifier corresponding to the client; receiving storage configuration information sent by the storage management server, wherein the storage configuration information comprises a first file identifier distributed by the storage management server and an address of the storage device; storing a file and the first file identification into the storage device according to the address of the storage device; responding to the file sending operation, uploading the file to a service server corresponding to the client for storage, wherein the service server is positioned at the server; acquiring a second file identifier distributed by the business server for the file; the first application information also comprises the second file identifier;
The storage management server is configured to select the storage device from a storage device set corresponding to the local area network identifier, allocate the first file identifier, send the first file identifier and an address of the storage device to the client, and send the first file identifier to the storage device;
and the storage device is used for storing the first file identifier and the file if the first file identifier sent by the client is determined to be consistent with the first file identifier received from the storage management server.
30. The system of claim 29, further comprising:
the business service end corresponds to the client, and the business service end is positioned at the service end;
the client is further configured to respond to a file sending operation, upload the file to the service server for storage, and obtain a second file identifier allocated by the service server for the file;
the business server is used for storing the file and distributing the second file identification.
CN201910023653.4A 2019-01-10 2019-01-10 File processing method, device, equipment and system Active CN111431957B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910023653.4A CN111431957B (en) 2019-01-10 2019-01-10 File processing method, device, equipment and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910023653.4A CN111431957B (en) 2019-01-10 2019-01-10 File processing method, device, equipment and system

Publications (2)

Publication Number Publication Date
CN111431957A CN111431957A (en) 2020-07-17
CN111431957B true CN111431957B (en) 2023-09-26

Family

ID=71545917

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910023653.4A Active CN111431957B (en) 2019-01-10 2019-01-10 File processing method, device, equipment and system

Country Status (1)

Country Link
CN (1) CN111431957B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113810484A (en) * 2021-09-10 2021-12-17 深圳云之家网络有限公司 File request processing method and device, computer equipment and storage medium
CN113873044B (en) * 2021-10-15 2024-01-02 阿里巴巴(中国)有限公司 Data transmission method, system, equipment and storage medium
CN114785901A (en) * 2022-03-28 2022-07-22 宁波一网信息技术有限公司 Image retrieval method and system

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101030873A (en) * 2007-02-15 2007-09-05 深圳市迅雷网络技术有限公司 Method and system for downloading data
CN102055776A (en) * 2009-10-30 2011-05-11 亚旭电子科技(江苏)有限公司 Special line-connected document transmission system and method
CN102882985A (en) * 2012-10-23 2013-01-16 上海够快网络科技有限公司 File sharing method based on cloud storage
CN103747032A (en) * 2013-12-12 2014-04-23 北京奇虎科技有限公司 File transmission method, device and system
CN104993999A (en) * 2015-06-12 2015-10-21 联想(北京)有限公司 Information processing method and server
CN105281987A (en) * 2014-06-03 2016-01-27 腾讯科技(深圳)有限公司 Router and data upload method, device and system
CN106453446A (en) * 2015-08-06 2017-02-22 阿里巴巴集团控股有限公司 IOT (Internet of Things) equipment connection method, device and system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015085485A1 (en) * 2013-12-10 2015-06-18 华为终端有限公司 Synchronization method, terminal and server
US11089100B2 (en) * 2017-01-12 2021-08-10 Vivint, Inc. Link-server caching

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101030873A (en) * 2007-02-15 2007-09-05 深圳市迅雷网络技术有限公司 Method and system for downloading data
CN102055776A (en) * 2009-10-30 2011-05-11 亚旭电子科技(江苏)有限公司 Special line-connected document transmission system and method
CN102882985A (en) * 2012-10-23 2013-01-16 上海够快网络科技有限公司 File sharing method based on cloud storage
CN103747032A (en) * 2013-12-12 2014-04-23 北京奇虎科技有限公司 File transmission method, device and system
CN105281987A (en) * 2014-06-03 2016-01-27 腾讯科技(深圳)有限公司 Router and data upload method, device and system
CN104993999A (en) * 2015-06-12 2015-10-21 联想(北京)有限公司 Information processing method and server
CN106453446A (en) * 2015-08-06 2017-02-22 阿里巴巴集团控股有限公司 IOT (Internet of Things) equipment connection method, device and system

Also Published As

Publication number Publication date
CN111431957A (en) 2020-07-17

Similar Documents

Publication Publication Date Title
US9864608B2 (en) Client authentication during network boot
US9867051B2 (en) System and method of verifying integrity of software
US8352741B2 (en) Discovery of secure network enclaves
EP2441205B1 (en) Key management in secure network enclaves
US9219722B2 (en) Unclonable ID based chip-to-chip communication
US20120291106A1 (en) Confidential information leakage prevention system, confidential information leakage prevention method, and confidential information leakage prevention program
CN103154966A (en) System and methods for remote maintenance in an electronic network with multiple clients
CN111740966B (en) Data processing method based on block chain network and related equipment
CN105491001A (en) Secure communication method and device
CN111431957B (en) File processing method, device, equipment and system
CN104753674A (en) Application identity authentication method and device
US10298388B2 (en) Workload encryption key
CN112688773A (en) Token generation and verification method and device
CN103812651A (en) Password authentication method, device and system
CN111522809A (en) Data processing method, system and equipment
US20190199533A1 (en) Data network path integrity verification
US20230244797A1 (en) Data processing method and apparatus, electronic device, and medium
US10621319B2 (en) Digital certificate containing multimedia content
CN112148345B (en) Method, device, electronic equipment and computer readable medium for transmitting small program package
CN112422475B (en) Service authentication method, device, system and storage medium
CN111404901A (en) Information verification method and device
US20220376924A1 (en) Header for conveying trustful client address
US20220311616A1 (en) Connection resilient multi-factor authentication
CN110248166B (en) Video information processing method, client, electronic device and storage medium
CN117354001A (en) Access method of Internet of vehicles system, cloud server, controlled terminal and Internet of vehicles system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant