Reply
Member
Posts: 120
Registered: ‎07-24-2017
Kudos: 41
Solutions: 2

Slow speeds, a lot of retires in IPerf

So I've been experiencing some slow speed lately and after running some IPerf3 tests (all wired to the same switch) on this equipment:

 

USG4P (4.4.28) IPS off, hardware offloading on

USW 24-250W (3.9.50)

UAP-HD (3.9.53)

Debian Server

 

here are the results...

 

UAP-HD to USG4P:

 

# iperf3 -c 192.168.1.1
Connecting to host 192.168.1.1, port 5201
[  4] local 192.168.1.3 port 56626 connected to 192.168.1.1 port 5201
[ ID] Interval           Transfer     Bandwidth       Retr  Cwnd
[  4]   0.00-1.05   sec  25.0 MBytes   200 Mbits/sec    0    132 KBytes       
[  4]   1.05-2.03   sec  23.8 MBytes   202 Mbits/sec    0    132 KBytes       
[  4]   2.03-3.02   sec  23.8 MBytes   202 Mbits/sec    0    148 KBytes       
[  4]   3.02-4.05   sec  25.0 MBytes   204 Mbits/sec    0    148 KBytes       
[  4]   4.05-5.03   sec  23.8 MBytes   203 Mbits/sec    0    165 KBytes       
[  4]   5.03-6.02   sec  23.8 MBytes   202 Mbits/sec    0    177 KBytes       
[  4]   6.02-7.05   sec  25.0 MBytes   203 Mbits/sec    0    177 KBytes       
[  4]   7.05-8.03   sec  23.8 MBytes   203 Mbits/sec    0    177 KBytes       
[  4]   8.03-9.01   sec  23.8 MBytes   202 Mbits/sec    0    291 KBytes       
[  4]   9.01-10.00  sec  23.8 MBytes   202 Mbits/sec    0    291 KBytes       
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Retr
[  4]   0.00-10.00  sec   241 MBytes   202 Mbits/sec    0             sender
[  4]   0.00-10.00  sec   241 MBytes   202 Mbits/sec                  receiver

iperf Done.

 

UAP-HD to Debian Server:

 

# iperf3 -c 192.168.1.100
Connecting to host 192.168.1.100, port 5201
[  4] local 192.168.1.3 port 43032 connected to 192.168.1.100 port 5201
[ ID] Interval           Transfer     Bandwidth       Retr  Cwnd
[  4]   0.00-1.01   sec  25.0 MBytes   207 Mbits/sec    0    133 KBytes       
[  4]   1.01-2.02   sec  25.0 MBytes   208 Mbits/sec    0    133 KBytes       
[  4]   2.02-3.03   sec  25.0 MBytes   208 Mbits/sec    0    133 KBytes       
[  4]   3.03-4.03   sec  25.0 MBytes   208 Mbits/sec    0    133 KBytes       
[  4]   4.03-5.03   sec  37.5 MBytes   317 Mbits/sec    0    140 KBytes       
[  4]   5.03-6.02   sec  38.8 MBytes   327 Mbits/sec    0    140 KBytes       
[  4]   6.02-7.05   sec  27.5 MBytes   225 Mbits/sec    0    147 KBytes       
[  4]   7.05-8.04   sec  31.2 MBytes   264 Mbits/sec    0    147 KBytes       
[  4]   8.04-9.00   sec  23.8 MBytes   207 Mbits/sec    0    147 KBytes       
[  4]   9.00-10.02  sec  25.0 MBytes   206 Mbits/sec    0    147 KBytes       
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Retr
[  4]   0.00-10.02  sec   284 MBytes   238 Mbits/sec    0             sender
[  4]   0.00-10.02  sec   284 MBytes   238 Mbits/sec                  receiver

iperf Done.

 

 Debian Server to USG4P:

 

# iperf3 -c 192.168.1.1
Connecting to host 192.168.1.1, port 5201
[  4] local 192.168.1.100 port 59752 connected to 192.168.1.1 port 5201
[ ID] Interval           Transfer     Bandwidth       Retr  Cwnd
[  4]   0.00-1.00   sec  82.9 MBytes   695 Mbits/sec  215    180 KBytes       
[  4]   1.00-2.00   sec  82.5 MBytes   692 Mbits/sec   20    223 KBytes       
[  4]   2.00-3.00   sec  85.6 MBytes   718 Mbits/sec   93    215 KBytes       
[  4]   3.00-4.00   sec  81.7 MBytes   686 Mbits/sec  170    126 KBytes       
[  4]   4.00-5.00   sec  82.3 MBytes   691 Mbits/sec  109    279 KBytes       
[  4]   5.00-6.00   sec  79.5 MBytes   667 Mbits/sec  268    165 KBytes       
[  4]   6.00-7.00   sec  80.6 MBytes   676 Mbits/sec  188    170 KBytes       
[  4]   7.00-8.00   sec  80.1 MBytes   672 Mbits/sec   45    235 KBytes       
[  4]   8.00-9.00   sec  81.8 MBytes   686 Mbits/sec   28    218 KBytes       
[  4]   9.00-10.00  sec  84.1 MBytes   706 Mbits/sec   81    216 KBytes       
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Retr
[  4]   0.00-10.00  sec   821 MBytes   689 Mbits/sec  1217             sender
[  4]   0.00-10.00  sec   817 MBytes   685 Mbits/sec                  receiver

iperf Done.

 

Debian Server to UAP-HD:

 

# iperf3 -c 192.168.1.3
Connecting to host 192.168.1.3, port 5201
[  4] local 192.168.1.100 port 43828 connected to 192.168.1.3 port 5201
[ ID] Interval           Transfer     Bandwidth       Retr  Cwnd
[  4]   0.00-1.00   sec  59.1 MBytes   496 Mbits/sec  217    317 KBytes       
[  4]   1.00-2.00   sec  55.7 MBytes   467 Mbits/sec    0    434 KBytes       
[  4]   2.00-3.00   sec  54.1 MBytes   454 Mbits/sec    1    395 KBytes       
[  4]   3.00-4.00   sec  54.2 MBytes   455 Mbits/sec    0    489 KBytes       
[  4]   4.00-5.00   sec  54.6 MBytes   458 Mbits/sec  148    329 KBytes       
[  4]   5.00-6.00   sec  54.9 MBytes   461 Mbits/sec    0    438 KBytes       
[  4]   6.00-7.00   sec  57.2 MBytes   480 Mbits/sec  117    315 KBytes       
[  4]   7.00-8.00   sec  54.2 MBytes   455 Mbits/sec    0    428 KBytes       
[  4]   8.00-9.00   sec  55.7 MBytes   468 Mbits/sec  136    290 KBytes       
[  4]   9.00-10.00  sec  58.7 MBytes   492 Mbits/sec  248    211 KBytes       
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Retr
[  4]   0.00-10.00  sec   558 MBytes   468 Mbits/sec  867             sender
[  4]   0.00-10.00  sec   554 MBytes   465 Mbits/sec                  receiver

iperf Done.

 

USG4P to Debian Server:

 

$ iperf3 -c 192.168.1.100
Connecting to host 192.168.1.100, port 5201
[  4] local 192.168.1.1 port 38133 connected to 192.168.1.100 port 5201
[ ID] Interval           Transfer     Bandwidth       Retr
[  4]   0.00-1.00   sec  62.4 MBytes   523 Mbits/sec    0         
[  4]   1.00-2.00   sec  65.6 MBytes   551 Mbits/sec    0         
[  4]   2.00-3.00   sec  65.1 MBytes   546 Mbits/sec    0         
[  4]   3.00-4.00   sec  65.5 MBytes   549 Mbits/sec    0         
[  4]   4.00-5.00   sec  83.6 MBytes   702 Mbits/sec    0         
[  4]   5.00-6.00   sec  83.8 MBytes   703 Mbits/sec    0         
[  4]   6.00-7.00   sec  64.5 MBytes   541 Mbits/sec    0         
[  4]   7.00-8.00   sec  62.5 MBytes   524 Mbits/sec    0         
[  4]   8.00-9.00   sec  64.9 MBytes   544 Mbits/sec    0         
[  4]   9.00-10.00  sec  62.2 MBytes   522 Mbits/sec    0         
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Retr
[  4]   0.00-10.00  sec   680 MBytes   570 Mbits/sec    0         sender
[  4]   0.00-10.00  sec   680 MBytes   570 Mbits/sec              receiver

iperf Done.

 

USG4P to UAP-HD:

 

$ iperf3 -c 192.168.1.3
Connecting to host 192.168.1.3, port 5201
[  4] local 192.168.1.1 port 33510 connected to 192.168.1.3 port 5201
[ ID] Interval           Transfer     Bandwidth       Retr
[  4]   0.00-1.00   sec  47.9 MBytes   401 Mbits/sec    0         
[  4]   1.00-2.00   sec  53.0 MBytes   445 Mbits/sec    0         
[  4]   2.00-3.01   sec  51.6 MBytes   430 Mbits/sec    0         
[  4]   3.01-4.01   sec  48.5 MBytes   406 Mbits/sec  173         
[  4]   4.01-5.01   sec  47.1 MBytes   395 Mbits/sec    0         
[  4]   5.01-6.00   sec  50.8 MBytes   430 Mbits/sec    0         
[  4]   6.00-7.00   sec  53.5 MBytes   449 Mbits/sec    0         
[  4]   7.00-8.00   sec  51.9 MBytes   435 Mbits/sec    0         
[  4]   8.00-9.01   sec  53.0 MBytes   439 Mbits/sec    0         
[  4]   9.01-10.00  sec  50.4 MBytes   427 Mbits/sec  146         
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Retr
[  4]   0.00-10.00  sec   508 MBytes   426 Mbits/sec  319         sender
[  4]   0.00-10.00  sec   507 MBytes   425 Mbits/sec              receiver

iperf Done.

 

All of the stuff is currently hooked up right next to each other for troubleshooting purposes with short CAT6 cables to eliminate errors. 

Established Member
Posts: 1,872
Registered: ‎03-31-2017
Kudos: 660
Solutions: 204

Re: Slow speeds, a lot of retires in IPerf

what are you testing? The CPUs in most of this equipment limits direct communication speeds.

If you are trying to figure out how fast your network can run you need to test THROUGH that equipment i.e. from a wired computer to a wireless client.
Member
Posts: 120
Registered: ‎07-24-2017
Kudos: 41
Solutions: 2

Re: Slow speeds, a lot of retires in IPerf

Those are pretty sad too. 2015 MBPr right next to the AP-HD

 

MBPr to Debian Server

 

$ ./iperf3 -c 192.168.1.100

Connecting to host 192.168.1.100, port 5201

[  4] local 192.168.1.123 port 61732 connected to 192.168.1.100 port 5201

[ ID] Interval           Transfer     Bandwidth

[  4]   0.00-1.00   sec  12.4 MBytes   104 Mbits/sec                  

[  4]   1.00-2.00   sec  32.4 MBytes   272 Mbits/sec                  

[  4]   2.00-3.00   sec  38.6 MBytes   323 Mbits/sec                  

[  4]   3.00-4.00   sec  40.7 MBytes   341 Mbits/sec                  

[  4]   4.00-5.00   sec  43.1 MBytes   361 Mbits/sec                  

[  4]   5.00-6.00   sec  40.7 MBytes   341 Mbits/sec                  

[  4]   6.00-7.00   sec  42.1 MBytes   353 Mbits/sec                  

[  4]   7.00-8.00   sec  43.4 MBytes   364 Mbits/sec                  

[  4]   8.00-9.00   sec  41.8 MBytes   351 Mbits/sec                  

[  4]   9.00-10.00  sec  39.9 MBytes   334 Mbits/sec                  

- - - - - - - - - - - - - - - - - - - - - - - - -

[ ID] Interval           Transfer     Bandwidth

[  4]   0.00-10.00  sec   375 MBytes   314 Mbits/sec                  sender

[  4]   0.00-10.00  sec   374 MBytes   314 Mbits/sec                  receiver

 

iperf Done.

 

MBPr to USG4P:

 

$ ./iperf3 -c 192.168.1.1

Connecting to host 192.168.1.1, port 5201

[  4] local 192.168.1.123 port 61745 connected to 192.168.1.1 port 5201

[ ID] Interval           Transfer     Bandwidth

[  4]   0.00-1.00   sec  3.24 MBytes  27.1 Mbits/sec                  

[  4]   1.00-2.00   sec  17.7 MBytes   149 Mbits/sec                  

[  4]   2.00-3.00   sec  33.0 MBytes   277 Mbits/sec                  

[  4]   3.00-4.00   sec  35.8 MBytes   300 Mbits/sec                  

[  4]   4.00-5.00   sec  19.3 MBytes   162 Mbits/sec                  

[  4]   5.00-6.00   sec  23.5 MBytes   197 Mbits/sec                  

[  4]   6.00-7.00   sec  24.0 MBytes   201 Mbits/sec                  

[  4]   7.00-8.00   sec  39.4 MBytes   331 Mbits/sec                  

[  4]   8.00-9.00   sec  43.2 MBytes   363 Mbits/sec                  

[  4]   9.00-10.00  sec  42.1 MBytes   353 Mbits/sec                  

- - - - - - - - - - - - - - - - - - - - - - - - -

[ ID] Interval           Transfer     Bandwidth

[  4]   0.00-10.00  sec   281 MBytes   236 Mbits/sec                  sender

[  4]   0.00-10.00  sec   280 MBytes   235 Mbits/sec                  receiver

 

iperf Done.

 

MBPr to UAP-HD:

 

$ ./iperf3 -c 192.168.1.3

Connecting to host 192.168.1.3, port 5201

[  4] local 192.168.1.123 port 61765 connected to 192.168.1.3 port 5201

[ ID] Interval           Transfer     Bandwidth

[  4]   0.00-1.00   sec  35.2 MBytes   295 Mbits/sec                  

[  4]   1.00-2.00   sec  19.1 MBytes   160 Mbits/sec                  

[  4]   2.00-3.01   sec  7.38 MBytes  61.8 Mbits/sec                  

[  4]   3.01-4.01   sec  7.57 MBytes  63.5 Mbits/sec                  

[  4]   4.01-5.00   sec  7.04 MBytes  59.4 Mbits/sec                  

[  4]   5.00-6.00   sec  20.6 MBytes   173 Mbits/sec                  

[  4]   6.00-7.00   sec  33.3 MBytes   280 Mbits/sec                  

[  4]   7.00-8.00   sec  35.8 MBytes   300 Mbits/sec                  

[  4]   8.00-9.00   sec  37.7 MBytes   316 Mbits/sec                  

[  4]   9.00-10.00  sec  38.1 MBytes   319 Mbits/sec                  

- - - - - - - - - - - - - - - - - - - - - - - - -

[ ID] Interval           Transfer     Bandwidth

[  4]   0.00-10.00  sec   242 MBytes   203 Mbits/sec                  sender

[  4]   0.00-10.00  sec   241 MBytes   202 Mbits/sec                  receiver

 

iperf Done.

 

All these tests were done on 5GHz VHT80

Established Member
Posts: 1,872
Registered: ‎03-31-2017
Kudos: 660
Solutions: 204

Re: Slow speeds, a lot of retires in IPerf

again don't test directly to a device, the CPU in them (with very few exceptions) are not fast enough to generate any amount of traffic.

Your iperf command line needs a bit of love, you need to use multiple streams to fill the buffers -P X (where X is a number), to test sending from the server to the client use -R, and most of us test using a set time -t X (again X is a number).

The -P number should be played with (especially on wireless), slowly increase it until either you see lots of retrains happen or the throughput drops, then back it off 1 or 2.

for my testing it is iperf -c 172.16.1.39 -P 8 -t 60 -R
Established Member
Posts: 1,872
Registered: ‎03-31-2017
Kudos: 660
Solutions: 204

Re: Slow speeds, a lot of retires in IPerf

another bit about testing WiFi you do not want to be right on top of the AP, too much signal is bad and will cause throughput problems.
Regular Member
Posts: 637
Registered: ‎01-06-2017
Kudos: 142
Solutions: 54

Re: Slow speeds, a lot of retires in IPerf

 

 

Your results are not cause for concern, nor are they very relevant to the performance of your network.  They do illustrate a few points though:

1. The UAP-HD cannot source more than about 200 Mbps using iperf. It's not desiged to do that.

2. The UAP cannot handle full line rate as the receiver of an iperf stream.  It's not designed to do that.  Should be no surprise given #1.

3. The USG4P is similarly limited, but a little faster than the UAP-HD.

 

Bottom line: you should not be running iperf using either your router or your AP as an endpoint.

 

You should be running tests between devices connected to your AP or router.

 

Get back on your MBP and repeat the test to the Debian server by running the following command:

 

./iperf3 -c 192.168.1.100 -t 30 -P 8 -R

 

Post what you get from that.

 

 

Member
Posts: 120
Registered: ‎07-24-2017
Kudos: 41
Solutions: 2

Re: Slow speeds, a lot of retires in IPerf

[ ID] Interval           Transfer     Bandwidth       Retr

[  4]   0.00-30.00  sec   213 MBytes  59.4 Mbits/sec   99             sender

[  4]   0.00-30.00  sec   210 MBytes  58.7 Mbits/sec                  receiver

[  6]   0.00-30.00  sec   198 MBytes  55.4 Mbits/sec   71             sender

[  6]   0.00-30.00  sec   195 MBytes  54.4 Mbits/sec                  receiver

[  8]   0.00-30.00  sec   209 MBytes  58.5 Mbits/sec  114             sender

[  8]   0.00-30.00  sec   206 MBytes  57.7 Mbits/sec                  receiver

[ 10]   0.00-30.00  sec   182 MBytes  51.0 Mbits/sec  116             sender

[ 10]   0.00-30.00  sec   179 MBytes  50.1 Mbits/sec                  receiver

[ 12]   0.00-30.00  sec   212 MBytes  59.3 Mbits/sec  105             sender

[ 12]   0.00-30.00  sec   209 MBytes  58.6 Mbits/sec                  receiver

[ 14]   0.00-30.00  sec   196 MBytes  54.9 Mbits/sec   92             sender

[ 14]   0.00-30.00  sec   193 MBytes  53.9 Mbits/sec                  receiver

[ 16]   0.00-30.00  sec   212 MBytes  59.2 Mbits/sec  103             sender

[ 16]   0.00-30.00  sec   209 MBytes  58.4 Mbits/sec                  receiver

[ 18]   0.00-30.00  sec   193 MBytes  54.0 Mbits/sec   87             sender

[ 18]   0.00-30.00  sec   190 MBytes  53.0 Mbits/sec                  receiver

[SUM]   0.00-30.00  sec  1.58 GBytes   452 Mbits/sec  787             sender

[SUM]   0.00-30.00  sec  1.55 GBytes   445 Mbits/sec                  receiver

Regular Member
Posts: 637
Registered: ‎01-06-2017
Kudos: 142
Solutions: 54

Re: Slow speeds, a lot of retires in IPerf

 

You didn't post what command you used, so I'm not sure what you tested.  If it was between the MBP and Debian, then you got ~50% more throughput and a very respectable result.

 

I get >750 Mbps with my AC-PRO and 2018 MBP though, so there's still room for improvement.

 

Next thing I would do is an RF scan and change channels if necessary to ensure you are using the clearest channel.  Then use the Unifi controller to look at the Tx and Rx rates on the MBP.  You need to be at 1300 to get maximum throughput, in either direction.

 

I would also test wired between the MBP and Debain to make sure you get a full ~940 Mbps, to be sure all the wired links and the server are up to speed.

 

Member
Posts: 120
Registered: ‎07-24-2017
Kudos: 41
Solutions: 2

Re: Slow speeds, a lot of retires in IPerf


@stshaw wrote:

 

 

Your results are not cause for concern, nor are they very relevant to the performance of your network.  They do illustrate a few points though:

1. The UAP-HD cannot source more than about 200 Mbps using iperf. It's not desiged to do that.

2. The UAP cannot handle full line rate as the receiver of an iperf stream.  It's not designed to do that.  Should be no surprise given #1.

3. The USG4P is similarly limited, but a little faster than the UAP-HD.

 

Bottom line: you should not be running iperf using either your router or your AP as an endpoint.

 

You should be running tests between devices connected to your AP or router.

 

Get back on your MBP and repeat the test to the Debian server by running the following command:

 

./iperf3 -c 192.168.1.100 -t 30 -P 8 -R

 

Post what you get from that.

 

 


My apologies, I followed your instructions.

Regular Member
Posts: 637
Registered: ‎01-06-2017
Kudos: 142
Solutions: 54

Re: Slow speeds, a lot of retires in IPerf

Thanks for clarifying.

 

Is that a 13" or 15" MBP?

Member
Posts: 120
Registered: ‎07-24-2017
Kudos: 41
Solutions: 2

Re: Slow speeds, a lot of retires in IPerf

[ Edited ]

2015 2.8GHz i7 15in

 

Just ran your line from my Desktop to Debian Server

 

[ ID] Interval Transfer Bandwidth Retr
[ 4] 0.00-30.00 sec 422 MBytes 118 Mbits/sec 167 sender
[ 4] 0.00-30.00 sec 421 MBytes 118 Mbits/sec receiver
[ 6] 0.00-30.00 sec 422 MBytes 118 Mbits/sec 212 sender
[ 6] 0.00-30.00 sec 421 MBytes 118 Mbits/sec receiver
[ 8] 0.00-30.00 sec 423 MBytes 118 Mbits/sec 211 sender
[ 8] 0.00-30.00 sec 422 MBytes 118 Mbits/sec receiver
[ 10] 0.00-30.00 sec 422 MBytes 118 Mbits/sec 212 sender
[ 10] 0.00-30.00 sec 421 MBytes 118 Mbits/sec receiver
[ 12] 0.00-30.00 sec 422 MBytes 118 Mbits/sec 200 sender
[ 12] 0.00-30.00 sec 421 MBytes 118 Mbits/sec receiver
[ 14] 0.00-30.00 sec 423 MBytes 118 Mbits/sec 183 sender
[ 14] 0.00-30.00 sec 422 MBytes 118 Mbits/sec receiver
[ 16] 0.00-30.00 sec 423 MBytes 118 Mbits/sec 206 sender
[ 16] 0.00-30.00 sec 422 MBytes 118 Mbits/sec receiver
[ 18] 0.00-30.00 sec 418 MBytes 117 Mbits/sec 173 sender
[ 18] 0.00-30.00 sec 417 MBytes 117 Mbits/sec receiver
[SUM] 0.00-30.00 sec 3.30 GBytes 944 Mbits/sec 1564 sender
[SUM] 0.00-30.00 sec 3.29 GBytes 941 Mbits/sec receiver

Highlighted
Established Member
Posts: 2,494
Registered: ‎03-20-2017
Kudos: 1156
Solutions: 79

Re: Slow speeds, a lot of retires in IPerf

If you need another set to compare to and/or a good test methodology, you can take look at my tests. Just follow the links in my signature.
Reply