08-IP Multicast Configuration Guide

HomeSupportSwitchesH3C S9500E Switch SeriesConfigure & DeployConfiguration GuidesH3C S9500E Configuration Guide-Release1728-6W17008-IP Multicast Configuration Guide
05-Multicast Routing and Forwarding Configuration

 

 

NOTE:

·       The term router in this document refers to both routers and Layer 3 switches.

·       The switch operates in IRF or standalone (the default) mode. For more information about the IRF mode, see IRF Configuration Guide.

 

Multicast routing and forwarding overview

In multicast implementations, multicast routing and forwarding are implemented by routing and forwarding tables:

·           Each multicast routing protocol has its own multicast routing table, such as the PIM routing table.

·           The multicast routing information of different multicast routing protocols forms a general multicast routing table.

·           The multicast forwarding table helps guide the forwarding of multicast packets.

A multicast routing table consists of a set of (S, G) entries, each indicating the routing information for delivering multicast data from a multicast source to a multicast group. If a router supports multiple multicast protocols, its multicast routing table includes routes generated by multiple protocols. The router chooses the optimal route from the multicast routing table based on the configured multicast routing and forwarding policy and adds the route entry into its multicast forwarding table.

RPF check mechanism

A multicast routing protocol relies on the existing unicast routes, MBGP routes, or multicast static routes in creating multicast routing entries. When creating multicast routing table entries, a multicast routing protocol uses the reverse path forwarding (RPF) check mechanism to ensure multicast data delivery along the correct paths. In addition, the RPF check mechanism also helps avoid data loops.

RPF check process

The basis for an RPF check is as follows:

·           Unicast routing tableContains the shortest path to each destination subnet.

·           MBGP routing tableContains multicast routing information.

·           Multicast static routing tableContains the RPF routing information defined by the user through static configuration.

When performing an RPF check, a router searches its unicast routing table, MBGP routing table, and multicast static routing table at the same time. The specific process is as follows:

1.      The router chooses an optimal route from the unicast routing table, MBGP routing table, and multicast static routing table:

¡  The router automatically chooses an optimal unicast route by searching its unicast routing table, and using the IP address of the packet source as the destination address. The outgoing interface in the corresponding routing entry is the RPF interface and the next hop is the RPF neighbor. The router considers the path along which the packet from the RPF neighbor arrived on the RPF interface to be the shortest path that leads back to the source.

¡  The router automatically chooses an optimal MBGP route by searching its MBGP routing table, and using the IP address of the packet source as the destination address. The outgoing interface in the corresponding routing entry is the RPF interface and the next hop is the RPF neighbor.

¡  The router automatically chooses an optimal multicast static route by searching its multicast static routing table, and using the IP address of the packet source as the destination address. The corresponding routing entry explicitly defines the RPF interface and the RPF neighbor.

2.      The router selects one of these optimal routes as the RPF route. The selection process is as follows:

¡  If configured to use the longest match principle, the router selects the longest match route from the three. If these three routes have the same mask, the router selects the route with the highest priority. If the three routes have the same priority, the router selects a route as the RPF route according to the sequence of multicast static route, MBGP route, and unicast route.

¡  If not configured to use the longest match principle, the router selects the route with the highest priority. If the three routes have the same priority, the router selects a route as the RPF route according to the sequence of multicast static route, MBGP route, and unicast route.

 

 

NOTE:

The packet source means different things in different situations:

·       For a packet traveling along the shortest path tree (SPT) from the multicast source to the receivers or the rendezvous point (RP), the packet source for RPF check is the multicast source.

·       For a packet traveling along the rendezvous point tree (RPT) from the RP to the receivers, or along the source-side RPT from the multicast source to the RP, the packet source for RPF check is the RP.

·       For a bootstrap message from the bootstrap router (BSR), the packet source for RPF check is the BSR.

For more information about the concepts of SPT, RPT, source-side RPT, RP, and BSR, see the chapter “Configuring PIM.”

 

Implementation of RPF check in multicast

Implementing an RPF check on each received multicast data packet would bring a big burden to the router. The use of a multicast forwarding table is the solution to this issue. When creating a multicast routing entry and a multicast forwarding entry for a multicast packet, the router sets the RPF interface of the packet as the incoming interface of the (S, G) entry. After receiving an (S, G) multicast packet, the router first searches its multicast forwarding table:

1.      If the corresponding (S, G) entry does not exist in the multicast forwarding table, the packet undergoes an RPF check. The router creates a multicast routing entry based on the relevant routing information and adds the entry into the multicast forwarding table, with the RPF interface as the incoming interface.

¡  If the interface that received the packet is the RPF interface, the RPF check succeeds and the router forwards the packet to all the outgoing interfaces.

¡  If the interface that received the packet is not the RPF interface, the RPF check fails and the router discards the packet.

2.      If the corresponding (S, G) entry exists, and the interface that received the packet is the incoming interface, the router forwards the packet to all the outgoing interfaces.

3.      If the corresponding (S, G) entry exists, but the interface that received the packet is not the incoming interface in the multicast forwarding table, the multicast packet undergoes an RPF check.

¡  If the RPF interface is the incoming interface of the (S, G) entry, this means the (S, G) entry is correct but the packet arrived from a wrong path. The packet will be discarded.

¡  If the RPF interface is not the incoming interface, this means the (S, G) entry has expired, and router replaces the incoming interface with the RPF interface. If the interface on which the packet arrived is the RPF interface, the router forwards the packet to all the outgoing interfaces. Otherwise it discards the packet.

 

CAUTION

CAUTION:

The switch allows you to configure special processing of packets that have failed an RPF check instead of simply dropping them. For more information, see “Configuring RPF check failure processing.”

 

Assume that unicast routes are available in the network, MBGP is not configured, and no multicast static routes have been configured on Switch C, as shown in Figure 1. Multicast packets travel along the SPT from the multicast source to the receivers. The multicast forwarding table on Switch C contains the (S, G) entry, with VLAN-interface 5 as the incoming interface.

Figure 1 RPF check process

 

·           When a multicast packet arrives on interface VLAN-interface 5 of Switch C, because the interface is the incoming interface of the (S, G) entry, the router forwards the packet to all outgoing interfaces.

·           When a multicast packet arrives on interface VLAN-interface 2 of Switch C, because the interface is not the incoming interface of the (S, G) entry, the router performs an RPF check on the packet. The router searches its unicast routing table and finds that the outgoing interface to Source (the RPF interface) is VLAN-interface 5. This means the (S, G) entry is correct and packet arrived along a wrong path. The RPF check fails and the packet is discarded.

Multicast static routes

A multicast static route is an important basis for RPF check. Depending on the application environment, a multicast static route can change an RPF route and create an RPF route.

Changing an RPF route

Typically, the topology structure of a multicast network is the same as that of a unicast network, and multicast traffic follows the same transmission path as unicast traffic does. By configuring a multicast static route for a given multicast source, you can change the RPF route to create a transmission path for multicast traffic that is different from that for unicast traffic.

Figure 2 Changing an RPF route

 

As shown in Figure 2, when no multicast static route is configured, Switch C’s RPF neighbor on the path back to Source is Switch A. The multicast information from Source travels along the path from Switch A to Switch C, which is the unicast route between the two routers; with a multicast static route configured on Switch C and with Switch B as Switch C’s RPF neighbor on the path back to Source, the multicast information from Source travels from Switch A to Switch B and then to Switch C.

Creating an RPF route

When a unicast route is blocked, multicast traffic forwarding might be stopped due to lack of an RPF route. By configuring a multicast static route for a given multicast source, you can create an RPF route so that a multicast routing entry is created to guide multicast traffic forwarding regardless of whether a unicast route is available.

Figure 3 Creating an RPF route

 

As shown in Figure 3, the RIP domain and the OSPF domain are unicast isolated from each other. When no multicast static route is configured, the hosts (Receivers) in the OSPF domain cannot receive the multicast packets that the multicast source (Source) sent in the RIP domain. After you configure a multicast static route on Switch C and Switch D, specifying Switch B as the RPF neighbor of Switch C and specifying Switch C as the RPF neighbor of Switch D, the receivers can receive multicast data that the multicast source sent.

 

 

NOTE:

·       A multicast static route only affects RPF check; it cannot guide multicast forwarding. Therefore, a multicast static route is also called an RPF static route.

·       A multicast static route is effective only on the multicast router on which it is configured, and will not be advertised throughout the network or redistributed to other routers.

 

Application of GRE tunnel in multicast forwarding

Some networking devices might not support multicast protocols in a network. Multicast devices forward multicast traffic from a multicast source hop by hop along the forwarding tree. When the multicast traffic is forwarded to a next-hop device that does not support IP multicast, the forwarding path is blocked. In this case, you can enable multicast traffic forwarding across the unicast subnet where the non-multicast-capable device resides by establishing a GRE tunnel between the devices at both ends of the unicast subnet.

For more information about GRE tunneling, see Layer 3—IP Services Configuration Guide.

Figure 4 Multicast data transmission through a GRE tunnel

 

As shown in Figure 4, with a GRE tunnel established between Device A and Device B, Device A encapsulates multicast data in unicast IP packets, which unicast routers then forward to Device B across the GRE tunnel. Then, Device B strips off the unicast IP header and continues to forward the multicast data down toward the receivers.

If unicast static routes are configured across the tunnel, any unicast packet can be transmitted through the tunnel. If you want to dedicate this tunnel to multicast traffic delivery, you can configure only a multicast static route across the tunnel, so that only multicast packets are transmitted through this tunnel.

Multicast traceroute

The multicast traceroute utility traces the path that a multicast stream flows down from the first-hop router to the last-hop router.

Concepts in multicast traceroute

1.      Last-hop router—If one of the interfaces of a router connects to the subnet that contains the given destination address, and if the router can forward multicast streams from the given multicast source onto that subnet, that router is called the “last-hop router.

2.      First-hop router—The router that directly connects to the multicast source is called the first-hop router.

3.      QuerierThe router that sends multicast traceroute requests is called the querier.

Introduction to multicast traceroute packets

A multicast traceroute packet is a special IGMP packet, which differs from common IGMP packets in that its IGMP Type field is set to 0x1F or 0x1E and its destination IP address is a unicast address. The following types of multicast traceroute packets are available:

·           Query, with the IGMP Type field set to 0x1F.

·           Request, with the IGMP Type field set to 0x1F.

·           Response, with the IGMP Type field set to 0x1E.

Process of multicast traceroute

1.      The querier sends a query to the last-hop router.

2.      After receiving the query, the last-hop router turns the query packet into a request packet by adding a response data block—which contains its interface addresses and packet statistics—to the end of the packet. The last-hop router then forwards the request packet via unicast to the previous hop for the given multicast source and group.

3.      From the last-hop router to the multicast source, each hop adds a response data block to the end of the request packet and unicasts it to the previous hop.

4.      When the first-hop router receives the request packet, it changes the packet type to indicate a response packet, and then sends the completed packet via unicast to the querier.

Configuration task list

Complete these tasks to configure multicast routing and forwarding:

 

Task

Remarks

Enabling IP multicast routing

Required

Configuring multicast routing and forwarding

Configuring multicast static routes

Optional

Configuring a multicast routing policy

Optional

Configuring a multicast forwarding range

Optional

Configuring the multicast forwarding table size

Optional

Configuring static multicast MAC address entries

Optional

Configuring RPF check failure processing

Optional

Tracing a multicast path

Optional

 

CAUTION

CAUTION:

·       IP multicast does not support the use of secondary IP address segments. Namely, multicast can be routed and forwarded only through primary IP addresses, rather than secondary addresses, even if configured on interfaces. For more information about primary and secondary IP addresses, see Layer 3—IP Services Configuration Guide.

·       When the system operates in standard mode, a reserved VLAN must be configured if multicast routing and forwarding need to be configured in a VPN instance. Otherwise, abnormality may occur in the system. After a reserved VLAN is configured, any change of it will incur reconfiguration of the reserved VLAN. For information about the system working mode, see Fundamentals Configuration Guide. For information about the configuration and commands about a reserved VLAN, see MPLS Configuration Guide and MPLS Command Reference.

 

Enabling IP multicast routing

Before you configure any Layer 3 multicast functionality, you must enable IP multicast routing.

Enabling IP multicast routing for the public network

To enable IP multicast routing for the public network:

 

Step

Command

Remarks

1.     Enter system view.

system-view

N/A

2.     Enable IP multicast routing.

multicast routing-enable

Disabled by default

 

Enabling IP multicast routing in a VPN instance

 

CAUTION

CAUTION:

When the system operates in standard mode, a reserved VLAN must be configured if multicast routing will be configured in a VPN instance. For information about the system working mode, see Fundamentals Configuration Guide. For information about the configuration and commands about a reserved VLAN, see MPLS Configuration Guide and MPLS Command Reference.

 

To enable IP multicast routing in a VPN instance:

 

Step

Command

Remarks

1.     Enter system view.

system-view

N/A

2.     Create a VPN instance and enter VPN instance view.

ip vpn-instance vpn-instance-name

N/A

3.     Configure a route distinguisher (RD) for the VPN instance.

route-distinguisher route-distinguisher

No RD configured by default

4.     Enable IP multicast routing.

multicast routing-enable

Disabled by default

 

 

NOTE:

For more information about the ip vpn-instance and route-distinguisher commands, see MPLS Command Reference.

 

Configuring multicast routing and forwarding

Configuration prerequisites

Before you configure multicast routing and forwarding, complete the following tasks:

·           Configure a unicast routing protocol so that all devices in the domain are interoperable at the network layer.

·           Enable PIM (PIM-DM or PIM-SM).

·           Determine the maximum number of downstream nodes for a single multicast forwarding table entry.

·           Determine the maximum number of entries in the multicast forwarding table.

Configuring multicast static routes

By configuring a multicast static route for a given multicast source, you can specify an RPF interface or an RPF neighbor for multicast traffic from that source. If you want to remove a specific multicast static route, use the undo ip rpf-route-static command, if you want to remove all multicast static routes, use the delete ip rpf-route-static command.

To configure a multicast static route:

 

Step

Command

Remarks

1.     Enter system view.

system-view

N/A

2.     Configure a multicast static route.

ip rpf-route-static [ vpn-instance vpn-instance-name ] source-address { mask | mask-length } [ protocol [ process-id ] ] [ route-policy policy-name ] { rpf-nbr-address | interface-type interface-number } [ preference preference ] [ order order-number ]

No multicast static route configured by default

3.     Delete multicast static routes.

delete ip rpf-route-static [ vpn-instance vpn-instance-name ]

Optional

 

CAUTION

CAUTION:

When you configure a multicast static route, you cannot specify an RPF neighbor by providing the type and number (interface-type interface-number) of the interface if the interface of the RPF neighbor is a Layer 3 Ethernet interface, Layer 3 aggregate interface, Loopback interface, Layer 3 RPR logical interface, or VLAN interface. Instead, you can specify such an RPF neighbor only by its address (rpf-nbr-address).

 

Configuring a multicast routing policy

You can configure the router to determine the RPF route based on the longest match principle. For more information about RPF route selection, see “RPF check process.”

By configuring per-source or per-source-and-group load splitting, you can optimize the traffic delivery when multiple data flows are handled.

Configuring a multicast routing policy for the public network

To configure a multicast routing policy for the public network:

 

Step

Command

Remarks

1.     Enter system view.

system-view

N/A

2.     Configure the device to select the RPF route based on the longest match.

multicast longest-match

The route with the highest priority is selected as the RPF route by default.

3.     Configure multicast load splitting.

multicast load-splitting { source | source-group }

Optional.

Disabled by default.

 

Configuring a multicast routing policy in a VPN instance

To configure a multicast routing policy in a VPN instance:

 

Step

Command

Remarks

1.     Enter system view.

system-view

N/A

2.     Enter VPN instance view.

ip vpn-instance vpn-instance-name

N/A

3.     Configure the device to select the RPF route based on the longest match.

multicast longest-match

The route with the highest priority is selected as the RPF route by default.

4.     Configure multicast load splitting.

multicast load-splitting { source | source-group }

Optional.

Disabled by default.

 

Configuring a multicast forwarding range

Multicast packets do not travel without a boundary in a network. The multicast data corresponding to each multicast group must be transmitted within a definite scope. You can define a multicast forwarding range by specifying boundary interfaces, which form a closed multicast forwarding area.

You can configure a forwarding boundary specific to a particular multicast group on all interfaces that support multicast forwarding. A multicast forwarding boundary sets the boundary condition for the multicast groups in the specified range. If the destination address of a multicast packet matches the set boundary condition, the packet will not be forwarded. After you configure an interface as a multicast boundary, the interface can no longer forward multicast packets (including packets sent from the local device), or receive multicast packets.

To configure a multicast forwarding range:

 

Step

Command

Remarks

1.     Enter system view.

system-view

N/A

2.     Enter interface view.

interface interface-type interface-number

N/A

3.     Configure a multicast forwarding boundary.

multicast boundary group-address { mask | mask-length }

No forwarding boundary by default

 

Configuring the multicast forwarding table size

The router maintains the corresponding forwarding entry for each multicast packet that it receives. Excessive multicast routing entries, however, can exhaust the router’s memory and cause lower router performance. You can set a limit on the number of entries in the multicast forwarding table based on the networking situation and the performance requirements. If the configured maximum number of multicast forwarding table entries is smaller than the current value, the forwarding entries in excess will not be deleted immediately. Instead, the multicast routing protocols that are running on the router will delete them. The router will no longer add new multicast forwarding entries until the number of existing multicast forwarding entries comes down under the configured value.

When forwarding multicast traffic, the router replicates a copy of the multicast traffic for each downstream node and forwards the traffic. Thus, each of these downstream nodes forms a branch of the multicast distribution tree. You can configure the maximum number of downstream nodes (namely, the maximum number of outgoing interfaces) for a single entry in the multicast forwarding table to lessen the burden on the router for replicating multicast traffic. If the configured maximum number of downstream nodes for a single multicast forwarding entry is smaller than the current number, the downstream nodes in excess will not be deleted immediately. Instead, the multicast routing protocols that are running on the router will delete them. The router will no longer add new multicast forwarding entries for newly added downstream nodes until the number of existing downstream nodes comes down under the configured value.

Configuring the multicast forwarding table size for the public network

To configure the multicast forwarding table size for the public network:

 

Step

Command

Remarks

1.     Enter system view.

system-view

N/A

2.     Configure the maximum number of entries in the multicast forwarding table.

multicast forwarding-table route-limit limit

Optional.

The default upper limit depends on the system working mode.

For more information, see Fundamentals Configuration Guide.

3.     Configure the maximum number of downstream nodes for a single multicast forwarding entry.

multicast forwarding-table downstream-limit limit

Optional.

256 by default.

 

Configuring the multicast forwarding table size in a VPN instance

To configure the multicast forwarding table size in a VPN instance:

 

Step

Command

Remarks

1.     Enter system view.

system-view

N/A

2.     Enter VPN instance view.

ip vpn-instance vpn-instance-name

N/A

3.     Configure the maximum number of entries in the multicast forwarding table.

multicast forwarding-table route-limit limit

Optional

1024 by default

4.     Configure the maximum number of downstream nodes for a single route in the multicast forwarding table.

multicast forwarding-table downstream-limit limit

Optional

256 by default

 

Configuring static multicast MAC address entries

In Layer-2 multicast, a Layer 2 multicast protocol (such as IGMP snooping) can dynamically add multicast MAC address entries. Or, you can manually configure multicast MAC address entries.

Configuring a static multicast MAC address entry in system view

To configure a static multicast MAC address entry in system view

 

Step

Command

Remarks

1.     Enter system view.

system-view

N/A

2.     Configure a static multicast MAC address entry.

mac-address multicast mac-address interface interface-list vlan vlan-id

No static multicast MAC address entries existing by default

 

Configuring a static multicast MAC address entry in interface view

To configure static multicast MAC address entries in interface view

 

Step

Command

Remarks

1.     Enter system view.

system-view

N/A

2.     Enter Ethernet interface/Layer 2 aggregate interface view or port group view.

·       Enter Ethernet interface/Layer 2 aggregate interface view:
interface interface-type interface-number

·       Enter port group view:
port-group manual port-group-name

In Ethernet interface view or Layer 2 aggregate interface view, the configuration is effective on only the current interface. In port group view, the configuration is effective on all ports in the port group.

3.     Configure a static multicast MAC address entry.

mac-address multicast mac-address vlan vlan-id

No static multicast MAC address entries exist by default.

 

 

NOTE:

·       When you configure a static multicast MAC address entry in system view, the configuration is effective for the specified interface. When you configure a static multicast MAC address entry in interface view or port group view, the configuration is effective only for the current interface or interfaces in the current port group.

·       Any legal multicast MAC address except 0100-5Exx-xxxx (where x represents a hexadecimal number from 0 to F) can be manually added to the multicast MAC address table. Multicast MAC addresses are the MAC addresses whose the least significant bit of the most significant octet is 1.

 

Configuring RPF check failure processing

After a multicast packet fails RPF check on a VLAN interface, it might need to be processed differently in different networking environments instead of being simply dropped.

Forwarding the packet in the VLAN

A multicast packet that failed RPF check on a VLAN interface might be expected by some receivers in the VLAN. You can enable forwarding such multicast packets through multicast or broadcast in the VLAN so that the receivers can receive them.

With this feature enabled, the router searches its multicast forwarding table after receiving a packet that failed RPF check. If a match is found, it multicasts the packet according to the matching entry. Otherwise, the router broadcasts the packet in the VLAN.

To enable this feature, you also need to enable the multicast programs-on-demand function.

To enable forwarding multicast packets in case of RPF check failure:

 

Step

Command

Remarks

1.     Enter system view.

system-view

N/A

2.     Enable forwarding multicast packets in case of RPF check failure on VLAN interfaces.

multicast rpf-fail-pkt bridging

Disabled by default

3.     Enter VLAN view.

vlan vlan-id

N/A

4.     Enable the multicast programs-on-demand function in the VLAN.

multicast forwarding on-demand

Disabled by default

 

CAUTION

CAUTION:

·       After the configuration, use the reset multicast forwarding-table command to clear all the forwarding entries in the multicast forwarding table. Otherwise, this configuration cannot take effect.

·       If you configure the multicast programs-on-demand function in a multicast VLAN, you must use the reset igmp-snooping group command to clear all the IGMP snooping multicast group information in the VLAN. Otherwise this configuration cannot take effect. For more information about the reset igmp-snooping group command, see IP Multicast Command Reference.

·       If the VLAN enabled with the multicast programs-on-demand function is not a multicast VLAN, and a Layer 3 multicast routing protocol (such as IGMP or PIM) has been configured on the corresponding VLAN interface, you need to use the reset igmp group port-info command to clear Layer 2 port information for all IGMP multicast groups in the VLAN and use the reset igmp group command clear all IGMP multicast group information on the corresponding VLAN interface. Otherwise this configuration cannot take effect. For more information about the reset igmp group port-info and reset igmp group commands, see IP Multicast Command Reference.

·       If the VLAN enabled with the multicast programs-on-demand function is not a multicast VLAN but has IGMP snooping enabled, this configuration cannot take effect.

·       If you configure the multicast programs-on-demand function in a VLAN that has been enabled with BIDIR-PIM, you must use the reset multicast forwarding-table command to clear all the forwarding entries in the multicast forwarding table. Otherwise, the configuration cannot take effect.

 

Passing the packet to the CPU

In the following two cases, a multicast packet that failed RPF check needs to be passed to the CPU:

·           When a multicast packet arrives on an outgoing interface of the corresponding multicast forwarding entry, the packet will fail RPF check and needs to be sent to the CPU in order to trigger the assert mechanism to prune the unwanted branch.

·           If the SPT and RPT have different incoming interfaces on the receiver-side DR (the last-hop router), the multicast traffic will fail RPF check on the SPT incoming interface during an RPT-to-SPT switchover before the RPF information is refreshed. If the RPT is pruned at this moment, the multicast service will be instantaneously interrupted. By passing packets that failed RPF check on a non-outgoing interface to the CPU, the router can determine whether the packets that have failed RPF check on the SPT interface are expected. If they are, the router initiates an RPT prune.

For more information about the assert mechanism, DR and RPT-to-SPT switchover, see the chapter “Configuring PIM.”

To enable passing packets that failed RPF check to the CPU:

 

Step

Command

Remarks

1.     Enter system view.

system-view

N/A

2.     Enable passing packets that failed RPF check to the CPU.

multicast rpf-fail-pkt trap-to-cpu

Disabled by default

 

CAUTION

CAUTION:

·       After the configuration, you must use the reset multicast forwarding-table command to clear all the forwarding entries in the multicast forwarding table. Otherwise this configuration cannot take effect.

·       This configuration is not effective to multicast packets forwarded by BIDIR-PIM entries.

 

Tracing a multicast path

You can run the mtracert command to trace the path down which the multicast traffic flows from a given first-hop router to the last-hop router.

To trace a multicast path:

 

Task

Command

Remarks

Trace a multicast path.

mtracert source-address [ [ last-hop-router-address ] group-address ]

Available in any view

 

Displaying and maintaining multicast routing and forwarding

 

Task

Command

Remarks

Display multicast boundary information.

display multicast [ all-instance | vpn-instance vpn-instance-name ] boundary [ group-address [ mask | mask-length ] ] [ interface interface-type interface-number ] [ | { begin | exclude | include } regular-expression ]

Available in any view

Display multicast forwarding table information (in standalone mode).

display multicast [ all-instance | vpn-instance vpn-instance-name ] forwarding-table [ source-address [ mask { mask | mask-length } ] | group-address [ mask { mask | mask-length } ] | incoming-interface { interface-type interface-number | register } | outgoing-interface { exclude | include | match } { interface-type interface-number | register } | statistics | slot slot-number ] * [ port-info ] [ | { begin | exclude | include } regular-expression ]

Available in any view

Display multicast forwarding table information (in IRF mode).

display multicast [ all-instance | vpn-instance vpn-instance-name ] forwarding-table [ source-address [ mask { mask | mask-length } ] | group-address [ mask { mask | mask-length } ] | incoming-interface { interface-type interface-number | register } | outgoing-interface { exclude | include | match } { interface-type interface-number | register } | statistics | chassis chassis-number slot slot-number ] * [ port-info ] [ | { begin | exclude | include } regular-expression ]

Available in any view

Display the DF information of the multicast forwarding table (in standalone mode).

display multicast [ all-instance | vpn-instance vpn-instance-name ] forwarding-table df-info [ rp-address ] [ slot slot-number ] [ | { begin | exclude | include } regular-expression ]

Available in any view

Display the DF information of the multicast forwarding table (in IRF mode).

display multicast [ all-instance | vpn-instance vpn-instance-name ] forwarding-table df-info [ rp-address ] [ chassis chassis-number slot slot-number ] [ | { begin | exclude | include } regular-expression ]

Available in any view

Display multicast routing table information.

display multicast [ all-instance | vpn-instance vpn-instance-name ] routing-table [ source-address [ mask { mask | mask-length } ] | group-address [ mask { mask | mask-length } ] | incoming-interface { interface-type interface-number | register } | outgoing-interface { exclude | include | match } { interface-type interface-number | register } ] * [ | { begin | exclude | include } regular-expression ]

Available in any view

Display information of the multicast static routing table.

display multicast routing-table [ all-instance | vpn-instance vpn-instance-name ] static [ source-address { mask-length | mask } ] [ | { begin | exclude | include } regular-expression ]

Available in any view

Display RPF route information of the specified multicast source.

display multicast [ all-instance | vpn-instance vpn-instance-name ] rpf-info source-address [ group-address ] [ | { begin | exclude | include } regular-expression ]

Available in any view

Display static multicast MAC address entries.

display mac-address [ mac-address [ vlan vlan-id ] | [ multicast ] [ vlan vlan-id ] [ count ] ] [ | { begin | exclude | include } regular-expression ]

Available in any view

Clear forwarding entries from the multicast forwarding table.

reset multicast [ all-instance | vpn-instance vpn-instance-name ] forwarding-table { { source-address [ mask { mask | mask-length } ] | group-address [ mask { mask | mask-length } ] | incoming-interface { interface-type interface-number | register } } * | all }

Available in user view

Clear routing entries from the multicast routing table.

reset multicast [ all-instance | vpn-instance vpn-instance-name ] routing-table { { source-address [ mask { mask | mask-length } ] | group-address [ mask { mask | mask-length } ] | incoming-interface { interface-type interface-number | register } } * | all }

Available in user view

 

 

NOTE:

For more information about designated forwarder (DF), see the chapter “Configuring PIM.”

 

CAUTION

CAUTION:

·       The reset command clears the information in the multicast routing table or the multicast forwarding table, and thus might cause failure of multicast transmission.

·       When a routing entry is deleted from the multicast routing table, the corresponding forwarding entry will also be deleted from the multicast forwarding table.

·       When a forwarding entry is deleted from the multicast forwarding table, the corresponding routing entry will also be deleted from the multicast routing table.

 

Configuration examples

 

 

NOTE:

By default, Ethernet interfaces, VLAN interfaces, and aggregate interfaces are in the state of DOWN. To configure such an interface, use the undo shutdown command to bring it up first.

 

Changing an RPF route

Network requirements

As shown in Figure 5, PIM-DM runs in the network. All switches in the network support multicast. Switch A, Switch B and Switch C run OSPF. Typically, Receiver can receive the multicast data from Source through the path Switch A – Switch B, which is the same as the unicast route.

Perform the following configuration so that Receiver can receive the multicast data from Source through the path Switch A – Switch C – Switch B, which is different from the unicast route.

Figure 5 Network diagram

 

Configuration procedure

1.      Configure IP addresses and unicast routing:

Configure the IP address and subnet mask for each interface as per Figure 5. (Details not shown)

Enable OSPF on the switches in the PIM-DM domain. Ensure the network-layer interoperation among the switches in the PIM-DM domain. Make sure that the switches can dynamically update their routing information by leveraging the unicast routing protocol. (Details not shown)

2.      Enable IP multicast routing, and enable PIM-DM and IGMP:

# Enable IP multicast routing on Switch B, enable PIM-DM on each interface, and enable IGMP on VLAN-interface 100.

<SwitchB> system-view

[SwitchB] multicast routing-enable

[SwitchB] interface vlan-interface 100

[SwitchB-Vlan-interface100] igmp enable

[SwitchB-Vlan-interface100] pim dm

[SwitchB-Vlan-interface100] quit

[SwitchB] interface vlan-interface 101

[SwitchB-Vlan-interface101] pim dm

[SwitchB-Vlan-interface101] quit

[SwitchB] interface vlan-interface 102

[SwitchB-Vlan-interface102] pim dm

[SwitchB-Vlan-interface102] quit

# Enable IP multicast routing on Switch A, and enable PIM-DM on each interface.

<SwitchA> system-view

[SwitchA] multicast routing-enable

[SwitchA] interface vlan-interface 200

[SwitchA-Vlan-interface200] pim dm

[SwitchA-Vlan-interface200] quit

[SwitchA] interface vlan-interface 102

[SwitchA-Vlan-interface102] pim dm

[SwitchA-Vlan-interface102] quit

[SwitchA] interface vlan-interface 103

[SwitchA-Vlan-interface103] pim dm

[SwitchA-Vlan-interface103] quit

The configuration on Switch C is similar to the configuration on Switch A. (Details not shown)

# Use the display multicast rpf-info command to view the RPF route to Source on Switch B.

[SwitchB] display multicast rpf-info 50.1.1.100

 RPF information about source 50.1.1.100:

     RPF interface: Vlan-interface102, RPF neighbor: 30.1.1.2

     Referenced route/mask: 50.1.1.0/24

     Referenced route type: igp

     Route selection rule: preference-preferred

     Load splitting rule: disable

The output shows that the current RPF route on Switch B is contributed by a unicast routing protocol and the RPF neighbor is Switch A.

3.      Configure a multicast static route:

# Configure a multicast static route on Switch B, specifying Switch C as its RPF neighbor on the route to Source.

[SwitchB] ip rpf-route-static 50.1.1.100 24 20.1.1.2

4.      Verify the configuration:

# Use the display multicast rpf-info command to view the information about the RPF route to Source on Switch B.

[SwitchB] display multicast rpf-info 50.1.1.100

 RPF information about source 50.1.1.100:

     RPF interface: Vlan-interface101, RPF neighbor: 20.1.1.2

     Referenced route/mask: 50.1.1.0/24

     Referenced route type: multicast static

     Route selection rule: preference-preferred

     Load splitting rule: disable

The output shows that the RPF route on Switch B has changed. It is now the configured multicast static route, and the RPF neighbor is now Switch C.

Creating an RPF route

Network requirements

As shown in Figure 6, PIM-DM runs in the network and all switches in the network support IP multicast. Switch B and Switch C run OSPF, and have no unicast routes to Switch A. Typically, Receiver can receive the multicast data from Source 1 in the OSPF domain.

Perform the following configuration so that Receiver can receive multicast data from Source 2, which is outside the OSPF domain.

Figure 6 Network diagram

 

Configuration procedure

1.      Configure IP addresses and unicast routing:

Configure the IP address and subnet mask for each interface as per Figure 6. (Details not shown)

Enable OSPF on Switch B and Switch C. Ensure the network-layer interoperation among Switch B and Switch C. Make sure that the switches can dynamically update their routing information by leveraging the unicast routing protocol. (Details not shown)

2.      Enable IP multicast routing, and enable PIM-DM and IGMP:

# Enable IP multicast routing on Switch C, enable PIM-DM on each interface, and enable IGMP on VLAN-interface 100.

<SwitchC> system-view

[SwitchC] multicast routing-enable

[SwitchC] interface vlan-interface 100

[SwitchC-Vlan-interface100] igmp enable

[SwitchC-Vlan-interface100] pim dm

[SwitchC-Vlan-interface100] quit

[SwitchC] interface vlan-interface 101

[SwitchC-Vlan-interface101] pim dm

[SwitchC-Vlan-interface101] quit

# Enable IP multicast routing on Switch A and enable PIM-DM on each interface.

<SwitchA> system-view

[SwitchA] multicast routing-enable

[SwitchA] interface vlan-interface 300

[SwitchA-Vlan-interface300] pim dm

[SwitchA-Vlan-interface300] quit

[SwitchA] interface vlan-interface 102

[SwitchA-Vlan-interface102] pim dm

[SwitchA-Vlan-interface102] quit

The configuration on Switch B is similar to that on Switch A. (Details not shown)

# Use the display multicast rpf-info command to view the RPF routes to Source 2 on Switch B and Switch C.

[SwitchB] display multicast rpf-info 50.1.1.100

[SwitchC] display multicast rpf-info 50.1.1.100

No information is displayed. This means that no RPF route to Source 2 exists on Switch B or Switch C.

3.      Configure a multicast static route:

# Configure a multicast static route on Switch B, specifying Switch A as its RPF neighbor on the route to Source 2.

[SwitchB] ip rpf-route-static 50.1.1.100 24 30.1.1.2

# Configure a multicast static route on Switch C, specifying Switch B as its RPF neighbor on the route to Source 2.

[SwitchC] ip rpf-route-static 10.1.1.100 24 20.1.1.2

4.      Verify the configuration:

# Use the display multicast rpf-info command to view the RPF routes to Source 2 on Switch B and Switch C.

[SwitchB] display multicast rpf-info 50.1.1.100

 RPF information about source 50.1.1.100:

     RPF interface: Vlan-interface102, RPF neighbor: 30.1.1.2

     Referenced route/mask: 50.1.1.0/24

     Referenced route type: multicast static

     Route selection rule: preference-preferred

     Load splitting rule: disable

[SwitchC] display multicast rpf-info 50.1.1.100

 RPF information about source 50.1.1.100:

     RPF interface: Vlan-interface101, RPF neighbor: 20.1.1.2

     Referenced route/mask: 50.1.1.0/24

     Referenced route type: multicast static

     Route selection rule: preference-preferred

     Load splitting rule: disable

The output shows that the RPF routes to Source 2 exist on Switch B and Switch C. The routes are the configured static routes.

Multicast forwarding over a GRE tunnel

Network requirements

As shown in Figure 7, multicast routing and PIM-DM are enabled on Switch A and Switch C. Switch B does not support multicast. OSPF is running on Switch A, Switch B, and Switch C.

Perform the following configurations so that Receiver can receive the multicast data from Source.

Figure 7 Network diagram

 

Configuration procedure

1.      Configure IP addresses:

Configure the IP address and subnet mask for each interface as per Figure 7. (Details not shown)

2.      Configure a GRE tunnel:

# Create Tunnel 0 on Switch A and configure the IP address and subnet mask for the interface.

<SwitchA> system-view

[SwitchA] interface tunnel 0

[SwitchA-Tunnel0] ip address 50.1.1.1 24

# Configure Tunnel 0 to work in the GRE tunnel mode and specify the source and destination addresses for the interface.

[SwitchA-Tunnel0] tunnel-protocol gre

[SwitchA-Tunnel0] source 20.1.1.1

[SwitchA-Tunnel0] destination 30.1.1.2

[SwitchA-Tunnel0] quit

# Create Tunnel 0 on Switch C and configure the IP address and subnet mask for the interface.

<SwitchC> system-view

[SwitchC] interface tunnel 0

[SwitchC-Tunnel0] ip address 50.1.1.2 24

# Configure Tunnel 0 on Switch C to operate in the GRE tunnel mode and configure the source and destination addresses for the interface.

[SwitchC-Tunnel0] tunnel-protocol gre

[SwitchC-Tunnel0] source 30.1.1.2

[SwitchC-Tunnel0] destination 20.1.1.1

[SwitchC-Tunnel0] quit

3.      Configure OSPF:

# Configure OSPF on Switch A.

[SwitchA] ospf 1

[SwitchA-ospf-1] area 0

[SwitchA-ospf-1-area-0.0.0.0] network 10.1.1.0 0.0.0.255

[SwitchA-ospf-1-area-0.0.0.0] network 20.1.1.0 0.0.0.255

[SwitchA-ospf-1-area-0.0.0.0] network 50.1.1.0 0.0.0.255

[SwitchA-ospf-1-area-0.0.0.0] quit

[SwitchA-ospf-1] quit

# Configure OSPF on Switch B.

<SwitchB> system-view

[SwitchB] ospf 1

[SwitchB-ospf-1] area 0

[SwitchB-ospf-1-area-0.0.0.0] network 20.1.1.0 0.0.0.255

[SwitchB-ospf-1-area-0.0.0.0] network 30.1.1.0 0.0.0.255

[SwitchB-ospf-1-area-0.0.0.0] quit

[SwitchB-ospf-1] quit

# Configure OSPF on Switch C.

[SwitchC] ospf 1

[SwitchC-ospf-1] area 0

[SwitchC-ospf-1-area-0.0.0.0] network 30.1.1.0 0.0.0.255

[SwitchC-ospf-1-area-0.0.0.0] network 40.1.1.0 0.0.0.255

[SwitchC-ospf-1-area-0.0.0.0] network 50.1.1.0 0.0.0.255

[SwitchC-ospf-1-area-0.0.0.0] quit

[SwitchC-ospf-1] quit

4.      Enable IP multicast routing, PIM-DM, and IGMP:

# Enable multicast routing on Switch A and enable PIM-DM on each interface.

[SwitchA] multicast routing-enable

[SwitchA] interface vlan-interface 100

[SwitchA-Vlan-interface100] pim dm

[SwitchA-Vlan-interface100] quit

[SwitchA] interface vlan-interface 101

[SwitchA-Vlan-interface101] pim dm

[SwitchA-Vlan-interface101] quit

[SwitchA] interface tunnel 0

[SwitchA-Tunnel0] pim dm

[SwitchA-Tunnel0] quit

# Enable multicast routing on Switch C, enable PIM-DM on each interface, and enable IGMP on VLAN-interface 200.

[SwitchC] multicast routing-enable

[SwitchC] interface vlan-interface 200

[SwitchC-Vlan-interface200] igmp enable

[SwitchC-Vlan-interface200] pim dm

[SwitchC-Vlan-interface200] quit

[SwitchC] interface vlan-interface 102

[SwitchC-Vlan-interface102] pim dm

[SwitchC-Vlan-interface102] quit

[SwitchC] interface tunnel 0

[SwitchC-Tunnel0] pim dm

[SwitchC-Tunnel0] quit

5.      Configure a static multicast route:

# On Switch C, configure a static multicast route, specifying the RPF neighbor leading toward Source as Tunnel 0 on Switch A.

[SwitchC] ip rpf-route-static 50.1.1.0 24 50.1.1.1

6.      Verify the configuration:

Source sends multicast data to the multicast group 225.1.1.1 and Receiver can receive the multicast data after joining the multicast group. You can view the PIM routing table information on routers using the display pim routing-table command. For example:

# View the PIM routing table information on Switch C.

[SwitchC] display pim routing-table

 VPN-Instance: public net

 Total 1 (*, G) entry; 1 (S, G) entry

 

 (*, 225.1.1.1)

     Protocol: pim-dm, Flag: WC

     UpTime: 00:04:25

     Upstream interface: NULL

         Upstream neighbor: NULL

         RPF prime neighbor: NULL

     Downstream interface(s) information:

     Total number of downstreams: 1

         1: Vlan-interface200

             Protocol: igmp, UpTime: 00:04:25, Expires: never

 

 (10.1.1.100, 225.1.1.1)

     Protocol: pim-dm, Flag: ACT

     UpTime: 00:06:14

     Upstream interface: Tunnel0

         Upstream neighbor: 50.1.1.1

         RPF prime neighbor: 50.1.1.1

 

     Downstream interface(s) information:

     Total number of downstreams: 1

         1: Vlan-interface200

             Protocol: pim-dm, UpTime: 00:04:25, Expires: never

The output shows that Switch A is the RPF neighbor of Switch C and the multicast data from Switch A is delivered over a GRE tunnel to Switch C.

Troubleshooting multicast routing and forwarding

Multicast static route failure

Symptom

No dynamic routing protocol is enabled on the routers, and the physical status and link layer status of interfaces are both up, but the multicast static route fails.

Analysis

·           If the multicast static route is not configured or updated correctly to match the current network conditions, the route entry and the configuration information of multicast static route do not exist in the multicast routing table.

·           If a better route is found, the multicast static route might also fail.

Solution

1.      Use the display multicast routing-table static command to view the information of multicast static routes to verify that the multicast static route has been correctly configured and the route entry exists in the multicast routing table.

2.      Check the type of the next hop interface of the multicast static route. If the interface is not a point-to-point interface, be sure to specify the next hop address for the outgoing interface when you configure the multicast static route.

3.      Check that the multicast static route matches the specified routing protocol. If a protocol was specified in multicast static route configuration, enter the display ip routing-table command to check if an identical route was added by the protocol.

4.      Check that the multicast static route matches the specified routing policy. If a routing policy was specified when the multicast static route was configured, enter the display route-policy command to check the configured routing policy.

Multicast data fails to reach receivers

Symptom

The multicast data can reach some routers but fails to reach the last-hop router.

Analysis

If a multicast forwarding boundary has been configured through the multicast boundary command, any multicast packet will be kept from crossing the boundary.

Solution

1.      Use the display pim routing-table command to check whether the corresponding (S, G) entries exist on the router. If so, the router has received the multicast data. Otherwise, the router has not received the data.

2.      Use the display multicast boundary command to view the multicast boundary information on the interfaces. Use the multicast boundary command to change the multicast forwarding boundary setting.

3.      In the case of PIM-SM, use the display current-configuration command to check the BSR and RP information.

 

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
All Support
  • Become A Partner
  • Partner Policy & Program
  • Global Learning
  • Partner Sales Resources
  • Partner Business Management
  • Service Business
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网