<?xml version="1.0" encoding="US-ASCII"?>
<!DOCTYPE rfc SYSTEM "rfc2629.dtd" [
	<!ENTITY RFC2119 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.2119.xml">
	<!ENTITY RFC3209 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.3209.xml">
	<!ENTITY RFC3473 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.3473.xml">
	<!ENTITY RFC3477 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.3477.xml">
	<!ENTITY RFC3630 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.3630.xml">
	<!ENTITY RFC4203 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.4203.xml">
]>
<?xml-stylesheet type='text/xsl' href='rfc2629.xslt' ?>
<?rfc toc="yes"?>
<?rfc tocompact="yes"?>
<?rfc tocdepth="4"?>
<?rfc tocindent="yes"?>
<?rfc symrefs="yes"?>
<?rfc sortrefs="yes"?>
<?rfc comments="yes"?>
<?rfc inline="yes"?>
<?rfc compact="yes"?>
<?rfc subcompact="no"?>

<rfc category="std" docName="draft-fuxh-tictoc-associate-pw-with-ptp-00.txt" ipr="trust200902">
  <front>
    <title abbrev="PW Label,Association,PTP">Associate PW label with PTP application</title>
    <author fullname="Xihua Fu" initials="X" surname="Fu">
			<organization>ZTE</organization>
			<address>				
				<email>fu.xihua@zte.com.cn</email>				
			</address>
     </author>
     <author fullname="Muliu Tao" initials="M" surname="Tao">
			<organization>ZTE</organization>
			<address>				
				<email>tao.muliu@zte.com.cn</email>				
			</address>
     </author>       
    <date year="2011" />

    <abstract>
    	<t>[1588overMPLS] defines two methods for transporting PTP messages (PDUs) over an MPLS network.    		 
    		 The second method is to transport PTP messages inside a PW via Ethernet encapsulation. 
    		 When PHP is applied to PTP LSP or the PW is etablished between two routers directly and no PTP LSP is needed, 
    		 PW label must be associated with PTP application at the PW termination point.
    		 This document introduces a mechanism to associate PW label with PTP application. 
      </t>
    </abstract>

    <note title="Requirements Language">
      <t>The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
      "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this
      document are to be interpreted as described in [RFC 2119].</t>
    </note>
  </front>

  <middle>
    <section title="Introduction">
    	<t>[1588overMPLS] defines two methods for transporting PTP messages
			   (PDUs) over an MPLS network.  The second method is to transport PTP
			   messages inside a PW via Ethernet encapsulation.  When PHP is applied
			   to PTP LSP or the PW is etablished between two routers directly and
			   no PTP LSP is needed, PW label must be associated with PTP
			   application at the PW termination point.  
			   This document extend LDP and BGP to associate PW label with PTP application.    		 
    	</t>
    </section>
  	<section title="PTP-Aware Capability Advertisement">
  		<t>It is useful for PW switching point to announce its capabilities,
         such as the capability to be PTP-aware. 
         So both PW switching points could know each other of the PTP-aware capability.
         If both of them could support PTP-aware, PTP PW label could be coordinated during the label mapping.    			
  		</t>
  		<section title="LDP Extension">
				<t>[RFC5561] defines a mechanism for advertising LDP enhancements at session initialization time.
					 So LDP capability advertisement provides means for an LDP speaker to announce what it can receive and process.  
					 This document introduces a new Capability Parameter TLV, the PTP-Aware Capability.  
					 Following is the format of the PTP-Aware Capability Parameter.
	      </t>
				<figure anchor="Figure 1" title="PTP-Aware Capability TLV">
				<artwork align="center"><![CDATA[
  0                   1                   2                   3
  0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 |1|0|  PTP-Aware Capability(TBD)|     Length (= 1)              |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 |1| Reserved    |
 +-+-+-+-+-+-+-+-+]]>
				</artwork>
				</figure>
				<t>The PTP-Aware Capability TLV MUST be supported in the LDP
				   Initialization Message([RFC5561]).  Advertisement of the PTP-Aware
				   Capability indicates that the PW switching point supports PTP message processing 
				   and PTP application association
				</t>
			</section>
			<section title="BGP Extension">
				<t>TBD</t>
			</section>
  	</section>    
  	<section title="PTP Application Association">
			<t>When PTP LSP isn't be present, PW switching point must associate the top label (aka PW Label) with PTP application 
				 so that it can identify PTP traffic carried in the PW.
			</t>
			<t>This PTP application association relationship could be configured by management system. 
				 It could also be configure by dynamic control plane. 
				 This document introduces LDP/BGP extension to signal that this PW segment is a PTP PW.
			</t>
			<section title="LDP Extension">
				<t>[RFC3036] defines the Label Distribution Protocol (LDP) for distributing labels.
					 This document defines a new TLV, PTP Association TLV which can be used to indicate a PW is associated with PTP traffic.
					 This TLV is carried in the Label Mapping message.
				</t>
				<t>The PTP Association TLV, is defined as follows (TLV type needs to be assigned by IANA):
					<figure anchor="Figure 2" title="PTP Association TLV">
					<artwork align="center"><![CDATA[
  0                   1                   2                   3
  0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 |1|1|    PTP Association(TBD)   |       Length (= 1)            |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 |      Offset to locate the start of the PTP message header     |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+]]>
					</artwork>
					</figure>					
				</t>
				<t>The OFFSET to the start of the PTP message header MAY also be signaled.
   				 Implementations can trivially locate the correctionField (CF)
   				 location given this information.  The OFFSET points to the start of
   				 the PTP header as a node may want to check the PTP messageType before
           it touches the correctionField (CF).
        </t>
        <t>The T-PE or S-PE must include this object in the LDP Mapping Message 
        	 when it want to request a PTP label or advertise a PTP label to a peer.
        </t>
			</section>
			<section title="BGP Extension">
				<t>TBD</t>
			</section>
  	</section>				     	

    <section anchor="IANA" title="IANA Considerations">
      <t> TBD. </t>
    </section>

    <section anchor="Security" title="Security Considerations">
      <t> TBD. </t>
    </section>

    <section anchor="Acknowledgements" title="Acknowledgements">
      <t> TBD. </t>
    </section>
  </middle>

	<back>
    <references title="Normative References">
      &RFC2119;
    </references>
    
	<references title="Informative References">		
    <reference anchor="1588overMPLS">
			<front>
				<title>
				Transporting PTP messages (1588) over MPLS Networks
				</title>
				<author surname="S. Davari">
				<organization>Broadcom Corp.</organization>
			    </author>		
			</front>
			<seriesInfo name="draft-ietf-tictoc-1588overmpls-02" value=""/>
		</reference>				
	</references>
	</back>
</rfc>
