[Detnet] IP Solution problem: Use of DSCP and ECN fields in IP headers for detnet flow identification

"Black, David" <David.Black@dell.com> Sun, 04 November 2018 16:27 UTC

Return-Path: <David.Black@dell.com>
X-Original-To: detnet@ietfa.amsl.com
Delivered-To: detnet@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 3F1321292F1 for <detnet@ietfa.amsl.com>; Sun, 4 Nov 2018 08:27:55 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.17
X-Spam-Level:
X-Spam-Status: No, score=-3.17 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.47, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=dell.com header.b=xoMZndcz; dkim=fail (1024-bit key) reason="fail (message has been altered)" header.d=emc.com header.b=kVp7Bzjf
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 qjS21hm9B_3X for <detnet@ietfa.amsl.com>; Sun, 4 Nov 2018 08:27:52 -0800 (PST)
Received: from esa1.dell-outbound.iphmx.com (esa1.dell-outbound.iphmx.com [68.232.153.90]) (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 AE19D12008A for <detnet@ietf.org>; Sun, 4 Nov 2018 08:27:52 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=dell.com; i=@dell.com; q=dns/txt; s=smtpout; t=1541348871; x=1572884871; h=from:to:subject:date:message-id:mime-version; bh=B9sG3WennfoV2a6+NSu0snuQAs7xkJvmxyFdDFg5mfY=; b=xoMZndczOvcuvWTYS9a3Utbk1xQc+p2c+A2x9yhSDjAuwxBa59VzK5tu K2v/Zvhmo0iJWA3756UXFEfNu9WH5kIArlTBBB+Ulw6STjaUxySYoW70e NOpa1Jwpk1f42m8FHfAX5DuvofR0hrBwt4TsbcE+EmtZxiIV+WrGhMI7X 4=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A2EZAQA5Hd9bhyWd50NZBwOCF4EOIyUFgRB/KAqMY6RwgT87CwEBLoQ+AoNhNA0NAQMBAQIBAQIBAQIQAQEBCgsJCCkjAQuCNiISSy8JMwEBAQEBAQEBAQEBAQEBAQEBARcCQxMzGxMfGxEBKh05FBIBBBMIEwQDgn8BgR1kAZwGAoEQiVgBAQGCG4J9hw8IjU8+gRFGgh6Ecg8tHxURgm6CJokLhVWGKooqAwQCApEnkGCXHwIEAgQFAhSBQ4IOcFCCbII1G2wBCIE7gQeKUm8xjFyBHwEB
X-IPAS-Result: A2EZAQA5Hd9bhyWd50NZBwOCF4EOIyUFgRB/KAqMY6RwgT87CwEBLoQ+AoNhNA0NAQMBAQIBAQIBAQIQAQEBCgsJCCkjAQuCNiISSy8JMwEBAQEBAQEBAQEBAQEBAQEBARcCQxMzGxMfGxEBKh05FBIBBBMIEwQDgn8BgR1kAZwGAoEQiVgBAQGCG4J9hw8IjU8+gRFGgh6Ecg8tHxURgm6CJokLhVWGKooqAwQCApEnkGCXHwIEAgQFAhSBQ4IOcFCCbII1G2wBCIE7gQeKUm8xjFyBHwEB
Received: from mx0b-00154901.pphosted.com (HELO mx0a-00154901.pphosted.com) ([67.231.157.37]) by esa1.dell-outbound.iphmx.com with ESMTP/TLS/AES256-SHA256; 04 Nov 2018 10:27:50 -0600
Received: from pps.filterd (m0089484.ppops.net [127.0.0.1]) by mx0b-00154901.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id wA4GNYkk118568 for <detnet@ietf.org>; Sun, 4 Nov 2018 11:27:50 -0500
Received: from esa1.dell-outbound2.iphmx.com (esa1.dell-outbound2.iphmx.com [68.232.153.201]) by mx0b-00154901.pphosted.com with ESMTP id 2nh848uum8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for <detnet@ietf.org>; Sun, 04 Nov 2018 11:27:50 -0500
From: "Black, David" <David.Black@dell.com>
Received: from mailuogwhop.emc.com ([168.159.213.141]) by esa1.dell-outbound2.iphmx.com with ESMTP/TLS/DHE-RSA-AES256-SHA256; 04 Nov 2018 22:27:44 +0600
Received: from maildlpprd05.lss.emc.com (maildlpprd05.lss.emc.com [10.253.24.37]) by mailuogwprd03.lss.emc.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.0) with ESMTP id wA4GRkva001689 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for <detnet@ietf.org>; Sun, 4 Nov 2018 11:27:47 -0500
X-DKIM: OpenDKIM Filter v2.4.3 mailuogwprd03.lss.emc.com wA4GRkva001689
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=emc.com; s=jan2013; t=1541348867; bh=odnv9Y5/Hn0EgrRC4d87+LOqXtU=; h=From:To:Subject:Date:Message-ID:Content-Type:MIME-Version; b=kVp7BzjfbQ3CL3RKQSsV3CoDBgRnLr08UQlubdkIf1HZwyC74D2vkZ+v7CHlZSEEQ +kFBOystBtUuOHak6pi1PO7RTDa9EZVswh8xduPt605vaW/20xJzvJTmvt7IePwXDj i+/UyjFgYI+GdQwJshtY5kivJ+WlC0+7YegVNC8E=
X-DKIM: OpenDKIM Filter v2.4.3 mailuogwprd03.lss.emc.com wA4GRkva001689
Received: from mailusrhubprd52.lss.emc.com (mailusrhubprd52.lss.emc.com [10.106.48.25]) by maildlpprd05.lss.emc.com (RSA Interceptor) for <detnet@ietf.org>; Sun, 4 Nov 2018 11:27:23 -0500
Received: from MXHUB307.corp.emc.com (MXHUB307.corp.emc.com [10.146.3.33]) by mailusrhubprd52.lss.emc.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.0) with ESMTP id wA4GRNqQ027328 (version=TLSv1.2 cipher=AES128-SHA256 bits=128 verify=FAIL) for <detnet@ietf.org>; Sun, 4 Nov 2018 11:27:24 -0500
Received: from MX307CL04.corp.emc.com ([fe80::849f:5da2:11b:4385]) by MXHUB307.corp.emc.com ([10.146.3.33]) with mapi id 14.03.0399.000; Sun, 4 Nov 2018 11:27:22 -0500
To: "detnet@ietf.org" <detnet@ietf.org>
Thread-Topic: IP Solution problem: Use of DSCP and ECN fields in IP headers for detnet flow identification
Thread-Index: AdR0WNCrZGGbU8NhRgmkuzkuVax3LA==
Date: Sun, 04 Nov 2018 16:27:22 +0000
Message-ID: <CE03DB3D7B45C245BCA0D243277949363032B993@MX307CL04.corp.emc.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [10.105.8.135]
Content-Type: multipart/alternative; boundary="_000_CE03DB3D7B45C245BCA0D243277949363032B993MX307CL04corpem_"
MIME-Version: 1.0
X-Sentrion-Hostname: mailusrhubprd52.lss.emc.com
X-RSA-Classifications: public
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2018-11-04_14:, , signatures=0
X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=956 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1811040156
Archived-At: <https://mailarchive.ietf.org/arch/msg/detnet/fqR-QdVUuzPFeO5QLGTLYxZCnW4>
Subject: [Detnet] IP Solution problem: Use of DSCP and ECN fields in IP headers for detnet flow identification
X-BeenThere: detnet@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Discussions on Deterministic Networking BoF and Proposed WG <detnet.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/detnet>, <mailto:detnet-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/detnet/>
List-Post: <mailto:detnet@ietf.org>
List-Help: <mailto:detnet-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/detnet>, <mailto:detnet-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sun, 04 Nov 2018 16:27:55 -0000

We have a problem here ...

The detnet IP solution draft (draft-ietf-detnet-dp-sol-ip-01.txt) has this to say about
use of DSCP and ECN fields in IP headers for detnet flow identification:

6.1.1.4.  IPv4 Type of Service and IPv6 Traffic Class Fields

   These fields are used to support Differentiated Services [RFC2474]
   and Explicit Congestion Notification [RFC3168].  Implementations of
   this document MUST support DetNet flow identification based on the
   IPv4 Type of Service field when processing IPv4 packets, and the IPv6
   Traffic Class Field when processing IPv6 packets.  Implementations
   MUST support bimask based matching, where one (1) values in the
   bitmask indicate which subset of the bits in the field are to be used
   in determining a match.  Note that a zero (0) value as a bitmask
   effectively means that these fields are ignored.

That bitmask approach won't work, as it violates both RFC 2474 and RFC 3168.

Starting with ECN (RFC 3168) - the 2-bit ECN field is intended to enable ECN functionality to be
applied to any flow, and the contents of the ECN field can be changed by any router.  Using ECN
field values to identify separate flows is wrong, see Section 5 of RFC 3168, which specifies the
current use of that field..

That leaves the 6-bit DSCP field, which is defined by RFC 2474.  The above bitmask approach is
prohibited by the following paragraph in section 3 of RFC 2474:

   Implementors should note that the DSCP field is six bits wide.  DS-
   compliant nodes MUST select PHBs by matching against the entire 6-bit
   DSCP field, e.g., by treating the value of the field as a table index
   which is used to select a particular packet handling mechanism which
   has been implemented in that device.  The value of the CU field MUST
   be ignored by PHB selection.  The DSCP field is defined as an
   unstructured field to facilitate the definition of future per-hop
   behaviors.

The CU field is now the ECN field (see RFC 3168).  My reading is that the current section 6.1.1.4 text in
the IP solutions draft has managed to violate all three "MUST" requirements in that RFC 2474
paragraph, which is impressive ... and not in a good way.

I suggest that several things be done:

a)      Abandon use of the ECN field for detnet flow identification.

b)      For the DSCP field, change from a bitmask approach to a list of DSCPs.

a.      I would note that a carefully chosen DSCP list can be implemented via a bitmask.

c)      Define one or more Diffserv PHBs that realize DetNet behavior.

a.      I suspect that much of the content needed for this already exists in the
detnet drafts, so this should not be a "from scratch" exercise.

I would also caution that the current IP solution draft text on 6-tuples for flow identification appears
to allow multiple separate detnet flows that differ only in DSCP to use the same IP 5-tuple (source &
destination addresses, transport protocol, source & destination ports).  I believe that this also ought
to be prohibited, as Diffserv uses 5-tuples for flow identification - see the definition and use of the
term "microflow" in RFC 2475.

A quick glance at the MPLS solution suggests that it does not have an analogous problem with the TC
field in labels as the TC field does not appear to be used for detnet flow identification.

Thanks, --David
----------------------------------------------------------------
David L. Black, Senior Distinguished Engineer
Dell EMC, 176 South St., Hopkinton, MA  01748
+1 (774) 350-9323 New    Mobile: +1 (978) 394-7754
David.Black@dell.com<mailto:David.Black@dell.com>
----------------------------------------------------------------