[sipcore] UPDATE, reINVITE rejections, and session-state rollback

Byron Campen <bcampen@estacado.net> Mon, 11 October 2010 17:42 UTC

Return-Path: <bcampen@estacado.net>
X-Original-To: sipcore@core3.amsl.com
Delivered-To: sipcore@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id D89AF3A6B34 for <sipcore@core3.amsl.com>; Mon, 11 Oct 2010 10:42:09 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level:
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599]
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 cTwoDHMDG+X0 for <sipcore@core3.amsl.com>; Mon, 11 Oct 2010 10:42:07 -0700 (PDT)
Received: from estacado.net (estacado-pt.tunnel.tserv2.fmt.ipv6.he.net [IPv6:2001:470:1f03:266::2]) by core3.amsl.com (Postfix) with ESMTP id C80DF3A6824 for <sipcore@ietf.org>; Mon, 11 Oct 2010 10:42:04 -0700 (PDT)
Received: from dn3-100.estacado.net (dn3-100.estacado.net [172.16.3.100]) (authenticated bits=0) by estacado.net (8.14.3/8.14.2) with ESMTP id o9BHh7cL028024 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Mon, 11 Oct 2010 12:43:07 -0500 (CDT) (envelope-from bcampen@estacado.net)
From: Byron Campen <bcampen@estacado.net>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Date: Mon, 11 Oct 2010 12:43:07 -0500
Message-Id: <4A3A728B-54C7-4E7D-B523-DC86D659A851@estacado.net>
To: Paul Kyzivat <pkyzivat@cisco.com>, shinji.okumura@softfront.jp, Gonzalo Camarillo <Gonzalo.Camarillo@ericsson.com>, "Christer Holmberg (JO/LMF)" <christer.holmberg@ericsson.com>, gao.yang2@zte.com.cn
Mime-Version: 1.0 (Apple Message framework v1081)
X-Mailer: Apple Mail (2.1081)
Cc: SIPCORE <sipcore@ietf.org>
Subject: [sipcore] UPDATE, reINVITE rejections, and session-state rollback
X-BeenThere: sipcore@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: SIP Core Working Group <sipcore.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/sipcore>, <mailto:sipcore-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/sipcore>
List-Post: <mailto:sipcore@ietf.org>
List-Help: <mailto:sipcore-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/sipcore>, <mailto:sipcore-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 11 Oct 2010 17:42:10 -0000

	Sending to the authors of the offeranswer and reinvite drafts, since I am not sure which bucket this would fall in:

	Consider the following. In all cases, this is within a reINVITE transaction, after an offer/answer exchange has completed using 100rel (which kind is not important), that is being rejected by the server side due to some unspecified error:

                 A          B
                 |<---------| INVITE/500
                 |          |
                 |          |
  UPDATE (offer) |--------->|
                 |          |
                 |<---------| UPDATE/200 (answer)

                 A          B
  UPDATE (offer) |---\  /---| INVITE/500
                 |    \/    |
                 |    /\    |
                 |<--/  \-->|
                 |          |
                 |<---------| UPDATE/200 (answer)

                 A          B
                 |        /-| INVITE/500
                 |       /  |
  UPDATE (offer) |------/-->|
                 |     /    |
                 |<---/-----| UPDATE/200 (answer)
                 |   /      |
                 |<-/       |

	All of these look identical to B; UPDATE offer/answer completes after the end of the INVITE transaction. However, A sees them very differently. B cannot know that something unusual has happened. Also consider the following cases:

                 A          B
  UPDATE (offer) |--------->|
                 |          |
                 |<---------| UPDATE/200 (answer)
                 |          |
                 |<---------| INVITE/500

                 A          B
  UPDATE (offer) |--------->|
                 |          |
                 |       /--| UPDATE/200 (answer)
                 |      /   |
                 |<----/----| INVITE/500
                 |    /     |
                 |<--/      |

	Again, these look the same to B, but different to A. What is the best approach to ensuring that session-state is consistent on both ends in all of these cases? It seems to me that one way would be to specify that rollback of a reINVITE does not invalidate session-state established with an UPDATE, regardless of whether that UPDATE transaction occurred (or appeared to have occurred) during the reINVITE transaction. If we insist that session-state established with an in-reINVITE UPDATE be rolled back (the current language says that both sides must roll back to the session-state in use prior to the reINVITE), then there is no way to ensure consistent rollback on both ends, even if everything has the same rollback logic, because what appears to be an in-reINVITE UPDATE on one end may appear to be after the reINVITE transaction on the other end. If any portion of the UPDATE transaction appeared to have happened within the reINVITE transaction, then the observing UA must send a subsequent UPDATE to re-sync (since there is no guarantee that the other end saw the UPDATE within the reINVITE transaction). This is likely to cause glare, unless we put asymmetric timers on the re-sync, and even then there will be a delay similar to that caused by glare.

	My gut says that it would be better to not rollback session-state established by an UPDATE, under any circumstances. But, there may be situations where the session-state established in an UPDATE is contingent on the reINVITE succeeding it. Would it be appropriate to say that if a UA "feels" this way, it is responsible for re-syncing? Or is there something I am missing here?

Best regards,
Byron Campen