JP5505998B2 - COMMUNICATION DEVICE, ROUTE SELECTION METHOD, AND PROGRAM - Google Patents

COMMUNICATION DEVICE, ROUTE SELECTION METHOD, AND PROGRAM Download PDF

Info

Publication number
JP5505998B2
JP5505998B2 JP2012243320A JP2012243320A JP5505998B2 JP 5505998 B2 JP5505998 B2 JP 5505998B2 JP 2012243320 A JP2012243320 A JP 2012243320A JP 2012243320 A JP2012243320 A JP 2012243320A JP 5505998 B2 JP5505998 B2 JP 5505998B2
Authority
JP
Japan
Prior art keywords
response
value
route
communication
request signal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2012243320A
Other languages
Japanese (ja)
Other versions
JP2014093673A (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.)
NEC Platforms Ltd
Original Assignee
NEC Infrontia Corp
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 NEC Infrontia Corp filed Critical NEC Infrontia Corp
Priority to JP2012243320A priority Critical patent/JP5505998B2/en
Publication of JP2014093673A publication Critical patent/JP2014093673A/en
Application granted granted Critical
Publication of JP5505998B2 publication Critical patent/JP5505998B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Description

本発明は、複数の通信経路から1つの通信経路を選択する通信装置、経路選択方法及びプログラムに関する。   The present invention relates to a communication device, a route selection method, and a program for selecting one communication route from a plurality of communication routes.

一般的にネットワークに適用されている通信装置は、当該通信装置に接続された複数の通信装置間にて送受信されるデータが通過する通信経路(ネットワーク)を選択する機能を有している。選択される通信経路は、当該通信経路の状態に基づいて選択される。例えば、現在選択されている通信経路に障害が発生したと判断された際や、通信品質が低下したと判断された際、他の通信経路が選択され、当該データが通過する通信経路が現在選択されている通信経路から他の通信経路へ切り替えられる。   In general, a communication device applied to a network has a function of selecting a communication path (network) through which data transmitted and received between a plurality of communication devices connected to the communication device passes. The communication path to be selected is selected based on the state of the communication path. For example, when it is determined that a failure has occurred in the currently selected communication path, or when it is determined that the communication quality has deteriorated, another communication path is selected, and the communication path through which the data passes is currently selected. The communication path that has been set is switched to another communication path.

このような通信経路における障害発生を判断する手段として、例えば、ICMP(Internet Control Message Protocol)パケット等の、経路の状態を確認するための確認メッセージ及びそれに対する返信メッセージが用いられている。確認メッセージを送信し、当該確認メッセージに対する返信メッセージを受信しない場合には、通信経路に障害が発生したと判断される。   As means for determining the occurrence of a failure in such a communication path, for example, a confirmation message for confirming the state of the path such as an ICMP (Internet Control Message Protocol) packet and a reply message for the confirmation message are used. When a confirmation message is transmitted and a reply message for the confirmation message is not received, it is determined that a failure has occurred in the communication path.

また、送信した確認メッセージに対する返信メッセージを受信しない場合、即座に通信経路を切り替えるのではなく、所定の保護段数(回数の閾値)を用いるものが一般的である。   When a reply message for the transmitted confirmation message is not received, it is common to use a predetermined number of protection steps (threshold number threshold) instead of immediately switching the communication path.

ここで、この閾値が小さな値であると、メインとなる通信経路(メイン経路)が断続的に品質低下した場合などに、メイン経路と迂回経路との切り替えおよび切り戻しの繰り返しが頻繁に行われてしまうおそれがある。一方、この閾値が大きな値であると、メイン経路が突発的な異常から復旧した場合に、迂回経路からの切り戻しに時間がかかってしまうおそれがある。   Here, when this threshold value is small, when the quality of the main communication route (main route) is intermittently deteriorated, switching between the main route and the detour route and switching back and forth are frequently performed. There is a risk that. On the other hand, if this threshold is a large value, it may take a long time to switch back from the detour route when the main route recovers from a sudden abnormality.

そこで、メイン経路の品質が十分に回復していることを、確認メッセージを送信してから返信メッセージを受信するまでの応答時間に基づいて判別し、品質低下の状態を示すマージン値を減らしていくことで、切り戻しの遅れを減少させる技術が考えられている(例えば、特許文献1参照。)。   Therefore, it is determined that the quality of the main route has sufficiently recovered based on the response time from when the confirmation message is transmitted until the reply message is received, and the margin value indicating the state of quality deterioration is reduced. Thus, a technique for reducing the delay in switching back is considered (for example, see Patent Document 1).

特開2012−169910号公報JP2012-169910A

しかしながら、上述した技術においては、判別する際に、応答時間と比較する応答閾値をあらかじめ設定する必要があり、その手間がかかってしまうという問題点がある。なお、この応答閾値は、メイン経路の種別等の条件を考慮する必要がある。   However, in the above-described technique, it is necessary to set a response threshold value to be compared with the response time in advance when making the determination, which is troublesome. The response threshold needs to consider conditions such as the type of main route.

本発明の目的は、上述した課題を解決する通信装置、経路選択方法及びプログラムを提供することである。   The objective of this invention is providing the communication apparatus, route selection method, and program which solve the subject mentioned above.

本発明の通信装置は、
複数の通信経路と接続され、該複数の通信経路のうち1つの通信経路を選択して通信を行う通信装置であって、
前記複数の通信経路のうち、第1の通信経路の状態を確認するための経路確認要求信号を送信し、該送信した経路確認要求信号に対する応答信号を受信する経路状態確認部と、
前記経路状態確認部が、前記経路確認要求信号を送信してから該経路確認要求信号に対する前記応答信号を受信するまでの応答時間を計測するタイマーと、
前記経路状態確認部が、前記経路確認要求信号に対して前記応答信号を受信した連続回数をカウントする正常カウンタと、
前記経路状態確認部が、前記経路確認要求信号に対して前記応答信号を受信しなかった連続回数をカウントする異常カウンタと、
前記経路状態確認部が前記経路確認要求信号に対して前記応答信号を受信した後、前記経路確認要求信号に対して前記応答信号を受信しなかった場合、前記異常カウンタの初期値を算出するための補正値と前記正常カウンタの値とに基づいて前記初期値を算出し、前記異常カウンタの値を前記算出した初期値からカウントし、該カウントした異常カウンタの値があらかじめ設定された切り替え閾値以上となった場合、前記通信経路を前記第1の通信経路から該第1の通信経路以外の第2の通信経路へ切り替える指示を行い、前記経路状態確認部が前記経路確認要求信号に対して前記応答信号を受信しなかった後、前記経路確認要求信号に対して前記応答信号を受信した場合、前記タイマーが計測した応答時間に基づいて算出した平均応答時間と前記応答時間のうち最小となる最小応答時間とに基づいて、応答閾値を算出し、前記補正値を、前記応答閾値と前記タイマーが計測した応答時間と現在の補正値と現在の前記異常カウンタの値とに基づいて算出し、前記正常カウンタの値が該算出した補正値とあらかじめ設定された切り戻し閾値とを加算した値以上となった場合、前記通信経路を前記第2の通信経路から前記第1の通信経路へ切り戻す指示を行う状態算出部と、
前記状態算出部からの指示に基づいて、前記通信経路として前記第1の通信経路と前記第2の通信経路とのどちらか一方を選択する経路選択部とを有する。
The communication device of the present invention
A communication device that is connected to a plurality of communication paths and performs communication by selecting one of the plurality of communication paths.
A path state confirmation unit that transmits a path confirmation request signal for confirming a state of the first communication path among the plurality of communication paths, and receives a response signal to the transmitted path confirmation request signal;
A timer for measuring a response time from when the route state confirmation unit transmits the route confirmation request signal to receiving the response signal to the route confirmation request signal;
A normal counter that counts the continuous number of times that the route state confirmation unit has received the response signal in response to the route confirmation request signal;
An abnormality counter that counts the number of times that the route state confirmation unit has not received the response signal in response to the route confirmation request signal;
In order to calculate the initial value of the abnormality counter when the route state confirmation unit does not receive the response signal to the route confirmation request signal after receiving the response signal to the route confirmation request signal The initial value is calculated based on the correction value and the normal counter value, the abnormal counter value is counted from the calculated initial value, and the counted abnormal counter value is equal to or greater than a preset switching threshold value. The communication path is instructed to switch the communication path from the first communication path to a second communication path other than the first communication path, and the path status confirmation unit responds to the path confirmation request signal The average response time calculated based on the response time measured by the timer when the response signal is received with respect to the route confirmation request signal after not receiving the response signal. A response threshold value is calculated based on a minimum response time that is the smallest of the response times, and the correction value is calculated using the response threshold value, the response time measured by the timer, the current correction value, and the current abnormality counter. And when the value of the normal counter is equal to or greater than a value obtained by adding the calculated correction value and a preset switchback threshold, the communication path is changed from the second communication path to the A state calculating unit that gives an instruction to switch back to the first communication path;
And a route selection unit that selects either the first communication route or the second communication route as the communication route based on an instruction from the state calculation unit.

また、本発明の経路選択方法は、
複数の通信経路と接続された通信装置が通信を行う通信経路を前記複数の通信経路のうちから選択する経路選択方法であって、
前記複数の通信経路のうち、第1の通信経路の状態を確認するための経路確認要求信号を送信する処理と、
前記送信した経路確認要求信号に対する応答信号を受信したかどうかを確認する処理と、
前記経路確認要求信号を送信してから該経路確認要求信号に対する前記応答信号を受信するまでの応答時間を計測する処理と、
前記経路確認要求信号に対して前記応答信号を受信した後、前記経路確認要求信号に対して前記応答信号を受信しなかった場合、前記経路確認要求信号に対して前記応答信号を受信しなかった連続回数である第1の回数をカウントする際の初期値を算出するための補正値と、前記経路確認要求信号に対して前記応答信号を受信した連続回数である第2の回数とに基づいて前記初期値を算出する処理と、
前記第1の回数を前記算出した初期値からカウントする処理と、
前記カウントした第1の回数とあらかじめ設定された切り替え閾値とを比較する処理と、
前記カウントした第1の回数が前記切り替え閾値以上となった場合、前記通信経路を前記第1の通信経路から該第1の通信経路以外の第2の通信経路へ切り替える処理と
前記経路確認要求信号に対して前記応答信号を受信しなかった後、前記経路確認要求信号に対して前記応答信号を受信した場合、前記計測した応答時間に基づいて算出した平均応答時間と前記応答時間のうち最小となる最小応答時間とに基づいて、応答閾値を算出する処理と、
前記応答閾値を算出した後、前記補正値を、前記応答閾値と前記計測した応答時間と現在の補正値と現在の第1の回数とに基づいて算出する処理と、
該算出した補正値とあらかじめ設定された切り戻し閾値とを加算した値と、前記第2の回数とを比較する処理と、
前記第2の回数が該算出した補正値と前記切り戻し閾値とを加算した値以上となった場合、前記通信経路を前記第2の通信経路から前記第1の通信経路へ切り戻す処理とを行う。
Further, the route selection method of the present invention includes:
A path selection method for selecting a communication path through which a communication device connected to a plurality of communication paths performs communication from the plurality of communication paths,
A process of transmitting a route confirmation request signal for confirming the state of the first communication route among the plurality of communication routes;
Processing for confirming whether or not a response signal to the transmitted route confirmation request signal has been received;
Processing for measuring a response time from transmission of the route confirmation request signal to reception of the response signal to the route confirmation request signal;
After receiving the response signal for the route confirmation request signal, if the response signal is not received for the route confirmation request signal, the response signal is not received for the route confirmation request signal Based on a correction value for calculating an initial value at the time of counting the first number of consecutive times and a second number of times of receiving the response signal in response to the route confirmation request signal. A process for calculating the initial value;
A process of counting the first number of times from the calculated initial value;
A process of comparing the counted first number with a preset switching threshold;
A process of switching the communication path from the first communication path to a second communication path other than the first communication path when the counted first number is equal to or greater than the switching threshold; and the path confirmation request signal When the response signal is received with respect to the route confirmation request signal after not receiving the response signal, the average response time calculated based on the measured response time and the minimum of the response times A process for calculating a response threshold based on the minimum response time,
After calculating the response threshold, the correction value is calculated based on the response threshold, the measured response time, the current correction value, and the current first number of times,
A process of comparing a value obtained by adding the calculated correction value and a preset switchback threshold to the second number of times;
When the second number of times is equal to or greater than a value obtained by adding the calculated correction value and the switchback threshold, a process of switching the communication path from the second communication path to the first communication path is performed. Do.

また、本発明のプログラムは、
複数の通信経路と接続され、該複数の通信経路のうち1つの通信経路を選択して通信を行う通信装置に実行させるためのプログラムであって、
前記複数の通信経路のうち、第1の通信経路の状態を確認するための経路確認要求信号を送信する手順と、
前記送信した経路確認要求信号に対する応答信号を受信したかどうかを確認する手順と、
前記経路確認要求信号を送信してから該経路確認要求信号に対する前記応答信号を受信するまでの応答時間を計測する手順と、
前記経路確認要求信号に対して前記応答信号を受信した後、前記経路確認要求信号に対して前記応答信号を受信しなかった場合、前記経路確認要求信号に対して前記応答信号を受信しなかった連続回数である第1の回数をカウントする際の初期値を算出するための補正値と、前記経路確認要求信号に対して前記応答信号を受信した連続回数である第2の回数とに基づいて前記初期値を算出する手順と、
前記第1の回数を前記算出した初期値からカウントする手順と、
前記カウントした第1の回数とあらかじめ設定された切り替え閾値とを比較する手順と、
前記カウントした第1の回数が前記切り替え閾値以上となった場合、前記通信経路を前記第1の通信経路から該第1の通信経路以外の第2の通信経路へ切り替える手順と
前記経路確認要求信号に対して前記応答信号を受信しなかった後、前記経路確認要求信号に対して前記応答信号を受信した場合、前記計測した応答時間に基づいて算出した平均応答時間と前記応答時間のうち最小となる最小応答時間とに基づいて、応答閾値を算出する手順と、
前記応答閾値を算出した後、前記補正値を、前記応答閾値と前記計測した応答時間と現在の補正値と現在の第1の回数とに基づいて算出する手順と、
該算出した補正値とあらかじめ設定された切り戻し閾値とを加算した値と、前記第2の回数とを比較する手順と、
前記第2の回数が該算出した補正値と前記切り戻し閾値とを加算した値以上となった場合、前記通信経路を前記第2の通信経路から前記第1の通信経路へ切り戻す手順とを実行させる。
The program of the present invention is
A program that is connected to a plurality of communication paths and that is executed by a communication device that performs communication by selecting one communication path from the plurality of communication paths,
A procedure for transmitting a route confirmation request signal for confirming the state of the first communication route among the plurality of communication routes;
A procedure for confirming whether or not a response signal to the transmitted route confirmation request signal has been received;
A procedure for measuring a response time from transmission of the route confirmation request signal to reception of the response signal to the route confirmation request signal;
After receiving the response signal for the route confirmation request signal, if the response signal is not received for the route confirmation request signal, the response signal is not received for the route confirmation request signal Based on a correction value for calculating an initial value at the time of counting the first number of consecutive times and a second number of times of receiving the response signal in response to the route confirmation request signal. A procedure for calculating the initial value;
A procedure of counting the first number of times from the calculated initial value;
Comparing the counted first number with a preset switching threshold;
A procedure for switching the communication path from the first communication path to a second communication path other than the first communication path when the counted first number is equal to or greater than the switching threshold; and the path confirmation request signal When the response signal is received with respect to the route confirmation request signal after not receiving the response signal, the average response time calculated based on the measured response time and the minimum of the response times A procedure for calculating a response threshold based on the minimum response time,
After calculating the response threshold, calculating the correction value based on the response threshold, the measured response time, the current correction value, and the current first number of times,
A step of comparing the calculated correction value and a value obtained by adding a preset switchback threshold with the second number of times;
A step of switching back the communication path from the second communication path to the first communication path when the second number of times is equal to or greater than a value obtained by adding the calculated correction value and the switchback threshold. Let it run.

以上説明したように本発明においては、通信経路の切り戻しの判別を容易に行うことができる。   As described above, according to the present invention, it is possible to easily determine whether the communication path is switched back.

本発明の通信装置の実施の一形態を示す図である。It is a figure which shows one Embodiment of the communication apparatus of this invention. 図1に示した形態において、経路確認要求信号に対する応答信号が受信されなかった場合の経路選択方法を説明するためのフローチャートである。2 is a flowchart for explaining a route selection method when a response signal to a route confirmation request signal is not received in the form shown in FIG. 1. 図1に示した形態において、経路確認要求信号に対する応答信号が受信された場合の経路選択方法を説明するためのフローチャートである。4 is a flowchart for explaining a route selection method when a response signal to a route confirmation request signal is received in the form shown in FIG. 1. ステップS31の処理の詳細を説明するためのフローチャートである。It is a flowchart for demonstrating the detail of the process of step S31. ステップS32の処理の詳細を説明するためのフローチャートである。It is a flowchart for demonstrating the detail of the process of step S32.

以下に、本発明の実施の形態について図面を参照して説明する。   Embodiments of the present invention will be described below with reference to the drawings.

図1は、本発明の通信装置の実施の一形態を示す図である。   FIG. 1 is a diagram showing an embodiment of a communication apparatus according to the present invention.

本形態は図1に示すように、通信装置1−1,1−2と、メイン経路2と、迂回経路3と、通信端末4−1,4−2とから構成されている。なお、図1に示した形態においては、通信経路が2つである場合を例に挙げて示したが、3つ以上の複数であっても良い。   As shown in FIG. 1, the present embodiment includes communication devices 1-1 and 1-2, a main route 2, a detour route 3, and communication terminals 4-1 and 4-2. In the form shown in FIG. 1, the case where there are two communication paths has been described as an example, but there may be three or more.

通信装置1−1,1−2は、通信端末4−1と通信端末4−2との間において送受信されるIP(Internet Protocol)パケット等のデータが通過する通信経路を選択する。   The communication apparatuses 1-1 and 1-2 select a communication path through which data such as an IP (Internet Protocol) packet transmitted and received between the communication terminal 4-1 and the communication terminal 4-2 passes.

メイン経路2は、通信装置1−1と通信装置1−2とを接続し、通信端末4−1と通信端末4−2との間において送受信されるデータが通過する通常設定される第1の通信経路である。   The main path 2 connects the communication device 1-1 and the communication device 1-2, and is normally set to pass data transmitted and received between the communication terminal 4-1 and the communication terminal 4-2. It is a communication path.

迂回経路3は、通信装置1−1と通信装置1−2とを接続し、通信端末4−1と通信端末4−2との間において送受信されるデータが通過する通信経路の1つである。また、迂回経路3は、メイン経路2に障害が発生した場合に選択される第2の通信経路である。   The detour path 3 is one of the communication paths that connect the communication device 1-1 and the communication device 1-2 and through which data transmitted and received between the communication terminal 4-1 and the communication terminal 4-2 passes. . The detour path 3 is a second communication path that is selected when a failure occurs in the main path 2.

通信端末4−1,4−2は、通信装置1−1,1−2のそれぞれ接続された通信装置である。   The communication terminals 4-1 and 4-2 are communication devices connected to the communication devices 1-1 and 1-2, respectively.

さらに、通信装置1−1には、経路状態確認部11と、状態算出部12と、経路選択部13と、正常カウンタ14と、異常カウンタ15と、タイマー16とが設けられている。   Further, the communication device 1-1 is provided with a route state confirmation unit 11, a state calculation unit 12, a route selection unit 13, a normal counter 14, an abnormality counter 15, and a timer 16.

経路状態確認部11は、メイン経路2の状態を確認する。具体的には、経路状態確認部11は、メイン経路2を介して通信装置1−2へ経路確認要求信号を送信し、送信した経路確認要求信号に対する応答信号が受信されるかどうかに基づいて、メイン経路2に障害が発生しているかどうかを確認する。本形態においては、この経路確認要求信号として、ICMP(Internet Control Message Protocol)のICMP ECHO_REQUESTを用いて、応答信号としてICMP ECHO_REPLYを用いるものを例に挙げて説明する。   The route state confirmation unit 11 confirms the state of the main route 2. Specifically, the route state confirmation unit 11 transmits a route confirmation request signal to the communication device 1-2 via the main route 2, and based on whether a response signal to the transmitted route confirmation request signal is received. Whether or not a failure has occurred in the main route 2 is confirmed. In the present embodiment, an example will be described in which ICMP ECHO_REQUEST of ICMP (Internet Control Message Protocol) is used as the route confirmation request signal and ICMP ECHO_REPLY is used as the response signal.

状態算出部12は、経路状態確認部11にて確認されたメイン経路2の状態に基づいて、通信経路の切り替え/切り戻しを判断し、判断した結果を経路選択部13へ指示する。ここで、通信経路の切り替えとは、通信経路をメイン経路2から迂回経路3へ変更することを示す。また、通信経路の切り戻しとは、通信経路を迂回経路3からメイン経路2へ変更することを示す。   The state calculation unit 12 determines switching / switching back of the communication route based on the state of the main route 2 confirmed by the route state confirmation unit 11, and instructs the route selection unit 13 of the determined result. Here, switching the communication path indicates changing the communication path from the main path 2 to the detour path 3. Further, switching back a communication path indicates changing the communication path from the bypass path 3 to the main path 2.

また、状態算出部12は、経路状態確認部11が送信した経路確認要求信号に対して応答信号を受信した後、経路確認要求信号に対して応答信号を受信しなかった場合、異常カウンタ15の初期値を算出するための補正値(マージン値)と正常カウンタ14の値とに基づいて当該初期値を算出する。この算出方法の詳細については、後述する。また、状態算出部12は、初期値の算出後、異常カウンタ15に対して、この算出した初期値からカウントさせる。また、状態算出部12は、異常カウンタ15がカウントした値とあらかじめ設定された切り替え閾値とを比較する。また、状態算出部12は、異常カウンタ15がカウントした値が切り替え閾値以上となった場合、経路選択部13に対して、通信経路をメイン経路2から迂回経路3へ切り替える指示を行う。   In addition, after receiving a response signal for the route confirmation request signal transmitted by the route state confirmation unit 11, the state calculation unit 12 receives the response signal for the route confirmation request signal. The initial value is calculated based on the correction value (margin value) for calculating the initial value and the value of the normal counter 14. Details of this calculation method will be described later. Further, after calculating the initial value, the state calculating unit 12 causes the abnormality counter 15 to count from the calculated initial value. Further, the state calculation unit 12 compares the value counted by the abnormality counter 15 with a preset switching threshold value. In addition, when the value counted by the abnormality counter 15 is equal to or greater than the switching threshold, the state calculation unit 12 instructs the route selection unit 13 to switch the communication route from the main route 2 to the detour route 3.

また、状態算出部12は、経路状態確認部11が送信した経路確認要求信号に対して応答信号を受信しなかった後、経路確認要求信号に対して応答信号を受信した場合、タイマー16が測定した応答時間に基づいて、平均応答時間を算出する。具体的には、状態算出部12は、現在の平均応答時間とタイマー16が計測した応答時間とを加算した値を2で除算した値を新たな平均応答時間として算出する。また、状態算出部12は、算出した平均応答時間と、応答時間のうち最小となる最小応答時間とに基づいて、応答閾値を算出する。具体的には、算出した平均応答時間を2で乗算した値から最小応答時間を減算した値を応答閾値として算出する。また、状態算出部12は、応答閾値を算出した後、上述した補正値(マージン値)を、算出した応答閾値とタイマー16が計測した応答時間と現在の補正値と現在の異常カウンタ15の値とに基づいて算出する。また、状態算出部12は、算出した補正値とあらかじめ設定された切り戻し閾値とを加算した値と、正常カウンタ14の値とを比較する。また、状態算出部12は、正常カウンタ14の値が、算出した補正値と切り戻し閾値とを加算した値以上となった場合、通信経路を迂回経路3からメイン経路2へ切り戻す指示を行う。   When the state calculation unit 12 does not receive a response signal to the route confirmation request signal transmitted by the route state confirmation unit 11 and then receives a response signal to the route confirmation request signal, the timer 16 performs measurement. An average response time is calculated based on the response time. Specifically, the state calculation unit 12 calculates a value obtained by dividing a value obtained by adding the current average response time and the response time measured by the timer 16 by 2 as a new average response time. Further, the state calculation unit 12 calculates a response threshold value based on the calculated average response time and the minimum response time that is the minimum of the response times. Specifically, a value obtained by subtracting the minimum response time from a value obtained by multiplying the calculated average response time by 2 is calculated as a response threshold. In addition, after calculating the response threshold, the state calculation unit 12 calculates the above-described correction value (margin value) by using the calculated response threshold, the response time measured by the timer 16, the current correction value, and the current abnormality counter 15 value. Based on and. In addition, the state calculation unit 12 compares the value obtained by adding the calculated correction value and a preset switchback threshold with the value of the normal counter 14. In addition, when the value of the normal counter 14 is equal to or greater than the value obtained by adding the calculated correction value and the switchback threshold, the state calculation unit 12 instructs to switch the communication path from the bypass path 3 to the main path 2. .

また、状態算出部12は、異常カウンタ15の値が切り替え閾値以上である場合、「0」を異常カウンタ15の初期値を算出するための補正値とする。   Further, when the value of the abnormality counter 15 is equal to or greater than the switching threshold, the state calculation unit 12 sets “0” as a correction value for calculating the initial value of the abnormality counter 15.

また、状態算出部12は、タイマー16が計測した応答時間が応答閾値よりも短く、且つ補正値が「0」よりも大きな値であり、且つ異常カウンタ15の値が「0」よりも大きく切り替え閾値未満である場合、その補正値から1を減算する。そして、状態算出部12は、1を減算した補正値と異常カウンタ15の値とを加算した値を2で除算した値を異常カウンタ15の初期値を算出するための補正値とする。   In addition, the state calculation unit 12 switches the response time measured by the timer 16 to be shorter than the response threshold, the correction value is larger than “0”, and the value of the abnormality counter 15 is larger than “0”. If it is less than the threshold, 1 is subtracted from the correction value. Then, the state calculating unit 12 sets a value obtained by dividing the correction value obtained by subtracting 1 and the value of the abnormality counter 15 by 2 as a correction value for calculating the initial value of the abnormality counter 15.

また、状態算出部12は、補正値を算出した後、異常カウンタ15の値をリセットする。   Further, the state calculation unit 12 resets the value of the abnormality counter 15 after calculating the correction value.

また、状態算出部12は、補正値と1とを加算した値から正常カウンタ14の値を差し引いた値を初期値として算出し、その初期値を算出した後、正常カウンタ14の値をリセットする。   Further, the state calculation unit 12 calculates a value obtained by subtracting the value of the normal counter 14 from the value obtained by adding the correction value and 1 as an initial value, calculates the initial value, and then resets the value of the normal counter 14. .

経路選択部13は、状態算出部12からの指示に基づいて、通信経路として、メイン経路2と迂回経路3とのどちらか一方を選択する。つまり、経路選択部13は、状態算出部12からの指示に基づいて、通信経路の切り替え(メイン経路2から迂回経路3へ)/切り戻し(迂回経路3からメイン経路2へ)を行う。   The route selection unit 13 selects either the main route 2 or the detour route 3 as a communication route based on an instruction from the state calculation unit 12. That is, the route selection unit 13 performs switching of the communication route (from the main route 2 to the detour route 3) / switching back (from the detour route 3 to the main route 2) based on the instruction from the state calculation unit 12.

正常カウンタ14は、経路状態確認部11が送信した経路確認要求信号に対する応答信号を受信した連続回数(第2の回数)をカウントする。つまり、経路状態確認部11が送信した経路確認要求信号に対する応答信号を受信しない状態の後、経路状態確認部11が送信した経路確認要求信号に対する応答信号を受信した場合、次に経路確認要求信号に対する応答信号を受信しなくなるまでの間に、経路状態確認部11が送信した経路確認要求信号に対する応答信号の受信回数をカウントする。また、正常カウンタ14は、カウントした回数であるカウント値を状態算出部12へ通知する。   The normal counter 14 counts the number of consecutive times (second number) of receiving a response signal to the route confirmation request signal transmitted by the route state confirmation unit 11. That is, when a response signal to the route confirmation request signal transmitted by the route state confirmation unit 11 is received after a state in which a response signal to the route confirmation request signal transmitted by the route state confirmation unit 11 is not received, the route confirmation request signal Until the response signal is not received, the number of receptions of the response signal for the route confirmation request signal transmitted by the route state confirmation unit 11 is counted. Further, the normal counter 14 notifies the state calculation unit 12 of a count value that is the number of times counted.

異常カウンタ15は、経路状態確認部11が送信した経路確認要求信号に対する応答信号を受信しなかった連続回数(第1の回数)をカウントする。つまり、経路状態確認部11が送信した経路確認要求信号に対する応答信号を受信した後、経路状態確認部11が送信した経路確認要求信号に対する応答信号を受信しなかった場合、次に経路確認要求信号に対する応答信号を受信するまでの間に、経路状態確認部11が送信した経路確認要求信号の送信回数をカウントする。また、異常カウンタ15は、カウントした回数であるカウント値を状態算出部12へ通知する。   The abnormality counter 15 counts the number of consecutive times (first number) that has not received a response signal to the route confirmation request signal transmitted by the route state confirmation unit 11. That is, if a response signal to the route confirmation request signal transmitted by the route state confirmation unit 11 is not received after the response signal to the route confirmation request signal transmitted by the route state confirmation unit 11 is received, the route confirmation request signal is next received. Until the response signal is received, the number of transmissions of the route confirmation request signal transmitted by the route state confirmation unit 11 is counted. Further, the abnormality counter 15 notifies the state calculation unit 12 of a count value that is the number of times counted.

タイマー16は、経路状態確認部11が、経路確認要求信号を送信してからその経路確認要求信号に対する応答信号を受信するまでの応答時間を計測する。また、タイマー16は、計測した応答時間を状態算出部12へ通知する。   The timer 16 measures a response time from when the route state confirmation unit 11 transmits a route confirmation request signal until it receives a response signal to the route confirmation request signal. In addition, the timer 16 notifies the state calculation unit 12 of the measured response time.

なお、通信装置1−2は、通信装置1−1と同じ構成を有する。   Note that the communication device 1-2 has the same configuration as the communication device 1-1.

以下に、図1に示した形態における経路選択方法について説明する。ここで、経路状態確認部11が経路確認要求信号を送信する都度、タイマー16が応答時間の計測を開始する。   Below, the route selection method in the form shown in FIG. 1 will be described. Here, each time the route state confirmation unit 11 transmits a route confirmation request signal, the timer 16 starts measuring the response time.

図2は、図1に示した形態において、経路確認要求信号に対する応答信号が受信されなかった場合の経路選択方法を説明するためのフローチャートである。   FIG. 2 is a flowchart for explaining a route selection method when a response signal to the route confirmation request signal is not received in the form shown in FIG.

経路状態確認部11からメイン経路2を介して通信装置1−2へ送信されたICMP ECHO_REQUESTに対して、所定の時間内に応答が無い、つまりICMP ECHO_REPLYが経路状態確認部11にて受信されないと判断されると(ステップS20)、状態算出部12によって異常カウンタ15の初期値が設定される(ステップS21)。   There is no response within a predetermined time with respect to ICMP ECHO_REQUEST transmitted from the route state confirmation unit 11 to the communication device 1-2 via the main route 2, that is, ICMP ECHO_REPLY is not received by the route state confirmation unit 11. If judged (step S20), the initial value of the abnormality counter 15 is set by the state calculation part 12 (step S21).

ここで、ステップS20の判断は、ICMP ECHO_REQUESTを送信する際に起動するタイマー16を用いて行うものであっても良い。このタイマー16は、ICMP ECHO_REPLYを受信した際にリセットされるものである。また、ICMP ECHO_REQUESTを送信したにもかかわらずICMP ECHO_REPLYを受信しない場合、所定の時間が経過した時点で「ICMP ECHO_REPLYが受信されない」と判断するものである。   Here, the determination in step S20 may be performed using the timer 16 that is activated when ICMP ECHO_REQUEST is transmitted. This timer 16 is reset when ICMP ECHO_REPLY is received. Further, when ICMP ECHO_REQUEST is transmitted but ICMP ECHO_REPLY is not received, it is determined that “ICMP ECHO_REPLY is not received” when a predetermined time has elapsed.

ここで、ステップS21の処理について具体的に説明する。   Here, the process of step S21 will be specifically described.

ステップS20にてICMP ECHO_REPLYが経路状態確認部11にて受信されないと判断されると、現在選択している通信経路がメイン経路2であるかどうかが経路選択部13にて判断される(ステップS211)。   If it is determined in step S20 that ICMP ECHO_REPLY is not received by the path status confirmation unit 11, the path selection unit 13 determines whether or not the currently selected communication path is the main path 2 (step S211). ).

現在選択している通信経路がメイン経路2であると判断されると、異常カウンタ15の値が「0」であるかどうかが状態算出部12によって判断される(ステップS212)。   If it is determined that the currently selected communication path is the main path 2, the state calculation unit 12 determines whether or not the value of the abnormality counter 15 is “0” (step S212).

異常カウンタ15の値が「0」であると判断された場合、正常カウンタ14の値が「(マージン値)+1」よりも小さいかどうかが状態算出部12によって判断される(ステップS213)。この「マージン値」は、異常カウンタ15の初期値を算出するための補正値であり、その算出方法は後述する。   When it is determined that the value of the abnormality counter 15 is “0”, the state calculation unit 12 determines whether the value of the normal counter 14 is smaller than “(margin value) +1” (step S213). This “margin value” is a correction value for calculating the initial value of the abnormality counter 15, and the calculation method will be described later.

正常カウンタ14の値が「(マージン値)+1」よりも小さいと判断された場合、状態算出部12によって異常カウンタ15の値が「(マージン値)+1−(正常カウンタ14の値)」に設定される(ステップS214)。この値が異常カウンタ15の初期値となる。   When it is determined that the value of the normal counter 14 is smaller than “(margin value) +1”, the state calculation unit 12 sets the value of the abnormality counter 15 to “(margin value) + 1− (value of the normal counter 14)”. (Step S214). This value becomes the initial value of the abnormality counter 15.

このマージン値は、メイン経路2の断続的な品質低下を表した値である。このマージン値を用いることによって、メイン経路2の断続的な品質低下が発生した場合であっても、迂回経路3への切り替えが行えるように、異常カウンタ15に含まれて初期化されている。   This margin value is a value representing the intermittent quality degradation of the main path 2. By using this margin value, it is included in the abnormality counter 15 and initialized so that switching to the detour path 3 can be performed even when the quality degradation of the main path 2 occurs intermittently.

その後、状態算出部12によって正常カウンタ14の値が「0」にリセットされる(ステップS22)。また、ステップS211にて「No」の場合、あるいはステップS212にて「No」の場合、あるいはステップS213にて「No」の場合、ステップS22の処理が行われる。   Thereafter, the value of the normal counter 14 is reset to “0” by the state calculation unit 12 (step S22). If “No” in step S211, “No” in step S212, or “No” in step S213, the process of step S22 is performed.

また、状態算出部12によって異常カウンタ15の値が1つインクリメント(カウント)される(ステップS23)。   In addition, the value of the abnormality counter 15 is incremented by one by the state calculation unit 12 (step S23).

すると、異常カウンタ15の値があらかじめ設定されている切り替え閾値以上かどうかが状態算出部12によって判断される(ステップS24)。   Then, it is judged by the state calculation part 12 whether the value of the abnormality counter 15 is more than the preset switching threshold value (step S24).

異常カウンタ15の値が切り替え閾値以上であると判断された場合、状態算出部12から経路選択部13へ、通信経路をメイン経路2から迂回経路3へ切り替える指示が行われる。そして、通信経路をメイン経路2から迂回経路3へ切り替えるように指示された経路選択部13にて、通信経路がメイン経路2から迂回経路3へ切り替えられる(ステップS25)。   When it is determined that the value of the abnormality counter 15 is equal to or greater than the switching threshold, an instruction to switch the communication route from the main route 2 to the detour route 3 is issued from the state calculation unit 12 to the route selection unit 13. Then, the route selection unit 13 instructed to switch the communication route from the main route 2 to the bypass route 3 switches the communication route from the main route 2 to the bypass route 3 (step S25).

図3は、図1に示した形態において、経路確認要求信号に対する応答信号が受信された場合の経路選択方法を説明するためのフローチャートである。   FIG. 3 is a flowchart for explaining a route selection method when a response signal to the route confirmation request signal is received in the form shown in FIG.

経路状態確認部11から送信されたICMP ECHO_REQUESTに対して、応答がある、つまりICMP ECHO_REPLYが経路状態確認部11にて受信されると(ステップS30)、通信経路を迂回経路3からメイン経路2へ切り戻すためのマージン値の更新が状態算出部12によって行われる(ステップS31〜S32)。   When there is a response to the ICMP ECHO_REQUEST transmitted from the path state confirmation unit 11, that is, when ICMP ECHO_REPLY is received by the path state confirmation unit 11 (step S30), the communication path is changed from the detour path 3 to the main path 2. The state calculation unit 12 updates the margin value for switching back (steps S31 to S32).

このステップS31の処理は、ICMP ECHO_REPLYの受信速度に基づくマージン値の更新処理である。また、ステップS32の処理は、ICMP ECHO_REPLYの受信の有無に基づくマージン値の更新処理である。   The process of step S31 is a margin value update process based on the ICMP ECHO_REPLY reception speed. Further, the process in step S32 is a margin value update process based on whether or not ICMP ECHO_REPLY is received.

以下、ステップS31に処理の詳細について説明する。   Details of the process will be described below in step S31.

図4は、ステップS31の処理の詳細を説明するためのフローチャートである。   FIG. 4 is a flowchart for explaining details of the processing in step S31.

ICMP ECHO_REPLYが経路状態確認部11にて受信されると、タイマー16が計測した、経路状態確認部11からICMP ECHO_REQUESTが送信されてからICMP ECHO_REPLYを受信するまでの応答時間と、これまでの応答時間のうち最小となる最小応答時間とが状態算出部12によって比較される(ステップS311)。タイマー16が計測した応答時間が最小応答時間よりも短い場合、状態算出部12によって最小応答時間が当該応答時間の値に更新される(ステップS312)。つまり、応答時間のうち最小となる応答時間が状態算出部12によって常に最小応答時間として保持される。保持している応答時間のデータが無い場合(例えば、最初の応答時間の測定の場合等)は、最小応答時間をある値にあらかじめ設定しておいて利用する。   When ICMP ECHO_REPLY is received by the path state confirmation unit 11, the response time measured by the timer 16 until the ICMP ECHO_REPLY is received after the ICMP ECHO_REQUEST is transmitted from the path state confirmation unit 11 and the response time thus far The state response unit 12 compares the minimum response time that is the smallest of the two (step S311). When the response time measured by the timer 16 is shorter than the minimum response time, the state calculation unit 12 updates the minimum response time to the value of the response time (step S312). That is, the response time that is the minimum of the response time is always held as the minimum response time by the state calculation unit 12. When there is no response time data held (for example, when measuring the first response time), the minimum response time is set to a certain value in advance.

また、状態算出部12によって、現在の平均応答時間とタイマー16が計測した応答時間とを加算した値を2で除算した値が平均応答時間として更新される(平均応答時間=(平均応答時間+応答時間)÷2)(ステップS313)。また、ステップS311にて、タイマー16が計測した応答時間が最小応答時間以上である場合、ステップS312の処理は行われず、ステップS313の処理が行われる。   Further, the state calculation unit 12 updates a value obtained by dividing the current average response time and the response time measured by the timer 16 by 2 as an average response time (average response time = (average response time + Response time) ÷ 2) (step S313). If the response time measured by the timer 16 is equal to or longer than the minimum response time in step S311, the process in step S312 is not performed and the process in step S313 is performed.

続いて、状態算出部12によって、平均応答時間と最小応答時間とに基づいて、応答閾値が算出される(ステップS314)。具体的には、状態算出部12によって、平均応答時間を2で乗算した値から最小応答時間を減算した値が応答閾値として算出される(応答閾値=平均応答時間×2−最小応答時間)。   Subsequently, a response threshold value is calculated by the state calculation unit 12 based on the average response time and the minimum response time (step S314). Specifically, the state calculation unit 12 calculates a value obtained by subtracting the minimum response time from the value obtained by multiplying the average response time by 2 as a response threshold (response threshold = average response time × 2−minimum response time).

続いて、タイマー16が計測した応答時間と応答閾値とが状態算出部12によって比較される(ステップS315)。   Subsequently, the response time measured by the timer 16 and the response threshold are compared by the state calculation unit 12 (step S315).

応答時間が応答閾値よりも短い場合、現在のマージン値が「0」よりも大きな値であるかどうかが状態算出部12によって判断される(ステップS316)。   If the response time is shorter than the response threshold, the state calculation unit 12 determines whether or not the current margin value is larger than “0” (step S316).

現在のマージン値が「0」よりも大きな値であると判断された場合、状態算出部12によって、マージン値が、現在のマージン値から「1」を差し引いた値に更新される(ステップS317)。その後、ステップS32の処理が行われる。   When it is determined that the current margin value is larger than “0”, the state calculation unit 12 updates the margin value to a value obtained by subtracting “1” from the current margin value (step S317). . Thereafter, the process of step S32 is performed.

また、ステップS315にて応答時間が応答閾値よりも短くはない場合、またはステップS316にて現在のマージン値が「0」よりも大きな値ではないと判断された場合は、ステップS32の処理が行われる。   If the response time is not shorter than the response threshold in step S315, or if it is determined in step S316 that the current margin value is not greater than “0”, the process of step S32 is performed. Is called.

以下、ステップS32の詳細について説明する。   Details of step S32 will be described below.

図5は、ステップS32の処理の詳細を説明するためのフローチャートである。   FIG. 5 is a flowchart for explaining details of the process in step S32.

まず、異常カウンタ15の値が「0」よりも大きな値であるかどうかが状態算出部12によって判断される(ステップS321)。   First, the state calculation unit 12 determines whether or not the value of the abnormality counter 15 is larger than “0” (step S321).

異常カウンタ15の値が「0」でよりも大きな値であると判断された場合、異常カウンタ15の値があらかじめ設定されている切り替え閾値以上かどうかが状態算出部12にて判断される(ステップS322)。   When it is determined that the value of the abnormality counter 15 is larger than “0”, the state calculation unit 12 determines whether or not the value of the abnormality counter 15 is equal to or greater than a preset switching threshold value (step S12). S322).

異常カウンタ15の値が切り替え閾値以上であると判断された場合、状態算出部12によってマージン値が「0」にリセットされる(ステップS323)。このマージン値は、上述した異常カウンタ15の初期値の設定に用いられるものである。このように、異常カウンタ15の値が切り替え閾値以上であると判断された場合は、メイン経路2に突発的な異常が発生したと判断して、マージン値を「0」にしている。   When it is determined that the value of the abnormality counter 15 is greater than or equal to the switching threshold, the margin value is reset to “0” by the state calculation unit 12 (step S323). This margin value is used for setting the initial value of the abnormality counter 15 described above. As described above, when it is determined that the value of the abnormality counter 15 is equal to or greater than the switching threshold, it is determined that a sudden abnormality has occurred in the main path 2 and the margin value is set to “0”.

一方、ステップS322にて異常カウンタ15の値が切り替え閾値以上ではないと判断された場合、マージン値が現在のマージン値と現在の異常カウンタ15の値とに基づいて状態算出部12によって算出(更新)される(ステップS324)。具体的な算出方法は、「(マージン値)=((現在のマージン値)+(異常カウンタ15の値))÷2」である。なお、ここで端数(小数点以下)は切り上げられる。このように、異常カウンタ15の値が切り替え閾値以上ではないと判断された場合は、メイン経路2の品質が断続的に低下していると判断して、マージン値を再計算して更新している。   On the other hand, when it is determined in step S322 that the value of the abnormality counter 15 is not greater than or equal to the switching threshold, the margin value is calculated (updated) by the state calculation unit 12 based on the current margin value and the current value of the abnormality counter 15. (Step S324). A specific calculation method is “(margin value) = ((current margin value) + (value of abnormality counter 15)) / 2”. Here, the fraction (rounded down) is rounded up. As described above, when it is determined that the value of the abnormality counter 15 is not equal to or higher than the switching threshold, it is determined that the quality of the main path 2 is intermittently decreased, and the margin value is recalculated and updated. Yes.

その後、状態算出部12によって、正常カウンタ14の値が1つインクリメント(カウント)される(ステップS33)。   Thereafter, the state calculation unit 12 increments (counts) the value of the normal counter 14 by one (step S33).

また、ステップS321にて異常カウンタ15の値が「0」であると判断された場合も、ステップS33の処理が行われる。   If it is determined in step S321 that the value of the abnormality counter 15 is “0”, the process of step S33 is performed.

また、状態算出部12によって、異常カウンタ15の値が「0」にリセットされる(ステップS34)。   Further, the value of the abnormality counter 15 is reset to “0” by the state calculation unit 12 (step S34).

そして、正常カウンタ14の値があらかじめ設定された切り戻し閾値とマージン値とを加算した値以上かどうかが状態算出部12によって判断される(ステップS35)。   Then, the state calculation unit 12 determines whether or not the value of the normal counter 14 is equal to or greater than a value obtained by adding a preset switchback threshold and a margin value (step S35).

ステップS35にて正常カウンタ14の値が切り戻し閾値とマージン値とを加算した値以上であると判断された場合、状態算出部12から経路選択部13へ通信経路の切り戻しの指示が通知され、経路選択部13によって通信経路が迂回経路3からメイン経路2へ切り戻される(ステップS36)。そして、状態算出部12によってマージン値が「0」にリセットされる(ステップS37)。通信経路を迂回経路3からメイン経路2へ切り戻すかどうかの判断にマージン値を含むことで、メイン経路2の品質が断続的に低下している場合の通信経路の切り戻しを抑制している。   If it is determined in step S35 that the value of the normal counter 14 is equal to or greater than the value obtained by adding the switchback threshold and the margin value, the state calculation unit 12 notifies the route selection unit 13 of a communication path switchback instruction. Then, the communication path is switched back from the detour path 3 to the main path 2 by the path selection unit 13 (step S36). Then, the margin value is reset to “0” by the state calculation unit 12 (step S37). By including a margin value in determining whether to switch back the communication path from the bypass path 3 to the main path 2, switching back of the communication path when the quality of the main path 2 is intermittently reduced is suppressed. .

このように、本発明においては、応答時間に応じて応答閾値を更新していくことで、通信経路の切り戻しの判別を容易に行うことを実現している。   As described above, in the present invention, the response threshold value is updated according to the response time, so that it is possible to easily determine whether the communication path is switched back.

また、応答閾値の算出方法として、重みづけ係数(n)を用いて、(応答閾値=平均応答時間+(平均応答時間−最小応答時間)×n)を使用しても良い。また、平均応答時間の算出方法として、(平均応答時間=総応答時間÷総応答数)を使用しても良い。   Further, as a method of calculating the response threshold, (response threshold = average response time + (average response time−minimum response time) × n) may be used using a weighting coefficient (n). Further, (average response time = total response time / total number of responses) may be used as a method for calculating the average response time.

また、障害監視にICMP ECHO_REQUEST/ECHO_REPLYを用いるもののほか、独自のkeepaliveを用いるものであっても良い。   Further, in addition to using ICMP ECHO_REQUEST / ECHO_REPLY for failure monitoring, a unique keepalive may be used.

上述した通信装置1−1に設けられた各構成要素が行う処理は、目的に応じてそれぞれ作製された論理回路で行うようにしても良い。また、処理内容を手順として記述したコンピュータプログラム(以下、プログラムと称する)を通信装置1−1にて読取可能な記録媒体に記録し、この記録媒体に記録されたプログラムを通信装置1−1に読み込ませ、実行するものであっても良い。通信装置1−1にて読取可能な記録媒体とは、フロッピー(登録商標)ディスク、光磁気ディスク、DVD、CDなどの移設可能な記録媒体の他、通信装置1−1に内蔵されたROM、RAM等のメモリやHDD等を指す。この記録媒体に記録されたプログラムは、通信装置1−1に設けられたCPU(不図示)にて読み込まれ、CPUの制御にしたがって、上述したものと同様の処理が行われる。ここで、CPUは、プログラムが記録された記録媒体から読み込まれたプログラムを実行するコンピュータとして動作するものである。   The processing performed by each component provided in the communication device 1-1 described above may be performed by a logic circuit produced according to the purpose. Further, a computer program (hereinafter referred to as a program) in which processing contents are described as a procedure is recorded on a recording medium readable by the communication apparatus 1-1, and the program recorded on the recording medium is stored in the communication apparatus 1-1. It may be read and executed. The recording medium readable by the communication device 1-1 includes a transfer medium such as a floppy (registered trademark) disk, a magneto-optical disk, a DVD, and a CD, a ROM built in the communication device 1-1, It refers to a memory such as a RAM or an HDD. The program recorded on this recording medium is read by a CPU (not shown) provided in the communication device 1-1, and the same processing as described above is performed under the control of the CPU. Here, the CPU operates as a computer that executes a program read from a recording medium on which the program is recorded.

上記の実施の形態の一部または全部は、以下の付記のようにも記載され得るが、以下には限られない。
(付記1)複数の通信経路と接続され、該複数の通信経路のうち1つの通信経路を選択して通信を行う通信装置であって、
前記複数の通信経路のうち、第1の通信経路の状態を確認するための経路確認要求信号を送信し、該送信した経路確認要求信号に対する応答信号を受信する経路状態確認部と、
前記経路状態確認部が、前記経路確認要求信号を送信してから該経路確認要求信号に対する前記応答信号を受信するまでの応答時間を計測するタイマーと、
前記経路状態確認部が、前記経路確認要求信号に対して前記応答信号を受信した連続回数をカウントする正常カウンタと、
前記経路状態確認部が、前記経路確認要求信号に対して前記応答信号を受信しなかった連続回数をカウントする異常カウンタと、
前記経路状態確認部が前記経路確認要求信号に対して前記応答信号を受信した後、前記経路確認要求信号に対して前記応答信号を受信しなかった場合、前記異常カウンタの初期値を算出するための補正値と前記正常カウンタの値とに基づいて前記初期値を算出し、前記異常カウンタの値を前記算出した初期値からカウントし、該カウントした異常カウンタの値があらかじめ設定された切り替え閾値以上となった場合、前記通信経路を前記第1の通信経路から該第1の通信経路以外の第2の通信経路へ切り替える指示を行い、前記経路状態確認部が前記経路確認要求信号に対して前記応答信号を受信しなかった後、前記経路確認要求信号に対して前記応答信号を受信した場合、前記タイマーが計測した応答時間に基づいて算出した平均応答時間と前記応答時間のうち最小となる最小応答時間とに基づいて、応答閾値を算出し、前記補正値を、前記応答閾値と前記タイマーが計測した応答時間と現在の補正値と現在の前記異常カウンタの値とに基づいて算出し、前記正常カウンタの値が該算出した補正値とあらかじめ設定された切り戻し閾値とを加算した値以上となった場合、前記通信経路を前記第2の通信経路から前記第1の通信経路へ切り戻す指示を行う状態算出部と、
前記状態算出部からの指示に基づいて、前記通信経路として前記第1の通信経路と前記第2の通信経路とのどちらか一方を選択する経路選択部とを有する通信装置。
(付記2)前記状態算出部は、現在の前記平均応答時間と前記応答時間とを加算した値を2で除算した値を平均応答時間として算出し、該算出した平均応答時間を2で乗算した値から前記最小応答時間を減算した値を前記応答閾値として算出することを特徴とする、付記1に記載の通信装置。
(付記3)前記状態算出部は、前記異常カウンタの値が前記切り替え閾値以上である場合、0を前記異常カウンタの初期値を算出するための補正値とし、前記応答時間が前記応答閾値よりも短く、且つ前記補正値が0よりも大きな値であり、且つ前記異常カウンタの値が0よりも大きく前記切り替え閾値未満である場合、該補正値から1を減算し、該1を減算した補正値と前記異常カウンタの値とを加算した値を2で除算した値を前記異常カウンタの初期値を算出するための補正値とすることを特徴とする、付記1または付記2に記載の通信装置。
(付記4)前記状態算出部は、前記補正値を算出した後、前記異常カウンタの値をリセットすることを特徴とする、付記1から3のいずれか1項に記載の通信装置。
(付記5)前記状態算出部は、前記補正値と1とを加算した値から前記正常カウンタの値を差し引いた値を前記初期値として算出し、該初期値を算出した後、前記正常カウンタの値をリセットすることを特徴とする、付記1から4のいずれか1項に記載の通信装置。
(付記6)複数の通信経路と接続された通信装置が通信を行う通信経路を前記複数の通信経路のうちから選択する経路選択方法であって、
前記複数の通信経路のうち、第1の通信経路の状態を確認するための経路確認要求信号を送信する処理と、
前記送信した経路確認要求信号に対する応答信号を受信したかどうかを確認する処理と、
前記経路確認要求信号を送信してから該経路確認要求信号に対する前記応答信号を受信するまでの応答時間を計測する処理と、
前記経路確認要求信号に対して前記応答信号を受信した後、前記経路確認要求信号に対して前記応答信号を受信しなかった場合、前記経路確認要求信号に対して前記応答信号を受信しなかった連続回数である第1の回数をカウントする際の初期値を算出するための補正値と、前記経路確認要求信号に対して前記応答信号を受信した連続回数である第2の回数とに基づいて前記初期値を算出する処理と、
前記第1の回数を前記算出した初期値からカウントする処理と、
前記カウントした第1の回数とあらかじめ設定された切り替え閾値とを比較する処理と、
前記カウントした第1の回数が前記切り替え閾値以上となった場合、前記通信経路を前記第1の通信経路から該第1の通信経路以外の第2の通信経路へ切り替える処理と
前記経路確認要求信号に対して前記応答信号を受信しなかった後、前記経路確認要求信号に対して前記応答信号を受信した場合、前記計測した応答時間に基づいて算出した平均応答時間と前記応答時間のうち最小となる最小応答時間とに基づいて、応答閾値を算出する処理と、
前記応答閾値を算出した後、前記補正値を、前記応答閾値と前記計測した応答時間と現在の補正値と現在の第1の回数とに基づいて算出する処理と、
該算出した補正値とあらかじめ設定された切り戻し閾値とを加算した値と、前記第2の回数とを比較する処理と、
前記第2の回数が該算出した補正値と前記切り戻し閾値とを加算した値以上となった場合、前記通信経路を前記第2の通信経路から前記第1の通信経路へ切り戻す処理とを行う経路選択方法。
(付記7)複数の通信経路と接続され、該複数の通信経路のうち1つの通信経路を選択して通信を行う通信装置に、
前記複数の通信経路のうち、第1の通信経路の状態を確認するための経路確認要求信号を送信する手順と、
前記送信した経路確認要求信号に対する応答信号を受信したかどうかを確認する手順と、
前記経路確認要求信号を送信してから該経路確認要求信号に対する前記応答信号を受信するまでの応答時間を計測する手順と、
前記経路確認要求信号に対して前記応答信号を受信した後、前記経路確認要求信号に対して前記応答信号を受信しなかった場合、前記経路確認要求信号に対して前記応答信号を受信しなかった連続回数である第1の回数をカウントする際の初期値を算出するための補正値と、前記経路確認要求信号に対して前記応答信号を受信した連続回数である第2の回数とに基づいて前記初期値を算出する手順と、
前記第1の回数を前記算出した初期値からカウントする手順と、
前記カウントした第1の回数とあらかじめ設定された切り替え閾値とを比較する手順と、
前記カウントした第1の回数が前記切り替え閾値以上となった場合、前記通信経路を前記第1の通信経路から該第1の通信経路以外の第2の通信経路へ切り替える手順と
前記経路確認要求信号に対して前記応答信号を受信しなかった後、前記経路確認要求信号に対して前記応答信号を受信した場合、前記計測した応答時間に基づいて算出した平均応答時間と前記応答時間のうち最小となる最小応答時間とに基づいて、応答閾値を算出する手順と、
前記応答閾値を算出した後、前記補正値を、前記応答閾値と前記計測した応答時間と現在の補正値と現在の第1の回数とに基づいて算出する手順と、
該算出した補正値とあらかじめ設定された切り戻し閾値とを加算した値と、前記第2の回数とを比較する手順と、
前記第2の回数が該算出した補正値と前記切り戻し閾値とを加算した値以上となった場合、前記通信経路を前記第2の通信経路から前記第1の通信経路へ切り戻す手順とを実行させるためのプログラム。
A part or all of the above embodiment can be described as in the following supplementary notes, but is not limited thereto.
(Supplementary Note 1) A communication device that is connected to a plurality of communication paths and performs communication by selecting one of the plurality of communication paths.
A path state confirmation unit that transmits a path confirmation request signal for confirming a state of the first communication path among the plurality of communication paths, and receives a response signal to the transmitted path confirmation request signal;
A timer for measuring a response time from when the route state confirmation unit transmits the route confirmation request signal to receiving the response signal to the route confirmation request signal;
A normal counter that counts the continuous number of times that the route state confirmation unit has received the response signal in response to the route confirmation request signal;
An abnormality counter that counts the number of times that the route state confirmation unit has not received the response signal in response to the route confirmation request signal;
In order to calculate the initial value of the abnormality counter when the route state confirmation unit does not receive the response signal to the route confirmation request signal after receiving the response signal to the route confirmation request signal The initial value is calculated based on the correction value and the normal counter value, the abnormal counter value is counted from the calculated initial value, and the counted abnormal counter value is equal to or greater than a preset switching threshold value. The communication path is instructed to switch the communication path from the first communication path to a second communication path other than the first communication path, and the path status confirmation unit responds to the path confirmation request signal The average response time calculated based on the response time measured by the timer when the response signal is received with respect to the route confirmation request signal after not receiving the response signal. A response threshold value is calculated based on a minimum response time that is the smallest of the response times, and the correction value is calculated using the response threshold value, the response time measured by the timer, the current correction value, and the current abnormality counter. And when the value of the normal counter is equal to or greater than a value obtained by adding the calculated correction value and a preset switchback threshold, the communication path is changed from the second communication path to the A state calculating unit that gives an instruction to switch back to the first communication path;
A communication apparatus comprising: a route selection unit that selects either the first communication route or the second communication route as the communication route based on an instruction from the state calculation unit.
(Supplementary Note 2) The state calculation unit calculates a value obtained by dividing the current average response time and the response time by 2 as an average response time, and multiplies the calculated average response time by 2. The communication apparatus according to appendix 1, wherein a value obtained by subtracting the minimum response time from a value is calculated as the response threshold.
(Supplementary Note 3) When the value of the abnormality counter is equal to or greater than the switching threshold, the state calculation unit sets 0 as a correction value for calculating the initial value of the abnormality counter, and the response time is shorter than the response threshold. If the correction value is short and the correction value is greater than 0, and the value of the abnormality counter is greater than 0 and less than the switching threshold, 1 is subtracted from the correction value, and the correction value obtained by subtracting 1 The communication apparatus according to Supplementary Note 1 or Supplementary Note 2, wherein a value obtained by dividing a value obtained by adding the value of the abnormality counter and the value obtained by dividing the value by 2 is used as a correction value for calculating an initial value of the abnormality counter.
(Additional remark 4) The said state calculation part resets the value of the said abnormality counter, after calculating the said correction value, The communication apparatus of any one of Additional remark 1 to 3 characterized by the above-mentioned.
(Supplementary Note 5) The state calculation unit calculates a value obtained by subtracting the value of the normal counter from a value obtained by adding the correction value and 1 as the initial value, and after calculating the initial value, The communication device according to any one of appendices 1 to 4, wherein the value is reset.
(Additional remark 6) It is the path | route selection method which selects the communication path | route which the communication apparatus connected with the several communication path | route communicates from among the said some communication path | route,
A process of transmitting a route confirmation request signal for confirming the state of the first communication route among the plurality of communication routes;
Processing for confirming whether or not a response signal to the transmitted route confirmation request signal has been received;
Processing for measuring a response time from transmission of the route confirmation request signal to reception of the response signal to the route confirmation request signal;
After receiving the response signal for the route confirmation request signal, if the response signal is not received for the route confirmation request signal, the response signal is not received for the route confirmation request signal Based on a correction value for calculating an initial value at the time of counting the first number of consecutive times and a second number of times of receiving the response signal in response to the route confirmation request signal. A process for calculating the initial value;
A process of counting the first number of times from the calculated initial value;
A process of comparing the counted first number with a preset switching threshold;
A process of switching the communication path from the first communication path to a second communication path other than the first communication path when the counted first number is equal to or greater than the switching threshold; and the path confirmation request signal When the response signal is received with respect to the route confirmation request signal after not receiving the response signal, the average response time calculated based on the measured response time and the minimum of the response times A process for calculating a response threshold based on the minimum response time,
After calculating the response threshold, the correction value is calculated based on the response threshold, the measured response time, the current correction value, and the current first number of times,
A process of comparing a value obtained by adding the calculated correction value and a preset switchback threshold to the second number of times;
When the second number of times is equal to or greater than a value obtained by adding the calculated correction value and the switchback threshold, a process of switching the communication path from the second communication path to the first communication path is performed. The route selection method to perform.
(Supplementary Note 7) A communication device that is connected to a plurality of communication paths and selects one communication path among the plurality of communication paths to perform communication.
A procedure for transmitting a route confirmation request signal for confirming the state of the first communication route among the plurality of communication routes;
A procedure for confirming whether or not a response signal to the transmitted route confirmation request signal has been received;
A procedure for measuring a response time from transmission of the route confirmation request signal to reception of the response signal to the route confirmation request signal;
After receiving the response signal for the route confirmation request signal, if the response signal is not received for the route confirmation request signal, the response signal is not received for the route confirmation request signal Based on a correction value for calculating an initial value at the time of counting the first number of consecutive times and a second number of times of receiving the response signal in response to the route confirmation request signal. A procedure for calculating the initial value;
A procedure of counting the first number of times from the calculated initial value;
Comparing the counted first number with a preset switching threshold;
A procedure for switching the communication path from the first communication path to a second communication path other than the first communication path when the counted first number is equal to or greater than the switching threshold; and the path confirmation request signal When the response signal is received with respect to the route confirmation request signal after not receiving the response signal, the average response time calculated based on the measured response time and the minimum of the response times A procedure for calculating a response threshold based on the minimum response time,
After calculating the response threshold, calculating the correction value based on the response threshold, the measured response time, the current correction value, and the current first number of times,
A step of comparing the calculated correction value and a value obtained by adding a preset switchback threshold with the second number of times;
A step of switching back the communication path from the second communication path to the first communication path when the second number of times is equal to or greater than a value obtained by adding the calculated correction value and the switchback threshold. A program to be executed.

1−1,1−2 通信装置
2 メイン経路
3 迂回経路
4−1,4−2 通信端末
11 経路状態確認部
12 状態算出部
13 経路選択部
14 正常カウンタ
15 異常カウンタ
16 タイマー
1-1, 1-2 Communication device 2 Main route 3 Detour route 4-1, 4-2 Communication terminal 11 Route state confirmation unit 12 State calculation unit 13 Route selection unit 14 Normal counter 15 Abnormal counter 16 Timer

Claims (7)

複数の通信経路と接続され、該複数の通信経路のうち1つの通信経路を選択して通信を行う通信装置であって、
前記複数の通信経路のうち、第1の通信経路の状態を確認するための経路確認要求信号を送信し、該送信した経路確認要求信号に対する応答信号を受信する経路状態確認部と、
前記経路状態確認部が、前記経路確認要求信号を送信してから該経路確認要求信号に対する前記応答信号を受信するまでの応答時間を計測するタイマーと、
前記経路状態確認部が、前記経路確認要求信号に対して前記応答信号を受信した連続回数をカウントする正常カウンタと、
前記経路状態確認部が、前記経路確認要求信号に対して前記応答信号を受信しなかった連続回数をカウントする異常カウンタと、
前記経路状態確認部が前記経路確認要求信号に対して前記応答信号を受信した後、前記経路確認要求信号に対して前記応答信号を受信しなかった場合、前記異常カウンタの初期値を算出するための補正値と前記正常カウンタの値とに基づいて前記初期値を算出し、前記異常カウンタの値を前記算出した初期値からカウントし、該カウントした異常カウンタの値があらかじめ設定された切り替え閾値以上となった場合、前記通信経路を前記第1の通信経路から該第1の通信経路以外の第2の通信経路へ切り替える指示を行い、前記経路状態確認部が前記経路確認要求信号に対して前記応答信号を受信しなかった後、前記経路確認要求信号に対して前記応答信号を受信した場合、前記タイマーが計測した応答時間に基づいて算出した平均応答時間と前記応答時間のうち最小となる最小応答時間とに基づいて、応答閾値を算出し、前記補正値を、前記応答閾値と前記タイマーが計測した応答時間と現在の補正値と現在の前記異常カウンタの値とに基づいて算出し、前記正常カウンタの値が該算出した補正値とあらかじめ設定された切り戻し閾値とを加算した値以上となった場合、前記通信経路を前記第2の通信経路から前記第1の通信経路へ切り戻す指示を行う状態算出部と、
前記状態算出部からの指示に基づいて、前記通信経路として前記第1の通信経路と前記第2の通信経路とのどちらか一方を選択する経路選択部とを有する通信装置。
A communication device that is connected to a plurality of communication paths and performs communication by selecting one of the plurality of communication paths.
A path state confirmation unit that transmits a path confirmation request signal for confirming a state of the first communication path among the plurality of communication paths, and receives a response signal to the transmitted path confirmation request signal;
A timer for measuring a response time from when the route state confirmation unit transmits the route confirmation request signal to receiving the response signal to the route confirmation request signal;
A normal counter that counts the continuous number of times that the route state confirmation unit has received the response signal in response to the route confirmation request signal;
An abnormality counter that counts the number of times that the route state confirmation unit has not received the response signal in response to the route confirmation request signal;
In order to calculate the initial value of the abnormality counter when the route state confirmation unit does not receive the response signal to the route confirmation request signal after receiving the response signal to the route confirmation request signal The initial value is calculated based on the correction value and the normal counter value, the abnormal counter value is counted from the calculated initial value, and the counted abnormal counter value is equal to or greater than a preset switching threshold value. The communication path is instructed to switch the communication path from the first communication path to a second communication path other than the first communication path, and the path status confirmation unit responds to the path confirmation request signal The average response time calculated based on the response time measured by the timer when the response signal is received with respect to the route confirmation request signal after not receiving the response signal. A response threshold value is calculated based on a minimum response time that is the smallest of the response times, and the correction value is calculated using the response threshold value, the response time measured by the timer, the current correction value, and the current abnormality counter. And when the value of the normal counter is equal to or greater than a value obtained by adding the calculated correction value and a preset switchback threshold, the communication path is changed from the second communication path to the A state calculating unit that gives an instruction to switch back to the first communication path;
A communication apparatus comprising: a route selection unit that selects either the first communication route or the second communication route as the communication route based on an instruction from the state calculation unit.
請求項1に記載の通信装置において、
前記状態算出部は、現在の前記平均応答時間と前記応答時間とを加算した値を2で除算した値を平均応答時間として算出し、該算出した平均応答時間を2で乗算した値から前記最小応答時間を減算した値を前記応答閾値として算出することを特徴とする通信装置。
The communication device according to claim 1,
The state calculation unit calculates a value obtained by dividing a value obtained by adding the current average response time and the response time by 2 as an average response time, and calculates the minimum response value by multiplying the calculated average response time by 2 A communication apparatus that calculates a value obtained by subtracting a response time as the response threshold.
請求項1または請求項2に記載の通信装置において、
前記状態算出部は、前記異常カウンタの値が前記切り替え閾値以上である場合、0を前記異常カウンタの初期値を算出するための補正値とし、前記応答時間が前記応答閾値よりも短く、且つ前記補正値が0よりも大きな値であり、且つ前記異常カウンタの値が0よりも大きく前記切り替え閾値未満である場合、該補正値から1を減算し、該1を減算した補正値と前記異常カウンタの値とを加算した値を2で除算した値を前記異常カウンタの初期値を算出するための補正値とすることを特徴とする通信装置。
The communication device according to claim 1 or 2,
When the value of the abnormality counter is greater than or equal to the switching threshold, the state calculation unit sets 0 as a correction value for calculating the initial value of the abnormality counter, the response time is shorter than the response threshold, and the When the correction value is greater than 0 and the value of the abnormality counter is greater than 0 and less than the switching threshold, 1 is subtracted from the correction value, the correction value obtained by subtracting 1 and the abnormality counter A communication device characterized in that a value obtained by dividing the value obtained by dividing the value by 2 by 2 is used as a correction value for calculating an initial value of the abnormality counter.
請求項1から3のいずれか1項に記載の通信装置において、
前記状態算出部は、前記補正値を算出した後、前記異常カウンタの値をリセットすることを特徴とする通信装置。
The communication apparatus according to any one of claims 1 to 3,
The state calculation unit resets the value of the abnormality counter after calculating the correction value.
請求項1から4のいずれか1項に記載の通信装置において、
前記状態算出部は、前記補正値と1とを加算した値から前記正常カウンタの値を差し引いた値を前記初期値として算出し、該初期値を算出した後、前記正常カウンタの値をリセットすることを特徴とする通信装置。
The communication device according to any one of claims 1 to 4,
The state calculation unit calculates a value obtained by subtracting the value of the normal counter from a value obtained by adding the correction value and 1 as the initial value, and after calculating the initial value, resets the value of the normal counter A communication device.
複数の通信経路と接続された通信装置が通信を行う通信経路を前記複数の通信経路のうちから選択する経路選択方法であって、
前記複数の通信経路のうち、第1の通信経路の状態を確認するための経路確認要求信号を送信する処理と、
前記送信した経路確認要求信号に対する応答信号を受信したかどうかを確認する処理と、
前記経路確認要求信号を送信してから該経路確認要求信号に対する前記応答信号を受信するまでの応答時間を計測する処理と、
前記経路確認要求信号に対して前記応答信号を受信した後、前記経路確認要求信号に対して前記応答信号を受信しなかった場合、前記経路確認要求信号に対して前記応答信号を受信しなかった連続回数である第1の回数をカウントする際の初期値を算出するための補正値と、前記経路確認要求信号に対して前記応答信号を受信した連続回数である第2の回数とに基づいて前記初期値を算出する処理と、
前記第1の回数を前記算出した初期値からカウントする処理と、
前記カウントした第1の回数とあらかじめ設定された切り替え閾値とを比較する処理と、
前記カウントした第1の回数が前記切り替え閾値以上となった場合、前記通信経路を前記第1の通信経路から該第1の通信経路以外の第2の通信経路へ切り替える処理と
前記経路確認要求信号に対して前記応答信号を受信しなかった後、前記経路確認要求信号に対して前記応答信号を受信した場合、前記計測した応答時間に基づいて算出した平均応答時間と前記応答時間のうち最小となる最小応答時間とに基づいて、応答閾値を算出する処理と、
前記応答閾値を算出した後、前記補正値を、前記応答閾値と前記計測した応答時間と現在の補正値と現在の第1の回数とに基づいて算出する処理と、
該算出した補正値とあらかじめ設定された切り戻し閾値とを加算した値と、前記第2の回数とを比較する処理と、
前記第2の回数が該算出した補正値と前記切り戻し閾値とを加算した値以上となった場合、前記通信経路を前記第2の通信経路から前記第1の通信経路へ切り戻す処理とを行う経路選択方法。
A path selection method for selecting a communication path through which a communication device connected to a plurality of communication paths performs communication from the plurality of communication paths,
A process of transmitting a route confirmation request signal for confirming the state of the first communication route among the plurality of communication routes;
Processing for confirming whether or not a response signal to the transmitted route confirmation request signal has been received;
Processing for measuring a response time from transmission of the route confirmation request signal to reception of the response signal to the route confirmation request signal;
After receiving the response signal for the route confirmation request signal, if the response signal is not received for the route confirmation request signal, the response signal is not received for the route confirmation request signal Based on a correction value for calculating an initial value at the time of counting the first number of consecutive times and a second number of times of receiving the response signal in response to the route confirmation request signal. A process for calculating the initial value;
A process of counting the first number of times from the calculated initial value;
A process of comparing the counted first number with a preset switching threshold;
A process of switching the communication path from the first communication path to a second communication path other than the first communication path when the counted first number is equal to or greater than the switching threshold; and the path confirmation request signal When the response signal is received with respect to the route confirmation request signal after not receiving the response signal, the average response time calculated based on the measured response time and the minimum of the response times A process for calculating a response threshold based on the minimum response time,
After calculating the response threshold, the correction value is calculated based on the response threshold, the measured response time, the current correction value, and the current first number of times,
A process of comparing a value obtained by adding the calculated correction value and a preset switchback threshold to the second number of times;
When the second number of times is equal to or greater than a value obtained by adding the calculated correction value and the switchback threshold, a process of switching the communication path from the second communication path to the first communication path is performed. The route selection method to perform.
複数の通信経路と接続され、該複数の通信経路のうち1つの通信経路を選択して通信を行う通信装置に、
前記複数の通信経路のうち、第1の通信経路の状態を確認するための経路確認要求信号を送信する手順と、
前記送信した経路確認要求信号に対する応答信号を受信したかどうかを確認する手順と、
前記経路確認要求信号を送信してから該経路確認要求信号に対する前記応答信号を受信するまでの応答時間を計測する手順と、
前記経路確認要求信号に対して前記応答信号を受信した後、前記経路確認要求信号に対して前記応答信号を受信しなかった場合、前記経路確認要求信号に対して前記応答信号を受信しなかった連続回数である第1の回数をカウントする際の初期値を算出するための補正値と、前記経路確認要求信号に対して前記応答信号を受信した連続回数である第2の回数とに基づいて前記初期値を算出する手順と、
前記第1の回数を前記算出した初期値からカウントする手順と、
前記カウントした第1の回数とあらかじめ設定された切り替え閾値とを比較する手順と、
前記カウントした第1の回数が前記切り替え閾値以上となった場合、前記通信経路を前記第1の通信経路から該第1の通信経路以外の第2の通信経路へ切り替える手順と
前記経路確認要求信号に対して前記応答信号を受信しなかった後、前記経路確認要求信号に対して前記応答信号を受信した場合、前記計測した応答時間に基づいて算出した平均応答時間と前記応答時間のうち最小となる最小応答時間とに基づいて、応答閾値を算出する手順と、
前記応答閾値を算出した後、前記補正値を、前記応答閾値と前記計測した応答時間と現在の補正値と現在の第1の回数とに基づいて算出する手順と、
該算出した補正値とあらかじめ設定された切り戻し閾値とを加算した値と、前記第2の回数とを比較する手順と、
前記第2の回数が該算出した補正値と前記切り戻し閾値とを加算した値以上となった場合、前記通信経路を前記第2の通信経路から前記第1の通信経路へ切り戻す手順とを実行させるためのプログラム。
A communication device that is connected to a plurality of communication paths and selects one communication path from the plurality of communication paths to perform communication.
A procedure for transmitting a route confirmation request signal for confirming the state of the first communication route among the plurality of communication routes;
A procedure for confirming whether or not a response signal to the transmitted route confirmation request signal has been received;
A procedure for measuring a response time from transmission of the route confirmation request signal to reception of the response signal to the route confirmation request signal;
After receiving the response signal for the route confirmation request signal, if the response signal is not received for the route confirmation request signal, the response signal is not received for the route confirmation request signal Based on a correction value for calculating an initial value at the time of counting the first number of consecutive times and a second number of times of receiving the response signal in response to the route confirmation request signal. A procedure for calculating the initial value;
A procedure of counting the first number of times from the calculated initial value;
Comparing the counted first number with a preset switching threshold;
A procedure for switching the communication path from the first communication path to a second communication path other than the first communication path when the counted first number is equal to or greater than the switching threshold; and the path confirmation request signal When the response signal is received with respect to the route confirmation request signal after not receiving the response signal, the average response time calculated based on the measured response time and the minimum of the response times A procedure for calculating a response threshold based on the minimum response time,
After calculating the response threshold, calculating the correction value based on the response threshold, the measured response time, the current correction value, and the current first number of times,
A step of comparing the calculated correction value and a value obtained by adding a preset switchback threshold with the second number of times;
A step of switching back the communication path from the second communication path to the first communication path when the second number of times is equal to or greater than a value obtained by adding the calculated correction value and the switchback threshold. A program to be executed.
JP2012243320A 2012-11-05 2012-11-05 COMMUNICATION DEVICE, ROUTE SELECTION METHOD, AND PROGRAM Expired - Fee Related JP5505998B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2012243320A JP5505998B2 (en) 2012-11-05 2012-11-05 COMMUNICATION DEVICE, ROUTE SELECTION METHOD, AND PROGRAM

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012243320A JP5505998B2 (en) 2012-11-05 2012-11-05 COMMUNICATION DEVICE, ROUTE SELECTION METHOD, AND PROGRAM

Publications (2)

Publication Number Publication Date
JP2014093673A JP2014093673A (en) 2014-05-19
JP5505998B2 true JP5505998B2 (en) 2014-05-28

Family

ID=50937458

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012243320A Expired - Fee Related JP5505998B2 (en) 2012-11-05 2012-11-05 COMMUNICATION DEVICE, ROUTE SELECTION METHOD, AND PROGRAM

Country Status (1)

Country Link
JP (1) JP5505998B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7452872B2 (en) 2021-09-28 2024-03-19 Necプラットフォームズ株式会社 Communication devices, methods and programs

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01319836A (en) * 1988-06-22 1989-12-26 Nec Corp On-line system performance evaluating control system by terminal simulation
JPH0423158A (en) * 1990-05-18 1992-01-27 Nec Corp On-line network system
JP2917939B2 (en) * 1996-11-14 1999-07-12 日本電気株式会社 Server performance measurement method
JP5207326B2 (en) * 2011-02-15 2013-06-12 Necインフロンティア株式会社 COMMUNICATION DEVICE, ROUTE SELECTION METHOD, AND PROGRAM

Also Published As

Publication number Publication date
JP2014093673A (en) 2014-05-19

Similar Documents

Publication Publication Date Title
JP6991313B2 (en) Delay-based transmission path control methods, network controllers, and systems
JP4973734B2 (en) Network monitoring system, route extraction method, program, and computer-readable recording medium recording the program
JP2015510201A (en) Method and apparatus for rapid disaster recovery preparation in a cloud network
JP2008131346A (en) Ip network system
WO2014094314A1 (en) Optimal path selection method, related device and communication system
CN112737897B (en) Link monitoring and scheduling method, device, equipment and storage medium
WO2011157149A2 (en) Method, communication device and system, and service request device for main/standby switch between communication devices
JPWO2013140602A1 (en) Congestion control method, congestion control device, communication system, and congestion control program
KR102469441B1 (en) A method and an apparatus for monitoring global failure of virtual gateway cluster
JP2014217062A (en) Link failure diagnosis device and method
JP2014135533A (en) Network device, performance control method, and network system
JP5207326B2 (en) COMMUNICATION DEVICE, ROUTE SELECTION METHOD, AND PROGRAM
JP5505998B2 (en) COMMUNICATION DEVICE, ROUTE SELECTION METHOD, AND PROGRAM
JP4548792B2 (en) Communication route control method, communication route control system and program for overlay network
JP5042095B2 (en) Communication apparatus and fault monitoring method
WO2015120489A1 (en) Methods and systems for providing failover and failback in a multi-network router
KR20140119656A (en) Data transmission method, device, and system
JP2009206872A (en) Communication system
JP2013206112A5 (en)
JP2006211360A (en) Communication line monitoring device
JP7464046B2 (en) COMMUNICATION DEVICE, COMMUNICATION METHOD, AND COMMUNICATION PROGRAM
KR101590590B1 (en) Control apparatus and method thereof in software defined network
JP4644847B2 (en) COMMUNICATION DEVICE, ROUTE SELECTION METHOD, AND PROGRAM
JP5881200B1 (en) COMMUNICATION DEVICE, ROUTE SELECTION METHOD, AND PROGRAM
JP4644845B2 (en) COMMUNICATION DEVICE, ROUTE SELECTION METHOD, AND PROGRAM

Legal Events

Date Code Title Description
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: 20140218

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20140313

R150 Certificate of patent or registration of utility model

Ref document number: 5505998

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees