Friday, December 5, 2014

Multicast - IGMP timers

Overview

On any LAN segment a router is elected the IGMP querier which is responsible for polling IGMP hosts to see if they still wish to be joined to a group by sending IGMP membership queries to all hosts on a LAN segment. All receivers should respond with an IGMP report containing all joined groups. The IGMP Querier is elected by lowest IP address, unlike the DR which is elected by highest IP address. The IGMP timers are listed below


  • ip igmp query-interval == Interval Querier sends host-query messages
  •  [time-in-seconds] == max time receivers will wait before before responding to a igmp group membership report query. Should be less the query interval.
  • ip igmp last-member-query-interval [time-in-ms] == The interval between leave query messages that are sent when a receive sends a leave message.
  • ip igmp last-member-query-count [number] == Maximum number of leave queries sent before remove IGMP state for a given group if no response is heard.
  • ip igmp immediate-leave group-list [list] == Multicast groups which will be imediately removed from IGMP forwarding state.
  • ip igmp querier-timeout == interval to wait for host-query messages from IGMP querier before attempting re-election



Concepts tested
  • Configuring PIM SM
  • Configuring IGMP timers
  • Verification of configuration
Topology







Lab Tasks

  • Configure PIM SM on all paths between R1 and R5
  • Configure the following for the designated IGMP queirier on the 120.0.0.0/24 network segment
  • IGMP query interval should be 20 seconds
  • Time receivers should wait before sending query responses should be 5 seconds
  • Querier should wait 500 ms before sending out-of-sequence query for a maximum of 3 times
  • IGMP querier failures should be detected in 60 seconds
  • Membership leave notifications for the group range 224.0.0.0 /5 should be immediate

GNS3 configuration file, requires IOS v15 for the 7200 router: Link


Solution

R1(config)#ip multicast-routing
R1(config)#int g0/0
R1(config-if)#ip pim sparse-mode

R1(config-if)#exit

R2(config)#ip multicast-routing
R2(config)#int g0/0
R2(config-if)#ip pim sparse-mode
R2(config-if)#exit
R2(config)#
R2(config)#int g1/0
R2(config-if)#ip pim sparse-mode
R2(config-if)#exit
R2(config)#

R3(config)#ip multicast-routing
R3(config)#int g0/0
R3(config-if)#ip pim sparse-mode
R3(config-if)#exit
R3(config)#
R3(config)#int g1/0
R3(config-if)#ip pim sparse-mode
R3(config-if)#exit
R3(config)#

R4(config)#ip multicast-routing
R4(config)#int g0/0
R4(config-if)#ip pim sparse-mode
R4(config-if)#exit
R4(config)#
R4(config)#int g1/0
R4(config-if)#ip pim sparse-mode
R4(config-if)#exit
R4(config)#
R4(config)#int g2/0
R4(config-if)#ip pim sparse-mode
R4(config-if)#exit
R4(config)#
R4(config)#int loopback 0
R4(config-if)#ip pim sparse-mode
R4(config-if)#exit
R4(config)#
R4(config)#ip pim bsr-candidate loopback 0
R4(config)#ip pim rp-candidate loopback 0
R4(config)#
R4(config)#

R5(config)#ip multicast-routing
R5(config)#int g0/0
R5(config-if)#ip pim sparse-mode
R5(config-if)#exit

R5(config)#

R1#sh ip igmp interface g0/0
  Multicast designated router (DR) is 120.0.0.3
  IGMP querying router is 120.0.0.1 (this system)

R1(config)#ip access-list standard LEAVE_GROUP
R1(config-std-nacl)#permit 224.0.0.0 7.255.255.255
R1(config-std-nacl)#
R1(config-std-nacl)#Interface g0/0
R1(config-if)#ip igmp query-interval 20
R1(config-if)#ip igmp query-max-response-time 5
R1(config-if)#ip igmp querier-timeout 60
R1(config-if)#ip igmp last-member-query-interval 500
R1(config-if)#ip igmp last-member-query-count 3
R1(config-if)#ip igmp immediate-leave group-list LEAVE_GROUP

R2(config)#int g0/0
R2(config-if)#ip igmp querier-timeout 60
R2(config-if)#exit

R3(config)#int g0/0
R3(config-if)#ip igmp querier-timeout 60
R3(config-if)#exit

Verification

GigabitEthernet0/0 is up, line protocol is up
  Internet address is 120.0.0.1/24
  IGMP is enabled on interface
  Current IGMP host version is 2
  Current IGMP router version is 2
  IGMP query interval is 20 seconds
  IGMP configured query interval is 20 seconds
  IGMP querier timeout is 60 seconds
  IGMP configured querier timeout is 60 seconds
  IGMP max query response time is 5 seconds
  Last member query count is 3
  Last member query response interval is 500 ms
  Inbound IGMP access group is not set
  IGMP activity: 1 joins, 0 leaves
  Multicast routing is enabled on interface
  Multicast TTL threshold is 0
  Multicast designated router (DR) is 120.0.0.3
  IGMP querying router is 120.0.0.1 (this system)
  Multicast groups joined by this system (number of users):
      224.0.1.40(1)


R2:

R2(config)#int g0/0
R2(config-if)#ip ig
R2(config-if)#ip igmp join
R2(config-if)#ip igmp join-group 224.0.10.1
R2(config-if)#no ip igmp join-group 224.0.10.1
R2(config-if)#


R1:
*Dec  5 03:37:17.229: IGMP(0): Received Leave from 120.0.0.2 (GigabitEthernet0/0) for 224.0.10.1
*Dec  5 03:37:17.233: IGMP(0): Leave group 224.0.10.1 immediately on GigabitEthernet0/0
*Dec  5 03:37:17.237: IGMP(0): Deleting 224.0.10.1 on GigabitEthernet0/0











Thursday, December 4, 2014

Multicast - IGMP Filtering

Overview

Receivers notify upstream multicast routers their need to join a multicast group by sending igmp membership report messages to the all routers multicast group 224.0.0.2. The report contains the group address that the receive wishes to receive multicast traffic from. In some instances controlling what groups a receiver can join may be advantageous. In multicast there are two methods to control IGMP membership report joins first is the ip multicast boundary command already discussed in another lab controls IGMP and multicast traffic, and ip igmp access-group [acl] which is the topic of this lab which just controls IGMP membership report messages. You can apply this command either on a global basis or on an interface level. Additionally you can also limit the number of IGMP joins or mstates with the command ip igmp limit [#].

Concepts tested
  • Controlling IGMP membership reports
  • Configuring PIM SM
  • Controlling mstate limits
Topology







Lab Tasks
  • Configure PIM SM on all paths from R1 to R5
  • Configure R1 as the BSR and RP candidate
  • Configure R4 so that it is only allowed to join groups in the range 224.0.0.0 /5
  • Also limit the number of mstates that can be created for joins to R4's g2/0 interface to a maximum of 5
GNS3 configuration file, requires IOS v15 for the 7200 router: Link


Solution


R1(config)#ip multicast-routing
R1(config)#int g0/0
R1(config-if)#ip pim sparse-mode
R1(config-if)#exit
R1(config)#int loopback 0
R1(config-if)#ip pim sparse-mode
R1(config-if)#exit
R1(config)#ip pim bsr-candidate loopback 0
R1(config)#ip pim rp-candidate loopback 0

R2(config)#ip multicast-routing
R2(config)#int g0/0
R2(config-if)#ip pim sparse-mode
R2(config-if)#exit
R2(config)#int g1/0
R2(config-if)#ip pim sparse-mode
R2(config-if)#exit

R3(config)#ip multicast-routing
R3(config)#int g0/0
R3(config-if)#ip pim sparse-mode
R3(config-if)#exit
R3(config)#int g1/0
R3(config-if)#ip pim sparse-mode
R3(config-if)#exit

R4(config)#ip multicast-routing
R4(config)#int g0/0
R4(config-if)#ip pim sparse-mode
R4(config-if)#exit
R4(config)#int g1/0
R4(config-if)#ip pim sparse-mode
R4(config-if)#exit
R4(config)#int g2/0
R4(config-if)#ip pim sparse-mode
R4(config-if)#exit
R4(config)#ip access-list standard IGMP_GROUPS
R4(config-std-nacl)#permit 224.0.0.0 7.255.255.255
R4(config-if)#ip igmp access-group IGMP_GROUPS
R4(config-if)#ip igmp limit 5

R5(config)#ip multicast-routing
R5(config)#int g0/0
R5(config-if)#ip pim sparse-mode
R5(config-if)#exit

Verification

Have R5 attempt to join the groups 224.0.10.1 and 232.0.0.1

R4#debug ip igmp 224.0.10.1
*Dec  4 06:23:35.399: IGMP(0): Received v2 Report on GigabitEthernet2/0 from 120.0.45.5 for 224.0.10.1
*Dec  4 06:23:35.403: IGMP(0): Received Group record for group 224.0.10.1, mode 2 from 120.0.45.5 for 0 sources
*Dec  4 06:23:35.407: IGMP(0): Updating EXCLUDE group timer for 224.0.10.1
*Dec  4 06:23:35.407: IGMP(0): MRT Add/Update GigabitEthernet2/0 for (*,224.0.10.1) by 0

R4#sh ip igmp groups 224.0.10.1
IGMP Connected Group Membership
Group Address    Interface                Uptime    Expires   Last Reporter   Group Accounted
224.0.10.1       GigabitEthernet2/0       00:00:14  00:02:45  120.0.45.5      Ac


R4#debug ip igmp 232.0.10.1
*Dec  4 06:27:03.043: IGMP(0): Received v2 Report on GigabitEthernet2/0 from 120.0.45.5 for 232.0.10.1
*Dec  4 06:27:03.047: IGMP(*): Group 232.0.10.1 access denied on GigabitEthernet2/0

R4#sh ip igmp groups 232.0.10.1
IGMP Connected Group Membership
Group Address    Interface                Uptime    Expires   Last Reporter   Group Accounted
R4#

GigabitEthernet2/0 is up, line protocol is up
  Internet address is 120.0.45.4/24
  IGMP is enabled on interface
  Current IGMP host version is 2
  Current IGMP router version is 2
  IGMP query interval is 60 seconds
  IGMP configured query interval is 60 seconds
  IGMP querier timeout is 120 seconds
  IGMP configured querier timeout is 120 seconds
  IGMP max query response time is 10 seconds
  Last member query count is 2
  Last member query response interval is 1000 ms
  Inbound IGMP access group is IGMP_GROUPS
  IGMP activity: 3 joins, 1 leaves
  Interface IGMP State Limit : 2 active out of 5 max
  Multicast routing is enabled on interface
  Multicast TTL threshold is 0
  Multicast designated router (DR) is 120.0.45.5
  IGMP querying router is 120.0.45.4 (this system)
  No multicast groups joined by this system

Now join 224.0.10.2-5 on R5.

*Dec  4 06:32:46.219: %IGMP-6-IGMP_GROUP_LIMIT: IGMP limit exceeded for group (*, 224.0.10.5) on GigabitEthernet2/0 by host 120.0.45.5

R4#sh ip igmp interface g2/0
GigabitEthernet2/0 is up, line protocol is up
  Internet address is 120.0.45.4/24
  IGMP is enabled on interface
  Current IGMP host version is 2
  Current IGMP router version is 2
  IGMP query interval is 60 seconds
  IGMP configured query interval is 60 seconds
  IGMP querier timeout is 120 seconds
  IGMP configured querier timeout is 120 seconds
  IGMP max query response time is 10 seconds
  Last member query count is 2
  Last member query response interval is 1000 ms
  Inbound IGMP access group is IGMP_GROUPS
  IGMP activity: 6 joins, 1 leaves
  Interface IGMP State Limit : 5 active out of 5 max
  Multicast routing is enabled on interface
  Multicast TTL threshold is 0
  Multicast designated router (DR) is 120.0.45.5
  IGMP querying router is 120.0.45.4 (this system)
  No multicast groups joined by this system










Wednesday, December 3, 2014

Multicast - Stub multicast routing and IGMP helper

Overview

Creating a multicast hub site is often done to address bandwidth and resource limitations for a given site. A hub site does not establish PIM adjacency with upstream neighbors thereby preventing the sending and receiving of PIM messages. In order to allow downstream receivers to join multicast groups and receive multicast traffic the upstream router to the stub router uses the ip igmp helper-address [upstream-router-IP] command along with enabling PIM DM on downstream receiver interfaces. The stub router enables PIM DM on its upstream and downstream interfaces but also configures the ip pim neighbor-filter [access-list] command to prevent PIM neighbor establishment.

Concepts tested
  • Configure PIM Sparse and dense mode
  • Create multicast stub router
  • Configure ip igmp helper
Topology







Lab Tasks
  • Configure PIM SM on all paths between R1 and the source router.
  • Ensure the Reciever can join any multicast group but does not participate in PIM messaging or form any PIM neighbors
  • Verify the configuration
GNS3 configuration file, requires IOS v15 for the 7200 router: Link


Solution

R1(config)#ip multicast-routing
R1(config)#int g0/0
R1(config-if)#ip pim sparse-mode
R1(config-if)#exit
R1(config)#int g1/0
R1(config-if)#ip pim dense-mode
R1(config-if)#ip igmp helper-address 2.2.2.2
R1(config-if)#ip igmp helper-address 3.3.3.3
R1(config-if)#exit

R2(config)#ip multicast-routing
R2(config)#int g0/0
R2(config-if)#ip pim sparse-mode
R2(config-if)#exit
R2(config)#int g1/0
R2(config-if)#ip pim sparse-mode
R2(config-if)#exit
R2(config)#int loopback 0
R2(config-if)#ip pim sparse-mode
R2(config-if)#exit
R2(config)#ip pim rp-candidate loopback 0

R3(config)#ip multicast-routing
R3(config)#int g0/0
R3(config-if)#ip pim sparse-mode
R3(config-if)#exit
R3(config)#int g1/0
R3(config-if)#ip pim sparse-mode
R3(config-if)#exit
R3(config)#int loopback 0
R3(config-if)#ip pim sparse-mode
R3(config-if)#exit
R3(config)#ip pim rp-candidate loopback 0

R4(config)#ip multicast-routing
R4(config)#int g0/0
R4(config-if)#ip pim sparse-mode
R4(config-if)#exit
R4(config)#int g1/0
R4(config-if)#ip pim sparse-mode
R4(config-if)#exit
R4(config)#int loopback 0
R4(config-if)#ip pim sparse-mode
R4(config-if)#exit
R4(config)#int s3/0
R4(config-if)#ip pim sparse-mode
R4(config-if)#exit
R4(config)#ip pim bsr-candidate loopback 0

Source(config)#ip multicast-routing
Source(config)#int g0/0
Source(config-if)#ip pim sparse-mode
Source(config-if)#exit

Receiver(config)#ip multicast-routing
Receiver(config)#ip access-list standard PIM_FILTER
Receiver(config-std-nacl)#deny 120.0.10.1
Receiver(config-std-nacl)#permit any
Receiver(config-std-nacl)#exit
Receiver(config)#int g0/0
Receiver(config-if)#ip pim neighbor-filter PIM_FILTER
Receiver(config-if)#ip pim dense-mode
Receiver(config-if)#ip igmp join-group 239.1.1.1
Receiver(config-if)#exit


Verification

Source#ping 239.1.1.1 rep 1000

Type escape sequence to abort.
Sending 1000, 100-byte ICMP Echos to 239.1.1.1, timeout is 2 seconds:

Reply to request 0 from 120.0.10.254, 140 ms
Reply to request 1 from 120.0.10.254, 168 ms
Reply to request 3 from 120.0.10.254, 184 ms

Receiver#sh ip igmp groups
IGMP Connected Group Membership
Group Address    Interface                Uptime    Expires   Last Reporter   Group Accounted
239.1.1.1        GigabitEthernet0/0       00:35:21  00:02:57  120.0.10.254


R1#sh ip mroute 239.1.1.1


(*, 239.1.1.1), 00:33:37/stopped, RP 2.2.2.2, flags: SJC
  Incoming interface: GigabitEthernet0/0, RPF nbr 120.0.0.2
  Outgoing interface list:
    GigabitEthernet1/0, Forward/Dense, 00:03:37/00:00:00

(120.0.45.5, 239.1.1.1), 00:28:24/00:01:11, flags: T
  Incoming interface: GigabitEthernet0/0, RPF nbr 120.0.0.3
  Outgoing interface list:
    GigabitEthernet1/0, Forward/Dense, 00:03:37/00:00:00







Multicast - Bootstrap router with multiple RPs

Overview

BSR distributes information via PIM messages which include group ranges and the list of RP candidates or C-RP's called the RP-Set. A deterministic algorithm is used to calculate which group ranges are mapped to which RP. The results must be the same across all routers and can be summarized below.

  1. RP with the lowest priority
  2. RP with the highest Hash-value function
  3. RP with the hight IP address

The processes can be summarized as follows:


  1. A hashing algorithm is run for each multicast group address for each C-RP in the RP-set and a hash value is obtained.
  2. The C-RP with the highest calculated hash value becomes the RP for that particular multicast group.
  3. There is the possibility that the hashing algorithm will result in equal hash values for different C-RPs. In this case, the C-RP with the highest IP address will become the RP for that group. The results allow for a more predictable result assuming there are enough RP's to distribute the groups across:

                     2(32 - hash length) = # of RPs that will be used in load balancing*

Concepts tested
  • Configuring PIM sparse mode
  • Configuring PIM BSR with multiple RPs
  • Using the hash-mask-length to influence load balancing
Topology







Lab Tasks
  • Configure PIM sparse mode on all paths from the source to receiver routers
  • Using standards based features configure R2 and R3 as RPs for all groups
  • Ensure the most even distribution of group to RPs
GNS3 configuration file, requires IOS v15 for the 7200 router: Link


Solution

R1(config)#ip multicast-routing
R1(config)#int g0/0
R1(config-if)#ip pim sparse-mode

R1(config-if)#exit

R2(config)#ip multicast-routing
R2(config)#int g0/0
R2(config-if)#ip pim sparse-mode
R2(config-if)#exit
R2(config)#
R2(config)#int g1/0
R2(config-if)#ip pim sparse-mode
R2(config-if)#exit
R2(config)#int loopback 0
R2(config-if)#ip pim sparse-mode
R2(config-if)#exit


R3(config)#ip multicast-routing
R3(config)#int g0/0
R3(config-if)#ip pim sparse-mode
R3(config-if)#exit
R3(config)#
R3(config)#int g1/0
R3(config-if)#ip pim sparse-mode
R3(config-if)#exit
R3(config)#int loopback 0
R3(config-if)#ip pim sparse-mode
R3(config-if)#exit

R4(config)#ip multicast-routing
R4(config)#int g0/0
R4(config-if)#ip pim sparse-mode
R4(config-if)#exit
R4(config)#
R4(config)#int g1/0
R4(config-if)#ip pim sparse-mode
R4(config-if)#exit
R4(config)#
R4(config)#int g2/0
R4(config-if)#ip pim sparse-mode
R4(config-if)#exit
R4(config)#int loopback 0
R4(config-if)#ip pim sparse-mode
R4(config-if)#exit
R4(config)#ip pim bsr-candidate loopback 0 31

R5(config)#ip multicast-routing
R5(config)#int g0/0
R5(config-if)#ip pim sparse-mode
R5(config-if)#exit


Verification

To verify have R1 join groups 239.1.1.1 and 239.1.1.2

R1#sh ip pim rp-hash 239.1.1.1
  RP 3.3.3.3 (?), v2
    Info source: 4.4.4.4 (?), via bootstrap, priority 0, holdtime 150
         Uptime: 07:10:45, expires: 00:01:30
  PIMv2 Hash Value (mask 255.255.255.254)
    RP 2.2.2.2, via bootstrap, priority 0, hash value 825161304
    RP 3.3.3.3, via bootstrap, priority 0, hash value 1840069355

R1#sh ip pim rp-hash 239.1.1.2
  RP 2.2.2.2 (?), v2
    Info source: 4.4.4.4 (?), via bootstrap, priority 0, holdtime 150
         Uptime: 07:10:48, expires: 00:01:26
  PIMv2 Hash Value (mask 255.255.255.254)
    RP 2.2.2.2, via bootstrap, priority 0, hash value 1339374966
    RP 3.3.3.3, via bootstrap, priority 0, hash value 902454281












Tuesday, December 2, 2014

Multicast - Bootstrap Router

Overview

Bootstrap router or BSR is a standards based method to elect and exchange PIM messages similar to Cisco's AutoRP feature. BSR does not use PIM dense mode unlike AutoRP and instead uses PIM messages on a hop by hop basis. Each router performs an RPF check against the PIM messages and if they pass the rpf check then the messages are flooded out all PIM enabled interfaces.

Concepts tested
  • Configuring PIM sparse mode
  • Configuring basic BSR with a single BSR RP
  • Verify configuration
Topology







Lab Tasks
  • Configure PIM sparse mode on all interfaces along the path between the receiver and source hosts
  • Configure R4 as both the RP candidate and BSR router for the group 232.0.0.0 /5
  •  Verify your configuration
GNS3 configuration file, requires IOS v15 for the 7200 router: Link


Solution

R1(config)#ip multicast-routing
R1(config)#int g0/0
R1(config-if)#ip pim sparse-mode
R1(config-if)#exit

R2(config)#ip multicast-routing
R2(config)#int g0/0
R2(config-if)#ip pim sparse-mode
R2(config-if)#exit
R2(config)#int g1/0
R2(config-if)#ip pim sparse-mode
R2(config-if)#exit

R3(config)#ip multicast-routing
R3(config)#int g0/0
R3(config-if)#ip pim sparse-mode
R3(config-if)#exit
R3(config)#int g1/0
R3(config-if)#ip pim sparse-mode
R3(config-if)#exit

R4(config)#ip multicast-routing
R4(config)#int g0/0
R4(config-if)#ip pim sparse-mode
R4(config-if)#exit
R4(config)#int g1/0
R4(config-if)#ip pim sparse-mode
R4(config-if)#exit
R4(config)#int g2/0
R4(config-if)#ip pim sparse-mode
R4(config-if)#exit

R4(config)#ip access-list standard BSR_GROUPS
R4(config-std-nacl)#permit 232.0.10.0 0.0.7.255
R4(config-std-nacl)#exit
R4(config)#int loopback 0
R4(config-if)#ip add 4.4.4.4 255.255.255.0
R4(config-if)#ip pim sparse-mode
R4(config-if)#exit
R4(config)#ip pim bsr-candidate loopback 0
R4(config)#ip pim rp-candidate loopback 0 group-list BSR_GROUPS priority 0


R5(config)#ip multicast-routing
R5(config)#int g0/0
R5(config-if)#ip pim sparse-mode
R5(config-if)#exit

Verification

R4#debug ip pim bsr

*Dec  2 06:10:53.647: PIM-BSR(0): RP-set for 232.0.0.0/5
*Dec  2 06:10:53.647: PIM-BSR(0):   RP(1) 4.4.4.4, holdtime 150 sec priority 0
*Dec  2 06:10:53.655: PIM-BSR(0): Bootstrap message for 4.4.4.4 originated
*Dec  2 06:11:45.787: PIM-BSR(0): Build v2 Candidate-RP advertisement for 4.4.4.4 priority 0, holdtime 150
*Dec  2 06:11:45.791: PIM-BSR(0):  Candidate RP's group prefix 232.0.0.0/5
*Dec  2 06:11:45.795: PIM-BSR(0): Send Candidate RP Advertisement to 4.4.4.4
*Dec  2 06:11:45.807: PIM-BSR(0):  RP 4.4.4.4, 1 Group Prefixes, Priority 0, Holdtime 150


R3#sh ip pim bsr-router
PIMv2 Bootstrap information
  BSR address: 4.4.4.4 (?)
  Uptime:      00:19:15, BSR Priority: 0, Hash mask length: 0
  Expires:     00:02:03
R3#sh ip pim rp map
PIM Group-to-RP Mappings

Group(s) 232.0.0.0/5
  RP 4.4.4.4 (?), v2
    Info source: 4.4.4.4 (?), via bootstrap, priority 0, holdtime 150
         Uptime: 00:07:17, expires: 00:02:18









Monday, December 1, 2014

Multicast - Multicast boundary

Overview

Controlling the border for a multicast domain can be done with two basic mechanisms. Fist using the TTL option with AutoRP but some topologies make this difficult to implement effectively. Another option is the ip multicast boundary acl filter-autorp command. This feature can filter both the data and control planes based on the applied acl. Standard access lists specify the group to filter and extended access lists define source and group.

Concepts tested
  • IP PIM sparse mode configuration
  • Controlling the edge of a multicast domain
  • Using ACL's to define filtering criteria
Topology







Lab Tasks
  • Configure PIM sparse mode on all paths between the source and receiver hosts
  • Use the Cisco proprietary method configure R2 as an RP for the group 237.0.0.0 /23
  • Using the Cisco proprietary method configure R3 as the RP for the group 237.0.2.0 /23
  • Configure R4 as a mapping agent
  • R2 and R3 should provide backup for each other should one fail
  • Prevent the Receiver from receiving traffic from the 237.0.2.0 /23 group
  • Filter 237.0.2.0/23 from AutoRP messages
GNS3 configuration file, requires IOS v15 for the 7200 router: Link


Solution

Receiver(config)#ip multicast-routing
Receiver(config)#int g0/0
Receiver(config-if)#ip pim sparse-mode
Receiver(config-if)#exit
Receiver(config)#ip pim autorp listener

R1(config)#ip multicast-routing
R1(config)#int g0/0
R1(config-if)#ip pim sparse-mode
R1(config-if)#exit
R1(config)#int g1/0
R1(config-if)#ip pim sparse-mode
R1(config-if)#exit
R1(config)#ip pim autorp listener


R1(config)#access-list 1 deny 237.0.2.0 0.0.1.255
R1(config)#access-list 1 permit any any
R1(config-if)#ip multicast boundary 1 filter-autorp


R2(config)#ip multicast-routing
R2(config)#int g0/0
R2(config-if)#ip pim sparse-mode
R2(config-if)#exit
R2(config)#int s2/0
R2(config-if)#ip pim sparse-mode
R2(config-if)#exit
R2(config)#int loopback 0
R2(config-if)#ip pim sparse-mode
R2(config-if)#exit

R2(config)#ip access-list standard R2_GROUPS
R2(config-std-nacl)#permit 237.0.0.0 0.0.1.255
R2(config-std-nacl)#permit 237.0.0.0 0.0.3.255


R2(config)#ip pim autorp listener
R2(config)#ip pim send-rp-announce loopback 0 scope 10 group-list R2_GROUPS


R3(config)#ip multicast-routing
R3(config)#int g0/0
R3(config-if)#ip pim sparse-mode
R3(config-if)#exit
R3(config)#int g1/0
R3(config-if)#ip pim sparse-mode
R3(config-if)#exit
R3(config)#int loopback 0
R3(config-if)#ip pim sparse-mode
R3(config-if)#exit
R3(config)#ip pim autorp listener
R3(config)#ip access-list standard R3_GROUPS
R3(config-std-nacl)#permit 237.0.2.0 0.0.1.255
R3(config-std-nacl)#permit 237.0.0.0 0.0.3.255
R3(config)#ip pim send-rp-announce loopback 0 scope 10 group-list R3_GROUPS

R4(config)#ip multicast-routing
R4(config)#int g0/0
R4(config-if)#ip pim sparse-mode
R4(config-if)#exit
R4(config)#int g1/0
R4(config-if)#ip pim sparse-mode
R4(config-if)#exit
R4(config)#int loopback 0
R4(config-if)#ip pim sparse-mode
R4(config-if)#exit
R4(config)#ip pim autorp listener
R4(config)#ip pim send-rp-discovery scope 10

Source(config)#ip multicast-routing
Source(config)#int g0/0
Source(config-if)#ip pim sparse-mode

Verification

R1:

%AUTORP-4-OVERLAP: AutoRP Announcement packet, group 237.0.0.0 with mask 255.255.252.0 removed because of multicast boundary for 237.0.2.0 with mask 255.255.254.0

R4:

R4#sh ip pim rp mapping
PIM Group-to-RP Mappings
This system is an RP-mapping agent

Group(s) 237.0.0.0/23
  RP 2.2.2.2 (?), v2v1
    Info source: 2.2.2.2 (?), elected via Auto-RP
         Uptime: 02:44:04, expires: 00:02:51
Group(s) 237.0.0.0/22
  RP 3.3.3.3 (?), v2v1
    Info source: 3.3.3.3 (?), elected via Auto-RP
         Uptime: 03:31:26, expires: 00:02:32
  RP 2.2.2.2 (?), v2v1
    Info source: 2.2.2.2 (?), via Auto-RP
         Uptime: 03:32:04, expires: 00:02:51
Group(s) 237.0.2.0/23
  RP 3.3.3.3 (?), v2v1
    Info source: 3.3.3.3 (?), elected via Auto-RP
         Uptime: 02:42:26, expires: 00:02:28

Receiver:

Receiver#sh ip pim rp map
PIM Group-to-RP Mappings

Group(s) 237.0.0.0/23
  RP 2.2.2.2 (?), v2v1
    Info source: 120.0.34.4 (?), elected via Auto-RP
         Uptime: 02:28:20, expires: 00:02:37

Receiver#sh ip pim rp-hash 237.0.2.0
No RP available for this group


R3#debub ip pim autorp

*Dec  1 16:22:54.422: Auto-RP(0): Build RP-Announce for 3.3.3.3, PIMv2/v1, ttl 10, ht 181
*Dec  1 16:22:54.422: Auto-RP(0): Build announce entry for (237.0.2.0/23)
*Dec  1 16:22:54.422: Auto-RP(0): Build announce entry for (237.0.0.0/22)

R2#debug ip pim autorp
*Dec  1 16:22:16.894: Auto-RP(0): Build RP-Announce for 2.2.2.2, PIMv2/v1, ttl 10, ht 181
*Dec  1 16:22:16.898: Auto-RP(0): Build announce entry for (237.0.0.0/23)
*Dec  1 16:22:16.898: Auto-RP(0): Build announce entry for (237.0.0.0/22)



Multicast - AutoRP RPListener

Overview

The Cisco AutoRP feature relies on PIM dense mode to communicate between mapping agent and candidate RPs. This can create problems if dense mode is enabled on large networks. The command ip pim autorp-listener attempts to address this by allowing dense mode only for the 224.0.1.39 and 224.0.1.40 groups which allow sparse-mode hosts to communicate with their RPs and limits dense mode across the multicast domain.

Concepts tested
  • AutoRP with PIM sparse mode only
  • Limiting dense mode in an AutoRP multicast network
  • Configuring AutoRP

Topology
















Lab Tasks
  • Configure PIM Sparse mode on all paths between the source and receiver routers
  • Using Cisco's proprietary RP feature configure R2 and R3 as RPs
  • Configure R4 as a RP mapping agent
  • Ensure that the RPs and the mapping agent can communicate PIM AutoRP messages without enabling dense mode explicitly on the routers
  • Verify your configuration by making sure all hosts can hear AutoRP messages.

GNS3 configuration file, requires IOS v15 for the 7200 router: Link


Solution

Receiver:

Receiver(config)#ip multicast-routing
Receiver(config)#int g0/0

Receiver(config-if)#ip pim sparse-mode
Receiver(config)#int g0/0
Receiver(config-if)#exit
Receiver(config)#ip pim autorp listener


R2:

R2(config)#ip multicast-routing
R2(config)#int g0/0
R2(config-if)#ip pim sparse-mode
R2(config-if)#exit
R2(config)#int s2/0
R2(config-if)#ip pim sparse-mode
R2(config-if)#exit
R2(config)#int loopback 0
R2(config-if)#ip pim sparse-mode
R2(config-if)#exit
R2(config)#ip pim send-rp-announce loopback 0 scope 10
R2(config)#ip pim autorp listener

R3:

R3(config)#ip multicast-routing
R3(config)#int g0/0
R3(config-if)#ip pim sparse-mode
R3(config-if)#exit
R3(config)#int g1/0
R3(config-if)#ip pim sparse-mode
R3(config-if)#exit
R3(config)#int loopback 0
R3(config-if)#ip pim sparse-mode
R3(config-if)#exit
R3(config)#ip pim send-rp-announce loopback 0 scope 10
R3(config)#ip pim autorp listener

R4:

R4(config)#ip multicast-routing
R4(config)#int g0/0
R4(config-if)#ip pim sparse-mode
R4(config-if)#exit
R4(config)#int g1/0
R4(config-if)#ip pim sparse-mode
R4(config-if)#exit
R4(config)#int g2/0
R4(config-if)#ip pim sparse-mode
R4(config-if)#exit
R4(config)#int s3/0
R4(config-if)#ip pim sparse-mode
R4(config-if)#exit
R4(config)#int loopback 0
R4(config-if)#ip pim sparse-mode
R4(config-if)#exit
R4(config)#ip pim send-rp-discovery loopback 0 scopre 10
R4(config)#ip pim send-rp-discovery loopback 0 scope 10
R4(config)#ip pim autorp listener

Souce:

Source(config)#ip multicast-routing
Source(config)#int g0/0
Source(config-if)#ip pim sparse-mode
Source(config-if)#exit


Verification

R4#sh ip pim rp map
PIM Group-to-RP Mappings
This system is an RP-mapping agent (Loopback0)

Group(s) 224.0.0.0/4
  RP 3.3.3.3 (?), v2v1
    Info source: 3.3.3.3 (?), elected via Auto-RP
         Uptime: 00:04:47, expires: 00:02:11
  RP 2.2.2.2 (?), v2v1
    Info source: 2.2.2.2 (?), via Auto-RP
         Uptime: 00:04:41, expires: 00:02:16

R4#sh ip pim interface

Address          Interface                Ver/   Nbr    Query  DR     DR
                                          Mode   Count  Intvl  Prior
0.0.0.0          GigabitEthernet0/0       v2/S   0      30     1      0.0.0.0
120.0.34.4       GigabitEthernet1/0       v2/S   1      30     1      120.0.34.4
120.0.24.4       Serial3/0                v2/S   1      30     1      0.0.0.0
4.4.4.4          Loopback0                v2/S   0      30     1      4.4.4.4
120.0.45.4       GigabitEthernet2/0       v2/S   1      30     1      120.0.45.5

Source#sh ip pim rp mapping
PIM Group-to-RP Mappings

Group(s) 224.0.0.0/4
  RP 3.3.3.3 (?), v2v1
    Info source: 4.4.4.4 (?), elected via Auto-RP
         Uptime: 00:00:14, expires: 00:02:44

Source#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, E - Extranet,
       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.39), 00:00:53/stopped, RP 0.0.0.0, flags: DC
  Incoming interface: Null, RPF nbr 0.0.0.0
  Outgoing interface list:
    GigabitEthernet0/0, Forward/Sparse, 00:00:53/00:00:00

(2.2.2.2, 224.0.1.39), 00:00:20/00:02:39, flags: PTX
  Incoming interface: GigabitEthernet0/0, RPF nbr 120.0.45.4
  Outgoing interface list: Null

(3.3.3.3, 224.0.1.39), 00:00:26/00:02:33, flags: PTX
  Incoming interface: GigabitEthernet0/0, RPF nbr 120.0.45.4
  Outgoing interface list: Null

(*, 224.0.1.40), 00:03:06/stopped, RP 0.0.0.0, flags: DCL
  Incoming interface: Null, RPF nbr 0.0.0.0
  Outgoing interface list:
    GigabitEthernet0/0, Forward/Sparse, 00:03:06/00:00:00

(4.4.4.4, 224.0.1.40), 00:00:27/00:02:32, flags: PLTX
  Incoming interface: GigabitEthernet0/0, RPF nbr 120.0.45.4
  Outgoing interface list: Null