JP2006180010A - Connection management method, router apparatus, communication terminal, and connection management system - Google Patents

Connection management method, router apparatus, communication terminal, and connection management system Download PDF

Info

Publication number
JP2006180010A
JP2006180010A JP2004368803A JP2004368803A JP2006180010A JP 2006180010 A JP2006180010 A JP 2006180010A JP 2004368803 A JP2004368803 A JP 2004368803A JP 2004368803 A JP2004368803 A JP 2004368803A JP 2006180010 A JP2006180010 A JP 2006180010A
Authority
JP
Japan
Prior art keywords
communication terminal
state
communication
router device
link
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2004368803A
Other languages
Japanese (ja)
Inventor
Shinkichi Ikeda
新吉 池田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP2004368803A priority Critical patent/JP2006180010A/en
Publication of JP2006180010A publication Critical patent/JP2006180010A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a connection management method for a communication terminal, a router apparatus, a communication terminal, and a connection management system whereby when the router apparatus receives a packet addressed to a communication terminal with which the router cannot communicate, the router apparatus can immediately return an arrival error message to a sender. <P>SOLUTION: In an IP network, a communication terminal connected to a link informs the router apparatus about its own communication state, when the router apparatus receives a notice denoting that the communication terminal is in a communication disabled state, the router apparatus shifts nearby cache entries around the communication terminal to a communication disabled state, and thereafter when the router apparatus receives a packet addressed to the communication terminal, the router apparatus immediately transmits the arrival error message to a packet sender. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明は、IP(Internet Protocol)ネットワークにおける通信リンクに接続する通信端末を管理する方法であって、特に通信端末が移動してハンドオーバする場合の接続管理方法、ルータ装置、および接続管理システムに関する。   The present invention relates to a method for managing a communication terminal connected to a communication link in an IP (Internet Protocol) network, and particularly to a connection management method, a router device, and a connection management system when a communication terminal moves and performs handover.

従来より、IPv6プロトコルを用いたIPネットワークにおいて通信リンクに接続する通信端末の接続管理方法として、IETF RFC2461で規定される近隣キャッシュを用いた近隣探索方法が知られている。   Conventionally, as a connection management method for communication terminals connected to a communication link in an IP network using the IPv6 protocol, a neighbor search method using a neighbor cache defined by IETF RFC 2461 is known.

図19は、従来のシステム構成を示した図である。   FIG. 19 is a diagram showing a conventional system configuration.

図19において、通信端末9、10と、ルータ装置20は同一のリンク110に接続し、ルータ装置20はさらに上位ネットワーク120にも接続しており、上位ネットワーク120に接続する通信装置30と通信端末9、10との間の通信を中継する。ここで、通信装置30から通信端末9、10宛のパケットをルータ装置20が受信すると、ルータ装置30は各通信端末のIPアドレスとリンクレイヤアドレス(MACアドレス)の対応を管理するための近隣キャッシュを参照し、パケットの宛先IPアドレスに対応するリンクレイヤアドレス(MACアドレス)を求める。この近隣キャッシュにエントリされていない場合、ルータ装置20は宛先の通信端末のリンクレイヤアドレス(MACアドレス)を近隣探索する。   In FIG. 19, the communication terminals 9 and 10 and the router device 20 are connected to the same link 110, and the router device 20 is further connected to the upper network 120, and the communication device 30 and the communication terminal connected to the upper network 120 are connected. 9 and 10 are relayed. Here, when the router device 20 receives a packet addressed to the communication terminals 9 and 10 from the communication device 30, the router device 30 manages the correspondence between the IP address of each communication terminal and the link layer address (MAC address). The link layer address (MAC address) corresponding to the destination IP address of the packet is obtained. If not entered in the neighborhood cache, the router device 20 searches for the link layer address (MAC address) of the destination communication terminal in the neighborhood.

近隣探索方法の主な手順は、以下の通りである。なお、リンク110としてIEEE802.3が用いられ、通信端末10がIPアドレス3ffe:a:b:c::1とMACアドレス12:34:56:78:90:abを有するものとする。   The main procedure of the neighbor search method is as follows. Note that IEEE802.3 is used as the link 110, and the communication terminal 10 has an IP address 3ffe: a: b: c :: 1 and a MAC address 12: 34: 56: 78: 90: ab.

この場合、ルータ装置20は上位ネットワーク120からIPアドレス3ffe:a:b:c::1宛のパケットを受信すると、プレフィックス3ffe:a:b:c::/64が割り振られたリンク110に対して近隣探索メッセージ200を送信する。   In this case, when the router device 20 receives a packet addressed to the IP address 3ffe: a: b: c :: 1 from the higher-level network 120, the router device 20 connects the link 110 to which the prefix 3ffe: a: b: c :: / 64 is assigned. The neighbor search message 200 is transmitted.

図20は近隣探索メッセージ200のフォーマットを示す図であり、ターゲットアドレス201は探索対象ノードのアドレスである。   FIG. 20 is a diagram showing the format of the neighbor search message 200, and the target address 201 is the address of the search target node.

ルータ装置20は、このターゲットアドレスフィールド201に探索対象である通信端末のIPアドレス3ffe:a:b:c::1を記載して、リンク110の全通信端末に対してマルチキャストする。   The router device 20 describes the IP address 3ffe: a: b: c :: 1 of the communication terminal to be searched in the target address field 201, and multicasts to all the communication terminals of the link 110.

該当する通信端末、すなわちここではIPアドレスが一致する通信端末10は、MACアドレス12:34:56:78:90:abを記載したターゲットリンクレイヤアドレスオプションを付加した近隣広告メッセージ210を、近隣探索メッセージ200の送信元であるルータ装置20に対して送信する。   The corresponding communication terminal, that is, the communication terminal 10 whose IP address matches here, searches for the neighbor advertisement message 210 with the target link layer address option describing the MAC address 12: 34: 56: 78: 90: ab added. The message 200 is transmitted to the router device 20 that is the transmission source of the message 200.

図21はターゲットリンクレイヤアドレスオプションが付加された近隣広告メッセージ210のフォーマットを示す図である。   FIG. 21 is a diagram showing a format of the neighbor advertisement message 210 to which the target link layer address option is added.

図21において、オプションタイプフィールド212はターゲットリンクレイヤアドレスオプションの識別子を示すものであり、リンクレイヤアドレスフィールド213はター
ゲットアドレスフィールド211に対応するリンクレイヤアドレスを示す。本実施の形態において、通信端末10はターゲットアドレスフィールド211には自己のIPアドレス3ffe:a:b:c::1を、オプションタイプフィールド212にはターゲットリンクレイヤアドレスが記載されていることを示す値‘2’を、リンクレイヤアドレスフィールド213には、自己のMACアドレス12:34:56:78:90:abを記載する。
In FIG. 21, an option type field 212 indicates an identifier of a target link layer address option, and a link layer address field 213 indicates a link layer address corresponding to the target address field 211. In the present embodiment, the communication terminal 10 indicates that its own IP address 3ffe: a: b: c :: 1 is described in the target address field 211, and the target link layer address is described in the option type field 212. The value “2” is stored in the link layer address field 213 of its own MAC address 12: 34: 56: 78: 90: ab.

次に、近隣広告メッセージ210を受信したルータ装置20は、ターゲットアドレスフィールド211に記載されたIPアドレス3ffe:a:b:c::1と、リンクレイヤアドレスフィールド213に記載されたMACアドレス12:34:56:78:90:abとを近隣キャッシュに記憶する。なお、厳密には、近隣広告メッセージ210のOフラグが‘1’のときに限り近隣キャッシュに記憶する。   Next, the router device 20 that has received the neighbor advertisement message 210 receives the IP address 3ffe: a: b: c :: 1 described in the target address field 211 and the MAC address 12: described in the link layer address field 213: 34: 56: 78: 90: ab is stored in the neighborhood cache. Strictly speaking, it is stored in the neighborhood cache only when the O flag of the neighborhood advertisement message 210 is “1”.

以降、ルータ装置20は近隣キャッシュを参照し、上位ネットワーク120から受信した通信端末10宛のパケットに対して、MACアドレス12:34:56:78:90:abを宛先とするMACヘッダを付加してリンク110に送信する。これにより、通信端末10は自己宛のパケットを受信することができる。   Thereafter, the router device 20 refers to the neighbor cache and adds a MAC header destined for the MAC address 12: 34: 56: 78: 90: ab to the packet addressed to the communication terminal 10 received from the upper network 120. To link 110. Thereby, the communication terminal 10 can receive the packet addressed to itself.

また、ルータ装置20は、一定期間通信の行われなかった通信端末の近隣キャッシュエントリに対し、以下の処理を実施する。   In addition, the router device 20 performs the following processing on the neighborhood cache entry of the communication terminal that has not performed communication for a certain period of time.

図22は、ルータ装置20が管理する近隣キャッシュエントリの状態遷移図を示したものである。   FIG. 22 shows a state transition diagram of neighboring cache entries managed by the router device 20.

図22において、新たにエントリが生成されると到達可能状態(REACHABLE)221に置かれる。その後、到達可能時間(REACHABLE_TIME)(通常30秒)の間、その宛先からの近隣広告メッセージ受信による接続の確認がとれない場合、ステイル状態(STALE)222に遷移する。その後、該当する通信端末へのパケット送信要求が発生すると、パケットを送信して遅延状態(DELAY)223に遷移し、同時に第一遅延検出時間(DELAY_FIRST_PROBE_TIME)(通常5秒)のタイマを起動する。タイムアウト発生時点で、遅延状態(DELAY)223にあった場合は、プルーブ状態224に遷移し、該当通信端末に対する近隣探索メッセージ200を再送時間(RETRANS_TIME)(通常1秒)間隔で最大ユニキャスト送信回数(MAX_UNICAST_SOLICIT)(通常3回)まで送信する。そして、該当通信端末から近隣探索メッセージ200に対する応答があった場合は到達可能状態(REACHABLE)221に遷移し、応答がない場合は、ヌル状態(NULL)225に遷移し該当通信端末のキャッシュエントリを消去する。このため、これ以後にルータ装置は該当通信端末宛のパケットを受信したとき、あらためて近隣探索方法を実施する必要があった。   In FIG. 22, when a new entry is generated, it is placed in a reachable state (REACHABLE) 221. After that, if the connection cannot be confirmed by receiving the neighbor advertisement message from the destination for the reachable time (REACHABLE_TIME) (usually 30 seconds), the state transits to the stale state (STALE) 222. Thereafter, when a packet transmission request to the corresponding communication terminal is generated, the packet is transmitted to transit to the delay state (DELAY) 223, and at the same time, a timer for the first delay detection time (DELAY_FIRST_PROBE_TIME) (normally 5 seconds) is started. If the delay state (DELAY) 223 is reached at the time of occurrence of the timeout, the state transits to the probe state 224, and the maximum number of unicast transmissions of the neighbor search message 200 for the corresponding communication terminal at intervals of the retransmission time (RETRANS_TIME) (usually 1 second). Send up to (MAX_UNICAST_SOLICIT) (usually 3 times). When there is a response to the neighbor search message 200 from the corresponding communication terminal, the state transits to a reachable state (REACHABLE) 221, and when there is no response, the state transits to the null state (NULL) 225 and the cache entry of the relevant communication terminal is set. to erase. For this reason, after that, when the router device receives a packet addressed to the corresponding communication terminal, it is necessary to perform the neighbor search method again.

また、特許文献1には、悪意ある外部端末からの攻撃を抑制し、セキュリティ向上を図る目的で、移動端末がインターネットサービスの利用を終了するときには接続するリンク上のルータ装置の管理する近隣キャッシュエントリを消去する方法が開示されている。すなわち、図23において、携帯端末501上で動作するアプリケーションが動作を終了すると、近隣キャッシュエントリの消去メッセージをルータ装置502に送信し(ステップS521)、ルータ装置502は該当する近隣キャッシュエントリを消去した後に応答メッセージを携帯端末501に送信していた(ステップS522)。   Patent Document 1 discloses a neighbor cache entry managed by a router device on a link to be connected when a mobile terminal terminates use of the Internet service for the purpose of suppressing attacks from malicious external terminals and improving security. A method of erasing is disclosed. That is, in FIG. 23, when the application running on the portable terminal 501 finishes operation, a neighbor cache entry clear message is transmitted to the router device 502 (step S521), and the router device 502 erases the corresponding neighbor cache entry. Later, a response message was transmitted to the portable terminal 501 (step S522).

また、特許文献2には、トラフィックの増大やメモリ資源の消費を低減する通信方法が開示されている。   Patent Document 2 discloses a communication method for reducing traffic increase and memory resource consumption.

図24は、この従来例の通信ネットワークの構成を示す図である。図24において、通信端末604、アクセスルータ603、サブドメインルータ602、ゲートウェイルータ
601が階層構造を形成し、通信端末604が別のサブネットに移動すると、移動前のサブネットのアクセスルータ603には「不在」が記録される。移動先のサブネットのアクセスルータ603には移動体端末604が「ビジター」として登録され、アクセスルータ603の上位にある親ノード(サブドメインルータ)602に当該移動体端末の位置決め情報を送信する。これにより、親ノードに届いた通信端末宛のパケットは、移動先のアクセスルータ603を経由して通信端末604に転送される。
特開2002−94558号公報(第8頁、第6図) 特開2004−80733号公報(第12―16頁、第1図、第4図)
FIG. 24 is a diagram showing the configuration of this conventional communication network. In FIG. 24, when the communication terminal 604, the access router 603, the subdomain router 602, and the gateway router 601 form a hierarchical structure, and the communication terminal 604 moves to another subnet, the access router 603 of the subnet before the movement is “absent. Is recorded. The mobile terminal 604 is registered as a “visitor” in the access router 603 of the destination subnet, and the positioning information of the mobile terminal is transmitted to the parent node (subdomain router) 602 that is above the access router 603. As a result, the packet addressed to the communication terminal that has reached the parent node is transferred to the communication terminal 604 via the access router 603 that is the movement destination.
JP 2002-94558 A (page 8, FIG. 6) JP 2004-80733 A (pages 12-16, FIG. 1, FIG. 4)

しかしながら、上記従来の近隣探索方法、および特許文献1による通信端末の接続管理方法では、ルータ装置20が近隣キャッシュにエントリしていた通信端末との通信が所定時間検出できなくなった場合、あるいは終了した場合、その通信端末の近隣キャッシュエントリを削除していた。このため、再度、この通信端末宛のパケットを受信したときには、この通信端末の接続状況を確認するための近隣探索を行うので、通信端末が接続されていないことを検出するには、数秒にもおよぶタイムアウト時間の経過を待つ必要があった。   However, in the above-described conventional neighbor search method and the communication terminal connection management method disclosed in Patent Document 1, communication with the communication terminal that the router device 20 has entered in the neighbor cache cannot be detected for a predetermined time or has ended. In the case, the neighbor cache entry of the communication terminal has been deleted. For this reason, when a packet addressed to this communication terminal is received again, a neighbor search is performed to confirm the connection status of this communication terminal. Therefore, in order to detect that the communication terminal is not connected, it takes several seconds. It was necessary to wait for the timeout time to elapse.

また、移動端末がリンクから切断されているにも関わらず、近隣キャッシュのエントリを保持しているルータ装置は、移動端末がリンクに接続されていないことを確認するための処理を明示的に行った上でパケット転送の処理を行う必要があった。   In addition, although the mobile terminal is disconnected from the link, the router device holding the neighbor cache entry explicitly performs processing for confirming that the mobile terminal is not connected to the link. In addition, packet transfer processing had to be performed.

さらに、特許文献2による通信方法ではドメイン内での移動に対しては効果を発揮するが、ドメイン以外に移動した場合には、移動先が親ノード602へ通信端末604の位置情報を通知することがないので、移動前のアクセスルータ603へ送信してしまう。このときの処理については、開示されておらず、このパケットを適切に処理することは難しい。   Furthermore, although the communication method according to Patent Document 2 is effective for movement within a domain, when moving to other than the domain, the movement destination notifies the parent node 602 of the location information of the communication terminal 604. Therefore, it is transmitted to the access router 603 before moving. The processing at this time is not disclosed, and it is difficult to appropriately process this packet.

本発明は、上記の課題を解決するためになされ、ルータ装置が通信不能の通信端末宛のパケット処理において、ただちに到達不能メッセージ、例えば、ICMP到達不能(ICMP
Unreachable)メッセージを送信元に返送することができる通信端末の接続管理方法、ルータ装置、通信端末、および接続管理システムを提供するものである。
The present invention has been made in order to solve the above-described problem, and in processing a packet addressed to a communication terminal incapable of communicating with a router device, an immediately unreachable message, for example, ICMP unreachable (ICMP
A communication terminal connection management method, a router device, a communication terminal, and a connection management system that can return an Unreachable message to a transmission source.

上記課題を解決するために、本発明は、IPネットワークにおいて、リンクに接続する通信端末の接続管理を行うルータ装置の接続管理方法であって、通信端末が自己の通信状態をルータ装置へ通知するステップと、前記通信状態が通信不能状態を通知するものである場合、当該通知を受信したルータ装置が、当該通信端末の近隣キャッシュエントリを通信不能状態に遷移させるステップと、ルータ装置が通信端末宛のパケットを受信したとき、ルータ装置が近隣キャッシュエントリの状態を確認し、通信不能状態である場合は前記パケットの送信元に転送不能通知をただちに送信するステップとを有している。   In order to solve the above-described problems, the present invention is a connection management method for a router apparatus that manages connection of a communication terminal connected to a link in an IP network, and the communication terminal notifies the router apparatus of its own communication state. And when the communication state is a notification of the communication disabled state, the router device that has received the notification changes the neighboring cache entry of the communication terminal to the communication disabled state, and the router device is addressed to the communication terminal. The router device confirms the state of the neighbor cache entry when the packet is received, and if it is in a communication impossible state, immediately transmits a transfer impossible notification to the packet transmission source.

これにより、送信元ノードは宛先の通信端末が通信不能状態であることを送信開始後すぐに知ることができるので、届かないパケットを送信し続けるロスを低減できる。   As a result, the transmission source node can know immediately after the start of transmission that the destination communication terminal is in a communication disabled state, so that it is possible to reduce the loss of continuing to transmit unreachable packets.

本発明に係る接続管理方法は、さらに、通信可能状態を通知するものである場合、当該通知を受信したルータ装置が、当該通信端末の近隣キャッシュエントリを通信可能状態に遷移させるステップと、ルータ装置が通信端末宛のパケットを受信したとき、近隣キャッ
シュのエントリの状態が通信可能状態である場合は前記パケットを通信端末に転送するステップとを有している。
The connection management method according to the present invention further includes a step in which the router device that has received the notification causes the neighboring cache entry of the communication terminal to transition to the communicable state when notifying the communicable state; When the packet addressed to the communication terminal is received, if the state of the entry in the neighborhood cache is a communicable state, the step of transferring the packet to the communication terminal is included.

これにより、通信端末が通信不能状態から通信可能状態へ変化したときに、直ちに当該通信端末宛パケットを転送することができる。   Thus, when the communication terminal changes from the communication disabled state to the communication enabled state, the packet addressed to the communication terminal can be transferred immediately.

また、本発明に係る接続管理方法は、通信端末が通信状態を近隣広告メッセージによって通知することを特徴としている。   Further, the connection management method according to the present invention is characterized in that the communication terminal notifies the communication state by a neighbor advertisement message.

これにより、既存メッセージの一部を利用することで新規メッセージを追加することなく自己の通信状態を通知することができる。   Accordingly, it is possible to notify the communication state of the user without adding a new message by using a part of the existing message.

また、本発明に係る接続管理方法は通信端末が通信不能状態の通知を第1のルータ装置へ行った後に、リンク接続を解除し、第2のルータ装置の管理するリンクへ接続したとき、この通信端末が第1のルータ装置へ近隣キャッシュのエントリの削除を要求するステップをさらに有している。   In addition, the connection management method according to the present invention cancels the link connection after the communication terminal notifies the first router device of the communication disabled state, and connects to the link managed by the second router device. The communication terminal further includes a step of requesting the first router device to delete the neighbor cache entry.

これにより、移動元ルータ装置の近隣キャッシュのエントリが適時に削除できるので、近隣キャッシュ領域をより有効に使用することが可能になる。   Thus, the neighbor cache entry of the source router device can be deleted in a timely manner, so that the neighbor cache area can be used more effectively.

また、本発明に係る接続管理方法は、ルータ装置が通信端末から通信不能状態の通知を受信した時点から、所定時間経過後に近隣キャッシュにある通信端末のエントリを削除するものである。   In addition, the connection management method according to the present invention deletes the entry of the communication terminal in the neighboring cache after a predetermined time has elapsed from the time when the router device receives the notification of the communication disabled state from the communication terminal.

これにより、ルータ装置はもはや使用しなくなった近隣キャッシュのエントリを削除できるので、近隣キャッシュ領域をより有効に使用することが可能になる。   Thereby, the router device can delete the entry of the neighbor cache that is no longer used, so that the neighbor cache area can be used more effectively.

本発明に係るルータ装置は、近隣キャッシュと、この近隣キャッシュにエントリしている通信端末の通信状態を管理する近隣探索処理部と、通信端末宛のパケットを受信したとき、近隣キャッシュに記載してある当該通信端末の通信状態に従ってパケットの転送を行うパケット転送処理部とを有し、近隣探索処理部が通信端末からの通信状態の通知に従って、近隣キャッシュのエントリを通信不能状態あるいは通信可能状態へ変更し、パケット転送処理部が近隣キャッシュのエントリが通信不能状態である場合は、パケットの受信時点で送信元に転送不能通知を送信する。   When a router device according to the present invention receives a neighbor cache, a neighbor search processing unit that manages a communication state of a communication terminal that has entered the neighbor cache, and a packet addressed to the communication terminal, A packet transfer processing unit that transfers packets according to the communication state of the communication terminal, and the neighbor search processing unit changes the neighbor cache entry to a communication disabled state or a communication enabled state according to the communication state notification from the communication terminal. When the packet transfer processing unit changes and the neighbor cache entry is in a communication disabled state, the packet transfer processing unit transmits a transfer disabled notification to the transmission source when the packet is received.

これにより、送信元ノードは宛先の通信端末が通信不能状態であることを送信開始後すぐに知ることができるので、届かないパケットを送信し続けるロスを低減できる。   As a result, the transmission source node can know immediately after the start of transmission that the destination communication terminal is in a communication disabled state, so that it is possible to reduce the loss of continuing to transmit unreachable packets.

また、本発明に係るルータ装置は、近隣キャッシュにエントリしている通信端末から通信状態を近隣広告メッセージにより通知される。   Also, the router device according to the present invention is notified of the communication state by the neighbor advertisement message from the communication terminal entered in the neighbor cache.

これにより、既存メッセージの一部を利用することで新規メッセージを追加することなく当該通信端末の通信状態を知ることができる。   Thereby, it is possible to know the communication state of the communication terminal by using a part of the existing message without adding a new message.

また、本発明に係るルータ装置は、近隣探索処理部が通信端末から通信不能状態の通知を受信したときタイマを起動し、タイマが所定時間をカウントしたとき、近隣探索処理部が近隣キャッシュにある通信端末のエントリを削除する。   Further, the router device according to the present invention starts a timer when the neighbor search processing unit receives a notification of a communication impossible state from the communication terminal, and when the timer counts a predetermined time, the neighbor search processing unit is in the neighbor cache. Delete the communication terminal entry.

これにより、ルータ装置はもはや使用しなくなった近隣キャッシュのエントリを削除できるので、近隣キャッシュ領域をより有効に使用することが可能になる。   Thereby, the router device can delete the entry of the neighbor cache that is no longer used, so that the neighbor cache area can be used more effectively.

また、本発明に係る通信端末は、リンクとの接続状態を検知する接続状態検知部と、この接続状態検知部が接続状態の変化を検出したとき、接続しているリンク上のルータ装置へ接続状態を通知する状態遷移要求処理部とを有し、この状態遷移要求処理部が接続している第1のリンクのルータ装置へ通信不能状態を通知した後、第1のリンクを離れ、第2のリンクと接続したとき、第2のリンク上のルータ装置を介して、第1のリンク上の先のルータ装置へ近隣キャッシュのエントリの削除を要求する。   In addition, the communication terminal according to the present invention is connected to the connection state detection unit that detects the connection state with the link, and when the connection state detection unit detects a change in the connection state, the communication terminal is connected to the router device on the connected link. A state transition request processing unit for notifying the state, and after notifying the router device of the first link to which the state transition request processing unit is connected to the communication disabled state, leaving the first link, When the connection is established, the router device on the second link is requested to delete the entry in the neighbor cache via the router device on the second link.

これにより、移動元ルータ装置の近隣キャッシュのエントリが適時に削除できるので、近隣キャッシュ領域をより有効に使用することが可能になる。   Thus, the neighbor cache entry of the source router device can be deleted in a timely manner, so that the neighbor cache area can be used more effectively.

本発明に係る接続管理システムは、リンクとの通信可能状態あるいは通信不能状態をリンク上のルータ装置に通知する通信端末と、受信した通信状態に従って当該通信端末の近隣キャッシュのエントリを変更し、通信端末宛のパケットを受信した時点で、近隣キャッシュのエントリの状態を確認し、通信不能状態である場合はパケットの送信元に転送不能通知をただちに送信するルータ装置とを有している。   The connection management system according to the present invention includes a communication terminal that notifies a router device on a link of a communicable state or a communicable state with a link, changes a neighbor cache entry of the communication terminal according to the received communication state, and communicates When the packet addressed to the terminal is received, the state of the entry in the neighborhood cache is confirmed, and if it is in a communication impossible state, it has a router device that immediately transmits a transfer impossible notification to the packet transmission source.

これにより、送信元ノードは宛先の通信端末が通信不能状態であることを送信開始後すぐに知ることができるので、届かないパケットを送信し続けるロスを低減できる。   As a result, the transmission source node can know immediately after the start of transmission that the destination communication terminal is in a communication disabled state, so that it is possible to reduce the loss of continuing to transmit unreachable packets.

以上のように本発明によれば、ルータ装置は、通信端末宛のパケットを受信したとき、当該通信端末の通信状態の確認をすることができ、当該通信端末との通信が不能状態の場合は、ただちに到達不能通知としてICMP到達不能(ICMP Unreachable)メッセージを送信元に返送することができる。   As described above, according to the present invention, when the router device receives a packet addressed to a communication terminal, the router device can check the communication state of the communication terminal, and when the communication with the communication terminal is impossible, An ICMP Unreachable message can be immediately returned to the sender as an unreachable notification.

以下、本発明の実施の形態について、図を用いて説明する。   Hereinafter, embodiments of the present invention will be described with reference to the drawings.

(実施の形態1)
図19は、本発明に係る接続管理システムを有する通信ネットワークの構成を示す図であり、従来と同一である。
(Embodiment 1)
FIG. 19 is a diagram showing a configuration of a communication network having a connection management system according to the present invention, which is the same as the conventional one.

本発明に係る接続管理システムは、通信装置9、10とルータ装置20とから構成される。   The connection management system according to the present invention includes communication devices 9 and 10 and a router device 20.

図1は、本発明に係る通信端末9、10の構成図であり、物理層処理やデータリンク層処理を行う下位層処理部11、ネットワーク層処理を行うIP処理部12、近隣探索に対する応答を実施する近隣探索処理部13、接続するリンク110上の他のノードのアドレス情報を記録した近隣キャッシュ14、およびリンク110への切断や再接続時に通信状態の移行をルータ装置へ通知する状態遷移要求処理部15を具備する。   FIG. 1 is a configuration diagram of communication terminals 9 and 10 according to the present invention. A lower layer processing unit 11 that performs physical layer processing and data link layer processing, an IP processing unit 12 that performs network layer processing, and a response to a neighbor search. Neighbor search processing unit 13 to be implemented, neighbor cache 14 in which address information of other nodes on the link 110 to be connected is recorded, and a state transition request for notifying the router device of the transition of the communication state when disconnecting or reconnecting to the link 110 A processing unit 15 is provided.

上記のように構成された通信端末9、10の基本的な動作について、図7(a)、(b)に示すフロー図を用いて説明する。なお、近隣探索処理部13が行う近隣探索応答処理は従来のものと同一である。   The basic operation of the communication terminals 9 and 10 configured as described above will be described with reference to the flowcharts shown in FIGS. The neighborhood search response process performed by the neighborhood search processing unit 13 is the same as the conventional one.

図7(a)は通信端末10がリンク110から離脱する場合の処理を示すフロー図である。   FIG. 7A is a flowchart showing processing when the communication terminal 10 leaves the link 110.

まず、下位層処理部11はリンク切断を決定すると状態遷移要求処理部15に通知する
(ステップS71)。
First, when the lower layer processing unit 11 determines to disconnect the link, the lower layer processing unit 11 notifies the state transition request processing unit 15 (step S71).

次に、状態遷移要求処理部15は通信不能状態に移行することを通知するように近隣探索処理部13に指示する。近隣探索処理部13は通信不能状態を通知する近隣広告メッセージ230を生成し、IP処理部12がルータ装置20あるいはリンク110上のすべてのノードに対して、下位層処理部11を介してマルチキャスト送信する(ステップS72)。   Next, the state transition request processing unit 15 instructs the neighbor search processing unit 13 to notify that the communication state is shifted to the communication disabled state. The neighbor search processing unit 13 generates a neighbor advertisement message 230 that notifies the communication disabled state, and the IP processing unit 12 performs multicast transmission to all nodes on the router device 20 or the link 110 via the lower layer processing unit 11. (Step S72).

図5は本実施の形態における近隣広告メッセージ230のフォーマットを示す図あり、図21に示した近隣広告メッセージ210とは、Nフラグ214を有している点が異なる。このNフラグ214は通信端末が通信不能か否かを示すものであり、オンであるときは通信端末が通信不能状態であることを示し、オフであるときは通信可能状態であることを示している。ここでは、リンク接続を離脱して通信不能状態へ移行するので、Nフラグ214をオンにして送信する。   FIG. 5 is a diagram showing a format of the neighborhood advertisement message 230 in the present embodiment, which is different from the neighborhood advertisement message 210 shown in FIG. 21 in that it has an N flag 214. This N flag 214 indicates whether or not the communication terminal is incapable of communication. When it is on, it indicates that the communication terminal is in a communication impossible state, and when it is off, it indicates that the communication terminal is in a communicable state. Yes. Here, since the link connection is disconnected and the communication is disabled, transmission is performed with the N flag 214 turned on.

図7(b)は通信端末10がリンク110に再接続(あるいは新規接続)する際の処理を示すフロー図である。   FIG. 7B is a flowchart showing processing when the communication terminal 10 reconnects (or newly connects) to the link 110.

まず、下位層処理部11がリンク110に接続したことを検出すると、状態遷移要求処理部15に通知する(ステップS73)。   First, when detecting that the lower layer processing unit 11 is connected to the link 110, the state transition request processing unit 15 is notified (step S73).

次に、状態遷移要求処理部15は通信不能状態を解除したことを通知するように近隣探索処理部13に指示する。近隣探索処理部13はNフラグ214をオフに設定した近隣広告メッセージ230を生成する。IP処理部12はルータ装置20あるいはリンク上のすべてのノードに対して、この近隣広告メッセージ230をマルチキャスト送信する(ステップS74)。   Next, the state transition request processing unit 15 instructs the neighbor search processing unit 13 to notify that the communication disabled state has been canceled. The neighborhood search processing unit 13 generates a neighborhood advertisement message 230 with the N flag 214 set to OFF. The IP processing unit 12 multicasts this neighbor advertisement message 230 to the router device 20 or all nodes on the link (step S74).

なお、上記のリンク接続の検出は、下位層処理部11でビーコンの有無によって行ってもよいし、図示していない上位のアプリケーションなどが行うことも可能である。   The detection of the link connection may be performed by the lower layer processing unit 11 based on the presence or absence of a beacon, or may be performed by an upper application not shown.

以上のように、本発明に係る通信端末10は、リンクの接続状態に応じて、明示的に通信可否をリンク110上のノードに対して通知する。   As described above, the communication terminal 10 according to the present invention explicitly notifies the node on the link 110 whether or not communication is possible according to the connection state of the link.

図2は、本発明に係るルータ装置20の構成図であり、物理層処理やデータリンク層処理を行う下位層処理部21、ネットワーク層処理を行うIP処理部22、近隣探索処理を実施する近隣探索処理部23、接続するリンク110上の他のノードのアドレス情報と通信状態を記録した近隣キャッシュ24、通信端末の通信不能状態の経過時間を計測するエントリ有効タイマ25を具備する。なお、下位層処理部21は複数のネットワークリンクに接続することができる。また、本実施の形態では上位ネットワーク120とリンク110の二つのネットワークリンクに接続する場合について説明するが、本発明はその接続する数を制限するものではない。   FIG. 2 is a configuration diagram of the router device 20 according to the present invention, in which a lower layer processing unit 21 that performs physical layer processing and data link layer processing, an IP processing unit 22 that performs network layer processing, and a neighborhood that performs neighborhood search processing. The search processing unit 23 includes a neighbor cache 24 in which the address information and communication state of other nodes on the link 110 to be connected are recorded, and an entry valid timer 25 that measures the elapsed time of the communication terminal incapable of communication. Note that the lower layer processing unit 21 can be connected to a plurality of network links. In this embodiment, the case of connecting to two network links, that is, the upper network 120 and the link 110 is described. However, the present invention does not limit the number of connections.

図6は近隣キャッシュ24のデータ構造を示す図であり、IPアドレス61とMACアドレス62とが対応づけて登録されており、ステータス63によりその登録されたノードの現在の通信状態が記録されている。この通信状態は、図10に示す状態遷移に基づいて行われる。図10に示す通信端末の状態遷移は、図22で説明した従来の状態遷移に通信不能状態226を追加したものであり、到達可能状態221乃至プルーブ状態224、またエントリが存在しない状態であるヌル状態225から通信不能状態226へ遷移する点が異なる。   FIG. 6 is a diagram showing the data structure of the neighborhood cache 24. The IP address 61 and the MAC address 62 are registered in association with each other, and the current communication state of the registered node is recorded by the status 63. . This communication state is performed based on the state transition shown in FIG. The state transition of the communication terminal shown in FIG. 10 is obtained by adding an incommunicable state 226 to the conventional state transition described with reference to FIG. 22, a reachable state 221 to a probe state 224, and a null in which no entry exists. The difference is that the state 225 transits to the communication disabled state 226.

上記のように構成されたルータ装置20の基本的な動作について、図8(a)、(b)に示すフロー図を用いて以下に説明する。   The basic operation of the router device 20 configured as described above will be described below with reference to the flowcharts shown in FIGS.

図8(a)は近隣広告メッセージを受信したときの動作を示すフロー図である。   FIG. 8A is a flowchart showing an operation when a neighborhood advertisement message is received.

まず、IP処理部22は下位層処理部21を介して近隣広告メッセージ230を受信すると、近隣探索処理部23へ通知する(ステップS81)。   First, when receiving the neighbor advertisement message 230 via the lower layer processor 21, the IP processor 22 notifies the neighbor search processor 23 (step S81).

次に、近隣探索処理部23は近隣キャッシュ24に該当するエントリが存在するか否かを検索し(ステップS82)、該当エントリがない場合は、新たにエントリを生成する(ステップS83)。   Next, the neighbor search processing unit 23 searches whether there is a corresponding entry in the neighbor cache 24 (step S82). If there is no corresponding entry, a new entry is generated (step S83).

次に、近隣探索処理部23は近隣広告メッセージ230のNフラグ214を確認する(ステップS84)。Nフラグ214がオンである場合は、エントリの状態を通信不能(Not PROBE)状態226に遷移させ、エントリ有効タイマ25を起動する(ステップS84)。一方、Nフラグ214がオフである場合、エントリの状態を到達可能(REACHABLE)状態221に復帰させ、エントリ有効タイマをリセットする(ステップS86)。   Next, the neighborhood search processing unit 23 checks the N flag 214 of the neighborhood advertisement message 230 (step S84). If the N flag 214 is on, the entry state is changed to the communication disabled (Not PROBE) state 226, and the entry valid timer 25 is started (step S84). On the other hand, if the N flag 214 is off, the entry state is returned to the reachable state (REACHABLE) 221 and the entry valid timer is reset (step S86).

その後、近隣広告メッセージのその他の処理を行う(ステップS87)。   Thereafter, other processing of the neighborhood advertisement message is performed (step S87).

図8(b)は近隣探索処理部23がエントリ有効タイマ25の起動時に並行して行う処理を示すフロー図である。   FIG. 8B is a flowchart showing processing performed in parallel by the neighbor search processing unit 23 when the entry valid timer 25 is activated.

近隣探索処理部23はエントリ有効タイマ25が所定時間経過したかを監視し(ステップS88)、所定のエントリ有効時間が経過した場合には、該当するエントリの状態をヌル状態225へ遷移させ、エントリを削除する(ステップS89)。   The neighbor search processing unit 23 monitors whether or not the entry valid timer 25 has elapsed (step S88), and when the predetermined entry valid time has elapsed, the state of the corresponding entry is changed to the null state 225 to enter the entry. Is deleted (step S89).

なお、この所定時間とは、例えば、無線LANシステムにおいてIEEE802.1x認証が完了するのに十分な時間である1分とすることができる。   The predetermined time can be, for example, 1 minute, which is a sufficient time for completing the IEEE 802.1x authentication in the wireless LAN system.

次に、ルータ装置20が通信端末宛のIPパケットを受信したときの動作について図9を用いて説明する。   Next, the operation when the router device 20 receives an IP packet addressed to a communication terminal will be described with reference to FIG.

IP処理部22は下位層処理部21を介して通信端末宛のパケットを受信すると(ステップS901)、近隣キャッシュ24を参照し、宛先の通信端末がエントリされているか否かをチェックする(ステップS902)。近隣キャッシュ24にエントリが存在する場合、該当するエントリの通信状態を確認する(ステップS903)。通信不能状態226でない場合、IP処理部22は当該IPアドレスに関連づけられているMACアドレスを参照し、そのMACアドレスを下位層処理部21へ通知する。下位層処理部21はこれを受けて、このMACアドレスを設定しパケットを送信する(ステップS904)。   When receiving the packet addressed to the communication terminal via the lower layer processing unit 21 (step S901), the IP processing unit 22 refers to the neighborhood cache 24 and checks whether the destination communication terminal is entered (step S902). ). If there is an entry in the neighborhood cache 24, the communication state of the corresponding entry is confirmed (step S903). If it is not the communication disabled state 226, the IP processing unit 22 refers to the MAC address associated with the IP address and notifies the lower layer processing unit 21 of the MAC address. In response to this, the lower layer processing unit 21 sets the MAC address and transmits the packet (step S904).

一方、通信不能状態226である場合、IP処理部22はICMP到達不能(ICMP Unreachable)メッセージを作成し(ステップS905)、パケットの送信元へ下位層処理部21を介して送信する(ステップS906)。   On the other hand, when it is in the communication disabled state 226, the IP processing unit 22 creates an ICMP Unreachable message (step S905) and transmits it to the packet transmission source via the lower layer processing unit 21 (step S906). .

また、ステップS902において、近隣キャッシュ24に宛先の通信端末がエントリされていない場合、エントリを生成して(ステップS907)、近隣探索処理を行う(ステップS908)。その結果、宛先の通信端末を検出した場合は、ステップS904へ移行し、検出しなかった場合はステップS905へ移行する。なお、近隣探索処理は従来の処理と同一である。   In step S902, if the destination communication terminal is not entered in the neighborhood cache 24, an entry is generated (step S907), and neighborhood search processing is performed (step S908). As a result, if a destination communication terminal is detected, the process proceeds to step S904, and if not detected, the process proceeds to step S905. The neighborhood search process is the same as the conventional process.

次に、上記のような本発明による通信端末やルータ装置により構成される接続管理システムの動作について説明する。   Next, the operation of the connection management system constituted by the communication terminal and the router device according to the present invention as described above will be described.

初めに、通信端末10がルータ装置20の近隣キャッシュにエントリされるが、この動作は従来と同一である。   Initially, the communication terminal 10 is entered in the neighborhood cache of the router device 20, and this operation is the same as the conventional one.

次に、通信端末10が、リンク110から離脱する。このときの動作について図3を用いて説明する。   Next, the communication terminal 10 leaves the link 110. The operation at this time will be described with reference to FIG.

図3において、まず通信端末10はリンク110からの離脱を決定すると、ルータ装置に通信不能状態への移行を通知する近隣広告メッセージ230を送信する(ステップS31)。この近隣広告メッセージ230のターゲットアドレスフィールド211には自IPアドレスが記載され、メッセージ内のNフラグ214はオンに設定される。   In FIG. 3, first, when the communication terminal 10 determines to leave the link 110, the communication terminal 10 transmits a neighbor advertisement message 230 that notifies the router device of the transition to the communication disabled state (step S31). The own address is described in the target address field 211 of the neighborhood advertisement message 230, and the N flag 214 in the message is set to ON.

次に、ルータ装置20は、Nフラグ214がONである近隣広告メッセージ230を受信すると、近隣キャッシュ24から該当するIPアドレスのエントリを検索し、該当するエントリの状態を、通信不能(Not PROBE)状態226に遷移させる(ステップS32)。   Next, when receiving the neighbor advertisement message 230 in which the N flag 214 is ON, the router device 20 searches for the entry of the corresponding IP address from the neighbor cache 24, and sets the state of the corresponding entry to communication disabled (Not PROBE). A transition is made to state 226 (step S32).

これ以降、ルータ装置20は上位ネットワーク120上の通信装置30や他の通信端末9から通信端末10宛のパケットを受信したとき(ステップS33)、該当する通信端末10の近隣キャッシュエントリの状態が通信不能(Not PROBE)状態226にある限り転送処理を行わず、パケットの送信元である通信装置30に対して配送できなかったことを示すICMP到達不能(ICMP Unreachable)メッセージを送信する(ステップS34)。なお、このまま通信不能状態が所定時間(エントリ有効時間)経過すると、ルータ装置20は該当する通信端末10のエントリを削除する。   Thereafter, when the router device 20 receives a packet addressed to the communication terminal 10 from the communication device 30 or the other communication terminal 9 on the higher level network 120 (step S33), the state of the neighboring cache entry of the corresponding communication terminal 10 is in communication. As long as it is in the not possible (Not PROBE) state 226, the forwarding process is not performed, and an ICMP Unreachable message indicating that the packet could not be delivered to the communication device 30 that is the transmission source of the packet is transmitted (step S34). . Note that if the communication disabled state continues for a predetermined time (entry valid time), the router device 20 deletes the entry of the corresponding communication terminal 10.

次に、通信端末10がリンク110への再接続を実施する場合の処理手順について図4を用いて説明する。   Next, a processing procedure when the communication terminal 10 performs reconnection to the link 110 will be described with reference to FIG.

図4において、通信端末10がリンク110に再接続すると、通信端末10は通信可能状態への状態遷移要求としてNフラグ214をオフにした近隣広告メッセージ230をルータ装置20に送信する(ステップS41)。   4, when the communication terminal 10 reconnects to the link 110, the communication terminal 10 transmits a neighbor advertisement message 230 with the N flag 214 turned off to the router device 20 as a state transition request to a communicable state (step S41). .

ルータ装置20は、これを受けて、近隣キャッシュの該当エントリの状態を到達可能(REACHABLE)状態221に遷移させる(ステップS42)。その後、ルータ装置20は、通信端末10宛のパケットを受信すると(ステップS43)、近隣キャッシュ24に従って転送処理を行う(ステップS44)。該当する近隣キャッシュエントリが存在しない場合は、新規にエントリを作成する。   In response to this, the router device 20 changes the state of the corresponding entry in the neighbor cache to the reachable (REACHABLE) state 221 (step S42). Thereafter, when receiving a packet addressed to the communication terminal 10 (step S43), the router device 20 performs a transfer process according to the neighborhood cache 24 (step S44). If the corresponding neighbor cache entry does not exist, a new entry is created.

なお、通信端末10はリンク110への接続が新規接続であるか、再接続であるかを意識することなく、Nフラグ214をオフとする近隣広告メッセージ230を送信してもよい。   Note that the communication terminal 10 may transmit the neighborhood advertisement message 230 that turns off the N flag 214 without being aware of whether the connection to the link 110 is a new connection or a reconnection.

ここで、ルータ装置20は、近隣キャッシュの該当するエントリを通信不能(Not PROBE)状態226に遷移させる前の状態を記憶しておき、通信装置10の再接続時に記憶しておいた状態に復元してもよい。   Here, the router device 20 stores the state before the corresponding entry in the neighbor cache is changed to the communication impossible (Not PROBE) state 226, and restores the state stored when the communication device 10 is reconnected. May be.

なお、上記説明では、Nフラグ214を付加した近隣広告メッセージ230をルータ装
置20のみに送信するとしたが、リンク110上のすべてのノードにマルチキャストするものであってもよい。これにより、リンク110上に複数のルータ装置20が存在する場合に、個別にメッセージを送信する必要がなく、通信帯域を有効に利用することができる。
In the above description, the neighbor advertisement message 230 with the N flag 214 added is transmitted only to the router device 20, but it may be multicast to all the nodes on the link 110. As a result, when there are a plurality of router devices 20 on the link 110, it is not necessary to individually transmit messages, and the communication band can be used effectively.

また、上記説明では、ルータ装置20が通信端末10に関する近隣キャッシュを管理するように記載したが、ルータ装置20だけではなく、通信端末9、10各々が自己の近隣キャッシュのエントリを操作するのに、Nフラグ214を参照した上記処理を実施してもよい。これにより、例えば通信端末9のアプリケーションが通信端末10にデータ送信する場合、通信端末10が通信不能な状態であることをパケット送信前に検知できるので、宛先へ到達不能となるパケットを送信することによるロスを削減できる。特に、パケット課金制の通信システムにおいては、ユーザに対するコストメリットを図ることができる。   Further, in the above description, the router device 20 is described so as to manage the neighborhood cache related to the communication terminal 10, but not only the router device 20 but also each of the communication terminals 9, 10 operates the entry of its own neighborhood cache. The above processing with reference to the N flag 214 may be performed. Thereby, for example, when an application of the communication terminal 9 transmits data to the communication terminal 10, it is possible to detect that the communication terminal 10 is in an incommunicable state before transmitting the packet, so that a packet that cannot reach the destination is transmitted. Can reduce loss. In particular, in a packet billing communication system, cost merit for the user can be achieved.

なお、本実施の形態では、通信不能状態でエントリ有効時間が経過すると近隣キャッシュから該当するノードのエントリを削除していたが、これに限らず、近隣キャッシュとして利用可能な領域が不足した場合にエントリ有効時間が短いエントリから順次消去してもよい。これにより、近隣キャッシュ領域の利用効率を向上することができる。特に、ハンドオーバによって通信端末10がリンク110から離脱する場合には、必ずしも離脱したリンク110に戻るとは限らないので、エントリ有効時間を設けてエントリを削除することは、ルータ装置20のリソース管理上有効である。   In this embodiment, the entry of the corresponding node is deleted from the neighboring cache when the entry valid time elapses in the communication disabled state. However, this is not limited to this, and the area usable as the neighboring cache is insufficient. The entries may be deleted sequentially from the entry with a short valid entry time. Thereby, the utilization efficiency of the neighborhood cache area can be improved. In particular, when the communication terminal 10 leaves the link 110 due to handover, it does not necessarily return to the separated link 110. Therefore, deleting the entry with an entry valid time is considered in resource management of the router device 20. It is valid.

以上のように、本発明に係るルータ装置20は、近隣キャッシュ24に通信端末10がエントリされると、通信端末から明示的に通信不能通知を受け、所定時間経過するまでは、エントリを残したまま通信不能状態として管理を続ける。これにより、ルータ装置20は通信端末10宛のパケットを受信したとき、宛先の通信端末10のエントリが残っているので、該当する通信端末10の近隣探索を行う必要がなく、ただちにICMP到達不能(ICMP Unreachable)メッセージをパケット送信元に送信することが可能となる。その結果、送信元は到達不能になるパケットの送信をすぐに停止することができ、パケットロスを低減することが可能になる。   As described above, when the communication terminal 10 is entered in the neighbor cache 24, the router device 20 according to the present invention explicitly receives a communication failure notification from the communication terminal and leaves the entry until a predetermined time elapses. Management continues as a communication impossible state. Thereby, when the router device 20 receives the packet addressed to the communication terminal 10, the entry of the destination communication terminal 10 remains, so there is no need to perform a neighbor search of the corresponding communication terminal 10, and the ICMP reach is immediately impossible ( ICMP Unreachable) message can be sent to the packet source. As a result, the transmission source can immediately stop transmission of a packet that becomes unreachable, and packet loss can be reduced.

(実施の形態2)
図11は、本発明に係る接続管理システムのネットワーク構成を示す図である。図11において、通信端末10は同一リンク110上のルータ装置20との接続を離れ新たにリンク130に接続し、ルータ装置40を介して上位ネットワーク120上の通信装置30と通信する。
(Embodiment 2)
FIG. 11 is a diagram showing a network configuration of the connection management system according to the present invention. In FIG. 11, the communication terminal 10 leaves the connection with the router device 20 on the same link 110 and newly connects to the link 130, and communicates with the communication device 30 on the upper network 120 via the router device 40.

初めに、本発明に係る通信端末10の動作について、図面を用いて説明する。   First, the operation of the communication terminal 10 according to the present invention will be described with reference to the drawings.

通信端末10の構成は、実施の形態1に示したものと同一であるが、近隣探索処理部13が行う近隣探索処理に以下に説明する機能が追加されている点が異なる。   The configuration of the communication terminal 10 is the same as that shown in the first embodiment, except that a function described below is added to the neighborhood search processing performed by the neighborhood search processing unit 13.

図12は通信端末10がリンク110、130に接続するときの処理を示すフロー図である。   FIG. 12 is a flowchart showing processing when the communication terminal 10 connects to the links 110 and 130.

まず、下位層処理部11がリンクに接続したことを検出すると、状態遷移要求処理部15に通知する(ステップS1201)。そして、状態遷移要求処理部15は接続したリンクが新たなリンクであるか否かを確認する(ステップS1202)。リンクが移動前のものと同一である場合、状態遷移要求処理部はNフラグ214をオフに設定した近隣広告メッセージ230をルータ装置20あるいはリンク110上のすべてのノードに対してマルチキャスト送信する(ステップS1203)。   First, when detecting that the lower layer processing unit 11 is connected to a link, the state transition request processing unit 15 is notified (step S1201). Then, the state transition request processing unit 15 checks whether or not the connected link is a new link (step S1202). If the link is the same as that before the movement, the state transition request processing unit multicast-transmits the neighbor advertisement message 230 with the N flag 214 set to OFF to all the nodes on the router device 20 or the link 110 (step) S1203).

一方、接続したリンクが新たなリンクである場合、状態遷移要求処理部15はNフラグ214をオフにし、ターゲットアドレス211に、現在の自己のIPアドレスを設定し、さらに、タイプフィールドに‘2’を設定し、リンクレイヤアドレス(Link−Layer Address)フィールド213に移動元ルータ装置20との接続で使用していたリンクレイヤアドレス(MACアドレス)を記載した近隣広告メッセージ230を生成し、移動元ルータ装置20へ送信するようにIP処理部22へ指示する。IP処理部22はIPヘッダの宛先IPアドレスフィールドに移動元ルータ装置20のIPアドレスを設定し、送信元IPアドレスフィールドに自己のIPアドレスを設定して、下位層処理部11を介して送出する(S1204)。   On the other hand, when the connected link is a new link, the state transition request processing unit 15 turns off the N flag 214, sets the current IP address in the target address 211, and further sets “2” in the type field. Is generated, and a neighbor advertisement message 230 in which the link layer address (MAC address) used for connection with the source router apparatus 20 is described in the link layer address (Link-Layer Address) field 213 is generated. The IP processing unit 22 is instructed to transmit to the device 20. The IP processing unit 22 sets the IP address of the source router device 20 in the destination IP address field of the IP header, sets its own IP address in the transmission source IP address field, and sends it through the lower layer processing unit 11 (S1204).

以上が、実施の形態1における通信端末の動作と異なる点であり、他の動作については同一である。   The above is the difference from the operation of the communication terminal in Embodiment 1, and the other operations are the same.

次に、本発明に係るルータ装置20の動作について、図面を用いて説明する。   Next, the operation of the router device 20 according to the present invention will be described with reference to the drawings.

本発明に係るルータ装置20の構成は、実施の形態1と同一であるが、近隣探索処理部23が行う近隣探索処理に以下に説明する機能が追加されている点が異なる。   The configuration of the router device 20 according to the present invention is the same as that of the first embodiment, except that a function described below is added to the neighbor search processing performed by the neighbor search processing unit 23.

図13はルータ装置20が近隣広告メッセージを受信したときの処理を示すフロー図である。   FIG. 13 is a flowchart showing the processing when the router device 20 receives the neighborhood advertisement message.

図13において、まず、IP処理部22は下位層処理部21を介して近隣広告メッセージ230を受信すると近隣探索処理部13へ通知する(S1301)。そして、近隣探索処理部13が近隣キャッシュエントリの削除要求であるか否かを判定する(S1302)。この判定は、IP処理部22から取得した送信元IPアドレスが、リンクレイヤアドレス(MACアドレス)213に対応する近隣キャッシュに記録されているIPアドレス02と同一であるか否かにより行う。この送信元IPアドレスが異なっている場合、近隣探索処理部23は自己の属するリンクとは異なるリンクから送信された近隣広告メッセージ230であると認識する。そしてさらに、近隣広告メッセージ230のNフラグ214がオフであることを確認すると、自己の近隣キャッシュエントリの削除要求であると判定する。   In FIG. 13, first, when the IP processing unit 22 receives the neighborhood advertisement message 230 via the lower layer processing unit 21, it notifies the neighborhood search processing unit 13 (S1301). Then, the neighbor search processing unit 13 determines whether the request is for deleting a neighbor cache entry (S1302). This determination is made based on whether or not the source IP address acquired from the IP processing unit 22 is the same as the IP address 02 recorded in the neighborhood cache corresponding to the link layer address (MAC address) 213. When the transmission source IP addresses are different, the neighbor search processing unit 23 recognizes that the neighbor advertisement message 230 is transmitted from a link different from the link to which the neighbor search processor belongs. Further, when it is confirmed that the N flag 214 of the neighbor advertisement message 230 is off, it is determined that the request is a deletion request of its own neighbor cache entry.

ステップS1302において、近隣キャッシュエントリの削除要求であると判定した場合、近隣探索処理部23は該当する通信端末10の近隣キャッシュエントリを削除する(ステップS1303)。一方、削除要求でないと判定した場合は、実施の形態1の図8(a)で示した通常の近隣広告メッセージ受信処理(ステップS82乃至ステップS87)を行う。   If it is determined in step S1302 that the request is for deleting a neighbor cache entry, the neighbor search processing unit 23 deletes the neighbor cache entry of the corresponding communication terminal 10 (step S1303). On the other hand, if it is determined that the request is not a deletion request, the normal neighborhood advertisement message reception process (steps S82 to S87) shown in FIG. 8A of the first embodiment is performed.

なお、近隣キャッシュエントリの削除要求の判定は、ターゲットアドレスに記載された通信端末の現在のIPアドレスと、リンクレイヤアドレス(MACアドレス)213に対応する近隣キャッシュに記録されているIPアドレス02とが同一であるか否かにより行うことも可能である。また、Nフラグをオンとして、IPアドレスの変化だけで判定することも可能である。あるいは、図14に示すように、近隣広告メッセージの旧ルータ・IPアドレスフィールド215をさらに設け、その旧ルータ・IPアドレスフィールド215に移動元ルータ装置20のIPアドレスをさらに記載し、ルータ装置20がこのフィールドに自己のIPアドレスが指定されていることにより、エントリの削除要求であると判定するようにすることも可能である。   The determination of the deletion request for the neighbor cache entry is made based on the current IP address of the communication terminal described in the target address and the IP address 02 recorded in the neighbor cache corresponding to the link layer address (MAC address) 213. It is also possible to carry out depending on whether or not they are the same. It is also possible to make the determination only by changing the IP address with the N flag turned on. Alternatively, as shown in FIG. 14, an old router / IP address field 215 of the neighbor advertisement message is further provided, and the IP address of the source router device 20 is further described in the old router / IP address field 215. It is also possible to determine that this is an entry deletion request by specifying its own IP address in this field.

また、ルータ装置は自己宛でない近隣広告メッセージを受信しても、中継を行うのみで
他の処理を行うことはない。
Also, even if the router device receives a neighbor advertisement message not addressed to itself, it merely relays and does not perform other processing.

次に、本発明に係る通信端末やルータ装置からなる接続管理システムの動作について説明する。なお、本実施の形態における動作は、通信端末10が移動して、新たなリンクへ接続したときの動作のみが実施の形態1と異なり、その他の動作は同一である。   Next, the operation of the connection management system including the communication terminal and the router device according to the present invention will be described. Note that the operation in the present embodiment is different from the first embodiment only in the operation when the communication terminal 10 moves and connects to a new link, and the other operations are the same.

図15は通信端末が移動したときの動作を示すシーケンス図である。   FIG. 15 is a sequence diagram showing an operation when the communication terminal moves.

図15において、通信端末10はリンク110からの離脱に際し、ルータ装置20へ通信不能状態への移行を通知する(ステップS1501)。   In FIG. 15, when the communication terminal 10 leaves the link 110, the communication terminal 10 notifies the router device 20 of the transition to the communication disabled state (step S1501).

ルータ装置20はこれを受信すると、近隣キャッシュの該当するエントリの通信状態を通信不能状態へ更新させる(ステップS1502)。   Upon receiving this, the router device 20 updates the communication state of the corresponding entry in the neighborhood cache to the communication disabled state (step S1502).

次に、通信端末10はそれまで接続していたリンク110から移動して、リンク130へ接続すると(ステップS1503)、移動元のルータ装置20へ自己の近隣キャッシュエントリを削除するための近隣広告メッセージ230を生成し(ステップS1504)、ルータ装置40へ送信する(ステップS1505)。ルータ装置40はルータ装置20宛のこの近隣広告メッセージを中継し、宛先のルータ装置20へ転送する(ステップS1506)。   Next, when the communication terminal 10 moves from the previously connected link 110 and connects to the link 130 (step S1503), the neighbor advertisement message for deleting its own neighbor cache entry to the source router device 20 230 is generated (step S1504) and transmitted to the router device 40 (step S1505). The router device 40 relays this neighbor advertisement message addressed to the router device 20 and transfers it to the destination router device 20 (step S1506).

次に、ルータ装置20はこの近隣広告メッセージを受信すると、近隣キャッシュエントリの削除要求であると判定し、該当するエントリを近隣キャッシュから削除する(S1507)。   Next, when receiving the neighbor advertisement message, the router device 20 determines that it is a neighbor cache entry deletion request, and deletes the corresponding entry from the neighbor cache (S1507).

このように本実施の形態によれば、ルータ装置20が管理する通信端末10がリンクから離脱したのち、当該通信端末10が新たなリンクに接続したとき、移動元のルータ装置20へ当該通信端末の近隣キャッシュエントリを削除する要求が出される。このため、移動元のルータ装置20はこの要求を受けて、当該通信端末10の近隣キャッシュエントリを削除することができる。これにより、ルータ装置20が当該通信端末宛のパケット受信時の通信不能通知を送信元へ直ちに通知できるように、近隣キャッシュに通信不能状態になった通信端末10のエントリを残しておいても、エントリは適時に削除できるので、ルータ装置内の近隣キャッシュ領域を有効に使用することが可能になる。   As described above, according to the present embodiment, after the communication terminal 10 managed by the router device 20 leaves the link, when the communication terminal 10 is connected to a new link, the communication terminal 10 is transferred to the source router device 20. A request is made to delete the neighbor cache entry. For this reason, the source router device 20 can delete the neighbor cache entry of the communication terminal 10 in response to this request. As a result, even if the router device 20 leaves an entry of the communication terminal 10 in the communication disabled state in the neighboring cache so that the transmission failure notification when the packet addressed to the communication terminal is received can be immediately notified to the transmission source, Since the entry can be deleted in a timely manner, it is possible to effectively use the neighboring cache area in the router device.

また、本実施の形態によれば、エントリ有効時間が経過した後に自動的にエントリを削除する場合においても、エントリ有効時間の経過を待つことなく不要なエントリを削除できるので、近隣キャッシュ領域の利用としてより好ましい。   Further, according to the present embodiment, even when an entry is automatically deleted after the entry valid time has elapsed, unnecessary entries can be deleted without waiting for the entry valid time to elapse. Is more preferable.

(実施の形態3)
本実施の形態における通信ネットワーク構成は、図11に示す実施の形態2におけるものと同一であるが、通信端末10が移動先ルータ装置40へ移動したときに、移動元ルータ装置20へ通信端末10のエントリを削除するメッセージの伝達方法が異なる。
(Embodiment 3)
The communication network configuration in the present embodiment is the same as that in the second embodiment shown in FIG. 11, but when the communication terminal 10 moves to the destination router device 40, the communication terminal 10 moves to the source router device 20. The message transmission method for deleting the entry is different.

また、本発明に係る通信端末10の構成は、実施の形態2に示したものと同一であるが、近隣探索処理部13の行う近隣探索処理が以下に説明する機能の点で異なる。   The configuration of the communication terminal 10 according to the present invention is the same as that shown in the second embodiment, but the neighbor search processing performed by the neighbor search processing unit 13 is different in terms of functions described below.

図16は通信端末10がリンク110、130に接続する際の処理を示すフロー図である。   FIG. 16 is a flowchart showing processing when the communication terminal 10 connects to the links 110 and 130.

まず、下位層処理部11がリンクに接続したことを検出すると、状態遷移要求処理部1
5へ通知する(ステップS1601)。そして、状態遷移要求処理部15は接続したリンクが新たなリンクであるか否かを確認する(ステップS1602)。リンクが移動前のものと同一である場合、状態遷移要求処理部15はNフラグ214をオフに設定した近隣広告メッセージ230をルータ装置20あるいはリンク上のすべてのノードに対してマルチキャスト送信する(ステップS1603)。
First, when it is detected that the lower layer processing unit 11 is connected to the link, the state transition request processing unit 1
5 is notified (step S1601). Then, the state transition request processing unit 15 checks whether or not the connected link is a new link (step S1602). When the link is the same as that before the movement, the state transition request processing unit 15 multicast-transmits the neighbor advertisement message 230 with the N flag 214 set to OFF to the router device 20 or all the nodes on the link (step). S1603).

一方、接続したリンクが新たなリンクである場合、状態遷移要求処理部15は移動元ルータ装置20のIPアドレスと、移動元ルータ装置20との接続で使用していたインタフェースのリンクレイヤアドレス(MACアドレス)とを移動先ルータ装置40に通知するための近隣広告メッセージを生成する。   On the other hand, if the connected link is a new link, the state transition request processing unit 15 sends the IP address of the source router device 20 and the link layer address (MAC) of the interface used for the connection with the source router device 20. Address advertisement) to the destination router device 40 is generated.

図14はこのときの近隣広告メッセージのフォーマットを示す図である。図14において、ターゲットアドレスフィールド211は、この近隣広告メッセージの送信元のIPアドレスを示し、タイプフィールドはオプションフィールド220の種別コードを示し、リンクレイヤアドレスフィールド213は移動元ルータ装置20との接続時に使用していたリンクレイヤアドレス(MACアドレス)を示し、旧ルータ・IPアドレスフィールド215は移動元ルータ装置20のIPアドレスを示す。   FIG. 14 shows the format of the neighborhood advertisement message at this time. In FIG. 14, the target address field 211 indicates the IP address of the transmission source of this neighbor advertisement message, the type field indicates the type code of the option field 220, and the link layer address field 213 is at the time of connection with the source router apparatus 20. The link layer address (MAC address) used is shown, and the old router / IP address field 215 shows the IP address of the source router device 20.

この場合においては、ターゲットアドレスフィールド211に通信端末10自身の現在のIPアドレスを記載し、タイプフィールドに種別コード‘3’を設定し、リンクレイヤアドレスフィールド213には通信端末10自身のリンクレイヤアドレス(MACアドレス)を記載し、旧ルータ・IPアドレスフィールド215には移動元ルータ装置20のIPアドレスを記載する。なお、Nフラグ214はオフに設定する。   In this case, the current IP address of the communication terminal 10 itself is described in the target address field 211, the type code “3” is set in the type field, and the link layer address of the communication terminal 10 itself is set in the link layer address field 213. (MAC address) is described, and the IP address of the source router device 20 is described in the old router / IP address field 215. Note that the N flag 214 is set to OFF.

そして、状態遷移要求処理部15はこの近隣広告メッセージ230を移動先ルータ装置40へ送信するようにIP処理部22へ指示する。IP処理部22はIPヘッダの宛先IPアドレスフィールドに移動先ルータ装置40のIPアドレスを設定し、送信元IPアドレスフィールドに自己のIPアドレスを設定して、下位層処理部11を介して送出する(ステップS1604)。   Then, the state transition request processing unit 15 instructs the IP processing unit 22 to transmit the neighborhood advertisement message 230 to the destination router device 40. The IP processing unit 22 sets the IP address of the destination router device 40 in the destination IP address field of the IP header, sets its own IP address in the source IP address field, and sends it through the lower layer processing unit 11 (Step S1604).

以上が、実施の形態2における通信端末の動作と異なる点であり、他の動作については同一である。   The above is the difference from the operation of the communication terminal in the second embodiment, and the other operations are the same.

次に、本発明に係るルータ装置20、40の動作について、図面を用いて説明する。   Next, operations of the router devices 20 and 40 according to the present invention will be described with reference to the drawings.

本発明に係るルータ装置20、40の構成は、実施の形態2と同一であるが、近隣探索処理部23の行う近隣探索処理が以下の点で異なる。   The configurations of the router devices 20 and 40 according to the present invention are the same as those in the second embodiment, but the neighbor search processing performed by the neighbor search processing unit 23 is different in the following points.

図17はルータ装置20、40が近隣広告メッセージを受信したときの処理を示すフロー図である。   FIG. 17 is a flowchart showing processing when the router devices 20 and 40 receive the neighborhood advertisement message.

図17において、まず、IP処理部22は、下位層処理部21を介して近隣広告メッセージ230を受信すると、近隣探索処理部23へ通知する(ステップS1701)。そして、近隣探索処理部23が通信端末からの近隣キャッシュエントリの代理送信の要求であるか否かを判定する(ステップS1702)。この判定は近隣探索処理部23がオプションフィールド220のタイプ212を確認し、種別コード‘3’であるか否かにより行う。近隣探索処理部23は近隣キャッシュエントリの代理送信要求であると判定した場合、図5に示した近隣広告メッセージ210を生成する。ここにおいては、ターゲットアドレスフィールド211に要求元となる通信端末10の現在のIPアドレスを記載し、タイプフィールドに種別コード‘2’を設定し、リンクレイヤアドレスフィールド213には要
求元の通信端末10のリンクレイヤアドレス(MACアドレス)を記載する。また、Nフラグ214はオフに設定する。
In FIG. 17, first, when receiving the neighbor advertisement message 230 via the lower layer processor 21, the IP processor 22 notifies the neighbor search processor 23 (step S1701). Then, the neighbor search processing unit 23 determines whether it is a request for proxy transmission of the neighbor cache entry from the communication terminal (step S1702). This determination is made by the proximity search processing unit 23 confirming the type 212 of the option field 220 and determining whether the type code is “3”. If the neighbor search processing unit 23 determines that the request is a proxy transmission request for a neighbor cache entry, the neighbor search processing unit 23 generates the neighbor advertisement message 210 shown in FIG. Here, the current IP address of the requesting communication terminal 10 is described in the target address field 211, the type code “2” is set in the type field, and the requesting communication terminal 10 is set in the link layer address field 213. The link layer address (MAC address) is described. The N flag 214 is set to off.

そして、近隣探索処理部23はこの近隣広告メッセージ210を移動元ルータ装置20へ送信するようにIP処理部22へ指示する。IP処理部22はIPヘッダの宛先IPアドレスフィールドに移動元ルータ装置20のIPアドレスを設定し、送信元IPアドレスフィールドに自己のIPアドレスを設定して、下位層処理部21を介して送出する(ステップS1703)。   Then, the neighbor search processing unit 23 instructs the IP processing unit 22 to transmit the neighbor advertisement message 210 to the source router device 20. The IP processing unit 22 sets the IP address of the source router device 20 in the destination IP address field of the IP header, sets its own IP address in the source IP address field, and sends it through the lower layer processing unit 21. (Step S1703).

一方、ステップS1702において、近隣広告メッセージの代理送信要求でないと判定した場合、近隣キャッシュエントリの削除要求であるか否かを判定する(ステップS1704)。この判定は、IP処理部22から取得した送信元IPアドレスが通信端末10のアドレスではなく、ルータ装置のアドレスであるか否かにより行う。通信端末10からの近隣広告メッセージ230でないと判定した場合、近隣探索処理部23は他のリンク上にあるルータ装置からの代理の近隣広告メッセージ230であると認識する。そしてさらに、近隣広告メッセージ230のNフラグ214がオフであることを確認すると、自己の近隣キャッシュエントリの削除要求であると判定する。   On the other hand, if it is determined in step S1702 that the request is not a proxy transmission request for a neighbor advertisement message, it is determined whether the request is a delete request for a neighbor cache entry (step S1704). This determination is made based on whether the source IP address acquired from the IP processing unit 22 is not the address of the communication terminal 10 but the address of the router device. If it is determined that it is not the neighbor advertisement message 230 from the communication terminal 10, the neighbor search processing unit 23 recognizes that it is a proxy neighbor advertisement message 230 from a router device on another link. Further, when it is confirmed that the N flag 214 of the neighbor advertisement message 230 is off, it is determined that the request is a deletion request of its own neighbor cache entry.

ステップS1704において、近隣キャッシュエントリの削除要求であると判定した場合、近隣探索処理部23は該当する通信端末10の近隣キャッシュエントリを削除する(ステップS1705)。一方、削除要求でないと判定した場合は、実施の形態1の図8(a)で示した通常の近隣広告メッセージ受信処理(ステップS82乃至S87)を行う。   If it is determined in step S1704 that the request is for deleting a neighbor cache entry, the neighbor search processing unit 23 deletes the neighbor cache entry of the corresponding communication terminal 10 (step S1705). On the other hand, if it is determined that the request is not a deletion request, normal neighbor advertisement message reception processing (steps S82 to S87) shown in FIG. 8A of the first embodiment is performed.

なお、近隣キャッシュエントリの削除要求の判定は、ターゲットアドレス211に記載された、通信端末10の現在のIPアドレスと、リンクレイヤアドレス(MACアドレス)213に対応する、近隣キャッシュに記録されているIPアドレスとが同一であるか否かにより行うことも可能である。あるいは、図14に示した近隣広告メッセージを用いて旧ルータ・IPアドレスフィールド215に移動元ルータ装置20のIPアドレスをさらに通知することにより、ルータ装置20が自己の近隣キャッシュに登録されているエントリの削除要求であると判定することも可能である。   The determination of the deletion request for the neighbor cache entry is made based on the current IP address of the communication terminal 10 described in the target address 211 and the IP recorded in the neighbor cache corresponding to the link layer address (MAC address) 213. It is also possible to carry out depending on whether or not the address is the same. Alternatively, the router device 20 is registered in its own neighbor cache by further notifying the old router / IP address field 215 of the IP address of the source router device 20 using the neighbor advertisement message shown in FIG. It is also possible to determine that this is a deletion request.

また、移動先ルータ装置40は、自己のIPアドレスに加えてMACアドレスを移動元ルータ装置20に通知し、移動元ルータ装置20が近隣キャッシュの通信端末10の該当エントリを旧IPアドレスと移動先ルータ装置40のMACアドレスに更新する。これにより、移動元ルータ装置20と移動先ルータ装置40間でリンクレイヤにおける通信が可能である場合は、通信端末10の旧IPアドレス宛パケットを移動先ルータ装置40のMACアドレス宛に転送することができる。また、移動先ルータ装置40は、先に通信端末10から取得した旧IPアドレス、新IPアドレス、移動元ルータ装置20において使用していたMACアドレス等の情報をもとに、転送を受けた通信端末10の旧IPアドレス宛のパケットを、さらに通信端末10の現在のMACアドレス(先に通信端末10から情報を取得する際のMACヘッダから取得可能)宛に転送して、パケットロスの削減を図ることができる。さらに、移動先ルータ装置40は、転送パケットの宛先IPアドレスフィールドを、通信端末10の新IPアドレスに置換して送出してもよい。   Further, the destination router device 40 notifies the source router device 20 of the MAC address in addition to its own IP address, and the source router device 20 sets the corresponding entry of the communication terminal 10 in the neighboring cache to the old IP address and destination address. The router device 40 is updated to the MAC address. Thereby, when communication at the link layer is possible between the source router device 20 and the destination router device 40, the packet addressed to the old IP address of the communication terminal 10 is transferred to the MAC address of the destination router device 40. Can do. Further, the destination router device 40 receives the transferred communication based on information such as the old IP address, the new IP address, and the MAC address used in the source router device 20 previously acquired from the communication terminal 10. Packets destined for the old IP address of the terminal 10 are further forwarded to the current MAC address of the communication terminal 10 (which can be obtained from the MAC header when information is first obtained from the communication terminal 10) to reduce packet loss. Can be planned. Furthermore, the destination router device 40 may replace the destination IP address field of the transfer packet with the new IP address of the communication terminal 10 and send it out.

以上が、本実施の形態が実施の形態2におけるルータ装置の動作と異なる点であり、他の動作については同一である。   The above is the difference between the present embodiment and the operation of the router device in the second embodiment, and the other operations are the same.

次に、本発明に係る通信端末やルータ装置からなる接続管理システムの動作について説明する。なお、本実施の形態における動作は、通信端末10が移動して、新たなリンクへ接続したときの動作のみが実施の形態1と異なり、その他の動作は同一である。   Next, the operation of the connection management system including the communication terminal and the router device according to the present invention will be described. Note that the operation in the present embodiment is different from the first embodiment only in the operation when the communication terminal 10 moves and connects to a new link, and the other operations are the same.

図18は通信端末10が移動したときの動作を示すシーケンス図である。   FIG. 18 is a sequence diagram showing an operation when the communication terminal 10 moves.

図18において、通信端末10はリンク110からの離脱に際し、ルータ装置20へ通信不能状態への移行を通知する(ステップS1801)。   In FIG. 18, when the communication terminal 10 leaves the link 110, the communication terminal 10 notifies the router device 20 of the transition to the communication disabled state (step S1801).

ルータ装置20はこれを受信すると、近隣キャッシュの該当するエントリの通信状態を通信不能状態へ更新させる(ステップS1802)。   Upon receiving this, the router device 20 updates the communication state of the corresponding entry in the neighborhood cache to the communication disabled state (step S1802).

次に、通信端末10はそれまで接続していたリンク110から移動して、リンク130へ接続すると(ステップS1803)、移動先のルータ装置40へ移動元ルータ装置20のアドレスを通知する(ステップS1804)。   Next, when the communication terminal 10 moves from the previously connected link 110 and connects to the link 130 (step S1803), the address of the source router 20 is notified to the destination router 40 (step S1804). ).

次に、移動先ルータ装置40がこの通知を受けると、移動元のルータ装置20へ通信端末10の近隣キャッシュエントリを削除するために、代理で近隣広告メッセージ210を生成し(ステップS1805)、移動元のルータ装置20へ送信する(ステップS1806)。   Next, when the destination router device 40 receives this notification, in order to delete the neighborhood cache entry of the communication terminal 10 to the source router device 20, a neighborhood advertisement message 210 is generated on behalf of the destination router device 20 (step S1805). It transmits to the original router device 20 (step S1806).

ルータ装置20はこの代理の近隣広告メッセージ210を受信すると、近隣キャッシュエントリの削除要求であると判定し、該当するエントリを近隣キャッシュから削除する(ステップS1807)。   When receiving the proxy neighbor advertisement message 210, the router device 20 determines that it is a neighbor cache entry deletion request, and deletes the corresponding entry from the neighbor cache (step S1807).

以上説明したように本実施の形態によれば、ルータ装置が管理する通信端末がリンクから離脱したのち、新たなリンクに接続したとき、移動元のルータ装置へ当該通信端末の近隣キャッシュエントリを削除する要求を送信する。このため、移動元のルータ装置はこの要求を受け、該当する通信端末の近隣キャッシュエントリを削除することができる。これにより、ルータ装置が当該通信端末宛のパケット受信時の通信不能通知を送信元へ直ちに通知できるように、近隣キャッシュに通信不能状態になった通信端末のエントリを残してもエントリは適時に削除できるので、ルータ装置内の近隣キャッシュ領域を有効に使用することが可能になる。   As described above, according to the present embodiment, when a communication terminal managed by a router device leaves the link and then connects to a new link, the neighboring cache entry of the communication terminal is deleted to the source router device. Send a request to Therefore, the source router device can receive this request and delete the neighbor cache entry of the corresponding communication terminal. This allows the router device to delete the entry in a timely manner even if an entry for the communication terminal that has become inaccessible remains in the neighbor cache so that the router can immediately notify the transmission source when the packet addressed to the communication terminal is received. Therefore, it is possible to effectively use the neighboring cache area in the router device.

また、本実施の形態によれば、エントリ有効時間の経過した後に自動的にエントリを削除する場合においても、エントリ有効時間の経過を待つことなく不要なエントリを削除できるので、近隣キャッシュ領域の利用としてはより好ましい。 なお、本実施の形態においては、通信端末が移動先のルータ装置へ移動元ルータ装置のアドレスを近隣広告メッセージに旧ルータ・IPアドレスフィールドを拡張したもので通知したが、これに限らず、移動元ルータ装置のIPアドレスが通知できれば、他のフォーマットのメッセージにより通知しても同様の効果が得られる。   Further, according to the present embodiment, even when an entry is automatically deleted after the entry valid time elapses, unnecessary entries can be deleted without waiting for the entry valid time to elapse. Is more preferable. In this embodiment, the communication terminal notifies the destination router device of the address of the source router device by expanding the old router / IP address field in the neighbor advertisement message. However, the present invention is not limited to this. If the IP address of the original router device can be notified, the same effect can be obtained even if it is notified by a message in another format.

本発明は、モバイルIP(Internet Protocol)ネットワークにおけるノードの接続管理などに有用であり、ハンドオーバなどにおける通信相手の不在を迅速に検知するのに適している。   The present invention is useful for connection management of nodes in a mobile IP (Internet Protocol) network, and is suitable for quickly detecting the absence of a communication partner in a handover or the like.

本発明の実施の形態1における通信端末の構成を示す図The figure which shows the structure of the communication terminal in Embodiment 1 of this invention. 本発明の実施の形態1におけるルータ装置の構成を示す図The figure which shows the structure of the router apparatus in Embodiment 1 of this invention. 本発明の実施の形態1における接続管理システムの第一の動作シーケンスを示す図The figure which shows the 1st operation | movement sequence of the connection management system in Embodiment 1 of this invention. 本発明の実施の形態1における接続管理システムの第二の動作シーケンスを示す図The figure which shows the 2nd operation | movement sequence of the connection management system in Embodiment 1 of this invention. 本発明の実施の形態1における近隣広告メッセージのフォーマットを示す図The figure which shows the format of the neighborhood advertisement message in Embodiment 1 of this invention. 本発明の実施の形態1における近隣キャッシュのデータ構造を示す図The figure which shows the data structure of the neighborhood cache in Embodiment 1 of this invention (a)、(b)本発明の実施の形態1における通信端末の動作を示すフロー図(A), (b) The flowchart which shows operation | movement of the communication terminal in Embodiment 1 of this invention. (a)、(b)本発明の実施の形態1におけるルータ装置の動作を示すフロー図(A), (b) The flowchart which shows operation | movement of the router apparatus in Embodiment 1 of this invention. 本発明の実施の形態1におけるルータ装置の動作を示すフロー図The flowchart which shows operation | movement of the router apparatus in Embodiment 1 of this invention. 本発明の実施の形態1における近隣キャッシュエントリの状態遷移を示す図The figure which shows the state transition of the neighborhood cache entry in Embodiment 1 of this invention 本発明の実施の形態2に係る通信ネットワークの構成を示す図The figure which shows the structure of the communication network which concerns on Embodiment 2 of this invention. 本発明の実施の形態2における通信端末の動作を示すフロー図The flowchart which shows operation | movement of the communication terminal in Embodiment 2 of this invention. 本発明の実施の形態2におけるルータ装置の動作を示すフロー図The flowchart which shows operation | movement of the router apparatus in Embodiment 2 of this invention. 本発明の実施の形態3における近隣広告メッセージのフォーマットを示す図The figure which shows the format of the neighborhood advertisement message in Embodiment 3 of this invention. 本発明の実施の形態2における接続管理システムの動作シーケンスを示す図The figure which shows the operation | movement sequence of the connection management system in Embodiment 2 of this invention. 本発明の実施の形態3における通信端末の動作を示すフロー図The flowchart which shows operation | movement of the communication terminal in Embodiment 3 of this invention. 本発明の実施の形態3におけるルータ装置の動作を示すフロー図The flowchart which shows operation | movement of the router apparatus in Embodiment 3 of this invention. 本発明の実施の形態3における接続管理システムの動作シーケンスを示す図The figure which shows the operation | movement sequence of the connection management system in Embodiment 3 of this invention. 従来の通信ネットワークの構成を示す図A diagram showing the configuration of a conventional communication network 従来の近隣広告メッセージのフォーマットを示す図The figure which shows the format of the conventional neighborhood advertisement message 従来の近隣探索メッセージのフォーマットを示す図The figure which shows the format of the conventional neighbor search message 従来の近隣キャッシュエントリの状態遷移を示す図A diagram showing state transition of a conventional neighbor cache entry 従来の接続管理システムの動作シーケンスを示す図The figure which shows the operation sequence of the conventional connection management system 従来の接続管理システムの構成を示す図The figure which shows the constitution of the conventional connection management system

符号の説明Explanation of symbols

9、10 通信端末
11 下位層処理部
12 IP処理部
13 近隣探索処理部
14 近隣キャッシュ
15 状態遷移要求処理部
20、40 ルータ装置
21 下位層処理部
22 IP処理部
23 近隣探索処理部
24 近隣キャッシュ
25 エントリ有効タイマ
30 通信装置
110、130 リンク
120 上位ネットワーク
501 携帯端末
502 ルータ装置
601 ゲートウェイルータ
602 サブドメインルータ
603 アクセスルータ
604 通信端末
9, 10 Communication terminal 11 Lower layer processing unit 12 IP processing unit 13 Neighbor search processing unit 14 Neighbor cache 15 State transition request processing unit 20, 40 Router device 21 Lower layer processing unit 22 IP processing unit 23 Neighbor search processing unit 24 Neighbor cache 25 Entry valid timer 30 Communication device 110, 130 Link 120 Upper network 501 Mobile terminal 502 Router device 601 Gateway router 602 Subdomain router 603 Access router 604 Communication terminal

Claims (10)

IPネットワークにおいて、リンクに接続する通信端末の接続管理を行うルータ装置の接続管理方法であって、
通信端末が自己の通信状態をルータ装置へ通知するステップと、
前記通信状態が通信不能状態を通知するものである場合、当該通知を受信したルータ装置が、当該通信端末の近隣キャッシュエントリを通信不能状態に遷移させるステップと、
ルータ装置が通信端末宛のパケットを受信したとき、ルータ装置が近隣キャッシュエントリの状態を確認し、通信不能状態である場合は前記パケットの送信元に転送不能通知をただちに送信するステップと、
を有する接続管理方法。
A connection management method for a router device for managing connection of a communication terminal connected to a link in an IP network,
The communication terminal notifying the router device of its own communication state;
When the communication state is a notification of a communication disabled state, the router device that has received the notification transitions the neighboring cache entry of the communication terminal to a communication disabled state;
When the router device receives the packet addressed to the communication terminal, the router device checks the state of the neighbor cache entry, and if it is in a communication impossible state, immediately sends a transfer impossible notification to the transmission source of the packet;
A connection management method.
さらに、前記通信状態が通信可能状態を通知するものである場合、当該通知を受信したルータ装置が、当該通信端末の近隣キャッシュエントリを通信可能状態に遷移させるステップと、
ルータ装置が通信端末宛のパケットを受信したとき、近隣キャッシュのエントリの状態が通信可能状態である場合は前記パケットを通信端末に転送するステップと、
を有する請求項1に記載の接続管理方法。
Further, when the communication state is to notify the communicable state, the router device that has received the notification transitions the neighboring cache entry of the communication terminal to the communicable state;
When the router device receives a packet addressed to a communication terminal, if the state of the neighbor cache entry is a communicable state, the step of transferring the packet to the communication terminal;
The connection management method according to claim 1, comprising:
前記通信端末は前記通信状態を近隣広告メッセージによって通知することを特徴とする請求項1あるいは2に記載の接続管理方法。 The connection management method according to claim 1, wherein the communication terminal notifies the communication state by a neighbor advertisement message. 前記通信端末が通信不能状態の通知を第1のルータ装置へ行った後に、リンク接続を解除し、第2のルータ装置の管理するリンクへ接続したとき、前記通信端末が第1のルータ装置へ近隣キャッシュのエントリの削除を要求するステップをさらに有する請求項2に記載の接続管理方法。 After the communication terminal notifies the first router device that the communication is impossible, the link connection is released, and when the communication terminal is connected to the link managed by the second router device, the communication terminal transmits to the first router device. The connection management method according to claim 2, further comprising a step of requesting deletion of an entry in the neighbor cache. 前記ルータ装置が前記通信端末から通信不能状態の通知を受信した時点から、所定時間経過後に前記近隣キャッシュにある前記通信端末のエントリを削除することを特徴とする請求項2に記載の接続管理方法。 3. The connection management method according to claim 2, wherein the entry of the communication terminal in the neighbor cache is deleted after a predetermined time has elapsed from the time when the router device receives a notification of the communication disabled state from the communication terminal. . 近隣キャッシュと、
前記近隣キャッシュにエントリしている通信端末の通信状態を管理する近隣探索処理部と、
前記通信端末宛のパケットを受信したとき、前記近隣キャッシュに記載してある当該通信端末の通信状態に従って前記パケットの転送を行うパケット転送処理部と、
を有し、
前記近隣探索処理部が前記通信端末からの前記通信状態の通知に従って、前記近隣キャッシュのエントリを通信不能状態あるいは通信可能状態へ変更し、
前記パケット転送処理部が前記近隣キャッシュのエントリが通信不能状態である場合は、前記パケットの受信時点で送信元に転送不能通知を送信するルータ装置。
Neighborhood cache,
A neighbor search processing unit that manages a communication state of a communication terminal that has entered the neighbor cache;
When receiving a packet addressed to the communication terminal, a packet transfer processing unit that transfers the packet according to the communication state of the communication terminal described in the neighbor cache;
Have
In accordance with the communication status notification from the communication terminal, the neighbor search processing unit changes the neighbor cache entry to a communication disabled state or a communication enabled state,
When the packet transfer processing unit is in an incommunicable state in the neighboring cache entry, the router device transmits a transfer disable notification to the transmission source at the time of reception of the packet.
前記通信状態は近隣広告メッセージにより通知されることを特徴とする請求項6に記載のルータ装置。 The router apparatus according to claim 6, wherein the communication state is notified by a neighbor advertisement message. 前記近隣探索処理部は前記通信端末から通信不能状態の通知を受信したときタイマを起動し、
前記タイマが所定時間をカウントしたとき、前記近隣探索処理部が前記近隣キャッシュにある前記通信端末のエントリを削除することを特徴とする請求項6に記載のルータ装置。
The neighbor search processing unit starts a timer when receiving a notification of a communication impossible state from the communication terminal,
The router device according to claim 6, wherein when the timer counts a predetermined time, the neighbor search processing unit deletes the entry of the communication terminal in the neighbor cache.
リンクとの接続状態を検知する接続状態検知部と、
前記接続状態検知部が接続状態の変化を検出したとき、接続しているリンク上のルータ装置へ接続状態を通知する状態遷移要求処理部と、
を有し、
前記状態遷移要求処理部が接続している第1のリンクのルータ装置へ通信不能状態を通知した後、第1のリンクを離れ第2のリンクと接続したとき、第2のリンク上のルータ装置を介して、第1のリンク上の前記ルータ装置へ近隣キャッシュのエントリの削除を要求する通信端末。
A connection state detector for detecting a connection state with the link;
When the connection state detection unit detects a change in the connection state, a state transition request processing unit that notifies the connection state to the router device on the connected link;
Have
The router device on the second link when the first link is disconnected and connected to the second link after notifying the router device of the first link to which the state transition request processing unit is connected. A communication terminal that requests the router on the first link to delete the neighbor cache entry via the first link.
リンクとの通信可能状態あるいは通信不能状態を、前記リンク上のルータ装置に通知する通信端末と、
受信した前記通信状態に従って当該通信端末の近隣キャッシュのエントリを変更し、前記通信端末宛のパケットを受信した時点で、前記近隣キャッシュのエントリの状態を確認し、通信不能状態である場合は前記パケットの送信元に転送不能通知をただちに送信するルータ装置と、
を有する接続管理システム。

A communication terminal for notifying the router device on the link of a communicable state or a communicable state with the link;
According to the received communication state, the neighbor cache entry of the communication terminal is changed, and when the packet addressed to the communication terminal is received, the state of the neighbor cache entry is confirmed. A router device that immediately sends a transfer impossible notification to the sender of
A connection management system.

JP2004368803A 2004-12-21 2004-12-21 Connection management method, router apparatus, communication terminal, and connection management system Pending JP2006180010A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004368803A JP2006180010A (en) 2004-12-21 2004-12-21 Connection management method, router apparatus, communication terminal, and connection management system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004368803A JP2006180010A (en) 2004-12-21 2004-12-21 Connection management method, router apparatus, communication terminal, and connection management system

Publications (1)

Publication Number Publication Date
JP2006180010A true JP2006180010A (en) 2006-07-06

Family

ID=36733719

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004368803A Pending JP2006180010A (en) 2004-12-21 2004-12-21 Connection management method, router apparatus, communication terminal, and connection management system

Country Status (1)

Country Link
JP (1) JP2006180010A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011045885A1 (en) * 2009-10-16 2011-04-21 日本電気株式会社 Communication system, communication apparatus, communication control method and nontemporary computer readable medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011045885A1 (en) * 2009-10-16 2011-04-21 日本電気株式会社 Communication system, communication apparatus, communication control method and nontemporary computer readable medium
CN102656846A (en) * 2009-10-16 2012-09-05 日本电气株式会社 Communication system, communication apparatus, communication control method and nontemporary computer readable medium
JP5370493B2 (en) * 2009-10-16 2013-12-18 日本電気株式会社 COMMUNICATION SYSTEM, COMMUNICATION DEVICE, COMMUNICATION CONTROL METHOD, AND COMMUNICATION CONTROL PROGRAM
US9800541B2 (en) 2009-10-16 2017-10-24 Nec Corporation Extensions to address utilization and neighbor cache processing functions of IPv6

Similar Documents

Publication Publication Date Title
JP4896038B2 (en) Communication method, mobile communication node and access router in network system
JP4715750B2 (en) Multi-interface communication device, terminal, and path switching method
JP3833450B2 (en) Communication control method and router
JP5048684B2 (en) Selective service update method for communication network
KR100667283B1 (en) Gateway for connecting ad-hoc network and infra-structure network, method for registering service provider, and, method for searcing service provider thereof
US8204034B2 (en) Method and device for transmitting data packets
KR100567823B1 (en) Networking apparatus for stabile handoff in ip-based mobile ad-hoc network system and handoff method using the same
JP4681631B2 (en) Communication system, access router and mobile node
JP4466434B2 (en) Routing method and home agent
JP2005143086A (en) Method for detecting movement and mobile terminal
JP5672238B2 (en) Gateway device, mobile communication system, mobile terminal, packet transfer control method, mobile terminal control method, and program
JP5102766B2 (en) Mobile communication method and access router
US20070086460A1 (en) Method and apparatus for supporting multicast/broadcast in wireless communication system
JP4595619B2 (en) Mobile router, home agent, and terminal location management method
JP4494853B2 (en) Mobile node, mobile control node, packet communication system, and mobile detection method
US20090219832A1 (en) Fast configuration of a default router for a mobile node in a mobile communication system
JPWO2005117367A1 (en) Mobile terminal management apparatus, mobile terminal and communication system
JP5034534B2 (en) Communications system
JP2013518466A (en) Mobile ad hoc rerouting method
JP2006333406A (en) Base station, mobile station, packet communications system, and communication control method
JP2006180010A (en) Connection management method, router apparatus, communication terminal, and connection management system
JP2005244590A (en) Multi-service terminal, handoff method, and handoff program
WO2011118133A1 (en) Communication apparatus, communication system, communication method and communication program
KR100598346B1 (en) Method for supporting mobility for mobile ip service
Ding et al. Internet integrated MANET using Mobile IP