MEG or PEG configuration example for mLDP on the SBD

This section shows a configuration example for a pair of redundant MEGs that use mLDP in the SBD to transmit and receive multicast traffic.

As in the previous example, each MEG in the pair is configured with a VPRN that contains the MVPN configuration and an SBD R-VPLS. Local sources/receivers are supported in this example and they are attached to local BDs or local interfaces in the VPRN. A receiver connected to a local BD (BD-6023) is multihomed to MEG1 and MEG2. Also, as in the previous example, the use of domain-id in the VPRN and the SBD R-VPLS prevents control plane loops for unicast routes. The following CLI shows the configuration in MEG1.

// MEG1’s VPRN service

*A:MEG1# configure service vprn 6000 
*A:MEG1>config>service>vprn# info 
----------------------------------------------
            local-routes-domain-id 64500:2 // avoids loops for local routes
            interface "BD-6023" create  // local BD
                address 11.0.0.2/24
                vrrp 1 passive
                    backup 11.0.0.254
                exit
                vpls "BD-6023"
                    evpn
                        arp
                            no learn-dynamic
                            advertise dynamic
                        exit
                    exit
                exit
            exit
            interface "SBD-6002" create
                vpls "SBD-6002"
                    evpn-tunnel supplementary-broadcast-domain
                exit
            exit
            interface "local" create // local interface
                address 20.0.0.254/24
                sap pxc-6.a:600 create
                exit
            exit
            bgp-ipvpn
                mpls
                    auto-bind-tunnel
                        resolution any
                    exit
                    domain-id 64500:6000
                    route-distinguisher 192.0.2.2:6000
                    vrf-target target:64500:6000
                    no shutdown
                exit
            exit
            igmp
                interface "BD-6023" 
                    no shutdown 
                exit 
                interface "SBD-6002" 
                    no shutdown 
                exit 
                interface "local" 
                    no shutdown 
                exit
            exit
            pim
                interface "SBD-6002"
                    multicast-senders always
                exit
                apply-to all
                rp
                    static
                        address 4.4.4.4
                            group-prefix 224.0.0.0/4
                        exit          
                    exit
                    bsr-candidate
                        shutdown
                    exit
                    rp-candidate
                        shutdown
                    exit
                exit
                no shutdown
            exit
            mvpn
                auto-discovery default
                c-mcast-signaling bgp
                intersite-shared persistent-type5-adv
                provider-tunnel
                    inclusive
                        mldp
                            no shutdown
                        exit
                    exit
                exit
                vrf-target unicast
                exit
            exit
            no shutdown
----------------------------------------------

// MEG1’s SBD service

*A:MEG1>config>service>vprn# /configure service vpls 6002 
*A:MEG1>config>service>vpls# info 
----------------------------------------------
            allow-ip-int-bind
                forward-ipv4-multicast-to-ip-int
                forward-ipv6-multicast-to-ip-int
                evpn-mcast-gateway create
                    non-dr-attract-traffic from-evpn from-pim-mvpn
                    no shutdown
                exit
            exit
            bgp
            exit
            bgp-evpn
                no mac-advertisement
                ip-route-advertisement domain-id 64500:6002
                sel-mcast-advertisement
                evi 6002
                mpls bgp 1
                    ingress-replication-bum-label
                    ecmp 2
                    auto-bind-tunnel
                        resolution any
                    exit
                    no shutdown
                exit
            exit
            provider-tunnel // mldp is enabled on the SBD
                inclusive
                    owner bgp-evpn-mpls
                    data-delay-interval 10
                    root-and-leaf
                    mldp
                    no shutdown
                exit
            exit
            igmp-snooping
                no shutdown
            exit
            mld-snooping
                no shutdown
            exit
            no shutdown
----------------------------------------------

// MEG1’s local BD-6023 service

*A:MEG1>config>service>vprn# /configure service vpls 6023
*A:MEG1>config>service>vpls# info 
----------------------------------------------
            allow-ip-int-bind
                forward-ipv4-multicast-to-ip-int
                forward-ipv6-multicast-to-ip-int
                igmp-snooping
                    mrouter-port
                exit
                mld-snooping
                    mrouter-port
                exit
            exit
            bgp
            exit
            bgp-evpn
                evi 623
                mpls bgp 1
                    ingress-replication-bum-label
                    auto-bind-tunnel
                        resolution any
                        exit
                    no shutdown
                exit
             exit
             provider-tunnel
                 inclusive
                     owner bgp-evpn-mpls
                     data-delay-interval 10
                     root-and-leaf
                     mldp
                     no shutdown
                 exit
              exit
              stp
                  shutdown
              exit      
              igmp-snooping
                  no shutdown
              exit
              mld-snooping
                  no shutdown
              exit
              sap lag-1:623 create
                  igmp-snooping
                      send-queries 
                  exit
                  no shutdown
              exit
              no shutdown

The configuration of the redundant MEG2 is as follows:

// MEG2’s VPRN configuration

*A:MEG2# configure service vprn 6000 
*A:MEG2>config>service>vprn# info 
----------------------------------------------
            local-routes-domain-id 64500:3
            interface "BD-6023" create
                address 11.0.0.3/24
                vrrp 1 passive
                    backup 11.0.0.254
                exit
                vpls "BD-6023"
                    evpn
                        arp
                            no learn-dynamic
                            advertise dynamic
                        exit
                    exit
                 exit
            exit
            interface "SBD-6002" create
                vpls "SBD-6002"
                    evpn-tunnel supplementary-broadcast-domain
                exit
            exit
            interface "local" create
                address 30.0.0.254/24
                sap pxc-6.a:600 create
                exit
            exit
            bgp-ipvpn
                mpls
                    auto-bind-tunnel
                        resolution any
                    exit
                    domain-id 64500:6000
                    route-distinguisher 192.0.2.3:6000
                    vrf-target target:64500:6000
                    no shutdown
                exit
            exit
            igmp
                interface "BD-6023" 
                    no shutdown 
                exit 
                interface "SBD-6002" 
                    no shutdown 
                exit 
                interface "local" 
                    no shutdown 
                exit
                no shutdown
            exit
            pim
                interface "SBD-6002"
                    multicast-senders always
                exit
                apply-to all
                rp
                    static
                        address 4.4.4.4
                            group-prefix 224.0.0.0/4
                        exit          
                    exit
                    bsr-candidate
                        shutdown
                    exit
                    rp-candidate
                        shutdown
                    exit
                exit
                no shutdown
            exit
            mvpn
                auto-discovery default
                c-mcast-signaling bgp
                intersite-shared persistent-type5-adv
                provider-tunnel
                    inclusive
                        mldp
                            no shutdown
                        exit
                    exit
                exit
                vrf-target unicast
                exit
            exit
            no shutdown
----------------------------------------------

// MEG2 SBD configuration

*A:MEG2>config>service>vprn# /configure service vpls 6002 
*A:MEG2>config>service>vpls# info 
----------------------------------------------
            allow-ip-int-bind
                forward-ipv4-multicast-to-ip-int
                forward-ipv6-multicast-to-ip-int
                evpn-mcast-gateway create
                    non-dr-attract-traffic from-evpn from-pim-mvpn
                    no shutdown
                exit
            exit
            bgp
            exit
            bgp-evpn
                no mac-advertisement
                ip-route-advertisement domain-id 64500:6002
                sel-mcast-advertisement
                evi 6002
                mpls bgp 1
                    ingress-replication-bum-label
                    ecmp 2
                    auto-bind-tunnel
                        resolution any
                    exit
                    no shutdown
                exit
            exit
            provider-tunnel
                inclusive
                    owner bgp-evpn-mpls
                    data-delay-interval 10
                    root-and-leaf
                    mldp
                    no shutdown
                exit
            exit
            igmp-snooping
                no shutdown
            exit
            mld-snooping
                no shutdown
            exit
            no shutdown
----------------------------------------------

// MEG2’s local BD-6023 service

A:MEG2>config>service>vpls# /configure service vpls 6023 
A:MEG2>config>service>vpls# info 
----------------------------------------------
            allow-ip-int-bind
                forward-ipv4-multicast-to-ip-int
                forward-ipv6-multicast-to-ip-int
                igmp-snooping
                    mrouter-port
                exit
                mld-snooping
                    mrouter-port
                exit
            exit
            bgp
            exit
            bgp-evpn
                evi 623
                mpls bgp 1
                    ingress-replication-bum-label
                    auto-bind-tunnel
                        resolution any
                    exit
                    no shutdown
                exit
            exit
            provider-tunnel
                inclusive
                    owner bgp-evpn-mpls
                    data-delay-interval 10
                    root-and-leaf
                    mldp
                    no shutdown
                exit
            exit
            stp
                shutdown
            exit
            igmp-snooping
                no shutdown
            exit
            mld-snooping
                no shutdown
            exit
            sap lag-1:623 create
                igmp-snooping
                    send-queries      
                exit
                no shutdown
            exit
            no shutdown
----------------------------------------------

After the preceding configuration is added, MEG1 and MEG2 run the DR election. As in the previous example, MEG1 is elected as DR and MEG2 as non-DR. In this example, the SBD is using mLDP instead of ingress replication to transmit and receive multicast traffic. The following sample output shows the status of the provider-tunnel in MEG1 and MEG2.

A:MEG1# show service id "SBD-6002" provider-tunnel 

===============================================================================
Service Provider Tunnel Information
===============================================================================
Type               : inclusive          Root and Leaf      : enabled
Admin State        : enabled            Data Delay Intvl   : 10 secs
PMSI Type          : ldp                LSP Template       : 
Remain Delay Intvl : 0 secs             LSP Name used      : 8195
PMSI Owner         : bgpEvpnMpls        
Oper State         : up                 Root Bind Id       : 32767
===============================================================================

A:MEG1# tools dump service id "SBD-6002" provider-tunnels   

===============================================================================
VPLS 6002 Inclusive Provider Tunnels Originating             
===============================================================================
ipmsi (LDP)                                     P2MP-ID  Root-Addr
-------------------------------------------------------------------------------
8195                                            8195    192.0.2.2       

-------------------------------------------------------------------------------

===============================================================================
VPLS 6002 Inclusive Provider Tunnels Terminating             
===============================================================================
ipmsi (LDP)                                     P2MP-ID  Root-Addr
-------------------------------------------------------------------------------
                                                8193    192.0.2.1       

-------------------------------------------------------------------------------

A:MEG2# show service id "SBD-6002" provider-tunnel 

===============================================================================
Service Provider Tunnel Information
===============================================================================
Type               : inclusive          Root and Leaf      : enabled
Admin State        : enabled            Data Delay Intvl   : 10 secs
PMSI Type          : ldp                LSP Template       : 
Remain Delay Intvl : 0 secs             LSP Name used      : 8195
PMSI Owner         : bgpEvpnMpls        
Oper State         : up                 Root Bind Id       : 32767
===============================================================================

A:MEG2# tools dump service id "SBD-6002" provider-tunnels   

===============================================================================
VPLS 6002 Inclusive Provider Tunnels Originating             
===============================================================================
ipmsi (LDP)                                     P2MP-ID  Root-Addr
-------------------------------------------------------------------------------
8195                                            8195    192.0.2.3       

-------------------------------------------------------------------------------

===============================================================================
VPLS 6002 Inclusive Provider Tunnels Terminating             
===============================================================================
ipmsi (LDP)                                     P2MP-ID  Root-Addr
-------------------------------------------------------------------------------
                                                8193    192.0.2.1       

-------------------------------------------------------------------------------

Also the example in MEG or PEG configuration example for Ingress Replication on the SBD showed the IIF and OIF lists on the MEGs for a source 40.0.0.1 that was connected to a remote MVPN PE and was streaming group 239.0.0.44. In this example, there is a source 10.0.0.1 connected to a remote OISM PE and it is streaming group 239.0.0.1. The group has local receivers on the local SBD-6023, which is multihomed to MEG1 and MEG2, and has receivers on a remote MVPN PE. The remote MVPN PE is configured with the default mvpn umh-selection highest-ip and therefore a local join triggers a C-multicast source-join route that is imported only by MEG2 (given that it has higher IP address than MEG1).

The following shows a sample output for this scenario.

// The source-join route for 239.0.0.1 is only imported by MEG2

A:MEG1# show router bgp routes mvpn-ipv4 type source-join group-ip 239.0.0.1 source-ip 10.0.0.1 
===============================================================================
 BGP Router ID:192.0.2.2        AS:64500       Local AS:64500      
===============================================================================
 Legend -
 Status codes  : u - used, s - suppressed, h - history, d - decayed, * - valid
                 l - leaked, x - stale, > - best, b - backup, p - purge
 Origin codes  : i - IGP, e - EGP, ? - incomplete

===============================================================================
BGP MVPN-IPv4 Routes
===============================================================================
Flag  RouteType                   OriginatorIP           LocalPref   MED
      RD                          SourceAS               Path-Id     IGP Cost
      Nexthop                     SourceIP                           Label
      As-Path                     GroupIP                            
-------------------------------------------------------------------------------
No Matching Entries Found.
===============================================================================

A:PE-3# show router bgp routes mvpn-ipv4 type source-join group-ip 239.0.0.1 source-ip 10.0.0.1 
===============================================================================
 BGP Router ID:192.0.2.3        AS:64500       Local AS:64500      
===============================================================================
 Legend -
 Status codes  : u - used, s - suppressed, h - history, d - decayed, * - valid
                 l - leaked, x - stale, > - best, b - backup, p - purge
 Origin codes  : i - IGP, e - EGP, ? - incomplete

===============================================================================
BGP MVPN-IPv4 Routes
===============================================================================
Flag  RouteType                   OriginatorIP           LocalPref   MED
      RD                          SourceAS               Path-Id     IGP Cost
      Nexthop                     SourceIP                           Label
      As-Path                     GroupIP                            
-------------------------------------------------------------------------------
u*>i  Source-Join                 -                      100         0
      192.0.2.3:6000              64500                  None        -
      192.0.2.4                   10.0.0.1                            
      No As-Path                  239.0.0.1                           
-------------------------------------------------------------------------------
Routes : 1
===============================================================================

// Therefore, only MEG2 will add the MVPN tunnel to the OIF list for the group 
// MEG1 only adds the local BD-6023 to the OIF list

A:MEG1# show router 6000 pim group 239.0.0.1 detail 

===============================================================================
PIM Source Group ipv4
===============================================================================
Group Address      : 239.0.0.1
Source Address     : 10.0.0.1
RP Address         : 4.4.4.4
Advt Router        : 
Flags              : spt                Type               : (S,G)
Mode               : sparse             
MRIB Next Hop      : 10.0.0.1
MRIB Src Flags     : direct             
Keepalive Timer Exp: 0d 00:02:43        
Up Time            : 1d 17:27:02        Resolved By        : rtable-u
 
Up JP State        : Joined             Up JP Expiry       : 0d 00:00:00
Up JP Rpt          : Not Joined StarG   Up JP Rpt Override : 0d 00:00:00
 
Register State     : Pruned             Register Stop Exp  : 0d 00:00:09
Reg From Anycast RP: No                 
 
Rpf Neighbor       : 10.0.0.1
Incoming Intf      : SBD-6002
Outgoing Intf List : BD-6023, SBD-6002
 
Curr Fwding Rate   : 67.200 kbps        
Forwarded Packets  : 15258              Discarded Packets  : 0
Forwarded Octets   : 1281672            RPF Mismatches     : 0
Spt threshold      : 0 kbps             ECMP opt threshold : 7
Admin bandwidth    : 1 kbps             
-------------------------------------------------------------------------------
Groups : 1
===============================================================================

// on MEG1's local BD-6023 there is a receiver on sap:lag-1:623

A:MEG1# show service id "BD-6023" mfib 

===============================================================================
Multicast FIB, Service 6023
===============================================================================
Source Address  Group Address         Port Id                      Svc Id   Fwd
                                                                            Blk
-------------------------------------------------------------------------------
*               *                     mpls:192.0.2.3:524258        Local    Fwd
10.0.0.1        239.0.0.1             sap:lag-1:623                Local    Fwd
                                      mpls:192.0.2.3:524258        Local    Fwd
*               * (mac)               mpls:192.0.2.3:524258        Local    Fwd
-------------------------------------------------------------------------------
Number of entries: 3
===============================================================================

// MEG2 adds the local BD-6023 and the MVPN tunnel to the OIF list

A:PE-3# show router 6000 pim tunnel-interface 

===============================================================================
PIM Interfaces ipv4
===============================================================================
Interface                        Originator Address   Adm  Opr  Transport Type
-------------------------------------------------------------------------------
mpls-if-73729                    192.0.2.3            Up   Up   Tx-IPMSI
mpls-if-73733                    192.0.2.4            Up   Up   Rx-IPMSI
mpls-if-73736                    192.0.2.2            Up   Up   Rx-IPMSI
-------------------------------------------------------------------------------
Interfaces : 3
===============================================================================

A:PE-3# show router 6000 pim group 239.0.0.1 detail 

===============================================================================
PIM Source Group ipv4
===============================================================================
Group Address      : 239.0.0.1
Source Address     : 10.0.0.1
RP Address         : 4.4.4.4
Advt Router        : 
Flags              : spt                Type               : (S,G)
Mode               : sparse             
MRIB Next Hop      : 10.0.0.1
MRIB Src Flags     : direct             
Keepalive Timer    : Not Running        
Up Time            : 1d 17:32:43        Resolved By        : rtable-u
 
Up JP State        : Joined             Up JP Expiry       : 0d 00:00:00
Up JP Rpt          : Not Joined StarG   Up JP Rpt Override : 0d 00:00:00
 
Register State     : No Info            
Reg From Anycast RP: No                 
 
Rpf Neighbor       : 10.0.0.1
Incoming Intf      : SBD-6002
Outgoing Intf List : BD-6023, mpls-if-73729
 
Curr Fwding Rate   : 66.864 kbps        
Forwarded Packets  : 27221              Discarded Packets  : 0
Forwarded Octets   : 2286564            RPF Mismatches     : 0
Spt threshold      : 0 kbps             ECMP opt threshold : 7
Admin bandwidth    : 1 kbps             
-------------------------------------------------------------------------------
Groups : 1
===============================================================================