JP3989447B2 - Communication switching method and data communication apparatus - Google Patents

Communication switching method and data communication apparatus Download PDF

Info

Publication number
JP3989447B2
JP3989447B2 JP2004010734A JP2004010734A JP3989447B2 JP 3989447 B2 JP3989447 B2 JP 3989447B2 JP 2004010734 A JP2004010734 A JP 2004010734A JP 2004010734 A JP2004010734 A JP 2004010734A JP 3989447 B2 JP3989447 B2 JP 3989447B2
Authority
JP
Japan
Prior art keywords
data communication
information
communication
internal resource
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 - Lifetime
Application number
JP2004010734A
Other languages
Japanese (ja)
Other versions
JP2005204239A (en
Inventor
秀明 林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Furukawa Electric Co Ltd
Original Assignee
Furukawa Electric 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 Furukawa Electric Co Ltd filed Critical Furukawa Electric Co Ltd
Priority to JP2004010734A priority Critical patent/JP3989447B2/en
Publication of JP2005204239A publication Critical patent/JP2005204239A/en
Application granted granted Critical
Publication of JP3989447B2 publication Critical patent/JP3989447B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Description

本発明は、通信切替方法およびデータ通信装置に関するものである。   The present invention relates to a communication switching method and a data communication apparatus.

従来、この種の装置では、ファームウェアの変更を行なって、たとえばプログラムのバージョンをアップする場合には、まずファームウェアの読み込みを行い、このファームウェアを利用するための装置の再起動を行い、次に、ファームウェアの更新処理を行い、さらに更新終了後の装置の起動処理を行なって、装置の起動が完了していた。このように、新しいファームウェアを利用するためには、装置の再起動が必須であり、そのため、装置の再起動を行ってから、起動が完了するまでの間は、装置では、通信が全く行うことができない通信断の状態が発生する。   Conventionally, in this type of device, when changing the firmware, for example, when upgrading the program version, the firmware is first read, the device for using this firmware is restarted, and then Firmware update processing is performed, and device startup processing after the update is completed. The device startup is completed. As described above, in order to use the new firmware, it is essential to restart the device. Therefore, communication between the device and the device is completely performed after the device is restarted until the startup is completed. A state of communication interruption that cannot be performed occurs.

そこで、装置内に、同じ機能、たとえばデータ中継を行うための中継機能などを持つCPUやメモリを搭載したボードを2枚用意し、一方のボード(現用系のボード)で通常の運用を行っている間に、他方のボード(待機系のボード)でファームウェアの更新処理を行うことにより、ファームウェアの更新時間の短縮を図るものがあった。なお、この従来例では、ファームウェア更新後に、ボードを現用系のものから待機系のものに切り替えるボードの切り替えを行うと、他のルータとのセッションを一度落とす必要がある。また、ファームウェアの変更された待機系のボードでは、今まで学習した経路情報なども失われてしまうため、待機系のボードと他のルータ間で経路情報の交換を行っていた(たとえば特許文献1)。   Therefore, two boards equipped with CPU and memory with the same function, for example, a relay function for data relay, are prepared in the device, and one board (working board) is used for normal operation. While the other board (standby board) performs the firmware update process, the firmware update time has been shortened. In this conventional example, when the board is switched from the active system to the standby system after updating the firmware, it is necessary to drop the session with another router once. Further, in the standby system board whose firmware has been changed, the path information and the like learned so far are also lost, so the path information is exchanged between the standby system board and another router (for example, Patent Document 1). ).

特開2003−258877号公報JP 2003-258877 A

しかしながら、上記装置では、ボード切り替え完了後から経路情報の交換が終了して、装置が安定状態になるまでに、時間がかかるとともに、この間は通信を全く行うことができない通信断の状態が発生するという問題があった。   However, in the above device, it takes time until the device is in a stable state after the exchange of the route information is completed after the board switching is completed, and a communication interruption state during which no communication can be performed occurs during this time. There was a problem.

本発明は、上記問題に鑑みてなされたものであって、通信断の状態を発生させることなく、データ通信が可能な状態で、データ通信の切り替えおよびファームウェアの更新を行うことができる通信切替方法およびデータ通信装置を提供することを目的とする。   The present invention has been made in view of the above-described problem, and is a communication switching method capable of switching data communication and updating firmware in a state where data communication is possible without causing a communication interruption state. And it aims at providing a data communication apparatus.

上述した課題を解決し、目的を達成するために、本発明にかかる通信切替方法は、少なくとも2つの第1及び第2のデータ通信手段を有するデータ通信装置が、経路情報に基づいて、他のデータ通信装置とデータ通信を行うとともに、通信の切り替え指示に応じて、前記データ通信の通信主体を前記第1のデータ通信手段から前記第2のデータ通信手段に切り替える通信切替方法において、前記データ通信の切り替え指示を出力する指示工程と、前記切り替え指示に応じて、前記通信主体の前記第1のデータ通信手段が通信に必要な内部リソースの情報を前記第2のデータ通信手段に送信する送信工程と、前記第2のデータ通信手段が前記内部リソースの情報を受信し、内部メモリに登録する登録工程と、前記登録された内部リソースの情報に基づいて、前記第2のデータ通信手段が前記他のデータ通信装置とデータ通信を行う通信工程と、を含み、それぞれの前記データ通信手段が前記他のデータ通信装置から論理的に一つのデータ通信手段として認識可能なことを特徴とする。   In order to solve the above-described problems and achieve the object, a communication switching method according to the present invention is a data communication apparatus having at least two first and second data communication means, based on path information. In the communication switching method for performing data communication with a data communication device and switching a communication subject of the data communication from the first data communication unit to the second data communication unit in response to a communication switching instruction. An instruction step of outputting a switching instruction, and a transmission step of transmitting information on internal resources necessary for communication to the second data communication unit by the first data communication unit of the communication subject in response to the switching instruction A registration step in which the second data communication means receives the information of the internal resource and registers it in the internal memory; and the information of the registered internal resource And the second data communication means performs data communication with the other data communication device, and each of the data communication means is logically one data communication from the other data communication device. It can be recognized as a means.

また、請求項2の発明にかかる前記通信切替方法では、上記発明において、前記第2のデータ通信手段のプログラムを変更する変更工程を、さらに含み、前記指示工程では、前記プログラムの変更後に前記切替指示を出力することを特徴とする。   The communication switching method according to the invention of claim 2 further includes a changing step of changing the program of the second data communication means in the above invention, wherein the instruction step includes the switching after the change of the program. An instruction is output.

また、請求項3の発明にかかる通信切替方法では、上記発明において、前記送信工程で送信された前記内部リソースの情報に、識別情報を付与する付与工程を、さらに含むことを特徴とする。   The communication switching method according to a third aspect of the invention is characterized in that in the above invention, the communication switching method further includes a granting step of giving identification information to the information of the internal resource transmitted in the transmission step.

また、請求項4の発明にかかる通信切替方法では、上記発明において、前記付与工程では、前記識別情報が付与された前記内部リソースの情報が変更された場合には、当該内部リソースの情報に付与された識別情報を削除し、前記送信工程では、識別情報が付与されていない前記内部リソースの情報を、前記第2のデータ通信手段に送信することを特徴とする。   In the communication switching method according to a fourth aspect of the present invention, in the above invention, when the information of the internal resource to which the identification information is assigned is changed in the granting step, the information is given to the information of the internal resource. The transmitted identification information is deleted, and in the transmission step, the information of the internal resource to which identification information is not given is transmitted to the second data communication means.

また、請求項5の発明にかかるデータ通信装置は、経路情報に基づいて、他のデータ通信装置とデータ通信を行う少なくとも2つの第1及び第2のデータ通信手段を有するデータ通信装置において、前記データ通信装置は、前記通信の切り替え指示を行う指示手段を備えるとともに、前記データ通信手段は、通信主体の場合に、前記指示手段の切り替え指示に応じて、内部リソースの情報を他の前記データ通信手段に送信する送信手段と、前記通信主体でない場合に、前記他のデータ通信手段から送信される前記内部リソースの情報を受信する受信手段と、前記受信された内部リソースの情報を内部メモリに登録する登録手段と、前記登録された内部リソースの情報に基づいて、前記他のデータ通信装置とデータ通信を行う外部通信手段と、をそれぞれ備え、前記他のデータ通信装置からは論理的に一つのデータ通信手段として認識可能なことを特徴とする。   According to a fifth aspect of the present invention, there is provided a data communication device comprising at least two first and second data communication means for performing data communication with another data communication device based on path information. The data communication apparatus includes instruction means for instructing switching of the communication. When the data communication means is a communication subject, the data communication apparatus sends information on internal resources to the other data communication according to the instruction for switching of the instruction means. A transmitting means for transmitting to the means; a receiving means for receiving the information on the internal resource transmitted from the other data communication means if the communication subject is not; and the information on the received internal resource is registered in an internal memory. Registration means to perform, external communication means for performing data communication with the other data communication device based on the information of the registered internal resources, Comprising respectively, and wherein the recognizable as a single logical data communication means from said another data communication apparatus.

また、請求項6の発明にかかるデータ通信装置は、上記発明において、前記データ通信装置は、前記データ通信手段のプログラムを変更する変更手段を、さらに備えたことを特徴とする。   According to a sixth aspect of the present invention, there is provided the data communication device according to the above invention, wherein the data communication device further comprises a changing means for changing a program of the data communication means.

また、請求項7の発明にかかるデータ通信装置は、上記発明において、前記登録手段は、前記送信手段によって送信された前記内部リソースの情報に識別情報を付与することを特徴とする。   According to a seventh aspect of the present invention, there is provided the data communication device according to the above invention, wherein the registering unit adds identification information to the information of the internal resource transmitted by the transmitting unit.

また、請求項8の発明にかかるデータ通信装置は、上記発明において、前記登録手段は、前記識別情報が付与された内部リソースの情報が変更された場合には、前記付与した識別情報を削除し、前記送信手段は、前記識別情報が付与されていない前記内部リソースの情報を、前記他のデータ通信手段に送信することを特徴とする。   Further, in the data communication device according to the invention of claim 8, in the above invention, the registration means deletes the assigned identification information when the information of the internal resource to which the identification information is given is changed. The transmitting unit transmits the information of the internal resource to which the identification information is not given to the other data communication unit.

また、請求項9の発明にかかるデータ通信装置は、上記発明において、前記内部リソースの情報は、前記経路情報および前記データ通信を行うために必要な情報からなることを特徴とする。   The data communication apparatus according to a ninth aspect of the present invention is characterized in that, in the above-mentioned invention, the information of the internal resource includes the route information and information necessary for performing the data communication.

本発明にかかる通信切替方法は、通信切り替えの指示が入力すると、第1のデータ通信手段内に登録されている内部リソースの情報を、第2のデータ通信手段に送信して、前記第2のデータ通信手段内に登録させ、この登録終了後に、第2のデータ通信手段が、この内部リソースの情報に基づいて、他のデータ通信装置とデータ通信を行うので、物理的に2つのデータ通信手段を論理的に1つのデータ通信手段とみなして、通信断の状態を発生させることなく、データ通信が可能な状態で、データ通信の切り替えを行うことができるという効果を奏する。   When a communication switching instruction is input, the communication switching method according to the present invention transmits information on internal resources registered in the first data communication means to the second data communication means, and the second data communication means Since the second data communication unit performs data communication with another data communication device based on the information of the internal resource after the registration is completed, the two data communication units are physically registered. Is logically regarded as one data communication means, and there is an effect that data communication can be switched in a state where data communication is possible without causing a communication disconnection state.

本発明にかかるデータ通信装置は、送信主体のデータ通信手段においては、指示手段からの通信切り替え指示に応じて、通信手段が内部リソースの情報を他のデータ通信手段に送信しており、他方のデータ通信手段では、受信手段で受信された内部リソースの情報を、登録手段が内部メモリに登録し、さらに外部通信手段がこの内部リソースの情報に基づいて、他のデータ通信装置とデータ通信を行うことが可能となるので、物理的に2つのデータ通信手段を論理的に1つのデータ通信手段とみなして、通信断の状態を発生させることなく、データ通信が可能な状態で、データ通信の切り替えを行うことができるという効果を奏する。   In the data communication device according to the present invention, in the data communication unit of the transmission subject, the communication unit transmits the information of the internal resource to the other data communication unit in response to the communication switching instruction from the instruction unit. In the data communication unit, the registration unit registers the internal resource information received by the reception unit in the internal memory, and the external communication unit performs data communication with another data communication device based on the internal resource information. Therefore, it is possible to switch data communication in a state in which data communication is possible without causing a communication disconnection state by physically considering two data communication units as one logical data communication unit. There is an effect that can be performed.

以下に、本発明にかかる通信切替方法およびデータ通信装置の実施の形態を図1〜図5の図面に基づいて詳細に説明する。なお、本発明は、これらの実施の形態に限定されるものではなく、本発明の要旨を逸脱しない範囲で種々の変更実施の形態が可能である。   Embodiments of a communication switching method and a data communication apparatus according to the present invention will be described below in detail with reference to the drawings of FIGS. The present invention is not limited to these embodiments, and various modifications can be made without departing from the scope of the present invention.

(実施の形態1)
図1は、本発明にかかるデータ通信装置であるデータ中継装置が接続されたデータ中継システムの概略構成の一例を示すシステム構成図である。図において、このデータ中継システムでは、単一の自律システム(AS:Autonomous System)内部のネットワーク1上に、たとえばOSPF(Open Shortest Path First:RFC2328)のプロトコルを用いたデータ中継装置である複数のルータ2,3が接続されており、これらルータ2,3がこのネットワーク全体の接続形態(以下、「トポロジー」という)の情報を持っている。これらルータ2,3は、このトポロジー情報に基づいて、最適経路の算出を行っている。
(Embodiment 1)
FIG. 1 is a system configuration diagram showing an example of a schematic configuration of a data relay system to which a data relay device which is a data communication device according to the present invention is connected. In this figure, in this data relay system, a plurality of routers which are data relay apparatuses using, for example, an OSPF (Open Shortest Path: RFC2328) protocol on a network 1 inside a single autonomous system (AS). 2 and 3 are connected to each other, and these routers 2 and 3 have information on the connection form of the entire network (hereinafter referred to as “topology”). These routers 2 and 3 calculate the optimum route based on this topology information.

また、トポロジーが変化した場合には、ルータ2,3間で経路情報の交換が迅速に行われ、常に最新のトポロジー情報に基づいた最適経路の算出を行っている。このルータ2で算出された最適経路情報は、内部メモリである経路情報テーブル11,21内のフォワーディングテーブル(図示せず)に格納されており、この最適経路情報に基づいて、ルータ2,3間でIP(Internet Protocol)データの中継を行っている。   In addition, when the topology changes, the route information is rapidly exchanged between the routers 2 and 3, and the optimum route is always calculated based on the latest topology information. The optimum route information calculated by the router 2 is stored in a forwarding table (not shown) in the route information tables 11 and 21 which are internal memories, and based on the optimum route information, between the routers 2 and 3. IP (Internet Protocol) data is relayed.

このルータ2は、システム運用時の安全対策として、OSPFプロトコルの二重化が図られている。たとえば図1に示すように、ボードがそれぞれ異なるボードA,B上に構成されるデータ通信手段である、物理的に2つのルータ10,20を、外部のルータ3からは論理的には1つのルータと認識させるもので、外部からの通信の切り替え指示に応じて、いずれか一方が通信主体となって他のルータ3とルーティング制御データ(以下、「経路情報」という)の交換およびデータ中継を行うものである。なお、他のルータ3は、ネットワーク上に複数存在することが無論可能である。   The router 2 is configured to make the OSPF protocol redundant as a safety measure during system operation. For example, as shown in FIG. 1, two routers 10 and 20 that are data communication means configured on different boards A and B, respectively, are physically connected from an external router 3 to one logically. In response to an external communication switching instruction, either one becomes a communication entity and exchanges routing control data (hereinafter referred to as “route information”) with other routers 3 and relays data. Is what you do. Of course, a plurality of other routers 3 may exist on the network.

このルータ2は、たとえば通信動作がアクティブ状態の現用系であり、中継処理を行うルータ10と、通信動作がスタンバイ状態の待機系であり、中継処理を行うルータ20とからなり、各ルータ10,20を他のルータ3と接続されている。この実施の形態では、たとえば他のルータ3から受信した経路情報を、ルータ10の中継処理部12にのみ転送して、装置全体の処理負荷を軽減している。また、ルータ10で生成したデータに関しては、通信動作のアクティブ状態とスタンバイ状態を切り替えるときに、ルータ10,20(ボードA,B)間でTCP(Transmission Control Protocol)によりセッションを確立して、逐次データの転送4を行っており、同期がとれた時点で現在の状態を保持したままボードの切り替えを可能にしている。   This router 2 is, for example, an active system in which the communication operation is in an active state, and includes a router 10 that performs relay processing, and a standby system in which the communication operation is in a standby state and performs relay processing. 20 is connected to another router 3. In this embodiment, for example, the route information received from another router 3 is transferred only to the relay processing unit 12 of the router 10 to reduce the processing load of the entire apparatus. As for the data generated by the router 10, when switching between the active state and the standby state of the communication operation, a session is established between the routers 10 and 20 (boards A and B) by TCP (Transmission Control Protocol), and sequentially. Data transfer 4 is performed, and the board can be switched while maintaining the current state at the time of synchronization.

ルータ10,20は、同一の構成からなるので、ここでは代表してルータ10の構成を、図2の構成図に示す。図2において、ルータ10は、上述した内部メモリである経路情報テーブル11と、データの中継処理を行う外部通信手段である中継処理部12と、バージョン変更の処理を行う変更手段であるバージョン変更処理部13と、ネットワーク1を介して他のルータ3と接続される外部インターフェース14と、内部リソース情報の転送処理を行う転送処理部15と、プログラムの変更を検出するデータ変更検出部16と、ルータ20の内部インターフェース27と接続される内部インターフェース17とから構成され、ルータ2は、これらルータ10,20と、ルータ10,20に対して操作指示を行う操作部18とを備える。なお、転送処理部15は、特許請求の範囲に示した送信手段、受信手段および登録手段を構成している。   Since the routers 10 and 20 have the same configuration, the configuration of the router 10 is representatively shown in the configuration diagram of FIG. 2 here. In FIG. 2, the router 10 includes a path information table 11 that is the internal memory described above, a relay processing unit 12 that is an external communication unit that performs data relay processing, and a version change process that is a change unit that performs version change processing. Unit 13, an external interface 14 connected to another router 3 via the network 1, a transfer processing unit 15 that performs transfer processing of internal resource information, a data change detection unit 16 that detects program changes, and a router The router 2 includes 20 internal interfaces 27 and the internal interface 17, and the router 2 includes the routers 10 and 20 and an operation unit 18 that instructs the routers 10 and 20 to operate. The transfer processing unit 15 constitutes a transmission unit, a reception unit, and a registration unit described in the claims.

経路情報テーブル11には、上述した内部リソースの情報である経路情報やトポロジー情報の他に、その他の内部リソースの情報、たとえば他のルータの情報として、ソケット(他のルータとの接続情報)、ルータIDおよびネゴシエーションの結果どのような経路の交換を行うかなどの情報、自ルータ10の情報として、相手ルータから受ける経路や相手ルータに送る経路のフィルタリング設定、どのルータと経路交換を行っているかなどの情報が保持されている。これらの情報は、図3に示すように、所定単位の保持データとして経路情報テーブル11内に格納されており、転送処理部15は、転送済みの保持データに、識別情報であるフラグ(*)を立てて、転送前の保持データと転送済みの保持データの識別を可能にしている。   In the route information table 11, in addition to the above-described route information and topology information which are information of internal resources, other internal resource information, for example, information on other routers, sockets (connection information with other routers), Information such as the router ID and the type of route exchanged as a result of the negotiation, information about the own router 10, the route received from the partner router, the filtering setting of the route sent to the partner router, and the router with which the route is exchanged Such information is retained. As shown in FIG. 3, these pieces of information are stored in the route information table 11 as held data in a predetermined unit, and the transfer processing unit 15 adds a flag (*) as identification information to the transferred held data. Thus, it is possible to identify the held data before transfer and the held data that has been transferred.

この転送処理部15による内部リソースの転送は、たとえばオペレータがキーボードなどを操作して、操作部18から送信される切り替え指示に応じて行われ、しかも通常のルータ処理動作の一部として行われている。このため、ルータ本来の動作、たとえばデータ中継や経路情報の交換も、中継処理部12によって通常通りに行われる。したがって、ルータ10は、ルータとしてのプロトコル処理も行っているため、内部リソースの転送中に保持データの更新が行われる場合がある。このように、更新された保持データがあれば、データ変更検出部16が、図4に示すように、更新された保持データを検出して、この保持データのフラグを削除して、転送処理部15による再度の転送を可能にしている。   The transfer of the internal resources by the transfer processing unit 15 is performed according to a switching instruction transmitted from the operation unit 18 by an operator operating a keyboard or the like, for example, and as a part of a normal router processing operation. Yes. For this reason, the original operation of the router, for example, data relay and exchange of route information are also performed by the relay processing unit 12 as usual. Therefore, since the router 10 also performs protocol processing as a router, the retained data may be updated during the transfer of internal resources. Thus, if there is updated holding data, the data change detection unit 16 detects the updated holding data and deletes the flag of the holding data as shown in FIG. 15 can be transferred again.

転送処理部15は、全ての内部リソースの情報である保持データを転送し終えたら、ボードA,B間のTCPセッションを切り、ボードの切り替えを行う。また、保持データの転送動作の途中に、たとえばルータ20からのエラーメッセージを受信すると、転送処理部15は、転送の失敗と判断して、現用系の保持データは保持されたままとなり、ボードの切り替え動作を行わない。   When the transfer processing unit 15 finishes transferring the retained data, which is information on all internal resources, the transfer processing unit 15 disconnects the TCP session between the boards A and B and switches the boards. If, for example, an error message from the router 20 is received during the holding data transfer operation, the transfer processing unit 15 determines that the transfer has failed, and the active holding data remains held. Switching operation is not performed.

また、バージョン変更処理部13は、たとえば中継処理部12のデータ中継用のプログラムのバージョン変更の処理を行うための処理部であり、このバージョンを変更する場合には、たとえば動作状態をスタンバイ状態に切り替えておいた状態で、バージョンアップを行うのが好ましい。   The version change processing unit 13 is a processing unit for performing version change processing of the data relay program of the relay processing unit 12, for example. When changing this version, for example, the operation state is set to the standby state. It is preferable to perform the version upgrade in the state where it has been switched.

次に、ルータ10におけるボードの切り替え動作を、図5のフローチャートに基づいて説明する。図において、たとえばスタンバイ状態のルータ20内のバージョン変更処理部によって、ルータ20におけるプログラムがバージョンアップされた場合に、オペレータは、アクティブ状態のルータ10からスタンバイ状態のルータ20にボードの切り替えを行う。この場合に、オペレータは、操作部18を操作して切替コマンドを内部インターフェース17を介して転送処理部15に送信する。この切替コマンドの受信によって、転送処理部15によるボードの切り替え処理の動作が開始される。   Next, the board switching operation in the router 10 will be described with reference to the flowchart of FIG. In the figure, for example, when the program in the router 20 is upgraded by a version change processing unit in the router 20 in the standby state, the operator switches the board from the router 10 in the active state to the router 20 in the standby state. In this case, the operator operates the operation unit 18 to transmit a switching command to the transfer processing unit 15 via the internal interface 17. By receiving this switching command, the operation of the board switching process by the transfer processing unit 15 is started.

まず、転送処理部15は、この切替コマンドを受信すると、スタンバイ状態のルータ20と互いの内部インターフェース17,27を介してTCPセッションを確立して、ルータ2内部での通信が可能な状態に設定する(ステップ101)。そして、TCPセッションが確立されると、転送処理を行うかどうか判断する(ステップ102)。なお、内部インターフェース間で転送処理を行うか、データ変更に伴うプロトコル処理を行うか、または図示しないオペレータの操作に対する応答処理を行うかは、予め設定した処理の優先度に応じて決定される。通常では、基本的にプロトコル処理の方が転送処理よりも優先度が高いが、これらの処理状況に従い、スケジューリングされて転送処理の方がプロトコル処理よりも優先される場合がある。   First, when receiving this switching command, the transfer processing unit 15 establishes a TCP session with the router 20 in the standby state via the internal interfaces 17 and 27 and sets the router 2 in a state where communication within the router 2 is possible. (Step 101). When the TCP session is established, it is determined whether or not to perform a transfer process (step 102). Whether transfer processing is performed between internal interfaces, protocol processing associated with data change, or response processing to an operator's operation (not shown) is determined according to a preset processing priority. Normally, the protocol processing basically has a higher priority than the transfer processing. However, the transfer processing may be prioritized over the protocol processing by scheduling according to the processing status.

ここで、転送処理を行う場合には、次に経路情報テーブル11内に転送すべき内部リソースの情報(保持データ)があるかどうか判断する(ステップ103)。ここで、転送すべき保持データがある場合には、その保持データを経路情報テーブル11から読み出して、内部インターフェース17,27を介してルータ20に転送し(ステップ104)、さらに転送済みフラグを該当する保持データに立てる(ステップ105)。そして、全ての保持データを転送したかどうか判断し(ステップ106)、転送すべき保持データが残っている場合には、ステップ102に戻って転送処理を行うか判断し、また全ての保持データの転送が終った場合には、ルータ20との間で確立したTCPセッションを切断して(ステップ107)、上記動作を終了する。また、ステップ103において、転送すべきデータがない場合も、TCPセッションを切断して上記動作を終了し、ボードをボードAからボードBに切り替えて、バージョンアップされたルータ20によるデータ中継を可能にする。   Here, when performing the transfer process, it is determined whether there is information (holding data) of the internal resource to be transferred next in the route information table 11 (step 103). Here, if there is retained data to be transferred, the retained data is read from the route information table 11 and transferred to the router 20 via the internal interfaces 17 and 27 (step 104), and the transferred flag is set as appropriate. (Step 105). Then, it is determined whether or not all the retained data has been transferred (step 106). If there is remaining retained data to be transferred, the process returns to step 102 to determine whether or not to perform the transfer process. When the transfer is finished, the TCP session established with the router 20 is disconnected (step 107), and the above operation is finished. In step 103, even if there is no data to be transferred, the TCP session is disconnected and the above operation is terminated, and the board is switched from board A to board B so that data can be relayed by the upgraded router 20. To do.

また、ステップ102において、転送処理を行わない場合、すなわちプロトコル処理を行う場合には、データ変更に伴って更新された保持データに更新用のフラグを立て(ステップ108)、更新された保持データがあるかどうか判断する(ステップ109)。   If no transfer processing is performed in step 102, that is, if protocol processing is performed, an update flag is set for the retained data that has been updated in accordance with the data change (step 108). It is determined whether or not there is (step 109).

ここで、更新された保持データがない場合には、ステップ102に戻って転送処理を行うか判断し、また更新された保持データがある場合には、更新用フラグの立った保持データの転送済みフラグを削除して(ステップ110)、この保持データの転送処理を行った後に(ステップ102〜104)、再び転送済みフラグを立てる(ステップ105)。   If there is no updated holding data, the process returns to step 102 to determine whether to perform transfer processing. If there is updated holding data, the holding data with the update flag set has been transferred. After the flag is deleted (step 110), the retained data is transferred (steps 102 to 104), and the transferred flag is set again (step 105).

このように、この実施の形態では、通信の切替指示が入力すると、アクティブ状態のルータからスタンバイ状態のルータに内部リソースの情報を転送して、全ての内部リソースの情報の転送が終了した時点で、ボードの切り替えを行なって、セッション断を発生させることなく、スタンバイ状態だったルータによるデータ中継や経路情報の交換を可能にするので、通信断の状態を発生させることなく、データ通信が可能な状態で、データ通信の切り替えおよびファームウェアの更新を行うことができる。   Thus, in this embodiment, when a communication switching instruction is input, the internal resource information is transferred from the active router to the standby router, and when the transfer of all the internal resource information is completed. , By switching boards, it is possible to relay data and exchange route information by a router that was in a standby state without causing a session disconnection, so data communication is possible without causing a communication disconnection state In this state, data communication can be switched and firmware can be updated.

なお、この実施の形態では、2つのルータ10,20の切り替えの場合を説明したが、本発明はこれに限らず、ルータ2内には、3つ以上の物理的に異なるルータを設けて、これらのルータが他のルータ3からは1つのルータ2と認識するように構成することも可能である。   In this embodiment, the case of switching between the two routers 10 and 20 has been described. However, the present invention is not limited to this, and three or more physically different routers are provided in the router 2, It is also possible to configure these routers so as to be recognized as one router 2 from other routers 3.

本発明にかかるデータ通信装置であるデータ中継装置が接続されたデータ中継システムの概略構成の一例を示すシステム構成図である。1 is a system configuration diagram showing an example of a schematic configuration of a data relay system to which a data relay device that is a data communication device according to the present invention is connected. FIG. 図1に示したルータの構成を示す構成図である。It is a block diagram which shows the structure of the router shown in FIG. 図2に示した経路情報テーブル内の保持データの格納状態を示す図である。It is a figure which shows the storage state of the holding | maintenance data in the path | route information table shown in FIG. 図3に示した経路情報テーブル内の保持データが変更された場合の格納状態を示す図である。It is a figure which shows the storage state when the holding | maintenance data in the path | route information table shown in FIG. 3 are changed. 図2に示したルータにおけるボードの切り替え動作を説明するためのフローチャートである。3 is a flowchart for explaining a board switching operation in the router shown in FIG. 2.

符号の説明Explanation of symbols

1 ネットワーク
2,3,10,20 ルータ
11,21 経路情報テーブル
12,22 中継処理部
13 バージョン変更処理部
14 外部インターフェース
15 転送処理部
16 データ変更検出部
17,27 内部インターフェース
18 操作部
A,B ボード
1 Network 2, 3, 10, 20 Router 11, 21 Route Information Table 12, 22 Relay Processing Unit 13 Version Change Processing Unit 14 External Interface 15 Transfer Processing Unit 16 Data Change Detection Unit 17, 27 Internal Interface 18 Operation Unit A, B board

Claims (8)

少なくとも2つの第1及び第2のデータ通信手段を有するデータ通信装置が、経路情報に基づいて、他のデータ通信装置とデータ通信を行うとともに、通信の切り替え指示に応じて、前記データ通信の通信主体を前記第1のデータ通信手段から前記第2のデータ通信手段に切り替える通信切替方法において、
前記データ通信の切り替え指示を出力する指示工程と、
前記切り替え指示に応じて、前記通信主体の前記第1のデータ通信手段が通信に必要な経路情報、トポロジー情報、ソケット情報、ルータID情報、ネゴシエーションの結果どのような経路の交換を行うかの情報を含むプロトコル状態遷移情報、フィルタリング設定情報、および、どのルータと経路交換を行っているかを示す隣接ルータ情報を含む内部リソースの情報を前記第2のデータ通信手段に送信する送信工程と、
前記第2のデータ通信手段が前記内部リソースの情報を受信し、内部メモリに登録する登録工程と、
前記登録された内部リソースの情報に基づいて、前記第2のデータ通信手段が前記他のデータ通信装置とデータ通信を行う通信工程と、
を含み、それぞれの前記データ通信手段が前記他のデータ通信装置から論理的に一つのデータ通信手段として認識可能なことを特徴とする通信切替方法。
A data communication apparatus having at least two first and second data communication means performs data communication with another data communication apparatus based on the path information, and the communication of the data communication according to a communication switching instruction. In the communication switching method for switching the main body from the first data communication means to the second data communication means,
An instruction step of outputting an instruction to switch the data communication;
In response to the switching instruction, the first data communication means of the communication subject performs route information necessary for communication , topology information, socket information, router ID information, information on what kind of route is exchanged as a result of negotiation A transmission step of transmitting information of internal resources including protocol state transition information, filtering setting information, and neighboring router information indicating which router is performing route exchange to the second data communication unit;
A registration step in which the second data communication means receives the information of the internal resource and registers it in an internal memory;
A communication step in which the second data communication means performs data communication with the other data communication device based on the registered internal resource information;
Each of the data communication means is logically recognizable as one data communication means from the other data communication device.
前記第2のデータ通信手段のプログラムを変更する変更工程をさらに含み、
前記指示工程では、前記プログラムの変更後に前記切替指示を出力することを特徴とする請求項1に記載の通信切替方法。
A change step of changing the program of the second data communication means;
The communication switching method according to claim 1, wherein, in the instruction step, the switching instruction is output after the program is changed.
前記送信工程で送信された前記内部リソースの情報に、識別情報を付与する付与工程をさらに含むことを特徴とする請求項1または2に記載の通信切替方法。   The communication switching method according to claim 1, further comprising a granting step of granting identification information to the internal resource information sent in the sending step. 前記付与工程では、前記識別情報が付与された前記内部リソースの情報が変更された場合には、当該内部リソースの情報に付与された識別情報を削除し、
前記送信工程では、識別情報が付与されていない前記内部リソースの情報を、前記第2のデータ通信手段に送信することを特徴とする請求項3に記載の通信切替方法。
In the granting step, when the information of the internal resource to which the identification information is given is changed, the identification information given to the information of the internal resource is deleted,
4. The communication switching method according to claim 3, wherein, in the transmission step, information on the internal resource to which identification information is not given is transmitted to the second data communication unit.
経路情報に基づいて、他のデータ通信装置とデータ通信を行う少なくとも2つの第1及び第2のデータ通信手段を有するデータ通信装置において、
前記通信の切り替え指示を行う指示手段を備え、
前記データ通信手段は、
通信主体の場合に、前記指示手段の切り替え指示に応じて、通信に必要な経路情報、トポロジー情報、ソケット情報、ルータID情報、ネゴシエーションの結果どのような経路の交換を行うかの情報を含むプロトコル状態遷移情報、フィルタリング設定情報、および、どのルータと経路交換を行っているかを示す隣接ルータ情報を含む内部リソースの情報を他の前記データ通信手段に送信する送信手段と、
前記通信主体でない場合に、前記他のデータ通信手段から送信される前記内部リソースの情報を受信する受信手段と、
前記受信手段によって受信された内部リソースの情報を内部メモリに登録する登録手段と、
前記登録手段によって登録された内部リソースの情報に基づいて、前記他のデータ通信装置とデータ通信を行う外部通信手段と、
を備え、前記他のデータ通信装置からは論理的に一つのデータ通信手段として認識可能なことを特徴とするデータ通信装置。
In a data communication apparatus having at least two first and second data communication means for performing data communication with another data communication apparatus based on path information,
Instructing means for instructing switching of the communication,
The data communication means includes
A protocol including path information necessary for communication, topology information, socket information, router ID information, and information on what kind of path exchange is performed as a result of negotiation in response to the switching instruction of the instruction means in the case of a communication subject Transmitting means for transmitting internal resource information including state transition information, filtering setting information, and neighboring router information indicating which router is performing route exchange to the other data communication means;
Receiving means for receiving the information of the internal resource transmitted from the other data communication means when not the communication subject;
Registration means for registering internal resource information received by the receiving means in an internal memory;
External communication means for performing data communication with the other data communication device based on the information of the internal resource registered by the registration means;
The data communication apparatus is characterized in that it can be logically recognized as one data communication means from the other data communication apparatus.
前記データ通信手段のプログラムを変更する変更手段をさらに備えたことを特徴とする請求項5に記載のデータ通信装置。   6. The data communication apparatus according to claim 5, further comprising changing means for changing a program of the data communication means. 前記登録手段は、前記送信手段によって送信された前記内部リソースの情報に識別情報を付与することを特徴とする請求項5または6に記載のデータ通信装置。   The data communication apparatus according to claim 5, wherein the registration unit adds identification information to the internal resource information transmitted by the transmission unit. 前記登録手段は、前記識別情報が付与された内部リソースの情報が変更された場合には、前記付与した識別情報を削除し、
前記送信手段は、前記識別情報が付与されていない前記内部リソースの情報を、前記他のデータ通信手段に送信することを特徴とする請求項7に記載のデータ通信装置。
The registration unit deletes the assigned identification information when the information of the internal resource to which the identification information is given is changed,
8. The data communication apparatus according to claim 7, wherein the transmission unit transmits information on the internal resource to which the identification information is not assigned to the other data communication unit.
JP2004010734A 2004-01-19 2004-01-19 Communication switching method and data communication apparatus Expired - Lifetime JP3989447B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004010734A JP3989447B2 (en) 2004-01-19 2004-01-19 Communication switching method and data communication apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004010734A JP3989447B2 (en) 2004-01-19 2004-01-19 Communication switching method and data communication apparatus

Publications (2)

Publication Number Publication Date
JP2005204239A JP2005204239A (en) 2005-07-28
JP3989447B2 true JP3989447B2 (en) 2007-10-10

Family

ID=34823372

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004010734A Expired - Lifetime JP3989447B2 (en) 2004-01-19 2004-01-19 Communication switching method and data communication apparatus

Country Status (1)

Country Link
JP (1) JP3989447B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008236311A (en) * 2007-03-20 2008-10-02 Fujitsu Ltd Transmission device

Also Published As

Publication number Publication date
JP2005204239A (en) 2005-07-28

Similar Documents

Publication Publication Date Title
US7490161B2 (en) Method and system for implementing OSPF redundancy
AU2004306913B2 (en) Redundant routing capabilities for a network node cluster
JP6388955B2 (en) Graceful restart processing method of OpenFlow switch and OpenFlow controller
KR20080084163A (en) Router and method of supporting non-stop packet forwarding on system redundent network
JP2006135970A (en) SoftRouter DYNAMIC BINDING PROTOCOL
JP2007535852A (en) Apparatus and method for neighbor cache table synchronization
CN105340226B (en) The method and device thereof of the main preparation system switching of dynamic routing equipment
JP4145274B2 (en) Network equipment
JP2022167943A (en) Point-to-point database synchronization over transport protocol
JP4580372B2 (en) Network system
US7860090B2 (en) Method for processing LMP packets, LMP packet processing unit and LMP packet processing node
JP3989447B2 (en) Communication switching method and data communication apparatus
CN111371680A (en) Route management method, device, equipment and storage medium for dual-computer hot standby
CN109412943B (en) SDN controller cluster flow processing method, device, equipment and storage medium
JP2003092602A (en) Network apparatus
JP2015015650A (en) Packet relay device, packet relay system, and packet relay method
JP3990196B2 (en) How to avoid communication interruption due to spanning tree reconfiguration
KR101740799B1 (en) Method of failover for network service in software defined networking environment
CN111934912A (en) Hot standby redundancy system of double-host isolation gateway and control method
JP6282222B2 (en) Communication device
JP3604380B2 (en) Data relay method, data relay device, and data relay system using the device
JP2006140874A (en) Communication system
JP2002354049A (en) Circuit controlling system
JP2006129348A (en) Master node determination system and method, node device, and computer program
JP2006005611A (en) Non-interrupt switching device in stp

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20061201

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20061212

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20070213

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20070306

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20070425

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

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20070615

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20070717

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

Free format text: PAYMENT UNTIL: 20100727

Year of fee payment: 3

R151 Written notification of patent or utility model registration

Ref document number: 3989447

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

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

Free format text: PAYMENT UNTIL: 20110727

Year of fee payment: 4

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

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

Free format text: PAYMENT UNTIL: 20110727

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20120727

Year of fee payment: 5

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

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

Free format text: PAYMENT UNTIL: 20120727

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20130727

Year of fee payment: 6

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350