CN103701885A - Method for querying indexes in P2P (peer-to-peer) system, P2P server and P2P server system - Google Patents

Method for querying indexes in P2P (peer-to-peer) system, P2P server and P2P server system Download PDF

Info

Publication number
CN103701885A
CN103701885A CN201310701430.1A CN201310701430A CN103701885A CN 103701885 A CN103701885 A CN 103701885A CN 201310701430 A CN201310701430 A CN 201310701430A CN 103701885 A CN103701885 A CN 103701885A
Authority
CN
China
Prior art keywords
server
client
index
request message
receives
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
CN201310701430.1A
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.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and 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 Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201310701430.1A priority Critical patent/CN103701885A/en
Publication of CN103701885A publication Critical patent/CN103701885A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Computer And Data Communications (AREA)

Abstract

The application provides a method for querying indexes in a P2P (peer-to-peer) system, a P2P server and a P2P server system. The method includes the following steps that a first server receives and transmits a request message coming from a client to a second server, wherein the request message is used for querying an index; the first server receives a response message coming from the second server and, according to the response message, determines that the queried index is stored in the second server; the first server informs the client that the index is already queried. By means of the method, the system architecture is simplified, and the signaling traffic of the client is saved.

Description

The method of search index, P2P server and P2P server system in P2P system
Technical field
The application relates to networking technology area, particularly relates to method, P2P server and the P2P server system of search index in a kind of point-to-point (Peer to Peer, referred to as P2P) system.
Background technology
P2P connects also referred to as equity, is a kind of new communication pattern, and each participant has equal ability, can initiate a communication session.
P2P communication system comprises: client (Client) and server (Server).Wherein, server comprises the server (also referred to as the server that burrows) of being responsible for linkage function and the server (also referred to as index server) that index function is provided.The server that burrows is all connected with client with index server.When user needs search index, client needs respectively elder generation to be connected with index server with the server that burrows, and then by carrying out alternately search index with index server.
In above-mentioned querying method, system operation is comparatively complicated.Therefore, need the technical problem that those skilled in the art solve to be exactly: how to simplify the management of P2P system.
Summary of the invention
The application's technical problem to be solved is to provide method, P2P server and the P2P server system of search index in a kind of P2P system, can very simply to P2P system, manage.
In order to address the above problem, the application discloses the method for search index in a kind of point-to-point P2P system, comprising: first server receives the request message from client, and request message is transmitted to second server, wherein, request message is for search index; First server receives the response message from second server, determines the index that stores inquiry in second server according to response message; First server notice client has inquired index.
Preferably, before first server receives the request message from client, first server receives the connection request from client, and foundation is connected with client.
Preferably, first server is that dispatch server is that client is distributed.
Preferably, first server is the server that burrows, and second server is index server.
In order to address the above problem, the application discloses a kind of P2P server, comprising: receiver module, and for receiving the request message from client, request message is for search index; Sending module, for being transmitted to index server by request message; Receiver module is also for receiving the response message from index server; Determination module, for determining that according to response message index server stores the index of inquiry; Sending module is also for notifying client to inquire index.
Preferably, this P2P server also comprises: receiver module also, for before the request message receiving from client, receives the connection request from client; Server also comprises sets up module, for setting up and being connected of client.
Preferably, P2P server is that dispatch server is that client is distributed.
In order to address the above problem, the application discloses a kind of point-to-point P2P server system, comprising: first server, be connected with client, for receiving the request message from client, and request message be transmitted to second server, wherein, request message is for search index; Second server, is connected with first server, for after receiving request message, determines the index that stores inquiry in second server, and sends response message to first server; First server is also for determining that according to response message second server stores the index of inquiry, and notifies client to inquire index.
Preferably, first server also, for before the request message receiving from client, receives the connection request from client, and foundation is connected with client.
Preferably, said system also comprises dispatch server, is used to client to distribute first server.
Compared with prior art, the application has the following advantages:
In prior art, the server that burrows is connected with client respectively with index server, and structure is comparatively complicated, and the logic signaling that client is used is also more.By such scheme of the present invention, second server is connected with client by first server, has simplified system configuration, and the logic signaling that client is used obviously reduces.
Accompanying drawing explanation
Fig. 1 is the flow chart of the method for search index in a kind of P2P system of the application;
Fig. 2 is the flow chart of the method for search index in the another kind of P2P system of the application;
Fig. 3 is the structured flowchart of a kind of P2P server of the application;
Fig. 4 is the structured flowchart of a kind of preferred P2P server of the application;
Fig. 5 is the structured flowchart of a kind of P2P server system of the application.
Embodiment
For the application's above-mentioned purpose, feature and advantage can be become apparent more, below in conjunction with the drawings and specific embodiments, the application is described in further detail.
With reference to Fig. 1, show the method for search index in a kind of P2P system of the application, comprising:
Step 102, first server receives the request message from client, and this request message is transmitted to second server, and wherein, this request message is for search index; For example, in this request message, carry the index of client-requested inquiry.
In a kind of preferred implementation of the embodiment of the present invention, before step 102, said method also comprises: first server receives the connection request from client, in response to this request, set up with client between be connected.
Preferably, second server has a plurality of, and when the request message receiving from client, first server is according to the descriptor of file and hash algorithm, directly determine and go which second server inquiry, thereby this request message is transmitted to that definite second server.
Step 104, first server receives the response message from second server, determines the index that stores inquiry in second server according to response message;
Preferably, step 104 can comprise:
First server receives the response message of second server, can determine the index that stores inquiry in second server.
Step 106, first server is transmitted to client by Query Result, that is and, the client query of first server notice is to this index.
In the present embodiment, index server is connected with client by the server that burrows, and has simplified system configuration, and the logic signaling that client is used obviously reduces.
Preferably, first server is that dispatch server is that client is distributed.
Preferably, first server is the server that burrows, and second server is index server.
In embodiments of the present invention, the implication of index refers to all client nodes that have this file according to ff, is that content is relevant.
The present embodiment, by adjusting the functional hierarchy of server, is divided into burrow server and index server, and the server that burrows is responsible for connecting and assistance penetrates function, thereby guarantees the separated of connection and index function.Facilitate like this system management.In addition, for P2P software, the upgrading of client is more difficult than the upgrading of server comparatively speaking, and server adopts after the design of layering, and client can only be connected with first server, thereby simplifies the design of client.The Client Design of simplifying can reduce corresponding maintenance cost, has guaranteed the stability of software, and larger flexibility ratio is also provided simultaneously.
The embodiment of the present invention also provides the method for search index in a kind of P2P system, and in the method for the present embodiment, the server that burrows can be the first server in above-described embodiment, and index server can be the second server in above-described embodiment.As shown in Figure 2, the method comprises:
Step 202, scheduler is that client is distributed the server that burrows, and by the server notification that burrows being assigned to client; For example, server sends connection request to scheduler, and scheduler distributes the server that burrows for client, and by the server notification that burrows being assigned to client.This step is optional, and client also can directly select the server that burrows to connect.
Step 204, client is connected with the server that burrows.For example, client can send connection request to the server that burrows, after the server that burrows is determined and can be connected with client, set up with client between be connected, preferred, the server that burrows is received connection request, after assisting the request of penetrating and keeping connection request, determine and can to client, return to response for client provides corresponding service, set up with client between be connected.
Step 206, client sends a request message to the server that burrows, and carries the index that will inquire about in this request message.For example, user wishes to watch video A, to the server that burrows, sends the index about video A.
Step 208, the server that burrows forwards this request message to index server, for example, when receiving about query resource, deleting resource and more during the index of new resources, this request message is transmitted to index server.
Step 210, the server that burrows receives the feedback of index server to this request message, responds accordingly client.For example, user wishes to watch video A, and this request message carries the index about video A, the index of video A has been stored in the definite this locality of index server 1, to the server that burrows, send and confirm to reply, the server notification client that burrows has retrieved the index of video A, so that user watches video A.Preferably, the descriptor of the file that server that burrows can will be inquired about according to user, connects different index servers, for example: user inquires about video A, connection be index server 1, in index server 1, store the index of video A; User inquires about video B, may be connected to the index server 2 of the index that stores video B.
The present embodiment, by adjusting the functional hierarchy of server, is divided into burrow server and index server, and the server that burrows is responsible for connecting and assistance penetrates function, thereby guarantees the separated of connection and index function.Facilitate like this system management.In addition, for P2P software, the upgrading of client is more difficult than the upgrading of server comparatively speaking, and server adopts after the design of layering, and client can only be connected with first server, thereby simplifies the design of client.The Client Design of simplifying can reduce corresponding maintenance cost, has guaranteed the stability of software, and larger flexibility ratio is also provided simultaneously.
The embodiment of the present invention also provides a kind of P2P server, and this P2P server can be used as first server and realizes said method, and therefore, the content in said method can be incorporated in the present embodiment.With reference to Fig. 3, show a kind of P2P server of the application, this P2P server comprises:
Receiver module 302, for receiving the request message from client, this request message is for search index;
Sending module 304, for being transmitted to index server by this request message;
Receiver module 302 is also for receiving the response message from index server;
Determination module 306, for determining that according to this response message index server stores the index of inquiry;
Sending module 304 is also for notifying client to retrieve this index.
With reference to Fig. 4, show a kind of preferred P2P server of the application, in a preferred embodiment shown in Fig. 4, receiver module 302 also, for before the request message receiving from client, receives the connection request from client; Server also comprises sets up module 402, for setting up and being connected of client.
Preferably, P2P server is that dispatch server is that client is distributed.
The present embodiment, by adjusting the functional hierarchy of server, is divided into burrow server and index server, and the server that burrows is responsible for connecting and assistance penetrates function, thereby guarantees the separated of connection and index function.Facilitate like this system management.In addition, for P2P software, the upgrading of client is more difficult than the upgrading of server comparatively speaking, and server adopts after the design of layering, and client can only be connected with first server, thereby simplifies the design of client.The Client Design of simplifying can reduce corresponding maintenance cost, has guaranteed the stability of software, and larger flexibility ratio is also provided simultaneously.
The embodiment of the present invention also provides a kind of P2P server system, first server in this P2P server system can realize the function of first server in said method embodiment, second server in this P2P server system can be realized the function of second server in said method embodiment, therefore, the content in said method can be incorporated in the present embodiment.With reference to Fig. 5, show a kind of P2P server system of the application, this system comprises:
First server 502, is connected with client, for receiving the request message from client, and request message is transmitted to second server 504, and wherein, request message is for search index;
Second server 504, is connected with first server 502, for after receiving request message, determines the index that stores inquiry in second server 504, and sends response message to first server 502;
First server 502 is also for determining that according to response message second server 504 stores the index of inquiry, and notifies client to retrieve this index.
Preferably, first server 502 also, for before the request message receiving from client, receives the connection request from client, and foundation is connected with client.
Alternatively, said system also comprises dispatch server, is used to client to distribute first server.
The present embodiment, by adjusting the functional hierarchy of server, is divided into burrow server and index server, and the server that burrows is responsible for connecting and assistance penetrates function, thereby guarantees the separated of connection and index function.Facilitate like this system management.In addition, for P2P software, the upgrading of client is more difficult than the upgrading of server comparatively speaking, and server adopts after the design of layering, and client can only be connected with first server, thereby simplifies the design of client.The Client Design of simplifying can reduce corresponding maintenance cost, has guaranteed the stability of software, and larger flexibility ratio is also provided simultaneously.
Each embodiment in this specification all adopts the mode of going forward one by one to describe, and each embodiment stresses is the difference with other embodiment, between each embodiment identical similar part mutually referring to.For system embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, relevant part is referring to the part explanation of embodiment of the method.
Method, P2P server and the P2P server system of search index in a kind of P2P system above the application being provided, be described in detail, applied specific case herein the application's principle and execution mode are set forth, the explanation of above embodiment is just for helping to understand the application's method and core concept thereof; Meanwhile, for one of ordinary skill in the art, the thought according to the application, all will change in specific embodiments and applications, and in sum, this description should not be construed as the restriction to the application.

Claims (10)

1. a method for search index in point-to-point P2P system, is characterized in that, comprising:
First server receives the request message from client, and described request message is transmitted to second server, and wherein, described request message is for search index;
Described first server receives the response message from described second server, determines the index that stores described inquiry in described second server according to described response message;
Described first server notifies described client to inquire described index.
2. method according to claim 1, is characterized in that, before first server receives the request message from client, described method also comprises:
Described first server receives the connection request from described client, and foundation is connected with described client.
3. method according to claim 1, is characterized in that, described first server is that dispatch server is that described client is distributed.
4. according to the server described in any one in claims 1 to 3, it is characterized in that, described first server is the server that burrows, and described second server is index server.
5. a P2P server, is characterized in that, comprising:
Receiver module, for receiving the request message from client, described request message is for search index;
Sending module, for being transmitted to index server by described request message;
Described receiver module is also for receiving the response message from described index server;
Determination module, for determining that according to described response message described index server stores the index of described inquiry;
Described sending module is also for notifying described client to inquire described index.
6. P2P server according to claim 5, is characterized in that, comprising:
Described receiver module also, for before the request message receiving from described client, receives the connection request from described client;
Described server also comprises sets up module, for setting up and being connected of described client.
7. according to the P2P server described in claim 5 or 6, it is characterized in that, described P2P server is that dispatch server is that described client is distributed.
8. a point-to-point P2P server system, is characterized in that, comprising:
First server, is connected with client, for receiving the request message from described client, and described request message is transmitted to second server, and wherein, described request message is for search index;
Described second server, is connected with described first server, for after receiving described request message, determines the index that stores described inquiry in described second server, and sends response message to described first server;
Described first server is also for determining that according to described response message described second server stores the index of described inquiry, and notifies described client to inquire described index.
9. system according to claim 8, is characterized in that, described first server also, for before the request message receiving from described client, receives the connection request from described client, and foundation is connected with described client.
10. system according to claim 8 or claim 9, is characterized in that, described system also comprises dispatch server, is used to described client to distribute described first server.
CN201310701430.1A 2013-12-18 2013-12-18 Method for querying indexes in P2P (peer-to-peer) system, P2P server and P2P server system Pending CN103701885A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310701430.1A CN103701885A (en) 2013-12-18 2013-12-18 Method for querying indexes in P2P (peer-to-peer) system, P2P server and P2P server system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310701430.1A CN103701885A (en) 2013-12-18 2013-12-18 Method for querying indexes in P2P (peer-to-peer) system, P2P server and P2P server system

Publications (1)

Publication Number Publication Date
CN103701885A true CN103701885A (en) 2014-04-02

Family

ID=50363279

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310701430.1A Pending CN103701885A (en) 2013-12-18 2013-12-18 Method for querying indexes in P2P (peer-to-peer) system, P2P server and P2P server system

Country Status (1)

Country Link
CN (1) CN103701885A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104539982A (en) * 2014-12-18 2015-04-22 新浪网技术(中国)有限公司 Method and system for dispatching of video resource point-to-point sharing and node terminal
CN105812443A (en) * 2014-12-31 2016-07-27 乐视网信息技术(北京)股份有限公司 P2P system and P2P system business access method
CN110809045A (en) * 2019-11-05 2020-02-18 深圳市网心科技有限公司 Data communication method and related equipment thereof

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1933437A (en) * 2005-12-31 2007-03-21 穆源浦 Stream media service system based on controllable P2P technology and realizing method thereof
CN101035264A (en) * 2007-04-09 2007-09-12 中兴通讯股份有限公司 Content distribution network system and its content and service scheduling method
CN101557423A (en) * 2009-05-07 2009-10-14 北京邮电大学 System and method for realizing streaming media content service
EP2109289A1 (en) * 2008-04-09 2009-10-14 Nokia Corporation Content distribution
US20120259881A1 (en) * 2010-04-26 2012-10-11 International Business Machines Corporation Peer to peer (p2p) missing fields and field valuation feedback

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1933437A (en) * 2005-12-31 2007-03-21 穆源浦 Stream media service system based on controllable P2P technology and realizing method thereof
CN101035264A (en) * 2007-04-09 2007-09-12 中兴通讯股份有限公司 Content distribution network system and its content and service scheduling method
EP2109289A1 (en) * 2008-04-09 2009-10-14 Nokia Corporation Content distribution
CN101557423A (en) * 2009-05-07 2009-10-14 北京邮电大学 System and method for realizing streaming media content service
US20120259881A1 (en) * 2010-04-26 2012-10-11 International Business Machines Corporation Peer to peer (p2p) missing fields and field valuation feedback

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104539982A (en) * 2014-12-18 2015-04-22 新浪网技术(中国)有限公司 Method and system for dispatching of video resource point-to-point sharing and node terminal
CN104539982B (en) * 2014-12-18 2018-08-14 新浪网技术(中国)有限公司 A kind of point-to-point resource-sharing schedule method of video, system and nodal terminal
CN105812443A (en) * 2014-12-31 2016-07-27 乐视网信息技术(北京)股份有限公司 P2P system and P2P system business access method
CN110809045A (en) * 2019-11-05 2020-02-18 深圳市网心科技有限公司 Data communication method and related equipment thereof

Similar Documents

Publication Publication Date Title
CN101567796B (en) Multimedia network with fragmented content and business method thereof
CN101150465B (en) A method for obtaining seed information and supernode and common nodes in P2P network
CN101540775B (en) Method and device for distributing contents and network system for distributing contents
EP3242463B1 (en) Content distribution method and system for mobile terminal application
US20120278455A1 (en) Issuing method and system for configuration information
KR101485610B1 (en) Distributed content delivery system based on network awareness and method thereof
US8219614B2 (en) Edge peer device, pan gateway device, super peer device, and P2P network-based interconnection method
CN101355591A (en) P2P network and scheduling method thereof
WO2010127618A1 (en) System and method for implementing streaming media content service
JP5847185B2 (en) Content sharing method and apparatus using group change information in content-centric network environment
CN101841522B (en) SIP network and P2PSIP network intercommunication method and system
CN101895520B (en) Widget system data sharing method, server and data sharing system
CN102333127A (en) Resource downloading method, device and system
CN105141676A (en) Session persistence sharing method and session persistence sharing system under multiple servers
CN104486327A (en) Method and client side of communication between pages and long connection servers
CN101616171B (en) Method, device and system for retaining node guiding state
WO2012089166A1 (en) Software downloading method and device
CN103037015A (en) Active P2P data distribution method and node client-side
EP3576371B1 (en) Method and system for transmitting streaming media resource
CN103701885A (en) Method for querying indexes in P2P (peer-to-peer) system, P2P server and P2P server system
CN106937351B (en) Session realization method and core network element
CN101321123A (en) System and method for embedded type transmission of dynamic data
CN108768690A (en) A kind of the P2P self-organization network structures and resource search method of structuring
CN102223288A (en) Method, system and device for scheduling resources
CN101834914B (en) Method for realizing mapping relation between identity and position

Legal Events

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

Application publication date: 20140402

RJ01 Rejection of invention patent application after publication