Re: [rtcweb] Target numbers for setup time (Re: Keeping up data channel)

Cullen Jennings <fluffy@iii.ca> Thu, 05 July 2012 21:16 UTC

Return-Path: <fluffy@iii.ca>
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 C421321F856F for <rtcweb@ietfa.amsl.com>; Thu, 5 Jul 2012 14:16:00 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.11
X-Spam-Level:
X-Spam-Status: No, score=-2.11 tagged_above=-999 required=5 tests=[AWL=-0.111, BAYES_00=-2.599, J_CHICKENPOX_45=0.6]
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 U2SvWfZ-JNpL for <rtcweb@ietfa.amsl.com>; Thu, 5 Jul 2012 14:16:00 -0700 (PDT)
Received: from mxout-07.mxes.net (mxout-07.mxes.net [216.86.168.182]) by ietfa.amsl.com (Postfix) with ESMTP id 1591F21F8566 for <rtcweb@ietf.org>; Thu, 5 Jul 2012 14:15:59 -0700 (PDT)
Received: from sjc-vpn5-1539.cisco.com (unknown [128.107.239.233]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id B2F6922E25D; Thu, 5 Jul 2012 17:16:07 -0400 (EDT)
Mime-Version: 1.0 (Apple Message framework v1278)
Content-Type: text/plain; charset="us-ascii"
From: Cullen Jennings <fluffy@iii.ca>
In-Reply-To: <CAOJ7v-3W6fntUop+66SjhicuDzDnKJ-Kadxg1frp2QwiZhV=tA@mail.gmail.com>
Date: Thu, 05 Jul 2012 14:16:05 -0700
Content-Transfer-Encoding: quoted-printable
Message-Id: <047E39EB-F92F-44EA-B44F-03ADE49E0BEC@iii.ca>
References: <E44893DD4E290745BB608EB23FDDB76223EA5F@008-AM1MPN1-041.mgdnok.nokia.com> <4FD6D566.6060806@alvestrand.no> <4FD7A356.2010406@ericsson.com> <CABkgnnV7DLFsT9A=5UG_XsPcNpJY39Xan1sEoMRfmN7oJSWuVA@mail.gmail.com> <4FD83C21.4080701@alvestrand.no> <4FD85D78.1040103@jesup.org> <929BD935-0E8F-4985-9E51-9E213B0C6841@cisco.com> <4FE4A6B2.7020601@alvestrand.no> <8F1A4041-E7E8-49D4-A77B-EDFF1F5A617C@cisco.com> <4FEEF614.6090507@jesup.org> <CAOJ7v-3W6fntUop+66SjhicuDzDnKJ-Kadxg1frp2QwiZhV=tA@mail.gmail.com>
To: Justin Uberti <juberti@google.com>
X-Mailer: Apple Mail (2.1278)
Cc: Randell Jesup <randell-ietf@jesup.org>, rtcweb@ietf.org
Subject: Re: [rtcweb] Target numbers for setup time (Re: Keeping up data channel)
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, 05 Jul 2012 21:16:00 -0000

I think we are talking about different numbers here. I am concerned with the time from when the UI indicates you can start talking, to the time that you can start talking with a reasonable expectation that the other side will hear it. 


On Jul 2, 2012, at 13:00 , Justin Uberti wrote:

> We can certainly make the API allow instant creation of a data channel, but the thing I'm bringing up is the <N RTT of data channel setup>, which is currently the long pole in establishing a p2p flow. That's where 6 RTTs are coming from.
> 
> Agree with Harald that this is an IETF matter though.
> 
> 
> On Sat, Jun 30, 2012 at 5:50 AM, Randell Jesup <randell-ietf@jesup.org> wrote:
> On 6/28/2012 3:49 PM, Cullen Jennings (fluffy) wrote:
> Agree - that's why I think this has to be done in zero RTT. I don't see any problem with setting up a data channel and being ready to send media before having the UI tell the user they are "connected and can start talking".
> 
> I agree, and have suggested this as well, but it's really in the application domain (though we can give examples that use it and recommend it).  There are some mild security concerns with accepting the data-only connection before user decision, but manageable I believe.
> 
> Roughly: call start (user)
>      caller-> Offer(SDP(data-only)) as "setup" -> server -> answerer
>             (also indicate if it's audio-only or audio+video)
>             (maybe offer data+audio (and video) to warm up ICE candidates)
>      answerer -> Answer (SDP(data-only)) as "setup" -> server -> answerer
>      answerer -> alert user
>      caller-> install Answer
>      <N RTT of data channel setup setting up "negotiation" channel>
>      caller-> Offer(SDP(data+media)) as "call" -> answerer (over "negotiation" channel)
>      ...
>      answerer (user) accepts
>      answerer-> Answer(SDP(data+media)) as "call" -> caller (over "negotiation" channel)
>      answerer starts sending
>      caller installs Answer
>      caller media starts sending
> 
> From user accepts -> media starts, it's 0 RTT for answer sending, 1 RTT until he sees media from the caller, which is pretty much close to theoretical minimum.  (You can do better only by starting media channels "in the background" from the caller before user accepts, perhaps with an Answer(SDP(data+receive-only-media)).)
> 
> Again, I believe this is all possible in the application domain today with the spec.
> 
> 
> Reducing from 7 RTT to 5 RTT does not help when you need to get to 0 RTT.
> 
> On Jun 22, 2012, at 10:09 , Harald Alvestrand wrote:
> 
> On 06/22/2012 05:58 PM, Cullen Jennings (fluffy) wrote:
> On Jun 13, 2012, at 5:29 , Randell Jesup wrote:
> 
> How far down do you think we have to drive the setup time before you
> would not call it "abysmal"?
> I'd probably consider above 250 ms abysmal but good news I don't see any problem with getting it down around 100 ms in when both endpoints are in a single country.
> 
> Coast-to-coast US is ~4800 km, so RTT (9600 km) is 32 ms (speed of light is 300 km/msec).
> 
> So, without considering processing time, 3 RTT is 100 msec, 7 RTT is "abysmal".
> 
> There are bigger countries than the US, but this will do for a back-of-the-envelope.
> 
> -- 
> Randell Jesup
> randell-ietf@jesup.org
> _______________________________________________
> rtcweb mailing list
> rtcweb@ietf.org
> https://www.ietf.org/mailman/listinfo/rtcweb
> 
> _______________________________________________
> rtcweb mailing list
> rtcweb@ietf.org
> https://www.ietf.org/mailman/listinfo/rtcweb