Re: [rtcweb] SIP Glare - Re: Minimal SDP negotiation mechanism

Cullen Jennings <fluffy@cisco.com> Thu, 22 September 2011 19:51 UTC

Return-Path: <fluffy@cisco.com>
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 F319321F8BC4 for <rtcweb@ietfa.amsl.com>; Thu, 22 Sep 2011 12:51:20 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -103.093
X-Spam-Level:
X-Spam-Status: No, score=-103.093 tagged_above=-999 required=5 tests=[AWL=-0.494, BAYES_00=-2.599, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zZZV4OR56Eft for <rtcweb@ietfa.amsl.com>; Thu, 22 Sep 2011 12:51:20 -0700 (PDT)
Received: from mtv-iport-3.cisco.com (mtv-iport-3.cisco.com [173.36.130.14]) by ietfa.amsl.com (Postfix) with ESMTP id 4405621F8BBF for <rtcweb@ietf.org>; Thu, 22 Sep 2011 12:51:20 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=fluffy@cisco.com; l=2357; q=dns/txt; s=iport; t=1316721232; x=1317930832; h=subject:mime-version:from:in-reply-to:date:cc: content-transfer-encoding:message-id:references:to; bh=tqMSpbYX4ML4MY6sL16eUjU9/zywkQtkog+MLTbngeY=; b=Cx+tJxdfuk/ACaGX+0TU1gjf2DTzZ4MfC0JXAxZTccW9y8HyInIjYymm mplwyuPEth3+agc8cYoBrGnftp76Q+HBZW81+k5Hdy8eGGAiY2MjP18fe 4uLuDR++ghmAn+8/FJnVGzazvKYbpcE4KnnTj0Ppp30UYRHTw1goOehpm Q=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: Av0EAEaRe06rRDoI/2dsb2JhbABCqAJ4gVMBAQEBAgESASc/BQsLGC5XBjWHVpcYAZ4shh1gBIdxi1+FH4wv
X-IronPort-AV: E=Sophos;i="4.68,425,1312156800"; d="scan'208";a="3744075"
Received: from mtv-core-3.cisco.com ([171.68.58.8]) by mtv-iport-3.cisco.com with ESMTP; 22 Sep 2011 19:53:52 +0000
Received: from [192.168.4.100] (sjc-fluffy-8914.cisco.com [10.20.249.165]) by mtv-core-3.cisco.com (8.14.3/8.14.3) with ESMTP id p8MJrp00006326; Thu, 22 Sep 2011 19:53:52 GMT
Mime-Version: 1.0 (Apple Message framework v1084)
Content-Type: text/plain; charset="us-ascii"
From: Cullen Jennings <fluffy@cisco.com>
In-Reply-To: <4E7B8D9D.8060303@skype.net>
Date: Thu, 22 Sep 2011 13:53:51 -0600
Content-Transfer-Encoding: quoted-printable
Message-Id: <46B4E074-69C8-4B25-8348-F6951FF9725F@cisco.com>
References: <4E777500.5030201@alvestrand.no> <4E78940C.4040405@ericsson.com> <ED2DB00E-A64B-405F-96AC-2269258F6FFC@cisco.com> <4E799ECC.8030306@ericsson.com> <DB6B2796-9762-47CA-9A45-62476146DF04@cisco.com> <57CCCB06-F4C3-4E23-AF09-B7B5285C5FAE@phonefromhere.com> <F7758EE8-9D36-4999-86E4-21DB1E6F217D@cisco.com> <4E7B8D9D.8060303@skype.net>
To: Matthew Kaufman <matthew.kaufman@skype.net>
X-Mailer: Apple Mail (2.1084)
Cc: rtcweb@ietf.org
Subject: Re: [rtcweb] SIP Glare - Re: Minimal SDP negotiation mechanism
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, 22 Sep 2011 19:51:21 -0000

Could you'd like to elaborate on how it works when one of the sides is an SIP endpoint, or we the two endpoint are at different domains that are federated?



On Sep 22, 2011, at 1:33 PM, Matthew Kaufman wrote:

> On 9/22/11 11:56 AM, Cullen Jennings wrote:
>> Tim, it happens a fair amount in our playing around with browser deployments.
> 
> You make my own arguments for me.
> 
>> Imagine you and I both using browsers and have an audio call set up. 
> 
> Sounds great. And the web server has sent down some javascript that was able to query the capabilities and so it knows which audio and video codecs are supported at each end, even before the audio call started.
> 
>> We are talking an I say "hey, lets, add video", then we both go and push our "enable video" buttons at roughly the same time.
> 
> Also good.
> 
>> In this case we often get glare. 
> 
> You shouldn't.
> 
> Each side is asking the server to tell the other end to start sending video, and the server knows what codecs and parameters will work, so there's no overlap at all.
> 
>> Part of the reasons is that the signaling path is not really fast as it involves waiting for web servers to deal with sending notifications down to other side. It's hard to guess what the signaling delay will be but it easy to imagine that it will be over 200 ms in many cases and pretty easy to imagine that both of use would would click the add video button within 1/4 of second of each other. The glare we are talking about here is any time browser A has sent an SDP offer to the other side, but before A has received an SDP answer, the other side sends A and SDP offer.
> 
> See, that's the problem.
> 
> IF there are SDP offers and answers, they shouldn't be tied to the peer connection object, they should be tied to the objects that represent the devices... that way you would have two separate offer/answer happening, one for each direction.
> 
> And if you *weren't* using offer/answer, but had instead collected the capabilities ahead of time, then the server could just immediately tell each end to start sending.
> 
> So instead of a 200 msec delay *and* the risk of glare, you'd have zero delay *and* zero chance of glare.
> 
> Matthew Kaufman
>