• No results found

Accuracy Evaluation of Ping and J-OWAMP

N/A
N/A
Protected

Academic year: 2021

Share "Accuracy Evaluation of Ping and J-OWAMP"

Copied!
4
0
0

Loading.... (view fulltext now)

Full text

(1)

Accuracy Evaluation of Ping and J-OWAMP

Patrik Arlos Markus Fiedler

Blekinge Institute of Technology, School of Engineering, Karlskrona, Sweden

email: {patrik.arlos,markus.fiedler}@bth.se

Abstract— Due to the complex diversity of contemporary

Internet services, computer network measurements have gained considerable interest during the recent years. Computer net-work measurements supply netnet-work research, development and operations with data important for network traffic modelling, performance and trend analysis etc. Hence, the quality of these measurements affects the results of these activities and thus the perception of the network and its services.

Active measurements are performed by injecting traffic into a network and observing the treatment that this traffic receives. Usually, active measurements are perfomed by writing special applications that act at sender and receiver. These applications are usually executed as user processes. This causes some concern since this can have serious implications on the obtained results, as they are affected by the scheduling mechanisms in the operating system.

In this paper, we evaluate the accuracy of two active measure-ment tools, ping and J-OWAMP, by using high accuracy passive measurements. Our results show that ping is quite accurate, to 0.1 ms for Linux and 1 ms for Windows XP, while J-OWAMP has a discrepancy of 25 ms plus serious time synchronization problems.

I. INTRODUCTION

In recent years computer network measurements have gained much interest, one reason is the growth, complexity and diversity of network based services. Computer network measurements provide network operations, development and research with information regarding network behaviour. The accuracy and reliability of this information directly affects the quality of these activities, and thus the perception of the network and its services.

Ping [1] is one of the most frequently used tools in networking. It uses the ICMP [2] echo request message to send one PDU to a target host. The receiving host returns the PDU in an echo reply message as fast as possible to the sending host. The host can then compare its transmission time with the arrival time of the reply to estimate the round trip time, RTT.

J-OWAMP [3] is an Java implementation of the One-Way Active Measurement Protocol (OWAMP) [4]. OWAMP is an architecture to perform active measurements of one-way delays and losses between hosts. OWAMP operates at the application layer, using a session-sender (generation) and one session-receiver (measurement). The tests are conducted by sending PDUs from the sender to the session-receiver. These PDUs contain a timestamp indicating when they were sent. The session-receiver collects the timestamp when the PDU arrives. From this it can estimate the one-way

H1 MP1 Switch Network

TDS-2 AntennaGPS

Fig. 1. Setup used for the ping evaluation.

transmission time (OWTT). However, this requires the devices to be time-synchronised.

The remaining of this paper is organized as follows, Section II presents the setup for the measurements. Sections III show and discuss the results from ping and J-OWAMP. Finally Section IV concludes the paper.

II. SETUP

To evaluate ping and J-OWAMP we used a distributed passive measurement infrastructure [5], consisting of one or two measurement points (MP) each with a DAG 3.5E network capturing card. The DAG cards were synchronised via the TDS-2[6], which in turn was connected ot a GPS antenna. Fig. 1 shows the setup used when evaluating ping, and Fig. 2 for the J-OWAMP setup.

When evaluating ping (Fig. 1) the MP (MP1) was placed between the host (H1) and the network, attached via the switch. Furthermore, the evaluation was done on three different host systems; two Linux systems, a Pentium-4 2.8 GHz (P4) and a Pentium-3 (P3) 667 MHz, and one Windows XP system using a Pentium-4 2.8 GHz (WinXP). The ping software used was the one that came with the operating systems. The MP collected the ICMP traffic to and from the system. The systems were instructed to send 100 pings and log the results to file. Three different target hosts were found at 0, 7 and 16 hops away. Here a zero hop count indicates that both sender and receiver are located on the same IP network.

For the J-OWAMP evaluation (Fig. 2), the MPs (MP1 and MP2) were placed between the hosts (H1 and H2) and the network (switch and R). The session-receiver host H2 attached to a Linux router R. This router was also used to add an artificial delay between the hosts. The session-sender host H1 ran Linux 2.6 and the session-receiver Windows XP with Service Pack 2. H1 and H2 were synchronised to the local NTP server that had a GPS attached to it. H1 used the ntpd software and H2 used the Dimension 4 software (proposed

(2)

H1 MP1 H2 MP2 R Switch NTP Switch TDS-2 GPS Antenna GPS Antenna

Fig. 2. Setup used for the J-OWAMP evaluation.

by the developers of J-OWAMP) from Thinking Man Soft-ware [7] to synchronise the host every five minutes. All links operated at 100 Mbps full-duplex. H1 and H2 were equipped with Pentium-4 2.8 GHz processors, the router (R) used a Pentium-3 500 MHz processor. Three tests were performed with artificial delays of 0, 200 and 400 ms (added by R). Each test consisted of 300 PDUs, sent with one second in between them.

III. RESULTS

Since we are using DAG 3.5E [6] cards, the timestamp accuracy has been verified to be in in the order of 60 ns [8]. Furthermore, the measurements were performed using a distributed passive measurement infrastructure presented in [5].

A. PING

In Fig. 3 the results for the zero hop test are shown. The top graphs show the RTTs reported by ping (RT Tping) and DAG (RT TDAG), the lower graphs show the difference between them, ΔRTT = RT Tping− RT TDAG. Both Linux systems, P3 and P4, present similar results. The RTT estimations from the Linux systems have a resolution of 0.1 ms, while the Windows XP has only a resolution of 1 ms. One can also see that during the tests, the P4 was subject to varying network conditions. The reason for the initial peaks in the P4 test is uncertain. A possible explanation could be that name resolving (DNS) took place.

When the target host was 7 hops away, shown in Fig. 4, all systems are subject to larger network variations. Once again the Linux systems are quite similar in their results, at most +0.09 ms ahead or −0.06 ms behind the reference obtained from the passive measurements. The Windows XP system was however always behind, at most 1 ms. This is made even clearer in the last experiment, when the target was 16 hops away, which is shown in Fig. 5. From this, one can see that the RTTs estimated by the Linux systems can be too small as well as too large, while the Windows XP results are constantly too small. The exception is the zero hop test due to the minimum value of 1 ms. Despite this, the values are quite accurate, probably because the ICMP processing is usually implemented in the networking kernel of the operating system and not at the application level.

0 50 100 0 0.5 1 1.5 2 Sequence No. RTT [ms] P4 0 50 100 −0.1 0 0.1 0.2 0.3 0.4 Sequence No. 0 50 100 0 0.1 0.2 0.3 0.4 0.5 Sequence No. P3 0 50 100 −0.04 −0.02 0 0.02 0.04 0.06 0.08 0.1 Sequence No. 0 50 100 0 2 4 6 8 10 Sequence No. WindowsXP Ping DAG 0 50 100 −1 −0.5 0 0.5 1 Sequence No. ΔRT T

Fig. 3. Pingresults for zero hops.

0 50 100 8.6 8.7 8.8 8.9 9 9.1 Sequence No. RTT [ms] P4 0 50 100 −0.06 −0.04 −0.02 0 0.02 0.04 0.06 Sequence No. 0 50 100 8.6 8.7 8.8 8.9 9 9.1 Sequence No. P3 0 50 100 −0.1 −0.05 0 0.05 0.1 Sequence No. 0 50 100 8 8.2 8.4 8.6 8.8 9 Sequence No. WindowsXP 0 50 100 −1 −0.8 −0.6 −0.4 −0.2 0 0.2 0.4 Sequence No. Ping DAG ΔRT T

Fig. 4. Pingresults for 7 hops.

B. J-OWAMP

Fig. 6 shows the results obtained when no artificial delay was added. The OWTT calculated from the MPs has a mean of value 0.56 ms and a standard deviation of 0.29 ms. The minimum value is 0.066 ms and the maximum value is 1.050 ms. Looking at the J-OWAMP results, one sees a jump in the OWTT estimation after 20 PDUs, this jump is caused by the synchronisation event. When performing longer tests, this jump appears regularly every 300 samples, corresponding to the 5 minute synchronisation interval of the synchronisation software. Apparently, the Dimension 4 software performs only time synchronisation, not frequency synchronisation as the NTP software does for the Linux system. This is obvious from the slope of the estimations produced by the J-OWAMP. The minimum value is 27 ms and the maximum value is 39 ms. However, the OWTT reported from the DAG cards

(3)

repre-0 50 100 43.8 43.9 44 44.1 44.2 44.3 Sequence No. RTT [ms] P4 0 50 100 −0.06 −0.04 −0.02 0 0.02 0.04 0.06 0.08 Sequence No. 0 50 100 43.7 43.8 43.9 44 44.1 Sequence No. P3 0 50 100 −0.06 −0.04 −0.02 0 0.02 0.04 0.06 0.08 Sequence No. 0 50 100 43 43.2 43.4 43.6 43.8 44 Sequence No. WindowsXP 0 50 100 −1 −0.8 −0.6 −0.4 −0.2 0 0.2 0.4 Sequence No. Ping DAG ΔRT T

Fig. 5. Pingresults for 16 hops.

sents the physical transmission times, while the J-OWAMP represents the application layer transmission times, which includes the network stack processing as well as the physical transmission time. Prior to the minimum value of 27 ms, the maximum value occurs. It is reasonable to assume that time synchronisation occurred between these samples.

When a 200 ms delay was added the results were similar, as seen in Fig. 7. The DAG results displayed a minimum of 199.007 ms, a mean value of 199.504 ms, a standard deviation of 0.29 ms and a maximum value of 200.002 ms. The J-OWAMP results show once again the effect of the time synchronisation, with a minimum of 225 ms and a maximum value of 254 ms. This increased difference between the minimum and maximum values could be caused by the clocks drifting more than in the previous experiment. This is supported by the last experiment when a 400 ms delay was used, where the difference between the minimum and maximum values are similar to the zero delay test. The OWTT estimations for the 400 ms delay test are shown in Fig. 8. The DAG values are found between 398.94 ms (min) and 399.94 ms (max) with a mean of 399.44 ms (standard deviation 0.29 ms). The corresponding J-OWAMP values are a minimum value of 425 ms and a maximum value of 437 ms.

In all three tests, just prior to the minimum value, the maximum value is observed. It is reasonable to assume that clock synchronisation occurred between these samples. The minimum difference between the J-OWAMP and DAG results are 26, 26 and 26.44 ms, for the 0, 200 and 400 ms tests respectively. Their mean value is 26.15 ms. Furthermore, assume that the processing required for a PDU is equally distributed between the sender and receiver, resulting in a processing time of 13.1 ms for each PDU and host. This means that a session-sender must have an inter-transmission time larger than 13 ms, or send less than 75 PDUs per second. For the receiver, this means that it cannot act as a receiver

0 50 100 150 200 250 300 0 10 20 30 40 50 60 Artificial Delay 0 ms OWTT [ms] Sequence No J−OWAMP DAG

Fig. 6. J-OWAMPresults with no artificial delay added.

0 50 100 150 200 250 300 0 50 100 150 200 250 300 Artificial Delay 200ms OWTT [ms] Sequence No J−OWAMP DAG

Fig. 7. J-OWAMPresults with 200 ms delay added.

for an arbitrary number of session-senders, the total arrival rate of PDUs must be smaller than 75 PDUs per second. If it was larger, the receiver might be in a overloaded state with unknown behaviour.

IV. CONCLUSIONS

In this paper we evaluated two active measurement tools, ping and J-OWAMP. Ping was found to be quite stable, and it was found that for Linux the round trip time (RTT) is accurate to ±0.1 ms, while on Windows XP ping reported RTTs between 0 and1 ms smaller than the passively measured RTT. We also show that the ping implementation found in Windows XP reports a minimum RTT of 1 ms, and for RTTs larger than 1 ms the ping reported time is up to 0.999 ms too short.

(4)

0 50 100 150 200 250 300 0 100 200 300 400 500 600 Artificial Delay 400ms OWTT [ms] Sequence No J−OWAMP DAG

Fig. 8. J-OWAMPresults with 400 ms delay added.

simple to install and use. But synchronising computers and estimating the network stack processing is not. For Windows, the synchronisation software used cannot be recommended since it does not perform any frequency synchronisation. Increasing the synchronisation rate would in this case only produce spikes more frequently, and eventually the processing needed for the synchronisation would conflict with the test software. Even if the synchronisation problem was solved, then the processing required by the network stacks is not negligible and not really known. In the examples presented here it was possible estimate the network stack processing, since the hosts were in a controlled environment, the network traffic was kept to a minimum and we had access to a distributed passive measurement infrastructure [5] with DAG equipped measurement points. However, if the host were running more applications with a higher network load the stack processing would not be so easy to estimate.

REFERENCES

[1] Mike Muuss. The story of the PING program [online, Verified September 2005]. Available from: http://ftp.arl.mil/˜mike/ping.html.

[2] J. Postel. Internet Control Message Protocol, September 1981. STD0005. [3] H. Veiga, T. Pinho, J. Oliveira, R. Valadas, P. Salvador, and A. Nogueira. Active traffic monitoring for heterogeneous environments. In 4th

Inter-national Conference on Networking, ICN’05, April 2005.

[4] S. Shalunov, B. Teitelbaum, A. Karp, Matthew J. Zekauskas, and J.W.B. A one-way active measurement protocol, 2004. Internet draft. [5] Patrik Arlos, Markus Fiedler, and Arne A. Nilsson. A distributed

passive measurement infrastructure. In Proceedings of Passive and Active

Measurement Workshop, pages 215–227, 2005.

[6] Endace [online, Verified July, 2005]. Available from: http://www.endace.com.

[7] Rob Chambers. Thinkman [online, Verified September 2005]. Available from: http://www.thinkman.com/.

[8] Patrik Arlos. On the Quality of Computer Network Measurements. PhD thesis, Blekinge Institute of Technology, 2005.

References

Related documents

Närmare 90 procent av de statliga medlen (intäkter och utgifter) för näringslivets klimatomställning går till generella styrmedel, det vill säga styrmedel som påverkar

I dag uppgår denna del av befolkningen till knappt 4 200 personer och år 2030 beräknas det finnas drygt 4 800 personer i Gällivare kommun som är 65 år eller äldre i

Detta projekt utvecklar policymixen för strategin Smart industri (Näringsdepartementet, 2016a). En av anledningarna till en stark avgränsning är att analysen bygger på djupa

Indien, ett land med 1,2 miljarder invånare där 65 procent av befolkningen är under 30 år står inför stora utmaningar vad gäller kvaliteten på, och tillgången till,

Det finns många initiativ och aktiviteter för att främja och stärka internationellt samarbete bland forskare och studenter, de flesta på initiativ av och med budget från departementet

Den här utvecklingen, att både Kina och Indien satsar för att öka antalet kliniska pröv- ningar kan potentiellt sett bidra till att minska antalet kliniska prövningar i Sverige.. Men

Av 2012 års danska handlingsplan för Indien framgår att det finns en ambition att även ingå ett samförståndsavtal avseende högre utbildning vilket skulle främja utbildnings-,

Det är detta som Tyskland så effektivt lyckats med genom högnivåmöten där samarbeten inom forskning och innovation leder till förbättrade möjligheter för tyska företag i