Re: [core] #409 (block): CoAP over TCP: Multiple Simultaneous TCP Connections

Hannes Tschofenig <hannes.tschofenig@gmx.net> Thu, 05 May 2016 08:52 UTC

Return-Path: <hannes.tschofenig@gmx.net>
X-Original-To: core@ietfa.amsl.com
Delivered-To: core@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 9CE7612B043 for <core@ietfa.amsl.com>; Thu, 5 May 2016 01:52:03 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.597
X-Spam-Level:
X-Spam-Status: No, score=-3.597 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, RP_MATCHES_RCVD=-0.996, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fm7KTUY0k98S for <core@ietfa.amsl.com>; Thu, 5 May 2016 01:52:01 -0700 (PDT)
Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 33C8012B038 for <core@ietf.org>; Thu, 5 May 2016 01:52:01 -0700 (PDT)
Received: from [192.168.10.140] ([213.210.38.194]) by mail.gmx.com (mrgmx002) with ESMTPSA (Nemesis) id 0Lz3rc-1bktZz15zU-014F4Z; Thu, 05 May 2016 10:51:47 +0200
To: weigengyu <weigengyu@bupt.edu.cn>, trac+core@zinfandel.tools.ietf.org, draft-ietf-core-block@tools.ietf.org
References: <065.865b9837ab99aed6c309ae6125f98820@trac.tools.ietf.org> <B3ED15D3873E403990D707DBF79FF1DC@WeiGengyuPC>
From: Hannes Tschofenig <hannes.tschofenig@gmx.net>
Openpgp: id=071A97A9ECBADCA8E31E678554D9CEEF4D776BC9
Message-ID: <572B099D.2080606@gmx.net>
Date: Thu, 05 May 2016 10:51:41 +0200
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2
MIME-Version: 1.0
In-Reply-To: <B3ED15D3873E403990D707DBF79FF1DC@WeiGengyuPC>
Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="LBtXP9exEtRhWvEaio4qGFvBGSoLxRvdX"
X-Provags-ID: V03:K0:bUahsiYLO5wAkbetY6WLEVuwIF5qvR5e0vt9Ixn18/xDfyKMH62 YAcrqmoSmK5OQLFGcqnZGsDsgAQ8rX7XTpwJ/rsfPYl7HYIkktkItApP8Y1nktXR1zSOqV2 HBchUSghHbN2+hx/JB4BDP+kBZ2+Fo3yA9i7v5+/R/kdQ00NLarFwuxDdEz7PlnU96acEyA B7XeGP0sRXRB615j42qfg==
X-UI-Out-Filterresults: notjunk:1;V01:K0:MLFjyj9xFBQ=:XGygBIPpLTDcZJt8gIrX7U MaRTXYHdBA3ywP/EUnlG0wmckscNZNdSMKCJ/Lq2vkhZHyfWjXQJURZXmJM+VZNvWE4ADPB4c lz5vTJZ8cGqPbH50DS/b/d0OVvM6DCgdnbtg9cos/FB/5ScRNzmDfrTW7yFXLcWVOEAaxAdu/ /9Qj0md3h9gm8P8h+8qyrvR/LN87ArwFb1DXk7om5bvWdIEsoVc9nCTfbsUW+GkU5hs7FYWDK 6CEmcqt6iZHzrzDA634GqTWF6i1XzGuCtJIMRmBmXVc9vJLOGebIBxVDNf9IEZmzAc3TIBsUP oqLNAWgrs2T7KqxunXGctBGzhx4VOD8Kc49Tlwt5DHhFx6pL97gcKYcfCk8O7NgJxbGSRxDzu fvWb5Fp+58sdicU0S7ynvwlo6EP1Hgec5r3aCizYWM2LxnHL+l4JK6YCeG4iDCjfwwdmue+PD u8qfdGyYXVqz2UkxC8TZgZyWGmd3fJSqfrntCDtb1RhJRu76aVfAEg2z8hB+cbCkeL74TfFjY rgoyoLYJ+PNmq2AbERyD02dBhk0SDnTl2oQcFzYnPpDUgalUVeR/ZDLEehj0oMV9wsQv//iZZ 1jYG5vJ130icGkn3OGqBpGTwaxPMGKwz+fCPkCwOR8TWtfmsrukCgQyafB2W0rqwaVm7yj5Rn 9mHk5ywFFM1SlQRJw3+pjZ3GyjL70K7qXwfSXILglYtwHh77Q3MmoWl9YPt/AN6czj9BEpigl b06jXYf2x7Wl6zJXZa+Ch9bSU+6UWrFI8UwHUgxMocmMJ54JlI3fkhD/hwE=
Archived-At: <http://mailarchive.ietf.org/arch/msg/core/8hhs2P20JeVb7RPGs_pbQHWj3FU>
Cc: core@ietf.org
Subject: Re: [core] #409 (block): CoAP over TCP: Multiple Simultaneous TCP Connections
X-BeenThere: core@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: "Constrained RESTful Environments \(CoRE\) Working Group list" <core.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/core>, <mailto:core-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/core/>
List-Post: <mailto:core@ietf.org>
List-Help: <mailto:core-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/core>, <mailto:core-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 05 May 2016 08:52:03 -0000

Hi Gengyu,

thanks for your input.

In the issue I added to the tracker I raised two issues, namely

1) "What should the CoAP over TCP state regarding the use of multiple
TCP connections?"

It seems you are arguing that nothing should be said about that topic.

2) "Should we recommend the use of Block-wise Transfer for large file
transfers and incorporate BERT into the CoAP over TCP draft?"

You didn't directly answer that question and I am curious what your
thoughts are.

Ciao
Hannes

On 05/04/2016 05:18 AM, weigengyu wrote:
> Hi,
> 
> The problem seems to be whether CoAP over Multiple Simultaneous TCP
> Connections needs considering in CoAP related drafts.
> 
> My suggestion is no.
> 
> There are many P2P communications adopts P2P/HTTP over Multiple
> Simultaneous TCP Connections.
> It is the P2P software to manage the multiple TCP connections, not HTTP.
> 
> Regards,
> 
> Gengyu WEI
> Network Technology Center
> School of Computer
> Beijing University of Posts and Telecommunications
> -----原始邮件----- From: core issue tracker
> Sent: Tuesday, May 03, 2016 4:39 PM
> To: draft-ietf-core-block@tools.ietf.org ; Hannes.Tschofenig@gmx.net
> Cc: core@ietf.org
> Subject: [core] #409 (block): CoAP over TCP: Multiple Simultaneous TCP
> Connections
> 
> #409: CoAP over TCP: Multiple Simultaneous TCP Connections
> 
> CoAP has been designed to support small data transmissions. For device
> management it is, however, necessary to also deal with the transmission of
> larger payloads as well. Such larger payloads may be, for example,
> firmware/software updates.
> 
> The maximum payload size of CoAP is determined by the length field of the
> length field provided in the UDP header. It is ~64KB. For practical
> purposes the usable payload size is, however, much smaller due to
> performance issues introduced by fragmentation provided at the IP layer
> and/or adaption layers. For this reason the block-wise transfer mechanism
> has been defined.
> 
> Block-wise transfer is a mechanism that can be used to transfer larger
> payloads by chunking them into smaller parts (each part with a maximum
> size of 1024 bytes each). The block-wise transfer depends on CoAP and
> therefore uses the stop-and-wait defined in RFC 7252 (as a simple
> congestion control mechanism). The transfer of large payloads does,
> however, not block the transmission of other pending messages since they
> can easily be interleaved due to the nature of the block-wise transfer
> design.
> 
> When large payloads are transferred by CoAP over TCP then a large transfer
> blocks any other requests unless multiple TCP connections are opened. The
> question is therefore what should the CoAP over TCP state regarding the
> use of multiple TCP connections? Using multiple TCP connection increases
> RAM requirements; a single TCP connection introduces head-of-line
> blocking.
> 
> When CoAP over TCP is used with Block-wise transport in combination with
> BERT, see https://tools.ietf.org/html/draft-bormann-core-block-bert-00,
> then the previously described problem of large transfers that block other
> ongoing activities is (partially) mitigated. BERT changes the
> interpretation of the length information and changes it as a multiple of
> 1024 bytes (and thus increasing the size of the chunks).
> 
> The question is therefore whether CoAP over TCP should recommend the use
> of Block-wise Transfer for large file transfers and incorporate BERT into
> the CoAP over TCP draft.
> 
> (I would like to thank Achim Kraus for raising this issue during the OMA
> face-to-face meeting.)
>