CN106487768A - A kind of file sharing method and device - Google Patents
A kind of file sharing method and device Download PDFInfo
- Publication number
- CN106487768A CN106487768A CN201510549457.2A CN201510549457A CN106487768A CN 106487768 A CN106487768 A CN 106487768A CN 201510549457 A CN201510549457 A CN 201510549457A CN 106487768 A CN106487768 A CN 106487768A
- Authority
- CN
- China
- Prior art keywords
- ftp server
- client
- file
- ftp
- server
- 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]
Abstract
The invention discloses a kind of file sharing method and device, it is related to Internet technical field, solve the operation inconvenience that single node file-sharing service in existing office network needs using VPN or network tunnel technology, and unstable transregional link and the break-even problem of Single Point of Faliure.The main technical scheme of the present invention is:Obtain the request accessing ftp server, described request bag contains:Access the client identification information of ftp server;According to described client identification information, determine the reference address of described client at least one ftp server corresponding;Using the reference address of described ftp server, described client and another or multiple client is made to carry out file transmission.
Description
Technical field
The present invention relates to Internet technical field, more particularly, to a kind of file sharing method and device.
Background technology
File transfer protocol (FTP) (File Transfer Protocol, FTP), is specifically used to transmit file
Agreement.The Main Function of FTP is it is simply that allow client connect (these calculating of a upper remote computer
Ftp server program is run on machine) check which file remote computer has, then file from
Local computer is copied on remote computer, or the file of local computer is delivered to remote computer.
Ftp server (File Transfer Protocol Server) is to provide file storage on the internet and access
The computer of service, they provide service according to File Transfer Protocol.Briefly, support File Transfer Protocol
Server is exactly ftp server.
VPN (virtual private network) (Virtual Private Network, VPN), can be by special encryption
Communications protocol connect two or more intranets positioned at different places on internet it
Between set up a proprietary communication line.It is widely used in enterprise network.Vpn gateway passes through
Remote access is realized in conversion to the encryption data bag destination address of packet.
At present, some big-and-middle-sized companies all may be provided with a point office throughout the country or even abroad,
All branch companies all can be related to an office document and carry out shared demand by network, wherein build
Ftp server is to solve shared conventional method, but FTP is generally built in corporate HQ, and
If the said firm heavier depending on network security it is also possible to this server can be placed on Intranet, other places point
Company accesses then to be needed first to ensure that interior net interconnecting just can be stepped on technology such as VPN or network tunnels
Record, and upload downloading rate and directly affected by across city, transnational link-quality.If other head office
FTP fault or simultaneously excessive in the number using, then everyone uses to delay full company.
Content of the invention
In view of this, the present invention provides a kind of file sharing method and device, can solve the problem that existing office
In network, single node file-sharing service needs the operation inconvenience using VPN or network tunnel technology
Place, and unstable transregional link and the break-even problem of Single Point of Faliure.
According to one aspect of the present invention it is proposed that a kind of file sharing method, the method includes:
Obtain the request accessing ftp server, described request bag contains:Access the client of ftp server
End identification information;
According to described client identification information, determine described client at least one FTP service corresponding
The reference address of device;
Using the reference address of described ftp server, make described client and another or multiple client
End carries out file transmission.
According to another aspect of the invention it is also proposed that a kind of file sharing method, the method includes:
Receive the access request of the access ftp server of client, wherein, wrap in described access request
Contain:Client utilizes the ftp server reference address that distributor obtains, the client of described client
Identification information, described distributor is used for providing one according to described client identification information to described client
The reference address of the ftp server of individual shared file;
According to described client identification information, provide files passe or download service to described client.
According to another aspect of the invention it is proposed that a kind of file sharing device, this device includes:
Acquiring unit, for obtaining the request accessing ftp server, described request bag contains:Access FTP
The client identification information of server;
Determining unit, the identification information of the described client for being obtained according to described acquiring unit determines
The reference address of described client at least one ftp server corresponding;
Transmitting element, the reference address of the ftp server for being determined using described determining unit, make
Described client and another or multiple client carry out file transmission.
According to another aspect of the invention it is also proposed that a kind of file sharing device, this device includes:
Receiving unit, for receiving the access request of the access ftp server of client, wherein, institute
State in access request and comprise:Client utilizes the ftp server reference address that distributor obtains, described
The client identification information of client, described distributor is used for according to described client identification information to institute
State the reference address that client provides the ftp server of a shared file;
Service unit, for the client identification information being received according to described receiving unit, to described visitor
Family end provides files passe or download service.
According to another aspect of the invention it is proposed that a kind of ftp server, this ftp server includes
A kind of above-mentioned file sharing device, is one of multiple ftp servers of distributed deployment, uses
In providing files passe or download service to client, simultaneously can also synchronously local ftp server with
File content in other ftp servers.
A kind of file sharing method of the present invention and device, are sent out to client by distributor
The analysis of the ftp server access request going out, obtains this client identification information, confirms this client
Position in the distributed file sharing system of place, and can will provide for this client in this system
The reference address of the ftp server of good file transmission performance feeds back to client, then by client according to
The reference address being fed back accesses ftp server, carries out files passe or download.With prior art phase
The present invention is provided with the ftp server of multiple stage to ratio, and disposes in a distributed fashion, thus setting up
The redundancy security mechanism of server, improves the availability of document transmission system, and file data
Disaster tolerance.By distributor, distributed ftp server is reallocated so that client simultaneously
One that available ftp server just can have access to that in current system, service performance is best need not be searched in end
Platform ftp server, the step simplifying client operation, improve the intelligence degree of system, and
Without worrying that this server is affected by link or the number of visiting people, files passe can be greatly improved
Or the speed downloaded.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the present invention's
Technological means, and being practiced according to the content of description, and in order to allow the above-mentioned of the present invention and
Other objects, features and advantages can become apparent, below especially exemplified by the specific embodiment of the present invention.
Brief description
By reading the detailed description of hereafter preferred implementation, various other advantages and benefit for
Those of ordinary skill in the art will be clear from understanding.Accompanying drawing is only used for illustrating the mesh of preferred implementation
, and it is not considered as limitation of the present invention.And in whole accompanying drawing, with identical with reference to symbol
Number represent identical part.In the accompanying drawings:
The flow chart that Fig. 1 shows a kind of file sharing method that the embodiment of the present invention proposes;
The flow chart that Fig. 2 shows another kind of file sharing method that the embodiment of the present invention proposes;
The flow chart that Fig. 3 shows the third file sharing method that the embodiment of the present invention proposes;
The flow chart that Fig. 4 shows the 4th kind of file sharing method that the embodiment of the present invention proposes;
Fig. 5 shows a kind of composition frame chart of file sharing device that the embodiment of the present invention proposes;
Fig. 6 shows the second file sharing device composition frame chart that the embodiment of the present invention proposes;
Fig. 7 shows the third file sharing device composition frame chart that the embodiment of the present invention proposes;
Fig. 8 shows the 4th kind of file sharing device composition frame chart that the embodiment of the present invention proposes;
Fig. 9 shows a kind of composition frame chart of shared file system that the embodiment of the present invention proposes.
Specific embodiment
It is more fully described the exemplary embodiment of the disclosure below with reference to accompanying drawings.Although it is aobvious in accompanying drawing
Show the exemplary embodiment of the disclosure it being understood, however, that may be realized in various forms the disclosure
And should not be limited by embodiments set forth here.On the contrary, these embodiments are provided to be able to more
Thoroughly understand the disclosure, and can be by the technology conveying to this area complete for the scope of the present disclosure
Personnel.
Embodiments provide a kind of file sharing method, as shown in figure 1, the method can be answered
For having in the distributor of distributed FTP service device system, this distributor is used for receiving in this system
The ftp server access request of all clients, concrete steps include:
101st, obtain the request accessing ftp server.
Distributor, after the access request receiving client transmission, is not as traditional FTP service
Device like that, sets up the connection with client, provides the service of files passe or download to client, and
It is that this access request is analyzed, obtain the client identification letter wherein comprising by this access request
Breath.This identification information is unique identity in whole shared file system for the client, specifically
Can be the equipment unique identifier of this client, such as MAC (Media Access Control) address,
IP address etc. or this client unique identifier in the present system, such as device name, visitor
Family end title etc., is not specifically limited to this present embodiment.
In specific practical application, general ftp server access request, is by client mostly
The http request being sent by browser, and distributor can be according to TCP (Transmission Control
Protocol transmission control protocol) agreement set up connection performance, get client device IP ground
Location, thus obtain more specific location information in whole distributed file sharing system for this client.
102nd, this client at least one ftp server corresponding is determined according to client identification information
Reference address.
Distributor passes through to analyze the ftp server access request of client, gets in this access request
Client identification information after, will be according to this client location in the present system, for this client
End is distributed at least one ftp server and is obtained the reference address of this ftp server, in order to inform this
The ftp server that client can access in distributed FTP service device system.
Wherein, this ftp server of at least one be in distributed FTP service device system one or
The server of multiple stage, and these ftp servers can with respect to other ftp servers in the system
To provide more quick and stable files passe and download service to this client.
103rd, utilize the reference address of ftp server, so that client and another or multiple client is entered
Style of writing part transmission.
Distributor itself can not replace client ftp server to be conducted interviews and executes files passe
Or download request, in the present embodiment, distributor is simply identified to client, and will be to should
The reference address of the ftp server of client is sent to client, be finally to be completed by client with
The access of ftp server, carries out the operation of files passe or download.
It should be noted that distributor can also be to the ftp server reference address that client provides
The reference address of multiple ftp servers, at this moment, can be selected by client, determine to access
Which platform ftp server, or access multiple stage ftp server carry out file transmission simultaneously.
It is simply that first sending a general ftp server access request from the perspective of client,
This request is not intended for certain ftp server in system, and this request is received and processed by distributor,
Last client can obtain the reference address of a ftp server being returned by distributor, and client can
So that ftp server is accessed further according to this reference address, thus realizing the upload of file or downloading work
Make.
With respect to the method shown in above-mentioned Fig. 1, the embodiment of the present invention also proposed a kind of file-sharing side
Method, as shown in Fig. 2 the method is applied in the ftp server in distributed FTP service device system,
Concrete steps include:
201st, receive the access request of the access ftp server of client.
The client access request that ftp server is received is that this client is got by distributor
After ftp server reference address, the access request that sent according to this ftp server reference address.
In changing access request, include this client identification information.
Need explanation, if client knows the reference address of specific ftp server, this client
End is it is of course possible to directly be accessed, and is the drawbacks of this mode that client cannot confirm this service
Whether device is normal operating conditions, and also cannot ensure the service quality that this ftp server is provided
It is best in all ftp servers.
202nd, according to accessing the client identification information comprising in the access request of ftp server, to visitor
Family end provides file-sharing service.
Wherein, file-sharing service proposed by the invention it can be understood as files passe or download,
File transmission etc..
Ftp server, after receiving access request, can respond this access request, obtains this access request
In client identification information, and set up data cube computation with this client, enter one further according to client
Step instruction, provides the service of corresponding files passe or download to client.
Can be seen that a kind of file-sharing that the embodiment of the present invention is adopted in conjunction with above-mentioned implementation
Method, is the analysis of ftp server access request client being sent by distributor, and obtaining should
Client identification information, confirms the position in this client place distributed file sharing system, and will
The reference address of the ftp server of preferable file transmission performance can be provided for this client in this system
Feed back to client, then ftp server is accessed according to the reference address being fed back by client, carry out
Files passe or download.
The embodiment of the present invention is provided with the ftp server of multiple stage, and disposes in a distributed fashion, from
And establish the redundancy security mechanism of ftp server, improve the availability of document transmission system, with
And the disaster tolerance of file data.By distributor, distributed ftp server is reallocated simultaneously,
Make client need not search available ftp server and just can have access to service performance in current system
A best ftp server, the step simplifying client operation, improve the intellectuality of system
Degree, and without worrying that this server is affected by link or the number of visiting people, can be greatly improved
Files passe or the speed of download.
In order to a kind of set forth above file sharing method, embodiment of the present invention pin are explained in more detail
A kind of file sharing method is additionally provided to the method described in Fig. 1, as shown in figure 3, the method includes:
301st, obtain the request accessing ftp server.
Distributed FTP service device system is set up for row with a company, the said firm is in the branch company of various places
Location is provided with the ftp server of at least, the client of the said firm need to upload or under
During published article part, the reference address of ftp server can be obtained by first accessing distributor.This distribution
Device can be a http address, or the reference address of a server, to this present embodiment not
Limit, and in this instantiation, the application form of distributor is http address, client is passed through
Browser inputs this http address, informs that distributor has client to need to access ftp server.
Additionally, distributor passes through http request, the characteristic connecting is set up according to Transmission Control Protocol, can obtain
Get the IP address sending the equipment that requesting client is used, by this IP address it is possible to judge
Go out the position at this client place, be in head office or the branch company in which area.Certainly, do
Going out above-mentioned judgement needs to pre-set the synopsis of IP address, is head office and the division of all branch companies
Different IP addresses section is it is stipulated that the company corresponding to each IP address is regional, and can more refine to
Concrete department in certain company or specific client.
302nd, obtain ftp server list.
Distributor, after receiving the access request of client, will obtain all ftp servers of our company
Reference address, and generate a ftp server list, in the list, except record has and FTP
Outside the corresponding reference address of server, also record the client having every ftp server to be serviced
Identification information, the IP address that is, client is adopted.Ftp server service concrete object to
Should concrete IP address equally pre-set, the specific rules of setting can according to specifically need into
Row is concrete to be set, and usually the ftp server in identical area is set the client becoming in one's respective area
Offer access service, that is, the ftp server of at least is set in the branch company of different regions,
Client so in each branch company is when accessing ftp server it becomes possible to access in our company
Ftp server, so just can avoid due to the unstable problem of link-quality produced by cross-network segment.
Additionally, this ftp server list regularly can be updated by system manager it is also possible to
Renewal is regularly detected in itself by system, the present embodiment does not limit to this.
303rd, according to client identification information, determine the corresponding ftp server set of this client.
Distributor after the identification information getting client and ftp server list, just by client
Identification information inquired about in ftp server list, according to the description in 302, distributor can
To obtain the ftp server of at least in the company of client place.Additionally, also exist not having
The client of the branch company of ftp server proposes the situation of access request, in this case, system
This client promising can be recorded in ftp server list provides other ftp servers of service, this
A little ftp servers be probably apart from the nearer ftp server of this branch company it is also possible to this point of public affairs
Department has stable, fast network connection ftp server.These are corresponded to this client by distributor
The ftp server of at least extract and generate a ftp server set.
304th, select a ftp server in ftp server set.
According to the description in 303, in this ftp server set, there are the FTP of two big class
Server set, a class is the ftp server in same service area, the public affairs being located in this client
Ftp server collection in department, another kind of be no longer this area but there is stable, fast network and connect
Ftp server collection.Therefore, when selecting ftp server, two kinds of different selection modes are just had,
Selected according to the area being located or be connected with client according to ftp server is network-like
State is selected.
When the network state being connected with client according to ftp server is selected, distributor institute energy
The ftp server quantity of enough selections is often multiple stage, is selected in the ftp server of multiple stage
When, the selection standard of distributor is that the working condition to all ftp servers judges, that is, judge
The files passe of every ftp server or the performance of download, by comparing, therefrom select one
Excellent ftp server.Specific judgment mode can be to send test to all of ftp server to refer to
Order, after waiting ftp server response, obtains their performance parameter or by ftp server
Timing report the performance parameter of itself to distributor, this present embodiment is not specifically limited.
Additionally, distributor is when judging the working condition of ftp server, if it is determined that this FTP service
Device not in working order, when not working, is then marked to this ftp server, when have other visitor
When family end sends access request to this ftp server, this ftp server of reselection is entered by distributor
Enter in ftp server set.
305th, the reference address of ftp server selected by acquisition.
After distributor selectes ftp server, will search from ftp server list and obtain this FTP
The reference address of server.
306th, to the reference address of client feedback ftp server.
After obtaining the reference address of ftp server, distributor by the reference address of this ftp server with
The side of hyperlink feeds back on the browser of the used equipment of client, and client only needs in browser
In click directly on this hyperlink it is possible to access the FTP service that mated by this client by distributor
Device, carry out file uploads and downloads operation.
And when the hyperlink of feedback is connected to a plurality of, client then can the carrying out of active selectively access.
More than, that applies the data processing method in distributor in the present embodiment implements step
Done detailed explanation, corresponding to the data processing method of distributor, the present embodiment this to Fig. 2 institute
Show for the file sharing method in ftp server, it is also proposed that one in specific application scenarios
Plant file sharing method, as shown in figure 4, concrete steps include:
401st, receive the access request of the access ftp server of client.
402nd, according to accessing the client identification information comprising in the access request of ftp server, to visitor
Family end provides file-sharing service.
Two above step is identical with 202 with 201 shown in above-mentioned Fig. 2, and the content of this part is upper
In the Fig. 3 stating, existing explanation in detail, will not be described in great detail herein.
403rd, storage client upload or the file directory downloading file in ftp server are obtained.
The method that the present embodiment is proposed, while the file transfer services providing to client, also may be used
With the file directory by detecting storage client upload or download file in local ftp server Lai really
Protect, in the file directory of all ftp servers in distributed FTP service device system, there is identical
File data.In the present embodiment be not limited to detect mode be real-time detection, timing detection or
It is to be detected in the case of having trigger condition, this trigger condition is as there being client to carry out FTP clothes
Business device access after or ftp server restart after etc..
404th, judge in file directory, to whether there is the new file of client upload, if existing, should
New file is sent to another or multiple ftp server of this ftp server certification, so that described another
Multiple client shared file corresponding to one or more ftp servers.
Because the detection that real-time detection has trigger condition relatively can more expend the process resource of system,
Therefore, in actual applications, more can select right after having client to carry out ftp server access
The file directory of local ftp server is detected, and by the file in this document catalogue and access
Front carrying out contrasts, and judging whether the new file uploading of client, if not having, not carrying out
Process, if existing, this ftp server can be by new file to its in distributed FTP service device system
He is pushed ftp server, receives this new file by other ftp servers and updates respective
File directory.
It is pointed out that ftp server is being carried out when new file pushes in addition it is also necessary to enter to server
Row authentication determination, this certification is used for ftp server and judges to receive other FTP service that new file pushes
Whether device is qualified to receive this new file.The process of this authentication determination is conducive to system manager to FTP
The holistic management of server, help system manager can be effectively layered to ftp server and is set
Put and the setting of ftp server configuration is planned.The FTP of unified file content is not needed for some
Server, this ftp server just can be separately configured by manager by authentication mechanism.
405th, when listening to another or multiple ftp server of ftp server certification to described FTP
When server sends new file, this new file is preserved to described file directory.
There are new file in the ftp server local file directory of detection, and to other FTP
While server is pushed, also monitor other FTP clothes in distributed FTP service device system
Whether business device has the information pushing new file.
In ftp server in the letter listening to other ftp servers transmission new files through certification
During breath, this new file will be received by the network in system, and be saved to local file mesh
In record, update local file directory simultaneously.
It should be noted that ftp server is before receiving the new file that other ftp servers send,
This document can be carried out with a duplicate removal judge, that is, judge whether existed in local file directory
This document, without then continuing to, and if this document has existed, then refuses this document
Reception operation.
406th, obtain the file transfer rate of ftp server.
Additionally, receiving the status information from ftp server corresponding to distributor, ftp server is also
The file transfer rate of local ftp server can be tested, in the present embodiment, with timing detection originally
It is illustrated as a example the status information of ground ftp server, in ftp server, can regularly send mould
Intend accessing the request of ftp server, this request is the request of a download 10M file, FTP service
The response that device will be downloaded according to this request, downloads 10M file by ftp server record and is used
Time, calculate the file download speed of this ftp server, the time used is shorter, and this is described
Ftp server file download performance is better.In the same way, calculate this ftp server again
Files passe speed.In this way, it is possible to obtain this ftp server for files passe and download
Transmission.
407th, file transfer rate is converted to status information.
The files passe speed of ftp server and downloading rate are entered with threshold value set in advance respectively
Row compares, and draws the status information of files passe or download.Wherein, this threshold value can be one,
Can be multiple, the present embodiment does not limit.For example, when there being a threshold value, can according to this threshold value
To draw two kinds of state, that is, good and bad;And when having two threshold values, the state being divided can be thought
High, medium and low three states.That is, the quantity of threshold value determines the refinement journey of this status information
Degree.Therefore, the needs according to different scenes, the setting of this threshold value can be adjusted by system manager
Whole.
It should be noted that this threshold value is empirical value, and it is possible to have manager as needed to it
It is modified setting.
408th, it transmit the state information to distributor.
The status information obtaining timing is sent to distributor, so that distributor judges this FTP service
The file transmission performance of device.Because ftp server periodically can carry out sending out of status information to distributor
Send, therefore, if distributor is not received by the state of some ftp server transmission for a long time
During information, just this ftp server of judgement is in the state that cannot work, to prevent distributor from using
Outdated state information under service state for this ftp server is judged, and by this ftp server
Reference address send client and use.
By to the above-mentioned file sharing method applied on distributor, ftp server specifically
Bright, a distributed FTP service device file including ftp server, distributor and client
The framework of shared system has been built and has been completed.
Further, as the realization to said method, embodiments provide a kind of file altogether
Enjoy device, this device application method as shown in Figure 1, in distributed FTP service device system,
Receive and process the access request of client, and the access to one ftp server of client feedback
Location, this device is as shown in figure 5, specifically include:
Acquiring unit 51, for obtaining the request accessing ftp server, described request bag contains:Access
The client identification information of ftp server.
Determining unit 52, the described client identification information for being obtained according to described acquiring unit 51 is true
The reference address of fixed described client at least one ftp server corresponding.
Transmitting element 53, the access of the ftp server for being determined using described determining unit 52
Location, makes described client and another or multiple client carry out file transmission.
Further, as shown in fig. 6, the determining unit 52 of described device includes:
Acquisition module 521, for obtaining ftp server list, described ftp server list comprises
The reference address of all ftp servers, and every ftp server at least one client corresponding
Identification information;
Determining module 522, for according to described client identification information, determining in described acquisition module
Client corresponding ftp server set described in the ftp server list of 521 acquisitions;
Selecting module 523, for selecting in the ftp server set that described determining module 522 determines
Select a ftp server with described client in same service area;
Described acquisition module 521 is additionally operable to, obtain described selecting module 523 selecting with described client
The reference address of ftp server in same service area for the end.
Further, described selecting module 523, when selecting ftp server, also includes:
Receiving submodule, for receiving the status information that all ftp servers send, described state letter
Cease the files passe for describing described ftp server or download performance;
Select submodule, the status information receiving for relatively more described receiving submodule, select at least one
Platform files passe or the higher ftp server of download performance.
Further, the embodiment of the present invention also provides a kind of file sharing device, this device application such as Fig. 2
Shown method, is arranged in the ftp server in distributed FTP service device system, this device is such as
Shown in Fig. 7, specifically include:
Receiving unit 71, for receiving the access request of the access ftp server of client, wherein,
Comprise in described access request:Client utilizes the ftp server reference address that distributor obtains, institute
State the client identification information of client, described distributor be used for according to described client identification information to
Described client provides the reference address of the ftp server of a shared file;
Service unit 72, for the client identification information being received according to described receiving unit 71, to institute
Stating client provides file-sharing service.
Further, as shown in figure 8, this device also includes:
Acquiring unit 73, for providing file-sharing service in described service unit 72 to described client
Afterwards, detect the file directory of local ftp server;
Judging unit 74, for judging described acquisition in file directory acquired in single 73 with the presence or absence of described
The new file of client upload;
Push unit 75, for when described judging unit 74 judge there is described new file when, will be described
New file is pushed to another or multiple ftp server of described ftp server certification, so that described
Multiple client shared file corresponding to another or multiple ftp server;
Monitoring unit 76, for monitor with the presence or absence of have ftp server certification another or multiple
Ftp server sends new file to described ftp server, and each ftp server passes through this unit
The file content in the ftp server of certification in a distributed system can be found in real time
Whether increased new file;
Described receiving unit 71 is additionally operable to, when described monitoring unit 76 finds to have new file to push,
Receive this new file, and preserve to described file directory.
Further, as shown in figure 8, described device also includes:
Test cell 77, for testing the file transfer rate of local ftp server;
Converting unit 78, for being converted to shape by the file transfer rate measured in described test cell 77
State information;
Transmitting element 79, the status information for changing described converting unit 78 is sent to described distribution
Device.
Further, the test cell 77 of described device includes:
Sending module, sends simulation files transmission request for timing to local ftp server;
Logging modle, for recording the simulation literary composition that described ftp server sends according to described sending module
The file transfer rate that part transmission request calculates.
Further, the converting unit 78 of described device includes:
Setting module, for given threshold, described threshold value is used for dividing and comprises in described status information
File transfer rate scope;
Modular converter, the threshold value for being set described file transfer rate with described setting module is carried out
Contrast, draws the status information corresponding to described file transfer rate.
Further, the embodiment of the present invention also proposed a kind of ftp server, in this ftp server
Apply above-mentioned device as shown in Figure 8, this ftp server is multiple FTP clothes of distributed deployment
One of business device, for providing high performance files passe or download service to client, also simultaneously
Being capable of file content in synchronous home server and other servers.
Further, the embodiment of the present invention also proposed a kind of shared file system, as shown in figure 9,
This system includes a kind of above-mentioned file sharing device 91 as shown in Figure 6 and above-mentioned distributed FTP
Server 92.After the access request of client being processed by file sharing device 91, feed back to
The reference address of one ftp server 92 of client, by client according to this reference address to FTP
Server 92 carries out the operation of files passe or download.
In sum, the embodiment of the present invention is adopted a kind of file sharing method and device, by dividing
Send out the analysis of the ftp server access request that device is sent to client, obtain the mark of this client
Information, confirms the position in this client place distributed file sharing system, and by energy in this system
The reference address of enough ftp servers providing best file transmission performance for this client feeds back to client
End, then ftp server is accessed according to the reference address that fed back by client, carry out files passe or
Download.Compared with prior art, the present invention is provided with the ftp server of multiple stage, and in a distributed manner
Form is disposed, thus establishing the redundancy security mechanism of server, improve document transmission system can
With property, and the disaster tolerance of file data.By distributor, distributed ftp server is entered simultaneously
Row reallocation is so that client need not search available ftp server just can have access to current system
A best ftp server of middle service performance, the step simplifying client operation, improve and be
The intelligence degree of system, and affected by link or the number of visiting people without this server of worry,
The speed of files passe or download can be greatly improved.Ftp server in the embodiment of the present invention exists simultaneously
There is provided to client can also be by all ftp server in the system while file transfer services
File content synchronize it is ensured that its as redundant server system function.Additionally, by right
The performance detection of ftp server itself, also more ensure that ftp server provides for client high-quality
The ability of the file transmission performance of amount.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, and does not have in certain embodiment
The part being described in detail, may refer to the associated description of other embodiment.
It is understood that the correlated characteristic in said method and device can mutually reference.In addition,
" first ", " second " in above-described embodiment etc. is for distinguishing each embodiment, and does not represent each enforcement
The quality of example.
Those skilled in the art can be understood that, for convenience and simplicity of description, above-mentioned
The specific work process of the system, apparatus, and unit of description, may be referred in preceding method embodiment
Corresponding process, will not be described here.
Provided herein algorithm and display not with any certain computer, virtual system or miscellaneous equipment
Inherently related.Various general-purpose systems can also be used together with based on teaching in this.According to above
Description, the structure constructing required by this kind of system is obvious.Additionally, the present invention is also not for
Any certain programmed language.It is understood that, it is possible to use various programming languages realize described here
The content of invention, and the description above language-specific done is the optimal reality in order to disclose the present invention
Apply mode.
In description mentioned herein, illustrate a large amount of details.It is to be appreciated, however, that
Embodiments of the invention can be put into practice in the case of not having these details.In some instances,
Known method, structure and technology are not been shown in detail, so as not to obscure the understanding of this description.
Similarly it will be appreciated that in order to simplify the disclosure and help understand in each inventive aspect
Individual or multiple, in the description to the exemplary embodiment of the present invention above, each feature of the present invention
Sometimes it is grouped together in single embodiment, figure or descriptions thereof.However, should be by
The method of the disclosure is construed to reflect following intention:I.e. the present invention for required protection requires ratio at each
The more feature of feature being expressly recited in claim.More precisely, as following right will
As asking book to be reflected, inventive aspect is all features less than single embodiment disclosed above.
Therefore, it then follows claims of specific embodiment are thus expressly incorporated in this specific embodiment,
Wherein each claim itself is as the separate embodiments of the present invention.
Those skilled in the art are appreciated that and the module in the equipment in embodiment can be carried out
Adaptively change and they are arranged in one or more equipment different from this embodiment.
Module in embodiment or unit or assembly can be combined into a module or unit or assembly, and
In addition multiple submodule or subelement or sub-component can be divided into.Except such feature and/or
Outside at least some of process or unit exclude each other, can be using any combinations to this explanation
All features disclosed in book (including adjoint claim, summary and accompanying drawing) and such as the displosure
Any method or all processes of equipment or unit be combined.Unless expressly stated otherwise, originally
Each feature disclosed in description (including adjoint claim, summary and accompanying drawing) can be by carrying
Alternative features for identical, equivalent or similar purpose to replace.
Although additionally, it will be appreciated by those of skill in the art that some embodiments described herein include
Included some features rather than further feature in other embodiments, but the feature of different embodiment
Combination mean to be within the scope of the present invention and formed different embodiments.For example, under
In the claims in face, embodiment required for protection one of arbitrarily can be in any combination
Mode is using.
The all parts embodiment of the present invention can be realized with hardware, or with one or more
The software module run on reason device is realized, or is realized with combinations thereof.Those skilled in the art
It should be appreciated that can be realized using microprocessor or digital signal processor (DSP) in practice
Some in denomination of invention (as determined the device of website internal chaining grade) according to embodiments of the present invention
Or some or all functions of whole parts.The present invention is also implemented as execution institute here
Description some or all equipment of method or program of device (for example, computer program and
Computer program).Such program realizing the present invention can be stored in computer-readable medium
On, or can have the form of one or more signal.Such signal can be from the Internet net
Download on standing and obtain, or provide on carrier signal, or provided with any other form.
It should be noted that above-described embodiment the present invention will be described rather than the present invention is limited
Make, and those skilled in the art can design without departing from the scope of the appended claims
Alternative embodiment.In the claims, any reference markss between bracket should not be configured to
Limitations on claims.Word "comprising" does not exclude the presence of element not listed in the claims or step
Suddenly.Word "a" or "an" before element does not exclude the presence of multiple such elements.The present invention
Can be come real by means of the hardware including some different elements and by means of properly programmed computer
Existing.If in the unit claim listing equipment for drying, several in these devices can be logical
Cross same hardware branch to embody.The use of word first, second, and third does not indicate that
Any order.These words can be construed to title.
Claims (10)
1. a kind of file sharing method is it is characterised in that methods described includes:
Obtain the request accessing ftp server, described request bag contains:Access the client of ftp server
End identification information;
According to described client identification information, determine described client at least one FTP service corresponding
The reference address of device;
Using the reference address of described ftp server, make described client and another or multiple client
End carries out file transmission.
2. method according to claim 1 it is characterised in that described according to described client mark
Knowledge information, determines that the reference address of described client at least one ftp server corresponding includes:
Obtain ftp server list, described ftp server list comprises the visit of all ftp servers
Ask address, and every ftp server at least one client identification information corresponding;
According to described client identification information, determine the corresponding ftp server set of described client;
In described ftp server set, determine and FTP in same service area for the described client
Server;
Obtain the reference address with ftp server in same service area for the described client.
3. a kind of file sharing method is it is characterised in that methods described includes:
Receive the access request of the access ftp server of client, wherein, wrap in described access request
Contain:Client utilizes the ftp server reference address that distributor obtains, the client of described client
Identification information, described distributor is used for providing one according to described client identification information to described client
The reference address of the ftp server of individual shared file;
According to described client identification information, provide file-sharing service to described client.
4. method according to claim 3 is it is characterised in that providing literary composition to described client
After part shared service, methods described also includes:
Obtain storage client upload or the file directory downloading file in described ftp server;
Judge in described file directory, to whether there is the new file of described client upload, if existing,
Described new file is sent to another or multiple ftp server of described ftp server certification, with
The multiple client shared file corresponding to another or multiple ftp server stated by toilet;
Monitor and take to described FTP when another or multiple ftp server of described ftp server certification
When business device sends new file, described new file is preserved to described file directory.
5. method according to claim 3 is it is characterised in that methods described also includes:
Obtain the file transfer rate of described ftp server;
Described file transfer rate is converted to status information;
Send described status information to described distributor.
6. method according to claim 5 is it is characterised in that the described FTP service of described acquisition
The file transfer rate of device includes:
Timing sends simulation files transmission request to described ftp server;
Record the file transfer rate of described ftp server;
Obtain the file transfer rate recording described ftp server.
7. a kind of file sharing device is it is characterised in that described device includes:
Acquiring unit, for obtaining the request accessing ftp server, described request bag contains:Access FTP
The client identification information of server;
Determining unit, for determining institute according to the described client identification information that described acquiring unit obtains
State the reference address of client at least one ftp server corresponding;
Transmitting element, the reference address of the ftp server for being determined using described determining unit, make
Described client and another or multiple client carry out file transmission.
8. device according to claim 7 is it is characterised in that described determining unit includes:
Acquisition module, for obtaining ftp server list, described ftp server list comprises to own
The reference address of ftp server, and every ftp server at least one client identification corresponding
Information;
Determining module, for according to described client identification information, determining and obtaining in described acquisition module
Ftp server list described in client corresponding ftp server set;
Selecting module, in the ftp server set that described determining module determines select one with
Ftp server in same service area for the described client;
Described acquisition module is additionally operable to, obtain that described selecting module selects with described client same
The reference address of the ftp server in service area.
9. a kind of file sharing device is it is characterised in that described device includes:
Receiving unit, for receiving the access request of the access ftp server of client, wherein, institute
State in access request and comprise:Client utilizes the ftp server reference address that distributor obtains, described
The client identification information of client, described distributor is used for according to described client identification information to institute
State the reference address that client provides the ftp server of a shared file;
Service unit, for the client identification information being received according to described receiving unit, to described visitor
Family end provides files passe or download service.
10. a kind of ftp server is it is characterised in that described ftp server is included as claim
File sharing device described in 9, described ftp server is multiple ftp servers of distributed deployment
One of, for providing files passe or download service to client, simultaneously can also be synchronously local
File content in ftp server and other ftp servers.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510549457.2A CN106487768A (en) | 2015-08-31 | 2015-08-31 | A kind of file sharing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510549457.2A CN106487768A (en) | 2015-08-31 | 2015-08-31 | A kind of file sharing method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106487768A true CN106487768A (en) | 2017-03-08 |
Family
ID=58235724
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510549457.2A Pending CN106487768A (en) | 2015-08-31 | 2015-08-31 | A kind of file sharing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106487768A (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109639819A (en) * | 2018-12-28 | 2019-04-16 | 腾讯科技(深圳)有限公司 | Document transmission method, client, server and system |
CN109831470A (en) * | 2017-11-23 | 2019-05-31 | 阿里巴巴集团控股有限公司 | Application data management method, device and electronic equipment |
CN110324373A (en) * | 2018-03-29 | 2019-10-11 | 华为技术有限公司 | Sharing files method and device, file syn chronizing system |
CN111277651A (en) * | 2020-01-20 | 2020-06-12 | 国网江苏招标有限公司 | Remote bidding method and system |
CN111866176A (en) * | 2020-08-04 | 2020-10-30 | 蝉鸣科技(西安)有限公司 | FTP/FTPS distributed file transmission method and device and computer storage medium |
CN113590534A (en) * | 2021-08-13 | 2021-11-02 | 上海幻电信息科技有限公司 | Archive processing method, system and device |
CN114374644A (en) * | 2021-12-22 | 2022-04-19 | 烟台东方瑞创达电子科技有限公司 | Industrial Internet identification analysis method and system based on infrastructure logic architecture |
CN115189956A (en) * | 2022-07-18 | 2022-10-14 | 中原银行股份有限公司 | File security sharing method |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101030873A (en) * | 2007-02-15 | 2007-09-05 | 深圳市迅雷网络技术有限公司 | Method and system for downloading data |
CN101964824A (en) * | 2010-11-05 | 2011-02-02 | 北京云快线软件服务有限公司 | Method and device for selecting uploading server |
CN102164160A (en) * | 2010-12-31 | 2011-08-24 | 青岛海信传媒网络技术有限公司 | Method, device and system for supporting large quantity of concurrent downloading |
CN102739717A (en) * | 2011-04-12 | 2012-10-17 | 腾讯科技(深圳)有限公司 | Downloading method, downloading proxy server and network system |
CN102984228A (en) * | 2012-11-16 | 2013-03-20 | Tcl集团股份有限公司 | File sharing method and server and client terminal and file sharing system |
CN103731472A (en) * | 2011-06-15 | 2014-04-16 | 北京奇虎科技有限公司 | Method and system for downloading files by adopting P2P technology and client-side |
CN103841159A (en) * | 2012-11-26 | 2014-06-04 | 北京新媒传信科技有限公司 | Offline file transmission system and method |
-
2015
- 2015-08-31 CN CN201510549457.2A patent/CN106487768A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101030873A (en) * | 2007-02-15 | 2007-09-05 | 深圳市迅雷网络技术有限公司 | Method and system for downloading data |
CN101964824A (en) * | 2010-11-05 | 2011-02-02 | 北京云快线软件服务有限公司 | Method and device for selecting uploading server |
CN102164160A (en) * | 2010-12-31 | 2011-08-24 | 青岛海信传媒网络技术有限公司 | Method, device and system for supporting large quantity of concurrent downloading |
CN102739717A (en) * | 2011-04-12 | 2012-10-17 | 腾讯科技(深圳)有限公司 | Downloading method, downloading proxy server and network system |
CN103731472A (en) * | 2011-06-15 | 2014-04-16 | 北京奇虎科技有限公司 | Method and system for downloading files by adopting P2P technology and client-side |
CN102984228A (en) * | 2012-11-16 | 2013-03-20 | Tcl集团股份有限公司 | File sharing method and server and client terminal and file sharing system |
CN103841159A (en) * | 2012-11-26 | 2014-06-04 | 北京新媒传信科技有限公司 | Offline file transmission system and method |
Non-Patent Citations (1)
Title |
---|
张家超: "《网络工程与综合布线实用教程》", 31 August 2004, 北京:中国电力出版社 * |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109831470A (en) * | 2017-11-23 | 2019-05-31 | 阿里巴巴集团控股有限公司 | Application data management method, device and electronic equipment |
CN110324373A (en) * | 2018-03-29 | 2019-10-11 | 华为技术有限公司 | Sharing files method and device, file syn chronizing system |
CN109639819A (en) * | 2018-12-28 | 2019-04-16 | 腾讯科技(深圳)有限公司 | Document transmission method, client, server and system |
CN109639819B (en) * | 2018-12-28 | 2022-01-14 | 腾讯科技(深圳)有限公司 | File transmission method, client, server and system |
CN111277651A (en) * | 2020-01-20 | 2020-06-12 | 国网江苏招标有限公司 | Remote bidding method and system |
CN111277651B (en) * | 2020-01-20 | 2024-04-09 | 国网江苏招标有限公司 | Remote bidding method and system |
CN111866176A (en) * | 2020-08-04 | 2020-10-30 | 蝉鸣科技(西安)有限公司 | FTP/FTPS distributed file transmission method and device and computer storage medium |
CN113590534A (en) * | 2021-08-13 | 2021-11-02 | 上海幻电信息科技有限公司 | Archive processing method, system and device |
CN114374644A (en) * | 2021-12-22 | 2022-04-19 | 烟台东方瑞创达电子科技有限公司 | Industrial Internet identification analysis method and system based on infrastructure logic architecture |
CN114374644B (en) * | 2021-12-22 | 2023-09-19 | 烟台东方瑞创达电子科技有限公司 | Industrial Internet identification analysis method and system based on infrastructure logic architecture |
CN115189956A (en) * | 2022-07-18 | 2022-10-14 | 中原银行股份有限公司 | File security sharing method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106487768A (en) | A kind of file sharing method and device | |
CN107852604B (en) | System for providing Global Virtual Network (GVN) | |
CN102713926B (en) | Confidential information is revealed and is prevented system and method | |
US7869447B2 (en) | Method and system for multi-domain virtual private network configuration | |
CN103685590B (en) | Obtain the method and system of IP address | |
CN101588390B (en) | Method for improving centralized authentication service system service viscosity and load equilibrium apparatus | |
US20060212542A1 (en) | Method and computer-readable medium for file downloading in a peer-to-peer network | |
CN208656813U (en) | A kind of enterprise branch office's access request processing system | |
CN108710681A (en) | File acquisition method, device, equipment and storage medium | |
US20050044146A1 (en) | Protection of the distribution of digital documents in a peer to peer network | |
CN109491758A (en) | Docker mirror image distribution method, system, data gateway and computer readable storage medium | |
CN104052736A (en) | Systems and methods for pre-signing of dnssec enabled zones into record sets | |
CN102025595A (en) | Flow optimization method and system | |
CN108055314A (en) | The management method and group system of a kind of group system | |
US20130297703A1 (en) | Peer node and method for improved peer node selection | |
CN108733821A (en) | A kind of distribution of monitor video sectional drawing and methods of exhibiting and system | |
CN106844489A (en) | A kind of file operation method, device and system | |
CN104580210B (en) | Anti-stealing link method, antitheft chain component under cloud platform environment and cloud platform | |
CN105516171A (en) | Authentication service cluster-based portal keep-alive system, method, authentication system and method | |
CN106991008A (en) | A kind of resource lock management method, relevant device and system | |
CN114036236A (en) | Multi-gateway cluster system | |
CN106453349A (en) | An account number login method and apparatus | |
CN114124981B (en) | Cloud storage data direct transmission management method, cloud transmission management platform and system | |
CN103188144A (en) | System and method for achieving distributed gateway intercommunication | |
CN106209750A (en) | A kind of network allocation method, server, network access equipment and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: 100083 No. 401, 4th Floor, Haitai Building, 229 North Fourth Ring Road, Haidian District, Beijing Applicant after: Beijing Guoshuang Technology Co.,Ltd. Address before: 100086 Cuigong Hotel, 76 Zhichun Road, Shuangyushu District, Haidian District, Beijing Applicant before: Beijing Guoshuang Technology Co.,Ltd. |
|
CB02 | Change of applicant information | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170308 |
|
RJ01 | Rejection of invention patent application after publication |