frr icon indicating copy to clipboard operation
frr copied to clipboard

Configuring ip pim rp with prefix list is not applied correctly

Open plsaranya opened this issue 4 years ago • 4 comments


Describe the bug Configuring RP address with prefix list applies the rp-address to all the multicast group address. The rp-address specified to be applied to a specific prefix-list is applied to default multicast range as well 224.0.0.0/4. This is not expected. If an RP is already configured for 224.0.0.0/4, configuring an rp-address with a prefix-list overwrites 224.0.0.0/4 rp.

[y ] Did you check if this is a duplicate issue? [ y] Did you test it on the latest FRRouting/frr master branch?

To Reproduce In VTYSH shell, Configure RP address with a prefix-list. Initiate joins for multicast ranges matching prefix list. Also initiate joins for multicast address not matching the prefix list

For example:

Config Logs

Expected behavior The RP address should be selected only for the Group range matching the prefix-list.

Screenshots

Logs

Versions

  • OS Version: 5.10.0.9

  • Kernel: 5.10

  • FRR Version: 8.0.1

Additional context

plsaranya avatar Jan 19 '22 16:01 plsaranya

This still an issue in 8.2.2. I created the attached containerlab lab showing the bug:

wget https://github.com/FRRouting/frr/files/8605412/frr-pfx.tar.gz
tar -xzvf frr-pfx.tar.gz
cd frr-pfx
containerlab deploy --topo frr-pfx.yaml
./postdeploy.sh
docker exec -it clab-frr-pfx-downstream vtysh -c "show ip pim upstream"
vtysh

The receiver container will be subscribing to 239.100.5.1, which is not covered by any of the prefix lists configured in the downstream container. However, the downstream container will still issue a PIM Join/Prune joining the *, G, listing the last configured RP on the host as the RP:

18:28:38.104851 aa:c1:ab:a3:a6:63 > 01:00:5e:00:00:0d, ethertype IPv4 (0x0800), length 68: (tos 0xc0, ttl 1, id 9, offset 0, flags [none], proto PIM (103), length 54)
    172.16.100.0 > 224.0.0.13: PIMv2, length 34
        Join / Prune, cksum 0xc3bb (correct), upstream-neighbor: 172.16.100.1
          1 group(s), holdtime: 3m30s
            group #1: 239.100.5.1, joined sources: 1, pruned sources: 0
              joined source #1: 10.0.255.183(SWR)

It would also be useful to add a show command that displays the actual RP address selected for a given group for the purposes of RPF checks and joins. Currently neither debug logs nor show command exposes this information -- you have to look at the join/prune message on the wire to view the selected RP, and if FRR claims a *, G fails the RPF check, there is no way to determine what RP was selected.

frr-pfx.tar.gz

bewing avatar May 02 '22 18:05 bewing

This issue will be addressed as part of https://github.com/FRRouting/frr/pull/11277

routingrocks avatar May 25 '22 22:05 routingrocks

Fix merged with master, this issue can be closed https://github.com/FRRouting/frr/pull/11277

routingrocks avatar May 26 '22 22:05 routingrocks

Confirmed I no longer see the behavior from my test case in rev 0f4d109b518a81e1b2bdec13ab580f34eaf5b0e0

bewing avatar May 26 '22 23:05 bewing