RE: 2.0 and Radio Impacts/battery efficiency

Roberto Peon <grmocg@gmail.com> Fri, 13 April 2012 18:52 UTC

Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 6BA4E21F8562 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 13 Apr 2012 11:52:26 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.411
X-Spam-Level:
X-Spam-Status: No, score=-10.411 tagged_above=-999 required=5 tests=[AWL=0.187, BAYES_00=-2.599, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-8]
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 nFskYzJG2zS4 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 13 Apr 2012 11:52:25 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 5B78621F8552 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Fri, 13 Apr 2012 11:52:24 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.69) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1SIlaO-0002i1-8D for ietf-http-wg-dist@listhub.w3.org; Fri, 13 Apr 2012 18:51:08 +0000
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.69) (envelope-from <grmocg@gmail.com>) id 1SIla8-0002hA-B2 for ietf-http-wg@listhub.w3.org; Fri, 13 Apr 2012 18:50:52 +0000
Received: from mail-ob0-f171.google.com ([209.85.214.171]) by maggie.w3.org with esmtp (Exim 4.72) (envelope-from <grmocg@gmail.com>) id 1SIla4-0005PO-C2 for ietf-http-wg@w3.org; Fri, 13 Apr 2012 18:50:50 +0000
Received: by obbwd18 with SMTP id wd18so5575091obb.2 for <ietf-http-wg@w3.org>; Fri, 13 Apr 2012 11:50:22 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=aG/Ho/YzSXy8qKKKwtp6nBCAKhQWNGJT6HyrstqAieg=; b=qilXFNGhArOp8nwwXBZ5BIc7hUXdRNBFTK+s+0F5YeLl6Bp+0F3FnPwLCtvupNUrfz vdF4erASoK0Bzu+sfKk9ZoP28HbQRuPywtaZp+8e4yrEK85lWsqwlZALK8UyRAzHzpes 22gRPkbnBoiIFgUMDmTAJHRhSvYJqoIBtukMxmyOzdv/L0w7F7RtLKhFvz0PGFtxWIar q6gFcRVAyEfsUvmEebjUUw55JJh1s8eRe9fAt6fcmZAhucWcxzTAevIPujTm3u1oBqY6 c5RVVBzLai0jw8iUlPYqI3Hd04oGMM775GMjL3nwjkAuyO+KVrGByzoMvHJOd+5Fail2 zqcA==
MIME-Version: 1.0
Received: by 10.182.112.41 with SMTP id in9mr3675576obb.40.1334343022858; Fri, 13 Apr 2012 11:50:22 -0700 (PDT)
Received: by 10.182.109.102 with HTTP; Fri, 13 Apr 2012 11:50:22 -0700 (PDT)
Received: by 10.182.109.102 with HTTP; Fri, 13 Apr 2012 11:50:22 -0700 (PDT)
In-Reply-To: <E44893DD4E290745BB608EB23FDDB7621CEF37@008-AM1MPN1-041.mgdnok.nokia.com>
References: <4F8697C2.5000702@ericsson.com> <CACuKZqGA9Tyv_zhO2HhyLNvqvzNCrTyZYy+b_Tt616F7eLbT1w@mail.gmail.com> <CAP+FsNcGfj_G1U9nWA5qj+tW8rWwMn0+HVhYA40XXQg_hWfTuA@mail.gmail.com> <4F87E856.1000604@ericsson.com> <E44893DD4E290745BB608EB23FDDB7621CEF37@008-AM1MPN1-041.mgdnok.nokia.com>
Date: Fri, 13 Apr 2012 11:50:22 -0700
Message-ID: <CAP+FsNd0_LJCt273MwB_s5Z-w1j_GaiFFwXXgqBXpFu0kXj3ww@mail.gmail.com>
From: Roberto Peon <grmocg@gmail.com>
To: Markus.Isomaki@nokia.com
Cc: Zhong Yu <zhong.j.yu@gmail.com>, Salvatore Loreto <salvatore.loreto@ericsson.com>, ietf-http-wg@w3.org
Content-Type: multipart/alternative; boundary="f46d04479451e2d32a04bd93f17e"
Received-SPF: pass client-ip=209.85.214.171; envelope-from=grmocg@gmail.com; helo=mail-ob0-f171.google.com
X-W3C-Hub-Spam-Status: No, score=-2.7
X-W3C-Hub-Spam-Report: BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001
X-W3C-Scan-Sig: maggie.w3.org 1SIla4-0005PO-C2 be12db1a44ceeffcee295dcf6218d16b
X-Original-To: ietf-http-wg@w3.org
Subject: RE: 2.0 and Radio Impacts/battery efficiency
Archived-At: <http://www.w3.org/mid/CAP+FsNd0_LJCt273MwB_s5Z-w1j_GaiFFwXXgqBXpFu0kXj3ww@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/13440
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>
Resent-Message-Id: <E1SIlaO-0002i1-8D@frink.w3.org>
Resent-Date: Fri, 13 Apr 2012 18:51:08 +0000

Any timeout, if not explicitly synchronized across connections (dang
difficult) will , since the connection becomes idle/empty at different
times, will result in some random distribution of fins/backs/whathaveyou.
On Apr 13, 2012 3:45 AM, <Markus.Isomaki@nokia.com> wrote:

>  Hi,****
>
> ** **
>
> It’s not clear to me that using less _*TCP*_ connections automatically
> reduces battery power on 3G. For instance, the use of battery is roughly
> the same if a client opens a single TCP connection and pipelines (or
> multiplexes in SPDY style) multiple GETs over it vs. opens simultaneously a
> separate connection for each GET. The radio wakes up on the first TCP SYN
> and stays up a few seconds after the last byte in the last response has
> been obtained. A single connection may or may not make this time shorter.
> ****
>
> ** **
>
> How the connections are closed does potentially have an impact. If the
> connections are closed immediately after the responses are done, there
> isn’t any significant difference between 1 vs. many connections. The radio
> is already up. However, if the connections are closed after some idle
> period, for instance by a server timeout, that makes the radio wake-up an
> additional time. If the separate connections are closed after _*different*_
> timeouts (more than a couple of seconds difference), that can make the
> radio wake-up multiple times, which is bad. If servers really do use random
> timeouts, I agree that fewer connections are better. Is that the case?****
>
> ** **
>
> If there are connections to multiple servers and servers send data in an
> asynchronous and uncoordinated manner is a problem as the radio wakes up
> quite often.  One solution is to use some kind of gateway/proxy to buffer
> and bundle the data together and use just a single connection to that
> gateway. ****
>
> ** **
>
> Markus****
>
> ** **
>
> ** **
>
> *From:* ext Salvatore Loreto [mailto:salvatore.loreto@ericsson.com]
> *Sent:* 13 April, 2012 11:48
> *To:* Roberto Peon
> *Cc:* Zhong Yu; HTTP Working Group
> *Subject:* Re: 2.0 and Radio Impacts/battery efficiency****
>
> ** **
>
> Roberto is right!
>
> the problem with multiple TCP connections is that the server can send
> packets on several connections.
>
> Low power to full power will always be the case no matter who send data on
> (or closes) the connection, server or client.
> On top of this, when the server send data on (or closes) the connection
> the system needs to page the device,
> send out a signal on the common control channel in order to make the
> device re-establish its radio channel, these are in many systems quite
> loaded.
> When the TCP close is initiated from the device the device does not need
> to be paged.
>
> /Sal
>
> ****
>
> -- ****
>
> Salvatore Loreto, PhD****
>
> www.sloreto.com****
>
>
>
> On 4/13/12 9:27 AM, Roberto Peon wrote: ****
>
> The most obvious reason would be that the server sends a packet which
> requires the radio to awaken (e.g. because the tcp stack emits a packet
> back). ****
>
> -=R****
>
> On Thu, Apr 12, 2012 at 8:23 AM, Zhong Yu <zhong.j.yu@gmail.com> wrote:***
> *
>
> I don't get it. Cerntainly a new connection requires an extra round
> trip which drains extra power, but only for the duration of the round
> trip. Why is it "extremely expensive"?
>
> The article says
>
>    "Every time you create a new network connection, the radio
> transitions to the full power state."
>
> which I don't think implies that,
>
>    "If you reuse a network connection, the radio does NOT necessarily
> transition to the full power state."
>
> To compress all network activities(including FIN-FIN) into a shorter
> time span, the article event suggests that
>
>    "so it's also good practice to close your connections when they
> aren't in use"****
>
>
>
> On Thu, Apr 12, 2012 at 3:52 AM, Salvatore Loreto
> <salvatore.loreto@ericsson.com> wrote:
> > Hi there,
> >
> > here a good read about "Optimizing Downloads for Efficient Network
> Access"
> >
> http://developer.android.com/training/efficient-downloads/efficient-network-access.html
> >
> > the major points are
> >
> > 1) reducing the number of connections is a MUST as each new network
> > connection is extremely expensive
> > from a Radio/Battery prospective
> >
> > It is also worth to add that the server-initiated closing of  idle
> > connection is also something to avoid.
> > So if the client keeps the connection open longer, then the specification
> > has to mandate servers to keep
> > the connection open for very long.
> >
> >
> > 2) the ping frequency is also very important:
> > "An app that pings the server every 20 seconds, just to acknowledge that
> the
> > app is running and visible to the user, will keep the radio powered on
> > indefinitely"
> >
> >
> > 3) also Prefetching data need some consideration from the radio
> prospective
> > as Prefetching data (on a wireless connection)
> >  may cost money but for sure has a cost from a battery prospective
> >
> >
> > cheers
> > Sal
> >
> > --
> > Salvatore Loreto, PhD
> > www.sloreto.com****
>
> ** **
>
> ** **
>