JP6454190B2 - Communication device, communication path acquisition method, communication path acquisition program, and communication network system - Google Patents

Communication device, communication path acquisition method, communication path acquisition program, and communication network system Download PDF

Info

Publication number
JP6454190B2
JP6454190B2 JP2015056219A JP2015056219A JP6454190B2 JP 6454190 B2 JP6454190 B2 JP 6454190B2 JP 2015056219 A JP2015056219 A JP 2015056219A JP 2015056219 A JP2015056219 A JP 2015056219A JP 6454190 B2 JP6454190 B2 JP 6454190B2
Authority
JP
Japan
Prior art keywords
communication
route
destination
route information
destination device
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.)
Active
Application number
JP2015056219A
Other languages
Japanese (ja)
Other versions
JP2016178423A (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.)
Fujitsu Advanced Engineering Ltd
Original Assignee
Fujitsu Advanced Engineering 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 Fujitsu Advanced Engineering Ltd filed Critical Fujitsu Advanced Engineering Ltd
Priority to JP2015056219A priority Critical patent/JP6454190B2/en
Publication of JP2016178423A publication Critical patent/JP2016178423A/en
Application granted granted Critical
Publication of JP6454190B2 publication Critical patent/JP6454190B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Description

本発明は、拠点間の通信経路を取得するための通信装置、通信経路取得方法、通信経路取得プログラム、及び、通信ネットワークシステムに関する。   The present invention relates to a communication device, a communication route acquisition method, a communication route acquisition program, and a communication network system for acquiring a communication route between bases.

例えば、IP(Internet Protocol)ネットワークでは、通信はルータによって中継さ
れる。IPネットワークでは、A拠点のノードから、指定されたB拠点のノードに到達するまでに経由したルータの情報を取得するツールとして、TRACEROUTEがある。TRACEROUTEは、PINGを用いて宛先装置までの経路上に位置するルータの情報を収集するツールである。PINGは、宛先装置への疎通確認を行うためのツールである。
For example, in an IP (Internet Protocol) network, communication is relayed by a router. In the IP network, there is TRACEROUTE as a tool for acquiring router information from the node at the A base until reaching the designated node at the B base. TRACEROUTE is a tool that collects information about routers located on the route to the destination device using PING. PING is a tool for confirming communication with a destination device.

TRACEROUTEでは、まず、送信元装置は、宛先装置に対してPINGコマンドを実行する。このとき、PINGで用いられるICMP(Internet Control Message Protocol) ECHOメッセージのTTL(Time To Live)の値は、1に設定される。TT
Lはパケットが経由可能なルータの数を示す。TTLは、パケットがルータに中継される度に1ずつ減らされる。TTLの値が0になると、ルータは、パケットをそれ以上転送せずに、送信元装置に、エラー通知として、ICMP TIME EXCEEDEDを返信する。
In TRACEROUTE, first, the transmission source device executes a PING command for the destination device. At this time, the TTL (Time To Live) value of the Internet Control Message Protocol (ICMP) ECHO message used in PING is set to 1. TT
L indicates the number of routers through which a packet can pass. The TTL is decremented by 1 each time a packet is relayed to the router. When the value of TTL becomes 0, the router returns ICMP TIME EXCEEDED as an error notification to the transmission source device without transferring any more packets.

TRACEROUTEでは、ICMP ECHOメッセージのTTLの値は初期値1であり、該TTLの値は、該メッセージを最初に中継するルータによって1減らされて、0となる。該ルータは、それ以上ICMP ECHOメッセージを転送することができないので、送信元装置に、エラー通知として、ICMP TIME EXCEEDEDメッセージを返信する。   In TRACEROUTE, the TTL value of the ICMP ECHO message is an initial value of 1, and the TTL value is reduced by 1 by the router that relays the message first, and becomes 0. Since the router cannot transfer the ICMP ECHO message any more, it returns an ICMP TIME EXCEEDED message as an error notification to the transmission source device.

TRACEROUTEでは、送信元装置は、最初のルータからICMP TIME EXCEEDEDメッセージを受信することで、ICMP EXCEEDEDメッセージの送信元アドレスより、最初のルータのIPアドレスを取得する。次に、送信元装置は、TTLの値を1増やして再度宛先装置に対してPINGコマンドを実行する。   In TRACEROUTE, the transmission source device receives the ICMP TIME EXCEEDED message from the first router, and acquires the IP address of the first router from the transmission source address of the ICMP EXCEEDED message. Next, the transmission source device increments the value of TTL by 1 and executes the PING command to the destination device again.

その後、ICMP TIME EXCEEDEDメッセージの受信、TTLを1増やして宛先装置に対するPINGの実行という処理が、宛先装置からICMP ECHO REPLYメッセージが受信されるまで繰り返し行われる。これによって、TRACEROUTEでは、送信元装置から宛先装置までにパケットが経由するルータの情報が経由順で収集される。   Thereafter, the process of receiving the ICMP TIME EXCEEDED message and incrementing the TTL by one and executing the PING for the destination apparatus is repeated until the ICMP ECHO REPLY message is received from the destination apparatus. Thus, in TRACEROUTE, information on routers through which packets pass from the transmission source device to the destination device is collected in the order of passage.

TRACEROUTEは、例えば、取得されたルータのIPアドレスから、送信元装置自身や経路上のルータの経路設計が設計通りかを確認するために用いられる。   TRACEROUTE is used, for example, to check whether the route design of the transmission source device itself or the router on the route is as designed from the acquired IP address of the router.

特開2007−318448号公報JP 2007-318448 A

しかしながら、TRACEROUTEでは、送信元装置から宛先装置への方向の経路情報は取得されるが、該宛先装置から該送信元装置への逆方向の経路情報については、該宛先装置からTRACEROUTEコマンドを実行しない限り、取得されない。宛先装置から送信元装置への逆方向の通信経路は、送信元装置から宛先装置への方向と同じ通信経路とは限らない。例えば、ルータの設定ミス等があるからである。   However, with TRACEROUTE, route information in the direction from the source device to the destination device is acquired, but the TRACEROUTE command is not executed from the destination device for route information in the reverse direction from the destination device to the source device. As long as not get. The communication path in the reverse direction from the destination apparatus to the transmission source apparatus is not necessarily the same communication path as the direction from the transmission source apparatus to the destination apparatus. For example, there is a router setting error.

したがって、経路設計の確認の際には、例えば、A拠点からB拠点へ、B拠点からA拠点へと、管理者は、それぞれの拠点のノードから、TRACEROUTEコマンドを実行する。拠点が複数ある場合には、経路確認のために、管理者は、各拠点それぞれからTRACEROUTEコマンドを実行することとなり、手間がかかる。なお、同様の問題は、IPネットワーク及びTRACEROUTEに限定されず、いかなる種類のネットワーク、及び、経路上のルータの情報を収集する、いかなる通信経路の確認方法でも発生する可能性がある。   Therefore, when confirming the route design, for example, the administrator executes the TRACEROUTE command from the node of each base from the A base to the B base and from the B base to the A base. When there are a plurality of bases, the administrator executes a TRACEROUTE command from each base for route confirmation, which is troublesome. Note that the same problem is not limited to the IP network and TRACEROUTE, and may occur in any communication path confirmation method that collects information on any type of network and router on the path.

本発明の一態様は、拠点間の通信経路確認処理の手間を軽減可能な通信装置、通信経路取得方法、通信経路取得プログラム、及び、通信ネットワークシステムを提供することを目的とする。   An object of one embodiment of the present invention is to provide a communication device, a communication route acquisition method, a communication route acquisition program, and a communication network system that can reduce the trouble of a communication route confirmation process between bases.

本発明の態様の一つは、宛先装置までに経由する中継装置の情報を収集するための通信経路取得コマンドを実行し、自装置から宛先装置までの経路情報を取得する経路取得部と、自装置を宛先とする通信経路取得コマンドの実行と、該実行結果として得られた宛先装置から自装置までの経路情報の通知と、の指示を宛先装置に送信し、宛先装置から自装置までの経路情報を受信する制御部と、を備える通信装置である。   One aspect of the present invention includes a route acquisition unit that executes a communication route acquisition command for collecting information on relay devices that pass through to a destination device, and acquires route information from the device itself to the destination device. Instructions for execution of a communication route acquisition command destined for the device and notification of route information from the destination device to the own device obtained as the execution result are transmitted to the destination device, and the route from the destination device to the own device And a control unit that receives information.

開示の通信装置、通信経路取得方法、通信経路取得プログラム、及び、通信ネットワークシステムによれば、拠点間の通信経路確認処理の手間を軽減することができる。   According to the disclosed communication device, the communication path acquisition method, the communication path acquisition program, and the communication network system, it is possible to reduce the trouble of the communication path confirmation process between the bases.

第1実施形態に係る通信経路取得処理の流れの一例を示す図である。It is a figure which shows an example of the flow of the communication path | route acquisition process which concerns on 1st Embodiment. 第1実施形態に係る通信経路取得処理の流れの一例を示す図である。It is a figure which shows an example of the flow of the communication path | route acquisition process which concerns on 1st Embodiment. 第1実施形態に係る通信経路取得処理の流れの一例を示す図である。It is a figure which shows an example of the flow of the communication path | route acquisition process which concerns on 1st Embodiment. 第1実施形態に係る通信経路取得処理の流れの一例を示す図である。It is a figure which shows an example of the flow of the communication path | route acquisition process which concerns on 1st Embodiment. 第1実施形態に係る通信経路確認処理の、マスタにおける入力画面と出力画面の一例を示す図である。It is a figure which shows an example of the input screen and output screen in a master of the communication path confirmation process which concerns on 1st Embodiment. 通信装置のハードウェア構成の一例を示す図である。It is a figure which shows an example of the hardware constitutions of a communication apparatus. 通信装置の機能構成の一例を示す図である。It is a figure which shows an example of a function structure of a communication apparatus. マスタ制御部の処理のフローチャートの一例である。It is an example of the flowchart of a process of a master control part. スレーブ制御部の処理のフローチャートの一例である。It is an example of the flowchart of a process of a slave control part.

以下、図面に基づいて、本発明の実施の形態を説明する。以下の実施形態の構成は例示であり、本発明は実施形態の構成に限定されない。   Hereinafter, embodiments of the present invention will be described with reference to the drawings. The configuration of the following embodiment is an exemplification, and the present invention is not limited to the configuration of the embodiment.

<第1実施形態>
第1実施形態では、通信装置は、宛先装置までに経由する中継装置の情報を収集するための通信経路取得コマンドを実行して、自装置から該宛先装置までの経路情報を取得する。また、通信装置は、自装置を宛先とする通信経路取得コマンドの実行と、該宛先装置から自装置までの経路情報の通知と、の指示を該宛先装置に対して送信する。これによって
、通信ネットワークシステムの管理者は、通信装置に対して処理開始の操作を入力することで、通信装置から宛先装置への経路情報及び宛先装置から通信装置への経路情報の両方の経路情報を取得することができる。
<First Embodiment>
In the first embodiment, the communication apparatus executes a communication path acquisition command for collecting information on relay apparatuses that pass through to the destination apparatus, and acquires path information from the own apparatus to the destination apparatus. In addition, the communication device transmits an instruction to the destination device to execute a communication route acquisition command that is destined for the device itself and to notify the route information from the destination device to the device itself. As a result, the administrator of the communication network system inputs a process start operation to the communication device, whereby both the route information from the communication device to the destination device and the route information from the destination device to the communication device. Can be obtained.

図1、図2、図3、図4は、第1実施形態に係る通信経路取得処理の流れの一例を示す図である。第1実施形態に係る通信経路取得処理は、自装置から宛先装置まで及び該宛先装置から自装置までの経路情報を取得する処理である。第1実施形態では、通信経路取得コマンドは、TRACEROUTEコマンドであるとする。また、第1実施形態では、経路情報は、宛先装置までに経由するルータのIPアドレスが経由順で並んだリストとして取得される。TRACEROUTEコマンドは、「通信経路取得コマンド」の一例である。   1, 2, 3, and 4 are diagrams illustrating an example of a flow of a communication path acquisition process according to the first embodiment. The communication route acquisition processing according to the first embodiment is processing for acquiring route information from the own device to the destination device and from the destination device to the own device. In the first embodiment, the communication path acquisition command is a TRACEROUTE command. In the first embodiment, the route information is acquired as a list in which the IP addresses of routers that are routed to the destination device are arranged in order of passage. The TRACEROUTE command is an example of a “communication path acquisition command”.

第1実施形態に係る通信ネットワークシステム100は、マスタ1と複数のスレーブ2とを含む。これらはそれぞれ、所定のネットワークに接続している。マスタ1は、通信経路取得処理を制御する通信装置である。スレーブ2は、マスタ1の制御対象となる通信装置である。以降、マスタ1からスレーブ2への方向の経路を「往路」、スレーブ2からマスタ1への方向の経路を「復路」と称する。   A communication network system 100 according to the first embodiment includes a master 1 and a plurality of slaves 2. Each of these is connected to a predetermined network. The master 1 is a communication device that controls communication path acquisition processing. The slave 2 is a communication device to be controlled by the master 1. Hereinafter, the path in the direction from the master 1 to the slave 2 is referred to as “outward path”, and the path in the direction from the slave 2 to the master 1 is referred to as “return path”.

図1の(1)では、マスタ1は、各スレーブ2宛ての通信経路取得コマンドを実行する。第1実施形態では、TRACEROUTEコマンドである。マスタ1は、各スレーブ2までの経路情報を取得すると、通信経路テーブルに該経路情報を登録する。   In (1) of FIG. 1, the master 1 executes a communication path acquisition command addressed to each slave 2. In the first embodiment, it is a TRACEROUTE command. When the master 1 acquires the route information to each slave 2, the master 1 registers the route information in the communication route table.

図2の(2)では、マスタ1は、各スレーブ2に対して、自装置宛ての通信経路取得コマンドの実行と実行結果の通知の指示を送信する。図3の(3)では、各スレーブ2は、マスタ1からの指示を受けて、マスタ1宛ての通信経路取得コマンドを実行する。   In (2) of FIG. 2, the master 1 transmits to each slave 2 an instruction to execute a communication path acquisition command addressed to itself and to notify the execution result. In (3) of FIG. 3, each slave 2 receives a command from the master 1 and executes a communication path acquisition command addressed to the master 1.

図4の(4)では、各スレーブ2は、マスタ1宛ての通信経路取得コマンドの実行結果をマスタ1に送信する。マスタ1宛ての通信経路取得コマンドの実行結果は、各スレーブ2からマスタ1までの復路の経路情報である。図4の(5)では、マスタ1は、各スレーブ2から受信した、各スレーブ2からマスタ1までの復路の経路情報を通信経路テーブルに登録する。   In (4) of FIG. 4, each slave 2 transmits the execution result of the communication path acquisition command addressed to the master 1 to the master 1. The execution result of the communication path acquisition command addressed to the master 1 is path information on the return path from each slave 2 to the master 1. In (5) of FIG. 4, the master 1 registers the return path information from each slave 2 to the master 1 received from each slave 2 in the communication path table.

図5は、第1実施形態に係る通信経路確認処理の、マスタ1における入力画面と出力画面の一例を示す図である。入力画面は、例えば、マスタ1上で、通信経路確認処理のアプリケーションが起動されると、マスタ1のディスプレイに表示される。入力画面には、例えば、通信先としてのスレーブ2の情報を入力する欄が複数含まれる。図5に示される入力画面には、スレーブ2の情報として、IPアドレス、ID、パスワードの入力欄が含まれる。   FIG. 5 is a diagram illustrating an example of an input screen and an output screen in the master 1 of the communication path confirmation process according to the first embodiment. The input screen is displayed on the display of the master 1 when, for example, an application for communication path confirmation processing is started on the master 1. For example, the input screen includes a plurality of fields for inputting information of the slave 2 as a communication destination. The input screen shown in FIG. 5 includes input fields for IP address, ID, and password as slave 2 information.

IPアドレスの入力欄には、通信経路確認対象のスレーブ2のIPアドレスが入力される。IDとパスワードの入力欄には、該スレーブ2のログインIDとログインパスワードが入力される。例えば、該スレーブ2のログオフ状態で通信経路確認処理が行われる場合に、スレーブ2のログインIDとログインパスワードの入力が求められることがあるからである。ログインIDとログインパスワードの入力は必須ではなく、要否はスレーブ2の状態又は設定内容に依存する。スレーブ2の状態には、例えば、ログイン又はログオフ状態、スリープ状態、電源切断状態等がある。   In the IP address input field, the IP address of the slave 2 whose communication path is to be confirmed is entered. In the ID and password input fields, the login ID and login password of the slave 2 are input. For example, when the communication path confirmation process is performed in the log-off state of the slave 2, the slave 2 may be requested to input the login ID and login password. The input of the login ID and the login password is not essential, and the necessity depends on the state of the slave 2 or setting contents. Examples of the state of the slave 2 include a login or logoff state, a sleep state, and a power-off state.

入力画面には、実行回数の入力欄も設けられている。実行回数は、通信経路確認処理を繰り返し実行する回数である。ユーザは、実行回数に所望する回数を指定することができる。通信経路確認処理を複数回繰り返し実行するのは、例えば、設計とは異なり、通信中
に経路が変更してしまう場合や、設計上、複数経路が設定されている場合があるからである。
The input screen also has an input field for the number of executions. The number of executions is the number of times that the communication path confirmation process is repeatedly executed. The user can specify the desired number of executions. The reason why the communication path confirmation process is repeatedly executed a plurality of times is because, for example, unlike the design, the path may be changed during communication, or a plurality of paths may be set by design.

入力画面内の実行ボタンがユーザによって押下されると、指定された実行回数分の通信経路確認処理が開始される。   When the execution button in the input screen is pressed by the user, the communication path confirmation process for the designated number of executions is started.

出力画面は、マスタ1が、各スレーブ2について、往路及び復路の経路情報を取得し、通信経路確認処理を完了させると、表示される。図5に示される出力画面の例は、指定された実行回数分の通信経路確認処理が完了すると表示される画面である。図5の出力画面には、実行回ごとに、各スレーブ2について、往路と復路との経路情報と、往路と復路との経路情報の一致又は不一致、各スレーブ2への通信経路の往路と復路との一致回数と、が表示される。図5の出力画面では、便宜的に、ルータの識別情報はアルファベットで示されているが、実際には、各ルータのIPアドレスが表示される。   The output screen is displayed when the master 1 acquires the path information of the forward path and the return path for each slave 2 and completes the communication path confirmation process. The example of the output screen shown in FIG. 5 is a screen that is displayed when communication path confirmation processing for the designated number of executions is completed. In the output screen of FIG. 5, for each slave 2, for each slave 2, the path information of the forward path and the backward path and the path information of the forward path and the backward path match or do not match, and the forward path and the return path of the communication path to each slave 2. And the number of matches. In the output screen of FIG. 5, the router identification information is indicated by alphabets for the sake of convenience, but in reality, the IP address of each router is displayed.

なお、図5に示されるマスタ1の入力画面及び出力画面は、一例であって、これに限定されない。例えば、出力画面には、各スレーブ2への通信経路の往路と復路との一致回数の代わりに、各スレーブ2への通信経路の往路と復路との不一致回数が表示されてもよい。また、出力画面は、各回の通信経路確認処理が終了する度に表示され、各回の通信経路確認処理の実行結果を追加するように更新されてもよい。   Note that the input screen and output screen of the master 1 shown in FIG. 5 are merely examples, and the present invention is not limited thereto. For example, instead of the number of matches between the forward path and the return path of the communication path to each slave 2, the number of mismatches between the forward path and the return path of the communication path to each slave 2 may be displayed. Further, the output screen may be displayed every time the communication path confirmation process for each time is completed, and may be updated to add the execution result of the communication path confirmation process for each time.

<装置構成>
マスタ1及びスレーブ2は、通信経路確認処理における通信装置の役割を示すものである。同じ通信装置がマスタ1として動作することもあれば、スレーブ2として動作することもある。
<Device configuration>
The master 1 and the slave 2 indicate the role of the communication device in the communication path confirmation process. The same communication device may operate as the master 1 or may operate as the slave 2.

図6は、通信装置のハードウェア構成の一例を示す図である。通信装置3は、例えば、PC(Personal Computer)、タブレット端末、スマートフォン等の端末装置である。図
6では、通信装置3は、端末装置であると想定して説明される。通信装置3は、CPU(Central Processing Unit)301、主記憶装置302、入力装置303、出力装置30
4、補助記憶装置305、ネットワークインタフェース307を備える。また、これらはバス309により互いに電気的に接続されている。
FIG. 6 is a diagram illustrating an example of a hardware configuration of the communication apparatus. The communication device 3 is a terminal device such as a PC (Personal Computer), a tablet terminal, or a smartphone. In FIG. 6, the communication device 3 is described assuming that it is a terminal device. The communication device 3 includes a CPU (Central Processing Unit) 301, a main storage device 302, an input device 303, and an output device 30.
4, an auxiliary storage device 305 and a network interface 307 are provided. These are electrically connected to each other by a bus 309.

入力装置303は、例えば、キーボード、マウス、タッチパネル等である。入力装置303から入力されたデータは、CPU 301に出力される。出力装置304は、CPU
301の処理の結果を出力する。出力装置304は、ディスプレイ、プリンタを含む。
The input device 303 is, for example, a keyboard, a mouse, a touch panel, or the like. Data input from the input device 303 is output to the CPU 301. The output device 304 is a CPU
The result of the process 301 is output. The output device 304 includes a display and a printer.

補助記憶装置305は、様々なプログラムや、各プログラムの実行に際してCPU 301が使用するデータを格納する。補助記憶装置305は、例えば、EPROM(Erasable Programmable ROM)、フラッシュメモリ、又はハードディスクドライブ(Hard Disk Drive)等の不揮発性のメモリである。補助記憶装置305は、例えば、オペレーティングシステム(OS)、TRACEROUTEプログラム、通信経路確認マスタプログラム305Q、通信経路確認スレーブプログラム305R、その他様々なアプリケーションプログラムを保持する。通信経路確認マスタプログラム305Q、通信経路確認スレーブプログラム305Rは、それぞれ、通信装置3をマスタ1、スレーブ2として動作させるためのプログラムである。TRACEROUTEプログラムは、TRACEROUTEを実行するためのプログラムである。   The auxiliary storage device 305 stores various programs and data used by the CPU 301 when executing each program. The auxiliary storage device 305 is, for example, a nonvolatile memory such as an EPROM (Erasable Programmable ROM), a flash memory, or a hard disk drive. The auxiliary storage device 305 holds, for example, an operating system (OS), a TRACEROUTE program, a communication path confirmation master program 305Q, a communication path confirmation slave program 305R, and various other application programs. The communication path confirmation master program 305Q and the communication path confirmation slave program 305R are programs for operating the communication device 3 as the master 1 and the slave 2, respectively. The TRACEROUTE program is a program for executing TRACEROUTE.

主記憶装置302は、CPU 301に、補助記憶装置305に格納されているプログラムをロードする記憶領域および作業領域を提供したり、バッファとして用いられたりする。主記憶装置302は、例えば、RAM(Random Access Memory)のような半導体メモ
リを含む。
The main storage device 302 provides the CPU 301 with a storage area and a work area for loading a program stored in the auxiliary storage device 305, and is used as a buffer. The main storage device 302 includes, for example, a semiconductor memory such as a RAM (Random Access Memory).

CPU 301は、補助記憶装置305に保持されたOSや様々なアプリケーションプログラムを主記憶装置302にロードして実行することによって、様々な処理を実行する。CPU 301は、1つに限られず、複数備えられてもよい。   The CPU 301 executes various processes by loading the OS and various application programs held in the auxiliary storage device 305 into the main storage device 302 and executing them. The number of CPUs 301 is not limited to one, and a plurality of CPUs 301 may be provided.

ネットワークインタフェース307は、ネットワークとの信号の入出力を行うインタフェースである。ネットワークインタフェース307は、有線のネットワークと接続するインタフェース、無線のネットワークと接続するインタフェースを含む。ネットワークインタフェース307は、例えば、NIC(Network Interface Card)、無線LAN(Local Area Network)カード、3G(3rd Generation)、LTE(Long Term Evolution)等の
携帯電話網に接続するための無線回路等である。ネットワークインタフェース307で受信されたデータ等は、CPU 301に出力される。
The network interface 307 is an interface for inputting / outputting signals to / from the network. The network interface 307 includes an interface connected to a wired network and an interface connected to a wireless network. The network interface 307 is, for example, a wireless circuit for connecting to a mobile phone network such as a NIC (Network Interface Card), a wireless LAN (Local Area Network) card, 3G (3rd Generation), or LTE (Long Term Evolution). . Data received by the network interface 307 is output to the CPU 301.

なお、図6に示される通信装置3のハードウェア構成は、一例であり、上記に限られず、実施の形態に応じて適宜構成要素の省略や置換、追加が可能である。例えば、通信装置3は、可搬記録媒体駆動装置を備え、可搬記録媒体に記録されたプログラムを実行してもよい。可搬記録媒体は、例えば、SDカード、miniSDカード、microSDカード、USB(Universal Serial Bus)フラッシュメモリ、CD(Compact Disc)、DVD(Digital Versatile Disc)、Blu−ray(登録商標) Disc、又はフラッシュメモリカードのような記録媒体である。   Note that the hardware configuration of the communication device 3 illustrated in FIG. 6 is an example, and is not limited to the above, and components can be omitted, replaced, or added as appropriate according to the embodiment. For example, the communication device 3 may include a portable recording medium driving device and execute a program recorded on the portable recording medium. The portable recording medium is, for example, an SD card, a miniSD card, a microSD card, a USB (Universal Serial Bus) flash memory, a CD (Compact Disc), a DVD (Digital Versatile Disc), a Blu-ray (registered trademark) Disc, or a flash. A recording medium such as a memory card.

図7は、通信装置3の機能構成の一例を示す図である。通信装置3は、機能構成として、マスタ制御部31、スレーブ制御部32、TRACEROUTE実行部33、通信経路テーブル34を備える。マスタ制御部31、通信経路テーブル34は、CPU 301が通信経路確認マスタプログラム305Qを実行することによって達成される機能構成である。スレーブ制御部32は、CPU 301が通信経路確認スレーブプログラム305Rを実行することによって達成される機能構成である。TRACEROUTE実行部33は、CPU 301がTRACEROUTEプログラムを実行することによって達成される機能構成である。   FIG. 7 is a diagram illustrating an example of a functional configuration of the communication device 3. The communication device 3 includes a master control unit 31, a slave control unit 32, a TRACEROUTE execution unit 33, and a communication path table 34 as functional configurations. The master control unit 31 and the communication path table 34 are functional configurations achieved by the CPU 301 executing the communication path confirmation master program 305Q. The slave control unit 32 has a functional configuration that is achieved by the CPU 301 executing the communication path confirmation slave program 305R. The TRACEROUTE execution unit 33 is a functional configuration achieved by the CPU 301 executing the TRACEROUTE program.

マスタ制御部31は、マスタ1としての処理を制御する。具体的には、マスタ制御部31は、ユーザによって指定されたスレーブ2宛てのTRACEROUTEコマンドの実行をTRACEROUTE実行部33に指示する。マスタ制御部31は、TRACEROUTE実行部33から、TRACEROUTEの実行結果を受信し、該実行結果を通信経路テーブル34に格納する。スレーブ2宛てのTRACEROUTEコマンドの実行結果は、TRACEROUTEが成功した場合には往路の経路情報、TRACEROUTEが失敗した場合にはエラーコードである。なお、TRACEROUTEの成功とは、宛先からICMP ECHO REPLYメッセージが返ってきて、宛先までの経路上のルータのIPアドレスを取得したことを示す。TRACEROUTEの失敗とは、宛先又は経路上のルータから所定時間経過してもICMP ECHO REPLYが返ってこず、宛先までの経路上のルータのIPアドレスを取得できないことを示す。   The master control unit 31 controls processing as the master 1. Specifically, the master control unit 31 instructs the TRACEROUTE execution unit 33 to execute a TRACEROUTE command addressed to the slave 2 designated by the user. The master control unit 31 receives the execution result of the TRACEROUTE from the TRACEROUTE execution unit 33 and stores the execution result in the communication path table 34. The execution result of the TRACEROUTE command addressed to the slave 2 is the path information of the forward path when the TRACEROUTE succeeds and the error code when the TRACEROUTE fails. The success of TRACEROUTE indicates that the ICMP ECHO REPLY message has been returned from the destination and the IP address of the router on the route to the destination has been acquired. The failure of TRACEROUTE indicates that ICMP ECHO REPLY does not return even after a predetermined time elapses from the destination or the router on the route, and the IP address of the router on the route to the destination cannot be acquired.

次に、マスタ制御部31は、該スレーブ2に対して、自装置宛てのTRACEROUTEの実行と実行結果の通知とを指示する復路取得依頼を送信する。マスタ制御部31は、スレーブ2から復路取得依頼に対する応答を受信する。復路取得依頼に対する応答には、自装置宛てのTRACEROUTEコマンドの実行結果が含まれている。自装置宛てのTRACEROUTEコマンドの実行結果は、該当のスレーブ2でTRACEROUTEが成功した場合には復路の経路情報、該当のスレーブ2でTRACEROUTEが失敗した場合にはエラーコードである。マスタ制御部31は、復路取得依頼に対する応答に含まれ
る自装置宛てのTRACEROUTEコマンドの実行結果を通信経路テーブル34に格納する。
Next, the master control unit 31 transmits a return path acquisition request for instructing the slave 2 to execute the TRACEROUTE addressed to itself and to notify the execution result. The master control unit 31 receives a response to the return path acquisition request from the slave 2. The response to the return route acquisition request includes the execution result of the TRACEROUTE command addressed to the own device. The execution result of the TRACEROUTE command addressed to the own device is a return path information when the TRACEROUTE succeeds in the corresponding slave 2 and an error code when the TRACEROUTE fails in the corresponding slave 2. The master control unit 31 stores the execution result of the TRACEROUTE command addressed to itself included in the response to the return path acquisition request in the communication path table 34.

マスタ制御部31は、ユーザに指定された全スレーブ2について、ユーザに指定された回数の通信経路確認処理が終了すると、通信経路テーブル34に格納される、各スレーブ2についての各回の通信経路確認処理の実行結果を出力装置304に出力する。マスタ制御部31は、「制御部」の一例である。   When all the slaves 2 designated by the user have completed the number of times of communication route confirmation processing designated by the user, the master control unit 31 stores the communication route confirmation for each slave 2 stored in the communication route table 34. The execution result of the process is output to the output device 304. The master control unit 31 is an example of a “control unit”.

通信経路テーブル34は、CPU 301による通信経路確認マスタプログラム305の実行を通じて、補助記憶装置305の記憶装置に作成される。通信経路テーブル34は、ユーザに指定された各スレーブ2について、各回の通信経路確認処理の実行結果としての往路及び復路の経路情報を保持する。通信経路テーブル34は、例えば、通信経路確認マスタプログラム305の起動時に、空の状態に更新されてもよいし、過去の通信経路確認マスタプログラム305の実行履歴として、ユーザ操作により削除されるまで、通信経路確認処理の実行結果を保持してもよい。   The communication path table 34 is created in the storage device of the auxiliary storage device 305 through the execution of the communication path confirmation master program 305 by the CPU 301. The communication path table 34 holds the path information of the forward path and the return path as the execution result of each communication path confirmation process for each slave 2 designated by the user. For example, the communication path table 34 may be updated to an empty state when the communication path confirmation master program 305 is started, or until it is deleted by a user operation as an execution history of the past communication path confirmation master program 305. The execution result of the communication path confirmation process may be held.

スレーブ制御部32は、スレーブ2としての処理を制御する。具体的には、スレーブ制御部32は、起動すると、マスタ1からの復路取得依頼を待ち受ける。スレーブ制御部32は、マスタ1からの復路取得依頼を受信すると、マスタ1宛てのTRACEROUTEコマンドの実行をTRACEROUTE実行部33に指示する。スレーブ制御部32は、TRACEROUTE実行部33から、TRACEROUTEの実行結果を受信し、該TRACEROUTEの実行結果を含む復路取得依頼に対する応答を生成し、該応答をマスタ1に送信する。   The slave control unit 32 controls processing as the slave 2. Specifically, when activated, the slave control unit 32 waits for a return path acquisition request from the master 1. When receiving the return path acquisition request from the master 1, the slave control unit 32 instructs the TRACEROUTE execution unit 33 to execute the TRACEROUTE command addressed to the master 1. The slave control unit 32 receives the execution result of the TRACEROUTE from the TRACEROUTE execution unit 33, generates a response to the return path acquisition request including the execution result of the TRACEROUTE, and transmits the response to the master 1.

マスタ1の復路取得依頼とスレーブ2の該復路取得依頼に対する応答とのやり取りは、例えば、以下のいずれの方法で実行されてもよい。   The exchange between the return acquisition request of the master 1 and the response to the return acquisition request of the slave 2 may be executed by any of the following methods, for example.

(A)マスタ1のマスタ制御部31は、復路取得依頼として、TELNET又はリモートデスクトップ機能を用いて、スレーブ2に接続し、スレーブ2上で自装置宛てのTRACEROUTEコマンドを実行させる。スレーブ2のTRACEROUTE実行部33は、TELNET又はリモートデスクトップの接続を通じて入力されるコマンドに従い、マスタ1宛てのTRACEROUTEコマンドを実行する。   (A) The master control unit 31 of the master 1 uses the TELNET or remote desktop function as a return path acquisition request, connects to the slave 2, and causes the slave 2 to execute a TRACEROUTE command addressed to itself. The TRACEROUT execution unit 33 of the slave 2 executes a TRACEROUTE command addressed to the master 1 in accordance with a command input through a TELNET or remote desktop connection.

マスタ1のマスタ制御部31は、TELNET又はリモートデスクトップの接続を通じて、スレーブ2に、自装置宛てのTRACEROUTEコマンドの実行結果をテキストファイルとして保存させる。次に、マスタ1のマスタ制御部31は、TELNET又はリモートデスクトップの接続を通じて、スレーブ2に、FTP(File Transfer Protocol)を用いて、該ファイルをマスタ1宛てに送信させる。この場合には、FTPを用いて送信されるテキストファイルが、復路取得依頼に対する応答となる。   The master control unit 31 of the master 1 causes the slave 2 to save the execution result of the TRACEROUTE command addressed to itself as a text file through TELNET or remote desktop connection. Next, the master control unit 31 of the master 1 causes the slave 2 to transmit the file to the master 1 using FTP (File Transfer Protocol) through a TELNET or remote desktop connection. In this case, the text file transmitted using FTP is a response to the return path acquisition request.

なお、(A)の方法の場合には、スレーブ2のスレーブ制御部32の処理は、マスタ1のマスタ制御部31がTELNET又はリモートデスクトップの接続を通じて行うこととなる。すなわち、(A)の方法の場合には、通信経路確認スレーブプログラム305Rは、マスタ1の通信経路確認マスタプログラム305Qに含まれるモジュールの一つとなる。また、スレーブ2のスレーブ制御部32は、マスタ1の通信経路確認マスタプログラム305Qの実行過程において、マスタ1が通信経路確認スレーブプログラム305Rを実行することによって達成されるものとなる。   In the case of the method (A), the processing of the slave control unit 32 of the slave 2 is performed by the master control unit 31 of the master 1 through a TELNET or remote desktop connection. That is, in the case of the method (A), the communication path confirmation slave program 305R is one of the modules included in the communication path confirmation master program 305Q of the master 1. Further, the slave control unit 32 of the slave 2 is achieved by the master 1 executing the communication path confirmation slave program 305R in the process of executing the communication path confirmation master program 305Q of the master 1.

(B)スレーブ2のスレーブ制御部32は、マスタ1からスレーブ2宛てに実行されるTRACEROUTEにおいて用いられるICMP ECHOメッセージの受信を契機に
、マスタ1宛てのTRACEROUTEコマンドを実行する。この場合には、マスタ1が実行するTRACEROUTEの過程でマスタ1からスレーブ2宛てに送信されるICMP ECHOメッセージが復路取得依頼となる。
(B) The slave control unit 32 of the slave 2 executes a TRACEROUTE command addressed to the master 1 when receiving an ICMP ECHO message used in the TRACEROUTE executed from the master 1 to the slave 2. In this case, an ICMP ECHO message transmitted from the master 1 to the slave 2 in the process of TRACEROUTE executed by the master 1 is a return path acquisition request.

スレーブ2のスレーブ制御部32は、例えば、マスタ1のIPアドレスを予め記憶しておくことで、マスタ1からのICMP ECHOメッセージを復路取得依頼として検出可能となる。   For example, the slave controller 32 of the slave 2 can detect the ICMP ECHO message from the master 1 as a return path acquisition request by storing the IP address of the master 1 in advance.

スレーブ2のスレーブ制御部32は、マスタ1宛てのTRACEROUTEコマンドの実行結果をTRACEROUTE実行部33から受け取ると、該実行結果をテキストファイルとして保存し、FTPを用いてマスタ1に送信する。この場合には、FTPを用いて送信されるテキストファイルが、復路取得依頼に対する応答となる。   When receiving the execution result of the TRACEROUTE command addressed to the master 1 from the TRACEROUTE execution unit 33, the slave control unit 32 of the slave 2 stores the execution result as a text file and transmits it to the master 1 using FTP. In this case, the text file transmitted using FTP is a response to the return path acquisition request.

(C)例えば、NAS(Network Attached Storage)のような共有サーバを導入して、(A)又は(B)において、スレーブ2のスレーブ制御部32は、マスタ1宛てのTRACEROUTEコマンドの実行結果のテキストファイルを、該共有サーバに格納する。また、マスタ1宛てのTRACEROUTEコマンドの実行完了とともに、スレーブ2のスレーブ制御部32は、復路取得依頼に対する応答として、TRACEROUTEの実行完了をマスタに通知する。   (C) For example, by introducing a shared server such as NAS (Network Attached Storage), in (A) or (B), the slave control unit 32 of the slave 2 executes the text of the execution result of the TRACEROUTE command addressed to the master 1 The file is stored in the shared server. Further, along with the completion of the execution of the TRACEROUTE command addressed to the master 1, the slave control unit 32 of the slave 2 notifies the master of the completion of the execution of the TRACEROUTE as a response to the return path acquisition request.

マスタ1は、スレーブ2からTRACEROUTEの実行完了を、実行回数分受信したら、共有サーバから、例えば、FTPのGETコマンドを実行して、スレーブ2のTRACEROUTEの実行結果であるテキストファイルを取得する。   When the master 1 receives the completion of execution of the TRACEOUTE from the slave 2 by the number of times of execution, the master 1 executes, for example, an FTP GET command from the shared server, and acquires a text file that is the execution result of the TRACEROUTE of the slave 2.

なお、マスタ1とスレーブ2との間の復路取得要求及び応答のやり取りは、上記(A)〜(C)に限定されない。   Note that the return path acquisition request and response exchange between the master 1 and the slave 2 are not limited to the above (A) to (C).

TRACEROUTE実行部33は、マスタ制御部31及びスレーブ制御部32からの指示に従って、指定された宛先へのTRACEROUTEコマンドを実行する。また、TRACEROUTE実行部33は、TRACEROUTEコマンドの実行結果を、マスタ制御部31又はスレーブ制御部32に出力する。TRACEROUTE実行部33は、「経路取得部」の一例である。   The TRACEROUTE execution unit 33 executes a TRACEROUTE command to a designated destination in accordance with instructions from the master control unit 31 and the slave control unit 32. The TRACEROUTE execution unit 33 outputs the execution result of the TRACEROUTE command to the master control unit 31 or the slave control unit 32. The TRACEROUTE execution unit 33 is an example of a “route acquisition unit”.

<処理の流れ>
図8は、マスタ制御部31の処理のフローチャートの一例である。図8に示されるフローチャートは、例えば、図5に示される入力画面の実行ボタンの押下等の、ユーザ操作によって開始される。なお、図8に示される処理の主体はCPU 301であるが、便宜上、マスタ制御部31を主体として説明する。
<Process flow>
FIG. 8 is an example of a flowchart of processing of the master control unit 31. The flowchart shown in FIG. 8 is started by a user operation such as pressing an execution button on the input screen shown in FIG. 8 is the CPU 301, but for the sake of convenience, the master control unit 31 will be mainly described.

OP1では、マスタ制御部31は、変数nを1に設定する。変数nは、通信経路確認処理の実行回数を計数するための変数である。次に処理がOP2に進む。   In OP1, the master control unit 31 sets the variable n to 1. The variable n is a variable for counting the number of executions of the communication path confirmation process. Next, the process proceeds to OP2.

OP2では、マスタ制御部31は、スレーブ2宛てのTRACEROUTEコマンドの実行をTRACEROUTE実行部33に指示する。TRACEROUTE実行部33は、マスタ制御部31からの指示を受けて、スレーブ2宛てのTRACEROUTEコマンドを実行する。TRACEROUTE実行部33は、スレーブ2宛てのTRACEROUETコマンドの実行結果をマスタ制御部31に出力する。次に処理がOP3に進む。   In OP2, the master control unit 31 instructs the TRACEROUTE execution unit 33 to execute the TRACEROUTE command addressed to the slave 2. The TRACEROUTE execution unit 33 receives the instruction from the master control unit 31 and executes the TRACEROUTE command addressed to the slave 2. The TRACEROUTE execution unit 33 outputs the execution result of the TRACEROUET command addressed to the slave 2 to the master control unit 31. Next, the process proceeds to OP3.

OP3では、マスタ制御部31は、スレーブ2宛てのTRACEROUTEコマンドの実行結果が成功であるか否かを判定する。スレーブ2宛てのTRACEROUTEコマン
ドの実行結果が成功である場合には(OP3:YES)、処理がOP4に進む。スレーブ2宛てのTRACEROUTEコマンドの実行結果が失敗である場合には(OP3:NO)、エラーとなり、図8に示される処理が終了する。
In OP3, the master control unit 31 determines whether or not the execution result of the TRACEROUTE command addressed to the slave 2 is successful. If the execution result of the TRACEROUTE command addressed to the slave 2 is successful (OP3: YES), the process proceeds to OP4. If the execution result of the TRACEROUTE command addressed to the slave 2 is unsuccessful (OP3: NO), an error occurs and the processing shown in FIG. 8 ends.

OP4では、マスタ制御部31は、往路の経路情報を通信経路テーブル34に格納する。次に処理がOP5に進む。OP5では、マスタ制御部31は、スレーブ2に復路取得依頼を送信する。次に処理がOP6に進む。   In OP4, the master control unit 31 stores the route information of the forward route in the communication route table 34. Next, the process proceeds to OP5. In OP5, the master control unit 31 transmits a return route acquisition request to the slave 2. Next, the process proceeds to OP6.

OP6では、マスタ制御部31は、スレーブ2から復路取得依頼に対する応答の待機状態となる。マスタ制御部31がスレーブ2から復路取得依頼に対する応答を受信した場合には(OP6:YES)、処理がOP7に進む。スレーブ2に復路取得依頼が送信されてから所定時間経過しても、スレーブ2から復路取得依頼に対する応答が受信されない場合には(OP6:NO)、エラーとなり、図8に示される処理が終了する。   In OP6, the master control unit 31 enters a standby state for a response to the return path acquisition request from the slave 2. When the master control unit 31 receives a response to the return path acquisition request from the slave 2 (OP6: YES), the process proceeds to OP7. If a response to the return path acquisition request is not received from the slave 2 even after a predetermined time has elapsed since the return path acquisition request has been transmitted to the slave 2 (OP6: NO), an error occurs and the processing shown in FIG. 8 ends. .

OP7では、マスタ制御部31は、スレーブ2から受信した復路取得依頼に対する応答に含まれる復路の経路情報を通信経路テーブル34に格納する。次に処理がOP8に進む。   In OP <b> 7, the master control unit 31 stores in the communication path table 34 the return path information included in the response to the return path acquisition request received from the slave 2. Next, the process proceeds to OP8.

OP8では、マスタ制御部31は、往路と復路で経路情報を比較し、往路と復路との経路情報が一致しているか否かを判定する。第1実施形態において、往路と復路との経路情報が一致しているとは、往路と復路とで、経由するルータが一致しており、且つ、復路のルータの経由順が往路のルータの経由順と逆の順になっている、ということである。往路と復路とで経路情報が一致している場合には(OP8:YES)、処理がOP9に進む。往路と復路とで経路情報が一致していない場合には(OP8:NO)、処理がOP10に進む。   In OP8, the master control unit 31 compares the route information between the forward path and the return path, and determines whether the path information of the forward path and the return path is the same. In the first embodiment, the route information of the forward path and the return path is the same, the routers that pass through are the same in the forward path and the return path, and the route order of the routers in the return path is It means that the order is reversed. If the route information is the same for the forward route and the return route (OP8: YES), the process proceeds to OP9. If the route information does not match between the outbound route and the inbound route (OP8: NO), the process proceeds to OP10.

OP9では、マスタ制御部31は、往路と復路とで経路情報が一致しているので、通信経路テーブル34内の該当のスレーブ2の往路と復路との一致回数に1を加算する。次に処理がOP10に進む。   In OP9, the master control unit 31 adds 1 to the number of coincidence between the forward path and the return path of the corresponding slave 2 in the communication path table 34 because the path information is the same between the forward path and the return path. Next, the process proceeds to OP10.

OP10では、マスタ制御部31は、変数nがNであるか否かを判定する。Nは、ユーザに指定された通信経路確認処理の実行回数である。変数nがNである場合には(OP10:YES)、通信経路確認処理がユーザに指定された回数実行されたので、図8に示される処理が終了する。変数nがNでない場合には(OP10:NO)、処理がOP11に進む。   In OP10, the master control unit 31 determines whether or not the variable n is N. N is the number of executions of the communication path confirmation process designated by the user. If the variable n is N (OP10: YES), the communication path confirmation process has been executed the number of times specified by the user, and the process shown in FIG. 8 ends. If the variable n is not N (OP10: NO), the process proceeds to OP11.

OP11では、マスタ制御部31は、変数nを1加算した値に更新する。次に処理がOP2に進み、OP2からの処理が繰り返し実行される。   In OP11, the master control unit 31 updates the variable n to a value obtained by adding 1. Next, the process proceeds to OP2, and the processes from OP2 are repeatedly executed.

なお、ユーザによって指定されたスレーブ2が複数ある場合には、マスタ制御部31は、それぞれのスレーブ2に対して図8の処理を実行してもよい。また、マスタ制御部31は、例えば、OP2からOP9までの処理をユーザに指定された全スレーブ2について終了してから、OP10に進むように、図8の処理を実行してもよい。図8に示される処理が終了すると、マスタ制御部31は、通信経路テーブル34から各スレーブ2の経路情報を読み出し、例えば、図5の出力画面の例のように出力する。   When there are a plurality of slaves 2 designated by the user, the master control unit 31 may execute the process of FIG. Further, for example, the master control unit 31 may execute the process of FIG. 8 so that the process from OP2 to OP9 is completed for all slaves 2 designated by the user and then proceeds to OP10. When the processing shown in FIG. 8 is completed, the master control unit 31 reads out the path information of each slave 2 from the communication path table 34 and outputs it as in the example of the output screen in FIG.

図9は、スレーブ制御部32の処理のフローチャートの一例である。図9に示されるフローチャートは、例えば、通信装置3の起動時、ユーザ操作の入力等によって、通信経路確認スレーブプログラム305Rが起動されると開始される。また、図9に示される処理は、通信装置3の稼働中、繰り返し実行される。なお、図9に示される処理の主体はCP
U 301であるが、便宜上、スレーブ制御部32を主体として説明する。
FIG. 9 is an example of a flowchart of processing of the slave control unit 32. The flowchart shown in FIG. 9 is started when the communication path confirmation slave program 305R is started by an input of a user operation or the like when the communication device 3 is started. Further, the process shown in FIG. 9 is repeatedly executed while the communication device 3 is in operation. Note that the subject of the processing shown in FIG.
U 301, but for the sake of convenience, the slave control unit 32 will be mainly described.

OP21では、スレーブ制御部32は、復路取得依頼の受信を待機する。復路取得依頼を受信した場合には(OP21:YES)、処理がOP22に進む。   In OP21, the slave control unit 32 waits for reception of a return path acquisition request. When the return path acquisition request is received (OP21: YES), the process proceeds to OP22.

OP22では、スレーブ制御部32は、復路取得依頼を受信したので、マスタ1宛てのTRACEROUTEコマンドの実行をTRACEROUTE実行部33に指示する。TRACEROUTE実行部33は、マスタ1宛てのTRACEROUTEコマンドを実行し、実行結果をスレーブ制御部32に出力する。次に処理がOP23に進む。   In OP22, since the slave control unit 32 has received the return path acquisition request, the slave control unit 32 instructs the TRACEROUTE execution unit 33 to execute the TRACEROUTE command addressed to the master 1. The TRACEROUTE execution unit 33 executes a TRACEROUTE command addressed to the master 1 and outputs the execution result to the slave control unit 32. Next, the process proceeds to OP23.

OP23では、スレーブ制御部32は、マスタ1宛てのTRACEROUTEコマンドの実行結果が成功であるか否かを判定する。マスタ1宛てのTRACEROUTEコマンドの実行結果が成功である場合には(OP23:YES)、処理がOP24に進む。マスタ1宛てのTRACEROUTEコマンドの実行結果が失敗である場合には(OP23:NO)、処理がOP25に進む。   In OP23, the slave control unit 32 determines whether or not the execution result of the TRACEROUTE command addressed to the master 1 is successful. If the execution result of the TRACEROUTE command addressed to the master 1 is successful (OP23: YES), the process proceeds to OP24. If the execution result of the TRACEROUTE command addressed to the master 1 is unsuccessful (OP23: NO), the process proceeds to OP25.

OP24では、スレーブ制御部32は、マスタ1宛てのTRACEROUTEコマンドの実行結果が成功であるので、復路の経路情報を含む復路取得依頼の応答をマスタ1に送信する。その後、図9に示される処理が終了する。   In OP24, since the execution result of the TRACEROUTE command addressed to the master 1 is successful, the slave control unit 32 transmits a response to the return route acquisition request including the return route information to the master 1. Thereafter, the process shown in FIG. 9 ends.

OP25では、スレーブ制御部32は、マスタ1宛てのTRACEROUTEコマンドの実行結果が失敗であるので、エラーコードを含む復路取得依頼の応答をマスタ1に送信する。その後、図9に示される処理が終了する。   In OP25, since the execution result of the TRACEROUTE command addressed to the master 1 is unsuccessful, the slave control unit 32 transmits a response to the return path acquisition request including the error code to the master 1. Thereafter, the process shown in FIG. 9 ends.

なお、上述の(A)の方法が採用される場合には、図8のOP5の復路取得依頼の送信としてTELNET又はリモートデスクトップの接続が開始される。該接続が確立されると、マスタ1上で通信経路確認スレーブプログラム305Rが起動されて、スレーブ2上で図9の処理が開始されることとなる。TELNET又はリモートデスクトップの接続は、指定された実行回数分の通信経路確認処理が終了するまで維持されてもよいし、1回の通信経路確認処理ごとに、確立及び切断されてもよい。   When the above-described method (A) is adopted, TELNET or remote desktop connection is started as the transmission of the return path acquisition request of OP5 in FIG. When the connection is established, the communication path confirmation slave program 305R is started on the master 1 and the processing of FIG. 9 is started on the slave 2. The connection of TELNET or remote desktop may be maintained until the communication path confirmation process for the designated number of executions is completed, or may be established and disconnected for each communication path confirmation process.

<第1実施形態の作用効果>
第1実施形態では、マスタ1は、スレーブ2宛てのTRACEROUTEコマンドの実行とともに、スレーブ2に対してマスタ1宛てのTRACEROUTEコマンドの実行と実行結果の通知とを指示する。マスタ1は、マスタ1からスレーブ2への方向と、スレーブ2からマスタ1への方向との両方向の経路情報を取得することができる。
<Operational effects of the first embodiment>
In the first embodiment, the master 1 instructs the slave 2 to execute the TRACEROUTE command addressed to the master 1 and notify the execution result together with the execution of the TRACEROUTE command addressed to the slave 2. The master 1 can acquire path information in both directions, ie, the direction from the master 1 to the slave 2 and the direction from the slave 2 to the master 1.

また、第1実施形態によれば、マスタ1のユーザは、スレーブ2のIPアドレスを入力して実行開始操作を行うことで、上記両方向の経路情報を取得することができるようになる。すなわち、通信経路確認処理におけるユーザ操作が減り、ユーザの手間を軽減することができる。スレーブ2が複数である場合でも、マスタ1のユーザは、各スレーブ2のIPアドレスを入力することで、各スレーブ2について、上記両方向の経路情報を取得することができ、大幅にユーザの手間を軽減することができる。   Further, according to the first embodiment, the user of the master 1 can acquire the above-described two-way route information by inputting the IP address of the slave 2 and performing an execution start operation. That is, user operations in the communication path confirmation process are reduced, and the user's trouble can be reduced. Even if there are a plurality of slaves 2, the user of the master 1 can obtain the above-mentioned bidirectional route information for each slave 2 by inputting the IP address of each slave 2, greatly reducing the user's trouble. Can be reduced.

また、第1実施形態では、マスタ1は、マスタ1からスレーブ2への方向と、スレーブ2からマスタ1への方向との両方向の経路情報が一致しているか否かを判定し、判定結果を出力する。これによって、ユーザ自身が上記両方向の経路情報を比較する手間を省くことができる。   In the first embodiment, the master 1 determines whether or not the path information in both directions of the direction from the master 1 to the slave 2 and the direction from the slave 2 to the master 1 match, and the determination result is Output. As a result, it is possible to save the user himself / herself from comparing the route information in both directions.

<その他>
第1実施形態では、通信経路取得コマンドの一例としてTRACEROUTEコマンドが用いられる場合について説明された。ただし、第1実施形態で説明された技術は、TRACEROUTE以外の通信経路取得コマンドにも適用可能である。例えば、マスタ1からスレーブ2に宛てのパケットを中継する際に、各ルータが該パケットの所定の位置にそれぞれ自身のIPアドレスを順番に付与し、該パケットをマスタ1が回収することで、経路情報を取得させるようなコマンドにも適用可能である。
<Others>
In the first embodiment, the case where the TRACEROUTE command is used as an example of the communication path acquisition command has been described. However, the technique described in the first embodiment can also be applied to communication path acquisition commands other than TRACEROUTE. For example, when relaying a packet addressed from the master 1 to the slave 2, each router sequentially assigns its own IP address to a predetermined position of the packet, and the master 1 collects the packet, thereby It can also be applied to commands that cause information to be acquired.

第1実施形態では、マスタ1は、スレーブ2宛てのTRACEROUTEコマンドを実行してから、スレーブ2に復路取得依頼を送信する。これに限られず、マスタ1は、スレーブ2に復路取得依頼を送信し、スレーブ2から復路の経路情報を受信してから、スレーブ2宛てのTRACEROUTEコマンドを実行してもよい。ただし、マスタ1が復路取得依頼の送信を先に実行する場合には、マスタ1とスレーブ2との復路取得依頼及び応答のやり取りとして上記(B)の方法は採用されない。   In the first embodiment, the master 1 transmits a return path acquisition request to the slave 2 after executing a TRACEROUTE command addressed to the slave 2. However, the present invention is not limited to this, and the master 1 may execute a TRACEROUTE command addressed to the slave 2 after transmitting a return route acquisition request to the slave 2 and receiving route information of the return route from the slave 2. However, when the master 1 first transmits a return route acquisition request, the method (B) is not adopted as a return route acquisition request and a response exchange between the master 1 and the slave 2.

また、第1実施形態は、複数のマスタ1を管理する管理装置をさらに備え、管理装置からネットワークを通じて各マスタ1にスレーブ2の情報が入力され、各マスタ1から管理装置に各マスタ1と各スレーブ2との間の往路及び復路の経路情報が送信されるように拡張することも可能である。   In addition, the first embodiment further includes a management device that manages a plurality of masters 1, and information on slaves 2 is input from the management device to each master 1 through the network, and each master 1 and each management device are connected to each master 1. It is also possible to expand so that the route information of the forward path and the return path with the slave 2 is transmitted.

また、通信装置3は端末装置に限定されず、例えば、ルータのような中継装置であってもよい。通信装置3が中継装置であり、該中継装置をマスタ1として動作させる場合には、該中継装置にコンソール又はネットワークを通じて接続する端末装置の表示装置がユーザインタフェースとして用いられる。   The communication device 3 is not limited to a terminal device, and may be a relay device such as a router, for example. When the communication device 3 is a relay device and the relay device is operated as the master 1, a display device of a terminal device connected to the relay device via a console or a network is used as a user interface.

<記録媒体>
コンピュータその他の機械、装置(以下、コンピュータ等)に上記いずれかの機能を実現させるプログラムをコンピュータ等が読み取り可能な記録媒体に記録することができる。コンピュータ等に、この記録媒体のプログラムを読み込ませて実行させることにより、その機能を提供させることができる。
<Recording medium>
A program for causing a computer or other machine or device (hereinafter, a computer or the like) to realize any of the above functions can be recorded on a recording medium that can be read by the computer or the like. The function can be provided by causing a computer or the like to read and execute the program of the recording medium.

ここで、コンピュータ等が読み取り可能な記録媒体とは、データやプログラム等の情報を電気的、磁気的、光学的、機械的、または化学的作用によって蓄積し、コンピュータ等から読み取ることができる非一時的な記録媒体をいう。このような記録媒体のうちコンピュータ等から取り外し可能なものとしては、例えばフレキシブルディスク、光磁気ディスク、CD−ROM、CD−R/W、DVD、ブルーレイディスク、DAT、8mmテープ、フラッシュメモリなどのメモリカード等がある。また、コンピュータ等に固定された記録媒体としてハードディスク、ROM(リードオンリーメモリ)等がある。さらに、SSD(Solid State Drive)は、コンピュータ等から取り外し可能な記録媒体としても、コ
ンピュータ等に固定された記録媒体としても利用可能である。
Here, a computer-readable recording medium is a non-temporary recording medium in which information such as data and programs is accumulated by electrical, magnetic, optical, mechanical, or chemical action and can be read from a computer or the like. A typical recording medium. Examples of such a recording medium that can be removed from a computer or the like include a flexible disk, a magneto-optical disk, a CD-ROM, a CD-R / W, a DVD, a Blu-ray disk, a DAT, an 8 mm tape, a flash memory, and the like. There are cards. In addition, as a recording medium fixed to a computer or the like, there are a hard disk, a ROM (read only memory), and the like. Further, an SSD (Solid State Drive) can be used as a recording medium removable from a computer or the like, or as a recording medium fixed to the computer or the like.

1 マスタ
2 スレーブ
3 通信装置
31 マスタ制御部
32 スレーブ制御部
33 TRACEROUTE実行部
34 通信経路テーブル
100 通信ネットワークシステム
301 CPU
302 主記憶装置
305 補助記憶装置
305Q 通信経路確認マスタプログラム
305R 通信経路確認スレーブプログラム
DESCRIPTION OF SYMBOLS 1 Master 2 Slave 3 Communication apparatus 31 Master control part 32 Slave control part 33 TRACEROUTE execution part 34 Communication path table 100 Communication network system 301 CPU
302 Main storage device 305 Auxiliary storage device 305Q Communication path confirmation master program 305R Communication path confirmation slave program

Claims (5)

宛先装置までに経由する中継装置の情報を収集するための通信経路取得コマンドを実行し、自装置から前記宛先装置までの経路情報を取得する経路取得部と、
前記自装置を宛先とする通信経路取得コマンドの実行と、該実行結果として得られた前記宛先装置から前記自装置までの経路情報の通知と、の指示を前記宛先装置に送信し、前記宛先装置から前記自装置までの経路情報を受信し、
前記自装置から前記宛先装置までの経路情報と、前記宛先装置から前記自装置までの経路情報と、が一致するか否かを判定する制御部と、
を備え
前記経路取得部は、前記宛先装置を宛先とする通信経路取得コマンドを所定回数実行し、
前記制御部は、前記所定回数、前記宛先装置に対して前記指示を送信し、前記所定回数分の、前記自装置から前記宛先装置までの経路情報と、前記宛先装置から前記自装置までの経路情報と、について、一致する回数または一致しない回数を計数する、
通信装置。
A route acquisition unit that executes a communication route acquisition command for collecting information on relay devices that pass through to the destination device, and acquires route information from the own device to the destination device;
Instructions for execution of a communication route acquisition command destined for the own device and notification of route information from the destination device to the own device obtained as the execution result are transmitted to the destination device, and the destination device Receiving route information from the device to the device ,
The path information from the radar device to the destination device, and a control unit for the route information from the destination apparatus to the own apparatus, to determine whether coincident,
Equipped with a,
The route acquisition unit executes a communication route acquisition command destined for the destination device a predetermined number of times,
The control unit transmits the instruction to the destination device for the predetermined number of times, the route information from the own device to the destination device for the predetermined number of times, and the route from the destination device to the own device. Count the number of matches or mismatches for the information,
Communication device.
前記経路取得部は、複数の宛先装置それぞれを宛先として、前記通信経路取得コマンドを実行し、
前記制御部は、前記複数の宛先装置のそれぞれに対して、前記指示を送信する、
請求項1に記載の通信装置。
The route acquisition unit executes the communication route acquisition command with each of a plurality of destination devices as destinations,
The control unit transmits the instruction to each of the plurality of destination devices.
The communication apparatus according to claim 1 .
コンピュータが、
宛先装置までに経由する中継装置の情報を収集するための通信経路取得コマンドを実行し、自装置から前記宛先装置までの経路情報を取得し、
前記自装置を宛先とする通信経路取得コマンドの実行と、該実行結果として得られた前記宛先装置から前記自装置までの経路情報の通知と、の指示を前記宛先装置に送信し、前記宛先装置から前記自装置までの経路情報を受信し、
前記自装置から前記宛先装置までの経路情報と、前記宛先装置から前記自装置までの経路情報と、が一致するか否かを判定し、
前記宛先装置を宛先とする通信経路取得コマンドを所定回数実行し、
前記所定回数、前記宛先装置に対して前記指示を送信し、前記所定回数分の、前記自装置から前記宛先装置までの経路情報と、前記宛先装置から前記自装置までの経路情報と、について、一致する回数または一致しない回数を計数する、
通信経路取得方法。
Computer
Execute a communication route acquisition command for collecting information on relay devices that pass through to the destination device, acquire route information from the own device to the destination device,
Instructions for execution of a communication route acquisition command destined for the own device and notification of route information from the destination device to the own device obtained as the execution result are transmitted to the destination device, and the destination device Receiving route information from the device to the device ,
It is determined whether or not the route information from the own device to the destination device matches the route information from the destination device to the own device,
A communication path acquisition command destined for the destination device is executed a predetermined number of times,
The instruction is transmitted to the destination device for the predetermined number of times, and the route information from the own device to the destination device and the route information from the destination device to the own device for the predetermined number of times, Count the number of matches or mismatches ,
Communication path acquisition method.
コンピュータに、
宛先装置までに経由する中継装置の情報を収集するための通信経路取得コマンドの実行により、自装置から前記宛先装置までの経路情報を取得させ、
前記自装置を宛先とする通信経路取得コマンドの実行と、該実行結果として得られた前記宛先装置から前記自装置までの経路情報の通知と、の指示を前記宛先装置に送信させ、前記宛先装置から前記自装置までの経路情報を受信させ
前記自装置から前記宛先装置までの経路情報と、前記宛先装置から前記自装置までの経路情報と、が一致するか否かを判定させ、
前記宛先装置を宛先とする通信経路取得コマンドを所定回数実行させ、
前記所定回数、前記宛先装置に対して前記指示を送信し、前記所定回数分の、前記自装置から前記宛先装置までの経路情報と、前記宛先装置から前記自装置までの経路情報と、について、一致する回数または一致しない回数を計数させる、
ための通信経路取得プログラム。
On the computer,
By executing a communication route acquisition command for collecting information on relay devices that pass through to the destination device, the route information from the own device to the destination device is acquired,
An instruction to execute a communication route acquisition command destined for the own device and notification of route information from the destination device to the own device obtained as the execution result is transmitted to the destination device, and the destination device To receive route information from the device to the device ,
Determining whether or not the route information from the own device to the destination device matches the route information from the destination device to the own device;
The communication path acquisition command destined for the destination device is executed a predetermined number of times,
The instruction is transmitted to the destination device for the predetermined number of times, and the route information from the own device to the destination device and the route information from the destination device to the own device for the predetermined number of times, the number of matches or match the number of times not to Ru is counted,
Communication path acquisition program.
第1及び第2の装置を含む通信ネットワークシステムであって、
前記第1の装置は、
宛先までに経由する中継装置の情報を収集するための通信経路取得コマンドを前記第2の装置を宛先として実行し、前記第1の装置から前記第2の装置までの経路情報を取得する経路取得部と、
前記第1の装置を宛先とする通信経路取得コマンドの実行と、該実行結果として得られた前記第2の装置から前記第1の装置までの経路情報の通知と、の指示を前記第2の装置に送信し、前記第2の装置から前記第1の装置までの経路情報を受信し、前記自装置から前記宛先装置までの経路情報と、前記宛先装置から前記自装置までの経路情報と、が一致するか否かを判定する制御部と、
前記第2の装置は、
前記第1の装置から前記指示の受信に応じて、前記第1の装置を宛先とする通信経路取得コマンドを実行する経路取得部と、
前記第2の装置から前記第1の装置までの経路情報を取得して前記第1の装置に送信する制御部と、
を備え
前記第1の装置の前記経路取得部は、前記宛先装置を宛先とする通信経路取得コマンドを所定回数実行し、
前記第1の装置の前記制御部は、前記所定回数、前記宛先装置に対して前記指示を送信し、前記所定回数分の、前記自装置から前記宛先装置までの経路情報と、前記宛先装置から前記自装置までの経路情報と、について、一致する回数または一致しない回数を計数する、
通信ネットワークシステム。
A communication network system including first and second devices,
The first device includes:
A route acquisition command for acquiring a route information from the first device to the second device by executing a communication route acquisition command for collecting information of relay devices that pass through the destination as the second device. And
Instructions for execution of a communication route acquisition command destined for the first device and notification of route information from the second device to the first device obtained as a result of the execution are sent to the second device Transmitting to the device, receiving route information from the second device to the first device, route information from the own device to the destination device, route information from the destination device to the own device, a control unit but to determine whether or not to match,
The second device includes:
A route acquisition unit that executes a communication route acquisition command destined for the first device in response to receiving the instruction from the first device;
A control unit for acquiring route information from the second device to the first device and transmitting the route information to the first device;
Equipped with a,
The route acquisition unit of the first device executes a communication route acquisition command destined for the destination device a predetermined number of times,
The control unit of the first device transmits the instruction to the destination device for the predetermined number of times, the route information from the own device to the destination device for the predetermined number of times, and the destination device Counting the number of times of matching or not matching the route information to the own device,
Communication network system.
JP2015056219A 2015-03-19 2015-03-19 Communication device, communication path acquisition method, communication path acquisition program, and communication network system Active JP6454190B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015056219A JP6454190B2 (en) 2015-03-19 2015-03-19 Communication device, communication path acquisition method, communication path acquisition program, and communication network system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015056219A JP6454190B2 (en) 2015-03-19 2015-03-19 Communication device, communication path acquisition method, communication path acquisition program, and communication network system

Publications (2)

Publication Number Publication Date
JP2016178423A JP2016178423A (en) 2016-10-06
JP6454190B2 true JP6454190B2 (en) 2019-01-16

Family

ID=57070265

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015056219A Active JP6454190B2 (en) 2015-03-19 2015-03-19 Communication device, communication path acquisition method, communication path acquisition program, and communication network system

Country Status (1)

Country Link
JP (1) JP6454190B2 (en)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4571006B2 (en) * 2005-04-19 2010-10-27 エヌ・ティ・ティ・コミュニケーションズ株式会社 Network control device, network system, and program
JP2009065579A (en) * 2007-09-10 2009-03-26 Nec Corp Time synchronizing system, time synchronizing method, node, and program

Also Published As

Publication number Publication date
JP2016178423A (en) 2016-10-06

Similar Documents

Publication Publication Date Title
CN104967585B (en) A kind of method and apparatus of remote debugging mobile terminal
JP5880010B2 (en) Communication system, network storage, server device, and program
CN103974376A (en) Network connection assisting system and method
US10237903B2 (en) Remote maintenance system
CN104158701A (en) Gateway function testing method and device
CN104468265A (en) Method and device for detecting online states of local area network terminals
CN104918296B (en) System and method is assisted in network connection
US9641595B2 (en) System management apparatus, system management method, and storage medium
US20150047009A1 (en) Access control method, access control system and access control device
JP6454190B2 (en) Communication device, communication path acquisition method, communication path acquisition program, and communication network system
CN110943962B (en) Authentication method, network equipment, authentication server and forwarding equipment
JP2007335960A (en) Information providing apparatus and information providing method, and program
JP2019149741A (en) Management system and management method
TWI795619B (en) Gateway device with built-in server module and communication system thereof
JP6255468B2 (en) Mobile terminal, communication system, and mobile terminal program
CN104144228A (en) NETWORK STORAGE APPARATUS and control method thereof
US9330030B2 (en) Bridge decoder for a vehicle infotainment system
US20230164558A1 (en) Network Device, Communication Control System, Communication Control Method, and Non-Transitory Computer Readable Storage Medium
US20240129184A1 (en) Setting changing apparatus, setting changing method and program
JP6760894B2 (en) Restart instruction notification device and restart instruction notification method
US20150052356A1 (en) Information processing apparatus and method
JP4627989B2 (en) Method, interface unit, communication system, computer readable medium, and apparatus for establishing communication between a plurality of communication devices
JP6336786B2 (en) Network system, route analysis device, virtual relay device, route search method, route search program
JP2016129030A (en) Communication system, network storage, server device, and program
JP4380443B2 (en) COMMUNICATION DEVICE AND ITS CONTROL METHOD

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20171201

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20180914

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20180925

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20181024

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20181214

R150 Certificate of patent or registration of utility model

Ref document number: 6454190

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350