Re: [6lowapp] HTTP and SIP

Adam Dunkels <adam@sics.se> Mon, 12 October 2009 11:18 UTC

Return-Path: <adam@sics.se>
X-Original-To: 6lowapp@core3.amsl.com
Delivered-To: 6lowapp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 3CDCA3A68D0 for <6lowapp@core3.amsl.com>; Mon, 12 Oct 2009 04:18:48 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.205
X-Spam-Level:
X-Spam-Status: No, score=-0.205 tagged_above=-999 required=5 tests=[AWL=-0.555, BAYES_50=0.001, HELO_EQ_SE=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 48KINhKVnHMa for <6lowapp@core3.amsl.com>; Mon, 12 Oct 2009 04:18:47 -0700 (PDT)
Received: from letter.sics.se (letter.sics.se [193.10.64.6]) by core3.amsl.com (Postfix) with ESMTP id 5B07328C154 for <6lowapp@ietf.org>; Mon, 12 Oct 2009 04:18:47 -0700 (PDT)
Received: from [10.1.1.254] (unknown [10.1.1.254]) by letter.sics.se (Postfix) with ESMTP id 35D7B40128; Mon, 12 Oct 2009 13:18:47 +0200 (CEST)
Message-ID: <4AD31091.2050901@sics.se>
Date: Mon, 12 Oct 2009 13:18:41 +0200
From: Adam Dunkels <adam@sics.se>
User-Agent: Thunderbird 2.0.0.23 (Windows/20090812)
MIME-Version: 1.0
To: Brian Frank <brian.tridium@gmail.com>
References: <429b380e0910101030q25f1ad7fge7157c2e04b5d530@mail.gmail.com> <4AD105DC.3070407@sics.se> <1DDEE359-AA0F-4D94-81BA-7ED03E3CC86A@archrock.com> <7b191a110910110629r6e45825cr4e69c0636ea99c16@mail.gmail.com>
In-Reply-To: <7b191a110910110629r6e45825cr4e69c0636ea99c16@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Cc: 6lowapp@ietf.org
Subject: Re: [6lowapp] HTTP and SIP
X-BeenThere: 6lowapp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: Application protocols for constrained nodes and networks <6lowapp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/6lowapp>, <mailto:6lowapp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/6lowapp>
List-Post: <mailto:6lowapp@ietf.org>
List-Help: <mailto:6lowapp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/6lowapp>, <mailto:6lowapp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 12 Oct 2009 11:18:48 -0000

Brian Frank wrote:
> 
>     I also agree that we should not be so quick to come to conclusions
>     without presentation of real empirical evidence.
> 
> 
> I agree.  One of the first things we need to do is justify that a new 
> protocol is required using real empirical data that shows TCP and text 
> based HTTP do not work for the problem domain.  For example, how does 
> HTTP over TCP stack up against binary UDP protocols with regard to 
> latency, bandwidth, and power consumption of battery powered sensors?

HTTP/TCP is actually quite lean in terms of latency and bandwidth 
compared to a protocol with similar functionality run on top of UDP - at 
least if we remove most of the HTTP headers that modern HTTP clients and 
servers send.

It is easy to view TCP as a complex beast and that something else would 
be more lightweight. But upon closer inspection, TCP isn't such a 
resource hog as it initially seems.

That said, the HTTP and/or TCP interaction models may not be right for 
all applications in 6lowapp, but we should be wary of reinventing TCP 
over UDP for those cases where TCP-like functionality is needed.

/adam
-- 
Adam Dunkels <adam@sics.se>se>, +46707731614
http://twitter.com/adunk | http://www.sics.se/~adam/