Slow peformance between TL WR1043ND AP and Client Bridge

Report wireless and/or network connectivity problems in this forum.

Moderator: Moderators

Post Reply
ekpyr
Posts: 9
Joined: Sat Mar 17, 2012 9:52 pm

Slow peformance between TL WR1043ND AP and Client Bridge

Post by ekpyr »

I've spent the last few hours trying to hunt down why the connection between my WR1043ND AP and CB is so slow. Both routers run 1.5.4. To test, I installed iperf on both routers:

Code: Select all

opkg update
opkg install iperf
I then set one up as the server (192.168.1.1):

Code: Select all

iperf -s
The other as a client to the server (192.168.1.2):

Code: Select all

iperf -c 192.168.1.1
Distance between routers is about 15 feet with two walls in between (it's a closet space).

Results

Code: Select all

------------------------------------------------------------
Server listening on TCP port 5001
TCP window size: 85.3 KByte (default)
------------------------------------------------------------
[  4] local 192.168.1.1 port 5001 connected with 192.168.1.2 port 56835
[ ID] Interval       Transfer     Bandwidth
[  4]  0.0-10.1 sec  16.3 MBytes  13.4 Mbits/sec
[  4] local 192.168.1.1 port 5001 connected with 192.168.1.2 port 56836
[  4]  0.0-10.2 sec  16.9 MBytes  13.9 Mbits/sec
[  4] local 192.168.1.1 port 5001 connected with 192.168.1.2 port 56837
[  4]  0.0-10.1 sec  17.4 MBytes  14.4 Mbits/sec
[  4] local 192.168.1.1 port 5001 connected with 192.168.1.2 port 56838
[  4]  0.0-10.1 sec  17.3 MBytes  14.3 Mbits/sec
[  4] local 192.168.1.1 port 5001 connected with 192.168.1.2 port 56839
I've read many posts in this forum and tweaked my configs to these.

For the AP:

Code: Select all

root@gw:~# cat /etc/config/wireless

config 'wifi-device' 'radio0'
        option 'type' 'mac80211'
        option 'macaddr' '***'
        option 'hwmode' '11ng'
        list 'ht_capab' 'SHORT-GI-40'
        list 'ht_capab' 'DSSS_CCK-40'
        option 'noscan' '1'
        option 'xr' '1'
        option 'ar' '1'
        option 'ff' '1'
        option 'bursting' '1'
        option 'compression' '1'
        option 'frag' '2346'
        option 'txpower' '35'
        option 'htmode' 'HT40-'
        option 'country' 'US'
        option 'channel' '7'
        option 'distance' '20'

config 'wifi-iface' 'ap_g'
        option 'device' 'radio0'
        option 'mode' 'ap'
        option 'network' 'lan'
        option 'ssid' '***'
        option 'encryption' 'psk2'
        option 'key' '***'
        option 'frag' '2346'
        option 'rts' '2347'
For the Client Bridge:

Code: Select all


root@office:~# cat /etc/config/wireless

config 'wifi-device' 'radio0'
        option 'type' 'mac80211'
        option 'macaddr' '***'
        option 'hwmode' '11ng'
        list 'ht_capab' 'SHORT-GI-40'
        list 'ht_capab' 'DSSS_CCK-40'
        option 'noscan' '1'
        option 'xr' '1'
        option 'ar' '1'
        option 'ff' '1'
        option 'bursting' '1'
        option 'compression' '1'
        option 'txpower' '35'
        option 'htmode' 'HT40-'
        option 'country' 'US'
        option 'channel' '7'

config 'wifi-iface' 'cfg2'
        option 'device' 'radio0'
        option 'network' 'lan'
        option 'mode' 'sta'
        option 'client_bridge' '1'
        option 'ssid' '***'
        option 'encryption' 'psk2'
        option 'key' '***'
        option 'frag' '2346'
        option 'rts' '2347'
I've tried about 5 channel combinations that were mostly open and 7 w/ht40- gets the best performance of the bunch.

I'm pretty much out of ideas. Any thoughts? What do you guys get with your setup when running this benchmark?

ekpyr
Posts: 9
Joined: Sat Mar 17, 2012 9:52 pm

Re: Slow peformance between TL WR1043ND AP and Client Bridge

Post by ekpyr »

To add to this, I have a TL 150Mbps Wireless N USB Adapter that I plugged into the desktop sitting next to the CB router and had it connect to the AP in the other room. Conditions are exactly the same, except my desktop is connecting to the AP through a USB adapter instead of the CB router + Ethernet.

Here are the results:

Code: Select all

------------------------------------------------------------
Server listening on TCP port 5001
TCP window size: 64.0 KByte (default)
------------------------------------------------------------
[  4] local 192.168.1.105 port 5001 connected with 192.168.1.1 port 59547
[ ID] Interval       Transfer     Bandwidth
[  4]  0.0-10.0 sec  54.9 MBytes  45.9 Mbits/sec
[  4] local 192.168.1.105 port 5001 connected with 192.168.1.1 port 59548
[ ID] Interval       Transfer     Bandwidth
[  4]  0.0-10.0 sec  54.8 MBytes  45.7 Mbits/sec
[  4] local 192.168.1.105 port 5001 connected with 192.168.1.1 port 59549
[ ID] Interval       Transfer     Bandwidth
[  4]  0.0-10.0 sec  51.5 MBytes  43.0 Mbits/sec
[  4] local 192.168.1.105 port 5001 connected with 192.168.1.1 port 60755
[ ID] Interval       Transfer     Bandwidth
[  4]  0.0-10.0 sec  49.9 MBytes  41.7 Mbits/sec
[  4] local 192.168.1.105 port 5001 connected with 192.168.1.1 port 60756
[ ID] Interval       Transfer     Bandwidth
[  4]  0.0-10.0 sec  52.5 MBytes  43.9 Mbits/sec

ekpyr
Posts: 9
Joined: Sat Mar 17, 2012 9:52 pm

Re: Slow peformance between TL WR1043ND AP and Client Bridge

Post by ekpyr »

To rule out iperf performance issues, here's it running from the CB to my desktop via Ethernet. Desktop was the server, the CB was the client.

Code: Select all

------------------------------------------------------------
Server listening on TCP port 5001
TCP window size: 64.0 KByte (default)
------------------------------------------------------------
[  4] local 192.168.1.189 port 5001 connected with 192.168.1.2 port 41619
[ ID] Interval       Transfer     Bandwidth
[  4]  0.0-10.0 sec    157 MBytes    132 Mbits/sec
[  4] local 192.168.1.189 port 5001 connected with 192.168.1.2 port 41620
[ ID] Interval       Transfer     Bandwidth
[  4]  0.0-10.0 sec    159 MBytes    133 Mbits/sec
[  4] local 192.168.1.189 port 5001 connected with 192.168.1.2 port 41621
[ ID] Interval       Transfer     Bandwidth
[  4]  0.0-10.0 sec    158 MBytes    133 Mbits/sec
[  4] local 192.168.1.189 port 5001 connected with 192.168.1.2 port 41622
[ ID] Interval       Transfer     Bandwidth
[  4]  0.0-10.0 sec    158 MBytes    132 Mbits/sec
[  4] local 192.168.1.189 port 5001 connected with 192.168.1.2 port 41623

bardu
Posts: 13
Joined: Fri Nov 13, 2009 5:52 am

Re: Slow peformance between TL WR1043ND AP and Client Bridge

Post by bardu »

Code: Select all

option 'txpower' '35'
why?
I use
option 'txpower' '24'
and "noscan" on my 1043ND v 1.8 with the latest 1.5.4 build and it's rock stable and fast 24/7.
After i changed the router's psu with a 12v 4A lcd power adapter the wireless got even better. I tested with wireless analyzer available for free for android based devices.

ekpyr
Posts: 9
Joined: Sat Mar 17, 2012 9:52 pm

Re: Slow peformance between TL WR1043ND AP and Client Bridge

Post by ekpyr »

I think 35 was the default it was set to. I don't believe I changed that.

Can you run an actual speed test over the wireless using iperf like I ran?

bardu
Posts: 13
Joined: Fri Nov 13, 2009 5:52 am

Re: Slow peformance between TL WR1043ND AP and Client Bridge

Post by bardu »

I don't have two 1043nd units, sorry!
My wireless file is not tweaked, only noscan added.
My unit is ext-rooted, QoS enabled for both upload and download, used as privoxy server, samba for share, unit is always ~ minimal 20%-25% cpu load when one device is connected.

Router uptime:

Code: Select all

root@Gargoyle:~# uptime
 19:17:54 up 2 days, 10:09, load average: 0.08, 0.10, 0.07
[Reason I tried to install and use mysql-server but no luck ...]
Test conditions/results: first 1043ND as server, second laptop with windows 7 and AR5B93 wireless N adapter, units one room distance.

C:\iperf>iperf -c 192.168.10.254
------------------------------------------------------------
Client connecting to 192.168.10.254, TCP port 5001
TCP window size: 8.00 KByte (default)
------------------------------------------------------------
[156] local 192.168.10.200 port 50142 connected with 192.168.10.254 port 5001
[ ID] Interval       Transfer     Bandwidth
[156]  0.0-10.0 sec  34.6 MBytes  29.0 Mbits/sec

C:\iperf>iperf -c 192.168.10.254
------------------------------------------------------------
Client connecting to 192.168.10.254, TCP port 5001
TCP window size: 8.00 KByte (default)
------------------------------------------------------------
[156] local 192.168.10.200 port 50190 connected with 192.168.10.254 port 5001
[ ID] Interval       Transfer     Bandwidth
[156]  0.0-10.0 sec  34.2 MBytes  28.6 Mbits/sec

C:\iperf>iperf -c 192.168.10.254
------------------------------------------------------------
Client connecting to 192.168.10.254, TCP port 5001
TCP window size: 8.00 KByte (default)
------------------------------------------------------------
[156] local 192.168.10.200 port 50191 connected with 192.168.10.254 port 5001
[ ID] Interval       Transfer     Bandwidth
[156]  0.0-10.0 sec  34.0 MBytes  28.5 Mbits/sec

C:\iperf>iperf -c 192.168.10.254
------------------------------------------------------------
Client connecting to 192.168.10.254, TCP port 5001
TCP window size: 8.00 KByte (default)
------------------------------------------------------------
[156] local 192.168.10.200 port 50359 connected with 192.168.10.254 port 5001
[ ID] Interval       Transfer     Bandwidth
[156]  0.0-10.0 sec  31.9 MBytes  26.8 Mbits/sec

C:\iperf>iperf -c 192.168.10.254
------------------------------------------------------------
Client connecting to 192.168.10.254, TCP port 5001
TCP window size: 8.00 KByte (default)
------------------------------------------------------------
[156] local 192.168.10.200 port 50368 connected with 192.168.10.254 port 5001
[ ID] Interval       Transfer     Bandwidth
[156]  0.0-10.0 sec  32.8 MBytes  27.5 Mbits/sec

C:\iperf>iperf -s
------------------------------------------------------------
Server listening on TCP port 5001
TCP window size: 8.00 KByte (default)
------------------------------------------------------------
OpenSCManager failed - Access is denied. (0x5)
[264] local 192.168.10.200 port 5001 connected with 192.168.10.254 port 58355
[ ID] Interval       Transfer     Bandwidth
[264]  0.0-10.1 sec  49.0 MBytes  40.8 Mbits/sec
[280] local 192.168.10.200 port 5001 connected with 192.168.10.254 port 58356
[ ID] Interval       Transfer     Bandwidth
[280]  0.0-10.0 sec  63.4 MBytes  53.0 Mbits/sec
[176] local 192.168.10.200 port 5001 connected with 192.168.10.254 port 58357
[ ID] Interval       Transfer     Bandwidth
[176]  0.0-10.0 sec  69.5 MBytes  58.1 Mbits/sec
[288] local 192.168.10.200 port 5001 connected with 192.168.10.254 port 51662
[ ID] Interval       Transfer     Bandwidth
[288]  0.0-10.0 sec  68.9 MBytes  57.6 Mbits/sec
Maybe i'll tweak wireless and post back sometime.

LE. I forgot to post /etc/config/wireless

Code: Select all

config 'wifi-device' 'radio0'
        option 'type' 'mac80211'
        option 'macaddr' ' :lol: '
        option 'hwmode' '11ng'
        option 'htmode' 'HT40+'
        option 'country' 'CA'
        option 'txpower' '24'
        option 'channel' '5'
        option 'noscan' '1'
        list 'ht_capab' 'SHORT-GI-40'
        list 'ht_capab' 'DSSS_CCK-40'

config 'wifi-iface' 'ap_g'
        option 'device' 'radio0'
        option 'mode' 'ap'
        option 'network' 'lan'
        option 'ssid' ' :oops: '
        option 'encryption' 'psk2'
        option 'key' ':mrgreen: '

Post Reply