Re: How to parse cid if cid length change

Lars Eggert <lars@eggert.org> Thu, 16 January 2020 13:41 UTC

Return-Path: <lars@eggert.org>
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 7243B12008A for <quic@ietfa.amsl.com>; Thu, 16 Jan 2020 05:41:55 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.898
X-Spam-Level:
X-Spam-Status: No, score=-1.898 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=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 Ze4GbF69i3ga for <quic@ietfa.amsl.com>; Thu, 16 Jan 2020 05:41:49 -0800 (PST)
Received: from vs23.mail.saunalahti.fi (vs23.mail.saunalahti.fi [193.64.193.199]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 4923512007C for <quic@ietf.org>; Thu, 16 Jan 2020 05:41:49 -0800 (PST)
Received: from vs23.mail.saunalahti.fi (localhost [127.0.0.1]) by vs23.mail.saunalahti.fi (Postfix) with ESMTP id D61FF20F67; Thu, 16 Jan 2020 15:41:47 +0200 (EET)
Received: from gw03.mail.saunalahti.fi (gw03.mail.saunalahti.fi [195.197.172.111]) by vs23.mail.saunalahti.fi (Postfix) with ESMTP id CB43820EC1; Thu, 16 Jan 2020 15:41:47 +0200 (EET)
Received: from eggert.org (unknown [62.248.255.8]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: eggert@elisanet.fi) by gw03.mail.saunalahti.fi (Postfix) with ESMTPSA id 9A2F120040; Thu, 16 Jan 2020 15:41:45 +0200 (EET)
Received: from stickers.eggert.org (Stickers.eggert.org [172.24.110.26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by eggert.org (Postfix) with ESMTPSA id 25D24601043; Thu, 16 Jan 2020 15:41:39 +0200 (EET)
From: Lars Eggert <lars@eggert.org>
Message-Id: <40A4DD99-2AFD-4B00-A636-C9F8473CAE5E@eggert.org>
Content-Type: multipart/signed; boundary="Apple-Mail=_BA40C488-2F5A-4CFE-9041-B0351E20960B"; protocol="application/pgp-signature"; micalg="pgp-sha512"
Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.40.2.2.4\))
Subject: Re: How to parse cid if cid length change
Date: Thu, 16 Jan 2020 15:41:39 +0200
In-Reply-To: <CAG9+TpZ_x7kRDAYxnBvNmxaM2jFVhrzoQ2qNfoiXCiSWQYSw3Q@mail.gmail.com>
Cc: quic@ietf.org
To: Jiuhai Zhang <jiuhai.zhang@gmail.com>
References: <CAG9+TpZ_x7kRDAYxnBvNmxaM2jFVhrzoQ2qNfoiXCiSWQYSw3Q@mail.gmail.com>
X-MailScanner-ID: 25D24601043.AFB63
X-MailScanner: Found to be clean
X-MailScanner-From: lars@eggert.org
Archived-At: <https://mailarchive.ietf.org/arch/msg/quic/E5I4ZFavgvtmRq4LDZZ_7lcrvoQ>
X-BeenThere: quic@ietf.org
X-Mailman-Version: 2.1.29
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: Thu, 16 Jan 2020 13:41:56 -0000

Hi,

On 2020-1-16, at 15:37, Jiuhai Zhang <jiuhai.zhang@gmail.com> wrote:
>     We cannot get cid length in short header packet, how can we parse cid from short header packet? Long header packet has cid length, but we can't find the connection before cid parsed.

your endpoint chooses the destination CID the peer includes in packets it sends to you. You need to remember what length you chose.

Lars