JP2021150826A - Packet comparison program - Google Patents

Packet comparison program Download PDF

Info

Publication number
JP2021150826A
JP2021150826A JP2020049283A JP2020049283A JP2021150826A JP 2021150826 A JP2021150826 A JP 2021150826A JP 2020049283 A JP2020049283 A JP 2020049283A JP 2020049283 A JP2020049283 A JP 2020049283A JP 2021150826 A JP2021150826 A JP 2021150826A
Authority
JP
Japan
Prior art keywords
packet
packets
capture data
group
components
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.)
Granted
Application number
JP2020049283A
Other languages
Japanese (ja)
Other versions
JP6998982B2 (en
Inventor
惇史 柴田
Atsushi Shibata
惇史 柴田
好輝 成田
Yoshiteru Narita
好輝 成田
遼 胡間
Ryo Koma
遼 胡間
一生 齋藤
Kazuo Saito
一生 齋藤
英治 古川
Eiji Furukawa
英治 古川
克彦 太田
Katsuhiko Ota
克彦 太田
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.)
Nippon Telegraph and Telephone East Corp
Original Assignee
Nippon Telegraph and Telephone East Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nippon Telegraph and Telephone East Corp filed Critical Nippon Telegraph and Telephone East Corp
Priority to JP2020049283A priority Critical patent/JP6998982B2/en
Publication of JP2021150826A publication Critical patent/JP2021150826A/en
Application granted granted Critical
Publication of JP6998982B2 publication Critical patent/JP6998982B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

To obtain the easy analysis of capture data acquired at a plurality of points.SOLUTION: A packet comparison program causes a computer to execute the processing so as to operate as: an input unit 11 which inputs capture data A, B on packets acquired at respective different points on a communication path; an extraction unit 12 which selects packets from the capture data A and extract, from the capture data B, a packet group which has time information in a predetermined range based on the time information on the selected packets; and a determination unit 13 which prioritizes in advance each component of the packets, and determines identity between the selected packet and the packet included in the packet group for each packet included in the packet group, using the prioritized components.SELECTED DRAWING: Figure 1

Description

本発明は、パケット比較プログラムに関する。 The present invention relates to a packet comparison program.

高速広帯域のネットワークサービスの普及に伴い、宅内ネットワークおよび社内ネットワークにおける遅延や不具合事象の報告数が増加している。不具合を解消するためには、通信経路上でキャプチャしたパケットの解析が有効である。例えば、特許文献1および特許文献2に記載された発明では、VPNを介して接続された拠点間に試験トラフィックを印加し、試験トラフィックをキャプチャして、ボトルネック箇所を判定したり、拠点間の帯域を測定したりする。 With the spread of high-speed and wideband network services, the number of reports of delays and malfunctions in home networks and in-house networks is increasing. In order to solve the problem, it is effective to analyze the packets captured on the communication path. For example, in the inventions described in Patent Document 1 and Patent Document 2, test traffic is applied between bases connected via VPN, and the test traffic is captured to determine a bottleneck point or between bases. Measure the band.

特許第6603770号公報Japanese Patent No. 6603770 特許第6603771号公報Japanese Patent No. 6603771

不具合を引き起こしている通信装置を特定するためには、複数個所でキャプチャデータを取得して比較する必要がある。 In order to identify the communication device causing the problem, it is necessary to acquire and compare the captured data at multiple locations.

しかしながら、キャプチャデータの解析には、高いスキルを要し、キャプチャデータの比較には膨大な時間がかかるという問題があった。通信経路上の異なる箇所でキャプチャされたキャプチャデータは時刻情報が同期していないことが多い。また、パケットの取得箇所に応じて様々なパケットが伝送されている。解析が個人のスキルに依存するため精度が担保できず、キャプチャデータ間で同一のパケットを抽出するためには膨大な時間を有する。 However, there is a problem that the analysis of the captured data requires a high skill and it takes an enormous amount of time to compare the captured data. The time information of the captured data captured at different points on the communication path is often out of sync. In addition, various packets are transmitted depending on the location where the packet is acquired. Since the analysis depends on the skill of the individual, the accuracy cannot be guaranteed, and it takes a huge amount of time to extract the same packet between the captured data.

本発明は、上記に鑑みてなされたものであり、複数箇所で取得したキャプチャデータの解析を容易にすることを目的とする。 The present invention has been made in view of the above, and an object of the present invention is to facilitate analysis of captured data acquired at a plurality of locations.

本発明の一態様のパケット比較プログラムは、通信経路上の異なる点のそれぞれでパケットを取得した第1キャプチャデータと第2キャプチャデータを入力する処理と、前記第1キャプチャデータから第1パケットを選定する処理と、前記第1パケットの時刻情報を基準として所定の範囲内の時刻情報を持つパケット群を前記第2キャプチャデータから抽出する処理と、パケットの構成要素に優先順位をつけておき、前記パケット群に含まれる第2パケットのそれぞれについて、前記構成要素を用いて、前記第1パケットと前記第2パケットの同一性を判定する処理をコンピュータに実行させる。 In the packet comparison program of one aspect of the present invention, the process of inputting the first captured data and the second captured data obtained by acquiring packets at different points on the communication path, and selecting the first packet from the first captured data. Processing, processing to extract a group of packets having time information within a predetermined range based on the time information of the first packet from the second capture data, and prioritizing the components of the packet. For each of the second packets included in the packet group, the computer is made to execute a process of determining the identity of the first packet and the second packet by using the component.

本発明によれば、複数箇所で取得したキャプチャデータの解析を容易にできる。 According to the present invention, it is possible to easily analyze the captured data acquired at a plurality of locations.

図1は、本実施形態のパケット比較装置の構成例を示す機能ブロック図である。FIG. 1 is a functional block diagram showing a configuration example of the packet comparison device of the present embodiment. 図2は、パケットを取得する通信経路の一例を示す図である。FIG. 2 is a diagram showing an example of a communication path for acquiring a packet. 図3は、パケットを取得する通信経路の一例を示す図である。FIG. 3 is a diagram showing an example of a communication path for acquiring a packet. 図4は、判定結果を出力した一例を示す図である。FIG. 4 is a diagram showing an example in which the determination result is output. 図5は、本実施形態のパケット比較装置の処理の流れを示すフローチャートである。FIG. 5 is a flowchart showing a processing flow of the packet comparison device of the present embodiment.

以下、本発明の実施形態について図面を用いて説明する。 Hereinafter, embodiments of the present invention will be described with reference to the drawings.

図1を参照し、本実施形態のパケット比較装置1の構成例について説明する。図1に示すパケット比較装置1は、入力部11、抽出部12、判定部13、および出力部14を備える。パケット比較装置1が備える各部は、演算処理装置、記憶装置等を備えたコンピュータにより構成して、各部の処理がプログラムによって実行されるものとしてもよい。このプログラムはパケット比較装置1が備える記憶装置に記憶されており、磁気ディスク、光ディスク、半導体メモリ等の記録媒体に記録することも、ネットワークを通して提供することも可能である。 A configuration example of the packet comparison device 1 of the present embodiment will be described with reference to FIG. The packet comparison device 1 shown in FIG. 1 includes an input unit 11, an extraction unit 12, a determination unit 13, and an output unit 14. Each part included in the packet comparison device 1 may be configured by a computer provided with an arithmetic processing unit, a storage device, and the like, and the processing of each part may be executed by a program. This program is stored in a storage device included in the packet comparison device 1, and can be recorded on a recording medium such as a magnetic disk, an optical disk, or a semiconductor memory, or can be provided through a network.

入力部11は、通信経路上の異なる点のそれぞれで取得したパケットを記録したキャプチャデータA,Bを入力する。 The input unit 11 inputs the capture data A and B that record the packets acquired at the different points on the communication path.

例えば、図2に示すように、VPN(Virtual Private Network)を介して接続された拠点間の通信経路上の点P1〜P4でパケットを取得し、点P1と点P4、点P2と点P3、点P1と点P2、あるいは点P3と点P4で取得したキャプチャデータを入力する。点P1および点P4は、各拠点のローカルネットワーク内の測定点である。点P2および点P3は、回線終端装置とルータとの間の測定点であり、VPN内で正しく宛先の拠点へ転送されるようにルータがカプセル化したパケットを取得できる。例えば、ルータは、IPv4パケットをIPv6パケットでカプセル化してVPNへ送出したり、VPNから受信したIPv6パケットからIPv4パケットを取り出して拠点のローカルネットワークへ送信したりする。各点P1〜P4のキャプチャデータを比較することで、不具合箇所を特定できる。 For example, as shown in FIG. 2, packets are acquired at points P1 to P4 on a communication path between bases connected via VPN (Virtual Private Network), and points P1 and P4, points P2 and points P3, The capture data acquired at the points P1 and P2 or the points P3 and P4 are input. Points P1 and P4 are measurement points in the local network of each site. Points P2 and P3 are measurement points between the line terminator and the router, and can acquire packets encapsulated by the router so that they are correctly forwarded to the destination site within the VPN. For example, the router encapsulates the IPv4 packet in the IPv6 packet and sends it to the VPN, or extracts the IPv4 packet from the IPv6 packet received from the VPN and sends it to the local network of the base. By comparing the captured data of each point P1 to P4, the defective part can be identified.

あるいは、図3に示すように、ローカルネットワークとインターネットとを結ぶ通信経路上のUTM(Unified Threat Management)の前後の点P5,P6でパケットを取得し、点P5と点P6で取得したキャプチャデータを入力してもよい。UTMは、統合的にセキュリティ対策を実施する装置であり、外部または内部からの脅威に対抗するために通信を検査して脅威となるパケットを破棄する。点P5,P6のキャプチャデータを比較することで、UTMが設定どおりに正しく機能しているかを確認できる。 Alternatively, as shown in FIG. 3, packets are acquired at points P5 and P6 before and after UTM (Unified Threat Management) on the communication path connecting the local network and the Internet, and the captured data acquired at points P5 and P6 is acquired. You may enter it. UTM is a device that implements security measures in an integrated manner, inspects communications to counter threats from the outside or inside, and discards threatening packets. By comparing the captured data at points P5 and P6, it can be confirmed whether the UTM is functioning correctly as set.

なお、パケットを取得する測定点は上記に限るものではない。 The measurement points for acquiring packets are not limited to the above.

抽出部12は、比較元のキャプチャデータAからパケットを選定し、選定したパケットの時刻情報を基準として所定の範囲内の時刻情報を持つパケット群を比較先のキャプチャデータBから抽出する。以下、キャプチャデータAから選定したパケットを選定パケットと称する。キャプチャデータBを比較元としてパケットを選定し、キャプチャデータAからパケット群を抽出してもよい。 The extraction unit 12 selects a packet from the capture data A of the comparison source, and extracts a packet group having time information within a predetermined range from the capture data B of the comparison destination based on the time information of the selected packet. Hereinafter, the packet selected from the capture data A will be referred to as a selected packet. A packet may be selected using the capture data B as a comparison source, and a packet group may be extracted from the capture data A.

判定部13は、優先順位をつけた構成要素を用いて、選定パケットとパケット群に含まれるパケットの同一性を判定する。例えば、優先順位の高い構成要素の順に、選定パケットとパケット群の各パケットの構成要素を比較してパケット群に含まれるパケットをフィルタリングする。あるいは、優先順位をつけた構成要素ごとに選定パケットとパケット群の各パケットを比較して得点を付け、パケット群に含まれるパケットのうち総得点が高いパケットを選定パケットと同一のパケットと判定する。 The determination unit 13 determines the identity of the selected packet and the packet included in the packet group by using the prioritized components. For example, the selected packet and the component of each packet of the packet group are compared in the order of the component having the highest priority, and the packets included in the packet group are filtered. Alternatively, the selected packet and each packet of the packet group are compared and scored for each prioritized component, and the packet having the highest total score among the packets included in the packet group is determined to be the same packet as the selected packet. ..

なお、図2の点P1と点P2または点P3と点P4のキャプチャデータを比較する場合、点2および点3のキャプチャデータはカプセル化されているので、判定部13はカプセル化を解除してからパケットの同一性を判定する。 When comparing the captured data of the point P1 and the point P2 or the point P3 and the point P4 in FIG. 2, since the captured data of the points 2 and 3 are encapsulated, the determination unit 13 releases the encapsulation. Judge the identity of the packet from.

出力部14は、判定部13の判定結果に基づいて、キャプチャデータA,Bの比較結果を出力する。例えば、図4に示すように、比較元と比較先のそれぞれで同一と判定されたパケットの情報を左右に並べて表示する。パケットロス等により同一と判定されたパケットが存在しないときは、符号100で示すように、パケットロス側を空欄とする。図4は出力の一例であり、これに限るものではない。同一のパケットおよびパケットロスが容易に把握できる態様であればよい。 The output unit 14 outputs the comparison result of the capture data A and B based on the determination result of the determination unit 13. For example, as shown in FIG. 4, the information of the packets determined to be the same in each of the comparison source and the comparison destination is displayed side by side. When there is no packet determined to be the same due to packet loss or the like, the packet loss side is left blank as indicated by reference numeral 100. FIG. 4 is an example of output, and the present invention is not limited to this. Any aspect may be used as long as the same packet and packet loss can be easily grasped.

出力部14は、パケットロスを検出した欄のみを出力できるようにしてもよいし、特定のプロトコルのパケットのみを出力できるようにしてもよい。また、表示された出力結果からパケットを選択したときに、キャプチャデータの該当箇所を表示できてもよい。 The output unit 14 may be able to output only the column in which the packet loss is detected, or may be able to output only the packet of a specific protocol. Further, when a packet is selected from the displayed output result, the corresponding part of the captured data may be displayed.

図5のフローチャートを参照し、本実施形態のパケット比較装置1の処理の流れについて説明する。 The processing flow of the packet comparison device 1 of the present embodiment will be described with reference to the flowchart of FIG.

ステップS11にて、入力部11は、キャプチャデータA,Bのそれぞれを入力する。キャプチャデータA,Bは、例えば、PCAP形式のファイルである。PCAP形式のファイルでは、キャプチャしたパケットのそれぞれにタイムスタンプとパケットの長さ等を含むパケットヘッダーが付与される。解析対象の時間帯のキャプチャデータが複数のファイルに分かれていたときは、ユーザがファイルのマージなどの前処理を行う。例えば、6時間分のキャプチャデータが2時間分ごとに複数のファイルに分かれて記録されていたときは、2時間分の複数のファイルを1つのファイルにマージする。入力部11が、複数のファイルを入力してマージしてもよい。 In step S11, the input unit 11 inputs each of the capture data A and B. The captured data A and B are, for example, PCAP format files. In the PCAP format file, a packet header including a time stamp, a packet length, and the like is added to each captured packet. When the capture data of the time zone to be analyzed is divided into a plurality of files, the user performs preprocessing such as merging the files. For example, when the capture data for 6 hours is recorded separately in a plurality of files every 2 hours, the plurality of files for 2 hours are merged into one file. The input unit 11 may input a plurality of files and merge them.

また、入力部11は、解析対象の時間帯の入力を受け付けて、ファイルから解析対象の時間帯のキャプチャデータのみを入力してもよい。例えば、ファイルに12時間分のキャプチャデータが記録されている場合に、夜間の6時間を解析するときは、解析対象の時間帯のキャプチャデータのみをファイルから読み込む。 Further, the input unit 11 may accept the input of the time zone to be analyzed and input only the capture data of the time zone to be analyzed from the file. For example, when the capture data for 12 hours is recorded in the file and the analysis is performed for 6 hours at night, only the capture data in the time zone to be analyzed is read from the file.

ステップS12にて、抽出部12は、キャプチャデータAからパケットを1つ選定する。例えば、抽出部12は、キャプチャデータAの先頭から順にパケットを選定し、各パケットについて、以下のステップS13,S14の処理を実行する。 In step S12, the extraction unit 12 selects one packet from the capture data A. For example, the extraction unit 12 selects packets in order from the beginning of the capture data A, and executes the following steps S13 and S14 for each packet.

ステップS13にて、抽出部12は、選定パケットの時刻情報を基準として、所定の範囲内のパケットをキャプチャデータBから抽出し、同一パケット候補のパケット群を得る。例えば、抽出部12は、選定パケットの時刻情報から±T秒以内の時刻情報を持つパケットをキャプチャデータBから抽出する。所定の範囲はユーザが任意に設定してよい。 In step S13, the extraction unit 12 extracts packets within a predetermined range from the capture data B based on the time information of the selected packets, and obtains a packet group of the same packet candidates. For example, the extraction unit 12 extracts a packet having time information within ± T seconds from the time information of the selected packet from the capture data B. The predetermined range may be arbitrarily set by the user.

ステップS14にて、判定部13は、ステップS13で抽出したパケット群について、優先順位をつけたパケットの構成要素を元に、選定パケットと同一性の高いパケットを特定、または同一パケットが存在しないことを判定する。表1に、優先順位をつけた構成要素の一例を示す。 In step S14, the determination unit 13 identifies a packet having a high identity with the selected packet based on the prioritized packet components for the packet group extracted in step S13, or the same packet does not exist. To judge. Table 1 shows an example of prioritized components.

Figure 2021150826
Figure 2021150826

表1の例では、優先順位が1番の項目には、構成要素として、パケットの送信元と送信先のIPアドレスとポート番号が指定されている。優先順位が2番の項目には、プロトコルごとに構成要素が指定されている。優先順位が3番の項目には、ペイロード自体が指定されている。表1は一例であり、優先順位の数や構成要素を限定するものではない。例えば、試験パケットを流す場合、試験パケットであるか否かを判定するための構成要素の優先順位を高く設定してもよい。レイヤごとに優先順位を設定してもよい。例えば、IPヘッダの構成要素、TCPまたはUDPの構成要素、TCP/UDPより上層のプロトコルの構成要素の順に優先順位を設定する。 In the example of Table 1, the IP address and port number of the packet source and destination are specified as the components in the item having the first priority. In the item with the second priority, the components are specified for each protocol. The payload itself is specified for the item having the third priority. Table 1 is an example and does not limit the number of priorities or components. For example, when a test packet is sent, the priority of the component for determining whether or not it is a test packet may be set high. The priority may be set for each layer. For example, the priority is set in the order of the IP header component, the TCP or UDP component, and the protocol component above TCP / UDP.

優先順位をつけたパケットの構成要素を利用した同一性の判定方法として、以下の方法が考えられる。 The following methods can be considered as a method of determining identity using the components of the prioritized packets.

第1の方法は、構成要素を優先順位の高い順に用いて、パケット群に含まれるパケットをフィルタリングする方法である。例えば、表1において優先順位が最も高く設定された送信元と送信先のIPアドレスとポート番号について、選定パケットとパケット群に含まれるパケットのそれぞれを比較し、送信元と送信先のIPアドレスとポート番号が選定パケットと異なるパケットをパケット群から取り除く。パケット群に含まれるパケットが1つに絞り込まれたときは、そのパケットが選定パケットと同一であると判定する。パケット群に含まれるパケットがなくなったときは、選定パケットはパケットロスしたと判定する。パケット群に複数のパケットが含まれるときは、次に優先順位の高い構成要素を用いてパケットを絞り込む。 The first method is a method of filtering packets included in a packet group by using components in descending order of priority. For example, for the source and destination IP addresses and port numbers set with the highest priority in Table 1, the selected packets and the packets included in the packet group are compared, and the source and destination IP addresses are compared. Remove packets whose port number is different from the selected packet from the packet group. When the packets included in the packet group are narrowed down to one, it is determined that the packets are the same as the selected packets. When there are no more packets included in the packet group, it is determined that the selected packet has lost the packet. When a packet group contains a plurality of packets, the packet is narrowed down by using the component having the next highest priority.

第2の方法は、優先順位をつけた構成要素ごとに選定パケットとパケット群に含まれるパケットを比較して得点を付け、総得点から選定パケットと同一のパケットを判定する方法である。具体的には、優先順位をつけた構成要素のそれぞれについて、選定パケットとパケット群に含まれるパケットのそれぞれを比較して得点を付ける。得点の計算方法は、パケットが同一の場合に高い得点が得られるような方法を採用する。例えば、表1の優先順位が1番の項目を用いる場合、比較対象のパケット間で送信元IPアドレス、送信先IPアドレス、送信元ポート番号、送信先ポート番号を比較して、一致する構成要素が多いものに高い得点を付与する。優先順位が2番以降の項目についてもそれぞれ得点を計算する。パケット群のなかで、得られた得点を合計した総得点が最も高いパケットを選定パケットと同一のパケットと判定する。総得点が所定の値以上のパケットが存在しないときは、選定パケットはパケットロスしたと判定する。優先順位に基づいて得点に重み付けをしてもよい。同一のパケットではないことが明らかな場合、例えばパケット間でプロトコルが異なる場合など、マイナスの得点を付与してもよい。 The second method is a method in which the selected packet and the packet included in the packet group are compared and scored for each prioritized component, and the same packet as the selected packet is determined from the total score. Specifically, for each of the prioritized components, the selected packet and the packet included in the packet group are compared and scored. As the score calculation method, a method is adopted in which a high score can be obtained when the packets are the same. For example, when the item with the highest priority in Table 1 is used, the source IP address, the destination IP address, the source port number, and the destination port number are compared between the packets to be compared, and the matching components are matched. Give a high score to those with many. Scores are also calculated for each item with the second or higher priority. Among the packet groups, the packet having the highest total score, which is the sum of the obtained scores, is determined to be the same packet as the selected packet. When there is no packet whose total score is equal to or higher than a predetermined value, it is determined that the selected packet has lost the packet. Scores may be weighted based on priority. A negative score may be given when it is clear that the packets are not the same, for example, when the protocols differ between the packets.

第2の方法では、NATまたはNAPTによりIPアドレスやポート番号が変換されたパケットについても同一性を判定できる。 In the second method, the identity can be determined even for packets whose IP addresses and port numbers have been translated by NAT or NAPT.

ステップS15にて、抽出部12は、キャプチャデータAの全てのパケットを処理したか否か判定する。全てのパケットを処理していないときは、ステップS12に戻り、キャプチャデータAから次のパケットを選定する。 In step S15, the extraction unit 12 determines whether or not all the packets of the capture data A have been processed. When not all packets have been processed, the process returns to step S12, and the next packet is selected from the captured data A.

なお、キャプチャデータAの全てのパケットを処理した後、比較元と比較先のキャプチャデータA,Bを入れ替えて、ステップS12からステップS15までの処理を繰り返してもよい。具体的には、抽出部12は、ステップS12でキャプチャデータBからパケットを選定し、ステップS13でキャプチャデータAからパケット群を抽出する。判定部13は、ステップS14でキャプチャデータBから選定したパケットとキャプチャデータAから抽出したパケット群とを比較する。これにより、キャプチャデータBの測定点からキャプチャデータAの測定点へ伝送されるパケットでパケットロスしたものを抽出できる。 After processing all the packets of the capture data A, the capture data A and B of the comparison source and the comparison destination may be exchanged, and the processes from step S12 to step S15 may be repeated. Specifically, the extraction unit 12 selects a packet from the capture data B in step S12, and extracts a packet group from the capture data A in step S13. The determination unit 13 compares the packet selected from the capture data B in step S14 with the packet group extracted from the capture data A. As a result, packets transmitted from the measurement point of the capture data B to the measurement point of the capture data A can be extracted with packet loss.

以上説明したように、本実施形態のパケット比較装置1は、入力部11が、通信経路上の異なる点のそれぞれでパケットを取得したキャプチャデータA,Bを入力し、抽出部12が、キャプチャデータAからパケットを選定して、選定したパケットの時刻情報を基準として所定の範囲内の時刻情報を持つパケット群をキャプチャデータBから抽出し、判定部13が、パケットの構成要素に優先順位をつけておき、パケット群に含まれるパケットのそれぞれについて、優先順位をつけた構成要素を用いて、選定したパケットとパケット群に含まれるパケットの同一性を判定する。これにより、キャプチャデータAとキャプチャデータBの時刻情報が同期していない場合でも、キャプチャデータA,B間で同一のパケットおよびパケットロスを容易に把握できる。 As described above, in the packet comparison device 1 of the present embodiment, the input unit 11 inputs the captured data A and B obtained by acquiring packets at different points on the communication path, and the extraction unit 12 inputs the captured data. A packet is selected from A, a group of packets having time information within a predetermined range is extracted from the capture data B based on the time information of the selected packet, and the determination unit 13 prioritizes the components of the packet. Then, for each of the packets included in the packet group, the identity of the selected packet and the packet included in the packet group is determined by using the prioritized components. As a result, even if the time information of the capture data A and the capture data B are not synchronized, the same packet and packet loss can be easily grasped between the capture data A and B.

1…パケット比較装置
11…入力部
12…抽出部
13…判定部
14…出力部
1 ... Packet comparison device 11 ... Input unit 12 ... Extraction unit 13 ... Judgment unit 14 ... Output unit

本発明の一態様のパケット比較プログラムは、通信経路上の異なる点のそれぞれでパケットを取得した第1キャプチャデータと第2キャプチャデータを入力する処理と、前記第1キャプチャデータから第1パケットを選定する処理と、前記第1パケットの時刻情報を基準として所定の範囲内の時刻情報を持つパケット群を前記第2キャプチャデータから抽出する処理と、パケットの構成要素に優先順位をつけておき、前記パケット群に含まれる第2パケットのそれぞれについて、前記構成要素を用いて、前記第1パケットと前記第2パケットの同一性を判定する処理をコンピュータに実行させ、前記第1パケットと前記第2パケットの同一性を判定する処理は、優先順位をつけた前記構成要素ごとに前記第1パケットと前記第2パケットを比較して、一致する構成要素が多いものに高い得点を付与し、優先順位が高い構成要素から順に繰り返し、得られた得点を合計した総得点が最も高い前記第2パケットを前記第1パケットと同一のパケットと判定するIn the packet comparison program of one aspect of the present invention, the process of inputting the first captured data and the second captured data obtained by acquiring packets at different points on the communication path, and selecting the first packet from the first captured data. Processing, processing to extract a group of packets having time information within a predetermined range based on the time information of the first packet from the second capture data, and prioritizing the components of the packet. for each of the second packets in the packet group, said component with said to execute processing for determining the computer as the first packet identity of the second packet, the first packet and the second packet In the process of determining the identity of the above, the first packet and the second packet are compared for each of the prioritized components, and the one with many matching components is given a high score, and the priority is given. The second packet having the highest total score, which is the sum of the obtained scores, is determined to be the same packet as the first packet by repeating in order from the highest component .

Claims (4)

通信経路上の異なる点のそれぞれでパケットを取得した第1キャプチャデータと第2キャプチャデータを入力する処理と、
前記第1キャプチャデータから第1パケットを選定する処理と、
前記第1パケットの時刻情報を基準として所定の範囲内の時刻情報を持つパケット群を前記第2キャプチャデータから抽出する処理と、
パケットの構成要素に優先順位をつけておき、前記パケット群に含まれる第2パケットのそれぞれについて、前記構成要素を用いて、前記第1パケットと前記第2パケットの同一性を判定する処理
をコンピュータに実行させるパケット比較プログラム。
The process of inputting the first capture data and the second capture data that acquired packets at different points on the communication path,
The process of selecting the first packet from the first capture data and
A process of extracting a packet group having time information within a predetermined range from the second capture data based on the time information of the first packet, and
A computer performs a process of prioritizing packet components and determining the identity of the first packet and the second packet for each of the second packets included in the packet group by using the components. Packet comparison program to be executed by.
前記判定する処理は、前記構成要素を優先順位の高い順に用いて、前記パケット群に含まれる第2パケットをフィルタリングする請求項1に記載のパケット比較プログラム。 The packet comparison program according to claim 1, wherein the determination process uses the components in descending order of priority to filter the second packet included in the packet group. 前記判定する処理は、優先順位をつけた前記構成要素ごとに前記第1パケットと前記第2パケットを比較して得点を付け、総得点から前記第1パケットと前記第2パケットの同一性を判定する請求項1に記載のパケット比較プログラム。 In the determination process, the first packet and the second packet are compared and scored for each of the prioritized components, and the identity of the first packet and the second packet is determined from the total score. The packet comparison program according to claim 1. 同一と判定されたパケットを並べて出力する処理をコンピュータに実行させる請求項1ないし3のいずれかに記載のパケット比較プログラム。 The packet comparison program according to any one of claims 1 to 3, wherein a computer executes a process of arranging and outputting packets determined to be the same.
JP2020049283A 2020-03-19 2020-03-19 Packet comparison program Active JP6998982B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2020049283A JP6998982B2 (en) 2020-03-19 2020-03-19 Packet comparison program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2020049283A JP6998982B2 (en) 2020-03-19 2020-03-19 Packet comparison program

Publications (2)

Publication Number Publication Date
JP2021150826A true JP2021150826A (en) 2021-09-27
JP6998982B2 JP6998982B2 (en) 2022-02-10

Family

ID=77849557

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2020049283A Active JP6998982B2 (en) 2020-03-19 2020-03-19 Packet comparison program

Country Status (1)

Country Link
JP (1) JP6998982B2 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014216991A (en) * 2013-04-30 2014-11-17 株式会社日立製作所 Analysis server and analysis method
JP2015119384A (en) * 2013-12-19 2015-06-25 東日本電信電話株式会社 Network quality measurement device
JP2015204538A (en) * 2014-04-15 2015-11-16 株式会社日立製作所 Call processing sequence analyzer and communication system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014216991A (en) * 2013-04-30 2014-11-17 株式会社日立製作所 Analysis server and analysis method
JP2015119384A (en) * 2013-12-19 2015-06-25 東日本電信電話株式会社 Network quality measurement device
JP2015204538A (en) * 2014-04-15 2015-11-16 株式会社日立製作所 Call processing sequence analyzer and communication system

Also Published As

Publication number Publication date
JP6998982B2 (en) 2022-02-10

Similar Documents

Publication Publication Date Title
KR101510432B1 (en) Apparatus for analizing traffic
CN105591973B (en) Application identification method and device
US20120182891A1 (en) Packet analysis system and method using hadoop based parallel computation
CN104270392A (en) Method and system for network protocol recognition based on tri-classifier cooperative training learning
CN111953552B (en) Data flow classification method and message forwarding equipment
US20080291912A1 (en) System and method for detecting file
US10523549B1 (en) Method and system for detecting and classifying networked devices
CN101741628A (en) Application layer service analysis-based network flow analysis method
EP3065343B1 (en) Network monitoring method and apparatus, and packet filtering method and apparatus
Choi et al. Automated classifier generation for application-level mobile traffic identification
Mongkolluksamee et al. Counting NATted hosts by observing TCP/IP field behaviors
Mazhar Rathore et al. Exploiting encrypted and tunneled multimedia calls in high-speed big data environment
US20100290353A1 (en) Apparatus and method for classifying network packet data
CN102006290B (en) IP source address tracing method
JP6998982B2 (en) Packet comparison program
CN113438332A (en) DoH service identification method and device
CN112966261A (en) Lightweight scalable network traffic feature extraction tool and method
EP3790260B1 (en) Device and method for identifying network devices in a nat based communication network
Shen et al. On detection accuracy of L7-filter and OpenDPI
JP3596478B2 (en) Traffic classification device and traffic classification method
CN114553546B (en) Message grabbing method and device based on network application
CN105871573A (en) Method and device for analyzing and filtering message
CN110620682B (en) Resource information acquisition method and device, storage medium and terminal
CN114153807A (en) Message processing method and device, electronic equipment and computer readable storage medium
US20050249221A1 (en) Method for the recursive and statistical analysis of communications networks

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20200319

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20210518

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20210702

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20211221

R150 Certificate of patent or registration of utility model

Ref document number: 6998982

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150