JP3678669B2 - Matching method and matching method between routers in dynamic routing protocol - Google Patents
Matching method and matching method between routers in dynamic routing protocol Download PDFInfo
- Publication number
- JP3678669B2 JP3678669B2 JP2001126066A JP2001126066A JP3678669B2 JP 3678669 B2 JP3678669 B2 JP 3678669B2 JP 2001126066 A JP2001126066 A JP 2001126066A JP 2001126066 A JP2001126066 A JP 2001126066A JP 3678669 B2 JP3678669 B2 JP 3678669B2
- Authority
- JP
- Japan
- Prior art keywords
- router
- lsa
- routers
- change
- connection information
- 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
Links
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
- Small-Scale Networks (AREA)
Description
【0001】
【発明の属する技術分野】
本発明は、ダイナミックルーティングプロトコルにおけるルータ間の整合処理方式および整合処理方法に関し、特に、ダイナミックプロトコルにおけるルータのルータIDを変更した場合のルータ間の整合処理方式および整合処理方法に関する。
【0002】
【従来の技術】
ネットワーク上にあるルータを介して通信を行っているシステムにおいて、ルータ間の通信経路を確保するために、各ルータは、ルーティングを行う必要がある。そのルーティングを行うためのルーティングプロトコルには、ルーティング情報を交換しながら最適な経路を自動的に選択させるダイナミックルーティングとして、業界標準であるRIP(Routing Information Protocol),OSPF(Open Shortest Path Firt)等がRFC(Request for Comments)により規定されている。
【0003】
このRFC1583によるOSPFのプロトコルの基で、ルータ間で通信を行うネットワークシステムとして、図3を参照すると、ルータID(AS内のルータを一意に識別する32ビットで示される識別番号)が「A」であるルータ51と、ルータIDが「B」であるルータ52と、ルータIDが「C」であるルータ53とから構成される。ルータ51,52,53は、ルーティング情報を管理するために、30分毎に各ルータがルータ自身の接続情報を乗せたLSA(Link−State Advertise)を他のルータに送信し、変更があれば、各ルータが受信したLSAに基づいて管理しているデータベースおよびルーティングテーブルを更新している。なお、AS(Autonomous System)とは、インターネット管理単位であって、通常インターネットの通信路を提供している組織には、組織の独自運用ルールを持っており、ASはその組織単位となる。
【0004】
【発明が解決しようとする課題】
しかしながら、OSPFのプロトコルにおいては、相手のルータから受信した接続先のルータIDを含む接続情報であるLSAを最大値(1時間:Agingタイムアウト値)に達するまでルータが保持しなければならないという規約とLSAを相手のルータに送信した場合に相手が応答するまで無制限に送りつづけなければならないという規約とがある。この規約の基で、従来技術である図5において、今、ネットワークの収容替え等により、ルータ53のルータIDを「C」から「D」に変更する。すると、ルータ「D」は、自分の一致したものを待つが、IPアドレスが変更前と同じIPアドレスのため、その前にID変更する以前に送信したLSAを基で作成されたLSA(以降、旧LSAと称す)をルータ51または52から受信してしまう。ルータIDを変更したことによりルータ53からのルータ「D」に対するLSA送信によって、正規のLSAがルータ51およびルータ52に登録される。しかし、旧ルータIDは、ルータ51またはルータ52においてAgingタイムアウトにより検出し、ルータ53にLSAにより通知することになるが、ルータ53ではルータ「C」が存在しないので送信されたLSAを無視する。一方、送信したルータ51またはルータ52は、変更したことがわからないので旧ルータIDであるルータ「C」の接続情報がルータ51およびルータ52に残ると共に、ルータ「C」に対するAgingタイムアウトによるLSAの送信が繰り返されることになる。そのため、OSPFがダイナミックルーティングプロトコルに関わらず、保守員(またはネットワーク管理者)が設定変更以外のルータにおいて、変更ルータの「C」におけるLSAに伴う情報を網内から削除してルータIDを変更する必要がある。
【0005】
すなわち、図5のようにルータ53のルータIDを変更した場合に、ルータ53に対するルータIDの変更されていないルータ51,52がルータIDを変更したルータにAgingタイムアウトのLSAを送信し続け、更に、旧ルータIDに対する接続情報が網内から消えないという問題点が発生する。更に、このことを回避するために、OSPFがダイナミックルーティングであることから、その他ルータの全てであるルータ51とルータ52(図5を参照)とが保有しているルーティングテーブルを保守者(または管理者)が時間をかけて内容に十分に注意をしながらマニュアルで変更しなければならないという問題点が発生する。
【0006】
本発明の目的は、上記問題点を鑑み、OSPF適用のネットワークにおいて、ルータIDの設定変更時にその他のルータに保持されている旧ルータIDの接続情報および旧ルータIDの基で作成される旧LSAを自動的に消滅させて、新規の接続情報を確立することことにある。
【0007】
【課題を解決するための手段】
上記の目的を達成するために、本発明の第1のダイナミックルーティングプロトコルにおけるルータ間の整合処理方式は、前記複数のルータ間で各前記ルータがOSPFプロトコルの基で定期的にLSAのパケットにより接続情報のやり取りを行うダイナミックルーティングプロトコルにおけるルータ間の整合処理方式において、前記ルータの識別を示すルータIDの設定変更時に、そのルータIDを変更したルータは、変更前のルータIDに対するLSAを受信したときに無応答にする無応答手段を有し、前記変更前のルータIDに対するLSAを送信したルータは、あらかじめ決められた時間後に自分の保有しているデータベースから前記変更前のルータIDに関する接続情報を削除する第1の削除手段を有し、あらかじめ決められた前記時間後に前記変更前のルータIDに対するLSAを受信したルータは、自分の保有しているデータベースから前記変更前のルータIDに関する接続情報を削除する第2の削除手段を有することを特徴としている。
【0008】
更に、上記の第1のダイナミックルーティングプロトコルにおけるルータ間の整合処理方式において、ルータIDを変更したルータを除く前記ルータは、変更後のルータIDに対するLSAを受信したときに前記変更後のルータIDに対する接続情報をデータベースに登録する登録手段とを有することを特徴としている。
【0009】
また、本発明の第2のダイナミックルーティングプロトコルにおけるルータ間の整合処理方式は、複数のルータ間で各ルータがOSPFプロトコルの基で定期的にLSAのパケットにより接続情報のやり取りを行うダイナミックルーティングプロトコルにおけるルータ間の整合処理方式において、前記複数のルータの内の第1のルータは、前記定期的にやり取りを行う第1のLSAの作成を行って、前記複数のルータの内の他のルータに送信する第1の送信手段と、前記第1のLSAに対する応答を全て確認する過程で無応答を検出した場合には無応答のルータに対してあらかじめ決められた回数だけ前記第1のLSAの再送を行う再送手段と、前記あらかじめ決められた回数でも前記第1のLSAに対する応答の確認が取れない場合にはあらかじめ決められた時間後に前記無応答のルータに対応するルータIDの接続情報を前記第1のルータの保有しているデータベースから削除する第1の削除手段と、前記第1のルータのルータIDを変更していた場合に、前記他のルータから定期的にやり取りを行う第2のLSAを受信してその受信した第2のLSAに変更前のルータIDに関する情報が含まれていた場合には無応答にする無応答手段と、を有することを特徴としている。
【0010】
更に、上記の第2のダイナミックルーティングプロトコルにおけるルータ間の整合処理方式において、前記削除手段は、前記あらかじめ決められた時間後に前記無応答のルータIDに関するタイムアウト通知を示す第3のLSAを送信して前記第1のルータの保有しているデータベースから前記無応答のルータIDに関する接続情報を削除することを特徴としている。
【0011】
更に、上記の第2のダイナミックルーティングプロトコルにおけるルータ間の整合処理方式において、前記第1のルータは、ルータIDを変更していた場合に、前記第3のLSAを受信した場合には前記第1のルータの保有しているデータベースから前記変更前のルータIDに関する接続情報を削除する第2の削除手段を有することを特徴としている。
【0012】
また、本発明の第1のダイナミックルーティングプロトコルにおけるルータ間の整合処理方法は、複数のルータ間で各前記ルータがOSPFプロトコルの基で定期的にLSAのパケットにより接続情報のやり取りを行うダイナミックルーティングプロトコルにおけるルータ間の整合処理方法であって、前記ルータの識別を示すルータIDの設定変更時に、そのルータIDを変更したルータが変更前のルータIDに対するLSAを受信したときに無応答にし、前記変更前のルータIDに対するLSAを送信したルータが無応答を検出した場合にあらかじめ決められた回数だけリトライを行い、前記変更前のルータIDに対するLSAを送信したルータがあらかじめ決められた前記回数でも応答を受信しない場合にはあらかじめ決められた時間後に自分の保有しているデータベースから前記変更前のルータIDに関する接続情報を削除し、あらかじめ決められた前記時間後に前記変更前のルータIDに対するLSAを受信したルータが自分の保有しているデータベースから前記変更前のルータIDに関する接続情報を削除することを特徴としている。
【0013】
更に、上記の第1のダイナミックルーティングプロトコルにおけるルータ間の整合処理方法において、前記ルータIDを変更したルータが変更後のルータIDに対するLSAを送信した場合にその変更後のルータIDに対するLSAを受信したルータが変更後のルータIDに対する接続情報をデータベースに登録することを特徴としている。
【0014】
また、本発明の第2のダイナミックルーティングプロトコルにおけるルータ間の整合処理方法は、複数のルータ間で各ルータがOSPFプロトコルの基で定期的にLSAのパケットにより接続情報のやり取りを行うダイナミックルーティングプロトコルにおけるルータ間の整合処理方法であって、前記複数のルータの内の第1のルータは、前記定期的にやり取りを行う第1のLSAの作成を行って、前記複数の内の他のルータに送信し、前記第1のLSAに対する応答を全て確認する過程で無応答を検出した場合には無応答のルータに対してあらかじめ決められた回数だけ前記第1のLSAの再送を行い、前記あらかじめ決められた回数でも前記第1のLSAに対する応答の確認が取れない場合にはあらかじめ決められた時間後に前記無応答のルータに対応するルータIDに関する接続情報を前記第1のルータの保有しているデータベースから削除し、前記第1のルータのルータIDを変更していた場合に、前記他のルータから定期的にやり取りを行う第2のLSAを受信してその受信した第2のLSAに変更前のルータIDに関する情報が含まれていた場合には無応答にすることを特徴としている。
【0015】
更に、上記の第2のダイナミックルーティングプロトコルにおけるルータ間の整合処理方法において、前記第1のルータは、前記あらかじめ決められた時間後に前記無応答のルータIDに関するタイムアウト通知を示す第3のLSAを送信し、前記第1のルータの保有しているデータベースから前記無応答のルータIDに関する接続情報を削除することを特徴としている。
【0016】
更に、上記の第2のダイナミックルーティングプロトコルにおけるルータ間の整合処理方法において、前記第1のルータは、ルータIDを変更していた場合に、前記第3のLSAを受信した場合には前記第1のルータの保有しているデータベースから前記変更前のルータIDに関する接続情報を削除することを特徴としている。
【0017】
【発明の実施の形態】
図1を参照すると、本発明の実施の形態は、LAN901と、LAN901に接続されたルータ1と、LAN902と、LAN902に接続されたルータ2と、LAN903と、LAN903に接続されたルータ3と、ルータ2とルータ3とを接続するネットワーク900とから構成される。各LAN内に存在する装置間で通信を行うために、ルータは中継するときに宛先のIPアドレスを見てルーティング(経路制御)を行う。
【0018】
ルータ1,2,3は、図示していないプロセッサによりプログラム制御で動作する。ルータ1,2,3は、RFC1583で規定されているOSPFのルーティングプロトコルに準じて、ルーティングを行っており、その経路情報を管理するために、定期的(30分毎)に各ルータの持つ接続情報(ルータそれぞれのLAN内の情報)であるLSAをお互いにやり取りを行っている。すなわち、自分の持っている接続情報のみを、自分の情報が現われ広告した時点から30分毎に、Age情報を「0」にして、となりのルータ宛に更新LSAを発行する。他のルータの更新LSAを受けたルータは、自データベースを更新し、送信元にはACK(応答)を返信すると共に、他の別の隣接ルータに対して受け取ったAge情報に転送遅延(例えば60秒)を加えて受信した更新情報(接続情報)を転送し、ACKを待つ。この場合、LSAで直接データを交換するのは、隣同士であり、LSAを送信したルータがACKを待つことになる。
【0019】
ルータ1,2,3は、受信したLSAを基にデータベースを更新することになるが、そのデータベースは、電源のON/OFFでクリアできるように各ルータ内の図示していない揮発性メモリ(例えば、RAM)内に割り当てられており、ルータID単位に接続情報および監視時間(Age)が登録されている。また、更新されたデータベースを基にルーティングテーブルを更新することになるが、そのルーティングテーブルは、各ルータ内の図示していない揮発性のメモリ(例えば、RAM)に内に割り当てられており、経路情報が登録されている。また、ルータ1,2,3には不揮発性メモリ(例えば、フラッシュメモリ)を持っており、不揮発性のメモリ内には、送信回数の規定値(閾値)等があらかじめ設定されている。この送信回数の規定値は、図示していない入力部(例えば、キーボード)から値を設定することにより変更できるようになっている。
【0020】
データベース内にルータID毎に割り当てられている監視時間(Age)は、ルータのプロセッサのタイマ処理によりカウントアップする(例えば、10秒毎にルータ内の図示していないタイマによりタイマ割り込みを発生させ、プロセッサによりルータID毎に割り当てられている監視時間の内容を+10する)。更に、プロセッサは、カウントアップするときに各監視時間が3600の値になったかどうかをチェックすることで、OSPFで規定されているAgingタイムアウトの管理を行う。なお、各ルータのプロセッサは、隣接のルータに対して30分毎に自分のルータIDの接続情報をLSAで送信するときに自分のルータIDの監視時間をクリア(「0」に設定)し、定期的に送信される各ルータIDに対するLSAを受信したときに自ルータ内のデータベース内にある送信先のルータIDの監視時間をクリアする。
【0021】
次に、図1〜5を参照して、本発明の実施の形態の動作について説明する。
今、ルータ3のルータIDを「C」から「D」に変更するために、ルータ3の入力部からデータベースに登録されているルータIDを「C」から「D」に変更する。この場合、ルータ3のIPアドレスは変更されない。なお、以降の説明において、変更前の旧ルータIDをルータ「C」と称し、変更後の新ルータIDをルータ「D」と称す場合もある。また、ルータ1のルータIDはルータ「A」で、ルータ2のルータIDはルータ「B」である。
【0022】
ルータ3のルータIDが変更された後に、ルータ2内の図示していないタイマが、LSAを送信(パケットにして送信)させるために、30分毎に割り込みをプロセッサにかけるが、その割り込みが発生すると、ルータ2のプロセッサは、データベースを基にLSAを作成する(図3のステップS101)。この場合、ルータ2のデータベースに登録されている隣のルータ3の情報としてはルータ「C」の接続情報であるために、ルータ2のプロセッサが作成したLSAのルータ3への宛先として、隣接のルータ3の旧ルータID(ルータ「C」)になっている。また、LSAのパケットヘッダのAgeフィールドには、「0」の値が設定される。この後、ルータ2のプロセッサは、データベース内の自分のルータIDであるルータ「B」の監視時間を「0」に設定すると共に、ルータ1およびルータ2の送信回数(メモリ内に設定)を1に設定し、ルータ1およびルータ3に対して作成したLSAを送信する(ステップS102,S103)。この場合、送信回数はルータ2の図示していない読み出し書き込みのできるメモリ内にプロセッサにより設定される。
【0023】
ルータ1がルータ2からのLSAを受信すると、ルータ1のプロセッサは、LSAのパケットヘッダを解析することになるが、受信したLSAの宛先(ルータ「A」)が自分自身のルータIDの値になっているかどうかを判定する(図5のステップS201,S202)。しかしながら、ルータ1は、自分自身のルータIDを変更していないので宛先のルータ「A」と一致し、ステップS203に進み、指示内容がタイムアウト通知かどうかを分析する(ステップS203)。なお、タイムアウト通知とは、LSAのパケットヘッダ内にあるAgeフィールドの内容が3600の値(LSAパケット内のLink−StateIDフィールドに設定されているルータIDの接続情報が1時間、ルータ間で情報交換されなかったことを示す)になっていることを意味する。
【0024】
ステップS203において、タイムアウト通知でないので、ルータ1のプロセッサは、指示内容に従った処理を行う。この場合、ルータ2からのLSA上の接続情報に以前と変更がないので、ルータ1のプロセッサは、ルータID(ルータ「B」)の監視時間を受信したLSAパケット内のAgeフィールドの値(この場合「0」)に設定すると共に、ルータ2にACK(受信したLSAに対する応答パケット)を返信し、処理を終了する(ステップS205,S206)。なお、ステップS205において、もし以前と違う接続情報が変更されていれば、ルータ1のプロセッサは、LSA内の受信データを基にデータベースを更新し、そのデータベースを基にルーティングテーブルを更新する。
【0025】
一方、ルータ3がルータ2からのLSAを受信すると、ルータ3のプロセッサは、LSAのパケットヘッダを解析することになるが、受信したLSAのパケットの宛先が変更したルータIDの「D」宛になっているかどうかを判定する(図4のステップS201,S202)。
【0026】
ステップS202において、宛先が旧ルータID(ルータ「C」)対するパケットであるため、ルータ3のプロセッサは、一致しないでステップS207に進み、ルータ2に対して応答(ACK)を返さないで処理を終了する(ステップS207)。
【0027】
一方、ルータ2のプロセッサは、ステップS101で作成したLSAを送信した後、ルータ1からACKを受信すると、隣接したルータに対して全て終了したかチェックを行う(図3のステップS104,S109)。ルータ3からACKが送信されてこない(送信タイムアウトで検出)ため、ルータ2のプロセッサは、ルータ3に対してメモリに格納されている送信回数が不揮発性のメモリに設定されている規定回数(例えば3回)を超えたかどうかをチェックする(図3のステップS104,S105)。規定回数を超えていないため、ルータ3への送信回数を+1加算してメモリに保存し、ルータ3に対してステップS101で作成したLSAを再送する(ステップS108)。再送しても、LSAを受信したルータ3が上述のステップS201,S202,S207と同じ動作を行うことになり、ACKが返信されないため、ルータ2のプロセッサは、規定回数を超えるまでLSAの再送を繰り返す。やがて、ステップS105において、規定回数を超えると、ルータ2のプロセッサは、ステップS101で作成したLSAの送信の中止を行う(図3のステップS106)。
【0028】
次にルータ2のプロセッサは、全隣接のルータ(例ではルータ1とルータ3)に対して処理が終わっているかどうかを確認し、終わっていれば、処理を終了する(ステップS107)。
【0029】
一方、ルータ2は、ルータ1のルータ「A」およびルータ3のルータ「D」から30分毎に送信されるLSAを受信することになるが、ルータ3のルータ「C」からはLSAが送信されて来ないため、ルータ「C」に対する監視時間はクリアされないでカウントアップ(ルータ内にある図示していないタイマでカウントアップする)され続け、やがて、1時間になると、プロセッサに3600秒のタイムアウト処理の割り込みがかかる。
【0030】
すると、ルータ2のプロセッサは、タイムアウトしたルータ3の旧ルータID(ルータ「C」)に対するタイムアウト通知のLSAを作成する。この場合、LSAのパケットヘッダにあるLink−StateIDフィールドにルータ「C」を設定し、Ageフィールドに3600(1時間に相当)の値を設定する(図4のステップS111)。
【0031】
ルータ1およびルータ3の送信回数を1に設定し、ルータ1およびルータ3に対して作成したタイムアウト通知のLSAを送信する(ステップS112)。
【0032】
ルータ1がルータ2からルータ「C」に対するタイムアウト通知のLSAを受信すると、ルータ1のプロセッサは、LSAのパケットヘッダを解析することになるが、受信したLSAの宛先(ルータ「A」)が自分自身のルータIDの値になっているかどうかを判定する(図5のステップS201,S202)。ルータ1のプロセッサは、宛先が自分自身のルータIDであるのでステップS203に進み、タイムアウト通知かどうかを受信したLSAのパケットヘッダにあるAgeフィールドの値が3600になっているかどうかで分析する(ステップS203)。
【0033】
ステップS203において、分析結果はタイムアウト通知であるので、ルータ1のプロセッサは、指示のあったルータID(ルータ「C」)に関する情報をデータベースから削除すると共に、ルータ2にACKを返信し、処理を終了する(ステップS204,S206)。
【0034】
一方、ルータ3がルータ2からのルータ「C」に対するタイムアウト通知のLSAを受信すると、ルータ3のプロセッサは、LSAの内容を解析することになるが、受信したLSAの宛先のルータIDが「D」になっているかどうかを判定する(図5のステップS201,S202)。
【0035】
ステップS202において、旧ルータID(ルータ「C」)宛に対するLSAであるため、変更したルータID(ルータ「D」)と一致しない。そのため、ルータ3のプロセッサは、ステップS207に進み、ルータ2に対して応答を返さないで処理を終了する(ステップS207)。なお、ステップS207において、ルータ3のプロセッサは、旧ルータIDであるルータ「C」と判断して、ルータ「C」に関する情報を自分のデータベースから削除するようにしても良い。
【0036】
一方、ルータ2のプロセッサは、タイムアウト通知のLSAを送信した後、ルータ1からACKを受信するが、ルータ3からACKが送信されてこないため、ルータ3に対してメモリに格納されている送信回数が不揮発性のメモリに設定されている規定回数(例えば3回)を超えたかどうかをチェックする(図4のステップS110,S111)。規定回数を超えていないため、ルータ3への送信回数を+1加算してメモリに保存し、ルータ3に対してステップS111で作成したタイムアウト通知のLSAを再送する(ステップS112)。再送しても、LSAを受信したルータ3が上述のステップS201,S202,S207と同じ動作を行うことになり、ACKが返信されないため、ルータ2のプロセッサは、規定回数を超えるまでLSAの再送を繰り返す(ステップS113,S114,S115)。やがて、ステップS114において、規定回数を超えると、ルータ2のプロセッサは、ステップS111で作成したタイムアウト通知のLSAの送信の中止を行う(図4のステップS116)。
【0037】
次にルータ2のプロセッサは、全隣接ルータ(例ではルータ1とルータ3)に対して処理が終わっているかどうかを確認し、終わっていれば、タイムアウト通知を行ったルータID(ルータ「C」)に関する接続情報をデータベースから削除し、処理を終了する(ステップS117,S118)。
【0038】
一方、ルータ3は、上記で説明した動作とは別に、ルータIDを「C」から「D」に変更したことで30分後との割り込みにより、ルータ「D」に変更したデータベースを基にLSAの作成を行い、自分のルータIDであるルータ「D」の監視時間を「0」に設定し、送信回数を「1」に設定してルータ1に送信する(図3のステップS101,102)。
【0039】
ルータ2のプロセッサは、新規のLSAを受信すると、LSAのパケットヘッダを解析することになるが、通常の処理のため、ステップS205の処理に進む(図5のステップS201,S202,S203)。
【0040】
このとき、ステップS205において、ルータ2のプロセッサは、受信したLSAの内容に基づき、自ルータ内のデータベースを更新し(この場合、新規にルータ「D」の接続情報、監視時間を追加登録する)、更新したデータベースを基に、ルーティングテーブルを更新(この場合、ルータIDが変わっているだけなので実際には更新されない)する。更新処理が終了すると、ルータ1およびルータ2のプロセッサは、ルータ3に対してACKを返信して処理を終了する(ステップS206)。なお、ルータ2のプロセッサは、ステップS205において、隣接のルータ1に対してルータ3のルータ「D」に対するLSA(ルータ3からのLSA)を送信する。この場合の送信処理は、ステップS102の処理を除き、図3のタイムチャートの動作と同じので説明を省略する。なお、中継時におけるステップS102におけるルータ2のプロセッサは、自分の接続情報に関するLSAの発行でないので何もしない。
【0041】
ルータ2のプロセッサはルータ1からACKを受信し、ルータ3のプロセッサはルータ2からACKを受信し、それぞれのプロセッサは、正常終了する(ステップS104,S109)。
【0042】
従って、図2(図1)のシステム構成において、ルータ「C」に対する接続情報が網内から自動的に削除され、ルータ「A」、「B」、および「D」に基づいてルーティングテーブルが構成されて、ルート情報(経路情報)が管理されることになる。また、各ルータのデータベースにおいては、更新されたルータ「D」を新しいルータIDとしてルータ3の接続情報が管理されることになる。
【0043】
なお、上記の説明において、ルータ3がルータIDを変更した後、定期的に送信するLSAの最初の発信ルータをルータ2として説明したが、ルータ1にしたとしても、ルータ2が中継するだけでルータ1の動作は、ルータ2と同じになるので説明を省略する。
【0044】
なお、上記の説明において、ルータ2のプロセッサが、ステップS113,114,S115におけるルータ「C」へのLSAの再送をルータ「C」に対する監視時間がタイムアウト(1時間)になるまで続けても良い。
【0045】
以上説明したように、変更前のルータ「C」に作成されたLSAを受信したルータ2は、1時間後に変更前のルータ「C」に対するタイムアウト通知を隣接したルータに送信すると共に、変更前のルータ「C」に関する接続情報をデータベースから削除するようにしているため、ルータ2が過去にルータ「C」を基に生成した接続情報(および旧LSA)は網内(この場合、図1のネットワークシステムを意味する)から自動的に消すことができる。すなわち、ルータ3内に変更前のルータIDが存在しないと認識させることにより、自動的に旧LSA情報が消え、マニュアルによる新旧書き換えを行う必要がなくなる。
【0046】
【発明の効果】
以上説明したように、本発明は、ルータの識別を示すルータIDの設定変更時に、変更したルータが変更前のルータにIDに対するLSAを受信したときに無応答にし、変更前のルータIDに関する接続情報を受信したルータがあらかじめ決められた時間(1時間)後に自分の保有しているデータベースから変更前のルータIDに関する接続情報を削除するようにしているため、変更前のルータIDで生成した接続情報およびLSAを網内から自動的に消すことができるという効果がある。
【図面の簡単な説明】
【図1】図1は、本発明の実施の形態のネットワークシステムの構成を示すシステムブロック図である。
【図2】図1の各ルータ間でLSAのやり取りを示す概略図である。
【図3】図1の各ルータが30分毎に作成したLSAの送信処理における動作を示すフローチャートである。
【図4】図1の各ルータが3600秒後のタイムアウト時の動作を示すフローチャートである。
【図5】図1の各ルータがLSAを受信したときの動作を示すフローチャートである。
【図6】従来技術におけるルータ間におけるLSAのやり取りを示した概略図である。
【符号の説明】
1,2,3 ルータ
900 ネットワーク
901,902,903 LAN[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a matching processing method and a matching processing method between routers in a dynamic routing protocol, and more particularly to a matching processing method and a matching processing method between routers when a router ID of a router in a dynamic protocol is changed.
[0002]
[Prior art]
In a system that performs communication via a router on the network, each router needs to perform routing in order to secure a communication path between the routers. The routing protocol for performing the routing includes industry standard RIP (Routing Information Protocol), OSPF (Open Shortest Path First), etc. as dynamic routing that automatically selects an optimum route while exchanging routing information. It is defined by RFC (Request for Comments).
[0003]
As a network system for performing communication between routers based on the OSPF protocol according to RFC1583, referring to FIG. 3, the router ID (identification number indicated by 32 bits uniquely identifying the router in the AS) is “A”. , A router 52 whose router ID is “B”, and a
[0004]
[Problems to be solved by the invention]
However, in the OSPF protocol, the router must hold the LSA, which is connection information including the connection destination router ID received from the partner router, until the maximum value (1 hour: aging timeout value) is reached. There is a rule that when an LSA is transmitted to the other router, it must be sent indefinitely until the other party responds. Based on this convention, the router ID of the
[0005]
That is, when the router ID of the
[0006]
In view of the above problems, an object of the present invention is to provide an old LSA created based on old router ID connection information and old router ID held in other routers when a router ID setting is changed in an OSPF application network. Is to automatically disappear and establish new connection information.
[0007]
[Means for Solving the Problems]
In order to achieve the above object, the matching processing method between routers in the first dynamic routing protocol of the present invention is such that each of the routers is periodically connected by LSA packets based on the OSPF protocol between the plurality of routers. In the matching processing method between routers in the dynamic routing protocol for exchanging information, when the router ID setting indicating the router identification is changed, the router that has changed the router ID receives the LSA for the router ID before the change The router that has sent no response to the router ID and sends the LSA for the router ID before the change receives connection information related to the router ID before the change from its own database after a predetermined time. Having a first deletion means to delete, before the predetermined Router receiving an LSA for the pre-change router ID in time after is characterized by having a second deletion means for deleting the connection information for the router ID before the change from the database that their holdings.
[0008]
Furthermore, in the matching processing method between routers in the first dynamic routing protocol, when the router except the router whose router ID has been changed receives the LSA for the router ID after the change, It has a registration means for registering connection information in a database.
[0009]
The matching processing method between routers in the second dynamic routing protocol of the present invention is between a plurality of routers. Each In the matching processing method between routers in a dynamic routing protocol in which connection information is periodically exchanged using LSA packets based on the OSPF protocol, The first of the plurality of routers The router creates the first LSA that regularly communicates. Of the plurality of routers other The le First response means for transmitting to the data and no response when no response is detected in the process of confirming all responses to the first LSA The le A retransmission means for retransmitting the first LSA a predetermined number of times for the data; Said Predetermined Times If the response to the first LSA cannot be confirmed even with the number, it is determined in advance. Was After hours Said No reply The le Connection information of the router ID corresponding to the data Said first router First deleting means for deleting from the database held by When the router ID of the first router has been changed, the second LSA periodically exchanged from the other router is received, and the received second LSA relates to the router ID before the change. A non-response means for making no response when information is included, doing.
[0010]
Furthermore, in the matching processing method between routers in the second dynamic routing protocol, the deletion unit includes: Said Predetermined When A second time-out notification indicating the
[0011]
Furthermore, in the matching processing method between routers in the second dynamic routing protocol, First Router If the router ID has been changed, Said 3 If you received the LSA Said first router The second deletion method for deleting the connection information related to the router ID before the change from the database held by Step It is characterized by having.
[0012]
In addition, the matching processing method between routers in the first dynamic routing protocol of the present invention is a dynamic routing protocol in which each router regularly exchanges connection information using LSA packets based on the OSPF protocol between a plurality of routers. The inter-router matching processing method, wherein when changing the setting of the router ID indicating the identification of the router, when the router having changed the router ID receives LSA for the router ID before the change, no response is made. When the router that has transmitted the LSA for the previous router ID detects no response, the router performs a retry for a predetermined number of times, and the router that has transmitted the LSA for the previous router ID does not respond even if the predetermined number of times. If not received after a predetermined time The connection information related to the router ID before the change is deleted from the database owned by the router, and the router that has received the LSA for the router ID before the change after the predetermined time from the database owned by the router It is characterized in that connection information related to the router ID before the change is deleted.
[0013]
Furthermore, in the matching processing method between routers in the first dynamic routing protocol, when the router having changed the router ID transmits LSA for the changed router ID, the LSA for the changed router ID is received. The router is characterized in that connection information for the changed router ID is registered in a database.
[0014]
In addition, the matching processing method between routers in the second dynamic routing protocol of the present invention is performed between a plurality of routers. Each A method for matching between routers in a dynamic routing protocol in which data exchanges connection information using LSA packets periodically based on the OSPF protocol, The first of the plurality of routers The router creates the first LSA that regularly communicates. Within the plurality other The le No response when no response is detected in the process of confirming all responses to the first LSA. The le The first LSA is retransmitted a predetermined number of times for the data, Said Predetermined Times If the response to the first LSA cannot be confirmed even with the number, after a predetermined time Said No reply The le Connection information regarding the router ID corresponding to the data Said first router Delete from database owned by When the router ID of the first router has been changed, the second LSA periodically exchanged from the other router is received, and the router ID before the change is received by the received second LSA. If there was information about It is characterized by doing.
[0015]
Furthermore, in the matching processing method between routers in the second dynamic routing protocol, First Router Said Predetermined When Shortly Before No. indicating a timeout notification for
[0016]
Furthermore, in the matching processing method between routers in the second dynamic routing protocol, First Router If the router ID has been changed, Said 3 If you received the LSA Said first router The connection information related to the router ID before the change is deleted from the database held by.
[0017]
DETAILED DESCRIPTION OF THE INVENTION
Referring to FIG. 1, an embodiment of the present invention includes a
[0018]
The
[0019]
The
[0020]
The monitoring time (Age) assigned to each router ID in the database is counted up by the timer processing of the router processor (for example, a timer interrupt is generated by a timer not shown in the router every 10 seconds, The content of the monitoring time allocated for each router ID by the processor is incremented by 10). Furthermore, the processor manages the aging timeout defined by OSPF by checking whether each monitoring time has reached a value of 3600 when counting up. The processor of each router clears the monitoring time of its own router ID (set to “0”) when transmitting connection information of its own router ID by LSA every 30 minutes to the adjacent router, When the LSA for each router ID transmitted periodically is received, the monitoring time of the destination router ID in the database in the own router is cleared.
[0021]
Next, with reference to FIGS. 1-5, operation | movement of embodiment of this invention is demonstrated.
Now, in order to change the router ID of the
[0022]
After the router ID of the
[0023]
When the
[0024]
In step S203, since there is no timeout notification, the processor of the
[0025]
On the other hand, when the
[0026]
In step S202, since the destination is a packet for the old router ID (router “C”), the processor of the
[0027]
On the other hand, when the processor of the
[0028]
Next, the processor of the
[0029]
On the other hand, the
[0030]
Then, the processor of the
[0031]
The number of transmissions of the
[0032]
When the
[0033]
In step S203, since the analysis result is a timeout notification, the processor of the
[0034]
On the other hand, when the
[0035]
In step S202, since the LSA is addressed to the old router ID (router “C”), it does not match the changed router ID (router “D”). Therefore, the processor of the
[0036]
On the other hand, the processor of the
[0037]
Next, the processor of the
[0038]
On the other hand, separately from the operation described above, the
[0039]
When the processor of the
[0040]
At this time, in step S205, the processor of the
[0041]
The processor of the
[0042]
Therefore, in the system configuration of FIG. 2 (FIG. 1), the connection information for the router “C” is automatically deleted from the network, and the routing table is configured based on the routers “A”, “B”, and “D”. Thus, route information (route information) is managed. In the database of each router, the connection information of the
[0043]
In the above description, the
[0044]
In the above description, the processor of the
[0045]
As described above, the
[0046]
【The invention's effect】
As described above, according to the present invention, when the router ID setting indicating the router identification is changed, the changed router makes no response when the LSA for the ID is received by the router before the change, and the connection related to the router ID before the change. Since the router that received the information deletes the connection information related to the router ID before the change from its own database after a predetermined time (one hour), the connection generated with the router ID before the change There is an effect that information and LSA can be automatically deleted from the network.
[Brief description of the drawings]
FIG. 1 is a system block diagram showing a configuration of a network system according to an embodiment of this invention.
FIG. 2 is a schematic diagram showing LSA exchange between routers in FIG. 1;
FIG. 3 is a flowchart showing an operation in an LSA transmission process created by each router in FIG. 1 every 30 minutes;
FIG. 4 is a flowchart showing an operation when each router in FIG. 1 times out after 3600 seconds;
FIG. 5 is a flowchart showing an operation when each router in FIG. 1 receives an LSA;
FIG. 6 is a schematic diagram showing LSA exchange between routers in the prior art.
[Explanation of symbols]
1, 2, 3 routers
900 network
901, 902, 903 LAN
Claims (10)
前記ルータの識別を示すルータIDの設定変更時に、そのルータIDを変更したルータは、変更前のルータIDに対するLSAを受信したときに無応答にする無応答手段を有し、
前記変更前のルータIDに対するLSAを送信したルータは、あらかじめ決められた時間後に自分の保有しているデータベースから前記変更前のルータIDに関する接続情報を削除する第1の削除手段を有し、
あらかじめ決められた前記時間後に前記変更前のルータIDに対するLSAを受信したルータは、自分の保有しているデータベースから前記変更前のルータIDに関する接続情報を削除する第2の削除手段を有することを特徴とするダイナミックルーティングプロトコルにおけるルータ間の整合処理方式。In a matching processing method between routers in a dynamic routing protocol in which each router exchanges connection information by LSA packets periodically based on the OSPF protocol between the plurality of routers.
When changing the setting of the router ID indicating the router identification, the router that has changed the router ID has no-response means for making no response when receiving the LSA for the router ID before the change,
The router that has transmitted the LSA for the router ID before the change has a first deletion unit that deletes the connection information related to the router ID before the change from the database held by the router after a predetermined time,
The router that has received the LSA for the router ID before the change after the predetermined time has second deletion means for deleting the connection information related to the router ID before the change from its own database. A matching processing method between routers in the dynamic routing protocol.
前記複数のルータの内の第1のルータは、
前記定期的にやり取りを行う第1のLSAの作成を行って、前記複数のルータの内の他のルータに送信する第1の送信手段と、
前記第1のLSAに対する応答を全て確認する過程で無応答を検出した場合には無応答のルータに対してあらかじめ決められた回数だけ前記第1のLSAの再送を行う再送手段と、
前記あらかじめ決められた回数でも前記第1のLSAに対する応答の確認が取れない場合にはあらかじめ決められた時間後に前記無応答のルータに対応するルータIDの接続情報を前記第1のルータの保有しているデータベースから削除する第1の削除手段と、
前記第1のルータのルータIDを変更していた場合に、前記他のルータから定期的にやり取りを行う第2のLSAを受信してその受信した第2のLSAに変更前のルータIDに関する情報が含まれていた場合には無応答にする無応答手段と、
を有することを特徴とするダイナミックルーティングプロトコルにおけるルータ間の整合処理方式。In matching processing method between routers each Le chromatography data between a plurality of routers in the dynamic routing protocol for exchanging connection information by the packet periodically LSA under the OSPF protocol,
A first router of the plurality of routers is
Performs creation of the first LSA performing the regularly exchanged, a first transmission means for transmitting to other Le chromatography data of the plurality of routers,
And retransmitting means to perform retransmission of previously the number of times determined first LSA against Le chromatography data of no response if it detects no response in the process of confirming all the response to the first LSA,
Said predetermined router ID corresponding to Le chromatography data of the unacknowledged after a predetermined et time if no 0.00 confirmation response to the first LSA by the number of times the connection information the first A first deleting means for deleting from the database held by the router ;
When the router ID of the first router has been changed, the second LSA periodically exchanged from the other router is received, and the received information about the router ID before the change to the second LSA If there is included, no response means to make no response,
A matching processing method between routers in a dynamic routing protocol characterized by comprising:
前記ルータの識別を示すルータIDの設定変更時に、そのルータIDを変更したルータが変更前のルータIDに対するLSAを受信したときに無応答にし、
前記変更前のルータIDに対するLSAを送信したルータが無応答を検出した場合にあらかじめ決められた回数だけリトライを行い、
前記変更前のルータIDに対するLSAを送信したルータがあらかじめ決められた前記回数でも応答を受信しない場合にはあらかじめ決められた時間後に自分の保有しているデータベースから前記変更前のルータIDに関する接続情報を削除し、
あらかじめ決められた前記時間後に前記変更前のルータIDに対するLSAを受信したルータが自分の保有しているデータベースから前記変更前のルータIDに関する接続情報を削除することを特徴とするダイナミックルーティングプロトコルにおけるルータ間の整合処理方法。A matching processing method between routers in a dynamic routing protocol in which each of the routers exchanges connection information using LSA packets periodically based on an OSPF protocol between a plurality of routers,
When changing the setting of the router ID indicating the identification of the router, when the router that has changed the router ID receives the LSA for the router ID before the change,
If the router that sent the LSA for the router ID before the change detects no response, it will retry a predetermined number of times,
If the router that has transmitted the LSA for the router ID before the change does not receive a response even after the predetermined number of times, the connection information related to the router ID before the change is stored from the database owned by itself after a predetermined time. Delete
A router in a dynamic routing protocol, wherein a router that has received an LSA for the router ID before the change after the predetermined time deletes connection information relating to the router ID before the change from a database held by the router Processing method between the two.
前記複数のルータの内の第1のルータは、
前記定期的にやり取りを行う第1のLSAの作成を行って、前記複数の内の他のルータに送信し、前記第1のLSAに対する応答を全て確認する過程で無応答を検出した場合には無応答のルータに対してあらかじめ決められた回数だけ前記第1のLSAの再送を行い、
前記あらかじめ決められた回数でも前記第1のLSAに対する応答の確認が取れない場合にはあらかじめ決められた時間後に前記無応答のルータに対応するルータIDに関する接続情報を前記第1のルータの保有しているデータベースから削除し、
前記第1のルータのルータIDを変更していた場合に、前記他のルータから定期的にやり取りを行う第2のLSAを受信してその受信した第2のLSAに変更前のルータIDに関する情報が含まれていた場合には無応答にすることを特徴とするダイナミックルーティングプロトコルにおけるルータ間の整合処理方法。 Each Le chromatography data between a plurality of routers is a match processing method between routers in the dynamic routing protocol for exchanging connection information by the packet periodically LSA under the OSPF protocol,
A first router of the plurality of routers is
Performs creation of the first LSA performing the regularly exchanged if, to send to the other Le chromatography data of the plurality, is detected no response in the process of confirming all the response to the first LSA number of times a predetermined relative Le chromatography data unresponsive to perform retransmission of the first LSA,
Wherein the first router connection information about the router ID corresponding to the unanswered Le over data after a predetermined time when it is not possible to confirm the response to the first LSA in advance the number-determined times Delete from the database owned by
When the router ID of the first router has been changed, the second LSA periodically exchanged from the other router is received, and the received information about the router ID before the change to the second LSA A matching processing method between routers in a dynamic routing protocol, characterized in that no response is made when a message is included .
前記あらかじめ決められた時間後に前記無応答のルータIDに関するタイムアウト通知を示す第3のLSAを送信し、
前記第1のルータの保有しているデータベースから前記無応答のルータIDに関する接続情報を削除することを特徴とする請求項8記載のダイナミックルーティングプロトコルにおけるルータ間の整合処理方法。 The first router is:
Send a third LSA indicating a time-out notification of the router ID of the previous SL unanswered after the time that the predetermined,
9. The matching processing method between routers in a dynamic routing protocol according to claim 8, wherein connection information relating to the non-response router ID is deleted from a database held by the first router .
ルータIDを変更していた場合に、前記第3のLSAを受信した場合には前記第1のルータの保有しているデータベースから前記変更前のルータIDに関する接続情報を削除することを特徴とする請求項9記載のダイナミックルーティングプロトコルにおけるルータ間の整合処理方法。 The first router is:
When the router ID is changed and the third LSA is received, the connection information related to the router ID before the change is deleted from the database held by the first router. The matching processing method between routers in the dynamic routing protocol according to claim 9 .
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2001126066A JP3678669B2 (en) | 2001-04-24 | 2001-04-24 | Matching method and matching method between routers in dynamic routing protocol |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2001126066A JP3678669B2 (en) | 2001-04-24 | 2001-04-24 | Matching method and matching method between routers in dynamic routing protocol |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2002319962A JP2002319962A (en) | 2002-10-31 |
JP3678669B2 true JP3678669B2 (en) | 2005-08-03 |
Family
ID=18975169
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2001126066A Expired - Fee Related JP3678669B2 (en) | 2001-04-24 | 2001-04-24 | Matching method and matching method between routers in dynamic routing protocol |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP3678669B2 (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3844768B2 (en) * | 2002-11-20 | 2006-11-15 | 富士通株式会社 | Wireless terminal device |
KR100570821B1 (en) | 2004-03-05 | 2006-04-12 | 삼성전자주식회사 | Apparatus and method for processing ospf in distributed router |
WO2013161873A1 (en) * | 2012-04-27 | 2013-10-31 | 株式会社フジクラ | Communication system |
US10069716B2 (en) | 2015-07-29 | 2018-09-04 | At&T Intellectual Property I, L.P. | Methods and apparatus to reflect routes from a remotely located virtual route reflector |
-
2001
- 2001-04-24 JP JP2001126066A patent/JP3678669B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2002319962A (en) | 2002-10-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20170214609A1 (en) | Forwarding method and forwarding device | |
JP3678669B2 (en) | Matching method and matching method between routers in dynamic routing protocol | |
Cisco | Novell IPX Commands | |
Cisco | Novell IPX Commands | |
Cisco | Novell IPX Commands | |
Cisco | Novell IPX Commands | |
Cisco | Novell IPX Commands | |
Cisco | Novell IPX Commands | |
Cisco | Novell IPX Commands | |
Cisco | Novell IPX Commands | |
Cisco | Novell IPX Commands | |
Cisco | Novell IPX Commands | |
Cisco | Novell IPX Commands | |
Cisco | Novell IPX Commands | |
Cisco | Novell IPX Commands | |
Cisco | Novell IPX Commands | |
Cisco | Novell IPX Commands | |
Cisco | Novell IPX Commands | |
Cisco | Novell IPX Commands | |
Cisco | Novell IPX Commands | |
Cisco | Novell IPX Commands | |
Cisco | Novell IPX Commands | |
Cisco | Novell IPX Commands | |
Cisco | Novell IPX Commands | |
Cisco | Router Software Configuration: Desktop Protocols Internetwork Operating System Release 10 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20040628 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20040706 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20050118 |
|
RD01 | Notification of change of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7421 Effective date: 20050304 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20050322 |
|
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: 20050419 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20050510 |
|
R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090520 Year of fee payment: 4 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100520 Year of fee payment: 5 |
|
LAPS | Cancellation because of no payment of annual fees |