Re: [spring] SRv6 Network Programming: ENH = 59

Stewart Bryant <stewart.bryant@gmail.com> Thu, 09 May 2019 09:43 UTC

Return-Path: <stewart.bryant@gmail.com>
X-Original-To: spring@ietfa.amsl.com
Delivered-To: spring@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 649BF120041; Thu, 9 May 2019 02:43:53 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2
X-Spam-Level:
X-Spam-Status: No, score=-2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=unavailable 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 bcZfdn0S3b_n; Thu, 9 May 2019 02:43:50 -0700 (PDT)
Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) (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 58741120088; Thu, 9 May 2019 02:43:50 -0700 (PDT)
Received: by mail-wr1-x434.google.com with SMTP id r7so1436135wrr.13; Thu, 09 May 2019 02:43:50 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=wihKyUzpQJkkh6qtXxg0bF+SPYAfcE+ds6gQM3xHGzA=; b=Ywv5sG/4yUALcP0AAljeub/nfmofef/I4E6H2rBsW5mFZYIUGY8Rt0sCWZrViE150x vqUq4x9xH/SDJu8v5tv3GroHSKcHaika5leRDOtF8Obq10nvmvZytZkHEDxNEMkki2PO gDd0AtnqWpMTVwj10vjszsnI0f5rTYFgnlE3npN2ZbWBrYSBIA5LZph0JtF9mKIUCz6w uu+as+6L8wya9QHPIPctdify43EGI0Rf/u266dX/sR3rnebmrPtHPQuBLk16bWb1QOEf xhJQ2R/Rxv9I5iz5neDFUR1+th846SYphTpp/7aF6LRsiyHtrIr6S3Ev8y0yV5Xb349Y akRw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=wihKyUzpQJkkh6qtXxg0bF+SPYAfcE+ds6gQM3xHGzA=; b=Qz+Gh1wC6sYtJaQtsCTZe1EuxWXcXkEtufV5dhCuZMWzVnQzmMFKfK4e44tlCk7RY9 P0+aTfDs2dP+vJO8QFNGGCIUNql9gVPoyy/H4QFMi43Opzc4uPAAOv0QsF5cDXz+Hz0J mUihey3PzeCsiEDyH2Q2C0aDKBosq16uGYGiSc23/N4qlfcCH/hNhmS0Qp/WlF+f3Roz qvejxa+iio8JRqgKlk9g0XSEJO25ZVNN6VRgXnUtghL2xWcc8sgk2EdA008GOFEDy3el Lm+dcuVVMRRcDKA7yxIMBbgmKzH4ZATnNLfscwRWefamnE69eIKTq+MYIH6Gs0wUW8Dl 4Kng==
X-Gm-Message-State: APjAAAXPBSAtyr58jKzFvKWpZoQULm1wKV34gXsfYDh/270CxtsrY4uT Y0rx22gbw4toHjXQtG9iM1Q=
X-Google-Smtp-Source: APXvYqz+Ybh5tt+UTOuJQ6JEMYFFiNfHK9kXNMSl+SdvJfEWErLtvj2gQsVcTdHQPiKHY9ogjPG6RA==
X-Received: by 2002:a5d:4fd2:: with SMTP id h18mr2344450wrw.117.1557395028825; Thu, 09 May 2019 02:43:48 -0700 (PDT)
Received: from [192.168.178.22] ([62.3.64.16]) by smtp.gmail.com with ESMTPSA id o13sm1918495wrg.40.2019.05.09.02.43.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 May 2019 02:43:48 -0700 (PDT)
To: Sander Steffann <sander@steffann.nl>, Ole Troan <otroan@employees.org>
Cc: Ron Bonica <rbonica=40juniper.net@dmarc.ietf.org>, 6man WG <ipv6@ietf.org>, SPRING WG <spring@ietf.org>, Bob Hinden <bob.hinden@gmail.com>
References: <BYAPR05MB4245988C3A47C3665BD91172AE300@BYAPR05MB4245.namprd05.prod.outlook.com> <AA81898A-9E6C-4AD5-9629-4BA283378A79@cisco.com> <BYAPR05MB4245AEA785C959D29E4ECE61AE310@BYAPR05MB4245.namprd05.prod.outlook.com> <58529f07-acfc-3678-5381-4ae271143a45@gmail.com> <94EF12FB-0598-4E76-9A60-0CF67096DD04@employees.org> <CALx6S360dJD4_YcqMMy9k8NOLNdy1UZPAzBNOw1WpAz6iYfWag@mail.gmail.com> <CAO42Z2wBL=h=MKLshKUJa4m6aqTSGn4XQgKao06wKvvreKpB8w@mail.gmail.com> <CALx6S36q+7L7=7m_TgFJL5BN1ryM=9Kgb3sND1Rw+Pmza5OVYQ@mail.gmail.com> <DD003840-92D2-4878-B1CC-CDCB18FA527B@gmail.com> <BYAPR05MB42459C7A22F5AF2F1AB75CD1AE320@BYAPR05MB4245.namprd05.prod.outlook.com> <B2E808BB-E995-4AEE-A9E4-8AA7F92E4939@employees.org> <A1AE8525-F7A8-4375-AA53-BCFC466433AC@steffann.nl>
From: Stewart Bryant <stewart.bryant@gmail.com>
Message-ID: <171431c9-e709-83db-cf7d-a7715060961a@gmail.com>
Date: Thu, 09 May 2019 10:43:51 +0100
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1
MIME-Version: 1.0
In-Reply-To: <A1AE8525-F7A8-4375-AA53-BCFC466433AC@steffann.nl>
Content-Type: text/plain; charset="windows-1252"; format="flowed"
Content-Language: en-GB
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/spring/PheIVxhBxm0e-1JjHP2tzvgsl-E>
Subject: Re: [spring] SRv6 Network Programming: ENH = 59
X-BeenThere: spring@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Source Packet Routing in NetworkinG \(SPRING\)" <spring.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/spring>, <mailto:spring-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/spring/>
List-Post: <mailto:spring@ietf.org>
List-Help: <mailto:spring-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/spring>, <mailto:spring-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 09 May 2019 09:43:53 -0000


On 08/05/2019 19:34, Sander Steffann wrote:

> The whole point of these identifies is to tell the reader what the meaning is of what follows. Using value 59 like this looks like "when we say 'no-next-header' we actually mean 'ethernet' (probably)". That's just bad engineering, and reminds me of MPLS implementations that tried to guess what the payload was by looking at the first nibble (if it's 4 then it's probably an IPv4 packet, if it's a 6 then it's probably IPv6 and otherwise we treat it as ethernet). That kind of worked until MAC addresses starting with 4 and 6 started to be used... Let's not make such mistakes again and put proper labels on our payloads.

Exactly.

The exception that allowed Ethernet Pseudowires (PW) to run without the 
PW control word was introduced because some hardware could not process 
the control word at the time of initial roll-out. This led
to many complexities over the development life of PWs.

Eventually PALS had requests from both the operator community and the 
IEEE to address this problem which is why the latest RFC produced by the 
PALS WG is:

"Recommendation to Use the Ethernet Control Word"
https://datatracker.ietf.org/doc/rfc8469/

Referring back to the email I just sent earlier, a consequence of 
allowing Ethernet to run without the control word was significant 
complexity around PW OAM. OAM was also something that we did not 
originally think would be needed when we started the PW design around 
the year 2000, but we soon found out that it was an integral part of PW 
operations.

With NH=97 you have the bits that you need to introduce the essential 
characteristics of a control word - version and some bits for an 
associated channel identifier. The ACH identifier space available is 
much less in NH=97 than in the PW Control Word. However so far there 
have only been 24 channels (plus 8 Experimental Channels) allocated for 
use with Ethernet over MPLS PWs, so it ought to be possible to provide 
all of the support services needed in the 16 bits available in NH=97 
rather than requiring the 32 bits we used in PWs.

https://www.iana.org/assignments/g-ach-parameters/g-ach-parameters.xhtml

Of course if it turns out that 16 bits is not enough, then NH=97 has
a version field which allows the seamless introduction of new features
without needing a new NH type provided the version field check is
mandatory in the first version of the Standard.

- Stewart (PWE3 and then PALS chair)