Re: The TCP and UDP checksum algorithm may soon need updating

Craig Partridge <craig@tereschau.net> Tue, 09 June 2020 20:25 UTC

Return-Path: <craig@tereschau.net>
X-Original-To: ietf@ietfa.amsl.com
Delivered-To: ietf@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 8D02E3A07BE for <ietf@ietfa.amsl.com>; Tue, 9 Jun 2020 13:25:50 -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, HTML_MESSAGE=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=tereschau.net
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 K-Lkw7wwjujg for <ietf@ietfa.amsl.com>; Tue, 9 Jun 2020 13:25:49 -0700 (PDT)
Received: from mail-qt1-x830.google.com (mail-qt1-x830.google.com [IPv6:2607:f8b0:4864:20::830]) (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 24D153A07D0 for <ietf@ietf.org>; Tue, 9 Jun 2020 13:25:25 -0700 (PDT)
Received: by mail-qt1-x830.google.com with SMTP id y1so18711378qtv.12 for <ietf@ietf.org>; Tue, 09 Jun 2020 13:25:25 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tereschau.net; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=R54I4OFvqVk29JGjPDSKlx4D4ynML2UnnhjB3DygexA=; b=UPKNAW0fruekTd87K4Sgm9hvjMZi5LQT/ayAJmTi30X374kq8mxYYBMpK2ijnn/z6T hUufX3IG7fdZR4u8keEu+w/R9NxN+B0t6cZgLpPM8vw8oEMMbuEdMaGGbdxdc97fSX7m fL6LTRXbqn82VqzqcbASJglv57W9Uiy3Gafy3fCRbDUJl6C7HZiyy2bFIbMsU0QEXoD4 lqc4KJ9Wq6RJn7qREJBQqtLWgEEREY2IFHpvOR4OA0ERGZnSkQ+w1Xphou6X1KoZQVmI fIJkYLoIzNbq1lHLOz+1C1kS4PAe36CVeIz8GXW26ZQMT/ggrWAxkDIwxYxHTej2B0VD OlVA==
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=R54I4OFvqVk29JGjPDSKlx4D4ynML2UnnhjB3DygexA=; b=qAFz1r9DQVzpYgfD/KPfzx1BtfGcU7zSBG+X95/QEyvwihayH+6P2IgcZZM5Sh0Th0 j83Psz+fFjV2uPm5lnlVpcKbxssbGOWT760aTgWAw0YzBGqmfx7cv3OcByu00fqyeLzn vNUhHcN/j6malqtqiq3KCfSKgTteMeEP8nj/KE7GtmeXbKwlkmuYGypEyxBGRmuVw38g OQa9O0kbwwRWJhi3bwCdBjzXEa5xjdtPkKUaA7hmHDOoUyoiZCB1yl0CnuWNO4v56DJm 3Zf2MqF8CadNcbyujwffdQjzY4h1P7CjkwF76Tep7ouHUomgE1PQ00eoN5Dt/DvMBjMZ 80HQ==
X-Gm-Message-State: AOAM5316jqqfGZjKlQN9OQvBQzwjUtWIQebJzS+8YM+ZUYmCs0DAN916 LaMnCQx16MWDc4vuZ6Zt4wUpRc2oiEdj1A1evZIClEX3
X-Google-Smtp-Source: ABdhPJwd1xMkbZuqVIbLL4d+o+r20r5b1YY/Lkt3aTNliqOP971Gf7w6kaAh1F8vrA27YBD8DyTs4UOt0hlowt9qGTc=
X-Received: by 2002:ac8:3682:: with SMTP id a2mr31091062qtc.137.1591734323529; Tue, 09 Jun 2020 13:25:23 -0700 (PDT)
MIME-Version: 1.0
References: <CAHQj4CcRanB9c6_cEVcLgUNJBFMqXb_aH6eBBSaR0-_rQO5i9Q@mail.gmail.com> <20200609193933.GC3100@localhost>
In-Reply-To: <20200609193933.GC3100@localhost>
From: Craig Partridge <craig@tereschau.net>
Date: Tue, 09 Jun 2020 14:25:12 -0600
Message-ID: <CAHQj4CeDNYab3TGm3ijx7cR7Tb2CeGjQE_dZq_2v5zW_M63DuQ@mail.gmail.com>
Subject: Re: The TCP and UDP checksum algorithm may soon need updating
To: Nico Williams <nico@cryptonector.com>
Cc: IETF discussion list <ietf@ietf.org>
Content-Type: multipart/alternative; boundary="000000000000ee5eda05a7ac86ae"
Archived-At: <https://mailarchive.ietf.org/arch/msg/ietf/U5s_oQ-lcmv3VyEThrGtVJ_Byoc>
X-BeenThere: ietf@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: IETF-Discussion <ietf.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ietf>, <mailto:ietf-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/ietf/>
List-Post: <mailto:ietf@ietf.org>
List-Help: <mailto:ietf-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ietf>, <mailto:ietf-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 09 Jun 2020 20:25:51 -0000

On Tue, Jun 9, 2020 at 1:39 PM Nico Williams <nico@cryptonector.com> wrote:

>
>
> > * Some folks have assumed the TCP checksum, at 16 bits, misses an error
> > about 1 in 2^16 times.  That's not correct.  There are classes of errors
> > that TCP catches 100% of the time (e.g. single-bit errors).  There are
> also
> > classes of errors that the TCP checksum misses about 1 in 2^10 times.
> This
> > latter is because the TCP checksum is not terribly good -- a better
> > designed checksum would miss only about 1 in 2^16.
>
> 2-bit errors do happen.
>
>
I'm not sure what the 2-bit errors happen point is.  Lest someone imagine
that bit errors are the issue...

Lots of errors happen.  1 bit, 2-bit, byte, entire packet buffers trashed,
bytes/words/sequences forced to all 0s and all 1s, chunks of packets erased
or duplicated....  Essentially anything that can go wrong in a
middlebox/router showed up -- data line timing errors, bad memory (in
varying sizes), pointers getting trashed such that other random data gets
added/deleted, etc.

Table 3 my 2000 paper with Jonathan Stone lists a huge range of errors in
that error and few of them were bit errors.

Craig

Craig


-- 
*****
Craig Partridge's email account for professional society activities and
mailing lists.