JP4019666B2 - Gateway device and information device - Google Patents

Gateway device and information device Download PDF

Info

Publication number
JP4019666B2
JP4019666B2 JP2001249741A JP2001249741A JP4019666B2 JP 4019666 B2 JP4019666 B2 JP 4019666B2 JP 2001249741 A JP2001249741 A JP 2001249741A JP 2001249741 A JP2001249741 A JP 2001249741A JP 4019666 B2 JP4019666 B2 JP 4019666B2
Authority
JP
Japan
Prior art keywords
network
ipv6
address
gateway
data
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.)
Expired - Fee Related
Application number
JP2001249741A
Other languages
Japanese (ja)
Other versions
JP2003060664A (en
Inventor
友哉 尾崎
禎司 桑原
一三夫 中川
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP2001249741A priority Critical patent/JP4019666B2/en
Priority to US10/199,291 priority patent/US7339895B2/en
Priority to CN02143739.4A priority patent/CN1194512C/en
Publication of JP2003060664A publication Critical patent/JP2003060664A/en
Application granted granted Critical
Publication of JP4019666B2 publication Critical patent/JP4019666B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Description

【0001】
【発明の属する技術分野】
本発明は、IPv6プロトコルを用いて、IPv6プロトコルをサポートしないエアコンなどの機器と、インターネットなどのIPv6ネットワークに接続された機器が通信を行うための記述に関する。
【0002】
【従来の技術】
近年、通信の分野においては、インターネットの標準プロトコルであるIPプロトコルが事実上の標準プロトコルとなってきており、家庭内でもIPプロトコルが使われるようになってきている。しかしながら、IPプロトコルをサポートしない機器も多く存在している。このような機器がIPプロトコルで接続された機器と通信を行うための機器としてゲートウェイ装置があり、その例として、特願平11−177916号公報がある。特願平11−177916号公報では、IEEE1394ネットワークで接続されたHAVi(Home Audio/Video Interoperability)機器と、IPネットワークに接続された機器が、ゲートウェイ装置を介して互いに通信できるようにしている。
【0003】
【発明が解決しようとする課題】
上記のような技術では、IP識別子が一意に定まらない、つまり、機器の接続を行うためにIP識別子が変わる可能性がある。具体的には、上記技術では、IP識別子として、IPアドレスとポート番号の組合せを使用している。そのため、実際には、HAViに接続された機器を、IPネットワークに接続された機器から特定することが困難であるという問題がある。
【0004】
そこで、本発明の目的は、IPネットワーク機能以外のネットワーク(以下、非IPネットワーク)に接続された機器(以下、非IP機器)が、IPネットワークに接続された機器(以下、IP機器)と通信できるようにするだけでなく、IPv6(Internet Protocol Version6)アドレスを用いることで非IP機器にもIPv6アドレスを固定的に割り振り、IP機器と非IP機器の間の通信を容易にすることにある。
【0005】
【課題を解決するための手段】
上記課題を解決するため、本発明では、非IPネットワークに接続された非IP機器と、IPv6ネットワーク、非IPネットワークの両方に接続しているゲートウェイ装置からなるシステムにおいて、非IP機器に、IPv6用インタフェースIDを保持する手段と、前記インタフェースID、該非IP機器が接続されているネットワーク上での識別子であるネットワーク識別子を送出する手段を設けるようにしている。そして、ゲートウェイ機器に、非IP機器から送出されるインタフェースIDとネットワーク識別子を受信する機器情報取得手段を設けるようにしている。さらに、ゲートウェイ装置には、該ゲートウェイ装置が接続されれているIPネットワークのネットワークIDを取得するネットワークID取得手段を設け、前記ネットワークID取得手段により取得したネットワークIDと、前記機器情報取得手段により取得したインタフェースIDからIPv6アドレスを生成するようにしている。そして、生成したIPv6アドレスと、前記機器情報取得手段により取得したネットワーク識別子の対応を管理するアドレス変換手段を設けるようにしている。
【0006】
さらに、ゲートウェイ装置には、IPv6で定められているNDP(Neighbor Discovery Protocol)のNS(Neighborsolicitation)パケットを受信したとき、NSパケット内のターゲットアドレスで指定されるIPv6アドレスが、前記アドレス変換手段により管理されるIPv6アドレスの中にあるか否かをチェックし、存在する場合、NA(Neighbor Advertisement)パケットを返信するようにしている。
【0007】
さらにゲートウェイ装置には、IPネットワークから受信したIPパケットを非IPネットワークプロトコルに変換して非IP機器に送信する手段と、非IPネットワークから受信した非IPデータをIPプロトコルに変換してIPネットワークに送出する手段を設け、非IP機器とIP機器が互いに通信できるようにしている。このとき、ゲートウェイ装置と非IP機器との間で通信するデータには、通信先のIP機器のIPv6アドレスを含めることにより、非IP機器からIP機器を特定できるようにしている。
【0008】
また、本発明では、非IPネットワークに接続された非IP機器が非IPネットワークから削除された場合、アドレス変換手段により管理しているIPv6アドレスと、前記機器情報取得手段により取得したネットワーク識別子の対応を削除するようにしている。
【0009】
さらに、別の発明では、非IPネットワークに接続された非IP機器と、IPv6ネットワーク、非IPネットワークの両方に接続しているゲートウェイ装置からなるシステムにおいて、非IP機器に、機器の識別情報(機器識別情報)を保持する手段と、前記機器識別情報、および該非IP機器が接続されているネットワーク上での識別子であるネットワーク識別子を送出する手段を設けるようにしている。そして、ゲートウェイ機器に、非IP機器から送出される機器識別情報とネットワーク識別子を受信する機器情報取得手段を設けるようにしている。さらに、ゲートウェイ装置には、該ゲートウェイ装置が接続されれているIPネットワークのネットワークIDを取得するネットワークID取得手段を設け、前記ネットワークID取得手段により取得したネットワークIDを用いて、複数のIPv6アドレスを生成するようにしている。そして、前記機器情報取得手段により取得した機器識別情報を用いて、前記生成したIPv6アドレスのひとつを割り当てその対応を管理するアドレス変換手段を設けるようにしている。アドレス変換手段では、同じ機器識別情報を有する機器には常に同一のIPv6アドレスを割り当てるようにしている。 さらに、ゲートウェイ装置には、IPv6で定められているNDP(Neighbor Discovery Protocol)のNS(Neighbor solicitation)パケットを受信したとき、NSパケット内のターゲットアドレスで指定されるIPv6アドレスが、前記アドレス変換手段により管理されるIPv6アドレスの中にあるか否かをチェックし、存在する場合、NA(Neighbor Advertisement)パケットを返信するようにしている。
【0010】
さらにゲートウェイ装置には、IPネットワークから受信したIPパケットを非IPネットワークプロトコルに変換して非IP機器に送信する手段と、非IPネットワークから受信した非IPデータをIPプロトコルに変換してIPネットワークに送出する手段を設け、非IP機器とIP機器が互いに通信できるようにしている。このとき、ゲートウェイ装置と非IP機器との間で通信するデータには、通信先のIP機器のIPv6アドレスを含めることにより、非IP機器からIP機器を特定できるようにしている。
【0011】
【発明の実施の形態】
本発明の一実施例を以下図面を用いて説明する。
まず、本発明の概要について、図1を用いて説明する。
図1において、100は非IP機器である。ここで、非IP機器とは、IPv6(Internet Protocol Version6)をサポートしないが、何らかのネットワークに接続されている機器を意味する。非IP機器100の例としては、ECHONET(Energy Conservation and Homecare Network)に接続された冷蔵庫やエアコンなどがある。110はゲートウェイである。ゲートウェイ110は非IP機器100と非IPネットワーク200で接続される。非IPネットワーク200の例として、ECHONETがある。また、ゲートウェイ110は、IPv6ネットワーク210を介して、IPv6ルータ120と接続される。IPv6ルータ120はインターネット220に接続している。さらに、ゲートウェイは、IPv6ネットワーク230を介して、家庭内のIPv6機器150と接続されている。IPv6機器150の例としてはパソコンなどがある。
【0012】
本発明は、上記のような機器、ネットワークで構成されるシステムにおいて、インターネット220に接続された機器(たとえば携帯電話130やPC140)や家庭内のIPv6機器150と、家庭内にある非IP機器100(たとえば冷蔵庫、エアコン、電子レンジなど)が通信を行うための仕組みを提供する。
なお、以下の実施例では、ゲートウェイ110とIPv6ルータ120は別々の機器として説明するが、これら2つの機能をひとつの筐体に入れても何ら問題はない。
以下、非IP機器100としてエアコンを、非IPネットワーク150としてECHONETを例にとって説明する。しかしながら、本発明は非IP機器や非IPネットワークをこれらの機器に限定するものではないことは言うまでもない。
【0013】
次に、各機器のハードウェア構成について説明する。なお、IPv6ルータ120、携帯電話130、PC140、IPv6機器150は一般的な機器であるため、これらの機器についての説明は省略する。
まず非IP機器100のハードウェア構成について、図2を用いて説明する。
図中、101はCPUであり、周辺部の制御、データの処理や通信に関わる各種プログラムの実行を行う。102は、記憶部であり、たとえば、ROM(Read Only Memory)、RAM(Random Access Memory)、フラッシュメモリである。本実施例で使用する各種プログラムや後で説明するインタフェースIDなどのデータを記憶する。103は通信制御部であり、例えばECHONETを介した通信の制御を行う。104はエアコン部であり、エアコンとしての動作を制御する。
【0014】
次に、ゲートウェイ110のハードウェア構成について、図3を用いて説明する。
図中、111はCPUであり、周辺部の制御、データの処理や通信に関わる各種プログラムの実行を行う。112は、主記憶部であり、たとえば、ROM(Read Only Memory)、RAM(Random Access Memory)、フラッシュメモリ、ハードディスクなどである。本実施例で使用する各種プログラムや後で説明する変換テーブなどのデータを記憶する。103は非IP通信制御部であり、例えばECHONETを介した通信の制御を行う。104はIP通信制御部であり、IPv6を用いた通信の制御を行う。
【0015】
次に非IP機器100が保持するインタフェースID450について、図4を用いて説明する。
インタフェースIDは64ビットのデータであり、機器を識別するために用いる。なお、インタフェースIDのつけ方は、IEEEの”Guidelines for 64−bit Global Identifier (EUI−64) Registration Authority”で規定されている。非IP機器100は、記憶部102にインタフェースID450を保持する。
【0016】
次にゲートウェイが保持する変換テーブル400について、図5を用いて説明する。
変換テーブル400は、非IPネットワーク200における非IP機器100のネットワーク上の識別子(ローカルアドレス)と、非IP機器100に割り当てられたIPv6アドレスの対応をとるために使用する。
変換テーブル400は、1つ以上の変換レコード410によって構成される。各変換レコード410は、ローカルアドレス411とIPv6アドレス412で構成される。ローカルアドレス411は、非IPネットワーク200に接続された機器を一意に識別するための識別子であり、ECHONETの場合ECHONETアドレスがこれに相当する。IPv6アドレス412には、128ビットのIPv6アドレスが格納される。
【0017】
次に、非IP機器100が非IPネットワーク200に接続されたときに(または任意のタイミングで)ゲートウェイ110に送出する登録データ700について、図6を用いて説明する。
登録データ700は、ローカルアドレス701とインタフェースID702で構成する。ローカルアドレス701は、非IP機器100の非IPネットワーク200における識別子であり、ECHONETの場合ECHONETアドレスがこれに相当する。また、インタフェースID702は、非IP機器100が保持するインタフェースID450と同じものである。
【0018】
次に、非IP機器100が非IPネットワーク200に接続されたときに(または任意のタイミングで)行う登録処理について、図7を用いて説明する。
登録処理は、非IP機器100におけるインタフェースID送出処理510と、ゲートウェイ110における変換テーブル登録処理500からなる。
非IP機器100は、非IPネットワークに接続されたとき(または任意のタイミングで)、インタフェースID送出処理510を行う。インタフェースID送出処理510では、記憶部102に記録されているインタフェースID450を読み出し、登録データ700のインタフェースID702にセットする。また、非IP機器100のローカルアドレスを、たとえば通信制御部103から取得し、登録データ700のローカルアドレス701にセットする。そして、登録データ700をゲートウェイ110宛てに送信する(ステップ511)。
【0019】
ゲートウェイ110では、非IP機器100からのインタフェースIDの送出を検出すると、変換テーブル登録処理500を起動する。変換テーブル登録処理500では、まず、非IP機器100から送出された登録データ700を受信する(ステップ501)。次に、IPv6におけるネットワークIDをすでに取得済みか否かを判定する(ステップ502)。IPv6におけるネットワークIDを取得済みでない場合、IPv6ルータ130からネットワークIDを取得し、記憶部112に記憶する。ネットワークIDを取得済みの場合、ステップ504に進む。ステップ501で受信した登録データ700のインタフェースID702と、ステップ503で取得したネットワークIDまたは以前に取得し記憶部112に保持しているネットワークIDからIPv6アドレスを生成する。そして、ステップ501で受信した登録データ700のローカルアドレス701をローカルアドレス411に、生成したIPv6アドレスをIPv6アドレス412にそれぞれ設定した変換レコード410を、変換テーブル400に追加する(ステップ504)。
【0020】
以上の処理により、ゲートウェイ110において、非IP機器100にIPv6アドレスを割り当てることができる。このとき、非IP機器100からインタフェースIDを取得しているため、ゲートウェイ110が同じIPネットワークに接続されている限り(つまり、ゲートウェイ110が接続されているIPネットワークのネットワークIDが変わらない限り)、常に同じIPv6を割り当てることが可能になる。
【0021】
次に、家庭内にあるIPv6機器150やインターネットに接続された携帯電話130、パソコン140と、非IP機器100がデータの送受信を行うための処理について説明する。インターネット220に接続された携帯電話130、パソコン140からのデータはIPv6ルータ120に届くので、ここではIPv6ルータ120がゲートウェイ110にデータを送信する方法について説明する。なお、家庭内のIPv6機器150のが非IP機器100と通信を行う場合もIPv6ルータ120と同様の方法となる。
【0022】
IPv6の通信データ(IPv6パケット)には、IPv6のアドレスであて先が指定される。従って、IPv6ルータ120がゲートウェイ110に接続された非IP機器100にデータを送信するためには、IPv6の下位層のアドレス(たとえばイーサネットアドレス)が必要になる。IPv6では、IPv6の下位層のアドレスをもとめる方法として、NDP(Neighbor Discovery Protocol)がある。NDPの詳細に関しては、RFC2461 Neighbor Discovery for IP Version6 (IPv6)に述べられている。ゲートウェイ110がNDPに応答することにより、ゲートウェイ110に接続してある非IP機器100宛てのIPv6パケットがゲートウェイ110に届くようになる。以下、NDPに関するゲートウェイ110のNDP応答処理530について、図8のフローチャートを用いて説明する。NDP応答処理530は、ゲートウェイ110がNDPのNS(Neighbor solicitation)パケットを検出すると起動する。
【0023】
NDP応答処理530では、まず、NSパケットを受信する(ステップ531)。次に、NSパケットのターゲットアドレスで指定されるIPv6アドレスと同じIPv6アドレス412を持つ変換レコード410が変換テーブル400に存在するかチェックする(ステップ532)。存在する場合、ゲートウェイ110のIP通信制御部104が有する下位層アドレスをNA(neighbor adviertizement)に設定して、NSパケットの送信元に送出する(ステップ533)。存在しない場合は何もしない。
【0024】
以上の処理により、ゲートウェイ110が非IP機器100の代わりにNDPに応答し、非IP機器100宛てのIPv6パケットがゲートウェイ110に届くようになる。ゲートウェイはこれを非IPネットワーク200のプロトコルを用いてで非IP機器100に送出する。以下では、このプロトコル変換処理について図9を用いて説明する。
【0025】
家庭内のIPv6機器150、インタネットに接続された携帯電話130やパソコン140と、非IP機器100が通信を行うとき、以下の2種類の通信データを使用する。
まず、1つ目のデータである、ゲートウェイ110と非IP機器100が送受信するローカルデータパケット450について説明する。ローカルデータパケット450は、ローカルヘッダ451、IPv6アドレス452、データ453で構成される。ローカルヘッダ451は、例えば、ECHONETにおけるECHONETヘッダ、送信元アドレス、相手先先アドレスを含む情報である。IPv6アドレス452は、通信先の機器(例えば、家庭内のIPv6機器150、インタネットに接続された携帯電話130やパソコン140)のIPv6アドレスである。データ453は、非IP機器100と通信先の機器との間で受け渡しを行う情報を含むデータである。
【0026】
次に、2つ目のデータである、ゲートウェイ110とIPv6機器150やIPv6ルータ130が送受信するIPv6データパケット460について説明する。IPv6データパケット460は、IPv6ヘッダ461とデータ462で構成される。IPv6ヘッダはIPv6プロトコルが規定するヘッダであり、送信先IPv6アドレス、送信元IPv6アドレスを含む。データ462は、非IP機器100通信先の機器との間で受け渡しを行う情報を含むデータである。
【0027】
プロトコル変換処理540では、上記2種類のデータの変換を行う。つまり、非IPネットワーク200から受信したローカルデータパケット450をIPv6データパケット460に変換してIPv6ネットワーク210、230に送出する(プロトコル変換処理550)、または、IPv6ネットワーク210、230から受信したIPv6データパケット460をローカルデータパケット450に変換して非IPネットワーク200に送出する(プロトコル変換処理560)といった処理を行う。
【0028】
なお、IPv6パケット460とローカルパケット450は必ずしも1対1に対応しなくてもよい。例えば、HTTP(HyperText Trasnfer Protocol)のHTTP Request Message、HTTP Response Messageの単位で変換してもよい。また、複数のIPv6データパケット460をひとつのローカルデータパケット450としてもよい。また、ひとつのIPv6データパケット460を複数のローカルデータパケット450に分割してもよい。さらに、複数のローカルデータパケット450をひとつのIPv6データパケット460としてもよい。また、ひとつのローカルデータパケット450を複数のIPv6データパケット460に分割してもよい。また、IPv6パケット460に含まれるデータとローカルパケット450は、互いに、それぞれのデータを加工したものを入れてもよい。
【0029】
次に、IPv6データパケット460からローカルデータパケット450へのプロトコル変換処理550の詳細について、図10のフローチャートを用いて説明する。プロトコル変換処理550はゲートウェイ110がIPv6データパケット460を受信したときに起動される。
プロトコル変換処理550では、まず、到着したIPv6データパケット460を読み込む(ステップ551)。次に、読み込んだIPv6データパケット460のIPv6ヘッダ461に含まれる送信先IPv6アドレスと同じIPv6アドレス412を持つ変換レコード410を変換テーブル400から探し、その変換レコード410のローカルアドレス411を読み出す(ステップ552)。次に、ステップ552で読み出したローカルアドレスをローカルデータパケット450のローカルヘッダ451にあて先アドレスとして設定するとともに、受信したIPv6データパケット460の送信先IPv6アドレスをローカルデータパケット450のIv6アドレス452に設定する。そして、IPv6データパケット460のデータ462の少なくとも一部を含むデータまたはデータ462を加工したデータをローカルデータパケット450のデータ453に格納し、非IPネットワーク200に送出する(ステップ553)。
【0030】
次に、ローカルデータパケット450からIPv6データパケット460へのプロトコル変換処理560の詳細について、図11のフローチャートを用いて説明する。プロトコル変換処理560はゲートウェイ110がローカルデータパケット450を受信したときに起動される。
プロトコル変換処理560では、まず、到着したローカルデータパケット450を読み込む(ステップ561)。次に、ステップ451で読み込んだローカルデータパケットのIPv6アドレス452をIPv6データパケット460のIPv6ヘッダ461にあて先として設定する(ステップ562)。そして、ローカルデータパケット450のデータ453の少なくとも一部を含むデータまたはデータ453を加工したデータを、IPv6データパケットのデータ462に格納し、IPv6ネットワーク210または230に送出する(ステップ563)。
【0031】
以上の処理により、非IPネットワーク200に接続された非IP機器100と、IPv6ネットワークに接続されたIPv6機器150やインターネットに接続された携帯電話130、パソコン140が互いに通信を行うことができるようになる。このとき、インタフェースID送出処理510と、ゲートウェイ110における変換テーブル登録処理500により、非IP機器100には常に同じIPv6アドレスが割り当てられるため、IPv6ネットワークに接続されたIPv6機器150やインターネットに接続された携帯電話130、パソコン140から家庭内にある非IPv6機器100にアクセスする場合、常に同じIPv6アドレスを使用して通信ができるという利点がある。
【0032】
次に、非IPネットワーク200に接続された非IP機器100が非IPネットワーク200からはずされた場合にゲートウェイ110で実行される登録削除処理570について、図12を用いて説明する。
登録削除処理570では、まず、はずされた非IP機器100のローカルアドレスを特定する(ステップ571)。なお、はずされた非IP機器100のローカルアドレスを検出する方法としては、変換テーブル400におけるすべての変換レコード410のローカルアドレス411が非IPネットワーク200に接続されているかチェックする方法、非IP機器100が非IPネットワーク200からはずされる直前に、ゲートウェイにはずされることを通知する方法などがある。次に、ステップ571で特定したローカルアドレスを有する変換レコード410を変換テーブル400から削除する(ステップ572)。
【0033】
以上の処理により、非IPネットワーク200からはずされた非IP機器100に関する情報が変換テーブル400から削除されるため、ゲートウェイ100がはずされた非IP機器100にデータを送信することがなくなる。
なお、非IPネットワーク200に接続された非IP機器が削除された場合、登録削除処理570の代わりにゲートウェイ110で再登録要求処理580を実行するようにしてもよい。
【0034】
再登録要求処理580では、変換テーブル400に登録されているすべての変換レコード910をいったん削除する(ステップ581)。非IPネットワーク200に接続されているすべての非IP機器100に対して、登録要求を送出する。登録要求を受信した非IP機器100は、インタフェースID送出処理510を行う(ステップ583)。非IPネットワーク200に接続されているすべての非IP機器100に対してステップ583の処理を行ったら、処理を終了する(ステップ582)。
【0035】
以上の実施例においては、非IP機器100がインタフェースID450を保持し、非IPネットワーク200に接続された場合に、非IP機器100でインタフェースID送出処理510を実行し、ゲートウェイ110における変換テーブル登録処理500を行うことにより、非IP機器100には常に同じIPv6アドレスが割り当てられるようにする例を説明したが、本発明の別の実施例では、必ずしもインタフェースID450を保持する必要はない。以下、その実施例を説明する。
【0036】
まず、変換テーブル400の代わりに使用する変換テーブル900について、図14を用いて説明する。
変換テーブル900は、1つ以上の変換レコード910によって構成される。各変換レコード910は、ローカルアドレス911、IPv6アドレス912、デバイス識別子913で構成される。ローカルアドレス911は、変換テーブル400における変換レコード410のローカルアドレス411と同じである。IPv6アドレス912は、変換テーブル400における変換レコード410のIPv6アドレス411と同じである。デバイス識別子913は、非IP機器100を識別するための情報である。デバイス識別子913としては、たとえば、ECHONETの機器オブジェクトスーパークラスプロパティで定義されるメーカコード、事業場コード、商品コード、製造番号である。
【0037】
変換テーブル900には、あらかじめ複数の変換レコード910が登録しておく。このとき、各460変換レコード910のIPv6アドレス912には、あらかじめIPv6アドレスを入れておくようにする。なお、ここで使用するIPv6アドレスは、ゲートウェイが接続されているIPv6ネットワーク210ネットワークIDと、ランダムな数値あるいは適当な数値の並びから作成する。また、変換テーブル900への変換レコードの登録は、ゲートウェイ110の起動時に実行するようにすればよい。
【0038】
次に、登録データ700の代わりに使用する登録データ710について、図15を用いて説明する。
登録データ710は、ローカルアドレス711とデバイス識別子712で構成する。ローカルアドレス711は、登録データ700におけるローカルアドレス711と同じである。デバイス識別子712は、非IP機器100を識別するための情報であり、たとえば、ECHONETの機器オブジェクトスーパークラスプロパティで定義されるメーカコード、事業場コード、商品コード、製造番号である。
【0039】
次に、非IPネットワーク200に接続された場合に、非IP機器100においてインタフェースID送出処理510の代わりに実行するデバイス情報送出処理810、およびゲートウェイ110において変換テーブル登録処理500の代わりに実行する変換テール部登録処理800について、図16を用いて説明する。
【0040】
非IP機器100は、非IPネットワークに接続されたとき(または任意のタイミングで)、デバイス情報送出処理810を行う。デバイス情報送出処理810では、記憶部102に記録されているデバイス識別子を読み出し、登録データ710のデバイス識別子712にセットする。また、非IP機器100のローカルアドレスを、たとえば通信制御部103から取得し、登録データ710のローカルアドレス711にセットする。そして、登録データ710をゲートウェイ110宛てに送信する(ステップ811)。
【0041】
ゲートウェイ110では、非IP機器100からの登録データ710の送出を検出すると、変換テーブル登録処理800を起動する。変換テーブル登録処理800では、まず、非IP機器100から送出された登録データ710を受信する(ステップ801)。次に、ステップ801で受信した登録データ710のデバイス識別子712と同じデバイス識別子913を有する変換レコード910が変換テーブル900に登録されているか否かをチェックする(ステップ802)。登録されている場合、登録データ710のデバイス識別子712と同じデバイス識別子913を有する変換レコード910のローカルアドレス911に、ステップ802で受信した登録データ710のローカルアドレス711をセットする(ステップ804)。登録されていない場合、変換テーブル900でまだデバイス識別子913がセットされていない変換レコード910を探し、その変換レコードのローカルアドレス911にステップ801で受信した登録データ710のローカルアドレス711を、デバイス識別子913にデバイス識別子712をそれぞれセットする。
【0042】
また、NDP応答処理530においては、ステップ532の処理を、NSパケットのターゲットアドレスで指定されるIPv6アドレスと同じIPv6アドレス412を持つ変換レコード910が変換テーブル900に存在するかチェックするように変更する。さらに、プロトコル変換処理550では、ステップ552を、読み込んだIPv6データパケット460のIPv6ヘッダ461に含まれる送信先IPv6アドレスと同じIPv6アドレス412を持つ変換レコード910を変換テーブル900から探し、その変換レコード910のローカルアドレス911を読み出すようにする。
【0043】
また、非IPネットワーク200に接続された非IP機器100が非IPネットワークからはずされた場合には、登録削除処理570のステップ572において、ステップ571で特定したローカルアドレスを有する変換レコード910のローカルアドレス911を無効にするようにする。あるいは、再登録要求処理580のステップ581において、変換テーブル900に登録されているすべての変換レコード910のローカルアドレス911をすべて無効にするようにする。
【0044】
以上の処理により、先に説明した実施例と同様、非IPネットワーク200に接続された非IP機器100と、IPv6ネットワークに接続されたIPv6機器150やインターネットに接続された携帯電話130、パソコン140が互いに通信を行うことができるようになる。このとき、インタフェースID送出処理510と、ゲートウェイ110における変換テーブル登録処理500により、非IP機器100には常に同じIPv6アドレスが割り当てられるため、IPv6ネットワークに接続されたIPv6機器150やインターネットに接続された携帯電話130、パソコン140から家庭内にある非IPv6機器100にアクセスする場合、常に同じIPv6アドレスを使用して通信ができるという利点がある。
【0045】
【発明の効果】
以上説明したように、本発明によれば、ゲートウェイを介して、非IP機器(たとえば家庭内のエコーネットに接続されたエアコン)と、インターネットに接続された携帯電話やパソコンとがIPv6プロトコルを使用して通信できるようになる。このとき、非IP機器には、接続するIPv6ネットワークIPv6アドレスは、非IP機器が接続されるゲートウェイが変わらない限り常に同じアドレスになるため、機器の識別が容易になるという利点がある。また、携帯電話やパソコンからは常に同じIPv6アドレスを用いて非IP機器と通信ができるという効果がある。
【図面の簡単な説明】
【図1】 本発明の一実施例の概要を示す説明図である。
【図2】 本発明の一実施例における非IP機器のハードウェア構成を示したブロック図である。
【図3】 本発明の一実施例におけるゲートウェイのハードウェア構成を示したブロック図である。
【図4】 本発明の一実施例におけるインタフェースIDのデータ構造を示した説明図である。
【図5】 本発明の一実施例における変換テーブルのデータ構造を示した説明図である。
【図6】 本発明の一実施例における登録データのデータ構造を示した説明図である。
【図7】 本発明の一実施例における登録処理を示したフローチャートである。
【図8】 本発明の一実施例のおけるNDP応答処理を示したフローチャートである。
【図9】 本発明の一実施例のおけるプロトコル変換処理の概要を示した説明図である。
【図10】 本発明の一実施例におけるプロトコル変換処理を示したフローチャートである。
【図11】 本発明の一実施例におけるプロトコル変換処理を示したフローチャートである。
【図12】 本発明の一実施例のおける登録削除処理を示したフローチャートである。
【図13】 本発明の一実施例における再登録要求処理を示したフローチャートである。
【図14】 本発明の一実施例における変換テーブルのデータ構造を示した説明図である。
【図15】 本発明の一実施例における登録データのデータ構造を示した説明図である。
【図16】 本発明の一実施例における登録処理を示したフローチャートである。
【符号の説明】
100 非IPデバイス
110 ゲートウェイ
120 IPv6ルータ
130 携帯電話
140 パソコン
150 IPv6機器
200 非IPネットワーク
210、230 IPv6ネットワーク
220 インターネット
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a description for performing communication between a device such as an air conditioner that does not support the IPv6 protocol and a device connected to an IPv6 network such as the Internet using the IPv6 protocol.
[0002]
[Prior art]
In recent years, in the field of communication, the IP protocol, which is a standard protocol of the Internet, has become a de facto standard protocol, and the IP protocol has been used even at home. However, there are many devices that do not support the IP protocol. There is a gateway device as a device for such a device to communicate with a device connected by the IP protocol, and there is Japanese Patent Application No. 11-177916 as an example. In Japanese Patent Application No. 11-177916, a HAVi (Home Audio / Video Interoperability) device connected by an IEEE 1394 network and a device connected by an IP network can communicate with each other via a gateway device.
[0003]
[Problems to be solved by the invention]
In the above-described technology, the IP identifier is not uniquely determined, that is, the IP identifier may change in order to connect the devices. Specifically, in the above technique, a combination of an IP address and a port number is used as an IP identifier. Therefore, in practice, there is a problem that it is difficult to specify a device connected to HAVi from a device connected to the IP network.
[0004]
Therefore, an object of the present invention is to communicate a device (hereinafter referred to as a non-IP device) connected to a network other than the IP network function (hereinafter referred to as a non-IP network) with a device (hereinafter referred to as IP device) connected to the IP network. In addition to being able to do this, the IPv6 (Internet Protocol Version 6) address is used to permanently assign an IPv6 address to a non-IP device to facilitate communication between the IP device and the non-IP device.
[0005]
[Means for Solving the Problems]
In order to solve the above problems, in the present invention, in a system comprising a non-IP device connected to a non-IP network and a gateway device connected to both the IPv6 network and the non-IP network, the non-IP device is used for IPv6. Means for holding an interface ID and means for sending out the interface ID and a network identifier that is an identifier on the network to which the non-IP device is connected are provided. The gateway device is provided with device information acquisition means for receiving the interface ID and network identifier transmitted from the non-IP device. Further, the gateway device is provided with a network ID acquisition unit that acquires the network ID of the IP network to which the gateway device is connected, and is acquired by the network ID acquired by the network ID acquisition unit and the device information acquisition unit. An IPv6 address is generated from the interface ID. Then, address conversion means for managing the correspondence between the generated IPv6 address and the network identifier acquired by the device information acquisition means is provided.
[0006]
Furthermore, when the gateway device receives an NDP (Neighbor Discovery Protocol) NS (Neighbor Discovery Protocol) packet defined in IPv6, the IPv6 address specified by the target address in the NS packet is managed by the address conversion unit. It is checked whether or not it exists in the IPv6 address to be sent, and if it exists, an NA (Neighbor Advertisement) packet is returned.
[0007]
Further, the gateway device converts the IP packet received from the IP network into a non-IP network protocol and transmits it to the non-IP device, and converts the non-IP data received from the non-IP network into the IP protocol to be converted into the IP network. A sending means is provided so that the non-IP device and the IP device can communicate with each other. At this time, the data communicated between the gateway device and the non-IP device includes the IPv6 address of the destination IP device, so that the IP device can be identified from the non-IP device.
[0008]
In the present invention, when a non-IP device connected to a non-IP network is deleted from the non-IP network, the correspondence between the IPv6 address managed by the address conversion unit and the network identifier acquired by the device information acquisition unit To be deleted.
[0009]
Furthermore, in another invention, in a system comprising a non-IP device connected to a non-IP network and a gateway device connected to both the IPv6 network and the non-IP network, the device identification information (device) Means for holding (identification information), and means for sending out the device identification information and a network identifier that is an identifier on the network to which the non-IP device is connected. The gateway device is provided with device information acquisition means for receiving device identification information and a network identifier transmitted from the non-IP device. Furthermore, the gateway device is provided with network ID acquisition means for acquiring the network ID of the IP network to which the gateway device is connected, and a plurality of IPv6 addresses are obtained using the network ID acquired by the network ID acquisition means. It is trying to generate. Then, using the device identification information acquired by the device information acquisition means, an address conversion means for allocating one of the generated IPv6 addresses and managing the correspondence is provided. The address conversion means always assigns the same IPv6 address to devices having the same device identification information. Furthermore, when the gateway device receives an NDP (Neighbor Discovery Protocol) NS (Neighbor Discovery Protocol) packet defined in IPv6, the IPv6 address specified by the target address in the NS packet is received by the address conversion unit. It is checked whether or not it is in the managed IPv6 address, and if it exists, an NA (Neighbor Advertisement) packet is returned.
[0010]
Further, the gateway device converts the IP packet received from the IP network into a non-IP network protocol and transmits it to the non-IP device, and converts the non-IP data received from the non-IP network into the IP protocol to be converted into the IP network. A sending means is provided so that the non-IP device and the IP device can communicate with each other. At this time, the data communicated between the gateway device and the non-IP device includes the IPv6 address of the destination IP device, so that the IP device can be identified from the non-IP device.
[0011]
DETAILED DESCRIPTION OF THE INVENTION
An embodiment of the present invention will be described below with reference to the drawings.
First, the outline of the present invention will be described with reference to FIG.
In FIG. 1, 100 is a non-IP device. Here, the non-IP device means a device that does not support IPv6 (Internet Protocol Version 6) but is connected to some network. Examples of the non-IP device 100 include a refrigerator and an air conditioner connected to ECHONET (Energy Conservation and Homecare Network). 110 is a gateway. The gateway 110 is connected to the non-IP device 100 via the non-IP network 200. An example of the non-IP network 200 is ECHONET. The gateway 110 is connected to the IPv6 router 120 via the IPv6 network 210. The IPv6 router 120 is connected to the Internet 220. Further, the gateway is connected to the IPv6 device 150 in the home via the IPv6 network 230. An example of the IPv6 device 150 is a personal computer.
[0012]
The present invention is a system composed of devices and networks as described above, and is connected to the Internet 220 (for example, the mobile phone 130 and PC 140), the IPv6 device 150 in the home, and the non-IP device 100 in the home. (For example, a refrigerator, an air conditioner, a microwave oven, etc.) provide a mechanism for communication.
In the following embodiments, the gateway 110 and the IPv6 router 120 will be described as separate devices, but there is no problem even if these two functions are put in one casing.
Hereinafter, an air conditioner will be described as an example of the non-IP device 100, and ECHONET as an example of the non-IP network 150. However, it goes without saying that the present invention does not limit non-IP devices and non-IP networks to these devices.
[0013]
Next, the hardware configuration of each device will be described. Note that since the IPv6 router 120, the mobile phone 130, the PC 140, and the IPv6 device 150 are general devices, descriptions of these devices are omitted.
First, the hardware configuration of the non-IP device 100 will be described with reference to FIG.
In the figure, reference numeral 101 denotes a CPU which executes various programs related to peripheral control, data processing and communication. A storage unit 102 is, for example, a ROM (Read Only Memory), a RAM (Random Access Memory), or a flash memory. Data such as various programs used in this embodiment and interface IDs described later are stored. A communication control unit 103 controls communication via ECHONET, for example. Reference numeral 104 denotes an air conditioner that controls the operation as an air conditioner.
[0014]
Next, the hardware configuration of the gateway 110 will be described with reference to FIG.
In the figure, reference numeral 111 denotes a CPU that executes various programs related to peripheral control, data processing and communication. Reference numeral 112 denotes a main storage unit, such as a ROM (Read Only Memory), a RAM (Random Access Memory), a flash memory, a hard disk, and the like. Data such as various programs used in this embodiment and conversion tables described later are stored. Reference numeral 103 denotes a non-IP communication control unit, which controls communication via ECHONET, for example. An IP communication control unit 104 controls communication using IPv6.
[0015]
Next, the interface ID 450 held by the non-IP device 100 will be described with reference to FIG.
The interface ID is 64-bit data and is used to identify the device. The method of assigning the interface ID is defined by IEEE “Guidelines for 64-bit Global Identifier (EUI-64) Registration Authority”. The non-IP device 100 holds an interface ID 450 in the storage unit 102.
[0016]
Next, the conversion table 400 held by the gateway will be described with reference to FIG.
The conversion table 400 is used for associating the identifier (local address) on the network of the non-IP device 100 in the non-IP network 200 with the IPv6 address assigned to the non-IP device 100.
The conversion table 400 is composed of one or more conversion records 410. Each conversion record 410 includes a local address 411 and an IPv6 address 412. The local address 411 is an identifier for uniquely identifying a device connected to the non-IP network 200. In the case of ECHONET, the ECHONET address corresponds to this. The IPv6 address 412 stores a 128-bit IPv6 address.
[0017]
Next, registration data 700 transmitted to the gateway 110 when the non-IP device 100 is connected to the non-IP network 200 (or at an arbitrary timing) will be described with reference to FIG.
The registration data 700 includes a local address 701 and an interface ID 702. The local address 701 is an identifier in the non-IP network 200 of the non-IP device 100. In the case of ECHONET, the ECHONET address corresponds to this. The interface ID 702 is the same as the interface ID 450 held by the non-IP device 100.
[0018]
Next, registration processing performed when the non-IP device 100 is connected to the non-IP network 200 (or at an arbitrary timing) will be described with reference to FIG.
The registration process includes an interface ID transmission process 510 in the non-IP device 100 and a conversion table registration process 500 in the gateway 110.
When connected to a non-IP network (or at an arbitrary timing), the non-IP device 100 performs an interface ID transmission process 510. In the interface ID transmission processing 510, the interface ID 450 recorded in the storage unit 102 is read and set in the interface ID 702 of the registration data 700. Further, the local address of the non-IP device 100 is acquired from, for example, the communication control unit 103 and set to the local address 701 of the registration data 700. Then, the registration data 700 is transmitted to the gateway 110 (step 511).
[0019]
When the gateway 110 detects the transmission of the interface ID from the non-IP device 100, it starts the conversion table registration process 500. In the conversion table registration process 500, first, registration data 700 sent from the non-IP device 100 is received (step 501). Next, it is determined whether or not the network ID in IPv6 has already been acquired (step 502). If the network ID in IPv6 has not been acquired, the network ID is acquired from the IPv6 router 130 and stored in the storage unit 112. If the network ID has been acquired, the process proceeds to step 504. An IPv6 address is generated from the interface ID 702 of the registration data 700 received in step 501 and the network ID acquired in step 503 or the network ID previously acquired and stored in the storage unit 112. Then, a conversion record 410 in which the local address 701 of the registration data 700 received in step 501 is set to the local address 411 and the generated IPv6 address is set to the IPv6 address 412 is added to the conversion table 400 (step 504).
[0020]
Through the above processing, the gateway 110 can assign an IPv6 address to the non-IP device 100. At this time, since the interface ID is acquired from the non-IP device 100, as long as the gateway 110 is connected to the same IP network (that is, as long as the network ID of the IP network to which the gateway 110 is connected does not change). It becomes possible to always assign the same IPv6.
[0021]
Next, processing for transmitting and receiving data between the IPv6 device 150 in the home, the mobile phone 130 connected to the Internet, the personal computer 140, and the non-IP device 100 will be described. Since data from the mobile phone 130 and the personal computer 140 connected to the Internet 220 reaches the IPv6 router 120, a method in which the IPv6 router 120 transmits data to the gateway 110 will be described here. Note that when the IPv6 device 150 in the home communicates with the non-IP device 100, the method is the same as that of the IPv6 router 120.
[0022]
In IPv6 communication data (IPv6 packet), a destination is specified by an IPv6 address. Therefore, in order for the IPv6 router 120 to transmit data to the non-IP device 100 connected to the gateway 110, an IPv6 lower layer address (for example, an Ethernet address) is required. In IPv6, there is NDP (Neighbor Discovery Protocol) as a method for determining an address of a lower layer of IPv6. Details of NDP are described in RFC 2461 Neighbor Discovery for IP Version 6 (IPv6). As the gateway 110 responds to the NDP, an IPv6 packet addressed to the non-IP device 100 connected to the gateway 110 reaches the gateway 110. Hereinafter, the NDP response processing 530 of the gateway 110 related to NDP will be described with reference to the flowchart of FIG. The NDP response process 530 is activated when the gateway 110 detects an NDP NS (Neighbor solicitation) packet.
[0023]
In the NDP response process 530, first, an NS packet is received (step 531). Next, it is checked whether or not a translation record 410 having the same IPv6 address 412 as the IPv6 address designated by the target address of the NS packet exists in the translation table 400 (step 532). If it exists, the lower layer address of the IP communication control unit 104 of the gateway 110 is set to NA (neighbor advertisement) and sent to the transmission source of the NS packet (step 533). If it does not exist, do nothing.
[0024]
With the above processing, the gateway 110 responds to the NDP instead of the non-IP device 100, and the IPv6 packet addressed to the non-IP device 100 reaches the gateway 110. The gateway sends this to the non-IP device 100 using the protocol of the non-IP network 200. Hereinafter, this protocol conversion process will be described with reference to FIG.
[0025]
When the non-IP device 100 communicates with the home IPv6 device 150, the mobile phone 130 or personal computer 140 connected to the Internet, the following two types of communication data are used.
First, the local data packet 450 transmitted / received between the gateway 110 and the non-IP device 100, which is the first data, will be described. The local data packet 450 includes a local header 451, an IPv6 address 452, and data 453. The local header 451 is information including, for example, an ECHONET header in ECHONET, a transmission source address, and a destination address. The IPv6 address 452 is an IPv6 address of a communication destination device (for example, an IPv6 device 150 in the home, a mobile phone 130 or a personal computer 140 connected to the Internet). The data 453 is data including information that is transferred between the non-IP device 100 and the communication destination device.
[0026]
Next, the second data, that is, the IPv6 data packet 460 transmitted and received by the gateway 110 and the IPv6 device 150 and the IPv6 router 130 will be described. The IPv6 data packet 460 includes an IPv6 header 461 and data 462. The IPv6 header is a header defined by the IPv6 protocol, and includes a destination IPv6 address and a source IPv6 address. The data 462 is data including information to be exchanged with the non-IP device 100 communication destination device.
[0027]
In the protocol conversion process 540, the above two types of data are converted. That is, the local data packet 450 received from the non-IP network 200 is converted into an IPv6 data packet 460 and sent to the IPv6 networks 210 and 230 (protocol conversion processing 550), or the IPv6 data packet received from the IPv6 networks 210 and 230 460 is converted into a local data packet 450 and sent to the non-IP network 200 (protocol conversion processing 560).
[0028]
Note that the IPv6 packet 460 and the local packet 450 do not necessarily correspond one-to-one. For example, conversion may be performed in units of HTTP (HyperText Transfer Protocol) HTTP Request Message and HTTP Response Message. A plurality of IPv6 data packets 460 may be used as one local data packet 450. One IPv6 data packet 460 may be divided into a plurality of local data packets 450. Further, the plurality of local data packets 450 may be a single IPv6 data packet 460. One local data packet 450 may be divided into a plurality of IPv6 data packets 460. In addition, the data included in the IPv6 packet 460 and the local packet 450 may include data obtained by processing each data.
[0029]
Next, details of the protocol conversion processing 550 from the IPv6 data packet 460 to the local data packet 450 will be described with reference to the flowchart of FIG. The protocol conversion process 550 is activated when the gateway 110 receives the IPv6 data packet 460.
In the protocol conversion process 550, first, the arrived IPv6 data packet 460 is read (step 551). Next, a translation record 410 having the same IPv6 address 412 as the destination IPv6 address included in the IPv6 header 461 of the read IPv6 data packet 460 is searched from the translation table 400, and the local address 411 of the translation record 410 is read (step 552). ). Next, the local address read in step 552 is set as a destination address in the local header 451 of the local data packet 450, and the destination IPv6 address of the received IPv6 data packet 460 is set as the IPv6 address 452 of the local data packet 450. . Then, data including at least a part of the data 462 of the IPv6 data packet 460 or data obtained by processing the data 462 is stored in the data 453 of the local data packet 450 and transmitted to the non-IP network 200 (step 553).
[0030]
Next, details of the protocol conversion processing 560 from the local data packet 450 to the IPv6 data packet 460 will be described with reference to the flowchart of FIG. The protocol conversion process 560 is activated when the gateway 110 receives the local data packet 450.
In the protocol conversion process 560, first, the local data packet 450 that has arrived is read (step 561). Next, the IPv6 address 452 of the local data packet read in step 451 is set as the destination in the IPv6 header 461 of the IPv6 data packet 460 (step 562). Then, data including at least a part of the data 453 of the local data packet 450 or data obtained by processing the data 453 is stored in the data 462 of the IPv6 data packet and transmitted to the IPv6 network 210 or 230 (step 563).
[0031]
Through the above processing, the non-IP device 100 connected to the non-IP network 200, the IPv6 device 150 connected to the IPv6 network, the mobile phone 130 connected to the Internet, and the personal computer 140 can communicate with each other. Become. At this time, since the same IPv6 address is always assigned to the non-IP device 100 by the interface ID transmission processing 510 and the conversion table registration processing 500 in the gateway 110, it is connected to the IPv6 device 150 connected to the IPv6 network or the Internet. When accessing the non-IPv6 device 100 in the home from the mobile phone 130 and the personal computer 140, there is an advantage that communication can always be performed using the same IPv6 address.
[0032]
Next, a registration deletion process 570 executed by the gateway 110 when the non-IP device 100 connected to the non-IP network 200 is disconnected from the non-IP network 200 will be described with reference to FIG.
In the registration deletion process 570, first, the local address of the removed non-IP device 100 is specified (step 571). As a method of detecting the local address of the removed non-IP device 100, a method of checking whether the local addresses 411 of all the conversion records 410 in the conversion table 400 are connected to the non-IP network 200, or the non-IP device 100. There is a method of notifying that the gateway is removed immediately before the device is removed from the non-IP network 200. Next, the conversion record 410 having the local address specified in step 571 is deleted from the conversion table 400 (step 572).
[0033]
As a result of the above processing, information regarding the non-IP device 100 removed from the non-IP network 200 is deleted from the conversion table 400, so that data is not transmitted to the non-IP device 100 from which the gateway 100 has been removed.
When a non-IP device connected to the non-IP network 200 is deleted, the gateway 110 may execute the re-registration request process 580 instead of the registration deletion process 570.
[0034]
In the re-registration request process 580, all the conversion records 910 registered in the conversion table 400 are once deleted (step 581). A registration request is sent to all the non-IP devices 100 connected to the non-IP network 200. The non-IP device 100 that has received the registration request performs an interface ID transmission process 510 (step 583). When the process of step 583 is performed for all the non-IP devices 100 connected to the non-IP network 200, the process ends (step 582).
[0035]
In the above embodiment, when the non-IP device 100 holds the interface ID 450 and is connected to the non-IP network 200, the non-IP device 100 executes the interface ID transmission processing 510 and performs the conversion table registration processing in the gateway 110. Although an example in which the same IPv6 address is always assigned to the non-IP device 100 by performing 500 is described, in another embodiment of the present invention, the interface ID 450 does not necessarily have to be held. Examples thereof will be described below.
[0036]
First, a conversion table 900 used instead of the conversion table 400 will be described with reference to FIG.
The conversion table 900 is composed of one or more conversion records 910. Each conversion record 910 includes a local address 911, an IPv6 address 912, and a device identifier 913. The local address 911 is the same as the local address 411 of the conversion record 410 in the conversion table 400. The IPv6 address 912 is the same as the IPv6 address 411 of the conversion record 410 in the conversion table 400. The device identifier 913 is information for identifying the non-IP device 100. The device identifier 913 is, for example, a manufacturer code, a business site code, a product code, or a manufacturing number defined by the ECHONET device object superclass property.
[0037]
In the conversion table 900, a plurality of conversion records 910 are registered in advance. At this time, an IPv6 address is put in advance in the IPv6 address 912 of each 460 translation record 910. The IPv6 address used here is created from the IPv6 network 210 network ID to which the gateway is connected and a random numerical value or an appropriate numerical value sequence. The registration of the conversion record in the conversion table 900 may be executed when the gateway 110 is activated.
[0038]
Next, registration data 710 used instead of the registration data 700 will be described with reference to FIG.
Registration data 710 includes a local address 711 and a device identifier 712. The local address 711 is the same as the local address 711 in the registration data 700. The device identifier 712 is information for identifying the non-IP device 100, and is, for example, a manufacturer code, a business location code, a product code, and a manufacturing number defined by the ECHONET device object superclass property.
[0039]
Next, when connected to the non-IP network 200, device information transmission processing 810 executed in place of the interface ID transmission processing 510 in the non-IP device 100 and conversion executed in place of the conversion table registration processing 500 in the gateway 110 The tail part registration process 800 will be described with reference to FIG.
[0040]
The non-IP device 100 performs device information transmission processing 810 when connected to a non-IP network (or at an arbitrary timing). In the device information transmission processing 810, the device identifier recorded in the storage unit 102 is read and set in the device identifier 712 of the registration data 710. Further, the local address of the non-IP device 100 is acquired from, for example, the communication control unit 103 and set to the local address 711 of the registration data 710. Then, the registration data 710 is transmitted to the gateway 110 (step 811).
[0041]
When the gateway 110 detects the transmission of the registration data 710 from the non-IP device 100, it starts the conversion table registration process 800. In the conversion table registration process 800, first, registration data 710 sent from the non-IP device 100 is received (step 801). Next, it is checked whether or not a conversion record 910 having the same device identifier 913 as the device identifier 712 of the registration data 710 received in step 801 is registered in the conversion table 900 (step 802). If registered, the local address 711 of the registration data 710 received in step 802 is set to the local address 911 of the conversion record 910 having the same device identifier 913 as the device identifier 712 of the registration data 710 (step 804). If not registered, the conversion table 900 is searched for a conversion record 910 in which the device identifier 913 is not yet set, and the local address 711 of the registration data 710 received in step 801 is set as the local address 911 of the conversion record. The device identifier 712 is set in each.
[0042]
In the NDP response process 530, the process in step 532 is changed so as to check whether or not the translation table 910 having the same IPv6 address 412 as the IPv6 address specified by the target address of the NS packet exists in the translation table 900. . Further, in the protocol conversion process 550, step 552 is searched from the conversion table 900 for a conversion record 910 having the same IPv6 address 412 as the destination IPv6 address included in the IPv6 header 461 of the read IPv6 data packet 460, and the conversion record 910 is searched. The local address 911 is read out.
[0043]
When the non-IP device 100 connected to the non-IP network 200 is removed from the non-IP network, the local address of the conversion record 910 having the local address specified in step 571 is registered in step 572 of the registration deletion process 570. 911 is invalidated. Alternatively, in step 581 of the re-registration request process 580, all the local addresses 911 of all the conversion records 910 registered in the conversion table 900 are invalidated.
[0044]
Through the above processing, the non-IP device 100 connected to the non-IP network 200, the IPv6 device 150 connected to the IPv6 network, the mobile phone 130 connected to the Internet, and the personal computer 140 are the same as in the embodiment described above. It becomes possible to communicate with each other. At this time, since the same IPv6 address is always assigned to the non-IP device 100 by the interface ID transmission processing 510 and the conversion table registration processing 500 in the gateway 110, it is connected to the IPv6 device 150 connected to the IPv6 network or the Internet. When accessing the non-IPv6 device 100 in the home from the mobile phone 130 and the personal computer 140, there is an advantage that communication can always be performed using the same IPv6 address.
[0045]
【The invention's effect】
As described above, according to the present invention, a non-IP device (for example, an air conditioner connected to an echonet in a home) and a mobile phone or personal computer connected to the Internet use an IPv6 protocol via a gateway. Can communicate. At this time, the non-IP device has an advantage that the IPv6 network IPv6 address to be connected is always the same address unless the gateway to which the non-IP device is connected is changed, so that the device can be easily identified. In addition, there is an effect that a mobile phone or a personal computer can always communicate with a non-IP device using the same IPv6 address.
[Brief description of the drawings]
FIG. 1 is an explanatory diagram showing an outline of an embodiment of the present invention.
FIG. 2 is a block diagram showing a hardware configuration of a non-IP device in an embodiment of the present invention.
FIG. 3 is a block diagram showing a hardware configuration of a gateway according to an embodiment of the present invention.
FIG. 4 is an explanatory diagram showing a data structure of an interface ID in an embodiment of the present invention.
FIG. 5 is an explanatory diagram showing a data structure of a conversion table in an embodiment of the present invention.
FIG. 6 is an explanatory diagram showing a data structure of registration data in one embodiment of the present invention.
FIG. 7 is a flowchart showing registration processing in an embodiment of the present invention.
FIG. 8 is a flowchart showing NDP response processing in an embodiment of the present invention.
FIG. 9 is an explanatory diagram showing an overview of protocol conversion processing in an embodiment of the present invention.
FIG. 10 is a flowchart showing protocol conversion processing in an embodiment of the present invention.
FIG. 11 is a flowchart showing protocol conversion processing in an embodiment of the present invention.
FIG. 12 is a flowchart illustrating registration deletion processing according to an embodiment of the present invention.
FIG. 13 is a flowchart showing a re-registration request process in an embodiment of the present invention.
FIG. 14 is an explanatory diagram showing a data structure of a conversion table in an embodiment of the present invention.
FIG. 15 is an explanatory diagram showing a data structure of registration data in one embodiment of the present invention.
FIG. 16 is a flowchart showing registration processing in an embodiment of the present invention.
[Explanation of symbols]
100 Non-IP device
110 gateway
120 IPv6 router
130 Mobile phone
140 PC
150 IPv6 equipment
200 Non-IP network
210, 230 IPv6 network
220 Internet

Claims (1)

第1のネットワークを接続し、前記第1のネットワークとデータの送受信を行う第1の通信手段と、A first communication means for connecting a first network and transmitting / receiving data to / from the first network;
第2のネットワークを接続し、IPv6プロトコルを用いてデータの送受信を行う第2の通信手段と、A second communication means for connecting the second network and transmitting / receiving data using the IPv6 protocol;
前記第1のネットワークに接続された機器のインタフェースIDおよび該機器の前記第1のネットワークにおける識別情報を取得する手段と、Means for obtaining an interface ID of a device connected to the first network and identification information of the device in the first network;
前記第2のネットワークのネットワークIDを取得する手段と、Means for obtaining a network ID of the second network;
上記インタフェースIDおよびネットワークIDからIPv6アドレスを生成し、生成したIPv6アドレスと上記識別情報との対応を管理するアドレス変換手段と、An address conversion unit that generates an IPv6 address from the interface ID and the network ID, and manages the correspondence between the generated IPv6 address and the identification information;
NDP(Neighbor Discovery Protocol)で規定されるNS(Neighbor solicitation)パケットを第2のネットワークから受信したとき、NSパケット内のターゲットアドレスで指定されるIPv6アドレスが前記アドレス変換手段により管理されるIPv6アドレスの中に存在するか否かをチェックし、存在する場合、NA(Neighbor Advertisement)パケットを返信するNDP応答手段とを備え、When an NS (Neighbor solicitation) packet defined by NDP (Neighbor Discovery Protocol) is received from the second network, the IPv6 address specified by the target address in the NS packet is the IPv6 address managed by the address translation means. And NDP response means for returning a NA (Neighbor Advertisement) packet if it exists,
第1のネットワークに接続された機器と第2のネットワークに接続された機器との通信を可能にすることを特徴とするゲートウェイ装置。A gateway device that enables communication between a device connected to a first network and a device connected to a second network.
JP2001249741A 2001-08-21 2001-08-21 Gateway device and information device Expired - Fee Related JP4019666B2 (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP2001249741A JP4019666B2 (en) 2001-08-21 2001-08-21 Gateway device and information device
US10/199,291 US7339895B2 (en) 2001-08-21 2002-07-19 Gateway device and control method for communication with IP and IPV6 protocols
CN02143739.4A CN1194512C (en) 2001-08-21 2002-07-20 Information equipment, gate way equipment and control method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001249741A JP4019666B2 (en) 2001-08-21 2001-08-21 Gateway device and information device

Publications (2)

Publication Number Publication Date
JP2003060664A JP2003060664A (en) 2003-02-28
JP4019666B2 true JP4019666B2 (en) 2007-12-12

Family

ID=19078700

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001249741A Expired - Fee Related JP4019666B2 (en) 2001-08-21 2001-08-21 Gateway device and information device

Country Status (1)

Country Link
JP (1) JP4019666B2 (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004289816A (en) 2003-03-06 2004-10-14 Matsushita Electric Ind Co Ltd Remote control apparatus, remote control method and remotely controlled apparatus
JP4612528B2 (en) * 2005-07-29 2011-01-12 日本電信電話株式会社 Network connection system, network connection device and program thereof
JP4764737B2 (en) * 2006-02-13 2011-09-07 富士通株式会社 Network system, terminal and gateway device
US8219658B2 (en) 2006-03-28 2012-07-10 Panasonic Corporation Network system
JP4023508B2 (en) 2006-03-28 2007-12-19 松下電工株式会社 Network system
KR100791298B1 (en) * 2006-05-19 2008-01-04 삼성전자주식회사 Apparatus and method for controlling device of home network
JP2012175326A (en) * 2011-02-21 2012-09-10 Nippon Telegr & Teleph Corp <Ntt> Network system, and data communication method, gateway unit and name server
US10097509B2 (en) 2014-09-29 2018-10-09 Raytheon Company IP address translation for tactical networks
FR3032849B1 (en) * 2015-02-13 2017-02-10 Kerlink METHOD OF ESTABLISHING A BIDIRECTIONAL COMMUNICATION SESSION BETWEEN A COMMUNICATOR OBJECT AND A REMOTE SERVER, GATEWAY, SYSTEM AND CORRESPONDING COMPUTER PROGRAM.

Also Published As

Publication number Publication date
JP2003060664A (en) 2003-02-28

Similar Documents

Publication Publication Date Title
US7339895B2 (en) Gateway device and control method for communication with IP and IPV6 protocols
US8767737B2 (en) Data center network system and packet forwarding method thereof
JP4142014B2 (en) User identification system, user identification device, user identification method, address translation device, and program
US20060056397A1 (en) Access management apparatus, program and remote start-up method of terminal device
US20150295884A1 (en) Method and System for Managing IPv6 Address Conflict Automatically
JP2011515945A (en) Method and apparatus for communicating data packets between local networks
JP2003348116A (en) Address automatic setting system for in-home network
US20050180439A1 (en) Network system, terminal setting method, address resolving server, and client terminal
JP2003008585A (en) Communication controller and communication control method, and communication apparatus and communication method
JP2004507976A (en) Assigning addresses to mobile stations
US7289471B2 (en) Mobile router, position management server, mobile network management system, and mobile network management method
WO2014101041A1 (en) Ipv6 address tracing method, device, and system
JP2014147094A (en) Network location service
JP4019666B2 (en) Gateway device and information device
KR100429902B1 (en) Apparatus and method for controlling devices in private network from public network
JP4576637B2 (en) Network camera, management server and video distribution system
TW201414253A (en) Network address translation system and method
TWI735633B (en) Data transmission method, equipment, device and system
JPH1117726A (en) Connection controller for ip network with built-in dns function
WO2009076906A1 (en) Method, device and system for a terminal to realize the access to the retail service provider
JP2001237879A (en) Terminal, repeater, communication method and recoding medium with recorded communication program
US11533344B2 (en) Method for establishing a stream, method for providing stream identification information, domain name system (DNS) server, device computer program and computer-readable medium
JP2007096539A (en) Conversion apparatus
JP5054666B2 (en) VPN connection device, packet control method, and program
JP2003087337A (en) Gateway device and its control method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20040913

RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20060418

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20060929

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20061010

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20061211

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20070605

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20070703

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

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20070808

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20070917

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

Free format text: PAYMENT UNTIL: 20101005

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20101005

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20111005

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20121005

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20121005

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20131005

Year of fee payment: 6

LAPS Cancellation because of no payment of annual fees