[go: up one dir, main page]

JP2010198319A - Context search method and system - Google Patents

Context search method and system Download PDF

Info

Publication number
JP2010198319A
JP2010198319A JP2009042435A JP2009042435A JP2010198319A JP 2010198319 A JP2010198319 A JP 2010198319A JP 2009042435 A JP2009042435 A JP 2009042435A JP 2009042435 A JP2009042435 A JP 2009042435A JP 2010198319 A JP2010198319 A JP 2010198319A
Authority
JP
Japan
Prior art keywords
search
request message
search request
peer
message
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.)
Granted
Application number
JP2009042435A
Other languages
Japanese (ja)
Other versions
JP5165619B2 (en
Inventor
Osao Ogino
長生 荻野
Hajime Nakamura
中村  元
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.)
KDDI Corp
Original Assignee
KDDI Corp
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 KDDI Corp filed Critical KDDI Corp
Priority to JP2009042435A priority Critical patent/JP5165619B2/en
Publication of JP2010198319A publication Critical patent/JP2010198319A/en
Application granted granted Critical
Publication of JP5165619B2 publication Critical patent/JP5165619B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Computer And Data Communications (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

【課題】検索要求メッセージの転送数や、これに対する検索応答メッセージの転送数を効率よく動的に削減できるコンテキスト検索方法およびシステムを提供する。
【解決手段】ホップ数制限値設定部104は、検索要求メッセージのホップ数を制限することで検索要求メッセージの転送数を抑制するための第1および第2制限値を設定する。第1制限値E1は、ホップ数の絶対的な制限値であり、第1制限値E1を超えて検索要求メッセージが転送されることはない。第2制限値E2は、前記第1制限値E1よりも小さな値に設定されるが、検索要求メッセージを受信した検索対象ピアPdi,Ptjがコンテキスト条件を満足していると初期化される。検索要求生成部106は、第1制限値E1が第1許容ホップ数e1として記述され、第2制限値E2が第2許容ホップ数e2として記述され、さらに第2制限値E2およびコンテキスト検索条件の記述された検索要求メッセージを生成する。
【選択図】図2
The present invention provides a context search method and system capable of efficiently and dynamically reducing the number of search request messages transferred and the number of search response messages transferred.
A hop number limit value setting unit 104 sets first and second limit values for suppressing the number of search request message transfers by limiting the number of hops of a search request message. The first limit value E1 is an absolute limit value of the number of hops, and the search request message is not transferred beyond the first limit value E1. The second limit value E2 is set to a value smaller than the first limit value E1, but is initialized when the search target peers Pdi and Ptj that have received the search request message satisfy the context condition. The search request generation unit 106 describes the first limit value E1 as the first allowable hop number e1, the second limit value E2 as the second allowable hop number e2, and the second limit value E2 and the context search condition. Generate the described search request message.
[Selection] Figure 2

Description

本発明は、コンテキスト検索方法およびシステムに係り、特に、コンテキスト検索のメッセージに許容ホップ数が設定されるコンテキスト検索方法およびシステムに関する。   The present invention relates to a context search method and system, and more particularly to a context search method and system in which an allowable hop count is set in a context search message.

ピアツーピアネットワーク上でコンテキスト検索を行う検索元ピアノードが、コンテキスト検索条件の記述された検索要求メッセージを、許容ホップ数等の制約を設けてブロードキャストで送信し、この検索要求メッセージを受信したピアノードのコンテキストが検索条件を満足すると、検索元ピアノードに対して検索応答メッセージを返信するコンテキスト検索の手法が非特許文献1に開示されている。   A search source peer node that performs a context search on a peer-to-peer network transmits a search request message in which a context search condition is described by broadcasting with restrictions such as the allowable number of hops, and the context of the peer node that has received the search request message is A non-patent document 1 discloses a context search method for returning a search response message to a search source peer node when a search condition is satisfied.

Y. Chawathe, S. Ratnasamy, L. Breslau, and S. Shenker, "Making Gnutella-like P2P Systems Scalable", ACM SIGCOMM 2003.Y. Chawathe, S. Ratnasamy, L. Breslau, and S. Shenker, "Making Gnutella-like P2P Systems Scalable", ACM SIGCOMM 2003.

上記の従来技術には、以下のような技術課題があった。
(1)コンテキスト検索要求メッセージは、許容ホップ数の範囲内であればブロードキャスト転送されるので、検索要求メッセージの転送数が増加してしまう。
(2)コンテキスト検索条件を満足するピアが、検索要求メッセージに対して個別に検索応答メッセージを返信するので、検索応答メッセージの転送数が増加してしまう。
The above prior art has the following technical problems.
(1) Since the context search request message is broadcast-transmitted within the range of the allowable hop count, the transfer count of the search request message increases.
(2) Since peers that satisfy the context search condition individually return search response messages in response to search request messages, the number of search response message transfers increases.

本発明の目的は、上記した従来技術の課題を解決し、検索要求メッセージの転送数や、これに対する検索応答メッセージの転送数を効率よく動的に削減できるコンテキスト検索方法およびシステムを提供することにある。   An object of the present invention is to provide a context search method and system capable of solving the above-described problems of the prior art and efficiently and dynamically reducing the number of search request messages transferred and the number of search response messages transferred thereto. is there.

上記の目的を達成するために、本発明は、コンテキスト検索の検索元ピアが検索要求メッセージを送信し、検索対象の各ピアが、受信した検索要求メッセージを所定の制限下で他のピアへ中継すると共に、自身が検索条件を満足すれば検索応答メッセージを返信するピアツーピア型のコンテキスト検索システムにおいて、以下のような手段を講じた点に特徴がある。   In order to achieve the above object, according to the present invention, a search source peer of a context search transmits a search request message, and each peer to be searched relays the received search request message to other peers under a predetermined restriction. In addition, the peer-to-peer type context search system that returns a search response message if it satisfies the search conditions is characterized by the following measures.

(1)検索元ピアが、検索要求メッセージのホップ数を制限するための第1および第2制限値を、第1制限値が第2制限値よりも大きくなるように設定する手段と、第1制限値が第1許容ホップ数として記述され、前記第2制限値が第2許容ホップ数として記述され、さらに前記第2制限値およびコンテキスト検索条件の記述された検索要求メッセージを生成する手段と、検索要求メッセージを検索対象のピアへ送信する手段とを具備し、   (1) means for the search source peer to set first and second limit values for limiting the number of hops of the search request message so that the first limit value is larger than the second limit value; Means for generating a search request message in which a limit value is described as a first allowable hop number, the second limit value is described as a second allowable hop number, and the second limit value and a context search condition are described; Means for transmitting a search request message to a peer to be searched,

検索対象の各ピアが、検索要求メッセージを受信する手段と、受信した検索要求メッセージに記述されたコンテキスト検索条件を自ピアが満足するか否かを判定する手段と、検索条件を満足しない検索要求メッセージに記述された第1および第2許容ホップ数に基づいて、当該検索要求メッセージを中継するか否かを決定する手段と、中継しないと決定された、検索条件を満足しない検索要求メッセージを破棄する手段と、中継すると決定された、検索条件を満足しない検索要求メッセージの第1および第2許容ホップ数をデクリメントする手段と、検索条件を満足する検索要求メッセージに対して検索応答メッセージを返信する手段と、検索条件を満足する検索要求メッセージの第2許容ホップ数を第2制限値に初期化する手段と、検索条件を満足する検索要求メッセージの第1許容ホップ数に基づいて、当該検索要求メッセージを中継するか否かを決定する手段と、中継しないと決定された、検索条件を満足する検索要求メッセージを破棄する手段と、中継すると決定された、検索条件を満足する検索要求メッセージの第1許容ホップ数をデクリメントする手段と、前記第1許容ホップ数がデクリメントされ、第2許容ホップ数が初期化された検索要求メッセージを中継する手段とを具備し、   A means for each search target peer to receive a search request message, a means to determine whether or not its peer satisfies the context search condition described in the received search request message, and a search request that does not satisfy the search condition Based on the first and second allowable hop numbers described in the message, means for determining whether or not to relay the search request message, and discarding the search request message that is determined not to be relayed and does not satisfy the search condition A means for decrementing, a means for decrementing the first and second allowable hop counts of the search request message that does not satisfy the search condition, which are determined to be relayed, and a search response message in response to the search request message that satisfies the search condition Means for initializing a second allowable hop number of a search request message satisfying the search condition to a second limit value; Based on the first allowable hop number of a search request message that satisfies the above-mentioned criteria, a means for determining whether or not to relay the search request message, and a search request message that satisfies the search condition that is determined not to be relayed are discarded. Means for decrementing a first allowable hop number of a search request message satisfying a search condition determined to be relayed, and a search in which the first allowable hop number is decremented and a second allowable hop number is initialized. Means for relaying the request message,

検索元ピアがさらに、各検索対象のピアから返信される検索応答メッセージを受信する手段を具備したことを特徴とする。   The search source peer further includes means for receiving a search response message returned from each search target peer.

(2)検索元ピアがさらに、検索応答メッセージの受信期間に対応したタイマ値を検索要求メッセージに記述する手段と、タイマ値の記述された検索要求メッセージの送信に応答して前記タイマ値の計時を開始する手段とをさらに具備し、   (2) The search source peer further describes a timer value corresponding to the reception period of the search response message in the search request message, and counts the timer value in response to transmission of the search request message in which the timer value is described. And means for initiating

検索対象ピアがさらに、検索条件を満足する検索要求メッセージを中継する際に、そのタイマ値を短縮する手段と、検索条件を満足してタイマ値を短縮された検索要求メッセージの中継に応答して、当該短縮されたタイマ値の計時を開始する手段と、タイマ値の計時が完了するまでに受信された検索応答メッセージおよび自身の検索応答メッセージを集約し、一つの検索応答メッセージにまとめて返信する手段とを具備し、   When the search target peer further relays a search request message that satisfies the search condition, a means for shortening the timer value, and in response to relaying the search request message that satisfies the search condition and the timer value is shortened The means for starting the time measurement of the shortened timer value, the search response message received until the timer time measurement is completed, and the own search response message are aggregated and returned as a single search response message. Means,

前記検索元ピアは、タイマ値の計時が完了するまで検索応答メッセージの受信を継続することを特徴とする。   The search source peer may continue to receive a search response message until the timer value is measured.

本発明によれば、以下のような効果が達成される。   According to the present invention, the following effects are achieved.

(1)検索要求メッセージに設定された許容ホップ数が、コンテキスト検索条件を満足するピアおよびその近傍のピアでは、それ以外のピアおよびその近傍のピアよりも緩和されるので、コンテキストの一致するピア同士が近接するネットワークトポロジであれば、コンテキスト検索条件を満足するピアへ到達する可能性の高いメッセージのホップ数を、コンテキスト検索条件を満足するピアへ到達する可能性の低いメッセージのホップ数よりも長くできる。   (1) Since the number of allowable hops set in the search request message is more relaxed in peers that satisfy the context search condition and in the neighboring peers than in other peers and neighboring peers, peers with matching contexts If the network topology is close to each other, the number of message hops that are likely to reach peers that satisfy the context search condition is less than the number of message hops that are less likely to reach peers that satisfy the context search condition. Can be long.

(2)コンテキスト検索条件を満足するピアは、自ピアが中継した検索要求メッセージに対して返信されて自ピアで中継する各検索応答メッセージを、自ピアの検索応答メッセージと共に集約して中継するので、検索応答メッセージの転送数を削減できるようになる。   (2) A peer that satisfies the context search condition aggregates and relays the search response messages that are replied to the search request message relayed by the peer and relayed by the peer together with the search response message of the peer. The number of search response messages transferred can be reduced.

本発明が適用されるピアツーピアネットワークの一例を示した図である。It is the figure which showed an example of the peer to peer network to which this invention is applied. 第1実施形態に係る検索元ピアの構成を示した機能ブロック図である。It is the functional block diagram which showed the structure of the search origin peer which concerns on 1st Embodiment. 第1実施形態に係る検索対象ピアの構成を示した機能ブロック図である。It is the functional block diagram which showed the structure of the search object peer which concerns on 1st Embodiment. 第1実施形態における検索元ピアの動作を示したフローチャートである。It is the flowchart which showed the operation | movement of the search origin peer in 1st Embodiment. 第1実施形態における各検索対象ピアの動作を示したフローチャートである。It is the flowchart which showed operation | movement of each search object peer in 1st Embodiment. 第2実施形態に係る検索元ピアの構成を示した機能ブロック図である。It is the functional block diagram which showed the structure of the search origin peer which concerns on 2nd Embodiment. 第2実施形態に係る検索対象ピアの構成を示した機能ブロック図である。It is the functional block diagram which showed the structure of the search object peer which concerns on 2nd Embodiment. 第2実施形態における検索元ピアの動作を示したフローチャートである。It is the flowchart which showed the operation | movement of the search origin peer in 2nd Embodiment. 第2実施形態における各検索対象ピアの動作を示したフローチャートである。It is the flowchart which showed operation | movement of each search object peer in 2nd Embodiment.

以下、図面を参照して本発明の最良の実施形態について詳細に説明する。図1は、本発明が適用されるピアツーピアネットワークの一例を示した図であり、黒丸印は、コンテキスト検索条件の記述された検索要求メッセージを送信してコンテキスト検索を実行する検索元ピアPsを表している。斜線丸印は、検索条件を満足するピアPdiを表し、白丸印は、検索条件を満足しないピアPtjを表している。   Hereinafter, the best embodiment of the present invention will be described in detail with reference to the drawings. FIG. 1 is a diagram showing an example of a peer-to-peer network to which the present invention is applied. A black circle represents a search source peer Ps that transmits a search request message in which a context search condition is described and executes a context search. ing. The hatched circle represents a peer Pdi that satisfies the search condition, and the white circle represents a peer Ptj that does not satisfy the search condition.

図2は、前記検索元ピアPsの主要部の構成を示した機能ブロック図であり、ここでは、本発明の説明に不要な構成は図示が省略されている。   FIG. 2 is a functional block diagram showing the configuration of the main part of the search source peer Ps. Here, the configuration unnecessary for the description of the present invention is omitted.

ホップ数制限値設定部104は、検索要求メッセージのホップ数を制限することで検索要求メッセージの転送数を抑制するための第1および第2制限値を設定する。第1制限値E1は、ホップ数の絶対的な制限値であり、本実施形態では、当該第1制限値E1を超えて検索要求メッセージが転送されることはない。第2制限値E2は、前記第1制限値E1よりも小さな値に設定されるが、検索要求メッセージを受信した検索対象ピアがコンテキスト条件を満足していると初期化される。当該第1および第2制限値E1,E2の機能については、後に詳述する。   The hop number limit value setting unit 104 sets first and second limit values for suppressing the number of search request message transfers by limiting the number of hops of the search request message. The first limit value E1 is an absolute limit value of the number of hops. In the present embodiment, the search request message is not transferred beyond the first limit value E1. The second limit value E2 is set to a value smaller than the first limit value E1, but is initialized when the search target peer that has received the search request message satisfies the context condition. The functions of the first and second limit values E1 and E2 will be described in detail later.

検索条件設定部105は、多数の検索対象ピアの中から目的のピアを検索するためのコンテキスト検索条件Xを設定する。検索要求生成部106は、前記第1制限値E1が第1許容ホップ数e1として記述され、前記第2制限値E2が第2許容ホップ数e2として記述され、さらに前記第2制限値E2およびコンテキスト検索条件Xの記述された検索要求メッセージを生成する。当該検索要求メッセージは、検索要求送信部102から通信インターフェース101を介して各検索対象ピアへブロードキャストで送信される。   The search condition setting unit 105 sets a context search condition X for searching for a target peer from among a large number of search target peers. The search request generation unit 106 describes the first limit value E1 as the first allowable hop number e1, the second limit value E2 as the second allowable hop number e2, and the second limit value E2 and the context. A search request message in which the search condition X is described is generated. The search request message is broadcast from the search request transmission unit 102 to each search target peer via the communication interface 101.

検索応答受信部103は、前記検索要求メッセージを受信した検索対象ピアのうち、前記コンテキスト条件を満足するピアPdiから返信される検索応答メッセージを前記通信インターフェース101経由で受信する。検索応答処理部107は、受信された検索応答メッセージに基づいて、コンテキスト検索条件を満足するピアを識別する。   The search response receiving unit 103 receives, via the communication interface 101, a search response message returned from the peer Pdi that satisfies the context condition among the search target peers that have received the search request message. The search response processing unit 107 identifies a peer that satisfies the context search condition based on the received search response message.

図3は、前記検索対象ピアPdi,Ptjの主要部の構成を示した機能ブロック図であり、ここでも、本発明の説明に不要な構成は図示が省略されている。   FIG. 3 is a functional block diagram showing the configuration of the main part of the search target peers Pdi and Ptj. Here, the configuration unnecessary for the description of the present invention is also omitted.

検索要求受信部202は、前記検索元ピアPsから送信された、あるいは他の検索対象ピアにより中継された検索要求メッセージを通信インターフェース201経由で受信する。検索条件判定部206は、受信した検索要求メッセージに記述されているコンテキスト検索条件Xと自ピアのコンテキストデータベース210に登録されているコンテキストとを比較・照合し、自ピアがコンテキスト検索条件を満足しているか否かを判定する。   The search request receiving unit 202 receives a search request message transmitted from the search source peer Ps or relayed by another search target peer via the communication interface 201. The search condition determining unit 206 compares and collates the context search condition X described in the received search request message with the context registered in the context database 210 of the own peer, and the own peer satisfies the context search condition. It is determined whether or not.

中継判定部207は、受信した検索要求メッセージを他のピアへさらに中継するか否かを、当該検索要求メッセージに記述されている第1および第2許容ホップ数e1,e2ならびに自ピアが検索条件を満足しているか否かに基づいて判定する。メッセージ破棄部208は、中継しないと判定された検索要求メッセージを破棄する   The relay determination unit 207 determines whether the received search request message is further relayed to other peers based on whether the first and second allowable hop numbers e1 and e2 described in the search request message and the own peer are search conditions. It is determined based on whether or not the above is satisfied. The message discard unit 208 discards the search request message determined not to be relayed

メッセージ更新部209は、中継する検索要求メッセージの第1許容ホップ数e1を更新(デクリメント)する更新部209a、第2許容ホップ数e2を更新(デクリメント)する更新部209b、および第2許容ホップ数e2を初期化して第2制限値E1に戻す初期化部209cを含む。更新された検索要求メッセージは、検索要求中継部204から通信インターフェース201経由で他のピアへ中継される。検索応答中継部203は、前記中継した検索要求メッセージに対して返信される検索応答メッセージを中継する。検索応答返信部205は、自ピアがコンテキスト検索条件を満足するときに検索応答メッセージを返信する。   The message update unit 209 includes an update unit 209a that updates (decrements) the first allowable hop number e1 of the search request message to be relayed, an update unit 209b that updates (decrements) the second allowable hop number e2, and a second allowable hop number. An initialization unit 209c that initializes e2 and returns it to the second limit value E1 is included. The updated search request message is relayed from the search request relay unit 204 to another peer via the communication interface 201. The search response relay unit 203 relays a search response message returned in response to the relayed search request message. The search response reply unit 205 returns a search response message when the peer satisfies the context search condition.

次いで、フローチャートを参照して、本発明の第1実施形態の動作を詳細に説明する。図4は、前記検索元ピアPsの動作を示したフローチャートであり、図5は、前記各検索対象ピアの動作を示したフローチャートである。   Next, the operation of the first embodiment of the present invention will be described in detail with reference to the flowchart. FIG. 4 is a flowchart showing the operation of the search source peer Ps, and FIG. 5 is a flowchart showing the operation of each search target peer.

検索元ピアPsでは、図4のステップS101において、検索要求メッセージのホップ数を制限するための第1制限値E1および第2制限値E2が前記ホップ数制限値設定部104により設定される。本実施形態では、第1制限値E1として「5」が設定され、第2制限値E2として「2」が設定されたものとして説明を続ける。ステップS102では、前記検索条件設定部105によりコンテキスト検索条件Xが設定される。   In the search source peer Ps, the first limit value E1 and the second limit value E2 for limiting the hop number of the search request message are set by the hop number limit value setting unit 104 in step S101 of FIG. In the present embodiment, the description will be continued assuming that “5” is set as the first limit value E1 and “2” is set as the second limit value E2. In step S102, the search condition setting unit 105 sets a context search condition X.

ステップS103では、前記検索要求生成部106により、前記第1制限値E1が第1許容ホップ数e1として記述され、前記第2制限値E2が第2許容ホップ数e2として記述され、さらに前記第2制限値E2およびコンテキスト検索条件Xの記述された検索要求メッセージが生成される。ステップS104では、前記検索要求送信部102により検索要求メッセージがブロードキャスト送信される。   In step S103, the search request generation unit 106 describes the first limit value E1 as the first allowable hop number e1, the second limit value E2 as the second allowable hop number e2, and the second limit value E2. A search request message in which the limit value E2 and the context search condition X are described is generated. In step S104, the search request transmission unit 102 broadcasts a search request message.

図5へ進み、各検索対象ピアPdi,Ptjは、ステップS201において前記検索要求メッセージが検索要求受信部202で受信されるとステップS202へ進み、同一の検索要求メッセージを既に別経路で受信済みであるか否かが判定される。受信済みであればステップS230へ進み、前記メッセージ破棄部208により当該検索要求メッセージが破棄される。   Proceeding to FIG. 5, each search target peer Pdi, Ptj proceeds to step S202 when the search request message is received by the search request receiving unit 202 in step S201, and has already received the same search request message via another route. It is determined whether or not there is. If it has been received, the process proceeds to step S230, and the message discarding unit 208 discards the search request message.

これに対して、最初の検索要求メッセージであればステップS203へ進み、前記検索条件判定部206により、当該検索要求メッセージに記述されたコンテキスト検索条件を自ピアが満足しているか否かが判定される。図1のピアPt0,Pt1,Pt2であれば、検索条件を満足していないと判定されるのでステップS220へ進み、前記メッセージ更新部209により、第2許容ホップ数e2が「1」だけデクリメントされる。すなわち、第2許容ホップ数e2が初期値の「2」から「1」に更新される。   On the other hand, if it is the first search request message, the process proceeds to step S203, and the search condition determination unit 206 determines whether or not the own peer satisfies the context search condition described in the search request message. The If it is determined that the peers Pt0, Pt1, and Pt2 in FIG. 1 do not satisfy the search condition, the process proceeds to step S220, and the message update unit 209 decrements the second allowable hop number e2 by “1”. The That is, the second allowable hop number e2 is updated from the initial value “2” to “1”.

ステップS221では、更新後の第2許容ホップ数e2が「0」であるか否かが、前記中継判定部207により判定され、ここでは「0」以外と判定されるのでステップS222へ進む。ステップS222では、前記メッセージ更新部209により、第1許容ホップ数e1が「1」だけデクリメントされる。すなわち、第1許容ホップ数e1が「5」から「4」に更新される。   In step S221, whether or not the updated second allowable hop number e2 is “0” is determined by the relay determination unit 207. Here, since it is determined other than “0”, the process proceeds to step S222. In step S222, the message update unit 209 decrements the first allowable hop number e1 by “1”. That is, the first allowable hop number e1 is updated from “5” to “4”.

ステップS223では、更新後の第1許容ホップ数e1が「0」であるか否かが前記中継判定部207により判定され、ここでは「0」以外と判定されるのでステップS224へ進む。ステップS224では、前記第1許容ホップ数e1=4,第2許容ホップ数e2=1に更新された検索要求メッセージが、前記検索要求中継部204により他のピアへ中継される。   In step S223, the relay determination unit 207 determines whether or not the updated first allowable hop number e1 is “0”. Here, since it is determined other than “0”, the process proceeds to step S224. In step S224, the search request message updated to the first allowable hop number e1 = 4 and the second allowable hop number e2 = 1 is relayed by the search request relay unit 204 to another peer.

ステップS225では、前記中継した検索要求メッセージに対する検索応答メッセージが前記検索応答中継部203により受信されたか否かが判定される。受信が検知されるとステップS226へ進み、当該検索応答メッセージが中継される。このような検索応答メッセージの中継処理は、ステップS227で所定の待機時間がタイムアウトしたと判定されるまで継続される。   In step S225, it is determined whether or not a search response message for the relayed search request message has been received by the search response relay unit 203. When reception is detected, the process proceeds to step S226, and the search response message is relayed. Such a relay process of the search response message is continued until it is determined in step S227 that the predetermined waiting time has timed out.

次いで、検索条件を満足しないピアPt3に注目して説明する。ピアPt3は、ステップS201において、ピアPt0で中継された検索要求メッセージを受信するとステップS202へ進み、これが最初の検索要求メッセージであればステップS203へ進む。ステップS203では、前記検索条件判定部206により検索条件を満足していないと判定されるのでステップS220へ進み、前記メッセージ更新部209により、第2許容ホップ数e2が「1」だけデクリメントされる。すなわち、第2許容ホップ数e2が「1」から「0」に更新される。ステップS221では、更新後の第2許容ホップ数e2が「0」と判定されるのでステップS230へ進み、当該検索要求メッセージが破棄される。   Next, a description will be given focusing on the peer Pt3 that does not satisfy the search condition. In step S201, the peer Pt3 receives the search request message relayed by the peer Pt0, and proceeds to step S202. If this is the first search request message, the peer Pt3 proceeds to step S203. In step S203, since the search condition determination unit 206 determines that the search condition is not satisfied, the process proceeds to step S220, and the message update unit 209 decrements the second allowable hop number e2 by “1”. That is, the second allowable hop number e2 is updated from “1” to “0”. In step S221, the updated second allowable hop number e2 is determined to be “0”, so the process proceeds to step S230, and the search request message is discarded.

次いで、検索条件を満足するピアPd0に注目して説明する。ピアPd0は、ステップS201において、ピアPt0で中継された検索要求メッセージを受信するとステップS202へ進み、これが最初の検索要求メッセージであればステップS203へ進む。ステップS203では、前記検索条件判定部206によりコンテキスト検索条件を満足していると判定されるのでステップS204へ進み、前記メッセージ更新部209により、第2許容ホップ数e2が初期化されて第2制限値E2(=2)に戻される。   Next, description will be made by paying attention to the peer Pd0 that satisfies the search condition. When the peer Pd0 receives the search request message relayed by the peer Pt0 in step S201, the process proceeds to step S202. If this is the first search request message, the process proceeds to step S203. In step S203, since the search condition determination unit 206 determines that the context search condition is satisfied, the process proceeds to step S204, and the message update unit 209 initializes the second allowable hop number e2 and the second restriction. The value is returned to E2 (= 2).

ステップS205では、前記メッセージ更新部209により、第1許容ホップ数e1が「1」だけデクリメントされる。すなわち、第1許容ホップ数e1が「4」から「3」に更新される。ステップS206では、更新後の第1許容ホップ数e1が「0」であるか否かが、前記中継判定部207により判定され、ここでは「0」以外と判定されるのでステップS207へ進む。ステップS207では、前記第1許容ホップ数e1=3,第2許容ホップ数e2=2に更新された検索要求メッセージが前記検索要求中継部204により送信される。   In step S205, the message update unit 209 decrements the first allowable hop number e1 by “1”. That is, the first allowable hop number e1 is updated from “4” to “3”. In step S206, whether or not the updated first allowable hop number e1 is “0” is determined by the relay determination unit 207. Here, since it is determined that it is other than “0”, the process proceeds to step S207. In step S207, the search request relay unit 204 transmits the search request message updated to the first allowable hop number e1 = 3 and the second allowable hop number e2 = 2.

ステップS208では、前記検索応答返信部205により自ピアの検索応答メッセージが生成されて返信される。ステップS209では、前記ステップS207で中継した検索要求メッセージに対する検索応答メッセージが前記検索応答中継部203により受信されたか否かが判定される。受信が検知されるとステップS210へ進み、当該検索応答メッセージが中継される。この検索応答メッセージの中継処理は、ステップS211で所定の待機時間がタイムアウトしたと判定されるまで継続される。   In step S208, the search response reply unit 205 generates and returns a search response message of its own peer. In step S209, it is determined whether a search response message for the search request message relayed in step S207 has been received by the search response relay unit 203. When reception is detected, the process proceeds to step S210, and the search response message is relayed. This search response message relay process is continued until it is determined in step S211 that the predetermined waiting time has timed out.

次いで、検索条件を満足しないピアPt10に注目して説明する。ピアPt10は、ステップS201において、ピアPd3で中継された検索要求メッセージを受信するとステップS202へ進み、これが最初の検索要求メッセージであればステップS203へ進む。ステップS203では、前記検索条件判定部206により検索条件を満足していないと判定されるのでステップS220へ進み、前記メッセージ更新部209により、第2許容ホップ数e2が「1」だけデクリメントされる。すなわち、第2許容ホップ数e2が「2」から「1」に更新される。   Next, a description will be given focusing on the peer Pt10 that does not satisfy the search condition. When the peer Pt10 receives the search request message relayed by the peer Pd3 in step S201, the process proceeds to step S202, and if this is the first search request message, the process proceeds to step S203. In step S203, since the search condition determination unit 206 determines that the search condition is not satisfied, the process proceeds to step S220, and the message update unit 209 decrements the second allowable hop number e2 by “1”. That is, the second allowable hop number e2 is updated from “2” to “1”.

ステップS221では、更新後の第2許容ホップ数e2が「0」であるか否かが判定され、ここでは「0」以外と判定されるのでステップS222へ進む。ステップS222では、前記メッセージ更新部209により、第1許容ホップ数e1が「1」だけデクリメントされる。ここでは、第1許容ホップ数e1が「1」から「0」に更新される。ステップS223では、更新後の第1許容ホップ数e1が「0」であるか否かが判定され、ここでは「0」と判定されるのでステップS230へ進み、当該検索要求メッセージが破棄される。   In step S221, it is determined whether or not the updated second allowable hop number e2 is “0”. Here, since it is determined that the number is not “0”, the process proceeds to step S222. In step S222, the message update unit 209 decrements the first allowable hop number e1 by “1”. Here, the first allowable hop number e1 is updated from “1” to “0”. In step S223, it is determined whether or not the updated first allowable hop number e1 is “0”. Here, since it is determined to be “0”, the process proceeds to step S230, and the search request message is discarded.

次いで、検索条件を満足するピアPd4に注目して説明する。ピアPd4は、ステップS201において、ピアPt7で中継された検索要求メッセージを受信するとステップS202へ進み、これが最初の検索要求メッセージであればステップS203へ進む。ステップS203では、前記検索条件判定部206により検索条件を満足していると判定されるのでステップS204へ進み、前記メッセージ更新部209により、第2許容ホップ数e2が初期化されて第2制限値E2(=2)に戻される。この第2制限値E2は検索要求メッセージに記述されているものを用いる。   Next, description will be made by paying attention to the peer Pd4 that satisfies the search condition. In step S201, the peer Pd4 receives the search request message relayed by the peer Pt7, and proceeds to step S202. If this is the first search request message, the peer Pd4 proceeds to step S203. In step S203, since the search condition determination unit 206 determines that the search condition is satisfied, the process proceeds to step S204, where the message update unit 209 initializes the second allowable hop number e2 and sets the second limit value. Return to E2 (= 2). The second limit value E2 is described in the search request message.

ステップS205では、前記メッセージ更新部209により、第1許容ホップ数e1が「1」だけデクリメントされる。すなわち、第1許容ホップ数e1が「1」から「0」に更新される。ステップS206では、更新後の第1許容ホップ数e1が「0」であるか否かが判定され、ここでは「0」と判定されるのでステップS212へ進む。ステップS212では、当該検索要求メッセージが破棄される。ステップS213では、前記検索応答返信部205により自ピアの検索応答メッセージが生成されて返信される。   In step S205, the message update unit 209 decrements the first allowable hop number e1 by “1”. That is, the first allowable hop number e1 is updated from “1” to “0”. In step S206, it is determined whether or not the updated first allowed hop number e1 is “0”. Here, since it is determined to be “0”, the process proceeds to step S212. In step S212, the search request message is discarded. In step S213, the search response reply unit 205 generates a search response message of its own peer and sends it back.

図4へ戻り、検索元ピアPsは、ステップS105において、前記検索応答受信部103により検索応答メッセージが受信されるとステップS106へ進み、当該メッセージの送信元ピアの識別情報がコンテキスト検索結果として取り込まれる。この検索応答メッセージの受信処理は、ステップS107で所定の待機時間がタイムアウトしたと判定されるまで継続される。   Returning to FIG. 4, when the search response message is received by the search response receiving unit 103 in step S105, the search source peer Ps proceeds to step S106, and the identification information of the transmission source peer of the message is captured as a context search result. It is. This search response message reception process is continued until it is determined in step S107 that the predetermined waiting time has timed out.

上記の第1実施形態では、各検索対象ピアは、自身が中継した検索要求メッセージに対して返信される検索応答メッセージを、これが受信されるごとに中継するものとして説明したが、第2実施形態では、各検索対象ピアノードに検索応答メッセージの受信期間を設定し、各検索対象ピアノードは、当該受信期間中に受信された少なくとも一つの検索応答メッセージを集約し、一つの検索応答メッセージにまとめて中継するようにした点に特徴がある。   In the first embodiment described above, each search target peer has been described as relaying a search response message returned in response to a search request message relayed by itself, every time it is received. Then, a search response message reception period is set for each search target peer node, and each search target peer node aggregates at least one search response message received during the reception period, and relays the search response messages together in one search response message. There is a feature in the point made to do.

図6は、本発明の第2実施形態における検索元ピアPsの主要部の構成を示した機能ブロック図であり、前記と同一の符号は同一または同等部分を表している。   FIG. 6 is a functional block diagram showing the configuration of the main part of the search source peer Ps in the second embodiment of the present invention, and the same reference numerals as those described above represent the same or equivalent parts.

受信期間設定部108は、検索元ピアPsおよび各検索対象ピアノードが検索応答メッセージの受信に備えて待機する受信期間Tmを設定する。前記検索要求生成部106は、前記第1制限値E1が第1許容ホップ数e1として記述され、前記第2制限値E2が第2許容ホップ数e2として記述され、さらに前記受信期間Tm、前記第2制限値E2およびコンテキスト検索条件Xの記述された検索要求メッセージを生成する。検索応答受信部103の解体部103aは、複数の検索応答メッセージが集約されたメッセージを解体して各検索応答メッセージを検索応答処理部107へ提供する。   The reception period setting unit 108 sets a reception period Tm that the search source peer Ps and each search target peer node wait for the reception of the search response message. The search request generation unit 106 describes the first limit value E1 as a first allowable hop number e1, the second limit value E2 as a second allowable hop number e2, and further, the reception period Tm, the first 2. A search request message in which the limit value E2 and the context search condition X are described is generated. The disassembly unit 103a of the search response receiving unit 103 disassembles a message in which a plurality of search response messages are aggregated, and provides each search response message to the search response processing unit 107.

図7は、本発明の第2実施形態における検索対象ピアの主要部の構成を示した機能ブロック図であり、前記と同一の符号は同一または同等部分を表している。   FIG. 7 is a functional block diagram showing the configuration of the main part of the search target peer in the second embodiment of the present invention. The same reference numerals as those described above represent the same or equivalent parts.

検索応答中継部203において、一時保持部203aは、所定の受信期間Tm内に受信された全ての検索応答メッセージを一時的に保持する。集約化部203bは、前記受信期間Tm内に受信された全ての検索応答メッセージを集約し、一つのメッセージにまとめて送信元ピア側へ返信する。前記集約化部203bは、たとえば公知のカプセル化によって複数の検索応答メッセージを集約化する。メッセージ更新部209において、受信期間更新部209dは、中継する検索要求メッセージに記述されている受信期間Tmを時短方向に更新する。   In the search response relay unit 203, the temporary storage unit 203a temporarily stores all the search response messages received within a predetermined reception period Tm. The aggregating unit 203b aggregates all the search response messages received within the reception period Tm, and compiles them into one message and sends it back to the source peer. The aggregation unit 203b aggregates a plurality of search response messages by, for example, known encapsulation. In the message update unit 209, the reception period update unit 209d updates the reception period Tm described in the search request message to be relayed in the shorter time direction.

次いで、フローチャートを参照して、本発明の第2実施形態の動作を詳細に説明する。図8は、前記検索元ピアPsの動作を示したフローチャートであり、図9は、前記各検索対象ピアの動作を示したフローチャートである。   Next, the operation of the second exemplary embodiment of the present invention will be described in detail with reference to the flowchart. FIG. 8 is a flowchart showing the operation of the search source peer Ps, and FIG. 9 is a flowchart showing the operation of each search target peer.

検索元ピアPsでは、図8のステップS101において、検索要求メッセージのホップ数を制限するための第1制限値E1および第2制限値E2が前記ホップ数制限値設定部104により設定される。本実施形態では、第1制限値E1として「5」が設定され、第2制限値E2として「2」が設定されたものとして説明を続ける。ステップS101aでは、前記受信期間設定部108により、検索応答メッセージの受信期間Tmが設定される。ステップS102では、前記検索条件設定部105によりコンテキスト検索条件が設定される。   In the search source peer Ps, the first limit value E1 and the second limit value E2 for limiting the number of hops of the search request message are set by the hop number limit value setting unit 104 in step S101 of FIG. In the present embodiment, the description will be continued assuming that “5” is set as the first limit value E1 and “2” is set as the second limit value E2. In step S101a, the reception period setting unit 108 sets a search response message reception period Tm. In step S102, the search condition setting unit 105 sets a context search condition.

ステップS103では、前記検索要求生成部106により、前記第1制限値E1が第1許容ホップ数e1として記述され、前記第2制限値E2が第2許容ホップ数e2として記述され、さらに前記受信期間Tm,前記第2制限値E2およびコンテキスト検索条件Xの記述された検索要求メッセージが生成される。ステップS104では、前記検索要求送信部102により検索要求メッセージが送信される。ステップS104aでは、前記受信期間Tmのタイマがスタートする。   In step S103, the search request generation unit 106 describes the first limit value E1 as the first allowable hop number e1, the second limit value E2 as the second allowable hop number e2, and the reception period. A search request message in which Tm, the second limit value E2, and the context search condition X are described is generated. In step S104, the search request transmission unit 102 transmits a search request message. In step S104a, a timer for the reception period Tm is started.

図9へ進み、各検索対象ピアは、ステップS201において前記検索要求メッセージが検索要求受信部202で受信されるとステップS202へ進み、同一の検索要求メッセージを既に別経路で受信済みであるか否かが判定される。受信済みであればステップS230へ進み、前記メッセージ破棄部208により当該検索要求メッセージが破棄される。   Proceeding to FIG. 9, each search target peer proceeds to step S202 when the search request message is received by the search request receiving unit 202 in step S201, and whether or not the same search request message has already been received through another route. Is determined. If it has been received, the process proceeds to step S230, and the message discarding unit 208 discards the search request message.

これに対して、最初の検索要求メッセージであればステップS203へ進み、前記検索条件判定部206により、当該検索要求メッセージに記述されたコンテキスト検索条件を自ノードが満足しているか否かが判定される。図5のピアPt0,Pt1,Pt2であれば、検索条件を満足していないと判定されるとステップS220へ進み、前記メッセージ更新部209により、第2許容ホップ数e2が「1」だけデクリメントされる。すなわち、第2許容ホップ数e2が初期値の「2」から「1」に更新される。   On the other hand, if it is the first search request message, the process proceeds to step S203, and the search condition determination unit 206 determines whether or not the own node satisfies the context search condition described in the search request message. The For the peers Pt0, Pt1, and Pt2 in FIG. 5, if it is determined that the search condition is not satisfied, the process proceeds to step S220, and the message update unit 209 decrements the second allowable hop number e2 by “1”. The That is, the second allowable hop number e2 is updated from the initial value “2” to “1”.

ステップS221では、更新後の第2許容ホップ数e2が「0」であるか否かが判定され、ここでは「0」以外と判定されるのでステップS222へ進み、前記メッセージ更新部209により、第1許容ホップ数e1が「1」だけデクリメントされる。すなわち、第1許容ホップ数e1が「5」から「4」に更新される。ステップS223では、更新後の第1許容ホップ数e1が「0」であるか否かが判定され、ここでは「0」以外と判定されるのでステップS224へ進む。ステップS224では、前記第1許容ホップ数e1=4,第2許容ホップ数e2=1に更新された検索要求メッセージが、前記検索要求中継部204により中継される。   In step S221, it is determined whether or not the updated second allowable hop number e2 is “0”. Here, since it is determined that the number is not “0”, the process proceeds to step S222, and the message update unit 209 determines One allowable hop number e1 is decremented by “1”. That is, the first allowable hop number e1 is updated from “5” to “4”. In step S223, it is determined whether or not the updated first allowable hop number e1 is “0”. Here, since it is determined that the number is not “0”, the process proceeds to step S224. In step S224, the search request message updated to the first allowable hop number e1 = 4 and the second allowable hop number e2 = 1 is relayed by the search request relay unit 204.

ステップS225では、前記中継した検索要求メッセージに対する検索応答メッセージが前記検索応答中継部203により受信されたか否かが判定される。受信が検知されるとステップS226へ進み、当該検索応答メッセージが中継される。この検索応答メッセージの中継処理は、ステップS227で所定の待機時間がタイムアウトしたと判定されるまで継続される。   In step S225, it is determined whether or not a search response message for the relayed search request message has been received by the search response relay unit 203. When reception is detected, the process proceeds to step S226, and the search response message is relayed. This search response message relay process is continued until it is determined in step S227 that the predetermined waiting time has timed out.

次いで、検索条件を満足するピアPd0に注目して説明する。ピアPd0は、ステップS201において、ピアPt0で中継された検索要求メッセージを受信するとステップS202へ進み、これが最初の検索要求メッセージであればステップS203へ進む。ステップS203では、前記検索条件判定部206により検索条件を満足していると判定されるのでステップS204へ進み、前記メッセージ更新部209により、第2許容ホップ数e2が初期化されて第2制限値E2(=2)に戻される。   Next, description will be made by paying attention to the peer Pd0 that satisfies the search condition. When the peer Pd0 receives the search request message relayed by the peer Pt0 in step S201, the process proceeds to step S202. If this is the first search request message, the process proceeds to step S203. In step S203, since the search condition determination unit 206 determines that the search condition is satisfied, the process proceeds to step S204, where the message update unit 209 initializes the second allowable hop number e2 and sets the second limit value. Return to E2 (= 2).

ステップS205では、前記メッセージ更新部209により、第1許容ホップ数e1が「1」だけデクリメントされる。すなわち、第1許容ホップ数e1が「4」から「3」に更新される。ステップS206では、更新後の第1許容ホップ数e1が「0」であるか否かが判定され、ここでは「0」以外と判定されるのでステップS206aへ進む。   In step S205, the message update unit 209 decrements the first allowable hop number e1 by “1”. That is, the first allowable hop number e1 is updated from “4” to “3”. In step S206, it is determined whether or not the updated first allowable hop number e1 is “0”. Here, since it is determined other than “0”, the process proceeds to step S206a.

ステップS206aでは、前記メッセージ更新部209により、受信期間Tmが所定時間Δtだけ短縮される。ステップS207では、前記第1許容ホップ数e1=3,第2許容ホップ数e2=2、受信期間Tm=Tm−Δtに更新された検索要求メッセージが、前記検索要求中継部204により送信される。ステップS207aでは、前記更新された受信期間Tmのタイマがスタートする。   In step S206a, the message update unit 209 shortens the reception period Tm by a predetermined time Δt. In step S207, the search request relay unit 204 transmits the search request message updated to the first allowable hop number e1 = 3, the second allowable hop number e2 = 2, and the reception period Tm = Tm−Δt. In step S207a, the timer of the updated reception period Tm starts.

ステップS209では、前記ステップS207で中継した検索要求メッセージに対する検索応答メッセージが前記検索応答中継部203により受信されたか否かが判定される。受信が検知されるとステップS209aへ進んで一時的に保持される。ステップS211では、前記タイマがタイムアウトしたか否かが判定され、タイムアウトするまでは、ステップS209へ戻って次の検索応答メッセージの受信に備える。   In step S209, it is determined whether a search response message for the search request message relayed in step S207 has been received by the search response relay unit 203. When reception is detected, the process proceeds to step S209a and temporarily held. In step S211, it is determined whether or not the timer has timed out. Until the time is up, the process returns to step S209 to prepare for reception of the next search response message.

ステップS211においてタイムアウトが検知されるとステップS211aへ進む。ステップS211aでは、前記受信期間Tm内に受信された全ての検索応答メッセージが一つの検索応答メッセージに集約される。ステップS211bでは、前記集約されて一つになった検索応答メッセージが返信される。   If a timeout is detected in step S211, the process proceeds to step S211a. In step S211a, all search response messages received within the reception period Tm are collected into one search response message. In step S211b, the aggregated search response message is returned.

図8へ戻り、検索元ピアPsは、ステップS105において、前記集約されて一つにまとめられた検索応答メッセージが受信されるとステップS105aへ進み、当該メッセージが解体されて各検索応答メッセージが抽出される。ステップS106では、各検索応答メッセージの送信元ピアの識別情報がコンテキスト検索結果として取り込まれる。この検索応答メッセージの受信処理は、ステップS107で受信期間Tmがタイムアウトしたと判定されるまで継続される。   Returning to FIG. 8, in step S105, the search source peer Ps receives the aggregated and combined search response message, and proceeds to step S105a, where the search message is disassembled and each search response message is extracted. Is done. In step S106, the identification information of the transmission source peer of each search response message is captured as a context search result. This search response message reception process is continued until it is determined in step S107 that the reception period Tm has timed out.

101…通信インターフェース,102…検索要求送信部,103…検索応答受信部,104…ホップ数制限値設定部,105…検索条件設定部,106…検索要求生成部,107…検索応答処理部,201…通信インターフェース,202…検索要求受信部,203…検索応答中継部,204…検索要求中継部,205…検索応答返信部,206…検索条件判定部,207…中継判定部,208…メッセージ破棄部,209…メッセージ更新部,210…コンテキストデータベース   DESCRIPTION OF SYMBOLS 101 ... Communication interface, 102 ... Search request transmission part, 103 ... Search response reception part, 104 ... Hop number limit value setting part, 105 ... Search condition setting part, 106 ... Search request generation part, 107 ... Search response process part, 201 ... Communication interface, 202 ... Search request receiving unit, 203 ... Search response relay unit, 204 ... Search request relay unit, 205 ... Search response reply unit, 206 ... Search condition determination unit, 207 ... Relay determination unit, 208 ... Message discard unit 209: Message update unit 210: Context database

Claims (4)

コンテキスト検索の検索元ピアが検索要求メッセージを送信し、検索対象の各ピアが、受信した検索要求メッセージを所定の制限下で他のピアへ中継すると共に、自身が検索条件を満足すれば検索応答メッセージを返信するピアツーピア型のコンテキスト検索方法において、
検索元ピアが、
検索要求メッセージのホップ数を制限するための第1および第2制限値を、第1制限値が第2制限値よりも大きくなるように設定する手順と、
前記第1制限値が第1許容ホップ数として記述され、前記第2制限値が第2許容ホップ数として記述され、さらに前記第2制限値およびコンテキスト検索条件の記述された検索要求メッセージを生成する手順と、
前記検索要求メッセージを検索対象のピアへ送信する手順とを具備し、
検索対象の各ピアが、
検索要求メッセージを受信する手順と、
受信した検索要求メッセージに記述されたコンテキスト検索条件を自ピアが満足するか否かを判定する手順と、
検索条件を満足しない検索要求メッセージに記述された第1および第2許容ホップ数に基づいて、当該検索要求メッセージを中継するか否かを決定する手順と、
中継しないと決定された、検索条件を満足しない検索要求メッセージを破棄する手順と、
中継すると決定された、検索条件を満足しない検索要求メッセージの第1および第2許容ホップ数をデクリメントする手順と、
検索条件を満足する検索要求メッセージに対して検索応答メッセージを返信する手順と、
検索条件を満足する検索要求メッセージの第2許容ホップ数を第2制限値に初期化する手順と、
検索条件を満足する検索要求メッセージの第1許容ホップ数に基づいて、当該検索要求メッセージを中継するか否かを決定する手順と、
中継しないと決定された、検索条件を満足する検索要求メッセージを破棄する手順と、
中継すると決定された、検索条件を満足する検索要求メッセージの第1許容ホップ数をデクリメントする手順と、
前記第1許容ホップ数がデクリメントされ、第2許容ホップ数が初期化された検索要求メッセージを中継する手順とを具備し、
前記検索元ピアがさらに、
前記各検索対象のピアから返信される検索応答メッセージを受信する手順を具備したことを特徴とするコンテキスト検索方法。
The search source peer of the context search sends a search request message, and each peer to be searched relays the received search request message to other peers under a predetermined limit, and if it satisfies the search condition, the search response In a peer-to-peer context search method that returns a message,
The source peer is
A procedure for setting the first and second limit values for limiting the number of hops in the search request message so that the first limit value is larger than the second limit value;
The first limit value is described as a first allowable hop number, the second limit value is described as a second allowable hop number, and a search request message in which the second limit value and a context search condition are described is generated. Procedure and
Sending the search request message to a peer to be searched,
Each peer to be searched
Receiving a search request message;
A procedure for determining whether or not the peer satisfies the context search condition described in the received search request message;
Determining whether to relay the search request message based on the first and second allowable hop numbers described in the search request message that does not satisfy the search condition;
A procedure for discarding a search request message that is determined not to be relayed and does not satisfy a search condition;
A procedure for decrementing the first and second allowable hop numbers of a search request message that is determined to be relayed and that does not satisfy a search condition;
A procedure for returning a search response message in response to a search request message that satisfies the search conditions;
A procedure for initializing a second allowable hop number of a search request message that satisfies a search condition to a second limit value;
Determining whether to relay the search request message based on the first allowable hop number of the search request message satisfying the search condition;
A procedure for discarding a search request message that is determined not to be relayed and that satisfies a search condition;
A procedure for decrementing the first allowed hop count of a search request message that is determined to be relayed and that satisfies a search condition;
Relaying a search request message in which the first allowable hop number is decremented and the second allowable hop number is initialized, and
The search source peer further includes:
A context search method comprising a procedure of receiving a search response message returned from each of the search target peers.
前記検索元ピアがさらに、
検索応答メッセージの受信期間に対応したタイマ値を検索要求メッセージに記述する手順と、
前記タイマ値の記述された検索要求メッセージの送信に応答して前記タイマ値の計時を開始する手順とをさらに具備し、
前記検索対象ピアがさらに、
検索条件を満足する検索要求メッセージを中継する際に、そのタイマ値を短縮する手順と、
検索条件を満足してタイマ値を短縮された検索要求メッセージの中継に応答して、当該短縮されたタイマ値の計時を開始する手順と、
前記タイマ値の計時が完了するまでに受信された検索応答メッセージおよび自身の検索応答メッセージを集約し、一つの検索応答メッセージにまとめて返信する手順とを具備し、
前記検索元ピアは、前記タイマ値の計時が完了するまで検索応答メッセージの受信を継続することを特徴とする請求項1に記載のコンテキスト検索方法。
The search source peer further includes:
The procedure for describing the timer value corresponding to the reception period of the search response message in the search request message,
Further comprising a step of starting timing of the timer value in response to transmission of the search request message in which the timer value is described,
The search target peer is further
When relaying a search request message that satisfies the search conditions, a procedure for shortening the timer value,
In response to the relay of the search request message whose timer value is shortened while satisfying the search condition, a procedure for starting timing of the shortened timer value;
A procedure of aggregating the search response message and the search response message received by the time until the time measurement of the timer value is completed, and collectively returning the search response message in one search response message,
The context search method according to claim 1, wherein the search source peer continues to receive a search response message until the timer value is measured.
コンテキスト検索の検索元ピアが検索要求メッセージを送信し、検索対象の各ピアが、受信した検索要求メッセージを所定の制限下で他のピアへ中継すると共に、自身が検索条件を満足すれば検索応答メッセージを返信するピアツーピア型のコンテキスト検索システムにおいて、
検索元ピアが、
検索要求メッセージのホップ数を制限するための第1および第2制限値を、第1制限値が第2制限値よりも大きくなるように設定する手段と、
前記第1制限値が第1許容ホップ数として記述され、前記第2制限値が第2許容ホップ数として記述され、さらに前記第2制限値およびコンテキスト検索条件の記述された検索要求メッセージを生成する手段と、
前記検索要求メッセージを検索対象のピアへ送信する手段とを具備し、
検索対象の各ピアが、
検索要求メッセージを受信する手段と、
受信した検索要求メッセージに記述されたコンテキスト検索条件を自ピアが満足するか否かを判定する手段と、
検索条件を満足しない検索要求メッセージに記述された第1および第2許容ホップ数に基づいて、当該検索要求メッセージを中継するか否かを決定する手段と、
中継しないと決定された、検索条件を満足しない検索要求メッセージを破棄する手段と、
中継すると決定された、検索条件を満足しない検索要求メッセージの第1および第2許容ホップ数をデクリメントする手段と、
検索条件を満足する検索要求メッセージに対して検索応答メッセージを返信する手段と、
検索条件を満足する検索要求メッセージの第2許容ホップ数を第2制限値に初期化する手段と、
検索条件を満足する検索要求メッセージの第1許容ホップ数に基づいて、当該検索要求メッセージを中継するか否かを決定する手段と、
中継しないと決定された、検索条件を満足する検索要求メッセージを破棄する手段と、
中継すると決定された、検索条件を満足する検索要求メッセージの第1許容ホップ数をデクリメントする手段と、
前記第1許容ホップ数がデクリメントされ、第2許容ホップ数が初期化された検索要求メッセージを中継する手段とを具備し、
前記検索元ピアがさらに、
前記各検索対象のピアから返信される検索応答メッセージを受信する手段を具備したことを特徴とするコンテキスト検索システム。
The search source peer of the context search sends a search request message, and each peer to be searched relays the received search request message to other peers under a predetermined limit, and if it satisfies the search condition, the search response In a peer-to-peer context search system that sends back messages,
The source peer is
Means for setting first and second limit values for limiting the number of hops of the search request message so that the first limit value is larger than the second limit value;
The first limit value is described as a first allowable hop number, the second limit value is described as a second allowable hop number, and a search request message in which the second limit value and a context search condition are described is generated. Means,
Means for transmitting the search request message to a peer to be searched,
Each peer to be searched
Means for receiving a search request message;
Means for determining whether or not the peer satisfies the context search condition described in the received search request message;
Means for determining whether to relay the search request message based on the first and second allowable hop numbers described in the search request message not satisfying the search condition;
Means for discarding a search request message that is determined not to be relayed and does not satisfy the search condition;
Means for decrementing the first and second allowable hop numbers of a search request message that is determined to be relayed and that does not satisfy a search condition;
Means for returning a search response message in response to a search request message that satisfies the search conditions;
Means for initializing a second allowable hop number of a search request message that satisfies a search condition to a second limit value;
Means for determining whether to relay the search request message based on the first allowable hop number of the search request message satisfying the search condition;
Means for discarding a search request message that satisfies a search condition, determined not to be relayed;
Means for decrementing the first allowed hop count of a search request message that is determined to be relayed and that satisfies a search condition;
Means for relaying a search request message in which the first allowable hop number is decremented and the second allowable hop number is initialized,
The search source peer further includes:
A context search system comprising means for receiving a search response message returned from each of the search target peers.
前記検索元ピアがさらに、
検索応答メッセージの受信期間に対応したタイマ値を検索要求メッセージに記述する手段と、
前記タイマ値の記述された検索要求メッセージの送信に応答して前記タイマ値の計時を開始する手段とをさらに具備し、
前記検索対象ピアがさらに、
検索条件を満足する検索要求メッセージを中継する際に、そのタイマ値を短縮する手段と、
検索条件を満足してタイマ値を短縮された検索要求メッセージの中継に応答して、当該短縮されたタイマ値の計時を開始する手段と、
前記タイマ値の計時が完了するまでに受信された検索応答メッセージおよび自身の検索応答メッセージを集約し、一つの検索応答メッセージにまとめて返信する手段とを具備し、
前記検索元ピアは、前記タイマ値の計時が完了するまで検索応答メッセージの受信を継続することを特徴とする請求項3に記載のコンテキスト検索システム。
The search source peer further includes:
Means for describing a timer value corresponding to the reception period of the search response message in the search request message;
Means for starting timing of the timer value in response to transmission of the search request message in which the timer value is described;
The search target peer is further
A means for shortening the timer value when relaying a search request message that satisfies the search condition;
Means for responding to the relay of the search request message in which the search condition is satisfied and the timer value is shortened, and starting timing of the shortened timer value;
Means for aggregating the search response message and the search response message received by the time until the timer value is timed, and collectively returning the search response message in one search response message;
The context search system according to claim 3, wherein the search source peer continues to receive a search response message until the timer value is measured.
JP2009042435A 2009-02-25 2009-02-25 Context search method and system Expired - Fee Related JP5165619B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009042435A JP5165619B2 (en) 2009-02-25 2009-02-25 Context search method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009042435A JP5165619B2 (en) 2009-02-25 2009-02-25 Context search method and system

Publications (2)

Publication Number Publication Date
JP2010198319A true JP2010198319A (en) 2010-09-09
JP5165619B2 JP5165619B2 (en) 2013-03-21

Family

ID=42822983

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009042435A Expired - Fee Related JP5165619B2 (en) 2009-02-25 2009-02-25 Context search method and system

Country Status (1)

Country Link
JP (1) JP5165619B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2022144902A (en) * 2021-03-19 2022-10-03 ヤフー株式会社 Information processing device, information processing method and information processing program

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006060454A (en) * 2004-08-19 2006-03-02 Nippon Telegr & Teleph Corp <Ntt> Information distribution system, method, information terminal, and computer program

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006060454A (en) * 2004-08-19 2006-03-02 Nippon Telegr & Teleph Corp <Ntt> Information distribution system, method, information terminal, and computer program

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
CSNJ200510005192; 本間利哉,川上浩只,淺谷耕一: 'Pure型P2Pネットワークにおける検索暦を用いたTTL動的制御による高効率検索手法の検討' 電子情報通信学会2004年総合大会講演論文集 , 20040308, p.189, 社団法人電子情報通信学会 *
JPN6012061302; 本間利哉,川上浩只,淺谷耕一: 'Pure型P2Pネットワークにおける検索暦を用いたTTL動的制御による高効率検索手法の検討' 電子情報通信学会2004年総合大会講演論文集 , 20040308, p.189, 社団法人電子情報通信学会 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2022144902A (en) * 2021-03-19 2022-10-03 ヤフー株式会社 Information processing device, information processing method and information processing program
JP7419286B2 (en) 2021-03-19 2024-01-22 Lineヤフー株式会社 Information processing device, information processing method, and information processing program

Also Published As

Publication number Publication date
JP5165619B2 (en) 2013-03-21

Similar Documents

Publication Publication Date Title
US7969914B1 (en) Method for establishing and operating a mobile Ad-Hoc network
US9432917B2 (en) Methods and systems for peer-to-peer network discovery using multi-user diversity
KR101398566B1 (en) Methods and systems for exploitation of well-connected nodes in peer-to-peer wireless networks
US8848559B2 (en) Methods and apparatuses for device discovery
JP5231634B2 (en) Routing method between local peer groups (LPG)
CN101355496A (en) Multi-hop clustering routing protocol initiated by base station
CN107196859B (en) Message forwarding method, broadcasting method, message response method and communication equipment
JP2013005043A (en) Ad hoc network system
JP5218867B2 (en) Provisioning device and network parameter setting method in provisioning network
CN104618447B (en) A kind of file collaboration method for down loading and system
Prabhavat et al. Low overhead localized routing in mobile ad hoc networks
CN114025408A (en) Network establishing and accessing method and device for self-adaptive networking and computer equipment
JP5165619B2 (en) Context search method and system
CN110224938B (en) A message sending method and related equipment
JP2013197746A (en) Radio communication device and communication control method
Anandakumar et al. Enhanced multicast cluster-based routing protocol for delay tolerant mobile networks
EP3741142A1 (en) Method and device for sharing an established connection between a primary device and one of a plurality of secondary devices in a network
KR100964972B1 (en) Demand-Based Neighbor Discovery in Wireless Networks
WO2017214810A1 (en) Distributed network routing method and node
KR100462028B1 (en) Method of internet gateway discovery in Ad-hoc network
JP2008109614A (en) Communication method and radio communication terminal
JP2016076903A (en) Gateway, communication apparatus and radio communication system
KR20130034444A (en) Appurus and method for determining gateway considering low power consumption
Bokar et al. Scalable energy-aware dynamic task allocation
JPWO2006048936A1 (en) Ad hoc network, mobile terminal, gateway node and gateway node selection method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20110822

TRDD Decision of grant or rejection written
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20121121

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20121128

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20121219

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20151228

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees