JP2016152533A - Program, device and method for communication - Google Patents

Program, device and method for communication Download PDF

Info

Publication number
JP2016152533A
JP2016152533A JP2015029438A JP2015029438A JP2016152533A JP 2016152533 A JP2016152533 A JP 2016152533A JP 2015029438 A JP2015029438 A JP 2015029438A JP 2015029438 A JP2015029438 A JP 2015029438A JP 2016152533 A JP2016152533 A JP 2016152533A
Authority
JP
Japan
Prior art keywords
frame
destination
communication device
communication
node
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
JP2015029438A
Other languages
Japanese (ja)
Other versions
JP6428349B2 (en
Inventor
達也 曽根田
Tatsuya Soneda
達也 曽根田
秀毅 南木野
Hidetaka Namikino
秀毅 南木野
克彦 山津
Katsuhiko Yamatsu
克彦 山津
由貴 中島
Yuki Nakajima
由貴 中島
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP2015029438A priority Critical patent/JP6428349B2/en
Publication of JP2016152533A publication Critical patent/JP2016152533A/en
Application granted granted Critical
Publication of JP6428349B2 publication Critical patent/JP6428349B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

PROBLEM TO BE SOLVED: To improve data reception and transmission efficiency.SOLUTION: A communication program is executed in a first communication device included in a network. The first communication device receives a control frame from a neighboring second communication device. The control frame includes: communication destination information capable of transmitting a frame through the second communication device; and unique information which is used when the second communication device identifies a communication destination and whose data length is shorter than an address allocated to the communication destination. The first communication device, when transmitting data to the communication destination through the second communication device, sets unique information as the destination of the data frame which includes data destined to the communication destination, to transmit the data frame to the second communication device.SELECTED DRAWING: Figure 1

Description

本発明は、複数の通信装置を含むネットワークで行われる通信に関する。   The present invention relates to communication performed in a network including a plurality of communication devices.

アドホックネットワークは、ネットワークを形成する通信装置が追加もしくは削除された場合でも、動的にネットワークが形成されるため、利便性が高い。アドホックネットワークは、センサネットワークや検針システムなどにも使用されることがある。この場合、アドホックネットワーク中の通信装置で得られた情報は、センサの情報や検針結果などを処理する装置を含む他のネットワークに、ゲートウェイとして動作する通信装置(ゲートウェイ装置)を介して送信されることが多い。アドホックネットワーク中の各通信装置がゲートウェイ装置を介して他のネットワークに情報を提供する場合、各通信装置は、アドホックネットワーク中のゲートウェイ装置にフレームを送信するための経路情報を、Helloフレームを用いて取得する。ここで、Helloフレームには、Helloフレームの送信元の通信装置を介してフレームの転送が可能なゲートウェイ装置の情報が含まれている。   An ad hoc network is highly convenient because a network is dynamically formed even when communication devices forming the network are added or deleted. The ad hoc network may be used for a sensor network, a meter reading system, and the like. In this case, information obtained by a communication device in the ad hoc network is transmitted to another network including a device that processes sensor information, a meter reading result, and the like via a communication device (gateway device) that operates as a gateway. There are many cases. When each communication device in the ad hoc network provides information to another network via the gateway device, each communication device uses the Hello frame to transmit route information for transmitting a frame to the gateway device in the ad hoc network. get. Here, the Hello frame includes information on a gateway device that can transfer the frame via the communication device that is the transmission source of the Hello frame.

アドホックネットワークで送受信されるフレームには、フレームの最終宛先アドレス、フレームの送信元アドレス、フレームの転送先のアドレス、フレームの転送元のアドレスが含まれ、これらの情報は転送処理に使用される。例えば、各通信装置は、フレームの最終宛先にゲートウェイ装置が指定されたフレームを受信すると、ルーティングテーブルを使用して、最終宛先に指定されたゲートウェイ装置にフレームを転送できる装置の中からフレームの転送先を決定する。フレームの転送の際に、通信装置は、フレームの転送元のアドレスを、通信装置自身に割り当てられたアドレスに変更し、フレームの転送先のアドレスを設定する。すると、フレームは、フレーム中の転送先アドレスが割り当てられた装置に転送される。フレームの転送処理は、フレームが最終宛先に指定されたゲートウェイ装置に到達するまで繰り返される。   A frame transmitted and received in an ad hoc network includes a final destination address of the frame, a frame transmission source address, a frame transfer destination address, and a frame transfer source address. These pieces of information are used for transfer processing. For example, when each communication device receives a frame in which the gateway device is designated as the final destination of the frame, it uses the routing table to transfer the frame from devices that can forward the frame to the gateway device designated as the final destination. Determine the destination. At the time of frame transfer, the communication device changes the frame transfer source address to the address assigned to the communication device itself, and sets the frame transfer destination address. Then, the frame is transferred to a device to which a transfer destination address in the frame is assigned. The frame transfer process is repeated until the frame reaches the gateway device designated as the final destination.

関連する技術として、複数のリンクを設定しているノードが、リンク先に存在する各ノードを一意に識別するノード識別子をキーとしたブルームフィルタを経路情報として使用する方法が提案されている(例えば、特許文献1など)。   As a related technique, a method has been proposed in which a node in which a plurality of links are set uses, as path information, a Bloom filter with a node identifier that uniquely identifies each node existing at the link destination as a key (for example, Patent Document 1).

特開2008―11448号公報JP 2008-11448 A

アドホックネットワークで送受信されるフレームのヘッダには、フレームの最終宛先、送信元、転送先、転送元のそれぞれのアドレスが含まれ、さらに、転送処理に使用される制御情報なども含まれる。さらに、アドホックネットワーク中で送受信されるフレームのデータサイズは他のネットワークに比べて小さいことが多い。このため、アドホックネットワークで送受信されるフレーム中でペイロードのデータが占める割合は小さくなりやすく、ペイロードのデータの送信効率が悪くなりやすい。データ圧縮により制御情報のデータサイズを小さくしても、制御情報自体のデータサイズが小さい上に、圧縮処理に関する制御情報をフレームに含めることになる。そのため、制御情報の圧縮によって1つのフレームで送信できるペイロードのデータ量を増やすことは困難である。   The header of a frame transmitted / received in an ad hoc network includes the final destination, transmission source, transfer destination, and transfer source addresses of the frame, and also includes control information used for transfer processing. Furthermore, the data size of frames transmitted and received in an ad hoc network is often small compared to other networks. For this reason, the ratio of the payload data in the frames transmitted and received in the ad hoc network tends to be small, and the transmission efficiency of the payload data tends to deteriorate. Even if the data size of the control information is reduced by data compression, the data size of the control information itself is small and the control information related to the compression process is included in the frame. Therefore, it is difficult to increase the amount of payload data that can be transmitted in one frame by compressing control information.

1つの側面では、本発明は、データ送受信の効率を向上させることを目的とする。   In one aspect, the present invention aims to improve the efficiency of data transmission / reception.

1つの形態は、ネットワーク中に含まれる第1の通信装置で実行される。第1の通信装置は、隣接する第2の通信装置から制御フレームを受信する。制御フレームは、前記第2の通信装置を介してフレームを送信可能な通信先の情報と、前記第2の通信装置で前記通信先を識別する際に使用され、前記通信先に割り当てられたアドレスよりもデータ長が短い情報である一意情報を含む。第1の通信装置は、前記通信先に前記第2の通信装置を介してデータを送信する際に、前記通信先宛のデータを含むデータフレームの宛先として前記一意情報を設定し、前記データフレームを前記第2の通信装置に送信する。   One form is performed on a first communication device included in the network. The first communication device receives a control frame from the adjacent second communication device. The control frame is information used to identify a communication destination capable of transmitting a frame via the second communication device, and an address assigned to the communication destination, which is used when the communication destination is identified by the second communication device. Including unique information which is information having a shorter data length. When the first communication device transmits data to the communication destination via the second communication device, the first communication device sets the unique information as a destination of a data frame including data addressed to the communication destination, and the data frame Is transmitted to the second communication device.

データ送受信の効率を向上させることができる。   The efficiency of data transmission / reception can be improved.

実施形態にかかる通信方法の例を説明するフローチャートである。It is a flowchart explaining the example of the communication method concerning embodiment. 通信装置の構成の例を説明する図である。It is a figure explaining the example of a structure of a communication apparatus. 通信装置のハードウェア構成の例を説明する図である。It is a figure explaining the example of the hardware constitutions of a communication apparatus. フレームのフォーマットの例を説明する図である。It is a figure explaining the example of the format of a frame. Helloフレームの送受信の際に行われる処理の例を説明する図である。It is a figure explaining the example of the process performed at the time of transmission / reception of a Hello frame. Helloフレームの受信処理の例を説明するフローチャートである。It is a flowchart explaining the example of the reception process of a Hello frame. Helloフレームの送信処理の例を説明するフローチャートである。It is a flowchart explaining the example of the transmission process of a Hello frame. ゲートウェイ装置宛てのフレームの転送処理の例を説明する図である。It is a figure explaining the example of the transfer process of the frame addressed to a gateway apparatus. ゲートウェイ装置から送信されたフレームの転送処理の例を説明する図である。It is a figure explaining the example of the transfer process of the flame | frame transmitted from the gateway apparatus. データフレームの受信処理の例を説明するシーケンス図である。It is a sequence diagram explaining the example of the reception process of a data frame. データフレームの送信処理の例を説明するシーケンス図である。It is a sequence diagram explaining the example of the transmission process of a data frame. ネットワークの例を示す図である。It is a figure which shows the example of a network. Helloフレームの送受信の際に行われる処理の例を説明する図である。It is a figure explaining the example of the process performed at the time of transmission / reception of a Hello frame. Helloフレームの送受信の際に行われる処理の例を説明する図である。It is a figure explaining the example of the process performed at the time of transmission / reception of a Hello frame. Helloフレームの送受信の際に行われる処理の例を説明する図である。It is a figure explaining the example of the process performed at the time of transmission / reception of a Hello frame. 各通信装置が保持するルーティングテーブルの例を示す図である。It is a figure which shows the example of the routing table which each communication apparatus hold | maintains. ゲートウェイ装置宛てのフレームの転送処理の例を説明する図である。It is a figure explaining the example of the transfer process of the frame addressed to a gateway apparatus. ゲートウェイ装置宛てのフレームの転送処理の例を説明する図である。It is a figure explaining the example of the transfer process of the frame addressed to a gateway apparatus. ゲートウェイ装置宛てのフレームの転送処理の例を説明する図である。It is a figure explaining the example of the transfer process of the frame addressed to a gateway apparatus. ゲートウェイ装置から送信されたフレームの転送処理の例を説明する図である。It is a figure explaining the example of the transfer process of the flame | frame transmitted from the gateway apparatus. ゲートウェイ装置から送信されたフレームの転送処理の例を説明する図である。It is a figure explaining the example of the transfer process of the flame | frame transmitted from the gateway apparatus. ゲートウェイ装置から送信されたフレームの転送処理の例を説明する図である。It is a figure explaining the example of the transfer process of the flame | frame transmitted from the gateway apparatus. フレーム中のペイロードのサイズの例を説明する図である。It is a figure explaining the example of the size of the payload in a flame | frame. 第2の実施形態で行われるHelloフレームの送信処理の例を説明するフローチャートである。It is a flowchart explaining the example of the transmission process of the Hello frame performed in 2nd Embodiment. 各通信装置が保持するルーティングテーブルの例を示す図である。It is a figure which shows the example of the routing table which each communication apparatus hold | maintains. データフレームの転送処理の例を説明する図である。It is a figure explaining the example of the transfer process of a data frame. データフレームの転送処理の例を説明する図である。It is a figure explaining the example of the transfer process of a data frame. データフレームの転送処理の例を説明する図である。It is a figure explaining the example of the transfer process of a data frame.

図1は、実施形態にかかる通信方法の例を説明するフローチャートである。実施形態にかかる通信方法を用いて通信を行う通信装置10は、隣接する通信装置10との間でHelloフレームを送受信する。通信装置10は、有線で通信を行ってもよく、無線通信を行ってもよい。通信装置10が無線アドホックネットワーク中の装置である場合、ある通信装置に「隣接する」通信装置は、ある通信装置から送信されたフレームを受信することができる範囲内に位置する通信装置のことを指すものとする。また、ある通信装置から送信されたフレームを受信できる範囲に位置する通信装置のことを、その通信装置の「隣接ノード」と記載することがある。   FIG. 1 is a flowchart illustrating an example of a communication method according to the embodiment. The communication device 10 that performs communication using the communication method according to the embodiment transmits and receives a Hello frame to and from the adjacent communication device 10. The communication device 10 may perform wired communication or wireless communication. When the communication device 10 is a device in a wireless ad hoc network, a communication device “adjacent” to a certain communication device is a communication device located within a range in which a frame transmitted from a certain communication device can be received. Shall point to. In addition, a communication device located in a range in which a frame transmitted from a certain communication device can be received may be referred to as an “adjacent node” of the communication device.

ステップS1において、通信装置10は、Helloフレームを用いて、隣接ノードとの間で、経路情報と、隣接ノードを介して通信可能な通信先に付されている一意情報を交換する。ここで、一意情報は、隣接ノードを介して通信可能な通信先を識別する際に隣接ノードが使用する情報であり、かつ、その通信先に割り当てられているアドレスよりもデータ長が短い情報である。通信装置10は、その通信装置10で動作しているアプリケーションなどでフレームの送信要求が行われるまで、ステップS1の処理を継続する(ステップS2でNo)。   In step S <b> 1, the communication device 10 uses the Hello frame to exchange path information and unique information attached to a communication destination that can communicate with the adjacent node. Here, the unique information is information used by an adjacent node when identifying a communication destination capable of communicating via the adjacent node, and is information having a data length shorter than an address assigned to the communication destination. is there. The communication device 10 continues the process of step S1 until a frame transmission request is made by an application or the like running on the communication device 10 (No in step S2).

アプリケーションなどでフレームの送信要求が発生すると、通信装置10は、ルーティングテーブルなどを用いて、フレームの転送先を特定する(ステップS2でYes)。通信装置10は、フレームの転送先がフレームの最終宛先に対して設定した一意情報を取得済みであるかを判定する(ステップS3)。転送先が最終宛先に対して設定した一意情報を取得している場合、通信装置10は、フレームの最終宛先のアドレスを、転送先が最終宛先に設定した一意情報に置換する(ステップS3でYes、ステップS4)。   When a frame transmission request is generated by an application or the like, the communication device 10 specifies a frame transfer destination using a routing table or the like (Yes in step S2). The communication apparatus 10 determines whether the unique information set for the frame destination by the frame transfer destination has been acquired (step S3). When the transfer destination has acquired the unique information set for the final destination, the communication apparatus 10 replaces the address of the final destination of the frame with the unique information set for the final destination by the transfer destination (Yes in step S3). Step S4).

さらに、通信装置10は、フレームの生成元に対して自ノードが設定した一意情報を、転送先に通知済みであるかを判定する(ステップS5)。フレームの生成元に対して自ノードが設定した一意情報を、転送先に通知済みである場合、フレームの生成元のアドレスを自ノードが生成元に対して設定した一意情報に置換する(ステップS5でYes、ステップS6)。その後、通信装置10は、処理済みのフレームを転送先に向けて送信する(ステップS7)。   Furthermore, the communication device 10 determines whether or not the unique information set by the node for the frame generation source has been notified to the transfer destination (step S5). If the unique information set by the node for the frame generation source has been notified to the transfer destination, the address of the frame generation source is replaced with the unique information set by the node for the generation source (step S5). Yes, step S6). Thereafter, the communication device 10 transmits the processed frame to the transfer destination (step S7).

なお、ステップS3において、転送先が最終宛先に対して設定した一意情報を取得していない場合、通信装置10は、ステップS4の処理を行わずにステップS5以降の処理を行う。また、ステップS5において、フレームの生成元に対して自ノードが設定した一意情報を転送先に通知していないと判定した場合、通信装置10は、ステップS6の処理を行わずにステップS7の処理を行う。   In step S3, when the transfer destination has not acquired the unique information set for the final destination, the communication device 10 performs the processing from step S5 onward without performing the processing in step S4. In Step S5, when it is determined that the unique information set by the node is not notified to the transfer destination with respect to the frame generation source, the communication device 10 performs the process of Step S7 without performing the process of Step S6. I do.

なお、図1を参照しながら説明した処理は一例であり、通信装置10で行われる処理は、実装に応じて変更されうる。例えば、ステップS3〜S4の処理よりも前に、ステップS5〜S6の処理が行われるように変形されても良い。後述するように、Helloフレームにゲートウェイ装置として動作する通信装置10の情報以外を含めない場合は、ゲートウェイ装置の情報についてだけ、一意情報に置き換えるための処理を行ってもよい。すなわち、後述するように、ゲートウェイ装置に向けて送信されるフレームの処理の場合は、ステップS5、S6が省略され得る。また、ゲートウェイ装置から送信されたフレームについては、ステップS3、S4の処理が省略されうる。   Note that the processing described with reference to FIG. 1 is an example, and the processing performed in the communication device 10 can be changed according to the implementation. For example, the process of steps S5 to S6 may be modified before the processes of steps S3 to S4. As will be described later, when information other than information on the communication device 10 operating as a gateway device is not included in the Hello frame, only the information on the gateway device may be replaced with unique information. That is, as will be described later, steps S5 and S6 can be omitted in the case of processing a frame transmitted to the gateway device. For frames transmitted from the gateway device, the processes in steps S3 and S4 can be omitted.

図1を参照しながら説明したように、通信装置10は、転送先においてフレームの最終宛先や送信元をアドレスよりも短い一意情報により識別できる場合には、アドレスの代わりに一意情報を用いることにより、ヘッダのサイズを小さくすることができる。したがって、各フレームに含められるデータサイズが大きくなり、結果として、通信効率が向上する。また、1フレームあたりのペイロードを大きくすることでスループットが改善する。すなわち、アドホックネットワークにおける通信速度が向上する。   As described with reference to FIG. 1, the communication device 10 uses the unique information instead of the address when the final destination or the transmission source of the frame can be identified by the unique information shorter than the address at the transfer destination. The header size can be reduced. Therefore, the data size included in each frame is increased, and as a result, communication efficiency is improved. Also, the throughput is improved by increasing the payload per frame. That is, the communication speed in the ad hoc network is improved.

<通信装置の構成とフレームのフォーマット例>
以下の説明では、フレームの最終的な宛先を「グローバル宛先」(Global Destination、GD)と記載することがある。一方、フレームを最終的な宛先に送信するために行われる1ホップの転送の際に、転送先として指定される通信装置のことを、「ローカル宛先」(Local Destination、LD)と記載することがある。さらに、関連して、フレームの最終宛先に送信されるデータを生成した通信装置10を「グローバル送信元」(Global Source、GS)と記載することがある。また、フレームが1ホップ転送される場合の転送元の通信装置10のことを、「ローカル送信元」(Local Source、LS)と記載することもある。
<Configuration of communication device and frame format example>
In the following description, the final destination of a frame may be described as a “global destination” (GD). On the other hand, a communication device designated as a transfer destination in a one-hop transfer performed to transmit a frame to a final destination may be referred to as a “local destination” (Local Destination, LD). is there. Further, relatedly, the communication device 10 that has generated the data to be transmitted to the final destination of the frame may be described as a “Global Source” (GS). In addition, the communication device 10 that is a transfer source when a frame is transferred by one hop may be referred to as a “local source” (LS).

図2は、通信装置10の構成の例を説明する図である。通信装置10は、受信部11、ヘッダ解析部12、転送処理部13、アプリケーション処理部14、フレーム生成部15、送信部16、制御部20、記憶部30を備える。制御部20は、抽出部21、GDID管理部22、テーブル管理部23、経路情報生成部24、タイマ25を備える。記憶部30は、リンクテーブル(Link Table、LT)31、ルーティングテーブル(routing table、RT)32、転送先テーブル33を保持し、さらに、通信装置10がゲートウェイ装置として動作するかを示す情報も記憶する。   FIG. 2 is a diagram illustrating an example of the configuration of the communication device 10. The communication device 10 includes a reception unit 11, a header analysis unit 12, a transfer processing unit 13, an application processing unit 14, a frame generation unit 15, a transmission unit 16, a control unit 20, and a storage unit 30. The control unit 20 includes an extraction unit 21, a GDID management unit 22, a table management unit 23, a route information generation unit 24, and a timer 25. The storage unit 30 stores a link table (LT) 31, a routing table (RT) 32, and a transfer destination table 33, and also stores information indicating whether the communication device 10 operates as a gateway device. To do.

受信部11は、他の通信装置10からフレームを受信し、受信したフレームをヘッダ解析部12に出力する。ヘッダ解析部12は、フレーム中のヘッダの情報を解析し、Helloフレームを抽出部21に出力する。また、ヘッダ解析部12は、データフレームのグローバル送信元とローカル送信元の情報を用いて、転送先テーブル33を生成する。ヘッダ解析部12は、自ノードがグローバル宛先に指定されたデータフレームをアプリケーション処理部14に出力し、自ノード以外がグローバル宛先に指定されたデータフレームを転送処理部13に出力する。転送処理部13は、入力されたフレームをグローバル宛先に向けて転送するための転送先(ローカル宛先)を、ルーティングテーブル32や転送先テーブル33を用いて決定する。転送処理部13は、特定したローカル宛先の情報を、フレーム中のデータ、グローバル宛先、グローバル送信元などの情報とともに、フレーム生成部15に出力する。アプリケーション処理部14は、入力されたフレームのデータを処理する。また、他の装置に送信するデータを、宛先などの情報とともにフレーム生成部15に出力する。フレーム生成部15は、転送処理部13、アプリケーション処理部14、または、経路情報生成部24のいずれかから、入力されたデータを含むフレームを生成する。フレーム生成部15は、生成したフレームを送信部16に出力する。送信部16は、他の装置に向けてフレームを送信する。   The receiving unit 11 receives a frame from another communication device 10 and outputs the received frame to the header analyzing unit 12. The header analysis unit 12 analyzes header information in the frame and outputs a Hello frame to the extraction unit 21. In addition, the header analysis unit 12 generates the transfer destination table 33 using information on the global transmission source and the local transmission source of the data frame. The header analysis unit 12 outputs the data frame in which the own node is designated as the global destination to the application processing unit 14 and outputs the data frame in which the node other than the own node is designated as the global destination to the transfer processing unit 13. The transfer processing unit 13 uses the routing table 32 and the transfer destination table 33 to determine a transfer destination (local destination) for transferring the input frame toward the global destination. The transfer processing unit 13 outputs the specified local destination information to the frame generation unit 15 together with information such as data in the frame, global destination, and global transmission source. The application processing unit 14 processes input frame data. In addition, data to be transmitted to another device is output to the frame generation unit 15 together with information such as a destination. The frame generation unit 15 generates a frame including data input from any one of the transfer processing unit 13, the application processing unit 14, and the route information generation unit 24. The frame generation unit 15 outputs the generated frame to the transmission unit 16. The transmission unit 16 transmits a frame toward another device.

抽出部21は、Helloフレームで通知された情報を抽出し、テーブル管理部23に
出力する。GDID管理部22は、Helloフレームで経路情報が通知された通信先に対して、通信装置10自身が使用する一意情報(グローバル宛先ID、GDID)として使用できる値を管理する。テーブル管理部23は、抽出部21から入力された情報を用いて、ルーティングテーブル32を更新する。Helloフレームによって新たな通信先に関する経路情報が通知されると、テーブル管理部23は、GDID管理部22が保持する値から選択した値を、その通信先の識別に使用する一意情報として、ルーティングテーブル32に記録する。タイマ25は、Helloフレームの送信周期を計測する。経路情報生成部24は、Helloフレームに含める情報をルーティングテーブル32から抽出して、フレーム生成部15に出力する。
The extraction unit 21 extracts information notified in the Hello frame and outputs the information to the table management unit 23. The GDID management unit 22 manages a value that can be used as unique information (global destination ID, GDID) used by the communication device 10 for the communication destination notified of the route information by the Hello frame. The table management unit 23 updates the routing table 32 using the information input from the extraction unit 21. When the route information related to the new communication destination is notified by the Hello frame, the table management unit 23 uses the value selected from the values held by the GDID management unit 22 as the unique information used for identifying the communication destination. 32. The timer 25 measures the transmission period of the Hello frame. The route information generation unit 24 extracts information to be included in the Hello frame from the routing table 32 and outputs the information to the frame generation unit 15.

リンクテーブル31は、通信装置10に隣接する通信装置10ごとに、その通信装置10のアドレスや、その装置と自装置の間のリンクの状況などを示す値を格納する。転送先テーブル33は、受信したデータフレームのグローバル送信元をグローバル宛先と読み替えるとともに、ローカル送信元をローカル宛先に読み替えることによって得られる経路情報を記録する。すなわち、転送先テーブル33は、自ノードにフレームを送信してきた通信装置10に至る経路情報を記録する。   The link table 31 stores, for each communication device 10 adjacent to the communication device 10, a value indicating the address of the communication device 10, the status of the link between the device and the own device, and the like. The transfer destination table 33 records the path information obtained by replacing the global transmission source of the received data frame with the global destination and replacing the local transmission source with the local destination. That is, the transfer destination table 33 records the route information reaching the communication device 10 that has transmitted the frame to the own node.

図3は、通信装置10のハードウェア構成の例を示す図である。通信装置10は、プロセッサ100、バス101(101a〜101c)、タイマIC104、Dynamic Random access Memory(DRAM)106、フラッシュメモリ107、無線モジュール108を備える。通信装置10は、オプションとして、PHYチップ102を含むことができる。バス101a〜101cは、プロセッサ100、PHYチップ102、タイマIC104、DRAM106、フラッシュメモリ107、および、無線モジュール108を、データの入出力が可能になるように接続する。   FIG. 3 is a diagram illustrating an example of a hardware configuration of the communication device 10. The communication device 10 includes a processor 100, a bus 101 (101a to 101c), a timer IC 104, a dynamic random access memory (DRAM) 106, a flash memory 107, and a wireless module 108. The communication device 10 can optionally include a PHY chip 102. The buses 101a to 101c connect the processor 100, the PHY chip 102, the timer IC 104, the DRAM 106, the flash memory 107, and the wireless module 108 so that data can be input and output.

プロセッサ100は、Micro-Processing Unit(MPU)などの任意の処理回路である。プロセッサ100は、フラッシュメモリ107に格納されたファームウェアなどのプログラムを読み込んで処理を行う。このとき、プロセッサ100は、DRAM106をワーキングメモリとして使用できる。通信装置10において、プロセッサ100は、ヘッダ解析部12、転送処理部13、アプリケーション処理部14、フレーム生成部15、抽出部21、GDID管理部22、テーブル管理部23、経路情報生成部24として動作する。通信装置10において、DRAM106は、記憶部30として動作する。通信装置10において、無線モジュール108は、受信部11および送信部16として動作する。PHYチップ102は、有線通信に用いられる。アドホックネットワークと他のネットワーク中の装置の間の通信を中継するゲートウェイとして動作する通信装置10では、PHYチップ102を介して回線による通信が行うことができる。タイマIC104は、タイマ25として動作する。   The processor 100 is an arbitrary processing circuit such as a Micro-Processing Unit (MPU). The processor 100 reads a program such as firmware stored in the flash memory 107 and performs processing. At this time, the processor 100 can use the DRAM 106 as a working memory. In the communication device 10, the processor 100 operates as a header analysis unit 12, a transfer processing unit 13, an application processing unit 14, a frame generation unit 15, an extraction unit 21, a GDID management unit 22, a table management unit 23, and a path information generation unit 24. To do. In the communication device 10, the DRAM 106 operates as the storage unit 30. In the communication device 10, the wireless module 108 operates as the reception unit 11 and the transmission unit 16. The PHY chip 102 is used for wired communication. In the communication device 10 that operates as a gateway that relays communication between an ad hoc network and devices in other networks, communication via a line can be performed via the PHY chip 102. The timer IC 104 operates as the timer 25.

なお、ファームウェアなどのプログラムは、コンピュータ読み取り可能な記憶媒体に格納されて提供され、通信装置10にインストールされてもよい。また、プログラムは、ネットワークからPHYチップ102や無線モジュール108を介してダウンロードされることにより通信装置10にインストールされてもよい。さらに、実施形態に応じて、DRAM106やフラッシュメモリ107以外の他の種類の記憶装置が利用されることがある。また、通信装置10は、コンピュータによって実現されても良い。   Note that a program such as firmware may be provided by being stored in a computer-readable storage medium and installed in the communication apparatus 10. The program may be installed in the communication device 10 by being downloaded from the network via the PHY chip 102 or the wireless module 108. Furthermore, other types of storage devices other than the DRAM 106 and the flash memory 107 may be used depending on the embodiment. The communication device 10 may be realized by a computer.

図4は、フレームのフォーマットの例を説明する図である。フレームF101は、アドホックネットワーク中で送受信されるデータフレームのフォーマットの例であり、フレームF102は、Helloフレームのフォーマットの例である。   FIG. 4 is a diagram illustrating an example of a frame format. A frame F101 is an example of a format of a data frame transmitted and received in an ad hoc network, and a frame F102 is an example of a format of a Hello frame.

データフレームは、フレームF101に示すように、物理ヘッダ、MAC(Media Access Control)ヘッダ、アドホックヘッダ、ペイロード、署名、FCS(Frame Check Sequence)を含み、適宜、パディングを含む。MACヘッダ中に、ローカル宛先アドレス(LD)とローカル送信元アドレス(LS)が含まれる。アドホックヘッダ中には、グローバル宛先アドレス(GD)、グローバル送信元アドレス(GS)、方向フラグが含まれる。方向フラグは、そのデータフレームがゲートウェイ装置に向けて送信されているかを示す情報である。以下の説明では、ゲートウェイ装置に向けて送信されているフレームでは、方向フラグは1に設定されるものとする。一方、ゲートウェイ装置から他の通信装置10に送信されているフレームでは、方向フラグは0に設定されるものとする。   As shown in a frame F101, the data frame includes a physical header, a MAC (Media Access Control) header, an ad hoc header, a payload, a signature, and an FCS (Frame Check Sequence), and appropriately includes padding. The MAC header includes a local destination address (LD) and a local transmission source address (LS). The ad hoc header includes a global destination address (GD), a global source address (GS), and a direction flag. The direction flag is information indicating whether the data frame is transmitted to the gateway device. In the following description, it is assumed that the direction flag is set to 1 in a frame transmitted toward the gateway device. On the other hand, the direction flag is set to 0 in the frame transmitted from the gateway device to the other communication device 10.

Helloフレームも、フレームF102に示すように、物理ヘッダ、MACヘッダ、アドホックヘッダ、ペイロード、署名、FCSを含み、適宜、パディングを含む。物理ヘッダ、MACヘッダ、アドホックヘッダは、データフレームと同様である。ただし、Helloフレームでは、ローカル送信元のアドレスとグローバル送信元アドレスは、いずれも、Helloフレームを生成した装置に割り当てられたアドレスに設定される。さらに、Helloフレームのローカル宛先アドレスとグローバル宛先アドレスは、ブロードキャストアドレス(BC)に設定される。   As shown in the frame F102, the Hello frame also includes a physical header, a MAC header, an ad hoc header, a payload, a signature, and an FCS, and appropriately includes padding. The physical header, MAC header, and ad hoc header are the same as the data frame. However, in the Hello frame, both the local transmission source address and the global transmission source address are set to addresses assigned to the device that generated the Hello frame. Further, the local destination address and the global destination address of the Hello frame are set to a broadcast address (BC).

Helloフレームのペイロードには、HelloメッセージヘッダとHelloヘッダが含まれる。Helloメッセージヘッダには、Helloフレーム中に含まれるHelloヘッダの数などの情報が含まれる。個々のHelloヘッダには、Helloフレームの送信元の通信装置10を介して通信できるグローバル宛先の情報が含まれる。図4の例では、Helloヘッダには、Helloフレームの送信元から通信できるグローバル宛先のアドレス、GDID、ホップ数、経路品質重みが含まれる。GDIDは、Helloヘッダ中にアドレスが記録されているグローバル宛先に対して、Helloフレームの送信元が設定したGDIDの値である。ホップ数は、Helloフレームの送信元からHelloヘッダ中のグローバル宛先までのホップ数である。経路品質重みは、Helloフレームの送信元から、Helloヘッダに情報が記録されているグローバル宛先までの経路の品質を示す情報である。   The payload of the Hello frame includes a Hello message header and a Hello header. The Hello message header includes information such as the number of Hello headers included in the Hello frame. Each Hello header includes global destination information that can be communicated via the communication device 10 that is the transmission source of the Hello frame. In the example of FIG. 4, the Hello header includes a global destination address, GDID, hop count, and route quality weight that can be communicated from the transmission source of the Hello frame. The GDID is a value of GDID set by the sender of the Hello frame with respect to the global destination whose address is recorded in the Hello header. The number of hops is the number of hops from the transmission source of the Hello frame to the global destination in the Hello header. The route quality weight is information indicating the quality of the route from the transmission source of the Hello frame to the global destination whose information is recorded in the Hello header.

<第1の実施形態>
以下、第1の実施形態を、Helloフレームの処理、データフレームの転送処理、複雑なネットワークへの適用例に分けて説明する。なお、第1の実施形態では、ゲートウェイ装置として動作する通信装置10の情報は、Helloフレームで伝搬されるが、ゲートウェイ装置して動作しない通信装置10の情報はHelloフレームによって他の装置に通知されない場合について述べる。第1の実施形態は、検針システムなど、ゲートウェイとして動作しない通信装置10の数が、ゲートウェイとして動作する通信装置10の数よりも多く、各通信装置10のルーティングテーブル中の情報量を小さくすることが求められる場合に適用しやすい。
<First Embodiment>
Hereinafter, the first embodiment will be described by dividing it into a Hello frame process, a data frame transfer process, and an application example to a complicated network. In the first embodiment, information on the communication device 10 that operates as a gateway device is propagated in a Hello frame, but information on the communication device 10 that does not operate as a gateway device is not notified to other devices by the Hello frame. Describe the case. In the first embodiment, the number of communication devices 10 that do not operate as gateways, such as a meter reading system, is larger than the number of communication devices 10 that operate as gateways, and the amount of information in the routing table of each communication device 10 is reduced. It is easy to apply when is required.

〔Helloフレームの処理〕
図5は、Helloフレームの送受信の際に行われる処理の例を説明する図である。以下の説明では、各通信装置10を区別しやすくするために、ノードA、ゲートウェイGW1など、各通信装置10の識別子を用いて説明する。以下、動作を行っているノード装置10を明確にするために、符号の最後に動作を行っているノード装置10に割り当てられているアルファベットを記載することがある。例えば、ノードAの中の受信部11を受信部11a、GW1中の転送先テーブル33を転送先テーブル33gw1などと表記することがある。さらに、図を見やすくするために、フレームに含まれている情報のうち、MACヘッダ、アドホックヘッダ、Helloヘッダなどの、フレームの一部の情報を図示し、他の情報を省略することもある。
[Hello frame processing]
FIG. 5 is a diagram illustrating an example of processing performed when transmitting and receiving a Hello frame. In the following description, in order to make it easy to distinguish each communication device 10, description will be made using identifiers of the communication devices 10 such as the node A and the gateway GW 1. Hereinafter, in order to clarify the node device 10 performing the operation, an alphabet assigned to the node device 10 performing the operation may be described at the end of the code. For example, the receiving unit 11 in the node A may be referred to as a receiving unit 11a, and the transfer destination table 33 in the GW1 may be referred to as a transfer destination table 33gw1. Furthermore, in order to make the figure easy to see, some information of the frame such as a MAC header, an ad hoc header, and a Hello header among the information included in the frame is illustrated, and other information may be omitted.

以下、GDIDの各々について、どの通信装置10を識別するために、いずれの通信装置10で使用されるかをGDIDの添え字で表わす。GDIDの添え字は、GDIDが表わす通信装置10、ハイフン、GDIDを設定した通信装置10を連続的に表記した文字列を下付き文字で示している。例えば、ノードAがゲートウェイGW1を識別するためにゲートウェイGW1に対して設定するGDIDを、GDIDGW1−Aのように表記する。なお、GDIDで識別される通信装置10が、その通信装置10自身に付したGDIDについては、GDIDを設定した装置とGDIDで識別される装置が同じであるので、GDIDを設定した装置の情報を添え字から省略することがある。例えば、「GDIDGW1」は、ゲートウェイGW1がゲートウェイGW1自身に対して設定したGDIDの値を表わす。なお、第1の実施形態では、各ゲートウェイ装置が、自装置を識別するGDIDを0に設定し、ゲートウェイ装置以外の装置はGDIDに0以外の値を設定する場合を例とする。 Hereinafter, for each GDID, which communication device 10 is used to identify which communication device 10 is used is represented by a GDID suffix. The subscript of the GDID indicates a character string in which the communication device 10 indicated by the GDID, the hyphen, and the communication device 10 in which the GDID is set are continuously described by subscript characters. For example, the GDID that the node A sets for the gateway GW1 in order to identify the gateway GW1 is expressed as GDID GW1-A . As for the GDID assigned to the communication device 10 itself by the communication device 10 identified by the GDID, the device set by the GDID is the same as the device identified by the GDID. Sometimes omitted from subscripts. For example, “GDID GW1 ” represents the value of GDID set by the gateway GW1 for the gateway GW1 itself. In the first embodiment, each gateway device sets a GDID for identifying its own device to 0, and a device other than the gateway device sets a value other than 0 to the GDID.

図5に示すネットワークには、ゲートウェイGW1とゲートウェイGW2の2つのゲートウェイ装置が含まれる。ノードAは、ゲートウェイGW1とゲートウェイGW2のいずれにも隣接している。ノードBはノードAに隣接している。   The network shown in FIG. 5 includes two gateway devices, gateway GW1 and gateway GW2. Node A is adjacent to both gateway GW1 and gateway GW2. Node B is adjacent to node A.

まず、ゲートウェイGW1がフレームF1に示すHelloフレームを生成したとする。フレームF1に含まれているMACヘッダには、ローカル送信元がゲートウェイGW1であることが記録されており、Helloヘッダ1には、ゲートウェイGW1の情報が含まれる。なお、ゲートウェイGW1は、ゲートウェイGW1自身を識別するときに使用する情報として、GDIDGW1=0を、Helloヘッダ1に含める。ゲートウェイGW1は、フレームF1に示すHelloフレームを送信する。なお、MACヘッダ中のLD=BCは、ローカル宛先アドレスがブロードキャストアドレスであることを示している。 First, it is assumed that the gateway GW1 generates a Hello frame shown in the frame F1. The MAC header included in the frame F1 records that the local transmission source is the gateway GW1, and the Hello header 1 includes information on the gateway GW1. The gateway GW1 includes GDID GW1 = 0 in the Hello header 1 as information used when identifying the gateway GW1 itself. The gateway GW1 transmits a Hello frame shown in the frame F1. Note that LD = BC in the MAC header indicates that the local destination address is a broadcast address.

ノードAの受信部11aは、フレームF1を受信し、ヘッダ解析部12aに出力する。ヘッダ解析部12aは、フレームF1がHelloフレームであるため、抽出部21aにフレームF1を出力する。抽出部21aは、フレームF1のMACヘッダに指定されているローカル生成元(LS)の情報を、Helloフレームの送信元の情報として抽出し、さらに、Helloヘッダ1の情報を抽出する。抽出部21aは、抽出した情報をテーブル管理部23aに出力する。テーブル管理部23aは、抽出部21aから入力された情報を用いて、ルーティングテーブル32aの情報を更新する。このとき、テーブル管理部23aは、Helloフレームの送信元を、そのHelloフレームで通知されたグローバル宛先に対するローカル転送先に読み替える。   The reception unit 11a of the node A receives the frame F1 and outputs it to the header analysis unit 12a. Since the frame F1 is a Hello frame, the header analysis unit 12a outputs the frame F1 to the extraction unit 21a. The extraction unit 21a extracts information on the local generation source (LS) specified in the MAC header of the frame F1 as information on the transmission source of the Hello frame, and further extracts information on the Hello header 1. The extraction unit 21a outputs the extracted information to the table management unit 23a. The table management unit 23a updates the information in the routing table 32a using the information input from the extraction unit 21a. At this time, the table management unit 23a replaces the transmission source of the Hello frame with the local transfer destination for the global destination notified by the Hello frame.

ルーティングテーブル32aには、グローバル宛先ごとに、グローバル宛先のアドレスとそのグローバル宛先を識別するために自ノードが使用するGDID、グローバル宛先に対してフレームを転送する際に使用できるローカル転送先の情報が含まれる。ローカル転送先の情報には、ローカル転送先に割当てられたアドレスと、ローカル転送先となっている通信装置10において、グローバル宛先の通信装置10の識別に使用されるGDIDが含まれる。   In the routing table 32a, for each global destination, the address of the global destination, the GDID used by the own node to identify the global destination, and information on the local forwarding destination that can be used when forwarding a frame to the global destination are stored. included. The local transfer destination information includes the address assigned to the local transfer destination and the GDID used to identify the global destination communication device 10 in the communication device 10 that is the local transfer destination.

テーブル管理部23aは、GDID管理部22aが保持している情報を用いて、ノードAがいずれの装置にも設定していないGDIDの値から、新たに通知されたグローバル宛先の識別に使用する値を選択する。以下の例では、テーブル管理部23aは、GW1に対して、GDID=2を選択したとする。GDID管理部22aは、テーブル管理部23aが選択した値を、選択可能な値から削除する。一方、テーブル管理部23aは、Helloヘッダ1より得られた情報などを用いて、以下の情報を、ルーティングテーブル32aに記録する。
グローバル宛先(GD):GW1
GDに対して自ノードが使用するGDID:GDIDGW1−A=2
ローカル宛先(LD) :GW1
LDがGDに設定したGDID :GDIDGW1=0
このため、テーブル管理部23aの処理により、ルーティングテーブル32aの「転送先1」に関する情報が生成される。
The table management unit 23a uses the information held by the GDID management unit 22a to use the value used for identifying the newly notified global destination from the GDID value that is not set in any device by the node A. Select. In the following example, it is assumed that the table management unit 23a selects GDID = 2 for GW1. The GDID management unit 22a deletes the value selected by the table management unit 23a from the selectable values. On the other hand, the table management unit 23a records the following information in the routing table 32a using information obtained from the Hello header 1 or the like.
Global destination (GD): GW1
GDID used by own node for GD: GDID GW1-A = 2
Local destination (LD): GW1
GDID LD set to GD: GDID GW1 = 0
For this reason, information related to “transfer destination 1” in the routing table 32a is generated by the processing of the table management unit 23a.

次に、ゲートウェイGW2がフレームF2に示すHelloフレームを生成したとする。フレームF2に含まれているMACヘッダには、ローカル送信元がゲートウェイGW2であることが記録されており、Helloヘッダ1には、ゲートウェイGW2のアドレスと、GDIDGW2=0が含まれている。ゲートウェイGW2は、フレームF2に示すHelloフレームを送信する。 Next, it is assumed that the gateway GW2 generates a Hello frame shown in the frame F2. The MAC header included in the frame F2 records that the local transmission source is the gateway GW2, and the Hello header 1 includes the address of the gateway GW2 and GDID GW2 = 0. The gateway GW2 transmits a Hello frame shown in the frame F2.

ノードAはフレームF2を受信する。抽出部21aは、受信部11a、ヘッダ解析部12aを介して、フレームF2を取得する。抽出部21aは、フレームF2のMACヘッダを用いて、フレームF2がゲートウェイGW2から送信されたHelloフレームであることを特定する。さらに、抽出部21aは、Helloヘッダ1の情報を抽出し、テーブル管理部23aに出力する。   Node A receives frame F2. The extraction unit 21a acquires the frame F2 via the reception unit 11a and the header analysis unit 12a. The extraction unit 21a specifies that the frame F2 is a Hello frame transmitted from the gateway GW2, using the MAC header of the frame F2. Further, the extraction unit 21a extracts the information of the Hello header 1 and outputs it to the table management unit 23a.

テーブル管理部23aは、GDID管理部22aに含まれている情報や、抽出部21aから入力された情報を用いて、ゲートウェイGW2の識別の際にノードAが使用するGDIDを決定する。テーブル管理部23aの処理などにより、ゲートウェイGW2に対する情報は以下のとおりになったとする。
グローバル宛先(GD):GW2
GDに対して自ノードが使用するGDID:GDIDGW2−A=1
ローカル宛先(LD) :GW2
LDがGDに設定したGDID :GDIDGW2=0
テーブル管理部23aは、ゲートウェイGW2に関する情報もルーティングテーブル32aに記録する。このため、ルーティングテーブル32aの「転送先2」に示す情報が記録される。
The table management unit 23a determines the GDID used by the node A when identifying the gateway GW2, using information included in the GDID management unit 22a and information input from the extraction unit 21a. It is assumed that the information for the gateway GW2 is as follows by the processing of the table management unit 23a.
Global destination (GD): GW2
GDID used by own node for GD: GDID GW2-A = 1
Local destination (LD): GW2
GDID set by LD to GD: GDID GW2 = 0
The table management unit 23a also records information regarding the gateway GW2 in the routing table 32a. For this reason, information indicated by “transfer destination 2” in the routing table 32a is recorded.

その後、ノードAのタイマ25aにより、ノードAがHelloフレームを生成する時刻になったことが検出されたとする。経路情報生成部24aは、ルーティングテーブル32aに含まれているグローバル宛先の情報と、各グローバル宛先にノードAが設定したGDIDを、Helloフレームに含める情報として抽出する。経路情報生成部24aは、ノードAがゲートウェイ装置として動作しているかを判定する。ノードAは、ゲートウェイ装置として動作していないので、経路情報生成部24は、ノードAの情報をHelloフレームで他の装置に通知しないことを決定する。   Thereafter, it is assumed that the timer 25a of the node A detects that it is time for the node A to generate the Hello frame. The route information generation unit 24a extracts the global destination information included in the routing table 32a and the GDID set by the node A for each global destination as information to be included in the Hello frame. The route information generation unit 24a determines whether the node A is operating as a gateway device. Since the node A is not operating as a gateway device, the route information generation unit 24 determines not to notify the other device of the information of the node A with the Hello frame.

経路情報生成部24aは、Helloフレームに含める情報をフレーム生成部15に出力する。フレーム生成部15は、経路情報生成部24から入力された情報を用いて、図5のフレームF3に示すHelloフレームを生成する。送信部16は、フレームF3を送信する。   The route information generation unit 24 a outputs information to be included in the Hello frame to the frame generation unit 15. The frame generation unit 15 uses the information input from the route information generation unit 24 to generate a Hello frame indicated by a frame F3 in FIG. The transmission unit 16 transmits the frame F3.

ノードBは、フレームF3を受信する。抽出部21bは、受信部11b、ヘッダ解析部12bを介して、フレームF3を取得する。抽出部21bは、フレームF3のMACヘッダを用いて、フレームF3がノードAから送信されたHelloフレームであることを特定する。テーブル管理部23bは、Helloヘッダ1とHelloヘッダ2の情報を抽出部21bから取得すると、ゲートウェイGW1、GW2に対してノードBで使用するGDIDを決定する。さらに、テーブル管理部23bは、フレームF3で通知された情報を、ルーティングテーブル32bに記録する。このため、ルーティングテーブル32bには、以下の情報が記録される。
転送先1
グローバル宛先(GD):GW1
GDに対して自ノードが使用するGDID:GDIDGW1−B=1
ローカル宛先(LD) :A
LDがGDに設定したGDID :GDIDGW1−A=2
転送先2
グローバル宛先(GD):GW2
GDに対して自ノードが使用するGDID:GDIDGW2−B=2
ローカル宛先(LD) :A
LDがGDに設定したGDID :GDIDGW2−A=1
ルーティングテーブル32bの例を図5に示す。
Node B receives frame F3. The extraction unit 21b acquires the frame F3 via the reception unit 11b and the header analysis unit 12b. The extraction unit 21b specifies that the frame F3 is a Hello frame transmitted from the node A using the MAC header of the frame F3. When the table management unit 23b acquires the information of the Hello header 1 and the Hello header 2 from the extraction unit 21b, the table management unit 23b determines the GDID used in the node B for the gateways GW1 and GW2. Further, the table management unit 23b records the information notified in the frame F3 in the routing table 32b. For this reason, the following information is recorded in the routing table 32b.
Forwarding destination 1
Global destination (GD): GW1
GDID used by own node for GD: GDID GW1-B = 1
Local destination (LD): A
GDID set by LD to GD: GDID GW1-A = 2
Forwarding destination 2
Global destination (GD): GW2
GDID used by own node for GD: GDID GW2-B = 2
Local destination (LD): A
GDID set by LD to GD: GDID GW2-A = 1
An example of the routing table 32b is shown in FIG.

ゲートウェイGW1とゲートウェイGW2もノードAに隣接しているので、ノードAから送信されたフレームF3を処理し、ノードBと同様に、ルーティングテーブル32を更新する。ただし、ゲートウェイGW1とGW2のいずれも自ノードをグローバル宛先としたHelloヘッダの情報は、ルーティングテーブル32の更新に使用しない。以後も、アドホックネットワーク中の各通信装置10は、予め決められた周期で、Helloフレームの送信を行う。また、隣接する通信装置10からHelloフレームを受信すると、通信装置10は、受信したHelloフレームを用いて、適宜、ルーティングテーブル32を更新する。   Since the gateway GW1 and the gateway GW2 are also adjacent to the node A, the frame F3 transmitted from the node A is processed, and the routing table 32 is updated similarly to the node B. However, neither the gateway GW1 nor GW2 uses the information in the Hello header with the local node as the global destination for updating the routing table 32. Thereafter, each communication device 10 in the ad hoc network transmits a Hello frame at a predetermined cycle. In addition, when receiving a Hello frame from the adjacent communication device 10, the communication device 10 appropriately updates the routing table 32 using the received Hello frame.

図6は、Helloフレームの受信処理の例を説明するフローチャートである。なお、図6は処理の一例であり、処理の順序は実装に応じて変更され得る。例えば、ステップS14〜S16の順序は、任意に変更され得る。   FIG. 6 is a flowchart illustrating an example of a reception process of a Hello frame. Note that FIG. 6 is an example of processing, and the order of processing can be changed according to implementation. For example, the order of steps S14 to S16 can be arbitrarily changed.

通信装置10は、Helloフレームを受信すると、抽出部21において、Helloフレーム中の各Helloヘッダのグローバル宛先(GD)の情報を抽出する(ステップS11、S12)。テーブル管理部23は、抽出されたグローバル宛先に対する登録がルーティングテーブル32中に既に存在するかを判定する(ステップS13)。   When the communication device 10 receives the Hello frame, the extraction unit 21 extracts information on the global destination (GD) of each Hello header in the Hello frame (Steps S11 and S12). The table management unit 23 determines whether registration for the extracted global destination already exists in the routing table 32 (step S13).

抽出されたグローバル宛先に対する登録がルーティングテーブル32中にない場合、テーブル管理部23は、Helloフレームの送信元(LS)を、グローバル宛先に宛てたフレームの転送先(LD)として記録する(ステップS13でNo、ステップS14)。さらに、テーブル管理部23は、Helloフレームの送信元がグローバル宛先に対して割り当てたGDIDを、Helloフレームの送信元に対応付けて記録する(ステップS15)。さらに、テーブル管理部23は、GDID管理部22が保持している情報を用いて、グローバル宛先を識別するために自ノードが使用するGDIDを、グローバル宛先に割り当てる(ステップS16)。テーブル管理部23は、グローバル宛先に対して割り当てたGDIDを、グローバル宛先に対応付けてルーティングテーブル32に登録する(ステップS17)。   If there is no registration for the extracted global destination in the routing table 32, the table management unit 23 records the transmission source (LS) of the Hello frame as the transfer destination (LD) of the frame addressed to the global destination (step S13). No, step S14). Further, the table management unit 23 records the GDID assigned to the global destination by the transmission source of the Hello frame in association with the transmission source of the Hello frame (Step S15). Furthermore, the table management unit 23 uses the information held by the GDID management unit 22 to assign a GDID used by the own node to identify the global destination to the global destination (step S16). The table management unit 23 registers the GDID assigned to the global destination in the routing table 32 in association with the global destination (step S17).

一方、抽出されたグローバル宛先が既にルーティングテーブル32中に登録されているとする(ステップS13でYes)。この場合、テーブル管理部23は、グローバル宛先に対してHelloフレームの送信元(LS)が、ローカル宛先(LD)として登録されているかを判定する(ステップS18)。グローバル宛先に対してHelloフレームの送信元が登録されていない場合、テーブル管理部23は、Helloフレームの送信元を、グローバル宛先に宛てたフレームの転送先(LD)として記録する(ステップS18でNo、ステップS19)。その後、テーブル管理部23は、Helloフレームの送信元が、グローバル宛先に対して割り当てたGDIDを、Helloフレームの送信元に対応付けてルーティングテーブル32に記録する(ステップS20)。   On the other hand, it is assumed that the extracted global destination is already registered in the routing table 32 (Yes in step S13). In this case, the table management unit 23 determines whether the transmission source (LS) of the Hello frame is registered as the local destination (LD) with respect to the global destination (step S18). When the transmission source of the Hello frame is not registered for the global destination, the table management unit 23 records the transmission source of the Hello frame as the transfer destination (LD) of the frame addressed to the global destination (No in step S18). Step S19). Thereafter, the table management unit 23 records the GDID assigned to the global destination by the transmission source of the Hello frame in the routing table 32 in association with the transmission source of the Hello frame (Step S20).

ステップS18において、グローバル宛先に対してHelloフレームの送信元(LS)が、ローカル宛先(LD)として登録されていると判定した場合、テーブル管理部23は、ステップS20の処理を行う(ステップS18でYes、ステップS20)。   If it is determined in step S18 that the transmission source (LS) of the Hello frame is registered as a local destination (LD) for the global destination, the table management unit 23 performs the process of step S20 (in step S18). Yes, step S20).

図7は、Helloフレームの送信処理の例を説明するフローチャートである。図7に示すフローチャートでは、変数nと定数Nが使用される。定数Nは、Helloフレームを生成する時点で、ルーティングテーブル32に記録されているグローバル宛先の総数である。変数nは、Helloフレームで通知する対象としてルーティングテーブル32から情報を抽出したグローバル宛先の数のカウントに用いられる変数である。   FIG. 7 is a flowchart illustrating an example of a transmission process of a Hello frame. In the flowchart shown in FIG. 7, a variable n and a constant N are used. The constant N is the total number of global destinations recorded in the routing table 32 when the Hello frame is generated. The variable n is a variable used for counting the number of global destinations extracted from the routing table 32 as a target to be notified in the Hello frame.

経路情報生成部24は、タイマ25を用いて、Helloフレームの送信時期であるかを判定し、Helloフレームの送信時期になるまで待機する(ステップS31でNo)。Helloフレームの送信時期になると、経路情報生成部24は、変数nの値を1に設定する(ステップS31でYes、ステップS32)。経路情報生成部24は、変数nが定数Nを超えたかを判定する(ステップS33)。変数nが定数N以下である場合、n番目のエントリに含まれているグローバル宛先と、自ノードがグローバル宛先に割り当てたGDIDを、Helloフレームで通知する情報に追加する(ステップS33でNo、ステップS34)。経路情報生成部24は、変数nを1つインクリメントして、ステップS33の処理に戻る(ステップS35)。   The path information generation unit 24 uses the timer 25 to determine whether it is the transmission time of the Hello frame, and waits until the transmission time of the Hello frame is reached (No in step S31). When it is time to transmit the Hello frame, the path information generation unit 24 sets the value of the variable n to 1 (Yes in Step S31, Step S32). The route information generation unit 24 determines whether the variable n exceeds a constant N (step S33). When the variable n is less than or equal to the constant N, the global destination included in the nth entry and the GDID assigned to the global destination by the own node are added to the information notified in the Hello frame (No in step S33, step S34). The route information generation unit 24 increments the variable n by one and returns to the process of step S33 (step S35).

変数nが定数Nを越えた場合、経路情報生成部24は、自ノードがゲートウェイ装置として動作しているかを判定する(ステップS33でYes、ステップS36)。自ノードがゲートウェイ装置として動作している場合、経路情報生成部24は、自ノードの情報に対応付けて、自ノードを識別するGDIDをHelloフレームで通知する情報に追加する(ステップS36でYes、ステップS37)。その後、フレーム生成部15は、経路情報生成部24がHelloフレームで通知する情報として選択した情報を含むHelloフレームを生成する(ステップS38)。送信部16は、Helloフレームを送信する(ステップS39)。一方、ステップS36において、自ノードがゲートウェイ装置として動作していないと判定した場合、通信装置10は、ステップS38以降の処理を行う(ステップS36でNo)。   When the variable n exceeds the constant N, the path information generation unit 24 determines whether the own node is operating as a gateway device (Yes in step S33, step S36). When the own node is operating as a gateway device, the route information generating unit 24 adds the GDID for identifying the own node to the information notified by the Hello frame in association with the information of the own node (Yes in step S36). Step S37). Thereafter, the frame generation unit 15 generates a Hello frame including information selected as information notified by the route information generation unit 24 using the Hello frame (step S38). The transmission unit 16 transmits a Hello frame (Step S39). On the other hand, when it is determined in step S36 that the own node is not operating as a gateway device, the communication device 10 performs the processing after step S38 (No in step S36).

〔データフレームの転送処理〕
図8は、ゲートウェイ装置宛てのフレームの転送処理の例を説明する図である。図8を参照しながら、ノードBがゲートウェイGW1宛てにデータを送信する場合に行われる通信処理の例を説明する。
[Data frame transfer processing]
FIG. 8 is a diagram for explaining an example of processing for transferring a frame addressed to the gateway device. An example of communication processing performed when the node B transmits data to the gateway GW1 will be described with reference to FIG.

なお、以下の説明では、ゲートウェイとして動作していない通信装置10は、これまで経路情報を有していなかったゲートウェイ装置への経路情報を取得すると、新たに経路情報を取得したゲートウェイ装置に向けてデータフレームを送信するものとする。さらに、ノードAが保持するルーティングテーブル32aとノードBが保持するルーティングテーブル32bの情報は、図8に示す通りである。また、いずれかのゲートウェイ装置に向けて送信されたフレームでは、方向フラグ=1(上り方向)に設定されるものとする。   In the following description, when the communication device 10 that is not operating as a gateway acquires route information to a gateway device that has not had route information so far, the communication device 10 is directed toward the gateway device that newly acquired the route information. A data frame shall be transmitted. Further, the information of the routing table 32a held by the node A and the routing table 32b held by the node B are as shown in FIG. In a frame transmitted to any gateway device, the direction flag is set to 1 (upward direction).

ノードBのアプリケーション処理部14bは、ゲートウェイGW1に送信するデータを生成したとする。アプリケーション処理部14bは、生成したデータと、宛先がゲートウェイGW1であることを示す情報を、フレーム生成部15bに出力する。フレーム生成部15bは、ルーティングテーブル32bを参照することにより、ゲートウェイGW1にフレームを送信する際には、ノードAがローカル宛先(LD)となることを特定する。さらに、フレーム生成部15bは、ノードAがゲートウェイGW1を識別する情報がGDIDGW1−A=2であることも、ルーティングテーブル32bより特定する。換言すると、フレーム生成部15bは、ゲートウェイGW1宛てのフレームの転送先であるノードAには、グローバル宛先のアドレスの代わりに、GDIDGW1−Aの値を通知すれば、グローバル宛先を通知できることを特定する。そこで、フレーム生成部15bは、以下の情報を有するヘッダに、アプリケーション処理部14bから入力されたデータをフレームのペイロードに含める。
ローカル宛先アドレス :ノードAのアドレス
ローカル送信元アドレス :ノードBのアドレス
グローバル宛先アドレス :2
グローバル送信元アドレス:ノードBのアドレス
方向フラグ :1(上り方向)
It is assumed that the application processing unit 14b of the node B has generated data to be transmitted to the gateway GW1. The application processing unit 14b outputs the generated data and information indicating that the destination is the gateway GW1 to the frame generation unit 15b. The frame generation unit 15b refers to the routing table 32b to specify that the node A is a local destination (LD) when transmitting a frame to the gateway GW1. Further, the frame generation unit 15b also specifies from the routing table 32b that the information for identifying the gateway GW1 by the node A is GDID GW1-A = 2. In other words, the frame generation unit 15b specifies that the node A, which is the transfer destination of the frame addressed to the gateway GW1, can notify the global destination by notifying the value of the GDID GW1-A instead of the address of the global destination. To do. Accordingly, the frame generation unit 15b includes the data input from the application processing unit 14b in the header having the following information in the payload of the frame.
Local destination address: Node A address Local source address: Node B address Global destination address: 2
Global source address: Node B address Direction flag: 1 (upward direction)

フレーム生成部15bが生成したデータフレームを、フレームF11に示す。ここで、各通信装置10のアドレスの記述には、8バイトが使用されるが、GDIDは1バイトで表記される。このため、アドホックヘッダの長さは、グローバル宛先とグローバル送信元の両方を、アドレスで表記する場合よりも7バイト短くなる。そこで、フレーム生成部15は、アドホックヘッダが短縮された分までの範囲で、ペイロード長を長くすることができる。フレーム生成部15bは、生成したフレームF11を送信部16bに出力する。送信部16bは、フレームF11をノードAに送信する。   A data frame generated by the frame generation unit 15b is shown in a frame F11. Here, 8 bytes are used to describe the address of each communication device 10, but GDID is represented by 1 byte. For this reason, the length of the ad hoc header is 7 bytes shorter than when both the global destination and the global transmission source are represented by addresses. Therefore, the frame generation unit 15 can increase the payload length in a range up to the amount of shortening of the ad hoc header. The frame generation unit 15b outputs the generated frame F11 to the transmission unit 16b. The transmission unit 16b transmits the frame F11 to the node A.

ノードAがフレームF11を受信したとする。ヘッダ解析部12aは、フレームF11が方向フラグ=1に設定されたデータフレームであるため、フレームF11のグローバル宛先アドレスフィールドで通知されたGDIDの値で識別されるグローバル宛先を特定する。フレームF11のグローバル宛先アドレスフィールドには2が記録されている。一方、ルーティングテーブル32aに示すように、ノードAが設定したGDID=2はゲートウェイGW1を指す。そこで、ヘッダ解析部12aは、フレームF11のグローバル宛先のアドレスをゲートウェイGW1のアドレスに置き換えた上で、フレームF11のペイロードとフレームF11のヘッダの情報を、転送処理部13aに出力する。   Assume that node A receives frame F11. Since the frame F11 is a data frame in which the direction flag = 1 is set, the header analysis unit 12a specifies the global destination identified by the GDID value notified in the global destination address field of the frame F11. 2 is recorded in the global destination address field of the frame F11. On the other hand, as shown in the routing table 32a, GDID = 2 set by the node A indicates the gateway GW1. Therefore, the header analysis unit 12a replaces the global destination address of the frame F11 with the address of the gateway GW1, and then outputs the payload information of the frame F11 and the header information of the frame F11 to the transfer processing unit 13a.

さらに、ヘッダ解析部12aは、フレームF11をノードBから受信したことと、フレームF11のグローバル送信元がノードBであることから、グローバル宛先がノードBの場合、ローカル宛先をノードBに設定できることを認識する。ヘッダ解析部12aは、フレームF11のグローバル送信元とローカル送信元から得られた情報を、転送先テーブル33a(図9)に記録する。   Furthermore, since the header analysis unit 12a has received the frame F11 from the node B and the global transmission source of the frame F11 is the node B, the local destination can be set to the node B when the global destination is the node B. recognize. The header analysis unit 12a records information obtained from the global transmission source and the local transmission source of the frame F11 in the transfer destination table 33a (FIG. 9).

転送処理部13aは、ルーティングテーブル32aを参照することにより、ゲートウェイGW1にデータを転送する際には、ゲートウェイGW1がローカル宛先(LD)となることを特定する。転送処理部13bは、データのグローバル宛先がゲートウェイGW1、ローカル宛先がゲートウェイGW1であることとともに、フレームF11に含まれていたデータを、フレーム生成部15aに出力する。フレーム生成部15aは、ゲートウェイGW1がゲートウェイGW1自身を識別する情報がGDIDGW1=0であることから、以下の情報を有するヘッダを含むフレームを生成する。
ローカル宛先アドレス :ノードGW1のアドレス
ローカル送信元アドレス :ノードAのアドレス
グローバル宛先アドレス :0
グローバル送信元アドレス:ノードBのアドレス
方向フラグ :1(上り方向)
フレーム生成部15aが生成したデータフレームを、フレームF12に示す。なお、フレームF12には、フレームF11に含まれていたデータが含まれている。送信部16aは、フレームF12をゲートウェイGW1に送信する。
The transfer processing unit 13a refers to the routing table 32a to specify that the gateway GW1 is a local destination (LD) when transferring data to the gateway GW1. The transfer processing unit 13b outputs the data included in the frame F11 to the frame generation unit 15a, with the global destination of the data being the gateway GW1 and the local destination being the gateway GW1. Since the information for identifying the gateway GW1 itself by the gateway GW1 is GDID GW1 = 0, the frame generation unit 15a generates a frame including a header having the following information.
Local destination address: Node GW1 address Local source address: Node A address Global destination address: 0
Global source address: Node B address Direction flag: 1 (upward direction)
A data frame generated by the frame generation unit 15a is shown in a frame F12. Note that the frame F12 includes data included in the frame F11. The transmission unit 16a transmits the frame F12 to the gateway GW1.

ゲートウェイGW1はフレームF12を受信する。ヘッダ解析部12gw1は、フレームF12のグローバル宛先アドレスフィールドを用いて通知されたGDIDの値が0であることから、フレームF12がゲートウェイGW1宛てであると判定する。ヘッダ解析部12gw1は、フレームF12をアプリケーション処理部14gw1に出力する。ヘッダ解析部12gw1は、フレームF12のヘッダ情報を用いて、転送先テーブル33gw1を更新する。   The gateway GW1 receives the frame F12. The header analysis unit 12gw1 determines that the frame F12 is addressed to the gateway GW1 because the value of the GDID notified using the global destination address field of the frame F12 is 0. The header analysis unit 12gw1 outputs the frame F12 to the application processing unit 14gw1. The header analysis unit 12gw1 updates the transfer destination table 33gw1 using the header information of the frame F12.

図9は、ゲートウェイ装置から送信されたフレームの転送処理の例を説明する図である。図9を参照しながら、ゲートウェイGW1がノードB宛てにデータを送信する場合に行われる通信処理の例を説明する。   FIG. 9 is a diagram for explaining an example of transfer processing of a frame transmitted from the gateway device. An example of communication processing performed when the gateway GW1 transmits data to the node B will be described with reference to FIG.

ゲートウェイGW1のアプリケーション処理部14gw1は、ノードB宛のデータを、データのグローバル宛先がノードBであることを示す情報と共に、フレーム生成部15gw1に出力する。フレーム生成部15gw1は、転送先テーブル33gw1を用いて、グローバル宛先がノードBの場合、ローカル宛先をノードAに設定することを特定する。ここで、ゲートウェイGW1は、Helloフレームを送信済みであるので、ゲートウェイGW1がゲートウェイGW1自身を識別するときに使用するGDIDを、隣接する通信装置10に通知済みである。このため、フレーム生成部15gw1は、グローバル送信元の値を、GDIDGW1=0に置換することにより、アドホックヘッダのサイズを小さくすると共に、ペイロード長を長くする。フレーム生成部15gw1での処理により生成されたフレームF21の例を図9に示す。なお、フレームF21はゲートウェイ装置から送信されるフレームであるため、フレームF21の方向フラグは0である。送信部16gw1は、フレームF21をノードAに送信する。 The application processing unit 14gw1 of the gateway GW1 outputs data addressed to the node B to the frame generation unit 15gw1 together with information indicating that the global destination of the data is the node B. The frame generation unit 15gw1 uses the transfer destination table 33gw1 to specify that the local destination is set to the node A when the global destination is the node B. Here, since the gateway GW1 has already transmitted the Hello frame, the GWID used when the gateway GW1 identifies the gateway GW1 itself has been notified to the adjacent communication device 10. For this reason, the frame generation unit 15gw1 reduces the size of the ad hoc header and increases the payload length by replacing the value of the global transmission source with GDID GW1 = 0. An example of the frame F21 generated by the processing in the frame generation unit 15gw1 is shown in FIG. Since the frame F21 is a frame transmitted from the gateway device, the direction flag of the frame F21 is 0. The transmission unit 16gw1 transmits the frame F21 to the node A.

ノードAがフレームF21を受信したとする。ヘッダ解析部12aは、フレームF21が方向フラグ=0に設定されたデータフレームであるため、フレームF21のグローバル送信元アドレスフィールドで通知されたGDIDの値を用いて、フレームF21のグローバル送信元を特定する。すなわち、ヘッダ解析部12aは、フレームF21のローカル送信元(GW1)において、GDID=0で特定される通信装置10を特定する。このとき、ヘッダ解析部12aは、ルーティングテーブル32a中で、フレームF21のローカル送信元がローカル宛先として登録されているエントリのうち、GDIDの値とフレームF21中のグローバル送信元として通知された値が一致するものを検索する。図9に示すルーティングテーブル32aでは、LD=GW1のエントリのうちで、GDIDの値が0のエントリのグローバル宛先はゲートウェイGW1である。そこで、ヘッダ解析部12aは、フレームF21のグローバル送信元がゲートウェイGW1であることを示す情報と共に、フレームF21のデータとフレームF21のグローバル宛先の情報を、転送処理部13aに出力する。   Assume that node A receives frame F21. Since the frame F21 is a data frame in which the direction flag = 0 is set, the header analysis unit 12a identifies the global transmission source of the frame F21 using the GDID value notified in the global transmission source address field of the frame F21. To do. That is, the header analysis unit 12a specifies the communication device 10 specified by GDID = 0 in the local transmission source (GW1) of the frame F21. At this time, the header analysis unit 12a has the GDID value and the value notified as the global transmission source in the frame F21 among the entries in which the local transmission source of the frame F21 is registered as the local destination in the routing table 32a. Search for a match. In the routing table 32a shown in FIG. 9, the global destination of the entry whose GDID value is 0 among the entries of LD = GW1 is the gateway GW1. Therefore, the header analysis unit 12a outputs the data of the frame F21 and the information of the global destination of the frame F21 to the transfer processing unit 13a together with information indicating that the global transmission source of the frame F21 is the gateway GW1.

転送処理部13aは、転送先テーブル33aを用いて、グローバル宛先がノードBの場合、ローカル宛先をノードBとすることを特定する。転送処理部13aは、ヘッダ解析部12aから入力されたデータやグローバル宛先などの情報とローカル宛先をフレーム生成部15aに通知する。フレーム生成部15aは、ノードAがゲートウェイGW1の情報を含むHelloフレームを送信済みであることから、ノードAがGDIDGW1−A=2でゲートウェイGW1を識別することを、隣接する通信装置10に通知済みであると判定する。そこで、フレーム生成部15aは、グローバル送信元の値を、GDIDGW1−A=2に置換することにより、アドホックヘッダのサイズを小さくして、フレームF22(図9)を生成する。なお、フレームF22もグローバル送信元がゲートウェイ装置であるため、フレームF22の方向フラグは0である。送信部16aは、フレームF22をノードBに送信する。 The transfer processing unit 13a uses the transfer destination table 33a to specify that the local destination is the node B when the global destination is the node B. The transfer processing unit 13a notifies the frame generation unit 15a of information such as data and global destinations input from the header analysis unit 12a and a local destination. The frame generation unit 15a notifies the adjacent communication apparatus 10 that the node A identifies the gateway GW1 with GDID GW1-A = 2 because the node A has already transmitted the Hello frame including the information of the gateway GW1. It is determined that it has been completed. Therefore, the frame generation unit 15a generates a frame F22 (FIG. 9) by reducing the size of the ad hoc header by replacing the global transmission source value with GDID GW1-A = 2. Note that the direction flag of the frame F22 is 0 because the global transmission source of the frame F22 is also a gateway device. The transmission unit 16a transmits the frame F22 to the node B.

ノードBはフレームF22を受信する。ヘッダ解析部12bは、フレームF22の方向フラグ=0であるため、フレームF22のグローバル送信元アドレスフィールドで通知されたGDIDの値を用いて、フレームF22のグローバル送信元を特定する。すなわち、ヘッダ解析部12bは、ルーティングテーブル32bを用いて、フレームF22のローカル送信元(ノードA)において、GDID=2で特定される通信装置10がゲートウェイGW1であることを特定する。さらに、ヘッダ解析部12bは、フレームF22のグローバル宛先アドレスにノードBが指定されていることから、フレームF22はノードB宛であると判定する。ヘッダ解析部12bは、フレームF22のデータとフレームF22のグローバル送信元の情報を、アプリケーション処理部14bに出力する。アプリケーション処理部14bは、入力された情報を適宜処理する。   Node B receives frame F22. Since the direction flag of the frame F22 is 0, the header analysis unit 12b specifies the global transmission source of the frame F22 using the GDID value notified in the global transmission source address field of the frame F22. That is, the header analysis unit 12b uses the routing table 32b to specify that the communication device 10 specified by GDID = 2 is the gateway GW1 at the local transmission source (node A) of the frame F22. Further, the header analysis unit 12b determines that the frame F22 is addressed to the node B because the node B is designated as the global destination address of the frame F22. The header analysis unit 12b outputs the data of the frame F22 and the global transmission source information of the frame F22 to the application processing unit 14b. The application processing unit 14b appropriately processes the input information.

図10は、データフレームの受信処理の例を説明するシーケンス図である。図10および図11では、グローバル宛先に対して自ノードが決定したGDIDを「内部GDID」、グローバル宛先に対応付けられたローカル宛先が決定したGDIDを「LDが設定したGDID」と記載している。なお、図10は受信処理の一例であり、実装に応じて手順が変更されることがある。例えば、ステップS54〜S57の処理がステップS58〜S60の処理よりも前に行われても良い。   FIG. 10 is a sequence diagram illustrating an example of data frame reception processing. 10 and 11, the GDID determined by the node for the global destination is described as “internal GDID”, and the GDID determined by the local destination associated with the global destination is described as “GDID set by LD”. . Note that FIG. 10 is an example of reception processing, and the procedure may be changed depending on the implementation. For example, the processes in steps S54 to S57 may be performed before the processes in steps S58 to S60.

ヘッダ解析部12は、受信フレームを取得すると、データフレームかを判定する(ステップS51、S52)。受信フレームがデータフレームではない場合、ヘッダ解析部12は、フレームを制御部20に出力する(ステップS52でNo、ステップS53)。   When the header analysis unit 12 acquires the received frame, the header analysis unit 12 determines whether the frame is a data frame (steps S51 and S52). If the received frame is not a data frame, the header analysis unit 12 outputs the frame to the control unit 20 (No in step S52, step S53).

受信フレームがデータフレームである場合、ヘッダ解析部12は、ゲートウェイに向けて送信されている(上り方向)フレームであるかを判定する(ステップS54)。まず、受信フレームが上り方向に転送されるデータフレームである場合について説明する(ステップS54でYes)。この場合、ヘッダ解析部12は、ルーティングテーブル32から、内部GDIDと受信フレームによりグローバル宛先アドレスとして通知されたGDIDが等しいエントリを取得する(ステップS55)。ヘッダ解析部12は、取得したエントリを用いて、フレーム中のGDIDを、グローバル宛先のアドレスに変換する(ステップS56)。さらに、ヘッダ解析部12は、受信フレームのグローバル送信元とローカル送信元の組合せを、グローバル宛先とローカル宛先の組合せとして、転送先テーブル33に登録する(ステップS57)。なお、ステップS57において、グローバル送信元はグローバル宛先に読み替えられ、ローカル送信元は、そのフレームのグローバル送信元がグローバル宛先になった場合のローカル宛先として読み替えられる。一方、受信フレームが下り方向に転送されるデータフレームである場合は、ステップS55からS57の処理は行われない(ステップS54でNo)。   When the received frame is a data frame, the header analysis unit 12 determines whether the frame is transmitted (upward) to the gateway (step S54). First, a case where the received frame is a data frame transferred in the upstream direction will be described (Yes in step S54). In this case, the header analysis unit 12 acquires from the routing table 32 an entry in which the internal GDID and the GDID notified as the global destination address by the received frame are equal (step S55). The header analysis unit 12 converts the GDID in the frame into a global destination address using the acquired entry (step S56). Further, the header analysis unit 12 registers the combination of the global transmission source and the local transmission source of the received frame in the transfer destination table 33 as a combination of the global destination and the local destination (step S57). In step S57, the global transmission source is replaced with a global destination, and the local transmission source is replaced with a local destination when the global transmission source of the frame becomes the global destination. On the other hand, when the received frame is a data frame transferred in the downlink direction, the processing from step S55 to S57 is not performed (No in step S54).

次に、ヘッダ解析部12は、受信フレームがゲートウェイから送信されている(下り方向)フレームであるかを判定する(ステップS58)。受信フレームが下り方向に転送されるデータフレームである場合、ヘッダ解析部12は、受信フレームのグローバル送信元として通知されたGDIDとローカル送信元の情報の組合せを取得する(ステップS58でYes)。さらに、ヘッダ解析部12は、ルーティングテーブル32のローカル宛先とローカル宛先が設定したGDIDの組合せが、受信フレームから取得した情報の組合せと一致するエントリを、ルーティングテーブル32から取得する(ステップS59)。すなわち、ステップS59の処理により、ヘッダ解析部12は、得られたエントリ中のグローバル宛先が、受信フレームのグローバル送信元に一致することを特定する。ヘッダ解析部12は、受信フレームのグローバル送信元の情報を、ルーティングテーブル32から取得したエントリ中のグローバル宛先のアドレスに変換する(ステップS60)。なお受信フレームが上り方向に転送されるデータフレームである場合は、ステップS59、S60の処理は行われない(ステップS58でNo)。   Next, the header analysis unit 12 determines whether the received frame is a frame transmitted from the gateway (downward) (step S58). If the received frame is a data frame transferred in the downlink direction, the header analysis unit 12 acquires the combination of the GDID notified as the global transmission source of the received frame and the information of the local transmission source (Yes in step S58). Further, the header analysis unit 12 acquires, from the routing table 32, an entry in which the combination of the local destination in the routing table 32 and the GDID set by the local destination matches the combination of information acquired from the received frame (step S59). That is, through the process of step S59, the header analysis unit 12 specifies that the global destination in the obtained entry matches the global transmission source of the received frame. The header analysis unit 12 converts the global transmission source information of the received frame into the address of the global destination in the entry acquired from the routing table 32 (step S60). If the received frame is a data frame transferred in the upstream direction, the processes in steps S59 and S60 are not performed (No in step S58).

さらにヘッダ解析部12は、受信フレームが自ノード宛のフレームであるかを判定する(ステップS61)。受信フレームが自ノード宛のフレームである場合、ヘッダ解析部12は、フレーム中のデータを、ヘッダの情報などと共に、アプリケーション処理部14に出力する(ステップS61でYes、ステップS62)。一方、受信フレームが自ノード宛のフレームではない場合、ヘッダ解析部12は、フレーム中のデータを、ヘッダの情報などと共に、転送処理部13に出力する(ステップS61でNo、ステップS63)。   Furthermore, the header analysis unit 12 determines whether the received frame is a frame addressed to the own node (step S61). When the received frame is a frame addressed to the own node, the header analysis unit 12 outputs the data in the frame together with the header information and the like to the application processing unit 14 (Yes in step S61, step S62). On the other hand, when the received frame is not a frame addressed to the own node, the header analysis unit 12 outputs the data in the frame together with the header information and the like to the transfer processing unit 13 (No in step S61, step S63).

図11は、データフレームの送信処理の例を説明するシーケンス図である。なお、図11は送信処理の一例であり、実装に応じて手順が変更されることがある。例えば、ステップS72〜S75の処理がステップS76以降の処理よりも後に行われても良い。   FIG. 11 is a sequence diagram illustrating an example of a data frame transmission process. Note that FIG. 11 is an example of transmission processing, and the procedure may be changed depending on the implementation. For example, the processes of steps S72 to S75 may be performed after the processes of step S76 and subsequent steps.

フレーム生成部15は、アプリケーション処理部14か転送処理部13からフレームの送信が要求されると、送信するフレームは上り方向に送信されるフレームであるかを判定する(ステップS71、S72)。上り方向に転送されるフレームを送信する場合、フレーム生成部15は、ルーティングテーブル32から、グローバル宛先とローカル宛先の組合せが、送信フレームと等しいエントリを取得する(ステップS72でYes、ステップS73)。フレーム生成部15は、グローバル宛先アドレスを、取得したエントリ中のローカル宛先が設定したGDIDに変換する(ステップS74)。さらに、取得したエントリのローカル宛先の値をフレームに設定する(ステップS75)。送信フレームが転送される方向が上り方向ではない場合、ステップS73〜S75の処理は行われない(ステップS72でNo)。   When a frame transmission is requested from the application processing unit 14 or the transfer processing unit 13, the frame generation unit 15 determines whether the frame to be transmitted is a frame transmitted in the uplink direction (steps S71 and S72). When transmitting a frame forwarded in the uplink direction, the frame generation unit 15 acquires an entry in which the combination of the global destination and the local destination is equal to the transmission frame from the routing table 32 (Yes in Step S72, Step S73). The frame generation unit 15 converts the global destination address into the GDID set by the local destination in the acquired entry (step S74). Further, the value of the local destination of the acquired entry is set in the frame (step S75). If the direction in which the transmission frame is transferred is not the uplink direction, the processes in steps S73 to S75 are not performed (No in step S72).

次に、下り方向にフレームを送信する場合、フレーム生成部15は、ルーティングテーブル32のグローバル宛先が送信フレームのグローバル送信元と等しいエントリを、ルーティングテーブル32から取得する(ステップS76でYes、ステップS77)。フレーム生成部15は、送信フレームのグローバル送信元アドレスを、取得したエントリ中のグローバル宛先に対する内部GDIDに変換する(ステップS78)。フレーム生成部15は、転送先テーブル33を参照して、送信フレームのローカル転送先を決定し、送信フレームに設定する(ステップS79)。なお、送信するフレームが転送される方向が上り方向である場合、ステップS77以降の処理は行われない(ステップS76でNo)。   Next, when transmitting a frame in the downlink direction, the frame generation unit 15 acquires an entry from the routing table 32 whose global destination in the routing table 32 is equal to the global transmission source of the transmission frame (Yes in step S76, step S77). ). The frame generation unit 15 converts the global transmission source address of the transmission frame into an internal GDID for the global destination in the acquired entry (step S78). The frame generation unit 15 refers to the transfer destination table 33, determines the local transfer destination of the transmission frame, and sets it as the transmission frame (step S79). Note that if the direction in which the frame to be transmitted is transferred is the uplink direction, the processing after step S77 is not performed (No in step S76).

〔ネットワークへの適用例〕
図12は、第1の実施形態にかかる通信方法が適用され得るネットワークの例を示す図である。図12以降では、図5〜図9での説明に使用したネットワークよりも複雑で通信装置10の数が多いネットワークでの実施例を説明する。図12を参照しながら、あるグローバル宛先に対するローカル宛先が複数存在する場合の処理の例についても説明する。
[Example of network application]
FIG. 12 is a diagram illustrating an example of a network to which the communication method according to the first embodiment can be applied. In FIG. 12 and subsequent figures, a description will be given of an embodiment in a network that is more complex and has a larger number of communication devices 10 than the network used in the description in FIGS. An example of processing when there are a plurality of local destinations for a certain global destination will be described with reference to FIG.

図12に示すネットワークには、ゲートウェイGW1、GW2とノードA〜Dが含まれている。図12に示すネットワークでは、ノードAは、ゲートウェイGW1、ゲートウェイGW2、ノードCに隣接しているものとする。ノードBは、ゲートウェイGW2とノードCに隣接している。ノードDはノードCに隣接しているものとする。   The network shown in FIG. 12 includes gateways GW1 and GW2 and nodes A to D. In the network shown in FIG. 12, it is assumed that the node A is adjacent to the gateway GW1, the gateway GW2, and the node C. Node B is adjacent to gateway GW2 and node C. Assume that node D is adjacent to node C.

(1)Helloフレームを用いたアドホックネットワークの形成
図13は、Helloフレームの送受信の際に行われる処理の例を説明する図である。なお、ノードA〜Dのいずれも、図13の時点では、過去にHelloフレームを受信していない場合を例とする。ゲートウェイGW1からHelloフレームH1が送信され、ゲートウェイGW2からHelloフレームH2が送信されたとする。ノードAは、HelloフレームH1とHelloフレームH2の両方を受信すると、図5を参照しながら説明した手順と同様の処理により、ルーティングテーブル32aを更新する。このため、ノードAには、図13のルーティングテーブル32aに示す情報が記録される。
(1) Formation of Ad Hoc Network Using Hello Frame FIG. 13 is a diagram illustrating an example of processing performed when transmitting and receiving a Hello frame. Note that as an example, none of the nodes A to D has received a Hello frame in the past at the time of FIG. It is assumed that the Hello frame H1 is transmitted from the gateway GW1 and the Hello frame H2 is transmitted from the gateway GW2. When the node A receives both the Hello frame H1 and the Hello frame H2, the node A updates the routing table 32a by the same processing as the procedure described with reference to FIG. For this reason, the information shown in the routing table 32a of FIG.

一方、ノードBもHelloフレームH2を受信する。ノードBは、HelloフレームH2で通知されたグローバル宛先であるGW2に対するローカル宛先として、HelloフレームH2のローカル送信元であるGW2を記録する。さらに、GW2がグローバル宛先である場合のローカル宛先としてのGW2に対応付けて、HelloフレームH2で通知されたローカルGDIDGW2=0という情報を、ルーティングテーブル32bに記録する。このため、ノードBのルーティングテーブル32bは、図13に示すとおりになる。 On the other hand, the Node B also receives the Hello frame H2. The node B records GW2, which is the local transmission source of the Hello frame H2, as a local destination for the GW2, which is the global destination notified in the Hello frame H2. Further, the information of local GDID GW2 = 0 notified in the Hello frame H2 is recorded in the routing table 32b in association with GW2 as a local destination when GW2 is a global destination. For this reason, the routing table 32b of the node B is as shown in FIG.

図14は、Helloフレームの送受信の際に行われる処理の例を説明する図である。図14を参照しながら、ノードAがHelloフレームH3を送信したときに行われる処理の例を説明する。HelloフレームH3の送信の際にノードAが行う処理は、図5のフレームF3の生成の際の処理として説明した処理や図7を参照しながら説明した処理と同様である。   FIG. 14 is a diagram illustrating an example of processing performed when transmitting and receiving a Hello frame. An example of processing performed when the node A transmits the Hello frame H3 will be described with reference to FIG. The process performed by the node A when transmitting the Hello frame H3 is the same as the process described as the process when generating the frame F3 in FIG. 5 and the process described with reference to FIG.

ノードCは、HelloフレームH3を受信すると、HelloフレームH3で通知されたグローバル宛先の各々について、HelloフレームH3のローカル送信元であるノードAをローカル宛先として登録する。また、ノードAから通知されたGDIDを、グローバル宛先ごとに、LD=ノードAの場合に対応付けてルーティングテーブル32cに記録する。さらに、ノードCは、通知された各グローバル宛先に対してGDIDを設定する。このため、HelloフレームH3をノードCが受信したときのルーティングテーブル32cには、以下の情報が記録される。
転送先1
グローバル宛先(GD):GW1
GDに対してノードCが使用するGDID:GDIDGW1−C=1
ローカル宛先(LD) :A
LDがGDに設定したGDID :GDIDGW1−A=1
転送先2
グローバル宛先(GD):GW2
GDに対してノードCが使用するGDID:GDIDGW2−C=2
ローカル宛先(LD) :A
LDがGDに設定したGDID :GDIDGW2−A=2
When the node C receives the Hello frame H3, the node A, which is a local transmission source of the Hello frame H3, is registered as a local destination for each of the global destinations notified by the Hello frame H3. Further, the GDID notified from the node A is recorded in the routing table 32c in association with the case where LD = node A for each global destination. Further, the node C sets a GDID for each notified global destination. For this reason, the following information is recorded in the routing table 32c when the node C receives the Hello frame H3.
Forwarding destination 1
Global destination (GD): GW1
GDID used by node C for GD: GDID GW1-C = 1
Local destination (LD): A
GDID set by LD to GD: GDID GW1-A = 1
Forwarding destination 2
Global destination (GD): GW2
GDID used by node C for GD: GDID GW2-C = 2
Local destination (LD): A
GDID LD set to GD: GDID GW2-A = 2

その後、ノードBがHelloフレームH4を送信したとする。図14に示すように、HelloフレームH4には、ゲートウェイGW2に関する経路情報が含まれている。ノードCがHelloフレームH4を受信すると、抽出部21cは、ヘッダ解析部12cなどを介してHelloフレームH4を取得する。抽出部21cは、ゲートウェイGW2に関する情報を含むHelloヘッダの情報と、HelloフレームH4のローカル送信元がノードBであることを、テーブル管理部23cに通知する。テーブル管理部23cは、ゲートウェイGW2に対するエントリがルーティングテーブル32cに存在するので、ゲートウェイGW2へのローカル宛先としてノードBがルーティングテーブル32cに登録されているかを判定する。ここでは、ノードBは、ゲートウェイGW2へのローカル宛先として登録されていない。このため、テーブル管理部23cは、ノードBをゲートウェイGW2へのローカル宛先としてルーティングテーブル32cに登録する。さらに、テーブル管理部23cは、ノードBがゲートウェイGW2を識別する際に使用するGDID(GDIDGW2−B=1)もルーティングテーブル32cに登録する。ここで、ノードCにとって、ノードAを介してゲートウェイGW2に至る経路の通信状況の方が、ノードBを介してゲートウェイGW2に至る経路の通信状況よりも良好であるとする。この場合、テーブル管理部23cは、ゲートウェイGW2への転送処理の際に最優先するローカル転送先(LD1)をノードA、2番目に優先的に使用するローカル転送先(LD2)をノードBとしてルーティングテーブル32cに記録する。このため、HelloフレームH4を処理した後にノードCが保持しているルーティングテーブル32cは、図14に示すとおりになる。なお、ノードCでのHelloフレームH4の処理は、図6のステップS18〜S20の処理に相当する。 Thereafter, it is assumed that the Node B transmits a Hello frame H4. As shown in FIG. 14, the Hello frame H4 includes route information regarding the gateway GW2. When the node C receives the Hello frame H4, the extraction unit 21c acquires the Hello frame H4 via the header analysis unit 12c and the like. The extraction unit 21c notifies the table management unit 23c that the information of the Hello header including information regarding the gateway GW2 and that the local transmission source of the Hello frame H4 is the Node B. Since the entry for the gateway GW2 exists in the routing table 32c, the table management unit 23c determines whether the node B is registered in the routing table 32c as a local destination to the gateway GW2. Here, the node B is not registered as a local destination to the gateway GW2. For this reason, the table management unit 23c registers the node B in the routing table 32c as a local destination to the gateway GW2. Furthermore, the table management unit 23c also registers the GDID (GDID GW2-B = 1) used when the node B identifies the gateway GW2 in the routing table 32c. Here, for node C, it is assumed that the communication status of the route to node GW2 via node A is better than the communication status of the route to node GW2 via node B. In this case, the table management unit 23c routes the local transfer destination (LD1) having the highest priority during transfer processing to the gateway GW2 as the node A, and the local transfer destination (LD2) used preferentially as the node B. Record in table 32c. Therefore, the routing table 32c held by the node C after processing the Hello frame H4 is as shown in FIG. Note that the processing of the Hello frame H4 at the node C corresponds to the processing of steps S18 to S20 in FIG.

図15は、Helloフレームの送受信の際に行われる処理の例を説明する図である。ノードCは、ルーティングテーブル32cに記録されているグローバル宛先の情報を、ノードCが各グローバル宛先を識別するために使用するGDIDと共に、HelloフレームH5を用いて、隣接ノードに通知する。   FIG. 15 is a diagram illustrating an example of processing performed when transmitting and receiving a Hello frame. The node C notifies the adjacent node of the information on the global destination recorded in the routing table 32c using the Hello frame H5 together with the GDID used by the node C to identify each global destination.

ノードDがHelloフレームH5を受信したとする。ノードDは、HelloフレームH5で通知されたグローバル宛先であるGW1とGW2に対するローカル宛先として、HelloフレームH5のローカル送信元であるノードCを記録する。さらに、ノードCがGW1とGW2の各々を識別する際に使用するGDIDを記録すると共に、ノードDがこれらのグローバル宛先の識別に使用するGDIDを決定する。このため、ノードDのルーティングテーブル32dは、図15に示すとおりになる。   Assume that the node D receives the Hello frame H5. The node D records the node C that is the local transmission source of the Hello frame H5 as the local destination for the global destinations GW1 and GW2 that are notified in the Hello frame H5. Further, the GDID used when the node C identifies each of GW1 and GW2 is recorded, and the GDID used by the node D to identify these global destinations is determined. For this reason, the routing table 32d of the node D is as shown in FIG.

図16は、各通信装置10が保持するルーティングテーブル32の例を示す図である。図16は、HelloフレームH1〜H5の処理が終わった段階で、ノードA〜Dの各通信装置10が保持しているルーティングテーブル32の例を示している。なお、図15には明記していないが、ノードAとノードBも、ノードCから送信されたHelloフレームH5を受信する。このため、ノードAと、ノードBのいずれも、ノードCを介してゲートウェイGW1、GW2に達する経路の情報を、ルーティングテーブル32に保持している。ノードAとノードBでのHelloフレームH5の処理は、ノードCがHelloフレームH4を処理する場合を例として説明した処理と同様である。   FIG. 16 is a diagram illustrating an example of the routing table 32 held by each communication device 10. FIG. 16 shows an example of the routing table 32 held by each communication device 10 of the nodes A to D when the processing of the Hello frames H1 to H5 is completed. Although not explicitly shown in FIG. 15, the node A and the node B also receive the Hello frame H5 transmitted from the node C. For this reason, both the node A and the node B hold information on the route reaching the gateways GW1 and GW2 via the node C in the routing table 32. The process of the Hello frame H5 at the node A and the node B is the same as the process described as an example when the node C processes the Hello frame H4.

(2)上り方向に転送されるデータフレームの処理
以下、アドホックネットワーク中の各通信装置10が保持するルーティングテーブル32が図16に示す状態で、ノードDからゲートウェイGW1宛てにフレームが送信される場合の転送処理の例を説明する。なお、図17以下では、図を見やすくするために、各通信装置10が保持するルーティングテーブル32の一部を抜粋して示すことがある。以下では、各通信装置10でのグローバル宛先やローカル宛先の指定に重点をおいて説明するが、各通信装置10の制御部20などで行われる処理の詳細は、図5〜図10での説明と同様である。
(2) Processing of data frame transferred in upstream direction Hereinafter, when a frame is transmitted from node D to gateway GW1 in a state where routing table 32 held by each communication device 10 in the ad hoc network is shown in FIG. An example of the transfer process will be described. In FIG. 17 and subsequent figures, a part of the routing table 32 held by each communication device 10 may be extracted and shown for easy understanding of the drawing. In the following, the description will be given with an emphasis on the designation of the global destination and the local destination in each communication device 10, but details of processing performed in the control unit 20 of each communication device 10 will be described with reference to FIGS. It is the same.

図17は、ゲートウェイ装置宛てのフレームの転送処理の例を説明する図である。まず、ノードDが、ゲートウェイGW1に送信するデータを生成したとする。次に、ノードDは、ルーティングテーブル32dを用いて、ゲートウェイGW1にフレームを送信する際のローカル宛先がノードCであることと、ノードCにおいてゲートウェイGW1の識別に、GDIDGW1−C=1を用いることを特定する。そこで、ノードDは、ゲートウェイGW1宛てのフレームのローカル転送先(LD)をノードC、グローバル宛先のアドレスの代わりにGD=1という値を指定したフレームF31を生成し、フレームF31をノードCに送信する。フレームF31に指定されているローカル宛先の情報とグローバル宛先の情報を図17に示す。 FIG. 17 is a diagram illustrating an example of a transfer process of a frame addressed to the gateway device. First, it is assumed that the node D generates data to be transmitted to the gateway GW1. Next, using the routing table 32d, the node D uses GDID GW1-C = 1 to identify the gateway GW1 as the local destination when transmitting a frame to the gateway GW1, and to identify the gateway GW1 in the node C. Identify that. Therefore, the node D generates a frame F31 in which the local transfer destination (LD) of the frame addressed to the gateway GW1 is designated as the node C, and a value of GD = 1 is designated instead of the address of the global destination, and the frame F31 is transmitted to the node C. To do. FIG. 17 shows local destination information and global destination information specified in the frame F31.

フレームF31を受信したノードCは、フレームF31のグローバル宛先(GD)に1が指定されているため、ノードCが付したGDIDの値が1である装置がフレームF31のグローバル宛先であると判定する。図17に示すように、GDIDGW1−C=1であるため、ノードCは、ゲートウェイGW1がフレームF31のグローバル宛先であると判定する。 The node C that has received the frame F31 determines that the device whose GDID value attached to the node C is 1 is the global destination of the frame F31 because 1 is designated as the global destination (GD) of the frame F31. . As illustrated in FIG. 17, since GDID GW1-C = 1, the node C determines that the gateway GW1 is the global destination of the frame F31.

図18は、ゲートウェイ装置宛てのフレームの転送処理の例を説明する図である。図18を参照しながら、ノードCで行われる転送処理を説明する。フレームF31のグローバル宛先がゲートウェイGW1であるため、ノードCは、転送フレームF32を送信する際のローカル宛先をノードAに決定する。さらに、ノードAにおいてゲートウェイGW1の識別にGDIDGW1−A=1が用いられることから、ノードCは、転送フレームF32には、グローバル宛先のアドレスの代わりにGD=1という値を指定する。なお、転送フレームF32中のデータは、フレームF31中のデータである。フレームF32に指定されているローカル宛先の情報とグローバル宛先の情報を図18に示す。ノードCは、フレームF32をノードAに送信する。 FIG. 18 is a diagram for explaining an example of a process for transferring a frame addressed to the gateway device. The transfer process performed at the node C will be described with reference to FIG. Since the global destination of the frame F31 is the gateway GW1, the node C determines that the local destination for transmitting the transfer frame F32 is the node A. Further, since GDID GW1-A = 1 is used for identifying the gateway GW1 in the node A, the node C designates a value of GD = 1 in the forwarding frame F32 instead of the address of the global destination. The data in the transfer frame F32 is the data in the frame F31. FIG. 18 shows local destination information and global destination information specified in the frame F32. Node C transmits frame F32 to node A.

フレームF32を受信したノードAは、フレームF32のグローバル宛先(GD)に1が指定されているため、ノードAが付したGDIDの値が1である装置がフレームF32のグローバル宛先であると判定する。図18に示すように、GDIDGW1−A=1であるため、ノードAは、ゲートウェイGW1がフレームF32のグローバル宛先であると判定する。 The node A that has received the frame F32 determines that the device whose GDID value attached to the node A is 1 is the global destination of the frame F32 because 1 is designated as the global destination (GD) of the frame F32. . As illustrated in FIG. 18, since GDID GW1-A = 1, the node A determines that the gateway GW1 is the global destination of the frame F32.

図19は、ゲートウェイ装置宛てのフレームの転送処理の例を説明する図である。図19を参照しながら、ノードAで行われる転送処理を説明する。フレームF32のグローバル宛先がゲートウェイGW1であるため、ノードAは、転送フレームF33を送信する際のローカル宛先をゲートウェイGW1に決定する。さらに、ゲートウェイGW1においてゲートウェイGW1の識別にGDIDGW1=0が用いられることから、ノードAは、転送フレームF33のグローバル宛先のアドレスとして、GD=0という値を指定する。なお、転送フレームF33中のデータは、フレームF31に含まれていたデータである。フレームF33に指定されているローカル宛先の情報とグローバル宛先の情報を図19に示す。ノードAは、フレームF33をゲートウェイGW1に送信する。 FIG. 19 is a diagram for explaining an example of a process for transferring a frame addressed to the gateway device. The transfer process performed at the node A will be described with reference to FIG. Since the global destination of the frame F32 is the gateway GW1, the node A determines the local destination when transmitting the transfer frame F33 as the gateway GW1. Further, since GDID GW1 = 0 is used to identify the gateway GW1 in the gateway GW1, the node A designates a value of GD = 0 as the global destination address of the transfer frame F33. The data in the transfer frame F33 is data included in the frame F31. FIG. 19 shows local destination information and global destination information specified in the frame F33. Node A transmits frame F33 to gateway GW1.

フレームF33を受信したゲートウェイGW1は、フレームF33のグローバル宛先(GD)に0が指定されているため、ゲートウェイGW1宛てのフレームを受信したと判定し、フレームF33を処理する。   The gateway GW1 that has received the frame F33 determines that the frame addressed to the gateway GW1 has been received because 0 is designated as the global destination (GD) of the frame F33, and processes the frame F33.

(3)下り方向に転送されるデータフレームの処理
次に、アドホックネットワーク中の各通信装置10が保持するルーティングテーブル32が図16に示す状態で、ゲートウェイGW2からノードD宛てにフレームが送信される場合の転送処理の例を説明する。なお、各通信装置10での転送先テーブル33の生成方法も、図8〜図10を参照しながら説明したとおりである。
(3) Processing of Data Frames Forwarded Downward Next, a frame is transmitted from the gateway GW 2 to the node D while the routing table 32 held by each communication device 10 in the ad hoc network is shown in FIG. An example of transfer processing in this case will be described. The method for generating the transfer destination table 33 in each communication apparatus 10 is also as described with reference to FIGS.

図20は、ゲートウェイ装置から送信されたフレームの転送処理の例を説明する図である。まず、ゲートウェイGW2が、ノードDに送信するデータを生成したとする。次に、ゲートウェイGW2は、転送先テーブル33gw2を用いて、ノードDにフレームを送信する際のローカル宛先がノードBであることを特定する。ゲートウェイGW2は、Helloフレームを送信したことがあるので、ゲートウェイGW2自身をゲートウェイGW2が識別する際に使用するGDIDを隣接する通信装置10に通知済みである。そこで、ノードD宛てのフレームのローカル転送先(LD)をノードB、グローバル送信元のアドレスの代わりにGS=0という値を指定したフレームF41を生成し、フレームF41をノードBに送信する。フレームF41に指定されているアドレスの情報を図20に示す。   FIG. 20 is a diagram for explaining an example of transfer processing of a frame transmitted from the gateway device. First, it is assumed that the gateway GW2 generates data to be transmitted to the node D. Next, the gateway GW2 specifies that the local destination when transmitting the frame to the node D is the node B by using the transfer destination table 33gw2. Since the gateway GW2 has transmitted the Hello frame, the GDID used when the gateway GW2 identifies the gateway GW2 itself has been notified to the adjacent communication device 10. Accordingly, the local transfer destination (LD) of the frame addressed to the node D is set as the node B, the frame F41 in which the value of GS = 0 is specified instead of the address of the global transmission source is generated, and the frame F41 is transmitted to the node B. FIG. 20 shows information on the address specified in the frame F41.

ノードBは、フレームF41のグローバル送信元(GS)に0が指定されているため、ゲートウェイGW2から通知されたGDIDの値が0である装置がフレームF41のグローバル送信元であると判定する。図20に示すように、GDIDGW2=0であるため、ノードBは、ゲートウェイGW2がフレームF41のグローバル送信元であると判定する。 Since 0 is designated as the global transmission source (GS) of the frame F41, the node B determines that the device whose GDID value notified from the gateway GW2 is 0 is the global transmission source of the frame F41. As illustrated in FIG. 20, since GDID GW2 = 0, the node B determines that the gateway GW2 is the global transmission source of the frame F41.

図21は、ゲートウェイ装置から送信されたフレームの転送処理の例を説明する図である。図21を参照しながら、ノードBで行われる転送処理を説明する。フレームF41のグローバル宛先がノードDであるため、ノードBは、転送先テーブル33bを用いて、転送フレームF42を送信する際のローカル宛先をノードCに決定する。ノードBはHelloフレームを送信したことがあるので、ノードBは、ゲートウェイGW2を識別する際にGDIDGW2−B=1を使用することを、隣接する通信装置10に通知済みである。そこで、ノードD宛てのフレームのローカル転送先(LD)をノードC、グローバル送信元のアドレスの代わりにGS=1という値を指定したフレームF42を生成し、フレームF42をノードCに送信する。フレームF42に指定されているアドレスの情報を図21に示す。 FIG. 21 is a diagram illustrating an example of transfer processing of a frame transmitted from the gateway device. With reference to FIG. 21, the transfer process performed at the node B will be described. Since the global destination of the frame F41 is the node D, the node B determines the local destination when transmitting the transfer frame F42 to the node C using the transfer destination table 33b. Since the node B has transmitted the Hello frame, the node B has notified the adjacent communication device 10 that GDID GW2-B = 1 is used when identifying the gateway GW2. Therefore, the local transfer destination (LD) of the frame addressed to the node D is set as the node C, the frame F42 in which the value of GS = 1 is specified instead of the address of the global transmission source is generated, and the frame F42 is transmitted to the node C. FIG. 21 shows information on the address specified in the frame F42.

ノードCは、フレームF42のグローバル送信元(GS)に1が指定されており、フレームF42のローカル送信元がノードBであるため、ノードBから通知されたGDIDの値が1である装置がフレームF42のグローバル送信元であると判定する。図21に示すように、GDIDGW2−B=1であるため、ノードCは、ゲートウェイGW2がフレームF42のグローバル送信元であると判定する。 Since node C is designated as 1 in the global transmission source (GS) of frame F42 and the local transmission source of frame F42 is node B, a device whose GDID value notified from node B is 1 It is determined that it is the global transmission source of F42. As illustrated in FIG. 21, since GDID GW2-B = 1, the node C determines that the gateway GW2 is the global transmission source of the frame F42.

図22は、ゲートウェイ装置から送信されたフレームの転送処理の例を説明する図である。図22を参照しながら、ノードCで行われる転送処理を説明する。フレームF42のグローバル宛先がノードDであるため、ノードCは、転送先テーブル33cを用いて、転送フレームF43を送信する際のローカル宛先をノードDに決定する。ノードCは、ゲートウェイGW2の情報を含むHelloフレームを用いて、ノードCがゲートウェイGW2を識別する際にGDIDGW2−C=2を使用することを、隣接する通信装置10に通知済みである。そこで、ノードD宛てのフレームのローカル転送先(LD)としてノードD、グローバル送信元のアドレスの代わりにGS=2という値を指定したフレームF43を生成し、フレームF43をノードDに送信する。フレームF43に指定されているアドレスの情報を図22に示す。 FIG. 22 is a diagram illustrating an example of transfer processing of a frame transmitted from the gateway device. The transfer process performed at the node C will be described with reference to FIG. Since the global destination of the frame F42 is the node D, the node C determines the local destination for transmitting the transfer frame F43 to the node D using the transfer destination table 33c. The node C has notified the adjacent communication device 10 that the node C uses GDID GW2-C = 2 when the node C identifies the gateway GW2, using the Hello frame including the information of the gateway GW2. Therefore, node D is generated as the local transfer destination (LD) of the frame addressed to node D, and frame F43 in which a value of GS = 2 is designated instead of the address of the global transmission source is generated, and frame F43 is transmitted to node D. FIG. 22 shows information on the address specified in the frame F43.

ノードDは、フレームF43のグローバル送信元(GS)に2が指定されており、フレームF43のローカル送信元がノードCであるため、ノードCから通知されたGDIDの値が2である装置がフレームF43のグローバル送信元であると判定する。図22に示すように、GDIDGW2−C=2であるため、ノードDは、ゲートウェイGW2がフレームF43のグローバル送信元であると判定する。また、ノードDは、フレームF43の最終宛先がノードD自身であるので、フレームF43中のデータを適宜処理する。 Since node D is designated as 2 in the global transmission source (GS) of frame F43 and the local transmission source of frame F43 is node C, a device whose GDID value notified from node C is 2 It is determined that it is the global transmission source of F43. As illustrated in FIG. 22, since GDID GW2-C = 2, the node D determines that the gateway GW2 is the global transmission source of the frame F43. In addition, since the final destination of the frame F43 is the node D itself, the node D appropriately processes the data in the frame F43.

図23は、フレーム中のペイロードのサイズの例を説明する図である。フレームF111は、第1の実施形態が適用されていない場合のデータフレームのフォーマットの例である。フレームF111では、グローバル宛先とグローバル送信元のいずれにも、装置のアドレスが用いられている。このため、フレームF111では、グローバル宛先アドレスとグローバル送信元アドレスに各々8バイト使用することになる。制御情報が20バイトで、ローカル宛先アドレスとローカル送信元アドレスにいずれも8バイトが用いられるので、フレームF111では、アドレス情報と制御情報で8×4+20=52バイトが使用される。アドホックネットワークで使用されるフレームの大きさが127バイトであると、ペイロード長は75バイトになる。   FIG. 23 is a diagram for explaining an example of the size of the payload in the frame. The frame F111 is an example of a data frame format when the first embodiment is not applied. In the frame F111, the device address is used for both the global destination and the global transmission source. Therefore, in the frame F111, 8 bytes are respectively used for the global destination address and the global transmission source address. Since the control information is 20 bytes and 8 bytes are used for both the local destination address and the local transmission source address, 8 × 4 + 20 = 52 bytes are used for the address information and the control information in the frame F111. If the frame size used in the ad hoc network is 127 bytes, the payload length is 75 bytes.

フレームF112は、第1の実施形態を用いて上り方向に転送されるフレームのフォーマットの例を示している。フレームF112では、グローバル宛先アドレスがフレームのローカル転送先で処理可能なGDIDに設定されている。ここで、GDIDの記述には、1バイトが使用されるとすると、グローバル宛先アドレスフィールドを1バイトにすることができる。従って、フレームF112では、フレーム中のアドレス情報と制御情報に、8×3+1+20=45バイトが使用される。このため、フレームF112では、アドホックネットワークで使用されるフレームの大きさが127バイトであっても、ペイロードに82バイトを使用することができる。なお、下り方向に送信されるフレームの場合は、グローバル宛先はGDIDに変換されないが、グローバル送信元がGDIDに変換される。このため、下り方向に送信されるフレームでも、フレームF112に示したのと同様に、82バイトのペイロードを確保できる。従って、1フレームが127バイトである場合、第1の実施形態にかかる方法を用いることにより、1フレーム中のペイロードが75バイトから7バイト長くできる。換言すると、1フレームが127バイトである場合、第1の実施形態にかかる方法を用いることにより、1フレーム中のペイロードを10%程度長くすることができる。   A frame F112 shows an example of a format of a frame transferred in the uplink direction using the first embodiment. In the frame F112, the global destination address is set to a GDID that can be processed at the local transfer destination of the frame. Here, if 1 byte is used for the description of GDID, the global destination address field can be 1 byte. Therefore, in the frame F112, 8 × 3 + 1 + 20 = 45 bytes are used for address information and control information in the frame. For this reason, in the frame F112, even if the size of the frame used in the ad hoc network is 127 bytes, 82 bytes can be used for the payload. In the case of a frame transmitted in the downlink direction, the global destination is not converted to GDID, but the global transmission source is converted to GDID. For this reason, a 82-byte payload can be secured even in a frame transmitted in the downlink direction, as shown in the frame F112. Therefore, when one frame is 127 bytes, the payload in one frame can be increased from 75 bytes to 7 bytes by using the method according to the first embodiment. In other words, when one frame is 127 bytes, the payload in one frame can be increased by about 10% by using the method according to the first embodiment.

以上説明したように、第1の実施形態によると、各通信装置10は、ゲートウェイとして動作する通信装置10に向かう方向の経路情報と共に、その通信装置10がゲートウェイ装置の識別の際に使用する一意情報(GDID)を隣接装置と交換する。このため、上り方向に転送されるフレームでは、グローバル宛先となるゲートウェイ装置を、転送先で認識されるGDIDに置き換えて通知することにより、フレーム中のヘッダに使用される領域の大きさを小さくすることができる。一方、下り方向に転送されるフレームでは、グローバル送信元となるゲートウェイの情報を、転送先の通信装置10に通知済みのGDIDに置き換えて通知することにより、フレーム中のヘッダを小さくすることができる。従って、各フレームに含められるデータの量が増大し、結果として、スループットが改善する。すなわち、アドホックネットワークにおける通信速度が向上でき、通信効率が改善できる。   As described above, according to the first embodiment, each communication device 10 has unique path information used by the communication device 10 when identifying the gateway device, along with route information in the direction toward the communication device 10 operating as a gateway. Exchange information (GDID) with neighboring devices. For this reason, in a frame transferred in the upstream direction, the size of the area used for the header in the frame is reduced by replacing the gateway device serving as the global destination with the GDID recognized by the transfer destination. be able to. On the other hand, in the frame forwarded in the downlink direction, the header in the frame can be reduced by replacing the information of the gateway serving as the global transmission source with the GDID that has been notified to the communication device 10 of the forwarding destination. . Therefore, the amount of data included in each frame increases, and as a result, the throughput improves. That is, the communication speed in the ad hoc network can be improved, and the communication efficiency can be improved.

なお、第1の実施形態が適用されるネットワークでは、ゲートウェイとして動作していない通信装置10同士でデータのやり取りを行う場合、ゲートウェイとして動作する通信装置10がデータの中継点となる。このため、ゲートウェイ装置以外の装置間の通信でも、第1の実施形態を適用することによって、1フレーム中のデータ量を増大できる。   In the network to which the first embodiment is applied, when data is exchanged between the communication apparatuses 10 not operating as a gateway, the communication apparatus 10 operating as a gateway serves as a data relay point. For this reason, even in communication between devices other than the gateway device, the amount of data in one frame can be increased by applying the first embodiment.

ところで、ゲートウェイ装置の識別子として、GDIDを付す際に、ある1つのゲートウェイについては、ネットワーク全体で共通の値が設定されるように各ゲートウェイ装置に割り振られるGDIDをコーディネータで管理することも考えられる。しかしコーディネータを用いて、ネットワーク全体での共通の値をゲートウェイ装置に割当てる場合、ネットワークへの通信装置10の参加や脱退の際に行われる処理が複雑になる上、通信装置10のメモリを大量に消費する恐れがある。しかし、アドホックネットワークに適用される通信装置10では、メモリ容量が大きくない場合が多い。また、不特定多数の通信装置10が、アドホックネットワークに対する参加や脱退を行う可能性もある。   By the way, when a GDID is assigned as an identifier of a gateway device, it may be considered that a GDID allocated to each gateway device is managed by a coordinator so that a common value is set for a certain gateway in the entire network. However, when a common value for the entire network is assigned to the gateway device using the coordinator, the processing performed when the communication device 10 joins or leaves the network becomes complicated, and a large amount of memory is stored in the communication device 10. There is a risk of consumption. However, the communication device 10 applied to the ad hoc network often has a small memory capacity. In addition, an unspecified number of communication devices 10 may join or leave the ad hoc network.

一方、第1の実施形態で説明したように、個々の通信装置10が自由に、その通信装置10に通知されたゲートウェイの情報を保持し、隣接ノードに自ノードが使用するGDIDを通知する場合、通信装置10にかかる負担は比較的小さい。さらに、通信装置10がアドホックネットワークに対して参加や脱退を行ったとしても、GDIDの処理に起因した処理により、通信装置10に負担がかからない。   On the other hand, as described in the first embodiment, when each communication device 10 freely holds the gateway information notified to the communication device 10 and notifies the adjacent node of the GDID used by the own node The burden on the communication device 10 is relatively small. Furthermore, even if the communication device 10 joins or leaves the ad hoc network, the communication device 10 is not burdened by the processing caused by the GDID processing.

<第2の実施形態>
第2の実施形態では、ゲートウェイ装置として動作する通信装置10の情報と、ゲートウェイ装置して動作しない通信装置10の情報のいずれも、Helloフレームによって他の装置に通知される場合の転送処理について説明する。なお、Helloフレームを受信したときに各通信装置10が行う処理は、第1の実施形態と同様である。
<Second Embodiment>
In the second embodiment, transfer processing in a case where both information on the communication device 10 that operates as a gateway device and information on the communication device 10 that does not operate as a gateway device are notified to other devices by a Hello frame will be described. To do. Note that the processing performed by each communication device 10 when a Hello frame is received is the same as in the first embodiment.

図24は、第2の実施形態で行われるHelloフレームの送信処理の例を説明するフローチャートである。経路情報生成部24は、Helloフレームの生成時刻になると、ステップS91〜S95の処理により、自ノードを介して通信可能な通信先の情報を、Helloフレームで隣接ノードに通知する情報として選択する。なお、ステップS91〜S95の処理は、図7のステップS31〜S35で行われる処理と同様である。   FIG. 24 is a flowchart illustrating an example of a transmission process of a Hello frame performed in the second embodiment. When the generation time of the Hello frame is reached, the route information generation unit 24 selects communication destination information that can be communicated via the own node as information to be notified to the adjacent node through the Hello frame by the processing of Steps S91 to S95. In addition, the process of step S91-S95 is the same as the process performed by step S31-S35 of FIG.

次に、経路情報生成部24は、自ノードの情報に対応付けて、自ノードが自ノード自身の識別に使用するGDIDをHelloフレームで通知する情報に追加する(ステップS96)。フレーム生成部15は、経路情報生成部24によって、Helloフレームで通知する情報として選択された情報を含むHelloフレームを生成する(ステップS97)。送信部16は、Helloフレームを送信する(ステップS98)。   Next, the path information generation unit 24 adds the GDID used by the own node to identify itself in association with the information of the own node to the information notified by the Hello frame (step S96). The frame generation unit 15 generates a Hello frame including the information selected as information to be notified by the Hello frame by the route information generation unit 24 (Step S97). The transmission unit 16 transmits a Hello frame (Step S98).

図24を用いて説明したHelloフレームの送信処理では、ステップS96の処理は、ゲートウェイ装置として動作していない通信装置10でも行われる。従って、ゲートウェイ装置以外の装置に至る経路も、隣接ノード間で交換される。また、Helloフレームの受信の際の処理は、第2の実施形態でも、図6を参照しながら説明したとおりであるので、各通信装置10は、Helloフレームで通知された通信先の各々について、GDIDを割り当てる。また、Helloフレームで交換された情報はルーティングテーブル61に記録される。   In the Hello frame transmission process described with reference to FIG. 24, the process of step S96 is also performed by the communication apparatus 10 that is not operating as a gateway apparatus. Therefore, the route to the device other than the gateway device is also exchanged between adjacent nodes. Moreover, since the process at the time of reception of a Hello frame is as having demonstrated with reference to FIG. 6 also in 2nd Embodiment, each communication apparatus 10 is about each of the communication destination notified by the Hello frame. Assign a GDID. Information exchanged in the Hello frame is recorded in the routing table 61.

図25は、各通信装置が保持するルーティングテーブルの例を示す図である。図25では、図を見やすくするために、各通信装置10が保持するルーティングテーブル61の一部を抜粋して示している。しかし、第2の実施形態では、Helloフレームの交換により、ネットワーク中の各通信装置10がネットワーク中の全ての通信装置10に至る経路情報を保持することができる。また、各通信装置10は、ネットワーク中の全ての装置について、自ノードが使用するGDIDを設定し、隣接ノードに通知しているので、いずれのフレームの送信元や最終宛先もGDIDに置き換えて転送先に通知できる。   FIG. 25 is a diagram illustrating an example of a routing table held by each communication device. In FIG. 25, in order to make the drawing easier to see, a part of the routing table 61 held by each communication device 10 is extracted and shown. However, in the second embodiment, by exchanging the Hello frame, each communication device 10 in the network can hold route information reaching all the communication devices 10 in the network. Also, each communication device 10 sets the GDID used by its own node for all devices in the network and notifies the adjacent nodes, so that the transmission source and final destination of any frame are replaced with the GDID and transferred. You can notify first.

以下、図26〜図28を参照しながら、ノードEからノードD宛てにフレームが送信される場合の転送処理の例を説明する。なお、アドホックネットワーク中の各通信装置10が保持するルーティングテーブル61は、図25に示す情報を含むものとする。また、ローカル宛先が複数ある場合、LDに続く数字が小さいローカル宛先ほど、グローバル宛先までの転送経路が良好な転送先を指しているものとする。   Hereinafter, an example of transfer processing when a frame is transmitted from the node E to the node D will be described with reference to FIGS. Note that the routing table 61 held by each communication device 10 in the ad hoc network includes the information shown in FIG. Further, when there are a plurality of local destinations, it is assumed that a local destination having a smaller number following the LD indicates a transfer destination having a better transfer path to the global destination.

図26は、データフレームの転送処理の例を説明する図である。まず、ノードEが、ノードDに送信するデータを生成したとする。次に、ノードEは、ルーティングテーブル61eを用いて、ノードDにフレームを送信する際のローカル宛先として最も条件の良い転送先がノードBであることと、ノードBがGDIDD−B=1を用いてノードDを識別していることを特定する。さらに、ノードEは、Helloフレームを送信済みであるので、グローバル送信元がノードEであることを、ノードEがノードE自身に割り当てたGDIDE−E=0を用いてノードBに通知できると判定する。そこで、ノードEは、グローバル宛先(GD)にGDIDD−B=1、グローバル送信元(GS)にGDIDE−E=0を用いて、ノードD宛てのデータを含むフレームF51を生成する。フレームF51に含まれているアドレスの情報を図26に示す。 FIG. 26 is a diagram illustrating an example of data frame transfer processing. First, it is assumed that the node E generates data to be transmitted to the node D. Next, the node E uses the routing table 61e, and the most conditions good destination as the local destination when transmitting a frame to the node D is a node B, node B to Gdid D-B = 1 To identify that node D is being identified. Further, since the node E has already transmitted the Hello frame, the node E can notify the node B that the global transmission source is the node E by using the GDID E−E = 0 assigned to the node E itself. judge. Accordingly, node E, GDID D-B = 1 in the global destination (GD), using Gdid E-E = 0 in the global source (GS), generates a frame F51 including the data of the node D addressed. FIG. 26 shows address information included in the frame F51.

フレームF51を受信したノードBは、フレームF51のグローバル宛先(GD)に1が指定されているため、ノードBが付したGDIDの値が1である装置がフレームF51のグローバル宛先であると判定する。図26に示すように、GDIDD−B=1であるため、ノードBは、ノードDがフレームF51のグローバル宛先であると判定する。さらに、フレームF51のグローバル送信元(GS)に0が指定されているため、ローカル送信元(LS)であるノードEが付したGDIDの値が0である装置がフレームF51のグローバル送信元であると判定する。ルーティングテーブル61bには、ノードEがグローバル宛先の場合の欄に、GDIDE−E=0であることが記録されている。このため、ノードBは、フレームF51のグローバル送信元はノードEであると判定する。 The node B that has received the frame F51 determines that the device having the GDID value 1 attached to the node B is the global destination of the frame F51 because 1 is designated as the global destination (GD) of the frame F51. . As shown in FIG. 26, it is determined that for a Gdid D-B = 1, the node B, the node D is global destination of the frame F51. Furthermore, since 0 is designated as the global transmission source (GS) of the frame F51, the device having the GDID value attached by the node E, which is the local transmission source (LS), is the global transmission source of the frame F51. Is determined. In the routing table 61b, it is recorded that GDID E−E = 0 in the field when the node E is a global destination. For this reason, the node B determines that the global transmission source of the frame F51 is the node E.

図27は、データフレームの転送処理の例を説明する図である。図27を参照しながら、ノードBで行われる転送処理の例を説明する。ノードBは、ルーティングテーブル61bを用いて、ノードDにフレームを送信する際のローカル宛先として最も条件の良い転送先がノードCであることと、ノードCがGDIDD−C=2を用いてノードDを識別していることを特定する。さらに、ノードBは、Helloフレームを送信済みであるので、グローバル送信元がノードEであることを、ノードBがノードEに割り当てたGDIDE−B=2を用いてノードCに通知できると判定する。そこで、ノードBは、グローバル宛先(GD)にGDIDD−C=2、グローバル送信元(GS)にGDIDE−B=2を用いて、ノードD宛てのデータを含むフレームF52を生成する。フレームF52に含まれているアドレスの情報を図27に示す。 FIG. 27 is a diagram illustrating an example of data frame transfer processing. An example of transfer processing performed at the node B will be described with reference to FIG. The node B uses the routing table 61b to determine that the transfer destination having the best condition as a local destination when transmitting a frame to the node D is the node C, and that the node C uses GDID D−C = 2. Specify that D is identified. Furthermore, since the node B has already transmitted the Hello frame, it is determined that the node B can notify the node C that the global transmission source is the node E by using GDID E−B = 2 allocated to the node E. To do. Therefore, node B, GDID D-C = 2 in global destination (GD), using GDID E-B = 2 the global source (GS), generates a frame F52 including the data of the node D addressed. FIG. 27 shows information on addresses included in the frame F52.

フレームF52を受信したノードCは、フレームF52のグローバル宛先(GD)に2が指定されているため、ノードCが付したGDIDの値が2である装置がフレームF52のグローバル宛先であると判定する。図27に示すように、GDIDD−C=2であるため、ノードCは、ノードDがフレームF52のグローバル宛先であると判定する。さらに、フレームF52のグローバル送信元(GS)に2が指定されているため、ローカル送信元(LS)であるノードBが付したGDIDの値が2である装置がフレームF52のグローバル送信元であると判定する。ルーティングテーブル61cには、ノードEがグローバル宛先の場合の欄に、GDIDE−B=2であることが記録されている。このため、ノードCは、フレームF52のグローバル送信元はノードEであると判定する。 The node C that has received the frame F52 determines that the device having the GDID value 2 attached to the node C is the global destination of the frame F52 because 2 is designated as the global destination (GD) of the frame F52. . As shown in FIG. 27, since it is Gdid D-C = 2, node C determines that node D is a global destination of the frame F52. Furthermore, since 2 is designated as the global transmission source (GS) of the frame F52, a device having a GDID value of 2 assigned by the node B that is the local transmission source (LS) is the global transmission source of the frame F52. Is determined. In the routing table 61c, it is recorded that GDID E−B = 2 in the field when the node E is a global destination. For this reason, the node C determines that the global transmission source of the frame F52 is the node E.

図28は、データフレームの転送処理の例を説明する図である。図28を参照しながら、ノードCで行われる転送処理の例を説明する。ノードCは、ルーティングテーブル61cを用いて、ノードDにフレームを送信する際のローカル宛先として最も条件の良い転送先がノードDであることと、ノードDがGDIDD−D=0を用いてノードDを識別していることを特定する。さらに、ノードCは、Helloフレームを送信済みであるので、グローバル送信元がノードEであることを、ノードCがノードEに割り当てたGDIDE−C=1を用いてノードDに通知できると判定する。そこで、ノードCは、グローバル宛先(GD)にGDIDD−D=0、グローバル送信元(GS)にGDIDE−C=1を用いて、ノードD宛てのデータを含むフレームF53を生成する。フレームF53に含まれているアドレスの情報を図28に示す。 FIG. 28 is a diagram illustrating an example of data frame transfer processing. An example of transfer processing performed at the node C will be described with reference to FIG. The node C uses the routing table 61c to determine that the transfer destination having the best condition as a local destination when transmitting a frame to the node D is the node D, and that the node D uses GDID DD = 0. Specify that D is identified. Further, since the node C has already transmitted the Hello frame, it is determined that the node C can notify the node D that the global transmission source is the node E using GDID E−C = 1 assigned to the node E. To do. Therefore, node C, Gdid D-D = 0 to the global destination (GD), using GDID E-C = 1 globally source (GS), generates a frame F53 including the data of the node D addressed. FIG. 28 shows address information included in the frame F53.

フレームF53を受信したノードDは、フレームF53のグローバル宛先(GD)に0が指定されているため、ノードDが付したGDIDの値が0である自ノードがフレームF53のグローバル宛先であると判定する。さらに、フレームF53のグローバル送信元(GS)に1が指定されているため、ローカル送信元(LS)であるノードCが付したGDIDの値が1である装置がフレームF53のグローバル送信元であると判定する。ルーティングテーブル61dには、ノードEがグローバル宛先の場合の欄に、GDIDE−C=1であることが記録されている。このため、ノードCは、フレームF53のグローバル送信元はノードEであると判定する。 The node D that has received the frame F53 determines that its own node in which the value of GDID attached to the node D is 0 is the global destination of the frame F53 because 0 is designated as the global destination (GD) of the frame F53. To do. Further, since 1 is designated as the global transmission source (GS) of the frame F53, a device having a GDID value of 1 attached by the node C as the local transmission source (LS) is the global transmission source of the frame F53. Is determined. In the routing table 61d, it is recorded that GDID E−C = 1 in the field when the node E is a global destination. For this reason, the node C determines that the global transmission source of the frame F53 is the node E.

以上説明したように、第2の実施形態によると、各通信装置10は、いずれの方向に送信されるフレームでも、グローバル宛先を転送先で認識されるGDIDに置き換えて通知できる。さらに、各通信装置10は、いずれの方向に送信されるフレームでも、グローバル送信元を、転送先の通信装置10に通知済みのGDIDに置き換えて通知することができる。従って、グローバル宛先とグローバル送信元のいずれも、GDIDを用いて通知することにより、フレーム中のヘッダを小さくすることができる。従って、各フレームに含められるデータの量が増大し、結果として、スループットが改善する。すなわち、アドホックネットワークにおける通信速度が向上でき、通信効率が改善できる。   As described above, according to the second embodiment, each communication apparatus 10 can notify a frame transmitted in any direction by replacing the global destination with a GDID recognized by the transfer destination. Further, each communication apparatus 10 can notify the global transmission source by replacing the global transmission source with the GDID notified to the transfer destination communication apparatus 10 in any frame transmitted in any direction. Therefore, both the global destination and the global transmission source can make the header in the frame small by notifying using the GDID. Therefore, the amount of data included in each frame increases, and as a result, the throughput improves. That is, the communication speed in the ad hoc network can be improved, and the communication efficiency can be improved.

<その他>
なお、実施形態は上記に限られるものではなく、様々に変形可能である。以下にその例をいくつか述べる。
<Others>
The embodiment is not limited to the above, and can be variously modified. Some examples are described below.

第2の実施形態で説明したように、ゲートウェイ装置以外の情報もHelloフレームで送受信される場合、各通信装置10は、転送先テーブル33を生成しなくても良い。転送先テーブル33を生成しない場合、通信装置10は、転送先の情報を、フレームの転送方向に関わらず、ルーティングテーブル32から検索する。また、この場合は、アドホックヘッダに方向フラグが含まれていなくても良い。   As described in the second embodiment, when information other than the gateway device is also transmitted and received in the Hello frame, each communication device 10 does not need to generate the transfer destination table 33. When the transfer destination table 33 is not generated, the communication apparatus 10 searches the routing table 32 for transfer destination information regardless of the frame transfer direction. In this case, the direction flag may not be included in the ad hoc header.

以上の説明で示したフレームのフォーマットやテーブルは一例であり、これらに含まれる情報要素や各要素のデータ長は、実装に応じて変更され得る。例えば、GDIDは1バイト以外の長さでもよい。   The frame formats and tables shown in the above description are examples, and the information elements included therein and the data length of each element can be changed according to the implementation. For example, the GDID may have a length other than 1 byte.

上述の第1および第2の実施形態を含む実施形態に関し、さらに以下の付記を開示する。
(付記1)
ネットワーク中に含まれる第1の通信装置に、
隣接する第2の通信装置から、前記第2の通信装置を介してフレームを送信可能な通信先の情報と、前記第2の通信装置で前記通信先を識別する際に使用され、前記通信先に割り当てられたアドレスよりもデータ長が短い情報である一意情報を含む制御フレームを受信し、
前記通信先に前記第2の通信装置を介してデータを送信する際に、前記通信先宛のデータを含むデータフレームの宛先として前記一意情報を設定し、
前記データフレームを前記第2の通信装置に送信する
処理を実行させることを特徴とする通信プログラム。
(付記2)
前記第1の通信装置に隣接する第3の通信装置に、前記通信先に割り当てられたアドレスよりもデータ長が短く、前記第1の通信装置が前記通信先を識別する際に使用する情報として決定した他の一意情報を、前記通信先に対応付けて通知し、
前記第3の通信装置に転送する第1のフレームの送信元が前記通信先である場合、前記第1のフレームの送信元として前記他の一意情報を設定した第2のフレームを生成し、
前記第2のフレームを前記第3の通信装置に転送する
処理を前記第1の通信装置に実行させることを特徴とする付記1に記載のプログラム。
(付記3)
前記第1のフレームを前記第2の通信装置から受信した場合、前記第1のフレームの送信元アドレスが前記一意情報であることから、前記第1のフレームの送信元が前記通信先であると特定し、
前記第1のフレームのヘッダ中の前記一意情報を、前記他の一意情報に変更することにより、前記第2のフレームを生成する
処理を前記第1の通信装置に実行させることを特徴とする付記2に記載のプログラム。
(付記4)
前記第1の通信装置から前記第3の通信装置に至る経路を用いた通信の対象となる対象装置の情報と、前記対象装置に割り当てられたアドレスよりもデータ長が短く、前記第1の通信装置が前記対象装置を識別するために使用する設定値を、前記第2の通信装置に通知し、
前記対象装置が前記通信先に送信した第3のフレームを受信すると、前記第3のフレームの送信元として前記設定値を設定すると共に、前記第3のフレームの宛先として前記一意情報を設定した第4のフレームを生成し、
前記第4のフレームを前記第2の通信装置に転送する
処理を前記第1の通信装置に実行させることを特徴とする付記2または3に記載のプログラム。
(付記5)
前記第3の通信装置から、前記対象装置に割り当てられたアドレスよりもデータ長が短く、前記第3の通信装置が前記対象装置を識別するために使用する他の設定値を取得し、
前記通信先が前記対象装置に送信した第5のフレームを受信すると、前記第5のフレームの送信元として前記他の一意情報を設定すると共に、前記第5のフレームの宛先として前記他の設定値を設定した第6のフレームを生成し、
前記第6のフレームを前記第3の通信装置に送信する
処理を前記第1の通信装置に実行させることを特徴とする付記4に記載のプログラム。
(付記6)
前記第1の通信装置に、
前記制御フレームを受信すると、前記第1の通信装置が通信可能な装置への経路情報として、前記通信先のアドレス、前記第2の通信装置のアドレス、前記一意情報、および、前記他の一意情報を対応付けて記憶し、
前記第1の通信装置を介して通信可能な装置を前記第1の通信装置に隣接する装置に通知するための他の制御フレームに、前記通信先のアドレスと前記他の一意情報を含め、
前記他の制御フレームを送信する
処理を実行させることを特徴とする付記2〜5のいずれか1項に記載のプログラム。
(付記7)
ネットワーク中に含まれる第1の通信装置として動作する通信装置であって、
隣接する第2の通信装置から、前記第2の通信装置を介してフレームを送信可能な通信先の情報と、前記第2の通信装置で前記通信先を識別する際に使用され、前記通信先に割り当てられたアドレスよりもデータ長が短い情報である一意情報を含む制御フレームを受信する受信部と、
前記通信先に前記第2の通信装置を介してデータを送信する際に、前記通信先宛のデータを含むデータフレームの宛先として前記一意情報を設定する制御部と、
前記データフレームを前記第2の通信装置に送信する送信部
を備えることを特徴とする通信装置。
(付記8)
前記制御部は、前記通信先に割り当てられたアドレスよりもデータ長が短く、前記第1の通信装置が前記通信先を識別する際に使用する情報として、他の一意情報を決定し、
前記送信部は、前記他の一意情報を前記通信先に対応付けたフレームを、前記第1の通信装置に隣接する第3の通信装置に送信し、
前記制御部は、前記第3の通信装置に転送する第1のフレームの送信元が前記通信先である場合、前記第1のフレームの送信元として前記他の一意情報を設定した第2のフレームを生成するための制御を行い、
前記送信部は、前記第2のフレームを前記第3の通信装置に転送する
ことを特徴とする付記7に記載の通信装置。
(付記9)
前記制御部は、
前記受信部が前記第1のフレームを前記第2の通信装置から受信した場合、前記第1のフレームの送信元アドレスが前記一意情報であることから、前記第1のフレームの送信元が前記通信先であると特定し、
前記第1のフレームのヘッダ中の前記一意情報を、前記他の一意情報に変更することにより、前記第2のフレームを生成させる
ことを特徴とする付記8に記載の通信装置。
(付記10)
前記制御部は、前記第1の通信装置から前記第3の通信装置に至る経路を用いた通信の対象となる対象装置に対して、前記対象装置に割り当てられたアドレスよりもデータ長が短く、前記第1の通信装置が前記対象装置を識別するために使用する設定値を決定し、
前記送信部は、前記対象装置の情報と前記設定値を対応付けたフレームを、前記第2の通信装置に送信し、
前記対象装置が前記通信先に送信した第3のフレームを、前記受信部が受信すると、前記制御部は、前記第3のフレームの送信元として前記設定値を設定すると共に、前記第3のフレームの宛先として前記一意情報を設定した第4のフレームを生成するための制御を行い、
前記送信部は、前記第4のフレームを前記第2の通信装置に転送する
ことを特徴とする付記8または9に記載の通信装置。
(付記11)
前記受信部は、前記第3の通信装置から、前記対象装置に割り当てられたアドレスよりもデータ長が短く、前記第3の通信装置が前記対象装置を識別するために使用する他の設定値を含むフレームを受信し、
前記制御部は、前記通信先が前記対象装置に送信した第5のフレームを前記受信部が受信すると、前記第5のフレームの送信元として前記他の一意情報を設定すると共に、前記第5のフレームの宛先として前記他の設定値を設定した第6のフレームを生成するための制御を行い、
前記送信部は、前記第6のフレームを前記第3の通信装置に送信する
ことを特徴とする付記10に記載の通信装置。
(付記12)
前記第1の通信装置が通信可能な装置への経路情報を記憶する記憶部をさらに備え、
前記制御部は、
前記受信部が前記制御フレームを受信すると、前記通信先のアドレス、前記第2の通信装置のアドレス、前記一意情報、および、前記他の一意情報を対応付けて、前記記憶部に記憶させ、
前記第1の通信装置を介して通信可能な装置を前記第1の通信装置に隣接する装置に通知するために使用する他の制御フレームに、前記通信先のアドレスに対応付けて前記他の一意情報を含め、
前記送信部は、前記他の制御フレームを送信する
処理を実行させることを特徴とする付記8〜11のいずれか1項に記載の通信装置。
(付記13)
ネットワーク中に含まれる第1の通信装置に、
隣接する第2の通信装置から、前記第2の通信装置を介してフレームを送信可能な通信先の情報と、前記第2の通信装置で前記通信先を識別する際に使用され、前記通信先に割り当てられたアドレスよりもデータ長が短い情報である一意情報を含む制御フレームを受信し、
前記通信先に前記第2の通信装置を介してデータを送信する際に、前記通信先宛のデータを含むデータフレームの宛先として前記一意情報を設定し、
前記データフレームを前記第2の通信装置に送信する
処理を実行させることを特徴とする通信方法。
(付記14)
前記第1の通信装置に隣接する第3の通信装置に、前記通信先に割り当てられたアドレスよりもデータ長が短く、前記第1の通信装置が前記通信先を識別する際に使用する情報として決定した他の一意情報を、前記通信先に対応付けて通知し、
前記第3の通信装置に転送する第1のフレームの送信元が前記通信先である場合、前記第1のフレームの送信元として前記他の一意情報を設定した第2のフレームを生成し、
前記第2のフレームを前記第3の通信装置に転送する
処理を前記第1の通信装置に実行させることを特徴とする付記13に記載の通信方法。
With respect to the embodiments including the above-described first and second embodiments, the following additional notes are disclosed.
(Appendix 1)
In the first communication device included in the network,
Used when identifying the communication destination by the second communication device and information on a communication destination capable of transmitting a frame from the adjacent second communication device via the second communication device. Receiving a control frame including unique information, which is information whose data length is shorter than the address assigned to
When transmitting data to the communication destination via the second communication device, the unique information is set as a destination of a data frame including data addressed to the communication destination,
A communication program for executing a process of transmitting the data frame to the second communication device.
(Appendix 2)
As information used when the third communication device adjacent to the first communication device has a data length shorter than the address assigned to the communication destination, and the first communication device identifies the communication destination. Notifying other determined unique information in association with the communication destination,
If the transmission source of the first frame transferred to the third communication device is the communication destination, generate a second frame in which the other unique information is set as the transmission source of the first frame,
The program according to appendix 1, wherein the first communication device is caused to execute a process of transferring the second frame to the third communication device.
(Appendix 3)
When the first frame is received from the second communication device, since the transmission source address of the first frame is the unique information, the transmission source of the first frame is the communication destination. Identify,
Note that the first communication device is caused to execute the process of generating the second frame by changing the unique information in the header of the first frame to the other unique information. 2. The program according to 2.
(Appendix 4)
The data length is shorter than the information of the target device to be communicated using the path from the first communication device to the third communication device, and the address assigned to the target device, and the first communication A setting value used by the device to identify the target device is notified to the second communication device;
When the target device receives the third frame transmitted to the communication destination, the setting value is set as the transmission source of the third frame, and the unique information is set as the destination of the third frame. Generate 4 frames,
The program according to appendix 2 or 3, characterized by causing the first communication device to execute a process of transferring the fourth frame to the second communication device.
(Appendix 5)
From the third communication device, the data length is shorter than the address assigned to the target device, and the third communication device obtains another setting value used for identifying the target device,
When the communication destination receives the fifth frame transmitted to the target device, the other unique information is set as the transmission source of the fifth frame, and the other setting value is set as the destination of the fifth frame. Generate a sixth frame with
The program according to appendix 4, wherein the first communication device is caused to execute a process of transmitting the sixth frame to the third communication device.
(Appendix 6)
In the first communication device,
When the control frame is received, the address of the communication destination, the address of the second communication device, the unique information, and the other unique information are transmitted as route information to the device with which the first communication device can communicate. Are stored in association with each other.
In another control frame for notifying a device adjacent to the first communication device of a device capable of communicating via the first communication device, the address of the communication destination and the other unique information are included.
The program according to any one of appendices 2 to 5, wherein a process of transmitting the other control frame is executed.
(Appendix 7)
A communication device that operates as a first communication device included in a network,
Used when identifying the communication destination by the second communication device and information on a communication destination capable of transmitting a frame from the adjacent second communication device via the second communication device. A receiving unit that receives a control frame including unique information that is information whose data length is shorter than the address assigned to
A controller configured to set the unique information as a destination of a data frame including data addressed to the communication destination when transmitting data to the communication destination via the second communication device;
A communication apparatus comprising: a transmission unit that transmits the data frame to the second communication apparatus.
(Appendix 8)
The control unit has a data length shorter than an address assigned to the communication destination, determines other unique information as information used when the first communication device identifies the communication destination,
The transmission unit transmits a frame in which the other unique information is associated with the communication destination to a third communication device adjacent to the first communication device,
When the transmission source of the first frame transferred to the third communication device is the communication destination, the control unit sets the second unique information as the transmission source of the first frame. Control to generate
The communication apparatus according to appendix 7, wherein the transmission unit transfers the second frame to the third communication apparatus.
(Appendix 9)
The controller is
When the receiving unit receives the first frame from the second communication device, since the transmission source address of the first frame is the unique information, the transmission source of the first frame is the communication Identify it as a destination,
The communication apparatus according to appendix 8, wherein the second frame is generated by changing the unique information in the header of the first frame to the other unique information.
(Appendix 10)
The control unit has a data length shorter than an address assigned to the target device for a target device that is a target of communication using a path from the first communication device to the third communication device, Determining a setting value used by the first communication device to identify the target device;
The transmission unit transmits a frame in which the information on the target device is associated with the set value to the second communication device,
When the receiving unit receives the third frame transmitted from the target device to the communication destination, the control unit sets the set value as a transmission source of the third frame, and the third frame To generate a fourth frame in which the unique information is set as the destination of
The communication apparatus according to appendix 8 or 9, wherein the transmission unit transfers the fourth frame to the second communication apparatus.
(Appendix 11)
The receiving unit receives, from the third communication device, another setting value that is shorter than the address assigned to the target device and that the third communication device uses to identify the target device. Receive a frame containing
When the receiving unit receives the fifth frame transmitted from the communication destination to the target device, the control unit sets the other unique information as a transmission source of the fifth frame, and Performing control for generating a sixth frame in which the other setting value is set as a frame destination;
The communication device according to appendix 10, wherein the transmission unit transmits the sixth frame to the third communication device.
(Appendix 12)
A storage unit for storing route information to a device with which the first communication device can communicate;
The controller is
When the receiving unit receives the control frame, the address of the communication destination, the address of the second communication device, the unique information, and the other unique information are associated with each other and stored in the storage unit,
In another control frame used for notifying a device communicable via the first communication device to a device adjacent to the first communication device, the other unique frame is associated with the address of the communication destination. Including information,
The communication device according to any one of appendices 8 to 11, wherein the transmission unit executes a process of transmitting the other control frame.
(Appendix 13)
In the first communication device included in the network,
Used when identifying the communication destination by the second communication device and information on a communication destination capable of transmitting a frame from the adjacent second communication device via the second communication device. Receiving a control frame including unique information, which is information whose data length is shorter than the address assigned to
When transmitting data to the communication destination via the second communication device, the unique information is set as a destination of a data frame including data addressed to the communication destination,
A communication method, comprising: executing a process of transmitting the data frame to the second communication device.
(Appendix 14)
As information used when the third communication device adjacent to the first communication device has a data length shorter than the address assigned to the communication destination, and the first communication device identifies the communication destination. Notifying other determined unique information in association with the communication destination,
If the transmission source of the first frame transferred to the third communication device is the communication destination, generate a second frame in which the other unique information is set as the transmission source of the first frame,
14. The communication method according to appendix 13, wherein the first communication device is caused to execute processing for transferring the second frame to the third communication device.

10 通信装置
11 受信部
12 ヘッダ解析部
13 転送処理部
14 アプリケーション処理部
15 フレーム生成部
16 送信部
20 制御部
21 抽出部
22 GDID管理部
23 テーブル管理部
24 経路情報生成部
25 タイマ
30 記憶部
31 リンクテーブル
32、61 ルーティングテーブル
33 転送先テーブル
100 プロセッサ
101 バス
102 PHYチップ
104 タイマIC
106 DRAM
107 フラッシュメモリ
108 無線モジュール
DESCRIPTION OF SYMBOLS 10 Communication apparatus 11 Receiving part 12 Header analysis part 13 Transfer processing part 14 Application processing part 15 Frame generation part 16 Transmission part 20 Control part 21 Extraction part 22 GDID management part 23 Table management part 24 Path information generation part 25 Timer 30 Storage part 31 Link table 32, 61 Routing table 33 Transfer destination table 100 Processor 101 Bus 102 PHY chip 104 Timer IC
106 DRAM
107 Flash memory 108 Wireless module

Claims (8)

ネットワーク中に含まれる第1の通信装置に、
隣接する第2の通信装置から、前記第2の通信装置を介してフレームを送信可能な通信先の情報と、前記第2の通信装置で前記通信先を識別する際に使用され、前記通信先に割り当てられたアドレスよりもデータ長が短い情報である一意情報を含む制御フレームを受信し、
前記通信先に前記第2の通信装置を介してデータを送信する際に、前記通信先宛のデータを含むデータフレームの宛先として前記一意情報を設定し、
前記データフレームを前記第2の通信装置に送信する
処理を実行させることを特徴とする通信プログラム。
In the first communication device included in the network,
Used when identifying the communication destination by the second communication device and information on a communication destination capable of transmitting a frame from the adjacent second communication device via the second communication device. Receiving a control frame including unique information, which is information whose data length is shorter than the address assigned to
When transmitting data to the communication destination via the second communication device, the unique information is set as a destination of a data frame including data addressed to the communication destination,
A communication program for executing a process of transmitting the data frame to the second communication device.
前記第1の通信装置に隣接する第3の通信装置に、前記通信先に割り当てられたアドレスよりもデータ長が短く、前記第1の通信装置が前記通信先を識別する際に使用する情報として決定した他の一意情報を、前記通信先に対応付けて通知し、
前記第3の通信装置に転送する第1のフレームの送信元が前記通信先である場合、前記第1のフレームの送信元として前記他の一意情報を設定した第2のフレームを生成し、
前記第2のフレームを前記第3の通信装置に転送する
処理を前記第1の通信装置に実行させることを特徴とする請求項1に記載のプログラム。
As information used when the third communication device adjacent to the first communication device has a data length shorter than the address assigned to the communication destination, and the first communication device identifies the communication destination. Notifying other determined unique information in association with the communication destination,
If the transmission source of the first frame transferred to the third communication device is the communication destination, generate a second frame in which the other unique information is set as the transmission source of the first frame,
The program according to claim 1, wherein the program causes the first communication device to execute a process of transferring the second frame to the third communication device.
前記第1のフレームを前記第2の通信装置から受信した場合、前記第1のフレームの送信元アドレスが前記一意情報であることから、前記第1のフレームの送信元が前記通信先であると特定し、
前記第1のフレームのヘッダ中の前記一意情報を、前記他の一意情報に変更することにより、前記第2のフレームを生成する
処理を前記第1の通信装置に実行させることを特徴とする請求項2に記載のプログラム。
When the first frame is received from the second communication device, since the transmission source address of the first frame is the unique information, the transmission source of the first frame is the communication destination. Identify,
The first communication device is caused to execute processing for generating the second frame by changing the unique information in the header of the first frame to the other unique information. Item 3. The program according to item 2.
前記第1の通信装置から前記第3の通信装置に至る経路を用いた通信の対象となる対象装置の情報と、前記対象装置に割り当てられたアドレスよりもデータ長が短く、前記第1の通信装置が前記対象装置を識別するために使用する設定値を、前記第2の通信装置に通知し、
前記対象装置が前記通信先に送信した第3のフレームを受信すると、前記第3のフレームの送信元として前記設定値を設定すると共に、前記第3のフレームの宛先として前記一意情報を設定した第4のフレームを生成し、
前記第4のフレームを前記第2の通信装置に転送する
処理を前記第1の通信装置に実行させることを特徴とする請求項2または3に記載のプログラム。
The data length is shorter than the information of the target device to be communicated using the path from the first communication device to the third communication device, and the address assigned to the target device, and the first communication A setting value used by the device to identify the target device is notified to the second communication device;
When the target device receives the third frame transmitted to the communication destination, the setting value is set as the transmission source of the third frame, and the unique information is set as the destination of the third frame. Generate 4 frames,
4. The program according to claim 2, wherein the program causes the first communication device to execute a process of transferring the fourth frame to the second communication device. 5.
前記第3の通信装置から、前記対象装置に割り当てられたアドレスよりもデータ長が短く、前記第3の通信装置が前記対象装置を識別するために使用する他の設定値を取得し、
前記通信先が前記対象装置に送信した第5のフレームを受信すると、前記第5のフレームの送信元として前記他の一意情報を設定すると共に、前記第5のフレームの宛先として前記他の設定値を設定した第6のフレームを生成し、
前記第6のフレームを前記第3の通信装置に送信する
処理を前記第1の通信装置に実行させることを特徴とする請求項4に記載のプログラム。
From the third communication device, the data length is shorter than the address assigned to the target device, and the third communication device obtains another setting value used for identifying the target device,
When the communication destination receives the fifth frame transmitted to the target device, the other unique information is set as the transmission source of the fifth frame, and the other setting value is set as the destination of the fifth frame. Generate a sixth frame with
5. The program according to claim 4, wherein the program causes the first communication apparatus to execute a process of transmitting the sixth frame to the third communication apparatus.
前記第1の通信装置に、
前記制御フレームを受信すると、前記第1の通信装置が通信可能な装置への経路情報として、前記通信先のアドレス、前記第2の通信装置のアドレス、前記一意情報、および、前記他の一意情報を対応付けて記憶し、
前記第1の通信装置を介して通信可能な装置を前記第1の通信装置に隣接する装置に通知するための他の制御フレームに、前記通信先のアドレスと前記他の一意情報を含め、
前記他の制御フレームを送信する
処理を実行させることを特徴とする請求項2〜5のいずれか1項に記載のプログラム。
In the first communication device,
When the control frame is received, the address of the communication destination, the address of the second communication device, the unique information, and the other unique information are transmitted as route information to the device with which the first communication device can communicate. Are stored in association with each other.
In another control frame for notifying a device adjacent to the first communication device of a device capable of communicating via the first communication device, the address of the communication destination and the other unique information are included.
The program according to any one of claims 2 to 5, wherein a process of transmitting the other control frame is executed.
ネットワーク中に含まれる第1の通信装置として動作する通信装置であって、
隣接する第2の通信装置から、前記第2の通信装置を介してフレームを送信可能な通信先の情報と、前記第2の通信装置で前記通信先を識別する際に使用され、前記通信先に割り当てられたアドレスよりもデータ長が短い情報である一意情報を含む制御フレームを受信する受信部と、
前記通信先に前記第2の通信装置を介してデータを送信する際に、前記通信先宛のデータを含むデータフレームの宛先として前記一意情報を設定する制御部と、
前記データフレームを前記第2の通信装置に送信する送信部
を備えることを特徴とする通信装置。
A communication device that operates as a first communication device included in a network,
Used when identifying the communication destination by the second communication device and information on a communication destination capable of transmitting a frame from the adjacent second communication device via the second communication device. A receiving unit that receives a control frame including unique information that is information whose data length is shorter than the address assigned to
A controller configured to set the unique information as a destination of a data frame including data addressed to the communication destination when transmitting data to the communication destination via the second communication device;
A communication apparatus comprising: a transmission unit that transmits the data frame to the second communication apparatus.
ネットワーク中に含まれる第1の通信装置に、
隣接する第2の通信装置から、前記第2の通信装置を介してフレームを送信可能な通信先の情報と、前記第2の通信装置で前記通信先を識別する際に使用され、前記通信先に割り当てられたアドレスよりもデータ長が短い情報である一意情報を含む制御フレームを受信し、
前記通信先に前記第2の通信装置を介してデータを送信する際に、前記通信先宛のデータを含むデータフレームの宛先として前記一意情報を設定し、
前記データフレームを前記第2の通信装置に送信する
処理を実行させることを特徴とする通信方法。
In the first communication device included in the network,
Used when identifying the communication destination by the second communication device and information on a communication destination capable of transmitting a frame from the adjacent second communication device via the second communication device. Receiving a control frame including unique information, which is information whose data length is shorter than the address assigned to
When transmitting data to the communication destination via the second communication device, the unique information is set as a destination of a data frame including data addressed to the communication destination,
A communication method, comprising: executing a process of transmitting the data frame to the second communication device.
JP2015029438A 2015-02-18 2015-02-18 COMMUNICATION PROGRAM, COMMUNICATION DEVICE, AND COMMUNICATION METHOD Expired - Fee Related JP6428349B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015029438A JP6428349B2 (en) 2015-02-18 2015-02-18 COMMUNICATION PROGRAM, COMMUNICATION DEVICE, AND COMMUNICATION METHOD

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015029438A JP6428349B2 (en) 2015-02-18 2015-02-18 COMMUNICATION PROGRAM, COMMUNICATION DEVICE, AND COMMUNICATION METHOD

Publications (2)

Publication Number Publication Date
JP2016152533A true JP2016152533A (en) 2016-08-22
JP6428349B2 JP6428349B2 (en) 2018-11-28

Family

ID=56696844

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015029438A Expired - Fee Related JP6428349B2 (en) 2015-02-18 2015-02-18 COMMUNICATION PROGRAM, COMMUNICATION DEVICE, AND COMMUNICATION METHOD

Country Status (1)

Country Link
JP (1) JP6428349B2 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11275106A (en) * 1998-03-23 1999-10-08 Toshiba Corp Communications system
JP2006060515A (en) * 2004-08-20 2006-03-02 Hitachi Ltd Radio communication system
JP2008301277A (en) * 2007-05-31 2008-12-11 Oki Electric Ind Co Ltd Communication frame distribution system
JP2012501109A (en) * 2008-08-22 2012-01-12 クゥアルコム・インコーポレイテッド Addressing scheme for wireless communication
JP2012209741A (en) * 2011-03-29 2012-10-25 Fujitsu Ltd Communication method and communication apparatus
JP2015503876A (en) * 2012-01-12 2015-02-02 ▲華▼▲為▼▲終▼端有限公司 Data communication method, apparatus, and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11275106A (en) * 1998-03-23 1999-10-08 Toshiba Corp Communications system
JP2006060515A (en) * 2004-08-20 2006-03-02 Hitachi Ltd Radio communication system
JP2008301277A (en) * 2007-05-31 2008-12-11 Oki Electric Ind Co Ltd Communication frame distribution system
JP2012501109A (en) * 2008-08-22 2012-01-12 クゥアルコム・インコーポレイテッド Addressing scheme for wireless communication
JP2012209741A (en) * 2011-03-29 2012-10-25 Fujitsu Ltd Communication method and communication apparatus
JP2015503876A (en) * 2012-01-12 2015-02-02 ▲華▼▲為▼▲終▼端有限公司 Data communication method, apparatus, and system

Also Published As

Publication number Publication date
JP6428349B2 (en) 2018-11-28

Similar Documents

Publication Publication Date Title
JP5750973B2 (en) Communication method and communication apparatus
US7778235B2 (en) Compression of a routing header in a packet by a mobile router in an ad hoc network
JP6195014B2 (en) COMMUNICATION SYSTEM, COMMUNICATION METHOD, RELAY DEVICE, AND COMMUNICATION PROGRAM
US20090003298A1 (en) Six-address scheme for multiple hop forwarding in wireless mesh networks
JP5839041B2 (en) Node device and communication method
CN103763750B (en) Method for fast achieving packet forwarding in wireless ad hoc network of TDMA protocol
JP2007194763A (en) Network system
JP5958293B2 (en) COMMUNICATION METHOD, COMMUNICATION PROGRAM, AND NODE DEVICE
CN113518405A (en) Mesh network system
JP5445593B2 (en) Wireless communication apparatus and wireless communication program
JP2006279168A (en) Communication apparatus for configuring adhoc network, bridge apparatus, and communication system
JP4904396B2 (en) Method for generating extended route request message and method for generating extended route response message for route discovery procedure
JP5673840B2 (en) Node device and communication method
JP6428349B2 (en) COMMUNICATION PROGRAM, COMMUNICATION DEVICE, AND COMMUNICATION METHOD
US9300583B2 (en) Maintaining routing information in memory constrained routers
Mule et al. Proactive source routing protocol for opportunistic data forwarding in MANETs
JP4978217B2 (en) Communication apparatus and communication system
KR102425504B1 (en) P2P routing method and central apparatus in multihop wireless network
JP4913208B2 (en) Address resolution method
JP6171868B2 (en) Node device, path switching method, and program
JPWO2012132013A1 (en) Node, link forming method and link forming program
US11405775B2 (en) Three-address scheme for forwarding frames in a wireless mesh network
JP3989503B2 (en) Network repeater
KR101394350B1 (en) An apparatus for routing in a network and a method thereof
JP2009010689A (en) Radio network, radio device used in the same, program for making computer execute selection of transfer terminal in the same and computer readable recording medium with the program recorded thereon

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20171215

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20180920

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: 20181002

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20181015

R150 Certificate of patent or registration of utility model

Ref document number: 6428349

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees