[go: up one dir, main page]

JP2009225089A - Communication device and method of capturing packet - Google Patents

Communication device and method of capturing packet Download PDF

Info

Publication number
JP2009225089A
JP2009225089A JP2008067088A JP2008067088A JP2009225089A JP 2009225089 A JP2009225089 A JP 2009225089A JP 2008067088 A JP2008067088 A JP 2008067088A JP 2008067088 A JP2008067088 A JP 2008067088A JP 2009225089 A JP2009225089 A JP 2009225089A
Authority
JP
Japan
Prior art keywords
packet
communication
history information
packets
capture
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.)
Withdrawn
Application number
JP2008067088A
Other languages
Japanese (ja)
Inventor
Masayuki Kano
昌幸 加納
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.)
Murata Machinery Ltd
Original Assignee
Murata Machinery 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 Murata Machinery Ltd filed Critical Murata Machinery Ltd
Priority to JP2008067088A priority Critical patent/JP2009225089A/en
Publication of JP2009225089A publication Critical patent/JP2009225089A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a communication device which can easily obtain a specific packet without designating a packet to be captured in advance, and to provide a method of capturing packets. <P>SOLUTION: A packet capturing section 15 captures packets continuously while PC 10 is powered on. When powered off, the captured packets are stored as captured data 141 in a storage section 14. When a program to be executed by a control section 11 performs communication, history information 142, which contains a communication ID, temporal information relating to communication, information relating to the type of the program are recorded for each communication, is created. A user designates a communication ID to designate a time zone to extract a packet, and also designates extraction conditions corresponding to the type of the program. A packet extraction section 17 extracts a packet from the captured data 141 based on the temporal information and extraction conditions corresponding to the designated communication ID. The extracted packet is displayed on a monitor 13. <P>COPYRIGHT: (C)2010,JPO&INPIT

Description

本発明は、パケット通信ネットワークに接続し、パケットをキャプチャする通信装置およびパケットキャプチャ方法に関する。   The present invention relates to a communication apparatus that connects to a packet communication network and captures a packet, and a packet capture method.

データをパケットに分割した状態で通信を行うパケット通信ネットワークにおいて、特定の機器にデータを送信できないなどの通信エラーが発生することがある。この場合、パケット通信ネットワークの管理者は、通信エラーの原因を特定し、パケット通信ネットワークを早期に復旧させる必要がある。   In a packet communication network that performs communication in a state in which data is divided into packets, a communication error such as inability to transmit data to a specific device may occur. In this case, the administrator of the packet communication network needs to identify the cause of the communication error and restore the packet communication network at an early stage.

パケット通信ネットワークにおいて通信エラーが発生した場合、通信エラーの原因を特定するために、パケットのキャプチャが行われる。管理者は、キャプチャしたパケットを解析することによって、通信エラーの原因を特定することができる。   When a communication error occurs in the packet communication network, packet capture is performed to identify the cause of the communication error. The administrator can identify the cause of the communication error by analyzing the captured packet.

また、特許文献1には、高速ルータを流れるパケットをキャプチャするパケットモニタ方法が開示されている。特許文献1に係るパケットモニタ方法は、高速ルータに入力されたパケットが予め設定したモニタ対象パケットである場合、入力されたパケットを記憶部に格納する。また、入力されたパケットは、元の形のままで宛先に対応する装置に転送される。   Patent Document 1 discloses a packet monitoring method for capturing a packet flowing through a high-speed router. In the packet monitoring method according to Patent Document 1, when a packet input to the high-speed router is a preset monitoring target packet, the input packet is stored in the storage unit. In addition, the input packet is transferred to the device corresponding to the destination in its original form.

特開2004−207962号公報JP 2004-207962 A

上述した特許文献1に係るパケットモニタ方法では、パケットのキャプチャを開始する前に、モニタ対象パケットを設定する必要がある。つまり、特許文献1に係るパケットモニタ方法を用いて通信エラーの原因を特定する場合、管理者は、通信エラーの原因を推定し、推定した原因に対応するパケットをモニタ対象パケットとして指定しなければならない。   In the packet monitoring method according to Patent Document 1 described above, it is necessary to set a monitoring target packet before starting packet capture. That is, when the cause of the communication error is specified using the packet monitoring method according to Patent Document 1, the administrator must estimate the cause of the communication error and specify the packet corresponding to the estimated cause as the monitoring target packet. Don't be.

しかし、管理者が推定した原因と異なる原因で通信エラーが発生している場合、特許文献1に係るパケットモニタ方法では、実際の原因に対応するパケットをキャプチャすることができない。この結果、管理者は、モニタ対象パケットの設定を変更した上で、再度パケットをキャプチャする必要がある。このように、特許文献1に係るパケットモニタ方法を用いた場合、通信エラーの原因の特定に、多くの時間を費やすおそれがあった。   However, when a communication error occurs due to a cause different from the cause estimated by the administrator, the packet monitoring method according to Patent Document 1 cannot capture a packet corresponding to the actual cause. As a result, the administrator needs to capture the packet again after changing the setting of the monitoring target packet. As described above, when the packet monitoring method according to Patent Document 1 is used, there is a risk that a lot of time may be spent identifying the cause of the communication error.

そこで、本発明は前記問題点に鑑み、キャプチャするパケットを予め指定することなく、特定のパケットを容易に抽出することができる通信装置およびパケットキャプチャ方法を提供することを目的とする。   Therefore, in view of the above problems, an object of the present invention is to provide a communication device and a packet capture method that can easily extract a specific packet without specifying a packet to be captured in advance.

上記課題を解決するため、請求項1記載の発明は、パケット通信ネットワークを介して送受信するパケットを継続してキャプチャし、キャプチャした複数のパケットを記憶するキャプチャ部と、前記パケット通信ネットワークに接続する外部装置との間で行われるデータ通信に関する履歴情報を作成する履歴情報作成部と、前記履歴情報に基づいて、前記複数のパケットから前記データ通信に対応するパケットを抽出するパケット抽出部と、を備えることを特徴とする。   In order to solve the above problem, the invention according to claim 1 is configured to continuously capture packets transmitted / received via a packet communication network, and connect to the packet communication network a capture unit that stores a plurality of captured packets. A history information creation unit that creates history information about data communication performed with an external device, and a packet extraction unit that extracts a packet corresponding to the data communication from the plurality of packets based on the history information. It is characterized by providing.

請求項2記載の発明は、請求項1に記載の通信装置において、前記履歴情報は、前記データ通信が行われた時間を示す処理時間情報を含み、前記パケット抽出部は、前記処理時間情報に基づいて、前記データ通信に対応するパケットを抽出することを特徴とする。   According to a second aspect of the present invention, in the communication device according to the first aspect, the history information includes processing time information indicating a time when the data communication is performed, and the packet extraction unit includes the processing time information. Based on this, a packet corresponding to the data communication is extracted.

請求項3記載の発明は、請求項1または請求項2に記載の通信装置において、前記履歴情報は、前記データ通信を行うプログラムを識別するための識別情報を含み、前記パケット抽出部は、前記識別情報に基づいて、前記データ通信に対応するパケットを抽出することを特徴とする。   According to a third aspect of the present invention, in the communication device according to the first or second aspect, the history information includes identification information for identifying a program that performs the data communication, and the packet extraction unit includes A packet corresponding to the data communication is extracted based on the identification information.

請求項4記載の発明は、パケット通信ネットワークを介して通信装置が送受信するパケットを継続してキャプチャし、キャプチャした複数のパケットを記憶するキャプチャステップと、前記通信装置と前記パケット通信ネットワークに接続する外部装置との間で行われるデータ通信に関する履歴情報を作成する履歴情報作成ステップと、前記履歴情報に基づいて、前記複数のパケットから前記データ通信に対応するパケットを抽出するパケット抽出ステップと、を備えることを特徴とする。   According to a fourth aspect of the present invention, a capture step of continuously capturing a packet transmitted / received by a communication device via a packet communication network and storing a plurality of captured packets is connected to the communication device and the packet communication network. A history information creation step for creating history information regarding data communication performed with an external device, and a packet extraction step for extracting a packet corresponding to the data communication from the plurality of packets based on the history information. It is characterized by providing.

本発明の通信装置およびパケットキャプチャ方法は、送受信するパケットを継続的にキャプチャするとともに、データ通信に関する履歴情報を作成する。キャプチャされたパケットのうちデータ通信に対応するパケットが、履歴情報に基づいて抽出される。これにより、ユーザは、データ通信でエラーが発生した場合などに、データ通信に対応するパケットを容易に取得することができる。   The communication apparatus and the packet capture method of the present invention continuously capture packets to be transmitted and received and create history information related to data communication. Of the captured packets, a packet corresponding to data communication is extracted based on the history information. Thereby, the user can easily acquire a packet corresponding to data communication when an error occurs in the data communication.

また、履歴情報には、データ通信が行われた時間を示す処理時間情報が含まれる。これにより、データ通信が行われた時間に対応するパケットを抽出することができる。また、履歴情報には、データ通信を行うプログラムの識別情報が含まれる。これにより、プログラムの特徴に応じたパケットを、データ通信に対応するパケットとして抽出することができる。   Further, the history information includes processing time information indicating a time when data communication is performed. Thereby, the packet corresponding to the time when data communication was performed can be extracted. The history information includes identification information of a program that performs data communication. Thereby, the packet according to the feature of the program can be extracted as a packet corresponding to data communication.

以下、図面を参照しつつ本発明の実施の形態について説明する。図1は、本実施の形態に係るネットワークシステム1の構成図である。図1に示すネットワークシステム1は、パーソナルコンピュータ(Personal Computer。以下「PC」という。)10と、認証サーバ20と、メールサーバ30と、ファイルサーバ40とが、LAN(Local Area Network)50にそれぞれ接続された構成である。このようなネットワークシステム1が、たとえばオフィス内に設置される。   Hereinafter, embodiments of the present invention will be described with reference to the drawings. FIG. 1 is a configuration diagram of a network system 1 according to the present embodiment. A network system 1 shown in FIG. 1 includes a personal computer (hereinafter referred to as “PC”) 10, an authentication server 20, a mail server 30, and a file server 40 in a LAN (Local Area Network) 50. It is a connected configuration. Such a network system 1 is installed in an office, for example.

PC10は、ユーザが使用する端末装置である。ユーザは、LAN50に接続する各サーバが提供するサービスを、PC10を介して利用することができる。認証サーバ20は、ユーザがPC10からネットワークシステム1内の各サーバにアクセスするための認証処理を行う。メールサーバ30は、PC10が電子メールを送信あるいは受信するためのサーバである。ファイルサーバ40は、PC10が作成した文書データ、画像データなどを蓄積する。LAN50には、インターネットあるいは他のLANに接続するためのルータ(図示省略)などが設置されている。   The PC 10 is a terminal device used by a user. The user can use the service provided by each server connected to the LAN 50 via the PC 10. The authentication server 20 performs an authentication process for the user to access each server in the network system 1 from the PC 10. The mail server 30 is a server for the PC 10 to send or receive electronic mail. The file server 40 stores document data, image data, and the like created by the PC 10. The LAN 50 is provided with a router (not shown) for connecting to the Internet or another LAN.

まず、PC10の構成について説明する。PC10は、制御部11と、操作部12と、モニタ13と、記憶部14と、パケットキャプチャ部15と、履歴情報作成部16と、パケット抽出部17と、LANインタフェース18とを備える。   First, the configuration of the PC 10 will be described. The PC 10 includes a control unit 11, an operation unit 12, a monitor 13, a storage unit 14, a packet capture unit 15, a history information creation unit 16, a packet extraction unit 17, and a LAN interface 18.

制御部11は、CPU(Central Processing Unit)、RAM(Random Access Memory)などのハードウェア資源を備えており、PC10の全体制御を行う。制御部11は、これらのハードウェア資源を利用してオペレーティングシステムおよび各種アプリケーションプログラムなどを実行することにより、PC10の各機能を実現する。   The control unit 11 includes hardware resources such as a CPU (Central Processing Unit) and a RAM (Random Access Memory), and performs overall control of the PC 10. The control part 11 implement | achieves each function of PC10 by executing an operating system, various application programs, etc. using these hardware resources.

操作部12は、マウスおよびキーボードなどで構成される。モニタ13は、液晶ディスプレイなどであり、アプリケーションプログラムの実行画面などを表示する。   The operation unit 12 includes a mouse and a keyboard. The monitor 13 is a liquid crystal display or the like, and displays an execution screen of the application program.

記憶部14は、ハードディスク装置などで構成されている。記憶部14は、電子メールソフト143などの各種アプリケーションプログラム、およびキャプチャデータ141、141・・・を格納する。電子メールソフト143は、電子メールの作成、保存および送受信などの処理を行う。   The storage unit 14 is configured by a hard disk device or the like. The storage unit 14 stores various application programs such as e-mail software 143, and capture data 141, 141,. The electronic mail software 143 performs processing such as creation, storage, and transmission / reception of electronic mail.

パケットキャプチャ部15は、LANインタフェース18が送受信するTCPパケット(以下、端に「パケット」という。)をキャプチャする。履歴情報作成部16は、制御部11が実行するアプリケーションプログラムの通信履歴を作成する。パケット抽出部17は、キャプチャデータ141から、ユーザが設定した抽出条件に対応するパケットを抽出する。   The packet capture unit 15 captures TCP packets (hereinafter referred to as “packets”) transmitted and received by the LAN interface 18. The history information creation unit 16 creates a communication history of the application program executed by the control unit 11. The packet extraction unit 17 extracts a packet corresponding to the extraction condition set by the user from the capture data 141.

なお、パケットキャプチャ部15、履歴情報作成部16およびパケット抽出部17は、図1において個別の機能ブロックとして示しているが、実際には、制御部11が備えるハードウェア資源を利用して実行されるアプリケーションプログラムである。   The packet capture unit 15, the history information creation unit 16, and the packet extraction unit 17 are illustrated as individual functional blocks in FIG. 1, but are actually executed using hardware resources included in the control unit 11. Application program.

LANインタフェース18は、LAN50またはインターネットなどに接続された各コンピュータとの間で、TCP(Transmission Control Protocol)/IP(Internet Protocol)などを利用して通信を行う。   The LAN interface 18 communicates with each computer connected to the LAN 50 or the Internet using TCP (Transmission Control Protocol) / IP (Internet Protocol) or the like.

以下、上述の構成を有するPC10がパケットをキャプチャする際の処理の流れについて説明する。図2は、パケットキャプチャ処理の流れを示すフローチャートである。   Hereinafter, a process flow when the PC 10 having the above-described configuration captures a packet will be described. FIG. 2 is a flowchart showing the flow of the packet capture process.

まず、ユーザがPC10の電源をONにすることによって、制御部11は、初期化処理を実行する。また、パケットキャプチャ部15および履歴情報作成部16が起動する。履歴情報作成部16は、記憶部14から履歴情報142を取得する(ステップS11)。なお、履歴情報作成部16は、履歴情報142を取得できない場合、履歴情報142を新たに作成する。   First, when the user turns on the PC 10, the control unit 11 executes an initialization process. Further, the packet capture unit 15 and the history information creation unit 16 are activated. The history information creation unit 16 acquires the history information 142 from the storage unit 14 (step S11). If the history information 142 cannot be acquired, the history information creation unit 16 creates new history information 142.

パケットキャプチャ部15は、LANインタフェース18が送受信するパケットのキャプチャを開始する(ステップS12)。パケットキャプチャ部15は、キャプチャしたパケットを、キャプチャした順にキャプチャデータ141として蓄積する。パケットが蓄積されているキャプチャデータ141は、キャプチャが終了するまでパケットキャプチャ部15によって保持される。また、パケットキャプチャ部15は、以後の処理においても、パケットのキャプチャを継続している。   The packet capture unit 15 starts capturing packets transmitted and received by the LAN interface 18 (step S12). The packet capture unit 15 accumulates captured packets as capture data 141 in the order of capture. The capture data 141 in which the packets are accumulated is held by the packet capture unit 15 until the capture is completed. Further, the packet capture unit 15 continues to capture packets in the subsequent processing.

次に、ユーザが電子メールソフト143の実行を指示することにより、制御部11は、電子メールソフト143を起動する。電子メールソフト143は、ユーザの指示に応じて、メールサーバ30にアクセスして電子メールの送受信を行う。   Next, when the user instructs execution of the e-mail software 143, the control unit 11 activates the e-mail software 143. The e-mail software 143 accesses the mail server 30 and transmits / receives e-mails according to user instructions.

電子メールソフト143がメールサーバ30と通信を開始した場合(ステップS13においてYes)、履歴情報作成部16は、電子メールソフト143が通信を開始したことを示す通信開始情報61を制御部11から取得する(ステップS14)。通信開始情報61には、アプリケーションプログラム名および通信開始時刻が含まれている。通信開始時刻は、PC10がメールサーバ30に対してTCP接続要求を送信した時刻である。履歴情報作成部16は、取得した通信開始情報61に固有の番号である通信IDを割り当て、通信開始情報61を保持する。   When the e-mail software 143 starts communication with the mail server 30 (Yes in step S13), the history information creation unit 16 acquires communication start information 61 indicating that the e-mail software 143 has started communication from the control unit 11. (Step S14). The communication start information 61 includes an application program name and a communication start time. The communication start time is the time when the PC 10 transmits a TCP connection request to the mail server 30. The history information creation unit 16 assigns a communication ID that is a unique number to the acquired communication start information 61 and holds the communication start information 61.

電子メールソフト143がメールサーバ30との通信を終了した場合(ステップS15においてYes)、履歴情報作成部16は、通信終了時刻、通信結果を含む通信終了情報62を制御部11から取得する(ステップS16)。通信結果は、メールサーバ30との通信が正常に終了したか否かを示す情報である。通信終了時刻は、電子メールの送受信の完了、あるいは電子メールの送受信のエラーなどによって、PC10とメールサーバ30との間のTCPコネクションが切断された時刻である。   When the electronic mail software 143 ends communication with the mail server 30 (Yes in step S15), the history information creation unit 16 acquires the communication end information 62 including the communication end time and the communication result from the control unit 11 (step S15). S16). The communication result is information indicating whether or not the communication with the mail server 30 has ended normally. The communication end time is a time at which the TCP connection between the PC 10 and the mail server 30 is disconnected due to completion of transmission / reception of electronic mail or an error in transmission / reception of electronic mail.

次に、履歴情報作成部16は、通信開始情報61と通信終了情報62とに基づいて新たな通信記録を作成し、作成した通信記録を履歴情報142に追加する(ステップS17)。履歴情報142には、通信記録ごとに通信ID、通信開始時刻、通信終了時刻、アプリケーションプログラムの種別、通信結果、通信先のコンピュータのIPアドレスが記録されている(後述する図4参照)。   Next, the history information creation unit 16 creates a new communication record based on the communication start information 61 and the communication end information 62, and adds the created communication record to the history information 142 (step S17). In the history information 142, a communication ID, a communication start time, a communication end time, an application program type, a communication result, and an IP address of a communication destination computer are recorded for each communication record (see FIG. 4 described later).

PC10は、ユーザが電源OFFの指示を入力するまで(ステップS18においてYes)、ステップS13〜S18に示す処理を繰り返す。   The PC 10 repeats the processes shown in steps S13 to S18 until the user inputs an instruction to turn off the power (Yes in step S18).

なお、ステップS13〜S18に示す処理は、電子メールソフト143とは別のアプリケーションプログラムが、LAN50を介して通信を行う際にも実行される。たとえば、認証用プログラムがユーザ名、パスワードなどを認証サーバ20に送信して認証を要求する場合に、新たな通信記録が作成される。FTP(File Transfer Protocol)プログラムがファイルサーバ40にアクセスしてファイルを取得する場合なども同様である。このように、実行中のアプリケーションプログラムがLAN50を介して通信を行うたびに、新たな通信記録が作成され、履歴情報142に追加される。   Note that the processing shown in steps S13 to S18 is also executed when an application program different from the electronic mail software 143 performs communication via the LAN 50. For example, when the authentication program sends a user name, password, etc. to the authentication server 20 to request authentication, a new communication record is created. The same applies to a case where an FTP (File Transfer Protocol) program accesses the file server 40 to acquire a file. In this way, every time an executing application program communicates via the LAN 50, a new communication record is created and added to the history information 142.

ユーザが電源OFFを指示した場合(ステップS18においてYes)、パケットキャプチャ部15は、パケットのキャプチャを終了する(ステップS19)。パケットキャプチャ部15が保持しているキャプチャデータ141と、履歴情報作成部16が保持している履歴情報142が、記憶部14に格納される(ステップS20)。この結果、記憶部14には、複数のキャプチャデータ141、141・・・が格納される。また、記憶部14に格納されていた履歴情報142は削除され、新たな通信記録が追加された履歴情報142だけが記憶部14に格納される。   When the user gives an instruction to turn off the power (Yes in Step S18), the packet capture unit 15 ends the packet capture (Step S19). Capture data 141 held by the packet capture unit 15 and history information 142 held by the history information creation unit 16 are stored in the storage unit 14 (step S20). As a result, the storage unit 14 stores a plurality of capture data 141, 141,. Further, the history information 142 stored in the storage unit 14 is deleted, and only the history information 142 to which a new communication record is added is stored in the storage unit 14.

このように、パケットキャプチャ処理において、PC10は、電源がONされている間に送受信する全てのパケットをキャプチャする。このため、詳細な設定を行うことなく、パケットをキャプチャすることができる。   In this way, in the packet capture process, the PC 10 captures all packets transmitted and received while the power is on. For this reason, a packet can be captured without performing detailed settings.

次に、パケット抽出処理におけるPC10の処理の流れについて説明する。図3は、パケット抽出処理の流れを示すフローチャートである。パケット抽出処理では、パケットキャプチャ部15が作成中のキャプチャデータ141ではなく、記憶部14に記憶されたキャプチャデータ141が用いられる。   Next, the process flow of the PC 10 in the packet extraction process will be described. FIG. 3 is a flowchart showing the flow of the packet extraction process. In the packet extraction process, the capture data 141 stored in the storage unit 14 is used instead of the capture data 141 being created by the packet capture unit 15.

まず、ユーザは、パケットの抽出条件を設定する。具体的には、パケット抽出部17は、ユーザの指示に応じて、記憶部14に格納されている履歴情報142をモニタ13に表示する(ステップS21)。   First, the user sets packet extraction conditions. Specifically, the packet extraction unit 17 displays the history information 142 stored in the storage unit 14 on the monitor 13 in accordance with a user instruction (step S21).

図4は、履歴情報142の表示画面63の一例を示す図である。図4に示すように、表示画面63には、各通信IDに対応する通信記録が表示される。なお、プログラム種別「認証」、「mail」、「ftp」は、認証用プログラム、電子メールソフト143、FTPプログラムがそれぞれ行った通信であることを示している。プログラム種別が「folder」は、SMB(Server Message Block)プロトコルを用いたアプリケーションプログラムが行うファイル共有サービスを示している。また、通信結果において、「OK」は通信が正常に終了したことを示し、「NG」はエラーなどによって通信が終了したことを示している。このように、通信IDごとの通信結果が表示されるため、ユーザは、通信エラーの発生した時刻を容易に特定することができる。   FIG. 4 is a diagram illustrating an example of the display screen 63 of the history information 142. As shown in FIG. 4, the communication record corresponding to each communication ID is displayed on the display screen 63. The program types “authentication”, “mail”, and “ftp” indicate communications performed by the authentication program, the e-mail software 143, and the FTP program, respectively. The program type “folder” indicates a file sharing service provided by an application program using the SMB (Server Message Block) protocol. In the communication result, “OK” indicates that the communication is normally completed, and “NG” indicates that the communication is ended due to an error or the like. Thus, since the communication result for every communication ID is displayed, the user can specify easily the time when the communication error occurred.

また、各通信IDに対応して、抽出条件設定ボタン631と、抽出開始ボタン632が表示されている。抽出条件設定ボタン631は、通信IDごとの抽出条件の設定画面64を呼び出すためのボタンである。抽出開始ボタン632は、通信IDに対応する時刻情報に基づいたパケットの抽出を、パケット抽出部17に指示するためのボタンである。   In addition, an extraction condition setting button 631 and an extraction start button 632 are displayed corresponding to each communication ID. The extraction condition setting button 631 is a button for calling an extraction condition setting screen 64 for each communication ID. The extraction start button 632 is a button for instructing the packet extraction unit 17 to extract a packet based on time information corresponding to the communication ID.

次に、ユーザは、パケットの抽出対象となる通信記録を決定する。抽出条件設定ボタン631が押されることにより(ステップS22においてYes)、パケットの抽出条件を設定するための設定画面64が、モニタ13に表示される(ステップS23)。設定画面64に表示される内容は、プログラム種別に応じて異なる。これは、使用するアプリケーションプロトコル、通信先のコンピュータなどがアプリケーションプログラムによって変わることに伴って、パケットの抽出条件が変わるためである。   Next, the user determines a communication record from which a packet is to be extracted. When the extraction condition setting button 631 is pressed (Yes in step S22), a setting screen 64 for setting packet extraction conditions is displayed on the monitor 13 (step S23). The contents displayed on the setting screen 64 differ depending on the program type. This is because the packet extraction conditions change as the application protocol to be used, the communication destination computer, and the like change depending on the application program.

図5は、プログラム種別「mail」に対応する設定画面64を示す図である。ユーザは、設定画面64を用いて、詳細な抽出条件を設定する。まず、ユーザは、パケットの抽出対象となるアプリケーションプロトコルを指定する。図5に示す設定画面64の場合、SMTP(Simple Mail Transfer Protocol)およびPOP(Post Office Protocol)の各プロトコルを、パケットの抽出対象として指定することができる。たとえば、ユーザは、SMTPのチェックボックスにチェックを入れることによって、SMTPに対応するパケットを抽出することができる。   FIG. 5 is a diagram showing a setting screen 64 corresponding to the program type “mail”. The user uses the setting screen 64 to set detailed extraction conditions. First, the user designates an application protocol from which packets are to be extracted. In the setting screen 64 shown in FIG. 5, each protocol of SMTP (Simple Mail Transfer Protocol) and POP (Post Office Protocol) can be designated as a packet extraction target. For example, the user can extract a packet corresponding to SMTP by checking the SMTP check box.

また、「SMTP」の表示に対応するメッセージ設定ボタン641が押された場合、SMTPのメッセージごとにパケットの抽出条件を設定するための画面が、モニタ13に表示される。これにより、SMTPの特定のメッセージに対応するパケットのみを抽出することができる。POPについても、メッセージごとに設定することができる。   When the message setting button 641 corresponding to the display of “SMTP” is pressed, a screen for setting a packet extraction condition for each SMTP message is displayed on the monitor 13. Thereby, only the packet corresponding to the specific message of SMTP can be extracted. A POP can also be set for each message.

また、設定画面64の下側にメールサーバ30のIPアドレスが表示されている。メール送受信の場合、通信先はメールサーバ30に限られるため、IPアドレスを設定する必要はない。なお、図4に示すように、通信ID「1」の認証処理では、複数のコンピュータと通信を行っている。この場合、パケットの抽出条件として、通信先のコンピュータのIPアドレスを、パケットの抽出条件としてそれぞれ指定することができる。また、図5には示していないが、パケットの抽出条件として、ポート番号を指定してもよい。   In addition, the IP address of the mail server 30 is displayed below the setting screen 64. In the case of mail transmission / reception, since the communication destination is limited to the mail server 30, it is not necessary to set an IP address. As shown in FIG. 4, in the authentication process with the communication ID “1”, communication is performed with a plurality of computers. In this case, the IP address of the communication destination computer can be designated as the packet extraction condition as the packet extraction condition. Although not shown in FIG. 5, a port number may be designated as a packet extraction condition.

ユーザは、図5に示す完了ボタン642を押すことによって、抽出条件の設定を終了する。これにより、パケット抽出部17は、設定された内容に基づいて、パケットの抽出条件を決定する(ステップS24)。続いて、抽出開始ボタン632が押されることによって(ステップS25においてYes)、パケット抽出部17は、抽出条件に基づいたパケットの抽出処理を行う(ステップS26)。具体的には、指定された通信IDに対応する時刻情報および抽出条件に対応するパケットが、記憶部14に記憶されているキャプチャデータ141から抽出される。キャプチャデータ141から抽出されたパケットは、抽出データ144として記憶部14に格納されるとともに、モニタ13に表示される(ステップS27)。これにより、PC10は、図3に示すパケット抽出処理を終了する。   The user ends the setting of the extraction condition by pressing the completion button 642 shown in FIG. Thereby, the packet extraction part 17 determines the extraction conditions of a packet based on the set content (step S24). Subsequently, when the extraction start button 632 is pressed (Yes in Step S25), the packet extraction unit 17 performs a packet extraction process based on the extraction condition (Step S26). Specifically, the time information corresponding to the designated communication ID and the packet corresponding to the extraction condition are extracted from the capture data 141 stored in the storage unit 14. The packet extracted from the capture data 141 is stored in the storage unit 14 as the extracted data 144 and displayed on the monitor 13 (step S27). Thereby, the PC 10 ends the packet extraction process shown in FIG.

なお、パケット抽出処理において、記憶部14に記憶されたキャプチャデータ141自体は変更されない。このため、ユーザは、パケットの抽出条件を変更することにより、図3に示すパケット抽出処理を繰り返し実行することができる。   In the packet extraction process, the capture data 141 itself stored in the storage unit 14 is not changed. Therefore, the user can repeatedly execute the packet extraction process shown in FIG. 3 by changing the packet extraction condition.

以上説明したように、本実施の形態に係るPC10は、電源がONされている間に送受信する全てのパケットをキャプチャして保存し、ユーザが設定した抽出条件に応じたパケットをキャプチャデータ141から抽出する。したがって、ユーザは、通信エラーの原因となるパケットを確実にキャプチャできるとともに、キャプチャしたパケットの中から所望のパケットを容易に抽出することができる。   As described above, the PC 10 according to the present embodiment captures and stores all packets transmitted and received while the power is on, and captures packets according to the extraction condition set by the user from the capture data 141. Extract. Therefore, the user can surely capture a packet that causes a communication error, and can easily extract a desired packet from the captured packets.

なお、本実施の形態において、設定画面64を用いてパケットの抽出条件を設定する例について説明したが、これに限られない。たとえば、ユーザは、設定画面64を呼び出すことなく、パケット抽出部17にパケットの抽出を指示してもよい。この場合、パケット抽出部17は、ユーザが抽出した通信記録の時刻情報に対応する全てのパケットを抽出すればよい。   In the present embodiment, the example in which the packet extraction condition is set using the setting screen 64 has been described. However, the present invention is not limited to this. For example, the user may instruct the packet extraction unit 17 to extract a packet without calling the setting screen 64. In this case, the packet extraction part 17 should just extract all the packets corresponding to the time information of the communication record extracted by the user.

また、本実施の形態において、抽出対象のアプリケーションプロトコルに対応するチェックボックス(図5参照)に、ユーザがチェックを入れる例について説明したが、これに限られない。たとえば、パケット抽出部17は、全てのアプリケーションプロトコルに対応するチェックボックスにチェックが入った状態で、設定画面64を表示してもよい。   In the present embodiment, the example in which the user checks the check box (see FIG. 5) corresponding to the application protocol to be extracted has been described, but the present invention is not limited to this. For example, the packet extraction unit 17 may display the setting screen 64 in a state where check boxes corresponding to all application protocols are checked.

また、本実施の形態において、PC10がパケットキャプチャ処理およびパケット抽出処理を行う例について説明したが、これに限られない。この場合、PC10は、他の機器で作成されたキャプチャデータ141と履歴情報142とを用いて、パケット抽出処理を行ってもよい。つまり、パケットキャプチャ処理は、ネットワーク機能を有する他の機器で行われてもよい。   In the present embodiment, the example in which the PC 10 performs the packet capture process and the packet extraction process has been described. However, the present invention is not limited to this. In this case, the PC 10 may perform packet extraction processing using the capture data 141 and the history information 142 created by another device. That is, the packet capture process may be performed by another device having a network function.

本発明の実施の形態に係るネットワークシステムの構成図である。1 is a configuration diagram of a network system according to an embodiment of the present invention. パケットキャプチャ処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a packet capture process. パケット抽出処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a packet extraction process. モニタに表示される履歴情報の一例を示す図である。It is a figure which shows an example of the log | history information displayed on a monitor. パケット抽出条件の設定画面の一例を示す図である。It is a figure which shows an example of the setting screen of a packet extraction condition.

符号の説明Explanation of symbols

10 PC(パーソナルコンピュータ)
30 メールサーバ
11 制御部
12 操作部
13 モニタ
14 記憶部
15 パケットキャプチャ部
16 履歴情報作成部
17 パケット抽出部
10 PC (personal computer)
30 mail server 11 control unit 12 operation unit 13 monitor 14 storage unit 15 packet capture unit 16 history information creation unit 17 packet extraction unit

Claims (4)

パケット通信ネットワークを介して送受信するパケットを継続してキャプチャし、キャプチャした複数のパケットを記憶するキャプチャ部と、
前記パケット通信ネットワークに接続する外部装置との間で行われるデータ通信に関する履歴情報を作成する履歴情報作成部と、
前記履歴情報に基づいて、前記複数のパケットから前記データ通信に対応するパケットを抽出するパケット抽出部と、
を備えることを特徴とする通信装置。
A capture unit that continuously captures packets transmitted and received via the packet communication network and stores a plurality of captured packets;
A history information creation unit that creates history information related to data communication performed with an external device connected to the packet communication network;
A packet extraction unit that extracts a packet corresponding to the data communication from the plurality of packets based on the history information;
A communication apparatus comprising:
請求項1に記載の通信装置において、
前記履歴情報は、前記データ通信が行われた時間を示す処理時間情報を含み、
前記パケット抽出部は、前記処理時間情報に基づいて、前記データ通信に対応するパケットを抽出することを特徴とする通信装置。
The communication device according to claim 1,
The history information includes processing time information indicating a time when the data communication is performed,
The packet extraction unit extracts a packet corresponding to the data communication based on the processing time information.
請求項1または請求項2に記載の通信装置において、
前記履歴情報は、前記データ通信を行うプログラムを識別するための識別情報を含み、
前記パケット抽出部は、前記識別情報に基づいて、前記データ通信に対応するパケットを抽出することを特徴とする通信装置。
The communication device according to claim 1 or 2,
The history information includes identification information for identifying a program that performs the data communication,
The packet extraction unit extracts a packet corresponding to the data communication based on the identification information.
パケット通信ネットワークを介して通信装置が送受信するパケットを継続してキャプチャし、キャプチャした複数のパケットを記憶するキャプチャステップと、
前記通信装置と前記パケット通信ネットワークに接続する外部装置との間で行われるデータ通信に関する履歴情報を作成する履歴情報作成ステップと、
前記履歴情報に基づいて、前記複数のパケットから前記データ通信に対応するパケットを抽出するパケット抽出ステップと、
を備えることを特徴とするパケットキャプチャ方法。
A capture step for continuously capturing packets transmitted and received by the communication device via the packet communication network, and storing a plurality of captured packets;
History information creating step for creating history information regarding data communication performed between the communication device and an external device connected to the packet communication network;
A packet extraction step of extracting a packet corresponding to the data communication from the plurality of packets based on the history information;
A packet capture method comprising:
JP2008067088A 2008-03-17 2008-03-17 Communication device and method of capturing packet Withdrawn JP2009225089A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008067088A JP2009225089A (en) 2008-03-17 2008-03-17 Communication device and method of capturing packet

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008067088A JP2009225089A (en) 2008-03-17 2008-03-17 Communication device and method of capturing packet

Publications (1)

Publication Number Publication Date
JP2009225089A true JP2009225089A (en) 2009-10-01

Family

ID=41241425

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008067088A Withdrawn JP2009225089A (en) 2008-03-17 2008-03-17 Communication device and method of capturing packet

Country Status (1)

Country Link
JP (1) JP2009225089A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011166389A (en) * 2010-02-09 2011-08-25 Net Agent Kk Communication information analysis system
JP2013084051A (en) * 2011-10-06 2013-05-09 Canon Marketing Japan Inc Information processing device, method for referring to account information of external service, information processing system, control method, and program
CN110888795A (en) * 2018-09-11 2020-03-17 中数通信息有限公司 Method for acquiring APP security evaluation data

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011166389A (en) * 2010-02-09 2011-08-25 Net Agent Kk Communication information analysis system
JP2013084051A (en) * 2011-10-06 2013-05-09 Canon Marketing Japan Inc Information processing device, method for referring to account information of external service, information processing system, control method, and program
CN110888795A (en) * 2018-09-11 2020-03-17 中数通信息有限公司 Method for acquiring APP security evaluation data
CN110888795B (en) * 2018-09-11 2023-10-20 中数通信息有限公司 APP security evaluation data acquisition method

Similar Documents

Publication Publication Date Title
US10313535B2 (en) Remote support apparatus, electronic apparatus, remote support method, and storage medium
US8689057B2 (en) Network apparatus, control method therefor, and storage medium
US10034057B2 (en) Message processing method, device, gateway, STB and IPTV
US20170111272A1 (en) Determining Direction of Network Sessions
JP2009116630A (en) Web-screen sharing system, web-screen sharing terminal, and sharing program thereof
JP2018531527A (en) Method and apparatus for identifying application information in network traffic
JP2007334536A (en) Malware behavior analysis system
JP4414305B2 (en) Relay device, relay device restart method, and relay device software program
JP2003324484A (en) Session relay system, client terminal, session relay method, remote access method, session relay program and client program
US20180198870A1 (en) Information processing apparatus, method for controlling the same, non-transitory computer-readable storage medium, and information processing system
JP4791850B2 (en) Information processing system and virtual office system
JP2009225089A (en) Communication device and method of capturing packet
JP4636775B2 (en) Network monitoring system
CN102663293B (en) Protection method and protection device for video devices of computer
JP2022163998A (en) Communication system, information processing apparatus, information processing method, and program
US9769040B2 (en) Monitoring apparatus, monitoring method and computer readable medium for monitoring
CN105099991A (en) Mobile terminal network data packet capturing method and device
CN108279855B (en) Method for reading and writing storage device
JP2007213419A (en) Information processing apparatus, method for controlling session, and program
JP2014078126A (en) Remote log collection system for equipment and remote log collection method for equipment
JP5461646B2 (en) Remote connection process monitoring method and remote connection monitoring system
US20190320086A1 (en) System, information processing apparatus, control method for information processing apparatus, and program
CN115242771B (en) Equipment debugging method, device, equipment and storage medium
CN104125255A (en) Remote work checking device, work automatic system and remote work checking method
CN106294060B (en) Operation and maintenance auditing method, device and server

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20110607