Re: [Rift] What is being standardized in the base spec? (draft-ietf-rift-rift)

Antoni Przygienda <prz@juniper.net> Thu, 01 April 2021 21:31 UTC

Return-Path: <prz@juniper.net>
X-Original-To: rift@ietfa.amsl.com
Delivered-To: rift@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id D63C63A243B; Thu, 1 Apr 2021 14:31:54 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.998
X-Spam-Level:
X-Spam-Status: No, score=-1.998 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, HTTPS_HTTP_MISMATCH=0.1, RCVD_IN_DNSWL_BLOCKED=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=juniper.net header.b=KYpR9xTV; dkim=pass (1024-bit key) header.d=juniper.net header.b=K3EEb9Vf
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 qpIdAV2lq-Je; Thu, 1 Apr 2021 14:31:49 -0700 (PDT)
Received: from mx0a-00273201.pphosted.com (mx0a-00273201.pphosted.com [208.84.65.16]) (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 4246D3A2434; Thu, 1 Apr 2021 14:31:49 -0700 (PDT)
Received: from pps.filterd (m0108158.ppops.net [127.0.0.1]) by mx0a-00273201.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 131LUnC0006227; Thu, 1 Apr 2021 14:31:47 -0700
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=juniper.net; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : mime-version; s=PPS1017; bh=PaSgXwQUfS92t4VrPJTPcvuHM5I7g7Eh/JEjfXa7zTs=; b=KYpR9xTV3qOJ5WcG87tz8YVta3r72OlU/NyuXgqp5qfxc6F+rV/H/7cjQFxWOCezYQfM DUMBFaEPMLgIwLtfBwaW8PWq6E7AB500d0cHytL9h/O/f0CTUvm4rSR678v3UBHFKEim 7bQCiqYnfCOqGoPxsl6jUboq6iFhaFiwMg6K0usdw/plo4rToZta/fZaqt83zcC4n2pn 5xqNT3xpbP7rCtnGPUQytHX9Wagu0dSn+LMj1E9ygfV9d47Y0aZ0NHWSTxDhyL8udGlG 61hgIQuLqNNQroRUtqkiC3xE/RdtDrVjzQvKV2fx7AQKxOFCvTKLz45E91ErFOLQrunl 9A==
Received: from nam11-co1-obe.outbound.protection.outlook.com (mail-co1nam11lp2174.outbound.protection.outlook.com [104.47.56.174]) by mx0a-00273201.pphosted.com with ESMTP id 37n30ntb6u-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 01 Apr 2021 14:31:47 -0700
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VwEmooSFPrwxgZvDpGVgBEUrzV5F4orhu6dekNQpejwV3u6OeEEuQ8rmg3cl4X6uetb04E/c0TFNoFrUH7xizqtY80/yXPbA44GXV/6UKUFYeGVxIFh0tiKn5xmJaN2hgsDYLVSBfuEIwYBig6EvLSz9+aLnNbzHfLy3mV6ToNYBgV4MCRm2QS6QbOg5uTg2OLo7mc7uMMHHtPcdpub+SP+zTl8EpIVv/VHqfGqsoJxi//q8RDEjjbIJsa1r1dBE7mTFksBcLcEh1fCkknJiqq5/q4SD+ScjHRH2FEOGDLHvwlxhiXIkWLIA16wBRPftkoCKlsrJP3x73SzQ5qNLAA==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=PaSgXwQUfS92t4VrPJTPcvuHM5I7g7Eh/JEjfXa7zTs=; b=VRqtZA8g1EA86An0mwotKCJNqhKcbO66ZvMgdtEsLJ0THF26DAGz0lXMf4Fayb1ALnx8FVcK/4IHyXqictBIKJDcESRdac5eOJCHWQxu7D5Rmp5X5K0IdpX7JQEP3LgG+rvJ6iXFgb8hslJeTYRcjOaJceF+XvLsYF0/MLxGQRsMRpZGThvexWbo/rEkbyO2bXWn+YHK1G9L/CBBTJdw/fLjy2u8xl8nJpZV5BvhV70SEdxH9dly7voB6wMHZjAZOxzH+h+39DjgpLdt0QnVcwO2E6jZdGTR5XW9RNzS8cCoqjr8W+P7QR+ngf+1Mdh2YGa+MH7WDOlbZ/71AYhDWQ==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=juniper.net; dmarc=pass action=none header.from=juniper.net; dkim=pass header.d=juniper.net; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=juniper.net; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=PaSgXwQUfS92t4VrPJTPcvuHM5I7g7Eh/JEjfXa7zTs=; b=K3EEb9Vfc1QboXD+a9+xrRUGOBmYtIyscmlc9hpEOPzVmKc8R118Gr4PBJiI9VaXNKX2sSX1P0tqd4EiZDVe0NuXRev0fR51O3rAZ3N29pGLCCH2Nc4mJgBP/mK3o0Q2t8fqcklOQ5YbGlfMt9w6JLtzOhC0HGfN5y7UWCndwLA=
Received: from MWHPR0501MB3690.namprd05.prod.outlook.com (2603:10b6:301:7f::18) by MWHPR05MB3136.namprd05.prod.outlook.com (2603:10b6:300:bf::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4020.8; Thu, 1 Apr 2021 21:31:42 +0000
Received: from MWHPR0501MB3690.namprd05.prod.outlook.com ([fe80::a9ea:18d2:51e2:a6da]) by MWHPR0501MB3690.namprd05.prod.outlook.com ([fe80::a9ea:18d2:51e2:a6da%7]) with mapi id 15.20.3999.027; Thu, 1 Apr 2021 21:31:41 +0000
From: Antoni Przygienda <prz@juniper.net>
To: Bruno Rijsman <brunorijsman@gmail.com>, Alvaro Retana <aretana.ietf@gmail.com>
CC: "rift@ietf.org" <rift@ietf.org>, "draft-ietf-rift-rift@ietf.org" <draft-ietf-rift-rift@ietf.org>, "rift-chairs@ietf.org" <rift-chairs@ietf.org>, "Jeffrey (Zhaohui) Zhang" <zzhang@juniper.net>
Thread-Topic: What is being standardized in the base spec? (draft-ietf-rift-rift)
Thread-Index: AQHXJzM5F6z94bDeokaBCFcjP92jiaqgHasAgAAFjoCAACprAIAAAkmA
Date: Thu, 01 Apr 2021 21:31:41 +0000
Message-ID: <1E42AAE4-A866-48D7-A5E0-897D08940776@juniper.net>
References: <CAMMESsz0br3Sq06GG-Fix=_Mz=YefA77GP3Av1F=87RmWhwa_g@mail.gmail.com> <AD3AA64C-68DB-412A-9AAF-E11262644679@gmail.com> <59811500-07DC-4BFB-B296-B375C761D0B4@gmail.com> <608B82C0-A933-4CF3-A2F9-72F215AEB5E8@juniper.net>
In-Reply-To: <608B82C0-A933-4CF3-A2F9-72F215AEB5E8@juniper.net>
Accept-Language: en-US
Content-Language: en-GB
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
user-agent: Microsoft-MacOutlook/16.47.21031401
msip_labels: MSIP_Label_0633b888-ae0d-4341-a75f-06e04137d755_Enabled=true; MSIP_Label_0633b888-ae0d-4341-a75f-06e04137d755_ContentBits=0; MSIP_Label_0633b888-ae0d-4341-a75f-06e04137d755_SiteId=bea78b3c-4cdb-4130-854a-1d193232e5f4; MSIP_Label_0633b888-ae0d-4341-a75f-06e04137d755_ActionId=d60e4732-25ea-46a3-83fa-f5a2d6fa9427; MSIP_Label_0633b888-ae0d-4341-a75f-06e04137d755_SetDate=2021-04-01T20:58:36Z; MSIP_Label_0633b888-ae0d-4341-a75f-06e04137d755_Method=Standard; MSIP_Label_0633b888-ae0d-4341-a75f-06e04137d755_Name=Juniper Business Use Only;MSIP_Label_0633b888-ae0d-4341-a75f-06e04137d755_Enabled=true;
authentication-results: gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=none action=none header.from=juniper.net;
x-originating-ip: [66.129.239.13]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 8cc436a7-e260-40d9-b7e2-08d8f5558a9f
x-ms-traffictypediagnostic: MWHPR05MB3136:
x-ms-exchange-transport-forked: True
x-microsoft-antispam-prvs: <MWHPR05MB3136BAD8A700D82F1885F9BCAC7B9@MWHPR05MB3136.namprd05.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:10000;
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: xuoTXdg1UFcy9Sq4ZAaLNxRn5WTx91hd1XPQsUaKeMWy3ebFIz8DAEixhK8Dqs7u2LZoRtcMJyanR5h3DKtJ0aMZRVevic3T0gCcOFka01SUkqAjodDgGv2ZrlJ1iT5WFAGH+V/F/fKOvdI7dd9XNECARy1/PxFcvPTHOi8mYVX4EqpYTwVq8fy4OQK33Zx0Ub2qki3GfaRfdbGkj5Tvr4TK/O0ggjq9fYU/ZpnYKVY4Bq2gBduU8Ib6WcutfjkhozPF+v6yPQDpnGOQpx0B+WDuitHYvSVlbqsQeHrbjqEJ7UTFQcDScCQvnOiAkvCfE5mv6PlhPU+Ivkk8RQi2YniU57QdXSvV+SM1bl8+xyJacNA6Mp5JGGKzo3IOWktT1g/yTIu51WgHHn80JamlsTTdgNpyluFZ8QnplNPTR5uU1wEIT29kY7SrMIVVjFIeaAHXqgteiBFfu9nPhg2irCo+ysHEQVyGNE7E0XjSe7bExB+jgdHO0D64Nca3iHD7Fcc9SqPnw2RDQt46+olsco18QsMzYMcw1jbTQgpudOulOSIRHKKbBeHfqM1/6s41FOrAD11AdufkMK063h8Is4EtMOgc7/zYMmFNYO6QM+pfpl4WQvjuPjzHN+cXE0pAa8OwjJARX11FxPwql01aK3EaYkX1oI3vTUfIRPiAQgvCZLPw+F1Q7XLAn0rZ+RiwVGcrsnHigkpAjT9kB0thmXGTPhgs2ff67RoxbF+LTYSsjq6ScNpblU7y3pveAkB6nO2LGliYG9VWMpghabRpxQ==
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MWHPR0501MB3690.namprd05.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(346002)(136003)(376002)(366004)(39860400002)(396003)(36756003)(2616005)(71200400001)(186003)(33656002)(91956017)(4326008)(66446008)(66556008)(66476007)(64756008)(316002)(478600001)(26005)(107886003)(83380400001)(76116006)(6486002)(30864003)(54906003)(966005)(5660300002)(6512007)(8936002)(53546011)(86362001)(6506007)(38100700001)(166002)(8676002)(66946007)(110136005)(2906002)(45980500001); DIR:OUT; SFP:1102;
x-ms-exchange-antispam-messagedata: byYVF0JHS5plIqlD5qU8PeHpIITPynHo4QD2uafe+zQWXCdHh2xhQKY4o/ptohmeD6O9PHvbkOq/97XjW+gx9tpCkq3GyR2N+LAp7OdlFVgxAb9cmpAECntGSm/dMahO1NynVyIAauQiGTDnO54etSmgNQjxMzLNtxTJR+Rma+VTlN36JPJQdnBE+JKJfsKGTEUw/0hOFT/+T2QrUi8f33uG7la+EHBldHhxbzSlmRHIkqiGrgIqYfyuxVGSP11RNap1MGhJ4hqJjC7DAXtuhJZdGrURaAoQsjyKRq2/nomjpp5lBM3vSiSDd94r8Jr1pkUtmpS00TixXwfjoFkMMSJA2wTOGB5JFGbLNP/k0sqwdwqG8XBKpuyTHUK2ZkV/OPGT8U0EwBnymvjBzmsiK8oCa3irlK47+I+rOjjRTXN1HQ+HnJe9Nyg5wxBgMuV8z/1QxFPiAymAGtfYiNS8yNKWzmGRcR+K4/sibVjTpUiqnpKhIUZz/+gwPwSaqMeIIaVGxO3wPPiFkMuPTWJPfnhMdV4KgxZB9j+QMctbypSFLpU0ussysEQXkKmek5KEvg3G6ti9qOiQi5q5hoP8jSCd09KsINO/Gc1/I8GLl3NGKCJcL/F5QGZSp4ahgt5fWGRTWr7IRf3CIC0d+2HdmXU9Dd/tmxU0rV5oNT3ObpKONdR2OSyQoAQksSDmjA7MXlM3tNpZzox/jUM4e7PxmMNSBD5y8tDd7Kj4VPAv+KjSJ4c01PmOXVq4ayipp4rPHI5qb9R0v9fhhX+gRKauzVLiUCxz4Cik/OGQ3Oz7dednNAxtJA1CNcqo6HMxv4z+/C0R87Mo17WSGit8xtkdeocXEvU4SyYtx6jR7RIfkvnF3nA5nozP5H6OaK2Aq3BaInbZ3wysqrhEAWI/hMEEGODZQcty2I2/d8JirvdB2bxDzGBuFco9AEW5EjnGfmXSqTVOZ/pZliY85VpyKCQ/hD+2vJ9fLOtjvasD8zS1PdHWuTRXzkM0YInUBkNQLBblzy6M5kSBgmvlUCadirD7OHWoCg69ifGcOO0dQfcvsKtUA/EQOTGxSJNvxdegF4sWtjVkq4NVzHB8DijCpgiQpsmUicVdJJ8xWjR66Em6VJrdaoXbL6FDZLJdPj4XxHI6aB4Fa2V+VT4M2DqWc12cDBAOaQYMabvey4xzl8h2LY7sHzSvAMAyvGc0dYAZqpd7SYGU3a2xKcJB8hIE1s9wZPUDw7AZKMTD1jkEOKfaB2r0KbFfoaGVl4qjD60l5jziUyCmb4mq2O4uVJAQGSIwKkWq7cem25MrnxkzlrLW5MDuraGkfL2vJ1LlEVTDC70Ta3yQMUGSt2cUa/3eCRSVvg==
Content-Type: multipart/alternative; boundary="_000_1E42AAE4A86648D7A5E0897D08940776junipernet_"
MIME-Version: 1.0
X-OriginatorOrg: juniper.net
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: MWHPR0501MB3690.namprd05.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 8cc436a7-e260-40d9-b7e2-08d8f5558a9f
X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Apr 2021 21:31:41.8334 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: bea78b3c-4cdb-4130-854a-1d193232e5f4
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: UcPZYCnbf9BIuVipN2VbR6jdC2dsQcijM+8dlBonyzgOj0f1Y4RPv+st7EHDdU4O
X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR05MB3136
X-Proofpoint-ORIG-GUID: vAHGI6-Eb0l9PaqgXPlsAFrzLw_Rw2vV
X-Proofpoint-GUID: vAHGI6-Eb0l9PaqgXPlsAFrzLw_Rw2vV
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.369, 18.0.761 definitions=2021-04-01_13:2021-04-01, 2021-04-01 signatures=0
X-Proofpoint-Spam-Details: rule=outbound_spam_notspam policy=outbound_spam score=0 suspectscore=0 priorityscore=1501 adultscore=0 spamscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 phishscore=0 bulkscore=0 lowpriorityscore=0 clxscore=1015 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2103310000 definitions=main-2104010138
Archived-At: <https://mailarchive.ietf.org/arch/msg/rift/MAg5fJZLOt2H_09_QVNzU000jp8>
Subject: Re: [Rift] What is being standardized in the base spec? (draft-ietf-rift-rift)
X-BeenThere: rift@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Discussion of Routing in Fat Trees <rift.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/rift>, <mailto:rift-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/rift/>
List-Post: <mailto:rift@ietf.org>
List-Help: <mailto:rift-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/rift>, <mailto:rift-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 01 Apr 2021 21:31:55 -0000

Oh, and for the “but I cannot spy with my little eye the bits on the wire and what they mean anymore” argument I heard couple times. Tcpdump for rift took minimum time and is long implemented already in open source (and yes, AFAIR the whole deser code is compiler out the thrift spec model) 😉 … Yes, it’s as much a fundamental change as programmers in the 80s getting used to the idea that you don’t look @ assembly code much anymore to make sure that the “C compiler is right” 😉


  *   Tony

From: Antoni Przygienda <prz@juniper.net>
Date: Thursday, 1 April 2021 at 23:23
To: Bruno Rijsman <brunorijsman@gmail.com>, Alvaro Retana <aretana.ietf@gmail.com>
Cc: "rift@ietf.org" <rift@ietf.org>, "draft-ietf-rift-rift@ietf.org" <draft-ietf-rift-rift@ietf.org>, "rift-chairs@ietf.org" <rift-chairs@ietf.org>, Zhaohui Zhang <zzhang@juniper.net>
Subject: Re: What is being standardized in the base spec? (draft-ietf-rift-rift)
Resent from: <alias-bounces@ietf.org>
Resent to: <prz@juniper.net>, "Sharma, Alankar" <alankar_sharma@comcast.com>, <pthubert@cisco.com>, <brunorijsman@gmail.com>, Dmitry Afanasiev <fl0w@yandex-team.ru>
Resent date: Thursday, 1 April 2021 at 23:23

Since that may lead to more interesting discussions in IETF (like extending Yang to be the message format description 😉


  1.  What Bruno says is spot on (nothing unusual 😉 Thrift model is a very precise syntactic description of the information exchange (well, thrift is not, I’m fudging a bit, but it’s very close to what we need), since we cannot talk to each other without agreeing on syntax if we want to have interoperable implementations, we MUST make it normative. Akin to having subject before verb in English as rule to talk English to each other (well, analogy breaks down here, a good model is orthogonal, our verbal languages are highly redundant @ every level for reasons of lousy underlying mediums, people reading email while talking etc 😉
  2.  The semantics (and semiotics) of the syntactic model cannot be captured by a model or rather, the model would be implicitly containing syntactically correct but semantically non-provable statements (well, that goes deeply into Chomsky, de Saussure, Goedel and Wittgenstein so let’s stop here). So we use human language (which is already able to produce those properties but is common to the readers 😉 And bunch formal crutches like FSM 😉 The boundary of how much semantics has to be normative is of course what IETF makes a good living off, it’s not a clear cut thing, it’s a boundary of craft and art and RFC 2119 😉 One can always write more & @ certain point the doc is so big stuff starts contradict each other.

Now, why Thrift? I looked @ all the stuff @ hand when working on those things and couple of things made Thrift the outstanding candidate for packet format capture in protocols (but not necessarily for other things)


  1.  Very lightweight compared to XML. XML is not only very “verbiageous” 😉 but to get XML to describe packets one would really need XSD and the tooling gets heavy, encoding gets big, not exciting, not exciting
  2.  Thrift is _very_ precise syntax wise compared to all other modelling languages out-the-box. There is a very clear distinction between set and array e.g. and maps of objects onto objects are supported. Optional/Mandatory incl. defaults is well defined etc, etc. Yes, you can “model” grpc (and arguable grpc is more performant) but so you can JSON and guess whether you got a set or array and what a “0” really means. So you can do more ASCII typewriter alphabet-soup flags which we do today  😉
  3.  Thrift is supported across insane (no other word) variety of languages and has a huge community. Yes, it’s not that exciting anymore but the compiler stability, clean implementation is bar to none I saw. I run personally rift thrift models across 4 languages (and hacked the compiler for some of them to my liking 😉 and never had a hicc-up in ser/deser. Yes, performance varies based on language and the API generated internally but thrift sers/desers no matter what architecture/language or time of the day.
  4.  It has a very well implemented optional unknown support (and Bruno tested that ad nauseum 😉 which is extremely important for extensiblity.
  5.  It has a plethora of encoding schemes incl. binary compressed. Is it as small as hand-coded bit-squeezed fields. Nah, it isn’t. Could we go and optimize and IETF-super-compressed encoding? Yeah, we could. Is it light-weight enough to scale to serious heavy-lifting. Yepp, it is from lots benchmarking. Ser’ing & des’ing is so fast it does simply not matter in today’s world and the size is good enough to run sizeable routing protocols is what I found.  Now, should we standardize the encoding in rift? I don’t think so, thrift negotiates that and has well-set default, if we standardize our own then yeah, we probably should have specs saying “thrift MUST be encoded using UTF-8-2-yang-ietf-translation 😉” . Worth a working group, possibly but first discussions needs be settled whether IETF invents its own “yang packet format extensions”. As my 2c, I think it would be misguided, yang looks good for config/state/service maybe, not a thing for packet formats (well, but it could be possibly twisted to that assuming we write yang compiler support for a dozen languages which could take a couple years @ least)

As Bruno said, proof in the pudding, clean room implementation rift interop discovered zero (0) interop bugs/crashes/surprises in LIEs. And I don’t think we found any problems on syntax in  rest of it either except discussions about FSM & semantics sometimes as it should be.


  *   Tony

From: Bruno Rijsman <brunorijsman@gmail.com>
Date: Thursday, 1 April 2021 at 22:51
To: Alvaro Retana <aretana.ietf@gmail.com>
Cc: "rift@ietf.org" <rift@ietf.org>, "draft-ietf-rift-rift@ietf.org" <draft-ietf-rift-rift@ietf.org>, "rift-chairs@ietf.org" <rift-chairs@ietf.org>, Zhaohui Zhang <zzhang@juniper.net>
Subject: Re: What is being standardized in the base spec? (draft-ietf-rift-rift)
Resent from: <alias-bounces@ietf.org>
Resent to: <prz@juniper.net>, "Sharma, Alankar" <alankar_sharma@comcast.com>, <pthubert@cisco.com>, <brunorijsman@gmail.com>, Dmitry Afanasiev <fl0w@yandex-team.ru>
Resent date: Thursday, 1 April 2021 at 22:51

[External Email. Be cautious of content]

Just to elaborate a bit more in OSI “presentation layer” terminology.

The Thrift model is the abstract syntax. It describes the format of messages in an abstract manner. It is the moral equivalent of ASN.1

The Thrift compiler<https://urldefense.com/v3/__https:/thrift.apache.org/__;!!NEt6yMaO-gk!TRQjlvUwhpqq0r5ds49ALQB6LdfjgNk5f-qCGuolo1gsFFA7fT0FJD2QYwLUfQ$> toolchain generates the following code (in Python, C++, C, Rust, or whatever language):

(a) The data structures in the chosen language to hold the decoded messages (Python classes, C++ classes, C structs, etc.). This is the local syntax.

(b) The procedures to encode and decode the data structures into serialized messages on the wire. The rules for serialization are specific in the Thrift binary protocol “specification”: https://github.com/apache/thrift/blob/master/doc/specs/thrift-binary-protocol.md.  These Thrift rules are the equivalent of the ASN.1 Basic Encoding Rules (BER) / Distinguished Encoding Rules (DER) / etc. The serialized messages on the wire are called the transfer syntax.

Side note: the two RIFT implementations that I am familiar with have been implemented in two very different programming languages and are able to exchange Thrift messages using the above toolchain without any problems.

All of the above machinery is only used to specify the syntax of messages.  The semantics of the messages and the procedures of the protocol are not (fully) described in the Thrift data model alone; instead they are described in the text of the RIFT specification in the form of human language and formal state machines.

— Bruno

On Apr 1, 2021, at 10:31 PM, Bruno Rijsman <brunorijsman@gmail.com<mailto:brunorijsman@gmail.com>> wrote:

As an independent implementor of RIFT, who implemented the protocol using only the specification and without any inside knowledge of any other implementations, I interpreted the document according to your option (a).

I my view, the Thrift model *is* the normative specification of the packets on the wire, and I cannot imagine the protocol being implemented without the Thrift toolchain.

— Bruno



On Apr 1, 2021, at 10:11 PM, Alvaro Retana <aretana.ietf@gmail.com<mailto:aretana.ietf@gmail.com>> wrote:

Dear WG:

I have started my review of the (very long) base spec [1] [2].  Thank
you to everyone involved!


As I read through the document and ask questions, many are answered
"in the schema."  Using the schema is ok; we had already talked about
it being Normative.  However, it makes me wonder, what are we
standardizing?  Bear with me as I explain.

(a) The WG can standardize the schema itself, just like the IETF works
on, for example, YANG modules:  the module *is* the standard and the
rest of the text in the RFC represents a high-level overview and other
general things (IANA and Security Considerations, for example).  If we
go this route, we're assuming that people will extract the schema from
the document and use it (again, similar to YANG modules) -- and we're
taking advantage of thrift-specific facilities and assumptions (that
don't have to be explicitly specified).

(b) The WG can standardize a protocol specification
(rfc2328/rfc4271/ISO10589 are all examples of that).  In this case,
the body contains the specification of the protocol's expected
behavior, and the schema can aid in that definition.  For example,
instead of traditional packet formats, the schema can be used to
define the fields and some of the behavior -- it can also be used as a
"reference implementation."  If we go this route, we're
assuming/expecting that people will write non-thrift implementations
of the protocol without explicit knowledge of any thrift-specific
facilities (any such assumption would have to be explicitly
specified).


The question to the WG, for which I would like the Chairs to guide the
discussion, is: What are we standardizing?  When the WG reviewed the
document, what were the assumptions?


FWIW, I have been assuming/expecting (b).  If the WG intends (a), that
is ok -- I can change my expectations.   We need to be in alignment.

Thanks!

Alvaro.


[1] https://mailarchive.ietf.org/arch/msg/rift/yTujeIBGVuYcQMgnpTvVN_qPW9Y/<https://urldefense.com/v3/__https:/mailarchive.ietf.org/arch/msg/rift/yTujeIBGVuYcQMgnpTvVN_qPW9Y/__;!!NEt6yMaO-gk!TRQjlvUwhpqq0r5ds49ALQB6LdfjgNk5f-qCGuolo1gsFFA7fT0FJD3_8dqqWA$>

[2] https://mailarchive.ietf.org/arch/msg/rift/r_YVHdNgrwtt_0wPotml1FBHmyI/<https://urldefense.com/v3/__https:/mailarchive.ietf.org/arch/msg/rift/r_YVHdNgrwtt_0wPotml1FBHmyI/__;!!NEt6yMaO-gk!TRQjlvUwhpqq0r5ds49ALQB6LdfjgNk5f-qCGuolo1gsFFA7fT0FJD11nS5iuA$>




Juniper Business Use Only


Juniper Business Use Only


Juniper Business Use Only