CN101488974A - P2P resource providing method, system and P2P directory server - Google Patents

P2P resource providing method, system and P2P directory server Download PDF

Info

Publication number
CN101488974A
CN101488974A CNA2009101056357A CN200910105635A CN101488974A CN 101488974 A CN101488974 A CN 101488974A CN A2009101056357 A CNA2009101056357 A CN A2009101056357A CN 200910105635 A CN200910105635 A CN 200910105635A CN 101488974 A CN101488974 A CN 101488974A
Authority
CN
China
Prior art keywords
data
resource
screening
request
module
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
CNA2009101056357A
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.)
Shenzhen Skyworth Digital Technology Co Ltd
Original Assignee
Shenzhen Skyworth Digital Technology Co Ltd
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 Shenzhen Skyworth Digital Technology Co Ltd filed Critical Shenzhen Skyworth Digital Technology Co Ltd
Priority to CNA2009101056357A priority Critical patent/CN101488974A/en
Publication of CN101488974A publication Critical patent/CN101488974A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention is suitable for data resource sharing field, providing a P2P resource providing method, system and P2P index server. The method comprises the following steps: receiving the resources to send a request client requests to download the resources; download resources referred to in the request in accordance with, the selection of K-end of the request referred to in the resources and stability of fast transmission of data to provide client data; will be selected to provide client data sent to the address information resources, client request for client requests for access to resources, resource data, K described in the request for resources to download the requested data provided the number of client. In this invention, the selection of resources through the client request is fast and stable transmission of the data provided by client, and client data to provide the address information sent to the client requests resources in order to request resources to provide client-side can be connected with the data communications, to more rapid client from the data provider access to data.

Description

A kind of P2P resource provider method, system and P2P LIST SERVER
Technical field
The invention belongs to data resource and share the field, relate in particular to a kind of P2P resource provider method, system and P2P LIST SERVER.
Background technology
It is at present, end-to-end that (Peer To Peer, P2P) downloading is one of data downloading mode of outbalance.In P2P downloaded, each data terminal (be Peer, comprise computer, PDA etc.) was not only obtained data from other data terminals, also provides the data that itself have as resource, obtained for other data terminals.Data terminal P2P download begin and downloading process in, to constantly communicate with the P2P LIST SERVER, to send the information of download request and report oneself, the P2P LIST SERVER is the record data terminal information then, and feeds back the information of corresponding other data terminals according to download request.
The user, needs to send download request to the P2P LIST SERVER earlier when using P2P to download by data terminal, and this download request comprises the IP address of data terminal, used port, needs downloaded files etc.The information of P2P LIST SERVER record resource request end (promptly sending the data terminal of download request) is searched the data terminal that has demand file, the address information of the data terminal of this demand file that has part ownership is sent to the resource request end of file request.This resource request end and data provide end (data terminal that promptly has this demand file) to communicate, to obtain data.
Because existing P 2P LIST SERVER is when the address information that data is provided end sends to the request msg terminal, it selects data that the mode of end is provided is at random, promptly provides from many data and selects the data of resource request end request number that end is provided the end at random.And the data of selecting provide end may exist instability or speed to wait problem slowly, and it is slower therefore to have caused the resource request end to obtain the speed of data, and may obtain less than complete data.
Summary of the invention
The object of the present invention is to provide a kind of P2P resource provider method, it is slower to be intended to solve the speed of download that may exist in the P2P download, obtains the problem less than partial data.
The present invention is achieved in that a kind of P2P resource provider method, said method comprising the steps of:
Receive the resource downloading request that the resource request end sends;
According to described resource downloading request, fast and stable data provides end to screening K to described resource request end transmission data;
Provide the address information of end to send to the resource request end data that filter out, request end, funding source obtains resource data,
The data that described K is asked for the resource downloading request provide the terminal number order.
Another object of the present invention is to provide a kind of P2P resource that system is provided, described system comprises:
Resource downloading request receiving element is used to receive the resource downloading request that the resource request end sends;
The screening unit is used for according to described resource downloading request, and fast and stable data provides end to screening K to described resource request end transmission data; And
Address information transmitting element, the data that are used for filtering out provide the address information of end to send to the resource request end, and request end, funding source obtains resource data,
The data that described K is asked for the resource downloading request provide the terminal number order.
Another object of the present invention is to provide a kind of P2P LIST SERVER, described P2P LIST SERVER comprises that the P2P resource provides system, and described P2P resource provides system to comprise:
Resource downloading request receiving element is used to receive the resource downloading request that the resource request end sends;
The screening unit is used for according to described resource downloading request, and fast and stable data provides end to screening K to described resource request end transmission data; And
Address information transmitting element, the data that are used for filtering out provide the address information of end to send to the resource request end, and request end, funding source obtains resource data,
The data that described K is asked for the resource downloading request provide the terminal number order.
In the present invention, fast and stable data provides end to resource request end transmission speed by screening, and provide the address information of end to send to the resource request end these data, thereby the resource request end can provide end to be connected communication with these data, can faster stably provide end to obtain data from data.
Description of drawings
Fig. 1 is the flow chart of P2P resource provider method provided by the invention;
Fig. 2 be screening provided by the invention K to resource request end transmission data fast and stable data provides the flow chart of the method for end;
Fig. 3 is the flow chart that the close data in the IP address of search provided by the invention and resource request end provide end;
Fig. 4 is the structure chart of P2P download system provided by the invention.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with drawings and Examples.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
In the present invention, fast and stable data provides end to resource request end transmission speed by screening, and provide the address information of end to send to the resource request end these data, thereby the resource request end can provide end to be connected communication with these data, can faster stably provide end to obtain data from data.
Fig. 1 shows the flow process of P2P resource provider method provided by the invention, and details are as follows:
In step S101, receive the resource downloading request that the resource request end sends.Carried the descriptor of request resource in this resource downloading request.Usually, the resource downloading request comprises the resource that resource request end ID, IP address, used port, needs are downloaded, and the data of request provide the information such as number K of end.
In step S102, according to this resource downloading request, fast and stable data provides end to screening K to these resource request end transmission data.
Because the resource that needs download has been described in the resource downloading request, provide from the data that have this resource to filter out K data the end end is provided, the K that an is screened data provide end fast to resource request end transmission data, and stable, thereby make the resource request end, can obtain complete resource quickly.
In step S103, provide the address information of end to send to the resource request end data that filter out, request end, funding source obtains resource data.
This address information comprises that data provide end IP address, used port.After the resource request end obtains address information, provide end to communicate according to the address information and date, and therefrom obtain resource data.
Download for P2P, a certain data terminal (for example computer, PAD etc.) may be the resource request end simultaneously, is again that data provide end.Resource request end, data provide end be at a certain data download, provide, carried out the name of different function to data terminal.When certain data terminal when other data terminals are obtained resource, this data terminal is the resource request end.And when this data terminal provided resource to obtain for other data terminals, this data terminal was again that data provide end.
Fig. 2 show screening provided by the invention K to resource request end transmission data fast and stable data provides the flow process of the method for end, details are as follows:
In step S201, dispose S screening factor.This S is a positive integer.
In step S202, the data that screening meets S screening factor provide end.
In step S203, judge whether to screen K data end is provided.
If screened after K data provide end, just can finish this flow process.Do not provide end as if screening K data, then execution in step d.
In the screening process of reality, whenever screen data end is provided, just it is preserved or mark, thereby can judge easily that the data that screen provide the terminal number order, and, can be in next screening process, only the not enough data of screening provide the terminal number order.
In step S204, the value of S is deducted i.
This i is a positive integer, and 1≤i<S.If screened after all data that meet S screening factor provide end, do not screen K data as yet end is provided, illustrate that the screening factor is too much, then reduce by i screening factor.
In step S205, whether the value of judging S is greater than 0.
When greater than 0 the time, return step a, when being less than or equal to 0, execution in step S206.
In step S206, the search data close with the IP address of resource request end provide end.
As embodiments of the invention, this screening factor can be for same city, same operator, with the IP section.For example, can be as required, select with the city with operator with the IP section as the screening factor.
For example, being the screening factor with operator with the IP section with the city, before screening, can in the database of P2P LIST SERVER, store the clientip table that contains data segment id|ipb|ipe|city|isp, this watch will be with the IP segmentation of city with operator according to data transmission bauds the most stable the fastest principle each other.Wherein, ipb represents the start address of an IP section, and ipe represents the end addresses of an IP section, and city represents the city, place, and isp represents the operator that belongs to, and id is unique ID of each IP section correspondence in tables of data.The IP section that marks off such as Shenzhen martial prowess video signal includes 219.232.160.0-219.232.191.255 and 222.248.0.0-222.248.255.255 etc.
When data terminal is communicated by letter with the P2P LIST SERVER, by inquiry clientip table, just can judge which IP section is this data terminal belong to, id, ipb, ipe, city, isp information and other relevant informations of IP section under this data terminal is kept in the database of P2P LIST SERVER together.
Provide end according to just satisfactory data being filtered out with operator with the screening factor of IP section in this database with the city.When providing the not enough number of being asked of end with operator with the data of IP section,, filter out the data that meet this screening requirement end is provided according to the screening factor of city with operator with the city.When providing end still not enough with the city with the data of operator, screening provides end with the data of operator.When still not enough, the search data close with the IP address of resource request end provide end.
Certainly, also can adopt with the city earlier is the screening factor with operator, when the data that filter out according to this screening factor provide end not enough, and then can be according to being the screening factor with the city, when still not enough, the search data close with the IP address of resource request end provide end.
The close data in IP address that Fig. 3 shows search provided by the invention and resource request end provide the method flow of end, and details are as follows:
In step S2061, calculate the size in IP interval.The big or small ipInterval=ipe-ipb in IP interval.Wherein, ipb represents the start address of IP section, and ipe represents the end addresses of IP section, and wherein, ipb and ipe are the INTEGER representation modes of IP address in the computer, are the unsigned ints of 32bit.
In step S2062, judge that whether the interval size of IP is greater than 255.If greater than 255 execution in step S2063, if be not more than 255, execution in step S2065 then.
In step S2063, judge that whether the interval size of IP is greater than 1024.If be not more than 1024, execution in step S2067 then, if greater than 1024, execution in step S2064 then.
In step S2064, select K data that end is provided at random.Selected K data to provide the end back just can finish this flow process.
In step S2065, the IP difference of searching with the resource request end provides end 128 with interior data.
In step S2066, judge the data that search provide end whether to reach K.When not reaching K, execution in step S2067; When reaching K, can finish this flow process.
In step S2067, the identical data of 22bit provide end before searching.
In step S2068, judge whether to reach K.When not reaching K, execution in step S2064; When reaching K, finish this flow process.
Fig. 4 shows the structure that P2P resource provided by the invention provides system, and this system can be software unit or hardware cell or the unit soft, that scleroma is closed that is built in the P2P LIST SERVER.
This P2P resource provides system to comprise resource downloading request receiving element 41, screening unit 42 and address information transmitting element 43.
Resource downloading request receiving element 41 receives the resource downloading request that the resource request end sends, screening unit 42 is according to this resource downloading request, fast and stable data provides end to screening K to these resource request end transmission data, address information transmitting element 43 provides the address information of end to send to the resource request end these data, obtain resource data for the resource request end, the data that described K is asked for the resource downloading request provide the terminal number order.
Screening unit 42 is according to this resource downloading request, fast and stable data provides the process of end can be S screening factor of screening factor configuration module 421 configurations to screening K to these resource request end transmission data, the data that 422 screenings of screening factor screening module meet S screening factor provide end, screening number judge module 423 judges whether to screen K data provides end, do not provide when end when screening K data, trigger depreciation module 424, by depreciation module 424 value of S is deducted i, value judge module 425 judges that whether the value of S is greater than 0, reconfigure the screening factor if trigger screening factor configuration module 421 greater than 0, otherwise, utilize the IP search module 426 search data close that end is provided with the IP address of resource request end.
In sum, in the present invention, fast and stable data provides end to resource request end transmission speed by screening, and provide the address information of end to send to the resource request end these data, thereby the resource request end can provide end to be connected communication with these data, can faster stably provide end to obtain data from data.
The above only is preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of being done within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.

Claims (9)

1, a kind of P2P resource provider method is characterized in that, said method comprising the steps of:
Receive the resource downloading request that the resource request end sends;
According to described resource downloading request, fast and stable data provides end to screening K to described resource request end transmission data;
Provide the address information of end to send to the resource request end data that filter out, request end, funding source obtains resource data,
The data that described K is asked for the resource downloading request provide the terminal number order.
2, the method for claim 1 is characterized in that, and is described according to described resource downloading request, and fast and stable data provides the step of end may further comprise the steps to screening K to described resource request end transmission data:
A, S screening factor of configuration;
The data that b, screening meet S screening factor provide end;
C, judge whether to screen K data end is provided, if screening K data does not provide end, execution in step d then;
D, the value of S is deducted i;
E, judge S value whether greater than 0, when greater than 0 the time, return step a, when being less than or equal to 0, execution in step f;
The close data in the IP address of f, search and resource request end provide end,
Described S is a positive integer, and described i is a positive integer, and 1≤i<S.
3, method as claimed in claim 2 is characterized in that, described screening factor is same city, same operator, with the IP section.
4, a kind of P2P resource provides system, it is characterized in that, described system comprises:
Resource downloading request receiving element is used to receive the resource downloading request that the resource request end sends;
The screening unit is used for according to described resource downloading request, and fast and stable data provides end to screening K to described resource request end transmission data; And
Address information transmitting element, the data that are used for filtering out provide the address information of end to send to the resource request end, and request end, funding source obtains resource data,
The data that described K is asked for the resource downloading request provide the terminal number order.
5, system as claimed in claim 4 is characterized in that, described screening unit comprises:
Screening factor configuration module is used to dispose S screening factor;
Screening factor screening module, being used to screen the data that meet S screening factor provides end;
Screening number judge module, being used to judge whether to screen K data provides end;
The depreciation module is used for the value of S is deducted i;
The value judge module is used to judge that whether the value of S is greater than 0; And
The IP search module, being used to search for the data close with the IP address of resource request end provides end,
Described S is a positive integer, and described i is a positive integer, and 1≤i<S.
6, system as claimed in claim 4 is characterized in that, described screening factor is same city, same operator, with the IP section.
7, a kind of P2P LIST SERVER is characterized in that, described P2P LIST SERVER comprises that the P2P resource provides system, and described system comprises:
Resource downloading request receiving element is used to receive the resource downloading request that the resource request end sends;
The screening unit is used for according to described resource downloading request, and fast and stable data provides end to screening K to described resource request end transmission data; And
Address information transmitting element, the data that are used for filtering out provide the address information of end to send to the resource request end, and request end, funding source obtains resource data,
The data that described K is asked for the resource downloading request provide the terminal number order.
8, server as claimed in claim 6 is characterized in that, described screening unit comprises:
Screening factor configuration module is used to dispose S screening factor;
Screening factor screening module, being used to screen the data that meet S screening factor provides end;
Screening number judge module, being used to judge whether to screen K data provides end;
The depreciation module is used for the value of S is deducted i;
The value judge module is used to judge that whether the value of S is greater than 0; And
The IP search module, being used to search for the data close with the IP address of resource request end provides end,
Described S is a positive integer, and described i is a positive integer, and 1≤i<S.
9, server as claimed in claim 4 is characterized in that, described screening factor is same city, same operator, with the IP section.
CNA2009101056357A 2009-02-25 2009-02-25 P2P resource providing method, system and P2P directory server Pending CN101488974A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2009101056357A CN101488974A (en) 2009-02-25 2009-02-25 P2P resource providing method, system and P2P directory server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2009101056357A CN101488974A (en) 2009-02-25 2009-02-25 P2P resource providing method, system and P2P directory server

Publications (1)

Publication Number Publication Date
CN101488974A true CN101488974A (en) 2009-07-22

Family

ID=40891649

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2009101056357A Pending CN101488974A (en) 2009-02-25 2009-02-25 P2P resource providing method, system and P2P directory server

Country Status (1)

Country Link
CN (1) CN101488974A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101964824A (en) * 2010-11-05 2011-02-02 北京云快线软件服务有限公司 Method and device for selecting uploading server
CN102035812A (en) * 2009-09-24 2011-04-27 突触计算机系统(上海)有限公司 Method and device for controlling data transmission in network
CN102130962A (en) * 2011-04-06 2011-07-20 上海少思网络科技有限公司 Method for screening network nodes for downloading acceleration based on cloud computing
WO2016127315A1 (en) * 2015-02-10 2016-08-18 深圳好视网络科技有限公司 Resource sharing method and apparatus for private cloud system
CN106686141A (en) * 2017-03-06 2017-05-17 成都谛听科技股份有限公司 Resource download method and resource download device
CN112104741A (en) * 2020-09-21 2020-12-18 北京指掌易科技有限公司 Resource sharing method, device, system and gateway controller

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102035812A (en) * 2009-09-24 2011-04-27 突触计算机系统(上海)有限公司 Method and device for controlling data transmission in network
CN101964824A (en) * 2010-11-05 2011-02-02 北京云快线软件服务有限公司 Method and device for selecting uploading server
CN102130962A (en) * 2011-04-06 2011-07-20 上海少思网络科技有限公司 Method for screening network nodes for downloading acceleration based on cloud computing
WO2016127315A1 (en) * 2015-02-10 2016-08-18 深圳好视网络科技有限公司 Resource sharing method and apparatus for private cloud system
CN106686141A (en) * 2017-03-06 2017-05-17 成都谛听科技股份有限公司 Resource download method and resource download device
CN112104741A (en) * 2020-09-21 2020-12-18 北京指掌易科技有限公司 Resource sharing method, device, system and gateway controller
CN112104741B (en) * 2020-09-21 2024-02-02 北京指掌易科技有限公司 Resource sharing method, device and system and gateway controller

Similar Documents

Publication Publication Date Title
CN1988535B (en) Synchronous method, system for file storage and customer terminal
CN111049854A (en) Service request transmission method and device
US20100094876A1 (en) Method, apparatus and system of searching and downloading mobile telephone file
CN101216834B (en) File downloading method, system, device and server
CN101488974A (en) P2P resource providing method, system and P2P directory server
CN102546836A (en) Method, terminal, server and system for uploading files
CN103795761A (en) Method and system for downloading online game data
CN101136025A (en) Method for downloading network resource, system and equipment thereof
CN102271165A (en) Device and method for sharing and managing resources searched on Internet
CN107347062A (en) A kind of method, electronic equipment and the readable storage medium storing program for executing of daily record data processing
CN109982152B (en) P2P CDN service processing method, intelligent gateway and CDN platform
CN103731472A (en) Method and system for downloading files by adopting P2P technology and client-side
CN103248666A (en) System, method and device for offline resource download
CN103825923A (en) Resource download method, business server and mobile phone client-terminal
CN112866424A (en) Domain name query method and related equipment
CN102710535A (en) Data acquisition method and equipment
US20070258396A1 (en) Mobile telephone-based peer-to-peer sharing
CN105163171A (en) File transmission method between set top box and mobile terminal and system
CN101925158A (en) System and method for obtaining number detail
CN111176706A (en) Terminal upgrading method and device, electronic equipment and storage medium
CN108134811B (en) Method, device and system for distributing or downloading target file
CN112307058B (en) Short link processing method and device, storage medium and computer equipment
CN101764849B (en) Digital TV front-end server, the method setting up catalog organization structure and device
CN102984250A (en) Data synchronization method based on cloud service
CN101146107B (en) A method and device for data download

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20090722