CN107846428A - Document storage management method, terminal, business platform and management set top box - Google Patents
Document storage management method, terminal, business platform and management set top box Download PDFInfo
- Publication number
- CN107846428A CN107846428A CN201610828155.3A CN201610828155A CN107846428A CN 107846428 A CN107846428 A CN 107846428A CN 201610828155 A CN201610828155 A CN 201610828155A CN 107846428 A CN107846428 A CN 107846428A
- Authority
- CN
- China
- Prior art keywords
- top box
- set top
- management
- terminal
- group
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1001—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
- H04L67/1004—Server selection for load balancing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1097—Protocols 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]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The embodiment of the present invention provides a kind of document storage management method, terminal, business platform and management set top box, by at least two set-top box groups into set top box group, so that file storage expands, and by a set top box in group as management set top box, it is unified that file storage is managed, for the user of end side, as long as the first messaging parameter that set top box is managed in the set top box group associated with itself is obtained from business platform by inquiry request, just can be with managing set top box communication, management set top box is allowed to be asked according to file management to carrying out unified file management in set top box group, therefore it is that set top box group is that service is provided in the form of an entirety for a user, simplify file management process, it ensure that Consumer's Experience.In addition, file is stored at least two set top boxes by distributed mode, and the probability of all set top box simultaneous faults is smaller, therefore ensure that the safety of storage file, improves the disaster tolerance of storage system.
Description
Technical field
The present invention relates to cloud storage field, more particularly to document storage management method, terminal, business platform and supervisor top
Box.
Background technology
With the popularization of intelligent terminal, among one family, almost each kinsfolk has the terminal of oneself, example
Such as smart mobile phone, PAD or notebook computer, these terminals can produce the significant data for largely needing to back up, such as according to
Piece, video or audio etc..From the point of view of in units of family, one family needs data that are shared and backing up very more, for reality
The now data backup to each terminal in family mainly proposes some such storage sides of family in the prior art after data sharing
Formula:
The first, on desktop computer by way of network neighbor shared file and by the desktop computer access without circuit
By device, the storage file that the terminal device of the wireless network just can be on Access Management Access desktop computer is so shared.
It is for second NAS (Network Attached Storage, network attached storage) collaborative share, NAS device sheet
Body is equivalent to a small-sized PC (Personal Computer, PC), and it is typically designed to compare to simplify, power
General only four or five ten watts.
The third, now by being integrated with network share function on many routers, as long as mobile hard disk is accessed this kind of road
Realized by device can shared.
4th kind, Android set top boxes possess NAS abilities, and can support to insert hard disk, therefore with Android boxes
Son comes into family successively, its shared selection of many family data storages.
For first way, because the power of desktop computer is bigger, typically there are several hectowatts, and be used as shared service
Device requires that desktop computer is chronically at open state, and the electricity charge expense that this is several certainly will to cause subscriber household is big, adds family's warp
Ji burden.In the second way, if family makes to carry out data backup in this way and shared, it is necessary to extra purchase NAS
Equipment, for this family and a no small expense.The third mode has the shortcomings that two such is obvious:First, if
Currently used router does not support network share in subscriber household, then user must purchase router again;In addition, router
Do not support to check its data storage, therefore, if the data to back up kinsfolk check that user also needs to volume
The outer other associate devices of purchase.Above-mentioned several storage modes, in addition to the defects of presented above respective, also in the presence of one altogether
The defects of same, i.e., they belong to " central store ", among central store, storage device is once damaged or occurred power down
Situation, family's storage system also just fail, can not normal work, kinsfolk provide service.That is, central store mode
Disaster tolerance it is not strong.
For the defect, need badly now and propose a kind of new family's storage mode, to solve the appearance of existing storage mode
The problem of calamity is not strong.
The content of the invention
Document storage management method, terminal, business platform and management set top box provided in an embodiment of the present invention, are mainly solved
Technical problem be:A kind of new storage mode is proposed, to solve the problems, such as that the disaster tolerance of existing storage mode is not strong.
In order to solve the above technical problems, the embodiment of the present invention provides a kind of document storage management method, including:
Terminal sends inquiry request to business platform, and receives what the business platform inquired according to the inquiry request
First messaging parameter of the management set top box of set top box group, the set top box group includes at least two set top boxes, described
It is one at least two set top box to manage set top box, and is the external access point of the set top box group;
The terminal is established with the management set top box according to first messaging parameter and communicated, and to the supervisor top
Box sends file management request, so that the management set top box is asked in set top box group group according to the file management
Carry out file management.
The embodiment of the present invention also provides a kind of document storage management method, including:
The inquiry request that business platform receiving terminal is sent, and the machine according to corresponding to the inquiry request determines the terminal
Top box group, the set top box group include at least two set top boxes, and one at least two set top box is conduct
The management set top box of the external access point of set top box group, the management set top box is used for please according to the file management received
Ask and carry out file management in the set top box group;
First messaging parameter of the management set top box is fed back to the terminal by the business platform, for the terminal
Established and communicated with the management set top box based on first messaging parameter, sending file management to the management set top box please
Ask.
The embodiment of the present invention also provides a kind of document storage management method, including:
Manage set top box and obtain the file management request for carrying out self terminal, the management set top box is to include at least two machine tops
The external access point of the set top box group of box;
The management set top box is based on file management request and carries out file management in the set top box group.
The embodiment of the present invention also provides a kind of terminal, including:
Platform interactive module, for sending inquiry request to business platform, and receive the business platform and looked into according to
The first messaging parameter of the management set top box for the set top box group that requesting query arrives is ask, the set top box group includes at least two
Individual set top box, the management set top box are one at least two set top box, and are the external of the set top box group
Access point;
Set top box interactive module, communicated for being established according to first messaging parameter with the management set top box, and to
The management set top box sends file management request, so that the management set top box is asked in the machine according to the file management
File management is carried out in top box group group.
The embodiment of the present invention also provides a kind of business platform, including:
Transport module, the inquiry request sent for receiving terminal;
Processing module, for set top box group corresponding to determining the terminal according to the inquiry request, the set top box
Group includes at least two set top boxes, and one at least two set top box is to external as the set top box group
The management set top box of access point, the management set top box are used to be asked in the set top box group according to the file management received
Carry out file management;
The transport module is additionally operable to the first messaging parameter of the management set top box feeding back to the terminal, for institute
State terminal to communicate with the management set top box foundation based on first messaging parameter, file pipe is sent to the management set top box
Reason request.
The embodiment of the present invention also provides a kind of management set top box, including:
Communication module, the file management request of self terminal is carried out for obtaining, the management set top box is to include at least two
The external access point of the set top box group of set top box;
Management module, for carrying out file management in the set top box group based on file management request.
The embodiment of the present invention also provides a kind of computer-readable storage medium, and computer is stored with the computer-readable storage medium
Executable instruction, the computer executable instructions are used for the document storage management method for performing foregoing any one.
The beneficial effects of the invention are as follows:
Document storage management method, terminal, business platform and the management set top box provided according to embodiments of the present invention, and
Computer-readable storage medium, by least two set-top box groups into set top box group so that file storage expands, unified to file
Storage is managed, for the user of end side, as long as obtaining what is associated with itself from business platform by inquiry request
The first messaging parameter of set top box is managed in set top box group, just can allow management set top box according to text with managing set top box communication
Part management request is set top box group to carrying out unified file management in set top box group, therefore for the user of end side
Group is that service is provided in the form of an entirety, simplifies file management process, ensure that Consumer's Experience.Importantly,
It is distributed storage because file is stored at least two set top boxes, and all set top boxes event simultaneously in set top box group
The probability of barrier is smaller, ensure that the safety of storage file, improves the disaster tolerance of storage system.
Brief description of the drawings
Fig. 1 is a kind of structural representation for the set top box group that the embodiment of the present invention one provides;
Fig. 2 is a kind of flow chart for the document storage management method that the embodiment of the present invention one provides;
Fig. 3 is that one kind of mapping relations between the terminal login account that the embodiment of the present invention one provides and the sub- account of set top box is shown
It is intended to;
Fig. 4 is the another kind of mapping relations between the terminal login account that the embodiment of the present invention one provides and the sub- account of set top box
Schematic diagram;
Fig. 5 is that the management set top box that the embodiment of the present invention one provides is carried out based on file management request in set top box group
A kind of flow chart of file management
Fig. 6 is a kind of structural representation for the file storage management system that the embodiment of the present invention two provides;
Fig. 7 is a kind of structural representation of the terminal in Fig. 6;
Fig. 8 is a kind of structural representation of the business platform in Fig. 6;
Fig. 9 is a kind of structural representation for the management set top box that the embodiment of the present invention two provides;
Figure 10 is the interaction figure between the set top box group that the embodiment of the present invention three provides and business platform;
Figure 11 is a kind of flow chart for the document storage management method that the embodiment of the present invention three provides.
Embodiment
The embodiment of the present invention is described in further detail below by embodiment combination accompanying drawing.
Embodiment one:
The mode for storing and sharing due to being directed to family data in the prior art belongs to central store, so as to cause family
The performance of storage is easy to phenomenon by the interference of various external factors and unstable, and in order to feel in solving in the prior art
The problems of storage scheme, the present embodiment will propose a kind of new storage scheme, refer to Fig. 1 below:
Fig. 1 is illustrated that the set top box group of storage file in the present embodiment, and set top box group is by least two machine tops
Box composition, in these set top boxes, have one can be to machine top compared with other set top boxes more specifically set top box, this set top box
The file access of box group is managed, and the set top box is referred to as " management set top box ".Set top box is managed as whole set top box group
The external access point of group, when terminal, which sends management request, carries out file management to set top box group, management request can be through
By can be just performed after the processing of management set top box.In Fig. 1, set top box group 10 includes four set top boxes, is first respectively
Set top box 11, the second set top box 12, the 3rd set top box 13 and the 4th set top box 14.This four set top boxes are probably because belonging to one together
The relation of individual family, which is associated with, together form a group for being used for file storage, for the ease of entering to the set top box group
Row management, in the present embodiment, it will make a management set top box from set top box group middle finger, management set top box should will be from
Oneself messaging parameter reports business platform.
Specifying the work of management set top box can be carried out by the member in set top box group, for example, when the first set top box 11
After start, logged in business platform, while login, business platform will belong to same set top box group with the first set top box 11
The information of other set top boxes of group, which is included in log in return information, returns to set top box, in the present embodiment, logs in and returns to letter
Breath includes the information of the second set top box 12, the 3rd set top box 13 and the 4th set top box 14.First set top box 11 is receiving this
, can be according to the information respectively to the second set top box 12, the 3rd set top box 13 and the 4th set top box after logging in return information
14 send notice.The effect of notice is mainly used in showing to inform other members in set top box group 10, currently oneself has been added in
Cloud storage network, oneself is contemplated that during follow-up file management.Meanwhile because group member changes, notice
Effect be additionally operable to inform that other group members re-elect management set top box.
When election manages set top box, each set top box in set top box group interacts two-by-two, can pass through election
Algorithm, management set top box is used as Paxos algorithms are randomly assigned a set top box, the main function of Paxos algorithms is exactly to solve
It is the problem of how a distributed system reaches an agreement with regard to some value (resolution).Certain set top box group can also be based on current
At least one dimension in each storage capacity of set top box, communication capacity, computing capability online determines that optimal set top box is made
To manage set top box.Because management set top box needs to be communicated with other set top boxes and terminal room, therefore, if according to communication
Ability determines management set top box, then larger advantage will be had when being communicated by managing set top box.Further, since eventually
When data upload is carried out, management set top box needs according to the current storage condition of each set top box load at end
Weighing apparatus, therefore, if the computing capability of management set top box is enough strong, it becomes possible to reduce calculate the time to a certain extent.Finally, because
It is the external access point of set top box group to manage set top box, and the file management request from end side will always pass through supervisor top
Box, so, if management set top box is exactly target set-top box corresponding to file management request, then the file management request of terminal
, without redirecting, for example, working as terminal wants data storage, and set top box will be managed by with most fast speed responsive
Storage capacity is most strong, then manages set top box and be just particularly likely that the target set-top box for calculating and determining based on load-balancing algorithm, this
The management data of the direct receiving terminal transmission of sample management set top box can after file upload request is received.
In addition, the determination of management set top box can also be carried out according to the principle that user is set, for example, user specifies, management
Set top box is always served as by the set top box for the storage network being newly joined, then under this principle, when the first set top box 11 to
After other set top boxes send notice, other set top boxes member does not just know that current first set top box has been added in storing net
Network, and will be seen that current management set top box has been changed to the first set top box 11.Or user can set management
Set top box is always served as by the member added earliest in currently stored network, such as the 3rd set top box 13 is in the examples described above
Start shooting and added in storage network earliest, then the 3rd set top box 13 is exactly to manage set top box.Added in the first set top box 11
Storage network and after have sent notice to other set top boxes member, manages set top box, i.e. the 3rd set top box 13 can actively to
It oneself is the information for managing set top box that first set top box 11, which sends one to be used to characterize,.Net is directly stored with earliest add this
In mode of the set top box member of network as management set top box, it is not necessary to adding storage net by new set top box group member every time
When network all change management set top box and to business platform report management set top box the first messaging parameter.But current
When management set top box will exit storage network, other set top boxes in group should be notified to elect management set top box again,
Such as the 3rd set top box 13 when detect off signal, should into group, other members send oneself and will move out immediately
Store the information of network.The messaging parameter of oneself still should be reported business platform by the new set top box come that puts forward.
The flow of document storage management in the present embodiment is introduced with reference to Fig. 2-Fig. 5:
S202, terminal send inquiry request to business platform.
When user needs to be managed the file of file storage, terminal can be from the lateral business platform hair of terminal
Send inquiry request.For example, when user wants to download and is stored in several pictures in set top box group, can be first to business platform
Inquiry request is sent, to obtain the information with the set top box group of terminal binding.In the present embodiment, terminal by installed in
Local client is interacted with business platform, and user can be signed in on business platform in local by client, and to
Business platform sends inquiry request.The account of terminal registering service platform is introduced herein:Login account can be
As set top box group, there are a main login account and sub- login account.The corresponding main login account of one family, it is each
Individual user either each terminal has a sub- login account respectively.Main login account should be with the set top box group of the family
Primary account number correspond, as shown in figure 3, be main login account with sub- login account, set top box primary account number and sub- account it
Between mapping relations schematic diagram.
It is understood that main login account and primary account number can be same, as shown in figure 4, when main login account with
When the primary account number of set top box group is identical, the sub- login account of user is identical with the sub- account status of set top box.In such case
Under, user or terminal directly can be also regarded as machine top by business platform when distributing sub- login account for terminal or user
Box is typically allocated.
Originally shared, no matter logged in most by what account for everybody due to the file stored in set top box group
Identical resource can be all obtained eventually, therefore, in fact for the member in one family, is not deposited during this is logged in
In privacy, so, can all kinsfolks share a login account, i.e., everybody all use main login account stepped on
Record.
The inquiry request that S204, business platform receiving terminal are sent, and the machine top according to corresponding to inquiry request determines terminal
Box group.
After the inquiry request of terminal is received, business platform can according to Fig. 3 or illustrated in fig. 4 mapping relations and
The account that terminal logs in determines the main login account that terminal logs in, that is, the family corresponding to the terminal is determined, then according to master
Set top box group primary account number corresponding to login account, namely the set top box group of the family is found, set top box before then obtaining
The first messaging parameter that the management set top box of group reports.
It will be appreciated by those skilled in the art that before the process that business platform obtains the first messaging parameter, business
The mapping relations between terminal and set top box group must be pre-saved in platform.Given in the malice of the present embodiment among example
The detail of this process is gone out to realize:
Terminal can send a bind request when being registered on business platform to business platform, and bind request is used
The terminal and set top box group are associated in business platform.It is understood that include terminal needs in bind request
The identification information of the set top box group of binding, the identification information can be the mark letters of any one set top box in set top box group
Breath or the identification information of set top box group.For example, any one machine top in bind request includes set top box group
The equipment identification information of box.Specifically, the Quick Response Code that set top box can be scanned with terminal is bound.When business platform receives
After the bind request sent to terminal, the mapping stored according to bind request between the terminal and corresponding set top box group is closed
System.
The first messaging parameter for managing set top box is fed back to terminal by S206, business platform.
The first messaging parameter that business platform is found is sent to terminal, and the first messaging parameter is used for terminal and management
Set top box establishes communication.Among a kind of example of the present embodiment, if management set top box is not by NAT (Network
Address Translation, network address translation) equipment communicated with the external world, then and the first messaging parameter can only include
IP (Internet Protocol, the agreement interconnected between network) address of set top box is managed, and if management set top box is in
Among family's private network, it is impossible to which if directly being communicated with the external world, then the first messaging parameter should also include port numbers.
S208, terminal are established with management set top box according to the first messaging parameter and communicated.
With home network development and enrich constantly, may descend to hang below the home gateway in home network a lot
Cpe device, such as set top box etc..But current IP resources are more and more in short supply, it is impossible to are each in home network
Cpe device all distributes a public network IP address.Therefore, in real networking, in order to save IP resources, typically these cpe devices
It is placed in the private network behind home gateway, only distributes a public network IP address to home gateway.For business platform or terminal
For, set top box in home network private network etc. is sightless, and the equipment such as set top box in private network all passes through house
Front yard gateway is communicated with internet, and here it is NAT mechanism.NAT be by change UDP (User Datagram Protocol,
UDP) or TCP (Transmission Control Protocol, transmission control protocol) message leading address
Network layer address conversion is realized with port information.
Relation based on management set top box and NAT device, terminal is according to the process master of the first messaging parameter in the present embodiment
It is divided into two kinds:The first is the set top box group that terminal determines its file management for needing to carry out according to the first messaging parameter
Management set top box is among public network, such as when there is no port numbers in the first messaging parameter, with only including the IP of management set top box
Location, this explanation terminal can directly be established with management set top box according to the IP address of management set top box and communicated to connect.
When terminal directly establishes communication link with management set top box, it can be based between terminal and management set top box
Udp protocol is communicated.And if the first messaging parameter includes port numbers, then explanation management set top box is in family's private network and worked as
In because being influenceed by NAT mechanism, management set top box be for terminal it is sightless, therefore terminal can not directly with
Manage set top box and establish communication, at this time need the help by Relay Server.Terminal will be got at business platform
First messaging parameter is included in link setup request and is transferred to Relay Server, so that Relay Server enters according to the first messaging parameter
Row UDP burrows, the process that UDP the burrows process that actually namely ICE NAT are passed through.Under the auxiliary of Relay Server, eventually
End can establish indirect communication connection with management set top box.
In the present embodiment, Relay Server can be STUN (Simple Traversal of UDP over NATs,
NAT UDP simple traversals) server.After being passed through successfully to management set top box ICE NAT, Relay Server can pass through
Itself and the successful information of management server link setup are sent to terminal by link setup feedback information, to inform that terminal now can be with pipe
Reason set top box communicate.
S210, management set top box obtain the file management request for carrying out self terminal.
Terminal can send file management in the case where it can be communicated with management set top box to management set top box
Request.Different according to the mode that communication is established between terminal and management set top box, the file management that management set top box receives please
Ask is probably to be starved by what terminal was directly transmitted, it is also possible to is forwarded by Relay Server.
In the present embodiment, Relay Server can be using between transparent transmission terminal by the way of four layer proxies and management set top box
The communication information.It is that Relay Server need not be concerned about that terminal is each adopted with management server using the advantages of four layer proxy modes
Communication protocol, it is only necessary to do forwarding work.Certainly, in the present embodiment, Relay Server can also use seven layer proxies
Mode carrys out transmission terminal and manages the communication information between set top box.
S212, management set top box are based on file management request and file management are carried out in set top box group.
Below incorporated by reference to Fig. 5, Fig. 5 is to manage set top box in the present embodiment to be based on file management request in set top box group
Carry out a kind of flow chart of file management:
The target set-top box of the actual execution management request is determined in S502, management set top box slave top box group.
After management set top box receives file management request, file management can be asked to analyze and process, it is determined that real
Which the set top box that border can perform this document management request is, that is, determines target machine top corresponding to file management request
Box.For example, when file management request is file download request, management set top box is it needs to be determined that this document download request is to be downloaded
File be stored on which set top box, it is exactly this document that actual storage, which has file download to ask the set top box of data to be downloaded,
The target set-top box of download request.When file management request is file upload request, management set top box should determine this
File to be stored should be stored in the machine top that file to be stored may finally be stored in set top box group on which set top box
Box is exactly the target set-top box of this document upload request.
Either for file upload request or file download request, manage set top box it is determined that target set-top box it
Before, it is required for first obtaining the storage information of each set top box in set top box group, to understand the storage condition of each set top box,
Managing set top box actively can send inquiry message by other set top boxes into set top box group, allow other set top boxes according to inquiry
The storage information of information reporting oneself.Actively oneself can certainly be reported from other set top boxes in group to management set top box
Storage information, for example, the timing of other set top boxes reports the storage information of oneself.
Among a kind of example of the present embodiment, storage information includes the letters such as the current residual memory space of each set top box
Breath, can be directly empty according to the storage of each set top box in group when manage that set top box receives is file upload request
Between carry out load balancing, determine which set top box file to be stored should be stored in;Received when management set top box
When being file download request, management set top box can parse the title of file to be downloaded from file download request, then will
The title is included in all set top boxes that its management is sent in inquiry message, when some set top box determines that file to be downloaded is deposited
When Chu Qi locals, response message can be sent to management set top box, inform that the management current file to be downloaded of set top box is deposited
Chu Qi is local, to manage set top box as target set-top box.
Among another example of the present embodiment, storage information includes a current residual memory space of set top box
The information such as currently stored file name with the set top box.When managing, set top box receives file upload request or file download please
It is which that all need not send inquiry message can directly without nominal target set top box to other set top boxes again after asking.
S504, management set top box carry out file management according to the target set-top box response file management request determined.
Whether it is its own according to the target set-top box that management set top box determines, management set top box is according to the target determined
Set top box response file management request carries out the mode of file management by being divided into two kinds:
The first, when the target set-top box that management set top box is determined is its own, it can be directly to file management
Request is responded.Such as when file management request needs to carry out file upload, management set top box, which directly receives, to be come from
The file of terminal, and the file received is stored.
Second, when the target set-top box determined of management set top box is not its own, but other machines in set top box group
When top box, the second messaging parameter of target set-top box can be included in redirect in instruction by management set top box is sent to end
End, so that terminal establishes communication link according to the second messaging parameter redirected in instructing with target set-top box, and realize file
Upload or download.
It is understood that target set-top box is likely to be public network equipment, it is also possible to is to be in setting in family's private network
Standby, therefore, the second messaging parameter is possible to IP address and the port for the IP address or target set-top box for including target set-top box
Number.When the second messaging parameter of target set-top box only includes IP address, terminal can be established directly with target set-top box
Communication, but when also port numbers are included in the second messaging parameter, terminal may be needed by Relay Server and target
Set top box establishes communication connection, and the process that the second messaging parameter progress UDP that Relay Server is sent according to terminal burrows is here
Repeat no more.
It is proposed that management set top box carries out the another kind of file management based on file management request in set top box group further below
Mode:
Management set top box can respond using itself as " transient target set top box " to file management request, example
Such as, when manage that set top box receives is file upload request, can the file to be stored that uploads of first receiving terminal side,
And the file to be stored received is stored in local, it will be buffered in based on load-balancing algorithm after all finishing receiving
Local file to be stored is transferred to actual target set-top box.When file management is asked when file download request,
Management set top box finds file to be downloaded in set top box group and extracts its local, then by file to be downloaded from its local
It is transferred to terminal.
Document storage management method provided in an embodiment of the present invention, user need to set top box group carry out file management when
Wait, pass through to obtain from business platform by terminal and communicated ginseng with the first of the management set top box of the set top box group of terminal binding
Number, and after being communicated according to the first messaging parameter with management set top box foundation, file management request is sent to management set top box, by
Management set top box is based on file management request and file management is carried out in set top box group.This storage management mode not only passes through
The memory capacity for expanding storage network of multiple set top boxes, and by managing set top box to other machine tops in set top box group
The file access of box is managed, and can allow set top box group foreign work in the form of an entirety, for user, user's body
Degree of testing is higher.Most importantly, due on each set top box in the storage of file distribution to group, therefore, substantially not
Occur that storage network can not provide the user the situation of service, improve the disaster tolerance of file storage.
Embodiment two:
The present embodiment provides a kind of file storage management system, refer to Fig. 6:
File storage management system 6 includes set top box group 10, terminal 70 and business platform 80, enters two-by-two between this three
Row interaction, it is noted that, set top box group 10 can be direct or indirect with interacting for terminal 70.
Set top box group 10 be by least two set-top box groups into, in these set top boxes, have one compared with other machine tops
Box more specifically set top box, this set top box can be managed to the file access of set top box group, and the set top box is referred to as " pipe
Manage set top box ".External access point of the set top box as whole set top box group is managed, when terminal sends management request to set top box
When group carries out file management, management request be able to can be just performed after the processing via management set top box.In Fig. 1, machine
Top box group 10 includes four set top boxes, is the first set top box 11, the second set top box 12, the 3rd set top box 13 and the 4th machine respectively
Top box 14.This four set top boxes are probably that together form one because the relation for belonging to one family together is associated with and be used for file
The group of storage, for the ease of being managed to the set top box group 10, in the present embodiment, it will from set top box group middle finger
A management set top box is made, the messaging parameter of oneself should be reported business platform 80 by management set top box.
Specifying the work of management set top box can be carried out by the member in set top box group 10, for example, when the first set top box
After 11 starts, logged in business platform 80, while login, business platform 80 will belong to same machine with the first set top box 11
The information of other set top boxes of top box group, which is included in log in return information, returns to set top box 11, in the present embodiment, steps on
Record return information includes the information of the second set top box 12, the 3rd set top box 13 and the 4th set top box 14.First set top box 11 exists
, can be according to the information respectively to the second set top box 12, the 3rd set top box 13 and after receiving the login return information
Four set top boxes 14 send notice.The effect of notice is mainly used in showing to inform other members in set top box group 10, it is current oneself
Through adding cloud storage network, oneself is contemplated that during follow-up file management.Meanwhile because group member changes,
So the effect of notice is additionally operable to inform that other group members re-elect management set top box.
When election manages set top box, each set top box in set top box group interacts two-by-two, can pass through election
Algorithm, management set top box is used as Paxos algorithms are randomly assigned a set top box, the main function of Paxos algorithms is exactly to solve
It is the problem of how a distributed system reaches an agreement with regard to some value (resolution).Certain set top box group can also be based on current
At least one dimension in each storage capacity of set top box, communication capacity, computing capability online determines that optimal set top box is made
To manage set top box.Because management set top box needs to be communicated between other set top boxes and terminal 70, therefore, if according to logical
Letter ability determines management set top box, then larger advantage will be had when being communicated by managing set top box.Further, since
When data upload is carried out, management set top box needs to be loaded according to the current storage condition of each set top box terminal 70
Equilibrium, therefore, if the computing capability of management set top box is enough strong, it becomes possible to reduce calculate the time to a certain extent.Finally, because
It is the external access point of set top box group for management set top box, management will always be passed through by carrying out the file management request of the side of self terminal 70
Set top box, so, if management set top box is exactly target set-top box corresponding to file management request, then the file pipe of terminal 70
Reason request will be by with most fast speed responsive, without redirecting, for example, when terminal 70 wants data storage, and manages
The storage capacity of set top box is most strong, then manages set top box and be just particularly likely that the target machine for calculating and determining based on load-balancing algorithm
Top box, so manage the management data that the direct receiving terminal 70 of set top box can after file upload request is received is transmitted
.
In addition, the determination of management set top box can also be carried out according to the principle that user is set, for example, user specifies, management
Set top box is always served as by the set top box for the storage network being newly joined, then under this principle, when the first set top box 11 to
After other set top boxes send notice, other set top boxes member does not just know that current first set top box has been added in storing net
Network, and will be seen that current management set top box has been changed to the first set top box 11.Or user can set management
Set top box is always served as by the member added earliest in currently stored network, such as the 3rd set top box 13 is in the examples described above
Start shooting and added in storage network earliest, then the 3rd set top box 13 is exactly to manage set top box.Added in the first set top box 11
Storage network and after have sent notice to other set top boxes member, manages set top box, i.e. the 3rd set top box 13 can actively to
It oneself is the information for managing set top box that first set top box 11, which sends one to be used to characterize,.Net is directly stored with earliest add this
In mode of the set top box member of network as management set top box, it is not necessary to adding storage net by new set top box group member every time
When network all change management set top box and to business platform 80 report management set top box the first messaging parameter.But current
Management set top box to exit storage network when, other set top boxes in group should be notified to elect supervisor top again
Box, such as when the 3rd set top box 13 detects off signal, should immediately into group other members send oneself will
Exit the information of storage network.The messaging parameter of oneself still should be reported business platform by the new set top box come that puts forward
80。
The terminal 70 provided in the present embodiment, as shown in fig. 7, terminal 70 includes platform interactive module 702 and set top box is handed over
Mutual module 704, platform interactive module 702 is used to send inquiry request to business platform 80, and set top box interactive module 704 is then used
Communicated in being established according to the first messaging parameter with management set top box, and file management request is sent to management set top box.
The business platform 80 provided in the present embodiment, as shown in figure 8, including transport module 802 and processing module 804.Pass
Defeated module 802 is used for the inquiry request that receiving terminal 70 is sent, and processing module 804 is then used to be received according to transport module 802
To inquiry request determine set top box group 10 corresponding to terminal 70.Then the controlling transmission module 802 of processing module 804 is by the machine
The first messaging parameter that set top box is managed in top box group 10 is transferred to terminal 70.
When user needs to be managed the file of file storage, user can pass through platform interactive module 702
Transport module 802 into business platform 80 sends inquiry request.For example, it is stored in when user wants download in set top box group
Several pictures when, can first to transport module 802 send inquiry request, with obtain with terminal 70 bind set top box group 10
Information.In the present embodiment, terminal 70 is interacted by the client installed in local with business platform 80, and user can be with
Signed in in local by client on business platform 80, inquiry is sent by platform interactive module 702 and to business platform 80
Request.The account of the registering service platform 80 of terminal 70 is introduced herein:Login account can be and set top box group
Equally, there are a main login account and sub- login account.The corresponding main login account of one family, each user is either
Each terminal 70 has a sub- login account respectively.Main login account should be with the primary account number one of the set top box group of the family
One correspondence, as shown in figure 3, being the mapping pass between main login account and sub- login account, set top box primary account number and sub- account
It is schematic diagram.
It is understood that main login account and primary account number can be same, as shown in figure 4, when main login account with
When the primary account number of set top box group is identical, the sub- login account of user is identical with the sub- account status of set top box.In such case
Under, business platform 80 directly can also regard user or terminal 70 when distributing sub- login account for terminal 70 or user
Make set top box to be typically allocated.
Originally shared, no matter logged in most by what account for everybody due to the file stored in set top box group
Identical resource can be all obtained eventually, therefore, in fact for the member in one family, is not deposited during this is logged in
In privacy, so, can all kinsfolks share a login account, i.e., everybody all use main login account stepped on
Record.
After the inquiry request that transport module 802 receives terminal 70, processing module 804 can be according to Fig. 3 or Fig. 4 institutes
The account that the mapping relations and terminal 70 shown log in determines the main login account that terminal 70 logs in, that is, determines the institute of terminal 70
Corresponding family, then the set top box group primary account number according to corresponding to main login account, namely find the set top box group of the family
Group, the first messaging parameter that the management set top box of set top box group reports before then obtaining.
It will be appreciated by those skilled in the art that before the process that business platform 80 obtains the first messaging parameter, industry
The mapping relations between terminal 70 and set top box group must be pre-saved in business platform 80.Example in the malice of the present embodiment
It is central to give the detail for realizing this process:
For terminal 70 when being registered on business platform 80, platform interactive module 702 can send one to business platform 80
Individual bind request, the processing module 804 that bind request is used for business platform 80 are closed the terminal 70 with set top box group 10
Connection.It is understood that include the identification information for the set top box group 10 that the needs of terminal 70 are bound, the mark in bind request
Information can be that the mark of the flag information of any one set top box or set top box group is believed in set top box group 10
Breath.For example, include the equipment identification information of any one set top box in set top box group in bind request.Specifically, can be with
The Quick Response Code that terminal 70 can scan set top box is bound.When business platform 80 receive terminal 70 transmission bind request it
Afterwards, the mapping relations between the terminal 70 and corresponding set top box group are stored according to bind request.
The first messaging parameter that the transport module 802 of business platform 80 is additionally operable to find processing module 804 is sent to
Terminal 70, the set top box interactive module 704 that the first messaging parameter is used for terminal 70 communicate with management set top box foundation.
Among a kind of example of the present embodiment, if management set top box is not to be communicated by NAT device with the external world,
Then the first messaging parameter can only include the IP address of management set top box, and if management set top box is among family's private network,
If directly can not being communicated with the external world, then the first messaging parameter should also include port numbers.
With home network development and enrich constantly, may descend to hang below the home gateway in home network a lot
Cpe device, such as set top box etc..But current IP resources are more and more in short supply, it is impossible to are each in home network
Cpe device all distributes a public network IP address.Therefore, in real networking, in order to save IP resources, typically these cpe devices
It is placed in the private network behind home gateway, only distributes a public network IP address to home gateway.For business platform 80 or eventually
For end 70, set top box in home network private network etc. is sightless, and the equipment such as set top box in private network is all logical
Cross home gateway to be communicated with internet, here it is NAT mechanism.NAT be by change UDP or TCP message leading address and
What port information was changed to realize network layer address.
Based on the relation for managing set top box and NAT device, terminal 70 according to the first messaging parameter and manages in the present embodiment
The process that set top box establishes communication is broadly divided into two kinds:The first is that platform interactive module 702 determines according to the first messaging parameter
The management set top box of the set top box group of its file management for needing to carry out is among public network, such as when in the first messaging parameter
There is no port numbers, only include the IP address of management set top box, this explanation platform interactive module 702 can be directly according to supervisor top
The IP address of box is established with management set top box and communicated to connect.
When platform interactive module 702 with management set top box directly establish communication link when, platform interactive module 702 with
It can be communicated between management set top box based on udp protocol.And if the first messaging parameter includes port numbers, then explanation is managed
Reason set top box is among family's private network, because being influenceed by NAT mechanism, management set top box is for terminal 70 can not
See, therefore platform interactive module 702 can not directly be established with management set top box and communicated, and at this time be needed by Relay Server
Help.The first messaging parameter got at business platform 80 is included in link setup request and passed by platform interactive module 702
Relay Server is defeated by, is burrowed so that Relay Server carries out UDP according to the first messaging parameter, the process that UDP burrows is actually
The process that namely ICE NAT are passed through.Under the auxiliary of Relay Server, platform interactive module 702 can be with management set top box
Establish indirect communication connection.
In the present embodiment, Relay Server can be STUN (Simple Traversal of UDP over NATs,
NAT UDP simple traversals) server.After being passed through successfully to management set top box ICE NAT, Relay Server can pass through
Itself and the successful information of management server link setup are sent to platform interactive module 702 by link setup feedback information, to inform terminal
70 with management set top box can communicate now.
Described in detail with reference to Fig. 9 to managing set top box in the present embodiment:Managing set top box 11 includes communication mould
Block 112 and management module 114.The file management that communication module 112 carrys out self terminal 70 for obtaining is asked, and management module 114
Then it is used to carry out file management in set top box group 10 based on file management request.
Terminal 70 can send text in the case where it can be communicated with management set top box 11 to communication module 112
Part management is asked.It is different according to the mode that communication is established between terminal 70 and communication module 112, what communication module 112 received
File management request is probably to be starved by what terminal 70 was directly transmitted, it is also possible to is forwarded by Relay Server.
In the present embodiment, Relay Server can by the way of four layer proxies transparent transmission terminal 70 and communication module 112
Between the communication information.It is that Relay Server need not be concerned about terminal 70 and management server using the advantages of four layer proxy modes
The communication protocol each used, it is only necessary to do forwarding work.Certainly, in the present embodiment, Relay Server can also use seven layers
The communication information that the mode of agency is come between transmission terminal 70 and communication module 112.
The management module 114 that set top box 11 is managed in the present embodiment is carried out based on file management request in set top box group
The mode of file management mainly has two kinds, below under the mode of the first file management is introduced:
After communication module 112 receives file management request, management module 114 can be analyzed file management request
Processing, it is determined which the set top box that can actually perform this document management request is, that is, determine file management request pair
The target set-top box answered.For example, when file management request is file download request, management module 114 is it needs to be determined that this document
Which set top box download request file to be downloaded is stored on, and actual storage has the machine that file download asks data to be downloaded
Top box is exactly the target set-top box of this document download request.When file management request is file upload request, mould is managed
Block 114 should determine that the file to be stored should be stored in set top box group on which set top box, may finally store
The set top box of file to be stored is exactly the target set-top box of this document upload request.
Either for file upload request or file download request, management module 114 it is determined that target set-top box it
Before, it is required for first obtaining the storage information of each set top box in set top box group, to understand the storage condition of each set top box,
Management module 114 actively can send inquiry message by other set top boxes into set top box group, allow other set top boxes according to inquiry
Ask the storage information of information reporting oneself.It can certainly actively be reported certainly to management module 114 from other set top boxes in group
Oneself storage information, for example, the timing of other set top boxes reports the storage information of oneself.
Among a kind of example of the present embodiment, storage information includes the letters such as the current residual memory space of each set top box
Breath, when communication module 112 receive be file upload request when, management module 114 can be directly according to each machine in group
The memory space of top box carries out load balancing, determines which set top box file to be stored should be stored in;When communication mould
When what block 112 received is file download request, management module 114 can parse file to be downloaded from file download request
Title, then by the title be included in inquiry message in be sent to its management all set top boxes, when some set top box is true
Determine file to be downloaded be stored in its it is local when, can to management module 114 send response message, inform management module 114
Current file to be downloaded is stored in its local, so that management module 114 is as target set-top box.
Among another example of the present embodiment, storage information includes a current residual memory space of set top box
The information such as currently stored file name with the set top box.When communication module 112 receives file upload request or file download
It is which that all need not send inquiry message can directly without nominal target set top box to other set top boxes again after request.
Whether it is its own according to the target set-top box of determination, management module 114 is rung according to the target set-top box determined
File management request is answered to carry out the mode of file management by being divided into two kinds:
The first, when the target set-top box that management module 114 is determined is its own, it can be directly to file management
Request is responded.Such as when file management request needs to carry out file upload, manage set top box 11 and communication module
112 directly receive the file for carrying out self terminal 70, and the file received is stored.
Second, when the target set-top box that management module 114 is determined is not its own, but other machines in set top box group
When top box, the second messaging parameter of target set-top box can be included in and redirect in instruction by communicating by management module 114
Module 112 is sent to terminal 70, so that terminal 70 is established according to the second messaging parameter redirected in instructing and target set-top box
Communication link, and realize the upload or download of file.
It is understood that target set-top box is likely to be public network equipment, it is also possible to is to be in setting in family's private network
Standby, therefore, the second messaging parameter is possible to IP address and the port for the IP address or target set-top box for including target set-top box
Number.When the second messaging parameter of target set-top box only includes IP address, terminal 70 directly can be built with target set-top box
Vertical communication, but when also port numbers are included in the second messaging parameter, terminal 70 may need by Relay Server and
Target set-top box establishes communication connection, and the second messaging parameter that Relay Server is sent according to terminal 70 carries out the mistake that UDP burrows
Journey repeats no more here.
It is proposed that management module 114 carries out the another kind of file management based on file management request in set top box group further below
Mode:
Management module 114 can file management is asked to carry out using management set top box 11 as " transient target set top box "
Response, for example, when communication module 112 receive be file upload request when, management module 114 can first receiving terminal
The file to be stored that 70 sides upload, and the file to be stored received is stored in local, in base after all finishing receiving
Local file to be stored, which will be buffered in, in load-balancing algorithm is transferred to actual target set-top box.When file management is asked
When file download request when, management set top box 11 file to be downloaded is found in set top box group and extracts its local,
Then by file to be downloaded from its local transmission to terminal 70.
The hardware configuration of terminal, business platform and the management set top box to being provided in the present embodiment is introduced below:
Platform interactive module in terminal can be realized directly by wireless communication unit, and set top box interactive module, because
To need to be determined to establish the object of communication according to the first messaging parameter or the second messaging parameter during communication link is established
Whether can determine whether to need the first messaging parameter or the second messaging parameter being sent to relaying with oneself direct communication
Server, therefore, set top box interactive module in the present embodiment can be realized jointly by controller and wireless communication unit.
For business platform, it can be deployed on server, and the present embodiment, which provides one kind, can dispose business platform
Server, the server includes processor, memory, communicator etc., and the function of the transport module of business platform can be by
The communicator of server is realized, and processing module can then be realized by processor, wherein terminal and set top box group
Between mapping relations can store in memory.
Typically by master chip, internal memory, tuning demodulator, return path, CA (Conditional in present set top box
Access, condition reception) interface, external storage controller and video and audio output etc. several major form.For supervisor top
The function of communication module in box can realize jointly by tuning demodulator, return path, and the function group of management module can be with
Realized by master chip, with the development of chip technology, the function of set top box is more integrated in one by increasing producer
In individual master chip, such as currently the majority manufacturer is all by CPU, decoder, demultiplexer, graphics processor and video-audio processor
The chip solution in the chips, forming integration is integrated, device cost is significantly reduced and improves reliability.Most
Afterwards, user storage file can be stored in the internal memory of set top box, can also be stored in external hanging type hard disk, Large Copacity it is hard
Disk can be used for storing substantial amounts of file to meet the individual demand of user.
File storage management system provided in an embodiment of the present invention, including terminal, business platform and set top box group, Yong Huxu
When carrying out file management to set top box group, by terminal by obtaining the set top box bound with the terminal from business platform
First messaging parameter of the management set top box of group, and after being communicated according to the first messaging parameter with management set top box foundation, Xiang Guan
Manage set top box and send file management request, being based on file management by management set top box asks to carry out file pipe in set top box group
Reason.This storage management mode not only expands the memory capacity of storage network by multiple set top boxes, and passes through management
File access of the set top box to other set top boxes in set top box group is managed, and can allow set top box group with the shape of an entirety
Formula foreign work, for user, user experience is higher.Most importantly, due to the storage of file distribution is to group
In each set top box on, therefore, be not in store network to provide the user the situation of service substantially, improve file
The disaster tolerance of storage.
Embodiment three:
The present embodiment will combine a specific example to the document storage management method and system in the various embodiments described above
It is illustrated, the interaction in the present embodiment between set top box and business platform is introduced below in conjunction with Figure 10:
When set top box A is for the first time to when registration on business platform, business platform will be set top box A distribution one
Individual primary account number and a sub- account, primary account number are total identification informations of set top box group where set top box A.One set top box group
It is probably the set of all set top boxes in one family, family here can be that same place is on geographical position,
The set top box that can be in order in the set top box not existed together, such as native place small town in father and mother family and in the front yard of the city neutron bride's side
Set top box can also form a set top box group.Sub- account is being capable of one machine of unique identification in a set top box group
The identification information of top box, it should be appreciated that in a set top box group, sub- account cannot repeat, and can use
The equipment identification information of each set top box is as sub- account.And for primary account number, can be the identity of some in kinsfolk
Card number, cell-phone number etc..
S1001, set top box A are logged in.
After current set top box A starts, it will logged on to business platform.
The information of other set top boxes in set top box group where S1002, business platform search set top box A.
Business platform can be found and the machine top when carrying out login authentication to set top box A according to the set top box A accounts logged in
Box A has other set top boxes of same primary account number, such as set top box B, C and D.
S1003, business platform return to the information of other set top boxes to set top box A.
Business platform returns to other set top boxes B, C and D information in return message is logged in set top box A.
S1004, set top box A send to other set top boxes according to the information of other set top boxes got and notified.
The notice that set top box A is sent is mainly used in telling other set top boxes, oneself has been added in file storage network, by
Online member is changed in set top box group, therefore set top box group needs to establish management set top box again.
S1005, set top box A and other online set top boxes are determined to manage set top box jointly.
It is to be in same with set top box A because business platform is sent to included in set top box A login return information
The information of all set top boxes under primary account number, but these set top boxes currently but differ and established a capital as presence, therefore machine top
Box A only elects management set top box with together with those online set top boxes.
It is assumed that the management set top box that set top box group finally determines is exactly set top box A, then set top box A is needed to business
Platform feeds back the messaging parameter of oneself.
S1006, set top box A report the messaging parameter of oneself to business platform.
If set top box A is in after NAT device, then set top box A messaging parameter can be its IP address and port
Number.Messaging parameter is reported to after business platform, and when terminal needs to be managed file storage file, business is put down
The messaging parameter is sent to terminal by platform can, is allowed terminal to be established according to the messaging parameter with set top box A and is communicated.
S1007, other set top boxes report the storage information of oneself to set top box A.
Because management set top box is when file management request is received, it may be necessary to according to each machine in set top box group
The current storage condition of top box determines target set-top box, so the volume storage condition of oneself should be included in by each set top box
Set top box A is reported in storage information.
Will be exemplified by after managing set top box A and being in NAT device to document storage management method and system in the present embodiment
It is introduced, incorporated by reference to Figure 11:
S1101, terminal send inquiry request to business platform.
It is managed when terminal needs to store the file in network to file, such as carries out data and upload either under data
When load, terminal can utilize cloud account to be logged in from client, log in the primary account number that cloud account used can be set top box,
Such as user is in units of family, cloud account have registered by the phone number of a kinsfolk, and the cell-phone number is also simultaneously
Primary account number as set top box.In this case, after terminal is logged in by the cell-phone number, business platform can be direct
The set top box group for determining to bind with the terminal according to the login account of terminal, so as to inquire supervisor in the type and group
Top box A communication is from parameter.
It is understood that the cloud account that terminal logs in may not be set top box group primary account number, in the present embodiment
Among one example, the primary account number of set top box group is the ID card No. of family householder, and the cloud account that terminal logs in can be with
It is with registrations such as the E-mail address accounts of user, the cloud account at this moment logged in one family may have multiple and this multiple cloud
Primary account number of the account again respectively with set top box carried out binding, and therefore, after terminal logs in and sends inquiry request, business is put down
Platform can the first set top box group primary account number according to corresponding to mapping relations determine terminal, then according to the main account of set top box group
Number find out management set top box A messaging parameter.
S1102, business platform return to the first messaging parameter of management set top box.
It is understood that before business platform searching and managing set top box A the first messaging parameter, set top box group should
When putting forward management set top box, and reporting parameters are communicated to business platform by management set top box A.Business platform is according to terminal
After the cloud account information of login finds management set top box A messaging parameter, messaging parameter is sent to terminal.
S1103, terminal send link setup request to Relay Server.
After terminal receives the messaging parameter of business platform feedback, determine that set top box A is in after NAT device, due to
Terminal directly can not be communicated with set top box A, then send terse request to Relay Server, should include eventually in link setup request
End needs the messaging parameter of communication object, such as the IP address and port information of communication object.In the present embodiment, middle rank service
Device can be STUN servers.
S1104, Relay Server NAT are passed through.
If set top box A is not belonging to private network device, terminal directly can be in communication with by udp protocol, still
When set top box A is private network device, Relay Server carries out the actual exactly UDP of process that NAT is passed through to set top box A and burrowed
Process.
S1105, management set top box A are established with Relay Server and communicated.
S1106, Relay Server return to link setup feedback information to terminal.
After Relay Server is established with set top box A to communicate, Relay Server returns to a link setup feedback letter to terminal
Breath, requested to represent that terminal currently can send file management by Relay Server to set top box A.
S1107, terminal send file management request to Relay Server.
The file management request that terminal is sent to Relay Server is probably that file upload request is also likely to be file download
Request, it is notable that " download " in the present embodiment refer to sensu lato download, including will be stored in set top box group
The process that data transfer is stored to end side, it is also included within the process that line is checked.
File management request is sent to management set top box A by S1108, Relay Server.
In the present embodiment, Relay Server is directly sent by the way of four layer proxies to set top box A transparent transmissions end side
File management request.
S1109, management set top box A determine target set-top box corresponding to file management request and carried out in set top box group
File management.
The target set-top box determined is likely to be set top box A in itself, it is also possible to is other machines in set top box group
Top box.When target set-top box is set top box A itself, set top box A can be responded directly to management, what receiving terminal uploaded
The data for asking to download either are transferred to terminal by data.But the target set-top box that set top box A is determined is likely to
Not and itself.
For example, when file management is asked during file upload request, set top box A calculates according to load balancing, may be true
Some determined in other set top boxes is the optimal selection for the data that currently stored present terminal will upload, at this time, machine top
The mode of box A response file management request will change:Set top box A can be reset by Relay Server to terminal A transmission
To information, include the messaging parameter of target target set-top box in redirection information, terminal can be according to redirection information again
It is transmitted file management request.
The document storage management scheme provided according to embodiments of the present invention into set top box group, expands multiple set-top box groups
Family of file memory space, and manage set top box and the file in set top box group can be carried out according to file management request
Unified management so that whole storage network is that service is provided in the form of an entirety for the user of end side, is simplified
User carries out file management process, ensure that Consumer's Experience.In addition because distributed storage organization improves storage system again
The disaster tolerance of system.
Obviously, those skilled in the art should be understood that each module of the embodiments of the present invention or each step can be used
General computing device realizes that they can be concentrated on single computing device, or be distributed in multiple computing device institutes
On the network of composition, alternatively, they can be realized with the program code that computing device can perform, it is thus possible to by they
It is stored in computer-readable storage medium (ROM/RAM, magnetic disc, CD) and is performed by computing device, and in some cases, can
With to perform shown or described step different from order herein, or they are fabricated to each integrated circuit die respectively
Block, or the multiple modules or step in them are fabricated to single integrated circuit module to realize.So the present invention does not limit
Combined in any specific hardware and software.
Above content is to combine the further description that specific embodiment is made to the embodiment of the present invention, it is impossible to is recognized
The specific implementation of the fixed present invention is confined to these explanations.For general technical staff of the technical field of the invention,
Without departing from the inventive concept of the premise, some simple deduction or replace can also be made, should all be considered as belonging to the present invention
Protection domain.
Claims (13)
1. a kind of document storage management method, including:
Terminal sends inquiry request to business platform, and receives the machine top that the business platform inquires according to the inquiry request
First messaging parameter of the management set top box of box group, the set top box group include at least two set top boxes, the management
Set top box is one at least two set top box, and is the external access point of the set top box group;
The terminal is established with the management set top box according to first messaging parameter and communicated, and is sent out to the management set top box
Go out file management request, so that the management set top box is carried out according to file management request in set top box group group
File management.
2. document storage management method as claimed in claim 1, it is characterised in that the terminal is sent out to the management set top box
Go out file management request also includes afterwards:
The terminal, which receives, redirects instruction, described to redirect instruction by the management set top box true according to the management request
The target set-top box for making the actual execution file management request is sent when not being its own, including the target machine top
Second messaging parameter of box;
The terminal is established with the target set-top box according to second messaging parameter and communicates and carry out file management.
3. a kind of document storage management method, including:
The inquiry request that business platform receiving terminal is sent, and the set top box according to corresponding to the inquiry request determines the terminal
Group, the set top box group include at least two set top boxes, and one at least two set top box is as described
The management set top box of the external access point of set top box group, the management set top box are used to be existed according to the file management request received
File management is carried out in the set top box group;
First messaging parameter of the management set top box is fed back to the terminal by the business platform, so that the terminal is based on
First messaging parameter is established with the management set top box and communicated, and file management request is sent to the management set top box.
4. document storage management method as claimed in claim 3, it is characterised in that also include:
The business platform receives the bind request of the terminal, and the bind request includes treating to be bound with the terminal
Set top box group identification information;
The business platform stores the mapping relations between the terminal and the set top box group according to the bind request.
5. a kind of document storage management method, including:
Manage set top box and obtain the file management request for carrying out self terminal, the management set top box is to include at least two set top boxes
The external access point of set top box group;
The management set top box is based on file management request and carries out file management in the set top box group.
6. document storage management method as claimed in claim 5, it is characterised in that management set top box obtains the text for carrying out self terminal
Also include before part management request:
Each set top box in the set top box group is determined to manage set top box, and the supervisor by determining at random
Its first messaging parameter is reported business platform by top box;
Or,
Each set top box in the set top box group is based in three computing capability, communication capacity, storage capacity dimensions
It is at least one to determine to manage set top box, and its first messaging parameter is reported business by the management set top box by determining
Platform.
7. the document storage management method as described in claim 5 or 6, it is characterised in that the management set top box is based on described
File management request carries out file management in the set top box group to be included:
The target set-top box of the actual execution management request is determined in the management set top box slave top box group;
The management set top box responds the file management request according to the target set-top box determined and carries out file management.
8. document storage management method as claimed in claim 7, it is characterised in that the management set top box slave top box group
In determine actual execution it is described management request target set-top box before also include:
The management set top box receives the storage information that each set top box reports in the set top box group.
9. document storage management method as claimed in claim 7, it is characterised in that the management set top box slave top box group
In determine actual execution it is described management request target set-top box include:
When the management request is file upload request, the management set top box is based on current each machine in the set top box group
The storage capacity of top box is determined to store the target set-top box of data to be stored;
When the management request for file download request when, the management set top box determines currently stored there is the file download
The target set-top box of data to be downloaded corresponding to request.
10. document storage management method as claimed in claim 9, it is characterised in that the management set top box is according to determining
Target set-top box respond file management request and carry out file management and include:
When the target set-top box is the management set top box itself, the management set top box receives treating for the terminal upload
Data storage is simultaneously stored, or the terminal is locally extracted from it in the management set top box needs the data to be downloaded downloaded simultaneously
It is transferred to the terminal;
When the target set-top box is not the management set top box itself, the management set top box is sent to the terminal to be reset
Described to redirect the second messaging parameter for instructing and including the target set-top box to instruction, the redirection instruction supplies terminal
Established according to second messaging parameter with the target set-top box and communicate and carry out file management.
A kind of 11. terminal, it is characterised in that including:
Platform interactive module, for sending inquiry request to business platform, and receive the business platform and asked according to the inquiry
The first messaging parameter of the management set top box of the set top box group inquired is sought, the set top box group includes at least two machines
Top box, the management set top box are one at least two set top box, and are the external access of the set top box group
Point;
Set top box interactive module, communicated for being established according to first messaging parameter with the management set top box, and to described
Management set top box sends file management request, so that the management set top box is asked in the set top box according to the file management
File management is carried out in group's group.
A kind of 12. business platform, it is characterised in that including:
Transport module, the inquiry request sent for receiving terminal;
Processing module, for set top box group corresponding to determining the terminal according to the inquiry request, the set top box group
Include at least two set top boxes, one at least two set top box is as the external access point of set top box group
Management set top box, it is described management set top box be used for according to receive file management request is carried out in the set top box group
File management;
The transport module is additionally operable to the first messaging parameter of the management set top box feeding back to the terminal, for the end
End group is established with the management set top box in first messaging parameter and communicated, and sending file management to the management set top box please
Ask.
13. one kind management set top box, it is characterised in that including:
Communication module, the file management request of self terminal is carried out for obtaining, the management set top box is to include at least two machine tops
The external access point of the set top box group of box;
Management module, for carrying out file management in the set top box group based on file management request.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610828155.3A CN107846428A (en) | 2016-09-18 | 2016-09-18 | Document storage management method, terminal, business platform and management set top box |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610828155.3A CN107846428A (en) | 2016-09-18 | 2016-09-18 | Document storage management method, terminal, business platform and management set top box |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107846428A true CN107846428A (en) | 2018-03-27 |
Family
ID=61657031
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610828155.3A Pending CN107846428A (en) | 2016-09-18 | 2016-09-18 | Document storage management method, terminal, business platform and management set top box |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107846428A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111835857A (en) * | 2020-07-17 | 2020-10-27 | 北京百度网讯科技有限公司 | Method and apparatus for accessing data |
US11283805B2 (en) | 2018-07-16 | 2022-03-22 | Alibaba Group Holding Limited | Cloud device account configuration method, apparatus and system, and data processing method |
CN115474100A (en) * | 2021-06-11 | 2022-12-13 | 台湾中华电信股份有限公司 | Method for sharing multimedia information and set top box system using same |
-
2016
- 2016-09-18 CN CN201610828155.3A patent/CN107846428A/en active Pending
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US11283805B2 (en) | 2018-07-16 | 2022-03-22 | Alibaba Group Holding Limited | Cloud device account configuration method, apparatus and system, and data processing method |
CN111835857A (en) * | 2020-07-17 | 2020-10-27 | 北京百度网讯科技有限公司 | Method and apparatus for accessing data |
CN115474100A (en) * | 2021-06-11 | 2022-12-13 | 台湾中华电信股份有限公司 | Method for sharing multimedia information and set top box system using same |
CN115474100B (en) * | 2021-06-11 | 2024-05-17 | 台湾中华电信股份有限公司 | Method for sharing multimedia information and set top box system using the same |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11074226B2 (en) | Hierarchical computing network and methods thereof | |
JP6054484B2 (en) | System and method using a client local proxy server to access a device having an assigned network address | |
CN105245373B (en) | A kind of container cloud platform system is built and operation method | |
CN104919758B (en) | A kind of method and the network equipment by residing in the implementation of the network equipment in business domains | |
CN104751348B (en) | A kind of e-commerce system based on social networks | |
CN107925681A (en) | The system and method that the load balance in network packet core system is defined for distributed software | |
JP7375203B2 (en) | Account access methods and devices, storage media, and electronic devices | |
US20180139269A1 (en) | Dynamic load balancing among data centers | |
CN102246465A (en) | Providing local secure network access to remote services | |
US10924533B2 (en) | System, apparatus and method for load balancing | |
KR20070059049A (en) | System of mobile game on-line and method for communication between mobile game terminals | |
WO2020258967A1 (en) | Industrial application service processing method and system | |
CN111327668B (en) | Network management method, device, equipment and storage medium | |
CN103563314B (en) | For system and method for passive communication services | |
CN104247380A (en) | Binding crud-type protocols in distributed agreement protocols | |
CN113014847B (en) | Method and system for realizing audio and video communication based on hybrid cloud architecture | |
CN107846428A (en) | Document storage management method, terminal, business platform and management set top box | |
CN113783910B (en) | Data forwarding method, device and system | |
US20150195764A1 (en) | Network service system and method for providing network service in multiple mobile network environment | |
CN114036236A (en) | Multi-gateway cluster system | |
CN112202795A (en) | Data processing method, gateway equipment and medium | |
CN108492171A (en) | Online operation method of house mortgage, electronic device and readable storage medium | |
CN104519088A (en) | Buffer memory system realization method and buffer memory system | |
CN114172853B (en) | Configuration method and device of traffic forwarding and bare computer server | |
CN104104564B (en) | Equipment room establishes the method and device based on WIFI LANs automatically in private clound |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20180327 |
|
WD01 | Invention patent application deemed withdrawn after publication |