JP4796413B2 - Network equipment - Google Patents
Network equipment Download PDFInfo
- Publication number
- JP4796413B2 JP4796413B2 JP2006068081A JP2006068081A JP4796413B2 JP 4796413 B2 JP4796413 B2 JP 4796413B2 JP 2006068081 A JP2006068081 A JP 2006068081A JP 2006068081 A JP2006068081 A JP 2006068081A JP 4796413 B2 JP4796413 B2 JP 4796413B2
- Authority
- JP
- Japan
- Prior art keywords
- address
- network
- lifetime
- network device
- router
- 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
Description
本発明は、ルータから取得したIPv6(Internet Protocol version 6)アドレスのLifeTime値に応じて種々の動作を行わせることを可能としたネットワーク機器に関する。 The present invention relates to a network device capable of performing various operations according to a LifeTime value of an IPv6 (Internet Protocol version 6) address acquired from a router.
IPv6ではアドレスの自動設定が行えることがひとつの特徴であり、ルータから送信されるルータ広告(RA:Router Advertisement)によりアドレスを作成することができる。すなわち、RAに含まれるPrefix情報と自機のMac(Media access control)アドレスとからIPv6アドレスを生成する。このアドレスをStatelessアドレスと呼ぶ。StatelessアドレスはLifeTimeを持ち、この情報はValid LifeTime(有効期間)およびPreferred LifeTime(参照可能期間)としてRAに含まれている。 One feature of IPv6 is that addresses can be automatically set, and addresses can be created by router advertisements (RA) transmitted from routers. That is, an IPv6 address is generated from the Prefix information included in the RA and the Mac (Media access control) address of the own device. This address is called a stateless address. The Stateless address has LifeTime, and this information is included in the RA as a Valid LifeTime (valid period) and a Preferred LifeTime (referenceable period).
一方、特許文献1には、通信を盗聴して得られるIPアドレスをもとに個人情報が取得され、プライバシーが侵害されることを防ぐため、有効なIPアドレスを複数保持しておき、その中から自ノードのソースアドレスとして使用すべきIPアドレスを選択するようにした、ネットワークシステム、ルータ、ホスト、プレフィクス管理方法およびIPアドレス管理方法が開示されている。
上述したように、IPv6ではアドレスの自動設定が行われるが、Valid LifeTimeが満了した時点でルータはそのIPアドレスを使用不可としてしまうため、例えば、容量の大きなデータを送信している途中でValid LifeTimeが満了すると通信が途中で切れてしまい、データを最後まで送信できないという問題があった。 As described above, the address is automatically set in IPv6, but when the valid life time expires, the router disables the IP address. For example, the valid life time is being transmitted while transmitting a large amount of data. When the period expires, the communication is interrupted and the data cannot be transmitted to the end.
また、その他にもIPv6アドレスのLifeTime値と関連させて行わせたい処理が考えられるが、従来、そのようなニーズに応えられる仕組みは存在しなかった。 In addition, other processing that is desired to be performed in association with the LifeTime value of the IPv6 address can be considered, but there has been no mechanism that can meet such needs.
一方、特許文献1では、第2種類のプレフィクスの全てが無効になる前にプロバイダー側に対して新たな第2種類のプレフィクスの割り当てを要求するようにしているが、これは選択候補としての有効なIPアドレスを複数保持しておくためのものであり、上述したような通信途中でLifeTimeが満了すること等による弊害を回避しようとするものではない。これは、特許文献1がIPアドレスを利用したプライバシーの侵害を防ぐことを目的としていることからくるものである。
On the other hand, in
本発明は上記の従来の問題点に鑑み提案されたものであり、その目的とするところは、ルータから取得したIPv6アドレスのLifeTime値に応じて種々の動作を行わせることを可能としたネットワーク機器を提供することにある。 The present invention has been proposed in view of the above-described conventional problems, and an object of the present invention is to provide a network device capable of performing various operations according to the LifeTime value of the IPv6 address acquired from the router. Is to provide.
上記の課題を解決するため、本発明にあっては、請求項1に記載されるように、ネットワークに接続され、アドレス生成の元となったプレフィックスに含まれるLifeTime値が失効した場合に通信の切断が行われるネットワーク機器であって、ルータから配布されるプレフィックス情報に含まれるLifeTime値が適切か否か判断し、適切である場合にプレフィックスに基づいてアドレスを生成する手段と、送信系アクションの開始時に、使用可能なアドレスの中からLifeTime値により送信時のソースアドレスを選択する手段と、通信中に回線断を検出した場合に、使用中のアドレスのLifeTime値が失効したことを確認し、セッションのクリア処理を行い、新しいアドレスを用いた再送処理もしくは新しいアドレスの通知処理を行う手段とを備えるネットワーク機器を要旨としている。
In order to solve the above-described problem, in the present invention, as described in
また、請求項2に記載されるように、請求項1に記載のネットワーク機器において、上記LifeTime値と動作の対応関係を設定する手段を備えることができる。
Further, as described in
また、請求項3、4に記載されるように、ネットワーク機器の動作制御方法として構成することができる。
Further, as described in
本発明のネットワーク機器にあっては、ルータから取得したIPv6アドレスのLifeTime値に応じて種々の動作を行わせることができ、状況に応じた適切な対応を行うことができる。 In the network device of the present invention, various operations can be performed according to the LifeTime value of the IPv6 address acquired from the router, and appropriate measures can be taken according to the situation.
以下、本発明の好適な実施形態につき説明する。 Hereinafter, preferred embodiments of the present invention will be described.
<構成>
図1は本発明のネットワーク機器を適用したネットワークシステムの一実施形態を示す全体構成図である。
<Configuration>
FIG. 1 is an overall configuration diagram showing an embodiment of a network system to which a network device of the present invention is applied.
図1において、本発明を適用したネットワーク機器1A、1Bは、IPv6プレフィックスを配るルータ2A、2Bおよび他のPC(Personal Computer)3A〜3Cとともにネットワーク6に接続されている。
In FIG. 1,
図2はネットワーク機器1を画像処理装置とした場合のハードウェア構成例を示す図である。
FIG. 2 is a diagram illustrating a hardware configuration example when the
図2において、ネットワーク機器1は、コントローラ101と、オペレーションパネル121と、FCU(Facsimile Control Unit)122と、エンジン部123とを含んでいる。
In FIG. 2, the
コントローラ101は、CPU(Central Processing Unit)102、システムメモリ103、NB(North Bridge)104、SB(South Bridge)105、ASIC(Application Specific Integrated Circuit)106、ローカルメモリ107、HDD(Hard Disk Drive)108、Flash ROM(Flash Read Only Memory)109、NVRAM(Non Volatile RAM)110、SDRAM(Synchronous Dynamic Random Access Memory)111、セキュアデバイス112、Ethernet(登録商標) I/F(Ethernet(登録商標) Interface)113、USB I/F(Universal Serial Bus Interface)114、IEEE 1394 I/F(the Institute of Electrical and Electronic Engineers 1394 Interface)115、セントロニクスI/F116、無線I/F117、外部記憶媒体用I/F118を含む。
The
オペレーションパネル121は、コントローラ101のASIC106に接続されている。また、FCU122およびエンジン部123は、コントローラ101のASIC106にバス124で接続されている。
The
コントローラ101は、ASIC106にローカルメモリ107、HDD108、Flash ROM109、NVRAM110、SDRAM111、セキュアデバイス112などが接続されるとともに、CPU102とASIC106とがCPUチップセットのNB104を介して接続されている。コントローラ101は、NB104を介してCPU102とASIC106とを接続することにより、CPU102のインターフェースが公開されていない場合に対応する。
In the
ASIC106とNB104とは、AGP(Accelerated Graphics Port)119を介して接続されている。後述するソフトウェア構成において、アプリケーションやプラットフォームを形成する一つ以上のプロセスを実行制御するため、ASIC106とNB104とを低速のバスでなくAGP119を介して接続することで、パフォーマンスの低下を防いでいる。 The ASIC 106 and the NB 104 are connected via an AGP (Accelerated Graphics Port) 119. In a software configuration to be described later, in order to control execution of one or more processes forming an application and a platform, the ASIC 106 and the NB 104 are connected via an AGP 119 instead of a low-speed bus, thereby preventing a decrease in performance.
CPU102は、ソフトウェアにより全体の制御を行うものである。
The
NB104は、CPU102、システムメモリ103、SB105、ASIC106、Ethernet(登録商標) I/F113、USB I/F114、IEEE 1394 I/F115、セントロニクスI/F116、無線I/F117、外部記憶媒体用I/F118を接続するためのブリッジである。
The NB 104 includes a
SB105、Ethernet(登録商標) I/F113、USB I/F114、IEEE 1394 I/F115、セントロニクスI/F116、無線I/F117、外部記憶媒体用I/F118は、バス120を介してNB104に接続されている。なお、SB105は、バス120とROMや周辺デバイス等とを接続するためのブリッジである。
The SB 105, Ethernet (registered trademark) I / F 113, USB I / F 114, IEEE 1394 I / F 115, Centronics I / F 116, wireless I / F 117, and external storage medium I / F 118 are connected to the NB 104 via the
システムメモリ103は、画像処理装置の描画用メモリなどとして用いるメモリである。ローカルメモリ107は画像バッファ、符号バッファとして用いるメモリである。
The
ASIC106は、画像処理用のハードウェア要素を有する画像処理用途向けのICである。HDD108は、画像データの蓄積、文書データの蓄積、プログラムの蓄積、フォントデータの蓄積、フォームの蓄積などを行うストレージ(補助記憶装置)の一例である。
The ASIC 106 is an IC for image processing applications having hardware elements for image processing. The
Ethernet(登録商標) I/F113は、画像処理装置をネットワークに接続するインターフェース機器である。USB I/F114、IEEE 1394 I/F115、セントロニクスI/F116および無線I/F117、は、それぞれの規格に準じたインターフェースであり、ネットワークに接続されることもある。
The Ethernet (registered trademark) I / F 113 is an interface device that connects the image processing apparatus to a network. The USB I /
Flash ROM109は、外部からプログラムやデータなどを書き込み可能なメモリである。NVRAM110およびSDRAM111は、電源OFF状態でも情報を保持するメモリである。
The
外部記憶媒体用I/F118は、外部記憶媒体を脱着可能なものであり、外部記憶媒体の規格に準じたインターフェースである。例えばSD(Secure Digital)カード、コンパクトフラッシュ(登録商標)、ROM−DIMM(Dual In-line Memory Module)等が外部記憶媒体として利用される。
The external storage medium I /
セキュアデバイス112は、物理的に取り外すと二度と使えなくなるようなデバイスであり、鍵情報が格納されている。
The
また、オペレーションパネル121は、オペレータからの入力操作を受け付けるとともに、オペレータに向けた表示を行う操作部である。なお、FCU122はメモリを有しており、電源がOFFのときに受信したファクシミリデータを一時的に格納するために利用される。
The
なお、画像処理装置の構成により、Flash ROM109、SDRAM111、セキュアデバイス112、USB I/F114、IEEE 1394 I/F115、セントロニクスI/F116、無線I/F117、外部記憶媒体用I/F118、FCU122は存在しないこともある。
Depending on the configuration of the image processing apparatus, there are a
図3はネットワーク機器1を画像処理装置とした場合のソフトウェア構成例を示す図である。
FIG. 3 is a diagram illustrating a software configuration example when the
図3において、ソフトウェアは、大きく分けると、アプリケーション部131とプラットフォーム部138とから構成される。なお、ここではOS(Operating System)部分(カーネル)の記載は省略してある。
In FIG. 3, the software is roughly composed of an
アプリケーション部131は、コピー、ファクス、スキャナおよびプリンタなどの画像形成処理に関連するユーザサービスに固有の処理を行うものである。アプリケーション部131は、コピー用のアプリケーションであるコピーアプリ132と、ファクシミリ用アプリケーションであるファクスアプリ133と、スキャナ用アプリケーションであるスキャナアプリ134と、ネットワークファイル用アプリケーションであるネットファイルアプリ135と、ページ記述言語およびプリンタ用のアプリケーションであるプリンタアプリ136とを有している。
The
また、プラットフォーム部138は、アプリケーション部131からの処理要求を解釈してハードウェアなどの各種資源の獲得要求を発生する各種制御部から構成される。プラットフォーム部138は、システム制御部139、メモリ制御部140、ネットワーク制御部141、エンジン制御部142、セキュリティ制御部143、オペレーション制御部144、ファクス制御部145から構成される。プラットフォーム部138は予め定義されている関数によりアプリケーション部131からの処理要求を受信可能とするAPI(Application Program Interface)137を有するように構成されている。
The
システム制御部139は、アプリケーションの管理、操作部の制御、システム画面の表示、LEDの表示、ハードウェア資源の管理、割り込みアプリケーションの制御などの処理を行う。
The
メモリ制御部140は、メモリの取得および解放、画像データの圧縮および伸張などのメモリ制御を行う。
The
エンジン制御部142は、図示していないハードウェアリソースのエンジンの制御を行う。
The
ファクス制御部145は、GSTN(General Switched Telephone Network)I/Fと接続し、システムコントローラの各アプリケーション層からPSTN(Public Switched Telephone Network)またはISDN(Integrated Services Digital Network)網を利用したファクシミリ送受信、バックアップ用のメモリで管理されている各種ファクシミリデータの登録/引用、ファクシミリ読み取りを行い、ファクシミリ受信印刷などを行うためのAPIを提供する。
The
オペレーション制御部144は、オペレータと本体制御との間の情報伝達手段となるオペレーションパネルの制御を行う。
The
ネットワーク制御部141は、Ethernet(登録商標)などのネットワークと接続され、ネットワークI/O(Input Output)を必要とするアプリケーションに対して共通に利用できるサービスを提供し、ネットワーク側から各プロトコルによって受信したデータを各アプリケーションに振り分け、各アプリケーションからのデータをネットワーク側に送信する際の仲介を行う。
The
セキュリティ制御部143は、アプリケーション部131に対してセキュリティサービスを行う。
The
HDD108は各アプリケーションや各制御部が動作するためのデータが保管されたり、画像データが保管されたりする。
The
NVRAM110は設定情報が記録されている。
The
CPU102(図2)は画像処理装置全体の制御を行い、プラットフォーム部138の各制御部を実行し、それらを使用するアプリケーション部131の各アプリを実行する。
The CPU 102 (FIG. 2) controls the entire image processing apparatus, executes each control unit of the
なお、画像処理装置の構成により、アプリケーション部131のいくつかのアプリケーション、プラットフォーム部138のいくつかの制御部は存在しないこともある。
Depending on the configuration of the image processing apparatus, some applications of the
図4はネットワーク制御部141の構成例を示す図である。
FIG. 4 is a diagram illustrating a configuration example of the
図4において、メイン処理部156はネットワーク制御部141の中心となる部分であり、他の処理部の制御や統括を行う。
In FIG. 4, a
IPv6環境処理部153はカーネルに対してIPv6アドレスを設定し、IPv6管理テーブルの制御を行う。IPv6アドレス管理テーブル部154は動作中のIPv6アドレスを持ったデータである。
The IPv6
ルータ広告/要請処理部157はルータ広告(RA)およびルータ要請(RS:Router Solicitation)を送受信する部分、近隣広告/要請処理部158は近隣広告(NA:Neighbor Advertisement)および近隣要請(NS:Neighbor Solicitation)を送受信する部分である。
The router advertisement /
上位プロトコル処理部155はTCP(Transmission Control Protocol)やUDP(User Datagram Protocol)上の多数のプロトコル(SMTP(Simple Mail Transfer Protocol)、port9100、SNMP(Simple Network Management Protocol)、DNS(Domain Name System)等)の制御を行う部分である。
The upper
他制御部通信部151は他のコントロールサービスやアプリケーション部131(図3)とのやり取りを行う部分である。固有アプリケーション処理部152は本発明におけるアクションを行う部分である。ソケット以下ネットワークプロトコルスタック159はカーネル部分であり、ソケット、TCP、UDPなどネットワークの低レイヤの制御を行う。
The other control
図5はIPv6アドレス管理テーブル部154の例を示す図であり、IPv6アドレスとLifeTimeの管理テーブルである。
FIG. 5 is a diagram showing an example of the IPv6 address
RAにより取得したValid LifeTimeおよびPreferred LifeTimeの失効時間をIPv6アドレスごとに保持するテーブルT1と、IPv6アドレスごとにValid LifeTimeで制御するか、Preferred LifeTimeで制御するかという情報を保持するテーブルT2と、IPv6アドレスごとにValid LifeTimeもしくはPreferred LifeTimeの値と対応する動作とを保持するテーブルT3、T4とを備えている。なお、テーブルT3、T4における動作には、その動作が起動する前提条件(例えば、通信切断時など)も含めることができる。 A table T1 that holds the expiration time of the Valid LifeTime and the Preferred LifeTime acquired by the RA for each IPv6 address, a table T2 that holds information about whether to control the Valid LifeTime or the Preferred LifeTime for each IPv6 address, and IPv6. For each address, there are provided tables T3 and T4 for holding a value of Valid LifeTime or Preferred LifeTime and corresponding operations. Note that the operations in the tables T3 and T4 can include preconditions for starting the operations (for example, when communication is disconnected).
<一般的動作>
図6はルータがルータ広告(RA)をマルチキャストする様子を示す図である。
<General operation>
FIG. 6 is a diagram illustrating how the router multicasts router advertisement (RA).
図6においては、ルータ2A、2Bがそれぞれルータ広告をマルチキャストしている。IPv6はIPv4におけるブロードキャストとは異なり、複数宛先への送信にはマルチキャストが用いられる。これにより自分宛ではないマルチキャストは処理しなくて済む。
In FIG. 6,
図7はネットワーク機器がルータ要請(RS)をマルチキャストする様子を示す図である。 FIG. 7 is a diagram illustrating a state in which a network device multicasts a router request (RS).
図7においては、ネットワーク機器1Aがルータ2A、2Bに対してルータ要請をマルチキャストしている。この場合、通常、ネットワーク機器1BやPC3A〜3CはRSを処理しない。
In FIG. 7, the
図8はネットワーク機器が近隣要請(NS)をマルチキャストする様子を示す図である。 FIG. 8 is a diagram illustrating a state in which the network device multicasts the Neighbor Solicitation (NS).
図8においては、ネットワーク機器1Aが近隣要請をマルチキャストしている。NSはIPv6アドレス重複チェックのために用いられるため、全ノードが受信している。
In FIG. 8, the
図9はIPv6 Statelessアドレス確定のシーケンス図である。 FIG. 9 is a sequence diagram for determining an IPv6 Stateless address.
図9において、ルータがルータ広告(RA)を送出し(ステップS1)、ネットワーク機器はルータからのルータ広告(RA)を受けると、RAのプレフィックス情報と自分のMacアドレスとからIPv6 Statelessアドレスを生成する(ステップS2)。そして、近隣要請(NS)を送出し(ステップS3)、一定の時間、近隣広告(NA)がなければ、そのアドレスは確定する(ステップS4)。 In FIG. 9, the router sends a router advertisement (RA) (step S1), and when the network device receives the router advertisement (RA) from the router, it generates an IPv6 Stateless address from the RA prefix information and its own Mac address. (Step S2). Then, a neighbor request (NS) is transmitted (step S3), and if there is no neighbor advertisement (NA) for a certain period of time, the address is determined (step S4).
図10はネットワーク機器がルータ要請(RS)を自ら出す場合のIPv6 Statelessアドレス確定のシーケンス図である。 FIG. 10 is a sequence diagram for determining an IPv6 Stateless address when a network device issues a router solicitation (RS) itself.
図10において、ネットワーク機器はルータに対してルータ要請(RS)を送出する(ステップS11)。RSを受けたルータはルータ広告(RA)を送出する(ステップS12)。ネットワーク機器はルータからのルータ広告(RA)を受けると、RAのプレフィックス情報と自分のMacアドレスとからIPv6 Statelessアドレスを生成する(ステップS13)。そして、近隣要請(NS)を送出し(ステップS14)、一定の時間、近隣広告(NA)がなければ、そのアドレスは確定する(ステップS15)。 In FIG. 10, the network device sends a router request (RS) to the router (step S11). The router that has received the RS sends a router advertisement (RA) (step S12). Upon receiving the router advertisement (RA) from the router, the network device generates an IPv6 Stateless address from the RA prefix information and its own Mac address (step S13). Then, a neighbor request (NS) is transmitted (step S14), and if there is no neighbor advertisement (NA) for a certain period of time, the address is determined (step S15).
図11はRAパケットのフォーマットを示す図であり、Ethernet(登録商標)ヘッダの次にIPv6ヘッダ、ルータ広告(RA)、プレフィックス情報が並ぶ。 FIG. 11 is a diagram showing the format of the RA packet. The IPv6 header, router advertisement (RA), and prefix information are arranged next to the Ethernet (registered trademark) header.
図12はIPv6ヘッダのフォーマットを示す図であり、バージョン、トラフィッククラス、フローラベル、ペイロード長、次ヘッダ、最大ホップ数、送信元アドレス、宛先アドレスが含まれている。 FIG. 12 is a diagram showing the format of the IPv6 header, which includes version, traffic class, flow label, payload length, next header, maximum hop count, source address, and destination address.
図13はルータ広告(RA)のフォーマットを示す図であり、タイプ、コード、チェックサム、現在の最大ホップ数、M、O、予約領域、ルータ有効期間、到達可能期間、再送タイマー、オプションが含まれている。 FIG. 13 is a diagram showing the format of router advertisement (RA), which includes type, code, checksum, current maximum hop count, M, O, reserved area, router valid period, reachable period, retransmission timer, and options. It is.
図14はプレフィックス情報のフォーマットを示す図であり、タイプ、データ長、プレフィックス長、L、A、予約領域、有効期間、参照可能期間、予約領域、プレフィックスが含まれている。有効期間がValid LifeTimeに相当し、参照可能期間がPreferred LifeTimeに相当する。 FIG. 14 is a diagram showing the format of prefix information, which includes type, data length, prefix length, L, A, reserved area, valid period, referable period, reserved area, and prefix. The valid period corresponds to Valid LifeTime, and the referable period corresponds to Preferred LifeTime.
図15はRSパケットのフォーマットを示す図であり、Ethernet(登録商標)ヘッダの次にIPv6ヘッダ、ルータ要請(RS)が並ぶ。IPv6ヘッダのフォーマットは図12に示したとおりである。 FIG. 15 is a diagram showing the format of an RS packet. An IPv6 header and a router request (RS) are arranged next to the Ethernet (registered trademark) header. The format of the IPv6 header is as shown in FIG.
図16はルータ要請(RS)のフォーマットを示す図であり、タイプ、コード、チェックサム、予約領域、オプションが含まれている。 FIG. 16 is a diagram showing a format of a router solicitation (RS), which includes a type, a code, a checksum, a reserved area, and options.
図17はNSパケットのフォーマットを示す図であり、Ethernet(登録商標)ヘッダの次にIPv6ヘッダ、近隣要請(NS)が並ぶ。IPv6ヘッダのフォーマットは図12に示したとおりである。 FIG. 17 is a diagram showing the format of the NS packet. The IPv6 header and the neighbor request (NS) are arranged next to the Ethernet (registered trademark) header. The format of the IPv6 header is as shown in FIG.
図18は近隣要請(NS)のフォーマットを示す図であり、タイプ、コード、チェックサム、予約領域、ターゲットアドレス、オプションが含まれている。 FIG. 18 is a diagram showing the format of the Neighbor Solicitation (NS), which includes type, code, checksum, reserved area, target address, and options.
図19はNAパケットのフォーマットを示す図であり、Ethernet(登録商標)ヘッダの次にIPv6ヘッダ、近隣広告(NA)が並ぶ。IPv6ヘッダのフォーマットは図12に示したとおりである。 FIG. 19 is a diagram showing the format of the NA packet. The IPv6 header and the neighborhood advertisement (NA) are arranged next to the Ethernet (registered trademark) header. The format of the IPv6 header is as shown in FIG.
図20は近隣広告(NA)のフォーマットを示す図であり、タイプ、コード、チェックサム、R、S、O、予約領域、ターゲットアドレス、オプションが含まれている。 FIG. 20 is a diagram showing the format of the neighborhood advertisement (NA), which includes type, code, checksum, R, S, O, reserved area, target address, and option.
<Statelessアドレス確定までの処理>
図21はStatelessアドレス確定までの処理例を示すフローチャートである。
<Process until the Stateless address is confirmed>
FIG. 21 is a flowchart showing an example of processing up to the stateless address determination.
図21において、処理を開始し(ステップS101)、RA受信(ステップS102)の後、LifeTime値として適切なものを受信すれば(ステップS103のYes)、RAのプレフィックスと自らのMacアドレスを使ってStatelessアドレスを生成する(ステップS104)。 In FIG. 21, the process is started (step S101). After receiving the RA (step S102), if an appropriate LifeTime value is received (Yes in step S103), the RA prefix and its own Mac address are used. A Stateless address is generated (step S104).
次いで、重複確認のためのNS送信(ステップS105)の後、一定時間後にNAを受信しなければ(ステップS106のNo)、アドレスを確定し(ステップS107)、管理テーブル(図5のテーブルT1)への登録を行う(ステップS108)。 Next, after the NS transmission for duplication confirmation (step S105), if no NA is received after a certain time (No in step S106), the address is fixed (step S107), and the management table (table T1 in FIG. 5) Is registered (step S108).
LifeTime値として適切なものでない場合(ステップS103のNo)や一定時間内にNAを受信した場合(ステップS106のYes)、あるいはその他の場合は、必要に応じて他のアドレスを使い(ステップS109)、処理を終了する(ステップS110)。例えば、長時間通信するため(大きいサイズの文書の送信)にLifeTimeの値が小さいという不都合がある場合は、受信したRAを用いず、他の長いLifeTimeを格納したプレフィックスを持つRAを用いるか、リンクローカルアドレスや手動設定アドレスを用いる。 When the LifeTime value is not appropriate (No in Step S103), when NA is received within a certain time (Yes in Step S106), or in other cases, another address is used as necessary (Step S109). The process is terminated (step S110). For example, when there is a disadvantage that the value of LifeTime is small for long-time communication (transmission of a large size document), the received RA is not used, but an RA having a prefix that stores another long LifeTime is used. Use link local address or manually set address.
図22はStatelessアドレス確定までのネットワーク制御部141内の動作例を示す図である。
FIG. 22 is a diagram illustrating an operation example in the
図22において、ルータ広告/要請処理部157でRA受信(ステップS111、S112)の後、メイン処理部156はLifeTimeのチェックおよびStatelessアドレスの生成を行い、近隣広告/要請処理部158でNSを送信する(ステップS113、S114)。
In FIG. 22, after receiving the RA by the router advertisement / request processing unit 157 (steps S111 and S112), the
一定時間後NAを受信しなければアドレスは重複していないと判断し、メイン処理部156はIPv6環境処理部153を通じて、カーネル部のソケット以下ネットワークプロトコルスタック159にアドレスを設定し(ステップS115、S116)、IPv6アドレス管理テーブル部154に情報を蓄積する(ステップS117)。
If the NA is not received after a certain time, it is determined that the addresses are not duplicated, and the
図23はネットワーク機器がルータ要請(RS)を自ら出す場合のStatelessアドレス確定までのネットワーク制御部141内の動作例を示す図である。
FIG. 23 is a diagram illustrating an operation example in the
図23において、ルータ広告/要請処理部157でRS送信(ステップS110)の後、RAを受信する(ステップS111、S112)。この後の処理(ステップS113〜S117)は、図22と同様である。
In FIG. 23, the router advertisement /
<LifeTime値による動作制御の設定>
図24はLifeTime値による動作制御の設定画面の例を示す図であり、ネットワーク機器のオペレーションパネルやPCなどによりリモートアクセスしたときに表示される画面例である。なお、動作としては「アドレス生成」を例としている。
<Setting of operation control by LifeTime value>
FIG. 24 is a diagram illustrating an example of a setting screen for operation control based on the LifeTime value, which is an example of a screen displayed when remote access is performed using an operation panel of a network device or a PC. The operation is “address generation” as an example.
図24において、生成を制御するためのスイッチ、各LifeTimeで制御するためのスイッチおよびその値の入力欄などがある。 In FIG. 24, there are a switch for controlling generation, a switch for controlling each LifeTime, an input field for the value, and the like.
図25はLifeTime値による動作制御の設定を行なうときのネットワーク制御部141内の動作例を示す図である。
FIG. 25 is a diagram illustrating an operation example in the
図25において、他制御部通信部151からリクエストを受けると(ステップS121、S122)、メイン処理部156はリクエストされた内容をNVRAM110などに保存し(ステップS123)、同時にIPv6環境処理部153を介してIPv6アドレス管理テーブル部154の管理テーブル(図5のテーブルT2〜T4)にデータの登録をする(ステップS124、S125)。
In FIG. 25, when receiving a request from the other control unit communication unit 151 (steps S121 and S122), the
<送信系アクション時の処理>
図26は送信系アクション時の処理例を示すフローチャートであり、送信系アクション時にIPv6ソースアドレスを適切に選択するようにしたものである。
<Processing when sending actions>
FIG. 26 is a flowchart showing an example of processing at the time of transmission system action, in which an IPv6 source address is appropriately selected at the time of transmission system action.
図26において、処理を開始し(ステップS131)、送信系アクションが発生すると(ステップS132)、管理テーブルから登録されているIPv6アドレスを選択する(ステップS133)。このときの基準として、Valid LifeTimeやPreferred LifeTimeが最も長いものを自動的に選択したり、ユーザによる選択を行ったり、相手先が同一サブネット内ならLinkLocal Addressを選択したりする。 In FIG. 26, processing is started (step S131), and when a transmission action occurs (step S132), an IPv6 address registered from the management table is selected (step S133). As a reference at this time, the longest Valid LifeTime or Preferred LifeTime is automatically selected, the user makes a selection, or the link local address is selected if the other party is in the same subnet.
そして、選択されたソースアドレスを設定し(ステップS134)、実際の送信を行い(ステップS135)、処理を終了する(ステップS136)。 Then, the selected source address is set (step S134), actual transmission is performed (step S135), and the process is terminated (step S136).
図27は送信系アクション時のネットワーク制御部141内の動作例を示す図である。
FIG. 27 is a diagram illustrating an operation example in the
図27において、他制御部通信部151からリクエストを受けると(ステップS141、S142)、メイン処理部156はIPv6環境処理部153およびIPv6アドレス管理テーブル部154から適切なIPv6アドレスを選択し(ステップS143〜S146)、リクエストで指定されたプロトコルを用いて上位プロトコル処理部155経由で送信を行う(ステップS147、S148)。
In FIG. 27, when receiving a request from the other control unit communication unit 151 (steps S141 and S142), the
<LifeTimeが特定値になったときの処理>
図28はLifeTimeが特定値になったときの処理例を示すフローチャートである。
<Processing when LifeTime reaches a specific value>
FIG. 28 is a flowchart illustrating a processing example when LifeTime becomes a specific value.
図28において、処理を開始すると(ステップS151)、LifeTimeが予め設定された特定値になったか否か判断し(ステップS152)、該当する場合には対応するアクションを実行する(ステップS153)。そして、一定時間のスリープを行い(ステップS154)、LifeTimeの判断(ステップS152)に戻る。 In FIG. 28, when the process is started (step S151), it is determined whether LifeTime has reached a preset specific value (step S152), and a corresponding action is executed if applicable (step S153). Then, sleep is performed for a predetermined time (step S154), and the process returns to the determination of LifeTime (step S152).
例えば、Preferred LifeTimeやValid LifeTimeの期限切れまで1日を切ったときに、ルータ要請(RS)を送出してRAを受け取ることを期待するとか、登録されている管理PCや管理機器にメール通知やSNMP Trapを送って喚起したり、それ以降はLinklocal、手動設定、IPv4アドレスなどの特定アドレスを使ったりするなどが考えられる。 For example, when the Preferred LifeTime or Valid LifeTime expires, the router request (RS) is expected to be received and the RA is expected to be received, or the registered management PC or management device is notified by e-mail or SNMP. It is possible to send a Trap to alert, or use a specific address such as Linklocal, manual setting, or IPv4 address thereafter.
図29はLifeTimeが特定値になったときにメール通知を行う場合のネットワーク制御部141内の動作例を示す図である。
FIG. 29 is a diagram illustrating an operation example in the
図29において、メイン処理部156はIPv6アドレス管理テーブル部154に登録されているIPv6アドレスのLifeTimeのExpire情報を定期的に監視し(ステップS161〜S164)、固有アプリケーション処理部152、上位プロトコル処理部(この場合はSMTP)155を通じて外部へメール送信している(ステップS165〜S168)。
In FIG. 29, the
図30はLifeTimeが特定値になったときにRS送信を行う場合のネットワーク制御部141内の動作例を示す図である。
FIG. 30 is a diagram illustrating an operation example in the
図30において、メイン処理部156はIPv6アドレス管理テーブル部154に登録されているIPv6アドレスのLifeTimeのExpire情報を定期的に監視し(ステップS171〜S174)、固有アプリケーション処理部152、ルータ広告/要請処理部157を通じてRSを送信している(ステップS175〜S178)。
In FIG. 30, the
<セッション中にValid LifeTimeが満了したときの処理>
図31はセッション中にValid LifeTimeが満了したときの処理例を示すフローチャートである。
<Processing when Valid LifeTime expires during session>
FIG. 31 is a flowchart illustrating a processing example when Valid LifeTime expires during a session.
図31において、処理を開始し(ステップS181)、通信中となり(ステップS182)、通信を行っているアプリケーションが回線断を検出すると(ステップS183)、用いていたアドレスのValid LifeTimeをチェックしてExpireしたことを確認し(ステップS184)、セッションのクリア処理(ソケット解放、メモリ解放など)を行う(ステップS185)。 In FIG. 31, processing is started (step S181), communication is in progress (step S182), and when the communicating application detects a line disconnection (step S183), the Valid LifeTime of the used address is checked and Expire. It is confirmed (step S184), and session clear processing (socket release, memory release, etc.) is performed (step S185).
その後、所定のアクション(再送や直前の通信相手への新しいアドレスの通知など)を行い(ステップS186)、処理を終了する(ステップS187)。 Thereafter, a predetermined action (retransmission, notification of a new address to the previous communication partner, etc.) is performed (step S186), and the process ends (step S187).
図32はセッション中にValid LifeTimeが満了したときのネットワーク制御部141内の動作例を示す図である。
FIG. 32 is a diagram illustrating an operation example in the
図32において、上位プロトコル処理部155は通信が切断するとカーネルのソケット以下ネットワークプロトコルスタック159にアクセスしてValid LifeTimeがExpireしていることを確認する(ステップS191、S192)。
In FIG. 32, when the communication is disconnected, the upper
メイン処理部156は管理テーブル部の情報を更新し(ステップS193〜S197)、固有アプリケーション処理部152、上位プロトコル処理部155、他制御部通信部151を通じて、上位アプリケーションに通知を行い(ステップS198〜S201)、必要に応じて再送などを行っている(ステップS202、S203)。
The
<総括>
このように、本発明では、LifeTimeの値によりネットワーク機器がどのようにふるまうかを記述している。例えば、LifeTimeが特定の値になったときに管理機器に通知したり、通信中に切断したときに所定の動作を行ったりするなどである。従って、状況に応じた適切な対応を行うことができる。
<Summary>
As described above, the present invention describes how the network device behaves according to the value of LifeTime. For example, the management device is notified when LifeTime becomes a specific value, or a predetermined operation is performed when disconnected during communication. Therefore, it is possible to take an appropriate response according to the situation.
また、RA内のLifeTimeの値によりRA自体を選択(LifeTimeが短いアドレスは使用しないなど)することにより、アプリケーションやユーザに適切なIPv6アドレスを選択することができる。 Further, by selecting RA itself according to the value of LifeTime in RA (such as not using an address with a short LifeTime), it is possible to select an IPv6 address appropriate for the application or user.
また、アドレス使用の可否を予め設定可能とすることにより、ユーザがLifeTimeの値によりIPv6アドレスの制御を行うことができる。 In addition, by making it possible to set in advance whether the address can be used, the user can control the IPv6 address based on the value of LifeTime.
また、LifeTimeの値によってソースアドレスを使い分けることができるようにしたことにより、アプリケーションやユーザに対して適切なIPv6アドレスを用いた通信を行うことができる。 In addition, since the source address can be properly used according to the value of LifeTime, communication using an appropriate IPv6 address can be performed for an application or a user.
また、LifeTimeの値が特定の値になった場合、ネットワークに関するアクションをすることにより、アプリケーションやユーザに対して付加サービスを提供することができる。 In addition, when the value of LifeTime becomes a specific value, an additional service can be provided to an application or a user by performing an action related to the network.
また、LifeTimeの値が失効した場合に、別の特定のアドレスを使用することにより、アプリケーションやユーザが通信を続けることができる。 In addition, when the value of LifeTime expires, an application or user can continue communication by using another specific address.
また、データ通信中にLifeTimeの値が失効した場合に、安全に通信を終了させることにより、再通信したりすることができる。 In addition, when the value of LifeTime expires during data communication, recommunication can be performed by safely terminating communication.
以上、本発明の好適な実施の形態により本発明を説明した。ここでは特定の具体例を示して本発明を説明したが、特許請求の範囲に定義された本発明の広範な趣旨および範囲から逸脱することなく、これら具体例に様々な修正および変更を加えることができることは明らかである。すなわち、具体例の詳細および添付の図面により本発明が限定されるものと解釈してはならない。 The present invention has been described above by the preferred embodiments of the present invention. While the invention has been described with reference to specific embodiments, various modifications and changes may be made to the embodiments without departing from the broad spirit and scope of the invention as defined in the claims. Obviously you can. In other words, the present invention should not be construed as being limited by the details of the specific examples and the accompanying drawings.
1、1A、1B ネットワーク機器
2A、2B ルータ
3A〜3C PC
6 ネットワーク
101 コントローラ
102 CPU
103 システムメモリ
104 NB
105 SB
106 ASIC
107 ローカルメモリ
108 HDD
109 Flash ROM
110 NVRAM
111 SDRAM
112 セキュアデバイス
113 Ethernet(登録商標) I/F
114 USB I/F
115 IEEE 1394 I/F
116 セントロニクスI/F
117 無線I/F
118 外部記憶媒体用I/F
119 AGP
120 バス
121 オペレーションパネル
122 FCU
123 エンジン部
124 バス
131 アプリケーション部
132 コピーアプリ
133 ファクスアプリ
134 スキャナアプリ
135 ネットファイルアプリ
136 プリンタアプリ
137 API
138 プラットフォーム部
139 システム制御部
140 メモリ制御部
141 ネットワーク制御部
142 エンジン制御部
143 セキュリティ制御部
144 オペレーション制御部
145 ファクス制御部
146 Network I/F
151 他制御部通信部
152 固有アプリケーション処理部
153 IPv6環境処理部
154 IPv6アドレス管理テーブル部
155 上位プロトコル処理部
156 メイン処理部
157 ルータ広告/要請処理部
158 近隣広告/要請処理部
159 ソケット以下ネットワークプロトコルスタック
T1〜T4 テーブル
1, 1A,
103
105 SB
106 ASIC
107
109 Flash ROM
110 NVRAM
111 SDRAM
112
114 USB I / F
115 IEEE 1394 I / F
116 Centronics I / F
117 Wireless I / F
118 I / F for external storage media
119 AGP
120
123
138
151 Other Control
Claims (4)
ルータから配布されるプレフィックス情報に含まれるLifeTime値が適切か否か判断し、適切である場合にプレフィックスに基づいてアドレスを生成する手段と、
送信系アクションの開始時に、使用可能なアドレスの中からLifeTime値により送信時のソースアドレスを選択する手段と、
通信中に回線断を検出した場合に、使用中のアドレスのLifeTime値が失効したことを確認し、セッションのクリア処理を行い、新しいアドレスを用いた再送処理もしくは新しいアドレスの通知処理を行う手段とを備えたことを特徴とするネットワーク機器。 Is connected to a network, a network device that disconnection of the communication is Ru performed when LifeTime value included in prefix is the source address generator has expired,
Means for determining whether the LifeTime value included in the prefix information distributed from the router is appropriate, and generating an address based on the prefix if it is appropriate;
Means for selecting a source address at the time of transmission according to a LifeTime value from available addresses at the start of a transmission action;
Means for confirming that the LifeTime value of the address being used has expired when a line disconnection is detected during communication, performing a session clear process, and performing a retransmission process using a new address or a new address notification process ; A network device characterized by comprising:
上記LifeTime値と動作の対応関係を設定する手段を備えたことを特徴とするネットワーク機器。 The network device according to claim 1,
A network device comprising means for setting a correspondence relationship between the LifeTime value and an operation.
ルータから配布されるプレフィックス情報に含まれるLifeTime値が適切か否か判断し、適切である場合にプレフィックスに基づいてアドレスを生成する工程と、
送信系アクションの開始時に、使用可能なアドレスの中からLifeTime値により送信時のソースアドレスを選択する工程と、
通信中に回線断を検出した場合に、使用中のアドレスのLifeTime値が失効したことを確認し、セッションのクリア処理を行い、新しいアドレスを用いた再送処理もしくは新しいアドレスの通知処理を行う工程とを備えたことを特徴とするネットワーク機器の動作制御方法。 Is connected to a network, a method of controlling operation network equipment cutting communications Ru performed when LifeTime value included in prefix is the source address generator has expired,
Determining whether the LifeTime value included in the prefix information distributed from the router is appropriate, and generating an address based on the prefix if it is appropriate;
Selecting a source address at the time of transmission according to a LifeTime value from available addresses at the start of a transmission-type action;
A process of confirming that the LifeTime value of the address being used has expired when a line disconnection is detected during communication, performing a session clear process, and performing a retransmission process using a new address or a new address notification process; An operation control method for a network device, comprising:
上記LifeTime値と動作の対応関係を設定する工程を備えたことを特徴とするネットワーク機器の動作制御方法。 The operation control method for a network device according to claim 3 ,
An operation control method for a network device, comprising a step of setting a correspondence relationship between the LifeTime value and the operation.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2006068081A JP4796413B2 (en) | 2006-03-13 | 2006-03-13 | Network equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2006068081A JP4796413B2 (en) | 2006-03-13 | 2006-03-13 | Network equipment |
Publications (3)
Publication Number | Publication Date |
---|---|
JP2007251269A JP2007251269A (en) | 2007-09-27 |
JP2007251269A5 JP2007251269A5 (en) | 2009-04-09 |
JP4796413B2 true JP4796413B2 (en) | 2011-10-19 |
Family
ID=38595146
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2006068081A Expired - Fee Related JP4796413B2 (en) | 2006-03-13 | 2006-03-13 | Network equipment |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4796413B2 (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP5305896B2 (en) * | 2008-12-26 | 2013-10-02 | キヤノン株式会社 | COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, AND PROGRAM |
JP5105124B2 (en) | 2011-02-24 | 2012-12-19 | Necアクセステクニカ株式会社 | Router device, packet control method and program based on prefix management |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2003289340A (en) * | 2002-03-27 | 2003-10-10 | Toshiba Corp | Identifier inquiry method, communication terminal and network system |
JP2004364109A (en) * | 2003-06-06 | 2004-12-24 | Canon Inc | Temporary address communication apparatus, program, recording medium and method |
-
2006
- 2006-03-13 JP JP2006068081A patent/JP4796413B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2007251269A (en) | 2007-09-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5164450B2 (en) | COMMUNICATION DEVICE AND ITS CONTROL METHOD AND PROGRAM | |
JP2009119849A (en) | Information processor, information processing method, and program | |
EP1229727B1 (en) | Communication apparatus, transmission program, computer readable medium storing a transmission program, transmission method and communication system for reliable transmission image data | |
JP7132028B2 (en) | Method and system with application for IPV6 extension headers and destination options | |
JP2008015880A (en) | Network system, image processor and computer program | |
JP2006246356A (en) | Data receiving system and data output method, receiving unit and control program | |
JP2011114728A (en) | Network apparatus | |
US20050044196A1 (en) | Method of and system for host based configuration of network devices | |
JP3812285B2 (en) | Network system and network equipment | |
JP2008028472A (en) | Fax gateway apparatus | |
JP5328472B2 (en) | Network communication apparatus and method and program | |
JP4796413B2 (en) | Network equipment | |
JP2013078109A (en) | Method, system and program for physically securing host device | |
US8516141B2 (en) | Method and system for modifying and/or changing a MAC ID utilizing an IPv6 network connection | |
JP2006215802A (en) | Firmware download device and method for communication terminal, and system using it | |
JP2012160974A (en) | Communication device and image processing device | |
JP2007251568A (en) | Network device | |
JP5321030B2 (en) | COMMUNICATION DEVICE, COMMUNICATION METHOD, AND PROGRAM | |
JP4368776B2 (en) | Network device, network device control method, program, and recording medium | |
JP2006197051A (en) | Network communication control unit and method | |
JP2007201740A (en) | Network equipment | |
JP7031566B2 (en) | Image forming device | |
JP7406705B2 (en) | Information processing device and method of controlling the information processing device | |
JP2007251417A (en) | Network device | |
JP7486261B2 (en) | Information processing device and information processing method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20090219 |
|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20090219 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20110118 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20110201 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20110401 |
|
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: 20110705 |
|
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20110729 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 4796413 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20140805 Year of fee payment: 3 |
|
LAPS | Cancellation because of no payment of annual fees |