Friday 20 November 2009

Android and iPhone ping times

Did a quick experiment just for fun.

Compared ping times in a local 802.11g wireless network from a wired desktop (running Fedora 12 (Linux kerner 2.6.31) with Intel E8400 and Marvell 88E8056 Gigabit Ethernet adapter) connected through 100Mbit/s ethernet to a router to the following wireless devices:

  • iPhone 1st Gen, version 2.2 (5G77) (a freedom-friendly build).

  • Android Dep Phone 1 (HTC Dream), firmware 1.6 (Linux kernel 2.6.29).

  • An Intel Centrino notebook running Fedora 11 (Linux kernel 2.6.27) with Pentuim M 1.86GHz running at 798MHz and Intel PRO/Wireless 2200BG Network adapter wireless network adapter.

  • THOMSON ST585 Speedtouch wireless router and ADSL modem, software release 6.2.29.2.

The command I ran was `sudo ping -f -c 1000 <host>`. This command sends 1000 ICMP echo requests to the host with no delay beetween requests (-f stands for flood). ICMP requests are normally handled by the kernel without a roundtrip to a user-land process (might not be true for Symbian OS, which is a joke anyway):

The results follow sorted by the total ping time in the worst-to-best order:

--- iphone ping statistics ---
1000 packets transmitted, 948 received, 5% packet loss, time 3453ms
rtt min/avg/max/mdev = 2.106/2.813/81.745/3.936 ms, pipe 6, ipg/ewma 3.457/2.497 ms

--- android ping statistics ---
1000 packets transmitted, 1000 received, 0% packet loss, time 2480ms
rtt min/avg/max/mdev = 2.117/2.433/16.472/0.779 ms, ipg/ewma 2.483/2.395 ms

--- centrino-notebook ping statistics ---
1000 packets transmitted, 1000 received, 0% packet loss, time 1351ms
rtt min/avg/max/mdev = 1.138/1.335/9.912/0.581 ms, ipg/ewma 1.352/1.208 ms

--- wireless-router ping statistics ---
1000 packets transmitted, 1000 received, 0% packet loss, time 664ms
rtt min/avg/max/mdev = 0.572/0.633/4.329/0.128 ms, ipg/ewma 0.664/0.640 ms

What is interesting about iPhone is that its ping packet loss was normally around ~11% in this test, the 5% above was the least packet loss rate I observed. Another interesting point is that when iPhone screen is off it does not respond to ping at all. It does respond when the screen is on but still locked.

The results are probably of little use, just killed some time for fun formatting this blog in emacs html mode.

No comments:

Post a Comment