The BGP service control plane required extensions are specified in draft-ietf-bess-srv6-services. BGP requires some changes in the IPv6, VPN-IPv4, VPN-IPv6 and EVPN family routes so that the egress PE can signal the following End programming behaviors to the ingress PE:
Layer-3 SRv6 Service SIDs
Layer-2 SRv6 Service SIDs
Figure 1 shows an example for the End.DX2 behavior for EVPN-VPWS services.
The ingress and egress PEs behave as follows:
The egress PE (PE6) advertises an A-D per EVI route with the SRv6 Service SID that identifies the End.DX2 behavior. The service SID includes the configured locator in the Epipe (A6::), as well as the allocated function (E9), that identifies the Epipe at the egress PE.
The ingress PE (PE1) imports the A-D per EVI route and creates an EVPN destination in the corresponding Epipe to A6::E9.
When PE1 receives frames at the access SAP, it encapsulates the frames into an SRv6 packet, using the configured IP SA. The IP DA is the EVPN destination SID.
Shortest path forwarding is considered in the example shown in Figure 1, and therefore the EVPN destination SID is encoded in the IP DA. If TI-LFA is required, PE1 modifies the encapsulation to include an SRH and additional SIDs.
When the SRv6 packet arrives at PE6, the SID encoded in the IP DA identifies the packet for termination on PE6, and the Epipe for decapsulation and forwarding.
Similar procedures are followed for the other required services.