JP6035601B2 - Packet replay method - Google Patents

Packet replay method Download PDF

Info

Publication number
JP6035601B2
JP6035601B2 JP2012223804A JP2012223804A JP6035601B2 JP 6035601 B2 JP6035601 B2 JP 6035601B2 JP 2012223804 A JP2012223804 A JP 2012223804A JP 2012223804 A JP2012223804 A JP 2012223804A JP 6035601 B2 JP6035601 B2 JP 6035601B2
Authority
JP
Japan
Prior art keywords
packet
replay
capture
time
transmission
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
JP2012223804A
Other languages
Japanese (ja)
Other versions
JP2014078053A (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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP2012223804A priority Critical patent/JP6035601B2/en
Publication of JP2014078053A publication Critical patent/JP2014078053A/en
Application granted granted Critical
Publication of JP6035601B2 publication Critical patent/JP6035601B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)
  • Computer And Data Communications (AREA)

Description

本発明は、複数ノード間での通信を再現する計算機システムに関するものである。その中でも特に、パケットキャプチャを利用した再現に関する。また、本発明は、再現された通信による障害等の分析やマイグレーションの際の分析にも適用可能である。   The present invention relates to a computer system that reproduces communication between a plurality of nodes. In particular, it relates to reproduction using packet capture. The present invention can also be applied to analysis of failures or the like due to reproduced communication and analysis during migration.

複数のノードで構成され、各ノードが連携をして処理を行う計算機システムにおいては、以前に計算機システムが処理した内容を再度処理(再現)させたい場合がある。その例を2つ挙げる。   In a computer system composed of a plurality of nodes and in which processing is performed in cooperation with each node, there are cases where it is desired to process (reproduce) the contents previously processed by the computer system again. Two examples are given below.

1つ目は、ある計算機ノードで発生した問題を再現したい場合である。バグ等の要因によって計算機システムが想定外の動作をした場合、問題点の確認や修正後のテストを目的とする。この例では、再度処理する期間が短期かつ処理内容は少数である。   The first is a case where a problem that has occurred in a certain computer node is to be reproduced. If the computer system behaves unexpectedly due to factors such as bugs, the purpose is to check for problems and test after correction. In this example, the processing period is short and the processing content is small.

2つ目は、ある計算機ノードの後継ノードを開発した際に、これまでと同様の処理を行うか確認する場合である。この例では再度処理する期間が長期かつ処理内容は大量である。   The second is a case where when a successor node of a certain computer node is developed, it is confirmed whether the same processing as before is performed. In this example, the processing period is long and the processing content is large.

この再処理では、起因となっている計算機ノードは1つもしくはごく少数であるにも関わらず、再処理のためには計算機システム全体で同じ処理を実行せねばならず、コストが高いという問題がある。特に、再処理対象の計算機システムが現在サービスを運用している場合には、再処理のためにサービスを停止せねばならず、サービスのクオリティに大きな影響を与える。   In this reprocessing, despite the fact that there are only one or a few computer nodes, the same processing must be executed in the entire computer system for reprocessing, which is expensive. is there. In particular, when the computer system to be reprocessed is currently operating a service, the service must be stopped for reprocessing, which greatly affects the quality of the service.

そこで用いられる技術がパケットのリプレイ技術である。リプレイとは、まず計算機システム内の計算機ノード間でやりとりされている通信パケットをあらかじめキャプチャし記録しておく。ある計算機ノードで再処理を行う場合に、対象の計算機ノード(対象ノード)と、リプレイを行う計算機ノード(リプレイノード)のみを用意する。リプレイノードは複数の計算機ノードを模擬し、記録してある通信パケットのうち対象ノードが受信していたパケットを送信するとこで、キャプチャ時と同様の通信を再現する。   The technique used there is a packet replay technique. In the replay, first, a communication packet exchanged between computer nodes in a computer system is captured and recorded in advance. When reprocessing is performed on a certain computer node, only a target computer node (target node) and a computer node (replay node) that performs replay are prepared. The replay node simulates a plurality of computer nodes, and transmits the packet received by the target node among the recorded communication packets, thereby reproducing the same communication as at the time of capture.

一般的なリプレイでは、通信パケットが送信された時刻と通信パケットを関係付けて記録することで、記録された際と同様の時間間隔でのリプレイを実現する。   In general replay, the replay at the same time interval as when it was recorded is realized by associating and recording the time when the communication packet was transmitted and the communication packet.

特許文献1には、通信パケットを記録する際に、各計算機ノードの各パケット送信時における受信パケット量を記録する方式が記載されている。リプレイを行う際の各パケットの送信条件は、前述の時刻情報に加え、前述の受信パケット量を用いる。二つの条件が満たされた際にパケットを送信することで、疑似的に応答を行っているかのようなリプレイが可能となる。   Patent Document 1 describes a method of recording a received packet amount at the time of each packet transmission of each computer node when recording a communication packet. The transmission condition of each packet when performing replay uses the above-described received packet amount in addition to the above-described time information. By transmitting a packet when the two conditions are satisfied, replay can be performed as if a pseudo response is being made.

特許文献2には、各ノード間の通信における要求(リクエスト)と応答(レスポンス)をペアとし、対象ノードが要求を送信したならば、リプレイノードが応答を送信する方式が記載されている。要求と応答が関係付けられることを前提としているが、確実な応答のリプレイが可能となる。   Patent Document 2 describes a method in which a request (request) and a response (response) in communication between nodes are paired, and if a target node transmits a request, the replay node transmits the response. Although it is assumed that a request and a response are related, a reliable replay of the response is possible.

特開2010−205011号公報JP 2010-205011 A 特開2008−97457号公報JP 2008-97457 A

リプレイにおいては、キャプチャしたい際のパケットに正確であることが望ましい。この正確性とはキャプチャ時の時刻だけではなく、ノード間で行われる要求と応答の間隔も含む。なぜならば、例として、ノードAが送信したパケットをノードBが受信し、ノードB内部で処理を行った後、結果をノードAに送信するような処理において、ノードBを模擬するとする。この際、リプレイする際に時刻情報のみに基づいた場合、ノードAが何らかの要因により遅れてパケットを送信する場合、最悪の場合はノードAの送信前にノードBを模擬したノードがパケットを送信してしまう。これはリクエストを受ける前にレスポンスが返っており、リプレイとして不適切である。   In replay, it is desirable that the packet is accurate when it is desired to capture. This accuracy includes not only the time of capture but also the interval between requests and responses made between nodes. This is because, for example, node B is simulated in a process in which node B receives a packet transmitted by node A, performs processing inside node B, and transmits the result to node A. At this time, when replaying is based only on time information, when node A transmits a packet delayed due to some factor, in the worst case, a node simulating node B transmits a packet before transmitting node A. End up. This is an inappropriate replay because the response is returned before the request is received.

上記の課題を解決するために、本発明では、通信におけるリクエストを受けたノードの処理時間も含めて再現するものであり、リプレイパターンを複数用意しておき、キャプチャされたパケットとそのキャプチャされた時刻との関係により、複数のリプレイパターンから1つのパターンを特定し、この内容に従って再現処理を実行する。   In order to solve the above problems, the present invention reproduces the processing time of the node that has received the request in communication, and prepares a plurality of replay patterns to capture the captured packet and the captured packet. One pattern is specified from a plurality of replay patterns according to the relationship with time, and reproduction processing is executed according to the contents.

より具体的な形態を示すと次のとおりである。
パケット間の関係性を算出する装置を用いた、パケットリプレイ装置であって、前記パケットリプレイ装置は、ネットワーク経路上のパケットを複製し転送する機能を有する装置を用い、やり取りされているパケットの複製であるキャプチャパケットを入力とし、キャプチャパケットとキャプチャ時刻を関連付け、パケット関係算出ルールに基づき、前記キャプチャパケット間の関係性であるパケット関係を算出しリプレイパターン5種からパターンを選択し、リプレイ対象ノードに対して、送信パケット作成ルールに基づき、前記キャプチャパケットからリプレイ送信パケットを作成し、前記リプレイパターンに基づいたタイミングで前記リプレイ送信パケットを送信し、前記リプレイ対象ノードからネットワークを介し受信パケットを得た際には、比較ルールに基づき、前記キャプチャパケットと前記受信パケットの内容を比較し、応答すべきリプレイ送信パケットが存在する場合は送信を行う。
A more specific form is as follows.
A packet replay device using a device for calculating a relationship between packets, wherein the packet replay device uses a device having a function of copying and transferring a packet on a network path, and duplicating a packet exchanged The capture packet is input, the capture packet is associated with the capture time, the packet relationship that is the relationship between the capture packets is calculated based on the packet relationship calculation rule, the pattern is selected from the five replay patterns, and the replay target node On the other hand, based on a transmission packet creation rule, a replay transmission packet is created from the capture packet, the replay transmission packet is transmitted at a timing based on the replay pattern, and a reception packet is obtained from the replay target node via the network. The time, based on a comparison rule, to compare the contents of the received packet and the capture packet, if the replay transmission packet to respond is present for transmission.

本発明の代表的形態によれば、パケットのリプレイにおいて、要求に対する応答の模擬や、アプリケーションの処理遅延の模擬が可能となる。   According to the exemplary embodiment of the present invention, it is possible to simulate a response to a request and simulate an application processing delay in packet replay.

本発明の一実施の形態におけるパケット関係性解析およびリプレイを行うパケットリプレイ装置のブロック図The block diagram of the packet replay apparatus which performs packet relationship analysis and replay in one embodiment of this invention 本発明の一実施の形態におけるパケットリプレイ装置利用時のシステム構成図System configuration diagram when using packet replay device in one embodiment of the present invention 本発明の一実施の形態におけるパケットリプレイの解析処理のフローFlow of packet replay analysis processing in one embodiment of the present invention 本発明の一実施の形態におけるパケットリプレイの関係性解析処理のフローFlow of packet replay relationship analysis processing in one embodiment of the present invention 本発明の一実施の形態におけるパケット送信部へ渡される追加情報を示す図The figure which shows the additional information passed to the packet transmission part in one embodiment of this invention 本発明の一実施の形態におけるパケット受信部へ渡される追加情報を示す図The figure which shows the additional information passed to the packet receiving part in one embodiment of this invention 本発明の一実施の形態におけるパケットリプレイの送信要求処理のフローFlow of packet replay transmission request processing in an embodiment of the present invention 本発明の一実施の形態におけるパケットリプレイの送信処理のフローFlow of packet replay transmission processing in one embodiment of the present invention 本発明の一実施の形態におけるパケットリプレイの受信処理のフローPacket replay reception processing flow in one embodiment of the present invention 本発明の一実施の形態における通信時の変換情報を示す図The figure which shows the conversion information at the time of communication in one embodiment of this invention

本発明の代表的な形態は、パケット送受信機能を備える計算機システムにおいて、
パケットリプレイ機能が、外部から前記キャプチャパケットと、パケット関係算出ルールと、パケット生成ルールと、パケット比較ルールとを受付け、パケットリプレイにおける最適な前記リプレイ手法を選択し、前記リプレイ対象ノードに対して前記リプレイ送信パケットを送信することを特徴とする。
A typical embodiment of the present invention is a computer system having a packet transmission / reception function.
The packet replay function accepts the capture packet, the packet relation calculation rule, the packet generation rule, and the packet comparison rule from the outside, selects the optimum replay method in packet replay, and the replay target node A replay transmission packet is transmitted.

本発明の代表的な形態では、パケットリプレイ手法を、定時リプレイ、連続リプレイ、時間差連続リプレイ、応答リプレイ、時間差応答リプレイの5種に分類する。   In a typical embodiment of the present invention, packet replay techniques are classified into five types: scheduled replay, continuous replay, time difference continuous replay, response replay, and time difference response replay.

定時リプレイはパケットキャプチャ時の時経過時間に基づきリプレイを行い、連続リプレイおよび時間差連続リプレイは前記リプレイパケットの送信を契機にリプレイを行い、応答リプレイおよび時間差応答リプレイは前記対象ノードからのパケット受信を契機にリプレイを行う。   Scheduled replay performs replay based on the elapsed time at the time of packet capture, continuous replay and time difference continuous replay perform replay triggered by transmission of the replay packet, and response replay and time difference response replay receive packets from the target node. Replay when triggered.

以下、図面を参照しながら本発明の一実施形態について、図面を参照して説明する。
図1Aは,実施形態に係わる、パケット関係性解析およびリプレイを行う、パケットリプレイ装置101のブロック図である。以下の各装置は、いわゆる情報処理装置で実現されるものであって、プログラムに従って演算部(CPU)が下記に示す処理を実行するものである。
Hereinafter, an embodiment of the present invention will be described with reference to the drawings.
FIG. 1A is a block diagram of a packet replay device 101 that performs packet relationship analysis and replay according to the embodiment. Each of the following devices is realized by a so-called information processing device, and a calculation unit (CPU) executes processing shown below according to a program.

パケットリプレイ装置101は、ある計算機システムでやり取りされていたパケット情報を受け取り、計算機システム内の任意の個数のノードを模擬してパケット情報をリプレイするための装置である。   The packet replay device 101 is a device for receiving packet information exchanged in a computer system and replaying packet information by simulating an arbitrary number of nodes in the computer system.

パケットリプレイ装置101は、パケットリプレイ部102と、一般的な計算機資源としてのネットワークインタフェース103、メモリ104、CPU105、記憶装置106、及び、ユーザインタフェース107を有している。   The packet replay device 101 includes a packet replay unit 102, a network interface 103 as a general computer resource, a memory 104, a CPU 105, a storage device 106, and a user interface 107.

ユーザによりユーザインタフェース107から入力される情報のうち、パケット情報はパケット情報受付部108へ送られ、模擬する計算機ノード情報とパケット間関係算出ルールはパケット間関係算出部109へ送られ、パケット送信ルールはパケット送信設定部110へ送られ、パケット比較ルールはパケット比較部111へ送られ、通信変換情報は通信情報変換部へ送られる。また、これらの情報は、各種キューおよびテーブルの形式で記憶装置106に保存される。   Of the information input from the user interface 107 by the user, the packet information is sent to the packet information receiving unit 108, the computer node information to be simulated and the interpacket relationship calculation rule are sent to the interpacket relationship calculation unit 109, and the packet transmission rule Is sent to the packet transmission setting unit 110, the packet comparison rule is sent to the packet comparison unit 111, and the communication conversion information is sent to the communication information conversion unit. These pieces of information are stored in the storage device 106 in the form of various queues and tables.

パケットリプレイ装置101は、さらに、パケット情報解析部112、パケット送信部113、
パケット受信部114、リプレイ結果出力部115を備えている。
パケットリプレイ部102の各部(各機能)は、メモリに記録された所定のコンピュータプログラムを計算機資源上で実行することで実現される。
The packet replay device 101 further includes a packet information analysis unit 112, a packet transmission unit 113,
A packet receiving unit 114 and a replay result output unit 115 are provided.
Each unit (each function) of the packet replay unit 102 is realized by executing a predetermined computer program recorded in the memory on a computer resource.

図1Bは、パケットリプレイ装置利用時のシステム構成図である。パケット収集環境120では、各計算機ノード121はネットワーク123を介して相互に通信を行っている。パケット収集装置は計算機ノード121とネットワーク123の間に設置され、通信の内容を取得し、パケット情報124としてパケットリプレイ装置101へ送付する。パケットリプレイ環境125では、パケットリプレイ装置101が、パケット情報124に基づき、計算機ノード121を模擬した通信行う(図1:126)。   FIG. 1B is a system configuration diagram when the packet replay device is used. In the packet collection environment 120, the computer nodes 121 communicate with each other via a network 123. The packet collection device is installed between the computer node 121 and the network 123, acquires the content of communication, and sends it to the packet replay device 101 as packet information 124. In the packet replay environment 125, the packet replay device 101 performs communication simulating the computer node 121 based on the packet information 124 (FIG. 1: 126).

図2Aは、パケットリプレイの解析処理のフローである。パケット情報解析部112は、パケット情報を解析し、パケット情報をプロトコルや通信レイヤごとの情報に切り分け、識別子となるパケット識別子を与えた、パケット解析情報を作成する。   FIG. 2A is a flow of packet replay analysis processing. The packet information analysis unit 112 analyzes the packet information, divides the packet information into information for each protocol and communication layer, and creates packet analysis information given a packet identifier as an identifier.

パケット間関係算出部109は、パケット情報解析部112からパケット解析情報を受け取り、あらかじめ入力されていたパケット間関係算出ルールを用いて、パケット解析情報のリプレイパターンを算出する。リプレイにおいて、パケットリプレイ装置101から送信する必要のあるパケットについては、パケット解析情報と、リプレイパターンと、送信補足情報を合わせてパケット送信部113に登録する。この際、登録したパケットのリプレイパターンが定時リプレイならば(図2A:201)、そのパケットをタイマ待ち状態として設定する(図2A:202)。
リプレイにおいて、パケットリプレイ装置101が受信するパケットについては、パケット解析情報と受信補足情報を合わせてパケット受信部114に登録する。
The inter-packet relationship calculation unit 109 receives the packet analysis information from the packet information analysis unit 112, and calculates the replay pattern of the packet analysis information using the inter-packet relationship calculation rule that has been input in advance. In the replay, for the packet that needs to be transmitted from the packet replay device 101, the packet analysis information, the replay pattern, and the transmission supplement information are registered together in the packet transmission unit 113. At this time, if the replay pattern of the registered packet is a scheduled replay (FIG. 2A: 201), the packet is set as a timer waiting state (FIG. 2A: 202).
In the replay, the packet received by the packet replay device 101 is registered in the packet receiving unit 114 together with the packet analysis information and the reception supplement information.

図2Bは、パケットリプレイの関係性解析処理のフローである。
パケット間関係算出部109は、パケット解析情報をリプレイする際に用いるリプレイパターンを算出する。パケット間関係解析処理は、比較対象となるパケットに対してループを用い(図2B:210)、各比較パケットに対し処理を行う。あらかじめ与えられている関係性(図2B:212)ごとにループを行い(図2B:211)、入力パケットと比較パケットを各関係性ルールに適用し(図2B:213)、関係が算出された場合(図2B:214)、入力パケットのリプレイパターンとリプレイのための補足情報を与える(図2B:215)(図3:303)(図4:402)。どのパケットとも関係性が無かった場合は、リプレイパターンを「定時」とする(図2B:216)。
FIG. 2B is a flow of packet replay relationship analysis processing.
The interpacket relationship calculation unit 109 calculates a replay pattern used when replaying packet analysis information. In the inter-packet relationship analysis processing, a loop is used for a packet to be compared (FIG. 2B: 210), and processing is performed for each comparison packet. A loop is performed for each given relationship (FIG. 2B: 212) (FIG. 2B: 211), the input packet and the comparison packet are applied to each relationship rule (FIG. 2B: 213), and the relationship is calculated. In this case (FIG. 2B: 214), the replay pattern of the input packet and supplementary information for replay are given (FIG. 2B: 215) (FIG. 3: 303) (FIG. 4: 402). If there is no relationship with any packet, the replay pattern is set to “regular” (FIG. 2B: 216).

なお、比較対象とするパケットは、基本的には各解析の開始までに得ていたパケット解析情報全てだが、時間やアドレス情報を用いて対象を絞り込んでもよい。   The packets to be compared are basically all packet analysis information obtained before the start of each analysis, but the target may be narrowed down using time and address information.

図3は、パケット送信部113へ解析情報が渡される際に、パケット解析情報に加えて与えられる情報である。パケット識別子301はパケット解析情報に含まれる情報であり、パケット間の繋がりを表す場合に用いる。リプレイパターン302は、リプレイによるパケット送信の方式を5種に分類したものである。送信補足情報303には、リプレイに必要な補足情報が記載される。   FIG. 3 shows information given in addition to the packet analysis information when the analysis information is passed to the packet transmission unit 113. The packet identifier 301 is information included in the packet analysis information, and is used when representing a connection between packets. The replay pattern 302 is obtained by classifying packet transmission methods by replay into five types. The transmission supplement information 303 describes supplement information necessary for replay.

図4は、パケット受信部114へ解析情報が渡される際に、パケット解析情報に加えて与えられる情報である。パケット識別子401はパケット解析情報に含まれる情報であり、パケット間の繋がりを表す場合に用いる。受信補足情報402には、パケット受信の際に応答でリプレイする際に必要な補足情報が記載される。   FIG. 4 shows information given in addition to the packet analysis information when the analysis information is passed to the packet receiving unit 114. The packet identifier 401 is information included in the packet analysis information, and is used when representing a connection between packets. The supplementary information 402 for receiving describes supplementary information necessary for replaying a response when receiving a packet.

図5は、パケットリプレイの送信要求処理のフローである。
送信処理は、一定時間ごとに、タイマ待ち状態の送信パケットに対してループを用いて行う(図5:501)。パケットの待ち時間が経過していた場合(図5:502)対象パケットを送信キューへ入れる(図5:503)。送信したパケットに続く連続送信パケットが存在する場合(図5:504)、そのパケットをタイマ待ち状態に設定する(図5:505)。即座に送信が行われるよう、待ち時間はゼロとする。送信したパケットに続く時間差連続送信パケットが存在する場合(図5:506)、そのパケットをタイマ待ち状態に設定する(図5:507)。タイマ待ち時間は、解析の際にパケット間関係算出部109より送信補足情報303として与えられている。
FIG. 5 is a flow of packet replay transmission request processing.
Transmission processing is performed using a loop for transmission packets waiting for a timer at regular intervals (FIG. 5: 501). When the packet waiting time has elapsed (FIG. 5: 502), the target packet is placed in the transmission queue (FIG. 5: 503). When there is a continuous transmission packet following the transmitted packet (FIG. 5: 504), the packet is set in a timer waiting state (FIG. 5: 505). The waiting time is set to zero so that transmission is performed immediately. When there is a time difference continuous transmission packet following the transmitted packet (FIG. 5: 506), the packet is set in a timer waiting state (FIG. 5: 507). The timer waiting time is given as transmission supplementary information 303 from the inter-packet relationship calculation unit 109 at the time of analysis.

図6は、パケットリプレイの送信処理のフローである。この処理は、送信キューに送信パケットが入れられるたびに行う。送信キューから送信パケット(図6:601)を取り出した後、リプレイシステムに送信ルールが設定されているかどうか調べる(図6:602)。設定されている場合は送信ルール(図6:603)に基づき送信パケットを整形(図6:604)した後、パケットを送信する(図6:605)。   FIG. 6 is a flow of packet replay transmission processing. This process is performed every time a transmission packet is placed in the transmission queue. After the transmission packet (FIG. 6: 601) is taken out from the transmission queue, it is checked whether a transmission rule is set in the replay system (FIG. 6: 602). If it is set, the packet is transmitted after shaping the transmission packet (FIG. 6: 604) based on the transmission rule (FIG. 6: 603) (FIG. 6: 605).

図7は、パケットリプレイの受信処理のフローである。受信処理は、外部ノードからパケットを受信した際に、受信待ち状態の送信パケットに対してループを用いて行う(図:701)
。受信パケットは、比較ルール(図7:702)を用いて各受信待ちパケットと一致するか比較処理を行う(図7:703)。二つのパケット一致している場合(図7:704)は、応答の必要があるかをチェックする。受信待ちパケットが応答でパケットリプレイを行う場合(図7:705)、対象の送信パケットをタイマ待ち状態に設定する(図7:706)。即座に送信が行われるよう、待ち時間はゼロとする。時間差応答送信パケットが存在する場合(図7:707)、そのパケットをタイマ待ち状態に設定する(図7:708)。タイマ待ち時間は、解析時にパケット間関係算出部109より送信補足情報303として与えられている。
FIG. 7 is a flow of packet replay reception processing. When receiving a packet from an external node, the reception process is performed using a loop for the transmission packet waiting to be received (Figure: 701)
. Using the comparison rule (FIG. 7: 702), the received packet is compared with each reception waiting packet (FIG. 7: 703). If the two packets match (FIG. 7: 704), it is checked whether a response is necessary. When the packet waiting for reception performs packet replay as a response (FIG. 7: 705), the target transmission packet is set to the timer waiting state (FIG. 7: 706). The waiting time is set to zero so that transmission is performed immediately. When there is a time difference response transmission packet (FIG. 7: 707), the packet is set to a timer waiting state (FIG. 7: 708). The timer waiting time is given as transmission supplementary information 303 from the inter-packet relationship calculation unit 109 at the time of analysis.

なお、ループ対象のパケット解析情報は、時刻や通信路を用いて対象数を絞り込んでもよい。   Note that the number of objects of the loop target packet analysis information may be narrowed down by using time or a communication path.

図8は、通信変換情報である。通信変換情報801には、プロトコル802ごとのパラメータ803変換ルールが記述されている。パケットの送信および受信を行う際には変換元情報804を参照し、用いる通信情報が変換元情報804に該当する場合は、変換先情報805へと変換を行ってから送受信の処理を行う。   FIG. 8 shows communication conversion information. In the communication conversion information 801, a parameter 803 conversion rule for each protocol 802 is described. When transmitting and receiving a packet, the conversion source information 804 is referred to. When the communication information to be used corresponds to the conversion source information 804, the conversion to the conversion destination information 805 is performed before transmission / reception processing is performed.

本実施の形態においては、計算機システムの構成に合わせたパケット関係性ルールを作成し、キャプチャしたパケットにルールを適用することでパケットの関係性を算出する。これにより、リプレイの作業効率向上のみならず、キャプチャ対象システムに影響を与えないキャプチャおよびリプレイを実現する。   In the present embodiment, a packet relationship rule that matches the configuration of the computer system is created, and the packet relationship is calculated by applying the rule to the captured packet. This realizes not only the improvement of replay work efficiency but also capture and replay that do not affect the capture target system.

本発明の部分ジョブパターン作成方式は、マイグレーションにおける、部分ジョブパターンごとのコストと移行できる計算機資源の量を示すため、利用者は費用対効果を考慮して最適な部分ジョブパターンを選択することができる。   Since the partial job pattern creation method of the present invention shows the cost for each partial job pattern and the amount of computer resources that can be migrated in migration, the user can select the optimum partial job pattern in consideration of cost effectiveness. it can.

101 パケットリプレイ装置
102 パケットリプレイ部
103 ネットワークインタフェース
104 メモリ
105 CPU
106 記憶装置
107 ユーザインタフェース
108 パケット情報受付部
109 パケット間関係算出部
110 パケット送信設定部
111 パケット比較部
112 パケット情報解析部
113 パケット送信部
114 パケット受信部
115 リプレイ結果出力部
116 通信変換情報受付部
101 packet replay device
102 Packet replay section
103 Network interface
104 memory
105 CPU
106 Storage device
107 User interface
108 Packet information reception part
109 Interpacket relationship calculator
110 Packet transmission setting section
111 Packet comparator
112 Packet information analyzer
113 Packet transmitter
114 Packet receiver
115 Replay result output section
116 Communication conversion information reception part

Claims (10)

パケット関係性分析を用いた、パケットリプレイ方法であって、
予め、複数のリプレイパターンを記憶しておき、
ノード間で送受信されるパケットをキャプチャし、
キャプチャを開始した時刻であるキャプチャ開始時刻を記憶しキャプチャされた前記パケットであるキャプチャパケットと前記キャプチャパケットの解析結果であるパケット解析結果と当該キャプチャパケットがキャプチャされた時刻であるキャプチャ完了時刻とを対応付けて記憶し、
前記対応付けられた情報に基づいて、前記複数のリプレイパターンから所定のリプレイパターンを特定し、
特定されたリプレイパターンを用いて再現処理を実行することを特徴とするパケットリプレイ方法。
A packet replay method using packet relationship analysis,
A plurality of replay patterns are stored in advance,
Capture packets sent and received between nodes,
A capture start time that is a time when capture is started is stored , a capture packet that is the captured packet, a packet analysis result that is an analysis result of the capture packet , and a capture completion time that is a time when the capture packet is captured Are stored in association with each other.
Based on the associated information, a predetermined replay pattern is specified from the plurality of replay patterns,
A packet replay method, wherein reproduction processing is executed using an identified replay pattern.
請求項1に記載のパケットリプレイ方法において、
前記複数のリプレイパターンは、定時リプレイ、連続リプレイ、時間差連続リプレイ、
応答リプレイおよび時間差応答リプレイであり、
前記再現処理は、前記特定されたリプレイパターンと前記キャプチャパケットより作成されたリプレイ送信パケットを、特定された前記リプレイパターンに基づいたタイミングでリプレイ対象ノードに送信し、前記リプレイ対象ノードから受信した受信パケットと、前記キャプチャパケットを比較することで再現されたかを判断することを特徴とするパケットリプレイ方法。
The packet replay method according to claim 1,
The plurality of replay patterns include scheduled replay, continuous replay, time difference continuous replay,
Response replay and time difference response replay,
The reproduction process transmits a replay transmission packet created from the identified replay pattern and the capture packet to a replay target node at a timing based on the identified replay pattern, and received from the replay target node. A packet replay method comprising: determining whether a packet is reproduced by comparing the captured packet.
請求項2に記載のパケットリプレイ方法において、
前記定時リプレイは、前記キャプチャパケットに関係する関係パケットの受信を行わず、リプレイ開始から前記キャプチャ開始時刻と前記キャプチャ完了時刻との差であるキャプチャ時間が経過した時点で前記リプレイ送信パケットを送信することを特徴とするパケットリプレイ方法。
The packet replay method according to claim 2, wherein
The scheduled replay does not receive a related packet related to the capture packet, and transmits the replay transmission packet when a capture time that is a difference between the capture start time and the capture completion time has elapsed since the start of replay. And a packet replay method.
請求項2に記載のパケットリプレイ方法において、
前記連続リプレイは、前記キャプチャパケットに関係する関係パケットが送信されたのち、所定時間以内に前記リプレイ送信パケットを送信することを特徴とするパケットリプレイ方法。
The packet replay method according to claim 2, wherein
In the continuous replay, the replay transmission packet is transmitted within a predetermined time after the related packet related to the capture packet is transmitted.
請求項2に記載のパケットリプレイ方法において、
前記時間差連続リプレイは、前記キャプチャパケットに関係する関係パケットが送信されたのち、時間差連続リプレイ時間経過後に前記リプレイ送信パケットを送信し、前記時間差連続リプレイ時間は、前記キャプチャパケットおよび前記関係パケットのそれぞれの前記キャプチャ開始時刻と前記キャプチャ完了時刻との差であるキャプチャ時間の差を用いることを特徴とするパケットリプレイ方法。
The packet replay method according to claim 2, wherein
In the time difference continuous replay, after the related packet related to the capture packet is transmitted, the replay transmission packet is transmitted after the time difference continuous replay time elapses, and the time difference continuous replay time includes the capture packet and the related packet, respectively A packet replay method using a capture time difference that is a difference between the capture start time and the capture completion time.
請求項2に記載のパケットリプレイ方法において、
前記応答リプレイは、前記キャプチャパケットに関係する関係パケットを受信したのち、所定時間以内に前記リプレイ送信パケットを送信することを特徴とするパケットリプレイ方法。
The packet replay method according to claim 2, wherein
In the packet replay method, the response replay transmits the replay transmission packet within a predetermined time after receiving a related packet related to the capture packet.
請求項2に記載のパケットリプレイ方法において、
前記キャプチャパケットに関係する関係パケットを受信したのち、時間差応答リプレイ時間経過後に前記リプレイ送信パケットを送信し、前記時間差応答リプレイ時間は、前記キャプチャパケットおよび前記関係パケットのそれぞれの前記キャプチャ開始時刻と前記キャプチャ完了時刻との差であるキャプチャ時間の差を用いることを特徴とするパケットリプレイ方法。
The packet replay method according to claim 2, wherein
After receiving the related packet related to the capture packet, the replay transmission packet is transmitted after the time difference response replay time elapses, and the time difference response replay time is determined by the capture start time of each of the capture packet and the related packet and the capture packet. A packet replay method characterized by using a difference in capture time that is a difference from a capture completion time.
請求項2乃至7のいずれかに記載のパケットリプレイ方法において、
前記リプレイパターンの特定は、前記キャプチャパケットのヘッダ情報およびペイロード情報および前記パケット解析結果および前記キャプチャ完了時刻および前記キャプチャ開始時刻と前記キャプチャ完了時刻との差であるキャプチャ時間を任意に組み合わせて、パケット関係算出ルールに基づき、実行することを特徴とするパケットリプレイ方法。
The packet replay method according to any one of claims 2 to 7,
The replay pattern is identified by arbitrarily combining header information and payload information of the capture packet, the packet analysis result, the capture completion time, and a capture time that is a difference between the capture start time and the capture completion time. A packet replay method which is executed based on a relation calculation rule.
請求項2乃至8のいずれかに記載のパケットリプレイ方法において、
前記リプレイ送信パケットは、当該リプレイ送信パケットを送信する際に、生成されることを特徴とするパケットリプレイ方法。
The packet replay method according to any one of claims 2 to 8,
The packet replay method, wherein the replay transmission packet is generated when the replay transmission packet is transmitted.
請求項2乃至8のいずれかに記載のパケットリプレイ方法において、
前記キャプチャパケットと前記受信パケットを比較する際の判別基準となることを特徴とするパケット比較ルールを有し、当該パケット比較ルールに従って前記再現の判断を実行することを特徴とするパケットリプレイ方法。
The packet replay method according to any one of claims 2 to 8,
A packet replay method, comprising: a packet comparison rule that serves as a determination criterion when comparing the captured packet and the received packet, and performing the reproduction determination according to the packet comparison rule.
JP2012223804A 2012-10-09 2012-10-09 Packet replay method Active JP6035601B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2012223804A JP6035601B2 (en) 2012-10-09 2012-10-09 Packet replay method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012223804A JP6035601B2 (en) 2012-10-09 2012-10-09 Packet replay method

Publications (2)

Publication Number Publication Date
JP2014078053A JP2014078053A (en) 2014-05-01
JP6035601B2 true JP6035601B2 (en) 2016-11-30

Family

ID=50783332

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012223804A Active JP6035601B2 (en) 2012-10-09 2012-10-09 Packet replay method

Country Status (1)

Country Link
JP (1) JP6035601B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5913155B2 (en) * 2013-03-06 2016-04-27 株式会社日立製作所 Packet replay device and packet replay method

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3574231B2 (en) * 1995-08-21 2004-10-06 富士通株式会社 Computer network simulator
JP2003283564A (en) * 2002-03-27 2003-10-03 Ntt Comware Corp Ip traffic generating apparatus, method therefor, traffic generation program, and recording medium
JP2005175915A (en) * 2003-12-11 2005-06-30 Anritsu Corp Emulation device and emulation program
KR100962532B1 (en) * 2007-12-18 2010-06-14 한국전자통신연구원 System for load regenerating using packets of load test and its method
JP5516381B2 (en) * 2010-12-17 2014-06-11 富士通株式会社 Test program, test apparatus, and test method

Also Published As

Publication number Publication date
JP2014078053A (en) 2014-05-01

Similar Documents

Publication Publication Date Title
US20190052551A1 (en) Cloud verification and test automation
CN108845954B (en) Pressure testing method, system and storage medium
US10339039B2 (en) Virtual service interface
CN107590075B (en) Software testing method and device
JPH08163132A (en) Modeling method of data traffic of network,and simulation method thereof
US9490992B2 (en) Remote conference saving system for managing missing media data and storage medium
CN103888306A (en) Message forwarding system performance test method and performance test device
CN111385163A (en) Flow analysis and detection method and device
Herrnleben et al. An iot network emulator for analyzing the influence of varying network quality
JP6035601B2 (en) Packet replay method
CN111917750B (en) Data interaction method and interface for simulation communication network and simulation power network
WO2018113553A1 (en) Image analysis method and device
Lamps et al. Conjoining emulation and network simulators on linux multiprocessors
Oujezsky et al. Case study and comparison of SimPy 3 and OMNeT++ Simulation
JP2010225044A (en) Test program generation method and program
Mok et al. Improving the packet send-time accuracy in embedded devices
US8966051B2 (en) Technique for monitoring component processing
Toll et al. IoTreeplay: Synchronous Distributed Traffic Replay in IoT Environments
Liu et al. Toward scalable emulation of future internet applications with simulation symbiosis
JP6724583B2 (en) Information processing apparatus, information processing method, program, and information processing system
CN109842465A (en) Data transmission method, data end equipment
WO2012119416A1 (en) Method for testing electronic device, and electronic device
JP6205689B2 (en) Data processing apparatus and program
JP5042323B2 (en) Distributed resource monitoring system, method and apparatus
JP7230381B2 (en) Computer system, parameter setting device, method and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20150210

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20151013

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20151020

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20151215

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20160531

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20160624

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20161012

R151 Written notification of patent or utility model registration

Ref document number: 6035601

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151