From: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
To: dccp@vger.kernel.org
Subject: Re: [PATCH 2/5]: Fix Reset/Sync-Flood Bug
Date: Sat, 22 Sep 2007 19:55:46 +0000 [thread overview]
Message-ID: <20070922195546.GC4887@ghostprotocols.net> (raw)
Em Wed, Jun 20, 2007 at 10:55:39AM +0100, Gerrit Renker escreveu:
> [DCCP]: Fix Reset/Sync-Flood Bug
>
> This updates sequence number checking with regard to RFC 4340, 7.5.4.
> Missing in the code was an exception for sequence-invalid Reset packets,
> which get a Sync acknowledging GSR, instead of (as usual) P.seqno.
>
> This can lead to an oscillating ping-pong flood of Reset packets.
>
> In fact, it has been observed on the wire as follows:
>
> 1. client establishes connection to server;
> 2. before server can write to client, client crashes without notifying
> the server (NB: now no longer possible due to ABORT function);
> 3. server sends DCCP-Data packet (has no ackno);
> 4. client generates Reset "No Connection", seqno=0, increments seqno;
> 5. server replies with Sync, using ackno = P.seqno;
> 6. client generates Reset "No Connection" with seqno = ackno + 1;
> 7. goto (5).
>
> The difference is that now in (5) the server uses GSR. This causes the
> Reset sent by the client in (6) to become sequence-valid, so that in (7)
> the vicious circle is broken; the Reset is then enqueued and causes the
> socket to enter TIMEWAIT state.
Well spotted! I wonder if Step 6 in the RFC pseudocode changed from what
was in the draft I used... 8)
- Arnaldo
next reply other threads:[~2007-09-22 19:55 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-22 19:55 Arnaldo Carvalho de Melo [this message]
-- strict thread matches above, loose matches on Subject: below --
2007-07-01 3:55 [PATCH 2/5]: Fix Reset/Sync-Flood Bug Ian McDonald
2007-06-20 9:55 Gerrit Renker
2007-04-09 9:58 Gerrit Renker
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=20070922195546.GC4887@ghostprotocols.net \
--to=acme@ghostprotocols.net \
--cc=dccp@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.