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

"weigengyu" <weigengyu@bupt.edu.cn> Wed, 04 May 2016 03:19 UTC

Return-Path: <weigengyu@bupt.edu.cn>
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 5BADD12D7A6 for <core@ietfa.amsl.com>; Tue, 3 May 2016 20:19:02 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.458
X-Spam-Level:
X-Spam-Status: No, score=-2.458 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RP_MATCHES_RCVD=-0.996, SPF_PASS=-0.001, STOX_REPLY_TYPE=0.439] 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 J6drE9J9LcEz for <core@ietfa.amsl.com>; Tue, 3 May 2016 20:18:59 -0700 (PDT)
Received: from mx1.bupt.edu.cn (mx1.bupt.edu.cn [211.68.68.2]) by ietfa.amsl.com (Postfix) with ESMTP id 2C38A12D678 for <core@ietf.org>; Tue, 3 May 2016 20:18:59 -0700 (PDT)
Received: from mx1.bupt.edu.cn (unknown [127.0.0.1]) by mx1.bupt.edu.cn (AnyMacro(G7)) with SMTP id 2353319F409 for <core@ietf.org>; Wed, 4 May 2016 11:18:57 +0800 (HKT)
Received: from WeiGengyuPC (unknown [114.255.40.27]) by mx1.bupt.edu.cn (AnyMacro(G7)) with ESMTPA id F405919F426; Wed, 4 May 2016 11:18:55 +0800 (HKT)
Message-ID: <B3ED15D3873E403990D707DBF79FF1DC@WeiGengyuPC>
From: weigengyu <weigengyu@bupt.edu.cn>
To: trac+core@zinfandel.tools.ietf.org, draft-ietf-core-block@tools.ietf.org, Hannes.Tschofenig@gmx.net
References: <065.865b9837ab99aed6c309ae6125f98820@trac.tools.ietf.org>
In-Reply-To: <065.865b9837ab99aed6c309ae6125f98820@trac.tools.ietf.org>
Date: Wed, 04 May 2016 11:18:54 +0800
Organization: BUPT
MIME-Version: 1.0
Content-Type: text/plain; format="flowed"; charset="UTF-8"; reply-type="original"
Content-Transfer-Encoding: 8bit
X-Priority: 3
X-MSMail-Priority: Normal
Importance: Normal
X-Mailer: Microsoft Windows Live Mail 16.4.3528.331
X-MimeOLE: Produced By Microsoft MimeOLE V16.4.3528.331
Archived-At: <http://mailarchive.ietf.org/arch/msg/core/HBhMXLDCy6OFN9q_9U_MlRydvlY>
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: Wed, 04 May 2016 03:19:02 -0000

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.)

-- 
-------------------------------------+-------------------------------------
Reporter:                           |      Owner:  draft-ietf-core-
  Hannes.Tschofenig@gmx.net          |  block@tools.ietf.org
     Type:  protocol defect          |     Status:  new
Priority:  major                    |  Milestone:
Component:  block                    |    Version:
Severity:  -                        |   Keywords:
-------------------------------------+-------------------------------------

Ticket URL: <https://trac.tools.ietf.org/wg/core/trac/ticket/409>
core <https://tools.ietf.org/core/>

_______________________________________________
core mailing list
core@ietf.org
https://www.ietf.org/mailman/listinfo/core