Sometime back I decided to explain IGMP internals in multiple post. I started with an introduction and then covered General Query messages. This post explains the IGMP group and group-and-source specific query messages.
IGMP querier router sends out IGMP group specific query to check if there is any host interested in the specified group.
Similarly IGMP querier sends out IGMP group and source specific query to check if there is any host interested in receiving multicast traffic for the specified group and source combination.
In both the cases, if any host is still interested, it will respond with its current-state record.
Now let us use figure - 1 to discuss these operations in more details. We will discuss Group-and-Source specific query as Group specific query is pretty much same. Router R1 and R2 both are running IGMP on their interface connected to the LAN. Router R1 is elected as Querier. Router R1 is also the DR for the Multicast Routing Protocol so R1 will create multicast forwarding state.
Now let us assume that another host PC-2 is also interested in (S,G), it sends an IGMPv3 join. Router R1 receives this join message and updates the local state information. Router R1 need not update the multicast forwarding state. Similarly router R2 also updates the local state. Please note routers usually just maintain the group, source and interface information and does not maintain which host had joined what channel.
Router R1 will lower down the source timer to LMQI (Last Member Query Interval) for this source and group combination and send out a Group-and-Source specific query. This query is sent every LMQT (Last-Member-Query-Time) seconds for robustness count times (Let us assume robustness count for LAN interfaces is 2) irrespective of whether a host respond before the next query is sent.
Router R2 will do the state calculation based on RFC 3376 but will not lower down the source timer as it is not a querier.
When Router R2 receives this query, it lowers down its own source timer to LMQI (Last Member Query Interval) for this channel (S,G).
Now PC-1 does not send any response while PC-2 starts an internal timer to send a response within Maximum-Response-Time as it still wants to receive traffic for this channel (S,G). Once the timer fires, PC-2 sends out a current state record for channel (S,G) (i.e. a message suggesting that PC-2 is still interested in receiving multicast traffic for channel (S,G)).
Similarly, Router R2 receives this current state record and update the source timer for this channel (S,G).
Please note that during all these operations, multicast data was continuously forwarded on LAN.
But how does router R1 communicates this to router R2 because as described above, as soon as Router R2 sees the Group-and-Source specific query, it will lower down its source timer.
Same suppress router-side processing flag is passed in the query message and router R2 does not lower its source timer for the channel (S,G) because this flag is set.
IGMP querier router sends out IGMP group specific query to check if there is any host interested in the specified group.
Similarly IGMP querier sends out IGMP group and source specific query to check if there is any host interested in receiving multicast traffic for the specified group and source combination.
In both the cases, if any host is still interested, it will respond with its current-state record.
Now let us use figure - 1 to discuss these operations in more details. We will discuss Group-and-Source specific query as Group specific query is pretty much same. Router R1 and R2 both are running IGMP on their interface connected to the LAN. Router R1 is elected as Querier. Router R1 is also the DR for the Multicast Routing Protocol so R1 will create multicast forwarding state.
Handling Join Message by Routers:
Let us assume that host PC-1 joins a channel (S,G), it sends an IGMPv3 join message. Router R1 receives this join message, creates local state and also creates multicast forwarding state for the channel. Router R2 also receives this join message and create local states for this channel. As explained in here, this state is kept alive until host leaves this channel.Now let us assume that another host PC-2 is also interested in (S,G), it sends an IGMPv3 join. Router R1 receives this join message and updates the local state information. Router R1 need not update the multicast forwarding state. Similarly router R2 also updates the local state. Please note routers usually just maintain the group, source and interface information and does not maintain which host had joined what channel.
Handling Leave Message by Routers:
After some time, PC-1 sends a leave message for (S,G). Both Router R1 and R2 receives this leave message. As router R1 does not know how many hosts were interested in this channel, it sends out a Group-and-Source specific query. Why Group-and-Source specific query? That is because the leave has come for a specific Group and Source.Router R1 will lower down the source timer to LMQI (Last Member Query Interval) for this source and group combination and send out a Group-and-Source specific query. This query is sent every LMQT (Last-Member-Query-Time) seconds for robustness count times (Let us assume robustness count for LAN interfaces is 2) irrespective of whether a host respond before the next query is sent.
Router R2 will do the state calculation based on RFC 3376 but will not lower down the source timer as it is not a querier.
Handling Query Message by Hosts and Routers:
Query sent by router R1 is received by hosts as well as other non-querier routers.When Router R2 receives this query, it lowers down its own source timer to LMQI (Last Member Query Interval) for this channel (S,G).
Now PC-1 does not send any response while PC-2 starts an internal timer to send a response within Maximum-Response-Time as it still wants to receive traffic for this channel (S,G). Once the timer fires, PC-2 sends out a current state record for channel (S,G) (i.e. a message suggesting that PC-2 is still interested in receiving multicast traffic for channel (S,G)).
Handling Current State Record Message by Routers:
Router R1 receives this current state record and update the source timer for this channel (S,G).Similarly, Router R2 receives this current state record and update the source timer for this channel (S,G).
Please note that during all these operations, multicast data was continuously forwarded on LAN.
Handling LMQT Timer Fires:
If you would recall, router R1 will need to resend this Group-and-Source specific query one more time. But now that Router R1 knows that PC-2 is still interested in receiving traffic for this channel (S,G), it sets the suppress router-side processing flag for this channel. So when the Group-and-Source specific query is sent out, Router R1 does not lower the source timer.But how does router R1 communicates this to router R2 because as described above, as soon as Router R2 sees the Group-and-Source specific query, it will lower down its source timer.
Same suppress router-side processing flag is passed in the query message and router R2 does not lower its source timer for the channel (S,G) because this flag is set.
Some Home Work:
Am I kidding? No. If you want to learn something new, you must always do some home work.
I have described Group-and-Source specific query and Group specific query is exactly same. Please try to find out the differences between the two type of queries and post your findings in the comment section.
Summary:
In this blog post, we looked at IGMP Group and Group-and-Source specific queries. If you have any doubts on any specific part, please leave me a comment. In next blog post, I will explain IGMP Snooping and Proxying in more detail.
I think, following is one of the differences I got by quickly searching through the RFC 3376.
ReplyDeleteGroup and Source specific queries contain Source Address field(s) and the Number of Sources (N) field specifying how many source addresses are present in the query.
Group specific queries don't contain Source Address field and the Number of Sources (N) field has zero as the value.
Yes, You are right. In Group specific query, only Group address is populated and number of sources are set to zero.
DeleteRegards,
Bharat
I have a question when PC1 wants to leave a certain group for specific source, then it will send the IGMPv3 membership report with IS_IN mode + source list empty or CH_TO_IN + specific source?
ReplyDeletePerfect Replica Watches UK, combining elegant style and cutting-edge technology, a variety of styles of Perfect Replica Yacht-Master Watches UK, the pointer walks between your exclusive taste style.
ReplyDelete