User Tools

Site Tools


documentation:examples:multicast_with_pim-sm

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
documentation:examples:multicast_with_pim-sm [2019/11/08 10:39] – [Download Lab scripts] olivierdocumentation:examples:multicast_with_pim-sm [2019/11/08 10:57] – [4. Check VM3 correctly notice this mcast subscriber] olivier
Line 23: Line 23:
 Start the lab with 4 routers simulating an e1000 NIC (vtnet interface and they didn't support mcast routing on FreeBSD): Start the lab with 4 routers simulating an e1000 NIC (vtnet interface and they didn't support mcast routing on FreeBSD):
 <code> <code>
-BSDRP-lab-bhyve.sh -n 4 -e -i BSDRP-1.96-full-amd64-serial.img.xz+tools/BSDRP-lab-bhyve.sh -n 4 -e -i BSDRP-1.96-full-amd64-serial.img.xz
 BSD Router Project (http://bsdrp.net) - bhyve full-meshed lab script BSD Router Project (http://bsdrp.net) - bhyve full-meshed lab script
 Setting-up a virtual lab with 4 VM(s): Setting-up a virtual lab with 4 VM(s):
-- Working directory: /tmp/BSDRP +- Working directory: /root/BSDRP-VMs 
-- Each VM have 1 core(s) and 256M RAM+- Each VM has 1 core and 512M RAM
 - Emulated NIC: e1000 - Emulated NIC: e1000
 - Switch mode: bridge + tap - Switch mode: bridge + tap
 - 0 LAN(s) between all VM - 0 LAN(s) between all VM
 - Full mesh Ethernet links between each VM - Full mesh Ethernet links between each VM
-VM 1 have the following NIC: +VM 1 has the following NIC: 
-vtnet0 connected to VM 2 +em0 connected to VM 2 
-vtnet1 connected to VM 3 +em1 connected to VM 3 
-vtnet2 connected to VM 4 +em2 connected to VM 4 
-VM 2 have the following NIC: +VM 2 has the following NIC: 
-vtnet0 connected to VM 1 +em0 connected to VM 1 
-vtnet1 connected to VM 3 +em1 connected to VM 3 
-vtnet2 connected to VM 4 +em2 connected to VM 4 
-VM 3 have the following NIC: +VM 3 has the following NIC: 
-vtnet0 connected to VM 1 +em0 connected to VM 1 
-vtnet1 connected to VM 2 +em1 connected to VM 2 
-vtnet2 connected to VM 4 +em2 connected to VM 4 
-VM 4 have the following NIC: +VM 4 has the following NIC: 
-vtnet0 connected to VM 1 +em0 connected to VM 1 
-vtnet1 connected to VM 2 +em1 connected to VM 2 
-vtnet2 connected to VM 3 +em2 connected to VM 3 
-For connecting to VM'serial console, you can use: +To connect VM'serial console, you can use: 
-- VM 1 : cu -l /dev/nmdm1B +- VM 1 : cu -l /dev/nmdm-BSDRP.1B 
-- VM 2 : cu -l /dev/nmdm2B +- VM 2 : cu -l /dev/nmdm-BSDRP.2B 
-- VM 3 : cu -l /dev/nmdm3B +- VM 3 : cu -l /dev/nmdm-BSDRP.3B 
-- VM 4 : cu -l /dev/nmdm4B+- VM 4 : cu -l /dev/nmdm-BSDRP.4B
 </code> </code>
  
Line 66: Line 66:
  ifconfig_em0="inet 10.0.12.1/24" \  ifconfig_em0="inet 10.0.12.1/24" \
  defaultrouter=10.0.12.254  defaultrouter=10.0.12.254
-hostname VM1+service hostname restart
 service netif restart service netif restart
 service routing restart service routing restart
Line 88: Line 88:
 EOF EOF
  
-hostname VM2+service hostname restart
 service netif restart service netif restart
 service routing restart service routing restart
Line 110: Line 110:
 EOF EOF
  
-hostname VM3+service hostname restart
 service netif restart service netif restart
 service routing restart service routing restart
Line 124: Line 124:
  ifconfig_em2="inet 10.0.34.4/24" \  ifconfig_em2="inet 10.0.34.4/24" \
  defaultrouter=10.0.34.254  defaultrouter=10.0.34.254
-hostname VM4+service hostname restart
 service netif restart service netif restart
 service routing restart service routing restart
Line 138: Line 138:
 <code> <code>
 [root@VM2]~# pimd -r [root@VM2]~# pimd -r
-Virtual Interface Table +Virtual Interface Table ====================================================== 
- Vif  Local address    Subnet                Thresh  Flags          Neighbors +Vif  Local Address    Subnet              Thresh  Flags      Neighbors 
-   0  10.0.12.2        10.0.12/24                  DR NO-NBR +---  ---------------  ------------------  ------  ---------  ----------------- 
-   1  10.0.23.2        10.0.23/24                  PIM            10.0.23.3 +  0  10.0.12.254      10.0.12/24                DR NO-NBR 
-   2  10.0.12.2        register_vif0         1+  1  10.0.23.2        10.0.23/24                PIM        10.0.23.3 
 +  2  10.0.12.254      register_vif0            1
  
-Multicast Routing Table + Vif  SSM Group        Sources 
- Source          Group           RP addr         Flags + 
---------------------------(*,*,RP)--------------------------+Multicast Routing Table ====================================================== 
 +--------------------------------- (*,*,G------------------------------------
 Number of Groups: 0 Number of Groups: 0
 Number of Cache MIRRORs: 0 Number of Cache MIRRORs: 0
 +------------------------------------------------------------------------------
 </code> </code>
  
-=> VM2 sees VM3+=> VM2 sees VM3 as PIM neighbor
  
 <code> <code>
 [root@VM3]~# pimd -r [root@VM3]~# pimd -r
-Virtual Interface Table +Virtual Interface Table ====================================================== 
- Vif  Local address    Subnet                Thresh  Flags          Neighbors +Vif  Local Address    Subnet              Thresh  Flags      Neighbors 
-   0  10.0.23.3        10.0.23/24                  DR PIM         10.0.23.2 +---  ---------------  ------------------  ------  ---------  ----------------- 
-   1  10.0.34.3        10.0.34/24                  DR NO-NBR +  0  10.0.23.3        10.0.23/24                DR PIM     10.0.23.2 
-   2  10.0.23.3        register_vif0         1+  1  10.0.34.254      10.0.34/24                DR NO-NBR 
 +  2  10.0.23.3        register_vif0            1
  
-Multicast Routing Table + Vif  SSM Group        Sources 
- Source          Group           RP addr         Flags + 
---------------------------(*,*,RP)--------------------------+Multicast Routing Table ====================================================== 
 +--------------------------------- (*,*,G------------------------------------
 Number of Groups: 0 Number of Groups: 0
 Number of Cache MIRRORs: 0 Number of Cache MIRRORs: 0
 +------------------------------------------------------------------------------
 </code> </code>
  
-=> VM3 sees VM2.+=> VM3 sees VM2 as PIM Designated Router neighbor.
 ==== Does PIM daemon locally register to PIM mcast group ? ==== ==== Does PIM daemon locally register to PIM mcast group ? ====
  
Line 306: Line 312:
 Vif  Local Address    Subnet              Thresh  Flags      Neighbors Vif  Local Address    Subnet              Thresh  Flags      Neighbors
 ---  ---------------  ------------------  ------  ---------  ----------------- ---  ---------------  ------------------  ------  ---------  -----------------
-  0  10.0.12.2        10.0.12/24                DR NO-NBR+  0  10.0.12.254      10.0.12/24                DR NO-NBR
   1  10.0.23.2        10.0.23/24                PIM        10.0.23.3   1  10.0.23.2        10.0.23/24                PIM        10.0.23.3
-  2  10.0.12.2        register_vif0            1+  2  10.0.12.254      register_vif0            1
  
  Vif  SSM Group        Sources  Vif  SSM Group        Sources
Line 316: Line 322:
 Source           Group            RP Address       Flags Source           Group            RP Address       Flags
 ---------------  ---------------  ---------------  --------------------------- ---------------  ---------------  ---------------  ---------------------------
-10.0.12.1        239.1.1.1        10.0.23.2        CACHE SG +10.0.12.1        239.1.1.1        10.0.23.2        SG 
-Joined   oifs: ..j+Joined   oifs: ...
 Pruned   oifs: ... Pruned   oifs: ...
 Leaves   oifs: ... Leaves   oifs: ...
 Asserted oifs: ... Asserted oifs: ...
-Outgoing oifs: ..o+Outgoing oifs: ...
 Incoming     : I.. Incoming     : I..
  
 TIMERS:  Entry    JP    RS  Assert VIFS:  0  1  2 TIMERS:  Entry    JP    RS  Assert VIFS:  0  1  2
-           180    35     0              0  0  0+                     0              0  0  0
 --------------------------------- (*,*,G) ------------------------------------ --------------------------------- (*,*,G) ------------------------------------
 Number of Groups: 1 Number of Groups: 1
-Number of Cache MIRRORs: 1+Number of Cache MIRRORs: 0
 ------------------------------------------------------------------------------ ------------------------------------------------------------------------------
 </code> </code>
Line 339: Line 345:
 IPv4 Virtual Interface Table IPv4 Virtual Interface Table
  Vif   Thresh   Local-Address   Remote-Address    Pkts-In   Pkts-Out  Vif   Thresh   Local-Address   Remote-Address    Pkts-In   Pkts-Out
-  0           10.0.12.2                            8013          0+  0           10.0.12.254                                      0
   1           10.0.23.2                                        0   1           10.0.23.2                                        0
-  2           10.0.12.2                                     8013+  2           10.0.12.254                                      0
  
 IPv4 Multicast Forwarding Table IPv4 Multicast Forwarding Table
  Origin          Group             Packets In-Vif  Out-Vifs:Ttls  Origin          Group             Packets In-Vif  Out-Vifs:Ttls
- 10.0.12.1       239.1.1.1            8013       2:1+ 10.0.12.1       239.1.1.1                65535
  
  
Line 351: Line 357:
  
 IPv6 Multicast Forwarding Table is empty IPv6 Multicast Forwarding Table is empty
 +
 </code> </code>
  
-VM2 had update its mroute table for adding a source for group 239.1.1.1 comming from vif0 (toward VM1).+VM2 had update its mroute table for adding a source for group 239.1.1.1 comming from '65535'??.
  
 ==== 3. Start a mcast receiver (IPerf server) on VM4 ==== ==== 3. Start a mcast receiver (IPerf server) on VM4 ====
Line 389: Line 396:
  
 <code> <code>
-[root@VM3]~# pimd -r+[root@VM3]~# pimd -r                                                                                                                 [9/367]
 Virtual Interface Table ====================================================== Virtual Interface Table ======================================================
 Vif  Local Address    Subnet              Thresh  Flags      Neighbors Vif  Local Address    Subnet              Thresh  Flags      Neighbors
 ---  ---------------  ------------------  ------  ---------  ----------------- ---  ---------------  ------------------  ------  ---------  -----------------
   0  10.0.23.3        10.0.23/24                DR PIM     10.0.23.2   0  10.0.23.3        10.0.23/24                DR PIM     10.0.23.2
-  1  10.0.34.3        10.0.34/24                DR NO-NBR+  1  10.0.34.254      10.0.34/24                DR NO-NBR
   2  10.0.23.3        register_vif0            1   2  10.0.23.3        register_vif0            1
  
Line 412: Line 419:
  
 TIMERS:  Entry    JP    RS  Assert VIFS:  0  1  2 TIMERS:  Entry    JP    RS  Assert VIFS:  0  1  2
-                60     0              0  0  0+                50     0              0  0  0
 ----------------------------------- (S,G) ------------------------------------ ----------------------------------- (S,G) ------------------------------------
 Source           Group            RP Address       Flags Source           Group            RP Address       Flags
Line 425: Line 432:
  
 TIMERS:  Entry    JP    RS  Assert VIFS:  0  1  2 TIMERS:  Entry    JP    RS  Assert VIFS:  0  1  2
-           195    50     0              0  0  0+           200    55     0              0  0  0
 --------------------------------- (*,*,G) ------------------------------------ --------------------------------- (*,*,G) ------------------------------------
 Number of Groups: 1 Number of Groups: 1
Line 439: Line 446:
 IPv4 Virtual Interface Table IPv4 Virtual Interface Table
  Vif   Thresh   Local-Address   Remote-Address    Pkts-In   Pkts-Out  Vif   Thresh   Local-Address   Remote-Address    Pkts-In   Pkts-Out
-  0           10.0.23.3                            7882          0 +  0           10.0.23.3                             157          0 
-  1           10.0.34.3                                     7882+  1           10.0.34.254                                    157
   2           10.0.23.3                                        0   2           10.0.23.3                                        0
  
 IPv4 Multicast Forwarding Table IPv4 Multicast Forwarding Table
  Origin          Group             Packets In-Vif  Out-Vifs:Ttls  Origin          Group             Packets In-Vif  Out-Vifs:Ttls
- 10.0.12.1       239.1.1.1            7882       1:1+ 10.0.12.1       239.1.1.1             157       1:1
  
  
Line 451: Line 458:
  
 IPv6 Multicast Forwarding Table is empty IPv6 Multicast Forwarding Table is empty
- 
 </code> </code>
  
-VM3 correctly learn that there is a subscriber to group 239.1.1.1 on interface vif1 (toward VM4).+VM3 correctly learn that there is a subscriber to group 239.1.1.1 on interface vif1 (toward VM4) and the source is on vif0 (toward VM2).
documentation/examples/multicast_with_pim-sm.txt · Last modified: 2019/11/08 19:22 by olivier

Except where otherwise noted, content on this wiki is licensed under the following license: BSD 2-Clause
Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki