Re: [spring] Per segment service instructions

Robert Raszuk <rraszuk@gmail.com> Mon, 16 September 2019 16:27 UTC

Return-Path: <rraszuk@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 23CEE12004F; Mon, 16 Sep 2019 09:27:35 -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, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, 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 nOTChirea1tB; Mon, 16 Sep 2019 09:27:31 -0700 (PDT)
Received: from mail-pg1-x536.google.com (mail-pg1-x536.google.com [IPv6:2607:f8b0:4864:20::536]) (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 624E3120026; Mon, 16 Sep 2019 09:27:31 -0700 (PDT)
Received: by mail-pg1-x536.google.com with SMTP id a24so303410pgj.2; Mon, 16 Sep 2019 09:27:31 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=PQyzZ7OdTTyI1cG8v3KBAQ2i/oZyIRvAsjslZlIvHdo=; b=O8q7FatcTVUJ+xyCRXZv6DJyk57qV33zLSorA2cml56qgiczNnlzuz/DsVTU5jelwM oAI3kBcdD00yaallmcEkz6owlbXhV4vBjFQxetI8br9w8MkdnOiOzjoKIjV123cxSOiJ T0GWwKueqRZVhA+Mpv7gZj/tOm2YHZVMJNiiGA8MAJdr+RLCqwTsReRFJSbjH82keQqM 2NtFAum1jjzXzs1AOUEysop2Sg59jiVMbM0glg8Gm06JKSgSvn2fHHqb/hj2WkgNInnS yNEj19OnJ9CrdwIwFBScVwu95F6roQtMAP+lV5XAjG1rlPBrbgDq0U4xCoQabKeKGPf2 JM5A==
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=PQyzZ7OdTTyI1cG8v3KBAQ2i/oZyIRvAsjslZlIvHdo=; b=rp89+Ao1TOEHfwyI5fExk6bSGhramoh0LVEB8xoRMOLqKZ8m9JrCc8bA/MQQktkxJp 5p5FY/fp4gzBYny/OdfVLjojTrl6a9M5wf12lXwF+lkpKKVVjNMjMK7GhijPlMC9UYSm agcsz1Byhq5i1JUH7VrXAswt/keuJmYqDDBGPOwS8B7+WAL2sAcToYcTFowXfrlLlm9t /6novgFpMe3ddbU45ufNUAYnAITcciWm27R32Ggmhm5CcsXcEUTP+xvldTI+yJXtupdZ JqyWXAP3Fe6aKUjOz8NqCid/kGi7G7zIDrhMm1zw97xDKlt0het/89lGeA3rrpYeOFaO oqrg==
X-Gm-Message-State: APjAAAWrZbYT95D4kiFn4s8nlDjpHHWq6OuV/Euvdjz9aLHkscq7+V3R TWA9YP0KJ8fss0n/NcPPCOXn4ERVMceMcOgzpIg=
X-Google-Smtp-Source: APXvYqzR30Ow4/SYngKgYqJQ3gcsB7i0MhSkLZWqGZX4LZ+4ZU/WUwYhT9m/8V4D7bJ7Sm6pkZZRpLMC/1KAm0/YGPI=
X-Received: by 2002:a17:90a:c58e:: with SMTP id l14mr88911pjt.46.1568651250341; Mon, 16 Sep 2019 09:27:30 -0700 (PDT)
MIME-Version: 1.0
References: <5971B5F4-74C1-4DD0-BBD2-D76BE105532E@bell.ca> <BYAPR19MB3415DA7196E45FF52A740ED3FC8C0@BYAPR19MB3415.namprd19.prod.outlook.com>
In-Reply-To: <BYAPR19MB3415DA7196E45FF52A740ED3FC8C0@BYAPR19MB3415.namprd19.prod.outlook.com>
From: Robert Raszuk <rraszuk@gmail.com>
Date: Mon, 16 Sep 2019 18:27:18 +0200
Message-ID: <CA+b+ER=zufrB+NMaPQY7mmsdzyRZsy1fFb=86zr-BTbLnvgCgw@mail.gmail.com>
Subject: Re: [spring] Per segment service instructions
To: Tarek Saad <tsaad.net@gmail.com>
Cc: "Bernier, Daniel" <daniel.bernier@bell.ca>, Ron Bonica <rbonica=40juniper.net@dmarc.ietf.org>, SPRING WG <spring@ietf.org>, 6man <6man@ietf.org>
Content-Type: multipart/alternative; boundary="0000000000008d9c2e0592ae14e4"
Archived-At: <https://mailarchive.ietf.org/arch/msg/ipv6/qhWOK03lMtfDrjydWnZRhgGapT8>
X-BeenThere: ipv6@ietf.org
X-Mailman-Version: 2.1.29
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: Mon, 16 Sep 2019 16:27:35 -0000

Dear Tarek,

Your line of thinking is correct but please no more additional levels of
abstraction. Why not just use normal routable prefix on the node as part of
the instruction ?

And if so we are back to use of SRH as is - even if only for network
programming :).

Best,
R.

On Mon, Sep 16, 2019 at 6:00 PM Tarek Saad <tsaad.net@gmail.com> wrote:

> Hi all,
>
>
>
> A possible way to avoid domain wide scope of PSSI, would be to encode a
> per node ID within the PSSI (per node namespace of Service IDs).
>
> This allows the node parsing the DOH to identify PSSI(s) that needs to be
> invoked locally and to resolve the Service ID within its node scope. The
> per node ID can be a SRV6+ short SID that is instantiated locally on the
> node.
>
>
>
> So, a PSSI = Short-SID.SE1
>
>
>
> DOH can contain:
>
> Short-SID1.SE1
>
> Short-SID2.SE2
>
> Etc.
>
>
>
> Regards,
>
> Tarek
>
>
>
>
>
>
>
> *From: *spring <spring-bounces@ietf.org> on behalf of "Bernier, Daniel" <
> daniel.bernier@bell.ca>
> *Date: *Saturday, September 14, 2019 at 1:03 AM
> *To: *Ron Bonica <rbonica=40juniper.net@dmarc.ietf.org>, Robert Raszuk <
> robert@raszuk.net>
> *Cc: *SPRING WG <spring@ietf.org>, 6man <6man@ietf.org>
> *Subject: *Re: [spring] Per segment service instructions
>
>
>
> Hi Ron,
>
>
>
> If PSSI provide non-routing services such as SE1 from Robert’s example
> which offers DPI, FW and Packet Replication then, I need a domain-wide PSSI
> defining DPI + FW + Sampling but if somewhere else in my network I just
> need FW, then I need another domain-wide PSSI for only FW.
>
> In that model, I will end up with and endless list of permutations which
> must be agreed upon to ensure interop (i.e. vendor A cannot use a PSSI X
> for FW while vendor B think’s its DPI).
>
> Thx
>
> Dan B
>
>
>
>
>
>
>
> On 2019-09-13, 2:10 PM, "ipv6 on behalf of Ron Bonica" <
> ipv6-bounces@ietf.org on behalf of rbonica=40juniper.net@dmarc.ietf.org>
> wrote:
>
>
>
> Robert,
>
>
>
> In your email, you ask how I would solve a TE problem with a Per Segment
> Service Instruction (PSSI).. In SRv6+:
>
>
>
> -          The CRH and the SIDs that it contains are used to solve TE
> problems
>
> -          The PSSI is used too provide non-routing services (e.g.,
> firewalling, sampling, DPI)
>
>
>
> This leaves the following questions to be answered:
>
>
>
> -          How would I solve the TE problem that you describe in your
> email?
>
> -          Given another example, explain how PSSI works?
>
>
>
> Which question would you like me to tackle first?
>
>
>
>                                                                     Ron
>
>
>
>
>
> *From:* Robert Raszuk <robert@raszuk.net>
> *Sent:* Friday, September 13, 2019 8:45 AM
> *To:* Ron Bonica <rbonica@juniper.net>
> *Cc:* SPRING WG <spring@ietf.org>; 6man <6man@ietf.org>
> *Subject:* Per segment service instructions
>
>
>
> Dear Ron,
>
>
>
> I have read yet one more draft from the SRv6+ package defining another
> Destination Option type - this time Per Segment Service Instruction(s)
> described in draft-bonica-6man-seg-end-opt
>
>
>
> I have one technical question regarding it.
>
>
>
> Imagine I have following topology - drawing only what is relevant to the
> question:
>
>
>
> PE1 - - P1 - - SE1 - - P2 - -  SE2 - - P3 - - PE2
>
>
>
> When packet enters the network PE1 is instructed to program my flow A to
> execute following following functions on Segment End 1 (SE1) and Segment
> End 2 (SE2):
>
>
>
> SE1 - When packet is routed out of SE1 consider only interfaces of bw 10G
> and up
>
>
>
> SE2 - When packet is routed out of SE2 make sure that path to segment end
> node is no more then 2 hops away.
>
>
>
> From reading the draft I think the answer is that you mandated the segment
> end functions in SRv6+ to have domain-wide significance such that the
> function itself contains not only the instruction but also as it is of
> domain-wide significance the location of the instruction to execute it on.
>
>
>
> So far so good ... Flow-A get's CRH and PSSI encoding the above
> requirement.
>
>
>
> When packet enters SE1 Destination Options preceding RH is read and PSSIs
> are attempted to get executed ! Both instructions are tried but only one is
> known so only one get's executed on SE1. Same story on SE2.
>
>
>
> Not sure if eveyone would be ok with such model to read and attempt to
> execute instructions which are not for a given end segment but let's assume
> some may accept it.
>
>
>
> But now how unfortunate it may sound PE1 is receving the flow-B and for
> flow B the requirements are opposite:
>
>
>
> SE1 - When packet is routed out of SE1 make sure that path to segment end
> node is no more then 2 hops away.
>
>
>
> SE2 - When packet is routed out of SE2 consider only interfaces of bw 10G
> and up.
>
>
>
> Well what do you - simple - you allocate another two domain wide functions
> and encode it in the packet at PSSI DOH on PE1.
>
>
>
> But if my description matches the plan you now end up with per flow !!!
> state in the network which is the price to pay for splitting SIDs with its
> functions into completely different headers.
>
>
>
> I don't know about others but I think we went in the past via multiple
> attempts to put any per flow state into the large network and it all failed
> when faced scale.
>
>
>
> Also SR specifically in its architecture RFC8402 says that segment routing
> is "maintaining per-flow state only at the ingress node(s) to the SR
> domain."
>
>
>
> Kind regards,
>
> Robert.
>
>
>
>
>
> Juniper Business Use Only
> --------------------------------------------------------------------
> IETF IPv6 working group mailing list
> ipv6@ietf.org
> Administrative Requests: https://www.ietf.org/mailman/listinfo/ipv6
> --------------------------------------------------------------------
>