From: "Doug Graham" <dgraham@nortel.com>
To: linux-sctp@vger.kernel.org
Subject: Re: [PATCH] Fix piggybacked ACKs
Date: Fri, 31 Jul 2009 01:43:17 +0000 [thread overview]
Message-ID: <20090731014317.GC2758@nortel.com> (raw)
In-Reply-To: <20090729160557.GC29475@nortel.com>
On Fri, Jul 31, 2009 at 08:53:55AM +0800, Wei Yongjun wrote:
> Doug Graham wrote:
> > The largest amount of data I can send and still have the BSD server bundle
> > a SACK with the response is 1436 bytes. The total ethernet frame size
> > at that point is 1514 bytes, so this seems correct. I've attached
> > wireshark captures with data sizes of 1436 bytes and 1438 bytes.
> > It's interesting to note that if BSD decides not to bundle a SACK,
> > it instead sends a separate SACK packet immediately; it does not wait
> > for the SACK timer to timeout. It first sends the SACK, then the DATA
> > immediately follows. I don't think Wei's patch would do this; I think
> > that if his patch determined that bundling a SACK would cause the packet
> > to exceed the MTU, then the behaviour will revert to what it was before
> > my patch is applied: ie the SACK will not be sent for 200ms.
> >
>
> Before my patch, SACK sent on linux is the same as BSD.
I had it in my head that without your patch, the combined DATA+SACK packet
would have been fragmented at the IP level, but that's very likely my
unfamiliarity with the code kicking in.
> But... BSD's
> implemention is really correct?
>
> RFC said:
>
> the sender should create a SACK and bundle it with the outbound DATA
> chunk, as long as the size of the final SCTP packet does not exceed
> the current MTU.
>
> So, we just need create a SACK only if the final packet size does not
> exceed the MTU. Always send SACK may cause lower performance.
I agree that this section of the RFC implies that if the SACK won't
fit, it simply shouldn't be sent at this point. Which would make
BSD's behaviour incorrect. But to my mind, it makes sense to send it,
although I'm not sure I could make a strong case for that.
But consider that in the case of a client and server sending equal-sized
messages to each other (to keep it simple), there will be a message
size at which the behaviour changes noticably. Small messages will
be SACK'd immediately. Messages slightly smaller than the MTU will
not be SACK'd until the delayed ACK timer expires. Messages slightly
larger than the MTU will again be SACKED immediately because the second
fragment in the response will have space for a SACK (assuming that the
Nagle problem I mentioned in my last email really is a problem that
needs to be fixed).
Perhaps Michael could explain which is the correct behaviour.
--Doug.
next prev parent reply other threads:[~2009-07-31 1:43 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-29 16:05 [PATCH] Fix piggybacked ACKs Doug Graham
2009-07-30 6:48 ` Wei Yongjun
2009-07-30 9:51 ` Wei Yongjun
2009-07-30 16:49 ` Doug Graham
2009-07-30 17:05 ` Vlad Yasevich
2009-07-30 21:24 ` Vlad Yasevich
2009-07-30 23:40 ` Doug Graham
2009-07-31 0:53 ` Wei Yongjun
2009-07-31 1:17 ` Doug Graham
2009-07-31 1:43 ` Doug Graham [this message]
2009-07-31 4:21 ` Wei Yongjun
2009-07-31 7:30 ` Michael Tüxen
2009-07-31 7:34 ` Michael Tüxen
2009-07-31 12:59 ` Doug Graham
2009-07-31 13:11 ` Doug Graham
2009-07-31 13:39 ` Doug Graham
2009-07-31 14:18 ` Vlad Yasevich
2009-08-02 2:03 ` Doug Graham
2009-08-03 2:00 ` Wei Yongjun
2009-08-03 2:15 ` Wei Yongjun
2009-08-03 3:32 ` Wei Yongjun
2009-08-04 3:00 ` Doug Graham
2009-08-04 3:03 ` Wei Yongjun
2009-08-04 3:28 ` Doug Graham
2009-08-04 3:44 ` Doug Graham
2009-08-04 3:57 ` Doug Graham
2009-08-04 14:50 ` Vlad Yasevich
2009-08-04 17:05 ` Doug Graham
2009-08-04 17:14 ` Vlad Yasevich
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090731014317.GC2758@nortel.com \
--to=dgraham@nortel.com \
--cc=linux-sctp@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.