Re: [netmod] WG Last Call: draft-ietf-netmod-acl-model-15

Eliot Lear <lear@cisco.com> Mon, 22 January 2018 22:06 UTC

Return-Path: <lear@cisco.com>
X-Original-To: netmod@ietfa.amsl.com
Delivered-To: netmod@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id BCBC712D7EB for <netmod@ietfa.amsl.com>; Mon, 22 Jan 2018 14:06:51 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -14.51
X-Spam-Level:
X-Spam-Status: No, score=-14.51 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_DEF_DKIM_WL=-7.5] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=cisco.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 u8i8u9KeIrmM for <netmod@ietfa.amsl.com>; Mon, 22 Jan 2018 14:06:49 -0800 (PST)
Received: from aer-iport-2.cisco.com (aer-iport-2.cisco.com [173.38.203.52]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 5EC04124D6C for <netmod@ietf.org>; Mon, 22 Jan 2018 14:06:48 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=17252; q=dns/txt; s=iport; t=1516658808; x=1517868408; h=subject:to:references:from:message-id:date:mime-version: in-reply-to; bh=ZTOyWgW5BecfAmGAQrAiIIByQJTRHH1zjVJLS9tZnrc=; b=PRVSK1mlX+TQnR1RfrDwbjs+NyqkXGgsl5azfUAT2wjIeEhY6KIKxqAW HWz06a5/Mk2YtOeK22xb8JtkXlJ99BGVg2pGhJjhWhjhwOHmFhdABpMf/ 7oAmzNXgt0GGjZFf2IOlhxP1AJX4J6sXx+JUYG1a6rRyodUXK5MEA3wEA o=;
X-Files: signature.asc : 488
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0CRAQAxX2Za/xbLJq1eGQEBAQEBAQEBAQEBAQcBAQEBAYJKAYFddCeDXYsYj3SRaoVpggIHAxgBCoE5AYMPTwKFRxUBAQEBAQEBAQFrKIUjAQEBAwEBASFLEAsLEQQBAQEqAgInKAgGAQwGAgEBiicIELR6gicmihMBAQEBAQEBAQEBAQEBAQEBAQEBAQEOCgWESYVUKYMFgy8BAQKBPAESASckgmuCZQWKWpkghF2CMY5NghuGH4Nxh3SXR4E8NSMlO3AyGggbFT2CKoRYQDeIJ4I8AQEB
X-IronPort-AV: E=Sophos;i="5.46,398,1511827200"; d="asc'?scan'208,217";a="1592472"
Received: from aer-iport-nat.cisco.com (HELO aer-core-1.cisco.com) ([173.38.203.22]) by aer-iport-2.cisco.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 22 Jan 2018 22:06:46 +0000
Received: from [10.61.198.231] ([10.61.198.231]) by aer-core-1.cisco.com (8.14.5/8.14.5) with ESMTP id w0MM6j99000770; Mon, 22 Jan 2018 22:06:45 GMT
To: Alex Campbell <Alex.Campbell@Aviatnet.com>, Kent Watsen <kwatsen@juniper.net>, "netmod@ietf.org" <netmod@ietf.org>
References: <8C19AD4C-0DCA-4D96-A070-0D76BE92BFA4@juniper.net> <1e5da232-82cd-5a1a-930e-555796bd2ef7@cisco.com> <1516658524969.70610@Aviatnet.com>
From: Eliot Lear <lear@cisco.com>
Message-ID: <9e65fc46-be29-f854-ae83-6bd0130a6c8e@cisco.com>
Date: Mon, 22 Jan 2018 23:06:45 +0100
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.5.2
MIME-Version: 1.0
In-Reply-To: <1516658524969.70610@Aviatnet.com>
Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="JBmHCGea4gesvPWUpMS3B9JKaLP4gwfma"
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/MxDld9YCnzzjTgB5p8f6s4UgIBE>
Subject: Re: [netmod] WG Last Call: draft-ietf-netmod-acl-model-15
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: NETMOD WG list <netmod.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/netmod>, <mailto:netmod-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/netmod/>
List-Post: <mailto:netmod@ietf.org>
List-Help: <mailto:netmod-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/netmod>, <mailto:netmod-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 22 Jan 2018 22:06:52 -0000


On 22.01.18 23:02, Alex Campbell wrote:
>
>
> Hi,
>
>
> Good point - adding on to that, I'd like to point out that there are
> more protocols that use ports besides TCP and UDP, such as SCTP and DCCP.
> If the port number was not protocol-specific then devices would also
> have to match SCTP ports, DCCP ports, and other protocol ports, even
> for protocols which haven't been invented yet. This is not possible to
> implement.
>
> > Thus, if a very simple device can understand TCP and UDP ports but
> cannot understand more detailed information, that is supported.
>
>
> I don't think YANG features can possibly envision or handle all the
> potential variations between devices, unless we give each criterion
> its own separate feature.
>
> To my knowledge, the device I am currently working on doesn't support
> port range matching, or operators other than 'equals', and I see there
> is currently no YANG feature for that.
>
> Do you think it would be better to let vendors use deviations to
> indicate which features aren't supported?
>

Yes, and so I agreed to Mahesh's simpler change.

Eliot
>
>
>
> ------------------------------------------------------------------------
> *From:* netmod <netmod-bounces@ietf.org> on behalf of Eliot Lear
> <lear@cisco.com>
> *Sent:* Tuesday, 23 January 2018 8:14 a.m.
> *To:* Kent Watsen; netmod@ietf.org
> *Subject:* Re: [netmod] WG Last Call: draft-ietf-netmod-acl-model-15
>  
>
> Hi Kent and Mahesh and Sonal,
>
> Thanks very much for working on this draft.  I have noted one problem
> that I think needs correcting.  I come prepared with a diff.
>
> The current model has {source,dest}-port-or-range hanging off ipv4 or
> ipv6.  This is a transport parameter and is not appropriate for
> protocols that do not use ports (ie, ICMP, ESP, etc).  A better locale
> would be to hang these components underneath l4 underneath their
> respective tcp and udp branches.
>
> Because this is so basic a function, I propose that this *not* be
> included in match-on-tcp or match-on-udp.  Instead, the contents of
> both tcp and udp be moved to new containers "tcp-all" and "udp-all",
> respectively, and the ports hang as peers to that.  Thus, if a very
> simple device can understand TCP and UDP ports but cannot understand
> more detailed information, that is supported.
>
>  And so from a tree perspective, it would look like this:
>
>
>        |        |  +--rw (l4)?
>        |        |  |  +--:(tcp)
>        |        |  |  |  +--rw tcp
>        |        |  |  |     +--rw source-port-range-or-operator
>        |        |  |  |     |  +--rw (port-range-or-operator)?
>        |        |  |  |     |     +--:(range)
>        |        |  |  |     |     |  +--rw lower-port    inet:port-number
>        |        |  |  |     |     |  +--rw upper-port    inet:port-number
>        |        |  |  |     |     +--:(operator)
>        |        |  |  |     |        +--rw operator?     operator
>        |        |  |  |     |        +--rw port          inet:port-number
>        |        |  |  |     +--rw destination-port-range-or-operator
>        |        |  |  |     |  +--rw (port-range-or-operator)?
>        |        |  |  |     |     +--:(range)
>        |        |  |  |     |     |  +--rw lower-port    inet:port-number
>        |        |  |  |     |     |  +--rw upper-port    inet:port-number
>        |        |  |  |     |     +--:(operator)
>        |        |  |  |     |        +--rw operator?     operator
>        |        |  |  |     |        +--rw port          inet:port-number
>        |        |  |  |     +--rw tcp-all {match-on-tcp}?
>        |        |  |  |        +--rw sequence-number?          uint32
>        |        |  |  |        +--rw acknowledgement-number?   uint32
>        |        |  |  |        +--rw data-offset?              uint8
>        |        |  |  |        +--rw reserved?                 uint8
>        |        |  |  |        +--rw flags?                    bits
>        |        |  |  |        +--rw window-size?              uint16
>        |        |  |  |        +--rw urgent-pointer?           uint16
>        |        |  |  |        +--rw options?                  uint32
>        |        |  |  +--:(udp)
>        |        |  |  |  +--rw udp
>        |        |  |  |     +--rw source-port-range-or-operator
>        |        |  |  |     |  +--rw (port-range-or-operator)?
>        |        |  |  |     |     +--:(range)
>        |        |  |  |     |     |  +--rw lower-port    inet:port-number
>        |        |  |  |     |     |  +--rw upper-port    inet:port-number
>        |        |  |  |     |     +--:(operator)
>        |        |  |  |     |        +--rw operator?     operator
>        |        |  |  |     |        +--rw port          inet:port-number
>        |        |  |  |     +--rw destination-port-range-or-operator
>        |        |  |  |     |  +--rw (port-range-or-operator)?
>        |        |  |  |     |     +--:(range)
>        |        |  |  |     |     |  +--rw lower-port    inet:port-number
>        |        |  |  |     |     |  +--rw upper-port    inet:port-number
>        |        |  |  |     |     +--:(operator)
>        |        |  |  |     |        +--rw operator?     operator
>        |        |  |  |     |        +--rw port          inet:port-number
>        |        |  |  |     +--rw udp-all {match-on-udp}?
>        |        |  |  |        +--rw length?   uint16
>
>
> A diff ietf-packet-fields.yang and ietf-access-control-lists.yang is
> attached.
>
> Eliot
>
>
>
> On 17.01.18 22:55, Kent Watsen wrote:
>> All,
>>
>> This starts a two-week working group last call on
>> draft-ietf-netmod-acl-model-15.
>>
>> This working group last call ends on January 31st.
>> Please send your comments to the NETMOD mailing list.
>>
>> Positive comments, e.g., "I've reviewed this document
>> and believe it is ready for publication", are welcome!
>> This is useful and important, even from authors.
>>
>> Also, could the authors, explicitly CC-ed on this email,
>> please confirm at this time that they are unaware of
>> any IPR related to this draft.
>>
>> Thank you,
>> NETMOD Chairs
>>
>> _______________________________________________
>> netmod mailing list
>> netmod@ietf.org
>> https://www.ietf.org/mailman/listinfo/netmod
>>
>