SR7000dl Adv C12 Multicast Nov2006
SR7000dl Adv C12 Multicast Nov2006
SR7000dl Adv C12 Multicast Nov2006
Contents
Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12-3
Multicast Applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12-3
IP Multicasting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12-4
Multicast Addresses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12-5
Host Groups . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12-5
IGMP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12-6
IGMP Queries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12-7
IGMP Reports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12-7
Multicast Routing Protocols . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12-8
IGMP Proxy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12-9
Configuring IGMP Proxy for Multicast Stub Routing Support . . . . . . . . 12-11
Enabling IP Multicast Routing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12-12
Setting the Multicast Helper Address . . . . . . . . . . . . . . . . . . . . . . . . . 12-12
Determining Which Interfaces are Downstream and Which
Upstream . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12-13
Configuring a Downstream Interface . . . . . . . . . . . . . . . . . . . . . . . . . 12-14
Configuring an IGMP Multicast Agent . . . . . . . . . . . . . . . . . . . . . 12-14
Enabling IGMP Proxy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12-15
Enabling Multicast Forwarding . . . . . . . . . . . . . . . . . . . . . . . . . . 12-15
Configuring an Upstream Interface . . . . . . . . . . . . . . . . . . . . . . . . . . 12-16
Configuring Multicast Routing through a Fixed Interface . . . . . . . . 12-16
Tunneling Multicast Traffic through the Internet . . . . . . . . . . . . . . . 12-17
Adding the Router Stack to a Multicast Group . . . . . . . . . . . . . . . . . 12-18
Altering IGMP Query Intervals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12-19
12-1
Configuring Multicast Support for a Stub Network
Contents
12-2
Configuring Multicast Support for a Stub Network
Overview
Overview
This overview describes IP multicasting and Internet Group Management
Protocol (IGMP). The overview then explains how the ProCurve Secure
Router can support multicasting by running either Protocol Independent
Multicast-Sparse Mode (PIM-SM), which is a multicast routing protocol, or
IGMP proxy.
This chapter focuses on configuring IGMP proxy for multicast stub routing. A
router uses multicast stub routing to forward multicast traffic received from
a remote source to directly connected hosts.
For information on configuring PIM-SM, you should see Chapter 11: Config-
uring Multicast Support with PIM-SM. You can refer to this chapter for
information on IGMP, which is automatically enabled when you configure
either IGMP proxy or PIM-SM, and for information on configuring IGMP
parameters.
Multicast Applications
Many emerging applications rely on delivering the same information to many
hosts. LAN TV, video conferencing, collaborative computing, and desktop
conferencing all involve transmitting a great deal of information from a source,
or many sources, to many hosts. Email systems can more efficiently deliver
mail to multiple servers simultaneously rather than one by one. Increasingly,
such technologies are turning from delivering information through multiple
point-to-point sessions to delivering it through multipoint communication.
12-3
Configuring Multicast Support for a Stub Network
Overview
IP Multicasting
LANs, which are often Ethernet networks, are usually broadcast networks:
hosts can transmit messages to every other host on the network. When a host
sends a broadcast message to all other hosts in the subnet, the destination
address in the packet’s IP header is the subnet’s broadcast address—typically,
the network address with all ones for the host bits. The host can send a
broadcast message to all subnets by sending a broadcast to 255.255.255.255.
(See Figure 12-1.)
Network 1
192.168.1.0/24
Packet destination
192.45.1.255
Switch
Router
Switch
It is not hard to imagine the challenges broadcast messages pose for packet
containment. A malfunctioning or misconfigured device can congest an entire
network. Even properly functioning devices must flood all hosts with unnec-
essary information just to send a message to the hosts that do need it.
12-4
Configuring Multicast Support for a Stub Network
Overview
Network 1
192.168.1.0/24
Packet destination
232.0.0.10
Switch
Router
Switch
Multicast Addresses
The destination address in the IP header of a multicast message is the
multicast address. Only hosts that have joined the group for this multicast
address receive the message. (See Figure 12-2.)
Host Groups
Network nodes forward multicast packets to the proper host group. The host
group for a multicast address is the set of hosts who receive messages sent to
that address. Group membership is dynamic. Hosts can join and leave a group.
They can belong to more than one group at once, and groups can contain any
number of hosts at any location in the network.
12-5
Configuring Multicast Support for a Stub Network
Overview
IGMP
IGMP helps a router to determine which host groups have members in which
networks so that the router can properly forward multicast messages. Some
multicast routing protocols (including the protocol supported on the
ProCurve Secure Router) suppress multicasts unless a router or network
specifically requests them. IGMP also enables a router to determine the groups
for which it needs to request traffic.
Figures 12-3 and 12-4 illustrate how IGMP contains packets by allowing
routers to only forward multicast messages into networks that need them.
Multicast
packet
Group 99 Switch
Multicast
packet
Router
Multicast
packet
Switch
12-6
Configuring Multicast Support for a Stub Network
Overview
Multicast
packet
Group 99 Switch
Multicast
packet
Router
Switch
IGMP Queries
On the ProCurve Secure Router, you enable an interface to act as a multicast
agent when you do one of the following:
■ configure the interface as a multicast stub downstream interface
■ enable PIM-SM on the interface
The multicast agent broadcasts IGMP queries to all hosts, asking them to
generate a report for each host group to which they belong. The multicast
agent only forwards packets destined to a certain multicast address into the
networks from which it has received a report for that address.
IGMP Reports
When a host receives an IGMP query, it replies with IGMP reports. Each report
contains the multicast address of a group to which the host belongs. Hosts
minimize IGMP reports, which might otherwise flood the network, in
two ways:
■ Instead of immediately sending a report for every group to which it
belongs, the host staggers them. It sets a random timer for when it should
send each report.
12-7
Configuring Multicast Support for a Stub Network
Overview
■ Hosts send their IGMP reports to the multicast address rather then simply
to the multicast agent. When the other hosts in the group receive this
report, they cancel the report they would otherwise send out.
In this way, the multicast agent should receive one, and only one, report for
each multicast address for which a host group exists on a stub network.
When a host joins a group, it immediately sends a report in case it is the first
host in the group. Hosts send a leave message to their multicast agent when
they leave a group.
IGMP runs in version 1 and 2. The ProCurve Secure Router supports both.
Version 2 is the default.
Multicast routes are different from unicast routes because traffic destined to
a multicast address usually corresponds with many host addresses. Therefore
a router may need to copy a multicast packet and forward it out several
interfaces. Multicast routes also change relatively often as hosts join and leave
a group. In addition, multicast traffic often runs unidirectionally from a source
to receivers rather than bi-directionally as does unicast traffic. Multicast
routes can therefore by source-specific, and a router can use a multicast
routing protocol to determine through which interface traffic destined to a
particular group will arrive.
The ProCurve Secure Router also supports IGMP proxy, which stub routers
can run in lieu of a multicast routing protocol. Like PIM-SM, IGMP proxy
allows a router to generate to receive and forward multicasts along a struc-
12-8
Configuring Multicast Support for a Stub Network
Overview
Because PIM-SM enables more functions than IGMP proxy and is often as
simple to configure, it is usually recommended that you configure your router
to use PIM-SM rather than IGMP proxy for multicast support. See Chapter 11:
Configuring Multicast Support with PIM-SM.
IGMP Proxy
IGMP proxy allows a stub router to act as a multicast host on behalf of
connected clients to a remote multicast source or to a remote router running
a multicast routing protocol. The stub router receives multicasts from the
source just as a typical host would. The stub router can then forward this
traffic out the necessary interfaces.
Only stub routers should use IGMP proxy for multicast support. A stub router
serves as a gateway to a stub network—that is, a network that originates and
terminates, but does not transit, traffic. Because the router will only receive
multicasts on one interface, the router does not need to determine where to
send joins for a particular group. It can simply forward all IGMP reports to the
default helper address. This address is the address of the multicast source or
any of device that runs a multicast routing protocol and receives traffic from
the source.
The stub router uses IGMP alone to determine outgoing interfaces for multi-
cast traffic. Because it is a stub router, it does not need to receive the PIM-SM
joins that would allow it to pass multicast traffic to other routers in a
multicast tree.
12-9
Configuring Multicast Support for a Stub Network
Overview
IGMP report
Group 99
Group 99
IGMP report
Switch Group 98, 99
Network 1 Source 10.1.1.1
Downstream
interfaces
IGMP Multicast
Router
queries Router
Upstream
interface
Switch
10.1.1.1
Network 2
IGMP report
Group 98 Group 98
Figure 12-5 illustrates how IGMP reports and multicast messages flow.
12-10
Configuring Multicast Support for a Stub Network
Configuring IGMP Proxy for Multicast Stub Routing Support
A stub router is a router in a stub network. When a WAN router, such as the
ProCurve Secure Router, has a single connection to a remote, central site, it
usually acts as a stub router: it does not receive traffic for any network except
local ones.
A central, non-stub site would provide the multicast routers and sources. The
stub router simply needs to be able to forward multicasts that arrive on the
single WAN interface to stub networks on which the appropriate host network
exists.
12-11
Configuring Multicast Support for a Stub Network
Configuring IGMP Proxy for Multicast Stub Routing Support
ProCurve(config)# ip multicast-routing
When multicast routing is enabled, the router stores a list of multicast routes.
The router creates an entry for each multicast address for which a host group
exists on a downstream network. All entries include a single incoming inter-
face, which is the upstream interface. An active entry also includes one or
more outgoing interfaces, which are the downstream interfaces through
which multicasts received on the incoming interface should be forwarded.
To the helper address, the local router sends one report and one leave message
for each active multicast group. As far as the device at the helper address is
concerned, the local router is a multicast host, and the helper device routes
the appropriate multicasts to it.
The router can only have one multicast helper address. (This is why you can
only configure IGMP proxy for multicast support if all multicasts will be
received from the same next-hop router.)
12-12
Configuring Multicast Support for a Stub Network
Configuring IGMP Proxy for Multicast Stub Routing Support
For example, to set the helper address for the router in Figure 12-6, you would
enter:
IGMP
queries
IGMP report
Helper
IGMP report address
Downstream Upstream
10.1.1.2
Group 99 interfaces interface
10.1.1.1
Figure 12-6. Identifying Upstream and Downstream Interfaces and Helper Address
The upstream interface is the interface through which the router connects to
remote multicast sources. The upstream interface acts as the IGMP host on
behalf of hosts connected to the downstream interfaces. The router only uses
one upstream interface to forward IGMP joins received on downstream
interfaces towards the multicast source.
12-13
Configuring Multicast Support for a Stub Network
Configuring IGMP Proxy for Multicast Stub Routing Support
For example:
The interface will send IGMP queries and listen for reports and leave messages
to determine which host groups are active on its network.
By default, downstream interfaces run IGMP version 2. You can change the
version an interface uses with this command, entered from a logical interface
configuration mode context:
For example, if your network used version 1, you could configure an Ethernet
interface to run IGMP version 1:
You can also alter settings such as how often the interface issues IGMP queries
and how long it waits after a group membership expires to remove that group
from its IGMP table. These configuration tasks are aimed at containing
packets and are not necessary. (See “Altering IGMP Query Intervals” on
page 12-19.)
12-14
Configuring Multicast Support for a Stub Network
Configuring IGMP Proxy for Multicast Stub Routing Support
You must set the actual helper address globally. (See “Setting the Multicast
Helper Address” on page 12-12.)
If you do not enter this command, the upstream interface send joins towards
the multicast source; the router will not forward multicasts to local hosts
because it will not itself receive the multicast traffic.
Note Even though you have enabled the router to act as a multicast host to a remote
router, the downstream interface still acts as a multicast agent for directly
connected local hosts.
Note You must enable IP multicast routing globally in order for an interface to
forward multicast messages. (See “Enabling IP Multicast Routing” on page
12-12. Multicast routing is disabled by default.) If IP multicast routing is
disabled, the interface will only run IGMP.
12-15
Configuring Multicast Support for a Stub Network
Configuring IGMP Proxy for Multicast Stub Routing Support
You enable both IGMP proxy and multicast forwarding functions with the
following command:
12-16
Configuring Multicast Support for a Stub Network
Configuring IGMP Proxy for Multicast Stub Routing Support
Then, move to the configuration mode context for the interface that you want
to forward the multicast traffic. For example, if you want the Ethernet 0/1
interface to act as a fixed interface, enter:
The interface has now joined the group. You must now enable it to forward
the join to the multicast helper address. Enter this command from the inter-
face configuration mode context:
12-17
Configuring Multicast Support for a Stub Network
Configuring IGMP Proxy for Multicast Stub Routing Support
remote tunnel endpoint, and a GRE header. The router then forwards the
packet. Routers in the non-multicast network can read the delivery header to
forward the multicast packet to the tunnel endpoint.
The router at the remote endpoint removes the GRE header from the packet
and forwards the multicast packet through the correct interfaces to members
of the multicast host group.
You can configure the tunnel interface as an upstream interface. The tunnel
will then receive multicasts from the multicast source for clients connected
to the router.
You should enable PIM-SM on the tunnel interface on the remote multicast
router.
When troubleshooting, you can have the router itself join a multicast host
group. The router becomes a host in the multicast group and begins to process
all multicast packets. It can then answer Internet Control Message Protocol
(ICMP) echo requests and respond to pings sent to the multicast address. To
have the router join a multicast group, enter this command from the global
configuration mode context:
Replace <A.B.C.D> with the IP address of the multicast group. For example:
Having the router join a multicast host group can be useful for troubleshoot-
ing. You can use the ping and debug commands to determine the node that
fails to forward multicast messages.
12-18
Configuring Multicast Support for a Stub Network
Configuring IGMP Proxy for Multicast Stub Routing Support
Although the default settings are usually adequate, you can alter IGMP inter-
vals. For example, in a network with relatively stable group memberships, you
may determine that routers are sending too many IGMP messages. In that case,
you could raise the IGMP query interval. Or, you may determine that hosts are
not receiving multicasts quickly enough after joining a group. In this case, you
could lower the IGMP query interval so that the router receives an updated
IGMP report more quickly.
You can also reduce overhead by enabling the immediate leave option when
an interface connects to a single host. When this host leaves a group, the router
assumes the group has expired without sending any query messages. You can
also enable this option when the router connects to a switch that uses IGMP
snooping. Such a switch forwards all multicasts until it specifically receives a
leaves from all connected hosts. Therefore, if an IGMP snooping switch does
sends a leave for a group, the router does not need to check whether other
hosts still need the multicasts.
Table 12-1 explains how to alter IGMP intervals. You enter these commands
from the logical interface configuration context.
Caution You should not alter intervals unless you have experience working with IGMP.
Whenever you adjust these intervals, you risk making a router’s list of group
memberships and multicast routes less accurate. The timers on interfaces in
the same subnet need to be consistent. For example, if you raise one interface’s
query interval, you need to ensure that other interfaces running IGMP have a
correspondingly greater query timeout. Otherwise, they will periodically flood
the network with unnecessary messages, believing that the designated multi-
cast agent has gone down.
12-19
Configuring Multicast Support for a Stub Network
Configuring IGMP Proxy for Multicast Stub Routing Support
query interval The query interval is how often 60 seconds 0 to 65,535 seconds ip igmp query-interval
the interface broadcasts <seconds>
queries to hosts on the
connected network.
query timeout Only one router on a subnet 2 times the query 60 to 300 seconds ip igmp querier-
acts as the designated interval timeout <seconds>
querier. However, other
interfaces still listen for IGMP
queries. The query timeout is
the time an interface waits for
a query before it assumes the
querier is down and begins
sending its own queries.
The query timeout should be at
least twice the query interval
so that a router can miss one
message without being timed
out.
query maximum The interface includes a 10 seconds 0 to 25 seconds ip igmp query-max-
response time maximum response time in its response-time
queries. Multicast hosts must <seconds>
stagger their reports
somewhere within this limit.
last member query When an interface receives a 1000 milliseconds 100 to 65,535 ip igmp last-member-
interval leave message from a milliseconds query-interval
multicast host, it sends out a <milliseconds>
query for that group to
determine whether it still has
any members on the network.
The last member query
interval specifies how often
the interface sends such
queries. Usually, this interval
is more rapid than that for
routine queries. After sending
two such queries, the
interface waits up to a second
longer for a response. If it does
not receive one, the router
removes the interface from
the multicast list entry for that
group’s address.
12-20
Configuring Multicast Support for a Stub Network
Troubleshooting Multicast Stub Routing and IGMP
This section also describes how to troubleshoot IGMP, which is used both by
routers that run PIM-SM and those that run IGMP proxy.
Is the router receiving messages, but not forwarding them? In this case, the
router may not believe that the group exists on a network on which it does
exist, and IGMP functions might be at fault.
Is the router not receiving multicast messages at all? In this case, IGMP proxy
may be to blame; the helper device is not receiving reports from the router
telling it to send those multicast messages.
If you cannot locate the problem on the local router, you should, if possible,
troubleshoot the next-hop upstream router. See Chapter 11: Configuring
Multicast Support with PIM-SM for tips on troubleshooting PIM-SM.
12-21
Configuring Multicast Support for a Stub Network
Troubleshooting Multicast Stub Routing and IGMP
When troubleshooting multicast stub routing, you should follow the general
procedure described below. You will use the show and debug commands
summarized in Table 12-2.
Note You enter show and debug commands from the enable mode context. You
can also add do to the commands to enter them from any configuration mode
context.
group memberships show ip igmp groups • multicast address verify that the router knows that a
stored on the router • connecting (downstream) group exists on a network
interface
• uptime and expiration time
• host that last reported on the
group
multicast routing table show ip mroute for each route: verify that:
• uptime and expiration time • the router can forward
• incoming interface multicasts
• list of outgoing interfaces • the router will forward
multicasts out the correct
downstream interfaces
IGMP interfaces show ip igmp for each downstream interface: • verify that the interface can run
interface • IP address IGMP in the version used on the
• whether IGMP is enabled network
• IGMP version number • check for problems with IGMP
intervals
• IGMP intervals
• view the helper address
• helper address
real-time IGMP debug ip igmp • IGMP reports from hosts verify that the router is receiving
messages • IGMP queries IGMP messages
real-time IGMP debug ip igmp • IGMP reports from hosts verify that the router is receiving
messages for a <A.B.C.D> • IGMP queries IGMP messages for a specific
specific group group
12-22
Configuring Multicast Support for a Stub Network
Troubleshooting Multicast Stub Routing and IGMP
12-23
Configuring Multicast Support for a Stub Network
Troubleshooting Multicast Stub Routing and IGMP
12-24
Configuring Multicast Support for a Stub Network
Troubleshooting Multicast Stub Routing and IGMP
12-25
Configuring Multicast Support for a Stub Network
Quick Start
Quick Start
This section provides the commands you must enter to quickly configure
support for multicasting.
If you so choose, you can print and fill out Table 12-3 with information for your
network. You can then use this worksheet to complete the quick start com-
mands.
IGMP version 1 or 2
12-26
Configuring Multicast Support for a Stub Network
Quick Start
Group 1
Multicast 1 Multicast 1
Switch Multicast
Router
Router
Helper
address
Multicast 2
Note The local router must, of course, know a route to this address.
12-27
Configuring Multicast Support for a Stub Network
Quick Start
12-28