JP2007081938A - Apparatus diagnostic system - Google Patents

Apparatus diagnostic system Download PDF

Info

Publication number
JP2007081938A
JP2007081938A JP2005268396A JP2005268396A JP2007081938A JP 2007081938 A JP2007081938 A JP 2007081938A JP 2005268396 A JP2005268396 A JP 2005268396A JP 2005268396 A JP2005268396 A JP 2005268396A JP 2007081938 A JP2007081938 A JP 2007081938A
Authority
JP
Japan
Prior art keywords
packet
destination
duplicate packet
monitoring server
address
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2005268396A
Other languages
Japanese (ja)
Inventor
Hiroyuki Kanda
博之 神田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP2005268396A priority Critical patent/JP2007081938A/en
Publication of JP2007081938A publication Critical patent/JP2007081938A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide an apparatus diagnostic system capable of diagnosing a state of an apparatus independently of an operating state of an application. <P>SOLUTION: The apparatus diagnostic system 10 includes: a diagnostic object apparatus 12 being an object of apparatus diagnosis; and a monitoring server 13 for monitoring a communication state of the diagnostic object apparatus 12. A network interface driver 31 of the diagnostic object apparatus 12 includes: a copy packet acquisition section 316 for acquiring a copy of a packet to be transmitted/received; a destination setting section 317 for setting an address of the monitoring server as a destination address of the copy packet acquired by the copy packet acquisition section 316; and a copy packet transmission section 316 for transmitting the copy packet to the destination set by the destination setting section 317. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

本発明は、ネットワークを介して装置の状態を診断できる装置診断システムに関するものである。   The present invention relates to a device diagnosis system that can diagnose the state of a device via a network.

従来から、ネットワークに接続された装置の状態を診断する保守管理システムが知られていた。特許文献1は、従来の保守管理システムの一例を開示している。特許文献1に記載された保守管理システムは、印刷装置と印刷装置にデータを供給する上位装置とを備える。印刷装置に障害が発生すると、印刷装置は、障害の解析に必要な情報を収集し、収集した情報と、発生した障害を示す障害情報を、電子メールとしてメールサーバに送信する。このように構成された保守管理システムにより、保守者がメールサーバにアクセスすることにより障害を解析するための情報を取得できる。
特開2000−29807号公報
Conventionally, a maintenance management system for diagnosing the state of a device connected to a network has been known. Patent Document 1 discloses an example of a conventional maintenance management system. The maintenance management system described in Patent Document 1 includes a printing device and a host device that supplies data to the printing device. When a failure occurs in the printing device, the printing device collects information necessary for failure analysis, and transmits the collected information and failure information indicating the failure that occurred to the mail server as an e-mail. With the maintenance management system configured as described above, information for analyzing a failure can be acquired by a maintenance person accessing the mail server.
JP 2000-29807 A

しかしながら、上記した保守管理システムにおいては、システムが障害を起こしたときに処理状態を監視する印刷装置も停止してしまう可能性がある。この場合には管理者に障害が通知されることがないため状況を把握できないという問題がある。また、原因が不明の障害が発生したとき、その原因となった通信の内容を調べるには新たにアプリケーションに通信ログを出力する機能などを追加する必要があるため、解析をすぐに行えないという問題があった。   However, in the above-described maintenance management system, there is a possibility that the printing apparatus that monitors the processing state will also stop when the system fails. In this case, there is a problem that the situation cannot be grasped because the administrator is not notified of the failure. In addition, when a failure with an unknown cause occurs, it is necessary to add a function to output a communication log to the application in order to examine the content of the communication that caused the failure, so analysis cannot be performed immediately. There was a problem.

本発明は、上記背景に鑑みて、アプリケーションの動作状態にかかわらず、装置の状態を診断できる装置診断システムを提供することを目的とする。   In view of the above background, an object of the present invention is to provide a device diagnosis system that can diagnose the state of a device regardless of the operating state of an application.

本発明の装置診断システムは、診断の対象となる診断対象装置と、前記診断対象装置の通信状態を監視する監視サーバとを備え、前記診断対象装置は、ネットワークを通して送受信するパケットの複製を取得する複製パケット取得部と、前記複製パケット取得部にて取得した複製パケットの宛先アドレスとして前記監視サーバのアドレスを設定する宛先設定部と、前記宛先設定部にて設定された宛先に前記複製パケットを送信する複製パケット送信部とを含むネットワークインターフェースドライバを備えた構成を有する。   The apparatus diagnosis system of the present invention includes a diagnosis target apparatus to be diagnosed and a monitoring server that monitors a communication state of the diagnosis target apparatus, and the diagnosis target apparatus acquires a copy of a packet transmitted and received through a network. A duplicate packet acquisition unit; a destination setting unit that sets an address of the monitoring server as a destination address of the duplicate packet acquired by the duplicate packet acquisition unit; and the duplicate packet is transmitted to the destination set by the destination setting unit And a duplicate packet transmission unit that includes a network interface driver.

この構成により、診断対象装置のネットワークインターフェースドライバがネットワークを通して送受信されるパケットの複製を生成し、複製パケットを監視サーバに送信するので、監視サーバにおいて診断対象装置の通信状態を把握し、診断対象装置の状態を診断できる。診断対象装置において、送受信パケットの複製および転送はネットワークインターフェースドライバにて行われるので、診断対象装置のアプリケーションの動作状態にかかわりなく、送受信パケットを転送することができる。   With this configuration, since the network interface driver of the diagnosis target device generates a copy of the packet transmitted / received through the network and transmits the copy packet to the monitoring server, the monitoring server grasps the communication state of the diagnosis target device, and the diagnosis target device Can be diagnosed. In the diagnosis target apparatus, since the transmission / reception packet is copied and transferred by the network interface driver, the transmission / reception packet can be transferred regardless of the operation state of the application of the diagnosis target apparatus.

本発明の装置診断システムにおいて、前記宛先設定部は、前記複製パケット取得部にて取得した複製パケットのMACアドレスフィールド、およびIPヘッダフィールドを前記監視サーバの宛先アドレスに変更する構成を有する。   In the apparatus diagnosis system of the present invention, the destination setting unit has a configuration in which the MAC address field and the IP header field of the duplicate packet acquired by the duplicate packet acquisition unit are changed to the destination address of the monitoring server.

この構成により、複製パケットを監視サーバに転送することができる。   With this configuration, the duplicate packet can be transferred to the monitoring server.

本発明の装置診断システムにおいて、前記宛先設定部は、前記複製パケット取得部にて取得した複製パケットをカプセル化し、カプセル化したデータに、前記監視サーバを宛先とするMACヘッダと、IPヘッダと、UDPヘッダとを付加する構成を有する。   In the apparatus diagnosis system of the present invention, the destination setting unit encapsulates the duplicate packet acquired by the duplicate packet acquisition unit, and in the encapsulated data, a MAC header destined for the monitoring server, an IP header, It has a configuration for adding a UDP header.

この構成により、送受信されるパケットの宛先の情報も複製した複製パケットを監視サーバに転送することができる。   With this configuration, it is possible to transfer a duplicate packet in which destination information of a packet to be transmitted and received is duplicated to the monitoring server.

本発明の装置診断システムにおいて、前記宛先設定部は、前記カプセル化したデータに時刻情報を付加する構成を有する。   In the apparatus diagnosis system of the present invention, the destination setting unit has a configuration for adding time information to the encapsulated data.

この構成により、パケットの送信時刻および受信時刻を監視サーバに伝えることができるので、詳しい診断が可能となる。   With this configuration, the transmission time and reception time of the packet can be transmitted to the monitoring server, so that detailed diagnosis is possible.

本発明の装置診断システムにおいて、前記宛先設定部は、前記複製パケットを監視サーバに転送するか否かを定める転送判定条件をあらかじめ記憶しておき、前記転送判定条件に基づいて宛先アドレスの設定を行う構成を有する。   In the apparatus diagnosis system of the present invention, the destination setting unit stores in advance a transfer determination condition for determining whether or not to transfer the duplicate packet to a monitoring server, and sets a destination address based on the transfer determination condition. It has a configuration to perform.

この構成により、監視サーバに転送するパケットを選別することができる。   With this configuration, packets to be transferred to the monitoring server can be selected.

本発明の装置診断システムにおいて、前記複製パケット取得部は、ネットワークインターフェースドライバの受信バッファに書き込まれたパケット、および送信バッファに書き込まれるパケットの複製を取得し、前記複製パケット送信部は、前記宛先設定部にて宛先アドレスの設定されたパケットを前記送信バッファに書き込む構成を有する。   In the apparatus diagnosis system of the present invention, the duplicate packet acquisition unit acquires a packet written in a reception buffer of a network interface driver and a copy of a packet written in a transmission buffer, and the duplicate packet transmission unit includes the destination setting A packet in which the destination address is set in the transmission section is written in the transmission buffer.

この構成により、設定された宛先アドレスに従って、パケットを送信することができる。   With this configuration, a packet can be transmitted according to the set destination address.

本発明の診断対象装置は、ネットワークを介して受信するパケットを記憶する受信バッファと、ネットワークを介して送信するパケットを記憶する送信バッファと、前記受信バッファおよび前記送信バッファに記憶されたパケットの複製を取得する複製パケット取得部と、前記複製パケット取得部にて取得した複製パケットの宛先アドレスとして前記監視サーバのアドレスを設定する宛先設定部と、前記宛先設定部にて宛先アドレスが設定された複製パケットを前記送信バッファに書き込む複製パケット送信部とを含むネットワークインターフェースドライバを備えた構成を有する。   The diagnosis object apparatus of the present invention includes a reception buffer for storing a packet received via a network, a transmission buffer for storing a packet to be transmitted via the network, and a copy of the packet stored in the reception buffer and the transmission buffer. A duplicate packet acquisition unit for acquiring the destination address, a destination setting unit for setting the address of the monitoring server as a destination address of the duplicate packet acquired by the duplicate packet acquisition unit, and a replica for which the destination address is set by the destination setting unit A network interface driver including a duplicate packet transmission unit that writes a packet to the transmission buffer;

この構成により、本発明の装置診断システムと同様に、ネットワークインターフェースドライバにて送受信パケットの複製および転送を行うので、アプリケーションの動作状態にかかわりなく、送受信パケットを転送することができ、監視サーバにおいて診断対象装置の通信状態を把握し、診断対象装置の状態を診断できる。また、本発明の装置診断システムの各種の構成を本発明の診断対象装置に適用することも可能である。   With this configuration, similar to the device diagnosis system of the present invention, since the network interface driver copies and forwards the transmission / reception packet, the transmission / reception packet can be transferred regardless of the operating state of the application, and the monitoring server performs the diagnosis. The communication state of the target device can be grasped, and the state of the diagnosis target device can be diagnosed. Various configurations of the apparatus diagnosis system of the present invention can also be applied to the diagnosis target apparatus of the present invention.

本発明によれば、ネットワークインターフェースドライバにて送受信パケットの複製および転送を行うので、診断対象装置のアプリケーションの動作状態にかかわりなく、送受信パケットを転送することができ、監視サーバにおいて通信状態を把握し、診断対象装置の状態を診断できるというすぐれた効果を有する。   According to the present invention, since the network interface driver copies and forwards the transmission / reception packet, the transmission / reception packet can be transferred regardless of the operation state of the application of the diagnosis target device, and the monitoring server grasps the communication state. It has an excellent effect that the state of the diagnosis target device can be diagnosed.

以下、本発明の実施の形態の装置診断システム10について、図面を用いて説明する。
(第1の実施の形態)
図1は、本実施の形態の装置診断システム10によって診断される診断対象装置12の内部構成を示すブロック図である。図1を用いて診断対象装置12の構成について説明する前に、本実施の形態の装置診断システム10の構成について説明する。
Hereinafter, an apparatus diagnosis system 10 according to an embodiment of the present invention will be described with reference to the drawings.
(First embodiment)
FIG. 1 is a block diagram showing an internal configuration of a diagnosis target apparatus 12 diagnosed by the apparatus diagnosis system 10 of the present embodiment. Before describing the configuration of the diagnosis target device 12 with reference to FIG. 1, the configuration of the device diagnosis system 10 of the present embodiment will be described.

図2は、本発明の第1の実施の形態の装置診断方法を説明するシステムの概略構成を示す図である。図2に示すように、装置診断システム10は、診断対象装置12と、監視サーバ13と、クライアント装置14とを備えている。診断対象装置12、監視サーバ13、クライアント装置14は、ネットワーク11によって接続されている。   FIG. 2 is a diagram showing a schematic configuration of a system for explaining the apparatus diagnosis method according to the first embodiment of the present invention. As illustrated in FIG. 2, the device diagnosis system 10 includes a diagnosis target device 12, a monitoring server 13, and a client device 14. The diagnosis target device 12, the monitoring server 13, and the client device 14 are connected by a network 11.

診断対象装置12は、クライアント装置14とネットワーク11を介して通信を行う。例えば、診断対象装置12は、クライアント装置14が送信した要求メッセージに対して応答メッセージを返答する。診断対象装置12は、クライアント装置14との間で送受信するパケットを監視サーバ13へ転送する。   The diagnosis target device 12 communicates with the client device 14 via the network 11. For example, the diagnosis target device 12 returns a response message to the request message transmitted by the client device 14. The diagnosis target device 12 transfers a packet transmitted / received to / from the client device 14 to the monitoring server 13.

監視サーバ13は、診断対象装置12から転送されたパケットを受信して記憶する。これにより、診断対象装置12が故障したときなどに、記憶したパケットを参照することによって故障の原因を解析できる。   The monitoring server 13 receives and stores the packet transferred from the diagnosis target device 12. Thereby, when the diagnosis target device 12 fails, the cause of the failure can be analyzed by referring to the stored packet.

図1を用いて、診断対象装置12について説明する。図1に示されるように、診断対象装置12は、ネットワーク11を介して通信を行うためのネットワークインターフェースドライバ(以下、「ドライバ」という)31と、例えばクライアント装置14からの要求に応じて印刷やデータベース検索等の処理を行うアプリケーション33と、ドライバ31とアプリケーション33との間のパケットの受け渡しを行うプロトコルスタック32とを備えている。ドライバ31は、ネットワーク11からパケットを受信するパケット受信部311と、パケット受信部311にて受信したパケットを記憶する受信バッファ313と、送信パケットを記憶する送信バッファ314と、送信バッファ314に記憶されたパケットを送信するパケット送信部312とを有している。これらの構成は、通常のドライバの構成と同じである。   The diagnosis target device 12 will be described with reference to FIG. As illustrated in FIG. 1, the diagnosis target device 12 prints a network interface driver (hereinafter referred to as “driver”) 31 for performing communication via the network 11, for example, in response to a request from the client device 14. An application 33 that performs processing such as database search and a protocol stack 32 that transfers packets between the driver 31 and the application 33 are provided. The driver 31 is stored in a packet receiver 311 that receives a packet from the network 11, a reception buffer 313 that stores a packet received by the packet receiver 311, a transmission buffer 314 that stores a transmission packet, and a transmission buffer 314. A packet transmission unit 312 for transmitting the received packet. These configurations are the same as those of a normal driver.

ドライバ31は、診断対象装置12が送受信するパケットを転送するパケット転送処理部315を備えている。パケット転送処理部315はプロトコルスタック32が受信バッファ313から読み込むパケットの複製を取り込み、更にプロトコルスタック32が送信バッファ314に書き込むパケットの複製を取り込む。そして、転送情報34を参照して取り込んだパケットが監視サーバ13に届くようにパケットを修正し、送信バッファ314に書き込む。パケット転送処理部315は、複製パケット取得部316と、宛先生成部317と、複製パケット書込部318とを有する。   The driver 31 includes a packet transfer processing unit 315 that transfers packets transmitted and received by the diagnosis target device 12. The packet transfer processing unit 315 captures a copy of the packet that the protocol stack 32 reads from the reception buffer 313, and further captures a copy of the packet that the protocol stack 32 writes to the transmission buffer 314. Then, the packet is corrected so that the packet taken in with reference to the transfer information 34 reaches the monitoring server 13 and is written in the transmission buffer 314. The packet transfer processing unit 315 includes a duplicate packet acquisition unit 316, a destination generation unit 317, and a duplicate packet writing unit 318.

複製パケット取得部316は、プロトコルスタック32が受信バッファ313から読み込むパケットの複製と、プロトコルスタック32が送信バッファ314に書き込むパケットを複製して取得する。   The duplicate packet acquisition unit 316 acquires a duplicate of the packet read by the protocol stack 32 from the reception buffer 313 and the packet that the protocol stack 32 writes to the transmission buffer 314.

宛先生成部317は、複製パケット取得部316にて取得した複製パケットの宛先アドレスを生成する。宛先生成部317は、転送情報テーブル34に接続されている。   The destination generation unit 317 generates a destination address of the duplicate packet acquired by the duplicate packet acquisition unit 316. The destination generation unit 317 is connected to the transfer information table 34.

図3は、転送情報テーブル34のデータの例を示す図である。この転送情報テーブル34は、例えば、RAM、ROM、またはハードディスクドライブなどの磁気記憶装置に記録される。転送情報テーブル34は、監視サーバ13のMACアドレス、IPアドレスおよびポート番号を保持している。診断対象装置12と監視サーバ13とがルータやアドレス変換装置などを介して接続されている場合は、監視サーバのMACアドレス及びIPアドレスは適宜対応を取ったものを転送情報テーブル34に記録しておく。   FIG. 3 is a diagram illustrating an example of data in the transfer information table 34. The transfer information table 34 is recorded in a magnetic storage device such as a RAM, a ROM, or a hard disk drive. The transfer information table 34 holds the MAC address, IP address, and port number of the monitoring server 13. When the diagnosis target device 12 and the monitoring server 13 are connected via a router, an address conversion device, etc., the MAC address and IP address of the monitoring server are recorded in the transfer information table 34 as appropriate. deep.

また、転送情報テーブル34は、転送判定条件の情報を保持する。転送判定条件とは、診断対象装置12が送受信するパケットを監視サーバ13に転送するか否かを判定するための条件である。この転送判定条件には、IPアドレス情報とポート情報が含まれ、これらの情報に合致するか合致しないかによって判定する。この条件は、複数登録することができる。図3に示す転送情報テーブル34によれば、192.168.0.60のIPアドレスをもつ装置の任意のポートを送信元、診断対象装置12のポート番号5002を送信先としているパケットと、診断対象装置12のポート番号5002を送信元、192.168.0.60のIPアドレスをもつ装置の任意のポートを送信先としているパケットをパケット転送処理部315が読みとったときに転送処理を行う。なお、この例では、保持された条件に合致する場合に宛先アドレスを設定して転送を行うが、保持された条件に合致しない場合に宛先アドレスを設定することとしてもよい。   The transfer information table 34 holds information on transfer determination conditions. The transfer determination condition is a condition for determining whether or not to transfer a packet transmitted and received by the diagnosis target device 12 to the monitoring server 13. This transfer determination condition includes IP address information and port information, and it is determined based on whether or not these information matches. A plurality of these conditions can be registered. According to the transfer information table 34 shown in FIG. 3, a packet having an arbitrary port of a device having an IP address of 192.168.0.60 as a transmission source and a port number 5002 of the diagnosis target device 12 as a transmission destination is diagnosed. When the packet transfer processing unit 315 reads a packet whose source is the port number 5002 of the target device 12 and whose destination is any port of the device having the IP address of 192.168.0.60, the transfer processing is performed. In this example, when the stored condition is met, the destination address is set and the transfer is performed. However, when the stored condition is not met, the destination address may be set.

宛先生成部317は、転送情報テーブル34を参照して、複製パケットの宛先アドレスを設定する。本実施の形態では、複製パケットのMACヘッダおよびIPヘッダに記録された宛先アドレスを、転送情報テーブル34に記録された宛先アドレスに書き換える。   The destination generation unit 317 refers to the transfer information table 34 and sets the destination address of the duplicate packet. In this embodiment, the destination address recorded in the MAC header and IP header of the duplicate packet is rewritten to the destination address recorded in the transfer information table 34.

複製パケット書込部318は、宛先生成部317にて宛先アドレスが設定された複製パケットを送信バッファ314に書き込む。これにより、送信バッファ314に書き込まれた複製パケットが、パケット送信部312によって送信される。   The duplicate packet writing unit 318 writes the duplicate packet in which the destination address is set by the destination generation unit 317 in the transmission buffer 314. As a result, the duplicate packet written in the transmission buffer 314 is transmitted by the packet transmission unit 312.

プロトコルスタック32は、プロトコル処理、およびネットワークインタフェースドライバ31とアプリケーションアイコン33とのパケットの受け渡しを行う。   The protocol stack 32 performs protocol processing and packet transfer between the network interface driver 31 and the application icon 33.

次に、本実施の形態の診断対象装置12の動作について説明する。診断対象装置12がクライアント装置14からUDPパケットを受信すると、パケット受信部311は受信したパケットを受信バッファ313に記録する。次に、パケット転送処理部315は、そのUDPパケットの複製を読み取る。   Next, the operation of the diagnosis target apparatus 12 according to the present embodiment will be described. When the diagnosis target device 12 receives a UDP packet from the client device 14, the packet reception unit 311 records the received packet in the reception buffer 313. Next, the packet transfer processing unit 315 reads a copy of the UDP packet.

図4(a)は、受信バッファ313から読み取ったパケットの例を示す図である。図4(a)に示すように、パケットには、Ethernet(登録商標)ヘッダ、IPヘッダおよびUDPヘッダが付されている。受信バッファから読み取ったパケットは、クライアント装置14から診断対象装置12宛てのパケットであるので、送信元MACアドレスには、クライアント装置14のMACアドレス、送信元IPアドレスにはクライアント装置14のIPアドレスがそれぞれ書き込まれており、宛先MACアドレスには、診断対象装置12のMACアドレス、宛先IPアドレスには診断対象装置12のIPアドレスが書き込まれている。ここでは、受信パケットの複製パケットを生成する例について説明するが、送信パケットについても同様に複製パケットを生成する。   FIG. 4A is a diagram illustrating an example of a packet read from the reception buffer 313. As shown in FIG. 4A, the packet has an Ethernet (registered trademark) header, an IP header, and a UDP header. Since the packet read from the reception buffer is a packet addressed to the diagnosis target device 12 from the client device 14, the MAC address of the client device 14 is the source MAC address, and the IP address of the client device 14 is the source IP address. The MAC address of the diagnosis target device 12 is written in the destination MAC address, and the IP address of the diagnosis target device 12 is written in the destination IP address. Although an example of generating a duplicate packet of a received packet will be described here, a duplicate packet is similarly generated for a transmission packet.

転送処理部315は、転送情報テーブル34に保持されたデータに従って、Ethernet(登録商標)アドレスおよびIPアドレスを書き換える。本実施の形態では、複製パケットを診断対象装置12から監視サーバ13に転送するので、図4(b)に示すように、宛先アドレスを監視サーバ13のMACアドレス、IPアドレスに書き換え、送信元アドレスを監視対象サーバ12のMACアドレス、IPアドレスに書き換える。また、ヘッダチェックサムについては、書き換えを行った後のIPアドレスで再計算し、計算された数値を書き込む。さらに、宛先ポート番号は、監視サーバ13が受信待ちをしているポート番号に変更する。   The transfer processing unit 315 rewrites the Ethernet (registered trademark) address and the IP address according to the data held in the transfer information table 34. In this embodiment, since the duplicate packet is transferred from the diagnosis target apparatus 12 to the monitoring server 13, the destination address is rewritten with the MAC address and IP address of the monitoring server 13 as shown in FIG. To the MAC address and IP address of the monitored server 12. Also, the header checksum is recalculated with the IP address after rewriting, and the calculated numerical value is written. Further, the destination port number is changed to a port number on which the monitoring server 13 is waiting for reception.

パケット転送処理部315は、宛先アドレスを書き換えたパケットを複製パケット書込部318によって送信バッファ314に書き込む。パケット送信部312は、送信バッファ314に記憶されたパケットを、そのヘッダに書き込まれたアドレスに応じて送信する。複製パケットのヘッダには、宛先として監視サーバ13のMACアドレスおよびIPアドレスが書き込まれているので、複製パケットは監視サーバ13に送信される。
以上、本発明の第1の実施の形態の装置診断システム10について説明した。
The packet transfer processing unit 315 writes the packet whose destination address has been rewritten to the transmission buffer 314 by the duplicate packet writing unit 318. The packet transmission unit 312 transmits the packet stored in the transmission buffer 314 according to the address written in the header. Since the MAC address and IP address of the monitoring server 13 are written as the destination in the header of the duplicate packet, the duplicate packet is transmitted to the monitoring server 13.
The apparatus diagnosis system 10 according to the first embodiment of the present invention has been described above.

第1の実施の形態の装置診断システム10によれば、パケット転送処理部315によって、ネットワーク11を通して受信したパケット及び送信するパケットを取り込み、転送情報テーブル34に保持した情報に基づいてEthernet(登録商標)ヘッダおよびIPヘッダを書き換え、受信したパケット及び送信するパケットを監視サーバ13に送信することができる。これにより、監視サーバ13では、診断対象装置12が送受信するパケットをアプリケーション33の動作状態に依存せずに調査することができる。例えば、アプリケーション33の動作が停止してしまった場合でも、診断対象装置12は、監視サーバ13にパケットを転送できるので、監視サーバ13で状況を把握できる。   According to the apparatus diagnosis system 10 of the first embodiment, the packet transfer processing unit 315 takes in packets received and transmitted through the network 11 and uses Ethernet (registered trademark) based on information held in the transfer information table 34. ) The header and the IP header can be rewritten, and the received packet and the packet to be transmitted can be transmitted to the monitoring server 13. Thereby, the monitoring server 13 can investigate the packet transmitted and received by the diagnosis target device 12 without depending on the operation state of the application 33. For example, even when the operation of the application 33 is stopped, the diagnosis target device 12 can transfer the packet to the monitoring server 13, so that the monitoring server 13 can grasp the situation.

また、本実施の形態の装置診断システム10の診断対象装置12において、アプリケーション33には特別な機能を搭載する必要がないので、汎用性に富むという効果も得られる。さらに、装置自体に障害の発生を検出する仕組みが不要で、例えば、電子メールによる障害情報通知といった複雑な動作を必要としないので、組み込み装置などのように処理速度が遅くメモリ容量が小さい装置において大きな効果が期待できる。   In addition, in the diagnosis target apparatus 12 of the apparatus diagnosis system 10 according to the present embodiment, the application 33 does not need to be equipped with a special function, so that an effect of being versatile can be obtained. Furthermore, since the device itself does not need a mechanism for detecting the occurrence of a failure, and does not require a complicated operation such as notification of failure information by e-mail, for example, in a device having a low processing speed and a small memory capacity such as an embedded device. A big effect can be expected.

また、第1の実施の形態では、転送情報テーブル34に転送判定条件の情報が含まれているので、転送情報テーブル34の転送判定条件を参照し、パケットと判定条件とを比較することにより、パケット転送処理部315が転送するパケットを選別することができる効果が得られる。   Further, in the first embodiment, since the transfer information table 34 includes information on the transfer determination condition, by referring to the transfer determination condition in the transfer information table 34 and comparing the packet with the determination condition, There is an effect that the packet transfer processing unit 315 can select the packets to be transferred.

(第2の実施の形態)
次に、本発明の第2の実施の形態の装置診断システム10について説明する。第2の実施の形態の装置診断システム10は、第1の装置診断システム10と基本的な構成は同じであるが、パケット転送処理部315の宛先生成部317における宛先アドレスの設定方法が異なる。
(Second Embodiment)
Next, the apparatus diagnosis system 10 according to the second embodiment of the present invention will be described. The device diagnosis system 10 according to the second embodiment has the same basic configuration as the first device diagnosis system 10, but the destination address setting method in the destination generation unit 317 of the packet transfer processing unit 315 is different.

図5(a)は、受信バッファ313から読み取ったパケットの例を示す図である。第2の実施の形態においては、宛先生成部317は、Ethernet(登録商標)ヘッダ、IPヘッダおよびTCPヘッダの内容を書き換えるのではなく、これらの情報とデータをUDPパケットにカプセル化する。そして、宛先生成部317は、図5(b)に示すように、転送情報テーブル34の情報を参照して、カプセル化したデータにEthernet(登録商標)ヘッダ、IPヘッダおよびUDPヘッダを付したパケットを生成する。   FIG. 5A is a diagram illustrating an example of a packet read from the reception buffer 313. In the second embodiment, the destination generation unit 317 does not rewrite the contents of the Ethernet (registered trademark) header, IP header, and TCP header, but encapsulates these information and data in a UDP packet. Then, as shown in FIG. 5B, the destination generation unit 317 refers to the information in the transfer information table 34, and adds the Ethernet (registered trademark) header, IP header, and UDP header to the encapsulated data. Is generated.

第2の実施の形態の装置診断システム10によれば、転送情報テーブル34に保持した情報に基づいてEthernet(登録商標)ヘッダおよびIPヘッダを生成し、カプセル化したデータに付与することによって、受信したパケット及び送信するパケットを監視サーバ13に送信することができる。これにより、監視サーバ13では、診断対象装置12が送受信するパケットをアプリケーション33の動作状態に依存せずに調査することができるという第1の実施の形態の装置診断システム10と同じ効果が得られる。   According to the apparatus diagnosis system 10 of the second embodiment, an Ethernet (registered trademark) header and an IP header are generated based on information held in the transfer information table 34, and received by encapsulating the data. The transmitted packet and the packet to be transmitted can be transmitted to the monitoring server 13. As a result, the monitoring server 13 can obtain the same effect as the apparatus diagnosis system 10 of the first embodiment in which the packet transmitted / received by the diagnosis target apparatus 12 can be investigated without depending on the operation state of the application 33. .

また、第2の実施の形態では、送受信されるパケットの宛先および送信元の情報もカプセル化して送信されるので、監視サーバ13は詳細な情報により診断対象装置12の診断を行うことができる。   In the second embodiment, since the destination and transmission source information of the transmitted / received packet is also encapsulated and transmitted, the monitoring server 13 can diagnose the diagnosis target device 12 with detailed information.

(第3の実施の形態)
次に、本発明の第3の実施の形態の装置診断システム10について説明する。第3の実施の形態の装置診断システム10は、第2の実施の形態の装置診断システム10と基本的な構成は同じであるが、パケット転送処理部315の宛先生成部317における宛先アドレスの設定方法が異なる。
(Third embodiment)
Next, an apparatus diagnosis system 10 according to a third embodiment of the present invention will be described. The apparatus diagnosis system 10 of the third embodiment has the same basic configuration as the apparatus diagnosis system 10 of the second embodiment, but sets the destination address in the destination generation unit 317 of the packet transfer processing unit 315. The method is different.

図6(a)は、受信バッファ313から読み取ったパケットの例を示す図である。第3の実施の形態においても、第2の実施の形態と同様に、宛先生成部317がEthernet(登録商標)ヘッダ、IPヘッダおよびTCPヘッダの情報とデータをUDPパケットにカプセル化する。そして、カプセル化したデータにEthernet(登録商標)ヘッダ、IPヘッダおよびUDPヘッダを付したパケットを生成する。第3の実施の形態においては、UDPヘッダのUDPペイロード部に時刻情報を加えたパケットを生成する。   FIG. 6A is a diagram illustrating an example of a packet read from the reception buffer 313. Also in the third embodiment, as in the second embodiment, the destination generation unit 317 encapsulates the information and data of the Ethernet (registered trademark) header, the IP header, and the TCP header in a UDP packet. Then, a packet in which an Ethernet (registered trademark) header, an IP header, and a UDP header are added to the encapsulated data is generated. In the third embodiment, a packet is generated by adding time information to the UDP payload portion of the UDP header.

第3の実施の形態の装置診断システム10によれば、監視サーバ13では、受信したパケット及び送信するパケットの時刻情報を得ることができる。これにより、クライアント装置14と診断対象装置12との通信状況からアプリケーションの動作状態を把握することも可能となる。例えば、診断対象装置12がクライアント装置14の要求を受けてタスクを実行し、そのレスポンスを返す動作を行う場合、診断対象装置12のパケットの受信時刻とパケットの送信時刻とを比較することで、アプリケーション33の処理に要した時間を知ることができる。これにより、アプリケーション33の要求に対する反応が通常より遅い状態になった場合に、監視サーバ13が知ることができることにより、診断対象装置12の動作状態が不安定になっていないかどうかを推測することができる。   According to the apparatus diagnosis system 10 of the third embodiment, the monitoring server 13 can obtain time information of received packets and transmitted packets. Thereby, it becomes possible to grasp the operation state of the application from the communication state between the client device 14 and the diagnosis target device 12. For example, when the diagnosis target device 12 receives a request from the client device 14 and executes a task and performs an operation of returning the response, the packet reception time of the diagnosis target device 12 is compared with the packet transmission time. The time required for the processing of the application 33 can be known. As a result, when the response to the request of the application 33 becomes slower than usual, the monitoring server 13 can know so that the operation state of the diagnosis target device 12 is estimated to be unstable. Can do.

本発明は、アプリケーションの動作状態にかかわりなく、送受信パケットを転送することができ、監視サーバにおいて診断対象装置の通信状態を把握し、診断対象装置の状態を診断できるというすぐれた効果を有し、診断対象の装置をリモートで診断する装置診断システム等として有用である。   The present invention can transfer transmission / reception packets regardless of the operation state of the application, has an excellent effect that the monitoring server can grasp the communication state of the diagnosis target device and can diagnose the state of the diagnosis target device, This is useful as a device diagnosis system for remotely diagnosing a device to be diagnosed.

実施の形態の診断対象装置の構成を示す図The figure which shows the structure of the diagnostic object apparatus of embodiment 実施の形態の装置診断システムの構成を示す図The figure which shows the structure of the apparatus diagnostic system of embodiment 転送情報テーブルに記憶されたデータの例を示す図The figure which shows the example of the data memorize | stored in the transfer information table (a)受信バッファから読み取ったパケットの例を示す図(b)宛先アドレスを変更したパケットの例を示す図(A) The figure which shows the example of the packet read from the receiving buffer (b) The figure which shows the example of the packet which changed the destination address (a)受信バッファから読み取ったパケットの例を示す図(b)宛先アドレスを付加したパケットの例を示す図(A) The figure which shows the example of the packet read from the receiving buffer (b) The figure which shows the example of the packet which added the destination address (a)受信バッファから読み取ったパケットの例を示す図(b)宛先アドレスおよび時刻情報を付加したパケットの例を示す図(A) The figure which shows the example of the packet read from the receiving buffer (b) The figure which shows the example of the packet which added destination address and time information

符号の説明Explanation of symbols

10 装置診断システム
11 ネットワーク
12 診断対象装置
13 監視サーバ
14 クライアント装置
31 ネットワークインタフェースドライバ
311 パケット受信部
312 パケット送信部
313 受信バッファ
314 送信バッファ
315 パケット転送処理部
316 複製パケット取得部
317 宛先生成部
318 複製パケット書込部
32 プロトコルスタック
33 アプリケーション
34 転送情報テーブル
DESCRIPTION OF SYMBOLS 10 Apparatus diagnostic system 11 Network 12 Diagnosis target apparatus 13 Monitoring server 14 Client apparatus 31 Network interface driver 311 Packet reception part 312 Packet transmission part 313 Reception buffer 314 Transmission buffer 315 Packet transfer process part 316 Duplicate packet acquisition part 317 Destination generation part 318 Duplication Packet writing unit 32 Protocol stack 33 Application 34 Transfer information table

Claims (7)

診断の対象となる診断対象装置と、
前記診断対象装置の通信状態を監視する監視サーバと、
を備え、
前記診断対象装置は、
ネットワークを通して送受信するパケットの複製を取得する複製パケット取得部と、
前記複製パケット取得部にて取得した複製パケットの宛先アドレスとして前記監視サーバのアドレスを設定する宛先設定部と、
前記宛先設定部にて設定された宛先に前記複製パケットを送信する複製パケット送信部と、
を含むネットワークインターフェースドライバを備えたことを特徴とする装置診断システム。
A diagnostic target device to be diagnosed;
A monitoring server for monitoring a communication state of the diagnosis target device;
With
The diagnostic target device is:
A duplicate packet acquisition unit that acquires a copy of a packet transmitted and received through the network;
A destination setting unit that sets the address of the monitoring server as a destination address of the duplicate packet acquired by the duplicate packet acquisition unit;
A duplicate packet transmission unit that transmits the duplicate packet to the destination set by the destination setting unit;
An apparatus diagnosis system comprising a network interface driver including
前記宛先設定部は、前記複製パケット取得部にて取得した複製パケットのMACアドレスフィールド、およびIPヘッダフィールドを前記監視サーバの宛先アドレスに変更することを特徴とする請求項1に記載の装置診断システム。   The apparatus diagnosis system according to claim 1, wherein the destination setting unit changes a MAC address field and an IP header field of the duplicate packet acquired by the duplicate packet acquisition unit to a destination address of the monitoring server. . 前記宛先設定部は、前記複製パケット取得部にて取得した複製パケットをカプセル化し、カプセル化したデータに、前記監視サーバを宛先とするMACヘッダと、IPヘッダと、UDPヘッダとを付加することを特徴とする請求項1に記載の装置診断システム。   The destination setting unit encapsulates the duplicate packet acquired by the duplicate packet acquisition unit, and adds a MAC header, an IP header, and a UDP header to the monitoring server as the destination to the encapsulated data. The apparatus diagnosis system according to claim 1, wherein 前記宛先設定部は、前記カプセル化したデータに時刻情報を付加することを特徴とする請求項3に記載の装置診断システム。   The apparatus diagnosis system according to claim 3, wherein the destination setting unit adds time information to the encapsulated data. 前記宛先設定部は、前記複製パケットを監視サーバに転送するか否かを定める転送判定条件をあらかじめ記憶しておき、
前記転送判定条件に基づいて宛先アドレスの設定を行うことを特徴とする請求項1記載の装置診断システム。
The destination setting unit stores in advance transfer determination conditions for determining whether or not to transfer the duplicate packet to a monitoring server,
2. The apparatus diagnosis system according to claim 1, wherein a destination address is set based on the transfer determination condition.
前記複製パケット取得部は、ネットワークインターフェースドライバの受信バッファに書き込まれたパケット、および送信バッファに書き込まれるパケットの複製を取得し、
前記複製パケット送信部は、前記宛先設定部にて宛先アドレスの設定されたパケットを前記送信バッファに書き込むことを特徴とする請求項1に記載の装置診断システム。
The duplicate packet acquisition unit acquires a packet written in the reception buffer of the network interface driver and a copy of the packet written in the transmission buffer,
The apparatus diagnostic system according to claim 1, wherein the duplicate packet transmission unit writes a packet in which a destination address is set by the destination setting unit in the transmission buffer.
ネットワークを介して受信するパケットを記憶する受信バッファと、
ネットワークを介して送信するパケットを記憶する送信バッファと、
前記受信バッファおよび前記送信バッファに記憶されたパケットの複製を取得する複製パケット取得部と、
前記複製パケット取得部にて取得した複製パケットの宛先アドレスとして前記監視サーバのアドレスを設定する宛先設定部と、
前記宛先設定部にて宛先アドレスが設定された複製パケットを前記送信バッファに書き込む複製パケット送信部と、
を含むネットワークインターフェースドライバを備えたことを特徴とする診断対象装置。
A receive buffer for storing packets received over the network;
A transmission buffer for storing packets to be transmitted over the network;
A duplicate packet acquisition unit for acquiring a copy of a packet stored in the reception buffer and the transmission buffer;
A destination setting unit that sets the address of the monitoring server as a destination address of the duplicate packet acquired by the duplicate packet acquisition unit;
A duplicate packet transmitting unit for writing a duplicate packet in which a destination address is set in the destination setting unit to the transmission buffer;
An apparatus to be diagnosed comprising a network interface driver including
JP2005268396A 2005-09-15 2005-09-15 Apparatus diagnostic system Pending JP2007081938A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005268396A JP2007081938A (en) 2005-09-15 2005-09-15 Apparatus diagnostic system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005268396A JP2007081938A (en) 2005-09-15 2005-09-15 Apparatus diagnostic system

Publications (1)

Publication Number Publication Date
JP2007081938A true JP2007081938A (en) 2007-03-29

Family

ID=37941743

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005268396A Pending JP2007081938A (en) 2005-09-15 2005-09-15 Apparatus diagnostic system

Country Status (1)

Country Link
JP (1) JP2007081938A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011192216A (en) * 2010-03-16 2011-09-29 Fujitsu Ltd Input/output connecting device, information processing device, and input/output device inspection method
JP2015080193A (en) * 2013-10-17 2015-04-23 韓國電子通信研究院Electronics and Telecommunications Research Institute Network device, and selective information monitoring method using the same
JP2015527786A (en) * 2012-07-02 2015-09-17 トムソン ライセンシングThomson Licensing Method for monitoring wireless link of Wi-Fi node of subscriber premises equipment and subscriber premises equipment using the method

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011192216A (en) * 2010-03-16 2011-09-29 Fujitsu Ltd Input/output connecting device, information processing device, and input/output device inspection method
JP2015527786A (en) * 2012-07-02 2015-09-17 トムソン ライセンシングThomson Licensing Method for monitoring wireless link of Wi-Fi node of subscriber premises equipment and subscriber premises equipment using the method
US10075859B2 (en) 2012-07-02 2018-09-11 Thomson Licensing Method for monitoring a wireless link of a Wi-Fi node of a customer premises equipment device, and customer premises equipment device utilizing the method
JP2015080193A (en) * 2013-10-17 2015-04-23 韓國電子通信研究院Electronics and Telecommunications Research Institute Network device, and selective information monitoring method using the same
US9742699B2 (en) 2013-10-17 2017-08-22 Electronics And Telecommunications Research Institute Network apparatus and selective information monitoring method using the same

Similar Documents

Publication Publication Date Title
US7561569B2 (en) Packet flow monitoring tool and method
US8615604B2 (en) Information processing apparatus, information processing system and computer readable medium for maintaining communication while IP addresses change
US6515967B1 (en) Method and apparatus for detecting a fault in a multicast routing infrastructure
US10897391B2 (en) Fault detection method and node device
US7257737B2 (en) Systems and methods for analyzing bus data
WO2018099249A1 (en) Method, device and system for detecting fault in nfv system
CN101155072B (en) Method, device, and system for detecting layer 2 loop
US20070086449A1 (en) System and method for remote management
US8478869B2 (en) Information processing device and program
JP2021502788A (en) Detection of sources of computer network failures
US20230049713A1 (en) Monitoring data link health using connectionless loops over redundant ip networks
JP2020150430A (en) Information processor, information processing system, method for processing information, and computer program
JP2007081938A (en) Apparatus diagnostic system
JP6733147B2 (en) Communication system, relay method, and relay program
CN112738295B (en) IP address exception handling method, device, computer system and storage medium
WO2018088462A1 (en) Communication controller, communication control method, and program
US20090268728A1 (en) Protocol incompatibility detection
CN106161339A (en) Obtain the method and device of IP access relation
WO2019006014A1 (en) Apparatus and method for correlating network traffic flows on opposite sides of a network address translator
JP5238745B2 (en) Network analysis apparatus and operation method thereof
JP2004200773A (en) Automatic detecting method for protocol nonconformity and automatic detecting apparatus for protocol nonconformity
CN114205218B (en) Container network fault diagnosis method and system
JP6313897B1 (en) COMMUNICATION CONTROL DEVICE, COMMUNICATION CONTROL METHOD, AND PROGRAM
JP2005085078A (en) Network system including power saving dealing device
JP4777932B2 (en) Network management system