Re: [arch-d] deprecating Postel's principle- considered harmful

Henning Schulzrinne <hgs@cs.columbia.edu> Tue, 07 May 2019 22:06 UTC

Return-Path: <hgs10@columbia.edu>
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 8D1AB12023B for <ietf@ietfa.amsl.com>; Tue, 7 May 2019 15:06:14 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.199
X-Spam-Level:
X-Spam-Status: No, score=-4.199 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, URIBL_BLOCKED=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 9CH7PI8tiJ3p for <ietf@ietfa.amsl.com>; Tue, 7 May 2019 15:06:11 -0700 (PDT)
Received: from outprodmail01.cc.columbia.edu (outprodmail01.cc.columbia.edu [128.59.72.39]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 0D0FC12019B for <ietf@ietf.org>; Tue, 7 May 2019 15:06:10 -0700 (PDT)
Received: from hazelnut (hazelnut.cc.columbia.edu [128.59.213.250]) by outprodmail01.cc.columbia.edu (8.14.4/8.14.4) with ESMTP id x47M2ZQG014396 for <ietf@ietf.org>; Tue, 7 May 2019 18:06:09 -0400
Received: from hazelnut (localhost.localdomain [127.0.0.1]) by hazelnut (Postfix) with ESMTP id 9EEB186 for <ietf@ietf.org>; Tue, 7 May 2019 18:06:09 -0400 (EDT)
Received: from sendprodmail03.cc.columbia.edu (sendprodmail03.cc.columbia.edu [128.59.72.15]) by hazelnut (Postfix) with ESMTP id E2ED886 for <ietf@ietf.org>; Tue, 7 May 2019 18:06:05 -0400 (EDT)
Received: from mail-ot1-f72.google.com (mail-ot1-f72.google.com [209.85.210.72]) by sendprodmail03.cc.columbia.edu (8.14.4/8.14.4) with ESMTP id x47M65GX040579 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NOT) for <ietf@ietf.org>; Tue, 7 May 2019 18:06:05 -0400
Received: by mail-ot1-f72.google.com with SMTP id i21so9985531otf.4 for <ietf@ietf.org>; Tue, 07 May 2019 15:06:05 -0700 (PDT)
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=Q+Pp8S9fhJ9VieAAYa/vtN5FI7OWbVqr6mKIz00xtto=; b=LEF4uQgSHMEC0K8kfcFpiMGfLHshGGfzlR8dWuAvUb+UkfqKjxjuYIMwMqHD34Flt8 2D9U/JeADryTb9hn4iYaYcXiGMqSVICU4w14d9LdAgu63V5bR5bN6ClbQFLnF4oJijrS RIUJzKanLRhhqUV0uXrESTySx1MhDdcmIzQoVa3UwuuwefXAxtx5guEcBWa0CKOJlu/X V3KINUqB0rHFGWkTj0Gir4hUlenMEChV5AabuNiisxv1fDwmvHTXrVIplOp7RMBzsky8 QuTUkeCgVXjrI+QdEOt2BIaF15xheFnqBLZXtzaDQFAeXG/88TmlYOrzY8knPy/7Mf5M kykg==
X-Gm-Message-State: APjAAAV81Gnnq7lWEYNGf7wStB3cuWlNmS3BsTwSCoZZSv1ZFaMyKHUU /uWzXcqBu//RW6/LA4KZg8138Wntrb6pC/dAI+JoIoUPhU/V7g2CxbwMbTksdA6qithc2v0PG64 g7JhnKkOKSb5PoCby78NIFq9UYcTY
X-Received: by 2002:a9d:6b8e:: with SMTP id b14mr14396179otq.125.1557266764856; Tue, 07 May 2019 15:06:04 -0700 (PDT)
X-Google-Smtp-Source: APXvYqwhWxNakcIOgi2bIpVEcX2ElYqnIwW0Fnejc8wARIRGVOMoDbdxt/rRBHsscMoI6cC8HsMOQ/ZCtUBOwInN5fU=
X-Received: by 2002:a9d:6b8e:: with SMTP id b14mr14396148otq.125.1557266764486; Tue, 07 May 2019 15:06:04 -0700 (PDT)
MIME-Version: 1.0
References: <F64C10EAA68C8044B33656FA214632C89F024CD3@MISOUT7MSGUSRDE.ITServices.sbc.com> <CALaySJJDHg5j9Z7+noS=YXoNROqdsbJ6coEECtLtbJ6fWJ3xsQ@mail.gmail.com> <CAA=duU1TxZx9W8huPp5md25Wf+9=f50WYGpU=Bb1OQ+OdF6k6A@mail.gmail.com>
In-Reply-To: <CAA=duU1TxZx9W8huPp5md25Wf+9=f50WYGpU=Bb1OQ+OdF6k6A@mail.gmail.com>
From: Henning Schulzrinne <hgs@cs.columbia.edu>
Date: Tue, 07 May 2019 18:05:38 -0400
Message-ID: <CACgrgBYs95Q4hb=y-6i7SW9mEx9Bg-gp0TrpAYpsP-aODSx+YA@mail.gmail.com>
Subject: Re: [arch-d] deprecating Postel's principle- considered harmful
To: "Andrew G. Malis" <agmalis@gmail.com>
Cc: Barry Leiba <barryleiba@computer.org>, "iab@iab.org" <iab@iab.org>, "ietf@ietf.org" <ietf@ietf.org>, The IESG <iesg@ietf.org>, "architecture-discuss@ietf.org" <architecture-discuss@ietf.org>
Content-Type: multipart/alternative; boundary="000000000000516f480588536cea"
X-No-Spam-Score: Local
X-Scanned-By: MIMEDefang 2.84 on 128.59.72.15
Archived-At: <https://mailarchive.ietf.org/arch/msg/ietf/bQHWUcotIgmoP9gFwsCAkiRXPng>
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, 07 May 2019 22:06:15 -0000

I think the problem is an interaction of poor programming and inability to
reach implementers (and then the consequences). For example,

* Some major open source or big-company server implementation allows lots
of variation beyond the spec.
* Then, clients test against this implementation and declare "ready to
ship" when the bits flow without error messages. Programming is mostly done
based on examples and a casual reading of the spec. In text protocols,
spacing, line breaks, capitalization, ordering and other variations are
done by "feel" rather than ABNF.
* Since implementers usually have no good way to reach other implementers
(or assume a timely response or well-informed response), they have to make
expedient choices, making the problem worse over time.
* As noted in the draft, this now means that everyone has to be
bug-compatible, raising the complexity in code and testing, and probably
further entrenching dominant implementations.
* Buggy small-scale implementations become major clients or servers, so
what was excusable as a no-impact hobby project becomes a burden on
everyone else.

Thus, dominant implementation have a particular responsibility as their
"leakiness" pollutes the larger eco system. Low market-share
implementations have to go with the flow, as a random hobbyist has little
hope of getting a Fortune 500 company to change its errant ways.

It would be useful to have protocol syntax checkers that would indeed be
strict, just as we have for JSON (with the limits noted in the draft) and
XML and if there was a torture test for the legitimate variations in syntax
or protocol flow. It would be nice if the document made a few
recommendations besides the "don't do that" aspect.

The document doesn't mention this, but my perception is that this is
particular problematic for protocols that roll their own text-based or
complex, nested binary syntax. Hard to avoid for the early Internet
protocols; probably a bad idea now. Besides the TLS example mentioned, this
seems less of a problem for TLV and other binary protocols, but maybe there
are other examples of undocumented behavior that I'm not aware of.

A variation not mentioned is that we now often seem to have to have two
versions of the same encoding: a generic one that leaves lots of room for
"creativity" (white space and ordering and ...) and a canonical version for
signing with much tighter rules. This seems less than ideal. We have done
this now for ASN.1, XML, JSON and CBOR, I believe.

Henning

On Tue, May 7, 2019 at 4:48 PM Andrew G. Malis <agmalis@gmail.com> wrote:

> Barry,
>
> Except in the cases that you cite (badly formed messages in email and web
> applications), the Postel principle isn't being followed, as the senders
> are not being strict in what they send.
>
> The intention, really, was to prevent implementations of a
> particular version of a specification that, for example, had a field or bit
> that Must Be Zero, from discarding an incoming message just because that
> field or bit wasn't actually zero. This allows a protocol to be updated
> without requiring a flag day or forklift.
>
> So what you're trying to prevent is poor application programming that
> doesn't follow the spec (any revision). I don't agree that poor application
> programming is a result of the Postel principle, it's a result of
> incompetence or laziness.
>
> Cheers,
> Andy
>
>
> On Tue, May 7, 2019 at 4:30 PM Barry Leiba <barryleiba@computer.org>
> wrote:
>
>> I think the questions Deborah raises are layer-dependent, and it's
>> likely that I agree with Martin more than Deborah does exactly because
>> Martin and I live at the same layers.
>>
>> > It just erroneously blames Postel for sloppy implementations.
>>
>> Blaming the principle isn't the same as blaming Postel; the point here
>> isn't so much that "Postel was wrong" as it is that there are many
>> consequences of adhering to that principle that Jon didn't anticipate.
>> The classic cases here are in email and web applications, where what
>> one might call "loose" use of the protocols has resulted in some real
>> messes.  Acceptance of badly formed messages has led to widespread
>> sending of badly formed messages, to the point that it's caused
>> problems with the integrity of the email system.  In web applications,
>> poor implementation of things like character set and content type
>> labelling has resulted in great difficulty in figuring out what
>> character sets and content types are really meant.
>>
>> So the general thing is that if we were *not* liberal in what we
>> accepted, from the start, aberrant implementations would never have
>> worked in the first place, and would either have been fixed or died on
>> the vine.  And that would have been far better for the Internet as a
>> whole than what we have now, at least at the higher stack layers.
>>
>> My sense is that at the lower stack layers, we're *not* actually very
>> liberal in what we accept, at least not in general.  Saying, there,
>> that the principle we're talking about is correct and good for the
>> Internet is really saying that the principle works only when it's used
>> sparingly and in targeted ways.
>>
>> Barry
>>
>>
>> Barry
>>
>> On Tue, May 7, 2019 at 3:18 PM BRUNGARD, DEBORAH A <db3546@att.com>
>> wrote:
>> >
>> > Not seeing much discussion on this document on the lists, I put a twist
>> on the title-
>> >
>> > I find the document (as currently written) is incorrectly interpreting
>> the robustness principle as saying there is no need for clear rules on
>> protocol evolvability/extensions. For example, section 6, "relying on
>> implementations to consistently apply the robustness principle is not a
>> good strategy for extensibility". In the routing area, we do have rules and
>> we use the principle to ensure interoperability, as we don't have the
>> luxury to do a "forklift". Section 8's "it is not always possible to
>> produce a design that allow all current protocol participants to continue
>> to participate", my question would be "but does it harm the network"?
>> >
>> > Actually most of the document confusingly is not contradicting Postel's
>> principle but supporting it (except for the nuances which seem to condone
>> forklifts). It just erroneously blames Postel for sloppy implementations.
>> For the document to summarize saying "the robustness principle can, and
>> should, be avoided" as it is harmful (I think) will be harmful to the
>> Internet.
>> >
>> > Hopefully more folks will read it-
>> > (probably discussion is more appropriate on the architecture-discuss
>> list)
>> > Deborah
>> >
>> > -----Original Message-----
>> > From: IAB <iab-bounces@iab.org> On Behalf Of internet-drafts@ietf.org
>> > Sent: Monday, May 06, 2019 10:40 PM
>> > To: i-d-announce@ietf.org
>> > Cc: iab@iab.org
>> > Subject: [IAB] I-D Action: draft-iab-protocol-maintenance-03.txt
>> >
>> >
>> > A New Internet-Draft is available from the on-line Internet-Drafts
>> directories.
>> > This draft is a work item of the Internet Architecture Board IETF of
>> the IETF.
>> >
>> >         Title           : The Harmful Consequences of the Robustness
>> Principle
>> >         Author          : Martin Thomson
>> >         Filename        : draft-iab-protocol-maintenance-03.txt
>> >         Pages           : 11
>> >         Date            : 2019-05-06
>> >
>> > Abstract:
>> >    Jon Postel's famous statement of "Be liberal in what you accept, and
>> >    conservative in what you send" is a principle that has long guided
>> >    the design and implementation of Internet protocols.  The posture
>> >    this statement advocates promotes interoperability in the short term,
>> >    but can negatively affect the protocol ecosystem over time.  For a
>> >    protocol that is actively maintained, the robustness principle can,
>> >    and should, be avoided.
>> >
>> >
>> > The IETF datatracker status page for this draft is:
>> >
>> https://urldefense.proofpoint.com/v2/url?u=https-3A__datatracker.ietf.org_doc_draft-2Diab-2Dprotocol-2Dmaintenance_&d=DwICaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=6UhGpW9lwi9dM7jYlxXD8w&m=VZUxXboWY44rtZcmcswiLQuQ8TmW6g7F7Azgl-j0amw&s=Fxp9wRoCVRJ_8BZBzY1MoExjRlVCegLbFtq8txcr6F8&e=
>> >
>> > There are also htmlized versions available at:
>> >
>> https://urldefense.proofpoint.com/v2/url?u=https-3A__tools.ietf.org_html_draft-2Diab-2Dprotocol-2Dmaintenance-2D03&d=DwICaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=6UhGpW9lwi9dM7jYlxXD8w&m=VZUxXboWY44rtZcmcswiLQuQ8TmW6g7F7Azgl-j0amw&s=aCbWfZ2WFHlTnh7WeiI8hJ_N04EoyW90y-Wuml8gLuA&e=
>> >
>> https://urldefense.proofpoint.com/v2/url?u=https-3A__datatracker.ietf.org_doc_html_draft-2Diab-2Dprotocol-2Dmaintenance-2D03&d=DwICaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=6UhGpW9lwi9dM7jYlxXD8w&m=VZUxXboWY44rtZcmcswiLQuQ8TmW6g7F7Azgl-j0amw&s=lBVwS9yzx9lBmBEMA0cIidmh_hgRqGFclGMt6iNTPfw&e=
>> >
>> > A diff from the previous version is available at:
>> >
>> https://urldefense.proofpoint.com/v2/url?u=https-3A__www.ietf.org_rfcdiff-3Furl2-3Ddraft-2Diab-2Dprotocol-2Dmaintenance-2D03&d=DwICaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=6UhGpW9lwi9dM7jYlxXD8w&m=VZUxXboWY44rtZcmcswiLQuQ8TmW6g7F7Azgl-j0amw&s=JdV3Cux54CLr3GLrhc4SapVMu0mBchg-65xKrwqYPCo&e=
>> >
>> >
>> > Please note that it may take a couple of minutes from the time of
>> submission until the htmlized version and diff are available at
>> tools.ietf.org.
>> >
>> > Internet-Drafts are also available by anonymous FTP at:
>> >
>> https://urldefense.proofpoint.com/v2/url?u=ftp-3A__ftp.ietf.org_internet-2Ddrafts_&d=DwICaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=6UhGpW9lwi9dM7jYlxXD8w&m=VZUxXboWY44rtZcmcswiLQuQ8TmW6g7F7Azgl-j0amw&s=FA3-28RGBPX6oeQnIR42NBpfekSVh-BU7wyHCkuesdA&e=
>> >
>>
>> _______________________________________________
> Architecture-discuss mailing list
> Architecture-discuss@ietf.org
> https://www.ietf.org/mailman/listinfo/architecture-discuss
>