Layer 2 VPNs are a type of Virtual Private Network (VPN) that uses MPLS labels to transport data.
The BGP-based type is based on the informational RFC 6624 by Kireeti Kompella from Juniper Networks.
It uses the Border Gateway Protocol (BGP) as the mechanism for PE routers to communicate with each other about their customer connections.
[1] The second type is based on the Internet Standard RFC 8077[Note 1] by Chandan Mishra from Cisco Systems.
The LDP-based style of layer 2 VPN defines new TLVs and parameters for LDP to aid in the signaling of the VPNs.