JP2008301269A - Method of constructing communication route and communication terminal using the same - Google Patents

Method of constructing communication route and communication terminal using the same Download PDF

Info

Publication number
JP2008301269A
JP2008301269A JP2007146013A JP2007146013A JP2008301269A JP 2008301269 A JP2008301269 A JP 2008301269A JP 2007146013 A JP2007146013 A JP 2007146013A JP 2007146013 A JP2007146013 A JP 2007146013A JP 2008301269 A JP2008301269 A JP 2008301269A
Authority
JP
Japan
Prior art keywords
communication
terminal
route
communication route
terminals
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
JP2007146013A
Other languages
Japanese (ja)
Other versions
JP4835517B2 (en
Inventor
Kazuo Dobashi
和生 土橋
Yukio Okada
幸夫 岡田
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.)
Panasonic Electric Works Co Ltd
Original Assignee
Panasonic Electric Works Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Panasonic Electric Works Co Ltd filed Critical Panasonic Electric Works Co Ltd
Priority to JP2007146013A priority Critical patent/JP4835517B2/en
Publication of JP2008301269A publication Critical patent/JP2008301269A/en
Application granted granted Critical
Publication of JP4835517B2 publication Critical patent/JP4835517B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Cable Transmission Systems, Equalization Of Radio And Reduction Of Echo (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Radio Relay Systems (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a method of constructing a communication route capable of shortening the calculation time of the communication route and reducing a memory area for recording topology data, and to provide a communication terminal. <P>SOLUTION: A communication network comprises one master and a plurality of slaves, and transmits and receives a signal between the master and the slaves by multi-hop communication. Each slave performs processing for searching an adjacent terminal capable of communicating directly. When the slave receives link information on the adjacent terminal capable of communicating directly from each slave, the master records the terminal ID of the communication terminal at a starting point side, that of the communication terminal at an end point side, and link costs indicating the communication quality level between both the terminals on a topology table TB1 comprising a one-dimensional data table based on received link information. After that, the master performs route search processing for obtaining a communication route to each slave by using the Dijkstra's algorithm based on the link information recorded on the topology table TB1. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

本発明は、マルチホップ通信を用いた通信端末における通信ルートの構築方法およびそれを用いる通信端末に関するものである。   The present invention relates to a method for constructing a communication route in a communication terminal using multi-hop communication and a communication terminal using the method.

従来、無線通信網に接続された複数台の通信端末からなる通信ネットワークにおいて、通信端末間で通信信号を中継することで、自端末と直接通信できない端末との通信を行う方法が知られている(いわゆるマルチホップ通信)。   2. Description of the Related Art Conventionally, in a communication network composed of a plurality of communication terminals connected to a wireless communication network, a method for communicating with a terminal that cannot directly communicate with the own terminal by relaying a communication signal between the communication terminals is known. (So-called multi-hop communication).

また近年、電力線に接続された複数台の電気機器の間で、電力線を通信線とした電力線搬送通信(以下、PLC(Power Line Communication)と略す。)を行う電力線搬送通信ネットワーク(以下、PLCネットワークと言う。)が普及している。   In recent years, a power line carrier communication network (hereinafter referred to as PLC network) that performs power line carrier communication (hereinafter referred to as PLC (Power Line Communication)) using a power line as a communication line between a plurality of electric devices connected to the power line. ) Is popular.

このようなPLCネットワークを利用し、集合住宅の各住戸に設置された電力量計に電力線搬送通信機能を付加するとともに、電気室にPLC親機を設置し、PLC親機が各住戸の電力量計(PLC子機)から検針データを取得して、取得した検針データをネットワークを通じて遠隔の検針サーバに送信するような遠隔検針システムが提案されている。また、集合住宅の電気室などに設置される幹線分岐盤に親機ユニットを設置するとともに、各住戸の住宅分電盤内に子機ユニットを設置して、親機ユニットと子機ユニットの間で分岐幹線を介して電力線搬送通信を行うことで、各住戸の電気使用量を監視、制御するシステムも提案されている。このシステムでは、子機ユニットから親機ユニットへ各住戸の電気使用量を送信させて、親機ユニットで各住戸の電気使用量と集合住宅全体の電気使用量とを同時に監視し、各住戸の電気使用量の合計が共用電気幹線の容量を超えそうな場合には、電気使用量の多い住戸の子機ユニットに親機ユニットが使用制限命令を送信し、子機ユニットが予め設定された家電製品を自動的に停止させて、集合住宅全体の電気使用量を制限するようにしている。PLCネットワークを利用したこれらのシステムでは、通信端末間の配線長が長く、また通信端末の接続台数も多くなるため、通信可能な距離にある通信端末が通信信号を中継することで、子機と親機との間で通信を行うマルチホップ通信が行われている(例えば、特許文献1を参照)。   Using such a PLC network, a power line carrier communication function is added to the watt hour meter installed in each dwelling unit of the apartment, and a PLC master unit is installed in the electrical room. There has been proposed a remote meter reading system that acquires meter reading data from a meter (PLC slave) and transmits the acquired meter reading data to a remote meter reading server through a network. In addition, a master unit is installed in the main branch board installed in the electrical room of the apartment, and a slave unit is installed in the residential distribution board of each unit. In addition, a system for monitoring and controlling the amount of electricity used in each dwelling unit by performing power line carrier communication via a branch trunk line has also been proposed. In this system, the power usage of each dwelling unit is transmitted from the slave unit to the master unit, and the power usage of each dwelling unit and the total power consumption of the entire apartment are simultaneously monitored by the master unit. If the total amount of electricity used is likely to exceed the capacity of the common electric trunk line, the master unit sends a usage restriction command to the slave unit of the dwelling unit that consumes a lot of electricity, and the slave unit is set in advance. Products are automatically shut down to limit the amount of electricity used in the entire apartment. In these systems using the PLC network, the wiring length between the communication terminals is long and the number of communication terminals connected is large, so that the communication terminals at a communicable distance relay the communication signal, Multi-hop communication that performs communication with a parent device is performed (see, for example, Patent Document 1).

ところで、上述した無線の通信ネットワークでは、ネットワーク内で端末が移動するため、ネットワークトポロジーが変化しやすい傾向があり、トポロジーの変化に対応して、各端末間の通信ルートを再構築する必要があった。またPLCネットワークにおいても、電力線を介して通信を行うために、電気機器の発生するノイズの影響により通信不可能な状態になる場合があり、また電気機器からの電源プラグを電源コンセントに抜き差しすることで、電気機器の電力線への接続状態が変化し、通話不可能になる電気機器が発生するため、ネットワークトポロジーが変化しやすいという特徴があり、トポロジーの変化に対応して、各端末間の通信ルートを再構築する必要があった。   By the way, in the wireless communication network described above, since the terminal moves within the network, the network topology tends to change, and it is necessary to reconstruct the communication route between the terminals in response to the change in topology. It was. Also, in PLC networks, communication may be impossible due to the effects of noise generated by electrical equipment because communication is performed via the power line, and the power plug from the electrical equipment must be plugged in and unplugged. Therefore, there is a feature that the network topology is easy to change because the connection state of the electrical equipment to the power line changes, and there is an electrical equipment that cannot make a call, and communication between each terminal responds to the change in topology. There was a need to rebuild the route.

そこで、これらの通信ネットワークでは、所定時間が経過する毎に端末間で通信品質レベルの最も良い通信ルートを探索する必要があり、通信ルートを効率的に探索するためにダイクストラアルゴリズムと呼ばれるアルゴリズムが用いられていた(例えば非特許文献1参照)。
特開2006−67557号公報 西丸泰之、佐藤文明;「QoSマルチキャスト配送木の構築方式」;情報処理学会研究報告 Vol.2003,No.34;社団法人 情報処理学会;2003年3月20日
Therefore, in these communication networks, it is necessary to search for a communication route having the best communication quality level between terminals every time a predetermined time elapses, and an algorithm called Dijkstra algorithm is used to efficiently search for a communication route. (For example, refer nonpatent literature 1).
JP 2006-67557 A Nishimaru Yasuyuki, Sato Fumiaki; “QoS Multicast Distribution Tree Construction Method”; Information Processing Society of Japan Research Report Vol.2003, No.34; Information Processing Society of Japan; March 20, 2003

上述の通信ネットワークでは、親機と各子機との間の通信ルートを構築するために、各通信端末が、自端末の生存を通知する通信パケット(Hello Packet、以下、Hパケットと略す。)の送受信を行うことで、直接通信可能な隣接端末を探索した後、探索結果を親機に通知するトポロジー通知メッセージを親機に対して返送しており、親機では受信したトポロジー通知メッセージから、リンクが確立している始点側の通信端末および終点側の通信端末の端末IDと、両端末間の通信品質レベルを示すリンクコストを図1(c)に示すようなトポロジーテーブルTB1’に記録させている。そして、親機ではトポロジーテーブルTB1’に記録されたリンク情報(各子機が直接通信可能な隣接端末に関する情報)をもとに、ダイクストラアルゴリズムを用いて各子機への通信ルートを構築するようになっている。   In the communication network described above, in order to establish a communication route between the parent device and each child device, each communication terminal notifies the existence of its own terminal (Hello Packet, hereinafter abbreviated as H packet). After searching for neighboring terminals that can communicate directly with each other, a topology notification message for notifying the search result to the parent device is returned to the parent device, and in the parent device, from the received topology notification message, The terminal ID of the communication terminal on the start side and the terminal side on which the link is established and the link cost indicating the communication quality level between both terminals are recorded in the topology table TB1 ′ as shown in FIG. ing. Then, based on the link information recorded in the topology table TB1 ′ (information on adjacent terminals that can be directly communicated with each child device), the parent device constructs a communication route to each child device using the Dijkstra algorithm. It has become.

ところで、図1(c)に示すトポロジーテーブルTB1’は、例えば始点側の通信端末の端末IDを列、終点側の通信端末の端末IDを行にとった2次元のデータテーブルからなり、始点側の通信端末に対応する列と終点側の通信端末に対応する行とが交差する升目にリンクコストを記録してある。また、升目に「−」が入っている箇所は対応する端末間でリンクが確立していないことを示している。ここで、始点側の通信端末と終点側の通信端末を入れ替えたセルには同じ値が記録されることになるので(m行n列のセルに入るリンクコストとn行m列のセルに入るリンクコストは同じ値になるので)、図1(c)に示すトポロジーテーブルTB1’では、対角線を挟んだ一方の領域のみにデータを記録することでテーブルサイズを小さくしているが、リンクが確立していない端末間でもリンクコストを記録させるためのメモリ領域が確保されていた。そのため、メモリ領域が無駄になり、実際に使用するメモリ領域に比べて記憶容量の大きなRAMを用意する必要があり、コスト高になるという問題があった。また、ダイクストラアルゴリズムを用いた通信ルートの探索には時間がかかり、端末の数が増えるほどルート探索に要する時間も長くなるため、通信ルートの探索時間を短縮したいという要求もあった。   By the way, the topology table TB1 ′ shown in FIG. 1C is composed of a two-dimensional data table in which, for example, the terminal IDs of the communication terminals on the start point side are arranged in a row and the terminal IDs of the communication terminals on the end point side are arranged in a row. The link cost is recorded at the grid where the column corresponding to the communication terminal and the row corresponding to the communication terminal on the end point intersect. In addition, a portion including “−” in the grid indicates that a link is not established between corresponding terminals. Here, the same value is recorded in the cell in which the communication terminal on the start point side and the communication terminal on the end point side are exchanged (the link cost that enters the cell of m rows and n columns and the cell of n rows and m columns). In the topology table TB1 ′ shown in FIG. 1C, the table size is reduced by recording data in only one area across the diagonal line, but the link is established. A memory area for recording the link cost is secured even between terminals that are not connected. For this reason, the memory area is wasted, and it is necessary to prepare a RAM having a large storage capacity compared to the memory area that is actually used, resulting in a high cost. In addition, it takes time to search for a communication route using the Dijkstra algorithm, and as the number of terminals increases, the time required for the route search becomes longer. Therefore, there has been a demand for shortening the communication route search time.

本発明は上記問題点に鑑みて為されたものであり、請求項1、7の発明の目的とするところは、トポロジーデータを記録するためのメモリ領域を小さくできる通信ルートの構築方法および通信端末を提供することにある。また、請求項2〜6の発明の目的とするところは、通信ルートの探索に要する時間を短縮しつつ、トポロジーデータを記録するためのメモリ領域を小さくた通信ルートの構築方法を提供することにある。   The present invention has been made in view of the above problems, and an object of the present invention is to establish a communication route and a communication terminal capable of reducing a memory area for recording topology data. Is to provide. Further, an object of the present invention is to provide a method for constructing a communication route in which a memory area for recording topology data is reduced while reducing the time required for searching for a communication route. is there.

上記目的を達成するために、請求項1の発明は、通信ネットワークを構成する複数の通信端末の内の1台を親機、残りを子機とし、親機が、当該親機と各子機との間の通信ルートを記憶した記憶部から、所望の子機への通信ルートを読み出し、当該通信ルートにしたがって隣接端末間で通信信号を授受することにより、親機と子機との間で通信を行うにあたり、親機が各子機から直接通信可能な隣接端末に関するリンク情報を受信し、受信したリンク情報をもとに各子機への通信ルートを構築する通信ルートの構築方法であって、各子機から、当該子機が直接通信可能な隣接端末に関するリンク情報を受信するリンク情報受信ステップと、受信したリンク情報をもとに、始点側の通信端末の端末ID、終点側の通信端末の端末ID、および、両端末間の通信品質レベルを示すリンクコストを一次元のデータテーブルからなるトポロジーテーブルに記録させるトポロジー記録ステップと、トポロジーテーブルに記録されたリンク情報をもとに、ダイクストラアルゴリズムを用いて各子機への通信ルートを求める通信ルート構築ステップとを備えることを特徴とする。   To achieve the above object, according to the present invention, one of a plurality of communication terminals constituting a communication network is a master unit and the rest is a slave unit, and the master unit includes the master unit and each slave unit. Between the master unit and the slave unit by reading the communication route to the desired slave unit from the storage unit storing the communication route between and the neighboring unit according to the communication route. This is a communication route construction method in which the base unit receives link information related to adjacent terminals that can communicate directly from each slave unit and establishes a communication route to each slave unit based on the received link information. Then, from each slave unit, a link information receiving step for receiving link information related to an adjacent terminal with which the slave unit can directly communicate, and based on the received link information, the terminal ID of the start-point side communication terminal, The terminal ID of the communication terminal, and Based on the topology recording step for recording the link cost indicating the communication quality level between terminals in the topology table consisting of a one-dimensional data table and the link information recorded in the topology table to each slave unit using the Dijkstra algorithm And a communication route construction step for obtaining a communication route.

請求項2の発明は、請求項1の発明において、通信ルート構築ステップでダイクストラアルゴリズムを用いて各子機への通信ルートを求める際に、親機から対象の子機に至る通信ルートとして、所定の通信品質以上の通信ルートが探索できた場合は、当該通信ルートを当該子機への通信ルートに決定し、当該子機に至る全ての通信ルートを探索する前に当該子機への通信ルートの探索を終了することを特徴とする。   According to the invention of claim 2, in the invention of claim 1, when obtaining a communication route to each child device using the Dijkstra algorithm in the communication route construction step, a predetermined communication route from the parent device to the target child device is specified. If a communication route that is higher than the communication quality can be searched, the communication route is determined as the communication route to the child device, and the communication route to the child device is searched before searching all communication routes to the child device. This is characterized in that the search is terminated.

請求項3の発明は、請求項1又は2の発明において、 始点側の通信端末の端末IDと、終点側の通信端末の端末IDとの大小関係が一定の関係となるようにトポロジーテーブルがソートされた状態で通信ルート構築ステップを実行することを特徴とする。   The invention according to claim 3 is the invention according to claim 1 or 2, wherein the topology table is sorted so that the magnitude relation between the terminal ID of the communication terminal on the start point side and the terminal ID of the communication terminal on the end point side is a constant relationship. The communication route construction step is executed in the state that has been made.

請求項4の発明は、請求項1乃至3の何れかの発明において、トポロジーテーブルに記憶させた始点側の通信端末の端末IDが昇順又は降順に並ぶようにソートされた状態で通信ルート構築ステップを実行することを特徴とする。   According to a fourth aspect of the present invention, there is provided the communication route construction step according to any one of the first to third aspects, wherein the terminal IDs of the communication terminals on the start side stored in the topology table are sorted in ascending or descending order. It is characterized by performing.

請求項5の発明は、請求項4の発明において、トポロジーテーブルに記憶させた終点側の通信端末の端末IDが昇順又は降順に並ぶようにソートされた状態で通信ルート構築ステップを実行することを特徴とする。   According to a fifth aspect of the invention, in the fourth aspect of the invention, the communication route construction step is executed in a state where the terminal IDs of the terminal side communication terminals stored in the topology table are sorted in ascending or descending order. Features.

請求項6の発明は、請求項1乃至5の何れかの発明において、トポロジー記録ステップにおいて、始点側または終点側の通信端末の端末IDの少なくとも何れか一方が昇順又は降順に並ぶように、始点側および終点側の通信端末の端末IDとリンクコストとをトポロジーテーブルに記録させることを特徴とする。   The invention of claim 6 is the invention according to any one of claims 1 to 5, wherein in the topology recording step, at least one of the terminal IDs of the communication terminals on the start point side or the end point side is arranged in ascending order or descending order. The terminal ID and link cost of the communication terminal on the side and the end point side are recorded in the topology table.

請求項7の発明は、通信ネットワークを構成する複数の通信端末の内の1台を親機、残りを子機とし、親機が、当該親機と各子機との間の通信ルートを記憶した記憶部から、所望の子機への通信ルートを読み出し、当該通信ルートにしたがって隣接端末間で通信信号を授受することにより、親機と子機との間で通信を行う親機側の通信端末であって、各子機から、当該子機が直接通信可能な隣接端末に関するリンク情報を受信するリンク情報受信手段と、受信したリンク情報をもとに、始点側の通信端末の端末ID、終点側の通信端末の端末ID、および、両端末間の通信品質レベルを示すリンクコストを一次元のデータテーブルからなるトポロジーテーブルに記録させるテーブル処理手段と、ソートされたトポロジーテーブルに記録されたリンク情報をもとに、ダイクストラアルゴリズムを用いて各子機への通信ルートを求める通信ルート構築手段とを備えることを特徴とする。   According to the seventh aspect of the present invention, one of a plurality of communication terminals constituting a communication network is a master unit and the rest is a slave unit, and the master unit stores a communication route between the master unit and each slave unit. The communication on the parent device side that performs communication between the parent device and the child device by reading out the communication route to the desired child device from the storage unit and exchanging communication signals between adjacent terminals according to the communication route. A link information receiving means for receiving link information related to an adjacent terminal that can be directly communicated with each slave unit, and a terminal ID of the communication terminal on the start point side based on the received link information, Recorded in the sorted topology table, table processing means for recording the terminal ID of the communication terminal on the end point side and the link cost indicating the communication quality level between both terminals in a topology table composed of a one-dimensional data table Based on link information, characterized by comprising a communication route constructing means for obtaining a communication route to the handset by using the Dijkstra algorithm.

請求項1の発明によれば、各子機から受信したリンク情報をもとに、始点側の通信端末の端末ID、終点側の通信端末の端末ID、および、両端末間の通信品質レベルを示すリンクコストを一次元のデータテーブルからなるトポロジーテーブルに記録させているので、始点側の通信端末を列、終点側の通信端末を行にとった二次元のデータテーブルからなるトポロジーテーブルにリンクコストを記録させる場合に比べて、リンクが確立できていない端末間のリンクコストを記録させるメモリ領域が無駄になることがなく、トポロジーデータを記録させるための記憶容量を小さくした通信ルートの構築方法を実現することができる。   According to the invention of claim 1, based on the link information received from each slave unit, the terminal ID of the communication terminal on the start point side, the terminal ID of the communication terminal on the end point side, and the communication quality level between both terminals are determined. Since the link cost shown is recorded in a topology table consisting of a one-dimensional data table, the link cost is added to a topology table consisting of a two-dimensional data table with the start-point side communication terminals in a row and the end-point side communication terminals in a row. Compared with the case of recording a network, a memory area for recording the link cost between terminals for which no link has been established is not wasted, and a method for constructing a communication route with a reduced storage capacity for recording topology data is provided. Can be realized.

請求項2の発明によれば、親機から対象の子機に至る通信ルートとして、所定の通信品質以上の通信ルートが探索できた場合は、当該通信ルートを当該子機への通信ルートに決定しているので、親機と子機との間の通信ルートとして所定の通信品質以上の通信ルートを確保でき、また当該子機に至る全ての通信ルートを探索し、その中から通信品質が最も良い通信ルートを選択する場合に比べて短い時間で通信ルートを探索することができる。   According to the invention of claim 2, when a communication route having a predetermined communication quality or higher can be searched as a communication route from the parent device to the target child device, the communication route is determined as a communication route to the child device. Therefore, it is possible to secure a communication route higher than the predetermined communication quality as a communication route between the parent device and the child device, and search for all communication routes to the child device, from which the communication quality is the highest. It is possible to search for a communication route in a shorter time than when selecting a good communication route.

請求項3の発明によれば、始点側の通信端末の端末IDと、終点側の通信端末の端末IDとの大小関係が一定の関係となるようにトポロジーテーブルがソートされた状態で通信ルート構築ステップを実行するので、所望の通信端末のリンク情報を検索する際に、まず始点側のみ順番に検索し、始点側が一致した時のみ終点側を検索することで、検索にかかる時間を短縮することができる。   According to the invention of claim 3, the communication route is constructed in a state in which the topology table is sorted so that the magnitude relationship between the terminal ID of the communication terminal on the start point side and the terminal ID of the communication terminal on the end point side is a constant relationship. Since the steps are executed, when searching for link information of a desired communication terminal, the search is first performed in order only on the start point side, and the end point side is searched only when the start point side matches, thereby shortening the search time. Can do.

請求項4の発明によれば、始点側の通信端末の端末IDが昇順又は降順に並ぶようにソートされた状態で通信ルート構築処理を行っているので、所望の通信端末のリンク情報を検索する際に検索にかかる時間を短縮することができる。   According to the invention of claim 4, since the communication route construction processing is performed in a state where the terminal IDs of the communication terminals on the starting point side are sorted in ascending order or descending order, the link information of the desired communication terminal is searched. The search time can be shortened.

請求項5の発明によれば、終点側の通信端末の端末IDが昇順又は降順に並ぶようにソートされた状態で通信ルート構築処理を行っているので、所望の通信端末のリンク情報を検索する際に検索にかかる時間を短縮することができる。   According to the invention of claim 5, since the communication route construction processing is performed in a state where the terminal IDs of the communication terminals on the end point side are sorted in ascending or descending order, the link information of the desired communication terminal is searched. The search time can be shortened.

請求項6の発明によれば、始点側または終点側の通信端末の端末IDの少なくとも何れか一方が昇順又は降順に並ぶように、始点側および終点側の通信端末の端末IDとリンクコストとをトポロジーテーブルに記録させているので、通信ルートを構築する際に端末IDをソートする処理を行う必要がなくなり、通信ルートの探索にかかる時間をさらに短縮することができる。   According to the invention of claim 6, the terminal ID and the link cost of the communication terminal on the start point side and the end point side are set so that at least one of the terminal IDs of the communication terminals on the start point side or the end point side is arranged in ascending order or descending order. Since it is recorded in the topology table, it is not necessary to perform processing for sorting terminal IDs when constructing a communication route, and the time required for searching for a communication route can be further shortened.

請求項7の発明によれば、リンク情報受信手段が各子機から受信したリンク情報をもとに、テーブル処理手段が、始点側の通信端末の端末ID、終点側の通信端末の端末ID、および、両端末間の通信品質レベルを示すリンクコストを一次元のデータテーブルからなるトポロジーテーブルに記録させているので、始点側の通信端末を列、終点側の通信端末を行にとった二次元のデータテーブルからなるトポロジーテーブルにリンクコストを記録させる場合に比べて、リンクが確立できていない端末間のリンクコストを記録させるメモリ領域が無駄になることがなく、トポロジーデータを記録させるための記憶容量を小さくできる通信端末を実現することができる。   According to the invention of claim 7, on the basis of the link information received from each slave unit by the link information receiving means, the table processing means includes a terminal ID of the communication terminal on the start point side, a terminal ID of the communication terminal on the end point side, In addition, since the link cost indicating the communication quality level between the two terminals is recorded in the topology table composed of a one-dimensional data table, the two-dimensional data is taken in the row of the communication terminals on the start side and the communication terminals on the end side. Compared with the case where the link cost is recorded in the topology table consisting of the data table, the memory area for recording the link cost between the terminals where the link has not been established is not wasted, and the memory for recording the topology data is stored. A communication terminal capable of reducing the capacity can be realized.

以下に、本発明に係る通信ルートの構築方法を、電力線搬送通信により通信を行う通信ネットワークに適用した実施形態について図面を参照して説明する。   Hereinafter, an embodiment in which a communication route construction method according to the present invention is applied to a communication network that performs communication by power line carrier communication will be described with reference to the drawings.

(実施形態1)
本発明の実施形態1を図面に基づいて説明する。図16は電力線搬送通信ネットワーク(以下、PLCネットワークと略す。)1の概略構成図である。このPLCネットワーク1は、例えば集合住宅のような建築物等で用いられ、複数の通信端末2を電力線Lに接続することにより構成され、複数台の通信端末2の内の1台を親機A、残りを子機Bn(n=1,2,3…)としている。
(Embodiment 1)
Embodiment 1 of this invention is demonstrated based on drawing. FIG. 16 is a schematic configuration diagram of a power line carrier communication network (hereinafter abbreviated as “PLC network”) 1. This PLC network 1 is used in, for example, a building such as an apartment house, and is configured by connecting a plurality of communication terminals 2 to a power line L, and one of the plurality of communication terminals 2 is connected to a parent device A. , And the rest are set as slave units Bn (n = 1, 2, 3,...).

このPLCネットワーク1では、親機Aおよび子機Bnが、通信可能な距離にある隣接端末2(親機A又は子機Bn)との間で所定の通信プロトコル(例えばSCP、エコーネット等)を用いて電力線搬送通信を行っており、親機Aが子機Bnから所定の情報を収集するとともに、子機Bnの遠隔監視が行われるものである。ここで、本ネットワーク1では、親機Aと各子機Bnとの間で直接又は間接に通信が行われ、親機Aと直接通信できない子機Bnは、通信可能な距離にある他の子機Bnに通信信号を順次中継することで、親機Aとの通信を行っている。   In the PLC network 1, a predetermined communication protocol (for example, SCP, Echonet, etc.) is transmitted between the parent device A and the child device Bn with the adjacent terminal 2 (the parent device A or the child device Bn) at a communicable distance. Power line carrier communication is performed, and the parent device A collects predetermined information from the child device Bn, and remote monitoring of the child device Bn is performed. Here, in the present network 1, communication is performed directly or indirectly between the parent device A and each child device Bn, and the child device Bn that cannot directly communicate with the parent device A is another child within a communicable distance. Communication with the parent device A is performed by sequentially relaying communication signals to the device Bn.

図17は本実施形態に用いる通信端末2(親機A又は子機Bn)のブロック図である。本実施形態では親機Aと子機Bnとに同一の通信端末2を用いており、例えば何れかの通信端末2で、ジャンパースイッチや切替スイッチなどの設定手段(図示せず)を用いて親機側に設定することで親機Aとして機能させ、他の通信端末2では設定手段を用いて子機側に設定することで子機Bnとして機能させるようになっている。   FIG. 17 is a block diagram of the communication terminal 2 (master device A or slave device Bn) used in this embodiment. In the present embodiment, the same communication terminal 2 is used for the parent device A and the child device Bn. For example, any one of the communication terminals 2 uses a setting means (not shown) such as a jumper switch or a changeover switch. It is made to function as the main | base station A by setting to the side of a machine, and it is made to function as the subunit | mobile_unit Bn by setting to the subunit | mobile_unit side using the setting means in other communication terminals 2.

通信端末2は、記憶部3と、電力線搬送通信インターフェース部(以下、PLCインターフェース部と略す)4と、制御部5とを備える。記憶部3は、ROMなどの不揮発性のメモリや、EEPROMなどの書き換え可能な不揮発性のメモリや、RAMなどの揮発性メモリからなり、通信ルートや通信可能な隣接端末に関するリンク情報などを記憶するテーブル記憶部3aを備えると共に、この通信端末2を動作させるための制御プログラムなどの各種プログラムや、各プログラムの実行に必要な情報などを記憶する。   The communication terminal 2 includes a storage unit 3, a power line carrier communication interface unit (hereinafter abbreviated as “PLC interface unit”) 4, and a control unit 5. The storage unit 3 includes a non-volatile memory such as a ROM, a rewritable non-volatile memory such as an EEPROM, and a volatile memory such as a RAM, and stores a communication route and link information related to a neighboring terminal capable of communication. A table storage unit 3 a is provided, and various programs such as a control program for operating the communication terminal 2, information necessary for executing each program, and the like are stored.

テーブル記憶部3aはテーブル形式のデータを記憶する領域であり、本端末が親機Aの場合にはテーブル記憶部3aに、ネットワーク内で構築された端末間の全通信ルートを登録するための通信ルートテーブルや、各端末が直接通信可能な隣接端末の情報(リンク情報)を記録するためのトポロジーテーブルが記憶される。一方、本端末が子機Bnの場合にはテーブル記憶部3aに、当該子機Bnが通信可能な隣接端末2(親機Aまたは他の子機Bn)と、当該子機Bnと隣接端末2(親機Aまたは他の子機Bn)との間の通信品質レベルを示す通信コスト値(以下、リンクコストと言う。)と、隣接端末2を経由した当該子機Bnと親機Aとの間の通信品質レベルを示す通信コスト値(以下、ルートコストと言う。)とを表す通信可能端末テーブルDを記憶する。   The table storage unit 3a is an area for storing data in a table format. When this terminal is the base unit A, communication for registering all communication routes between terminals built in the network in the table storage unit 3a. A route table and a topology table for recording information (link information) of adjacent terminals with which each terminal can directly communicate are stored. On the other hand, when the terminal is a slave unit Bn, the table storage unit 3a has an adjacent terminal 2 (master unit A or another slave unit Bn) with which the slave unit Bn can communicate, and the slave unit Bn and the adjacent terminal 2 A communication cost value (hereinafter referred to as a link cost) indicating a communication quality level between (the parent device A or another child device Bn) and the child device Bn and the parent device A via the adjacent terminal 2 A communicable terminal table D representing a communication cost value (hereinafter referred to as a route cost) indicating a communication quality level is stored.

表1は通信可能端末テーブルDの1例を示し、このデータテーブルDには、自端末と直接通信が可能な隣接端末2(親機Aまたは他の子機Bn)に割り当てた端末IDと、隣接端末2の種別(親機Aまたは他の子機Bn)を示す端末種別データと、隣接端末2と自端末との間の通信品質レベルを示すリンクコストと、隣接端末2と親機Aとの間のルートコストと、隣接端末2から親機Aまでの通信ルートにおいて自機から1ホップ目、2ホップ目、…、Nホップ目の通信端末2を示す端末IDとが対応付けて記憶されている。なお、上記の通信コスト値(リンクコストおよびルートコスト)は、隣接端末から受信した通信信号の受信信号強度を数段階のレベルで表したものであり、値が小さいほど、通信信号の減衰が小さく、通信品質レベルが高いことを示している。また、自端末から親機Aまでのルートコストは、自端末と隣接端末との間のリンクコストに、隣接端末と親機Aとの間の上位側ルートコストを加算した値になる。   Table 1 shows an example of the communicable terminal table D. In this data table D, the terminal ID assigned to the adjacent terminal 2 (master A or other slave Bn) that can directly communicate with the own terminal, The terminal type data indicating the type of the adjacent terminal 2 (base unit A or other slave unit Bn), the link cost indicating the communication quality level between the adjacent terminal 2 and the own terminal, the adjacent terminal 2 and the base unit A And the terminal ID indicating the first hop, the second hop,..., The N hop communication terminal 2 from the own device in the communication route from the adjacent terminal 2 to the base unit A are stored in association with each other. ing. The above communication cost values (link cost and route cost) represent the received signal strength of a communication signal received from an adjacent terminal at several levels. The smaller the value, the smaller the attenuation of the communication signal. This indicates that the communication quality level is high. Further, the route cost from the own terminal to the parent device A is a value obtained by adding the higher-order route cost between the adjacent terminal and the parent device A to the link cost between the own terminal and the adjacent terminal.

Figure 2008301269
Figure 2008301269

ここで、PLCネットワーク1では電力線Lを通じて通信を行うため、電力線Lに接続される他の家電機器から発生するノイズや、他の家電機器が接続されることによる電力線Lのインピーダンスの低下等によって、伝送環境が悪化し、通信エラー率が増大する虞がある。またPLCネットワーク1の伝送環境は、家電機器の電源プラグを電源コンセントに抜き差したり、家電機器の可動状態に応じてダイナミックに変化する。そのため、PLCネットワーク1では、ネットワークトポロジーが固定的ではなく、変化しやすい傾向があり、ネットワークトポロジーが変化しても、親機Aと子機Bnとの間で通信を良好に行えるように、親機Aと各子機Bnとの間の通信ルートを定期的に探索し、最適な通信ルートを構築する必要がある。   Here, since the PLC network 1 performs communication through the power line L, noise generated from other home appliances connected to the power line L, reduction in impedance of the power line L due to connection of other home appliances, and the like, There is a risk that the transmission environment will deteriorate and the communication error rate will increase. The transmission environment of the PLC network 1 dynamically changes depending on whether the home appliance is plugged in or unplugged from the power outlet or the home appliance is movable. For this reason, in the PLC network 1, the network topology is not fixed and tends to change, and even if the network topology changes, the parent device A and the child device Bn can communicate well with each other. It is necessary to periodically search for a communication route between the device A and each child device Bn to construct an optimum communication route.

すなわち通信端末2の制御部5は、例えば、マイクロプロセッサやその周辺回路等で構成され、親機Aと子機Bnとの間の通信ルートを探索するための処理[すなわち隣接端末を探索する処理や探索結果(リンク情報)を親機に通知する処理や親機側でリンク情報をもとにルートを探索する処理など]を実行するために、通信処理部5aと、テーブル処理部5bと、ハロー・パケット送信タイマ部(以下、Hパケット送信タイマ部と略す)5cと、リンク通知パケット送信タイマ部5dとを備えている。   That is, the control unit 5 of the communication terminal 2 includes, for example, a microprocessor and its peripheral circuits, and performs processing for searching for a communication route between the parent device A and the child device Bn [that is, processing for searching for an adjacent terminal] In order to execute a process for notifying the base unit of a search result (link information) or a process for searching for a route based on link information on the base unit side], a communication processing unit 5a, a table processing unit 5b, A hello packet transmission timer unit (hereinafter abbreviated as H packet transmission timer unit) 5c and a link notification packet transmission timer unit 5d are provided.

通信処理部5aは、PLCインターフェース部4を用いて他の通信端末2との間で電力線搬送通信により通信信号を送受信し、後述の動作を行うことによって、親機Aと子機Bnとの間の通信ルートを構築する通信ルート構築処理(ルート探索処理およびルート選択処理からなる)を行う。図18(a)は通信端末2(親機Aおよび子機Bn)間で授受される通信パケットの基本フォーマットを示しており、送信元の通信端末2の送信端末IDと、受信側の通信端末2の受信端末IDと、メッセージタイプと、メッセージタイプに応じたデータ(メッセージ依存部)とで構成される。メッセージタイプとしては、自端末の生存や通信ルートを通知するためのハロー・パケット、隣接端末情報を親機に通知するためのリンク通知パケット、通常パケットを送信したときに中継途中で通信エラーが起こった場合に送信するルートエラーパケットなどがある。図18(b)はハロー・パケット(Hパケット)のパケットフォーマットを示し、送信端末IDと、受信端末IDと、メッセージタイプを示すデータ「Hello」と、送信元の端末タイプ(親機Aまたは子機Bnの種別)を示すデータと、子機側で求めた自機から親機Aまでの通信ルートを示すデータとを少なくとも含み、リンクが喪失した端末が存在する場合はそのアドレスを示すリンク喪失端末アドレスを付加して構成される。また図18(c)はリンク通知パケットのパケットフォーマットを示し、送信端末IDと、受信端末IDと、メッセージタイプを示すデータ「リンク通知」と、子機側で求めた自機から親機Aまでの通信ルートを示すルート情報と、直接通信可能な隣接端末に関する隣接端末情報とを少なくとも含み、リンクが喪失した端末が存在する場合はそのアドレスを示すリンク喪失端末アドレスを付加して構成される。また図18(d)はルートエラーパケットのパケットフォーマットを示し、送信端末IDと、受信端末IDと、メッセージタイプを示すデータ「ルートエラー」と、自機から親機Aまでの通信ルートを示すルート情報と、通信エラーが発生したエラー箇所を示す情報とを含んで構成される。   The communication processing unit 5a transmits / receives a communication signal by power line carrier communication to / from another communication terminal 2 using the PLC interface unit 4, and performs an operation described later, thereby performing a communication between the parent device A and the child device Bn. A communication route construction process (consisting of a route search process and a route selection process) for constructing a communication route is performed. FIG. 18A shows a basic format of a communication packet exchanged between the communication terminals 2 (base unit A and handset Bn). The transmission terminal ID of the source communication terminal 2 and the reception side communication terminal are shown. 2 reception terminal ID, message type, and data (message dependent part) corresponding to the message type. The message type includes a hello packet for notifying the existence of the terminal itself and the communication route, a link notification packet for notifying neighboring terminal information to the base unit, and a communication error during relay when sending a normal packet. There is a route error packet to be transmitted in the case of. FIG. 18B shows a packet format of a hello packet (H packet), a transmission terminal ID, a reception terminal ID, data “Hello” indicating a message type, and a transmission source terminal type (master A or child). Data indicating the type of the machine Bn) and at least data indicating the communication route from the own machine to the parent machine A obtained on the slave side, and if there is a terminal with a lost link, the link is lost indicating the address. It is configured with a terminal address added. FIG. 18C shows the packet format of the link notification packet. The transmission terminal ID, the reception terminal ID, the data “link notification” indicating the message type, and from the own device to the parent device A obtained on the child device side. Route information indicating the communication route of the terminal and adjacent terminal information regarding the adjacent terminal capable of direct communication. When there is a terminal with a lost link, a link lost terminal address indicating the address is added. FIG. 18D shows the packet format of the route error packet. The transmission terminal ID, the receiving terminal ID, the data “route error” indicating the message type, and the route indicating the communication route from the own device to the parent device A. It includes information and information indicating an error location where a communication error has occurred.

またテーブル処理部5bは、テーブル記憶部3aに記憶されているデータテーブル(通信ルートテーブル、トポロジーテーブル、通信可能端末テーブルDなど)を管理する。   The table processing unit 5b manages a data table (communication route table, topology table, communicable terminal table D, etc.) stored in the table storage unit 3a.

Hパケット送信タイマ部5cは時間を計時する計時手段を有し、所定の送信時間が経過する毎に通信処理部5aにトリガ信号を与え、通信処理部5aからHパケットを送信させる。すなわち、Hパケットが所定の送信時間間隔で送信されることになる。   The H packet transmission timer unit 5c has time measuring means for measuring time, and gives a trigger signal to the communication processing unit 5a every time a predetermined transmission time elapses to cause the communication processing unit 5a to transmit an H packet. That is, H packets are transmitted at predetermined transmission time intervals.

またリンク通知パケット送信タイマ部5dも時間を計時する計時手段を有し、所定の送信時間が経過する毎に通信処理部5aにトリガ信号を与え、通信処理部5aからリンク通知パケットを送信させる。すなわち、リンク通知パケットが所定の送信時間間隔で送信されることになる。   The link notification packet transmission timer unit 5d also has a time measuring means for measuring time, and gives a trigger signal to the communication processing unit 5a every time a predetermined transmission time elapses to cause the communication processing unit 5a to transmit a link notification packet. That is, the link notification packet is transmitted at a predetermined transmission time interval.

各通信端末2では、Hパケット送信タイマ部5cから通信処理部5aに送信タイミングの到来を示す信号が出力されると、通信処理部5aがHパケットを作成し、ブロードキャストで電力線Lに送信しており、Hパケットを受信可能な隣接端末との間の通信品質レベル(リンクコスト)や、隣接端末の上位ルートに関する情報を取得する。   In each communication terminal 2, when a signal indicating the arrival of transmission timing is output from the H packet transmission timer unit 5c to the communication processing unit 5a, the communication processing unit 5a creates an H packet and transmits it to the power line L by broadcast. The communication quality level (link cost) with the adjacent terminal capable of receiving the H packet and the information on the upper route of the adjacent terminal are acquired.

ここで、図3(a)に示す通信ネットワークにおいて通信ルートを構築する処理について以下に説明する。この通信ネットワークは1台の親機Aと複数台(例えば6台)の子機B1〜B6とで構成され、親機Aの端末IDを100、子機B1〜B6の端末IDをそれぞれ101〜106に設定してある。また図3(a)において実線でつながれた端末同士は直接通信可能な端末を示し、両端末間をつなぐ線の近傍に表示した数字は両端末間のリンクコストを示している。   Here, processing for constructing a communication route in the communication network shown in FIG. This communication network is composed of one parent device A and a plurality of (for example, six) child devices B1 to B6. The terminal ID of the parent device A is 100, and the terminal IDs of the child devices B1 to B6 are 101 to 101 respectively. 106 is set. In FIG. 3A, terminals connected by a solid line indicate terminals that can directly communicate with each other, and a number displayed in the vicinity of a line connecting the two terminals indicates a link cost between the two terminals.

先ず親機Aにおいて、Hパケット送信タイマ部5cから通信処理部5aに送信タイミングの到来を示す信号が出力されると、通信処理部5aが上述のHパケットを作成し、ブロードキャストで電力線Lに送信する。この時、親機Aから送信されるHパケットは、送信端末IDが自機のID=100、受信端末IDがブロードキャスト、メッセージタイプが「Hello」、端末タイプが親機となる。   First, when a signal indicating the arrival of transmission timing is output from the H packet transmission timer unit 5c to the communication processing unit 5a in the base unit A, the communication processing unit 5a creates the above H packet and transmits it to the power line L by broadcast. To do. At this time, in the H packet transmitted from the parent device A, the transmission terminal ID is ID = 100 of the own device, the reception terminal ID is broadcast, the message type is “Hello”, and the terminal type is the parent device.

子機B1,B2の通信処理部5aは、親機Aから送信されたHパケットを受信することで、親機Aと直接通信が可能であることが分かり、また上記Hパケットの受信信号強度から親機Aとの間の通信品質レベル(リンクコスト)を算出することができる。そして、各子機B1,B2の通信処理部5aでは、親機AからのHパケットを受信することで、親機と直接通信できることが判明したため、上述のHパケットを作成し、ブロードキャストで電力線Lに送信する。この時、子機B1から送信されるHパケットは、送信端末IDが自機のID=101、受信端末IDがブロードキャスト、メッセージタイプが「Hello」、端末タイプが子機、子機の求めた親機へのルートが子機B1(101)→親機A(100)で、そのルートコストが3となる。子機B2から送信されるHパケットは、送信端末IDが自機のID=102、受信端末IDがブロードキャスト、メッセージタイプが「Hello」、端末タイプが子機、子機の求めた親機へのルートが子機B2(102)→親機A(100)で、そのルートコストが2となる。   It is understood that the communication processing unit 5a of the slave units B1 and B2 can directly communicate with the master unit A by receiving the H packet transmitted from the master unit A, and from the received signal strength of the H packet. The communication quality level (link cost) with the parent device A can be calculated. And since it became clear in the communication processing part 5a of each subunit | mobile_unit B1, B2 that it can communicate directly with the main | base station by receiving the H packet from the main | base station A, the above-mentioned H packet is produced, and power line L is broadcast. Send to. At this time, the H packet transmitted from the child device B1 has the transmission terminal ID of own device ID = 101, the reception terminal ID is broadcast, the message type is “Hello”, the terminal type is the child device, and the parent device requested by the child device. The route to the machine is the child machine B1 (101) → the parent machine A (100), and the route cost is 3. The H packet transmitted from the child device B2 is transmitted to the parent device that the transmission terminal ID is 102, the reception terminal ID is broadcast, the message type is “Hello”, the terminal type is the child device, and the child device is requested. The route is slave unit B2 (102) → base unit A (100), and the route cost is 2.

子機B3の通信処理部5aでは、子機B1から送信されたHパケットを受信することにより、子機B1との間で直接通信が可能であることが分かり、また子機B1からのHパケットの受信信号レベルに基づいて子機B1との間のリンクコスト(=5)を求める。この時、子機B3の通信処理部5aでは、自機と親機とをつなぐ通信ルートとして子機B1を経由した通信ルートのみを発見でき、この通信ルートのルートコストは各ホップのリンクコストの総和(=8)になる。なお、子機B3から送信されるHパケットは、送信端末IDが自機のID=103、受信端末IDがブロードキャスト、メッセージタイプが「Hello」、端末タイプが子機、親機への通信ルートが子機B3(103)→子機B1(101)→親機A(100)で、そのルートコストが8となる。   The communication processing unit 5a of the slave unit B3 receives the H packet transmitted from the slave unit B1, and thus can directly communicate with the slave unit B1, and the H packet from the slave unit B1. The link cost (= 5) with the handset B1 is obtained based on the received signal level. At this time, in the communication processing unit 5a of the child device B3, only the communication route via the child device B1 can be found as a communication route connecting the own device and the parent device, and the route cost of this communication route is the link cost of each hop. The sum is (= 8). Note that the H packet transmitted from the slave unit B3 has a transmission terminal ID of own device ID = 103, a reception terminal ID of broadcast, a message type of “Hello”, a terminal type of slave unit, and a communication route to the master unit. The route cost is 8 in the sub unit B3 (103) → the sub unit B1 (101) → the main unit A (100).

また子機B4の通信処理部5aでは、子機B1,B2,B3から送信されたHパケットを受信することにより、子機B1,B2,B3との間でそれぞれ直接通信が可能であることが分かり、また各子機からのHパケットの受信信号レベルに基づいて各子機との間のリンクコスト(子機B1間はリンクコストが2、子機B2間はリンクコストが4、子機B3間はリンクコストが5)を求める。この時、子機B4の通信処理部5aでは、自機と親機とをつなぐ通信ルートとして子機B1,B2,B3をそれぞれ経由した3つの通信ルートを発見でき、各通信ルートのルートコストは各ホップのリンクコストの総和になるので、子機B1を経由するルートコストが5、子機B2を経由するルートコストが6、子機B3を経由するルートコストが13であることが分かる。ここで、ルートコストは値が小さいほど通信品質レベルが良好であるので、子機B1を経由するルートコストが最も小さいことから、子機B0の通信処理部5aは、自機と親機Aとの間の通信ルートとして「子機B4→子機B1→親機A」との通信ルートを選択し、選択した通信ルートを通知するためのHパケットを作成し、ブロードキャストで送信する。なお、子機B4から送信されるHパケットは、送信端末IDが自機のID=104、受信端末IDがブロードキャスト、メッセージタイプが「Hello」、端末タイプが子機、親機への通信ルートが子機B4(104)→子機B1(101)→親機A(100)で、そのルートコストが5となる。   In addition, the communication processing unit 5a of the slave unit B4 can directly communicate with the slave units B1, B2, and B3 by receiving the H packets transmitted from the slave units B1, B2, and B3. Also, based on the received signal level of the H packet from each slave unit, the link cost between each slave unit (link cost is 2 between slave units B1, link cost is 4 between slave units B2, and slave unit B3 The link cost is 5). At this time, the communication processing unit 5a of the child device B4 can find three communication routes respectively passing through the child devices B1, B2, and B3 as communication routes connecting the own device and the parent device, and the route cost of each communication route is Since the link cost of each hop is the sum, it can be seen that the route cost via the child device B1 is 5, the route cost via the child device B2 is 6, and the route cost via the child device B3 is 13. Here, the smaller the value of the route cost is, the better the communication quality level is. Therefore, the route cost via the child device B1 is the smallest. Therefore, the communication processing unit 5a of the child device B0 A communication route of “child device B4 → slave device B1 → parent device A” is selected as a communication route between and a H packet for notifying the selected communication route is created and transmitted by broadcast. The H packet transmitted from the child device B4 has a transmission terminal ID of own device ID = 104, a reception terminal ID of broadcast, a message type of “Hello”, a terminal type of the child device, and a communication route to the parent device. The route cost is 5 in the sub unit B4 (104) → the sub unit B1 (101) → the main unit A (100).

他の子機B5(105),B6(106)も他の子機からのHパケットを受信することで、直接通信可能な隣接端末を検出でき、隣接端末から親機Aまでの通信ルートおよびその上位側ルートコストと、隣接端末との間のリンクコストをもとに自端末から親機Aまでの通信ルートおよびそのルートコストを求め、Hパケットによりブロードキャスト送信する。   The other handset B5 (105) and B6 (106) can also detect the adjacent terminal capable of direct communication by receiving the H packet from the other handset, and the communication route from the adjacent terminal to the base unit A and its Based on the higher-order route cost and the link cost between the adjacent terminals, the communication route from the own terminal to the parent device A and its route cost are obtained, and broadcast transmission is performed using H packets.

以上のようにして各子機B1〜B6では、親機Aとの間の通信ルートを選択でき、また各子機BnではHパケットを送受することで、直接通信可能な隣接端末の情報を取得でき、リンク通知パケット送信タイマ部5dからトリガ信号が与えられると、隣接端末に関するリンク情報をリンク通知パケットに格納して親機Aに送信する。   As described above, each of the slave units B1 to B6 can select a communication route with the master unit A, and each slave unit Bn obtains information on adjacent terminals that can communicate directly by transmitting and receiving H packets. When a trigger signal is given from the link notification packet transmission timer unit 5d, the link information related to the adjacent terminal is stored in the link notification packet and transmitted to the parent device A.

例えば、子機B4がリンク通知パケットを送信する場合、そのリンク通知パケットは、送信端末IDが自機のID=104、受信端末IDが子機B1のID=101、メッセージタイプが「リンク通知」、親機へのルートが子機B4(104)→子機B1(101)→親機A(100)でそのルートコストが5、隣接端末情報が子機B1(ID=101、リンクコスト2)、子機B2(ID=102、リンクコスト4)、子機B3(ID=103、リンクコスト5)となる。このリンク通知パケットを受信した子機B1の通信処理部5aでは、リンク通知パケットに含まれるルート情報を参照することにより、親機Aに中継すれば良いことが分かるので、子機B4から受信したリンク通知パケットをもとに、親機Aへ送信するリンク通知パケットを作成し、親機Aに送信する。ここで、子機B1が送信するリンク通知パケットは、送信端末IDが自機のID=101、受信端末IDが親機のID=100、メッセージタイプが「リンク通知」、親機へのルートが子機B4(104)→子機B1(101)→親機A(100)でそのルートコストが5、隣接端末情報が子機B1(ID=101、リンクコスト2)、子機B2(ID=102、リンクコスト4)、子機B3(ID=103、リンクコスト5)となる。このリンク通知パケットを親機Aが受信すると、リンク通知パケットに含まれる親機へのルート情報から送信元が子機B4(ID=104)であることが分かるので、子機B4間の通信ルートに関する情報を取得するとともに、上記パケットに含まれる隣接端末情報をもとに、図3(b)に示すようなトポロジーテーブルTB1を作成する。このリンク通知パケットは各子機Bnから一定の時間間隔で送信されるので、親機Aでは各子機Bnからのリンク通知パケットを受信することで、各子機Bnとの間の通信ルートや、各子機Bnの隣接端末情報を取得することができる。   For example, when the slave unit B4 transmits a link notification packet, the link notification packet has a transmission terminal ID of own device ID = 104, a reception terminal ID of slave unit B1 ID = 101, and a message type of “link notification”. The route to the parent device is the child device B4 (104) → the child device B1 (101) → the parent device A (100), the route cost is 5, and the adjacent terminal information is the child device B1 (ID = 101, link cost 2). , Slave unit B2 (ID = 102, link cost 4) and slave unit B3 (ID = 103, link cost 5). The communication processing unit 5a of the slave unit B1 that has received the link notification packet can know that it should be relayed to the master unit A by referring to the route information included in the link notification packet. Based on the link notification packet, a link notification packet to be transmitted to base unit A is created and transmitted to base unit A. Here, the link notification packet transmitted by the child device B1 has a transmission terminal ID of own device ID = 101, a reception terminal ID of the parent device ID = 100, a message type of “link notification”, and a route to the parent device. The child device B4 (104) → the child device B1 (101) → the parent device A (100) has a route cost of 5, the adjacent terminal information is the child device B1 (ID = 101, link cost 2), and the child device B2 (ID = 102, link cost 4), and slave unit B3 (ID = 103, link cost 5). When the base unit A receives this link notification packet, it can be seen from the route information to the base unit included in the link notification packet that the transmission source is the base unit B4 (ID = 104). And a topology table TB1 as shown in FIG. 3B is created based on the neighboring terminal information included in the packet. Since this link notification packet is transmitted from each slave unit Bn at a fixed time interval, the master unit A receives the link notification packet from each slave unit Bn, and thus the communication route between each slave unit Bn and The adjacent terminal information of each slave unit Bn can be acquired.

而して、親機Aの通信処理部5a(リンク情報受信手段)では、各子機Bnからのリンク通知パケットを受信することで、各子機Bnが直接通信可能な隣接端末の情報を取得することができ(リンク情報受信ステップ)、テーブル処理部5bを用いて、各子機Bnの隣接端末に関するリンク情報をトポロジーテーブルTB1に記憶させる。なお、リンク通知パケットに含まれる通信ルートのデータは、各子機が、Hパケットを送受できる範囲で求めた通信ルートであり、しかも1つのルートのデータしか含まれていなので、トポロジーの変化などによって通信ルートが不通となっている可能性もあり、親機Aでは、トポロジーテーブルTB1に記録されたリンク情報をもとに後述する探索処理を行って、各子機Bnへの通信ルートを探索するようにしている。   Thus, the communication processing unit 5a (link information receiving means) of the parent device A acquires the information of the adjacent terminals with which each child device Bn can directly communicate by receiving the link notification packet from each child device Bn. (Link information receiving step), the table processing unit 5b is used to store link information related to the adjacent terminal of each slave unit Bn in the topology table TB1. Note that the data of the communication route included in the link notification packet is a communication route obtained within a range in which each slave unit can transmit and receive the H packet, and includes only one route data. There is a possibility that the communication route is disconnected, and the base unit A searches for a communication route to each slave unit Bn by performing a search process described later based on the link information recorded in the topology table TB1. I am doing so.

ここで、従来の通信ネットワークでは、親機Aが子機Bnから送信されたトポロジー通知メッセージに基づいて、このメッセージに格納されたリンク情報(始点側および終点側の通信端末2の端末IDとリンクコストからなる)を図1(c)に示すトポロジーテーブルTB1’に記録させていた。このトポロジーテーブルTB1’は、始点側の通信端末を列、終点側の通信端末を行にとった二次元のデータテーブルで構成されているため、通信端末の個数をn個とすると、リンクコストを記録させるメモリ領域が[(n−1)!]個用意されることになり、双方向リンクが確立できていない端末間のリンクコストを記録させるためのメモリ領域が無駄になるという問題があった。   Here, in the conventional communication network, based on the topology notification message transmitted from the slave unit Bn by the master unit A, the link information stored in this message (the terminal ID and the link of the communication terminal 2 on the start point side and the end point side) (Consisting of cost) is recorded in the topology table TB1 ′ shown in FIG. This topology table TB1 ′ is composed of a two-dimensional data table in which the communication terminals on the start point side are arranged in a row and the communication terminals on the end point side are arranged in a row. Therefore, when the number of communication terminals is n, the link cost is reduced. The memory area to be recorded is [(n-1)! There is a problem that a memory area for recording the link cost between terminals for which a bidirectional link cannot be established is wasted.

そこで、本実施形態では親機Aのテーブル処理部5b(テーブル処理手段)が、子機Bnからのトポロジー通知メッセージに格納されて送信されてきたリンク情報を、図1(a)に示すようなトポロジーテーブルTB1に格納している(トポロジー記録ステップ)。尚、図1,図2では図示を簡単にするため始点ノードおよび終点ノードを1桁の数字で示している。   Therefore, in the present embodiment, the link information stored in the topology notification message from the slave unit Bn and transmitted by the table processing unit 5b (table processing means) of the master unit A as shown in FIG. It is stored in the topology table TB1 (topology recording step). In FIG. 1 and FIG. 2, the start point node and the end point node are indicated by single-digit numbers for the sake of simplicity.

本実施形態で用いるトポロジーテーブルTB1は、始点側の通信端末(始点ノード)の端末ID、終点側の通信端末(終点ノード)の端末ID、および、両端末間の通信品質レベルを示すリンクコストを一次元に記録したテーブルからなり、リンク情報が通知された分のメモリ領域しか必要とせず、図1(c)に示すトポロジーテーブルTB1’のように予め所定個数のメモリ領域を確保する場合に比べてメモリ領域を小さくでき、無駄になるメモリ領域が発生しないので、メモリ領域を有効に活用することができ、記憶容量が必要以上に大きいメモリを用意する必要がないので、通信端末のコストが増大するのを防止できるという利点がある。   The topology table TB1 used in the present embodiment includes a terminal ID of a communication terminal (start node) on the start side, a terminal ID of a communication terminal (end node) on the end side, and a link cost indicating a communication quality level between both terminals. It consists of a one-dimensionally recorded table, and only requires a memory area for which link information is notified. Compared to a case where a predetermined number of memory areas are secured in advance as in the topology table TB1 ′ shown in FIG. The memory area can be made smaller and there is no wasted memory area, so the memory area can be used effectively, and it is not necessary to prepare a memory with a larger storage capacity than necessary. There is an advantage that can be prevented.

なお親機Aの通信処理部5aでは、トポロジーテーブルTB1に記録されたリンク情報をもとに、各子機Bnへの通信ルートを探索する後述のルート探索処理を実行するのであるが、リンク情報の検索を容易にするために、図1(b)に示すように始点ノードの端末IDと、終点ノードの端末IDとの大小関係が一定の関係(例えば、(始点ノードの端末ID)<(終点ノードの端末ID))となるようにトポロジーテーブルTB1に記録させることが好ましい。ここで、検索対象の端末と通信可能なリンク(端末)を検索する際に、始点ノードの端末IDと終点ノードの端末IDとの大小関係に一定の関係付けが行われていない場合は、トポロジーテーブルTB1に記録されている全てのリンク情報の始点側のIDと終点側のIDを両方共に検索しなければならないが、(始点ノードの端末ID)<(終点ノードの端末ID)となるようにトポロジーテーブルTB1に記録させておけば、始点側或いは終点側の片方だけを検索すれば良く、通信ルートの計算にかかる時間を短縮できるという利点がある。   Note that the communication processing unit 5a of the parent device A executes a route search process (to be described later) for searching for a communication route to each child device Bn based on the link information recorded in the topology table TB1. As shown in FIG. 1B, the magnitude relationship between the terminal ID of the start node and the terminal ID of the end node is constant (for example, (terminal ID of the start node) <( It is preferable to record in the topology table TB1 so as to be the terminal ID of the end node))). Here, when searching for a link (terminal) communicable with the terminal to be searched, if there is no fixed relationship between the size of the terminal ID of the start node and the terminal ID of the end node, the topology Both the start-side ID and the end-side ID of all link information recorded in the table TB1 must be searched, so that (start-point node ID) <(end-point node ID). If recorded in the topology table TB1, only one of the start point and the end point needs to be searched, and there is an advantage that the time required for calculating the communication route can be shortened.

また、図2(a)に示すトポロジーテーブルTB1のように始点ノードの端末IDあるいは終点ノードの端末IDが昇順または降順にソートされていない場合は、所望の端末のリンク情報を検索するのに、先頭レコードから順番に検索しなければならないため時間を要するが、図2(b)に示すように始点ノードの端末IDを昇順にソートすることで、所望の端末のリンク情報を検索するのに2分探索などの探索アルゴリズムを利用できるから、端末の検索処理を効率よく行うことができる。また、図2(c)に示すように始点ノードの端末IDを第1キーとして昇順にソートした後に、終点ノードの端末IDを第2キーとして昇順にソートすることで、所望の端末のリンク情報を検索する処理をさらに効率よく行うことができる。尚、図2(b)(c)に示すトポロジーテーブルTB1では、始点ノードまたは終点ノードを昇順にソートしているが、降順にソートしても良く、所望の端末のリンク情報を検索する処理を効率よく行うことができる。また、図2(b)に示すトポロジーテーブルTB1では、始点ノードの端末IDを昇順にソートしているが、終点ノードの端末IDを昇順にソートしても良いし、終点ノードの端末IDを第1キーとして昇順にソートした後、始点ノードの端末IDを第2キーとして昇順にソートしても良い。また、親機Aの通信処理部5aが、テーブル処理部5bを用いて始点ノードおよび終点ノードの端末IDとリンクコストとをトポロジーテーブルTB1に記録させる際に、端末IDが昇順又は降順に並ぶようソートしてからトポロジーテーブルTB1に記録させておけば、所望の端末のリンク情報を検索する際に短時間で検索を行えるが、トポロジー通知メッセージを受信した順番にリンク情報をトポロジーテーブルTB1に記録させておき、所望の端末のリンク情報を検索する際に、端末IDが昇順または降順に並ぶようにソートしてから、検索を行うようにしても良い。   Further, when the terminal ID of the start node or the terminal ID of the end node are not sorted in ascending or descending order as in the topology table TB1 shown in FIG. 2A, to search for link information of a desired terminal, Since it is necessary to search in order from the first record, it takes time. As shown in FIG. 2B, the terminal IDs of the start node are sorted in ascending order to search for link information of a desired terminal. Since a search algorithm such as a partial search can be used, the terminal search process can be performed efficiently. Further, as shown in FIG. 2C, after sorting the terminal IDs of the start node as the first key in ascending order, the terminal IDs of the end node are sorted in the ascending order using the second key, so that link information of the desired terminal is obtained. The process of searching for can be performed more efficiently. In the topology table TB1 shown in FIGS. 2B and 2C, the start point node or the end point node is sorted in ascending order. However, it may be sorted in descending order, and processing for searching link information of a desired terminal is performed. It can be done efficiently. In the topology table TB1 shown in FIG. 2B, the terminal IDs of the start node are sorted in ascending order, but the terminal IDs of the end node may be sorted in ascending order, and the terminal IDs of the end node are After sorting in ascending order as one key, the terminal IDs of the start node may be sorted in ascending order as the second key. Further, when the communication processing unit 5a of the parent device A records the terminal IDs and link costs of the start node and the end node in the topology table TB1 using the table processing unit 5b, the terminal IDs are arranged in ascending or descending order. If it is recorded in the topology table TB1 after sorting, the link information of the desired terminal can be searched in a short time, but the link information is recorded in the topology table TB1 in the order in which the topology notification messages are received. In addition, when searching for link information of a desired terminal, the search may be performed after sorting the terminal IDs in ascending order or descending order.

以上のようにして、親機Aが、ネットワークを構成する子機Bnからトポロジー通知メッセージを受信し、記憶部3内のトポロジーテーブルTB1にリンク情報を記録させると、親機Aの通信処理部5a(通信ルート構築手段)が、トポロジーテーブルTB1に記録させたリンク情報をもとに、ダイクストラアルゴリズムを用いて各子機への通信ルートを求めるルート探索処理を行う(通信ルート構築ステップ)。   As described above, when the parent device A receives the topology notification message from the child device Bn configuring the network and records the link information in the topology table TB1 in the storage unit 3, the communication processing unit 5a of the parent device A Based on the link information recorded in the topology table TB1, (communication route construction means) performs route search processing for obtaining a communication route to each child device using the Dijkstra algorithm (communication route construction step).

ここで、親機Aによるルート探索処理について図3〜図11を参照して説明する。なお、各端末で隣接端末の探索処理を行い、リンク情報をリンク通知パケットに格納して親機A(100)に送信することで、親機AのトポロジーテーブルTB1には各端末のリンク情報が記録されているものとする(図3(b)参照)。また図5(a)は親機Aのテーブル記憶部3aに用意された通信ルートの演算テーブルTB2を示している。演算テーブルTB2は通信ルートを探索する過程で使用されるテーブルであり、この演算テーブルTB2には、各端末の端末ID100〜106に対して、前ホップの端末IDと、ルート構築端末に設定されたか否かを示すフラグVisitと、親機Aからのホップ数HOPと、親機Aからのルートコストとを記録するようになっている。   Here, route search processing by the base unit A will be described with reference to FIGS. Each terminal performs a search process for adjacent terminals, stores link information in a link notification packet, and transmits the link information to the base unit A (100), so that the link information of each terminal is stored in the topology table TB1 of the base unit A. It is assumed that it is recorded (see FIG. 3B). FIG. 5A shows a communication route calculation table TB2 prepared in the table storage unit 3a of the parent device A. The calculation table TB2 is a table used in the process of searching for a communication route. In the calculation table TB2, the terminal ID of the previous hop and the route construction terminal are set for the terminal IDs 100 to 106 of each terminal. A flag Visit indicating whether or not, a hop count HOP from the parent device A, and a route cost from the parent device A are recorded.

図4は親機Aによるルート探索処理のフローチャートであり、先ず親機Aの通信処理部5aは、自機(端末ID=100)をルート構築端末に決定するとともに(S1)、ルート構築端末を検索対象に決定し、図5(b)に示すように自機(端末ID=100)のフラグVisitをTRUE(○)にする(S2)。そして、親機Aの通信処理部5aは、始点ノードを検索対象の端末ID(=100)に指定するとともに、終点ノードの端末IDを101、102、103、…、106に順番に指定し、対応するリンクがトポロジーテーブルTB1に存在するか否かを検索する(S3)。ここで、検索対象の端末と通信可能なリンクをトポロジーテーブルTBの先頭から順番に検索していくと、特にトポロジー数が多い場合には検索に非常に長い時間を要するので、始点ノードおよび終点ノードを指定して検索するが、上述のようにトポロジーテーブルTB1は始点ノード或いは終点ノードの端末IDが昇順又は降順にソートされているので、先ず始点ノードを2分探索を用いて検索した後、抽出されたリンクから終点ノードが一致するリンクを検索することで、検索に要する時間をかなり短縮することができる。   FIG. 4 is a flowchart of route search processing by the base unit A. First, the communication processing unit 5a of the base unit A determines its own device (terminal ID = 100) as a route construction terminal (S1), and selects the route construction terminal. The search target is determined, and the flag Visit of the own device (terminal ID = 100) is set to TRUE (◯) as shown in FIG. 5B (S2). Then, the communication processing unit 5a of the base unit A designates the start point node as a search target terminal ID (= 100) and the end point node IDs in order of 101, 102, 103,. It is searched whether or not the corresponding link exists in the topology table TB1 (S3). Here, if the links that can communicate with the search target terminal are searched in order from the top of the topology table TB, the search takes a very long time especially when the number of topologies is large. In the topology table TB1 as described above, since the terminal IDs of the start point node or end point node are sorted in ascending or descending order, the search is first performed after searching the start point node using a binary search, and then extracted. By searching for a link whose end point node matches from the generated links, the time required for the search can be considerably shortened.

そして、S3においてトポロジーテーブルTB1に該当リンクを発見できれば該当リンクのルートコストRC1と、演算テーブルTB2に記録されているルートコストRCとの大小を比較し(S4)、今回発見したルートコストRC1が演算テーブルTB2に記録されているルートコストRCよりも小さければ(RC>RC1)、演算テーブルTB2に前ホップの端末IDとルートコストとホップ数HOPを書き込んだ後(S5)、S2に戻って処理を続行する。一方、S4において今回発見したルートコストRC1が演算テーブルTB2に記録されているルートコストRC以上であれば(RC≦RC1)、通信処理部5aは演算テーブルTB2へのルートコストの書き込み処理は行わず、S2に戻って処理を続行する。なお演算テーブルTB2にルートコストが記録されていない場合は、今回発見したルートコストRC1を演算テーブルTB2に書き込むものとする。ここで、検索対象の端末が親機(端末ID=100)の場合は、端末IDが101,102の端末とリンクがつながっており、両端末間のホップ数HOP(=1)と前ホップの端末IDとルートコストRC[端末(101)が3,端末(102)が2]が演算テーブルTB2に記録される(図5(c)参照)。   If the link can be found in the topology table TB1 in S3, the route cost RC1 of the link is compared with the route cost RC recorded in the calculation table TB2 (S4), and the route cost RC1 discovered this time is calculated. If it is smaller than the route cost RC recorded in the table TB2 (RC> RC1), the terminal ID of the previous hop, the route cost, and the number of hops HOP are written in the operation table TB2 (S5), and the process returns to S2 continue. On the other hand, if the route cost RC1 discovered this time in S4 is equal to or higher than the route cost RC recorded in the calculation table TB2 (RC ≦ RC1), the communication processing unit 5a does not perform the route cost writing process to the calculation table TB2. , Return to S2 and continue processing. When the route cost is not recorded in the calculation table TB2, the route cost RC1 discovered this time is written in the calculation table TB2. Here, when the terminal to be searched is a master unit (terminal ID = 100), the link is connected to the terminals having terminal IDs 101 and 102, and the hop count HOP (= 1) between the two terminals and the previous hop. The terminal ID and the route cost RC [terminal (101) is 3, terminal (102) is 2] are recorded in the calculation table TB2 (see FIG. 5C).

検索対象の端末について通信可能なリンクを全て検索し終えると、親機Aの通信処理部5aは、演算テーブルTB2から、フラグVisitがFALSEとなっている端末(Visitの欄に○がついていない端末)が存在するかを検索し(S6)、存在する場合はフラグVisitがFALSEとなっている端末の中でルートコストが最小の端末を検索対象に決定するとともに、この端末のフラグVisitをTRUE(○)として(S7)、S3に戻り、上述の処理を繰り返す。   When all the communicable links for the search target terminal have been searched, the communication processing unit 5a of the base unit A determines from the calculation table TB2 a terminal whose flag Visit is FALSE (a terminal having no circle in the Visit column). ) Is present (S6), and if it exists, the terminal with the lowest root cost is determined as the search target among the terminals having the flag Visit of FALSE, and the flag Visit of this terminal is set to TRUE ( ○) (S7), the process returns to S3, and the above-described processing is repeated.

ここで、フラグVisitがFALSEとなっている端末(101〜106)の中でルートコストが最小の端末は、端末IDが102の端末(以下、端末(102)と表す)なので、通信処理部5aは、この端末を検索対象に設定し、図6(a)に示すように端末(102)のフラグVisitをTRUE(○)に設定した後、始点ノードを検索対象の端末ID(=102)に指定するとともに、終点ノードの端末IDをフラグVisitがTRUE(○)となっていない端末の端末ID101、103、104、105、106に順番に指定して、対応するリンクがトポロジーテーブルTB1に存在するか否かを検索する(S3)。そして、トポロジーテーブルTB1に該当リンクを発見できれば、今回発見した該当リンク(端末IDが104,105,106の端末)のルートコストRC1と演算テーブルTB2に記録されている当該端末のルートコストRCを比較し、RC>RC1であれば演算テーブルTB2に前ホップの端末IDとルートコストとホップ数HOP(=2)を上書きする(図6(b)参照)。なお、ルートコストは自機と親機との間の通信コスト値であるので、ルートコストは各ホップのリンクコストの合計値となる。例えば端末(104)では、端末(100)と端末(102)の間のリンクコスト(=2)と、端末(102)と端末(104)の間のリンクコスト(=4)との合計値(=6)となる。   Here, among the terminals (101 to 106) whose flag Visit is FALSE, the terminal with the lowest root cost is the terminal whose terminal ID is 102 (hereinafter referred to as the terminal (102)), so the communication processing unit 5a. Sets this terminal as a search target, sets the flag Visit of the terminal (102) to TRUE (◯) as shown in FIG. 6A, and sets the start node to the search target terminal ID (= 102). As well as specifying the terminal ID of the terminal node in order to the terminal IDs 101, 103, 104, 105, and 106 of the terminals whose flag Visit is not TRUE (◯), the corresponding link exists in the topology table TB1. Whether or not (S3). If the corresponding link can be found in the topology table TB1, the route cost RC1 of the corresponding link discovered this time (terminal ID 104, 105, 106) and the route cost RC of the terminal recorded in the calculation table TB2 are compared. If RC> RC1, the previous hop terminal ID, route cost, and hop count HOP (= 2) are overwritten in the calculation table TB2 (see FIG. 6B). Since the route cost is a communication cost value between the own device and the parent device, the route cost is a total value of the link costs of each hop. For example, in the terminal (104), the total value of the link cost (= 2) between the terminal (100) and the terminal (102) and the link cost (= 4) between the terminal (102) and the terminal (104) ( = 6).

端末(102)について通信可能な端末の検出が全て終了すると、通信処理部5aは、フラグVisitがFALSEとなっている端末(101、104〜106)の中でルートコストが最小の端末(101)を検索対象に設定し、図7(a)に示すように端末(101)のフラグVisitをTRUE(○)に設定した後、始点ノードを検索対象の端末ID(=101)に指定するとともに、終点ノードの端末IDをフラグVisitがTRUE(○)となっていない端末の端末ID103、104、105、106に順番に指定して、対応するリンクがトポロジーテーブルTB1に存在するか否かを検索する(S3)。そして、トポロジーテーブルTB1に該当リンクを発見できれば、今回発見した該当リンク(端末IDが103〜105の端末)のルートコストRC1と演算テーブルTB2に記録されている当該端末のルートコストRCを比較し、RC>RC1であれば演算テーブルTB2に前ホップの端末IDとルートコストとホップ数HOP(=2)を上書きする(図7(b)参照)。ここで、端末(103)は、演算テーブルTB2にデータが記録されていなかったので、今回発見したリンクのルートコストと前ホップの端末IDとホップ数とを演算テーブルに記録する。また、端末(104)は、今回発見したリンク(前ホップの端末IDが101)のルートコストRC1(=5)の方が、演算テーブルTB2に記憶されているルートコストRC(=6)よりも小さいので、今回発見したリンクのルートコストと前ホップの端末IDとホップ数とを演算テーブルに記録する。一方、端末端末(105)のルートコストは、今回発見したリンク(前ホップの端末IDが101)のルートコストRC1の方が、演算テーブルTB2に記憶されているルートコストRC以上となるので、演算テーブルTB2のデータはそのままとする。   When the detection of all communicable terminals for the terminal (102) is completed, the communication processing unit 5a determines the terminal (101) with the lowest root cost among the terminals (101, 104 to 106) whose flag Visit is FALSE. Is set as a search target, and the flag Visit of the terminal (101) is set to TRUE (O) as shown in FIG. 7A, and then the start node is designated as the search target terminal ID (= 101). The terminal ID of the terminal node is specified in order to the terminal IDs 103, 104, 105, and 106 of the terminals whose flag Visit is not TRUE (O), and a search is performed as to whether the corresponding link exists in the topology table TB1. (S3). Then, if the corresponding link can be found in the topology table TB1, the route cost RC1 of the corresponding link discovered this time (terminal having terminal IDs 103 to 105) is compared with the route cost RC of the terminal recorded in the operation table TB2, If RC> RC1, the previous hop terminal ID, the route cost, and the hop count HOP (= 2) are overwritten in the calculation table TB2 (see FIG. 7B). Here, since no data is recorded in the calculation table TB2, the terminal (103) records the route cost of the link found this time, the terminal ID of the previous hop, and the number of hops in the calculation table. Further, the terminal (104) has the route cost RC1 (= 5) of the link discovered this time (the terminal ID of the previous hop is 101) than the route cost RC (= 6) stored in the calculation table TB2. Since it is small, the route cost of the link discovered this time, the terminal ID of the previous hop, and the number of hops are recorded in the calculation table. On the other hand, the route cost of the terminal terminal (105) is equal to or higher than the route cost RC stored in the calculation table TB2 for the link discovered this time (the terminal ID of the previous hop is 101). The data in the table TB2 is left as it is.

次に、端末(101)について通信可能な端末の検出が全て終了すると、通信処理部5aは、フラグVisitがFALSEとなっている端末(103〜106)の中でルートコストが最小の端末(104)を検索対象に設定し、図8(a)に示すように端末(104)のフラグVisitをTRUE(○)に設定した後、始点ノードを検索対象の端末ID(=104)に指定するとともに、終点ノードの端末IDをフラグVisitがTRUE(○)となっていない端末の端末ID103、105、106に順番に指定して、対応するリンクがトポロジーテーブルTB1に存在するか否かを検索する(S3)。この場合、トポロジーテーブルTB1には該当するリンクが発見できないので、演算テーブルTB2のデータはそのままとする(図8(b)参照)。   Next, when all the terminals that can communicate with the terminal (101) have been detected, the communication processing unit 5a determines the terminal (104 with the lowest root cost among the terminals (103 to 106) in which the flag Visit is FALSE. ) Is set as the search target, and the flag Visit of the terminal (104) is set to TRUE (O) as shown in FIG. 8A, and then the start node is designated as the search target terminal ID (= 104). Then, the terminal ID of the terminal node is designated in order to the terminal IDs 103, 105, and 106 of the terminals whose flag Visit is not TRUE (◯), and a search is performed as to whether the corresponding link exists in the topology table TB1 ( S3). In this case, since the corresponding link cannot be found in the topology table TB1, the data in the operation table TB2 is left as it is (see FIG. 8B).

端末(104)ついて、通信可能な端末の検出が全て終了すると、通信処理部5aは、フラグVisitがFALSEとなっている端末(103,105,106)の中でルートコストが最小の端末(106)を検索対象に設定し、図9(a)に示すように端末(106)のフラグVisitをTRUE(○)に設定した後、始点ノードを検索対象の端末ID(=106)に指定するとともに、終点ノードの端末IDをフラグVisitがTRUE(○)となっていない端末の端末ID103、105に順番に指定して、対応するリンクがトポロジーテーブルTB1に存在するか否かを検索する(S3)。そして、トポロジーテーブルTB1に該当リンクが発見できれば、今回発見した該当リンク(端末(105))のルートコストRC1と演算テーブルTB2に記録されている当該端末のルートコストRCを比較する。この場合、端末(105)のルートコストは、今回発見したリンク(前ホップの端末IDが106)のルートコストRC1の方が、演算テーブルTB2に記憶されているルートコストRC以上となるので、演算テーブルTB2のデータはそのままとする(図9(b)参照)。   When the detection of all communicable terminals is completed for the terminal (104), the communication processing unit 5a determines the terminal (106 with the lowest root cost among the terminals (103, 105, 106) whose flag Visit is FALSE. ) Is set as the search target, and the flag Visit of the terminal (106) is set to TRUE (O) as shown in FIG. 9A, and then the start point node is designated as the search target terminal ID (= 106). Then, the terminal ID of the terminal node is specified in order to the terminal IDs 103 and 105 of the terminals whose flag Visit is not TRUE (◯), and whether or not the corresponding link exists in the topology table TB1 is searched (S3). . If the corresponding link can be found in the topology table TB1, the route cost RC1 of the relevant link (terminal (105)) found this time is compared with the route cost RC of the terminal recorded in the calculation table TB2. In this case, the route cost of the terminal (105) is higher than the route cost RC stored in the calculation table TB2 because the route cost RC1 of the link discovered this time (the terminal ID of the previous hop is 106) is higher than the route cost RC. The data in the table TB2 is left as it is (see FIG. 9B).

端末(106)について通信可能な端末の検出が全て終了すると、通信処理部5aは、フラグVisitがFALSEとなっている端末(103)、(105)の中でルートコストが最小の端末(103)を検索対象に設定し(この場合はルートコストが同じ値となっているので端末IDの小さい方に決定)、図10(a)に示すように端末(103)のフラグVisitをTRUE(○)に設定した後、始点ノードを検索対象の端末ID(=103)に指定するとともに、終点ノードの端末IDをフラグVisitがTRUE(○)となっていない端末の端末ID105に指定して、対応するリンクがトポロジーテーブルTB1に存在するか否かを検索する(S3)。この場合、トポロジーテーブルTB1には該当するリンクが発見できないので、演算テーブルTB2のデータはそのままとする(図10(b)参照)。   When the detection of all communicable terminals for the terminal (106) is completed, the communication processing unit 5a determines the terminal (103) with the lowest root cost among the terminals (103) and (105) whose flag Visit is FALSE. Is set as a search target (in this case, the route cost is the same value, so the terminal ID is determined to be smaller), and the flag Visit of the terminal (103) is set to TRUE (◯) as shown in FIG. Then, the start point node is designated as the search target terminal ID (= 103), and the end point node ID is designated as the terminal ID 105 of the terminal whose flag Visit is not TRUE (◯). It is searched whether or not the link exists in the topology table TB1 (S3). In this case, since the corresponding link cannot be found in the topology table TB1, the data in the operation table TB2 is left as it is (see FIG. 10B).

端末(103)について通信可能な端末の検出が全て終了すると、通信処理部5aは、フラグVisitがFALSEとなっている端末(105)を検索対象に設定し、図11(a)に示すように端末(105)のフラグVisitをTRUE(○)に設定した後、始点ノードを検索対象の端末ID(=105)に指定するが、フラグVisitがTRUE(○)となっていない端末が存在しないので終点ノードの指定が行えず、該当リンクの検索処理は行わないまま、処理を終了するので、演算テーブルTB2のデータはそのままとなる(図11(b)参照)。そして、端末(105)について処理を終えると、全ての端末のフラグVisitがTRUEとなるので、通信処理部5aは、全ての端末の通信ルートが設定できたと判断し、テーブル処理部5bを用いて演算テーブルTB2の情報を記憶部3の通信ルートテーブルに反映させて(S8)、ルート探索処理を終了し、以後は通信ルートテーブルに記録された通信ルートを用いて親機Aと各子機Bnとの間で通信信号が授受されるのである。   When the detection of all communicable terminals for the terminal (103) is completed, the communication processing unit 5a sets the terminal (105) whose flag Visit is FALSE as a search target, as shown in FIG. 11 (a). After setting the flag Visit of the terminal (105) to TRUE (◯), the start point node is designated as the search target terminal ID (= 105), but there is no terminal whose flag Visit is not TRUE (◯). Since the end point node cannot be specified and the process is terminated without performing the corresponding link search process, the data in the calculation table TB2 remains as it is (see FIG. 11B). When the processing for the terminal (105) is completed, the flag Visit of all terminals becomes TRUE, so the communication processing unit 5a determines that the communication route of all terminals can be set, and uses the table processing unit 5b. The information in the calculation table TB2 is reflected in the communication route table of the storage unit 3 (S8), the route search process is terminated, and thereafter, the parent device A and each child device Bn using the communication route recorded in the communication route table. Communication signals are exchanged between the two.

(実施形態2)
本発明の実施形態2を図12〜図15に基づいて説明する。本実施形態では、実施形態1で説明した通信ネットワークにおいて、通信ルート構築ステップで親機Aが各子機への通信ルートを求める際に、親機Aから対象の子機に至る通信ルートとして、所定の通信品質以上(すなわちルートコストRCが所定の閾値以下)の通信ルートが探索できた場合は、当該通信ルートを当該子機への通信ルートに決定し、探索対象の子機に至る全ての通信ルートを探索する前に当該子機への通信ルートの探索を終了するようにしている。例えば本実施形態ではルートコストの閾値を、1ホップ目であれば5、2ホップ目であれば10、3ホップ目であれば15に設定している。尚、ルート探索処理以外は実施形態1で説明した通信ネットワークと同様であるので、同一の構成要素には同一の符号を付して、その説明は省略する。
(Embodiment 2)
A second embodiment of the present invention will be described with reference to FIGS. In this embodiment, in the communication network described in the first embodiment, when the parent device A obtains a communication route to each child device in the communication route construction step, as a communication route from the parent device A to the target child device, When a communication route with a predetermined communication quality or higher (that is, the route cost RC is equal to or lower than a predetermined threshold value) can be searched, the communication route is determined as a communication route to the child device, and all of the devices reaching the search target child device are determined. Before searching for a communication route, the search for the communication route to the child device is terminated. For example, in this embodiment, the route cost threshold is set to 5 for the first hop, 10 for the second hop, and 15 for the third hop. In addition, since it is the same as that of the communication network demonstrated in Embodiment 1 except route search processing, the same code | symbol is attached | subjected to the same component and the description is abbreviate | omitted.

親機Aによるルート探索処理を図12のフローチャートに基づいて説明する。ところで、図13(a)は親機Aの通信処理部5aがルート探索処理を行う際に用いる演算テーブルTB2を示し、実施形態1で説明した演算テーブルTB2において通信ルートが決定されたか未決定かを示すルート決定フラグを追加してある。   The route search process by the base unit A will be described based on the flowchart of FIG. By the way, FIG. 13A shows a calculation table TB2 used when the communication processing unit 5a of the parent device A performs route search processing. Whether the communication route is determined in the calculation table TB2 described in the first embodiment or not is determined. A route determination flag indicating is added.

親機Aの通信処理部5aがルート探索処理を開始すると、先ず自機(端末ID=100)をルート構築端末に決定するとともに(S10)、ルート構築端末を検索対象に決定し、図13(b)に示すように自機(端末ID=100)のフラグVisitをTRUE(○)、ルート決定フラグを「決定」にするとともに、他の端末のルート決定フラグを「未決定」にする(S11)。そして、親機Aの通信処理部5aは、始点ノードを検索対象の端末ID(=100)に指定するとともに、終点ノードの端末IDを101、102、103、…、106に順番に指定し、対応するリンクがトポロジーテーブルTB1に存在するか否かを検索する(S12)。ここで、検索対象の端末と通信可能なリンクをトポロジーテーブルTBの先頭から順番に検索していくと、特にトポロジー数が多い場合には検索に非常に長い時間を要するので、始点ノードおよび終点ノードを指定して検索するが、実施形態1で説明したようにトポロジーテーブルTB1は始点ノード或いは終点ノードの端末IDが昇順又は降順にソートされているので、先ず始点ノードを2分探索を用いて検索した後、抽出されたリンクから終点ノードが一致するリンクを検索することで、検索に要する時間をかなり短縮することができる。   When the communication processing unit 5a of the parent device A starts the route search process, first, the own device (terminal ID = 100) is determined as a route construction terminal (S10), and the route construction terminal is determined as a search target. As shown in b), the flag Visit of the own device (terminal ID = 100) is set to TRUE (◯), the route determination flag is set to “determined”, and the route determination flags of other terminals are set to “undecided” (S11). ). Then, the communication processing unit 5a of the base unit A designates the start point node as a search target terminal ID (= 100) and the end point node IDs in order of 101, 102, 103,. It is searched whether or not the corresponding link exists in the topology table TB1 (S12). Here, if the links that can communicate with the search target terminal are searched in order from the top of the topology table TB, the search takes a very long time especially when the number of topologies is large. In the topology table TB1 as described in the first embodiment, the terminal IDs of the start point node or end point node are sorted in ascending or descending order. Therefore, the start point node is first searched using a binary search. After that, by searching for the link whose end point node matches from the extracted link, the time required for the search can be considerably shortened.

そして、S12においてトポロジーテーブルTB1に該当リンクを発見できれば該当リンクのルートコストRC1と、演算テーブルTB2に記録されているルートコストRCとの大小を比較し(S13)、今回発見したルートコストRC1が演算テーブルTB2に記録されているルートコストRCよりも小さければ(RC>RC1)、演算テーブルTB2に前ホップの端末IDとルートコストとホップ数HOPを書き込む(S14)。一方、S13において、今回発見したルートコストRC1が演算テーブルTB2に記録されているルートコストRC以上であれば(RC≦RC1)、通信処理部5aは演算テーブルTB2へのルートコストの書き込みは行わず、S12に戻って処理を継続する。なお演算テーブルTB2にルートコストが記録されていない場合は、今回発見したルートコストRC1を演算テーブルTB2に書き込むものとする。また、S14で演算テーブルへの書き込みを終えると、通信処理部5aはルートコストが閾値以下であるか否かを判定し(S15)、閾値以下であれば当該子機への通信ルートを決定し、ルート決定フラグを「決定」とした後(S16)、S12に戻って処理を継続する。また、S15においてルートコストが閾値よりも大きければ、通信処理部5aは、ルート決定フラグを「未決定」のままとし、S12に戻って処理を継続する。   If the link can be found in the topology table TB1 in S12, the route cost RC1 of the link is compared with the route cost RC recorded in the calculation table TB2 (S13), and the route cost RC1 discovered this time is calculated. If it is smaller than the route cost RC recorded in the table TB2 (RC> RC1), the terminal ID of the previous hop, the route cost, and the number of hops HOP are written in the calculation table TB2 (S14). On the other hand, in S13, if the route cost RC1 discovered this time is equal to or higher than the route cost RC recorded in the calculation table TB2 (RC ≦ RC1), the communication processing unit 5a does not write the route cost to the calculation table TB2. Returning to S12, the processing is continued. When the route cost is not recorded in the calculation table TB2, the route cost RC1 discovered this time is written in the calculation table TB2. Further, when the writing to the calculation table is completed in S14, the communication processing unit 5a determines whether or not the route cost is equal to or less than a threshold value (S15), and if it is equal to or less than the threshold value, determines the communication route to the slave unit. After setting the route determination flag to “determine” (S16), the process returns to S12 and continues. If the route cost is larger than the threshold value in S15, the communication processing unit 5a keeps the route determination flag “undecided”, returns to S12, and continues the processing.

ここで、検索対象の端末が親機(端末ID=100)の場合は、端末IDが101,102の端末(101)および端末(102)とリンクがつながっているので、通信処理部5aは、両端末間のホップ数HOP(=1)と前ホップの端末IDとルートコスト[端末(101)が3,端末(102)が2]を演算テーブルTB2に記録するとともに(図13(b)参照)、各端末のルートコストが1ホップ目の閾値(=5)以下となっていることから、各端末(101),(102)のルート決定フラグを「決定」とする(図13(c)参照)。   Here, when the search target terminal is the parent device (terminal ID = 100), since the link is connected to the terminal (101) and the terminal (102) having the terminal IDs 101 and 102, the communication processing unit 5a The number of hops between both terminals HOP (= 1), the terminal ID of the previous hop, and the route cost [terminal (101) is 3, terminal (102) is 2] are recorded in the operation table TB2 (see FIG. 13B). ) Since the route cost of each terminal is equal to or less than the first hop threshold (= 5), the route determination flag of each terminal (101), (102) is set to “determine” (FIG. 13C). reference).

検索対象の端末について通信可能なリンクを全て検索し終えると、親機Aの通信処理部5aは、演算テーブルTB2から、ルート決定フラグが「未決定」となっている端末が存在するかを検索し(S17)、存在する場合はフラグVisitがFALSEとなっている端末(Visitの欄に○がついていない端末)が存在するかを検索し(S18)、存在する場合はフラグVisitがFALSEとなっている端末の中でルートコストが最小の端末を検索対象に決定するとともに、この端末のフラグVisitをTRUE(○)として(S19)、S12に戻り、上述の処理を繰り返す。一方、S17でルート決定フラグが「未決定」の端末が存在しなかったり、フラグVisitがFALSEの端末が存在しなかった場合、親機Aの通信処理部5aはルート探索処理が完了したと判断し、演算テーブルTB2の情報を通信ルートテーブルに反映させる(S20)。   When all the communicable links for the search target terminal have been searched, the communication processing unit 5a of the base unit A searches the calculation table TB2 for a terminal having a route determination flag “undecided”. If it exists (S17), it is searched whether there is a terminal whose flag Visit is FALSE (a terminal not marked with ○ in the Visit column) (S18). If it exists, the flag Visit is FALSE. The terminal with the lowest root cost is determined as the search target, and the flag Visit of this terminal is set to TRUE (O) (S19), the process returns to S12, and the above processing is repeated. On the other hand, if there is no terminal whose route determination flag is “undecided” in S17 or there is no terminal whose flag Visit is FALSE, the communication processing unit 5a of the base unit A determines that the route search process has been completed. Then, the information of the calculation table TB2 is reflected in the communication route table (S20).

ここで、親機Aの通信処理部5aが、親機100と通信可能なリンクの検索を全て終了した時点では、フラグVisitがFALSEとなっている端末(101〜106)の中でルートコストが最小の端末は、端末IDが102の端末なので、通信処理部5aは、この端末(102)を検索対象に設定し、図14(a)に示すように端末(102)のフラグVisitをTRUE(○)に設定した後、始点ノードを検索対象の端末ID(=102)に指定するとともに、終点ノードを「ルート決定フラグ」が「未決定」となっている端末の端末ID103、104、105、106に順番に指定して、対応するリンクがトポロジーテーブルTB1に存在するか否かを検索する(S12)。そして、トポロジーテーブルTB1に該当リンクが発見できれば、今回発見した該当リンク(端末IDが104,105,106の端末)のルートコストRC1と演算テーブルTB2に記録されている当該端末のルートコストRCを比較し、RC>RC1であれば演算テーブルTB2に前ホップの端末ID(=102)とルートコストRCとホップ数HOP(=2)を上書きした後、ルートコストを2ホップ目の閾値(=10)と比較し、何れのルートコストも閾値以下となっているので、ルート決定フラグを「決定」とする(図14(b)参照)。   Here, when the communication processing unit 5a of the parent device A completes the search for all the links that can communicate with the parent device 100, the route cost among the terminals (101 to 106) in which the flag Visit is FALSE. Since the smallest terminal is the terminal whose terminal ID is 102, the communication processing unit 5a sets the terminal (102) as a search target, and sets the flag Visit of the terminal (102) to TRUE (as shown in FIG. 14A). ○), the start point node is designated as the search target terminal ID (= 102), and the end point node is the terminal ID 103, 104, 105 of the terminal whose “route determination flag” is “undecided”, It is designated in order 106, and it is searched whether or not the corresponding link exists in the topology table TB1 (S12). If the corresponding link can be found in the topology table TB1, the route cost RC1 of the corresponding link found this time (terminal ID 104, 105, 106) is compared with the route cost RC of the terminal recorded in the calculation table TB2. If RC> RC1, the terminal ID of the previous hop (= 102), the route cost RC, and the number of hops HOP (= 2) are overwritten in the calculation table TB2, and then the route cost is set to the second hop threshold (= 10). Compared to the above, since any route cost is equal to or less than the threshold value, the route determination flag is set to “determine” (see FIG. 14B).

端末(102)について通信可能な端末の検出が全て終了すると、親機Aの通信処理部5aは、演算テーブルTB2から、ルート決定フラグが「未決定」となっている端末が存在するかを検索する。ここで、端末IDが103の端末(103)はルート決定フラグが未決定となっているので、親機Aの通信処理部5aは、フラグVisitがFALSEとなっている端末を検索し、フラグVisitがFALSEとなっている端末の中でルートコストが最小の端末(端末IDが101の端末)を検索対象に設定し、図15(a)に示すように端末(101)のフラグVisitをTRUE(○)に設定した後、始点ノードを検索対象の端末ID(=101)に指定するとともに、終点ノードを「ルート決定フラグ」が「未決定」となっている端末の端末ID103に指定して、対応するリンクがトポロジーテーブルTB1に存在するか否かを検索する(S12)。そして、トポロジーテーブルTB1に該当リンクが発見できれば、端末(103)のルートコストRC1と演算テーブルTB2に記録されている当該端末のルートコストRCを比較し、RC>RC1であれば演算テーブルTB2に前ホップの端末IDとルートコストとホップ数HOP(=2)を上書きする。ここで、端末(103)はルートコストが未定であったので、親機Aの通信処理部5aは、端末(103)について前ホップの端末IDとルートコストとホップ数HOP(=2)を上書きした後、ルートコストを2ホップ目の閾値(=10)と比較し、何れのルートコストも閾値以下となっているので、ルート決定フラグを「決定」とする(図15(b)参照)。   When the detection of all communicable terminals for the terminal (102) is completed, the communication processing unit 5a of the parent device A searches the calculation table TB2 for a terminal having a route determination flag “undecided”. To do. Here, since the route determination flag has not yet been determined for the terminal (103) whose terminal ID is 103, the communication processing unit 5a of the parent device A searches for a terminal whose flag Visit is FALSE, and the flag Visit The terminal having the lowest root cost (the terminal having the terminal ID of 101) is set as the search target among the terminals having the FALSE, and the flag Visit of the terminal (101) is set to TRUE (as shown in FIG. 15A). ○), the start point node is designated as the search target terminal ID (= 101), the end point node is designated as the terminal ID 103 of the terminal whose “route decision flag” is “undecided”, It is searched whether or not the corresponding link exists in the topology table TB1 (S12). If the corresponding link can be found in the topology table TB1, the route cost RC1 of the terminal (103) is compared with the route cost RC of the terminal recorded in the calculation table TB2, and if RC> RC1, the previous calculation table TB2 is displayed. The hop terminal ID, route cost, and hop count HOP (= 2) are overwritten. Here, since the route cost of the terminal (103) has not been determined, the communication processing unit 5a of the parent device A overwrites the terminal ID of the previous hop, the route cost, and the number of hops HOP (= 2) for the terminal (103). After that, the route cost is compared with the threshold value (= 10) for the second hop, and since any route cost is equal to or less than the threshold value, the route decision flag is set to “decide” (see FIG. 15B).

端末(101)について通信可能な端末の検出が全て終了すると、全ての端末のルート決定フラグが「決定」となるので、親機Aの通信処理部5aは、全ての端末の通信ルートが設定できたと判断し、テーブル処理部5bを用いて演算テーブルTB2の情報を記憶部3の通信ルートテーブルに反映させて、ルート探索処理を終了し(S20)、以後は通信ルートテーブルに記録された通信ルートを用いて親機Aと各子機Bnとの間で通信信号が授受されるのである。   When all the terminals that can communicate with the terminal (101) have been detected, the route determination flags of all the terminals become “determined”, so that the communication processing unit 5a of the parent device A can set the communication routes of all the terminals. The table search unit 5b is used to reflect the information in the calculation table TB2 in the communication route table of the storage unit 3, and the route search process is terminated (S20). Thereafter, the communication route recorded in the communication route table A communication signal is exchanged between the parent device A and each of the child devices Bn.

以上説明したように本実施形態では、親機Aの通信処理部5aがルート探索処理を行う際に、親機Aから対象の子機に至る通信ルートとして、所定の通信品質以上の通信ルート(つまりルートコストが所定の閾値以下の通信ルート)が探索できた場合は、当該通信ルートを当該子機への通信ルートに決定し、当該子機への通信ルートの探索処理を終了しているので、親機Aと子機Bnとの間の通信ルートとして所定の通信品質以上の通信ルートを確保でき、また当該子機に至る全ての通信ルートを探索し、その中から通信品質が最も良い通信ルートを選択する場合に比べて短い時間で通信ルートを探索することができる。   As described above, in the present embodiment, when the communication processing unit 5a of the parent device A performs the route search process, a communication route (from a parent device A to a target child device) having a communication quality equal to or higher than a predetermined communication quality ( In other words, when a communication route having a route cost equal to or less than a predetermined threshold value can be searched, the communication route is determined as a communication route to the child device, and the search process for the communication route to the child device is completed. As a communication route between the parent device A and the child device Bn, a communication route having a predetermined communication quality or higher can be secured, and all communication routes leading to the child device are searched, and communication with the best communication quality is found from among them. A communication route can be searched in a shorter time than when a route is selected.

なお本実施形態では、実施形態1で説明したトポロジーテーブルTB1を用いて通信ルートの探索処理を行っているが、従来のトポロジーテーブルTB1’を用いて本実施形態のようなルート探索処理を行った場合でも、親機Aから対象の子機に至る通信ルートとして、所定の通信品質以上の通信ルート(つまりルートコストが所定の閾値以下の通信ルート)が探索できると、当該通信ルートを当該子機への通信ルートに決定し、当該子機への通信ルートの探索処理を終了することで、通信ルートの探索時間を短縮することができる。   In this embodiment, the communication route search process is performed using the topology table TB1 described in the first embodiment, but the route search process as in the present embodiment is performed using the conventional topology table TB1 ′. Even in this case, when a communication route with a predetermined communication quality or higher (that is, a communication route with a route cost equal to or less than a predetermined threshold) can be searched for as a communication route from the parent device A to the target child device, the communication route is determined as the child device. The communication route search time can be shortened by determining the communication route to and terminating the communication route search process for the child device.

上述した構成例は、従来構成において説明したPLCネットワークに用いることを想定しているが、他の有線の伝送路を用いる通信ネットワーク、あるいは小電力無線による無線LANのように無線の伝送路を用いる無線ネットワークなど、種々のマルチホップ通信ネットワークに上述の技術を適用してもよい。   The above-described configuration example is assumed to be used for the PLC network described in the conventional configuration, but uses a wireless transmission path such as a communication network using another wired transmission path, or a wireless LAN using low-power radio. The above-described technique may be applied to various multi-hop communication networks such as a wireless network.

さらにいえば、PLCネットワークには、10〜450kHzの低周波帯を利用する低速PLCと、2〜30MHzの高周波帯を利用する高速PLCとが知られており、低速PLCのノードは、高速PLCより伝送速度が遅いから、上述の構成のように低トラフィックでもネットワークトポロジを把握できることはとくに有効であり、また、通信ネットワーク全体のリンクを各ノードが持たなくとも隣接ノードテーブルがあればよいから、ノードに実装するメモリの容量を小さくすることができる。しかも、他の有線の伝送路を用いる場合に比較すると、PLCでは各ノードとなる電気機器のオン/オフや稼働状態によってネットワークトポロジや通信品質が変化しやすいから、本発明の技術は有効である。   Furthermore, the PLC network is known to have a low-speed PLC that uses a low frequency band of 10 to 450 kHz and a high-speed PLC that uses a high-frequency band of 2 to 30 MHz. Since the transmission speed is slow, it is particularly effective to be able to grasp the network topology even with low traffic as in the above configuration, and it is only necessary to have an adjacent node table even if each node does not have a link of the entire communication network. The capacity of the memory to be mounted on can be reduced. In addition, compared with the case where other wired transmission lines are used, the network topology and communication quality are easily changed in the PLC depending on the on / off and operating state of the electrical equipment serving as each node, so the technique of the present invention is effective. .

(a)(b)は実施形態1の通信ルートの構築方法に用いるトポロジーテーブルの説明図、(c)は従来のトポロジーテーブルの説明図である。(A) (b) is explanatory drawing of the topology table used for the construction method of the communication route of Embodiment 1, (c) is explanatory drawing of the conventional topology table. (a)〜(c)は同上に用いる他のトポロジーテーブルの説明図である。(A)-(c) is explanatory drawing of the other topology table used for the same as the above. (a)は同上を用いる通信ネットワークの概略構成図、(b)はトポロジーテーブルの説明図である。(A) is a schematic block diagram of a communication network using the same as above, (b) is an explanatory diagram of a topology table. 同上のルート探索処理を説明するフローチャートである。It is a flowchart explaining a route search process same as the above. (a)〜(c)は同上に用いる演算テーブルの説明図である。(A)-(c) is explanatory drawing of the calculation table used for the same as the above. (a)(b)は同上に用いる演算テーブルの説明図である。(A) (b) is explanatory drawing of the calculation table used for the same as the above. (a)(b)は同上に用いる演算テーブルの説明図である。(A) (b) is explanatory drawing of the calculation table used for the same as the above. (a)(b)は同上に用いる演算テーブルの説明図である。(A) (b) is explanatory drawing of the calculation table used for the same as the above. (a)(b)は同上に用いる演算テーブルの説明図である。(A) (b) is explanatory drawing of the calculation table used for the same as the above. (a)(b)は同上に用いる演算テーブルの説明図である。(A) (b) is explanatory drawing of the calculation table used for the same as the above. (a)(b)は同上に用いる演算テーブルの説明図である。(A) (b) is explanatory drawing of the calculation table used for the same as the above. 実施形態2のルート探索処理を説明するフローチャートである。10 is a flowchart illustrating route search processing according to the second embodiment. (a)〜(c)は同上に用いる演算テーブルの説明図である。(A)-(c) is explanatory drawing of the calculation table used for the same as the above. (a)(b)は同上に用いる演算テーブルの説明図である。(A) (b) is explanatory drawing of the calculation table used for the same as the above. (a)(b)は同上に用いる演算テーブルの説明図である。(A) (b) is explanatory drawing of the calculation table used for the same as the above. 同上を用いる通信ネットワークのシステム構成図である。It is a system configuration | structure figure of the communication network using the same as the above. 同上を用いる通信端末の概略ブロック図である。It is a schematic block diagram of the communication terminal using the same as the above. (a)〜(d)は同上に用いるパケットフォーマットの説明図である。(A)-(d) is explanatory drawing of the packet format used for the same as the above.

符号の説明Explanation of symbols

1 通信ネットワーク
2 通信端末
3 記憶部
4 PLCインターフェース部
5 制御部
5a 通信処理部
5b テーブル処理部
5c Hパケット送信タイマ部
A 親機
B1〜B5 子機
TB1 トポロジーテーブル
TB2 演算テーブル
DESCRIPTION OF SYMBOLS 1 Communication network 2 Communication terminal 3 Memory | storage part 4 PLC interface part 5 Control part 5a Communication processing part 5b Table processing part 5c H packet transmission timer part A Parent | base station B1-B5 Slave | subunit TB1 Topology table TB2 Calculation table

Claims (7)

通信ネットワークを構成する複数の通信端末の内の1台を親機、残りを子機とし、親機が、当該親機と各子機との間の通信ルートを記憶した記憶部から、所望の子機への通信ルートを読み出し、当該通信ルートにしたがって隣接端末間で通信信号を授受することにより、親機と子機との間で通信を行うにあたり、親機が各子機から直接通信可能な隣接端末に関するリンク情報を受信し、受信したリンク情報をもとに各子機への通信ルートを構築する通信ルートの構築方法であって、
各子機から、当該子機が直接通信可能な隣接端末に関するリンク情報を受信するリンク情報受信ステップと、受信したリンク情報をもとに、始点側の通信端末の端末ID、終点側の通信端末の端末ID、および、両端末間の通信品質レベルを示すリンクコストを一次元のデータテーブルからなるトポロジーテーブルに記録させるトポロジー記録ステップと、トポロジーテーブルに記録されたリンク情報をもとに、ダイクストラアルゴリズムを用いて各子機への通信ルートを求める通信ルート構築ステップとを備えることを特徴とする通信ルートの構築方法。
One of the plurality of communication terminals constituting the communication network is a master unit and the rest is a slave unit. The master unit stores a desired communication route from the storage unit storing the communication route between the master unit and each slave unit. By reading the communication route to the slave unit and exchanging communication signals between adjacent terminals according to the communication route, the master unit can communicate directly from each slave unit when communicating between the master unit and the slave unit. A communication route construction method for receiving link information related to a neighboring terminal and constructing a communication route to each slave unit based on the received link information,
A link information receiving step for receiving link information related to an adjacent terminal with which the slave can communicate directly from each slave, and the terminal ID of the start-side communication terminal and the communication terminal on the end-point based on the received link information Based on the topology recording step of recording the terminal ID of the terminal and the link cost indicating the communication quality level between both terminals in a topology table composed of a one-dimensional data table, and the link information recorded in the topology table A communication route construction method, comprising: a communication route construction step for obtaining a communication route to each child device using a computer.
前記通信ルート構築ステップでダイクストラアルゴリズムを用いて各子機への通信ルートを求める際に、親機から対象の子機に至る通信ルートとして、所定の通信品質以上の通信ルートが探索できた場合は、当該通信ルートを当該子機への通信ルートに決定し、当該子機に至る全ての通信ルートを探索する前に当該子機への通信ルートの探索を終了することを特徴とする請求項1記載の通信ルートの構築方法。   When obtaining a communication route to each child device using the Dijkstra algorithm in the communication route construction step, as a communication route from the parent device to the target child device, a communication route with a predetermined communication quality or higher can be searched. The communication route to the child device is determined as the communication route, and the search for the communication route to the child device is terminated before searching for all the communication routes leading to the child device. The construction method of the described communication route. 始点側の通信端末の端末IDと、終点側の通信端末の端末IDとの大小関係が一定の関係となるようにトポロジーテーブルがソートされた状態で通信ルート構築ステップを実行することを特徴とする請求項1又は2記載の通信ルートの構築方法。   The communication route construction step is executed in a state in which the topology table is sorted so that the magnitude relationship between the terminal ID of the communication terminal on the start point side and the terminal ID of the communication terminal on the end point side is a constant relationship. The communication route construction method according to claim 1 or 2. トポロジーテーブルに記憶させた始点側の通信端末の端末IDが昇順又は降順に並ぶようにソートされた状態で通信ルート構築ステップを実行することを特徴とする請求項1乃至3の何れか1項に記載の通信ルートの構築方法。   The communication route construction step is executed in a state in which the terminal IDs of the communication terminals on the start side stored in the topology table are sorted in ascending order or descending order. The construction method of the described communication route. トポロジーテーブルに記憶させた終点側の通信端末の端末IDが昇順又は降順に並ぶようにソートされた状態で通信ルート構築ステップを実行することを特徴とする請求項4記載の通信ルートの構築方法。   5. The communication route construction method according to claim 4, wherein the communication route construction step is executed in a state where the terminal IDs of the terminal side communication terminals stored in the topology table are sorted in ascending or descending order. トポロジー記録ステップにおいて、始点側または終点側の通信端末の端末IDの少なくとも何れか一方が昇順又は降順に並ぶように、始点側および終点側の通信端末の端末IDとリンクコストとをトポロジーテーブルに記録させることを特徴とする請求項1乃至5の何れか1項に記載の通信ルートの構築方法。   In the topology recording step, record the terminal IDs and link costs of the start and end side communication terminals in the topology table so that at least one of the terminal IDs of the start and end side communication terminals is arranged in ascending or descending order. The communication route construction method according to claim 1, wherein the communication route is constructed. 通信ネットワークを構成する複数の通信端末の内の1台を親機、残りを子機とし、親機が、当該親機と各子機との間の通信ルートを記憶した記憶部から、所望の子機への通信ルートを読み出し、当該通信ルートにしたがって隣接端末間で通信信号を授受することにより、親機と子機との間で通信を行う親機側の通信端末であって、
各子機から、当該子機が直接通信可能な隣接端末に関するリンク情報を受信するリンク情報受信手段と、受信したリンク情報をもとに、始点側の通信端末の端末ID、終点側の通信端末の端末ID、および、両端末間の通信品質レベルを示すリンクコストを一次元のデータテーブルからなるトポロジーテーブルに記録させるテーブル処理手段と、ソートされたトポロジーテーブルに記録されたリンク情報をもとに、ダイクストラアルゴリズムを用いて各子機への通信ルートを求める通信ルート構築手段とを備えることを特徴とする通信端末。
One of the plurality of communication terminals constituting the communication network is a master unit and the rest is a slave unit. The master unit stores a desired communication route from the storage unit storing the communication route between the master unit and each slave unit. A communication terminal on the parent device side that performs communication between the parent device and the child device by reading a communication route to the child device and exchanging communication signals between adjacent terminals according to the communication route,
Link information receiving means for receiving link information related to an adjacent terminal that can directly communicate with the slave unit from each slave unit, and the terminal ID of the start side communication terminal and the end point communication terminal based on the received link information Based on the table processing means for recording the terminal ID and the link cost indicating the communication quality level between both terminals in a topology table composed of a one-dimensional data table, and the link information recorded in the sorted topology table And a communication route construction means for obtaining a communication route to each slave unit using the Dijkstra algorithm.
JP2007146013A 2007-05-31 2007-05-31 Communication route construction method and communication terminal using the same Active JP4835517B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007146013A JP4835517B2 (en) 2007-05-31 2007-05-31 Communication route construction method and communication terminal using the same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007146013A JP4835517B2 (en) 2007-05-31 2007-05-31 Communication route construction method and communication terminal using the same

Publications (2)

Publication Number Publication Date
JP2008301269A true JP2008301269A (en) 2008-12-11
JP4835517B2 JP4835517B2 (en) 2011-12-14

Family

ID=40174340

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007146013A Active JP4835517B2 (en) 2007-05-31 2007-05-31 Communication route construction method and communication terminal using the same

Country Status (1)

Country Link
JP (1) JP4835517B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010178145A (en) * 2009-01-30 2010-08-12 Oki Electric Ind Co Ltd Packet relay system and radio node
JP2010226230A (en) * 2009-03-19 2010-10-07 Toyo Networks & System Integration Co Ltd Power-line carrier communication apparatus and power-line carrier communication system
JP2015019214A (en) * 2013-07-10 2015-01-29 シャープ株式会社 Radio information collection system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08178682A (en) * 1994-12-22 1996-07-12 Sumitomo Electric Ind Ltd Route searching method and route searching device
JPH11257984A (en) * 1998-03-11 1999-09-24 Tsubasa System Kk Course searching system and computer readable medium recording program
JP2006067557A (en) * 2004-07-27 2006-03-09 Matsushita Electric Works Ltd Construction method of communication route and communication terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08178682A (en) * 1994-12-22 1996-07-12 Sumitomo Electric Ind Ltd Route searching method and route searching device
JPH11257984A (en) * 1998-03-11 1999-09-24 Tsubasa System Kk Course searching system and computer readable medium recording program
JP2006067557A (en) * 2004-07-27 2006-03-09 Matsushita Electric Works Ltd Construction method of communication route and communication terminal

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010178145A (en) * 2009-01-30 2010-08-12 Oki Electric Ind Co Ltd Packet relay system and radio node
US9450668B2 (en) 2009-01-30 2016-09-20 Oki Electric Industry Co., Ltd. Packet relay system and wireless node
JP2010226230A (en) * 2009-03-19 2010-10-07 Toyo Networks & System Integration Co Ltd Power-line carrier communication apparatus and power-line carrier communication system
JP2015019214A (en) * 2013-07-10 2015-01-29 シャープ株式会社 Radio information collection system

Also Published As

Publication number Publication date
JP4835517B2 (en) 2011-12-14

Similar Documents

Publication Publication Date Title
JP2008301268A (en) Method of searching communication route and communication terminal using the same
US8767627B2 (en) Path control method for multihop wireless network
KR101303436B1 (en) Address stripping in a meter reading wireless mesh network and associated system
JP3985828B2 (en) Communication route construction method and communication terminal
JP2009302694A (en) Radio communication network system
JP2013503587A (en) Registration of new nodes to the meter reading wireless mesh network and related systems
JP2013503589A (en) Network address field of node in meter meter wireless mesh network and related system
CN111314185B (en) Ad hoc network method, ad hoc network response method, controlled equipment and gateway
JP2012257016A (en) Radio system
JP4835517B2 (en) Communication route construction method and communication terminal using the same
JP5903616B2 (en) Multi-hop communication method, multi-hop communication system, and communication terminal
WO2017145731A1 (en) Communication terminal, multi-hop communication system, and program
JP5923715B2 (en) Measurement information collecting system, wireless node, wireless node communication method and program
JP2008017185A (en) System, method, and program for power line communication
JP5870285B2 (en) Multi-hop communication method, multi-hop communication system, and communication terminal
JP5673303B2 (en) Wireless terminal device, wireless system, and wireless communication method
JP4747951B2 (en) Communication route construction method and communication terminal
JP2013110737A (en) Node device, termination device and communication control method
JP6052653B2 (en) Data management system, master unit, slave unit
JP2016225837A (en) Multi-hop communication system, communication device and communication method
JP4010341B2 (en) Communication route construction method and communication terminal
JP7350929B2 (en) Wireless communication device, communication system, wireless communication method and program
JP2016225955A (en) Multi-hop communication system, communication device, and communication method
JP2014068286A (en) Communication network system, communication medium switchover method, and network implementation support method
JP2017130752A (en) Slave machine and communication system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20100125

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20101019

A871 Explanation of circumstances concerning accelerated examination

Free format text: JAPANESE INTERMEDIATE CODE: A871

Effective date: 20101105

A975 Report on accelerated examination

Free format text: JAPANESE INTERMEDIATE CODE: A971005

Effective date: 20101126

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20101130

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110124

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20110315

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110418

A911 Transfer to examiner for re-examination before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20110516

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20110830

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20110912

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

Free format text: PAYMENT UNTIL: 20141007

Year of fee payment: 3

R151 Written notification of patent or utility model registration

Ref document number: 4835517

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

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

Free format text: PAYMENT UNTIL: 20141007

Year of fee payment: 3