Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Announcement: Try the Ask AI chatbot for answers to your technical questions about Juniper products and solutions.

close
header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

Service Chaining Design and Implementation

date_range 27-Jan-23

For an overview of service chaining, see the Service Chaining section in Data Center Fabric Blueprint Architecture Components.

The following sections show how to implement service chaining and service chaining of multicast in a EVPN VXLAN network.

Service Chaining

Service Chaining Design

Figure 1 shows a logical view of the service chaining configuration. It shows the configuration of one spine with a left and right side VRF configuration. The SRX Series router is the PNF, and is performing the Service chaining.

Figure 1: Service Chaining Logical ViewService Chaining Logical View

The flow of traffic for the spine:

  1. Traffic from the leaf tenants enters tenant VRF-151, and is destined to a network attached to tenant VRF-152.

  2. Because there is no route from VRF-151 to VRF-152, a default route lookup is performed using routes received from the PNF.

  3. After it receives the default route from the PNF, VRF-151 routes traffic toward the PNF via IRB.4088.

  4. Traffic reaches the PNF, and the PNF performs the service chaining. Traffic is forwarded out ae26.1 using routes received from EBGP.

  5. Traffic now reaches tenant VRF-152, and follows regular route lookup and forwarding action towards the leaf tenants.

Configuring Service Chaining

This section shows how to configure the spine for service chaining as shown in Figure 1. This configuration is based on the Centrally-Routed Bridging Overlay Design and Implementation configuration.

  1. Configure the ESI connection towards the PNF.
    content_copy zoom_out_map
    set interfaces xe-0/0/67:0 gigether-options 802.3ad ae26
    set interfaces ae26 esi 00:88:88:88:88:88:88:88:88:88
    set interfaces ae26 esi all-active
    set interfaces ae26 aggregated-ether-options lacp active
    set interfaces ae26 aggregated-ether-options lacp periodic fast
    set interfaces ae26 aggregated-ether-options lacp system-id 00:00:00:00:00:22
    set interfaces ae26 unit 0 family ethernet-switching interface-mode trunk
    
  2. Configure the Layer 3 connection for VRF-151 towards the PNF.
    content_copy zoom_out_map
    set interfaces irb unit 4088 virtual-gateway-accept-data
    set interfaces irb unit 4088 family inet address 10.88.0.242/24 preferred
    set interfaces irb unit 4088 family inet address 10.88.0.242/24 virtual-gateway-address 10.88.0.254
    set interfaces irb unit 4088 family inet6 address 2001:db8::10:58:0:242/112 preferred
    set interfaces irb unit 4088 family inet6 address 2001:db8::10:58:0:242/112 virtual-gateway-address 2001:db8::10:58:0:254
    set interfaces irb unit 4088 virtual-gateway-v4-mac 00:00:5e:00:00:04
    set interfaces ae26 unit 0 family ethernet-switching vlan members 4088
    set vlans 4088 vlan-id 4088
    set vlans 4088 l3-interface irb.4088
    set vlans 4088 vxlan vni 104088
    
  3. Configure the Layer 3 connection for VRF-152 towards the PNF.
    content_copy zoom_out_map
    set interfaces irb unit 4089 virtual-gateway-accept-data
    set interfaces irb unit 4089 family inet address 10.89.0.242/24 preferred
    set interfaces irb unit 4089 family inet address 10.89.0.242/24 virtual-gateway-address 10.89.0.254
    set interfaces irb unit 4089 family inet6 address 2001:db8::10:59:0:242/112 preferred
    set interfaces irb unit 4089 family inet6 address 2001:db8::10:59:0:242/112 virtual-gateway-address 2001:db8::10:59:0:254
    set interfaces irb unit 4089 virtual-gateway-v4-mac 00:00:5e:00:00:04
    set interfaces ae26 unit 0 family ethernet-switching vlan members 4089
    set vlans 4089 vlan-id 4089
    set vlans 4089 l3-interface irb.4089
    set vlans 4089 vxlan vni 104089
    
  4. Configure a policy to export local routes from VRF-151 and VRF-152 to the PNF.
    content_copy zoom_out_map
    set policy-options policy-statement DIRECT-EXPORT-TO-PNF term 10 from protocol direct
    set policy-options policy-statement DIRECT-EXPORT-TO-PNF term 10 then accept
    set policy-options policy-statement DIRECT-EXPORT-TO-PNF term 20 from protocol bgp
    set policy-options policy-statement DIRECT-EXPORT-TO-PNF term 20 then accept
    set policy-options policy-statement DIRECT-EXPORT-TO-PNF term 30 then reject
    
  5. Configure the VRF-151 routing instance.
    content_copy zoom_out_map
    set routing-instances VRF-151 instance-type vrf
    set routing-instances VRF-151 interface irb.601
    set routing-instances VRF-151 interface irb.602
    set routing-instances VRF-151 interface irb.603
    set routing-instances VRF-151 interface irb.604
    set routing-instances VRF-151 interface lo0.151
    set routing-instances VRF-151 interface irb.4088
    set routing-instances VRF-151 route-distinguisher 192.186.0.2:151
    set routing-instances VRF-151 vrf-target target:100:151
    set routing-instances VRF-151 protocols bgp group to-srx type external
    set routing-instances VRF-151 protocols bgp group to-srx export DIRECT-EXPORT-TO-PNF
    set routing-instances VRF-151 protocols bgp group to-srx local-as 4200000002
    set routing-instances VRF-151 protocols bgp group to-srx neighbor 10.88.0.1 family inet unicast
    set routing-instances VRF-151 protocols bgp group to-srx neighbor 10.88.0.1 peer-as 4000000001
    set routing-instances VRF-151 protocols bgp group to-srx neighbor 2001:db8::10:58:0:1 family inet6 unicast
    set routing-instances VRF-151 protocols bgp group to-srx neighbor 2001:db8::10:58:0:1 peer-as 4000000001
    
  6. Configure the VRF-152 routing instance.
    content_copy zoom_out_map
    set routing-instances VRF-152 instance-type vrf
    set routing-instances VRF-152 interface irb.605
    set routing-instances VRF-152 interface irb.606
    set routing-instances VRF-152 interface irb.607
    set routing-instances VRF-152 interface irb.608
    set routing-instances VRF-152 interface lo0.152
    set routing-instances VRF-152 interface irb.4089
    set routing-instances VRF-152 route-distinguisher 192.186.0.2:152
    set routing-instances VRF-152 vrf-target target:100:152
    set routing-instances VRF-152 protocols bgp group to-srx type external
    set routing-instances VRF-152 protocols bgp group to-srx export DIRECT-EXPORT-TO-PNF
    set routing-instances VRF-152 protocols bgp group to-srx local-as 4200000002
    set routing-instances VRF-152 protocols bgp group to-srx neighbor 10.89.0.1 family inet unicast
    set routing-instances VRF-152 protocols bgp group to-srx neighbor 10.89.0.1 peer-as 4000000001
    set routing-instances VRF-152 protocols bgp group to-srx neighbor 2001:db8::10:59:0:1 family inet6 unicast
    set routing-instances VRF-152 protocols bgp group to-srx neighbor 2001:db8::10:59:0:1 peer-as 4000000001
    
  7. Repeat this procedure for every spine in your topology.

Verifying Service Chaining

To verify that service chaining is working:

  1. On the spine, display the local routes in VRF-152.
    content_copy zoom_out_map
    host@SPINE-2> show route table VRF-152.inet.0 protocol direct 
    VRF-152.inet.0: 61 destinations, 62 routes (61 active, 0 holddown, 0 hidden)
    + = Active Route, - = Last Active, * = Both
    
    10.2.93.0/24       *[Direct/0] 1d 15:30:29
                        >  via irb.605
    10.2.94.0/24       *[Direct/0] 1d 15:30:29
                        >  via irb.606
    10.2.95.0/24       *[Direct/0] 1d 15:30:29
                        >  via irb.607
    10.2.96.0/24       *[Direct/0] 1d 15:30:29
                        >  via irb.608
    10.87.0.0/24       *[Direct/0] 1d 15:30:37
                        >  via irb.4087
    10.89.0.0/24       *[Direct/0] 1d 15:30:37
                        >  via irb.4089
    
    
    
  2. On the spine, display the local routes in VRF-151.
    content_copy zoom_out_map
    host@SPINE2> show route table VRF-151.inet.0 protocol direct    
    VRF-151.inet.0: 63 destinations, 64 routes (63 active, 0 holddown, 0 hidden)
    + = Active Route, - = Last Active, * = Both
    
    10.2.89.0/24       *[Direct/0] 1d 15:30:36
                        >  via irb.601
    10.2.90.0/24       *[Direct/0] 1d 15:30:36
                        >  via irb.602
    10.2.91.0/24       *[Direct/0] 1d 15:30:36
                        >  via irb.603
    10.2.92.0/24       *[Direct/0] 1d 15:30:36
                        >  via irb.604
    10.86.0.0/24       *[Direct/0] 1d 15:30:44
                        >  via irb.4086
    10.88.0.0/24       *[Direct/0] 1d 15:30:44
                        >  via irb.4088
    
  3. On the spine, check that a route lookup for VRF-151 points to the default route received from PNF.
    content_copy zoom_out_map
    host@SPINE2> show route table VRF-151.inet.0 10.2.93.0
    VRF-151.inet.0: 63 destinations, 64 routes (63 active, 0 holddown, 0 hidden)
    + = Active Route, - = Last Active, * = Both
    
    0.0.0.0/0          *[BGP/170] 1d 15:33:08, localpref 100
                          AS path: 4000000001 I, validation-state: unverified
                        >  to 10.88.0.1 via irb.4088
    
    
  4. On the PNF device, check the route lookup toward the tenant VRF-152 destination.
    content_copy zoom_out_map
    host@PNF> show route 10.2.93.0 
    inet.0: 20 destinations, 52 routes (20 active, 0 holddown, 0 hidden)
    + = Active Route, - = Last Active, * = Both
    
    10.2.93.0/24       *[BGP/170] 2d 00:39:44, localpref 100
                          AS path: 4200000002 I, validation-state: unverified
                        > to 10.89.0.242 via ae26.1
    
  5. On the PNF device, check that it is advertising only default routes to the EBGP peer on tenant VRF-152.
    content_copy zoom_out_map
    host@PNF> show route advertising-protocol bgp 10.89.0.242 
    inet.0: 20 destinations, 52 routes (20 active, 0 holddown, 0 hidden)
      Prefix                  Nexthop              MED     Lclpref    AS path
    * 0.0.0.0/0               Self                                    I
    
  6. On the PNF device, check that it is advertising only default routes to the EBGP peer on tenant VRF-151.
    content_copy zoom_out_map
    host@PNF> show route advertising-protocol bgp 10.88.0.242
    inet.0: 20 destinations, 52 routes (20 active, 0 holddown, 0 hidden)
      Prefix                  Nexthop              MED     Lclpref    AS path
    * 0.0.0.0/0               Self                                    I
    
  7. On the spine, verify that the spine is advertising local VRF-152 routes to the PNF.
    content_copy zoom_out_map
    host@SPINE2> show route advertising-protocol bgp 10.89.0.1        
    VRF-152.inet.0: 52 destinations, 53 routes (52 active, 0 holddown, 0 hidden)
      Prefix                  Nexthop              MED     Lclpref    AS path
    * 10.2.93.0/24            Self                                    I
    * 10.2.94.0/24            Self                                    I
    * 10.2.95.0/24            Self                                    I
    * 10.2.96.0/24            Self                                    I
    * 10.87.0.0/24            Self                                    I
    * 10.89.0.0/24            Self                                    I
    * 192.68.152.1/32         Self                                    4100000000 I
    
  8. On the spine, verify that the spine is advertising local VRF-151 routes to the PNF.
    content_copy zoom_out_map
    host@SPINE2> show route advertising-protocol bgp 10.88.0.1    
    VRF-151.inet.0: 53 destinations, 54 routes (53 active, 0 holddown, 0 hidden)
      Prefix                  Nexthop              MED     Lclpref    AS path
    * 10.2.89.0/24            Self                                    I
    * 10.2.90.0/24            Self                                    I
    * 10.2.91.0/24            Self                                    I
    * 10.2.92.0/24            Self                                    I
    * 10.86.0.0/24            Self                                    I
    * 10.88.0.0/24            Self                                    I
    * 192.68.151.1/32         Self                                    4100000000 I
    

Service Chaining with Multicast

Service Chaining with Multicast Design

Figure 2 shows the logical view of the service chaining configuration. The VRF routing instances and IRB interfaces are all configured on the same spine.

In this design, we are performing service chaining with an SRX Series router as the PNF and with a PIM gateway.

Figure 2: Service Chaining Logical ViewService Chaining Logical View

The flow of traffic for Spine 2 when multicast receivers start sending IGMP reports:

  1. The leaf devices snoop the IGMP report and advertise EVPN Type 6 routes to the spines to notify the spines of the interested Multicast receiver.

  2. The spine receives the EVPN Type 6 routes based on the VNI mapping, and creates a PIM join (*.G) entry in VRF-152.

    The spine configuration includes the address of the RP on the PIM gateway. However, on the VRF-152 routing instance, there is only a default route toward the RP via the PNF.

  3. The PIM designated router (DR) on the receiver side IRBs (irb.605, irb.606 irb.607, irb.608) sends a PIM join (*.G ) towards the PNF device on irb.4089.

  4. The PNF device, creates a PIM (*.G) entry with ae26.1 as the outgoing interface.

    The PNF is configured with the RP.

    On the PNF, the RP is also configured on the PNF and the lookup to the PIM RP points toward interface ae26.0 -> interface towards VRF-151 on spines

  5. The PIM join arrives on VRF-151 on irb.4088 and creates a PIM ( *,G ) state with irb.4088 as the outgoing interface and lookup towards the RP points to irb.4086.

  6. The Spine sends the PIM join entry on irb.4086 towards the PIM gateway.

  7. The PIM gateway receives the PIM (*,G ) join on ae10.2.

The flow of traffic for Spine 2 when the multicast source on VRF-151 starts sending packets:

  1. VRF-151 creates a PIM (*,G ) entry with irb.4088 as the outgoing interface and also the RP reachable via irb.4086.

  2. Spine 2 sends two packets—one toward the PNF on irb.4088 and one toward the PIM gateway on irb.4086.

    When the PNF receives the packet:

    1. The PNF forwards it based on the PIM ( *.G ) entry it created with outgoing interface ae26.1

    2. Multicast traffic arrives on irb.4089 in VRF-512 and is forwarded to the receivers on the leafs.

    When the PIM gateway receives the packet, it forwards the packet based on its (*,G) PIM entry with the outgoing interface as ae10.2.

  3. When traffic arrives at irb.4086 from the PIM gateway on Spine 2, Spine 2 prunes the RPT/shared tree.

Configuring Service Chaining With Multicast

This section shows how to configure the spine for service chaining as shown in Figure 2.

  1. Configure the ESI connection towards the PNF.
    content_copy zoom_out_map
    set interfaces xe-0/0/67:0 gigether-options 802.3ad ae26
    set interfaces ae26 esi 00:88:88:88:88:88:88:88:88:88
    set interfaces ae26 esi all-active
    set interfaces ae26 aggregated-ether-options lacp active
    set interfaces ae26 aggregated-ether-options lacp periodic fast
    set interfaces ae26 aggregated-ether-options lacp system-id 00:00:00:00:00:22
    set interfaces ae26 unit 0 family ethernet-switching interface-mode trunk
    
  2. Configure the Layer 3 connection for VRF-151 towards the PNF.
    content_copy zoom_out_map
    set interfaces irb unit 4088 virtual-gateway-accept-data
    set interfaces irb unit 4088 family inet address 10.88.0.242/24 preferred
    set interfaces irb unit 4088 family inet address 10.88.0.242/24 virtual-gateway-address 10.88.0.254
    set interfaces irb unit 4088 family inet6 address 2001:db8::40:58:0:242/112 preferred
    set interfaces irb unit 4088 family inet6 address 2001:db8::40:58:0:242/112 virtual-gateway-address 2001:db8::40:58:0:254
    set interfaces irb unit 4088 virtual-gateway-v4-mac 00:00:5e:00:00:04 
    set interfaces ae26 unit 0 family ethernet-switching vlan members 4088 
    set vlans 4088 vlan-id 4088
    set vlans 4088 l3-interface irb.4088
    set vlans 4088 vxlan vni 104088
    
  3. Configure the Layer 3 connection for VRF-152 towards the PNF.
    content_copy zoom_out_map
    set interfaces irb unit 4089 proxy-macip-advertisement
    set interfaces irb unit 4089 virtual-gateway-accept-data
    set interfaces irb unit 4089 family inet address 10.89.0.242/24 preferred
    set interfaces irb unit 4089 family inet address 10.89.0.242/24 virtual-gateway-address 10.89.0.254
    set interfaces irb unit 4089 family inet6 address 2001:db8::10:59:0:242/112 preferred
    set interfaces irb unit 4089 family inet6 address 2001:db8::10:59:0:242/112 virtual-gateway-address 2001:db8::10:59:0:254
    set interfaces irb unit 4089 virtual-gateway-v4-mac 00:00:5e:00:00:04 
    set interfaces ae26 unit 0 family ethernet-switching vlan members 4089 
    set vlans 4089 vlan-id 4089
    set vlans 4089 l3-interface irb.4089
    set vlans 4089 vxlan vni 104089
    
  4. Configure the ESI connection towards the PIM gateway.
    content_copy zoom_out_map
    set interfaces xe-0/0/67:1 gigether-options 802.3ad ae15 
    set interfaces ae15 esi 00:22:22:22:22:22:22:22:22:22
    set interfaces ae15 esi all-active
    set interfaces ae15 aggregated-ether-options lacp active
    set interfaces ae15 aggregated-ether-options lacp periodic fast
    set interfaces ae15 aggregated-ether-options lacp system-id 00:00:00:00:00:22
    set interfaces ae15 unit 0 family ethernet-switching interface-mode trunk
    
  5. Configure the Layer 3 link for VRF-151 towards PIM gateway.
    content_copy zoom_out_map
    set interfaces irb unit 4086 proxy-macip-advertisement
    set interfaces irb unit 4086 virtual-gateway-accept-data
    set interfaces irb unit 4086 family inet address 10.86.0.242/24 preferred
    set interfaces irb unit 4086 family inet address 10.86.0.242/24 virtual-gateway-address 10.86.0.254
    set interfaces irb unit 4086 virtual-gateway-v4-mac 00:00:5e:00:00:04 
    set interfaces ae15 unit 0 family ethernet-switching vlan members 4086 
    set vlans 4086 vlan-id 4086
    set vlans 4086 l3-interface irb.4086
    set vlans 4086 vxlan vni 104086
    
  6. Configure the Layer 3 link for VRF-152 towards the PIM gateway.
    content_copy zoom_out_map
    set interfaces irb unit 4087 proxy-macip-advertisement
    set interfaces irb unit 4087 virtual-gateway-accept-data
    set interfaces irb unit 4087 family inet address 10.87.0.242/24 preferred
    set interfaces irb unit 4087 family inet address 10.87.0.242/24 virtual-gateway-address 10.87.0.254
    set interfaces irb unit 4087 virtual-gateway-v4-mac 00:00:5e:00:00:04 
    set interfaces ae15 unit 0 family ethernet-switching vlan members 4087 
    set vlans 4087 vlan-id 4087
    set vlans 4087 l3-interface irb.4087
    set vlans 4087 vxlan vni 104087
    
  7. Configure a policy to export local routes from VRF-151 and VRF-152 to the PNF.
    content_copy zoom_out_map
    set policy-options policy-statement DIRECT-EXPORT-TO-SRX term 10 from protocol direct
    set policy-options policy-statement DIRECT-EXPORT-TO-SRX term 10 then accept
    set policy-options policy-statement DIRECT-EXPORT-TO-SRX term 20 from protocol bgp
    set policy-options policy-statement DIRECT-EXPORT-TO-SRX term 20 then accept
    set policy-options policy-statement DIRECT-EXPORT-TO-SRX term 30 then reject
    
  8. Configure a policy to export local routes from VRF-151 and VRF-152 to the PIM gateway.
    content_copy zoom_out_map
    set policy-options policy-statement DIRECT-EXPORT-TO-PIM term 10 from protocol direct
    set policy-options policy-statement DIRECT-EXPORT-TO-PIM term 10 then accept
    set policy-options policy-statement DIRECT-EXPORT-TO-PIM term 20 then reject
    
  9. Configure a routing instance for VRF 151.
    content_copy zoom_out_map
    set routing-instances VRF-151 instance-type vrf
    set routing-instances VRF-151 interface irb.601
    set routing-instances VRF-151 interface irb.602
    set routing-instances VRF-151 interface irb.603
    set routing-instances VRF-151 interface irb.604
    set routing-instances VRF-151 interface lo0.151
    set routing-instances VRF-151 interface irb.4088
    set routing-instances VRF-151 interface irb.4086
    set routing-instances VRF-151 route-distinguisher 192.186.0.2:151
    set routing-instances VRF-151 vrf-target target:100:151
    set routing-instances VRF-151 protocols bgp group to-srx type external
    set routing-instances VRF-151 protocols bgp group to-srx export DIRECT-EXPORT-TO-SRX
    set routing-instances VRF-151 protocols bgp group to-srx local-as 4200000002
    set routing-instances VRF-151 protocols bgp group to-srx neighbor 10.88.0.1 family inet unicast
    set routing-instances VRF-151 protocols bgp group to-srx neighbor 10.88.0.1 peer-as 4000000001
    set routing-instances VRF-151 protocols bgp group to-srx neighbor 2001:db8::40:58:0:1 family inet6 unicast
    set routing-instances VRF-151 protocols bgp group to-srx neighbor 2001:db8::40:58:0:1 peer-as 4000000001
    set routing-instances VRF-151 protocols bgp group to-pim type external
    set routing-instances VRF-151 protocols bgp group to-pim export DIRECT-EXPORT-TO-PIM
    set routing-instances VRF-151 protocols bgp group to-pim local-as 4200000002
    set routing-instances VRF-151 protocols bgp group to-pim neighbor 10.86.0.1 family inet unicast
    set routing-instances VRF-151 protocols bgp group to-pim neighbor 10.86.0.1 peer-as 4100000000
    set routing-instances VRF-151 protocols pim rp static address 192.68.151.1 group-ranges 225.0.4.0/24
    set routing-instances VRF-151 protocols pim rp static address 192.68.152.1 group-ranges 225.0.5.0/24
    set routing-instances VRF-151 protocols pim interface irb.601 family inet
    set routing-instances VRF-151 protocols pim interface irb.601 mode sparse-dense
    set routing-instances VRF-151 protocols pim interface irb.602 family inet
    set routing-instances VRF-151 protocols pim interface irb.602 mode sparse-dense
    set routing-instances VRF-151 protocols pim interface irb.604 family inet
    set routing-instances VRF-151 protocols pim interface irb.604 mode sparse-dense
    set routing-instances VRF-151 protocols pim interface irb.603 family inet
    set routing-instances VRF-151 protocols pim interface irb.603 mode sparse-dense
    set routing-instances VRF-151 protocols pim interface irb.4086 family inet
    set routing-instances VRF-151 protocols pim interface irb.4086 mode sparse-dense
    set routing-instances VRF-151 protocols pim interface irb.4088 family inet
    set routing-instances VRF-151 protocols pim interface irb.4088 mode sparse-dense
    
  10. Configure a routing instance for VRF 152.
    content_copy zoom_out_map
    set routing-instances VRF-152 instance-type vrf
    set routing-instances VRF-152 interface irb.605
    set routing-instances VRF-152 interface irb.606
    set routing-instances VRF-152 interface irb.607
    set routing-instances VRF-152 interface irb.608
    set routing-instances VRF-152 interface lo0.152
    set routing-instances VRF-152 interface irb.4089
    set routing-instances VRF-152 interface irb.4087
    set routing-instances VRF-152 route-distinguisher 192.186.0.2:152
    set routing-instances VRF-152 vrf-target target:100:152
    set routing-instances VRF-152 protocols bgp group to-srx type external
    set routing-instances VRF-152 protocols bgp group to-srx export DIRECT-EXPORT-TO-SRX
    set routing-instances VRF-152 protocols bgp group to-srx local-as 4200000002
    set routing-instances VRF-152 protocols bgp group to-srx neighbor 10.89.0.1 family inet unicast
    set routing-instances VRF-152 protocols bgp group to-srx neighbor 10.89.0.1 peer-as 4000000001
    set routing-instances VRF-152 protocols bgp group to-srx neighbor 2001:db8::10:59:0:1 family inet6 unicast
    set routing-instances VRF-152 protocols bgp group to-srx neighbor 2001:db8::10:59:0:1 peer-as 4000000001
    set routing-instances VRF-152 protocols bgp group to-pim type external
    set routing-instances VRF-152 protocols bgp group to-pim export DIRECT-EXPORT-TO-PIM
    set routing-instances VRF-152 protocols bgp group to-pim local-as 4200000002
    set routing-instances VRF-152 protocols bgp group to-pim neighbor 10.87.0.1 family inet unicast
    set routing-instances VRF-152 protocols bgp group to-pim neighbor 10.87.0.1 peer-as 4100000000
    set routing-instances VRF-152 protocols pim rp static address 192.68.151.1 group-ranges 225.0.4.0/24
    set routing-instances VRF-152 protocols pim rp static address 192.68.152.1 group-ranges 225.0.5.0/24
    set routing-instances VRF-152 protocols pim interface irb.605 family inet
    set routing-instances VRF-152 protocols pim interface irb.605 mode sparse-dense
    set routing-instances VRF-152 protocols pim interface irb.606 family inet
    set routing-instances VRF-152 protocols pim interface irb.606 mode sparse-dense
    set routing-instances VRF-152 protocols pim interface irb.607 family inet
    set routing-instances VRF-152 protocols pim interface irb.607 mode sparse-dense
    set routing-instances VRF-152 protocols pim interface irb.608 family inet
    set routing-instances VRF-152 protocols pim interface irb.608 mode sparse-dense
    set routing-instances VRF-152 protocols pim interface irb.4087 family inet
    set routing-instances VRF-152 protocols pim interface irb.4087 mode sparse-dense
    set routing-instances VRF-152 protocols pim interface irb.4089 family inet
    set routing-instances VRF-152 protocols pim interface irb.4089 mode sparse-dense
    
  11. Repeat this procedure for every spine in your topology.

Verifying Service Chaining with Multicast

This section shows how to configure service chaining with Multicast. Note the following:

  • The multicast source is on VRF-151 - VLAN 601

  • The multicast receivers are on VRF-152 - VLAN 606

  1. Display the interfaces on VRF-152 that are configured for PIM. This command shows the interfaces that are DRs.
    content_copy zoom_out_map
    host@SPINE5> show pim interfaces instance VRF-152 
    Stat = Status, V = Version, NbrCnt = Neighbor Count,
    S = Sparse, D = Dense, B = Bidirectional,
    DR = Designated Router, DDR = Dual DR, DistDR = Distributed DR,
    P2P = Point-to-point link, P2MP = Point-to-Multipoint,
    Active = Bidirectional is active, NotCap = Not Bidirectional Capable
    
    Name               Stat Mode IP V State        NbrCnt JoinCnt(sg/*g) DR address
    irb.4087           Up   SD    4 2 DR,NotCap         4 0/0            10.87.0.245
    irb.4089           Up   SD    4 2 DR,NotCap         4 50/50          10.89.0.245
    irb.605            Up   SD    4 2 DR,NotCap         3 0/0            10.2.93.245
    irb.606            Up   SD    4 2 DR,NotCap         3 0/0            10.2.94.245
    irb.607            Up   SD    4 2 DR,NotCap         3 0/0            10.2.95.245
    irb.608            Up   SD    4 2 DR,NotCap         3 0/0            10.2.96.245
    pime.32780         Up   S     4 2 P2P,NotCap        0 0/0
    pime.32781         Up   S     4 2 P2P,NotCap        0 0/0
    
    
  2. Display PIM groups on the Upstream interface towards RP and Source are pointing to irb.4089 – towards the PNF
    content_copy zoom_out_map
    host@SPINE5> show pim join extensive instance VRF-152 225.0.4.1 
    Instance: PIM.VRF-152 Family: INET
    R = Rendezvous Point Tree, S = Sparse, W = Wildcard
    
    Group: 225.0.4.1
        Source: *
        RP: 192.68.151.1
        Flags: sparse,rptree,wildcard
        Upstream interface: irb.4089              
        Upstream neighbor: 10.89.0.1
        Upstream state: Join to RP
        Uptime: 00:14:30 
        Downstream neighbors:
            Interface: irb.606                
                10.2.94.245 State: Join Flags: SRW  Timeout: Infinity
                Uptime: 00:14:30 Time since last Join: 00:14:30
        Number of downstream interfaces: 1
        Number of downstream neighbors: 1
    
    Group: 225.0.4.1
        Source: 10.2.89.5
        Flags: sparse,spt
        Upstream interface: irb.4089              
        Upstream neighbor: 10.89.0.1
        Upstream state: Join to Source, No Prune to RP
        Keepalive timeout: 317
        Uptime: 00:13:51 
        Downstream neighbors:
            Interface: irb.606                
                10.2.94.245 State: Join Flags: S   Timeout: Infinity
                Uptime: 00:13:51 Time since last Join: 00:13:51
        Number of downstream interfaces: 1
        Number of downstream neighbors: 1
    

Service Chaining— Release History

Table 1 provides a history of all of the features in this section and their support within this reference design.

Table 1: Service Chaining Release History

Release

Description

19.1R2

QFX10002-60C and QFX5120-32C switches running Junos OS Release 19.1R2 and later releases in the same release train support all features documented in this section.

18.4R2

QFX5120-48Y switches running Junos OS Release 18.4R2 and later releases in the same release train support all features documented in this section.

18.1R3-S3

All devices in the reference design that support Junos OS Release 18.1R3-S3 and later releases in the same release train also support all features documented in this section.

footer-navigation