Re: [TICTOC] draft-ietf-tictoc-1588v2-yang and RFC7223

Jiangyuanlong <jiangyuanlong@huawei.com> Fri, 17 March 2017 12:08 UTC

Return-Path: <jiangyuanlong@huawei.com>
X-Original-To: tictoc@ietfa.amsl.com
Delivered-To: tictoc@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 6ADA9127058 for <tictoc@ietfa.amsl.com>; Fri, 17 Mar 2017 05:08:55 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.221
X-Spam-Level:
X-Spam-Status: No, score=-4.221 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, 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 WW_UoUzNjf9y for <tictoc@ietfa.amsl.com>; Fri, 17 Mar 2017 05:08:52 -0700 (PDT)
Received: from lhrrgout.huawei.com (lhrrgout.huawei.com [194.213.3.17]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 3E83B126C7A for <tictoc@ietf.org>; Fri, 17 Mar 2017 05:08:52 -0700 (PDT)
Received: from 172.18.7.190 (EHLO lhreml708-cah.china.huawei.com) ([172.18.7.190]) by lhrrg01-dlp.huawei.com (MOS 4.3.7-GA FastPath queued) with ESMTP id DJB66072; Fri, 17 Mar 2017 12:08:49 +0000 (GMT)
Received: from SZXEMA419-HUB.china.huawei.com (10.82.72.37) by lhreml708-cah.china.huawei.com (10.201.108.49) with Microsoft SMTP Server (TLS) id 14.3.301.0; Fri, 17 Mar 2017 12:08:49 +0000
Received: from SZXEMA506-MBS.china.huawei.com ([169.254.4.67]) by SZXEMA419-HUB.china.huawei.com ([10.82.72.37]) with mapi id 14.03.0235.001; Fri, 17 Mar 2017 20:08:36 +0800
From: Jiangyuanlong <jiangyuanlong@huawei.com>
To: Rodney Cummings <rodney.cummings@ni.com>, "tictoc@ietf.org" <tictoc@ietf.org>
Thread-Topic: draft-ietf-tictoc-1588v2-yang and RFC7223
Thread-Index: AdKc5s0kzPwIdBTIQ8as3pK1nwg9XQCLX4AQ
Date: Fri, 17 Mar 2017 12:08:36 +0000
Message-ID: <3B0A1BED22CAD649A1B3E97BE5DDD68BBAB1D02D@szxema506-mbs.china.huawei.com>
References: <MWHPR04MB05594F190E0EB3E4083A886A92270@MWHPR04MB0559.namprd04.prod.outlook.com>
In-Reply-To: <MWHPR04MB05594F190E0EB3E4083A886A92270@MWHPR04MB0559.namprd04.prod.outlook.com>
Accept-Language: zh-CN, en-US
Content-Language: zh-CN
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [10.74.203.119]
Content-Type: text/plain; charset="utf-7"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-CFilter-Loop: Reflected
X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A090204.58CBD1D2.00CB, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0, ip=169.254.4.67, so=2013-06-18 04:22:30, dmn=2013-03-21 17:37:32
X-Mirapoint-Loop-Id: fdd20a1826ce475926cb955090884897
Archived-At: <https://mailarchive.ietf.org/arch/msg/tictoc/CiBsezc-cNugP3JOcL2_mAS9R9k>
Subject: Re: [TICTOC] draft-ietf-tictoc-1588v2-yang and RFC7223
X-BeenThere: tictoc@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: Timing over IP Connection and Transfer of Clock BOF <tictoc.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/tictoc>, <mailto:tictoc-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/tictoc/>
List-Post: <mailto:tictoc@ietf.org>
List-Help: <mailto:tictoc-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tictoc>, <mailto:tictoc-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 17 Mar 2017 12:08:55 -0000

Hi Rodney,

Thank you very much for bringing up the head-up situation in the IEEE. 
I wonder whether RFC7223 interface solely specifies Ethernet interfaces (the examples in this RFC seems give a positive answer). 
People may also want to support OTN, PON and other physical ports (as I am aware, IEEE 1588 PTP is supported by these physical layers now).
Therefore, I prefer to your Option 2 and would like to reference to an RFC7223 interface just as an example. 
In this way, other interfaces may also be introduced quite easily.

Cheers,
Yuanlong

-----Original Message-----
From: TICTOC [mailto:tictoc-bounces@ietf.org] On Behalf Of Rodney Cummings
Sent: Thursday, March 16, 2017 6:16 AM
To: tictoc@ietf.org
Subject: [TICTOC] draft-ietf-tictoc-1588v2-yang and RFC7223

Hello all,

Some questions have come up in recent meetings of IEEE 1588 and IEEE 802.1 working groups that are relevant to the TICTOC project draft-ietf-tictoc-1588v2-yang. I would like to get some feedback from TICTOC to help determine if a change is needed for draft-ietf-tictoc-1588v2-yang.

1588-2008 has the concept of a "port", and for a 1588 product with two or more ports, 1588 specifies the transfer of time between these ports. The 1588-2008 specifications for the port are "logical", in that they are independent of any specific transport or media. For example, the 1588 port can use a layer-2 802 mapping, or the port can use a UDP mapping.

When a 1588-2008 product is managed (such as with YANG), the management client is likely to ask:
	How do I find the "real" port that a 1588 "logical" port is using?
For example, if the UDP mapping is used, I might want to find relevant IP addresses, and then go down in the data models to find relevant MAC addresses, 802.3 link speeds, and so on.

The current consensus in the 1588 working group is that although this question is important, since 1588 is transport-independent, the answer cannot be fully specified in the 1588 data sets (i.e. information model). The actual management data model (e.g. YANG, MIB, 1588 management protocol) potentially has better connections to the "real" port, and therefore 1588 defers this topic to each management data model. In other words, the 1588 standard itself will not fully answer this question, but the YANG (i.e. draft-ietf-tictoc-1588v2-yang) is expected to answer the question to the best of its ability.

This question came up in a recent discussion in IEEE 802.1, relative to their profile of 1588, 802.1AS. Refer to slide 5 of:
	http://www.ieee802.org/1/files/public/docs2017/as-gutierrez-yang-0317-v01.pdf
This presentation suggests that the 1588 port (called a "TAS port" in 802.1AS) should be done as an augment of the RFC7223 interface.

The current consensus in IEEE 802.1 is that their profile 802.1AS will defer to the 1588 YANG module (draft-ietf-tictoc-1588v2-yang) for this decision. The YANG module for 802.1AS will augment the 1588 YANG module as described at the end of section 1 of draft-ietf-tictoc-1588v2-yang.

So... I think we need to select from one of three options for draft-ietf-tictoc-1588v2-yang:

Option 1: 1588 port augments RFC7223 interface
--

Although this is a reasonable suggestion, it works under the assumption that a 1588 port "is a type of" RFC7223 interface. That implies that the 1588 port has a place in the interface stack represented by higher-layer-if and lower-layer-if.

I would argue that a 1588 port "uses" an RFC7223 interface, and the 1588 port does not belong in the interface stack. 1588 is a higher-layer protocol, and in that respect, it is more analogous to protocols like TCP and UDP, and not the protocols listed in iana-if-type.yang.

If we decide to implement this option, we need to do it in the first 1588 YANG (draft-ietf-tictoc-1588v2-yang). I assume that we cannot change the 1588 port from non-augment to augment in a future revision of the 1588 YANG.

Option 2: 1588 port contains a reference to an RFC7223 interface
--

1588 requires a configured interface for each 1588 port. By using interface-ref instead of an interface augment, this establishes the relationship as "uses".

This would be added to draft-ietf-tictoc-1588v2-yang as a new leaf in grouping port-ds-entry, such as:
	leaf interface-reference {
		type if:interface-ref;
		description
			"Reference to the configured interface that is used by
			this PTP Port (see RFC 7223).";
       }
This enables the management client to find the interface that the 1588 (PTP) port is using. The management client can also traverse up/down the interface stack to find additional information. 

Option 3: Do nothing in draft-ietf-tictoc-1588v2-yang
--

This is what we have so far.

Presumably a future revision of the 1588 YANG could decide to implement option 2, but not option 1.

Question: Which option should we use for draft-ietf-tictoc-1588v2-yang?
--

I recommend option 2.

Previously I was fine with option 3, but since this is an open question in the 1588 community, it is best to resolve it in the first 1588 YANG module.

At a minimum, we need to decide if we are doing option 1, because that decision cannot be changed in future 1588 YANG module revisions.

This decision is not related to the 1588 data set specifications (2008 or future), because current 1588 consensus is that it is entirely within the scope of the 1588 YANG module.

Thanks everyone,
Rodney Cummings







  


_______________________________________________
TICTOC mailing list
TICTOC@ietf.org
https://www.ietf.org/mailman/listinfo/tictoc