Re: Small size of core QUIC library to replace TCP for embedded system

Jupiter <jupiter.hce@gmail.com> Tue, 21 July 2020 08:18 UTC

Return-Path: <jupiter.hce@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 089993A14E9 for <quic@ietfa.amsl.com>; Tue, 21 Jul 2020 01:18:17 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.098
X-Spam-Level:
X-Spam-Status: No, score=-2.098 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, SPF_HELO_NONE=0.001, 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=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 xUmWO9t5ISjU for <quic@ietfa.amsl.com>; Tue, 21 Jul 2020 01:18:15 -0700 (PDT)
Received: from mail-ej1-x644.google.com (mail-ej1-x644.google.com [IPv6:2a00:1450:4864:20::644]) (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 86A8E3A14E1 for <quic@ietf.org>; Tue, 21 Jul 2020 01:18:15 -0700 (PDT)
Received: by mail-ej1-x644.google.com with SMTP id lx13so20796258ejb.4 for <quic@ietf.org>; Tue, 21 Jul 2020 01:18:15 -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 :cc; bh=HsRwnpNfNEYiGrlCuRRFhezTxtlm1AYP1dR5JxN0wHM=; b=YAOH9CHW4WmBdeWHhmEQq2qYcC/xF3JyJL5IBJdijgpT7p3Q9xrFYDE/9C/a+PzvBt 26PXm44R6c2RTOcD3x6mWOoQEtWGNEZBuMTm6reKXF42qpTcibG+wgwaL57jYmUn/tbJ VrZF0qdkaed7aHbnTx8eqizRh39D+7EDaaApPF2Ynew4gKTFwkZd/NDqhSJuxtWhOY/4 PDEzMjqsiqILyL6aMnkocWTJXDxxGc77SUqYAgii5YUI/UFMxOZlusTVs4rpinf9o1j7 rWRwfN296PMnA+lbrKZomxv9TyJYt/umozKXXAGfQC5k7SmMClEko87ad4qGefjkq3uA Vm7g==
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:cc; bh=HsRwnpNfNEYiGrlCuRRFhezTxtlm1AYP1dR5JxN0wHM=; b=Auf6Ghu/Q0hudUKZehvCYb6zMjus31fHyKL0n56wFMxePUtki3Jmh3SyVjPbzfm7GJ W1hW9CZ/6epJ7hzpioLJW9Au0sQxAxU/9v7rrBashpA6g1FnYFHYrigDqtNVr4gpAW88 96BKE0BQ1A5smh9Y82t/XxD58A6FMeyurBTWIPxzxuJ1I5GIRk13b351BX4JgOE8Un8y Pj7ivF54j/m8jNfwl5+zc07ZAMCP965cgCrJkffBf6Lenf4WwN1Z7ybU3j0s6MwqneTR 6tyibmK7FkxO5+cx8CORCN2pTso9xIRyn3/MFKRg9G313Z6y7CAINMraAX1ADTNd9bvQ bl+w==
X-Gm-Message-State: AOAM530TIUUDLaFoCIiEz92Jvvws2B13Wj3e77LwCQhTbhmX5zG7/Wf4 9uQOZjVSJya+M7xQmK1YS9kJdAzTfIMEqbXtJNVMLBn9
X-Google-Smtp-Source: ABdhPJzOzBzwn6oO2IurVzgMgJgEP+0OEakzaJ9tiGZsIqDxkq80jky2UlX2snCZiU1tuGZkjoE1vktos/MtJJQdL3I=
X-Received: by 2002:a50:e60d:: with SMTP id y13mr24382550edm.225.1595319492902; Tue, 21 Jul 2020 01:18:12 -0700 (PDT)
MIME-Version: 1.0
References: <CAA=hcWS0V8ipsoAEFK3ejdA++Vzi+czth37=ntP4mnt8d=mtRg@mail.gmail.com> <1C514B96-9AAA-40B3-93EC-3DCDFAF72A93@eggert.org>
In-Reply-To: <1C514B96-9AAA-40B3-93EC-3DCDFAF72A93@eggert.org>
From: Jupiter <jupiter.hce@gmail.com>
Date: Tue, 21 Jul 2020 18:17:36 +1000
Message-ID: <CAA=hcWTP7mVo1yyr8wQrgNuA40Tr5=XcrqJiebtVa7Km=2sLzw@mail.gmail.com>
Subject: Re: Small size of core QUIC library to replace TCP for embedded system
To: Lars Eggert <lars@eggert.org>
Cc: quic <quic@ietf.org>
Content-Type: text/plain; charset="UTF-8"
Archived-At: <https://mailarchive.ietf.org/arch/msg/quic/HmtMzLKkQ72XpOnSCBLx6eHRkzs>
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: Tue, 21 Jul 2020 08:18:17 -0000

Thanks Lars and all responses, I am very grateful for all of your kind
comments and advice.

On 7/21/20, Lars Eggert <lars@eggert.org> wrote:
> you don't really say what type of device you are targeting, so it's a bit
> difficult to respond in detail.

Sorry for neglecting that part, I am running Linux on iMX6ULZ using
all sorts of open source libraries in C and C++.

> But I did port my quant QUIC stack (https://github.com/NTAP/quant) to
> Particle DeviceOS and RIOT, and ran some client-only measurements on a
> Particle Argon and an ESP32. There's a writeup in
> https://eggert.org/papers/2020-ndss-quic-iot.pdf, slides in
> https://github.com/t2trg/2020-ietf107/blob/master/slides/22-towards-securing-the-internet-of-things-with-quic.pdf.
> (There was also a recording of the T2TRG talk, but it doesn't seem to be
> uploaded to GitHub yet.)

Thanks for the links, I have to admit, my QUIC knowledge is limited, I
thought QUIC should be a user space program, anything talking to low
layers through Linux kernel API, seems you have to alter Ethernet RX /
TX for QUIC, does that mean you have to alter WiFi or other media
communications as well? My WiFi is currently supported by Linux open
source mwifiex.

> It should be reasonably straightforward to add a packet I/O backend for
> other IoT platforms to warpcore, (https://github.com/NTAP/warpcore) which is
> quant's packet I/O library. I had been considering Zephyr support, but ran
> out of time.

Looks very good, I suppose I should be able to run it on an Ubuntu 18
laptop, right?

> Note: quant is a research effort and not meant for production.

Understood, let me see if I can make some contributions for the project.


Thank you.

Kind regards,

jupiter


--
"A man can fail many times, but he isn't a failure until he begins to
blame somebody else."
-- John Burroughs