LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-23-2019, 02:39 AM   #1
LovingFox
LQ Newbie
 
Registered: Apr 2019
Posts: 1

Rep: Reputation: Disabled
TCP performance for OpenVPN vs delay


I have got some issue in TCP performance depended on delay.

My lab schema:
Code:
CPE --- (p1) Router (p2) --- Server
The CPE connects to the Server by OpenVPN using TCP. I know about TCP-over-TCP but TCP proto is mandatory! Next I do series of network benchmarks by iperf3 through the OpenVPN tunnel.

Series:
  1. WITHOUT artificial delay.
  2. WITH artificial delay of 30 ms (RTT) made on a Router's p1 and p2.
  3. WITH artificial delay of 60 ms.
So the series results:
  1. "to Server": 40 mbps, "from Server": 50 mbps
  2. "to Server": 34 mbps, "from Server": 38 mbps
  3. "to Server": 20 mbps, "from Server": 10 mbps
Rate limit in test 1 due to CPU on CPE. It's normal. But why third test with delay 60ms reduces performance "from Server" multiple 5 times while "to Server" only 2 times?

P.S.
CPE is an OpenWRT on a Banana PI R2 board. Server is a Ubuntu server, Router is a Ubuntu server too. All devices connect via Ethernet. CPE intefrace is 100M. Others — 1G.

TCP congestion control for both (CPE and Server) is BBR:
Code:
net.ipv4.tcp_congestion_control = bbr
net.core.default_qdisc = fq
Benchmark commands on a CPE:
Code:
"to Server": iperf3 -c ovpn_server_ip
"from Server": iperf3 -c ovpn_server_ip -R
Commands for artificial delay on a Router:
test 2:
Code:
p1: sudo tc qdisc add dev ens224 root handle 1: netem delay 15ms
p2: sudo tc qdisc add dev ens256 root handle 1: netem delay 15ms
test 3:
Code:
p1: sudo tc qdisc add dev ens224 root handle 1: netem delay 30ms
p2: sudo tc qdisc add dev ens256 root handle 1: netem delay 30ms
 
Old 04-26-2019, 03:44 PM   #2
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,850

Rep: Reputation: 161Reputation: 161
Packet delay vs throughput isn't linear.
 
  


Reply



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
3000ms delay on TCP connections ? Kioob Linux - Networking 7 09-22-2011 07:41 AM
OpenVPN client has not default gateway when connect to OpenVPN server sailershen Linux - Security 3 03-04-2010 02:20 AM
Error When converting Routing OpenVPN to bridge mode openvpn danmartinj Linux - Software 0 11-06-2009 09:23 AM
OpenVPN Question : connecting 5-6 comps with OpenVPN duryodhan Linux - Networking 7 02-15-2007 10:28 PM
Linux change TCP kernel Parameter for TCP DELAY ACK TICKS linux_mando Linux - Networking 5 08-22-2006 08:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:49 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