Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
notabenem
Old
(Last edited by notabenem; 14th June 2011 at 06:42 PM.)
#1  
Member - OP
Thanks Meter 18
Posts: 37
Join Date: Jul 2009
Default Network latency

Hi,

I am creating (*ehm, trying to) a networked game and I have just started to test it on my Samsung Galaxy SII. As it is a networked game, obviously, I needed one more handset (it's a HUAWEI U8510). The interesting thing is that the network latency greatly varies between the two handsets, albeit being on the same WIFI network. Both handsets have Android 2.3.3.

When I ping my Galaxy SII from my laptop, i get the following times:
Code:
PING 192.168.1.108 (192.168.1.108) 56(84) bytes of data.
64 bytes from 192.168.1.108: icmp_req=1 ttl=64 time=63.9 ms
64 bytes from 192.168.1.108: icmp_req=2 ttl=64 time=85.6 ms
64 bytes from 192.168.1.108: icmp_req=3 ttl=64 time=6.18 ms
64 bytes from 192.168.1.108: icmp_req=4 ttl=64 time=29.3 ms
64 bytes from 192.168.1.108: icmp_req=5 ttl=64 time=51.5 ms
64 bytes from 192.168.1.108: icmp_req=6 ttl=64 time=81.3 ms
64 bytes from 192.168.1.108: icmp_req=7 ttl=64 time=96.2 ms
64 bytes from 192.168.1.108: icmp_req=8 ttl=64 time=17.5 ms
64 bytes from 192.168.1.108: icmp_req=9 ttl=64 time=40.4 ms
64 bytes from 192.168.1.108: icmp_req=10 ttl=64 time=62.7 ms
The HUAWEI, on the other hand gives much better values:
Code:
PING 192.168.1.105 (192.168.1.105) 56(84) bytes of data.
64 bytes from 192.168.1.105: icmp_req=1 ttl=64 time=2.24 ms
64 bytes from 192.168.1.105: icmp_req=2 ttl=64 time=5.26 ms
64 bytes from 192.168.1.105: icmp_req=3 ttl=64 time=5.16 ms
64 bytes from 192.168.1.105: icmp_req=4 ttl=64 time=1.72 ms
64 bytes from 192.168.1.105: icmp_req=5 ttl=64 time=2.69 ms

Any ideas, what could cause the high latency on the Galaxy SII? The Phone was as much idle, as possible at the time of the ping. Is it some kind of WIFI sleep mode, or bad network driver?
 
notabenem
Old
(Last edited by notabenem; 24th June 2011 at 09:55 AM.)
#2  
Member - OP
Thanks Meter 18
Posts: 37
Join Date: Jul 2009
Update: the previous measurements were done on KF1 (Frankenstein) firmware.f
IN there I managed to lower the latency significantly using the WIFI State Lock in android (using the "PERFORMANCE MODE"). If you do this, you receive:

DEBUG/WifiStateTracker(2707): high performance mode: true

Two days ago I updated to KF2. While you can still enable the high-performance mode (you see it in LogCat), the latency is not reflecting this change when you ping the station. KF2 delivers the majority of the pings under 5ms of latency, which is great. There are still some pings over 50ms though (and some over 100ms), but nos as much as before.

However, I am wondering - isn't such well-performing WIFI eat more battery?
 
dusty_nz
Old
#3  
Senior Member
Thanks Meter 10
Posts: 449
Join Date: May 2008
Slightly separate however having migrated from the HD2 running android and internet speed seems slower on the SGS2.

The initial connect seems slow. 15 secs latency. The HD2 was almost instantaneous. Eg side by side with an iphone it was way quicker.
The SGSII is a lot slower than the iPhone 2
 
frankcilo
Old
#4  
frankcilo's Avatar
Senior Member
Thanks Meter 58
Posts: 794
Join Date: Jan 2008
Location: Battipaglia

 
DONATE TO ME
Quote:
Originally Posted by dusty_nz View Post
Slightly separate however having migrated from the HD2 running android and internet speed seems slower on the SGS2.

The initial connect seems slow. 15 secs latency. The HD2 was almost instantaneous. Eg side by side with an iphone it was way quicker.
The SGSII is a lot slower than the iPhone 2
+1, same problem for me, and I sue ROM Thunderbolt 1. 2 and modem Kf2. same problem with modem ke7
 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...