<?xml version="1.0" encoding="utf-8"?>
<!-- name="GENERATOR" content="github.com/mmarkdown/mmark Mmark Markdown Processor - mmark.miek.nl" -->
<rfc version="3" ipr="trust200902" docName="draft-zhu-bess-vpws-srv6-evolution-00" submissionType="IETF" category="std" xml:lang="en" xmlns:xi="http://www.w3.org/2001/XInclude" indexInclude="true" consensus="true">

<front>
<title abbrev="L2VPN VPWS to EVPN-VPWS over SRv6">Seamless Evolution of L2VPN VPWS to EVPN-VPWS over SRv6</title><seriesInfo value="draft-zhu-bess-vpws-srv6-evolution-00" stream="IETF" status="standard" name="Internet-Draft"></seriesInfo>
<author initials="Y." surname="Zhu" fullname="YongQing Zhu"><organization>China Telecom</organization><address><postal><street></street>
</postal><email>zhuyq8@chinatelecom.cn</email>
</address></author><author initials="Y." surname="Huang" fullname="Yang Huang"><organization>Huawei Technologies</organization><address><postal><street></street>
</postal><email>yang.huang@huawei.com</email>
</address></author><date year="2026" month="December" day="1"></date>
<area>Routing</area>
<workgroup>BESS Working Group</workgroup>
<keyword>VPWS</keyword>
<keyword>EVPN</keyword>
<keyword>SRv6</keyword>
<keyword>Seamless Evolution</keyword>
<keyword>Multi-Segment Pseudowire</keyword>
<keyword>End.DX2PW</keyword>

<abstract>
<t>This document specifies a solution for seamlessly evolving existing L2VPN
Virtual Private Wire Service (VPWS) to EVPN-VPWS carried over SRv6. The
solution allows EVPN and L2VPN services to coexist in the same Point-to-Point
(P2P) VPN instance and supports segment-by-segment evolution to EVPN-VPWS over
SRv6 in Multi-Segment Pseudowire (MSPW) scenarios. Three key elements are
introduced: (1) when EVPN-VPWS and L2VPN VPWS paths coexist on the same
Attachment Circuit (AC), the EVPN-VPWS path is preferred according to the
operator's local policy, the switchover is performed in a make-before-break
fashion to minimize packet loss, and fallback to the L2VPN VPWS path is
supported; (2) an explicit association mechanism between the EVPN-VPWS path
and the L2VPN VPWS PW is specified: a Composite PE carries its local L2VPN PW
information (the LDP peer address, PW ID, and PW type) in the Ethernet A-D per
EVI route, so that the receiving PE can identify and verify the associated
L2VPN PW and perform the association switchover even when the two paths
terminate on different remote PEs in multi-homed scenarios; (3) a new SRv6
endpoint behavior, End.DX2PW, is defined for the Gateway PE in MSPW scenarios.
End.DX2PW decouples the re-encapsulation for the next tunnel segment from the
SID, so that evolving the subsequent segment from MPLS to SRv6 does not
require re-allocating a new SID. With this solution, service providers can
seamlessly migrate existing L2VPN VPWS networks to EVPN-VPWS over SRv6.</t>
</abstract>

</front>

<middle>

<section anchor="sec-introduction"><name>Introduction</name>

<section anchor="sec-background"><name>Background</name>
<t>Point-to-point Layer 2 VPN services (VPWS) are widely deployed by operators as
private line services. Traditional VPWS is provided in the following ways:</t>

<ul spacing="compact">
<li>Pseudowire (PW) signaling based on LDP, as specified in <xref target="RFC8077"></xref>;</li>
<li>PW signaling based on BGP, as specified in <xref target="RFC6624"></xref>;</li>
<li>VPN membership discovered via BGP Auto-Discovery <xref target="RFC6074"></xref> and PW established per <xref target="RFC8077"></xref> (referred to as VPWS A-D in this document).</li>
</ul>
<t>MSPW <xref target="RFC6073"></xref> establishes PW connections between different Packet Switched
Network (PSN) domains, or between two or more different PW control-plane
domains, to provide end-to-end pseudowire services for large-scale
hierarchical networks or heterogeneous networks spanning multiple domains.</t>
<t>EVPN-VPWS <xref target="RFC8214"></xref> <xref target="RFC9014"></xref> provides point-to-point Ethernet services
using BGP-EVPN signaling, with benefits such as unified signaling and
multi-homing (single-active/all-active). When a network evolves to SRv6
<xref target="RFC8402"></xref>, EVPN-VPWS over SRv6 becomes the natural choice for carrying
private line services: the egress PE advertises an SRv6 service SID via BGP
overlay service routes <xref target="RFC9252"></xref>, the ingress PE encapsulates the payload in
an outer IPv6 header whose destination address is the service SID, and the
underlay is only required to support plain IPv6 forwarding <xref target="RFC8200"></xref>. When
an underlay service level agreement (SLA) is required, the Color extended
community <xref target="RFC9012"></xref> can be used to steer traffic to an SR Policy
<xref target="RFC9256"></xref>, carrying the segment list in a Segment Routing Header (SRH)
<xref target="RFC8754"></xref>.</t>
</section>

<section anchor="sec-motivation-and-positioning-of-this-document"><name>Motivation and Positioning of this Document</name>
<t>Two related work items exist in the BESS Working Group:</t>

<ul spacing="compact">
<li><xref target="I-D.ietf-bess-evpn-vpws-seamless"></xref>: specifies the seamless integration of L2VPN VPWS with EVPN-VPWS, including the concepts of L2VPN PE, EVPN-VPWS PE, and Composite PE, for MPLS-based transport;</li>
<li><xref target="I-D.ietf-bess-evpn-vpws-gateway"></xref>: specifies the Gateway PE for segment-by-segment evolution in MSPW scenarios.</li>
</ul>
<t>Building on this prior work, this document focuses on three increments:</t>

<ol spacing="compact">
<li><strong>SRv6 transport</strong>: the evolution target is EVPN-VPWS over SRv6, and the local preference and reversible switchover mechanism (make-before-break) when L2VPN VPWS and EVPN-VPWS paths coexist on the same AC is specified, minimizing the impact of the evolution on services;</li>
<li><strong>Explicit path association</strong>: an explicit association mechanism between the EVPN-VPWS path and the L2VPN VPWS PW is specified for multi-homed scenarios, where the two paths may terminate on different remote PEs. A Composite PE carries its local L2VPN PW information in the Ethernet A-D per EVI route, so that the remote PE can identify and verify the associated L2VPN PW before performing the association switchover;</li>
<li><strong>New endpoint behavior End.DX2PW</strong>: a behavior for the Gateway PE that, after decapsulation, re-encapsulates according to the PW cross-connect entry associated with the SID is defined. It decouples the tunnel encapsulation type from the SID, allowing each MSPW segment to evolve to SRv6 independently and on demand, without re-allocating SIDs when a subsequent segment evolves.</li>
</ol>
</section>

<section anchor="sec-document-structure"><name>Document Structure</name>
<t><xref target="sec-terminology"></xref> gives the terminology; <xref target="sec-arch"></xref> gives the reference
architecture and PE types; <xref target="sec-req"></xref> gives the solution requirements;
<xref target="sec-overview"></xref> gives the solution overview; <xref target="sec-assoc"></xref> specifies the
association mechanism between the EVPN-VPWS and L2VPN VPWS paths;
<xref target="sec-single"></xref> and <xref target="sec-mspw"></xref> give the detailed procedures for single-segment
evolution and MSPW evolution, respectively; <xref target="sec-endDX2PW"></xref> defines the
End.DX2PW behavior; <xref target="sec-scenarios"></xref> gives deployment scenarios and use cases;
<xref target="sec-ops"></xref>, <xref target="sec-security"></xref>, and <xref target="sec-iana"></xref> give operational, security, and
IANA considerations; Section 15 lists the references.</t>
</section>
</section>

<section anchor="sec-conventions-used-in-this-document"><name>Conventions Used in This Document</name>
<t>The key words &quot;MUST&quot;, &quot;MUST NOT&quot;, &quot;REQUIRED&quot;, &quot;SHALL&quot;, &quot;SHALL NOT&quot;, &quot;SHOULD&quot;,
&quot;SHOULD NOT&quot;, &quot;RECOMMENDED&quot;, &quot;NOT RECOMMENDED&quot;, &quot;MAY&quot;, and &quot;OPTIONAL&quot; in this
document are to be interpreted as described in BCP 14 <xref target="RFC2119"></xref> <xref target="RFC8174"></xref>
when, and only when, they appear in all capitals, as shown here.</t>
</section>

<section anchor="sec-terminology"><name>Terminology</name>

<dl spacing="compact">
<dt>AC (Attachment Circuit):</dt>
<dd>the circuit through which a customer site attaches to a PE, which can be a
port, a VLAN on a port, or a group of VLANs on a port.</dd>
<dt>BGP-AD (BGP Auto-Discovery):</dt>
<dd>a BGP-based auto-discovery mechanism for VPN membership.</dd>
<dt>CE (Customer Edge):</dt>
<dd>a customer edge device, e.g., a host, router, or switch.</dd>
<dt>Composite PE:</dt>
<dd>for a given VPWS instance, a PE that simultaneously runs both legacy PW
signaling (LDP PW, BGP PW, or BGP AD PW) and EVPN-VPWS signaling. The
legacy PW signaling and EVPN-VPWS have a split-horizon relationship and do
not form a multi-segment PW capability.</dd>
<dt>DF (Designated Forwarder):</dt>
<dd>the designated forwarder of an EVPN Ethernet Segment.</dd>
<dt>NDF (Non-Designated Forwarder):</dt>
<dd>the non-designated forwarder of an EVPN Ethernet Segment.</dd>
<dt>ES (Ethernet Segment):</dt>
<dd>a set of Ethernet links connecting a customer site (device or network of
devices) to one or more PEs.</dd>
<dt>ESI (Ethernet Segment Identifier):</dt>
<dd>the identifier of an Ethernet Segment.</dd>
<dt>EVI (Ethernet VPN Instance):</dt>
<dd>a VPN instance running EVPN.</dd>
<dt>EVI-AD route:</dt>
<dd>the Ethernet A-D per EVI route, as specified in <xref target="RFC8214"></xref>.</dd>
<dt>EVPN-VPWS:</dt>
<dd>an Ethernet VPN Virtual Private Wire Service circuit, in which the
pseudowire is signaled via BGP-EVPN.</dd>
<dt>EVPN-VPWS over SRv6:</dt>
<dd>EVPN-VPWS carried by an SRv6 network.</dd>
<dt>End.DX2:</dt>
<dd>the SRv6 endpoint behavior defined in <xref target="RFC8986"></xref>, Section 6.2, that
decapsulates and cross-connects at Layer 2 to a specified interface.</dd>
<dt>End.DT2M:</dt>
<dd>the SRv6 endpoint behavior defined in <xref target="RFC8986"></xref>, Section 6.4, that
decapsulates, performs a Layer 2 table lookup, and encapsulates in MPLS.</dd>
<dt>End.DX2PW:</dt>
<dd>the SRv6 endpoint behavior defined in <xref target="sec-endDX2PW"></xref> of this document,
that, after decapsulation, re-encapsulates in MPLS or SRv6 according to
the PW cross-connect entry.</dd>
<dt>Gateway PE:</dt>
<dd>for a given VPWS instance, a PE that acts as an intermediate node of an
MSPW and runs different PW signaling (legacy PW signaling or EVPN-VPWS
signaling) on its two sides, ultimately forming a multi-segment PW private
line capability.</dd>
<dt>L2VPN PE:</dt>
<dd>for a given VPWS instance, a PE that runs only legacy PW signaling (LDP
PW, BGP PW, or BGP AD PW).</dd>
<dt>MHD (Multi-Homed Device):</dt>
<dd>a multi-homed device.</dd>
<dt>MHN (Multi-Homed Network):</dt>
<dd>a multi-homed network.</dd>
<dt>P2P (Point-to-Point):</dt>
<dd>in this document, a point-to-point VPN instance.</dd>
<dt>PE (Provider Edge):</dt>
<dd>a provider edge device providing VPN attachment.</dd>
<dt>PW (Pseudowire):</dt>
<dd>a Layer 2 point-to-point service connection.</dd>
<dt>SPE (Switching Provider Edge):</dt>
<dd>an intermediate node of an MSPW.</dd>
<dt>SRv6:</dt>
<dd>Segment Routing over IPv6.</dd>
<dt>SRv6 SID:</dt>
<dd>the SRv6 Segment Identifier.</dd>
<dt>VPWS (Virtual Private Wire Service):</dt>
<dd>an L2VPN VPWS circuit, in which the pseudowire is signaled using LDP or
BGP-AD; the latter is referred to as VPWS A-D.</dd>
<dt>VPWS A-D:</dt>
<dd>Virtual Private Wire Service based on BGP Auto-Discovery, as described in
<xref target="RFC6074"></xref>.</dd>
<dt>Single-Active Redundancy Mode:</dt>
<dd>an Ethernet Segment operates in Single-Active redundancy mode when, for a
given VLAN, only one PE among all PEs attached to the Ethernet Segment is
allowed to forward traffic to/from the Ethernet Segment.</dd>
<dt>All-Active Redundancy Mode:</dt>
<dd>an Ethernet Segment operates in All-Active redundancy mode when all PEs
attached to the Ethernet Segment are allowed to forward traffic to/from
the Ethernet Segment for a given VLAN.</dd>
<dt>Association Switchover:</dt>
<dd>switching between an EVPN-VPWS path and its associated L2VPN VPWS PW. The
association between the two paths is established before the switchover,
and the two paths may terminate on the same or different remote PEs.</dd>
</dl>
</section>

<section anchor="sec-arch"><name>Reference Architecture</name>

<section anchor="sec-pe-types"><name>PE Types</name>
<t>This solution involves four PE roles, consistent with
<xref target="I-D.ietf-bess-evpn-vpws-seamless"></xref> and <xref target="I-D.ietf-bess-evpn-vpws-gateway"></xref>,
extended to SRv6 transport:</t>

<ul spacing="compact">
<li><strong>L2VPN PE</strong>: for a given VPWS instance, runs only legacy PW signaling (LDP PW, BGP PW, or BGP AD PW).</li>
<li><strong>EVPN-VPWS PE</strong>: for a given VPWS instance, runs only EVPN-VPWS signaling.</li>
<li><strong>Composite PE</strong>: for a given VPWS instance, runs both legacy PW signaling and EVPN-VPWS signaling. There is a split-horizon relationship between the two signaling types; i.e., a Composite PE does not directly stitch a legacy PW to an EVPN-VPWS into a multi-segment PW.</li>
<li><strong>Gateway PE</strong>: for a given VPWS instance, acts as an intermediate node of an MSPW, running different PW signaling (legacy PW signaling or EVPN-VPWS signaling) on its two sides, interconnecting the two PWs within the same P2P VPN instance, and ultimately forming a multi-segment PW private line capability.</li>
</ul>
<t>Figure 1 gives a reference architecture example: a Composite PE (PE-1) runs a
legacy PW with an L2VPN PE (PE-2) on one side and EVPN-VPWS over SRv6 with an
EVPN-VPWS PE (PE-3) on the other; the three PE types coexist in the same P2P
VPN instance.</t>
<figure anchor="fig-arch"><name>Reference Architecture - Coexistence of L2VPN PE, EVPN-VPWS PE, and Composite PE in the Same P2P VPN Instance </name>
<artwork><![CDATA[+------+  AC   +--------+   legacy PW   +--------+   AC   +------+
| CE-A |-------|  PE-2  |---------------|  PE-1  |--------| CE-C |
+------+       | L2VPN  |               |Composite|       +------+
               |  PE    |               |   PE   |
               +--------+               +--------+
                                            |
                             EVPN-VPWS      |
                             over SRv6      |
                                            |
                                       +----+----+   AC  +------+
                                       |  PE-3   |-------| CE-B |
                                       | EVPN-   |       |      |
                                       | VPWS PE |       +------+
                                       +---------+
]]></artwork>
</figure>
</section>

<section anchor="sec-evolution-target"><name>Evolution Target</name>
<t>The target state of the evolution is that the PEs at both ends of the private
line (or at both ends of each MSPW segment) are EVPN-VPWS PEs, and services
are carried by EVPN-VPWS over SRv6. During the evolution, L2VPN PEs, EVPN-VPWS
PEs, Composite PEs, and Gateway PEs can coexist in the same P2P VPN instance,
and the migration proceeds site-by-site and private-line-by-private-line.</t>
</section>
</section>

<section anchor="sec-req"><name>Solution Requirements</name>
<t>The SRv6 seamless evolution solution for point-to-point Ethernet VPN satisfies
the following requirements:</t>

<ul spacing="compact">
<li>MUST allow L2VPN PEs, EVPN-VPWS PEs, Composite PEs, and Gateway PEs to participate in the same P2P Layer 2 VPN instance.</li>
<li>MUST allow site-by-site staged migration to EVPN-VPWS, e.g., by configuring new EVPN-VPWS sites on new EVPN-VPWS PEs; SHOULD support migration at pseudowire granularity.</li>
<li>MUST NOT require any changes to existing L2VPN PEs running legacy VPWS, unless they are upgraded to Composite PEs or Gateway PEs.</li>
<li>MUST allow Composite PEs or Gateway PEs to coexist with L2VPN PEs and EVPN-VPWS PEs on the same single-homed and/or multi-homed Ethernet Segments.</li>
<li>MUST support Single-Active redundancy for Multi-Homed Networks (MHNs) and Multi-Homed Devices (MHDs) across L2VPN, EVPN-VPWS, Composite PEs, and Gateway PEs.</li>
<li>SHOULD support All-Active redundancy for MHNs and MHDs across L2VPN, EVPN-VPWS, Composite PEs, and Gateway PEs.</li>
<li>When both an EVPN-VPWS path and an L2VPN VPWS path for the same P2P VPN instance exist, SHOULD prefer the EVPN-VPWS path for forwarding according to the operator's local policy, irrespective of whether the two paths terminate on the same or different remote PEs.</li>
<li>MUST support switching between the EVPN-VPWS and L2VPN VPWS paths via local policy; the switchover MUST be performed in a make-before-break fashion to minimize switchover packet loss; when the EVPN-VPWS path is abnormal, fallback to the L2VPN VPWS path MUST be supported.</li>
<li>When the EVPN-VPWS path and the L2VPN VPWS path terminate on different remote PEs (multi-homed scenarios), the association between the two paths MUST be established before the switchover, and the switchover is performed only after the association is established.</li>
<li>MUST provide a mechanism to explicitly associate the EVPN-VPWS path with the corresponding L2VPN VPWS PW; for LDP PWs, the Ethernet A-D per EVI route MUST be able to carry the local LDP peer address, PW ID, and PW type of the associated L2VPN PW, as specified in <xref target="sec-assoc"></xref>.</li>
</ul>
<t>Together, these requirements allow existing L2VPN VPWS to evolve seamlessly to
EVPN-VPWS over SRv6 with minimal impact on private line services.</t>
</section>

<section anchor="sec-overview"><name>Solution Overview</name>
<t>The evolution proceeds in four phases (taking the single-segment scenario as
an example; the MSPW scenario is covered in <xref target="sec-mspw"></xref>):</t>

<ul spacing="compact">
<li><strong>Phase 1 (existing state)</strong>: the PEs at both ends of the private line are legacy L2VPN PEs, the L2VPN VPWS is established normally, and Layer 2 services run normally.</li>
<li><strong>Phase 2 (deploy EVPN-VPWS signaling)</strong>: EVPN-VPWS signaling is configured for the corresponding VPN instance on the PEs at both ends. After configuration, the PEs change from L2VPN PEs to Composite PEs. EVI-AD routes are generated per <xref target="RFC8214"></xref>; the two ends advertise routes to each other, establish the EVPN-VPWS private line path, and install forwarding entries.</li>
<li><strong>Phase 3 (prefer the EVPN-VPWS path)</strong>: both L2VPN VPWS and EVPN-VPWS entries exist on the same AC. According to the operator's local policy, forwarding prefers the EVPN-VPWS path; the switchover is performed in a make-before-break fashion, minimizing packet loss. When the EVPN-VPWS path is abnormal, manual or policy-based fallback to the L2VPN VPWS path is possible.</li>
<li><strong>Phase 4 (remove legacy configuration)</strong>: after the service has run stably for a period of time, the L2VPN VPWS signaling configuration is removed per private line instance (or uniformly after the whole network has completed the evolution).</li>
</ul>
<t>Figure 2 gives the topology after single-segment evolution: both end PEs are
Composite PEs, and the same AC is associated with two paths - EVPN-VPWS (SRv6,
preferred) and legacy PW (MPLS, retained for fallback).</t>
<figure anchor="fig-single-seg"><name>Topology after Single-Segment Evolution - Same AC Associated With Two Paths, Preferring EVPN-VPWS </name>
<artwork><![CDATA[+------+  AC  +-----------+                 +-----------+  AC  +------+
| CE-A |------|   PE-1    |---(EVPN-VPWS)---|   PE-2    |------| CE-B |
+------+      | Composite |   (SRv6)        | Composite |      +------+
              |   PE      |---(legacy PW)---|   PE      |
              +-----------+   (MPLS)        +-----------+
]]></artwork>
</figure>
</section>

<section anchor="sec-assoc"><name>Association of EVPN-VPWS and L2VPN VPWS Paths</name>

<section anchor="sec-overview-2"><name>Overview</name>
<t>In the basic single-segment scenario of <xref target="sec-single"></xref>, the L2VPN VPWS path and
the EVPN-VPWS path terminate on the same remote PE. The association between
the two paths is implicit: when a Composite PE receives both the L2VPN PW
route and the EVPN Ethernet A-D per EVI route from the same remote PE for the
same P2P VPN instance, the EVPN-VPWS path is preferred for discovery and
forwarding, as specified in <xref target="I-D.ietf-bess-evpn-vpws-seamless"></xref>.</t>
<t>In multi-homed scenarios, however, the two paths may terminate on different
remote PEs. Taking Figure 3 as an example, the remote CE is multi-homed to
PE-2 (a Composite PE) and PE-3 (a legacy L2VPN PE): the EVPN-VPWS path
terminates on PE-2, while the standby L2VPN PW terminates on PE-3. In this
case, the implicit &quot;same remote PE&quot; rule cannot determine which L2VPN PW the
EVPN-VPWS path should be associated with, and the switchover between the two
paths (referred to as association switchover in this document) is not well
defined.</t>
<figure anchor="fig-multi-homed"><name>Multi-Homed Service Evolution Topology </name>
<artwork><![CDATA[+------+  AC  +-----------+   (EVPN-VPWS)    +-----------+  AC  +------+
| CE-A |------|   PE-1    |------------------|   PE-2    |------|  CE  |
+------+      | Composite |   (SRv6)         | Composite |      | (MHD)|
              |   PE      |------------------|    PE     |------|      |
              |           |   (L2VPN PW)     |           |      |      |
              +-----------+   (MPLS)         +-----------+      |      |
                   |                                            |      |
                   |     [L2VPN PW (MPLS, standby)]             |      |
                   |                                            |      |
              +---------+                                       |      |
              |  PE-3   |---------------------------------------|      |
              | L2VPN   |                                       |      |
              +---------+                                       |      |
                                                                +------+
]]></artwork>
</figure>
<t>To address this, this section specifies an explicit association mechanism: a
Composite PE that has an L2VPN VPWS PW on the same AC carries the local L2VPN
PW information in the Ethernet A-D per EVI route. The receiving PE uses this
information to identify and verify the associated L2VPN PW, and performs the
association switchover only after the association is established.</t>
</section>

<section anchor="sec-assoc-ec"><name>L2VPN PW Association Extended Community</name>
<t>This document defines two new transitive EVPN Extended Communities (Type 0x06)
that carry the local L2VPN PW information in the Ethernet A-D per EVI route:</t>
<figure anchor="fig-pw-association"><name>L2VPN PW Association Extended Community </name>
<artwork><![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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Type (0x06)   |Sub-Type (TBD-1)|         PW Type              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                          PW ID                                |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
]]></artwork>
</figure>
<t>The L2VPN PW Association Extended Community carries the PW Type (16 bits, from
the IANA &quot;Pseudowire Types&quot; registry, e.g., 0x0004 for Ethernet VLAN and
0x0005 for Ethernet) and the PW ID (32 bits) of the associated L2VPN PW, as
defined in the PW ID FEC Element of <xref target="RFC8077"></xref>, Section 5.1.</t>
<figure anchor="fig-pw-peer"><name>L2VPN PW Peer Address Extended Community </name>
<artwork><![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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Type (0x06)   |Sub-Type (TBD-2)| Address Fam.  |   Reserved   |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                   LDP Peer Address (IPv4)                     |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
]]></artwork>
</figure>
<t>The L2VPN PW Peer Address Extended Community carries the Address Family (1 for
IPv4; other values are for future study) and the LDP Peer Address of the
advertising PE, i.e., the source address of the targeted LDP session used to
signal the associated L2VPN PW <xref target="RFC8077"></xref>. The LDP peer address may differ
from the BGP next hop of the Ethernet A-D per EVI route, hence it is carried
explicitly.</t>
<t>Both extended communities MUST be carried together in the Ethernet A-D per EVI
route when the association information is present. They are only present when
the advertising PE is a Composite PE for the P2P VPN instance and the
associated L2VPN PW is an LDP PW. For BGP-AD PWs <xref target="RFC6624"></xref>, the PW ID FEC
Element is already signaled in-band in the VPWS A-D route, and the implicit
association of <xref target="I-D.ietf-bess-evpn-vpws-seamless"></xref> applies.</t>
</section>

<section anchor="sec-assoc-proc"><name>Association and Switchover Procedures</name>
<t>The association and switchover procedures are as follows:</t>

<ol spacing="compact">
<li><strong>Advertisement</strong>: a Composite PE that has an L2VPN VPWS PW on the same AC as the EVPN-VPWS path advertises the Ethernet A-D per EVI route per <xref target="RFC8214"></xref> and attaches the association extended communities of <xref target="sec-assoc-ec"></xref> to it. The P and B bits of the EVPN Layer 2 Attributes Extended Community are set per the DF election as usual.</li>
<li><strong>Association on the receiving PE</strong>: upon receiving the Ethernet A-D per EVI route carrying the association extended communities, the receiving PE looks up its local L2VPN PW table for a PW whose remote LDP peer address equals the advertised LDP Peer Address, and whose PW ID and PW Type equal the advertised values. If exactly one matching PW is found, the EVPN-VPWS path is associated with that L2VPN PW, and the association switchover is enabled. If no matching L2VPN PW is found, the association is not established. The Ethernet A-D per EVI route is still processed per <xref target="RFC8214"></xref>, but the association switchover is not enabled. The behavior in this case is directed by local configuration (e.g., ignore the association information and raise an alarm), consistent with the security considerations of <xref target="I-D.ietf-bess-evpn-vpws-seamless"></xref></li>
<li><strong>Switchover</strong>: after the association is established, forwarding prefers the EVPN-VPWS path according to the operator's local policy, and the switchover is performed in a make-before-break fashion as described in <xref target="sec-single"></xref>. When the EVPN-VPWS path is abnormal, fallback to the associated L2VPN PW is supported. In multi-homed scenarios, the standby L2VPN PW to another PE continues to be handled by the L2VPN PW redundancy mechanisms <xref target="RFC6870"></xref> and does not participate in the association switchover unless it becomes the active PW.</li>
<li><strong>Withdrawal</strong>: when the associated L2VPN PW or the EVPN-VPWS path is withdrawn, the association is removed, and the forwarding is switched per the make-before-break rules of <xref target="sec-single"></xref>.</li>
</ol>
<t>The association mechanism does not change the EVPN DF election and the P/B-bit
procedures of <xref target="RFC8214"></xref> and <xref target="RFC8584"></xref>; it only defines which local L2VPN
PW the EVPN-VPWS path maps to, so that the association switchover is well
defined when the two paths terminate on the same or different remote PEs.</t>
</section>
</section>

<section anchor="sec-single"><name>Single-Segment Seamless Evolution</name>

<section anchor="sec-control-plane"><name>Control Plane</name>
<t>Initial state: the existing L2VPN VPWS is established normally, and the PEs at
both ends of the private line are legacy L2VPN PEs.</t>

<ol spacing="compact">
<li>EVPN-VPWS signaling is configured for the corresponding VPN instance on the PEs at both ends; the PEs change from L2VPN PEs to Composite PEs.</li>
<li>EVPN EVI-AD routes are generated per <xref target="RFC8214"></xref>; the two end PEs advertise routes to each other, establish the EVPN-VPWS private line path, and install forwarding entries.</li>
<li>When both ends are Composite PEs, both ends maintain the L2VPN VPWS and EVPN-VPWS paths simultaneously.</li>
</ol>
<t>The evolution does not require any changes to existing L2VPN PEs; PEs without
EVPN-VPWS signaling configured continue to operate as legacy PWs.</t>
</section>

<section anchor="sec-data-plane"><name>Data Plane</name>
<t>Initial state (L2VPN VPWS only):</t>

<ul spacing="compact">
<li>Ingress direction: traffic enters from the AC of the ingress PE, looks up the L2VPN PW associated with the AC, encapsulates the payload with the private label and the outer MPLS tunnel label stack, and forwards the packet to the next MPLS tunnel node.</li>
<li>Egress direction: after the traffic reaches the egress PE, the MPLS tunnel label stack is decapsulated, the corresponding AC is found by the private label, and after decapsulating the private label, the original Ethernet frame is encapsulated with the specified VLAN and forwarded to the AC side.</li>
</ul>
<t>After EVPN-VPWS signaling is deployed (two paths coexist):</t>

<ul spacing="compact">
<li>Ingress direction: after traffic enters from the AC of the ingress PE, the AC is found to be associated with both the L2VPN VPWS and EVPN-VPWS entries; the EVPN-VPWS path is preferred according to local policy. The original frame is encapsulated with an End.DX2 SID (SRv6 service SID) and forwarded between PEs as an IPv6 packet.</li>
<li>Egress direction: after the packet reaches the egress PE, the SRv6 header is decapsulated, and according to the matching behavior of the End.DX2 SID, the IPv6 header is removed, and the original Ethernet frame is encapsulated with the specified VLAN and forwarded to the AC side.</li>
<li>Fallback: when the EVPN-VPWS path is abnormal or a policy-based fallback is triggered, forwarding returns to the L2VPN VPWS path; path switching follows the make-before-break principle to keep the service uninterrupted.</li>
</ul>
</section>

<section anchor="sec-single-mh"><name>Multi-Homing</name>
<t>Single-Active scenario (primary/backup consistent before and after the
evolution):</t>

<ol spacing="compact">
<li>For initial state, L2VPN VPWS multi-homing runs an active/standby PW pair, and traffic is forwarded only over the primary PW.</li>
<li>On the multi-homing side PEs, an ESI is configured for the multi-homed AC, and the EVPN redundancy mode (Single-Active) is set.</li>
<li>EVPN-VPWS signaling is first deployed on the PEs at both ends of the primary PW; after the EVPN-VPWS signaling negotiation completes on both ends and forwarding entries are installed, the PEs at both ends of the primary PW switch to EVPN-VPWS forwarding. The standby PW is not replaced but is not affected since it does not forward traffic.</li>
<li>EVPN-VPWS signaling is then deployed on the multi-homing side PE of the standby PW, negotiating primary/backup with the multi-homing side PE of the primary PW. Preference-based DF election <xref target="RFC8584"></xref> is used, configuring the DF preference so that the primary/backup (DF/NDF) before and after the evolution remain consistent, avoiding a primary/backup flip.</li>
<li>After deployment, the control protocol, forwarding plane, and redundancy paths all evolve seamlessly to the EVPN-VPWS plane.</li>
</ol>
<t>AS for all-active scenario, per the DF election of <xref target="RFC8584"></xref>, All-Active
redundancy mode is configured for the multi-homed AC; after the EVPN-VPWS
signaling is established at both ends, traffic is forwarded in All-Active
mode. During the evolution, the L2VPN-side path is retained as a fallback path
and does not participate in forwarding.</t>

<section anchor="sec-single-mh-remote"><name>Remote CE Multi-Homed</name>
<t>In the scenario where the remote CE is multi-homed to two PEs, the EVPN-VPWS
path and the L2VPN PW may terminate on different remote PEs. Taking Figure 3
as an example: CE-A is connected to PE-1; CE-B is multi-homed to PE-2 (a
Composite PE) and PE-3 (a legacy L2VPN PE); before the evolution, PE-1 runs a
Single-Active active/standby L2VPN PW pair to PE-2 (primary) and PE-3
(standby).</t>

<ol spacing="compact">
<li>PE-2 is upgraded to a Composite PE: PE-2 advertises the Ethernet A-D per EVI route for the P2P VPN instance per <xref target="RFC8214"></xref> with the P bit set, and attaches the association extended communities of <xref target="sec-assoc-ec"></xref> carrying its local LDP peer address, PW ID, and PW type; PE-2 continues to advertise the L2VPN PW route. PE-3 continues to advertise the L2VPN PW route as the standby, e.g., with PW-status <xref target="RFC6870"></xref>.</li>
<li>PE-1 receives the Ethernet A-D per EVI route, matches the association extended communities against its local L2VPN PW table, finds the L2VPN PW whose remote LDP peer address, PW ID, and PW type equal the advertised values, and associates the EVPN-VPWS path with it (see <xref target="sec-assoc-proc"></xref>).</li>
<li>Per the operator's local policy, PE-1 prefers the EVPN-VPWS path and switches in a make-before-break fashion. The associated L2VPN PW (to PE-2) is retained as the same-PE fallback, and the standby L2VPN PW (to PE-3) is retained as the cross-PE fallback.</li>
<li>When the EVPN-VPWS path is abnormal, PE-1 falls back to the associated L2VPN PW to PE-2 (make-before-break). When PE-2 or the PE-1-to-PE-2 link fails, the L2VPN PW redundancy <xref target="RFC6870"></xref> makes the standby PW to PE-3 active, and PE-1 forwards over the L2VPN PW to PE-3; since PE-3 is a legacy L2VPN PE, no EVPN path exists and the traffic is carried by the L2VPN PW.</li>
<li>When PE-3 is later upgraded to a Composite PE, both PE-2 and PE-3 advertise the Ethernet A-D per EVI route with the association extended communities; the preference-based DF election <xref target="RFC8584"></xref> is used to keep the DF/NDF roles consistent with the primary/backup relationship, and the association mechanism of <xref target="sec-assoc"></xref> continues to work unchanged.</li>
</ol>
<t>During the evolution, the DF/NDF state remains consistent with the
active/standby PW state to avoid loops and duplicate forwarding.</t>
</section>
</section>
</section>

<section anchor="sec-mspw"><name>MSPW Evolution</name>

<section anchor="sec-control-plane-2"><name>Control Plane</name>
<t>Initial state: the existing L2VPN VPWS multi-segment PW (MSPW <xref target="RFC6073"></xref>) is
established normally, and the end-to-end Layer 2 service runs normally; the
head-end PE, the intermediate SPE, and the tail-end PE are all legacy L2VPN
PEs.</t>
<t>Segment-by-segment evolution (taking the evolution of the first segment as an
example):</t>

<ol>
<li><t>EVPN-VPWS signaling is configured for the corresponding VPN instance on the head-end PE and the intermediate SPE. After configuration:</t>

<ul spacing="compact">
<li>the head-end PE changes from an L2VPN PE to a Composite PE;</li>
<li>the intermediate SPE changes from an L2VPN PE to a Gateway PE, and also functions as a composite PE;</li>
<li>the tail-end PE remains an L2VPN PE.</li>
</ul></li>
<li><t>The intermediate node (Gateway PE) interconnects the EVPN-VPWS on one side and the L2VPN VPWS on the other within a single P2P VPN instance, forming an end-to-end private line.</t>
</li>
<li><t>After the EVPN-VPWS signaling negotiation between the head-end PE and the intermediate node completes, the first segment (head-end PE to SPE) evolves to EVPN-VPWS over SRv6; the second segment (SPE to tail-end PE) remains a legacy PW (MPLS).</t>
</li>
<li><t>The second segment evolves on demand: EVPN-VPWS signaling is deployed on the intermediate SPE and the tail-end PE. After the evolution completes, the end-to-end signaling has fully evolved to EVPN-VPWS, and the transport network has evolved from MPLS to SRv6.</t>
</li>
</ol>
<t>Key design - SID allocation at the intermediate node:</t>

<ul>
<li><t>When the head-end PE to the intermediate node evolves to EVPN SRv6, SRv6 service SIDs need to be allocated for EVPN-VPWS:</t>

<ul spacing="compact">
<li>the head-end PE (not an MSPW intermediate point) can allocate End.DX2;</li>
<li>the intermediate node needs a SID that, after decapsulation, can re-encapsulate the L2VPN VPWS MPLS packet.</li>
</ul></li>
<li><t>If the End.DT2M behavior defined in <xref target="RFC8986"></xref>, Section 6.4, is used, its behavior is fixed to MPLS encapsulation; when the segment from the intermediate node to the tail-end PE later evolves to SRv6, a new SID with a new behavior (e.g., End.DX2) would need to be allocated, which cannot achieve seamless evolution.</t>
</li>
<li><t>Therefore, this document defines a new endpoint behavior, End.DX2PW, through a decoupled design (see <xref target="sec-endDX2PW"></xref>): after decapsulating SRv6, the PW cross-connect forwarding table is looked up, and an MPLS tunnel or an SRv6 tunnel is encapsulated according to the tunnel type associated with the entry. This decouples the tunnel evolution of the different MSPW segments, so that the SID does not need to be changed when the segment from the intermediate node to the tail-end PE evolves.</t>
</li>
</ul>
<t>Figure 6 gives the topology after MSPW evolution: the first segment (PE-1 to
SPE) is EVPN-VPWS over SRv6, and the second segment (SPE to PE-2) is a legacy
PW (MPLS).</t>
<figure anchor="fig-MSPW"><name>MSPW Segment Evolution Topology </name>
<artwork><![CDATA[+------+ AC +-----------+ Segment-1 +--------+ Segment-2 +---------+ AC +------+
| CE-A |----|   PE-1    |-----------|  SPE   |-----------|   PE-2  |----| CE-B |
+------+    | Composite | EVPN-VPWS | Gateway| legacy PW | L2VPN   |    +------+
            |   PE      | over SRv6 |   PE   | (MPLS)    |  PE     |
            +-----------+           +--------+           +---------+
]]></artwork>
</figure>
</section>

<section anchor="sec-data-plane-2"><name>Data Plane</name>
<t>Initial state (all-MPLS MSPW):</t>

<ul spacing="compact">
<li>Ingress direction: the ingress PE encapsulates the payload with the private label and the outer MPLS tunnel label stack and forwards the packet to the intermediate SPE.</li>
<li>Intermediate node: decapsulates the tunnel label stack, swaps the VPN label, re-encapsulates the tunnel label, and forwards toward the tail-end PE.</li>
<li>Egress direction: the egress PE decapsulates the tunnel and private label and forwards to the CE via the AC.</li>
</ul>
<t>After the first segment evolves to EVPN-VPWS over SRv6:</t>

<ul spacing="compact">
<li>Head-end PE: traffic enters from the AC, the AC is found to be associated with both the L2VPN VPWS and EVPN-VPWS entries; the EVPN-VPWS path is preferred. The original frame is encapsulated with an End.DX2PW SID and forwarded to the intermediate node over IPv6.</li>
<li>Intermediate node (Gateway PE): decapsulates the SRv6 header, and per the matching behavior of the End.DX2PW SID, removes the IPv6 header, looks up the PW cross-connect entry, re-encapsulates the next segment tunnel (currently the MPLS label stack), and forwards toward the tail-end PE.</li>
<li>Tail-end PE: decapsulates per the existing L2VPN VPWS procedure and forwards to the AC side.</li>
</ul>
<t>After the second segment also evolves to EVPN-VPWS over SRv6:</t>

<ul spacing="compact">
<li>Intermediate node: after removing the IPv6 header, re-encapsulates the End.DX2 SID of the next-segment PW per the End.DX2PW entry and forwards toward the tail-end PE (still using the same End.DX2PW SID, with no change required).</li>
<li>Tail-end PE: decapsulates the SRv6 header and, per the End.DX2 behavior, forwards to the AC side.</li>
</ul>
</section>

<section anchor="sec-multi-homing"><name>Multi-Homing</name>
<t>Multi-homing in MSPW scenarios can occur at the head segment (CE multi-homed
to the head-end PE) or at the tail segment (CE multi-homed to the tail-end
PE). The evolution principles are consistent with <xref target="sec-single-mh"></xref>:</t>

<ul spacing="compact">
<li>An ESI is configured for the multi-homed AC, and Single-Active or All-Active redundancy mode is set as needed.</li>
<li>The segments traversed by the primary path are evolved first, followed by those traversed by the standby path; before and after the evolution, the primary/backup remains consistent through the preference-based DF election of <xref target="RFC8584"></xref>.</li>
<li>For multi-homing of the intermediate node (Gateway PE) (e.g., two Gateway PEs multi-homed to the same ES), the DF election on both sides must be consistent to avoid duplicate delivery or loops caused by simultaneous forwarding on both sides; this scenario is left for a future revision of this document.</li>
</ul>
</section>
</section>

<section anchor="sec-endDX2PW"><name>End.DX2PW Endpoint Behavior</name>

<section anchor="sec-motivation-and-comparison"><name>Motivation and Comparison</name>
<t>The Gateway PE needs an SRv6 service SID that, after decapsulating SRv6, does
not directly cross-connect to an AC (End.DX2) and does not always encapsulate
in MPLS (End.DT2M), but selects the encapsulation of the next tunnel segment
(MPLS or SRv6) according to the PW cross-connect entry associated with the
SID, and then forwards.</t>
<t>Relationship to existing behaviors:</t>

<ul spacing="compact">
<li><strong>End.DX2</strong> (<xref target="RFC8986"></xref>, Section 6.2): decapsulates and cross-connects at Layer 2 to a specified interface; suitable for the final egress PE;</li>
<li><strong>End.DT2M</strong> (<xref target="RFC8986"></xref>, Section 6.4): decapsulates, performs a Layer 2 table lookup, and encapsulates in MPLS; suitable for SRv6-to-MPLS L2VPN interworking; the encapsulation type is fixed to MPLS;</li>
<li><strong>End.DX2PW</strong> (this document): decapsulates, performs a PW cross-connect entry lookup, and encapsulates in MPLS or SRv6 according to the entry. The encapsulation type is decoupled from the SID.</li>
</ul>
<t>Significance of the decoupling: in MSPW segment-by-segment evolution, when the
segment from the intermediate node to the tail-end PE evolves from MPLS to
SRv6, the End.DX2PW SID remains unchanged; only the PW cross-connect entry is
updated (from &quot;encapsulate in MPLS&quot; to &quot;encapsulate in SRv6&quot;). If End.DT2M
were used, a new behavior SID would need to be allocated during the evolution,
requiring re-advertisement and reprogramming at the head-end PE, which
introduces a risk of service interruption.</t>
</section>

<section anchor="sec-behavior"><name>Behavior Definition</name>
<t>The SRv6 SID of the End.DX2PW behavior is allocated for Layer 2 virtual
private wire service as specified in <xref target="RFC8214"></xref>. The End.DX2PW behavior
cross-connects the virtual Layer 2 payload to the next-segment PW. The
Upper-Layer Header type is 143, as the payload is Ethernet, consistent with
the convention of End.DX2 and End.DT2M in <xref target="RFC8986"></xref>.</t>
<t>When N receives a packet destined to S and S is a local End.DX2PW SID, N does:</t>

<artwork><![CDATA[S01.  When an SRH is processed {
S02.    If (Segments Left != 0) {
S03.      Send an ICMP Parameter Problem to the Source Address,
           Code 0 (Erroneous header field encountered),
           Pointer set to the Segments Left field,
           interrupt packet processing and discard the packet.
S04.    }
S05.    Proceed to process the next header in the packet
S06.  }
]]></artwork>
<t>When processing the Upper-Layer header of a packet matching a SID entry
locally instantiated as an End.DX2PW SID, N does:</t>

<artwork><![CDATA[S01.  If (Upper-Layer Header type == 143 (Ethernet)) {
S02.    Remove the outer IPv6 Header with all its extension headers
S03.    Look up the PW cross-connect entry associated with S
S04.    If (the cross-connect entry is associated with an MPLS tunnel) {
S05.      Push the MPLS label stack from the cross-connect entry
S06.    } Else If (the cross-connect entry is associated with an SRv6
           tunnel) {
S07.      Push the SRv6 SID from the cross-connect entry (and the SRH
           if required)
S08.    } Else {
S09.      Drop the packet
S10.    }
S11.    Forward the resulting packet to the next hop from the
         cross-connect entry
S12.  } Else {
S13.    Drop the packet
S14.  }
]]></artwork>
<t>Notes:</t>

<ol spacing="compact">
<li>The SRH processing above follows the convention of the endpoint behaviors in <xref target="I-D.ietf-spring-srv6-mpls-interworking"></xref>: the End.DX2PW SID is expected to be the last segment of the segment list. If a packet with Segments Left != 0 is received, it is considered an error and discarded, while an ICMP Parameter Problem is sent.</li>
<li>The End.DX2PW behavior SHOULD support the PSP and USP flavors defined in <xref target="RFC8986"></xref>, Section 5.1, and MAY support the USD flavor.</li>
<li>The encapsulation type (MPLS or SRv6) is determined by the PW cross-connect entry and is independent of the SID itself - this is the core decoupling design of this behavior.</li>
</ol>
</section>

<section anchor="sec-sid-allocation-and-advertisement"><name>SID Allocation and Advertisement</name>
<t>The End.DX2PW SID is allocated by the Gateway PE, and its locator part MUST be
routable within the SRv6 domain. The SID is advertised via EVPN routes; the
encoding follows the SRv6 Services TLV of <xref target="RFC9252"></xref> and is carried in the
Ethernet A-D per EVI route <xref target="RFC8214"></xref>. The ingress PE that receives this
route uses the End.DX2PW SID as the outer IPv6 destination address (or the
last segment of the SRH segment list) to encapsulate the service packet.</t>
</section>

<section anchor="sec-flavor-support"><name>Flavor Support</name>
<t>As described in <xref target="sec-behavior"></xref>, the End.DX2PW behavior supports the PSP/USP
flavors: when an SRH is used, the penultimate node can perform PSP
(Penultimate Segment Pop) to pop the SRH, and the final node performs USP
(Ultimate Segment Pop). If the SID is used as the sole segment directly as the
IPv6 destination address (without SRH), the behavior processes the packet
normally.</t>
</section>
</section>

<section anchor="sec-scenarios"><name>Deployment Scenarios and Use Cases</name>

<section anchor="sec-scenario-1-single-segment-vpws-evolution"><name>Scenario 1: Single-Segment VPWS Evolution</name>
<t><strong>Topology</strong>: CE-A and CE-B are interconnected via an L2VPN VPWS within a
single MPLS domain, and both end PEs are L2VPN PEs (see the phase description
of Figure 2).</t>
<t><strong>Use case</strong>: the operator plans to evolve this private line to EVPN-VPWS over
SRv6.</t>
<t><strong>Steps</strong>:</t>

<ol spacing="compact">
<li>Configure EVPN-VPWS signaling for the corresponding VPN instances on both end PEs (becoming Composite PEs);</li>
<li>Establish the EVPN-VPWS path per <xref target="RFC8214"></xref> and install forwarding entries;</li>
<li>Prefer the EVPN-VPWS path according to local policy (make-before-break) and switch forwarding;</li>
<li>After stable operation, remove the legacy PW configuration (or retain it to support fallback).</li>
</ol>
<t><strong>Expected result</strong>: the service is uninterrupted throughout; any step can be
rolled back to the previous state.</t>
</section>

<section anchor="sec-scenario-2-mspw-segment-by-segment-evolution"><name>Scenario 2: MSPW Segment-by-Segment Evolution</name>
<t><strong>Topology</strong>: CE-A and CE-B are interconnected via two PW segments (PE-1-SPE
and SPE-PE-2) (see Figure 6).</t>
<t><strong>Use case</strong>: the operator first evolves the first segment (PE-1-SPE) to SRv6;
the second segment evolves later according to plan.</t>
<t><strong>Steps</strong>:</t>

<ol spacing="compact">
<li>Configure EVPN-VPWS signaling on PE-1 and SPE; PE-1 becomes a Composite PE, and SPE becomes a Gateway PE;</li>
<li>SPE allocates an End.DX2PW SID for the corresponding P2P VPN instance and advertises it;</li>
<li>The first segment evolves to EVPN-VPWS over SRv6, while the second segment keeps the legacy PW (MPLS);</li>
<li>Later, deploy EVPN-VPWS signaling on SPE and PE-2 to evolve the second segment to EVPN-VPWS over SRv6; the End.DX2PW SID of SPE remains unchanged, and only the PW cross-connect entry is updated.</li>
</ol>
<t><strong>Expected result</strong>: segment-by-segment evolution does not block each other;
the End.DX2PW SID does not need to be re-allocated when the second segment
evolves.</t>
</section>

<section anchor="sec-scenario-3-multi-homed-service-evolution-with-remote-ce-multi-homed"><name>Scenario 3: Multi-Homed Service Evolution with Remote CE Multi-Homed</name>
<t><strong>Topology</strong>: CE-A connects to PE-1 (single-homed); CE-B is multi-homed to
PE-2 (a Composite PE) and PE-3 (a legacy L2VPN PE) (see Figure 3); initially,
PE-1 runs a Single-Active active/standby L2VPN PW pair to PE-2 (primary) and
PE-3 (standby).</t>
<t><strong>Use case</strong>: evolve to EVPN-VPWS while keeping the primary/backup consistent,
in a multi-homed scenario where the EVPN-VPWS path and the L2VPN PW terminate
on different remote PEs.</t>
<t><strong>Steps</strong>:</t>

<ol spacing="compact">
<li>Configure an ESI for the multi-homed AC on PE-2 and PE-3, and set the Single-Active redundancy mode.</li>
<li>Upgrade PE-2 to a Composite PE: PE-2 advertises the Ethernet A-D per EVI route per <xref target="RFC8214"></xref> with the P bit set, carrying the association extended communities of <xref target="sec-assoc-ec"></xref> (its local LDP peer address, PW ID, and PW type); PE-3 continues to advertise the L2VPN PW route as the standby.</li>
<li>PE-1 receives the Ethernet A-D per EVI route, associates the EVPN-VPWS path with the matching L2VPN PW to PE-2 via the association extended communities, and switches to the EVPN-VPWS path in a make-before-break fashion per the local policy.</li>
<li>When the EVPN-VPWS path is abnormal, PE-1 falls back to the associated L2VPN PW to PE-2; when PE-2 fails, the standby L2VPN PW to PE-3 becomes active via the L2VPN PW redundancy <xref target="RFC6870"></xref>.</li>
<li>If All-Active is required, configure All-Active redundancy mode after both PE-2 and PE-3 are upgraded to Composite PEs, and adjust the DF election as needed.</li>
</ol>
<t><strong>Expected result</strong>: the primary/backup remains consistent before and after
the evolution; the association switchover between the EVPN-VPWS path and the
L2VPN PW is well defined even though the two paths terminate on different
remote PEs.</t>
</section>

<section anchor="sec-scenario-4-failure-fallback"><name>Scenario 4: Failure Fallback</name>
<t><strong>Topology</strong>: a single-segment (or MSPW) private line after the evolution.</t>
<t><strong>Use case</strong>: after the evolution completes, the EVPN-VPWS path becomes
abnormal (e.g., an SRv6 domain failure).</t>
<t><strong>Steps</strong>:</t>

<ol spacing="compact">
<li>The operator switches the path back to the legacy PW via local policy (make-before-break);</li>
<li>After the failure is recovered and the EVPN-VPWS path is confirmed stable, switch back to the EVPN-VPWS path.</li>
</ol>
<t><strong>Expected result</strong>: the service is uninterrupted during the fallback; the
legacy configuration is retained until the EVPN service is confirmed stable in
the long term.</t>
</section>

<section anchor="sec-scenario-5-incremental-deployment-of-new-sites"><name>Scenario 5: Incremental Deployment of New Sites</name>
<t><strong>Topology</strong>: new sites are added to an existing VPWS network.</t>
<t><strong>Use case</strong>: newly opened private line sites directly deploy EVPN-VPWS over
SRv6 and interoperate with existing legacy VPWS sites.</t>
<t><strong>Steps</strong>:</t>

<ol spacing="compact">
<li>Deploy EVPN-VPWS PEs on the new site side;</li>
<li>Upgrade the relevant PEs on the existing side to Composite PEs (or Gateway PEs), maintaining both the legacy PW and EVPN-VPWS paths in the same P2P VPN instance;</li>
<li>Select the forwarding path according to policy.</li>
</ol>
<t><strong>Expected result</strong>: new and existing sites interoperate seamlessly, and the
existing network does not require a wholesale migration.</t>
</section>
</section>

<section anchor="sec-ops"><name>Operational Considerations</name>

<ul spacing="compact">
<li><strong>Removal of legacy configuration</strong>: after the service switches to EVPN-VPWS on the forwarding plane, the L2VPN VPWS signaling configuration can be removed per private line instance, or uniformly after all services have completed the evolution. It is recommended to remove the existing L2VPN VPWS configuration only after the evolved service has been running stably for a period of time, to avoid having to reconfigure the existing L2VPN VPWS configuration if a rollback is needed.</li>
<li><strong>Switchover and fallback</strong>: all path switchovers use make-before-break to ensure the service is uninterrupted during the switchover; the fallback operation follows the same principle.</li>
<li><strong>Evolution cadence</strong>: it is recommended to proceed in a &quot;site - private line - network&quot; rhythm, from lower risk to higher risk, with full rollback capability at every stage.</li>
</ul>
</section>

<section anchor="sec-security"><name>Security Considerations</name>

<ul spacing="compact">
<li><strong>SRH and SID security</strong>: the SRH processing of the End.DX2PW behavior follows the security conventions of <xref target="RFC8754"></xref> and <xref target="RFC8986"></xref>; SID spoofing, replay, and unauthorized use should be prevented, and ingress filtering and SID validation should be enforced at the boundaries of the SRv6 domain.</li>
<li><strong>BGP security</strong>: EVPN routes (including the SRv6 SID TLV) are advertised within the operator network and should follow the general BGP security practices of <xref target="RFC7454"></xref> (e.g., Hop-limit, TCP-AO, route filtering).</li>
<li><strong>Risk of dual-path coexistence</strong>: when L2VPN VPWS and EVPN-VPWS paths coexist on the same AC, the split-horizon rules and the DF election results must be strictly followed to prevent loops and duplicate forwarding; path switchover should be atomic (make-before-break).</li>
<li><strong>Association validation</strong>: when the Ethernet A-D per EVI route carries the L2VPN PW association information defined in <xref target="sec-assoc"></xref>, the receiving PE MUST validate the information against a locally established L2VPN PW before performing an association switchover. A mismatch MUST NOT trigger a switchover; the mismatch SHOULD be handled per local configuration (e.g., ignore the association information and raise an alarm). This prevents a malicious or erroneous EVPN route from steering the traffic of an existing L2VPN PW to a different destination.</li>
<li><strong>Interworking boundary trust</strong>: the MPLS domain and the SRv6 domain interoperate at the Gateway PE; equivalent trust and isolation policies should be applied to both sides of the network.</li>
</ul>
</section>

<section anchor="sec-iana"><name>IANA Considerations</name>
<t>This document defines a new SRv6 endpoint behavior, End.DX2PW.</t>
<t>IANA is requested to allocate an identifier value for End.DX2PW in the &quot;SRv6
Endpoint Behaviors&quot; sub-registry of the &quot;Segment Routing Parameters&quot; registry
group (established by <xref target="RFC8986"></xref>). The registration procedure for this
registry is IETF Review. The suggested value is to be determined (TBD); it is
suggested to pick an available value in the registry at the time of allocation
(e.g., a suggested candidate value of 63).</t>
<t>This document also defines two new transitive extended communities of Type
0x06 (Transitive Extended Community) in the &quot;Transitive Extended Community&quot;
registry of the &quot;Border Gateway Protocol (BGP) Extended Communities&quot; registry
group (established by <xref target="RFC4360"></xref>):</t>

<ul spacing="compact">
<li>The &quot;L2VPN PW Association Extended Community&quot; (Sub-Type TBD-1), with the format defined in Figure 4;</li>
<li>The &quot;L2VPN PW Peer Address Extended Community&quot; (Sub-Type TBD-2), with the format defined in Figure 5.</li>
</ul>
<t>Both Sub-Types are to be allocated from the Sub-Type space of Type 0x06, and
the registration procedure is IETF Review. The suggested values are to be
determined (TBD).</t>
</section>

</middle>

<back>
<references><name>References</name>
<references><name>Normative References</name>
<xi:include href="https://bib.ietf.org/public/rfc/bibxml3/reference.I-D.ietf-spring-srv6-mpls-interworking.xml"/>
<xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.2119.xml"/>
<xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.4360.xml"/>
<xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.6073.xml"/>
<xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.6074.xml"/>
<xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.6624.xml"/>
<xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.6870.xml"/>
<xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.7454.xml"/>
<xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.8077.xml"/>
<xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.8174.xml"/>
<xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.8200.xml"/>
<xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.8214.xml"/>
<xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.8402.xml"/>
<xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.8584.xml"/>
<xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.8754.xml"/>
<xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.8986.xml"/>
<xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.9012.xml"/>
<xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.9014.xml"/>
<xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.9252.xml"/>
<xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.9256.xml"/>
</references>
<references><name>Informative References</name>
<xi:include href="https://bib.ietf.org/public/rfc/bibxml3/reference.I-D.ietf-bess-evpn-vpws-gateway.xml"/>
<xi:include href="https://bib.ietf.org/public/rfc/bibxml3/reference.I-D.ietf-bess-evpn-vpws-seamless.xml"/>
</references>
</references>

<section anchor="sec-acknowledgements"><name>Acknowledgements</name>
<t>The authors would like to thank the reviewers who provided comments and
suggestions on earlier versions of this document (list to be completed).</t>
</section>

</back>

</rfc>
