Re: Proposal to replace ACK block count with ACK length

Jana Iyengar <jri.ietf@gmail.com> Mon, 11 June 2018 22:11 UTC

Return-Path: <jri.ietf@gmail.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 8BE69130ED8 for <quic@ietfa.amsl.com>; Mon, 11 Jun 2018 15:11:39 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.699
X-Spam-Level:
X-Spam-Status: No, score=-2.699 tagged_above=-999 required=5 tests=[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] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 xM0L0FTMukVB for <quic@ietfa.amsl.com>; Mon, 11 Jun 2018 15:11:37 -0700 (PDT)
Received: from mail-io0-x22c.google.com (mail-io0-x22c.google.com [IPv6:2607:f8b0:4001:c06::22c]) (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 7E154130EB4 for <quic@ietf.org>; Mon, 11 Jun 2018 15:11:37 -0700 (PDT)
Received: by mail-io0-x22c.google.com with SMTP id g7-v6so25718457ioh.11 for <quic@ietf.org>; Mon, 11 Jun 2018 15:11:37 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=2aSmJc9vtbjz5+9AjzZJx58CPsDuyf0iNk0MXQKp5GQ=; b=UpPJW8okq1A96thDINkH5Q1BmHEvtPKn5KYOAFegbQYyqTQK9t3r17LHl0iaAHkq/Q FHnUaQfp05ztK5P320iHtMyZYxqkEA4ClF7zQSKs+jPvnmqMjrOJpIK3YVMYmmUMaIdD 4Do3R4HcaMZKbmxyZPGBolqcyQ1JGP2fLpBcd2ao+T47TBFaS/5G6Bxm3NxphKYp8UNm KpPesOnl7ZN1RovXwwBzCMrTlTvg06BEvlFT9+Bnso/Aoi8EFGGl0VO60CpUlljFvPu6 6ULs/tZ2l5VJAA3RXQqtJOmRqXFyW/zfTPP9JdjIRFXoQ0SMnl4Yc0IVftELZXnt7EqM wucQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=2aSmJc9vtbjz5+9AjzZJx58CPsDuyf0iNk0MXQKp5GQ=; b=s3gAj7T+fvLEKgmoukIxObT5PbTZKGuDY0OEfNEA10i1xG1BtB4D9aDTi/pzznASyZ d3faMHOJdI75kl9WLv0DCC9szn/GBlB4745iJyS9KFSJJWf38OJvBDs5nsZb2pv3yP/N xJMiL7Fueg/VhHt014/mlU4oxvO9TLZOl90FvSBPgK/f7jGwPQ1hOXddqrHGvzFtC38F dXoQUqiJWEzZ5SwPaa5TiuIFF4JWDWryaUyKcEpcIsvVCZOi4Ddai/2P8ujUd5pKoUnw cTm0w2W3FDvmLzp9JHVR1WLN9PPF52m05n2RK2DU3xnYfxxGwG9MsxFOV0+yDVHhTRb4 VJLQ==
X-Gm-Message-State: APt69E11jKQxno+/uHaTFQComvV92fK5QZ74uxqAqjF17JYA6yBwH3A5 VSbsCJQD0NyTtjdE4tfSY3ICOjAcbld8zyYjMMY=
X-Google-Smtp-Source: ADUXVKJfYlpMS9Pt1m4+WkvJaqoKIJ/iFQ/p9LBCUj4dkiABi/4O5AU417lnIjW0Ep1v02sCjtuCtW4oG7SVkTFPv5M=
X-Received: by 2002:a6b:d106:: with SMTP id l6-v6mr948034iob.8.1528755096837; Mon, 11 Jun 2018 15:11:36 -0700 (PDT)
MIME-Version: 1.0
References: <1F436ED13A22A246A59CA374CBC543998B832414@ORSMSX111.amr.corp.intel.com> <20180611154244.GA27622@ubuntu-dmitri>
In-Reply-To: <20180611154244.GA27622@ubuntu-dmitri>
From: Jana Iyengar <jri.ietf@gmail.com>
Date: Mon, 11 Jun 2018 15:11:25 -0700
Message-ID: <CACpbDcdxzRxeiN93kKoj__vo2TERm4QZKqaesL=jr4wQUN1gXA@mail.gmail.com>
Subject: Re: Proposal to replace ACK block count with ACK length
To: "Deval, Manasi" <manasi.deval@intel.com>, QUIC WG <quic@ietf.org>
Content-Type: multipart/alternative; boundary="0000000000007ee4bc056e6508e4"
Archived-At: <https://mailarchive.ietf.org/arch/msg/quic/JYQ0l-ngN323Qas_6vMstrPBt5o>
X-BeenThere: quic@ietf.org
X-Mailman-Version: 2.1.26
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: Mon, 11 Jun 2018 22:11:40 -0000

You're right that we no longer have the ability to skip an ACK frame, and
this crept in when we moved to varints.

I believe your problem though is generally true of most frames not just
ACKs, since ids, packet numbers, and numbers in all frames are now all
varints. To skip any frame, you'll need to parse the varint fields in those
frames. If you have logic to process and skip varints, then skipping the
ack block section is merely repeating this operation (2*num_block+1) times.
Do you see specific value in skipping ACK frames over the other control
frames?


On Mon, Jun 11, 2018 at 8:43 AM Dmitri Tikhonov <dtikhonov@litespeedtech.com>
wrote:

> On Mon, Jun 11, 2018 at 03:33:35PM +0000, Deval, Manasi wrote:
> > -        Moving the ACK length to the front of the ACK allows the
> >          flexibility of either reading the entire ACK or reading the
> >          first 16 bits and skipping over the length. This is a useful
> >          feature for the case where ACK processing is split into
> >          multiple layers. Depending on the processor this is run on,
> >          there are different advantages -
>
> Just a note.  In my experience, the cost of parsing an ACK frame is
> negligible compared to the cost of processing an ACK frame: that is,
> poking at various memory locations to discard newly ACKed packets.
>
>   - Dmitri.
>
>