JP2006275937A - Packet time correcting method - Google Patents

Packet time correcting method Download PDF

Info

Publication number
JP2006275937A
JP2006275937A JP2005098703A JP2005098703A JP2006275937A JP 2006275937 A JP2006275937 A JP 2006275937A JP 2005098703 A JP2005098703 A JP 2005098703A JP 2005098703 A JP2005098703 A JP 2005098703A JP 2006275937 A JP2006275937 A JP 2006275937A
Authority
JP
Japan
Prior art keywords
time
packet
local timer
corrected
standard
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
JP2005098703A
Other languages
Japanese (ja)
Inventor
Hayashi Cho
林 張
Yoshitaka Miyazaki
義隆 宮崎
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.)
Yaskawa Electric Corp
YE Digital Co Ltd
Original Assignee
Yaskawa Electric Corp
Yaskawa Information Systems Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yaskawa Electric Corp, Yaskawa Information Systems Co Ltd filed Critical Yaskawa Electric Corp
Priority to JP2005098703A priority Critical patent/JP2006275937A/en
Publication of JP2006275937A publication Critical patent/JP2006275937A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Electric Clocks (AREA)
  • Computer And Data Communications (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To accurately correct arrival time order of a packet including time information in transit on a network even when the time inversion occurs by time setting. <P>SOLUTION: In a packet capture device for correcting time of a local timer to the standard, time of an NTP server, the time information of the packet stored in a memory is corrected by following procedures. Time deviation Δt<SB>i</SB>of the local timer is calculated and it is determined whether the time is fast or not (ST7). When Δt<SB>i</SB>is not larger than 0, t<SB>in</SB>is set for the local timer (ST8), and max(t<SB>ie</SB>-n, t<SB>in</SB>) is set for the local timer when Δt<SB>i</SB>is larger than 0 (ST9). When the packet arrives in inquiry to NTP server, min (n, Δt<SB>i</SB>) is subtracted from the time of the packet arriving in inquiry, and is corrected (ST11). <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

本発明は、ネットワーク上を流れるパケットを取り込んで記録するパケットキャプチャー装置に関するものであり、特に、ローカルタイマの誤差を正す時にパケットの時刻情報が到着順に正しくなるよう修正する方法に関する。   The present invention relates to a packet capture device that captures and records a packet flowing on a network, and more particularly, to a method for correcting packet time information to be correct in the order of arrival when a local timer error is corrected.

ネットワークに流れる大量のパケットの情報は、セキュリティ等の点から監視されることがあり、パケットキャプチャー装置が広く使われている。パケットキャプチャー装置が監視するパケットの情報は、内蔵するローカルタイマの時刻と一緒に記録されて到着順を知ることができるようになっているが、ローカルタイマの精度が十分とはいえないので記録される時刻が時間の経過と共に少しずつずれて誤差が生じている。ローカルタイマの誤差は標準時間を取り込んで正しくすることができるが、記録したパケット情報の時刻は正しくされることは無く、誤差を含んだままとなっている。その状況を従来のパケットキャプチャー装置の構成を示す図5のブロック図を用いて説明する。   Information on a large amount of packets flowing through the network may be monitored from the viewpoint of security and the like, and packet capture devices are widely used. The packet information monitored by the packet capture device is recorded together with the time of the built-in local timer so that the arrival order can be known, but it is recorded because the accuracy of the local timer is not sufficient. There is an error due to the time being shifted slightly over time. The error of the local timer can be corrected by taking in the standard time, but the time of the recorded packet information is not corrected and remains in error. The situation will be described with reference to the block diagram of FIG. 5 showing the configuration of a conventional packet capture device.

図5において101Bはパケットキャプチャー装置であり、パケット情報取得部1とメモリ2B、パケット情報記録部3、パケット到着チェック部5B、標準時間取得部7B、マシン時間修正部4、ローカルタイマ8Bから構成されている。パケット情報取得部1はネットワーク20に接続され、標準時間取得部7BはNTP(Network Time Protocol)サーバ21に接続されている。パケット到着チェック部5Bはタイマーとパケット到着チェック回路から構成されており、タイマーがn秒毎にパケット到着チェック回路を起動させている。
ネットワーク20を流れるパケットは連続的にパケット情報取得部1によって取り込まれ、パケットとローカルタイマ8Bに基づく時刻情報を一緒にメモリ2Bに格納される。パケット到着チェック部5Bはタイマーによってn秒毎にパケット到着チェック回路を起動し、メモリ2Bを監視してパケットが到着したかどうかをチェックする。パケットが到着していなければ再度n秒待ってパケットが到着したかどうかをチェックし、同じことをn秒毎に繰り返す。パケットが到着していればパケット情報記録部3に指令を出し、メモリ2Bに格納された情報がハードディスクに記録され、パケットの到着順がわかるようになっている。ローカルタイマ8Bは時間と共に誤差が大きくなるので、NTPクライアントとして時間同期ツールによる時間合わせコマンドを定期的に起動しNTPサーバーと同期して自動的に時間が修正される(例えば、特許文献1参照)。このとき具体的には、マシン時間修正部4が定期的に標準時間取得部7Bに指令を送り、標準時間取得部7BがNTPサーバ21に問い合わせて標準時間を取得し、ローカルタイマ8Bの時間を修正する。その後は、取得するパケットと修正されたローカルタイマ8Bに基づく時刻情報が一緒に記録される。
特開2002−250786
In FIG. 5, reference numeral 101B denotes a packet capture device, which includes a packet information acquisition unit 1 and memory 2B, a packet information recording unit 3, a packet arrival check unit 5B, a standard time acquisition unit 7B, a machine time correction unit 4, and a local timer 8B. ing. The packet information acquisition unit 1 is connected to the network 20, and the standard time acquisition unit 7B is connected to an NTP (Network Time Protocol) server 21. The packet arrival check unit 5B includes a timer and a packet arrival check circuit, and the timer activates the packet arrival check circuit every n seconds.
Packets flowing through the network 20 are continuously captured by the packet information acquisition unit 1, and the packet and time information based on the local timer 8B are stored together in the memory 2B. The packet arrival check unit 5B activates a packet arrival check circuit every n seconds by a timer, and monitors the memory 2B to check whether a packet has arrived. If the packet has not arrived, it waits n seconds again to check whether the packet has arrived, and the same is repeated every n seconds. If a packet has arrived, a command is issued to the packet information recording unit 3, and the information stored in the memory 2B is recorded on the hard disk so that the order of arrival of the packets can be known. Since the error of the local timer 8B increases with time, the time adjustment command by the time synchronization tool is periodically activated as an NTP client, and the time is automatically corrected in synchronization with the NTP server (see, for example, Patent Document 1). . Specifically, the machine time correction unit 4 periodically sends a command to the standard time acquisition unit 7B, the standard time acquisition unit 7B inquires the NTP server 21 to acquire the standard time, and sets the time of the local timer 8B. Correct it. Thereafter, time information based on the packet to be acquired and the modified local timer 8B is recorded together.
JP 2002-250786

ところが図5に示した従来のパケットキャプチャー装置は、パケットの記録とローカルタイマの自動的修正が独立して機能するので、ローカルタイマの時間が定期的に正されるものの記録したパケットの時刻情報が到着順に正しく記録されるとは限らず、後から到着したパケットの到着時刻が先に到着したパケットの到着時刻より早くなったりしてしまい、時間合わせによる時刻の逆転が発生するという問題があった。   However, in the conventional packet capture device shown in FIG. 5, since the packet recording and the automatic correction of the local timer function independently, the time information of the recorded packet is recorded although the time of the local timer is periodically corrected. There is a problem that the arrival time of the packet that arrived later is earlier than the arrival time of the packet that arrived earlier, resulting in time reversal due to time alignment, which is not always recorded correctly in the order of arrival. .

本発明は、かかる問題点に鑑みてなされたものであり、時間合わせによる時刻の逆転が生じても、ネットワーク上に流れる時刻を含むパケットの到着時刻順を正確に修正することができるようにすることを目的とする。   The present invention has been made in view of such a problem, and enables the order of arrival times of packets including the time flowing on the network to be accurately corrected even when the time is reversed due to time adjustment. For the purpose.

そこで本発明は、ネットワーク上のパケットを取り込んでローカルタイマに基づく時刻情報と一緒にメモリに記録するとともに、所定時間間隔で前記ローカルタイマの時間をNTPサーバの標準時間に修正するパケットキャプチャー装置において、前記NTPサーバに問い合わせ中に到着したパケットについては、前記ローカルタイマの時間が標準時間より進んでいれば、min(n、Δt)を差し引いて修正することを特徴としている。
また第2の本発明は、ネットワーク上のパケットを取り込んでローカルタイマに基づく時刻情報と一緒にメモリに記録するとともに、所定時間間隔で前記ローカルタイマの時間をNTPサーバの標準時間に修正するパケットキャプチャー装置において、前記メモリに記録されたパケットの時刻情報を次の手順で修正することを特徴としている。(1)前記ローカルタイマの時間ずれΔtを計算する。(2)Δt>0でなければ前記ローカルタイマにtinを設定し、Δt>0であれば前記ローカルタイマにmax(tie−n、tin)を設定する。(3)前記NTPサーバに問い合わせ中にパケットが到着していれば、問い合わせ中に到着したパケットの時刻からmin(n、Δt)を差し引いて修正する。
Therefore, the present invention provides a packet capture device that captures a packet on a network and records it in a memory together with time information based on a local timer, and corrects the time of the local timer to a standard time of an NTP server at a predetermined time interval. A packet that arrives during an inquiry to the NTP server is corrected by subtracting min (n, Δt i ) if the time of the local timer is ahead of the standard time.
Further, the second aspect of the present invention captures a packet on the network, records it in a memory together with time information based on a local timer, and corrects the time of the local timer to a standard time of the NTP server at a predetermined time interval. In the apparatus, the time information of the packet recorded in the memory is corrected by the following procedure. (1) Calculate the time lag Δt i of the local timer. (2) Set t in the Delta] t i> 0 unless the local timer, set the max (t ie -n, t in ) to said local timer if Δt i> 0. (3) If a packet has arrived during an inquiry to the NTP server, it is corrected by subtracting min (n, Δt i ) from the time of the packet that arrived during the inquiry.

本発明によれば、NTPサーバに問い合わせて時間がずれたローカルタイマの時間を修正し、さらにNTPサーバに問い合わせ中に到着したパケットの時刻情報についても修正をするので、ローカルタイマの時間ずれの修正に合せて記録したパケットの時刻情報が正しくされる。従って、パケットの到着時刻順も正しくされてパケットキャプチャー装置の精度を向上させるという効果がある。   According to the present invention, the time of the local timer whose time is shifted by inquiring the NTP server is corrected, and the time information of the packet that arrives during the inquiry to the NTP server is also corrected. The time information of the packet recorded in accordance with is corrected. Accordingly, the order of arrival times of the packets is also made correct, and the accuracy of the packet capture device is improved.

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

図1は本発明のパケットキャプチャー装置の構成を示す図である。パケット情報取得部1とパケット情報記録部3、マシン時間修正部4は図5に記載のものと全く同じものが使われている。メモリ2とパケット到着チェック部5、標準時間取得部7、ローカルタイマ8は図5のメモリ2B、パケット到着チェック部5B、標準時間取得部7B、ローカルタイマ8Bとほぼ同じものであり、多少の機能が異なっている。パケット時刻情報修正部6と時間進み検出部9は図5では使われておらず、新しく追加されたものである。
図において、標準時間取得部7がNTPサーバ21に問合わせて標準時間を取得すると、時間進み検出部9がローカルタイマ8のマシン時間と取得した標準時間の時間ずれを計算する。時間のずれがあればマシン時間修正部4がローカルタイマ8の時間を修正する。NTPサーバに問い合わせ中にパケットが到着していれば、問い合わせ中に到着したメモリ2の中のパケットの時刻を時刻情報修正部6が修正する。
FIG. 1 is a diagram showing the configuration of a packet capture device of the present invention. The packet information acquisition unit 1, the packet information recording unit 3, and the machine time correction unit 4 are exactly the same as those shown in FIG. The memory 2, the packet arrival check unit 5, the standard time acquisition unit 7, and the local timer 8 are substantially the same as the memory 2B, the packet arrival check unit 5B, the standard time acquisition unit 7B, and the local timer 8B in FIG. Is different. The packet time information correction unit 6 and the time advance detection unit 9 are not used in FIG. 5 and are newly added.
In the figure, when the standard time acquisition unit 7 inquires the NTP server 21 and acquires the standard time, the time advance detection unit 9 calculates the time difference between the machine time of the local timer 8 and the acquired standard time. If there is a time lag, the machine time correction unit 4 corrects the time of the local timer 8. If the packet has arrived during the inquiry to the NTP server, the time information correction unit 6 corrects the time of the packet in the memory 2 that has arrived during the inquiry.

図2は、パケット情報取得部1によって取得されてメモリ2に格納された時刻情報を含むパケットの格納状況を示す図である。
図3は標準時間取得部7がNTPサーバ21に標準時間を問合わせるときの状況を時系列に説明する図である。マシン時刻をt、tで表わし、標準時刻をtで表わし、メモリに格納されたパケットのポイントをpで表わしている。添え字sは問合せ開始の時刻を表わし、添え字eは問合せ終了の時刻を表わし、添え字1、2、・・・mは問合せ回数を表わしている。
FIG. 2 is a diagram illustrating a storage state of a packet including time information acquired by the packet information acquisition unit 1 and stored in the memory 2.
FIG. 3 is a diagram for explaining the situation when the standard time acquisition unit 7 queries the NTP server 21 for the standard time in time series. It represents a machine time t s, at t e, represents the standard time in t n, represents the point of the stored packets in the memory by p. The subscript s represents the query start time, the subscript e represents the query end time, and the subscripts 1, 2,... M represent the number of queries.

図4は本発明のパケットキャプチャー装置101の処理手順を説明するフローチャートである。以下、これらの図を用いてパケットキャプチャー装置の動作について説明する。
パケットキャプチャー装置101が動作を開始すると、まず、パケット情報取得部1がネットワーク20に接続され、連続的に監視対象のパケットを取り込んでローカルタイマ8に基づく時刻情報といっしょにメモリ2に格納する。
次にパケット到着チェック部5がn秒の時間間隔でメモリ2にパケットが到着しているかどうかをチェックする。このとき、(ST1)タイマーがn秒待機し、n秒待機の後にパケット到着チェック回路を起動させる。そして、(ST2)パケットがメモリ2に到着したかどうかをチェックする。(ST3)パケットが到着したかどうかを判断して到着しているときは、標準時刻とあわせることはなく、(ST4)パケット情報記録部3がメモリ2に溜まったパケットをパケット情報記録部が内蔵するハードディスクに書き出す。
パケットが到着していなければ、(ST5)パケット到着チェック部5が標準時間取得部7を起動させる。(ST6)標準時間取得部7が起動すると、NTPサーバ21に標準時間を問合せて問合せ開始時マシン時刻tisとメモリ2中にある現在パケットのポイントpis、問合せ終了時マシン時刻tie、メモリ2中にある現在パケットのポイントpie、問合せ終了時標準時刻tinを取得して記録する(i=1,2,…) 。
FIG. 4 is a flowchart for explaining the processing procedure of the packet capture device 101 of the present invention. Hereinafter, the operation of the packet capture device will be described with reference to these drawings.
When the packet capture device 101 starts operation, first, the packet information acquisition unit 1 is connected to the network 20 and continuously captures packets to be monitored and stores them in the memory 2 together with time information based on the local timer 8.
Next, the packet arrival check unit 5 checks whether a packet has arrived at the memory 2 at a time interval of n seconds. At this time, the (ST1) timer waits for n seconds, and after waiting for n seconds, activates the packet arrival check circuit. (ST2) It is checked whether the packet has arrived at the memory 2. (ST3) When the packet arrives by determining whether or not the packet has arrived, (ST4) the packet information recording unit 3 incorporates the packet that the packet information recording unit 3 has accumulated in the memory 2 Export to a hard disk.
If the packet has not arrived (ST5), the packet arrival check unit 5 activates the standard time acquisition unit 7. (ST6) When the standard time acquisition unit 7 is activated, the NTP server 21 is inquired about the standard time, the query start machine time t is , the current packet point p is in the memory 2, the query end machine time t ie , the memory point p ie of the current packet is in 2, and records to get the inquiry at the end of the standard time t in (i = 1,2, ... ).

標準時間を取得すると、時間進み検出部9がマシン時間と標準時間の差をとって時間ずれΔtiを計算する。この時間ずれΔtiは、次式によって求められる。
Δti=tie-tin (i=1,2,…)
そして、(ST7)時間進み検出部9がマシン時間が進んでいるかどうかを判断し、すなわち、Δti>0かどうかを判断し、Δti>0ではなく、Δti≦0となっていればマシン時間が標準時間と同じか標準時間より遅れており、(ST8)マシン時間修正部4が現在の標準時刻tinを用いてローカルタイマ8を修正し、時間合わせを終了する。
When the standard time is acquired, the time advance detector 9 calculates the time difference Δt i by taking the difference between the machine time and the standard time. This time difference Δt i is obtained by the following equation.
Δt i = t ie -t in (i = 1,2,…)
Then, it is determined whether the (ST7) time lead detection unit 9 has progressed machine time, i.e., to determine whether Δt i> 0, Δt i> not zero, if a Delta] t i ≦ 0 machine time has been delayed than or equal to standard time and standard time, (ST8) to modify the local timer 8 using machine time correction unit 4 is the current standard time t in, to end the time alignment.

一方、Δti>0であればマシン時間が標準時間より進んでおり、(ST9)マシン時間修正部4がmax(tie-n,tin)を用いてローカルタイマ8を修正する。ここでmax(tie-n,tin)とは、引数tie-nとtinの大きい方の値を返却する関数である。すなわち、時間ずれΔtiがn秒より小さければ、マシン時間を標準時間に修正し、時間ずれΔtiがn秒より大きければ、マシン時間をn秒減らす。いいかえれば、標準時間に対するマシン時間の進みがn秒を超えていればマシン時間からn秒を減じて修正し、n秒以下であればマシン時間を標準時間に修正する。例えば、n=5秒、マシン時間の進みが3秒(Δti=3秒)であればマシン時刻tieのときのマシン時間を標準時刻tinに変えてマシン時間を修正し、n=5秒、マシン時間の進みが8秒(Δti=8秒)であればマシン時刻tieのときのマシン時間をtie−5に変えてマシン時間を修正する。
次に(ST10)パケット時刻情報修正部6が時間問い合わせ中にパケットが到着しているかどうかをチェックする。すなわちtis〜tieの間にpie>pisとなっているかどうかをチェックする。pie=pisとなってパケットが到着していなければ、パケット時刻情報を修正する必要はない。pie>pisとなってパケットが到着していれば、(ST11)パケット時刻情報修正部6がパケットαiの時刻情報を修正する。このとき、修正前パケットの時刻情報からmin(n,Δti)が差し引かれて修正後パケットの時刻情報とされる。ここでmin(n,Δti)とは、引数nとΔtiの小さい方の値を返却する関数である。例えばn=5秒、Δti=3秒であれば、修正後パケットの時刻情報=修正前パケットの時刻情報−3、となり、n=5秒、Δti=8秒であれば、修正後パケットの時刻情報=修正前パケットの時刻情報−5、となる。
On the other hand, if Δt i > 0, the machine time has advanced from the standard time (ST9), and the machine time correction unit 4 corrects the local timer 8 using max (t ie −n, t in ). Here, max (t ie -n, t in ) is a function that returns the larger value of the arguments t ie -n and t in . That is, if the time difference Δt i is smaller than n seconds, the machine time is corrected to the standard time, and if the time difference Δt i is larger than n seconds, the machine time is decreased by n seconds. In other words, if the advance of the machine time with respect to the standard time exceeds n seconds, the machine time is corrected by subtracting n seconds, and if it is less than n seconds, the machine time is corrected to the standard time. For example, n = 5 seconds, to modify the machine time in place of the standard time t in the machine time when the advance is 3 seconds if the (Δt i = 3 seconds) machine time t ie of machine time, n = 5 seconds, to modify the machine time machine time instead of t ie -5 when the machine time progressed 8 seconds (Delta] t i = 8 seconds) in the case when the machine time t ie.
Next (ST10), the packet time information correction unit 6 checks whether a packet has arrived during the time inquiry. That is , it is checked whether p ie > p is between t is and t ie . If p ie = p is and the packet has not arrived, there is no need to modify the packet time information. If p ie > p is and the packet has arrived (ST11), the packet time information correction unit 6 corrects the time information of the packet α i . At this time, min (n, Δt i ) is subtracted from the time information of the pre-correction packet to obtain time information of the post-correction packet. Here, min (n, Δt i ) is a function that returns the smaller value of the argument n and Δt i . For example, if n = 5 seconds and Δt i = 3 seconds, the time information of the post-correction packet = time information-3 of the pre-correction packet, and if n = 5 seconds and Δt i = 8 seconds, the post-correction packet Time information = time information of uncorrected packet−5.

次に、(ST12)パケット時刻情報修正部6がマシン時間をさらにあわせる必要があるかどうか、すなわち、Δti≦nかどうかを判断する。Δti≦nとなっていてマシン時間をさらに合せる必要がなければ、マシン時間は既に標準時間に設定済みとなっており、時間合わせを終了する。

Δti≦nとなっておらずマシン時間をさらに合せる必要があれば、(ST1)に戻って上記の手順を繰り返す。
以上述べたように、本実施例によれば、標準時間を問い合わせ中に到着したパケットがあってたとしも、そのようなパケットの存在を把握し、時間ずれΔtiとnを考慮してパケットの時刻情報を修正するのでパケットデータの到着時刻順が正確に修正されるのである。
Next, (ST12) the packet time information correction unit 6 determines whether it is necessary to further adjust the machine time, that is, whether Δt i ≦ n. If Δt i ≦ n and there is no need to further match the machine time, the machine time is already set to the standard time, and the time adjustment is terminated.

If Δt i ≦ n and it is necessary to further match the machine time, the process returns to (ST1) and the above procedure is repeated.
As described above, according to the present embodiment, even if there is a packet that arrives during the inquiry about the standard time, the existence of such a packet is grasped, and the packet is considered in consideration of the time lag Δt i and n. Therefore, the arrival time order of the packet data is accurately corrected.

時刻情報を含むパケットデータの到着時刻順が正確に修正されるので、時刻情報を含むパケットデータを利用するアプリケーションであればパケットキャプチャーに限られることはなく、他の様々なアプリケーションに適用できる。   Since the arrival time order of the packet data including the time information is accurately corrected, the application is not limited to the packet capture as long as the application uses the packet data including the time information, and can be applied to various other applications.

本発明のパケットキャプチャー装置の構成を示すブロック図The block diagram which shows the structure of the packet capture apparatus of this invention メモリに格納された時刻情報を含むパケットの格納状況示す図The figure which shows the storing condition of the packet containing the time information stored in the memory 標準時間取得部がNTPサーバに標準時間を問合わせるときの時系列の状況を説明する図The figure explaining the situation of a time series when a standard time acquisition part asks an NTP server about standard time 本発明のパケットキャプチャー装置の処理手順を説明するフローチャートThe flowchart explaining the processing procedure of the packet capture device of the present invention 従来のパケットキャプチャー装置の構成を示すブロック図Block diagram showing the configuration of a conventional packet capture device

符号の説明Explanation of symbols

1 パケット情報取得部、 2、2B メモリ、
3 パケット情報記録部、 4 マシン時間修正部、
5、5B パケット到着チェック部、 6 パケット時刻情報修正部、
7、7B 標準時間取得部、 8、8B ローカルタイマ、
9 時間進み検出部、 20 ネットワーク、
21 NTPサーバ、 101、101B パケットキャプチャー装置
t0 時間問合せ開始時マシン時刻
tis 第i回目時間問合せ開始時マシン時刻 (i=1,2,…m)
tie 第i回目時間問合せ終了時マシン時刻 (i=1,2,…m)
tin 第i回目時間問合せ終了時標準時刻 (i=1,2,…m)
pis 第i回目時間問合せ開始時メモリ2中現在パケットのポイント(i=1,2,…m)
pie 第i回目時間問合せ終了時メモリ2中現在パケットのポイント(i=1,2,…m)
αi tis〜tie間に到着しているパケット(i=1,2,…m)
n n秒待つ回路の待ち時間
Δti 第i回目時間問合せ終了時マシン時間と標準時間の時間ずれ(Δti=tie-tin、i=1,2,…m)
1 packet information acquisition unit, 2, 2B memory,
3 packet information recording unit, 4 machine time correction unit,
5, 5B packet arrival check section, 6 packet time information correction section,
7, 7B Standard time acquisition unit, 8, 8B Local timer,
9 hour advance detector, 20 network,
21 NTP server, 101, 101B packet capture device
t 0 hour machine start time
t is Machine time when i-th time inquiry starts (i = 1,2,… m)
t ie Machine time at the end of the i-th time inquiry (i = 1,2,… m)
t in Standard time at the end of the i-th time inquiry (i = 1,2,… m)
p is the point of the current packet in memory 2 at the start of the i-th time inquiry (i = 1, 2, ... m)
p ie Point of the current packet in memory 2 at the end of the i-th time inquiry (i = 1, 2, ... m)
Packets arriving between α i t is and t ie (i = 1,2,… m)
n Waiting time of circuit waiting for n seconds Δt i Time difference between machine time and standard time at the end of the i-th time inquiry (Δt i = t ie -t in , i = 1,2, ... m)

Claims (2)

ネットワーク上のパケットを取り込んでローカルタイマに基づく時刻情報と一緒にメモリに記録するとともに、所定時間間隔で前記ローカルタイマの時間をNTPサーバの標準時間に修正するパケットキャプチャー装置において、
前記NTPサーバに問い合わせ中に到着したパケットについては、前記ローカルタイマの時間が標準時間より進んでいれば、min(n、Δt)を差し引いて修正することを特徴とするパケット時刻修正方法。
In a packet capture device that captures a packet on a network and records it in a memory together with time information based on a local timer, and corrects the time of the local timer to a standard time of an NTP server at a predetermined time interval.
A packet time correction method, wherein a packet arrived during an inquiry to the NTP server is corrected by subtracting min (n, Δt i ) if the time of the local timer is ahead of a standard time.
ネットワーク上のパケットを取り込んでローカルタイマに基づく時刻情報と一緒にメモリに記録するとともに、所定時間間隔で前記ローカルタイマの時間をNTPサーバの標準時間に修正するパケットキャプチャー装置において、
前記メモリに記録されたパケットの時刻情報を次の手順で修正することを特徴とするパケット時刻修正方法。
(1)前記ローカルタイマの時間ずれΔtを計算する。
(2)Δt>0でなければ前記ローカルタイマにtinを設定し、Δt>0であれば前記ローカルタイマにmax(tie−n、tin)を設定する。
(3)前記NTPサーバに問い合わせ中にパケットが到着していれば、問い合わせ中に到着したパケットの時刻からmin(n、Δt)を差し引いて修正する。
In a packet capture device that captures a packet on a network and records it in a memory together with time information based on a local timer, and corrects the time of the local timer to a standard time of an NTP server at a predetermined time interval.
A packet time correction method, wherein time information of a packet recorded in the memory is corrected by the following procedure.
(1) Calculate the time lag Δt i of the local timer.
(2) Set t in the Delta] t i> 0 unless the local timer, set the max (t ie -n, t in ) to said local timer if Δt i> 0.
(3) If a packet has arrived during an inquiry to the NTP server, it is corrected by subtracting min (n, Δt i ) from the time of the packet that arrived during the inquiry.
JP2005098703A 2005-03-30 2005-03-30 Packet time correcting method Withdrawn JP2006275937A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005098703A JP2006275937A (en) 2005-03-30 2005-03-30 Packet time correcting method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005098703A JP2006275937A (en) 2005-03-30 2005-03-30 Packet time correcting method

Publications (1)

Publication Number Publication Date
JP2006275937A true JP2006275937A (en) 2006-10-12

Family

ID=37210847

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005098703A Withdrawn JP2006275937A (en) 2005-03-30 2005-03-30 Packet time correcting method

Country Status (1)

Country Link
JP (1) JP2006275937A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018112425A (en) * 2017-01-10 2018-07-19 株式会社デンソーテン Method for system time synchronization

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018112425A (en) * 2017-01-10 2018-07-19 株式会社デンソーテン Method for system time synchronization

Similar Documents

Publication Publication Date Title
US7606928B2 (en) Method and device for controlling receiver buffer fullness level in multimedia streaming
US7483448B2 (en) Method and system for the clock synchronization of network terminals
US9176498B2 (en) Control that estimates delayed manipulated variables
US7349400B2 (en) Method and system for transport protocol reconstruction and timer synchronization for non-intrusive capturing and analysis of packets on a high-speed distributed network
JP4250654B2 (en) COMMUNICATION DEVICE, COMMUNICATION METHOD, AND COMMUNICATION PROGRAM
EP2954653B1 (en) Technique for detecting an encoder functionality issue
JP2009538101A (en) Network time protocol precision time stamp service
US20070300272A1 (en) Network Camera Apparatus and Distributing Method of Video Frames
KR101702885B1 (en) Time synchronization apparatus and method
WO2009076908A1 (en) A method, an equipment and a system for the network clock synchronization
US9490992B2 (en) Remote conference saving system for managing missing media data and storage medium
US20180205477A1 (en) Clock synchronizaton using codeword marker
CN111162971A (en) Time delay determination method and device
JP4889787B2 (en) Measuring method, measuring apparatus and computer program
US20060140280A1 (en) Device for recording video data and audio data
JP2007214670A (en) Client device and program
US20020122434A1 (en) Data transmitting apparatus and data receiving apparatus
CN112866755B (en) Video playing method and device, electronic equipment and storage medium
JP2006275937A (en) Packet time correcting method
JP6384318B2 (en) COMMUNICATION DEVICE, COMMUNICATION DEVICE SYNCHRONIZATION METHOD, COMMUNICATION PROGRAM, AND COMMUNICATION SYSTEM
US20080204786A1 (en) Information processing apparatus, display control method, and storage medium
JP2004289748A (en) Quality monitoring system and its quality monitoring method for multimedia communications
US7643503B2 (en) System and method for dynamically determining retransmit buffer time
JP4331702B2 (en) One-way transfer delay time estimation apparatus, method, and program
WO2014073293A1 (en) Communication apparatus, communication system, synchronization method, and program

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