odd iperf results on TPLINK WR1043ND V3

Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC based Hardware
Author Message
anyd
DD-WRT Novice


Joined: 19 Sep 2020
Posts: 1

PostPosted: Sat Sep 19, 2020 9:47    Post subject: odd iperf results on TPLINK WR1043ND V3 Reply with quote
Iperf 3 results are about a third (~330Mbps), or a sixth (~150Mbps) of what I expected.

Setup:
Gigabit Router TPLINK WR1043ND V3 with DD-WRT v3.0-r31899 std (04/24/17) (Linux)
Gigabit NAS Synology DS1515+ with DSM 6.2 (Linux)

A regular windows PC to ssh into the above 2 devices.

PC and NAS are connected with 1 Cat5e cable each into ports 1 and 2 of the router. The router isn't connected to the internet as to avoid accidental congestion.

I get the following results when testing NAS (client) to router (server) connection

Code:
andrei@DS1515:~$ iperf3 -c 192.168.2.1 -f m
Connecting to host 192.168.2.1, port 5201
[  5] local 192.168.2.142 port 59195 connected to 192.168.2.1 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.00   sec  38.8 MBytes   326 Mbits/sec    0    255 KBytes
[  5]   1.00-2.00   sec  39.2 MBytes   329 Mbits/sec    0    286 KBytes
[  5]   2.00-3.00   sec  39.9 MBytes   335 Mbits/sec    0    303 KBytes
[  5]   3.00-4.00   sec  40.4 MBytes   339 Mbits/sec    0    303 KBytes
[  5]   4.00-5.00   sec  38.2 MBytes   321 Mbits/sec    0    303 KBytes
[  5]   5.00-6.00   sec  40.4 MBytes   339 Mbits/sec    0    303 KBytes
[  5]   6.00-7.00   sec  40.2 MBytes   337 Mbits/sec    0    303 KBytes
[  5]   7.00-8.00   sec  38.8 MBytes   325 Mbits/sec    0    303 KBytes
[  5]   8.00-9.00   sec  39.8 MBytes   334 Mbits/sec    0    303 KBytes
[  5]   9.00-10.00  sec  40.3 MBytes   338 Mbits/sec    0    303 KBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.00  sec   396 MBytes   332 Mbits/sec    0             sender
[  5]   0.00-10.00  sec   395 MBytes   331 Mbits/sec                  receiver


Note: For brevity, I will only include the final results from now on, skipping intermediate reporting, but assume they are about as evenly distributed as above

Code:
andrei@DS1515:~$ iperf3 -c 192.168.2.1 -f m -R
Connecting to host 192.168.2.1, port 5201
Reverse mode, remote host 192.168.2.1 is sending
[  5] local 192.168.2.142 port 59198 connected to 192.168.2.1 port 5201
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.00  sec   178 MBytes   149 Mbits/sec    0             sender
[  5]   0.00-10.00  sec   178 MBytes   149 Mbits/sec                  receiver


I also made the NAS to be the iperf3 server and I got, as expected, almost identical results, but for the opposite -R runs.

For NAS-PC and reverse I get good results both ways, even though they are both connected through the router. This makes me think that perhaps there's some dd-wrt setting that intentionally chockes iperf3, but otherwise the traffic is freely routed.

Code:
andrei@DS1515:~$ iperf3 -c 192.168.2.103 -f m
Connecting to host 192.168.2.103, port 5201
[  5] local 192.168.2.142 port 36200 connected to 192.168.2.103 port 5201
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.00  sec  1.10 GBytes   943 Mbits/sec    0             sender
[  5]   0.00-10.00  sec  1.10 GBytes   942 Mbits/sec                  receiver

andrei@DS1515:~$ iperf3 -c 192.168.2.103 -f m -R
Connecting to host 192.168.2.103, port 5201
Reverse mode, remote host 192.168.2.103 is sending
[  5] local 192.168.2.142 port 36203 connected to 192.168.2.103 port 5201
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-10.00  sec  1.09 GBytes   935 Mbits/sec                  sender
[  5]   0.00-10.00  sec  1.09 GBytes   935 Mbits/sec                  receiver


Are there any settings that I could change in dd-wrt to improve and understand these results?
What else could it be?
Sponsor
ho1Aetoo
DD-WRT Guru


Joined: 19 Feb 2019
Posts: 2967
Location: Germany

PostPosted: Sat Sep 19, 2020 11:40    Post subject: Reply with quote
well if you run iperf3 between NAS and PC then it runs over the switch of the router - the router CPU is not involved at all


and when you test between NAS/PC and the router then it runs over the router CPU

and the router has a single core processor with 720Mhz

so no idea whether this is interesting for you or why you are testing it


WAN <-> LAN
WAN <-> WLAN
WLAN <-> LAN


runs for example over the router CPU (with NAT or firewall)

but the 720Mhz will be the limiting factor as well

The router can never route 1 Gbit over WAN

and since the WR1043ND V3 is an 802.11n router, it won't manage more than 200-300Mbit over WLAN


in order to reach almost 1Gbit everywhere you need a faster router like the R7800
the R7800 reaches around 800-900Mbit (LAN <-> WLAN)

or with SFE 1Gbit (WAN <-> LAN)


Edit:

just test with "iperf3 -c 192.168.2.1 -P 8 -t 120"

and look at the CPU load on the router status page


On the administration / management page you can set "TCP congestion control" to cubic - that might make a little difference

and also test with the latest firmware, r31899 is quite old
Alozaros
DD-WRT Guru


Joined: 16 Nov 2015
Posts: 6435
Location: UK, London, just across the river..

PostPosted: Sat Sep 19, 2020 12:52    Post subject: Reply with quote
1043v3 is not a Gigabit router...at all...it has the same CPU SoC like my 1043v2...(@720Mhz) max Wan to Lan (NAT) with SFE, around 250-280Mbit, internal WiFi Lan speed can go up to 300Mbit, but if you have a x3 stream device can do 350+ as its max N speed is 450Mbit for x3 stream clients....but in very narrow scenarios...

on stock firmware, is has a hardware acceleration chip, that can do Wan to Lan close to Gigabit, again in very narrow scenarios...

better performance Netgear R9000 or R7800

_________________
Atheros
TP-Link WR740Nv1 ---DD-WRT 55630 WAP
TP-Link WR1043NDv2 -DD-WRT 55723 Gateway/DoT,Forced DNS,Ad-Block,Firewall,x4VLAN,VPN
TP-Link WR1043NDv2 -Gargoyle OS 1.15.x AP,DNS,QoS,Quotas
Qualcomm-Atheros
Netgear XR500 --DD-WRT 55779 Gateway/DoH,Forced DNS,AP Isolation,4VLAN,Ad-Block,Firewall,Vanilla
Netgear R7800 --DD-WRT 55779 Gateway/DoT,AD-Block,Forced DNS,AP&Net Isolation,x3VLAN,Firewall,Vanilla
Netgear R9000 --DD-WRT 55779 Gateway/DoT,AD-Block,AP Isolation,Firewall,Forced DNS,x2VLAN,Vanilla
Broadcom
Netgear R7000 --DD-WRT 55460 Gateway/SmartDNS/DoH,AD-Block,Firewall,Forced DNS,x3VLAN,VPN
NOT USING 5Ghz ANYWHERE
------------------------------------------------------
Stubby DNS over TLS I DNSCrypt v2 by mac913
ho1Aetoo
DD-WRT Guru


Joined: 19 Feb 2019
Posts: 2967
Location: Germany

PostPosted: Sat Sep 19, 2020 17:10    Post subject: Reply with quote
Quote:
WiFi Lan speed can go up to 300Mbit, but if you have a x3 stream device can do 350+ as its max N speed is 450Mbit for x3 stream clients....but in very narrow scenarios...



I only get ~350Mbit with 4x4

tx bitrate: 600.0 MBit/s MCS 31 40MHz short GI
rx bitrate: 600.0 MBit/s MCS 31 40MHz short GI

[SUM] 0.00-30.00 sec 1.22 GBytes 349 Mbits/sec

1. It is not said that MIMO is stable and spatial streams can break away

then 4 antennas become 3 or 3 become 2
you can see that with the MCS index

https://en.wikipedia.org/wiki/IEEE_802.11n-2009#Data_rates

MCS 31 would be the maximum speed with 4 spatial streams

unfortunately it always fluctuates a bit

But well, never mind, as usual there are also a lot of interferences here

you have to test in the laboratory or outside in the field so that you get the full data rate stably

but we don't want to exaggerate - 300Mbit is quite good for 2.4ghz!
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum