CN105354312A - File storage method and method, and file downloading method and system - Google Patents

File storage method and method, and file downloading method and system Download PDF

Info

Publication number
CN105354312A
CN105354312A CN201510763288.2A CN201510763288A CN105354312A CN 105354312 A CN105354312 A CN 105354312A CN 201510763288 A CN201510763288 A CN 201510763288A CN 105354312 A CN105354312 A CN 105354312A
Authority
CN
China
Prior art keywords
file
server
branch server
subscriber equipment
headquarters
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.)
Pending
Application number
CN201510763288.2A
Other languages
Chinese (zh)
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.)
China Construction Bank Corp
Original Assignee
China Construction Bank Corp
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 China Construction Bank Corp filed Critical China Construction Bank Corp
Priority to CN201510763288.2A priority Critical patent/CN105354312A/en
Publication of CN105354312A publication Critical patent/CN105354312A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/18File system types
    • G06F16/182Distributed file systems
    • G06F16/1824Distributed file systems implemented using Network-attached Storage [NAS] architecture
    • G06F16/1827Management specifically adapted to NAS

Landscapes

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

Abstract

The embodiment of the invention provides a file storage method and system, and a file downloading method and system. The file storage method comprises the following steps: user equipment sends a file storage indication request to a headquarter server, wherein the file storage indication request comprises the user information of a user to which the user equipment belongs; according to the user information, the headquarter server determines a target branch server which is in charge of storing files, and sends the address of the target branch server to the user equipment; the user equipment transmits the file which needs to be stored to the target branch server according to the address; the target branch server writes the file into a corresponding NAS (Network Attached Storage); the target branch server returns the description information of the stored file to the headquarter server; and the headquarter server records that the target branch server is in charge of storing the file with the description information in a database. The embodiment of the invention realizes quick file storage with small wide area network bandwidth occupation.

Description

A kind of file memory method, method for down loading and system
Technical field
The present invention relates to technical field of data processing, be specifically related to a kind of file memory method, method for down loading and system.
Background technology
At present based on the document storage system that JAVA technology realizes, general employing single one physical memory node is disposed, file and management information thereof are all stored in server, when user performs upload file to server, and during from the action of server download file, file transfer between subscriber equipment and server, can relate to and taking from the LAN of subscriber equipment to Wide Area Network, then to the bandwidth of server place LAN.
The present inventor finds in research process, headquarters server (server belonging to head office) and branch server (server belonging to branch) is provided with as the organizational structures such as bank, if carry out the storage of file according to existing file storage system, then file all needs the headquarters server being stored in far-end, this takies causing during Wide Area Network bandwidth long, especially the comparatively large or file of transmitted Single document volume stores, download action is frequently in situation, taking of Wide Area Network bandwidth produces larger impact by network, even have influence on the stability of whole network, meanwhile, the data of Wide Area Network transmission are more, and Bandwidth-Constrained, also will make the transmission speed of file relatively slow,
Visible, the document storage mode that existing employing single one physical memory node is disposed, and be not suitable for the organizational structure with general headquarters and branch, especially this organizational structure of bank; Therefore provide a kind of new file memory method, with under organizational structure's scene with general headquarters and branch, realization is quick and the file storage that Wide Area Network bandwidth occupancy is lower, becomes the problem that those skilled in the art need to consider.
Summary of the invention
In view of this, the embodiment of the present invention provides a kind of file memory method, method for down loading and system, and with under organizational structure's scene with general headquarters and branch, realization is quick and the file storage that Wide Area Network bandwidth occupancy is lower.
For achieving the above object, the embodiment of the present invention provides following technical scheme:
A kind of file memory method, comprising:
Subscriber equipment sends file to headquarters server and stores instruction request, and described file stores the user profile that instruction request comprises described subscriber equipment owning user;
Headquarters server, according to described user profile, determines the intended branch server of responsible storage file, and the address of described intended branch server is sent to described subscriber equipment; Wherein, described intended branch server be choose from multiple branch server with the branch server of described subscriber equipment by local area network communication;
Subscriber equipment is according to described address, and the file transfer that need store gives described intended branch server;
Described file writes in corresponding NAS by described intended branch server;
The descriptor of the described file stored is returned to headquarters server by described intended branch server;
Described headquarters server records the file with described descriptor in a database and is stored by described intended branch network in charge.
Wherein, described headquarters server, according to described user profile, determines that the intended branch server of responsible storage file comprises:
Headquarters server determines the branch offices belonging to described user according to described user profile, whether there is branch server, and wherein, the branch server of the branch offices belonging to described user, passes through local area network communication with described subscriber equipment;
If exist, headquarters server, by the branch server in the branch offices belonging to described user, is defined as intended branch server.
Wherein, described headquarters server, by the branch server in the branch offices belonging to described user, is defined as intended branch server and comprises:
Headquarters server is by the branch offices belonging to described user, and the distance apart from described subscriber equipment meets preset distance condition.
Wherein, described headquarters server, by the branch server in the branch offices belonging to described user, is defined as intended branch server and comprises:
Running status is met the branch server of predetermined state condition by headquarters server, is defined as intended branch server.
Wherein, described method also comprises:
Headquarters server determination file, at the store path of described intended branch server, while the address of described intended branch server is sent to described subscriber equipment, together sends described store path;
Described subscriber equipment is according to described address, and the file transfer that need store comprises to described intended branch server:
Subscriber equipment is according to described address, and the file transfer that need store gives described intended branch server, and indicates described file to store at described store path;
The described corresponding NAS of described file write comprises by described intended branch server:
Described file writes in described corresponding NAS by described intended branch server, the storage space corresponding to described store path.
Wherein, described method also comprises:
Described store path is stored into correspondence database by described headquarters server;
Described file is writing after in described corresponding NAS by described intended branch server, and backspace file stores successful information to described subscriber equipment.
The embodiment of the present invention also provides a kind of document down loading method, and based on file memory method described above, described method comprises:
Subscriber equipment sends file download request to headquarters server, and described file download request comprises the descriptor of the file that need download;
Headquarters server, according to described descriptor, determines the intended branch server being responsible for storing the file with described descriptor, by described file download request forward to described intended branch server; Wherein, described intended branch server be choose from multiple branch server with the branch server of described subscriber equipment by local area network communication;
Described intended branch server, according to described descriptor, is transferred the file with described descriptor, and is sent to described subscriber equipment from map network attached storage NAS.
Wherein, the corresponding relation of the documentary descriptor of described intended branch server record and the store path of file in described NAS; Described intended branch server, according to described descriptor, is transferred the file with described descriptor and is comprised from corresponding NAS:
Described intended branch server, according to described corresponding relation, determines the store path of file in described NAS with described descriptor;
The file with described descriptor is transferred from described store path.
The embodiment of the present invention also provides a kind of document storage system, comprising: subscriber equipment, headquarters server, multiple branch server, has intended branch server in described multiple branch server;
Wherein, described subscriber equipment, store instruction request for sending file to headquarters server, described file stores the user profile that instruction request comprises described subscriber equipment owning user; And receive the address of the intended branch server that described headquarters server sends, according to described address, the file transfer that need store gives described intended branch server;
Described headquarters server, for according to described user profile, determines the intended branch server of responsible storage file, the address of described intended branch server is sent to described subscriber equipment; And the descriptor of the described file stored of receiving target branch server transmission, the file that record has described descriptor is stored by described intended branch network in charge;
Described intended branch server, for being write in corresponding NAS by described file, and returns to headquarters server by the descriptor of the described file stored.
The embodiment of the present invention also provides a kind of file download system, comprising: subscriber equipment, headquarters server, multiple branch server, has intended branch server in described multiple branch server;
Wherein, described subscriber equipment, for sending file download request to headquarters server, described file download request comprises the descriptor of the file that need download; And receive the described file of described intended branch server transmission;
Described headquarters server, for according to described descriptor, determines the intended branch server being responsible for storing the file with described descriptor, by described file download request forward to described intended branch server;
Described intended branch server, for according to described descriptor, transfers the file with described descriptor, and sends to described subscriber equipment from corresponding NAS.
Based on technique scheme, when subscriber equipment needs storage file, subscriber equipment can ask headquarters server to distribute the branch server being responsible for storage file, headquarters server can choose from multiple branch server with the intended branch server of described subscriber equipment by local area network communication, and the address of intended branch server is sent to described subscriber equipment; And then subscriber equipment is by local area network communication, by file transfer to intended branch server, described file is write in corresponding NAS by intended branch server, realizes the storage of file; Further, for ease of the download of storage file, the descriptor of the described file stored can be returned to headquarters server by intended branch server, so that headquarters server record.In the file memory method that the embodiment of the present invention provides, because intended branch server and subscriber equipment carry out by local area network communication the transmission needing storage file, therefore taking of Wide Area Network bandwidth when file specifically stores content delivery is greatly reduced, and the file transfer speed of LAN is very fast, achieves file comparatively fast and store; Therefore, the embodiment of the present invention achieves fast and the lower file of Wide Area Network bandwidth occupancy stores.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only embodiments of the invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to the accompanying drawing provided.
The structured flowchart of the document storage system that Fig. 1 provides for the embodiment of the present invention;
The signaling process figure of the file memory method that Fig. 2 provides for the embodiment of the present invention;
Another signaling process figure of the file memory method that Fig. 3 provides for the embodiment of the present invention;
The method flow diagram of the headquarters server determination intended branch server that Fig. 4 provides for the embodiment of the present invention;
The schematic diagram of the application examples of the file memory method that Fig. 5 provides for the embodiment of the present invention;
The signaling process figure of the document down loading method that Fig. 6 provides for the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
The structured flowchart of the document storage system that Fig. 1 provides for the embodiment of the present invention, the file memory method that the embodiment of the present invention provides need based on the document storage system shown in Fig. 1, as shown in Figure 1, this document storage system can comprise: subscriber equipment 10, headquarters server 20, and multiple branch server 30; In multiple branch server 30, there is intended branch server 31;
Wherein, subscriber equipment 10 can electronic equipment belonging to the active user of branch offices, as the terminal such as computing machine, panel computer; User belonging to subscriber equipment 10 can be subordinated to a certain branch offices, and the user belonging to subscriber equipment 10 can be the branch employee of a certain bank;
The server of headquarters server 20 belonging to general headquarters, as the server belonging to the head office of a certain bank; In embodiments of the present invention, headquarters server 20 is responsible for the management work that file stores, downloads, but not responsible concrete file stores, download action; Headquarters server 20 can by single server, or the group of multiple servers composition realizes;
The server of branch server 30 belonging to branch offices, as the server belonging to the branch of a certain bank; In embodiments of the present invention, according to the instruction of headquarters server 20, branch server 30 can communicate with subscriber equipment 10, and is responsible for concrete file storage, download action; Branch server 30 can by single server, or the group be made up of multiple servers realizes;
Based on document storage system shown in Fig. 1, Fig. 2 shows the signaling process figure of the file memory method that the embodiment of the present invention provides, and shown in composition graphs 1 and Fig. 2, this flow process can comprise:
Step S100, subscriber equipment send file to headquarters server and store instruction request, and described file stores the user profile that instruction request comprises described subscriber equipment owning user;
When the user of a certain branch offices needs storage file, log in headquarters server by affiliated electronic equipment, and send to headquarters server the file comprising user profile and store instruction request; It is the information that the branch server of storage file is responsible in the instruction of request headquarters server that file stores instruction request, so that headquarters server stores instruction request according to this file, carry out the distribution of the branch server of responsible storage file, therefore store in instruction request and do not comprise the file content that specifically need store;
Optionally, manage for ease of the line pipe that is stored into of headquarters server for file, file stores in instruction request also can carry the filename needing storage file, the information such as summary, so that headquarters server carries out record; Optionally, headquarters server can be connected with corresponding DB (database) and NAS (NetworkAttachedStorage, network attached storage), and the content that headquarters server records can be stored in corresponding DB and NAS;
Optionally, user profile is as the information such as user account, IP address (agreement interconnected between network).
Step S110, headquarters server, according to described user profile, determine the intended branch server of responsible storage file;
Wherein, described intended branch server be choose from multiple branch server with the branch server of described subscriber equipment by local area network communication;
Headquarters server, after receiving file storage instruction request, can distribute the storage being carried out responsible file with subscriber equipment by the intended branch server of local area network communication, to avoid too much taking of Wide Area Network from multiple branch server;
Concrete, the mark (as address etc.) of the branch server belonging to each branch offices can be recorded in headquarters server, the user profile (as user account, IP address etc.) of the user belonging to each branch offices; For the branch server belonging to each branch offices, the embodiment of the present invention can by with branch server by the user profile belonging to the subscriber equipment of local area network communication, set up corresponding relation with the mark of branch server, thus count and the subscriber equipment of the branch server belonging to each branch offices by local area network communication;
And then, headquarters server is after receiving file storage instruction request, concrete subscriber equipment can be navigated to according to entrained user profile, thus according to the corresponding relation of above-mentioned foundation, determine and the mark of this subscriber equipment by the branch server of local area network communication, the mark of intended branch server is chosen, the determination of realize target branch server from the mark of determined branch server; Identify the unique features such as address, title as branch server.
The address of described intended branch server is sent to described subscriber equipment by step S120, headquarters server;
Headquarters server is after determining the intended branch server of responsible storage file, the address of intended branch server can be sent to subscriber equipment, so that subscriber equipment and intended branch server are linked up, the file that realization need store is to the transmission of intended branch server;
Optionally, headquarters server also can record the file storage condition of each branch server, after determining intended branch server, according to the file storage condition of intended branch server, determine the store path of file in intended branch server and store, thus in the lump this store path being sent to subscriber equipment.
Step S130, subscriber equipment are according to described address, and the file transfer that need store gives described intended branch server;
Subscriber equipment is behind the address receiving the intended branch server that headquarters server sends, can determine that the file that need store is assigned in intended branch server and be responsible for storage, therefore can communicate with intended branch server, the file transfer that need store is to intended branch server; Because intended branch server and subscriber equipment pass through local area network communication, therefore taking of Wide Area Network bandwidth when file specifically stores content delivery is greatly reduced, and the file transfer speed of LAN is very fast, therefore can realizes file comparatively fast and store.
Described file writes in corresponding NAS by step S140, described intended branch server;
Intended branch server, can the store path of allocate file in NAS after receiving the file that need store, and writes in the NAS of intended branch server according to described store path by file;
Optionally, if headquarters server instruction has the store path of user's device file in intended branch server, then subscriber equipment is when the file that transmission need store is to intended branch server, also the store path indicated by headquarters server can together be transmitted, thus make the store path of intended branch server indicated by headquarters server, described file is write storage space corresponding to described store path in corresponding NAS;
It should be noted that, in embodiments of the present invention, the memory location of data is not in branch server and headquarters server, branch server and headquarters server are only the storage allocation of responsible data, and the NAS that is connected with headquarters server primarily of branch server of the storage of data and database realizing, namely the memory location of data is in NAS and database;
NAS (NetworkAttachedStorage: network attached storage) is connected on network, possesses the device of data storage function, therefore also referred to as network memory; It is a kind of exclusive data storage server; It is data-centered, is thoroughly separated by memory device with server, centralized management data, thus discharges bandwidth, raising performance, the TCO that reduces, protection investment; Its cost is well below use server stores, and efficiency is far away higher than use server stores.
The descriptor of the described file stored is returned to headquarters server by step S150, described intended branch server;
The descriptor of file is as Hash (hash) information of file and type (type) information; The management work of headquarters server primary responsibility file in file storing process, therefore the descriptor of described file need be returned to headquarters server by intended branch server, so that headquarters server knows in each branch server all store what file, thus be convenient to subsequent user equipment ask download file time, navigate to the file that need download institute be responsible for storage branch server.
Step S160, described headquarters server record the file with described descriptor in a database and are stored by described intended branch network in charge.
Optionally, headquarters server has been responsible for the descriptor of the file stored by record object branch server, can determine that each branch server is responsible for the file stored, thus when being convenient to subsequent download file, navigate to the branch server needing download file institute to be responsible for storage.
The file memory method that the embodiment of the present invention provides comprises: subscriber equipment sends file to headquarters server and stores instruction request, and described file stores the user profile that instruction request comprises described subscriber equipment owning user; Headquarters server, according to described user profile, determines the intended branch server of responsible storage file, and the address of described intended branch server is sent to described subscriber equipment; Wherein, described intended branch server be choose from multiple branch server with the branch server of described subscriber equipment by local area network communication; Subscriber equipment is according to described address, and the file transfer that need store gives described intended branch server; Described file writes in corresponding NAS by described intended branch server; The descriptor of the described file stored is returned to headquarters server by described intended branch server; Described headquarters server records the file with described descriptor in a database and is stored by described intended branch network in charge.
Can find out, when subscriber equipment needs storage file, subscriber equipment can ask headquarters server to distribute the branch server being responsible for storage file, headquarters server can choose from multiple branch server with the intended branch server of described subscriber equipment by local area network communication, and the address of intended branch server is sent to described subscriber equipment; And then subscriber equipment is by local area network communication, by file transfer to intended branch server, described file is write in corresponding NAS by intended branch server, realizes the storage of file; Further, for ease of the download of storage file, the descriptor of the described file stored can be returned to headquarters server by intended branch server, so that headquarters server record.In the file memory method that the embodiment of the present invention provides, because intended branch server and subscriber equipment carry out by local area network communication the transmission needing storage file, therefore taking of Wide Area Network bandwidth when file specifically stores content delivery is greatly reduced, and the file transfer speed of LAN is very fast, achieves file comparatively fast and store; Therefore, the embodiment of the present invention achieves fast and the lower file of Wide Area Network bandwidth occupancy stores.
Optionally, Fig. 3 shows another signaling process figure of the file memory method that the embodiment of the present invention provides, and shown in composition graphs 1 and Fig. 3, this flow process can comprise:
Step S200, subscriber equipment send file to headquarters server and store instruction request, and described file stores the user profile that instruction request comprises described subscriber equipment owning user;
Step S210, headquarters server, according to described user profile, determine the intended branch server of responsible storage file, and file is at the store path of described intended branch server, and described store path are stored into the database of described headquarters server;
Wherein, described intended branch server be choose from multiple branch server with the branch server of described subscriber equipment by local area network communication.
The address of described intended branch server and described store path are sent to described subscriber equipment by step S220, headquarters server;
Optionally, address and store path can be integrated into url (UniformResoureLocator, URL(uniform resource locator)), and this url can be sent to subscriber equipment by headquarters server.
Step S230, subscriber equipment are according to described address, and the file transfer that need store gives described intended branch server, and indicates described file to store at described store path;
Described file writes in described corresponding NAS by step S240, described intended branch server, the storage space corresponding to described store path;
Described file is writing after in described corresponding NAS by step S250, described intended branch server, and backspace file stores successful information to subscriber equipment;
The descriptor of the described file stored is returned to headquarters server by step S260, described intended branch server;
Step S270, described headquarters server record the file with described descriptor in a database and are stored by described intended branch network in charge.
Optionally, Fig. 4 shows the method flow diagram of headquarters server determination intended branch server, and with reference to Fig. 4, the method can comprise:
Step S300, headquarters server determine the branch offices belonging to described user according to described user profile, whether there is branch server, and wherein, the branch server of the branch offices belonging to described user, passes through local area network communication with described subscriber equipment;
If step S310 exists, headquarters server, by the branch server in the branch offices belonging to described user, is defined as intended branch server.
Optionally, a branch server herein can be single server, also can be the group of multiple servers composition;
Optionally, intended branch server can be the branch server meeting preset distance condition in the branch offices belonging to user apart from the distance of subscriber equipment, thus realizes the storage of file at subscriber equipment nearly source memory node; Concrete, headquarters server can by the branch offices belonging to described user, and the distance apart from described subscriber equipment meets the branch server of preset distance condition, is defined as intended branch server; Preset distance condition can be that communication distance is the shortest etc.;
Optionally, headquarters server, when choosing intended branch server, also can consider the running status (as the NAS storage file capacity of branch server, the loading condition etc. of branch server) of branch server; With the work requirements making selected intended branch server can meet responsible storage file; Concrete, running status in the branch offices belonging to described user can be met the branch server of predetermined state condition by headquarters server, is defined as intended branch server;
Further, preset distance condition and predetermined state condition also can be combined, to determine intended branch server.
Concrete, the embodiment of the present invention can, according to preset distance condition and/or predetermined state condition, be also never the branch offices belonging to described user, but with described subscriber equipment by the branch server of local area network communication, chooses intended branch server.
Fig. 5 shows the schematic diagram of an application examples of the file memory method that the embodiment of the present invention provides, and with reference to Fig. 5, this process can comprise:
1, point administrative staff of a certain bank is when upload file, logs in head office's server by subscriber equipment, clicks files passe button, and now, subscriber equipment can send file to head office's server and store instruction request;
2, head office's server can determine the branch office service device of responsible storage file, and spanned file is at the store path url of branch office service device, and writes the DB of head office's server;
3, url can be fed back to subscriber equipment by head office's server;
4, subscriber equipment can according to URL, by file transfer to branch office service device;
5, file is write NAS according to URL by branch office service device;
6, the NAS of branch office service device is after successful storage file, and branch office service device can by hash and the type information feed back of file to head office's server, so that head office server write DB;
7, branch office service device can return successfully the information of storage file to subscriber equipment.
The file memory method that the embodiment of the present invention provides, achieves fast and the lower file of Wide Area Network bandwidth occupancy stores.
Based on file memory method mentioned above, below the document down loading method that the embodiment of the present invention provides is introduced.
The signaling process figure of the document down loading method that Fig. 6 provides for the embodiment of the present invention, this document down loading method is based on file download system, and similar shown in the structure of the file download system that the embodiment of the present invention provides and Fig. 1, can refer to; With reference to Fig. 6, this flow process can comprise:
Step S400, subscriber equipment send file download request to headquarters server, and described file download request comprises the descriptor of the file that need download;
Step S410, headquarters server, according to described descriptor, determine the intended branch server being responsible for storing the file with described descriptor;
Optionally, headquarters server can record the descriptor that each branch server has been responsible for the file stored in a database, thus after receiving described descriptor, according to the content recorded in database, determine the branch server being responsible for storing the file with described descriptor, and then navigate to the intended branch server that responsible storage needs download file;
Wherein, described intended branch server be choose from multiple branch server with the branch server of described subscriber equipment by local area network communication.
Step S420, headquarters server are by described file download request forward extremely described intended branch server;
Step S430, described intended branch server, according to described descriptor, are transferred the file with described descriptor, and are sent to described subscriber equipment from corresponding NAS.
Optionally, intended branch server can record the corresponding relation of documentary descriptor and the store path of file in corresponding NAS, intended branch server is after the file download request receiving forwarding, can according to described corresponding relation, determine the store path of the file corresponding with described descriptor in NAS, thus from described store path, transfer the file with described descriptor; And then transferred file is sent to subscriber equipment, realize the download of file to subscriber equipment.
Can find out, in the document down loading method that the embodiment of the present invention provides, intended branch server and subscriber equipment carry out by local area network communication the transmission needing download file, when therefore greatly reducing the transmission of file concrete downloading contents, Wide Area Network bandwidth takies, and the file transfer speed of LAN is very fast, achieves file download comparatively fast.
Be introduced the document storage system that the embodiment of the present invention provides below, document storage system described below can corresponding reference mutual to above-described file memory method.
The structure of the document storage system that the embodiment of the present invention provides can as shown in Figure 1, comprise: subscriber equipment, headquarters server, multiple branch server, has intended branch server in described multiple branch server;
Wherein, described subscriber equipment, store instruction request for sending file to headquarters server, described file stores the user profile that instruction request comprises described subscriber equipment owning user; And receive the address of the intended branch server that described headquarters server sends, according to described address, the file transfer that need store gives described intended branch server;
Described headquarters server, for according to described user profile, determines the intended branch server of responsible storage file, the address of described intended branch server is sent to described subscriber equipment; And the descriptor of the described file stored of receiving target branch server transmission, the file that record has described descriptor is stored by described intended branch network in charge;
Described intended branch server, for being write in corresponding NAS by described file, and returns to headquarters server by the descriptor of the described file stored.
Below the file download system that the embodiment of the present invention provides is introduced, file download system described below can with the mutual corresponding reference of description document method for down loading above.
Similar shown in the structure of the file download system that the embodiment of the present invention provides and Fig. 1, can refer to; The file download system that the embodiment of the present invention provides can comprise: subscriber equipment, headquarters server, multiple branch server, has intended branch server in described multiple branch server;
Wherein, described subscriber equipment, for sending file download request to headquarters server, described file download request comprises the descriptor of the file that need download; And receive the described file of described intended branch server transmission;
Described headquarters server, for according to described descriptor, determines the intended branch server being responsible for storing the file with described descriptor, by described file download request forward to described intended branch server;
Described intended branch server, for according to described descriptor, transfers the file with described descriptor, and sends to described subscriber equipment from corresponding NAS.
In this instructions, each embodiment adopts the mode of going forward one by one to describe, and what each embodiment stressed is the difference with other embodiments, between each embodiment identical similar portion mutually see.For device disclosed in embodiment, because it corresponds to the method disclosed in Example, so description is fairly simple, relevant part illustrates see method part.
Professional can also recognize further, in conjunction with unit and the algorithm steps of each example of embodiment disclosed herein description, can realize with electronic hardware, computer software or the combination of the two, in order to the interchangeability of hardware and software is clearly described, generally describe composition and the step of each example in the above description according to function.These functions perform with hardware or software mode actually, depend on application-specific and the design constraint of technical scheme.Professional and technical personnel can use distinct methods to realize described function to each specifically should being used for, but this realization should not thought and exceeds scope of the present invention.
The software module that the method described in conjunction with embodiment disclosed herein or the step of algorithm can directly use hardware, processor to perform, or the combination of the two is implemented.Software module can be placed in the storage medium of other form any known in random access memory (RAM), internal memory, ROM (read-only memory) (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technical field.
To the above-mentioned explanation of the disclosed embodiments, professional and technical personnel in the field are realized or uses the present invention.To be apparent for those skilled in the art to the multiple amendment of these embodiments, General Principle as defined herein can without departing from the spirit or scope of the present invention, realize in other embodiments.Therefore, the present invention can not be restricted to these embodiments shown in this article, but will meet the widest scope consistent with principle disclosed herein and features of novelty.

Claims (10)

1. a file memory method, is characterized in that, comprising:
Subscriber equipment sends file to headquarters server and stores instruction request, and described file stores the user profile that instruction request comprises described subscriber equipment owning user;
Headquarters server, according to described user profile, determines the intended branch server of responsible storage file, and the address of described intended branch server is sent to described subscriber equipment; Wherein, described intended branch server be choose from multiple branch server with the branch server of described subscriber equipment by local area network communication;
Subscriber equipment is according to described address, and the file transfer that need store gives described intended branch server;
Described intended branch server is by described file write map network attached storage NAS;
The descriptor of the described file stored is returned to headquarters server by described intended branch server;
Described headquarters server records the file with described descriptor in a database and is stored by described intended branch network in charge.
2. file memory method according to claim 1, is characterized in that, described headquarters server, according to described user profile, determines that the intended branch server of responsible storage file comprises:
Headquarters server determines the branch offices belonging to described user according to described user profile, whether there is branch server, and wherein, the branch server of the branch offices belonging to described user, passes through local area network communication with described subscriber equipment;
If exist, headquarters server, by the branch server in the branch offices belonging to described user, is defined as intended branch server.
3. file memory method according to claim 2, is characterized in that, described headquarters server, by the branch server in the branch offices belonging to described user, is defined as intended branch server and comprises:
Headquarters server is by the branch offices belonging to described user, and the distance apart from described subscriber equipment meets preset distance condition.
4. file memory method according to claim 2, is characterized in that, described headquarters server, by the branch server in the branch offices belonging to described user, is defined as intended branch server and comprises:
Running status is met the branch server of predetermined state condition by headquarters server, is defined as intended branch server.
5. file memory method according to claim 1, is characterized in that, described method also comprises:
Headquarters server determination file, at the store path of described intended branch server, while the address of described intended branch server is sent to described subscriber equipment, together sends described store path;
Described subscriber equipment is according to described address, and the file transfer that need store comprises to described intended branch server:
Subscriber equipment is according to described address, and the file transfer that need store gives described intended branch server, and indicates described file to store at described store path;
The described corresponding NAS of described file write comprises by described intended branch server:
Described file writes in described corresponding NAS by described intended branch server, the storage space corresponding to described store path.
6. file memory method according to claim 5, is characterized in that, described method also comprises:
Described store path is stored into correspondence database by described headquarters server;
Described file is writing after in described corresponding NAS by described intended branch server, and backspace file stores successful information to described subscriber equipment.
7. a document down loading method, is characterized in that, based on the file memory method described in any one of claim 1-6, described method comprises:
Subscriber equipment sends file download request to headquarters server, and described file download request comprises the descriptor of the file that need download;
Headquarters server, according to described descriptor, determines the intended branch server being responsible for storing the file with described descriptor, by described file download request forward to described intended branch server; Wherein, described intended branch server be choose from multiple branch server with the branch server of described subscriber equipment by local area network communication;
Described intended branch server, according to described descriptor, is transferred the file with described descriptor, and is sent to described subscriber equipment from map network attached storage NAS.
8. document down loading method according to claim 7, is characterized in that, the corresponding relation of the documentary descriptor of described intended branch server record and the store path of file in described NAS; Described intended branch server, according to described descriptor, is transferred the file with described descriptor and is comprised from corresponding NAS:
Described intended branch server, according to described corresponding relation, determines the store path of file in described NAS with described descriptor;
The file with described descriptor is transferred from described store path.
9. a document storage system, is characterized in that, comprising: subscriber equipment, headquarters server, multiple branch server, has intended branch server in described multiple branch server;
Wherein, described subscriber equipment, store instruction request for sending file to headquarters server, described file stores the user profile that instruction request comprises described subscriber equipment owning user; And receive the address of the intended branch server that described headquarters server sends, according to described address, the file transfer that need store gives described intended branch server;
Described headquarters server, for according to described user profile, determines the intended branch server of responsible storage file, the address of described intended branch server is sent to described subscriber equipment; And the descriptor of the described file stored of receiving target branch server transmission, the file that record has described descriptor is stored by described intended branch network in charge;
Described intended branch server, for being write in map network attached storage NAS by described file, and returns to headquarters server by the descriptor of the described file stored.
10. a file download system, is characterized in that, comprising: subscriber equipment, headquarters server, multiple branch server, has intended branch server in described multiple branch server;
Wherein, described subscriber equipment, for sending file download request to headquarters server, described file download request comprises the descriptor of the file that need download; And receive the described file of described intended branch server transmission;
Described headquarters server, for according to described descriptor, determines the intended branch server being responsible for storing the file with described descriptor, by described file download request forward to described intended branch server;
Described intended branch server, for according to described descriptor, transfers the file with described descriptor, and sends to described subscriber equipment from map network attached storage NAS.
CN201510763288.2A 2015-11-10 2015-11-10 File storage method and method, and file downloading method and system Pending CN105354312A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510763288.2A CN105354312A (en) 2015-11-10 2015-11-10 File storage method and method, and file downloading method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510763288.2A CN105354312A (en) 2015-11-10 2015-11-10 File storage method and method, and file downloading method and system

Publications (1)

Publication Number Publication Date
CN105354312A true CN105354312A (en) 2016-02-24

Family

ID=55330284

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510763288.2A Pending CN105354312A (en) 2015-11-10 2015-11-10 File storage method and method, and file downloading method and system

Country Status (1)

Country Link
CN (1) CN105354312A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105894377A (en) * 2016-03-30 2016-08-24 中国银行股份有限公司 E-bank data processing method and system based on cloud platform
WO2018219168A1 (en) * 2017-06-01 2018-12-06 华为技术有限公司 User equipment data communication method and equipment
CN110209672A (en) * 2019-05-20 2019-09-06 中国银行股份有限公司 Serial number data processing method, device, computer equipment and storage medium
CN111835839A (en) * 2020-06-30 2020-10-27 新华三大数据技术有限公司 Method, equipment and system for saving evidence file

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102420854A (en) * 2011-11-14 2012-04-18 西安电子科技大学 Distributed file system facing to cloud storage
US20130325932A1 (en) * 2012-06-05 2013-12-05 Hon Hai Precision Industry Co., Ltd. Electronic device and method for storing distributed documents
CN103747032A (en) * 2013-12-12 2014-04-23 北京奇虎科技有限公司 File transmission method, device and system
CN105025053A (en) * 2014-04-24 2015-11-04 苏宁云商集团股份有限公司 Distributed file upload method based on cloud storage technology and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102420854A (en) * 2011-11-14 2012-04-18 西安电子科技大学 Distributed file system facing to cloud storage
US20130325932A1 (en) * 2012-06-05 2013-12-05 Hon Hai Precision Industry Co., Ltd. Electronic device and method for storing distributed documents
CN103747032A (en) * 2013-12-12 2014-04-23 北京奇虎科技有限公司 File transmission method, device and system
CN105025053A (en) * 2014-04-24 2015-11-04 苏宁云商集团股份有限公司 Distributed file upload method based on cloud storage technology and system

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105894377A (en) * 2016-03-30 2016-08-24 中国银行股份有限公司 E-bank data processing method and system based on cloud platform
WO2018219168A1 (en) * 2017-06-01 2018-12-06 华为技术有限公司 User equipment data communication method and equipment
CN108984558A (en) * 2017-06-01 2018-12-11 华为技术有限公司 A kind of customer equipment data communication means and equipment
CN110209672A (en) * 2019-05-20 2019-09-06 中国银行股份有限公司 Serial number data processing method, device, computer equipment and storage medium
CN111835839A (en) * 2020-06-30 2020-10-27 新华三大数据技术有限公司 Method, equipment and system for saving evidence file

Similar Documents

Publication Publication Date Title
US20210144423A1 (en) Dynamic binding for use in content distribution
US7793112B2 (en) Access to content addressable data over a network
AU757667B2 (en) Access to content addressable data over a network
CN105100146B (en) Date storage method, apparatus and system
US8370454B2 (en) Retrieving a replica of an electronic document in a computer network
CN101472166B (en) Method for caching and enquiring content as well as point-to-point medium transmission system
CN108011929A (en) Data request processing method, apparatus, computer equipment and storage medium
CN105025053A (en) Distributed file upload method based on cloud storage technology and system
KR20160037761A (en) A computer implemented method for dynamic sharding
CN105354312A (en) File storage method and method, and file downloading method and system
US8086629B2 (en) Content delivery apparatus, content delivery method, and content delivery program
CN101944124A (en) Distributed file system management method, device and corresponding file system
CN102708165A (en) Method and device for processing files in distributed file system
CN108540510B (en) Cloud host creation method and device and cloud service system
US20060069778A1 (en) Content distribution system
CN106202416A (en) Table data write method and device, table data read method and device
CN105867846A (en) Data processing method, server and system
CN109873855A (en) A kind of resource acquiring method and system based on block chain network
CN107370809A (en) Method of data synchronization and data search system
US6973536B1 (en) Self-adaptive hybrid cache
CN110245129A (en) Distributed global data deduplication method and device
CN109002260A (en) A kind of data cached processing method and processing system
CN105978744B (en) A kind of resource allocation methods, apparatus and system
CN104602035B (en) Stream media ordering method and demand stream media system
CN106610967A (en) Method and apparatus for reading and writing video data in NAS device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20160224