Re: [rtcweb] Lower-overhead protocol variations

Harald Alvestrand <harald@alvestrand.no> Thu, 28 February 2013 15:18 UTC

Return-Path: <harald@alvestrand.no>
X-Original-To: rtcweb@ietfa.amsl.com
Delivered-To: rtcweb@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id B4A7721F8BC5 for <rtcweb@ietfa.amsl.com>; Thu, 28 Feb 2013 07:18:05 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -109.999
X-Spam-Level:
X-Spam-Status: No, score=-109.999 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, J_CHICKENPOX_16=0.6, RCVD_IN_DNSWL_HI=-8, 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 R1op-M7DfozS for <rtcweb@ietfa.amsl.com>; Thu, 28 Feb 2013 07:18:05 -0800 (PST)
Received: from eikenes.alvestrand.no (eikenes.alvestrand.no [158.38.152.233]) by ietfa.amsl.com (Postfix) with ESMTP id A623A21F8AE6 for <rtcweb@ietf.org>; Thu, 28 Feb 2013 07:18:04 -0800 (PST)
Received: from localhost (localhost [127.0.0.1]) by eikenes.alvestrand.no (Postfix) with ESMTP id 6283239E0E6; Thu, 28 Feb 2013 16:18:02 +0100 (CET)
X-Virus-Scanned: Debian amavisd-new at eikenes.alvestrand.no
Received: from eikenes.alvestrand.no ([127.0.0.1]) by localhost (eikenes.alvestrand.no [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1fqk+AMlPaHm; Thu, 28 Feb 2013 16:18:01 +0100 (CET)
Received: from [193.157.215.103] (unknown [193.157.215.103]) by eikenes.alvestrand.no (Postfix) with ESMTPSA id 3E7A339E056; Thu, 28 Feb 2013 16:18:01 +0100 (CET)
Message-ID: <512F7528.30007@alvestrand.no>
Date: Thu, 28 Feb 2013 16:18:00 +0100
From: Harald Alvestrand <harald@alvestrand.no>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130106 Thunderbird/17.0.2
MIME-Version: 1.0
To: Salvatore Loreto <salvatore.loreto@ericsson.com>
References: <512540A3.3090008@jesup.org> <0DB30A45-97A6-4974-9CBB-BEE6691EFCE2@lurchi.franken.de> <51263522.1030206@jesup.org> <3FAF754D-8040-49FC-B0AD-F17BF705F62C@lurchi.franken.de> <512B58F2.3020408@alvestrand.no> <2594249F-FA21-4872-80E3-6F2EB7B87F85@lurchi.franken.de> <512BEAFE.1050700@alvestrand.no> <A4EB2CA5-BD1B-4833-A732-7E8514BBF2E4@lurchi.franken.de> <512DF818.2010302@ericsson.com> <86DED275-D2FF-4839-9B77-18E205015D35@lurchi.franken.de> <512F19C3.7000403@ericsson.com>
In-Reply-To: <512F19C3.7000403@ericsson.com>
Content-Type: text/plain; charset="ISO-8859-1"; format="flowed"
Content-Transfer-Encoding: 7bit
Cc: rtcweb@ietf.org
Subject: Re: [rtcweb] Lower-overhead protocol variations
X-BeenThere: rtcweb@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: Real-Time Communication in WEB-browsers working group list <rtcweb.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/rtcweb>, <mailto:rtcweb-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/rtcweb>
List-Post: <mailto:rtcweb@ietf.org>
List-Help: <mailto:rtcweb-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/rtcweb>, <mailto:rtcweb-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 28 Feb 2013 15:18:05 -0000

On 02/28/2013 09:48 AM, Salvatore Loreto wrote:
> On 2/27/13 8:32 PM, Michael Tuexen wrote:
>>
>> Not sure we can choose based on SCTP. The port numbers can be the 
>> same and we have no addresses
>> available. Maybe we can use the client/server identity from DTLS (the 
>> DTLS client uses even,
>> the DTLS server uses odd).
>>>>>>> The MMUSIC SCTP draft (draft-ietf-mmusic-sctp-sdp-03.txt) says:
>>>>>>>
>>>>>>> 6.  The Setup and Connection Attributes and Association Management
>>>>>>>
>>>>>>>    The use of the 'setup' and 'connection' attributes in the 
>>>>>>> context of
>>>>>>>    an SCTP association is identical to the use of these 
>>>>>>> attributes in
>>>>>>>    the context of a TCP connection.  That is, SCTP endpoints 
>>>>>>> MUST follow
>>>>>>>    the rules in Sections 4 and 5 of RFC 4145 [RFC4145] when it 
>>>>>>> comes to
>>>>>>>    the use of the 'setup' and 'connection' attributes in 
>>>>>>> offer/answer
>>>>>>>    [RFC3264] exchanges.
>>>>>>>
>>>>>>> The relevant table from section 4 of RFC 4145 is:
>>>>>>>
>>>>>>>            Offer      Answer
>>>>>>>             ________________
>>>>>>>             active     passive / holdconn
>>>>>>>             passive    active / holdconn
>>>>>>>             actpass    active / passive / holdconn
>>>>>>>             holdconn   holdconn
>>>>>>>
>>>>>>> I think that based on RFC 4145, it would be reasonable to say 
>>>>>>> that the party in the "active" role uses the even channels and 
>>>>>>> the party in the "passive" role uses the odd channels, and that 
>>>>>>> if the initiator uses "actpass", no channel assignment can be 
>>>>>>> made until the answer comes back as either "active" or "passive".
>>>>>> OK. I was writing the statement based on how things are currently 
>>>>>> implemented
>>>>>> in Firefox. Both side are the active side...
>>>>>>
>>>>>> Thanks for the clarification.
>>>>> That confuses me ... do both sides send INIT (RFC 4960 section 5.1 
>>>>> step A)?
>>>> Yes...
>>>>> Collision is described in section 5.2.1 section B - I guess that 
>>>>> if that's something that makes sense to provoke on a regular 
>>>>> basis, "both active" can make sense.
>>>> Yes, SCTP handles INIT collisions. In API terms: Bots call 
>>>> connect() (using the 1to1 style API).
>>>> This is possible, since both sides know the port number of the peer.
>>> thanks for the clarification Michael.
>>>
>>> just to be clear before I do any changes in the The MMUSIC SCTP draft,
>>> is this something always true? (i.e. implementation independent)
>> No. It is how it is currently handled in Firefox. If i remember it 
>> correctly,
>> ekr preferred a symmetric solution. So he hasn't to figure out which 
>> side
>> is active and which side is passive. Could be related to the fact, 
>> the Firefox
>> currently doesn't use SDP for the data channels (if I remember it 
>> correctly).
>>> even if I haven't checked I am not sure it is true also for the "1 
>>> to many" model...
>>> and that make me cautious on doing any changes unless we do not 
>>> restrict the scope of
>>> the draft to 1to1 style
>> INIT collision is also handled by 1-to-1 style sockets.
> thanks for the answer Michael,
> so for the time being it seems that I don't need to do any 
> modification to the draft-ietf-mmusic-sctp-sdp draft
> about the active/passive role
>
> however I would like to hear more comments from people on this aspect:
> i.e. the Active/Passive role

You have to change the reference to RFC 4145, stating that active/active 
is a possible configuration - if someone gets a=active in an offer, it 
is OK to reply with a=active in the answer.

If you don't do that, the reference to RFC 4145 says that this is illegal.

       Harald