Re: [bess] Some comments on draft-ietf-bess-nsh-bgp-control-plane-03

"Adrian Farrel" <adrian@olddog.co.uk> Mon, 02 July 2018 08:19 UTC

Return-Path: <adrian@olddog.co.uk>
X-Original-To: bess@ietfa.amsl.com
Delivered-To: bess@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 572C0130E4C for <bess@ietfa.amsl.com>; Mon, 2 Jul 2018 01:19:30 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.598
X-Spam-Level:
X-Spam-Status: No, score=-2.598 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, 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 2QV0GChxUfI6 for <bess@ietfa.amsl.com>; Mon, 2 Jul 2018 01:19:27 -0700 (PDT)
Received: from mta8.iomartmail.com (mta8.iomartmail.com [62.128.193.158]) (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 C084A130E41 for <bess@ietf.org>; Mon, 2 Jul 2018 01:19:23 -0700 (PDT)
Received: from vs1.iomartmail.com (vs1.iomartmail.com [10.12.10.121]) by mta8.iomartmail.com (8.14.4/8.14.4) with ESMTP id w628JDkO009864; Mon, 2 Jul 2018 09:19:14 +0100
Received: from vs1.iomartmail.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 7D50422040; Mon, 2 Jul 2018 09:19:13 +0100 (BST)
Received: from asmtp2.iomartmail.com (unknown [10.12.10.249]) by vs1.iomartmail.com (Postfix) with ESMTPS id 67D942203C; Mon, 2 Jul 2018 09:19:13 +0100 (BST)
Received: from 950129200 ([141.85.216.4]) (authenticated bits=0) by asmtp2.iomartmail.com (8.14.4/8.14.4) with ESMTP id w628JBl5019618 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 2 Jul 2018 09:19:12 +0100
Reply-To: adrian@olddog.co.uk
From: Adrian Farrel <adrian@olddog.co.uk>
To: 'Jiangyuanlong' <jiangyuanlong@huawei.com>, bess@ietf.org
References: <3B0A1BED22CAD649A1B3E97BE5DDD68BBC0EB533@dggeml512-mbx.china.huawei.com> <03c601d41114$24518f50$6cf4adf0$@olddog.co.uk> <3B0A1BED22CAD649A1B3E97BE5DDD68BBC0ED267@dggeml512-mbx.china.huawei.com>
In-Reply-To: <3B0A1BED22CAD649A1B3E97BE5DDD68BBC0ED267@dggeml512-mbx.china.huawei.com>
Date: Mon, 02 Jul 2018 09:19:08 +0100
Message-ID: <00bb01d411dd$5a266fa0$0e734ee0$@olddog.co.uk>
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="----=_NextPart_000_00BC_01D411E5.BBF3D850"
X-Mailer: Microsoft Outlook 14.0
Thread-Index: AQIaxz/swkbRu1mkW/11UDQ1GMROxwIZIjUPAN31Voqj1m+HUA==
Content-Language: en-gb
X-Originating-IP: 141.85.216.4
X-Thinkmail-Auth: adrian@olddog.co.uk
X-TM-AS-GCONF: 00
X-TM-AS-Product-Ver: IMSVA-9.0.0.1623-8.2.0.1013-23942.005
X-TM-AS-Result: No--22.450-10.0-31-10
X-imss-scan-details: No--22.450-10.0-31-10
X-TMASE-Version: IMSVA-9.0.0.1623-8.2.1013-23942.005
X-TMASE-Result: 10--22.450300-10.000000
X-TMASE-MatchedRID: CxmI61mtwh8DJrf2+hNOhSArD+K6XhnHQKuv8uQBDjqAbpb0dJRUhSf8 s37doWm/oQsW8Y9k0gCWuavAD3lzdQBzsqbtJLmswR3oBUcW2mPbW9tZdSdI3GecrqZc3vabIZn pVU5Vh5b+SkxPwt4b9PaaEZAHJRdefNMhSGKNK0asDodw9yUkxmWuy5Lm0L4/2oLGTNKlb9dm0t h/cpZZUmU9uTdLUidlFaI+keEQkCywSPS/5zrO73BRIrj8R47FmdrHMkUHHq8BWxwPU6jS0MTa6 QU8KSIBlTJXKqh1ne3NwRjjRe/KjMKeawlXnk8LEkuaUAMmMYpQCOsAlaxN73oZ5YK74mUQKPnd oQHmoMv5bBjbGTJ+qMpuWWXqz2aVVDt884Mvu5DFlCgYxEaGE6HErxDyhjvncPDElbD+F/KXM0R ssQCD15v95NYHIKAjM3vE5vnyFGjjpwa9zJqeRlVN8laWo90MB3r0xk97gYhRqu3FKnxndRWehq ET8vGVw5yfJwtY7CujgR1IoVmC+gndS/EQWb2nnprizKKMwmaMjqpeR/YVDTlh3vti771a14MD5 bviU/XT3D0irYdyjLEtVC0BMbqHO6sfSrHWQFiwHK2BMXhNNN9WrDP4LKdpGA7uwIZNHQ1cX89d DrF4+Q7G7azt901XixYJ8/oaa/l1tKCSzroCgfYiLRVJ915DO69hrW/YgWFPHRT/jT6uvolbXig Dnfa4Ja6rGJR4RfowuiDzT/FFiVHi+vC6FxL8BU4uU+5y12ot0t+aIVLt+5KzWy3+GmBuXM4pVH n2LwM/makG0+v97t639oRBFUkeQ0pFGvYtteueAiCmPx4NwGmRqNBHmBvevqq8s2MNhPDPPeN6H N6d7HWvwUFsXQjm33fj+sMArfOEbaqKQSlAZaW6zvuxf2vrSFx6TP5Tque4iFO+MB6es+f77WGF 5JvdHSi7Lgk+Ozg=
X-TMASE-SNAP-Result: 1.821001.0001-0-1-12:0,22:0,33:0,34:0-0
Archived-At: <https://mailarchive.ietf.org/arch/msg/bess/Rl_TZZy-QewGHFvyORh-nQW2EPI>
Subject: Re: [bess] Some comments on draft-ietf-bess-nsh-bgp-control-plane-03
X-BeenThere: bess@ietf.org
X-Mailman-Version: 2.1.26
Precedence: list
List-Id: BGP-Enabled ServiceS working group discussion list <bess.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/bess>, <mailto:bess-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/bess/>
List-Post: <mailto:bess@ietf.org>
List-Help: <mailto:bess-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/bess>, <mailto:bess-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 02 Jul 2018 08:19:30 -0000

Ah, got it. Sorry for being dim.
 
In fact, there are four load balancing scenarios:
- Classifier balances across SFPs
- SFF balances across locally-attached SFIs
- SFF balances across downstream SFFs to reach downstream SFIs
- SFF balances across locally-attached SFIs *and* downstream SFFs to reach
downstream SFIs
 
This last case is the one you are adding to the discussion, and it is valid.
 
We've missed the cut-off for updating a new version before IETF-102, but I've
added it to my work list for this draft.
 
Thanks,
Adrian
 
From: Jiangyuanlong [mailto:jiangyuanlong@huawei.com] 
Sent: 02 July 2018 07:27
To: adrian@olddog.co.uk; bess@ietf.org
Subject: RE: Some comments on draft-ietf-bess-nsh-bgp-control-plane-03
 
Dear Adrian,
 
Thank you for your prompt reply.
I totally agree with you that "load balancing in SFC is something that has to be
done carefully to avoid packet ordering issues and protect stateful SF
processing.
That basically means that load balancing decisions need to be made with SFP and
flow awareness."
How to do load balancing with SFPs is more clearly described in your document,
but how to enable flow awareness for load balancing is less obvious.
 
I think the examples in 8.9.3 and 8.9.4 only show load balancing on parallel
SFFs, not on serial SFFs as in the following example:
 
                                             ------
                                            | SFIb |
                                            |SFT=42|
                                             ------
                  ------      ------           |
                 | SFI  |    | SFIa |      ---------
                 |SFT=41|    |SFT=42|     |   SFF5  |
                  ------      ------    ..|192.0.2.5|..
                       \    /         ..:  ---------  :..
                      ---------     .:                 :.---------
       ------        |   SFF1  |--/      ---------     |   SFF3  |
   -->|Class-|.......|192.0.2.1|........|   SFF6  |....|192.0.2.3|-->
   -->| ifier|        ---------         |192.0.2.6|    :---------
       ------                              ---------          |
                                               |            ------
                                             ------        | SFI  |
                                            | SFIc |       |SFT=43|
                                            |SFT=42|        ------
                                             ------   
 
As shown above, SFIa, SFIb and SFIc are attached to SFF1, SFF5, and SFF6
respectively.
Similarly, it is valid to use load balancing on SFPs or flows in this case.
 
Cheers,
Yuanlong
 
From: Adrian Farrel [mailto:adrian@olddog.co.uk] 
Sent: Sunday, July 01, 2018 4:19 PM
To: Jiangyuanlong <jiangyuanlong@huawei.com>; bess@ietf.org
Subject: RE: Some comments on draft-ietf-bess-nsh-bgp-control-plane-03
 
Hey Yuanlong,
 
Thanks for your thoughtful comments.
 
> I had a review of draft-ietf-bess-nsh-bgp-control-plane-03, thank you for this
useful
> document and hope it can progress quickly.
> 
> In my opinion, this version still has some ambiguities which need to be
cleaned up:
> 
> 1. In Section 3.1.1, it firstly says:" The SFI Pool Identifier is encoded as
an 8 octet
>      value as shown in Figure 4."  However, it then says in the end of this
subsection:
>     "The SFI Pool Identifier is a six octet, globally unique value encoded in
network
>      byte order." These two sentences are confusing.
 
Yes. Confusion.
 
The 8 is supposed to refer to the whole extended community, while the 6 refers
to the SPI Pool Identifier field.
 
I will clean this up.
 
> The 1st occurrence of SFI Pool Identifier shall be fully spelled out as "SFI
Pool
> Identifier extended community". Furthermore, "SPI Pool Identifier" in Figure 4
> seems to be "SFI Pool Identifier" as there is no definition for the former
term in
> the document. There are "SPI Pool Identifier" in other sections need to be
> consistent as well, such as "SPI Pool Identifier" in the last paragraph of
Section
> 3.2.1.3. 
 
Oh, thanks!
 
>  2. The definitions of "Service Function Type" in Figure 3 and Figure 9 are 
>       different and ambiguous. Maybe it can be simply defined as "The
identifier
>       for a type of service function". 
 
Hmmm, yes the text in 3.1 and 3.2.1.3 is all mixed up! We can't tell the
difference between an RD and a pool identifier!
 
> 3. "SFIR-RD List" in Figure 9 may be replaced with "SFIR-RD/SFI pool ID list",
as
>     SFI pool ID is different from SFIR-RD and the list may consist of pure SFI
pool
>     IDs.
 
Yes, again. As noted, 3.2.1.3 is all mixed up.         
 
> One further note is, upon processing this variable, we need to distinguish
> RD Type and SFI Pool Identifier Type, the IANA will need to take care not to
allocate 0x80XX for SFIR-RD Type.  
 
Yes, it's all a mess! Looks like we introduced the pool identifier without
enough thought :-(
What I have done for the next version is make a second sub-TLV of the Hop TLV so
that SFIs and SFI Pool Identifiers are kept separate.
 
> Some minor editorial comments:
> 4.      "SFRIR-RD list" in Section 4.3 is misspelling.
 
Yes
 
> 5.      s/a packets/a packet/
 
Yes
 
> 6.      s/ach subtended/as subtended/
 
Should be "each"
 
> BTW, I think it is useful to support load balancing SFs across multiple SFFs
as
> described in Section 5.5 of RFC 7665, this will enable a more flexible
deployment
> of similar service functions in multiple sites across a network, such as in 5G

> transport.
> In fact, Figure 11 in your draft already demonstrates that SF Type 41 has two
> instances attached to SFF1 and SFF2 respectively, I think another example can
> be added for load balancing across multiple SFFs, such as the following:
>                                             ------
>                                            | SFIa |
>                                            |SFT=42|
>                                             ------
>                  ------      ------           |
>                 | SFI  |    | SFI  |      ---------
>                 |SFT=41|    |SFT=42|     |   SFF5  |
>                  ------      ------    ..|192.0.2.5|..
>                       \    /         ..:  ---------  :..
>                      ---------     .:                 :.---------
>       ------        |   SFF1  |--/      ---------     |   SFF3  |
>   -->|Class-|.......|192.0.2.1|........|   SFF6  |....|192.0.2.3|-->
>   -->| ifier|        ---------         |192.0.2.6|    :---------
>       ------                              ---------          |
>                                               |            ------
>                                             ------        | SFI  |
>                                            | SFIb |       |SFT=43|
>                                            |SFT=42|        ------
>                                             ------   
 
Yes, an example of load balancing is a god thing to include in the examples.
Of course, load balancing in SFC is something that has to be done carefully to
avoid packet ordering issues and protect stateful SF processing.
That basically means that load balancing decisions need to be made with SFP and
flow awareness.
This is the point made by the examples in Section 8.9, and specifically the
examples in 8.9.3 and 8.9.4.
Can you have another look at those two examples and say whether they address the
load balancing you were thinking about?
 
Thanks,
Adrian