Invention content
In view of the foregoing deficiencies of prior art, the purpose of the present invention is to provide a kind of distributed intelligence router nets
Resource sharing system and method between router in network system, using P2P (Point to Point, point-to-point) technology in Liang Tailu
By directly carrying out the download transmission of resource between device, is not limited by server bandwidth, meet user and speed of download is wanted
It asks.
In order to achieve the above objects and other related objects, in a kind of distributed intelligence router network system of present invention offer
Resource sharing system includes several intelligent routers, resource index database and control server between router;The intelligence
Router is used as sharing router or downloads router;The router of sharing is used for the resource related information shared and routing
Device ID is uploaded to the resource index database, and under the control of the control server, the resource will directly be shared
It is supplied to the download router;The download router is used to the retrieval in the resource index database and belongs to described share
The resource that router is shared, and under the control of the control server, directly downloaded from the sharing service device desired
Resource;The resource index database is used to the resource for sharing out on all intelligent routers being organized into a resource rope
Draw;The control server shares router and the communication downloaded between router for realizing described.
According to resource sharing system between router in above-mentioned distributed intelligence router network system, wherein:Same intelligence
Can router can simultaneously as share router and download router.
According to resource sharing system between router in above-mentioned distributed intelligence router network system, wherein:The money
Source relevant information includes title, position, the type and size of resource.
According to resource sharing system between router in above-mentioned distributed intelligence router network system, wherein:Under described
Load router, which is searched for according to router id, resource type and/or resource name information in the resource index database, to be wanted
Resource.
According to resource sharing system between router in above-mentioned distributed intelligence router network system, wherein:The control
When sharing router and the communication downloaded between router described in control server progress, the download router hair is received first
The download request sent;Then download request is pass on to corresponding and shares router;Finally receiving described point
After the permission response for enjoying router, the download router is notified directly to download required resource from the router of sharing.
Meanwhile the present invention also provides resource sharing method between router in a kind of distributed intelligence router network system,
Include the following steps:
Step S1, share resource thereon as the first intelligent router for sharing router;
Step S2, the resource related information shared and router id are uploaded to resource index data by the first intelligent router
Library;
Step S3, resource retrieval is carried out to resource index database as the second router for downloading router, finds institute
The resource shared by the first router to be downloaded;
Step S4, the second router notice control server downloads the resource shared by the first router found;
Step S5, after controlling the permission response that server receives the first router, notice the second router starts to download money
Source;
Step S6, the second router directly downloads desired resource from the first router.
According to resource sharing method between router in above-mentioned distributed intelligence router network system, wherein:Further include
Step S7, the second router returns to download progress in real time.
According to resource sharing method between router in above-mentioned distributed intelligence router network system, wherein:The step
In rapid S2, the resource related information includes title, position, the type and size of resource.
According to resource sharing method between router in above-mentioned distributed intelligence router network system, wherein:The step
In rapid S3, the download router is according to router id, resource type and/or resource name information in the resource index data
Desired resource is searched in library.
According to resource sharing method between router in above-mentioned distributed intelligence router network system, wherein:Same intelligence
Can router can simultaneously as share router and download router.
As described above, resource sharing system and side between router in the distributed intelligence router network system of the present invention
Method has the advantages that:
(1) each intelligent router is considered as a server, relevant resource is put into the shared mesh of intelligent router
In record so that the resource that others shares out can be viewed by resource index database between Designated Router, and can
Resource downloading is directly carried out using other intelligent routers as server;
(2) the bandwidth limitation for downloading resource in a server is avoided, requirement of the user for speed of download is met.
Specific implementation mode
Illustrate that embodiments of the present invention, those skilled in the art can be by this specification below by way of specific specific example
Disclosed content understands other advantages and effect of the present invention easily.The present invention can also pass through in addition different specific realities
The mode of applying is embodied or practiced, the various details in this specification can also be based on different viewpoints with application, without departing from
Various modifications or alterations are carried out under the spirit of the present invention.
It should be noted that the diagram provided in the present embodiment only illustrates the basic conception of the present invention in a schematic way,
Then component count, shape and size when only display is with related component in the present invention rather than according to actual implementation in schema are painted
System, when actual implementation kenel, quantity and the ratio of each component can be a kind of random change, and its assembly layout kenel also may be used
It can be increasingly complex.
Referring to Fig.1, if resource sharing system includes between router in distributed intelligence router network system of the invention
Dry intelligent router (11,12 ... 1n), resource index database 2 and control server 3.
Intelligent router (11,12 ... 1n) is used as sharing router or downloads router, wherein shares router and is used for
The resource related information shared and router id are uploaded to resource index database, and under the control of control server, directly
It connects the resource will be shared and is supplied to download router;It downloads router and is used for the retrieval in resource index database and belong to point
The resource that router is shared is enjoyed, and under the control of control server, desired resource is directly downloaded from sharing service device.
It it should be noted that for same intelligent router, can not only be used for sharing router, be route but also as downloading
Device.In actual use, its function is judged according to its specific execution operation.Download router by P2P technologies directly from point
It enjoys and downloads required resource on router.
Specifically, for sharing router, user is by terminals such as mobile phone, tablet computer, computers on intelligent router
Realize sharing for resource.Resource related information includes but not limited to the title of resource, position, type, size etc..
Resource index database 2 is used to the resource for sharing out on all intelligent routers being organized into a resource rope
Draw, in order to which intelligent router carries out resource searching.
It specifically, can be according to router id, resource type when intelligent router searches for desired resource in resource index
And/or the information such as resource name carry out resource searching.
Control server 3 is for realizing the communication shared between router and download router.
Specifically, control server receives download first when share router and download the communication between router
The download request that router is sent;Then download request is pass on to corresponding and shares router;Finally receiving
After the permission response for sharing router, notice downloads router directly from the resource shared needed for router download.Wherein,
It includes sharing router id, downloading resource information etc. to download request.
Share router in resource sharing system between router in the distributed intelligence router network system of the present invention
Shared resource is provided, and the resource related information shared and router id are uploaded to resource index database;It downloads
When router downloads resource, resource retrieval is carried out to resource index database, finds required resource, and send request is downloaded
To control server;Control server, which passs on download request to corresponding, shares router;Share routing receiving
After the permission response of device, control server notice downloads router and starts to download required resource;It downloads router and passes through P2P's
Mode directly downloads required resource from sharing on router.Therefore, in distributed intelligence router network system of the invention
Resource sharing system avoids the bandwidth limitation that resource is downloaded in a server between router, meets user for downloading speed
The requirement of degree.
With reference to Fig. 2 and Fig. 3, resource sharing method packet between router in distributed intelligence router network system of the invention
Include following steps:
Step S1, share resource thereon as the first intelligent router for sharing router.
Specifically, user A passes through mobile phone or PC binding routers A and the resource for sharing router A.Wherein, Yong Hutong
It crosses the terminals such as mobile phone, tablet computer, computer and realizes sharing for resource on intelligent router.Resource related information includes but unlimited
In the title of resource, position, type, size etc..
Step S2, the resource related information shared and router id are uploaded to resource index data by the first intelligent router
Library.
Specifically, the resource related information shared and router id are uploaded to resource index database by router A.
Step S3, resource retrieval is carried out to resource index database as the second router for downloading router, finds institute
The resource shared by the first router to be downloaded.
Specifically, user B binding routers B and resource retrieval is carried out to resource index database, finds and is downloaded
The resource shared by router A.Wherein, router B is as download router.
It, can be according to router id, resource type and/or money when intelligent router searches for desired resource in resource index
The information such as source name carry out resource searching.
Step S4, the second router notice control server downloads the resource shared by the first router found.
Specifically, user B downloads the resource shared by router A found by router B notice control servers.
Step S5, after controlling the permission response that server receives the first router, notice the second router starts to download money
Source.
Specifically, after the permission response for receiving router A, notice router B starts to download resource control server.
Step S6, the second router directly downloads desired resource from the first router.
Specifically, router B directly downloads the resource shared in router A by P2P technologies.
Preferably, further include that step S7, the second router return to download progress in real time.
Specifically, the progress of download is returned to user B by router B in real time, so that user B is checked.
It it should be noted that for same intelligent router, can not only be used for sharing router, be route but also as downloading
Device.In actual use, for the first router and the second router, it can judge its function according to its specific execution operation.
In conclusion resource sharing system and method between router in the distributed intelligence router network system of the present invention
Each intelligent router is considered as a server, relevant resource is put into the share directory of intelligent router so that refer to
Determine that the resource that others shares out can be viewed by resource index database between router, and can be by other intelligent roads
By device resource downloading is directly carried out as server;The bandwidth limitation for downloading resource in a server is avoided, use is met
Requirement of the family for speed of download.So the present invention effectively overcomes various shortcoming in the prior art and has high industrial profit
With value.
The above-described embodiments merely illustrate the principles and effects of the present invention, and is not intended to limit the present invention.It is any ripe
The personage for knowing this technology can all carry out modifications and changes to above-described embodiment without violating the spirit and scope of the present invention.Cause
This, institute is complete without departing from the spirit and technical ideas disclosed in the present invention by those of ordinary skill in the art such as
At all equivalent modifications or change, should by the present invention claim be covered.