I) PIM DENSE-MODE:
CONFIGURATION: All routers in the above diagram are enabled with PIM
Dense mode, host 20.0.0.1(Multicast source) runs a Multicast Video Streaming
application using the address 225.0.0.1 in this case.
The configurations for the dense-mode operation in the three routers are shown
in the running configurations as below:
OUTPUT:
The output of various verification commands shows the information about the
multicast forwarding the application as below:
The routing table will be used by multicast for best path determination & in the
example, EIGRP is configured.
R1#show ip route
Codes:
C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route
Gateway of last resort is not set
D 50.0.0.0/8 [90/2681856] via 40.0.0.2, 00:15:16, Serial0
D 20.0.0.0/8 [90/2195456] via 40.0.0.2, 00:36:22, Serial0
C 40.0.0.0/8 is directly connected, Serial0
C 10.0.0.0/8 is directly connected, Ethernet0
D 30.0.0.0/8 [90/2707456] via 40.0.0.2, 00:05:40, Serial0
For a PIM Dense Mode operation, the highlighted portion of the below output are
important. That which reveals the Multicast Source & the Active Multicast group
(S,G). S- denotes the Multicast Source’s IP & G - the Multicast group address.
R1#show ip mroute
IP Multicast Routing Table
Flags: D - Dense, S - Sparse, B - Bidir Group, s - SSM Group, C - Connected,
L - Local, P - Pruned, R - RP-bit set, F - Register flag,
T - SPT-bit set, J - Join SPT, M - MSDP created entry,
X - Proxy Join Timer Running, A - Advertised via MSDP, U - URD,
I - Received Source Specific Host Report
Outgoing interface flags: H - Hardware switched
Timers: Uptime/Expires
Interface state: Interface, Next-Hop or VCD, State/Mode
The last couple of lines also reveal the interfaces through which the Multicast
traffic enters & leaves the router.
Another important observation is the RPF neighbor (which points to the best path
neighbor - to reach the MC source).
To know PIM details – interfaces enabled, PIM Neighbors, Hello Interval, PIM
version etc the below 2 commands are useful.
The IGMP group members, version, Query Interval, interface members of IGMP
groups can be known with the help of the below 2 commands.
R2#show ip route
Codes:
C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route
Gateway of last resort is not set
C 50.0.0.0/8 is directly connected, Serial1
C 20.0.0.0/8 is directly connected, Ethernet0
C 40.0.0.0/8 is directly connected, Serial0
D 10.0.0.0/8 [90/2195456] via 40.0.0.1, 01:15:09, Serial0
D 30.0.0.0/8 [90/2195456] via 50.0.0.2, 00:15:03, Serial1
R2#show ip mroute
IP Multicast Routing Table
Flags: D - Dense, S - Sparse, B - Bidir Group, s - SSM Group, C - Connected,
L - Local, P - Pruned, R - RP-bit set, F - Register flag,
T - SPT-bit set, J - Join SPT, M - MSDP created entry,
X - Proxy Join Timer Running, A - Advertised via MSDP, U - URD,
I - Received Source Specific Host Report
Outgoing interface flags: H - Hardware switched
Timers: Uptime/Expires
Interface state: Interface, Next-Hop or VCD, State/Mode
R3#show ip route
Codes:
C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route
R3#show ip mroute
IP Multicast Routing Table
Flags: D - Dense, S - Sparse, B - Bidir Group, s - SSM Group, C - Connected,
L - Local, P - Pruned, R - RP-bit set, F - Register flag,
T - SPT-bit set, J - Join SPT, M - MSDP created entry,
X - Proxy Join Timer Running, A - Advertised via MSDP, U - URD,
I - Received Source Specific Host Report
Outgoing interface flags: H - Hardware switched
Timers: Uptime/Expires
Interface state: Interface, Next-Hop or VCD, State/Mode
1) MANUAL RP CONFIGURATION:
CONFIGURATION:
R1#show running-config
ip multicast-routing
!
interface Ethernet0
ip address 10.0.0.1 255.0.0.0
ip pim sparse-mode
!
interface Serial0
ip address 40.0.0.1 255.0.0.0
ip pim sparse-mode
clockrate 64000
!
router eigrp 100
network 10.0.0.0
network 40.0.0.0
auto-summary
!
ip pim rp-address 20.0.0.1
!
R2#show running-config
!
ip multicast-routing
!
interface Ethernet0
ip address 20.0.0.1 255.0.0.0
ip pim sparse-mode
!
interface Serial0
ip address 40.0.0.2 255.0.0.0
ip pim sparse-mode
!
interface Serial1
ip address 50.0.0.1 255.0.0.0
ip pim sparse-mode
clockrate 64000
!
router eigrp 100
network 20.0.0.0
network 40.0.0.0
network 50.0.0.0
auto-summary
!
ip pim rp-address 20.0.0.1
!
R3#show running-config
!
ip multicast-routing
!
interface Ethernet0
ip address 30.0.0.1 255.0.0.0
ip pim sparse-mode
!
interface Serial1
ip address 50.0.0.2 255.0.0.0
ip pim sparse-mode
!
router eigrp 100
network 30.0.0.0
network 50.0.0.0
auto-summary
!
ip pim rp-address 20.0.0.1
!
OUTPUT:
R1#show ip mroute
IP Multicast Routing Table
Flags:
D - Dense, S - Sparse, B - Bidir Group, s - SSM Group, C - Connected,
L - Local, P - Pruned, R - RP-bit set, F - Register flag,
T - SPT-bit set, J - Join SPT, M - MSDP created entry,
X - Proxy Join Timer Running, A - Advertised via MSDP, U - URD,
I - Received Source Specific Host Report
Outgoing interface flags: H - Hardware switched
Timers: Uptime/Expires
Interface state: Interface, Next-Hop or VCD, State/Mode
The major difference between the Dense & Sparse mode outputs is the (*,G) –
highlighted part which reveals the MC group & the RP address. This is apart from
the (S,G) which reveals the same details as in Dense mode.
R2#show ip mroute
IP Multicast Routing Table
Flags:
D - Dense, S - Sparse, B - Bidir Group, s - SSM Group, C - Connected,
L - Local, P - Pruned, R - RP-bit set, F - Register flag,
T - SPT-bit set, J - Join SPT, M - MSDP created entry,
X - Proxy Join Timer Running, A - Advertised via MSDP, U - URD,
I - Received Source Specific Host Report
Outgoing interface flags: H - Hardware switched
Timers: Uptime/Expires
Interface state: Interface, Next-Hop or VCD, State/Mode
Where, int-id is the name and module number of any interface in the router,
which represents the router’s id for the election. TTL specifies the radius of
coverage.
CONFIGURATION:
1) nomination:
R1(config)#ip pim send-rp-announce serial 0 scope 90
R2(config)#ip pim send-rp-announce serial 0 scope 78
R3(config)#ip pim send-rp-announce serial 0 scope 90
OUTPUT:
R1#show ip mroute
IP Multicast Routing Table
Flags: D - Dense, S - Sparse, B - Bidir Group, s - SSM Group, C - Connected,
L - Local, P - Pruned, R - RP-bit set, F - Register flag,
T - SPT-bit set, J - Join SPT, M - MSDP created entry,
X - Proxy Join Timer Running, A - Advertised via MSDP, U - URD,
I - Received Source Specific Host Report
Outgoing interface flags: H - Hardware switched
Timers: Uptime/Expires
Interface state: Interface, Next-Hop or VCD, State/Mode
Observe the highlighted parts. 2 well known multicast addresses are used for RP
election.
R2#show ip mroute
IP Multicast Routing Table
Flags: D - Dense, S - Sparse, B - Bidir Group, s - SSM Group, C - Connected,
L - Local, P - Pruned, R - RP-bit set, F - Register flag,
T - SPT-bit set, J - Join SPT, M - MSDP created entry,
X - Proxy Join Timer Running, A - Advertised via MSDP, U - URD,
I - Received Source Specific Host Report
Outgoing interface flags: H - Hardware switched
Timers: Uptime/Expires
Interface state: Interface, Next-Hop or VCD, State/Mode
The 3 RP candidates are using the specified interface IPs as their IDs in RP
election which is shown in the S,G – S address of R2’s table too..
These well known MC group addresses are getting added in the below IGMP
output as well.
Lastly, see the output when there is no explicit request for multicast from any
host on 10.0.0.0 network. The (S,G) entry for 225.0.0.1 group is missing !
R1#show ip mroute
IP Multicast Routing Table
Flags: D - Dense, S - Sparse, B - Bidir Group, s - SSM Group, C - Connected,
L - Local, P - Pruned, R - RP-bit set, F - Register flag,
T - SPT-bit set, J - Join SPT, M - MSDP created entry,
X - Proxy Join Timer Running, A - Advertised via MSDP, U - URD,
I - Received Source Specific Host Report
Outgoing interface flags: H - Hardware switched
Timers: Uptime/Expires
Interface state: Interface, Next-Hop or VCD, State/Mode
(*, 239.255.255.250), 00:51:24/00:02:46, RP 50.0.0.2, flags: SJC
Incoming interface: Serial0, RPF nbr 40.0.0.2
Outgoing interface list:
Ethernet0, Forward/Sparse, 00:51:24/00:02:46