<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE rfc [
  <!ENTITY nbsp    "&#160;">
  <!ENTITY zwsp   "&#8203;">
  <!ENTITY nbhy   "&#8209;">
  <!ENTITY wj     "&#8288;">
]>

<rfc xmlns:xi="http://www.w3.org/2001/XInclude" ipr="trust200902" docName="draft-ietf-bess-bgp-sdwan-usage-37" category="info" consensus="true" submissionType="IETF" xml:lang="en" number="10090" tocInclude="true" sortRefs="true" symRefs="true" obsoletes="" updates="" version="3">

  <front>
    <title abbrev="BGP Usage for SD-WAN">BGP Usage for Software-Defined WAN (SD-WAN) Overlay Networks</title>
    <seriesInfo name="RFC" value="10090"/>
    <author initials="L." surname="Dunbar" fullname="Linda Dunbar">
      <organization>Futurewei</organization>
      <address>
        <email>ldunbar@futurewei.com</email>
      </address>
    </author>
    <author initials="A." surname="Sajassi" fullname="Ali Sajassi">
      <organization>Cisco</organization>
      <address>
        <email>sajassi@cisco.com</email>
      </address>
    </author>
    <author initials="J." surname="Drake" fullname="John Drake">
      <organization>Independent</organization>
      <address>
        <email>je_drake@yahoo.com</email>
      </address>
    </author>
    <author initials="B." surname="Najem" fullname="Basil Najem">
      <organization>Bell Canada</organization>
      <address>
        <email>basil.najem@bell.ca</email>
      </address>
    </author>
    <author initials="S." surname="Hares" fullname="Susan Hares">
      <organization/>
      <address>
        <email>shares@ndzh.com</email>
      </address>
    </author>
    <date year="2026" month="November"/>
    <area>RTG</area>
    <workgroup>bess</workgroup>
    <abstract>

<t>This document illustrates how a BGP-based control plane can be used to manage large-scale Software-Defined WAN (SD-WAN) overlay networks by distributing edge service reachability information, WAN port attributes, and underlay path details, thereby minimizing manual provisioning. In such deployments, BGP can provide a standards-based mechanism for distributing information that may otherwise be exchanged using proprietary SD-WAN control plane mechanisms. However, extensions to BGP are needed to achieve this.</t>
    </abstract>
  </front>
  <middle>

<section anchor="introduction">
      <name>Introduction</name>
      <t>Software-Defined WAN (SD-WAN), as described in <xref target="MEF70.2"/>, provides overlay connectivity services that transport IP packets across one or more underlay networks by identifying traffic types and applying policies to determine forwarding behavior. Key characteristics of SD-WAN networks include:</t>
<dl newline="true" spacing="normal">

         <dt>Transport Augmentation:</dt><dd> An SD-WAN path can utilize different types of underlay networks, including private networks (with or without encryption) and public networks (commonly requiring encryption).</dd>

          <dt>Direct Internet Breakout:</dt><dd>Traffic from remote branch offices can directly access the Internet, avoiding backhauling to corporate headquarters for centralized policy control.</dd>

          <dt>Policy-Based Traffic Steering:</dt><dd>Traffic can be directed over specific overlay paths based on predefined conditions, such as matching one or multiple fields in the IP header, rather than solely relying on destination IP addresses <xref target="RFC9522"/>. For IPv6 <xref target="RFC8200"/>, attributes like the Flow Label, source address, specific extension header fields, or a combination of these can be used. Additional details are available in Tables 8 and 9 of <xref target="MEF70.2"/>.</dd>

          <dt>Performance-Based Forwarding:</dt><dd>Traffic can be steered based on performance metrics (e.g., packet delay, loss, and jitter) and selection of the underlay path that meets or exceeds policy requirements.</dd>
      </dl>
      <t>This document focuses on the use of BGP as the SD-WAN overlay control plane. While <xref target="I-D.ietf-rtgwg-net2cloud-problem-statement"/> identifies general issues encountered when interconnecting networks to cloud environments, this document discusses how BGP can be used to distribute reachability, policy, and underlay path information in SD-WAN deployments. Additional operational drivers for standardized protocol behavior are summarized in Section 6 of <xref target="MPLIFY-119"/>.</t>
      <t>It's important to distinguish the BGP instance as the control plane for the SD-WAN overlay from the BGP instances governing the underlay networks. This document requires that communication between the SD-WAN controller and SD-WAN edges for exchanging control plane information be carried over a secure channel. In this document, references to the Route Reflector (RR) denote the RR instance(s) designated by the SD-WAN controller to distribute SD-WAN routing information. The detailed BGP extensions used for SD-WAN edge discovery and attribute distribution are specified in <xref target="I-D.ietf-idr-sdwan-edge-discovery"/>. Deployments may integrate the controller and RR or keep them as separate components. The SD-WAN control plane is logically centralized but may be physically realized by a set of distributed controller/RR instances operating as a coordinated system for scalability, resiliency, and geographic redundancy, with the RR remaining the logical control point for SD-WAN route distribution and policy enforcement as described in this document. The mechanisms for coordination and state synchronization among multiple RR instances are out of the scope of this document.</t>

      <t>The document assumes a single administrative domain for the SD-WAN overlay, consistent with the SD-WAN service model defined in <xref target="MEF70.2"/>. The underlay connectivity may be provided by one or more networks or Network Service Providers (NSPs), but the SD-WAN overlay control plane described in this document is under a single administrative control.</t>
      <t>This document describes several SD-WAN scenarios (see Sections <xref target="scenario-1" format="counter"/>, <xref target="scenario-2" format="counter"/>, and <xref target="scenario-3" format="counter"/>), as well as control plane behaviors and forwarding considerations when BGP is used as the SD-WAN overlay control plane. Publishing this material as an RFC establishes a shared understanding of the SD-WAN problem space and deployment assumptions to assist with protocol development for BGP-based SD-WAN networks <xref target="I-D.ietf-idr-sdwan-edge-discovery"/>. This document is informational and does not specify a complete SD-WAN solution. Its scope is limited to selected SD-WAN overlay control plane functions, such as distributing edge reachability, WAN port attributes, tunnel-related information, and policy-constrained routes.</t>
    </section>
    <section anchor="conventions-used-in-this-document">

<name>Terminology</name>
<dl>

          <dt>Client route:</dt>
        <dd>
          <t>A BGP-advertised route originated by an SD-WAN edge that represents the reachability of a client-facing service (e.g., IP prefix or VLAN) and includes associated path attributes used by the SD-WAN controller for policy enforcement and forwarding decisions.</t>
        </dd>

          <dt>Client service:</dt>
        <dd>
          <t>A service attached to the client-facing interface of an SD-WAN edge, identified by associated reachability or attachment information, such as an IP prefix or VLAN.</t>
        </dd>

        <dt>Cloud Data Center (Cloud DC):</dt>
        <dd>
          <t>A third-party data center that hosts applications and workloads owned by different organizations or tenants.</t>
        </dd>

<dt>CN:</dt><dd>Client Network</dd>
	
        <dt>Controller:</dt>
        <dd>
          <t>Used interchangeably with "SD-WAN controller" to denote the logical system that manages the SD-WAN overlay network. In a BGP-controlled SD-WAN, the controller may include a Route Reflector (RR) function for BGP route propagation and policy-based distribution of SD-WAN routing information. The RR function may be collocated with, embedded in, or otherwise integrated with the SD-WAN controller, but it represents only one component of the overall controller.</t>
        </dd>
	

        <dt>C-PE:</dt>
        <dd>
          <t>An SD-WAN edge, which can be a Customer Premises Equipment (CPE) for customer-managed SD-WAN or a Provider Edge (PE) for provider-managed SD-WAN services.</t>
        </dd>
        <dt>Homogeneous Encrypted SD-WAN:</dt>
        <dd>
          <t>An SD-WAN network in which all traffic to/from the SD-WAN edges is carried by IPsec tunnels regardless of underlying networks, i.e., the client traffic is carried by IPsec tunnels even over MPLS private networks.</t>
        </dd>
        <dt>NSP:</dt>
        <dd>
          <t>Network Service Provider</t>
        </dd>
        <dt>PE:</dt>
        <dd>
          <t>Provider Edge</t>
        </dd>

        <dt>Private VPN:</dt>
        <dd>
          <t>A VPN that is supported wholly by a single network service provider without using any elements of the public Internet and without any traffic passing out of the immediate control of that service provider.</t>
        </dd>
	  
        <dt>SD-WAN:</dt>
        <dd>
          <t>Software-Defined Wide Area Network. An overlay connectivity service that transports IP packets over one or more underlay connectivity services by forwarding them based on policies <xref target="MEF70.2"/>.</t>
        </dd>
        <dt>SD-WAN edge:</dt>
        <dd>
          <t>A functional entity, either physical or virtual, that participates in the SD-WAN overlay network. These nodes advertise client routes to the SD-WAN controller (e.g., BGP RR).</t>
        </dd>
        <dt>SD-WAN IPsec SA:</dt>
        <dd>
          <t>IPsec Security Association (SA) <xref target="RFC4301"/> between two WAN ports of the SD-WAN edges or between two SD-WAN edges.</t>
        </dd>

        <dt>SD-WAN over Hybrid Underlay Networks:</dt>
        <dd>
          <t>An SD-WAN network that typically has edge nodes utilizing bandwidth resources from different types of underlay networks, some being private networks and others being public Internet.</t>
        </dd>
        <dt>WAN Port:</dt>
        <dd>
          <t>A port or interface facing a Network Service Provider (NSP), with an address allocated by the NSP.</t>
        </dd>

        <dt>Zero Touch Provisioning (ZTP):</dt>
        <dd>
          <t>A network automation approach that enables automatic provisioning and configuration of SD-WAN devices, such as routers and switches, at remote locations without manual intervention.</t>
        </dd>
      </dl>
    </section>
    <section anchor="sd-wan-scenarios-and-their-requirements">
      <name>SD-WAN Scenarios and Their Requirements</name>
      <t>This section outlines the core requirements for SD-WAN overlay networks and introduces various SD-WAN scenarios. Sections <xref target="scenario-1" format="counter"/>, <xref target="scenario-2" format="counter"/>, and <xref target="scenario-3" format="counter"/> describe potential SD-WAN deployment scenarios, which are further explored in later sections to illustrate how the BGP control plane can be used to distribute reachability and policy information within SD-WAN overlay networks.</t>
      <section anchor="sd-wan-functional-overview">
        <name>SD-WAN Functional Overview</name>
        <section anchor="supporting-sd-wan-segmentation">
          <name>Supporting SD-WAN Segmentation</name>
          <t>SD-WAN Segmentation refers to policy-driven network partitioning, a common approach in SD-WAN deployment. An SD-WAN segment is essentially a virtual private network (SD-WAN VPN) consisting of a set of edge nodes interconnected by tunnels, such as IPsec tunnels and/or MPLS VPN tunnels.</t>
          <t>This document assumes that SD-WAN VPN configuration on PE devices will, as with MPLS VPN, make use of Virtual Routing and Forwarding (VRF) instances <xref target="RFC4364"/> <xref target="RFC4659"/>. Notably, a single SD-WAN VPN can be mapped to one or multiple virtual topologies governed by the SD-WAN controller's policies.</t>

          <t>When BGP is used for SD-WAN, the client route UPDATE is the same as that used for MPLS VPN. The Route Target in the BGP Extended Community <xref target="RFC4360"/> can differentiate the routes belonging to different SD-WAN VPNs.</t>

<t>SD-WAN is an overlay network that uses multiple types of networks; thus, MPLS L2VPN <xref target="RFC4761"/> <xref target="RFC4762"/>, L3VPN <xref target="RFC4364"/> <xref target="RFC4659"/>, or pure Layer 2 underlays can continue using the VPN ID (Virtual Private Network Identifier), VN-ID (Virtual Network Identifier), or VLAN (Virtual LAN) in the data plane to differentiate packets belonging to different SD-WAN VPNs. For packets transported through an IPsec tunnel, additional encapsulation, such as GRE <xref target="RFC2784"/> or Virtual eXtensible Local Area Network (VXLAN) <xref target="RFC7348"/>, is needed to embed the SD-WAN VPN identifier inside the IPsec Encapsulating Security Payload (ESP) header.</t>

          <t><xref target="sd-wan-traffic-segmentation"/> further elaborates on traffic segmentation by providing operational examples and detailing how segmentation policies apply to individual flows; in other words, both this section and <xref target="sd-wan-traffic-segmentation"/> describe the same concept at different levels of granularity.</t>
        </section>
        <section anchor="client-service-requirement">
          <name>Client Service Requirements</name>
          <t>The client service requirements describe the SD-WAN edge's ports (also known as SD-WAN client interfaces), which connect the client network to the SD-WAN service.</t>
          <t>The SD-WAN client interface should support IPv4 and IPv6 addresses as well as Ethernet in accordance with <xref target="IEEE802.3"/>.</t>
          <t>In <xref target="MEF70.2"/>, the SD-WAN client interface is called the SD-WAN UNI (User Network Interface). Section 11 of <xref target="MEF70.2"/> defines a comprehensive set of attributes for the SD-WAN UNI, detailing the expected behavior and requirements to enable seamless connectivity to the client network.</t>
          <t>The client service at the SD-WAN edge must support the SD-WAN UNI service attributes outlined in Section 11 of <xref target="MEF70.2"/>.</t>
        </section>
        <section anchor="sd-wan-traffic-segmentation">
          <name>SD-WAN Traffic Segmentation</name>
          <t>SD-WAN traffic segmentation allows traffic to be separated based on business priorities, security requirements, and operational needs. This ensures that different user groups or services can operate within distinct topologies or follow tailored policies to meet specific business and security objectives.</t>
          <t>For example, in a retail environment, traffic from Point-of-Sale (PoS) systems may require a different topology that is separate from that of other traffic. The PoS traffic is routed exclusively to the payment-processing entity at a central hub site, while other types of traffic can be routed among all branches or remote sites.</t>
          <t>In the figure below, traffic from the PoS system follows a tree topology (denoted as "---"), whereas other traffic can follow a multipoint-to-multipoint topology (denoted as "===").</t>
          <figure anchor="diff-traffic-topo">
            <name>Differentiated Traffic Topologies</name>
            <artwork align="center"><![CDATA[
                    +--------+
    Payment traffic |Payment |
      +------+----+-+Gateway +------+----+-----+
     /      /     | +----+---+      |     \     \
    /      /      |      |          |      \     \
 +-+--+  +-+--+  +-+--+  |   +-+--+  +-+--+  +-+--+
 |Site|  |Site|  |Site|  |   |Site|  |Site|  |Site|
 | 1  |  |  2 |  | 3  |  |   |4   |  |  5 |  | 6  |
 +--+-+  +--+-+  +--|-+  |   +--|-+  +--|-+  +--|-+
    |       |       |    |      |       |       |
  ==+=======+=======+====+======+=======+=======+===
]]></artwork>
          </figure>
          <t>Another example is an enterprise that wants to isolate traffic by department, ensuring that each department has its own unique topology and policies. For instance, the HR department may need to access specific systems or resources that are not accessible by the engineering department. Similarly, contractors may have limited access to the enterprise resources.</t>
        </section>
        <section anchor="zero-touch-provisioning">
          <name>Zero Touch Provisioning</name>
          <t>SD-WAN Zero Touch Provisioning (ZTP) allows an SD-WAN edge to obtain initial configuration without manual intervention. ZTP and onboarding procedures are not specific to BGP and are outside the scope of this document. In the context of this document, the only ZTP-related aspect is that the SD-WAN edge obtains the information needed to authenticate to the SD-WAN controller/RR and establish a secure channel for exchanging BGP UPDATE messages.</t>
        </section>
        <section anchor="constrained-propagation-of-sd-wan-edge-properties">
          <name>Constrained Propagation of SD-WAN Edge Properties</name>
          <t>For an IPsec tunnel to be established between two edges for data exchange, both edges need to know each other's network properties (such as the IP addresses of the WAN ports, the loopback addresses of the edges, the attached client routes, the supported encryption methods, etc.), which are learned via BGP UPDATEs exchanged through the RR.</t>

          <t>In many cases, an SD-WAN edge is authorized to communicate with only a subset of other edge nodes. To maintain security and privacy, the properties of an SD-WAN edge must not be propagated to unauthorized peers. However, when a remote SD-WAN edge powers up, it may lack the policies to determine which peers it is authorized to communicate with. Therefore, SD-WAN deployment needs to have a central point to distribute the properties of an SD-WAN edge to its authorized peers.</t>
          <t>BGP is well suited for this purpose. An RR <xref target="RFC4456"/>, integrated into the SD-WAN controller, enforces policies governing the communication among SD-WAN edges. The RR ensures that BGP UPDATE messages from an SD-WAN edge are propagated only to other edges within the same SD-WAN VPN, as shown in <xref target="auth-peer-grou-rr"/>.</t>
          <t>An SD-WAN edge must exchange BGP UPDATE messages with its designated RR over a protected transport. For example, IPsec <xref target="RFC4301"/> can be used to protect the path between the SD-WAN edge and RR, with the BGP TCP session established over that protected path. Other mechanisms for protecting the edge-to-RR BGP session are outside the scope of this document.</t>

          <figure anchor="auth-peer-grou-rr">
            <name>Authorized Peer Groups Managed by RR</name>
            <artwork align="center"><![CDATA[
                     +---+
  Authorized Peer G1 |RR |   Authorized Peer G2
       +======+====+=+   +======+====+=====+
      /      /     | +---+      |     \     \
     /      /      |            |      \     \
  +-+--+  +-+--+  +-+--+      +-+--+  +-+--+  +-+--+
  |C-PE|  |C-PE|  |C-PE|      |C-PE|  |C-PE|  |C-PE|
  | 1  |  |  2 |  | 3  |      |4   |  |  5 |  | 6  |
  +----+  +----+  +----+      +----+  +----+  +----+
       Tenant 1                   Tenant 2
]]></artwork>
          </figure>

          <t>Tenant separation is achieved by the SD-WAN VPN identifiers represented in the control plane and data plane.</t>
        </section>
      </section>
      <section anchor="scenario-1">
        <name>Scenario #1: Homogeneous Encrypted SD-WAN</name>

        <t>Homogeneous Encrypted SD-WAN refers to an SD-WAN network where edge nodes encrypt all client traffic destined to other edge nodes, regardless of whether the underlay is private or public.</t>
        <t>The following are typical use cases for Homogeneous Encrypted SD-WAN:</t>
        <ul spacing="normal">
          <li>
            <t>A small branch office connects to its headquarters via the Internet. All traffic to and from this small branch office must be encrypted; this is usually achieved by IPsec tunnels <xref target="RFC4301"/>.</t>
          </li>
          <li>
            <t>A retail store in a shopping mall may need to securely connect to its services hosted in one or more Cloud DCs via the Internet. A common method involves establishing IPsec SAs with the Cloud DC gateway to securely transport sensitive data to/from the store.</t>
          </li>
        </ul>
        <t>The granularity of the IPsec SAs for Homogeneous Encrypted SD-WAN can be per site, per subnet, per tenant, or per address. Once the IPsec SA is established for a specific subnet, tenant, or site, all traffic to/from that subnet, tenant, or site is encrypted.</t>

        <figure anchor="hom-en-sd-wan">
          <name>Homogeneous Encrypted SD-WAN</name>
          <artwork align="center"><![CDATA[
                                  +---+
                   +--------------|RR |------------+
                  /  trusted      +-+-+             \
                 /                                   \
                /                                     \
  +----+  +---------+                             +------+  +----+
  | CN3|--|         P1-----+ -------------+------ P1     |--| CN3|
  +----+  | C-PE1   P2-----+              |       | C-PE2|  +----+
  +----+  |         P3-----+     Wide     +------ P2     |  +----+
  | CN2|--|         |      |     Area     +------ P3     |--| CN1|
  +-+--+  +---------+      |   Network    |       +------+  +-+--+
     \                     |              |                  /
      \   +---------+      | all packets  |       +------+  /
       +--|         P1-----+ encrypted    +------ P1     |-+
          | C-PE3   P2-----+     by       |       | C-PE4|
  +----+  |         P3-----+ IPsec SAs    +------ P2     |  +----+
  | CN1|--|         P4-----+--------------+       |      |--| CN2|
  +----+  +---------+                             +------+  +----+
]]></artwork>
        </figure>
        <t>A Homogeneous Encrypted SD-WAN, as shown in <xref target="hom-en-sd-wan"/>, uses IPsec tunnels to protect traffic between SD-WAN edges. The SD-WAN overlay may include many edge nodes, with configuration and policy information managed by an SD-WAN controller.</t>
        <t>Existing private VPNs (e.g., MPLS-based) can use Homogeneous Encrypted SD-WAN to extend over the public network to remote sites for which the VPN operator does not own or lease infrastructural connectivity.</t>
      </section>
      <section anchor="scenario-2">
        <name>Scenario #2: Differential Encrypted SD-WAN</name>

        <t>Differential Encrypted SD-WAN refers to an SD-WAN network that utilizes hybrid underlays, combining private VPNs and the public Internet. In this model, traffic traversing the private VPN is forwarded without IPsec encryption, while traffic over the public Internet is encrypted for security. This approach balances performance and security. IPsec encryption requires significant processing power, and traffic over the public Internet typically lacks the premium SLA (Service Level Agreement) provided by private VPNs (especially over long distances); thus, current practice is to forward traffic over private VPNs without encryption, leveraging the inherent reliability and security of the private network. Meanwhile, encryption is applied only to traffic routed over the public Internet to ensure data confidentiality.</t>
        <t>One C-PE might have Internet-facing WAN ports managed by different NSPs with the addresses of the WAN ports assigned by the corresponding NSPs. Clients may define specific policies to govern how traffic flows across the network, such as:</t>
        <ol spacing="normal" type="1"><li>
            <t>Certain flows can only be forwarded over private VPNs.</t>
          </li>
          <li>
            <t>Certain flows can be forwarded over either private VPNs or the public Internet. When forwarded over the public Internet, the packets are encrypted.</t>
          </li>
          <li>
            <t>Some flows, especially Internet-bound browsing ones, can be  handed off to the Internet without further encryption.</t>
          </li>
        </ol>

        <t>For example, consider a flow traversing multiple segments (A&lt;-&gt;B, B&lt;-&gt;C, C&lt;-&gt;D) and is subject to the second policy above. This flow can cross different underlays in different segments, such as over a private underlay between A&lt;-&gt;B without encryption or over the public Internet between B&lt;-&gt;C protected by an IPsec SA.</t>
        <t>In the figure below, each C-PE has both Internet-facing and private VPN interfaces (e.g., A1, B1, C3, and D2 connect to the Internet, while others connect to the private VPN). The addresses of the WAN ports can be allocated by the service providers or dynamically assigned (e.g., by DHCP).</t>

	
        <figure anchor="sd-wan-int-fac-ports">
          <name>SD-WAN with Internet-Facing Ports</name>
          <artwork align="center"><![CDATA[
                                   +---+
                    +--------------|RR |----------+
                   /               +-+-+           \
                  /                                 \
                 /                                   \
 +----+  +---------+  packets encrypted over     +------+  +----+
 | CN3|--|         A1-----+ Untrusted    +------ B1     |--| CN1|
 +----+  | C-PE1   A2-\                          | C-PE2|  +----+
 +----+  |         A3--+--+              +---+---B2     |  +----+
 | CN2|--|         |   |PE+--------------+PE |---B3     |--| CN3|
 +----+  +---------+   +--+   trusted    +---+   +------+  +----+
                          |      WAN     |
 +----+  +---------+   +--+              +---+   +------+  +----+
 | CN1|--|         C1--|PE|   no IPsec   |PE |-- D1     |--| CN1|
 +----+  | C-PE3   C2--+--+  encryption  +---+   | C-PE4|  +----+
         |         |      +--------------+       |      |
         |         |                             |      |
 +----+  |         |      without encrypt over   |      |  +----+
 | CN2|--|         C3--+---- Untrusted  --+------D2     |--| CN2|
 +----+  +---------+                             +------+  +----+
]]></artwork>
        </figure>
        <t>Services may not be congruent, i.e., the packets from A-&gt;B may traverse one underlay network, and the packets from B-&gt;A may go over a different underlay due to SD-WAN policies being applied independently in each direction.</t>
      </section>
      <section anchor="scenario-3">
        <name>Scenario #3: Private VPN PE-Based SD-WAN</name>

        <t>A Private VPN PE-Based SD-WAN refers to extending an existing VPN (e.g., EVPN <xref target="RFC7432"/> or IP VPN) by adding more Internet-facing ports to the PE devices to enable additional paths over the Internet underlay. In this scenario, the PE is part of the SD-WAN edge function, enabling selected traffic to be offloaded over the public Internet to address increased bandwidth requirements between PE devices. This approach allows VPN service providers to augment their networks without immediately committing to building or leasing new infrastructure.</t>
        <t>The following are key characteristics of Private VPN PE-Based SD-WAN:</t>
        <ul spacing="normal">
          <li>
            <t>For MPLS-based VPN, traffic between PEs uses MPLS encapsulation within IPsec tunnels egressing the Internet WAN ports, such as MPLS-in-IP or GRE-in-IPsec.</t>
          </li>
          <li>
            <t>The BGP RR remains connected to the PEs via the same trusted network as the original VPN, ensuring consistency in routing policies and security.</t>
          </li>
        </ul>
        <t>The main use case for Private VPN PE-Based SD-WAN is temporary bandwidth expansion, as shown in <xref target="add-int-path-add-vpn"/>.</t>
        <figure anchor="add-int-path-add-vpn">
          <name>Additional Internet Paths Added to the VPN</name>
          <artwork align="center"><![CDATA[
              +---+
      +======>|PE2|
    //        +---+
   //          ^
  //           || VPN
 //     VPN    v
 |PE1| <====> |RR| <=>   |PE3|
 +-+-+        +--+       +-+-+
   |                       |
   +--- Public Internet -- +
            Offload
]]></artwork>
        </figure>
        <t>For Ethernet-based client traffic, Private VPN PE-Based SD-WAN should support VLAN-based service interfaces (EVPN Instances), VLAN bundle service interfaces, or VLAN-aware bundling service interfaces. EVPN service requirements as described in <xref section="3.1" sectionFormat="of" target="RFC8388"/> are applicable to the SD-WAN Ethernet-based client services. For IP-based client interfaces, L3VPN service requirements are applicable.</t>
      </section>
    </section>
    <section anchor="provisioning-model">
      <name>Provisioning Model</name>

      <t>This section defines the provisioning model, i.e., a conceptual framework that scopes the roles (controller/RR and edges), the artifacts (client-service constructs, policies, and IPsec parameters), and their mapping to BGP attributes.</t>
      <section anchor="client-service-provisioning-model">
        <name>Client Service Provisioning Model</name>
        <t>Provisioning of client services in an SD-WAN network can leverage approaches similar to those used for VRFs in MPLS-based VPNs <xref target="RFC4364"/> <xref target="RFC4659"/>. A client VPN can define communication policies by specifying BGP Route Targets for import and export. Alternatively, policy-based filtering using ACLs (Access Control Lists) can be employed to control which routes are allowed or denied for a given client VPN.</t>
        <t>In scenarios where an SD-WAN edge is dedicated to a single client with a single virtual network, all services attached to the client-facing interface(s) on the edge node can be grouped into a single VRF. The RR can manage the import/export policies for that VRF.</t>
      </section>
      <section anchor="policy-configuration">
        <name>Policy Configuration</name>
	
        <t>Policy configuration is a key characteristic of an SD-WAN service, enabling packets to be forwarded over multiple types of underlays based on predefined rules. Policies determine which underlay paths are allowed to carry specific flows, as outlined in Section 8 of <xref target="MEF70.2"/>. A flow is a collection of packets between the same source and destination pair that are subject to the same forwarding and policy decisions at the ingress SD-WAN edge and are identified by the settings of one or more fields in the packet headers. For example, client flow-x can only be mapped to an MPLS topology, ensuring traffic alignment with business or security requirements.</t>
      </section>
      <section anchor="ipsec-related-parameters-provisioning">
        <name>IPsec-Related Parameters Provisioning</name>

<t>IPsec-related parameter provisioning in an SD-WAN network involves the negotiation and distribution of cryptographic parameters required to establish IPsec tunnels among the SD-WAN edges. To streamline the configuration process, SD-WAN edges can retrieve those parameters directly from the SD-WAN controller, reducing manual intervention and ensuring consistency.</t>

        <t>In a BGP-controlled SD-WAN, BGP UPDATE messages could be extended to propagate IPsec-related attributes for each SD-WAN edge <xref target="I-D.ietf-idr-sdwan-edge-discovery"/>. These attributes allow SD-WAN edges to receive compatible IPsec parameters from the RR over a protected BGP session. By leveraging the authenticated and authorized relationship between each SD-WAN edge and the RR, this approach can simplify IPsec tunnel establishment and either reduce or eliminate the need for separate per-peer Internet Key Exchange Protocol Version 2 (IKEv2) <xref target="RFC7296"/> authentication between SD-WAN edges, depending on the deployment model (see Sections <xref target="rationale-for-using-bgp-as-control-plane-for-sd-wan" format="counter"/> and <xref target="manageability-considerations" format="counter"/>).</t>
        <t>This mechanism supports the ZTP requirement outlined in <xref target="zero-touch-provisioning"/> by enabling IPsec tunnels to be provisioned without IKEv2 negotiation.</t>
      </section>
    </section>
    <section anchor="bgp-controlled-sd-wan">
      <name>BGP-Controlled SD-WAN</name>
      <section anchor="rationale-for-using-bgp-as-control-plane-for-sd-wan">
        <name>Rationale for Using BGP as Control Plane for SD-WAN</name>
        <t>In small SD-WAN networks with a modest number of nodes, a hub-and-spoke overlay model (including designs that use the Next Hop Resolution Protocol (NHRP) <xref target="RFC2332"/> for tunnel endpoint resolution) can be manageable. In larger SD-WAN networks with many edge nodes and diverse underlays, additional mechanisms are often needed to distribute reachability, tunnel endpoint information, and policy-related attributes in a scalable and consistent manner.</t>
        <t>BGP offers several key advantages when used as the control plane for a large SD-WAN:</t>
<dl newline="true" spacing="normal">
            <dt>Simplified peer authentication process:</dt>
<dd>With a secure channel established between each edge node and its RR, the RR can perform peer authentication on behalf of the edge node. The RR has policies on peer communication and the built-in capability to constrain the propagation of the BGP UPDATE messages to the authorized edge nodes only.</dd>
            <dt>Scalable IPsec tunnel management:</dt>
<dd>In networks with multiple IPsec tunnels between SD-WAN edges, BGP can simplify tunnel management by advertising WAN port properties and IPsec-related parameters. One possible approach for carrying such information is described in <xref target="I-D.ietf-idr-sdwan-edge-discovery"/>. These BGP attributes allow peers to learn tunnel endpoints and associated parameters via the control plane and to associate advertised client routes with the appropriate IPsec SAs, thereby reducing manual configuration and enabling scalable, consistent tunnel establishment across the SD-WAN.
When an IGP such as OSPF is run over IPsec tunnel interfaces, routing adjacencies are typically established per tunnel. In a BGP-controlled SD-WAN context, multiple service flows can be associated with shared tunnel parameters, reducing repeated per-tunnel control plane configuration.</dd>

            <dt>Simplified traffic selection configurations:</dt>

<dd>BGP can simplify the configuration of IPsec tunnel associations and related forwarding policies. By leveraging Route Targets to identify SD-WAN VPN membership, administrators can apply import/export policies that control the distribution of client routes. These route attributes, in turn, inform the local configuration of IPsec traffic selectors at each SD-WAN edge.</dd>

            <dt>Centralized management and security:</dt>

<dd>When the BGP RR is integrated with the SD-WAN controller, it supports a centralized model for managing route distribution policies. The RR ensures that BGP UPDATE messages are distributed only to authorized SD-WAN edges based on preconfigured policies, thereby reducing control plane complexity and limiting exposure compared to decentralized architectures.</dd>
</dl>
	
        <t>In summary, BGP is well suited to these SD-WAN overlay control plane functions because it provides standardized mechanisms for scalable route distribution, policy-based route propagation, VPN membership control using Route Targets, and extensible encoding of tunnel-related attributes. These mechanisms are especially useful as the network grows in size and complexity.</t>
      </section>
      <section anchor="bgp-scenario-for-homogeneous-encrypted-sd-wan">
        <name>BGP Scenario for Homogeneous Encrypted SD-WAN</name>

        <t>In a BGP-controlled Homogeneous Encrypted SD-WAN, an SD-WAN edge (i.e., C-PE) could advertise both its attached client routes and associated IPsec tunnel parameters using BGP UPDATE messages. One possible approach using the Tunnel Encapsulation Attribute is described in <xref target="I-D.ietf-idr-sdwan-edge-discovery"/>.
        For example, in the figure below, the BGP UPDATE message from C-PE2 to RR can use BGP attributes to convey the parameters needed to associate those routes with the appropriate IPsec tunnel.
	</t>
        <figure anchor="hom-enc-sd-wan">
          <name>BGP for SD-WAN</name>
          <artwork align="center"><![CDATA[
                        +---+
              +---------|RR |----------+
             / trusted  +---+           \
            /                            \
           /                              \
   +---------+                       +---------+
 --+     WAN Port ------------WAN Port       ClientPort-
   |         |                       | C-PE2   |192.0.2.4/30
   | C-PE1   |            WAN Port +-|192.0.2.2|
 --|192.0.2.1|                     | |       ClientPort-
   +---------+                     | +---------+192.0.2.8/30
                                   |
                                   |
                                   |
   +---------+                     |
 --|         WAN Port -------------+
   |         |
   | C-PE3   |
 --|192.0.2.3|
   +---------+
]]></artwork>
        </figure>


        <t>In scenarios where C-PE2 does not have a policy specifying the authorized peers for specific client routes, the RR takes the responsibility for ensuring that BGP UPDATE messages for these client routes are propagated only to other authorized SD-WAN edges.</t>
      </section>
      <section anchor="bgp-scenario-for-differential-encrypted-sd-wan">
        <name>BGP Scenario for Differential Encrypted SD-WAN</name>

        <t>In this scenario, client services may have distinct forwarding requirements based on business or network policies. Some traffic flows can be routed through any WAN ports of the edge node, while others must be routed through specific WAN ports (such as ports connected to an MPLS VPN). To address these requirements, the BGP speaker employs two distinct BGP UPDATE messages:</t>
<dl newline="true" spacing="normal">

            <dt>UPDATE 1: Client Route Advertisement</dt><dd>This UPDATE advertises the prefixes of client services attached to the client-facing interfaces of an SD-WAN edge. As described in <xref section="8" sectionFormat="of" target="RFC9012"/>, recursive next-hop resolution can be used to associate each client route with the appropriate WAN-facing interface(s) of the advertising SD-WAN edge for the desired underlay path. <xref target="hom-enc-sd-wan"/> illustrates the relationship among the client routes, the SD-WAN edge, and the RR.</dd>

            <dt>UPDATE 2: WAN-Facing Interface Advertisement</dt><dd>This UPDATE advertises information about the WAN-facing interfaces of an SD-WAN edge that connect to the underlay networks, including attributes such as IPsec SA parameters, MPLS label stacks, and other relevant underlay properties. These attributes are carried in the BGP Tunnel Encapsulation Attribute, together with associated Color values, allowing BGP receivers to associate the advertised WAN-facing interfaces with the client routes advertised in UPDATE 1. <xref target="hom-enc-sd-wan"/> also illustrates the SD-WAN edge WAN ports that are the basis for this advertisement.</dd>

        </dl>
        <t>This dual-update approach provides flexibility and efficiency in managing IPsec tunnels terminated at the WAN ports of SD-WAN edges. By decoupling client route advertisements from IPsec tunnel attributes, it accommodates the differing update frequencies between these components; for example, client route changes may occur independently of dynamic IPsec parameters such as key values. Additionally, multiple client services can share a single IPsec SA, optimizing resource usage and reducing control plane overhead.</t>
        <t>BGP receivers associate the two UPDATE messages using the common loopback address of the SD-WAN edge (e.g., C-PE2). UPDATE 1 advertises client routes with the next hop set to C-PE2's loopback address. UPDATE 2 advertises underlay WAN port information using a Network Layer Reachability Information (NLRI) that contains the same loopback address, along with the Tunnel Encapsulation Attribute conveying IPsec parameters and WAN port properties. BGP receivers use the common loopback address to match the next hop in UPDATE 1 with the NLRI in UPDATE 2. This enables recursive resolution, as specified in <xref target="RFC9012"/>, allowing client traffic to be forwarded based on the underlay characteristics defined in UPDATE 2.</t>
      </section>
      <section anchor="bgp-scenario-for-flow-based-segmentation">
        <name>BGP Scenario for Flow-Based Segmentation</name>
        <t>In a flow-based segmentation scenario, as described in <xref target="sd-wan-traffic-segmentation"/>, a service flow is identified by specific fields in the packet's IP header, such as source/destination IP addresses, port numbers, or protocol types. Flow-based segmentation ensures that traffic for a particular service flow is directed only to authorized nodes or paths, meeting security and policy requirements.</t>

<t>This can be achieved by constraining the propagation of BGP UPDATE messages to nodes that meet the criteria of the service flow. For instance, to enforce communication exclusively between the Payment Application in branch locations and the Payment Gateway, as depicted in <xref target="flow-based-sd-wan"/>, the following BGP UPDATE messages can be advertised:</t>

        <dl newline="true" spacing="normal">
          <dt>BGP UPDATE 1a:</dt>

            <dd>Originated by the SD-WAN edge attached to the Payment Application and propagated only to the Payment Gateway node for a point-to-point (P2P) topology between the Payment Application and the Payment Gateway.</dd>


	  
          <dt>BGP UPDATE 1b:</dt>
            <dd>Originated by the same SD-WAN edge and propagated to C-PE1 and C-PE3 for other prefixes that can be reached by these edge nodes.</dd>
        </dl>


        <figure anchor="flow-based-sd-wan">
          <name>Flow-Based SD-WAN Segmentation</name>
          <artwork align="center"><![CDATA[
                        +-------+
                        |Payment|
               +------->|Gateway|<----+
              /         +-------+      \
             /        Blue Tunnel       \
            /for Payment App:192.0.2.9/30\
           /                              \
   +------+--+                        +----+----+
 --|         |                        |         |-192.0.2.9/30
   |         |     Red Tunnels        |         |
 --| C-PE1   |------------------------|         |-192.0.2.4/30
   |192.0.2.1|                        |  C-PE2  |
 --|         |------------------------|192.0.2.2|-192.0.2.8/30
   |   ------+                       +|         |   VLAN=25;
                                    / |         |-192.0.2.10/30
   +---------+                     /  +---------+
 --|         |--------------------+
   | C-PE3   |                   /
   |192.0.2.3|                  /
 --|         |-----------------+
   +---------+
]]></artwork>
        </figure>
        <t>In <xref target="flow-based-sd-wan"/>, the "Blue Tunnel" denotes the tunnel used exclusively for Payment Application traffic toward the Payment Gateway, whereas the "Red Tunnels" are tunnels used for other authorized traffic among SD-WAN edge nodes.</t>
      </section>
    </section>
    <section anchor="sd-wan-forwarding-model">
      <name>SD-WAN Forwarding Model</name>
      <t>This section briefly illustrates how BGP-distributed reachability, tunnel attributes, Route Targets, and policy information are used by SD-WAN edges when forwarding client traffic in the scenarios described in <xref target="sd-wan-scenarios-and-their-requirements"/>. The forwarding behavior described in this section is not specific to BGP-based control and is provided here only to show how the BGP-distributed information is consumed by SD-WAN edges.</t>

      <t>The forwarding procedures described in <xref section="6" sectionFormat="of" target="RFC8388"/> are applicable to SD-WAN client traffic. Similar to the UPDATE message for BGP-based VPN/EVPN client routes, Route Targets can be used to distinguish routes from different clients.</t>
      <section anchor="forwarding-model-for-homogeneous-encrypted-sd-wan">
        <name>Forwarding Model for Homogeneous Encrypted SD-WAN</name>
        <section anchor="network-and-service-startup-procedures">
          <name>Network and Service Startup Procedures</name>

          <t>In the Homogeneous Encrypted SD-WAN scenario, two IPsec SAs are required to secure bidirectional traffic between two C-PE nodes (or their client-facing interfaces), since each SA protects traffic in only one direction. For example, in the full mesh scenario in <xref target="hom-en-sd-wan"/> of <xref target="scenario-1"/>, where client CN2 is attached to C-PE1, C-PE3, and C-PE4, six unidirectional IPsec SAs must be established: C-PE1 &lt;-&gt; C-PE3, C-PE1 &lt;-&gt; C-PE4, and C-PE3 &lt;-&gt; C-PE4.</t>

          <t>SD-WAN services to clients can be IP-based or Ethernet-based. For IP-based services, an SD-WAN edge can learn client addresses from the client-facing interfaces via OSPF <xref target="RFC2328"/> <xref target="RFC5340"/>, RIP <xref target="RFC1058"/> <xref target="RFC2453"/>, BGP <xref target="RFC4271"/>, or static configuration. For Layer 2 services, the EVPN parameters, such as the ESI (Ethernet Segment Identifier), EVI (EVPN Instance), and mapping of CE-VID (Customer Edge Virtual Instance Identifier) to EVI, can be configured as described in <xref target="RFC8388"/>.</t>
          <t>In a BGP-controlled SD-WAN, the BGP RR can propagate the client route UPDATE messages to authorized SD-WAN edges based on configured policies. The SD-WAN edges use BGP attributes, such as the Tunnel Encapsulation Attribute and associated Color values, to associate received client routes with the appropriate IPsec Security Associations (SAs), thereby reducing per-edge configuration of tunnel endpoint associations. Other SD-WAN service policies, traffic-steering rules, and device-specific parameters may still be provisioned by the SD-WAN controller or local configuration.</t>
        </section>
        <section anchor="packet-walk-through">
          <name>Packet Walk-Through</name>
          <dl newline="true">
            <dt>Unicast packet forwarding:</dt>
            <dd>
              <t>An IPsec SA terminated at a C-PE node can carry traffic for multiple client services. Packets to and from these services are encapsulated in an inner tunnel, such as GRE or VXLAN. Different client traffic can be distinguished using a unique key or identifier in the inner encapsulation header. This inner tunnel is further encapsulated with an outer IP header, where the source and destination addresses are the loopback addresses of the C-PE nodes, and the protocol field is typically set to ESP (50).
	      </t>

              <t>A C-PE node-based IPsec tunnel is inherently protected when the C-PE has multiple WAN ports to different underlay paths. As shown in <xref target="hom-en-sd-wan"/>, when one of the underlay paths fails, the IPsec tunnel can continue operating by rerouting traffic through an alternate WAN port.</t>
              <t>When a C-PE receives an IPsec encrypted packet from its WAN ports, it decrypts the packet and forwards the inner packet to the client-facing interface based on the inner packet's destination address.</t>
            </dd>
            <dt>Multicast packet forwarding:</dt>
            <dd>
              <t>While IPsec can support multicast (e.g., using group keying mechanisms), many SD-WAN deployments involve a large number of edge nodes with policy-driven communication patterns, making group key management complex. Therefore, a straightforward and commonly used approach is to encapsulate multicast packets in separate unicast IPsec SA tunnels. More optimized multicast forwarding approaches are outside the scope of this document.</t>
            </dd>
          </dl>
        </section>
      </section>
      <section anchor="forwarding-model-for-hybrid-underlay-sd-wan">
        <name>Forwarding Model for Differential Encrypted SD-WAN</name>

        <t>In this scenario, as shown in <xref target="sd-wan-int-fac-ports"/> of <xref target="scenario-2"/>, the SD-WAN edge can forward traffic over trusted VPN paths without applying IPsec encryption. The traffic forwarded over untrusted networks needs to be protected by IPsec SA.</t>
        <section anchor="network-and-service-startup-procedures-1">
          <name>Network and Service Startup Procedures</name>

          <t>The proper MPLS infrastructure must be configured among the edge nodes, i.e., C-PE1, C-PE2, C-PE3, and C-PE4 in <xref target="sd-wan-int-fac-ports"/>. The IPsec SA between WAN ports or nodes must be set up as well. Attributes related to IPsec SA on edge nodes can be distributed by BGP UPDATE messages as described in <xref target="bgp-controlled-sd-wan"/>.</t>
          <t>There could be policies governing how flows can be forwarded, as specified by <xref target="MEF70.2"/>. For example, "Private-only" indicates that the flows can only traverse the MPLS VPN underlay paths.</t>
        </section>
        <section anchor="packet-walk-through-1">
          <name>Packet Walk-Through</name>

          <dl newline="true">
            <dt>Unicast packet forwarding:</dt>
            <dd>
	      
              <t>When C-PE-a in <xref target="forwarding-over-hybrid-sd-wan"/> receives a packet from a client-facing interface, the forwarding decision depends on the flow's routing policy. If a packet belongs to a flow that must be forwarded over the MPLS VPN (i.e., not over the SD-WAN overlay network), the IP packet forwarding processing is the same as for MPLS VPN traffic. Otherwise, C-PE-a can select the least cost path, including the previously established MPLS paths and IPsec tunnels, to forward the packet. Packets forwarded over the trusted MPLS VPN do not require additional encryption, while those sent over untrusted networks must be encrypted by IPsec SA.
</t>
<t>For a C-PE with multiple WAN ports provided by different NSPs, separate IPsec SAs can be established for the WAN ports. In this case, the C-PE has multiple IPsec tunnels in addition to the MPLS path to choose from to forward the packets from the client-facing interfaces.</t>

<t>If an IPsec SA is selected, the packet is encapsulated with the appropriate IPsec headers and encrypted according to the parameters of the selected SA before being forwarded to the WAN.
</t>
              <t>Packets received over MPLS paths are processed in the same way as
in standard MPLS VPNs. For packets encrypted with IPsec received from WAN ports, the C-PE decrypts and decapsulates the inner payload before forwarding it according to the local forwarding table. To protect against potential attacks, traffic received through Internet-facing WAN ports should be protected by appropriate security mechanisms (e.g., anti-DDoS, ACLs, or rate limiting); the specifics of these protections are beyond the scope of this document. Additionally, the control plane must avoid learning routes from Internet-facing WAN ports to ensure network integrity.</t>
            </dd>
          </dl>
          <figure anchor="forwarding-over-hybrid-sd-wan">
            <name>Forwarding over Hybrid SD-WAN</name>
            <artwork align="center"><![CDATA[
                                  +---+
                   +--------------|RR |----------+
                  /               +-+-+           \
                 /                                 \
                /                                   \
+----+  +---------+  packets encrypted over    +---------+  +----+
| CN3|--|         A1-----+ Untrusted    +----- B1        |--| CN1|
+----+  | C-PE-a  A2-----+              +------B2 C-PE-b |  +----+
        |192.0.2.1|                            |192.0.2.2|  +----+
+----+  |         A3  |PE+--------------+PE |--B3        |--| CN3|
+----+  +---------+   +--+   trusted    +---+  +---------+  +----+
                         |     VPN      |
                         +--------------+
]]></artwork>
          </figure>
          <dl newline="true">
            <dt>Multicast packet forwarding:</dt>
            <dd>
              <t>For multicast traffic, MPLS multicast <xref target="RFC6513"/> <xref target="RFC6514"/> <xref target="RFC7988"/> can be utilized to forward multicast traffic across the network.
</t>
              <t>If IPsec tunnels are used for multicast traffic, the packet must be encapsulated and encrypted separately for each destination, creating multiple unicast IPsec tunnels to deliver the multicast packet to all intended recipients. This approach may have scalability implications due to per-destination packet replication; optimization mechanisms are outside the scope of this document.</t>
            </dd>
          </dl>
        </section>
      </section>
      <section anchor="forwarding-model-for-pe-based-sd-wan">
        <name>Forwarding Model for PE-Based SD-WAN</name>
        <section anchor="network-and-service-startup-procedures-2">
          <name>Network and Service Startup Procedures</name>
          <t>In this scenario, all PEs have secure interfaces facing the clients and facing the MPLS backbone. Some PEs have additional interfaces to the untrusted public Internet that are used for offloading low-priority traffic when the MPLS paths get congested. The PEs are already connected to their RRs, and the configurations for the clients and policies are already established.</t>
        </section>
        <section anchor="packet-walk-through-2">
          <name>Packet Walk-Through</name>

          <t>When offloading MPLS packets to the Internet path, each MPLS packet is encapsulated by an outer IP header as MPLS-in-IP or MPLS-in-GRE <xref target="RFC4023"/>. The outer IP address can be an interface address or the PE's loopback address.</t>
          <t>When IPsec tunnel mode is used to protect an MPLS-in-IP packet, the entire MPLS-in-IP packet is placed after the IPsec tunnel header. In IPsec transport mode, the MPLS-in-IP packet's IP header becomes the outer IP header of the IPsec packet, followed by an IPsec header, and then followed by the MPLS label stack. The IPsec header must set the payload type to MPLS by using the IP protocol number specified in <xref section="3" sectionFormat="of" target="RFC4023"/>. For the MPLS-in-GRE packets protected by IPsec transport mode, the GRE header follows the IPsec header.</t>
          <t>The IPsec SA's endpoints should not be the client-facing interface addresses unless the traffic to/from those clients always goes through the IPsec SA even when the MPLS backbone has enough capacity to transport the traffic.</t>
          <t>When the PEs' Internet-facing ports are behind the NAT <xref target="RFC3715"/>, additional measures are necessary to support NAT traversal. In this case, an outer UDP field is added to the encrypted payload <xref target="RFC3948"/>. Three specific ports and protocols must remain open on the PEs: UDP port 4500 (used for NAT traversal), UDP port 500 (used for IKE), and IP protocol 50 (ESP). The IPsec IKE sessions between PEs navigate the NAT environment using the mechanisms outlined in <xref target="RFC3947"/>.</t>
          <t>When a packet is received from a client-facing interface, it is initially processed according to the MPLS VPN forwarding rules. If the MPLS backbone path to the destination is congested, the packet is encapsulated as an MPLS-in-IP packet and encrypted using the IPsec tunnel to the target PE. Conversely, when a packet is received from an Internet-facing WAN port, it is decrypted, and the inner MPLS payload is extracted and forwarded to the MPLS VPN engine for further processing.</t>
          <t>As in Scenario #2, discussed in <xref target="scenario-2"/>, traffic received from Internet-facing WAN ports should be protected by appropriate security mechanisms. In addition, the control plane should not learn routes from the Internet-facing WAN ports. Operators should take encapsulation overhead and MTU considerations into account when deploying combinations of MPLS-in-IP, GRE, and IPsec encapsulations.</t>
        </section>
      </section>
    </section>
    <section anchor="manageability-considerations">
      <name>Manageability Considerations</name>
      <t>A BGP-controlled SD-WAN uses RR to propagate client routes and underlay tunnel properties among authorized SD-WAN edges. Since the RR is configured with policies that identify authorized peers, the peer-wise IPsec IKE authentication process is significantly simplified. Operators should ensure that RR propagation policies, SD-WAN VPN membership rules, and tunnel attribute distribution are consistently configured, as misconfiguration could expose edge properties or cause incorrect binding of client routes to underlay tunnels. While centralizing control in the RR simplifies management, it also means that errors in RR policy or provisioning may have network-wide effects; therefore, careful monitoring, auditing, and validation of RR configuration are essential. In addition to route and tunnel dissemination, the manageability of a BGP-controlled SD-WAN also encompasses the consistent configuration of segmentation policies, WAN port attributes, and forwarding behaviors described throughout this document, all of which rely on the RR as the central point for distributing and validating operational state.</t>
    </section>
    <section anchor="security-considerations">
      <name>Security Considerations</name>
      <t>In a BGP-controlled SD-WAN network, secure operation relies in part on the correct configuration and behavior of the RR, which acts as the central distribution point for BGP routing information. The RR applies preconfigured routing policies to control the propagation of BGP UPDATE messages to authorized SD-WAN edges, minimizing the risk of unintended route exposure or unauthorized communication.</t>
      <t>SD-WAN operation relies on the existing security mechanisms defined for BGP and IPsec, which apply directly to the control and tunnel planes described in this document. A primary operational difference between SD-WAN deployments and BGP/MPLS IP VPNs <xref target="RFC4364"/> <xref target="RFC4659"/> is that SD-WAN edge nodes often include Internet-facing WAN ports, which introduce additional security, filtering, and policy-enforcement requirements that are not typically present in BGP/MPLS IP VPN environments. These untrusted interfaces increase exposure to spoofed traffic, denial-of-service attacks, and unintended route learning if misconfigured. As a result, operators must apply strict validation of control plane information received from Internet-facing ports, ensure correct RR policy configuration, and provide appropriate protection for both control plane and data plane exchanges, consistent with the security guidance in the referenced RFCs.</t>
      <t>The security model for the SD-WAN described in this document is based on the following principles:</t>
      <ul spacing="normal"><li>
          <t>Centralized control: The RR governs all routing and policy decisions. This centralized architecture simplifies security management compared to distributed models, as it limits the potential attack surface to a smaller, more controlled set of components. However, this centralization also means that misconfiguration of RR policies or controller logic can have network-wide impact, potentially exposing edge properties to unauthorized peers, allowing incorrect route propagation, or disrupting IPsec tunnel mappings across the entire SD-WAN network.</t>
        </li>
        <li>
          <t>Secure channels: All communication between SD-WAN edges and the RR must occur over a secure channel, such as TLS or IPsec, to ensure the confidentiality and integrity of BGP UPDATE messages. If a secure communication channel is not used, an attacker on the path could observe or tamper with BGP UPDATEs, potentially exposing edge properties or injecting unauthorized routes. Deployments are therefore expected to enforce secure transport (e.g., reject or disable sessions that are not established over a protected channel).</t>
        </li>
        <li>
          <t>Policy enforcement: The RR is responsible for enforcing policies that restrict the propagation of edge node properties and routing updates to only authorized peers. This prevents sensitive information from being exposed to unauthorized nodes. Misconfigured RR policies could inadvertently expose edge properties or client routes to unauthorized peers, or conversely, they could block required updates, leading to traffic disruption or unintended connectivity; these risks highlight the importance of correct and audited policy configuration.</t>
        </li>
        <li>
          <t>Mitigation of Internet-facing risks: In scenarios where SD-WAN edges include Internet-facing WAN ports, additional measures must be taken to mitigate security risks:  </t>
          <ul spacing="normal">
            <li>
              <t>Anti-DDoS mechanisms must be enabled to protect against potential attacks on Internet-facing ports. For example, rate limiting, basic anomaly detection, or upstream filtering can reduce exposure to volumetric attacks; without such protections, Internet-facing WAN ports may be vulnerable to flooding that can disrupt both data and control plane reachability.</t>
            </li>
            <li>
              <t>The control plane must avoid learning routes from Internet-facing WAN ports to prevent unauthorized traffic from being injected into the SD-WAN. If this control plane filtering is misconfigured, an SD-WAN edge may inadvertently learn and propagate untrusted Internet routes, enabling route injection attacks or unauthorized reachability into the SD-WAN overlay.</t>
            </li>
          </ul>
        </li>
      </ul>
      <t>By concentrating the security within the RR and using secure channels, the SD-WAN network achieves consistent enforcement of security policies and reduces the likelihood of misconfigurations at individual edge nodes. However, the robustness of this security model depends critically on the proper configuration and ongoing maintenance of the RR. Operators must ensure that the RR itself is adequately protected against compromise or misconfiguration, as its failure or exploitation could impact the entire network. This model emphasizes simplicity and efficiency, leveraging centralized governance to mitigate risks while supporting scalable control plane distribution and interoperability of the SD-WAN.</t>
    </section>
    <section anchor="iana-considerations">
      <name>IANA Considerations</name>
      <t>This document has no IANA actions.</t>
    </section>
  </middle>
  <back>
    <displayreference target="I-D.ietf-idr-sdwan-edge-discovery" to="SD-WAN-DISC"/>
    <displayreference target="I-D.ietf-rtgwg-net2cloud-problem-statement" to="NET2CLOUD-PROB"/>
    <references anchor="sec-combined-references">
      <name>References</name>

      <references anchor="sec-normative-references">
        <name>Normative References</name>
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.4271.xml"/>
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.4301.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.4364.xml"/>
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.4456.xml"/>
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.4659.xml"/>
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.9012.xml"/>
        <reference anchor="MPLIFY-119" target="https://www.mplify.net/resources/mplify-119-universal-sd-wan-edge-implementation-agreement/">
          <front>
            <title>Universal SD-WAN Edge Implementation Agreement</title>
            <author>
              <organization>Mplify Alliance</organization>
            </author>
            <date year="2025" month="June"/>
          </front>
          <refcontent>Mplify 119</refcontent>
        </reference>
        <reference anchor="MEF70.2" target="https://www.mef.net/resources/mef-70-2-sd-wan-service-attributes-and-service-framework/">
          <front>
            <title>SD-WAN Service Attributes and Service Framework</title>
            <author>
              <organization>MEF Forum</organization>
            </author>
            <date year="2023" month="October"/>
          </front>
          <refcontent>MEF 70.2</refcontent>
        </reference>
      </references>
      <references anchor="sec-informative-references">
        <name>Informative References</name>
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.1058.xml"/>
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.2328.xml"/>
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.2332.xml"/>
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.2453.xml"/>
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.2784.xml"/>
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.3715.xml"/>
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.3947.xml"/>
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.3948.xml"/>
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.4023.xml"/>
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.4761.xml"/>
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.4762.xml"/>
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.5340.xml"/>
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.6513.xml"/>
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.6514.xml"/>
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.7296.xml"/>
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.7348.xml"/>
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.7432.xml"/>
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.7988.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.8388.xml"/>
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.9522.xml"/>
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml3/reference.I-D.ietf-idr-sdwan-edge-discovery.xml"/>
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml3/reference.I-D.ietf-rtgwg-net2cloud-problem-statement.xml"/>
        <reference anchor="IEEE802.3">
          <front>
            <title>IEEE Standard for Ethernet</title>
            <author>
              <organization>IEEE</organization>
            </author>
            <date year="2022" month="July"/>
          </front>
          <seriesInfo name="IEEE Std" value="802.3-2022"/>
          <seriesInfo name="DOI" value="10.1109/IEEESTD.2022.9844436"/>
        </reference>
      </references>
    </references>

<section numbered="false" anchor="acknowledgments">
      <name>Acknowledgments</name>
      <t>The authors thank <contact fullname="Gunter Van de Velde"/>, <contact fullname="Andrew Alston"/>, <contact fullname="Adrian Farrel"/>, <contact fullname="Jim Guichard"/>, <contact fullname="Joel Halpern"/>, <contact fullname="John Scudder"/>, <contact fullname="Darren Dukes"/>, <contact fullname="Andy Malis"/>, <contact fullname="Donald Eastlake 3rd"/>, <contact fullname="Stephen Farrell"/>, and <contact fullname="Cheng Sheng"/> for their reviews and contributions.</t>
    </section>
    <section anchor="contributors" numbered="false" toc="include" removeInRFC="false">
      <name>Contributors</name>
      <contact initials="D." surname="Carrel" fullname="David Carrel">
        <organization>Graphiant</organization>
        <address>
          <email>carrel@graphiant.com</email>
        </address>
      </contact>
      <contact initials="A." surname="Banerjee" fullname="Ayan Banerjee">
        <organization>Cisco</organization>
        <address>
          <email>ayabaner@cisco.com</email>
        </address>
      </contact>
    </section>
  </back>

</rfc>
