Re: [Dime] RFC 3588 (Diameter Base Protocol) - Section 2.1.1. SCTP Guidelines

Sebastien Decugis <sdecugis@nict.go.jp> Tue, 05 October 2010 01:39 UTC

Return-Path: <sdecugis@nict.go.jp>
X-Original-To: dime@core3.amsl.com
Delivered-To: dime@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 785A53A6EBF for <dime@core3.amsl.com>; Mon, 4 Oct 2010 18:39:32 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.995
X-Spam-Level:
X-Spam-Status: No, score=-1.995 tagged_above=-999 required=5 tests=[AWL=0.254, BAYES_00=-2.599, HELO_EQ_FR=0.35]
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 zVSAhYf4CxYd for <dime@core3.amsl.com>; Mon, 4 Oct 2010 18:39:25 -0700 (PDT)
Received: from sd-22293.dedibox.fr (sd-22293.dedibox.fr [88.191.125.50]) by core3.amsl.com (Postfix) with ESMTP id AD32B3A6E7E for <dime@ietf.org>; Mon, 4 Oct 2010 18:39:12 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1]) by sd-22293.dedibox.fr (Postfix) with ESMTP id E32E49404E for <dime@ietf.org>; Tue, 5 Oct 2010 03:39:58 +0200 (CEST)
X-Virus-Scanned: Debian amavisd-new at sd-22293.dedibox.fr
Received: from sd-22293.dedibox.fr ([127.0.0.1]) by localhost (sd-22293.dedibox.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Ri0lMUFmMT1k for <dime@ietf.org>; Tue, 5 Oct 2010 03:39:55 +0200 (CEST)
Received: from [202.249.37.5] (morbier.koganei.wide.ad.jp [202.249.37.5]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by sd-22293.dedibox.fr (Postfix) with ESMTPSA id 7AC2B9404D for <dime@ietf.org>; Tue, 5 Oct 2010 03:39:54 +0200 (CEST)
Message-ID: <4CAA81D7.6050605@nict.go.jp>
Date: Tue, 05 Oct 2010 10:39:35 +0900
From: Sebastien Decugis <sdecugis@nict.go.jp>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; fr; rv:1.9.2.9) Gecko/20100915 Thunderbird/3.1.4
MIME-Version: 1.0
To: dime@ietf.org
References: <s2v618e24241004260054z7f767689nfba37fbf82b1f030@mail.gmail.com> <v2x618e24241005030326x810b6d7fr977d506896c9802e@mail.gmail.com> <h2o919c9f451005031041h40693491y64995e345b93384f@mail.gmail.com> <4BDFB5CC.5080908@restena.lu> <p2pce72e8461005040327o5abded5tf3c2555f10169be8@mail.gmail.com> <z2k618e24241005040340rf9e948a3m90c0661a67e57bf2@mail.gmail.com> <s2y919c9f451005040534y62ae5780p7679cdd6acb221dd@mail.gmail.com> <AANLkTikLB6+B4bOJTDBSGs23QbSJpwTyzq2vg47CArXA@mail.gmail.com>
In-Reply-To: <AANLkTikLB6+B4bOJTDBSGs23QbSJpwTyzq2vg47CArXA@mail.gmail.com>
X-Enigmail-Version: 1.1.1
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 8bit
Subject: Re: [Dime] RFC 3588 (Diameter Base Protocol) - Section 2.1.1. SCTP Guidelines
X-BeenThere: dime@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: Diameter Maintanence and Extentions Working Group <dime.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/dime>, <mailto:dime-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/dime>
List-Post: <mailto:dime@ietf.org>
List-Help: <mailto:dime-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/dime>, <mailto:dime-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 05 Oct 2010 01:39:32 -0000

 Hello,

Sorry to jump in the discussion like this. I don't quite understand the
issue discussed. Messages pertaining to one session come as
Request/Answer sequence, there is no new request generated until the
previous answer was received -- at least in the Diameter applications I
know -- unless the ordering is not important such as in Accounting
application (which contains account record number). The ordering in
Diameter is provided at the application level, there is no need to be
more specific at the transport level.

The only exception that is worth clarification in my opinion is the
interaction between applications and Base Protocol messages such as
CER/CEA or STR/STA: for example if a new message is sent just after the
CEA and received out of order by the other peer, it will be discarded.
Also, if an STR is sent straight after a message and received before
this message, the message will be dropped as well. This might be worth
stating in the RFC. It is quite easy to work around these issues in the
implementation, as long as they have been anticipated.

My two cents,
Sebastien.

Le 05/10/2010 06:05, Victor Pascual Avila a écrit :
> Hi Victor,
>  
> quick question: SCTP provides the "unordered delivery" feature, which
> means that the receiving side may receive unordered Diameter messages.
> Does Diameter provide any AVP indicating a sequence number or such
> that would enable message re-ordering?
>  
> Many thanks in advance,
> -Victor 
>
> On Tue, May 4, 2010 at 8:34 AM, Victor Fajardo <vf0213@gmail.com
> <mailto:vf0213@gmail.com>> wrote:
>
>     Hi,
>      
>     I see. Then I would propose that in the current state of this
>     spec, we can simply state a minimum (as stefan has mentioned) that
>     a peer MUST be ready to handle un-ordered messages. Then someone
>     can volunteer a more proper guideline for SCTP stream
>     usage/assignment either in an errata or an another draft.
>      
>     regards,
>     victor
>
>     On Tue, May 4, 2010 at 6:40 AM, Victor Pascual Avila
>     <victor.pascual.avila@gmail.com
>     <mailto:victor.pascual.avila@gmail.com>> wrote:
>
>         IMO rfc4168 is pretty clear on the topic:
>         http://tools.ietf.org/html/rfc4168#section-5
>
>         -Victor
>
>         On Tue, May 4, 2010 at 12:27 PM, Naveen Kottapalli
>         <naveen.sarma@gmail.com <mailto:naveen.sarma@gmail.com>> wrote:
>         > IMHO we can specify the same as a caution note in the
>         RFC like some of the
>         > SIGTRAN protocols did.
>         > Yours,
>         > Naveen.
>         >
>         >
>         > On 4 May 2010 06:51, Stefan Winter <stefan.winter@restena.lu
>         <mailto:stefan.winter@restena.lu>> wrote:
>         >>
>         >> Hi,
>         >>
>         >> > For me I think message ordering and/or delivery is an
>         implementation
>         >> > issue (and hence SCTP stream assignments/usage as well).
>         There are
>         >> > many ways to go about this (ordered global rx queues,
>         per-session
>         >> > queues ... etc) and all of the depends on how you
>         architecture your
>         >> > implementation. This is a good reason not to have it in a
>         protocol spec.
>         >> >
>         >>
>         >> I don't quite understand that. If you leave the decision of
>         message
>         >> ordering to the implementation, you can easily run into one
>         >> implementation sending its transactions unordered or in
>         different
>         >> streams, while the implementation on the other end expects
>         them to come
>         >> in ordered and in the same stream. This will lead to poor/no
>         >> interoperability between the two implementations. I'd
>         consider this
>         >> property to be part of the spec. At the very least, it
>         should be spec'd
>         >> that the receiving end MUST be prepared to handle
>         out-of-order or
>         >> cross-stream transactions.
>         >>
>         >> Greetings,
>         >>
>         >> Stefan Winter
>         >>
>         >> --
>         >> Stefan WINTER
>         >> Ingenieur de Recherche
>         >> Fondation RESTENA - Réseau Téléinformatique de l'Education
>         Nationale et de
>         >> la Recherche
>         >> 6, rue Richard Coudenhove-Kalergi
>         >> L-1359 Luxembourg
>         >>
>         >> Tel: +352 424409 1
>         >> Fax: +352 422473
>         >>
>         >>
>         >>
>         >> _______________________________________________
>         >> DiME mailing list
>         >> DiME@ietf.org <mailto:DiME@ietf.org>
>         >> https://www.ietf.org/mailman/listinfo/dime
>         >>
>         >
>         >
>         > _______________________________________________
>         > DiME mailing list
>         > DiME@ietf.org <mailto:DiME@ietf.org>
>         > https://www.ietf.org/mailman/listinfo/dime
>         >
>         >
>
>
>
>         --
>         Victor Pascual Ávila
>         _______________________________________________
>         DiME mailing list
>         DiME@ietf.org <mailto:DiME@ietf.org>
>         https://www.ietf.org/mailman/listinfo/dime
>
>
>
>
>
> -- 
> Victor Pascual Ávila
>
>
> _______________________________________________
> DiME mailing list
> DiME@ietf.org
> https://www.ietf.org/mailman/listinfo/dime

-- 
Sebastien Decugis
Research fellow
Network Architecture Group
NICT (nict.go.jp)