Re: [hybi] Reliable message delivery (was Re: Technical feedback.)

Mridul Muralidharan <mridulm80@yahoo.com> Wed, 03 February 2010 06:49 UTC

Return-Path: <mridulm80@yahoo.com>
X-Original-To: hybi@core3.amsl.com
Delivered-To: hybi@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 313373A69FE for <hybi@core3.amsl.com>; Tue, 2 Feb 2010 22:49:01 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.056
X-Spam-Level:
X-Spam-Status: No, score=-2.056 tagged_above=-999 required=5 tests=[AWL=-0.451, BAYES_00=-2.599, RELAY_IS_203=0.994]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tQZlnF1aCXKO for <hybi@core3.amsl.com>; Tue, 2 Feb 2010 22:49:00 -0800 (PST)
Received: from web95411.mail.in2.yahoo.com (web95411.mail.in2.yahoo.com [203.104.18.235]) by core3.amsl.com (Postfix) with SMTP id EA5FB3A69FC for <hybi@ietf.org>; Tue, 2 Feb 2010 22:48:58 -0800 (PST)
Received: (qmail 60533 invoked by uid 60001); 3 Feb 2010 06:49:36 -0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1265179776; bh=TWh5k2c/St4R5ssco64ug202Zk7R97kbt91OGm9KCXQ=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=6wTO43SX9+Asd86lPTKtg9froAm7HDGkTpO5WNVyhn9YNiNTjLmti0aYF1jjXIFJnQt2UQyu9JrbAmTCusCEpkU8dy0HviXFJjYfbD14gCK0BrnIPCfsZWiShlz1cChR8UUTf/lyeP/h02Wvtvye2rcLrOEV+zL1vMe46p2JMY8=
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=whqx4tDaiaFT9xwz0o9P8tO1qiLEzYEln+5lC2pk1GBjRfewm8H0YETYoetLm49/f3TaoorOX2js3Taedjl4ii9HFop+vdTFO+tOL8G6hU5o+xpg7qY/PolCUSGIlzvpjlV2r7BrH71dosIgcpGqI2LdF+aB8t0GYCsrKmvhhz0=;
Message-ID: <242761.60367.qm@web95411.mail.in2.yahoo.com>
X-YMail-OSG: 47shpkIVM1n6G9LI.SgKQGVikzS4mI3mQZvK.Q7Nb18_GtBF3EivQ880IKOUxD6kv1DyGWBS12hPjkf5lI2NL4nTFRl2tVwZgG0wUm6FfmMZHmW0Ewk8HNLQjCugyBbzfY8mPtYXO9HUYUIFbwlaMwXPoe8Xhsu2iZUfPXlz5gp.YEhKXcPDVai8m9TRaIwO_n8Ri62AMkMDasWxUOSaA.n4hROqSv3zzWBip8p01PRgso.kIcbgrlKAeQYh_xXj_gtwveC317swZgsWJ7zjx28ZRDCi8rCVOym3JZYomh59.muP9Go-
Received: from [203.83.248.37] by web95411.mail.in2.yahoo.com via HTTP; Wed, 03 Feb 2010 12:19:36 IST
X-Mailer: YahooMailRC/272.7 YahooMailWebService/0.8.100.260964
References: <20100130144936.GD19124@shareable.org> <5c902b9e1001301552n6efb7969o34110373e3ab4945@mail.gmail.com> <4B672C9D.9010205@ericsson.com> <op.u7gy9bag64w2qv@annevk-t60> <96935605-E8B8-4718-B60F-570FD2C199E4@apple.com> <8B0A9FCBB9832F43971E38010638454F032E5065ED@SISPE7MB1.commscope.com> <20100202012534.GB32743@shareable.org> <8B0A9FCBB9832F43971E38010638454F032E50667D@SISPE7MB1.commscope.com> <D17188F8-4B5B-41B4-993F-7AF0DC0B4D47@apple.com> <5c902b9e1002020905x5f38c65epa82d8b25ff044d6b@mail.gmail.com> <20100203005423.GF32743@shareable.org> <A41CD237-9AA7-4E30-9813-9EE8DB6338B8@apple.com>
Date: Wed, 03 Feb 2010 12:19:36 +0530
From: Mridul Muralidharan <mridulm80@yahoo.com>
To: Maciej Stachowiak <mjs@apple.com>, Jamie Lokier <jamie@shareable.org>
In-Reply-To: <A41CD237-9AA7-4E30-9813-9EE8DB6338B8@apple.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Cc: Hybi <hybi@ietf.org>, "Thomson, Martin" <Martin.Thomson@andrew.com>
Subject: Re: [hybi] Reliable message delivery (was Re: Technical feedback.)
X-BeenThere: hybi@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: Server-Initiated HTTP <hybi.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/hybi>, <mailto:hybi-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/hybi>
List-Post: <mailto:hybi@ietf.org>
List-Help: <mailto:hybi-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/hybi>, <mailto:hybi-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 03 Feb 2010 06:49:01 -0000

Detection of lost messages is slightly harder problem than orderly close.
In xmpp space, where we had to deal with it, the base protocol mentions about orderly close - there are extensions which deal with detecting (on reconnect) if server/client received all messages sent & retransmit those : but this also depends on whether the server/client supports it, etc.
Actually detection for need for retransmission for httpbind is different from message level retransmission ... but I am not getting into that here.


Regards,
Mridul



----- Original Message ----
> From: Maciej Stachowiak <mjs@apple.com>
> To: Jamie Lokier <jamie@shareable.org>
> Cc: Hybi <hybi@ietf.org>; "Thomson, Martin" <Martin.Thomson@andrew.com>
> Sent: Wed, 3 February, 2010 7:15:18 AM
> Subject: Re: [hybi] Reliable message delivery (was Re: Technical feedback.)
> 
> 
> On Feb 2, 2010, at 4:54 PM, Jamie Lokier wrote:
> 
> > 
> > In a nutshell, there are *two* distinct uses for signalling clean shutdown:
> > 
> >    1. To avoid the TCP reset hazard.
> > 
> >    2. To signal that it was a clean shutdown, so there is no protocol
> >       uncertainty about what has been processed / what can be retried
> >       on another connection.(**)(***)
> > 
> > shutdown() and lingering close does deal with 1, but it isn't reliable
> > for 2 because of all the other things which can look like shutdown().
> 
> I think everyone agrees that we need to address #1. I also personally agree with 
> #2.
> 
> Also, there's a potential third use:
> 
> 3. Knowing the other endpoint has definitely received all of your messages sent 
> prior to the close.
> 
> I'm not sure, but I think to achieve #3 may require at either a 3-way close 
> handshake, or a close reply message distinct from close initiation. Consider the 
> case both endpoints initiate close at the same time and their messages cross. 
> Then one endpoint may think it is the close initiator, and when it sees the 
> close from the other side, it may think the other side got all of its messages 
> successfully. Another possibility is to make the close response message look 
> different from the close initiation message. Then you can distinguish a close 
> reply from simultaneous close. I haven't yet analyzed whether this is fully 
> sufficient. We may need to explicitly identify the last message received by each 
> side somehow.
> 
> Clearly there are subtle issues here, and we'll have to carefully analyze what 
> can go wrong in any close protocol.
> 
> Regards,
> Maciej
> 
> _______________________________________________
> hybi mailing list
> hybi@ietf.org
> https://www.ietf.org/mailman/listinfo/hybi



      Your Mail works best with the New Yahoo Optimized IE8. Get it NOW! http://downloads.yahoo.com/in/internetexplorer/