CN104519109A - Method and device for sharing file among multiple devices - Google Patents

Method and device for sharing file among multiple devices Download PDF

Info

Publication number
CN104519109A
CN104519109A CN201310466059.5A CN201310466059A CN104519109A CN 104519109 A CN104519109 A CN 104519109A CN 201310466059 A CN201310466059 A CN 201310466059A CN 104519109 A CN104519109 A CN 104519109A
Authority
CN
China
Prior art keywords
equipment
node equipment
node
file
publisher
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
CN201310466059.5A
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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN201310466059.5A priority Critical patent/CN104519109A/en
Publication of CN104519109A publication Critical patent/CN104519109A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides a method and a device for sharing a file among multiple devices. The devices include an issuing node device EP1 and a sharing node device EP2. The method includes receiving a file abstract sent by the issuing node device EP1; acquiring information of the sharing node device EP2 authorized by the issuing node device EP1; sending the file abstract to the sharing node device EP2 which is used for being connected with the issuing node device EP1 to acquire a file related to the file abstract and store the file when the issuing node device EP1 is accessible. The method and the device are used for enabling the file to be normally downloaded when a device where the file is stored is in an inaccessible state to relieve network bandwidth pressure of a server and improve service quality of a user.

Description

A kind of method of many equipment rooms file-sharing and device
Technical field
The present invention relates to communication technical field, particularly relate to a kind of method and device of many equipment rooms file-sharing.
Background technology
Cybertimes, resource-sharing is a very important concept, can bring many convenience by network to user, such as, between colleague, shares necessary data, can effectively increase work efficiency; Between friend, share classical good resource, good friend can be avoided frequently to require bothering of transmitting file.
Specifically, user can share file by file-sharing with other people, namely refers to that (the Internet or little network) shares the file in oneself equipment on network on one's own initiative.File itself exists in the PC of user, and most of people participating in file-sharing also can download the shared file that other users provide simultaneously, and also these two action connect together sometimes.More common a kind of way installs shareware in a device at present, and equipment by this shareware individual transmission file, but can not obtain this file when opposite equip. is in inaccessible state, comparatively passive; It is by files passe to server that another kind does rule, and other users are again by this server download file, but when file is excessive, over-burden to cause server.
Therefore, one of problem that those skilled in the art are in the urgent need to address is, a kind of method and device of many equipment rooms file-sharing are proposed, enable user's download file in real time, even if also can normally download when the equipment that file stores is in inaccessible state, alleviate the network bandwidth pressure of server, promote the service quality of user.
Summary of the invention
Technical problem to be solved by this invention is to provide a kind of method and device of many equipment rooms file-sharing, enable user's download file in real time, and also can normally download when the equipment that file stores is in inaccessible state, alleviate the network bandwidth pressure of server, promote the service quality of user.
In order to solve the problem, the invention discloses a kind of method of many equipment rooms file-sharing, described many equipment comprises publisher node equipment EP1 and shared node device EP2, and described method comprises:
Receive the document that publisher node equipment EP1 sends;
Obtain the information of the shared node device EP2 that described publisher node equipment EP1 authorizes;
Described document is sent to described shared node device EP2; Described shared node device EP2 is used for when described publisher node equipment EP1 may have access to, and connects publisher node equipment EP1 and obtains the file of described document association and store.
Preferably, described many equipment also comprises backup node equipment SE, and described method also comprises:
Described document is sent to described backup node equipment SE;
Described backup node equipment SE obtains the file of described document association from described publisher node equipment EP1 and stores; Described shared node device EP2, also for when described publisher node equipment EP1 inaccessible, connects the file that backup node equipment SE obtains the association of described document.
Preferably, the shared node device EP2 that described publisher node equipment EP1 authorizes is one or more, and described backup node equipment SE is one or more; Described method also comprises:
By multiple information having got described file sharing nodes equipment EP2, and/or the information of backup node equipment SE is added in preset node listing;
Described node listing is sent to the shared node device EP2 of current initiation file acquisition request.
Preferably, described document comprises file identifier, file distribution time, file name and file size.
Preferably, described publisher node equipment EP1 adopts RIP communication mode to communicate with between shared node device EP2, and described method also relates to one or more transit node equipment, and described RIP communication mode is:
Described publisher node equipment EP1 adopts NAT communication mode to be connected with described shared node device EP2, connects unsuccessful according to NAT communication mode, then connect transit node equipment respectively;
When described publisher node equipment EP1 sends packet to shared node device EP2, described publisher node equipment EP1 according to the information of one or more transit node equipment of described shared node device EP2 successful connection by Packet Generation to wherein at least one transit node equipment, described transit node equipment is used for described packet to be forwarded to described shared node device EP2
Or,
When described shared node device EP2 sends packet to publisher node equipment EP1, described shared node device EP2 according to the information of one or more transit node equipment of described publisher node equipment EP1 successful connection by Packet Generation to wherein at least one transit node equipment, described transit node equipment is used for described packet to be forwarded to described publisher node equipment EP1.
The embodiment of the invention also discloses a kind of device of many equipment rooms file-sharing, described many equipment comprises publisher node equipment EP1 and shared node device EP2, and described device comprises:
Document receiver module, for receiving the document that publisher node equipment EP1 sends;
Facility information obtains module, for obtaining the information of the shared node device EP2 that described publisher node equipment EP1 authorizes;
First document sending module, for being sent to described shared node device EP2 by described document; Described shared node device EP2 is used for when described publisher node equipment EP1 may have access to, and connects publisher node equipment EP1 and obtains the file of described document association and store.
Preferably, described many equipment also comprises backup node equipment SE, and described device also comprises:
Second document sending module, for being sent to described backup node equipment SE by described document;
Described backup node equipment SE obtains the file of described document association from described publisher node equipment EP1 and stores; Described shared node device EP2, also for when described publisher node equipment EP1 inaccessible, connects the file that backup node equipment SE obtains the association of described document.
Preferably, the shared node device EP2 that described publisher node equipment EP1 authorizes is one or more, and described backup node equipment SE is one or more; Described device also comprises:
Facility information adds module, and for by multiple information having got described file sharing nodes equipment EP2, and/or the information of backup node equipment SE is added in preset node listing;
Described node listing is sent to the shared node device EP2 of current initiation file acquisition request.
Preferably, described document comprises file identifier, file distribution time, file name and file size.
Preferably, described publisher node equipment EP1 adopts RIP communication mode to communicate with between shared node device EP2, and described device also relates to one or more transit node equipment, and described RIP communication mode is:
Described publisher node equipment EP1 adopts NAT communication mode to be connected with described shared node device EP2, connects unsuccessful according to NAT communication mode, then connect transit node equipment respectively;
When described publisher node equipment EP1 sends packet to shared node device EP2, described publisher node equipment EP1 according to the information of one or more transit node equipment of described shared node device EP2 successful connection by Packet Generation to wherein at least one transit node equipment, described transit node equipment is used for described packet to be forwarded to described shared node device EP2
Or,
When described shared node device EP2 sends packet to publisher node equipment EP1, described shared node device EP2 according to the information of one or more transit node equipment of described publisher node equipment EP1 successful connection by Packet Generation to wherein at least one transit node equipment, described transit node equipment is used for described packet to be forwarded to described publisher node equipment EP1.
Compared with prior art, the present invention includes following advantage:
First, publisher node equipment EP1 sends document and the information of shared node device EP2 of authorizing thereof to server PS, after server PS receives, document is sent to corresponding shared node device EP2, share node device EP2 then obtain the file of this document association by connecting publisher node equipment EP1 and store, to realize file-sharing, because file does not need to upload onto the server, therefore alleviate the network bandwidth pressure of server, improve the service quality to user.
Secondly, document also can be sent to corresponding backup node equipment SE by server PS, backup node equipment SE obtains the file of described document association from described publisher node equipment EP1 and stores, like this when publisher node equipment EP1 is in inaccessible state, obtain the file of this document association by connecting backup node equipment SE.
Again, the information of the multiple information and backup node equipment SE that have got described file sharing nodes equipment EP2 can be added in preset node listing by server PS, and described node listing is sent to the shared node device EP2 of current initiation file acquisition request, like this, share node device EP2 except obtaining except the file of document association by connecting publisher node equipment EP1 and backup node equipment SE, the file of document association can also be obtained by other shared node device EP2, the shared node device EP2 authorized is more, share node device EP2 copy record more, the reliability so realizing between file sharing is higher.
Finally, publisher node equipment EP1 adopts RIP communication mode to communicate with shared node device EP2, when publisher node equipment EP1 can not be directly connected by NAT communication mode with shared node device EP2, same transit node equipment can be connected, when needs transmit mutually packet, first can send packet to transit node equipment, by transit node equipment, packet is forwarded again, the communication between equipment is realized like this by third party device, the diversification of real-time performance communication between devices mode, and reliability is high.
Accompanying drawing explanation
Fig. 1 is the flow chart of steps of the embodiment of the method 1 of a kind of many equipment rooms file-sharing of the present invention;
Fig. 2 is the flow chart of steps of the embodiment of the method 2 of a kind of many equipment rooms file-sharing of the present invention;
Fig. 3 is the annexation schematic diagram of a kind of many equipment rooms of the present invention;
Fig. 4 is the schematic diagram that a kind of equipment room of the present invention carries out P2P connection;
Fig. 5 is the flow chart of steps of the embodiment of the method 3 of a kind of many equipment rooms file-sharing of the present invention;
Fig. 6 is the structured flowchart of the device embodiment of a kind of many equipment rooms file-sharing of the present invention.
Embodiment
For enabling above-mentioned purpose of the present invention, feature and advantage become apparent more, and below in conjunction with the drawings and specific embodiments, the present invention is further detailed explanation.
One of core idea of the embodiment of the present invention is, publisher node equipment EP1 sends document and the information of shared node device EP2 of authorizing thereof to server PS, after server PS receives, document is sent to corresponding shared node device EP2, share node device EP2 then obtain the file of this document association by connecting publisher node equipment EP1 and store, to realize file-sharing.
With reference to Fig. 1, show the flow chart of steps of the embodiment of the method 1 of a kind of many equipment rooms file-sharing of the present invention, described many equipment can comprise publisher node equipment EP1 and shared node device EP2, and described method specifically can comprise the steps:
Step 101, receives the document that publisher node equipment EP1 sends;
Step 102, obtains the information of the shared node device EP2 that described publisher node equipment EP1 authorizes;
Step 103, is sent to described shared node device EP2 by described document; Described shared node device EP2 is used for when described publisher node equipment EP1 may have access to, and connects publisher node equipment EP1 and obtains the file of described document association and store.
In embodiments of the present invention, the file generated document that publisher node equipment EP1 will issue according to it, again this document is sent in its shared node device EP2 authorized, and the information this document and mandate being shared node device EP2 is sent to server PS.
Particularly, publisher node equipment EP1 with the computer equipment of company according to file generated document to be released, can record the essential information of this file, again this document is sent to server PS afterwards.Wherein, this document can comprise: unique file identifier, file distribution time, file name and file size.
Publisher node equipment EP1 can authorize shared node device EP2, makes the shared node device EP2 specified have the authority of access file.Publisher node equipment EP1 is after transmission file is plucked, and the information of the shared node device EP2 that can simultaneously it be authorized sends to server PS.
Document is sent to the shared node device EP2 that publisher node equipment EP1 authorizes by server PS.After sharing node device EP2 reception, when publisher node equipment EP1 may have access to, such as, when being in the normal presence run, can the file of described document association being obtained via connecting publisher node equipment EP1 and store, realize the shared of equipment room file.
With reference to Fig. 2, show the flow chart of steps of the embodiment of the method 2 of a kind of many equipment rooms file-sharing of the present invention, described many equipment can comprise publisher node equipment EP1 and shared node device EP2, and described method specifically can comprise the steps:
Step 201, receives the document that publisher node equipment EP1 sends;
Step 202, obtains the information of the shared node device EP2 that described publisher node equipment EP1 authorizes;
Step 203, is sent to described shared node device EP2 by described document; Described shared node device EP2 is used for when described publisher node equipment EP1 may have access to, and connects publisher node equipment EP1 and obtains the file of described document association and store;
Step 204, is sent to described backup node equipment SE by described document;
Step 205, described backup node equipment SE obtains the file of described document association from described publisher node equipment EP1 and stores; Described shared node device EP2, also for when described publisher node equipment EP1 inaccessible, connects the file that backup node equipment SE obtains the association of described document.
In embodiments of the present invention, also can arrange backup node equipment SE to be used as to ensure.Backup node equipment SE can be the node device that the network bandwidth is comparatively large, CPU ability is higher, internal memory is abundant.Document can also be delivered to backup node equipment SE and backup while document being delivered to the shared node device EP2 that publisher node equipment EP1 authorizes by server PS.After backup node equipment SE receives document, automatically obtain authentic document from publisher node equipment EP1 and be stored into this locality.
In order to the annexation making those skilled in the art better understand equipment room in the embodiment of the present invention, can refer to the schematic diagram of the of the present invention a kind of many equipment rooms annexation shown in Fig. 3, wherein, equipment room can communicate for P2P.
When authorized shared node device EP2 wishes to read this file, if publisher node equipment EP1 is in addressable state, such as, when equipment on-line running status is normal again, then shares node device EP2 and connect publisher node equipment EP1 by RIP communication mode and obtain this file and read; If cloth node device EP1 is not in addressable state, such as equipment not online or abnormal time, then share node device EP2 and can arrive the backup node equipment SE having downloaded this file and obtain this duplicate of the document and store.Because shared node device EP2 is also provided with the copy of this file, and it is more to share node device EP2 copy record, and the reliability so realizing file-sharing between equipment room is higher.
In one preferred embodiment of the invention, can also relate to one or more transit node equipment, described RIP communication mode can be:
Described publisher node equipment EP1 adopts NAT communication mode to be connected with described shared node device EP2, connects unsuccessful according to NAT communication mode, then connect transit node equipment respectively;
When described publisher node equipment EP1 sends packet to shared node device EP2, described publisher node equipment EP1 according to the information of one or more transit node equipment of described shared node device EP2 successful connection by Packet Generation to wherein at least one transit node equipment, described transit node equipment is used for described packet to be forwarded to described shared node device EP2
Or,
When described shared node device EP2 sends packet to publisher node equipment EP1, described shared node device EP2 according to the information of one or more transit node equipment of described publisher node equipment EP1 successful connection by Packet Generation to wherein at least one transit node equipment, described transit node equipment is used for described packet to be forwarded to described publisher node equipment EP1.
In specific implementation, share node device EP2 first to attempt directly being connected with publisher node equipment EP1, if connection failure, after shared node device EP2 receives the information of one or more transit node equipment that server PS sends, and transit node equipment connection corresponding with the information of transit node equipment respectively, if successful connection, the information receiving shared node device EP2 and send the transit node equipment of its successful connection is sent to publisher node equipment EP1 by server PS, the node device SE that publisher node equipment EP1 is corresponding with the information of transit node equipment respectively connects, and record the information of the transit node equipment of its successful connection.When shared node device EP2 and publisher node equipment EP1 sends data packets to each other, the other side can be transmitted to respectively by both the transit node equipment of equal successful connection.Therefore, when shared node device EP2 cannot directly be connected with publisher node equipment EP1, can also by transit node device forwards to the other side, the diversification of communication between devices mode.
Specifically, be connected if certain transit node equipment has all reached P2P with shared node device EP2 and publisher node equipment EP1, then share node device EP2, in internal routing table, the route arriving publisher node equipment EP1 is pointed to transit node equipment; Publisher node equipment EP1 points to transit node equipment by arriving the route sharing node device EP2 in internal routing table conversely.When shared node device EP2 needs to send data to publisher node equipment EP1, filling in final purpose address at packet is publisher node equipment EP1, and by Packet Generation to transit node equipment; When transit node equipment receives that to indicate publisher node equipment EP1 be the packet of destination address, automatically this packet is transmitted to publisher node equipment EP1, otherwise, when publisher node equipment EP1 needs to send data to shared node device EP2, final purpose address is filled in for sharing node device EP2 at packet, and by Packet Generation to transit node equipment; When transit node equipment receives that to indicate shared node device EP2 be the packet of destination address, automatically this packet is transmitted to shared node device EP2.
In another preferred exemplary of the present invention, if share node device EP2 and publisher node equipment EP1 successful connection, also directly can send out data mutually so between the two, and not need through transit node equipment, specifically, what equipment room directly connected is have employed NAT communication mode.By using NAT communication mode that in-house all user can be made by limited several (or 1) legitimate ip address access Internet, thus save the legitimate ip address on Internet; On the other hand, by address transition, the real IP address of interior online main frame can be hidden, thus improve the fail safe of network.The schematic diagram of P2P connection specifically can be carried out with reference to the of the present invention a kind of equipment room shown in Fig. 4, described shared node device EP2 can have the first Intranet udp port and the first outer net udp port, described publisher node equipment EP1 can have the second Intranet udp port and the second outer net udp port, and the step that namely shared node device EP2 connects described publisher node equipment EP1 can comprise:
Step S1, described shared node device EP2 sends described in described first Intranet udp port and the first outer net udp port to described server PS; Described server PS is used for described first Intranet udp port and the first outer net udp port to be sent to described publisher node equipment EP1; Described publisher node equipment EP1 is used for when receiving described first Intranet udp port and the first outer net udp port, record described first Intranet udp port and the first outer net udp port, and send described second Intranet udp port and the second outer net udp port extremely described server PS;
Step S2, described shared node device EP2 receive the described second Intranet udp port and the second outer net udp port record that described server PS sends;
Step S3, described shared node device EP2, respectively from described first Intranet udp port and described first outer net udp port, send confirmation to described second Intranet udp port and described second outer net udp port;
Step S4, described shared node device EP2 receives the confirmation successful information that described publisher node equipment EP1 sends for described confirmation.
If the message of receiving the confirmation, then represent direct-connected success.Node device also comprises tcp port, if use UDP(User Datagram Protocol, User Datagram Protoco (UDP)) mode cannot successful connection, then use TCP(Transmission Control Protocol by tcp port, transmission control protocol) mode connects.
With reference to Fig. 5, show the flow chart of steps of the embodiment of the method 3 of a kind of many equipment rooms file-sharing of the present invention, described many equipment can comprise publisher node equipment EP1 and shared node device EP2, and described method specifically can comprise the steps:
Step 301, receives the document that publisher node equipment EP1 sends;
Step 302, obtains the information of the shared node device EP2 that described publisher node equipment EP1 authorizes;
Step 303, is sent to described shared node device EP2 by described document; Described shared node device EP2 is used for when described publisher node equipment EP1 may have access to, and connects publisher node equipment EP1 and obtains the file of described document association and store.
Step 304, by multiple information having got described file sharing nodes equipment EP2, and/or the information of backup node equipment SE is added in preset node listing;
Step 305, is sent to the shared node device EP2 of current initiation file acquisition request by described node listing.
In embodiments of the present invention, when the document that server PS record publisher node equipment EP1 issues, the shared node device EP2 of granted access can be recorded simultaneously.As publisher node equipment EP1 authorizes multiple shared node device EP2 can access this file, so registration is shared node device EP2 and backup node equipment SE to the local backup record of this file by server PS, namely, if share node device EP2 or backup node equipment SE downloaded this file and stored, then server PS is by the information of shared node device EP2 or backup node equipment SE write node listing.Particularly, if when shared node device EP2 wishes to access the file that publisher node equipment EP1 issues, first can judge whether to access through server PS, if it is authorized shared node device EP2 that server PS finds, it is then allowed to read this file, to actual storage be had to have the node listing of this file to send to this shared node device EP2, so share node device EP2 then can obtain document association file from the recording equipment this node listing.
After shared node device EP2 receives node listing, the shared node EP2 in traverse node list and backup node SE, if traverse the equipment that can access, just connects corresponding equipment, obtains the file that document associates; Such as, traverse described publisher node equipment EP1, when its on-line operation state is normal again, connect the file that publisher node equipment EP1 obtains the association of described document; If traverse described publisher node equipment EP1, find it not online or abnormal time, continue to traverse next equipment, suppose it is connect backup node equipment SE, then connect the file that backup node equipment SE obtains the association of described document.
In order to make those skilled in the art understand the embodiment of the present invention better, below with a concrete example explanation.
Suppose that Company supervisor has issued the PPT file of a publicity Products by the system of oneself office computer, and in authorized company, all business personnels can conduct interviews, assuming that business personnel A obtains this file from sales manager; After Hours, sales manager closes computer and leaves company, and business personnel B just returns to open computer from customers' place, finds that sales manager has issued file, because the computer of sales manager is closed, system can allow business personnel B obtain this PPT file from the computer of business personnel A.
It should be noted that, for embodiment of the method, in order to simple description, therefore it is all expressed as a series of combination of actions, but those skilled in the art should know, the application is not by the restriction of described sequence of movement, because according to the application, some step can adopt other orders or carry out simultaneously.Secondly, those skilled in the art also should know, the embodiment described in specification all belongs to preferred embodiment, and involved action might not be that the application is necessary.
With reference to Fig. 6, show the structured flowchart of the device embodiment of a kind of many equipment rooms file-sharing of the present invention, described many equipment can comprise publisher node equipment EP1 and shared node device EP2, and described device can comprise as lower module:
Document receiver module 401, for receiving the document that publisher node equipment EP1 sends;
Facility information obtains module 402, for obtaining the information of the shared node device EP2 that described publisher node equipment EP1 authorizes;
First document sending module 403, for being sent to described shared node device EP2 by described document; Described shared node device EP2 is used for when described publisher node equipment EP1 may have access to, and connects publisher node equipment EP1 and obtains the file of described document association and store.
In one preferred embodiment of the invention, described many equipment also comprises backup node equipment SE, and described device can also comprise:
Second document sending module, for being sent to described backup node equipment SE by described document;
Described backup node equipment SE obtains the file of described document association from described publisher node equipment EP1 and stores; Described shared node device EP2, also for when described publisher node equipment EP1 inaccessible, connects the file that backup node equipment SE obtains the association of described document.
In one preferred embodiment of the invention, the shared node device EP2 that described publisher node equipment EP1 authorizes can for one or more, and described backup node equipment SE can be one or more; Described device can also comprise:
Facility information adds module, and for by multiple information having got described file sharing nodes equipment EP2, and/or the information of backup node equipment SE is added in preset node listing;
Described node listing is sent to the shared node device EP2 of current initiation file acquisition request.
In one preferred embodiment of the invention, described document can comprise file identifier, file distribution time, file name and file size.
In one preferred embodiment of the invention, described publisher node, backup node, and, share between node and RIP RIP can be adopted to communicate.
For device embodiment, due to itself and embodiment of the method basic simlarity, so description is fairly simple, relevant part illustrates see the part of embodiment of the method.
Each embodiment in this specification all 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 part mutually see.
Those skilled in the art should understand, the embodiment of the application can be provided as method, device or computer program.Therefore, the application can adopt the form of complete hardware embodiment, completely software implementation or the embodiment in conjunction with software and hardware aspect.And the application can adopt in one or more form wherein including the upper computer program implemented of computer-usable storage medium (including but not limited to magnetic disc store, CD-ROM, optical memory etc.) of computer usable program code.
The application describes with reference to according to the flow chart of the method for the embodiment of the present application, equipment (system) and computer program and/or block diagram.Should understand can by the combination of the flow process in each flow process in computer program instructions realization flow figure and/or block diagram and/or square frame and flow chart and/or block diagram and/or square frame.These computer program instructions can being provided to the processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device to produce a machine, making the instruction performed by the processor of computer or other programmable data processing device produce device for realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be stored in can in the computer-readable memory that works in a specific way of vectoring computer or other programmable data processing device, the instruction making to be stored in this computer-readable memory produces the manufacture comprising command device, and this command device realizes the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, make on computer or other programmable devices, to perform sequence of operations step to produce computer implemented process, thus the instruction performed on computer or other programmable devices is provided for the step realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
Although described the preferred embodiment of the application, those skilled in the art once obtain the basic creative concept of cicada, then can make other change and amendment to these embodiments.So claims are intended to be interpreted as comprising preferred embodiment and falling into all changes and the amendment of the application's scope.
Finally, also it should be noted that, in this article, the such as relational terms of first and second grades and so on is only used for an entity or operation to separate with another entity or operating space, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or equipment.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment comprising described key element and also there is other identical element.
Above to method and the device of a kind of many equipment rooms file-sharing provided by the present invention, be described in detail, apply specific case herein to set forth principle of the present invention and execution mode, the explanation of above embodiment just understands method of the present invention and core concept thereof for helping; Meanwhile, for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (10)

1. a method for the file-sharing of equipment room more than, is characterized in that, described many equipment comprises publisher node equipment EP1 and shared node device EP2, and described method comprises:
Receive the document that publisher node equipment EP1 sends;
Obtain the information of the shared node device EP2 that described publisher node equipment EP1 authorizes;
Described document is sent to described shared node device EP2; Described shared node device EP2 is used for when described publisher node equipment EP1 may have access to, and connects publisher node equipment EP1 and obtains the file of described document association and store.
2. method according to claim 1, is characterized in that, described many equipment also comprises backup node equipment SE, and described method also comprises:
Described document is sent to described backup node equipment SE;
Described backup node equipment SE obtains the file of described document association from described publisher node equipment EP1 and stores; Described shared node device EP2, also for when described publisher node equipment EP1 inaccessible, connects the file that backup node equipment SE obtains the association of described document.
3. method according to claim 2, is characterized in that, the shared node device EP2 that described publisher node equipment EP1 authorizes is one or more, and described backup node equipment SE is one or more; Described method also comprises:
By multiple information having got described file sharing nodes equipment EP2, and/or the information of backup node equipment SE is added in preset node listing;
Described node listing is sent to the shared node device EP2 of current initiation file acquisition request.
4. method according to claim 1 and 2, is characterized in that, described document comprises file identifier, file distribution time, file name and file size.
5. the method according to claim 1 or 2 or 3, it is characterized in that, described publisher node equipment EP1 adopts RIP communication mode to communicate with between shared node device EP2, and described method also relates to one or more transit node equipment, and described RIP communication mode is:
Described publisher node equipment EP1 adopts NAT communication mode to be connected with described shared node device EP2, connects unsuccessful according to NAT communication mode, then connect transit node equipment respectively;
When described publisher node equipment EP1 sends packet to shared node device EP2, described publisher node equipment EP1 according to the information of one or more transit node equipment of described shared node device EP2 successful connection by Packet Generation to wherein at least one transit node equipment, described transit node equipment is used for described packet to be forwarded to described shared node device EP2
Or,
When described shared node device EP2 sends packet to publisher node equipment EP1, described shared node device EP2 according to the information of one or more transit node equipment of described publisher node equipment EP1 successful connection by Packet Generation to wherein at least one transit node equipment, described transit node equipment is used for described packet to be forwarded to described publisher node equipment EP1.
6. a device for the file-sharing of equipment room more than, is characterized in that, described many equipment comprises publisher node equipment EP1 and shared node device EP2, and described device comprises:
Document receiver module, for receiving the document that publisher node equipment EP1 sends;
Facility information obtains module, for obtaining the information of the shared node device EP2 that described publisher node equipment EP1 authorizes;
First document sending module, for being sent to described shared node device EP2 by described document; Described shared node device EP2 is used for when described publisher node equipment EP1 may have access to, and connects publisher node equipment EP1 and obtains the file of described document association and store.
7. device according to claim 6, is characterized in that, described many equipment also comprises backup node equipment SE, and described device also comprises:
Second document sending module, for being sent to described backup node equipment SE by described document;
Described backup node equipment SE obtains the file of described document association from described publisher node equipment EP1 and stores; Described shared node device EP2, also for when described publisher node equipment EP1 inaccessible, connects the file that backup node equipment SE obtains the association of described document.
8. device according to claim 7, is characterized in that, the shared node device EP2 that described publisher node equipment EP1 authorizes is one or more, and described backup node equipment SE is one or more; Described device also comprises:
Facility information adds module, and for by multiple information having got described file sharing nodes equipment EP2, and/or the information of backup node equipment SE is added in preset node listing;
Described node listing is sent to the shared node device EP2 of current initiation file acquisition request.
9. the device according to claim 6 or 7, is characterized in that, described document comprises file identifier, file distribution time, file name and file size.
10. the device according to claim 6 or 7 or 8, it is characterized in that, described publisher node equipment EP1 adopts RIP communication mode to communicate with between shared node device EP2, and described device also relates to one or more transit node equipment, and described RIP communication mode is:
Described publisher node equipment EP1 adopts NAT communication mode to be connected with described shared node device EP2, connects unsuccessful according to NAT communication mode, then connect transit node equipment respectively;
When described publisher node equipment EP1 sends packet to shared node device EP2, described publisher node equipment EP1 according to the information of one or more transit node equipment of described shared node device EP2 successful connection by Packet Generation to wherein at least one transit node equipment, described transit node equipment is used for described packet to be forwarded to described shared node device EP2
Or,
When described shared node device EP2 sends packet to publisher node equipment EP1, described shared node device EP2 according to the information of one or more transit node equipment of described publisher node equipment EP1 successful connection by Packet Generation to wherein at least one transit node equipment, described transit node equipment is used for described packet to be forwarded to described publisher node equipment EP1.
CN201310466059.5A 2013-09-30 2013-09-30 Method and device for sharing file among multiple devices Pending CN104519109A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310466059.5A CN104519109A (en) 2013-09-30 2013-09-30 Method and device for sharing file among multiple devices

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310466059.5A CN104519109A (en) 2013-09-30 2013-09-30 Method and device for sharing file among multiple devices

Publications (1)

Publication Number Publication Date
CN104519109A true CN104519109A (en) 2015-04-15

Family

ID=52793820

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310466059.5A Pending CN104519109A (en) 2013-09-30 2013-09-30 Method and device for sharing file among multiple devices

Country Status (1)

Country Link
CN (1) CN104519109A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109783275A (en) * 2018-12-17 2019-05-21 北京春鸿科技有限公司 The method and terminal of file backup are carried out to multiple wifi storage equipment
CN111510470A (en) * 2019-01-31 2020-08-07 富士通株式会社 Communication apparatus and communication method used in distributed network
CN113709100A (en) * 2021-07-16 2021-11-26 苏州浪潮智能科技有限公司 Shared file access control method, device, equipment and readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1852105A (en) * 2005-09-15 2006-10-25 华为技术有限公司 Method and system for realizing end-to-end data sharing
CN101068245A (en) * 2007-03-30 2007-11-07 腾讯科技(深圳)有限公司 Shared file issuing and downloading method and file sharing control system
CN101090360A (en) * 2006-06-12 2007-12-19 朗迅科技公司 Charged reciprocal file loading system
CN101166190A (en) * 2007-09-20 2008-04-23 腾讯科技(深圳)有限公司 Video/audio file multi-source download method and device
CN103327469A (en) * 2012-03-19 2013-09-25 联想(北京)有限公司 Method and system of data sharing and mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1852105A (en) * 2005-09-15 2006-10-25 华为技术有限公司 Method and system for realizing end-to-end data sharing
CN101090360A (en) * 2006-06-12 2007-12-19 朗迅科技公司 Charged reciprocal file loading system
CN101068245A (en) * 2007-03-30 2007-11-07 腾讯科技(深圳)有限公司 Shared file issuing and downloading method and file sharing control system
CN101166190A (en) * 2007-09-20 2008-04-23 腾讯科技(深圳)有限公司 Video/audio file multi-source download method and device
CN103327469A (en) * 2012-03-19 2013-09-25 联想(北京)有限公司 Method and system of data sharing and mobile terminal

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109783275A (en) * 2018-12-17 2019-05-21 北京春鸿科技有限公司 The method and terminal of file backup are carried out to multiple wifi storage equipment
CN111510470A (en) * 2019-01-31 2020-08-07 富士通株式会社 Communication apparatus and communication method used in distributed network
CN113709100A (en) * 2021-07-16 2021-11-26 苏州浪潮智能科技有限公司 Shared file access control method, device, equipment and readable storage medium

Similar Documents

Publication Publication Date Title
CN102223365B (en) User access method and device based on SSL (Secure Socket Layer) VPN (Virtual Private Network) gateway cluster
US9218406B2 (en) System and method for managing user data in a plurality of storage appliances over a wide area network for collaboration, protection, publication, or sharing
CN106790420B (en) A kind of more session channel method for building up and system
CN110703980B (en) File transmission method and device
CN101304360A (en) System and method for virtualization of user digital terminal
CN108512821B (en) Data transmission method, device and system, network gate and transaction data storage method
CN105493445A (en) Regional firewall clustering in a networked computing environment
CN106161335A (en) A kind for the treatment of method and apparatus of network packet
CN103078881A (en) Sharing control system and method for network resource downloading information
CN103581245A (en) Content delivery method and system of content delivery network
CN101964799A (en) Solution method of address conflict in point-to-network tunnel mode
CN104811371A (en) Brand-new instant messaging system
KR20110071453A (en) Zigbee gateway and method for identifying message of the same
KR101240552B1 (en) System and method for managing media keys and for transmitting/receiving peer-to-peer messages using the media keys
CN112445700B (en) Test method and device
CN107241379B (en) Content delivery across heterogeneous networks
CN105722040B (en) A kind of transmission method of service message, apparatus and system
CN102255909A (en) Session stream monitoring method and device
CN110263579A (en) A kind of data processing method, system and relevant device
CN108563697A (en) A kind of data processing method, device and storage medium
CN105553832A (en) Message sending and receiving method and device
CN106797384B (en) Routing requests to the same endpoint in a cluster in different protocols
CN102437966A (en) Layer-3 switching system and method based on layer-2 DHCP (Dynamic Host Configuration Protocol) SNOOPING
CN104519109A (en) Method and device for sharing file among multiple devices
CN105812432A (en) Cloud file processing method and 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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20150415