OpenVPN Buffers

Get help and discuss anything related to tweaking your internet connection, as well as the different tools and registry patches on the site. TCP Optimizer settings and Analyzer results should be posted here.
Post Reply
MagikMark
Regular Member
Posts: 100
Joined: Thu Nov 21, 2013 8:57 pm

OpenVPN Buffers

Post by MagikMark »

Hi Philip!

OpenVPN has parameters called "sndbuf" and "rcdbuf". They are actually buffers. Should this be considered analogous to Windows' "Tcpreceive and TCPsend Window"?

If so is there a way to scientifically compute their optimum size?
User avatar
Philip
SG VIP
Posts: 11758
Joined: Sat May 08, 1999 5:00 am
Location: Jacksonville, Florida

Post by Philip »

Yes, they are similar to the TCP Window in that they are buffers. What works best for you would depend on your particular VPN provider, however. It is not an exact science, since it depends on where the bottleneck of the connection is, what buffers the nodes would tolerate (keep in their queue and forward, vs. discarding), etc. I would increase them to about twice their default value and see if it improves the connection. I would back off and reduce them if you start experiencing packet loss/slowdowns. If a router/node on the path gets overwhelmed with a large buffer it will start dropping packets, which is counter-productive.
MagikMark
Regular Member
Posts: 100
Joined: Thu Nov 21, 2013 8:57 pm

Post by MagikMark »

Can we use the formula used in this site when getting tcpreceivedwindow?
Post Reply