All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wei Yongjun <yjwei@cn.fujitsu.com>
To: linux-sctp@vger.kernel.org
Subject: Re: [Lksctp-developers] [RFC PATCH v3] [SCTP] Fast retransmit fixes
Date: Thu, 15 May 2008 09:57:58 +0000	[thread overview]
Message-ID: <482C0926.9030600@cn.fujitsu.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 4318 bytes --]

Hi Vlad:

 There are other problems, description as following:

1. If the first DATA is lost, it can not do fast retransmit, instead, 
T3-timeout is happend.See dump file in attachment 1.html.Lik0.dump.

Endpoint A                       Endpoint B
DATA (TSN = 1)  -- (lost)---->
DATA (TSN = 2)  ------------->
DATA (TSN = 3)  ------------->
DATA (TSN = 4)  ------------->
               <-------------   SACK (CTSN = 0, GAP-START = 2, GAP-END = 2)
               <-------------   SACK (CTSN = 0, GAP-START = 2, GAP-ENT = 3)
               <------------    SACK (CTSN = 0, GAP-START = 2, GAP-ENT = 4)
DATA (TSN = 1)  -- (not fast rtx, but t3-timeout)---->
               <------------    SACK (CTSN = 4)
DATA (TSN = 5) ------------->
               <-------------   SACK (CTSN = 5)

The cwnd change sequence is: 4380 -> 1500


2. Shutdown can not be send after all of the data has been ack, unknow 
reason, kill the sctp process can cause shutdown be sent . And while do 
the second fast retransmit DATA(TSN = 3), new data is sent, is this 
correct? See dump file in attachment 2.html.Lik0.dump. I send 20 data 
packet to Endpoint B, and the data size is 1024.

Endpoint A                       Endpoint B
DATA (TSN = 1)  -- (lost)---->
DATA (TSN = 2)  ------------->
DATA (TSN = 3)  ------------->
DATA (TSN = 4)  ------------->
DATA (TSN = 5)  ------------->
               <------------    SACK (CTSN = 1)
DATA (TSN = 6)  ------------->
DATA (TSN = 7)  ------------->
               <-------------   SACK (CTSN = 1, GAP-START = 3, GAP-END = 6)
DATA (TSN = 8)  ------------->
DATA (TSN = 9)  ------------->
DATA (TSN = 10)  ------------->
DATA (TSN = 11)  ------------->
               <-------------   SACK (CTSN = 1, GAP-START = 3, GAP-END = 10)
DATA (TSN = 12)  ------------->
DATA (TSN = 13)  ------------->
DATA (TSN = 14)  ------------->
DATA (TSN = 15)  ------------->
               <-------------   SACK (CTSN = 1, GAP-START = 3, GAP-END = 14)
DATA (TSN = 2)  -- (fast rtx)---->
               <-------------   SACK (CTSN = 2, GAP-START = 2, GAP-END = 13)
DATA (TSN = 3)  -- (fast rtx)---->
DATA (TSN = 16)  ------------->
DATA (TSN = 17)  ------------->
DATA (TSN = 18)  ------------->
DATA (TSN = 19)  ------------->
               <-------------   SACK (CTSN = 15)
               <-------------   SACK (CTSN = 19)
DATA (TSN = 20, last data)  ------------->
               <-------------   SACK (CTSN = 20)


The cwnd change sequence is:

NO. ASSOC-ID STATE             RWND     UNACKDATA PENDDATA INSTRMS OUTSTRMS FRAG-POINT SPINFO-STATE SPINFO-CWDN SPINFO-SRTT SPINFO-RTO SPINFO-MTU
1   1        ESTABLISHED       54784    0         0        100     10       1452       ACTIVE       4380        0           3000       1500
2   1        ESTABLISHED       48312    6         0        100     10       1452       ACTIVE       5404        510         1530       1500
3   1        ESTABLISHED       53596    2         0        100     10       1452       ACTIVE       6000        455         1179       1500



Vlad Yasevich wrote:
> Changes from v2
>     * remove the call sctp_list_dequeue() so that we don't change the
>       retransmit list if we can't add the chunk to the packet.
>
>     * correctly catch the condition when we have to change the fast_retransmit
>       state of the chunk.
>
>
> Changes from v1
>     * correclty clear the fast_rtx hint in the outq structure after fast
>       retransmission is done.
>
>
> Background (ver 1):
>
> 1.  We don't handle fast recovery correclty.  We reduce our congestion window
> every time a new new chunk has to be retransmitted, which violates the fast
> recover specification.
>
> 2.  We end up effectively fast retransmitting all of the chunks on the
> retransmit queue.  This is because we flush the queue twice, once in
> sctp_retransmit() and once in the sctp_outq_sack().  The queue must
> be flushed only once so that future retransmissions are subject to cwnd.
>
> 3. As Wie found, we don't time-out retransmit a chunk that has been
> fast-retransmitted.  This is because a fast-retransmitted chunk may
> have been send less then rto ago.  To do proper time-outs, we need
> to restart the T3 timer after we fast-retransmit the earliest outstanding
> TSN.  Then the timer will be set correctly and T3 retransmissions will
> happen.
>
>
>   


[-- Attachment #2: 2.html.Link0.dump --]
[-- Type: application/octet-stream, Size: 25706 bytes --]

[-- Attachment #3: 1.html.Link0.dump --]
[-- Type: application/octet-stream, Size: 7942 bytes --]

             reply	other threads:[~2008-05-15  9:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-15  9:57 Wei Yongjun [this message]
2008-05-15 11:49 ` [Lksctp-developers] [RFC PATCH v3] [SCTP] Fast retransmit fixes Vlad Yasevich
2008-05-16  5:09 ` Wei Yongjun

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=482C0926.9030600@cn.fujitsu.com \
    --to=yjwei@cn.fujitsu.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.