ssh over WAN: TCP window too small

Chris Stankevitz chris at stankevitz.com
Fri Aug 28 19:14:27 UTC 2015


On 8/25/15 3:47 PM, Chris Stankevitz wrote:
> Can anyone explain my abysmally small TCP window?

So I believe this is the story:

1. openssh limits the size of some outgoing buffer to 65KB

2. openssh/HPN tries to improve on this by increasing the size of the 
outgoing buffer to match getsockopt(SO_SNDBUF)

3. When asked for the current SO_SNDBUF, FreeBSD 10.1 reports the high 
watermark of the outgoing buffer, not its capacity.

4. (2) is essentially a no-op because of (3).

5. openssh/HPN can be tricked into increasing its outgoing buffer by 
increasing sendspace/recvspace

My comments:

- (3) is not what I would expect -- perhaps the ssh/HPN folks would 
agree with me.  Shouldn't getsockopt(SO_SNDBUF) return the same value 
set by setsockopt(SO_SNDBUF)?

- I do not understand the mechanism by which (5) works.

Chris


More information about the freebsd-net mailing list