[j-nsp] multicast traffic test in Juniper

bruno.juniper bruno.juniper at gmail.com
Mon Sep 10 04:23:27 EDT 2012


hi experts,
I am testing multicast using mx80 box with logical routers.the topology is like this:
R6-S1------R1-----R3-----R8-Rec1.
R1 and R3 run pim-sm mode .R1 is RP.


when i use ping to to test ,it got response from R1 not Receiver-r8.then i go to r3 to check pim join .found out only rpt,not any spt item. i am not sure i can use sap in logical-router. is there anyone use it to simulate multicast receiver. any help is appreciated!




lab at MX80# run ping 224.1.1.1 ttl 10 logical-system r6-S1 bypass-routing interface ge-1/1/4.16 
64 bytes from 172.27.0.29: icmp_seq=0 ttl=64 time=0.503 ms
64 bytes from 172.27.0.29: icmp_seq=1 ttl=64 time=0.446 ms
64 bytes from 172.27.0.29: icmp_seq=2 ttl=64 time=0.444 ms
64 bytes from 172.27.0.29: icmp_seq=3 ttl=64 time=0.479 ms




[edit logical-systems]
lab at MX80# run show pim join 224.1.1.1 logical-system r3 extensive 
Instance: PIM.master Family: INET
R = Rendezvous Point Tree, S = Sparse, W = Wildcard
Group: 224.1.1.1
    Source: *
    RP: 172.27.255.1
    Flags: sparse,rptree,wildcard
    Upstream interface: ge-1/1/4.13           
    Upstream neighbor: 172.27.0.14
    Upstream state: Join to RP
    Downstream neighbors:
        Interface: Local                  
        Interface: ge-1/0/4.38            
            172.27.0.57 State: Join Flags: SRW  Timeout: Infinity




below is my config


lab at MX80# show r1 
interfaces {
    ge-1/0/4 {
        unit 13 {
            description "Connection to R3";
            vlan-id 13;
            family inet {
                address 172.27.0.14/30;
            }
        }
        unit 16 {
            description "Connection to Source-1";
            vlan-id 16;
            family inet {
                address 172.27.0.29/30;
            }
        }
    }
    lo0 {
        unit 1 {
            family inet {
                address 172.27.255.1/32 {
                    primary;
                }
                address 172.27.255.11/32;
            }
        }
    }
}
protocols {
    ospf {
        area 0.0.0.0 {
            interface all;
        }
    }
    pim {
        rp {
            local {
                address 172.27.255.1;
            }
        }
        interface all {
            mode sparse;
        }
    }
}


  [edit logical-systems]
lab at MX80# show r3    
interfaces {
    ge-1/1/4 {
        unit 13 {
            description "Connection to R1";
            vlan-id 13;
            family inet {
                address 172.27.0.13/30;
            }
        }
    }
    lo0 {
        unit 3 {
            family inet {
                address 172.27.255.3/32;
            }
        }
    }
}
protocols {
    igmp {
        interface ge-1/0/4.38 {
            static {
                group 224.1.1.1;
            }                           
        }
    }
    ospf {
        area 0.0.0.0 {
            interface all;
        }
    }
    pim {
        rp {
            static {
                address 172.27.255.1;
            }
        }
        interface all {
            mode sparse;
        }
    }
}


 [edit logical-systems]
lab at MX80# show r6-S1 
interfaces {
    ge-1/1/4 {
        unit 16 {
            description "Source1 to R1";
            vlan-id 16;
            family inet {
                address 172.27.0.30/30;
            }
        }
    }
}
routing-options {
    static {
        route 172.27.0.0/16 next-hop 172.27.0.29;
    }
}


[edit logical-systems]
lab at MX80# show r8-Rec1  
interfaces {
    ge-1/1/4 {
        unit 38 {
            description "Connection to R3";
            vlan-id 38;
            family inet {
                address 172.27.0.58/30;
            }
        }
    }
}
protocols {
    sap {
        listen 224.1.1.1;
    }
    pim {
        export block-sap-default;
        rp {
            static {
                address 172.27.255.11;
            }
        }
        interface ge-1/1/4.38;
    }                                   
}
policy-options {
    policy-statement block-sap-default {
        term 1 {
            from {
                route-filter 224.2.127.254/32 exact;
            }
            then reject;
        }
        term 2 {
            then accept;
        }
    }
}
routing-options {
    static {
        route 172.27.0.0/16 next-hop 172.27.0.57;
    }
}



------------------
Best Regards,
Bruno


More information about the juniper-nsp mailing list