Re: [bfcpbis] TBD issues #4 and #5: How to pick next sequence number

Gonzalo Camarillo <Gonzalo.Camarillo@ericsson.com> Tue, 13 November 2012 08:55 UTC

Return-Path: <gonzalo.camarillo@ericsson.com>
X-Original-To: bfcpbis@ietfa.amsl.com
Delivered-To: bfcpbis@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 33C2021F85EB for <bfcpbis@ietfa.amsl.com>; Tue, 13 Nov 2012 00:55:29 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -106.014
X-Spam-Level:
X-Spam-Status: No, score=-106.014 tagged_above=-999 required=5 tests=[AWL=0.235, BAYES_00=-2.599, HELO_EQ_SE=0.35, RCVD_IN_DNSWL_MED=-4, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ekvhO0wl9Rnc for <bfcpbis@ietfa.amsl.com>; Tue, 13 Nov 2012 00:55:28 -0800 (PST)
Received: from mailgw2.ericsson.se (mailgw2.ericsson.se [193.180.251.37]) by ietfa.amsl.com (Postfix) with ESMTP id B087321F8592 for <bfcpbis@ietf.org>; Tue, 13 Nov 2012 00:55:26 -0800 (PST)
X-AuditID: c1b4fb25-b7f926d00000661f-c4-50a20afb569c
Received: from esessmw0184.eemea.ericsson.se (Unknown_Domain [153.88.253.124]) by mailgw2.ericsson.se (Symantec Mail Security) with SMTP id 7F.0F.26143.BFA02A05; Tue, 13 Nov 2012 09:55:23 +0100 (CET)
Received: from [131.160.36.86] (153.88.115.8) by esessmw0184.eemea.ericsson.se (153.88.115.82) with Microsoft SMTP Server id 8.3.279.1; Tue, 13 Nov 2012 09:55:23 +0100
Message-ID: <50A20AFA.6050001@ericsson.com>
Date: Tue, 13 Nov 2012 10:55:22 +0200
From: Gonzalo Camarillo <Gonzalo.Camarillo@ericsson.com>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20121026 Thunderbird/16.0.2
MIME-Version: 1.0
To: Tom Kristensen <tomkrist@cisco.com>
References: <50A20844.3070601@cisco.com>
In-Reply-To: <50A20844.3070601@cisco.com>
X-Enigmail-Version: 1.4.5
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 7bit
X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprILMWRmVeSWpSXmKPExsUyM+Jvje5vrkUBBrN/aVj8W3eUyeLKkV9s DkweU35vZPVYsuQnUwBTFJdNSmpOZllqkb5dAlfGu3cLGQu6RComrD7I3MD4kb+LkZNDQsBE or/3NQuELSZx4d56ti5GLg4hgZOMEuveP2KGcFYDOWd6mUCqeAW0JW7/fMsOYrMIqEpsmPeR FcRmE7CQ2HLrPtgkUYEoiUMbD7JD1AtKnJz5BCwuIqAu0bf3O1icWUBR4kpXL1hcWMBZ4vmh V2DzhQQ0JJ5sn8oIYnMKaEpsf7wQ6jpJibfvXzFD9OpJTLnawghhy0tsfzuHGaJXW2L5sxaW CYxCs5CsnoWkZRaSlgWMzKsY2XMTM3PSy402MQKD9eCW36o7GO+cEznEKM3BoiTOa711j7+Q QHpiSWp2ampBalF8UWlOavEhRiYOTqkGRiZ3XVkxy40shXq//sh95NqYNP9T76st/xsDj969 /dZ6usLGKd2Hbd7GFjzxedotzO20etPXbz/3XGL4UXzo4KNVkb1+PJvt6mP+3i7LuLm7qoAj 88SKczM2bv3c0hIs9W7NyWchwrfq7id/28Z+7oN/ffSJvufepc0Mi02kbmw5tS9faJ0vt4kS S3FGoqEWc1FxIgDBzRRnJAIAAA==
Cc: BFCPbis WG <bfcpbis@ietf.org>
Subject: Re: [bfcpbis] TBD issues #4 and #5: How to pick next sequence number
X-BeenThere: bfcpbis@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: BFCPBIS working group discussion list <bfcpbis.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/bfcpbis>, <mailto:bfcpbis-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/bfcpbis>
List-Post: <mailto:bfcpbis@ietf.org>
List-Help: <mailto:bfcpbis-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/bfcpbis>, <mailto:bfcpbis-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 13 Nov 2012 08:55:29 -0000

Hi,

the text should explain the requirement (i.e., to avoid getting confused
with retransmissions that arrive late). With respect to the mechanism,
you can recommend (i.e., at SHOULD level) to use monotonically
increasing sequence numbers and let implementations choose any other
method that would meet the requirement as well.

Cheers,

Gonzalo

On 13/11/2012 10:43 AM, Tom Kristensen wrote:
> Issue with picking sequence numbers and making sure it doesn't cause any
> issues with (late) arriving retransmissions. This may happen, even
> though UDP/BFCP requires just one outstanding transaction at the time.
> 
> Gonzalo:
>> Section 6.2
> [...]
>> The document says: " Transaction ID values are non-sequential and
>> entities are at liberty to select values at random."
>>
>> The document needs to make it clear what is the requirement and the
>> level of randomness required. For example, what happens if the same
>> transaction ID is reused and a retransmission of the message that
>> first used that transaction ID arrives?
> 
> Tom:
> | No real random numbers are needed. This issue is solved in the
> | upcoming version of the draft.
> | However, we need a safe scheme to pick sequence numbers to avoid
> | late arriving retransmissions cause confusion).
> 
> 
> Gonzalo:
>> Section 8.1
>>
>> "The client MUST set the Transaction ID value in the common header to
>> a number that is different from 0 and that MUST NOT be reused in
>> another message from the client until a response from the server is
>> received for the transaction."
>>
>> See my comment above about reusing transaction ID values and the risk
>> of receiving retransmissions of the original message.
> 
> Tom:
> | OK. This is kept from RFC 4582 using TCP (and no retransmissions). So,
> the
> | idea should be to keep the RFC 4582 semantics for TCP transport and
> | introduce some sort of "sliding window sequence number" reuse or simply
> | add a sequential/wrapping sequence numbering for UDP as transport.
> 
> 
> So, what do people think?
> 
> I feel the simplest here is to at least requring the BFCP entities to
> select
> Transaction ID values in increasing order and a wrap around of the 16
> bit Transaction ID value. (This will require saying something about
> picking the intial value at random, not to close to wrapping and so on -
> I guess. Similar to RTP sequence numbers).
> 
> Or is it sufficient to mandate not reusing the X last Transaction IDs
> used by the BFCP entity?
> Where X == what?
> 
> -- Tom