fir3net

PPS-Firenetbanner-780.5x190-30-03-17

What is Multicast Reverse Path Forwarding (RPF)?

Contents[Hide]

Introduction

Reverse path forwarding (RPF) is a technique used in modern routers for the purposes of ensuring loop-free forwarding of multicast packets in multicast routing and to help prevent IP address spoofing in unicast routing. [1]

Within this article, we will look at multicast RPF, and look into why it is needed along with how it works. 

The Problem

Before we look at how multicast RPF works, we will first look at the problem.

Let us, based on Figure 1, consider the scenario:

  1. The multicast host sender sends the multicast stream out to the multicast client (receiver)
  2. R1 sends the packet out of both of its interfaces
  3. R2 and R3 then both send the traffic out of their interfaces to R4
  4. R4 then receives two copies of the multicast packet
  5. R4 then sends on both copies to the receiver.

How Does RPF Work?

When the router receives the multicast packet, RPF will check the routing table and check which egress interface the router would use if it were to send traffic back to the multicast sender. If the interface matches the interface the multicast packet has just been received on, the packet is accepted, otherwise, it is dropped. Below shows an example. Because R4's routing table states that the multicast sender is located via gi0/1 traffic on gi0/2 is dropped.

rpf2

Figure 1 - Multicast RPF.

Reference

[1] "Reverse path forwarding - Wikipedia." https://en.wikipedia.org/wiki/Reverse_path_forwarding . Accessed 20 Feb. 2018.

Tags: multicast, PIM, RPF

About the Author

RDonato

R Donato

Rick Donato is the Founder and Chief Editor of Fir3net.com. He currently works as an SDN/NFV Solutions Architect and has a keen interest in automation and the cloud.

You can find Rick on Twitter @f3lix001