Re: Connection reset by peer - TCP window size oddity ?

From: Stephen Hemminger
Date: Mon Oct 03 2005 - 12:16:36 EST


On Mon, 03 Oct 2005 15:44:13 +0100
Graham Murray <graham@xxxxxxxxxxxxxx> wrote:

> Martin Drallew <m.drallew@xxxxxxxxxxxxxxx> writes:
>
> > A tcpdump follows and, unless I'm misunderstanding the output (quite
> > possible) it looks like the kernel is sending outside of the peer's
> > TCP window, to which the peer responds by resetting the connection.
>
> I think that you have overlooked one detail in the output. Both
> systems have declared window scaling of 2, so when otter sets the
> window size of 1984 in the packet it is actually advertising a window
> of 7936, which you are not exceeding. You do not say what type of
> system otter is (or what OS it is running), so one explanation is that
> otter has just mirrored your 'wscale 2' in its SYN-ACK without
> actually meaning it.

So you have a firewall in between the systems? There have been firewall's
that strip off the window size option, and this causes all sorts of
nasty problems like this.

--
Stephen Hemminger <shemminger@xxxxxxxx>
OSDL http://developer.osdl.org/~shemminger
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/