[Q] Why is adb over wireless vs USB ~10 times slower? - AT&T, Rogers, Bell, Telus Samsung Galaxy S III

Does anyone have a clue why adb pushing & pulling files over wireless is so slow (~500KB/s) when compared to adb over USB (~5MB/s), even when I'm using 5GHz 802.11N only a few feet from my netgear WNDR3700 router? Is adb just an inefficient dog over wireless or is it something else? Except for adb via wireless, when doing browser downloads or testing with the Speedtest app, I'm able to hit my maximum 25Mbps (~2.5MB/s) cable internet cap, and max out wireless N connection on the LAN, so it's not a wireless problem.
This is a question I've been meaning to ask for over a year now, since that's how long I've just been putting up with doing something else while waiting for the slow wireless xfers to finish before booting to recovery to install 'em. And the reason why I much prefer adb over wireless to usb, especially now with my SGS3, is because it charges MUCH faster while connected to the 1amp A/C charger VS USB's 0.5.
(The adb over wireless I'm using is CyanogenMod's "Settings > Developer > adb over network" option, but the adbWireless app is similarly slow)
WIRELESS example:
Code:
$ adb connect sgs3
connected to sgs3:5555
$ adb push JusTunBean_Aroma.v3.2.1.zip /sdcard/files/
[B]612 KB/s[/B] (187372560 bytes in 298.560s)
$ adb pull sdcard/files/JusTunBean_Aroma.v3.2.1.zip
[B]676 KB/s[/B] (187372560 bytes in 270.487s)
USB example:
Code:
$ adb push JusTunBean_Aroma.v3.2.1.zip /sdcard/files/
[B]5330 KB/s[/B] (187372560 bytes in 34.327s)
$ adb pull sdcard/files/JusTunBean_Aroma.v3.2.1.zip
[B]7384 KB/s[/B] (187372560 bytes in 24.779s)
My network and wireless bandwidth isn't the bottleneck, nor is my phone's CPU (as it might be with ssh encryption), nor is the storage speed, so what's wrong with this adb picture?

USB 2.0 has a max transfer rate of 480Mbps. Wireless networks are limited to 54 Mbps or 100-200Mbps according to the type of network.
Sent from my SGH-I747 using xda app-developers app

liltitiz said:
USB 2.0 has a max transfer rate of 480Mbps. Wireless networks are limited to 54 Mbps or 100-200Mbps according to the type of network.
Click to expand...
Click to collapse
I'm aware of the bandwidth limits, but that's not really the problem here (because you probably only read & replied to just my misleading question's title).
The question is why adb specifically is so slow (600K/s) over wireless when everything else over wireless is so fast (X MegaBytes/s)

Must be a limitation inside a dB since your USB bandwidth isn't that fast either. I rarely use adB so I can't give you a 100% sure answer
Sent from my SGH-I747 using xda app-developers app

a well worded question
that is to say, your question...
hi zmore,
i came across this old post of yours inquiring why tcp push/pulls are so slow using ADB. I thought this was a terribly clear and thoughtful post, but no answer has been given. This is unfortunate for me because I'm facing the same problem. I've just started getting into android side-loading. I'm a novice, but I too was struck by how unnecessarily slow the xfers are. And it's clearly an issue with ADB.
I was wondering if you've managed to solve this problem in the last three years. It's a worthwhile thing to understand, and I haven't been able to find any information that really addresses it. Please help me, if you can.

https://code.google.com/p/android/issues/detail?id=75442

yeah this is really slow, so annoying
liltitiz is also very annoying, he wrote such a stupid answer, and those wifi speed limits he wrote are ok, very fast, so I wish I had at least those 54 Mbps (the minimal speed he wrote)

here's my tests using this command
Code:
adb install a.apk
Xiaomi Redmi 4 Prime, 6.0.1 Android, Released 2016 November, CPU Octa-core 2.0 GHz Cortex-A53, 3 GB RAM
Wi-Fi:
a.apk: 1 file pushed. 0.4 MB/s (33852093 bytes in 79.247s), pkg: /data/local/tmp/a.apk
a.apk: 1 file pushed. 0.4 MB/s (33852093 bytes in 86.365s), pkg: /data/local/tmp/a.apk
USB:
a.apk: 1 file pushed. 2.1 MB/s (33852093 bytes in 15.673s), pkg: /data/local/tmp/a.apk
a.apk: 1 file pushed. 2.3 MB/s (33852093 bytes in 13.892s), pkg: /data/local/tmp/a.apk
Samsung GT-i9070 Galaxy S Advance, 4.4.4 Android, Released 2012 April, CPU Dual-core 1.0 GHz Cortex-A9, 768 MB RAM
Wi-Fi:
a.apk: 1 file pushed. 0.2 MB/s (33852093 bytes in 165.450s), pkg: /data/local/tmp/a.apk
a.apk: 1 file pushed. 0.2 MB/s (33852093 bytes in 167.767s), pkg: /data/local/tmp/a.apk
USB:
a.apk: 1 file pushed. 2.0 MB/s (33852093 bytes in 16.301s), pkg: /data/local/tmp/a.apk
a.apk: 1 file pushed. 2.3 MB/s (33852093 bytes in 14.280s), pkg: /data/local/tmp/a.apk

2019 and this issue still persists, go figure!
Anybody found a solution yet?

darkguy2008 said:
2019 and this issue still persists, go figure!
Anybody found a solution yet?
Click to expand...
Click to collapse
Is anyone even around here?

Same here. Quite puzzled about this behavior as other apps which use data transfer over wifi were sending and receiving files at lightning speed but adb is struggling.

cyberzeroXDA said:
Same here. Quite puzzled about this behavior as other apps which use data transfer over wifi were sending and receiving files at lightning speed but adb is struggling.
Click to expand...
Click to collapse
@cyberzeroXDA can you please check your PM inbox and get back to me?
Thanks!
strongst
Forum Moderator

I had resolved this issue. The problem was my router which is located a bit far to which my laptop and phone are connected, hence the slow speed. So, I have created a mobile hotspot from my laptop and connected my phone to it. Then configured the wifi adb to newly set IP address. Now the wifi adb works seamlessly fast.

liltitiz said:
USB 2.0 has a max transfer rate of 480Mbps. Wireless networks are limited to 54 Mbps or 100-200Mbps according to the type of network.
Sent from my SGH-I747 using xda app-developers app
Click to expand...
Click to collapse
This is the question that many people need to answer! But in my opinion everything is done by google: tốt:

Related

[Q] OUYA Wireless issues with Different router types.

I have bought 2 Different OUYA units and thinking this issue is currently Out there to alot of users.
Issue is when you connect via wifi (which connection is fine ) BUT when you start to download anything AKA Updates (fail) or XMBC stream/download Fail. Also during the failure it hits all devices on the wireless network. such as my laptop goes from normal 30ms Ping to 500ms ping to 20000ms ping It varries. But all devices in network Almost seems like a DDOS attack or a broadcast storm haha
64 bytes from 4.2.2.2: icmp_seq=637 ttl=58 time=49.887 ms
64 bytes from 4.2.2.2: icmp_seq=638 ttl=58 time=47.848 ms
64 bytes from 4.2.2.2: icmp_seq=645 ttl=58 time=1468.252 ms
64 bytes from 4.2.2.2: icmp_seq=646 ttl=58 time=4800.774 ms
Request timeout for icmp_seq 648
SCENARIOS Tested
Not working
1.) Both Ouyas Cant stream work and same issues arise when doing download updates via WiFI when connected to a ZyXel.(DSL modem 20mb)
2.) I bought a n300 Belkin router as a test which same issues are apparent when I did bridge mode from ZyXel to Belkin.
3.) Changed MTU size as a test from 1454 to 1492. no fix
4.) Disabled WPS on both routers. No fix.
Working
1.) I setup my macbook to bridge from WIFI to ethernet to the OUYA. (issue isn't apparent and doesn't blast the whole network)
2.) I setup my macbook to bridge Ethernet connection to WIFI from laptop where the router is at a few rooms away. (no issue)
3.) I took the other OUYA unit and used a Netgear AND a Dlink router And never any issue in either router setup.
4.) I connected OUYA local ethernet No issues.
5.) OUYA did work at a hotel but i wasnt sure what router model they had.
i might try a TCPDUMP and look at traces and convert the wifi to a DDWRT in attempt to see if its SW level at router types.
Also it seems other Android components are seeing the same issue with the NOT working scenario. but not sure where driver/software stack yet
FYI i also have a Tronsmart quadcore CX919 that fails and jams the WIFI the same way alsoalso when trying to sream or download and Also the tronsmart work on dlink/netgear as well.
Another test example.
i have been able to quickly get into ROOT for the Zyxel modem and go into /tmp directory and run tcpdump captures on multple interfaces And i see alot of TCP retransmissions but nothing out of the norm when i trigger the issue.
Something i did notice new. Its not like a broadcast kinda storm but I did the same test and when i try to download info from the OUYA device pings go up to 8000ms on the laptop via Wireless But when Im hard wired my laptop on the network has constant 40ms ping times.
So It seems something is jamming the wireless signal when trying to DL out. I changed multiple channels and moved to B only mode , G , N all by it self and no change. even shut down any option in the router i could think of WPS/UPNP.

Poor Wifi LAn performance

Just picked up this tab from bestbuy to upgrade my Nexus 7 2013. Rooted and flashed CM11, tried Snapshot and nightly. Everything is great except.
Network performance on my NAS. With stock samsung rom I could upload a file at 10 MBPS, on a 5GHZ AC router.
Now CM11 nightly or snapshot I can't send files at all on the 5GHZ AC connection (433 Mbps linkspeed) it starts sending the file and loses connection and times out.
If i connect with the 2.4 GHZ Wireless N speed (72 Mbps link speed) the connection is more stable, most of the time the entire file will transfer without a time out, but at 3 mbps speed only.
This is using ES File explorer. My PC for comparison (wireless AC, 866 mbps link speed) transfers files on the same NAS at 16 mbps with no drop outs. It's also located about 20 yards away vs 2 yards for the tablet.
Internet connection/wifi connection does not drop out, I can use youtube and torrents and download at my capped internet speed (18 mbps) without issue. But as soon as I try to use LOCAL LAN, performance falls off a cliff. Signal strength is always Excellent.
Disapointing, because my Nexus 7 (wireless N) had a reliable connection to NAS, but only uploaded at 6mbps, I was initially excited to see this tablet performing at 10 mbps in stock samsung rom. I do like to grab the tablet and download a tv show and then shoot it to my NAS for local playback on a TV. 3 mbps transfer speed makes this a bit cumbersome a bit slow when transfering 4gb file for example.
Any decent alternative's to ES file explorer? I have had zero luck finding a good Network LAN file manager.
So I did some more testing.
Flashed back to Debloated stock rom and ran test.. was able to use the 5GHZ Band at AC speeds (433 mbps link speed) and upload to the NAS at 9-10 MBPS (70-80 Megabit). File transfer was smooth and uninterrupted.
Flash back to CM11 nightly, snapshot, or sabor and problem returns.
File starts transferring at 1 MBPS, and quickly ramps up to 7 MBPS and then just stops dead and times out. It feels like it's a software issue with a buffer or something. It's like a buffer fills up and can't keep up anymore. It only happends at sustained high speed transfers on LAN.
my Max internet connection is 18 Mbps (1.5 MBPS) so this issue never crops up on youtube/internet/gaming etc.
Has anyone else tested high speed (70+ Mbps) uploading over LAN wifi?
looks like this is something for CM11 developers to fix... I assume you reported it to them already?
The only way I get decent performance to and from my NAS is via FTP and not smb. FTP gives me up to 12mbytes/s whereas smb gives me 7 at best.

[Q][SM-T800] Unable to get high bandwidth on LAN with 802.11ac

Hi,
I'm trying to get full speed of my Airport Extreme 802.11ac on my Galaxy Tab S 10.5". But, no matter what ROM I use, my bandwidth caps at 8 MB/s when I transfer a file from my local NAS using ES File explorer, whereas my Macbook or my iPhone transfers at 40 MB/s at least.
I've checked that my wifi connection is synced at 5 GHz. Link speed is great, minimum at 700 Mbps. I can't post a screenshot because i'm a new user
Does anybody can help me ?
EDIT : the problem faces only with ES File Explorer. With AirDroid, I got 20 MB/s. It's still half from what I can get with an iPad, but there's improvements.

strange FTP speeds

so i installed an FTP server on the stick to take a backup of it.
when i upload files to the stick they go really fast. over 1 MB/s
when i download files from the stick to PC they go over 1 MB/s for a few seconds, and then drop to like 50 KB/s.
any idea what could be slowing down download speeds from the stick to PC over local wifi using ftp?
Sounds at first like traffic shaping or something similiar. That means that most of the bandwith is reserved for downloading to the Stick. Probably this is done to assure a more stable video streaming since all background apps are throttled in the upload speed. But that is just an assumption that FireOS provides traffic shaping, there might be also other issues like bad WIFI connection or WIFI channel interferences between multiple APs and so on.
i think you are correct.
either the hardware of the stick can not upload at a fast speed or the software limits it from doing so
The hardware should do the upload at a faster rate as you can see a higher rate when starting uploading until softwarebased the upload speed is throttled. I don´t know if its possible to configure this in a way but I assume this could be probably done via build.prop or settings database editing but this would need root which isn´t available for the stick (except the complicated hardware root method) so you´re still stuck with the slow speed.

Slow wifi file transfer

Hi,
I do all my downloading via LTE as I'm on an unlimited data plan and my connection speed is considerably higher than my fixed line internet but when I'm transferring the files to my pc via wifi, it seems abnormally slow. My files download at around 34MB/s (megabytes per second) but when I transfer them to my PC via wifi using cx file explorer (have also tried ES pro) I'm getting around 15MB/s. I'm using 5ghz AC wifi and the link speed in my phones wifi settings is 866mbps. Transferring the same files from my laptop to my PC via wifi is much faster at above 60MB/s.
Does anyone know what's going on here or have any ideas to figure it out?
Also, when transferring files via usb to the nvme drive in my laptop I'm getting 100MB/s, does this sound right? Was kinda expecting more from ufs 3.0.
(My usb cable is 3.1 gen2 10gbps)
Is something wrong here or am I just expecting too much from my phone? Any input will be very much appreciated.
MrMoo232 said:
Hi,
I do all my downloading via LTE as I'm on an unlimited data plan and my connection speed is considerably higher than my fixed line internet but when I'm transferring the files to my pc via wifi, it seems abnormally slow. My files download at around 34MB/s (megabytes per second) but when I transfer them to my PC via wifi using cx file explorer (have also tried ES pro) I'm getting around 15MB/s. I'm using 5ghz AC wifi and the link speed in my phones wifi settings is 866mbps. Transferring the same files from my laptop to my PC via wifi is much faster at above 60MB/s.
Does anyone know what's going on here or have any ideas to figure it out?
Also, when transferring files via usb to the nvme drive in my laptop I'm getting 100MB/s, does this sound right? Was kinda expecting more from ufs 3.0.
(My usb cable is 3.1 gen2 10gbps)
Is something wrong here or am I just expecting too much from my phone? Any input will be very much appreciated.
Click to expand...
Click to collapse
Check to make sure that you aren't coming into any issues with wifi signal disruptions. Make sure your router is configured correctly.
Something's to try:
Choose a less congested wifi channel
Make sure you are using AES encryption
Select 40mhz or 80mhz channel bandwidth
Relocate the router to a different area
Restart the router
There is a lot of info on transfer speeds and etc, but suffice it to say a bunch of things come into play. If your running stock firmware then try getting a reliable class 10 microsd card for best read/write speeds. Keep in mind that microsd cards are rated for a max speed of up to X number (in mb/s). Sequential read/write, random read/write speeds will vary in speed.
MicroSD Cards write/read in megabytes per second, which is not the same as megabits per second of your wifi router (or USB 3.1 gigabits per second) speed. Internal storage is faster then microsd, I don't have the specs Infront of me right this second so I can't tell you by how much.
Also your wifi router does not give dedicated speeds per device, it has a set amount of speed that is shared amongst connected devices. More wifi devices connected transmitting/recieving data will cause speeds to decrease. Also the Wifi speed your seeing on the phone doesn't include any overhead from the router (or overheard from SMB/CIFS, etc), so your true speed may vary.
Try the router adjustments and see if that helps. If not then you may just have to live with what your getting speed wise for wifi transfers to/from PC.
* I will do some transfer tests with my wifi today and tomorrow to add more info on transfer speeds/setup. I am expecting a new wifi 6 capable router tomorrow, so I will post results of both of my routers after I get that set up...
**Some test results -
Background:
PC configuration - Windows 10 PC with 65 gigs of ram, Sata HDD, Gigabit Lan connection
Phone Configuration - Android 10, MicroSD Samsung Class 10 EVO microSD Memory Card 32GB
SMB file transfer
First set of read/write is done with my current router. I am connected via 802.11 5Ghz A/N/AC with a manually selected 157 channel using AES encryption. I made 3 attempts with the same file and the stats provided are average speed measurements. Like yourself my phone was indicating the WiFi speed was 866 mbps during the transfer.
Transfer of 695mb file - From PC to MicroSD Storage
21.35 MB/s
23.58 MB/s
22.68 MB/s
Transfer of 695mb file - From MicroSD Storage to PC
20.31 MB/s
21.93 MB/s
20.90 MB/s
Transfer of 695mb file - From PC to Internal Storage
22.80 MB/s
22.91 MB/s
24.93 MB/s
Transfer of 695mb file - From Internal Storage to PC
23.28 MB/s
23.61 MB/s
23.32 MB/s
scottusa2008 said:
Check to make sure that you aren't coming into any issues with wifi signal disruptions. Make sure your router is configured correctly.
Something's to try:
Choose a less congested wifi channel
Make sure you are using AES encryption
Select 40mhz or 80mhz channel bandwidth
Relocate the router to a different area
Restart the router
There is a lot of info on transfer speeds and etc, but suffice it to say a bunch of things come into play. If your running stock firmware then try getting a reliable class 10 microsd card for best read/write speeds. Keep in mind that microsd cards are rated for a max speed of up to X number (in mb/s). Sequential read/write, random read/write speeds will vary in speed.
MicroSD Cards write/read in megabytes per second, which is not the same as megabits per second of your wifi router (or USB 3.1 gigabits per second) speed. Internal storage is faster then microsd, I don't have the specs Infront of me right this second so I can't tell you by how much.
Also your wifi router does not give dedicated speeds per device, it has a set amount of speed that is shared amongst connected devices. More wifi devices connected transmitting/recieving data will cause speeds to decrease. Also the Wifi speed your seeing on the phone doesn't include any overhead from the router (or overheard from SMB/CIFS, etc), so your true speed may vary.
Try the router adjustments and see if that helps. If not then you may just have to live with what your getting speed wise for wifi transfers to/from PC.
* I will do some transfer tests with my wifi today and tomorrow to add more info on transfer speeds/setup. I am expecting a new wifi 6 capable router tomorrow, so I will post results of both of my routers after I get that set up...
Click to expand...
Click to collapse
Thanks for the reply,
My 5ghz wifi is running on 80mhz bandwidth, I've used inssider to check for other networks and there are none in my area running at 5ghz. My router is located in a space behind the sofa so I'm basically sat on top of it.
I recently installed the ASUSwrt-merlin firmware on my router (as well as the required full factory reset after the installation) but I've been experiencing the slow transfer speeds before and after installing that firmware. I have also tried putting my phone at the top of the QOS list in the router settings as well as turning QOS off completely.
I'm not using an SD card, all my files are being transferred from internal storage. I understand the difference between megabytes per second (MB/s) and megabits per second (mbps), USB 3.1 rev 2 is 10gbps, therefore has a throughput of 1250MB/s, obviously, you won't get that exact speed in the real world but you can expect a throughput of around 1GB/s providing both devices can handle that speed as well as the cable. I have done a storage speed test on my phone and the sequential read is over 1500MB/s and the write is over 500MB/s, well over what I'm actually getting over USB. I can deal with the USB speeds I'm getting, although it's slower than I expected (about 100MB/s), its fast enough for now.
If you could post the speeds you're getting, that would be great, If you're getting similar speeds then I know I'm just expecting too much from a mobile device (maybe Samsungs wifi module just isn't as powerful as a laptop one?). If not then I know I've got a bottleneck somewhere that needs fixing.
Thanks again for your input
EDIT: I have just read your edited post. Thanks for the thorough speed test, I guess I'm just expecting too much from my phone in comparison to my laptop.
MrMoo232 said:
Hi,
I do all my downloading via LTE as I'm on an unlimited data plan and my connection speed is considerably higher than my fixed line internet but when I'm transferring the files to my pc via wifi, it seems abnormally slow. My files download at around 34MB/s (megabytes per second) but when I transfer them to my PC via wifi using cx file explorer (have also tried ES pro) I'm getting around 15MB/s. I'm using 5ghz AC wifi and the link speed in my phones wifi settings is 866mbps. Transferring the same files from my laptop to my PC via wifi is much faster at above 60MB/s.
Does anyone know what's going on here or have any ideas to figure it out?
Also, when transferring files via usb to the nvme drive in my laptop I'm getting 100MB/s, does this sound right? Was kinda expecting more from ufs 3.0.
(My usb cable is 3.1 gen2 10gbps)
Is something wrong here or am I just expecting too much from my phone? Any input will be very much appreciated.
Click to expand...
Click to collapse
I use wifi direct instead of es pro, es pro transfers much slower for me for some weird reason, Maybe it's something to do with the es or cx apps, have you tried wifi direct? I'll try cx file explorer a little later and post my speeds as well.
Edit: ok, cx file explorer took 20 minutes and 8 seconds to transfer a 918 MB file, a direct usb c 3.1 connection to my same laptop took 25 seconds for the same 918 MB file and wifi direct took about 45 seconds for the same 918 MB file. Sorry I dont have the speeds but it looks like it's something to do with the apps. Also have you tried using a cloud storage for transfers like dropbox or onedrive? It's may be faster.
Edit Edit: I also read that the usb cable that comes with the note 10+ only uses usb 2.0 speeds which is what I used.
Sent from my Samsung Galaxy Note 10+ using XDA Labs
If you want to transfer files from your Samsung Galaxy Note 10+ to pc via wifi fast, try Samsung mobile manager tool. With its help, you can easily access to all data on your Samsung Galaxy Note 10+ and transfer them to pc quickly via usb cable or wifi connecting. It's easy, fast and safe.

Categories

Resources