Re: obsrvtaion on packet numbers

Dmitri Tikhonov <dtikhonov@litespeedtech.com> Wed, 13 September 2017 20:58 UTC

Return-Path: <dtikhonov@litespeedtech.com>
X-Original-To: quic@ietfa.amsl.com
Delivered-To: quic@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 5AF37132F2F for <quic@ietfa.amsl.com>; Wed, 13 Sep 2017 13:58:33 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.6
X-Spam-Level:
X-Spam-Status: No, score=-2.6 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=litespeedtech-com.20150623.gappssmtp.com
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 fjWqwsPv0LRg for <quic@ietfa.amsl.com>; Wed, 13 Sep 2017 13:58:31 -0700 (PDT)
Received: from mail-qk0-x229.google.com (mail-qk0-x229.google.com [IPv6:2607:f8b0:400d:c09::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 92DF0132697 for <quic@ietf.org>; Wed, 13 Sep 2017 13:58:31 -0700 (PDT)
Received: by mail-qk0-x229.google.com with SMTP id b82so3457323qkc.4 for <quic@ietf.org>; Wed, 13 Sep 2017 13:58:31 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=litespeedtech-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=GY4x/awRpq3PqVqwmxE67v+cCU17Xx1sU/K0xE24Xo8=; b=w82GpV72qw9BcysvmTRD82D0dUfcKGpsguyBpOAuh16n7Eohbg4OCsWwy1K6PMqyFr Yq789VRy6bgvwdHR7dmc8gThYhPr8NtzvfGafU7ragZ6qaB/QcnvHQLB09I34fb+nvxS sQe53ULO3LY2CJpNFMnVpY437HnSxOc9SeSpkF85+3OOHKcBjoSxnqrbwRMWE4MmIf44 dmKkZgIcVWkPQQzlEA1JwOWmX/ZZSy/z2ewFRk90Hej0PyUgsLu+8AzsTMg3PBK5Oftu hgRlvMC4B49u9tCutiFJfFht4+kkSfag+55LNMpSf3z0i6hkaPahUJ7yxucuk7x/9MFK 7/kg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=GY4x/awRpq3PqVqwmxE67v+cCU17Xx1sU/K0xE24Xo8=; b=Qb/XG1Q4znqmCO/khpo4rNlNE1O4RXAOXQlkGtpn82PcSpjEAE+11nVvrJxZ8Zs5Wv R4zoAMx1EqRhxGCSYX/Dk+qvtG5tJsgGvGy3XYgrpN61SWMDl5csF/POy+myF15/UGPO 3R4aabzGmBQjxCBxSJ8GnPjTlHYEpMpBSIKViSN6QJX1CTw8Jm3M/Sb91bdTGqJTp3yJ MzftwWnWwkxRtAhr9Uj9n6VqBhrGAe5s/ZMhrgTU4ylgIKoJjWNcoM1AsxFSgMl4/wKf 2odOqGNO5MjRquEyTmv0yyQNySZksS1lTYq+CtmFFQOb23GTw0Z5g5fN9LfxbhUk9ojQ sVtA==
X-Gm-Message-State: AHPjjUhOSBcCkwY5yzlywUzN+bFu4hzFmQfzLQ872CmuYoDsIVClpHOg 6hv91HibCPn1ElUy
X-Google-Smtp-Source: AOwi7QB5MgDCzWsM27Lbbdo6+4ET9gJqOw9289t1xEIYhfEC2igCBfXIFx4sVe6z6qoO3HN4JBNpVA==
X-Received: by 10.55.71.79 with SMTP id u76mr26049446qka.289.1505336310435; Wed, 13 Sep 2017 13:58:30 -0700 (PDT)
Received: from ubuntu-dmitri (ool-2f1636b6.static.optonline.net. [47.22.54.182]) by smtp.gmail.com with ESMTPSA id g132sm9735220qke.11.2017.09.13.13.58.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 Sep 2017 13:58:29 -0700 (PDT)
Date: Wed, 13 Sep 2017 16:58:17 -0400
From: Dmitri Tikhonov <dtikhonov@litespeedtech.com>
To: Mirja Kühlewind <mirja.kuehlewind@tik.ee.ethz.ch>
Cc: Martin Thomson <martin.thomson@gmail.com>, Roni Even <roni.even@huawei.com>, QUIC WG <quic@ietf.org>
Subject: Re: obsrvtaion on packet numbers
Message-ID: <20170913205816.GA18476@ubuntu-dmitri>
References: <6E58094ECC8D8344914996DAD28F1CCD801698@DGGEMM506-MBX.china.huawei.com> <CABkgnnUnwcqNnozUZERG5hnbbEOkB4Apsx6qrNMzvYNh5-aC+w@mail.gmail.com> <5ba17907-1be7-da2d-1e2f-ae62254f2b40@tik.ee.ethz.ch> <20170913135614.GB3857@ubuntu-dmitri>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <20170913135614.GB3857@ubuntu-dmitri>
User-Agent: Mutt/1.5.24 (2015-08-30)
Archived-At: <https://mailarchive.ietf.org/arch/msg/quic/FRlmclwQ_ChaGainXGejL8Q62Fs>
X-BeenThere: quic@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: Main mailing list of the IETF QUIC working group <quic.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/quic>, <mailto:quic-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/quic/>
List-Post: <mailto:quic@ietf.org>
List-Help: <mailto:quic-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/quic>, <mailto:quic-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 13 Sep 2017 20:58:33 -0000

On Wed, Sep 13, 2017 at 09:56:14AM -0400, Dmitri Tikhonov wrote:
>     1. Why are there packet number and byte offset limits?  In
>        other words, why are there limits on the duration of a
>        connection?
> 
>     2. How are particular limits chosen?

In 2012, Jim Roskind wrote in "QUIC: Design Document and Specification
Rationale" [1]:

  " Header: Packet Sequence Number
  " 
  " In addition to sequencing packets, watching for duplicates,
  " and communicating what packets are missing, this number is
  " a critical part of the encryption.  This number forms the
  " basis of the IV used to decrypt each packet.  As a result,
  " it must conceptually be large, as it must never repeat during
  " the lifetime of the connection.  That need forced this sequence
  " number to be conceptually large, around 2^64 (more packets than
  " any connection would dream of sending), but we usually don’t
  " need to provide all 8 bytes in each packet!

And

  " even though we expect to support very large file transfers, it
  " will be rare that a stream will convey data that uses many of
  " the current 64 bits of maximum offset!

It seems that the author of QUIC took the [pragmatic] position that
these limits will never be reached.  On the other hand, his goals
at the time were also more modest:

  " The two primary support motivations for this transport are to
  " better support SPDY, and to further coalesce traffic. SPDY
  " currently runs over TCP, but has encountered a few performance
  " limitations.
                  (Ibid.)

This document seems to be the origin of the current limits in the
IETF QUIC Draft.  Now that QUIC is not just a transport for SPDY
but a generic transport protocol, perhaps it is time for a
reassessment.

  - Dmitri.

1. https://docs.google.com/document/d/1RNHkx_VvKWyWg6Lr8SZ-saqsQx7rFV-ev2jRFUoVD34/preview