Re: [quicwg/base-drafts] QPACK: Encode Largest Reference modulo MaxEntries (#1763)
Dmitri Tikhonov <notifications@github.com> Fri, 28 September 2018 15:49 UTC
Return-Path: <bounces+848413-a050-quic-issues=ietf.org@sgmail.github.com>
X-Original-To: quic-issues@ietfa.amsl.com
Delivered-To: quic-issues@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id C59E6130E51 for <quic-issues@ietfa.amsl.com>; Fri, 28 Sep 2018 08:49:06 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.456
X-Spam-Level:
X-Spam-Status: No, score=-3.456 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.456, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=github.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 4J6YwkBKIpje for <quic-issues@ietfa.amsl.com>; Fri, 28 Sep 2018 08:49:05 -0700 (PDT)
Received: from o3.sgmail.github.com (o3.sgmail.github.com [192.254.112.98]) (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 ED6F5130E4E for <quic-issues@ietf.org>; Fri, 28 Sep 2018 08:49:04 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=github.com; h=from:reply-to:to:cc:in-reply-to:references:subject:mime-version:content-type:content-transfer-encoding:list-id:list-archive:list-post:list-unsubscribe; s=s20150108; bh=zXlJNlC6RHtW2W3kMG3fVcvl7hk=; b=ux4jlOufIRMPue62 7Nix87kCl6w7CUgpyJKswx/C31oo6Xfdy0Kx1lQANkG+zOs1PbifsqDJ6BjD4waM 6DUVGbMObhtHPx21MJ6HIUIhD5XhL69Nq5qNhWuQdZqWR/EoKvqSOizCRNNBApo+ 5CvHD/aTJNCoKnbda/xup+TpmGg=
Received: by filter0084p1iad2.sendgrid.net with SMTP id filter0084p1iad2-21238-5BAE4D6E-3B 2018-09-28 15:49:02.81122039 +0000 UTC m=+1877307.767715135
Received: from github-lowworker-5909e27.cp1-iad.github.net (unknown [192.30.252.35]) by ismtpd0001p1iad2.sendgrid.net (SG) with ESMTP id aKYZqY_2TDqnYHOoyC-O3A for <quic-issues@ietf.org>; Fri, 28 Sep 2018 15:49:02.889 +0000 (UTC)
Received: from github.com (localhost [127.0.0.1]) by github-lowworker-5909e27.cp1-iad.github.net (Postfix) with ESMTP id AF0073E00AD for <quic-issues@ietf.org>; Fri, 28 Sep 2018 08:49:02 -0700 (PDT)
Date: Fri, 28 Sep 2018 15:49:03 +0000
From: Dmitri Tikhonov <notifications@github.com>
Reply-To: quicwg/base-drafts <reply+0166e4ab8e66f23306d9e3ac4040e10f5f4fa7b2ea19c8b092cf0000000117c60f6e92a169ce1586350b@reply.github.com>
To: quicwg/base-drafts <base-drafts@noreply.github.com>
Cc: Subscribed <subscribed@noreply.github.com>
Message-ID: <quicwg/base-drafts/pull/1763/review/159919118@github.com>
In-Reply-To: <quicwg/base-drafts/pull/1763@github.com>
References: <quicwg/base-drafts/pull/1763@github.com>
Subject: Re: [quicwg/base-drafts] QPACK: Encode Largest Reference modulo MaxEntries (#1763)
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary="--==_mimepart_5bae4d6ea38e7_133c3fcf970d45c01986d2"; charset="UTF-8"
Content-Transfer-Encoding: 7bit
Precedence: list
X-GitHub-Sender: dtikhonov
X-GitHub-Recipient: quic-issues
X-GitHub-Reason: subscribed
X-Auto-Response-Suppress: All
X-GitHub-Recipient-Address: quic-issues@ietf.org
X-SG-EID: l64QuQ2uJCcEyUykJbxN122A6QRmEpucztpreh3Pak1ZGgwx+4LhDyYeV28YjuOjxnDqAOJVNPo2uw +Cp8WHkFUEB+SOth/3TMUusMmDG4UWBoibUfdHFLw+QY+3TsgP/x736fohJ6w0b3SSkznVRxW4r81O vMcGf8jMg8CTZ2kEmEZvvSr2ilPVceJKZOk7S6wBAKMYMmbHxeDSPbyfOLlM0Zlpjjfvh/59dUbpE3 8=
Archived-At: <https://mailarchive.ietf.org/arch/msg/quic-issues/wZ9j6zdg5WYUk3a69jDWwU46LGg>
X-BeenThere: quic-issues@ietf.org
X-Mailman-Version: 2.1.29
List-Id: Notification list for GitHub issues related to the QUIC WG <quic-issues.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/quic-issues>, <mailto:quic-issues-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/quic-issues/>
List-Post: <mailto:quic-issues@ietf.org>
List-Help: <mailto:quic-issues-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/quic-issues>, <mailto:quic-issues-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 28 Sep 2018 15:49:07 -0000
dtikhonov commented on this pull request. > -safe to process the rest of the block. +safe to process the rest of the block. If Largest Reference is greater than +zero, the encoder transforms it as follows before encoding: + +~~~ + LargestReference = LargestReference mod 2*MaxEntries + 1 +~~~ + +The decoder reconstructs the Largest Reference using the following algorithm: + +~~~ + if LargestReference > 0: + LargestReference -= 1 + CurrentWrapped = TableLargestAbsoluteIndex mod 2*MaxEntries + + if CurrentWrapped >= LargestReference + MaxEntries: OK. As long as it works. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/quicwg/base-drafts/pull/1763#discussion_r221299167
- [quicwg/base-drafts] QPACK: Encode Largest Refere… afrind
- Re: [quicwg/base-drafts] QPACK: Encode Largest Re… MikkelFJ
- Re: [quicwg/base-drafts] QPACK: Encode Largest Re… Kazuho Oku
- Re: [quicwg/base-drafts] QPACK: Encode Largest Re… Kazuho Oku
- Re: [quicwg/base-drafts] QPACK: Encode Largest Re… afrind
- Re: [quicwg/base-drafts] QPACK: Encode Largest Re… Kazuho Oku
- Re: [quicwg/base-drafts] QPACK: Encode Largest Re… MikkelFJ
- Re: [quicwg/base-drafts] QPACK: Encode Largest Re… MikkelFJ
- Re: [quicwg/base-drafts] QPACK: Encode Largest Re… Dmitri Tikhonov
- Re: [quicwg/base-drafts] QPACK: Encode Largest Re… MikkelFJ
- Re: [quicwg/base-drafts] QPACK: Encode Largest Re… afrind
- Re: [quicwg/base-drafts] QPACK: Encode Largest Re… Kazuho Oku
- Re: [quicwg/base-drafts] QPACK: Encode Largest Re… Dmitri Tikhonov
- Re: [quicwg/base-drafts] QPACK: Encode Largest Re… Mike Bishop
- Re: [quicwg/base-drafts] QPACK: Encode Largest Re… afrind
- Re: [quicwg/base-drafts] QPACK: Encode Largest Re… afrind
- Re: [quicwg/base-drafts] QPACK: Encode Largest Re… Dmitri Tikhonov
- Re: [quicwg/base-drafts] QPACK: Encode Largest Re… Dmitri Tikhonov
- Re: [quicwg/base-drafts] QPACK: Encode Largest Re… Dmitri Tikhonov
- Re: [quicwg/base-drafts] QPACK: Encode Largest Re… afrind
- Re: [quicwg/base-drafts] QPACK: Encode Largest Re… Dmitri Tikhonov
- Re: [quicwg/base-drafts] QPACK: Encode Largest Re… Dmitri Tikhonov
- Re: [quicwg/base-drafts] QPACK: Encode Largest Re… Mike Bishop
- Re: [quicwg/base-drafts] QPACK: Encode Largest Re… afrind
- Re: [quicwg/base-drafts] QPACK: Encode Largest Re… afrind
- Re: [quicwg/base-drafts] QPACK: Encode Largest Re… afrind
- Re: [quicwg/base-drafts] QPACK: Encode Largest Re… Bence Béky
- Re: [quicwg/base-drafts] QPACK: Encode Largest Re… Dmitri Tikhonov
- Re: [quicwg/base-drafts] QPACK: Encode Largest Re… Bence Béky
- Re: [quicwg/base-drafts] QPACK: Encode Largest Re… Bence Béky