Showing posts with label INE Vol 1 - multicast. Show all posts
Showing posts with label INE Vol 1 - multicast. Show all posts

Sunday, August 22, 2010

INE Vol 1 multicast - Lab 12 - Multicast BGP

Notes:

Nothing really to difficult here. This lab uses AFI and SAFI for ipv4 multicast.

Some things to note:
1. On the router connecting to the receiver, disable ip mroute-cache.
2. Disabling Fast Switching via the "no ip route-cache" command helps ensure that the packets are process switched.


INE Vol 1 multicast - Lab 11 - Anycast RP

Notes:

This lab demonstrates an application of MSDP by using AnycastRP in a single PIM-SM domain. AnycastRP is used to provide RP redundancy within a PIM-SM domain and can provide load balancing.

Anycast RP uses an additional loopback on 2 or more routers with the same /32 ip address. This IP address is now the IP for the RP and must be known to all PIM-SM routers either via a static rp, autorp, or bsr.

MSDP is used to connect the 2 or more routers with this additional loopback so they can exchange RP source information.

The same reference as the last lab provides a better description and details.


Config:
R1 and R5 as the RP using AnycastRP (similar config on R5)

hostname R1
!
no ip domain lookup
ip multicast-routing
no ipv6 cef
!
multilink bundle-name authenticated
!
interface Loopback0
ip address 150.1.1.1 255.255.255.255
!
interface Loopback1
ip address 150.1.255.255 255.255.255.255
!
interface Serial1/0
no ip address
encapsulation frame-relay
serial restart-delay 0
no frame-relay inverse-arp
!
interface Serial1/0.12 point-to-point
ip address 150.1.12.1 255.255.255.0
ip pim sparse-mode
snmp trap link-status
frame-relay interface-dlci 102
!
interface Serial1/1
ip address 150.1.13.1 255.255.255.0
ip pim sparse-mode
serial restart-delay 0
!
router ospf 1
log-adjacency-changes
network 0.0.0.0 255.255.255.255 area 0
!
ip pim rp-address 150.1.255.255
ip msdp peer 150.1.5.5 connect-source Loopback0


INE Vol 1 multicast - Lab 10 - MSDP

Notes:

This Lab deals with MSDP, Multicast Source Discovery Protocol, which allows RPs in different domains to exchange information about Multicast Sources. This is used in PIM Sparse mode. Since RPs know about the receivers in its own domains but couldn't know about sources in other domains, MSDP is used to exchange the information about sources so that multicast traffic can flow between domains. Below is a good description on MSDP.


Config:
R2 and R4 are RPs for their respective PIM Sparse multicast domains, they are also edge routers in their own domains and peer via eBGP.

hostname R2
!
no ip domain lookup
ip multicast-routing
!
interface Loopback0
ip address 150.1.2.2 255.255.255.255
!
interface Serial1/0
no ip address
encapsulation frame-relay
serial restart-delay 0
no frame-relay inverse-arp
!
interface Serial1/0.21 point-to-point
ip address 150.1.12.2 255.255.255.0
ip pim sparse-mode
snmp trap link-status
frame-relay interface-dlci 201
!
interface FastEthernet2/0
ip address 150.1.24.2 255.255.255.0
duplex auto
speed auto
!
router ospf 1
log-adjacency-changes
network 150.1.2.2 0.0.0.0 area 0
network 150.1.12.2 0.0.0.0 area 0
default-information originate always
!
router bgp 1
no synchronization
bgp log-neighbor-changes
redistribute ospf 1
neighbor 150.1.24.4 remote-as 2
no auto-summary
!
ip pim rp-address 150.1.24.2
ip msdp peer 150.1.24.4 remote-as 2

R4
hostname R4
!
no ip domain lookup
ip multicast-routing
!
interface Loopback0
ip address 150.1.4.4 255.255.255.255
!
interface Serial1/0
no ip address
encapsulation frame-relay
serial restart-delay 0
no frame-relay inverse-arp
!
interface Serial1/0.45 point-to-point
ip address 150.1.45.4 255.255.255.0
ip pim sparse-mode
snmp trap link-status
frame-relay interface-dlci 405
!
interface FastEthernet2/0
ip address 150.1.24.4 255.255.255.0
duplex auto
speed auto
!
router ospf 1
log-adjacency-changes
network 150.1.4.4 0.0.0.0 area 0
network 150.1.45.4 0.0.0.0 area 0
default-information originate always
!
router bgp 2
no synchronization
bgp log-neighbor-changes
redistribute ospf 1
neighbor 150.1.24.2 remote-as 1
no auto-summary
!
ip pim rp-address 150.1.24.4
ip msdp peer 150.1.24.2

Verification:
R6 - router closest to the receiver

R6#sh 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 - Candidate for MSDP Advertisement,
U - URD, I - Received Source Specific Host Report,
Z - Multicast Tunnel, z - MDT-data group sender,
Y - Joined MDT-data group, y - Sending to MDT-data group,
V - RD & Vector, v - Vector
Outgoing interface flags: H - Hardware switched, A - Assert winner
Timers: Uptime/Expires
Interface state: Interface, Next-Hop or VCD, State/Mode

(*, 224.1.1.1), 00:00:20/stopped, RP 150.1.24.4, flags: SJC
Incoming interface: FastEthernet1/0, RPF nbr 150.1.56.5
Outgoing interface list:
FastEthernet1/1, Forward/Sparse, 00:00:20/00:02:39

(10.1.37.7, 224.1.1.1), 00:00:19/00:02:41, flags: JT
Incoming interface: FastEthernet1/0, RPF nbr 150.1.56.5
Outgoing interface list:
FastEthernet1/1, Forward/Sparse, 00:00:19/00:02:40

(*, 224.0.1.40), 00:00:20/00:02:39, RP 150.1.24.4, flags: SJPCL
Incoming interface: FastEthernet1/0, RPF nbr 150.1.56.5
Outgoing interface list: Null

R6#

Saturday, August 21, 2010

INE Vol 1 multicast - Lab 9 - Bootstrap Router

Notes:

Similar to autoRP, BSR has a similar concept to autoRP and Mapping Agent. The "autoRP" equivalent in BSR is "ip pim rp-candidate " and the equivalent to the Mapping Agent is "ip pim bsr-candidate "

Config:
R1 - RP Candidate

interface Loopback0
ip address 150.1.1.1 255.255.255.255
ip pim sparse-mode
!
ip pim rp-candidate Loopback0

R5 - BSR

R5#sh run int l 0
Building configuration...

Current configuration : 85 bytes
!
interface Loopback0
ip address 150.1.5.5 255.255.255.255
ip pim sparse-mode
end

R5#sh run | i bsr
ip pim bsr-candidate Loopback0 0
R5#

INE Vol 1 multicast - Lab 8 - AutoRP and Default RP Placement

Notes:

This lab uses both autoRP and static RP while in Sparse mode. When both are configured, autoRP takes precedence and if for whatever reason the RP info is lost, it falls to the statically configured RP.

You can also limit the groups that a particular RP will be the RP for.

Config:
R2 - the autoRP candidate
!
ip pim rp-address 150.1.2.2 1
ip pim send-rp-announce Loopback0 scope 16
ip pim send-rp-discovery Loopback0 scope 16
!
logging alarm informational
access-list 1 permit 224.0.1.39
access-list 1 permit 224.0.1.40
!

R1-R6 (minus R4), the other PIM routers
!
ip pim rp-address 150.1.2.2 1
!
logging alarm informational
access-list 1 permit 224.0.1.39
access-list 1 permit 224.0.1.40

Verification:
R1#sh ip pim rp mapping
PIM Group-to-RP Mappings

Group(s) 224.0.0.0/4
RP 150.1.2.2 (?), v2v1
Info source: 150.1.2.2 (?), elected via Auto-RP
Uptime: 00:13:45, expires: 00:02:10
Acl: 1, Static
RP: 150.1.2.2 (?)
R1#

Removed autoRP from R2
R1#sh ip pim rp mapping
PIM Group-to-RP Mappings

Acl: 1, Static
RP: 150.1.2.2 (?)
R1#
R1#

INE Vol 1 multicast - Lab 7 - PIM NBMA Mode

Notes:

In this lab, R1 has a frame-relay multipoint interface via the physical serial interface which is to test the use of ip pim nbma mode.


[excerpt]
This PIM feature allows the router to only send packets to those neighbors that want to receive them. A router in PIM NBMA mode treats each remote PIM neighbor as if it were connected to the router through a point-to-point link.

Configs:
R1 - NBMA mode router

R1#sh run
Building configuration...

hostname R1
!
logging message-counter syslog
!
no ip domain lookup
ip multicast-routing
no ipv6 cef
!
interface Loopback0
ip address 150.1.1.1 255.255.255.255
ip pim sparse-mode
!
interface Serial1/0
ip address 150.1.125.1 255.255.255.0
ip pim nbma-mode
ip pim sparse-mode
encapsulation frame-relay
ip ospf network point-to-multipoint
serial restart-delay 0
frame-relay map ip 150.1.125.2 102 broadcast
frame-relay map ip 150.1.125.5 105 broadcast
no frame-relay inverse-arp
!
interface Serial1/1
ip address 150.1.13.1 255.255.255.0
ip pim sparse-mode
serial restart-delay 0
!
router ospf 1
log-adjacency-changes
network 0.0.0.0 255.255.255.255 area 0
!
ip pim rp-address 150.1.1.1
ip pim autorp listener

INE Vol 1 multicast - Lab 6 - AutoRP Listener

Notes:

Autorp listener is used in Sparse mode to ensure that the RP can talk to the Mapping Agent 224.0.1.39 and that the Mapping Agent can talk to the rest of the routers 224.0.1.40, which is accomplished by allowing these 2 groups to speak in Dense mode.

The Lab asks that we do not allow Dense mode fallback however since this is strictly Sparse mode, there is no possibility of this falling back to Dense mode. "no ip pim dm-fallback" should be used in Sparse-Dense mode, to stop the routers from speaking in Dense Mode if RP info is lost, since RPs are not used in Dense mode.

Configs:
No configs necessary as the only difference between Sparse mode and Sparse-Dense mode is "ip pim autorp listener"

Good Ref

*** INE Vol 1 Multicast note. No ip mroute-cache and autorp listener.

Wanted to put a little marker to remember that on the router closest to the Receiver, you need to disable ip mroute-cache.

#no ip mroute-cache

on the interface pointing to the receiver router.

auto-rp listener - to be used in Sparse mode only - enables 224.0.1.39 and .40 the RP candidate and Mapping Agent to use Dense mode to get the RP mappings out to the other routers.

INE Vol 1 multicast - Lab 5 - AutoRP - Multiple Candidate RP

Notes:

The objective of this lab is to use 2 separate routers R2 and R4 for the RPs for different multicast groups, 224.0.0.0/5 and 232.0.0.0/5, respectively. The task also designates only 1 Mapping Agent.

The configuration is the same as the last lab, lab 4, except for designating a group-list on the RPs.

I stumbled when creating the ACL for the group list, instead of using the wild card mask 7.255.255.255, used 31.255.255.255. I should have just done it the right way 8 bits minus 5 bits is 3 bits. 3 bits in decimal is 7.

Configs:
R2 - RP for 224.0.0.0/5
!
ip pim send-rp-announce Loopback0 scope 16 group-list 1
!
logging alarm informational
access-list 1 permit 224.0.0.0 7.255.255.255

R4 - RP for 232.0.0.0/5
ip pim send-rp-announce Loopback0 scope 16 group-list 1
!
logging alarm informational
access-list 1 permit 232.0.0.0 7.255.255.255


Verification:
R6#sh 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 - Candidate for MSDP Advertisement,
U - URD, I - Received Source Specific Host Report,
Z - Multicast Tunnel, z - MDT-data group sender,
Y - Joined MDT-data group, y - Sending to MDT-data group,
V - RD & Vector, v - Vector
Outgoing interface flags: H - Hardware switched, A - Assert winner
Timers: Uptime/Expires
Interface state: Interface, Next-Hop or VCD, State/Mode

(*, 232.1.1.1), 00:02:21/stopped, RP 150.1.4.4, flags: SJC
Incoming interface: FastEthernet1/0, RPF nbr 150.1.56.5
Outgoing interface list:
FastEthernet1/1, Forward/Sparse-Dense, 00:02:21/00:02:35

(10.1.37.7, 232.1.1.1), 00:00:27/00:02:50, flags: JT
Incoming interface: FastEthernet1/0, RPF nbr 150.1.56.5
Outgoing interface list:
FastEthernet1/1, Forward/Sparse-Dense, 00:00:27/00:02:35

(*, 224.1.1.1), 00:02:22/stopped, RP 150.1.2.2, flags: SJC
Incoming interface: FastEthernet1/0, RPF nbr 150.1.56.5
Outgoing interface list:
FastEthernet1/1, Forward/Sparse-Dense, 00:02:22/00:02:42

(10.1.37.7, 224.1.1.1), 00:00:37/00:02:55, flags: JT
Incoming interface: FastEthernet1/0, RPF nbr 150.1.56.5
Outgoing interface list:
FastEthernet1/1, Forward/Sparse-Dense, 00:00:37/00:02:42

(*, 224.0.1.39), 00:02:40/stopped, RP 0.0.0.0, flags: DC
Incoming interface: Null, RPF nbr 0.0.0.0
Outgoing interface list:
FastEthernet1/0, Forward/Sparse-Dense, 00:02:40/00:00:00

(150.1.4.4, 224.0.1.39), 00:00:37/00:02:22, flags: PTX
Incoming interface: FastEthernet1/0, RPF nbr 150.1.56.5
Outgoing interface list: Null

(150.1.2.2, 224.0.1.39), 00:00:39/00:02:20, flags: PTX
Incoming interface: FastEthernet1/0, RPF nbr 150.1.56.5
Outgoing interface list: Null

(*, 224.0.1.40), 00:02:47/stopped, RP 0.0.0.0, flags: DCL
Incoming interface: Null, RPF nbr 0.0.0.0
Outgoing interface list:
FastEthernet1/0, Forward/Sparse-Dense, 00:02:47/00:00:00

(150.1.5.5, 224.0.1.40), 00:00:39/00:02:22, flags: PLTX
Incoming interface: FastEthernet1/0, RPF nbr 150.1.56.5
Outgoing interface list: Null
R6#sh ip pim rp mapping
PIM Group-to-RP Mappings

Group(s) 224.0.0.0/5
RP 150.1.2.2 (?), v2v1
Info source: 150.1.5.5 (?), elected via Auto-RP
Uptime: 00:00:43, expires: 00:02:16
Group(s) 232.0.0.0/5
RP 150.1.4.4 (?), v2v1
Info source: 150.1.5.5 (?), elected via Auto-RP
Uptime: 00:00:41, expires: 00:02:17
R6#

INE Vol 1 multicast - Lab 4 - AutoRP

Notes:

Previous lab asked you to use a static rp address, in this lab, the objective is to use Auto RP.
Configure the network to support PIM Sparse Dense mode and designate which router will be the RP and which router the Mapping Agent (can be 1 and the same), usually using a loopback interface.

Configs:

R1 as the RP
R1#sh run
Building configuration...

Current configuration : 2367 bytes
!
hostname R1
no aaa new-model
ip source-route
ip cef
!
no ip domain lookup
ip multicast-routing
no ipv6 cef
!
interface Loopback0
ip address 150.1.1.1 255.255.255.255
ip pim sparse-dense-mode
!
interface Serial1/0
no ip address
encapsulation frame-relay
serial restart-delay 0
no frame-relay inverse-arp
!
interface Serial1/0.12 point-to-point
ip address 150.1.12.1 255.255.255.0
ip pim sparse-dense-mode
snmp trap link-status
frame-relay interface-dlci 102
!
interface Serial1/1
ip address 150.1.13.1 255.255.255.0
ip pim sparse-dense-mode
serial restart-delay 0
!
!
interface FastEthernet2/0
ip address 150.1.15.1 255.255.255.0
ip pim sparse-dense-mode
duplex auto
speed auto
!
router ospf 1
log-adjacency-changes
network 0.0.0.0 255.255.255.255 area 0
!
ip pim send-rp-announce Loopback0 scope 16
!

R5 - Mapping Agent

R5#sh run
Building configuration...

Current configuration : 2331 bytes
!
upgrade fpd auto
version 12.4

hostname R5

ip source-route
ip cef
!
no ip domain lookup
ip multicast-routing
no ipv6 cef
!
multilink bundle-name authenticated
!
interface Loopback0
ip address 150.1.5.5 255.255.255.255
ip pim sparse-dense-mode
!
interface Serial1/0
no ip address
encapsulation frame-relay
serial restart-delay 0
no frame-relay inverse-arp
!
interface Serial1/0.54 point-to-point
ip address 150.1.45.5 255.255.255.0
ip pim sparse-dense-mode
snmp trap link-status
frame-relay interface-dlci 504
!
interface FastEthernet2/0
ip address 150.1.56.5 255.255.255.0
ip pim sparse-dense-mode
duplex auto
speed auto
!
interface FastEthernet2/1
ip address 150.1.15.5 255.255.255.0
ip pim sparse-dense-mode
duplex auto
speed auto
!
router ospf 1
log-adjacency-changes
network 0.0.0.0 255.255.255.255 area 0
!
ip pim send-rp-discovery Loopback0 scope 16

INE Vol 1 multicast - Lab 3 - Multicast RPF Failure

Notes:

This lab tests your understanding regarding uRPF for multicast. R1 and R5 have a high speed link, ie. FastEthernet connecting them, they also have another path through frame-relay and through other routers making it a less preferred path, however, pim isn't configured across the high speed link. This is where multicast gets "broken". Because data traffic will flow through the high speed link and will also carry multicast traffic, you either need to enable PIM on the high speed link OR use static mroutes to point through the less preferred path.

Config:

R1 - R5 have a high speed connection, FastE, with no PIM configured - they also have a low speed connection with PIM configured.

R5#sh run
Building configuration...

Current configuration : 2247 bytes
!

hostname R5
!
ip cef
!
no ip domain lookup
ip multicast-routing
no ipv6 cef
!
multilink bundle-name authenticated
!
interface Loopback0
ip address 150.1.5.5 255.255.255.255
!
interface Serial1/0
no ip address
encapsulation frame-relay
serial restart-delay 0
no frame-relay inverse-arp
!
interface Serial1/0.54 point-to-point
ip address 150.1.45.5 255.255.255.0
ip pim dense-mode
snmp trap link-status
frame-relay interface-dlci 504
!
interface FastEthernet2/0
ip address 150.1.56.5 255.255.255.0
ip pim dense-mode
duplex auto
speed auto
!
interface FastEthernet2/1
ip address 150.1.15.5 255.255.255.0
duplex auto
speed auto
!
router ospf 1
log-adjacency-changes
network 0.0.0.0 255.255.255.255 area 0
!
ip forward-protocol nd
no ip http server
no ip http secure-server
!
!
ip mroute 10.1.37.7 255.255.255.255 Serial1/0.54

Verification:
Before applying the static mroute to R4 and R5
R5#sh 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 - Candidate for MSDP Advertisement,
U - URD, I - Received Source Specific Host Report,
Z - Multicast Tunnel, z - MDT-data group sender,
Y - Joined MDT-data group, y - Sending to MDT-data group,
V - RD & Vector, v - Vector
Outgoing interface flags: H - Hardware switched, A - Assert winner
Timers: Uptime/Expires
Interface state: Interface, Next-Hop or VCD, State/Mode

(*, 224.0.1.40), 00:00:02/00:02:57, RP 0.0.0.0, flags: DCL
Incoming interface: Null, RPF nbr 0.0.0.0
Outgoing interface list:
FastEthernet2/0, Forward/Dense, 00:00:02/00:00:00
Serial1/0.54, Forward/Dense, 00:00:02/00:00:00

R5#

After applying the static mroute to R4 and R5
R5#sh 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 - Candidate for MSDP Advertisement,
U - URD, I - Received Source Specific Host Report,
Z - Multicast Tunnel, z - MDT-data group sender,
Y - Joined MDT-data group, y - Sending to MDT-data group,
V - RD & Vector, v - Vector
Outgoing interface flags: H - Hardware switched, A - Assert winner
Timers: Uptime/Expires
Interface state: Interface, Next-Hop or VCD, State/Mode

(*, 224.1.1.1), 00:00:14/stopped, RP 0.0.0.0, flags: D
Incoming interface: Null, RPF nbr 0.0.0.0
Outgoing interface list:
FastEthernet2/0, Forward/Dense, 00:00:14/00:00:00
Serial1/0.54, Forward/Dense, 00:00:14/00:00:00

(10.1.37.7, 224.1.1.1), 00:00:14/00:02:52, flags: T
Incoming interface: Serial1/0.54, RPF nbr 150.1.45.4, Mroute
Outgoing interface list:
FastEthernet2/0, Forward/Dense, 00:00:14/00:00:00

(*, 224.0.1.40), 00:03:16/00:01:53, RP 0.0.0.0, flags: DCL
Incoming interface: Null, RPF nbr 0.0.0.0
Outgoing interface list:
FastEthernet2/0, Forward/Dense, 00:03:16/00:00:00
Serial1/0.54, Forward/Dense, 00:03:16/00:00:00

R5#

Friday, August 20, 2010

INE Vol 1 multicast - Lab 1 & 2 - Dense & Sparse mode

Notes:

Pretty straight forward. Dense uses a PUSH model and floods the mcast traffic whereas sparse uses a PULL model and receivers must join an mcast group.

Dense - you don't need an RP, Sparse - you need an RP, static or auto.