Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Designing and Developing Scalable IP Networks.pdf
Скачиваний:
36
Добавлен:
15.03.2015
Размер:
2.95 Mб
Скачать

10.1 MULTICAST FORWARDING AT LAYER 2

137

10.1.6IMMEDIATE LEAVE PROCESSING

When a multicast router receives a leave from an IGMP neighbour, it does not immediately process that leave but, instead, waits for further reports to arrive for the same group to override the leave. However, on the switch port on which the leave was received, it is desirable to immediately stop the multicast traffic. Therefore, it is worth configuring immediate leave processing on the switch, if available, on ports connected to hosts. However, this behaviour can be exceptionally disruptive if it is configured on switch ports connected to multicast routers or on trunk ports connected to other switches.

10.1.7CISCO GROUP MANAGEMENT PROTOCOL (CGMP)

CGMP is a Cisco proprietary protocol that operates between routers and switches. It provides similar functionality to that of IGMP without requiring Layer 2 devices to snoop Layer 3 information. However, in addition to constraining the distribution of multicast traffic to only those ports with interested hosts, it also creates an interaction between switches and routers so that switch ports connected to routers can be identified and all constraints on multicast traffic is removed from those ports. Remember how a special feature had to be added to IGMP snooping to achieve this. Although both routers and switches must be configured for CGMP and to understand CGMP packets, CGMP packets are generated and sent only by the routers.

CGMP joins are sent to inform switches to add members to a multicast group. CGMP leaves are sent to inform switches to remove members from a multicast group or to delete the entire group. Both these messages have the same format and are sent to the same MAC address, 0100.0cdd.dddd. Both types of packets contain one or more pairs of MAC addresses, the Group Destination Address (GDA) and the Unicast Source Address (USA).

On starting up, a router sends a CGMP join to attached switches. These initial CGMP joins contain two addresses: the GDA is set to 0000.0000.0000 and the USA is set to the router’s own MAC address. This join message informs the switch that a router is attached to the port on which the message was received. Every 60 seconds, another similar message is sent as a keepalive.

As normal, a host wanting to join a multicast group sends an IGMP membership report. Also as normal, the switch keeps a note of the MAC address of the attached hosts and the port to which they are attached. On receipt of the IGMP membership report, the router sends a CGMP join back to the switch with the GDA set to the multicast MAC address of the group and the USA set to the MAC address of the host. The switch can now map the multicast MAC address to a set of ports, and when it receives packets from the router destined for the multicast MAC address, it can forward the packets only to those ports mapped to the multicast MAC address. The packets are not forwarded to the router from which they are received.

IGMP queries are sent to all ports with connected hosts known to be interested in any multicast group. IGMP membership reports are forwarded to all routers.

When a host sends an IGMPv2 leave, the messages are forwarded by the switch to the routers. The router then sends IGMP group-specific queries, which are forwarded to all