LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-26-2014, 02:26 PM   #1
robertjinx
Member
 
Registered: Oct 2007
Location: Prague, CZ
Distribution: RedHat / CentOS / Ubuntu / SUSE / Debian
Posts: 749

Rep: Reputation: 73
Very slow download/upload speed with Ralink wireless and hostapd


Hello, I've got a Ralink RT5372 (this is the chipset) using it as an AP with hostapd on Debian 7. All works and connected to it I get a bit rate from 50 Mb/s to even 130 Mb/s (which is not much, but OK).

Even if the bit rate is looking good, the download speed is like 20 to 500 KB/s, where using my normal TP link router, I'm getting 1-2MB/s (it's a bit of a difference).

This is the Ralink wireless adapter: http://www.amazon.co.uk/EDUP-EP-MS15.../dp/B00E96DR3S

This is my hostapd config:

Code:
logger_syslog=-1
logger_syslog_level=1
logger_stdout=-1
logger_stdout_level=1
interface=wlan0
ctrl_interface=/var/run/hostap-wlan0
driver=nl80211
country_code=CZ
ssid=TestSSID
wpa_passphrase=password
hw_mode=g
channel=1
wpa=2
auth_algs=3
macaddr_acl=0
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP
ignore_broadcast_ssid=0
ieee80211n=1
ieee80211d=1
preamble=0
disassoc_low_ack=1
ht_capab=[HT40-][HT40+][SHORT-GI-40][SHORT-GI-20][RX-STBC1]

# tunning
wmm_enabled=1
wme_ac_bk_cwmin=4
wme_ac_bk_cwmax=10
wme_ac_bk_aifs=7
wme_ac_bk_txop_limit=0
wme_ac_bk_acm=0
wme_ac_be_aifs=3
wme_ac_be_cwmin=4
wme_ac_be_cwmax=10
wme_ac_be_txop_limit=0
wme_ac_be_acm=0
wme_ac_vi_aifs=2
wme_ac_vi_cwmin=3
wme_ac_vi_cwmax=4
wme_ac_vi_txop_limit=94
wme_ac_vi_acm=0
wme_ac_vo_aifs=2
wme_ac_vo_cwmin=2
wme_ac_vo_cwmax=3
wme_ac_vo_txop_limit=47
wme_ac_vo_acm=0

beacon_int=100
dtim_period=2
max_num_sta=255
rts_threshold=2347
fragm_threshold=2346
I've also tried different channels, from 1 to 13 (didn't help), the same with ht_capab.

Does anybody have any idea what could be the issue in the performance?

Last edited by robertjinx; 04-26-2014 at 02:28 PM.
 
Old 05-01-2014, 07:41 AM   #2
jimbo1954
Member
 
Registered: Oct 2006
Location: High Wycombe, Bucks, UK.
Distribution: Debian and Fedora Core in equal measure
Posts: 264

Rep: Reputation: 33
There is a fundamental difference between wired and wireless, and that is that wireless is a half-duplex media, so wireless will operate on a "send-and wait for response" basis, but wired will run with send and receive operating simultaneously.

In addition, the reported bitrate of wireless is always a bit "optimistic". I have encountered this sort of performance hit before, I'm not sure if its something to do with the way hostapd works, but I'm not surprised by your findings
 
Old 05-01-2014, 02:07 PM   #3
robertjinx
Member
 
Registered: Oct 2007
Location: Prague, CZ
Distribution: RedHat / CentOS / Ubuntu / SUSE / Debian
Posts: 749

Original Poster
Rep: Reputation: 73
Wrong, using a different USB wireless dongle, an older one which is a 150Mbps version, works perfectly. So you are wrong, also I do understand the difference between wired and wireless, but you seem to not read that the TP-Link wireless router works as it suppose to.

Anyway, using an older Ralink USB dongle or wireless adapter I do get the speed and functionality which I expect, seems that the new one is broken or something in that area.

So I got:

TP-Link TL-WR741N Router - works perfectly (about 1-2 MB/s less then perfect)
Ralink RT5372 USB Dongle - bad bad bad (broken most probably)
Ralink RT3070 USB Dongle - works perfectly (works the best from all three of them)
 
Old 05-03-2014, 03:58 AM   #4
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981
@robertjinx: no need to be so stern towards someone that tried to help. Moreover the information you provided in your second post make the picture clearer. If you are not satisfied with the answer I can delete all the replies to this thread (including mine) to make it return to the Zero Reply List and gain more visibility. Please, let me know.
 
Old 05-03-2014, 01:34 PM   #5
robertjinx
Member
 
Registered: Oct 2007
Location: Prague, CZ
Distribution: RedHat / CentOS / Ubuntu / SUSE / Debian
Posts: 749

Original Poster
Rep: Reputation: 73
I get the idea, but I would prefer to get the actual help. At the moment seems that the USB Dongle is broken or maybe the kernel module is not what it should be. Eider way this is solve as it's not solveable without replacing the USB Dongle.

Thank for help anyway.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Slow Upload Speed kaamesh Linux - Networking 1 02-03-2014 02:16 PM
Upload speed limiting to increase download speed dangerousdave Linux - Networking 6 02-16-2010 03:19 PM
Why is my internet upload speed greater than my download speed? km4hr Linux - Networking 1 05-27-2008 08:33 PM
upload/download speed slow only over WAN? Help Please slack_usr Slackware 19 12-07-2004 10:03 AM
ADSL upload speed very slow! questor Linux - Networking 0 07-31-2003 11:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration