Re: TCP: orphans broken by RFC 2525 #2.17

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Willy Tarreau
Date: Sunday, September 26, 2010 - 10:39 pm

On Sun, Sep 26, 2010 at 06:12:02PM -0700, David Miller wrote:

I know, and I agree to send the reset, but after the data are correctly
transferred. This reset's purpose is only to inform the other side that
the data it sent were destroyed. It is not a requirement to tell it they
were destroyed earlier or later. What matters is that it's informed they
were destroyed.

That's why I think that it is perfectly reasonable to either destroy them
after the ACK or simply notify about their destruction after the ACK.

Instead of having :

        A                                               B

       --->     <SEQ=100><ACK=300>                     --->
       <---     <SEQ=300><ACK=100><DATA=10>            <---
       --->     <SEQ=100><ACK=310>                     --->
       send(100)
       shutdown()
       close()
       --->     <SEQ=100><CTL=RST>                     --->

We would just have :

        A                                               B

       --->     <SEQ=100><ACK=300>                     --->
       <---     <SEQ=300><ACK=100><DATA=10>            <---
       --->     <SEQ=100><ACK=310>                     --->
       send(100)
       shutdown()
       close()
       --->     <SEQ=100><ACK=310><DATA=100><CTL=FIN>  --->
       <---     <SEQ=300><ACK=111>                     <---
       --->     <SEQ=111><CTL=RST>                     --->

Note that the notification is exactly the same as if we wanted
to notify B about the destruction of data that were sent just
after the close, because the RST only carries a SEQ field and
no ACK indicating what it destroyed :

        A                                               B

       --->     <SEQ=100><ACK=300>                     --->
       send(100)
       shutdown()
       --->     <SEQ=100><ACK=310><DATA=100><CTL=FIN>  --->
       <---     <SEQ=300><ACK=111><DATA=10>            <---
       close()
       --->     <SEQ=111><CTL=RST>                     --->

In my opinion, last two examples are perfectly valid, they just mean
"after that, I close and don't want to hear about you again".


I'm well aware of that, and even though that's an annoying method, we
must live with it, it's probably one of the things that contribute TCP
its well known reliability. But I think that RFC 2525 abused the TCP
use based on traces showing a bad behaviour and overlooked all impacts
(nothing there talks about the case of data being sent or in flight at
the moment of the close).

Regards,
Willy

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
TCP: orphans broken by RFC 2525 #2.17, Willy Tarreau, (Sun Sep 26, 6:17 am)
Re: TCP: orphans broken by RFC 2525 #2.17, Eric Dumazet, (Sun Sep 26, 10:02 am)
Re: TCP: orphans broken by RFC 2525 #2.17, Willy Tarreau, (Sun Sep 26, 10:40 am)
Re: TCP: orphans broken by RFC 2525 #2.17, Eric Dumazet, (Sun Sep 26, 11:35 am)
Re: TCP: orphans broken by RFC 2525 #2.17, Willy Tarreau, (Sun Sep 26, 11:49 am)
Re: TCP: orphans broken by RFC 2525 #2.17, Willy Tarreau, (Sun Sep 26, 12:16 pm)
Re: TCP: orphans broken by RFC 2525 #2.17, Eric Dumazet, (Sun Sep 26, 2:01 pm)
Re: TCP: orphans broken by RFC 2525 #2.17, Willy Tarreau, (Sun Sep 26, 2:46 pm)
Re: TCP: orphans broken by RFC 2525 #2.17, David Miller, (Sun Sep 26, 3:10 pm)
Re: TCP: orphans broken by RFC 2525 #2.17, David Miller, (Sun Sep 26, 3:13 pm)
Re: TCP: orphans broken by RFC 2525 #2.17, David Miller, (Sun Sep 26, 3:14 pm)
Re: TCP: orphans broken by RFC 2525 #2.17, David Miller, (Sun Sep 26, 3:19 pm)
Re: TCP: orphans broken by RFC 2525 #2.17, Willy Tarreau, (Sun Sep 26, 3:34 pm)
Re: TCP: orphans broken by RFC 2525 #2.17, David Miller, (Sun Sep 26, 3:38 pm)
Re: TCP: orphans broken by RFC 2525 #2.17, Willy Tarreau, (Sun Sep 26, 3:54 pm)
Re: TCP: orphans broken by RFC 2525 #2.17, David Miller, (Sun Sep 26, 4:08 pm)
Re: TCP: orphans broken by RFC 2525 #2.17, Willy Tarreau, (Sun Sep 26, 4:25 pm)
Re: TCP: orphans broken by RFC 2525 #2.17, David Miller, (Sun Sep 26, 6:12 pm)
Re: TCP: orphans broken by RFC 2525 #2.17, Willy Tarreau, (Sun Sep 26, 10:39 pm)
Re: TCP: orphans broken by RFC 2525 #2.17, Eric Dumazet, (Sun Sep 26, 10:48 pm)
Re: TCP: orphans broken by RFC 2525 #2.17, Willy Tarreau, (Sun Sep 26, 11:04 pm)
Re: TCP: orphans broken by RFC 2525 #2.17, David Miller, (Sun Sep 26, 11:42 pm)
Re: TCP: orphans broken by RFC 2525 #2.17, David Miller, (Sun Sep 26, 11:44 pm)
Re: TCP: orphans broken by RFC 2525 #2.17, Willy Tarreau, (Mon Sep 27, 12:34 am)
Re: TCP: orphans broken by RFC 2525 #2.17, David Miller, (Mon Sep 27, 12:42 am)
Re: TCP: orphans broken by RFC 2525 #2.17, Julian Anastasov, (Mon Sep 27, 2:12 am)
Re: TCP: orphans broken by RFC 2525 #2.17, Willy Tarreau, (Mon Sep 27, 12:21 pm)
Re: TCP: orphans broken by RFC 2525 #2.17, Willy Tarreau, (Mon Sep 27, 12:24 pm)
Re: TCP: orphans broken by RFC 2525 #2.17, Eric Dumazet, (Mon Sep 27, 1:00 pm)
Re: TCP: orphans broken by RFC 2525 #2.17, Julian Anastasov, (Tue Sep 28, 2:01 am)
Re: TCP: orphans broken by RFC 2525 #2.17, Willy Tarreau, (Tue Sep 28, 2:26 am)