CN101848119A - High-accuracy network round-trip delay measuring method for eliminating system processing time - Google Patents

High-accuracy network round-trip delay measuring method for eliminating system processing time Download PDF

Info

Publication number
CN101848119A
CN101848119A CN 201010178343 CN201010178343A CN101848119A CN 101848119 A CN101848119 A CN 101848119A CN 201010178343 CN201010178343 CN 201010178343 CN 201010178343 A CN201010178343 A CN 201010178343A CN 101848119 A CN101848119 A CN 101848119A
Authority
CN
Grant status
Application
Patent type
Prior art keywords
local host
step
host
time
value
Prior art date
Application number
CN 201010178343
Other languages
Chinese (zh)
Inventor
张大陆
曹孝晶
胡治国
Original Assignee
同济大学
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

Links

Abstract

The invention discloses a high-accuracy network round-trip delay measuring method for eliminating system processing time, which comprises the following steps of: firstly, running a sending program and a receiving program on a local host computer to acquire the system processing time of the local host computer; secondly, acquiring a main frequency value F of the local host computer; thirdly, sending a test pack to an out-of-town host computer by the local host computer to acquire the round-trip time T; and finally, calculating the round-trip delay value delay=(T-N)/F. The method has the characteristics of high accuracy and cross operating system platform so as to effectively solve the problem of low acquisition time accuracy without acquiring mass of data but only needing to acquire the system processing time and main frequency data for one or two times to measure the round-trip delay; besides, the method has the characteristic of low complexity and takes the system processing time into consideration to ensure that the acquired round-trip delay value can better reflect the network condition.

Description

一种消除系统处理时间的高精度网络往返延迟测量方法 Processing system for eliminating the precision network round-trip delay time measuring method

技术领域 FIELD

[0001] 本发明属于网络通信技术领域,涉及一种消除系统处理时间的高精度网络往返延迟测量方法。 [0001] The present invention belongs to the technical field of network communication, to a system for processing time to eliminate the network round-trip delay measurement precision.

背景技术 Background technique

[0002] 延迟是网络的固有属性之一,也是评价网络性能的基本指标。 [0002] The delay is one of the inherent properties of the network, but also evaluate the basic network performance metrics. 延迟测量在网络性能监测、网络行为分析、网络应用设计等领域有着广泛的应用,同时也是测量延迟抖动、网络带宽等性能指标的基础。 Delay measurements in network performance monitoring, network behavior analysis, network application design and other fields has been widely used, but also the basis for measuring the delay jitter, network bandwidth and other performance indicators.

[0003] 网络延迟测量主要分为单向延迟测量和往返延迟测量。 [0003] divided into one-way network delay measurement and delay measured round trip delay measurement. 目前单向延迟测量的主要误差是由于时钟不同步所造成的,主要研究方向是对采样数据的数据处理方法的改进,如Moon的线性规划等;往返延迟测量的误差主要是由于获取时间精度不够,不同系统平台提供的往返延迟测量精度各不相同,如windows下timeGetTimeO只能达到微妙级,Linux下gettimeofdayO却能达到毫秒级,主流的方法有Ping方法等。 Currently way delay measurement errors are mainly due to the synchronized clocks are not caused by the main research direction is to improve data processing method for sample data, such as a linear programming Moon; round-trip delay measurement error is primarily due to insufficient precision acquisition time , and from different platforms provide different delay measurement accuracy, such as under the windows timeGetTimeO only a delicate stage, Linux gettimeofdayO able to reach the next millisecond, the mainstream method is a method Ping.

[0004] Moon方法主要是对单向延迟测量中主要误差的源头、主机时钟不同步进行建模, 得出线性模型,然后对单向延迟测量得到的值进行线性规划,得出相关参数,从而计算得到真实网络单向延迟值,其缺点是需要收集大量数据才能进行线性规划。 [0004] Moon source method is mainly one-way delay measurement error in the main, master clocks are not synchronized modeling, linear model obtained, then the one-way delay value measured linear programming, derived parameters, such a one-way network delay is calculated true value, the drawback is a large amount of data to be collected for linear programming.

[0005] Ping是主流的往返延迟测量方法,其发送IP请求包和接收ICMP应答包得到网络往返延迟值,由于ICMP具有立即回复的特点,所以避免了由于应答方没有及时回复的误差,其缺点是,在windows下精度只有微妙,同时没有考虑整个系统处理时间,即回环测试时的延迟值不应计入网络往返延迟值中。 [0005] Ping mainstream round trip delay measurement, which transmits IP request packet and receiving an ICMP packet to give the network round-trip delay value, since the ICMP having immediate response characteristics, so avoiding errors due to the responder did not respond, the drawback is only delicate precision in the windows, while the entire system does not consider processing time, i.e. the time delay value should not be included in the loopback network round trip delay values.

发明内容 SUMMARY

[0006] 本发明所要解决的技术问题是:提供一种高精度、跨平台同时不需要大量测试数据的消除系统处理时间的高精度网络往返延迟测量方法。 [0006] The present invention solves the technical problem are: to provide a high-precision, cross-platform while not requiring a large amount of test data to eliminate high-precision processing system network round-trip delay time measuring method.

[0007] 为解决上述技术问题,本发明采用如下技术方案。 [0007] To solve the above problems, the present invention adopts the following technical solution.

[0008] 一种消除系统处理时间的高精度网络往返延迟测量方法包括如下步骤: Delay Measurement Method [0008] A cancellation system network round-trip processing time with high accuracy comprising the steps of:

[0009] 步骤一,在本地主机上运行发送程序和接收程序获得本地主机的系统处理时间N; [0009] Step a, sending on the local host operating system program and receiving program obtains the processing time of the local host N;

[0010] 步骤二,获取本地主机的主频值F ; [0010] Step two, the value of obtaining frequency F of the local host;

[0011] 步骤三,本地主机向外地主机发送测试包获得往返时间T ; [0011] Step three, the local host outwardly host sends test packets to obtain the round trip time T;

[0012] 步骤四,计算获得往返延迟值delay = (T_N)/F。 [0012] Step 4 to obtain the round trip delay value is calculated delay = (T_N) / F.

[0013] 作为本发明的一种优选方案,所述步骤一的详细过程为: [0013] As a preferred embodiment of the present invention, a detailed procedure of the step of:

[0014] 本地主机的发送程序发送测试包,并同时记录下发送测试包时本地主机的TSC寄存器值nl ; [0014] The local host sends test packets transmitted, and simultaneously record the transmitted test packet the local host TSC register value NL;

[0015] 本地主机的接收程序接收所述测试包,然后立刻回复一个应答包给发送程序; Receiving program [0015] the local host receives the test packet, and then immediately return a response packet transmission program;

[0016] 发送程序接收到应答包后记录下此时本地主机的TSC寄存器值n2 ;[0017] 本地主机的系统处理时间N = n2-nl。 TSC register value [0016] The program receives the response packet transmitted at this time the recording of the local host n2; [0017] the local host system processing time N = n2-nl.

[0018] 作为本发明的另一种优选方案,所述步骤二的详细过程为: [0018] As another preferred embodiment of the present invention, the detailed procedure II as follows:

[0019] 在本地主机上获取本地主机的TSC寄存器值π3,等待t秒,再获取本地主机的TSC 寄存器值n4,从而得到本地主机的主频值F = (n4-n3)/t。 [0019] Gets the local host on the local host TSC register value π3, waiting for t seconds, then the local host TSC acquired register values ​​n4, thereby obtaining the local host frequency value F = (n4-n3) / t. [0020] 作为本发明的再一种优选方案,所述步骤三的详细过程为: [0020] As still another preferred embodiment of the present invention, the detailed procedure of step three:

[0021] 本地主机发送测试包给外地主机,同时记录下发送时本地主机的TSC寄存器值n5,然后等待接收外地主机的应答包; [0021] The local host transmits a test packet to the host field, while the register value n5 recording TSC local host transmits the next, then the host waits to receive a response packet field;

[0022] 本地主机接收到外地主机的应答包的同时时记录下此时本地主机的TSC寄存器值η6 ; While the response packet [0022] the local host to the field received host record at this time when the local host TSC register value η6;

[0023] 计算获得往返时间T = η6-η5。 [0023] calculation to obtain the round trip time T = η6-η5.

[0024] 作为本发明的再一种优选方案,所述方法包括如下详细步骤: [0024] As still another preferred embodiment of the present invention, the method comprises the following detailed steps:

[0025] 步骤Α、本地主机A发送测试包,并获得此时本地主机的TSC寄存器值nl ; [0025] Step [alpha], the local host A sends a test packet, the local time is obtained and host TSC register value NL;

[0026] 步骤B、本地主机A接收测试包,并发送应答包; [0026] Procedure B, the local host A receives the test packet, and sends a reply packet;

[0027] 步骤C、本地主机A接收应答包,并得到此时本地主机的TSC寄存器值π2 ; [0027] Procedure C, the local host A receives the response packet, and at this time to give the local host TSC register value π2;

[0028] 步骤D、计算得到本地主机的系统处理时间N = n2-nl ; [0028] Procedure D, is calculated to obtain the local host system processing time N = n2-nl;

[0029] 步骤E、获取本地主机的TSC寄存器值η3 ; [0029] Step E, acquiring local host TSC register value not larger;

[0030] 步骤F、让程序等待t秒; [0030] Step F, the program to wait for t seconds;

[0031] 步骤G、再次获取本地主机的TSC寄存器值n4 ; [0031] Step G, again obtains the local host TSC register value N4;

[0032] 步骤H、计算得到本地主机的主频F = (n4-n3) /t ; [0032] Step H, the local host calculated frequency F = (n4-n3) / t;

[0033] 步骤I、本地主机A发送测试包到外地主机B,并得到此时本地主机的TSC寄存器值n5 ; [0033] Step I, the local host A sends a test packet to the host field B, and at this time to give the local host TSC register value N5;

[0034] 步骤J、外地主机B接收测试包,并发送应答包; [0034] The procedure J, the foreign host B receives the test packet, and sends a reply packet;

[0035] 步骤K、本地主机A接收应答包,并得到此时本地主机的TSC寄存器值π6 ; [0035] Step K, the local host A receives the response packet, and at this time to give the local host TSC register value π6;

[0036] 步骤L、计算得到往返延迟值delay = ((η6-η5) -N) /F。 [0036] Step L, the calculated round trip delay value delay = ((η6-η5) -N) / F.

[0037] 本发明的有益效果在于:本发明所述方法利用TSC寄存器获取本地时间信息,由于现在主机频率一般在IGHz以上,即TSC的精度可以超过lus,且获取TSC不受操作系统平台限制,只需一条汇编语句,所以本方法具有高精度、跨操作系统平台的特点,从而有效解决获取时间精度低的问题; [0037] Advantageous effects of the present invention: the method of the invention using TSC register to get the local time information, since the frequency is generally now host IGHz above, i.e., accuracy may exceed LUS TSC, and acquires from the operating system platform restrictions TSC, just a compilation of statements, so this method has a high precision, the characteristics of cross-platform operating system, so as to effectively solve the problem of low acquisition time accuracy;

[0038] 本发明的另一有益效果在于:不需要获取大量数据,只需一两次获取系统处理时间和主频的数据就可以进行往返延迟测量,具有时间复杂度低的特点;且本发明考虑到系统处理时间,从而得到的往返延迟值能更好的反映网络的情况。 [0038] Another advantage of the present invention is that: no need to obtain a large amount of data, only one or two data acquisition system processing time and frequency of the round trip delay measurement can be performed with low complexity time characteristic; and the present invention Taking into account the processing time of the system, where round-trip delay value can better reflect the network thus obtained.

附图说明 BRIEF DESCRIPTION

[0039] 图1为往返延迟测量模型; [0039] FIG. 1 is a round trip delay measurement model;

[0040] 图2为本发明所述的消除系统处理时间的高精度网络往返延迟测量方法的流程图; [0040] FIG 2 is a flowchart of the method of accurately measuring round-trip delay processing time of the network system of the present invention to eliminate;

[0041] 图3为发送程序和接收程序基本流程图。 [0041] FIG. 3 is a flowchart illustrating a basic transmission and reception procedures procedures.

具体实施方式 Detailed ways

[0042] 下面结合附图对本发明的具体实施方式作进一步详细说明。 [0042] The following drawings of specific embodiments of the present invention are described in further detail in conjunction. [0043] 实施例一 [0043] Example a

[0044] 本实施例提供一种消除系统处理时间的高精度网络往返延迟测量方法,该方法的主要步骤为: [0044] The present embodiment provides a system for processing time with high accuracy to eliminate the network round-trip delay measurement method, the main steps of the method are:

[0045] 首先由测试发起方主机A在本地主机上运行发送程序和接收程序,发送程序发送目标地址为127. 0. 0. 1的测试包,让主机A的接收程序接收到该包,同时记录下发送测试包时TSC寄存器值nl,然后接收程序立刻回复一个应答包给发送程序,发送程序接收到该应答包后,记录下次此时的TSC寄存器值n2,于是就得到系统处理时间N = n2-nl,单位为TSC 计数值。 [0045] The first test run by the initiator host A program on the local host to send and receive programs, the program transmission destination address of 127. 0. 0. test pack 1, so that the received program of the host A receives the packet, and sending test packets nl TSC register values ​​were recorded, the program then receives a response packet immediately reply transmission program, the program receives the transmitted response packet, the next recording TSC register value n2 at this time, so the system processing time is obtained N = n2-nl, a count value in units of TSC.

[0046] 然后,在主机A上获取TSC寄存器值π3,等待t秒,再获取TSC寄存器值n4,从而得到主频值F = (n4-n3)/t,单位为Hz。 [0046] Then, the host acquires the register values ​​A TSC π3, waiting for t seconds, reacquisition TSC register value n4, thereby obtaining the frequency value F = (n4-n3) / t, in Hz.

[0047] 最后,参阅图1和图3,主机A发送测试包给主机B,同时记录下发送时TSC值π5,然后等待接收主机B的应答包,接收到该应答包时主机A记录下此时的TSC值π6,从而得到真实往返延迟值delay =(测试往返延迟值-系统处理时间值)/ 处理器主频=((n6-n5)-N)/ F,单位为us。 Host A recording [0047] Finally, referring to Figure 1 and 3, the host A transmits a test packet to the host B, while recording the next transmission π5 TSC value, and then waits for the response packet received host B received the response packet when this TSC value when π6, round trip delay value to obtain the true delay = (round trip delay value test - system processing time values) / processor frequency = ((n6-n5) -N) / F, the unit is us.

[0048] 该方法的详细步骤如图2所示: [0048] The detailed steps of the method shown in Figure 2:

[0049] 步骤A、本地主机A发送测试包,并获得此时本地主机的TSC寄存器值nl ; [0049] Step A, the local host A sends a test packet, the local time is obtained and host TSC register value NL;

[0050] 步骤B、本地主机A接收测试包,并发送应答包; [0050] Procedure B, the local host A receives the test packet, and sends a reply packet;

[0051] 步骤C、本地主机A接收应答包,并得到此时本地主机的TSC寄存器值π2 ; [0051] Procedure C, the local host A receives the response packet, and at this time to give the local host TSC register value π2;

[0052] 步骤D、计算得到本地主机的系统处理时间N = n2-nl ; [0052] Procedure D, is calculated to obtain the local host system processing time N = n2-nl;

[0053] 步骤E、获取本地主机的TSC寄存器值η3 ; [0053] Step E, acquiring local host TSC register value not larger;

[0054] 步骤F、让程序等待t秒; [0054] Step F, the program to wait for t seconds;

[0055] 步骤G、再次获取本地主机的TSC寄存器值n4 ; [0055] Step G, again obtains the local host TSC register value N4;

[0056] 步骤H、计算得到本地主机的主频F = (n4-n3) /t ; [0056] Step H, the local host calculated frequency F = (n4-n3) / t;

[0057] 步骤I、本地主机A发送测试包到外地主机B,并得到此时本地主机的TSC寄存器值n5 ; [0057] Step I, the local host A sends a test packet to the host field B, and at this time to give the local host TSC register value N5;

[0058] 步骤J、外地主机B接收测试包,并发送应答包; [0058] The procedure J, the foreign host B receives the test packet, and sends a reply packet;

[0059] 步骤K、本地主机A接收应答包,并得到此时本地主机的TSC寄存器值π6 ; [0059] Step K, the local host A receives the response packet, and at this time to give the local host TSC register value π6;

[0060] 步骤L、计算得到往返延迟值delay = ((η6-η5) -N) /F。 [0060] Step L, the calculated round trip delay value delay = ((η6-η5) -N) / F.

[0061] 本发明所述方法利用TSC寄存器获取本地时间信息,由于现在主机频率一般在IGHz以上,即TSC的精度可以超过lus,且获取TSC不受操作系统平台限制,只需一条汇编语句,所以本方法具有高精度、跨操作系统平台的特点,从而有效解决获取时间精度低的问题; [0061] The method of the present invention using TSC register to get the local time information, since the frequency is generally now host IGHz above, i.e., accuracy may exceed LUS TSC, and acquires from the operating system platform TSC limits, only one compilation of statements, so the method has high accuracy, the cross platform characteristics, so as to effectively solve the problem of low accuracy of the acquired time;

[0062] 此外本发明所述方法不需要获取大量数据,只需一两次获取系统处理时间和主频的数据就可以进行往返延迟测量,具有时间复杂度低的特点;且本发明考虑到系统处理时间,从而得到的往返延迟值能更好的反映网络的情况。 [0062] Further methods of the invention do not need a large amount of data, only one or two data acquisition system processing time and frequency of the round trip delay measurement can be performed with low complexity time characteristic; and the present invention contemplates system the processing time, whereby the round trip delay value can better reflect the situation of the network.

[0063] 实施例二 [0063] Second Embodiment

[0064] 本实施例是在OTST仿真平台上应用实施例一所述的消除系统处理时间的高精度网络往返延迟测量方。 [0064] The present embodiment is an application processing time canceling system according to one embodiment of the network round-trip delay measurement with high accuracy on the side OTST simulation platform.

[0065] 经过仿真实验获得如下结果:[0066] 第一组实验,往返延迟值为100ms,本发明所述测量方法得到的结果为100. 0023ms, Ping 方法得到的结果为101. 5678ms ; [0065] The following results are obtained through the simulation: [0066] The first set of experiments, the round trip delay is 100ms, the present invention is the measurement result obtained for the method 100. 0023ms, the results obtained by the method of Ping 101. 5678ms;

[0067] 第二组实验,往返延迟值为10ms,本发明所述测量方法得到的结果为10. 03249ms, Ping 方法得到的结果为10. 1789ms。 [0067] The second set of experiments, the round trip delay is 10ms, the result of the measurement method of the present invention is obtained 10. 03249ms, the results obtained by the method of Ping 10. 1789ms.

[0068] 经过对比可以看出,本发明所述方法的往返延迟值更接近设置的参数,误差主要是因平台两端到主机的线路是不可控制的造成的,同时本方法也可以在windows平台运行,达到毫秒级的精度。 [0068] For comparison it can be seen, the round trip delay value of the process of the present invention is closer to the parameter settings, error mainly due to the host platform ends of the control lines are not caused, while this method may be the windows platform operation, to millisecond accuracy.

[0069] 实施例三 [0069] Example three

[0070] 本实施例与实施例二的区别在于:实施例一是在仿真平台中进行的,网络延迟可控;而本实施例是在广域网中进行的,其测量结果为: [0070] The present embodiment differs from that according to the second embodiment: First embodiment performed in the simulation platform, network delay controllable; whereas the present embodiment is performed in the wide area network, which is measured as follows:

[0071]源地址为:192. 168. 0. 111 ; [0071] source address: 168. .111 192;.

[0072] 目的地址为:222. 70. 181. 148 ; [0072] destination address is: 181.148 70. 222;.

[0073]本发明所述方法测出的往返时间=(914911464-78005)/2. 09GHz = 437. 2235ms ; . [0073] The present invention is measured as the round-trip time = (914911464-78005) / 2 09GHz = 437. 2235ms;

[0074] Ping :449msο [0074] Ping: 449msο

[0075] 应为Ping方法没有考虑系统处理时间,所以此方法所测得的结果比本发明所述方法测得的时间长。 [0075] Ping method should not consider the system processing time, so this method the measured result of the method of the present invention is longer than the measured time.

[0076] 实施例四 [0076] Fourth Embodiment

[0077] 本实施例与实施例二的区别在于:实施例一是在仿真平台中进行的,网络延迟可控;而本实施例是在局域网中进行的,其测量结果为: [0077] The present embodiment differs from that according to the second embodiment: First embodiment performed in the simulation platform, network delay controllable; whereas the present embodiment is carried out in the LAN, which is measured as follows:

[0078]源地址为:192. 168. 1. 113 ; [0078] source address: 192 168. 1.113;.

[0079] 目的地址为:192. 168. 1. 106 ; [0079] destination address is: 192 168. 1.106;.

[0080] 本发明所述方法测出的往返时间=(330376-78005)/2. 09GHz = 0. 12075ms ; . [0080] The present invention is measured as the round-trip time = (330376-78005) / 2 09GHz = 0. 12075ms;

[0081] Ping :0· 16117ms。 [0081] Ping: 0 · 16117ms.

[0082] 总之,使用TSC寄存器获取高精度时间并结合主频值计算得到时间变化,以及消除系统处理时间来得到真实网络往返延迟值的思想方法均在本发明的权利要求范围之内。 Methodology [0082] In summary, the use of high-precision time and obtain the register TSC combined frequency value calculated time, and the elimination of the system to obtain real time processing network round trip delay value of all rights in the present invention within the scope of the claims.

[0083] 这里本发明的描述和应用是说明性的,并非想将本发明的范围限制在上述实施例中。 [0083] Application of the present invention and described herein is illustrative, and not to limit the scope of the present invention, like in the above embodiment. 这里所披露的实施例的变形和改变是可能的,对于那些本领域的普通技术人员来说实施例的替换和等效的各种部件是公知的。 Modification herein disclosed embodiments and variations are possible in alternate embodiments to those of ordinary skill in the art that various equivalent components and are well known. 本领域技术人员应该清楚的是,在不脱离本发明的精神或本质特征的情况下,本发明可以以其他形式、结构、布置、比例,以及用其他元件、 材料和部件来实现。 Those skilled in the art should appreciate that, without departing from the spirit or essential characteristics of the present invention, the present invention may be in other forms, structures, arrangements, proportions, and with other elements, materials, and components to achieve.

Claims (5)

  1. 一种消除系统处理时间的高精度网络往返延迟测量方法,其特征在于,所述方法包括如下步骤:步骤一,在本地主机上运行发送程序和接收程序获得本地主机的系统处理时间N;步骤二,获取本地主机的主频值F;步骤三,本地主机向外地主机发送测试包获得往返时间T;步骤四,计算获得往返延迟值delay=(TN)/F。 Processing system for eliminating the precision network round-trip delay time measuring method, characterized in that the method comprises the following steps: Step a, sending program and receiving program running on the local host system processing time to obtain the local host N; Step Two obtaining local host frequency value F.; step three, the local host outwardly host sends test packets to obtain the round trip time T; step 4 to obtain the round trip delay value is calculated delay = (TN) / F.
  2. 2.根据权利要求1所述的消除系统处理时间的高精度网络往返延迟测量方法,其特征在于,所述步骤一的详细过程为:本地主机的发送程序发送测试包,并同时记录下发送测试包时本地主机的TSC寄存器值nl ;本地主机的接收程序接收所述测试包,然后立刻回复一个应答包给发送程序; 发送程序接收到应答包后记录下此时本地主机的TSC寄存器值n2 ; 本地主机的系统处理时间N = n2-nl。 The elimination of the system 1, high-precision processing network round-trip delay time measuring method, wherein said step of a process as claimed in claim detail: local host sends test packets transmitted, and simultaneously transmits a test record TSC packets when the local host register value NL; local host program receives the test packet is received, then immediately return a response packet transmission program; transmitting the program recorded case TSC register value n2 of the local host after receiving the response packet; local host system processing time N = n2-nl.
  3. 3.根据权利要求1所述的消除系统处理时间的高精度网络往返延迟测量方法,其特征在于,所述步骤二的详细过程为:在本地主机上获取本地主机的TSC寄存器值π3,等待t秒,再获取本地主机的TSC寄存器值n4,从而得到本地主机的主频值F = (n4-n3)/t。 The elimination of the system 1, high-precision processing network round-trip delay time measuring method, wherein the detailed procedure of step II claim: Get the local host on the local host TSC register value π3, waiting for t second, the local host reacquisition TSC register value n4, thereby obtaining the local host frequency value F = (n4-n3) / t.
  4. 4.根据权利要求1所述的消除系统处理时间的高精度网络往返延迟测量方法,其特征在于,所述步骤三的详细过程为:本地主机发送测试包给外地主机,同时记录下发送时本地主机的TSC寄存器值n5,然后等待接收外地主机的应答包;本地主机接收到外地主机的应答包的同时时记录下此时本地主机的TSC寄存器值η6 ; 计算获得往返时间T = η6-η5。 The elimination of the system 1, high-precision processing network round-trip delay time measuring method, wherein the detailed procedure of step 3 and claim: local host transmits a test packet to the host field, while recording a transmit local TSC host register value n5, and then waits to receive a response packet field host; response packet is received while the host local host to the field case record TSC register value when the local host η6; obtained calculating the round trip time T = η6-η5.
  5. 5.根据权利要求1至4任意一项所述的消除系统处理时间的高精度网络往返延迟测量方法,其特征在于,所述方法包括如下详细步骤:步骤Α、本地主机A发送测试包,并获得此时本地主机的TSC寄存器值nl ; 步骤B、本地主机A接收测试包,并发送应答包;步骤C、本地主机A接收应答包,并得到此时本地主机的TSC寄存器值n2 ;步骤D、计算得到本地主机的系统处理时间N = n2-nl ;步骤E、获取本地主机的TSC寄存器值π3 ;步骤F、让程序等待t秒;步骤G、再次获取本地主机的TSC寄存器值n4 ;步骤H、计算得到本地主机的主频F = (n4-n3)/t ;步骤I、本地主机A发送测试包到外地主机B,并得到此时本地主机的TSC寄存器值n5 ; 步骤J、外地主机B接收测试包,并发送应答包;步骤K、本地主机A接收应答包,并得到此时本地主机的TSC寄存器值η6 ; 步骤L、计算得到往返延迟值delay = According to any one of claims 1 to 4, a network system of high precision to eliminate processing time round trip delay measuring method, wherein the method comprises the steps of claim detailed: Step [alpha], the local host A sends a test packet, and At this time, the local host to obtain the register value TSC NL; procedure B, the local host a receives the test packet, and sends a response packet; step C, TSC register value of the local host a receives the response packet, and at this time to give N2 local host; step D , calculated system processing time of the local host N = n2-nl; step E, acquiring local host TSC register value π3; step F., so that the program waits for t seconds; step G, acquiring local host again TSC register value N4; step H, local host calculated frequency F = (n4-n3) / t; step I, the local host a sends a test packet to the host field B, and at this time to give the value of the local host TSC register N5; procedure J, the host field B receives the test packet, and sends a response packet; step K, the local host a receives the response packet, and at this time to give the value of the local host TSC register η6; step L, the calculated round trip delay value delay = ((η6-η5) -N) /F。 ((Η6-η5) -N) / F.
CN 201010178343 2010-05-19 2010-05-19 High-accuracy network round-trip delay measuring method for eliminating system processing time CN101848119A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201010178343 CN101848119A (en) 2010-05-19 2010-05-19 High-accuracy network round-trip delay measuring method for eliminating system processing time

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201010178343 CN101848119A (en) 2010-05-19 2010-05-19 High-accuracy network round-trip delay measuring method for eliminating system processing time

Publications (1)

Publication Number Publication Date
CN101848119A true true CN101848119A (en) 2010-09-29

Family

ID=42772585

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201010178343 CN101848119A (en) 2010-05-19 2010-05-19 High-accuracy network round-trip delay measuring method for eliminating system processing time

Country Status (1)

Country Link
CN (1) CN101848119A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103428036A (en) * 2012-05-14 2013-12-04 腾讯科技(深圳)有限公司 Method and device for testing response time

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101321092A (en) * 2008-07-07 2008-12-10 上海华为技术有限公司 Method and device for measuring service quality of internet protocol transmission network
WO2009023689A2 (en) * 2007-08-15 2009-02-19 Adc Telecommunications, Inc. Delay management for distributed communications networks
CN101388741A (en) * 2008-10-24 2009-03-18 中国科学院计算技术研究所 Highly precised time synchronization device, system and method for computer network
US20090193282A1 (en) * 2008-01-30 2009-07-30 Eduard Siemens Method for processing time values in a computer or programmable machine

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009023689A2 (en) * 2007-08-15 2009-02-19 Adc Telecommunications, Inc. Delay management for distributed communications networks
US20090193282A1 (en) * 2008-01-30 2009-07-30 Eduard Siemens Method for processing time values in a computer or programmable machine
CN101321092A (en) * 2008-07-07 2008-12-10 上海华为技术有限公司 Method and device for measuring service quality of internet protocol transmission network
CN101388741A (en) * 2008-10-24 2009-03-18 中国科学院计算技术研究所 Highly precised time synchronization device, system and method for computer network

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103428036A (en) * 2012-05-14 2013-12-04 腾讯科技(深圳)有限公司 Method and device for testing response time

Similar Documents

Publication Publication Date Title
Strauss et al. A measurement study of available bandwidth estimation tools
Lim et al. Flocklab: A testbed for distributed, synchronized tracing and profiling of wireless embedded systems
Shriram et al. Comparison of public end-to-end bandwidth estimation tools on high-speed links
US7953014B2 (en) FPGA-based network device testing equipment for high load testing
US6741952B2 (en) Instrument timing using synchronized clocks
Li et al. WebProphet: Automating Performance Prediction for Web Services.
US20060224375A1 (en) Method for building enterprise scalability models from load test and trace test data
US20020006115A1 (en) Non-deterministic software delay estimation method and system for packet based data network systems
US7349670B2 (en) Modular wireless test architecture and method
US6701269B1 (en) Jitter measurement extrapolation and calibration for bit error ratio detection
US20070195707A1 (en) Sampling test of network performance
US20060229018A1 (en) Apparatus and method for use in testing wireless devices
US20060233111A1 (en) Latency measurment apparatus and method
Carneiro et al. FlowMonitor: a network monitoring framework for the network simulator 3 (NS-3)
Whiteaker et al. Explaining packet delays under virtualization
US20060239300A1 (en) Hardware time stamping and processor synchronization
Grecu et al. Towards open network-on-chip benchmarks
US7747729B2 (en) Determining client latencies over a network
US7272114B1 (en) Physical layer and physical layer diagnostic system with reversed loopback test
US20090257352A1 (en) Apparatus and method for monitoring network
CN101808355A (en) System and method for testing consistency of industrial wireless network protocol
US20050068891A1 (en) Method and apparatus for network throughput measurement
CN102291178A (en) Method and apparatus for measuring optical delay asymmetry
US8004994B1 (en) System and method for intelligently analyzing performance of a device under test
Netravali et al. Mahimahi: Accurate Record-and-Replay for HTTP.

Legal Events

Date Code Title Description
C06 Publication
C10 Request of examination as to substance
C12 Rejection of an application for a patent