JP2003298594A - Path selecting method and node in network - Google Patents

Path selecting method and node in network

Info

Publication number
JP2003298594A
JP2003298594A JP2002099263A JP2002099263A JP2003298594A JP 2003298594 A JP2003298594 A JP 2003298594A JP 2002099263 A JP2002099263 A JP 2002099263A JP 2002099263 A JP2002099263 A JP 2002099263A JP 2003298594 A JP2003298594 A JP 2003298594A
Authority
JP
Japan
Prior art keywords
node
address
packet
link
destination
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
JP2002099263A
Other languages
Japanese (ja)
Inventor
Akira Toba
彰 鳥羽
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.)
Toshiba Carrier Corp
Original Assignee
Toshiba Carrier 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 Toshiba Carrier Corp filed Critical Toshiba Carrier Corp
Priority to JP2002099263A priority Critical patent/JP2003298594A/en
Publication of JP2003298594A publication Critical patent/JP2003298594A/en
Pending legal-status Critical Current

Links

Landscapes

  • Small-Scale Networks (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a path selecting method for dynamically selecting other link when a link once setup is interrupted and surely transmitting a packet to a prescribed destination node even when an initially set link is interrupted. <P>SOLUTION: The path selecting method in the network of this invention whereby a transmission intending node searches a proper node capable of relaying a link with a transmission destination node when the link is interrupted on the way of packet communication by setting up a link b-M-f by the transmission intention node b, the transmission destination node f via a master node M, and selects the node as a relay node when a relay enabled node d is found out and transmits data to the initial transmission destination node f by way of a path of b-d-M-f so as to enhance the communication reliability. <P>COPYRIGHT: (C)2004,JPO

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、初期設定リンクが
遮断され通信復旧が不可能なケースでも、動的に新たな
リンクを形成して所定の宛先ノードにデータ送信できる
ネットワークにおける経路選択方法及びノードに関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a route selection method in a network capable of dynamically forming a new link and transmitting data to a predetermined destination node even in the case where communication cannot be restored due to interruption of an initial setting link. Regarding the node.

【0002】[0002]

【従来の技術】従来、単一経路で形成されたネットワー
クで、あるノード間のリンクが切れて通信が不能になっ
た場合、同一リンクでリンク生成を繰り返しリトライす
る方法がとられている。
2. Description of the Related Art Conventionally, in a network formed by a single route, when a link between certain nodes is broken and communication becomes impossible, a method of repeatedly making a link on the same link is used.

【0003】[0003]

【発明が解決しようとする課題】ところが、従来の方法
では、処理設定リンクが遮断され、再リンクが不可能な
通信環境では、データ通信が再開できず、ネットワーク
通信の信頼性が低い問題点があった。
However, in the conventional method, in a communication environment in which the processing setting link is cut off and relinking is impossible, data communication cannot be resumed and the reliability of network communication is low. there were.

【0004】本発明はこのような従来の問題点に鑑みて
なされたもので、いったん確立されたリンクが遮断され
たときにも、別のリンクを動的に選択生成し、初期設定
リンクが切れても所定の宛先ノードに確実にパケットを
伝送することができるネットワーク経路選択技術を提供
することを目的とする。
The present invention has been made in view of such conventional problems. Even when a link once established is cut off, another link is dynamically selected and generated, and the initial setting link is broken. Even so, it is an object of the present invention to provide a network route selection technique capable of reliably transmitting a packet to a predetermined destination node.

【0005】[0005]

【課題を解決するための手段】請求項1の発明は、少な
くともBluetoothL2CAP以下の層、Bluetoothプロフ
ァイル層、上位ネットワーク層、アプリケーション層よ
り成るノードを有するネットワークにおける経路選択方
法であって、(1)送信意図ノードの送信意図時に、予
め設定された所定ノードとのリンクが切断されて通信不
能と判定したときに、近隣ノードの中で通信可能なノー
ドを探索し、(2)前記探索によって発見した通信可能
なノードのアドレスの中に意図した送信先ノードと等し
いものがあるならば、当該アドレスのノードを選択して
リンクを確立し、(3)前記探索によって発見した通信
可能なノードのアドレスの中に意図した送信先ノードと
等しいものがないならば、通信可能なノードの中から任
意の1つのアドレスのノードを選択してリンクを確立
し、(4)(2)又は(3)で選択したアドレスのノー
ドが、意図した通信相手先のノードにパケットが送れる
か否か調査し、(5)前記調査によって意図した通信相
手先のノードにパケットが送れるならば初期パケットを
送信し、(6)前記調査によって意図した通信相手先の
ノードにパケットが送れない場合には、他の任意のアド
レスのノードを選択してリンクを確立し、パケットが送
れるか否か調査する試みを繰り返すことを特徴とするも
のである。
According to the invention of claim 1, there is provided a route selection method in a network having a node including at least a layer below Bluetooth L2CAP, a Bluetooth profile layer, an upper network layer and an application layer. When it is determined that communication is not possible because the link with a predetermined node is disconnected when the intended node intends to transmit, it searches for a communicable node among neighboring nodes, and (2) communication found by the search. If the address of the possible node is equal to the intended destination node, the node of the address is selected to establish the link, and (3) the address of the communicable node found by the search. If there is no equivalent to the intended destination node, the address of any one of the communicable nodes is Mode is selected to establish a link, and the node having the address selected in (4), (2) or (3) investigates whether or not the packet can be sent to the intended node of the communication partner, and (5) the investigation described above. If the packet can be sent to the intended node of the communication partner by (6), the initial packet is sent. (6) If the packet cannot be sent to the node of the intended communication partner by the investigation, the node of another arbitrary address is sent. It is characterized by repeating an attempt to select and establish a link and investigate whether or not a packet can be sent.

【0006】請求項2の発明は、請求項1のネットワー
クにおける経路選択方法において、送信意図ノードによ
る近隣ノードの探索の結果、通信可能な各ノードから返
却されるパケットに含まれるノード毎のアドレス全てを
リストとして送信意図ノード内に保持し、このリスト中
の任意のアドレスを接続候補としていったん接続し、通
信相手先ノードのアドレスに応答要求パケットを送り、
応答がない場合には、前記リスト中の他のアドレスを選
択していったん接続し、通信相手先ノードのアドレスに
応答要求パケットを送る手続きを繰り返し、前記応答要
求パケットに対する応答があれば、現在接続中のアドレ
スのノードを前記通信相手先ノードまでの中継ノードと
して選択することを特徴とするものである。
According to a second aspect of the invention, in the route selection method in the network of the first aspect, as a result of the search of the neighbor node by the transmission intention node, all the addresses for each node included in the packet returned from each communicable node. Is held in the transmission intention node as a list, any address in this list is once connected as a connection candidate, and a response request packet is sent to the address of the communication destination node,
If there is no response, select another address in the list, connect once, repeat the procedure of sending a response request packet to the address of the communication destination node, and if there is a response to the response request packet, connect now It is characterized in that the node having the medium address is selected as a relay node to the communication destination node.

【0007】請求項3の発明は、請求項1又は2のネッ
トワークにおける経路選択方法において、予め生成され
たリンクキーが存在しないときは、中継用PINコード
として中継を許可するノードにPINコードを予め割り
付けておき、これを使用して経路探索処理での認証用リ
ンクキーを生成し、相互認証することを特徴とするもの
である。
According to a third aspect of the present invention, in the route selection method for a network according to the first or second aspect, when there is no link key generated in advance, a PIN code is previously set as a relay PIN code to a node which permits relay. It is characterized in that it is allocated and then used to generate an authentication link key in the route search process for mutual authentication.

【0008】請求項4の発明は、請求項1〜3のネット
ワークにおける経路選択方法において、送信意図ノード
は、リンク確立後、宛先MACアドレスを同報アドレス
とし、送信相手先ノードのネットワークアドレスを宛先
アドレスとした応答要求パケットを送信し、前記応答要
求パケットを受け取ったノードは、宛先を送信元ネット
ワークアドレスとする応答パケットを送信し、前記送信
意図ノードに前記応答パケットが返ってくれば前記送信
相手先ノードのネットワークアドレスを宛先アドレスと
して送信データを送ることを特徴とするものである。
According to a fourth aspect of the present invention, in the route selection method for a network according to the first to third aspects, the transmission intention node sets the destination MAC address as the broadcast address after the link is established, and sets the network address of the destination node as the destination. The node that transmits the response request packet having the address as an address, and the node that receives the response request packet transmits the response packet whose destination is the source network address, and if the response packet is returned to the transmission intention node, the transmission partner The transmission data is transmitted by using the network address of the destination node as the destination address.

【0009】請求項1〜4の発明のネットワークにおけ
る経路選択方法では、送信意図ノードがマスタノードを
介して送信相手先ノードとリンクを確立していてパケッ
ト通信している途中で、リンクが遮断されたときには、
送信意図ノードは送信相手先ノードとの間のリンクを中
継できる適当なノードを探索し、中継可能なノードを発
見できれば当該ノードを中継ノードとして選択し、当該
ノードを中継して当初の送信相手先ノードにデータ送信
するようにして、通信の信頼性を高める。
In the route selection method in the network according to the first to fourth aspects of the present invention, the link is cut off during the packet communication while the transmission intention node establishes the link with the transmission destination node via the master node. When
The transmission intention node searches for an appropriate node that can relay the link with the destination node, and if it can find a relayable node, it selects that node as a relay node and relays the node to the original destination node. Increase the reliability of communication by transmitting data to the node.

【0010】請求項5の発明のノードは、マスタノード
として設定されていない場合でも、複数の他ノードと時
分割でリンクを形成するリンク形成手段と、自己宛でな
いパケットを受け取ったときに、送信元でない他のリン
ク相手先ノードにパケット転送するパケット転送手段と
を備えたものである。
Even when the node of the invention of claim 5 is not set as the master node, the node forming means forms a link with a plurality of other nodes in a time division manner, and when it receives a packet not addressed to itself, it transmits the packet. And a packet transfer means for transferring a packet to another link destination node which is not the original.

【0011】請求項5の発明のノードでは、他の送信意
図ノードがマスタノードを介して他の送信相手先ノード
とリンクを確立していてパケット通信している途中でリ
ンクが遮断され、時ノードが中継可能なノードとして選
択され、前記送信意図ノードからの送信相手先ノードへ
の送信パケットを受け取ったときには、当該パケット
を、送信元でない他のリンク相手先ノードに転送する。
これにより、請求項1〜4の発明のネットワークにおけ
る経路選択方法を使用するネットワークのノードとして
利用することができ、信頼性の高いネットワークの構築
に寄与できる。
In the node of the invention of claim 5, the other transmission intention node establishes a link with another transmission destination node via the master node and the link is cut off during packet communication, and the time node Is selected as a relayable node, and when a transmission packet from the transmission intention node to the transmission destination node is received, the packet is transferred to another link destination node that is not the transmission source.
As a result, it can be used as a node of a network that uses the route selection method in the network of the first to fourth aspects of the invention, and can contribute to the construction of a highly reliable network.

【0012】請求項6の発明は、請求項5のノードにお
いて、複数の他のノードと時分割でリンクを形成する機
能を有するマスタとして動作していて、他のノードから
パケットを受け取ったときに、当該パケットで示されて
いる宛先アドレスが、自己の保持する宛先アドレステー
ブルの中のアドレスに一致していなければ、受け取った
パケットを別リンク先のマスタとして動作しているノー
ドに転送し、保持している宛先アドレステーブルの中の
アドレスと一致していれば、当該アドレス宛に受け取っ
たパケットを転送する機能を備えたものである。
According to a sixth aspect of the present invention, in the node of the fifth aspect, the node operates as a master having a function of forming a link with a plurality of other nodes in a time division manner, and when a packet is received from another node. , If the destination address shown in the packet does not match the address in the destination address table held by itself, the received packet is transferred to the node operating as the master of another link destination and held. If the address matches the address in the destination address table, the packet has a function of transferring the packet received to the address.

【0013】請求項6の発明のノードでは、当該ノード
が他のノードからパケットを受け取ったときに、当該パ
ケットで示されている宛先アドレスが自己の保持する宛
先アドレステーブルの中のアドレスに一致していなけれ
ば、受け取ったパケットを別リンク先のマスタとして動
作しているノードに転送し、保持している宛先アドレス
テーブルの中のアドレスと一致していれば当該アドレス
宛に受け取ったパケットを転送することができるので、
ある送信意図ノードが送信相手先ノードとリンクを確立
していてパケット通信している途中でリンクが遮断さ
れ、中継可能なノードとして別のノードを選択する場合
に、当該ノードが相手先のノードに達する代替経路を自
動的に形成することができる。これにより、請求項1〜
4の発明のネットワークにおける経路選択方法を使用す
るネットワークのマスタノードとして利用することがで
き、信頼性の高いネットワークの構築に寄与できる。
According to another aspect of the present invention, when the node receives a packet from another node, the destination address indicated in the packet matches the address in the destination address table held by itself. If not, the received packet is transferred to the node operating as the master of another link destination, and if it matches the address in the held destination address table, the packet received to that address is transferred. Because you can
When a node that intends to send is establishing a link with the destination node and the link is cut off during packet communication and another node is selected as a relayable node, that node becomes the destination node. Alternative routes to reach can be formed automatically. Thereby, claim 1
It can be used as a master node of a network that uses the route selection method in the network of the invention of 4, and can contribute to the construction of a highly reliable network.

【0014】[0014]

【発明の実施の形態】以下、本発明の実施の形態を図に
基づいて詳説する。図1は短距離無線規格の1つBlueto
othネットワークの接続形態を例示したものである。図
1のリンク状態は、複数のスレーブノードa〜fのそれ
ぞれがマスタノードMとリンクしている状態である。こ
のリンク状態で、ノードbはb−M−fの経路でノード
fとデータ通信しているとし、いまb−M間のリンクl
−bMが遮断されたとする。その場合には、ノードb−
f間の通信ができなくなる。
BEST MODE FOR CARRYING OUT THE INVENTION Embodiments of the present invention will be described in detail below with reference to the drawings. Figure 1 is one of the short-range wireless standards, Blueto
It is an example of a connection form of the oth network. The link state of FIG. 1 is a state in which each of the plurality of slave nodes a to f is linked to the master node M. In this link state, the node b is in data communication with the node f through the route bMf, and now the link l between bM is
-BM is blocked. In that case, node b-
Communication between f becomes impossible.

【0015】図2は、ノードa1からノードfにマスタ
/スレーブノード(M/S)であるノードb、マスタM
を経るa1−b−M−fの経路でパケット送信する場合
のピコネットのリンク状態を示している。この場合に
も、リンクl−a1bが遮断すればノードa1−f間の
通信ができなくなる。
In FIG. 2, a master b is a master / slave node (M / S) and a master M is a node from a node a1 to a node f.
The link state of the piconet in the case of transmitting the packet through the route of a1-b-M-f passing through. Even in this case, if the link 1-a1b is cut off, communication between the nodes a1-f cannot be performed.

【0016】本発明の1つの実施の形態のネットワーク
の機能的特徴は、図1のような場合に、ノードbは隣接
するノードにブロードキャストでインクワイアリー(In
quiry)をかけ、(i)宛先ノードであるノードfから
応答があれば直接リンクを確立させ、(ii)ノードfか
らは応答がなかったが、ノードd,eから応答があった
場合には、各ノードの経路を探索し、例えば、ノードd
はd−M−fのリンクが確立しておらず、ノードeにつ
いてはe−M−fのリンクが確立しているとすれば、こ
のノードeを代替ノードに選択し、ノードbはb−e−
M−fの経路で当初の宛先ノードfとのリンクを再確立
し、データ通信を再開する、という点にある。
The functional characteristic of the network according to one embodiment of the present invention is that, in the case as shown in FIG.
(i) If there is a response from the destination node node f, a direct link is established. (ii) If there is no response from the node f, but there is a response from the nodes d and e, , Searching the route of each node, for example, node d
If the d-Mf link is not established and the e-Mf link is established for the node e, the node e is selected as an alternative node, and the node b is the b- e-
The point is that the link with the original destination node f is reestablished in the route of Mf and data communication is restarted.

【0017】また、図2のような場合、本実施の形態の
ネットワークでは最初、ノードa1がノードbに対して
再リンクを試み、再リンクができなかった場合、ブロー
ドキャストでInquiryをかける。そして、(i)ノード
d,eから応答があり、いまノードdをまず選択し、ノ
ードdについて宛先ノードfとのリンクを検査し、d−
M−fのリンクが確立しなければ、ノードdは候補から
除外し、ノードeを選択する。(ii)ノードeについ
て、宛先ノードfとのリンクを検査し、e−M−fのリ
ンクが確立されていれば、ノードa1はノードeを代替
ノードとして選択し、a1−e−M−fの経路により宛
先ノードfとデータ通信を再開する。
Further, in the case of FIG. 2, in the network of this embodiment, the node a1 first tries to relink the node b, and if the relinking is not possible, an inquiry is broadcast. Then, (i) there is a response from the nodes d and e. Now, the node d is first selected, the link with the destination node f is inspected for the node d, and d-
If the Mf link is not established, node d is excluded from the candidates and node e is selected. (Ii) With respect to the node e, the link with the destination node f is checked, and if the link of e-Mf is established, the node a1 selects the node e as an alternative node and a1-e-M-f. The data communication with the destination node f is restarted by the route.

【0018】このように、本実施の形態のネットワーク
では、当初のリンクが遮断した場合に自動的に代替経路
を探索し、当初のノードと宛先ノードとの別経路でのリ
ンクを自動的に選択する経路選択機能により、信頼性の
高い通信特性を確保するものである。
As described above, in the network of this embodiment, when the initial link is cut off, an alternative route is automatically searched for, and a link on another route between the original node and the destination node is automatically selected. By using the route selection function, the reliable communication characteristic is secured.

【0019】次に、本実施の形態のネットワークに使用
するノード、マスタの機能構成について説明する。図5
に示すように、マスタであれ、スレーブであれ、いずれ
のノード11もBluetooth L2CAP以下層12、Blue
toothプロファイル層13、TCP/IP層14、アプ
リケーション層15から成る。
Next, the functional configurations of the node and the master used in the network of this embodiment will be described. Figure 5
As shown in FIG. 1, any node 11 whether it is a master or a slave has a layer below the Bluetooth L2CAP 12, a blue layer.
It is composed of a tooth profile layer 13, a TCP / IP layer 14, and an application layer 15.

【0020】ここで、TCP/IP層14はこれに限ら
ず、少なくとも1つのネットワークアドレスを保持する
ものであれば、いかなるネットワークでもよいものであ
る。また、Bluetooth L2CAP以下層11では、メデ
ィア固有のアドレスとしてMACアドレスを持つ。以下
の説明では、これをBluetoothアドレス(BD_ADD
R)と呼ぶ。
The TCP / IP layer 14 is not limited to this, and may be any network as long as it holds at least one network address. In addition, the layer below Bluetooth L2CAP 11 has a MAC address as an address unique to the medium. In the following description, this is set to the Bluetooth address (BD_ADD
R).

【0021】さらに、AM_ADDRは、Bluetooth固
有のアドレスで、マスタMの管理下にあり、アクティブ
であるスレーブに付与する3ビット内の値であり、PM
_ADDRはスリープしているスレーブに付与する値で
あり、理論的には48ビット内の値である。
Further, AM_ADDR is an address unique to Bluetooth and is a value within 3 bits which is given to an active slave under the control of the master M, and PM_ADDR
_ADDR is a value given to the sleeping slave, and is theoretically a value within 48 bits.

【0022】なお、図1又は図2に示す状態では、各ノ
ードはすでにネットワークアドレスを取得済みである。
また、図5のプロトコルスタックにおいて、TCP/I
P層14とBluetoothプロファイル層13以下とのイン
タフェースは、Bluetoothモジュールに組み込まれるH
CI(Hardware Control Interface)であり、以下の諸
機能はソフトウェアによる。
In the state shown in FIG. 1 or 2, each node has already acquired the network address.
In the protocol stack of FIG. 5, TCP / I
The interface between the P layer 14 and the Bluetooth profile layer 13 and below is H which is incorporated in the Bluetooth module.
It is a CI (Hardware Control Interface), and the following various functions depend on software.

【0023】図6に示すように、各ノード11では、ア
プリケーション層15からペイロードデータ21が渡さ
れると、TCP/IP層14は所定のヘッダ、宛先IP
アドレス22を付けてBluetoothプロファイル層13に
渡す。プロファイル層13では、さらに受け取ったデー
タに対して、ヘッダA23と、いわゆるBluetoothアド
レスを宛先アドレス、自己アドレスとするデータ列24
とを付加し、Bluetooth L2CAP以下層12に渡す。
そして、Bluetooth L2CAP以下層12では、ヘッダ
B25とAM−ADDRまたはPM−ADDRというBl
uetooth規格で定められている宛先アドレスをデータ列
26として付加し、相手先に送信する。
As shown in FIG. 6, in each node 11, when the payload data 21 is passed from the application layer 15, the TCP / IP layer 14 receives a predetermined header and a destination IP.
The address 22 is attached and passed to the Bluetooth profile layer 13. The profile layer 13 further includes a header A23 and a data string 24 having a so-called Bluetooth address as a destination address and a self address for the received data.
And is added and passed to the layer 12 below the Bluetooth L2CAP.
Then, in the layer 12 below the Bluetooth L2CAP, a header B25 and a BL called AM-ADDR or PM-ADDR
A destination address defined by the uetooth standard is added as a data string 26, and the data string 26 is transmitted to the other party.

【0024】(1)他のノードからパケットデータを受
信したマスタノード(例えば、マスタMあるいはマスタ
/スレーブM/S)は、そのBluetoothプロファイル層
13でチェックする。そして(a)宛先Bluetoothアド
レスが自装置宛でない場合には、自装置内に登録してあ
るBluetoothアドレスとAM_ADDR又はPM_AD
DRとの変換テーブルから該当するAM_ADDR又は
PM_ADDRを検索し、これを宛先としてBluetooth
L2CAP以下層12に渡す。(b)一方、受信した宛
先Bluetoothアドレスが自分宛のパケットであれば、当
該パケットが自装置宛とみなして処理する。
(1) The master node (for example, the master M or the master / slave M / S) that has received the packet data from another node checks the Bluetooth profile layer 13. If (a) the destination Bluetooth address is not addressed to the own device, the Bluetooth address registered in the own device and AM_ADDR or PM_AD
Search for the corresponding AM_ADDR or PM_ADDR from the conversion table with DR, and use this as the destination for Bluetooth
It is passed to the layer 12 below the L2CAP. (B) On the other hand, if the received destination Bluetooth address is a packet addressed to itself, the packet is regarded as addressed to the own device and processed.

【0025】(2)単一リンクのみを持つスレーブノー
ドは、Bluetoothプロファイル層13で受け取ったパケ
ットの宛先Bluetoothアドレスが自己のアドレスと一致
すればTCP/IP層14に渡し、一致しないときには
破棄する。この場合には、マスタへの転送機能はないの
である。
(2) The slave node having only a single link passes it to the TCP / IP layer 14 if the destination Bluetooth address of the packet received by the Bluetooth profile layer 13 matches its own address, and discards it if it does not match. In this case, there is no transfer function to the master.

【0026】次に、上記のネットワークによる自動経路
選択処理について、図3のシーケンス図を用いて、図1
に示すケースに対応する自動経路選択処理について説明
する。
Next, the automatic route selection processing by the above-mentioned network will be described with reference to the sequence diagram of FIG.
An automatic route selection process corresponding to the case shown in will be described.

【0027】S0で、リンクb−M−fが確立していた
状態で、リンクb−Mが遮断されると、ノードbがパケ
ット送信を試みたときに、リンクb−Mが遮断されてい
ることを検知して再度リンク確立を試みる。そして再リ
ンクが確立できなければ、S1で、Inquiryをブロード
キャストで送信し、近隣のノードを探索する。
In S0, if the link b-M-f is established and the link b-M is cut off, the link b-M is cut off when the node b tries to transmit a packet. When this is detected, the link is reestablished. If the relink cannot be established, an inquiry is transmitted by broadcast in S1 to search for a neighboring node.

【0028】近隣のノードは定周期でインクワイアリス
キャン(Inquiry Scan)を行う機能を有していて、S2
で、ノードbのInquiryに対して応答し、ノードbにBlu
etoothアドレスを含む応答パケットを返送する。このと
き、各ノードから返送されるパケットに含まれる各ノー
ドのBluetoothアドレスは、リストとしてノードb内に
図4に示すリスト31の形で保持される。この図4に示
すリスト31の各行の文字は各ノードのMACアドレス
を表している。
The neighboring nodes have a function of performing an inquiry scan at a fixed cycle, and S2
Responds to the Inquiry of node b, and Blu
Send back a response packet containing the etooth address. At this time, the Bluetooth address of each node included in the packet returned from each node is held in the node b as a list in the form of the list 31 shown in FIG. The characters in each line of the list 31 shown in FIG. 4 represent the MAC address of each node.

【0029】ステップS3で、ノードbは受信した各ノ
ードのBluetoothアドレスのリスト31の中で、当初の
宛先Bluetoothアドレスと一致するものがあればそのノ
ードを優先的に選択し、S4,S5で該当ノードf宛に
Page動作をかけ、リンクを確定後認証に移る(S
6)。この場合、認証は、ノードbとノードfとの間で
行い、リンクキーが保持されていればこのリンクキー値
を使用し、保持されていなければ、予めこの経路探索処
理での認証用リンクキー生成のために登録してある中継
用PINコードを用いてリンクキーを生成し、相互認証
を行う。この場合、中継用PINコードは暫定的にある
ノードを中継用として利用するときにこれを許可するノ
ードに予め割当てられるコードである。なお、セキュリ
ティ上から、中継用PINコードにより生成されたリン
クキーは経路探索処理が終了したときに消去するのが望
ましい。
In step S3, the node b preferentially selects the node having the same Bluetooth address as the original destination Bluetooth address in the received list 31 of the Bluetooth addresses of the respective nodes, and the nodes b are selected in S4 and S5. The Page operation is applied to the node f, and after the link is confirmed, the authentication is started (S
6). In this case, the authentication is performed between the node b and the node f, and if the link key is held, this link key value is used, and if not held, the link key for authentication in this route search processing is preliminarily used. A link key is generated using the relay PIN code registered for generation, and mutual authentication is performed. In this case, the relay PIN code is a code that is provisionally assigned in advance to a node that permits this when a certain node is used for relay. For security reasons, it is desirable to delete the link key generated by the relay PIN code when the route search process is completed.

【0030】次に、S7で、Bluetooth規約に従って、
SDPとProfile確認を行い、正しければノードbとノ
ードfとの間のリンク生成が完了したことになり、TC
P/IP通信が可能な条件が整ったことになる(S
8)。
Next, in S7, according to the Bluetooth protocol,
Check SDP and Profile, and if correct, it means that the link generation between node b and node f has been completed, and TC
The conditions for P / IP communication have been established (S
8).

【0031】次に、S9,S10で、ノードbは、宛先
IPアドレスを、元々送信したい宛先ノードのIPアド
レス宛として応答要求パケット(PINGパケット)を
送信する。ここに、PINGパケットとは、図6のパケ
ットデータの構成において、Bluetoothプロファイル層
13に示したパケット構成で、宛先BD_ADDRを同
報アドレスとし、IPアドレスを送信したい宛先ノード
のIPアドレス宛としたもののことである。
Next, in S9 and S10, the node b transmits a response request packet (PING packet) with the destination IP address destined for the IP address of the destination node originally destined for transmission. Here, the PING packet is the packet structure shown in the Bluetooth profile layer 13 in the packet data structure of FIG. That is.

【0032】PINGパケットを受け取ったノードは、
宛先を送信元IPアドレスとして送信元に送る(S1
1)。S12で、送信元のノードbは、このPING応
答が返ってきたならば、正規パケットを送信する。
The node receiving the PING packet
Send the destination as the source IP address to the source (S1
1). In S12, the transmission source node b transmits a regular packet when the PING response is returned.

【0033】上の簡単な例の場合、必ずPINGパケッ
トは返されるはずであるが、ノードbがノードdを選択
し、b−d−M−fの経路となる場合、d−M間のリン
クが遮断されていればPINGパケットは返って来な
い。また、図2のネットワークのように複雑な構成の場
合にも、必ずしもPINGパケットが返って来ないこと
がある。そのような場合には、S13で、ノードbはS
3のb)の処理、すなわち、スレーブ選択候補の中から
別のノードを選択し、S4のPage動作以降を再度繰
り返し、PINGパケットの確認を行う。なお、図2に
示すネットワークは「スキャッタネット」と称されるも
ので、時分割にて時間帯ごとにある1つの通信可能なリ
ンクを持ち、その間は、他のリンクはHOLDモードに
てリンクを保持しながら通信は休止する規則になってい
る。
In the case of the above simple example, the PING packet should be returned without exception, but when the node b selects the node d and becomes the route b−d−M−f, the link between d−M If is blocked, no PING packet is returned. Further, even in the case of a complicated configuration such as the network of FIG. 2, the PING packet may not always be returned. In such a case, in S13, the node b
The process of 3) b), that is, another node is selected from the slave selection candidates, the page operation of S4 and subsequent steps are repeated again, and the PING packet is confirmed. The network shown in FIG. 2 is called a "scatternet", and has one communicable link for each time zone in time division, while other links are linked in the HOLD mode. It is a rule that communication is suspended while holding.

【0034】さらに、図2の構成のネットワークにおい
て、ノードa1がノードbの代わりにノードeを選択
し、a1−b−M−fの経路の代わりにa1−e−M−
fの経路が選択された場合、ノードe−M間が不通であ
れば、図3のシーケンス図のS3のb)の処理でノード
a1はノードdを選択し、a1−d−M−fの経路にて
PINGを行い、成功すればこの経路でノードa1はノ
ードf宛に正規パケットを送信する。
Further, in the network having the configuration of FIG. 2, the node a1 selects the node e instead of the node b, and instead of the route a1-b-Mf, a1-e-M-.
If the route of f is selected and there is no communication between the nodes e and M, the node a1 selects the node d in the process of b) of S3 of the sequence diagram of FIG. 3, and the node a1−d−M−f PING is performed on the route, and if successful, the node a1 transmits a regular packet to the node f on this route.

【0035】またさらに、マスタノードではないノード
が、自己宛ではないパケットを受け取った場合、送信元
ではないもう一方のリンク相手のノードにパケットを転
送する機能を有している。そして、通信規則として、本
経路探索処理のために、複数のノードとリンクを持つス
レーブノードでは、受け取ったパケットの宛先が自装置
のBluetoothアドレス宛ではなくても破棄せずに、当該
パケットを別リンク先のノードに転送するものとする。
Furthermore, when a node that is not the master node receives a packet that is not addressed to itself, it has a function of forwarding the packet to the other node that is the link partner that is not the transmission source. As a communication rule, for the purpose of this route search process, a slave node that has links with multiple nodes does not discard the received packet even if the destination of the received packet is not the Bluetooth address of the device itself. It shall be transferred to the linked node.

【0036】また、マスタノードM、又はマスタ/スレ
ーブノードM/Sは、図7に示すアドレステーブル32
を保持する。このアドレステーブル32は、これらノー
ドM,M/Sがマスタとして振る舞うとき、この管理下
にあるスレーブノードのBD_ADDR(Bluetoothア
ドレス)に対応する宛先AM_ADDR、宛先PM_A
DDRのテーブルである。そして、これらのノードがパ
ケットを受け取ったとき、そのパケット中の宛先Blueto
othアドレスが、自装置の保持するアドレステーブル3
2の中の宛先Bluetoothアドレスに一致していれば対応
するAM_ADDR又はPM_ADDR宛に送信する。
また、宛先Bluetoothアドレスが、保持するテーブル3
2の中のBluetoothアドレスに一致していなければ、受
け取ったパケットを別リンク先のMノード又はM/Sノ
ードに転送することも通信規則とする。
The master node M or the master / slave node M / S has the address table 32 shown in FIG.
Hold. When the nodes M and M / S act as masters, the address table 32 has a destination AM_ADDR and a destination PM_A corresponding to BD_ADDR (Bluetooth address) of a slave node under this management.
It is a table of DDR. Then, when these nodes receive the packet, the destination Blueto in the packet
oth address is the address table 3 held by the device itself
If it matches the destination Bluetooth address in 2, the data is transmitted to the corresponding AM_ADDR or PM_ADDR.
Also, the destination Bluetooth address holds the table 3
If it does not match the Bluetooth address in 2, the communication rule is to transfer the received packet to the M node or M / S node of another link destination.

【0037】図3のシーケンスのS12でメッセージ送
信が完了すれば、リンクを遮断する(S14)。なお、
この場合に、HOLDモードでリンクを保持したまま待
機する構成にしてもよい。
When the message transmission is completed in S12 of the sequence of FIG. 3, the link is cut off (S14). In addition,
In this case, the configuration may be such that the link is held in the HOLD mode while waiting.

【0038】こうして、別経路を選択し、選択した経路
によって必要なデータ送信を完了すれば、当初遮断され
た元のリンクを再リンク生成をトライする(S15,S
16)。
In this way, if another route is selected and the required data transmission is completed by the selected route, the original link that was initially cut off is retried (S15, S).
16).

【0039】[0039]

【発明の効果】以上のように請求項1〜4の発明のネッ
トワークにおける経路選択方法によれば、送信意図ノー
ドがマスタノードを介して送信相手先ノードとリンクを
確立していてパケット通信している途中で、リンクが遮
断されたときには、送信意図ノードは送信相手先ノード
との間のリンクを中継できる適当なノードを探索し、中
継可能なノードを発見できれば当該ノードを中継ノード
として選択し、当該ノードを中継して当初の送信相手先
ノードにデータ送信することができ、通信の信頼性を高
めることができる。
As described above, according to the route selection method in the network of the first to fourth aspects of the invention, the transmission intention node establishes a link with the transmission destination node via the master node and performs packet communication. If the link is interrupted during the process, the transmission intention node searches for an appropriate node that can relay the link with the destination node, and if a node that can relay is found, selects the node as a relay node, Data can be transmitted to the original destination node by relaying the node, and the reliability of communication can be improved.

【0040】請求項5及び6の発明のノードによれば、
請求項1〜4の発明のネットワークにおける経路選択方
法を使用するネットワークのノードとして利用すること
ができ、信頼性の高いネットワークの構築に寄与でき
る。
According to the node of the invention of claims 5 and 6,
It can be used as a node of a network that uses the route selection method in the network according to the first to fourth aspects of the invention, and can contribute to the construction of a highly reliable network.

【図面の簡単な説明】[Brief description of drawings]

【図1】Bluetoothネットワークの1つのリンク態様の
説明図。
FIG. 1 is an explanatory diagram of one link mode of a Bluetooth network.

【図2】Bluetoothネットワークの別のリンク態様の説
明図。
FIG. 2 is an explanatory diagram of another link mode of the Bluetooth network.

【図3】本発明の1つの実施の形態のネットワークによ
る経路選択処理動作のシーケンス図。
FIG. 3 is a sequence diagram of a route selection processing operation by the network according to the embodiment of this invention.

【図4】上記の実施の形態において送信意図ノードが経
路探索の結果、取得した応答ノードのアドレスリストの
説明図。
FIG. 4 is an explanatory diagram of an address list of a response node acquired as a result of a route search by the transmission intention node in the above embodiment.

【図5】上記の実施の形態におけるノードのプロトコル
スタック図。
FIG. 5 is a protocol stack diagram of a node in the above embodiment.

【図6】上記の実施の形態におけるノードによる送信デ
ータの各層でのフレーム構成図。
FIG. 6 is a frame configuration diagram in each layer of transmission data by the node in the above embodiment.

【図7】上記の実施の形態におけるマスタノードが保持
するアドレスリストの説明図。
FIG. 7 is an explanatory diagram of an address list held by the master node in the above embodiment.

【符号の説明】[Explanation of symbols]

a〜f ノード a1〜e1 ノード M マスタ M/S マスタ/スレーブ af nodes a1-e1 nodes M master M / S master / slave

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 少なくともBluetooth(ブルートゥー
ス)L2CAP以下の層、Bluetoothプロファイル層、
上位ネットワーク層、アプリケーション層より成るノー
ドを有するネットワークにおける経路選択方法であっ
て、 (1)送信意図ノードの送信意図時に、予め設定された
所定ノードとのリンクが切断されて通信不能と判定した
ときに、近隣ノードの中で通信可能なノードを探索し、 (2)前記探索によって発見した通信可能なノードのア
ドレスの中に意図した送信先ノードと等しいものがある
ならば、当該アドレスのノードを選択してリンクを確立
し、 (3)前記探索によって発見した通信可能なノードのア
ドレスの中に意図した送信先ノードと等しいものがない
ならば、通信可能なノードの中から任意の1つのアドレ
スのノードを選択してリンクを確立し、 (4)(2)又は(3)で選択したアドレスのノード
が、意図した通信相手先のノードにパケットが送れるか
否か調査し、 (5)前記調査によって意図した通信相手先のノードに
パケットが送れるならば初期パケットを送信し、 (6)前記調査によって意図した通信相手先のノードに
パケットが送れない場合には、他の任意のアドレスのノ
ードを選択してリンクを確立し、パケットが送れるか否
か調査する試みを繰り返すことを特徴とするネットワー
クにおける経路選択方法。
1. At least a layer below Bluetooth (Bluetooth) L2CAP, a Bluetooth profile layer,
A route selection method in a network having a node composed of an upper network layer and an application layer, wherein (1) it is determined that communication is impossible due to disconnection of a predetermined link with a predetermined node when the transmission intention node intends to transmit. To search for a communicable node among neighboring nodes, and (2) if the address of the communicable node found by the search is equal to the intended destination node, the node of the address is searched. (3) If none of the addresses of the communicable nodes found by the search is equal to the intended destination node, any one of the communicable nodes is selected. The node with the address selected in (4), (2), or (3) is selected as the intended communication partner. It is investigated whether or not the packet can be sent to the node, (5) If the packet can be sent to the intended communication partner node by the above investigation, an initial packet is sent, and (6) to the intended communication partner node by the above investigation. A method for selecting a route in a network, characterized in that if a packet cannot be sent, a node having another arbitrary address is selected to establish a link, and an attempt to check whether or not the packet can be sent is repeated.
【請求項2】 送信意図ノードによる近隣ノードの探索
の結果、通信可能な各ノードから返却されるパケットに
含まれるノード毎のアドレス全てをリストとして送信意
図ノード内に保持し、 このリスト中の任意のアドレスを接続候補としていった
ん接続し、通信相手先ノードのアドレスに応答要求パケ
ットを送り、応答がない場合には、前記リスト中の他の
アドレスを選択していったん接続し、通信相手先ノード
のアドレスに応答要求パケットを送る手続きを繰り返
し、 前記応答要求パケットに対する応答があれば、現在接続
中のアドレスのノードを前記通信相手先ノードまでの中
継ノードとして選択することを特徴とする請求項1記載
のネットワークにおける経路選択方法。
2. As a result of searching for a neighboring node by the transmission intention node, all addresses for each node included in the packet returned from each communicable node are held in the transmission intention node as a list, and any of the list is stored. Address as a connection candidate, and then send a response request packet to the address of the communication destination node.If there is no response, select another address in the list and connect once, and 2. The procedure of sending a response request packet to an address is repeated, and if there is a response to the response request packet, the node of the currently connected address is selected as a relay node to the communication destination node. Route selection method in the Internet.
【請求項3】 予め生成されたリンクキーが存在しない
ときは、中継用PINコードとして中継を許可するノー
ドにPINコードを予め割り付けておき、これを使用し
て経路探索処理での認証用リンクキーを生成し、相互認
証することを特徴とする請求項1又は2記載のネットワ
ークにおける経路選択方法。
3. When a pre-generated link key does not exist, a PIN code is assigned in advance to a node that permits relay as a relay PIN code, and the PIN code is used for authentication in a route search process. 3. The route selection method in the network according to claim 1, wherein the route selection method is performed and mutual authentication is performed.
【請求項4】 送信意図ノードは、リンク確立後、宛先
MACアドレスを同報アドレスとし、送信相手先ノード
のネットワークアドレスを宛先アドレスとした応答要求
パケットを送信し、 前記応答要求パケットを受け取ったノードは、宛先を送
信元ネットワークアドレスとする応答パケットを送信
し、 前記送信意図ノードに前記応答パケットが返ってくれば
前記送信相手先ノードのネットワークアドレスを宛先ア
ドレスとして送信データを送ることを特徴とする請求項
1〜3いずれか記載のネットワークにおける経路選択方
法。
4. The node intended to send, after the link is established, transmits a response request packet having the destination MAC address as the broadcast address and the network address of the transmission destination node as the destination address, and receiving the response request packet. Transmits a response packet having a destination as a transmission source network address, and when the response packet is returned to the transmission intention node, transmits transmission data with the network address of the transmission destination node as a destination address. A route selection method in the network according to claim 1.
【請求項5】 マスタノードとして設定されていない場
合でも、複数の他ノードと時分割でリンクを形成するリ
ンク形成手段と、 自己宛でないパケットを受け取ったときに、送信元でな
い他のリンク相手先ノードにパケット転送するパケット
転送手段とを備えたことを特徴とするノード。
5. A link forming unit that forms a link with a plurality of other nodes in a time-division manner even when it is not set as a master node, and another link partner that is not the transmission source when a packet not addressed to itself is received. A node comprising a packet transfer means for transferring a packet to the node.
【請求項6】 複数の他のノードと時分割でリンクを形
成する機能を有するマスタとして動作していて、他のノ
ードからパケットを受け取ったときに、当該パケットで
示されている宛先アドレスが、自己の保持する宛先アド
レステーブルの中のアドレスに一致していなければ、受
け取ったパケットを別リンク先のマスタとして動作して
いるノードに転送し、保持している宛先アドレステーブ
ルの中のアドレスと一致していれば、当該アドレス宛に
受け取ったパケットを転送する機能を備えたことを特徴
とする請求項5記載のノード。
6. When operating as a master having a function of forming a link with a plurality of other nodes in a time division manner, when a packet is received from another node, the destination address indicated by the packet is If it does not match the address in the destination address table held by itself, the received packet is transferred to the node operating as the master of another link destination, and the received packet matches the address in the held destination address table. The node according to claim 5, further comprising a function of transferring a packet received to the address, if it is done.
JP2002099263A 2002-04-01 2002-04-01 Path selecting method and node in network Pending JP2003298594A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002099263A JP2003298594A (en) 2002-04-01 2002-04-01 Path selecting method and node in network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002099263A JP2003298594A (en) 2002-04-01 2002-04-01 Path selecting method and node in network

Publications (1)

Publication Number Publication Date
JP2003298594A true JP2003298594A (en) 2003-10-17

Family

ID=29388122

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002099263A Pending JP2003298594A (en) 2002-04-01 2002-04-01 Path selecting method and node in network

Country Status (1)

Country Link
JP (1) JP2003298594A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009200768A (en) * 2008-02-21 2009-09-03 Oki Electric Ind Co Ltd Communication path setting method, communication path setting program, communication terminal, wireless network system
KR20110040295A (en) * 2009-10-14 2011-04-20 삼성전자주식회사 System for sharing data using transmitting order
CN111935018A (en) * 2020-07-23 2020-11-13 北京华云安信息技术有限公司 Springboard network path generation method capable of configuring networking rules autonomously
US10855610B2 (en) 2017-08-14 2020-12-01 Fujitsu Limited Information processing apparatus, information processing system, information processing method, and storage medium

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009200768A (en) * 2008-02-21 2009-09-03 Oki Electric Ind Co Ltd Communication path setting method, communication path setting program, communication terminal, wireless network system
JP4613967B2 (en) * 2008-02-21 2011-01-19 沖電気工業株式会社 Communication path setting method, communication path setting program, communication terminal, wireless network system
KR20110040295A (en) * 2009-10-14 2011-04-20 삼성전자주식회사 System for sharing data using transmitting order
KR101581678B1 (en) 2009-10-14 2016-01-04 삼성전자주식회사 System for sharing data using transmitting order
US10855610B2 (en) 2017-08-14 2020-12-01 Fujitsu Limited Information processing apparatus, information processing system, information processing method, and storage medium
CN111935018A (en) * 2020-07-23 2020-11-13 北京华云安信息技术有限公司 Springboard network path generation method capable of configuring networking rules autonomously
CN111935018B (en) * 2020-07-23 2022-03-08 北京华云安信息技术有限公司 Springboard network path generation method capable of configuring networking rules autonomously

Similar Documents

Publication Publication Date Title
US20040028023A1 (en) Method and apparatus for providing ad-hoc networked sensors and protocols
KR100605896B1 (en) Route path setting method for mobile ad hoc network using partial route discovery and mobile terminal teerof
US7970933B2 (en) Ad hoc network, node, routing control method and routing control program
US8213352B2 (en) Wireless communication system, wireless communication device, wireless communication method, and program
JP2008518555A (en) Apparatus and method for service search in ad hoc network using beacon signal
CN101521895A (en) Forwarding method used for constructing multi-hop routing in wireless self-organizing network
JP2002512479A (en) Traffic routing in small wireless data networks
JPH08307446A (en) Application of network system
JP2005064721A (en) Communication system and method, communication terminal device and control method thereof, and program
JP2006238341A (en) Network switch apparatus and method, wireless access apparatus, and wireless network
JP4607764B2 (en) Mobile peer-to-peer network construction
WO2013042209A1 (en) Data transfer method and node device employing same
JP5958293B2 (en) COMMUNICATION METHOD, COMMUNICATION PROGRAM, AND NODE DEVICE
US7342907B2 (en) Method for controlling unidirectional link connection in mobile ad hoc networks and recording medium storing program thereof
JP2002064546A (en) Packet transfer path retrieval method and method for investigating communication possibility for wireless node with gateway node
US8160041B2 (en) Radio communication terminal and radio communication system
JP4830879B2 (en) Wireless data communication system
JP2003298594A (en) Path selecting method and node in network
JP2006203723A (en) Radio access point and its path determination method or its communication method, and radio communication system and its communication method
JP4913208B2 (en) Address resolution method
JP3613185B2 (en) Wireless node and packet route search method thereof
CN112039822B (en) Method and system for constructing real-time block chain network based on WebRTC
JP4263973B2 (en) Wireless multi-hop communication system and wireless node device
WO2023123083A1 (en) Route discovery in a mesh network
JP4520432B2 (en) VoIP network system for packet communication by multicast and its construction method