Re: 6man w.g. last call for <draft-ietf-6man-segment-routing-header-11.txt>

Brian E Carpenter <brian.e.carpenter@gmail.com> Wed, 11 April 2018 02:48 UTC

Return-Path: <brian.e.carpenter@gmail.com>
X-Original-To: ipv6@ietfa.amsl.com
Delivered-To: ipv6@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 8031B126C0F for <ipv6@ietfa.amsl.com>; Tue, 10 Apr 2018 19:48:03 -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=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 m88SlFV8hB2N for <ipv6@ietfa.amsl.com>; Tue, 10 Apr 2018 19:48:01 -0700 (PDT)
Received: from mail-pl0-x22c.google.com (mail-pl0-x22c.google.com [IPv6:2607:f8b0:400e:c01::22c]) (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 D1A221201F8 for <ipv6@ietf.org>; Tue, 10 Apr 2018 19:48:01 -0700 (PDT)
Received: by mail-pl0-x22c.google.com with SMTP id v5-v6so286816plo.4 for <ipv6@ietf.org>; Tue, 10 Apr 2018 19:48:01 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=9Y1gBfvNtIa/bCBKcCjgaC0N7PLfp8ity0WtuXZsTj0=; b=MKoS2FcZJmCr/PjGIjBwbeyh/bocqMFA9lgSkCiIyOe1ach/K7w/2ITfrUfRnMrHv8 11ORss7NVbwXE9GIs9lUb6BQNZ3IbourX/2zlgCoGYGUWJcyIfecEduRvgKaYgyGctBV 3kOGWjBsOSCUcYtMvYBx4fnB/zRNvlfNGYREjl6HgyD/67p+kLil+FFJNk+wBdXV7n20 sNlI8h8K2SuEPUaHX0W/3T1lQUKynthTF/Nb1ltSNnpPPSyYc52Tl1vvnvl0gudagchG 9EPmIb1inoeGPA6uPuX2fWgZjmVCzzHk7guSP3Owbfb5LEV1UpHFew2bc/mavX7baKV0 wDKw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=9Y1gBfvNtIa/bCBKcCjgaC0N7PLfp8ity0WtuXZsTj0=; b=kl71kYv4B4PV/mG/arUBzPgsKG8EII7jvkOOYpdqfrQ/1ClzIc/M3OhNgTuaYA9Mxb 9s8efEYV8OGyYUYic9VwobUltwlnoEHnsZt9fbFvVYasGVo/NtWEuxZK5ToyddhOshvz CUjYuHsHP79ZN2b28s5RD1R+BgXBBSo2b8ZN91sJljiNSWuQqdPPqNNlasbc/8cZphgz LCdFHJlFNWLlhxyJeKhoaiPWrBCouwGRf5tmFXT+4TikE8aUolizJxIg8hcTEl1uaPCH N7W26eQSRosJLJxpm0cVn0wqqyuIlS71VeTH7uk0NMKOLA7mGTPCagvchVMlERtdTG2L CDhg==
X-Gm-Message-State: ALQs6tBOdDSucaxnEs5bjPF4DhoKPukDI34SGnN9DLPhSMyQHqC6h3Uf zs+Zzl/IH0ztifxxveZlwqU=
X-Google-Smtp-Source: AIpwx4871zIfwKGqK6kNN6vLZ8ac/EAlJapIax91r8xA+9yv6J2kxLHG2qlQ21QD1BXsfhM846hamQ==
X-Received: by 2002:a17:902:9a48:: with SMTP id x8-v6mr2992853plv.135.1523414881266; Tue, 10 Apr 2018 19:48:01 -0700 (PDT)
Received: from [192.168.178.26] ([118.148.68.60]) by smtp.gmail.com with ESMTPSA id f13sm174913pfj.170.2018.04.10.19.47.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 10 Apr 2018 19:48:00 -0700 (PDT)
Sender: Brian Carpenter <becarpenter46@gmail.com>
Subject: Re: 6man w.g. last call for <draft-ietf-6man-segment-routing-header-11.txt>
To: stefano previdi <stefano@previdi.net>, Ron Bonica <rbonica@juniper.net>
Cc: IPv6 List <ipv6@ietf.org>, Bob Hinden <bob.hinden@gmail.com>
References: <20160428004904.25189.43047.idtracker@ietfa.amsl.com> <FB1C6E49-81F7-49DD-8E8B-2C0C4735071B@gmail.com> <SN6PR05MB424035B6FECB0057676067B1AEA40@SN6PR05MB4240.namprd05.prod.outlook.com> <87EAF1D7-FC8A-4661-990E-ECCF4AA7C12E@previdi.net> <SN6PR05MB42406D76603C4D7E1B3BE321AEBB0@SN6PR05MB4240.namprd05.prod.outlook.com> <73072E00-E549-488E-8960-B62ACE2F8511@previdi.net>
From: Brian E Carpenter <brian.e.carpenter@gmail.com>
Message-ID: <13f4e68e-b9a7-ef15-af87-fbb17b3b18d5@gmail.com>
Date: Wed, 11 Apr 2018 14:48:00 +1200
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0
MIME-Version: 1.0
In-Reply-To: <73072E00-E549-488E-8960-B62ACE2F8511@previdi.net>
Content-Type: text/plain; charset="utf-8"
Content-Language: en-US
Content-Transfer-Encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/ipv6/vLCRk8Sl5w2PjxWOoD9aD1m7w1U>
X-BeenThere: ipv6@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: "IPv6 Maintenance Working Group \(6man\)" <ipv6.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ipv6>, <mailto:ipv6-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/ipv6/>
List-Post: <mailto:ipv6@ietf.org>
List-Help: <mailto:ipv6-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ipv6>, <mailto:ipv6-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 11 Apr 2018 02:48:03 -0000

On 09/04/2018 20:09, stefano previdi wrote:
...
>> By contrast, draft-ietf-6man-segment-routing header defines the Segments Left as follows:
>>
>> "Defined in [RFC8200], it contains the index, in the Segment List, of the next segment to inspect.  Segments Left  is decremented at each segment.

Maybe you should say:
 Segments Left is decremented at each segment after processing the segment list and
 before forwarding the packet.

>> Therefore, if a packet arrives at a node and the following conditions are true, the node processes Segment[0]:
>>
>> - The packets IPv6 Destination address is local to the node
>> - The packet contains a Routing Extension Header
>> - The SL value in the Routing Extension Header is equal to 0
> 
> 
> SL==0 doesn’t imply any processing of the SRH. Both END and END.x functions starts with “IF SegmentsLeft > 0”.

IMHO that needs to be stated normatively in the spec, even if it seems obvious.
The section you are referring to only says:
"In this section we review two functions that may be associated to a segment:"
and cites an informational reference (draft-ietf-spring-segment-routing).
So the junior programmer asked to actually write some network processor code
doesn't know that she MUST NOT process the SRH, because it's only a lower
case "may".

   Brian