The documentation set for this product strives to use bias-free language. For the purposes of this documentation set, bias-free is defined as language that does not imply discrimination based on age, disability, gender, racial identity, ethnic identity, sexual orientation, socioeconomic status, and intersectionality. Exceptions may be present in the documentation due to language that is hardcoded in the user interfaces of the product software, language used based on RFP documentation, or language that is used by a referenced third-party product. Learn more about how Cisco is using Inclusive Language.
This document describes how to configure Wireless LAN Controllers (WLCs) and Lightweight Access Points (LAPs) for multicast.
Cisco recommends that you have knowledge of these topics:
Ensure that you meet these requirements before you attempt this configuration.
The information in this document is based on these software and hardware versions:
The information in this document was created from the devices in a specific lab environment. All of the devices used in this document started with a cleared (default) configuration. If your network is live, ensure that you understand the potential impact of any command.
If your network supports packet multicasting, you can configure the multicast method that the controller uses in order to transport the multicast packets over Control And Provisioning of Wireless Access Points (CAPWAP) to all or several access points at the same time. The controller performs multicasting in two modes:
When you use a different VLAN/Subnet for AP and WLC, Multicast routing is mandatory on the wired side to support forwarding the downlink CAPWAP Multicast packet from WLC to AP.
When you enable multicast mode and the controller receives a multicast packet from the wired LAN, the controller encapsulates the packet with the use of CAPWAP and forwards the packet to the CAPWAP multicast group address. The controller always uses the management interface to send multicast packets. Access points in the multicast group receive the packet and forward it to all the BSSIDs mapped to the interface on which clients receive multicast traffic. From the access point perspective, the multicast appears to broadcast to all SSIDs.
By default, the WLC does not forward any broadcast packets (such as Upnp traffic) unless broadcast forwarding is enabled. Issue this command from the WLC CLI in order to enable broadcast:
config network broadcast enable
Or enable it with the GUI:
Broadcast uses the multicast mode
that is configured on the WLC, even if multicast is not turned on. This is because you cannot set the IP address or the mode unless you enable multicast in the GUI. Therefore, if the multicast mode is unicast and the broadcast is turned on, this is the mode the broadcast uses (broadcast traffic is replicated at the WLC and unicast to each AP). If multicast mode is set to multicast with a multicast address, then the broadcast uses this mode (each broadcast packet is sent via the multicast group to the APs).
Note: Until Release 7.5, the port number used for CAPWAP multicast was 12224. From Release 7.6 onwards, the port number used for CAPWAP is changed to 5247.
Multicast with AAA override is supported from Wireless LAN Controller release 4.2 and later. You have to enable IGMP snooping on the controller to make multicast work with AAA override.
Internet Group Management Protocol (IGMP) snooping is supported on WLC to better direct multicast packets. When this feature is enabled, the controller gathers IGMP reports from the clients, processes the reports, creates unique multicast group IDs (MGIDs) from the IGMP reports after it checks the Layer 3 multicast address and the VLAN number, and sends the IGMP reports to the infrastructure switch. The controller sends these reports with the source address as the interface address on which it received the reports from the clients.
The controller then updates the access point MGID table on the AP with the client MAC address. When the controller receives multicast traffic for a particular multicast group, it forwards it to all the APs. However, only those APs that have active clients listening or subscribed to that multicast group send multicast traffic on that particular WLAN. IP packets are forwarded with an MGID that is unique for an ingress VLAN and the destination multicast group. Layer 2 multicast packets are forwarded with an MGID that is unique for the ingress interface.
The controller supports Multicast Listener Discovery (MLD) v1 snooping for IPv6 multicast. This feature keeps track of and delivers IPv6 multicast flows to the clients that request them. In order to support IPv6 multicast, you must enable Global Multicast Mode.
Note: When you disable the Global Multicast Mode, the controller still forwards the IPv6 ICMP multicast messages, such as router announcements and DHCPv6 solicits, as these are required for IPv6 to work. As a result, when the Global Multicast Mode is enabled on the controller, it does not impact the ICMPv6 and the DHCPv6 messages. These messages are forwarded irrespective of whether or not the Global Multicast Mode is enabled.
When IGMP snooping is disabled, this is true:
When IGMP snooping is enabled, this is true:
Note: The MGIDs are controller specific. The same multicast group packets that come from the same VLAN in two different controllers can be mapped to two different MGIDs. If Layer 2 multicast is enabled, a single MGID is assigned to all the multicast addresses that come from an interface. The maximum number of multicast groups supported per VLAN for a controller is 100.
A major challenge for a multicast client in a wireless environment is to maintain its multicast group membership when moved about the WLAN. Drops in the wireless connection that move from AP to AP can cause a disruption in the multicast application of a client. IGMP plays an important role in the maintenance of dynamic group membership information.
A basic comprehension of IGMP is important to understand what happens to the multicast session of a client when it roams the network. In a Layer 2 roaming case, sessions are maintained simply because the foreign AP, if configured properly, already belongs to the multicast group, and traffic is not tunneled to a different anchor point on the network. Layer 3 roaming environments are a little more complex in this manner, and, dependent upon what tunneling mode you have configured on your controllers, the IGMP messages sent from a wireless client can be affected. The default mobility tunneling mode on a controller is asymmetrical. This means that return traffic to the client is sent to the anchor WLC and then forwarded to the foreign WLC, where the associated client connection resides. Outbound packets are forwarded out the foreign WLC interface. In symmetrical mobility tunneling mode, both inbound and outbound traffics are tunneled to the anchor controller.
If the listening client roams to a controller in a different subnet, the multicast packets are tunneled to the anchor controller of the client to avoid the reverse path filtering (RPF) check. The anchor then forwards the multicast packets to the infrastructure switch.
CAPWAP APs transmit multicast packets at one of the configured mandatory data rates.
Because multicast frames are not retransmitted at the MAC layer, clients at the edge of the cell can fail to receive them successfully. If reliable reception is a goal, multicast frames must be transmitted at a low data rate, by disabling the higher mandatory data rates. If support for high data rate multicast frames is required, it can be useful to shrink the cell size and disable all lower data rates, or to use Media Stream.
Depending on your requirements, you can take these actions:
If you need to transmit multicast data with the greatest reliability and if there is no need for great multicast bandwidth, then configure a single basic rate, that is low enough to reach the edges of the wireless cells.
The parameters that affect Multicast forwarding are:
Note: FlexConnect APs join the CAPWAP multicast group only if they have centrally switched WLANs. Flex APs with only locally switched WLANs do not join the CAPWAP multicast group.
Table 1. Platform Support for Global Multicast and Multicast Mode | |||
Platform | Global Multicast | Multicast Mode | Supported |
Cisco 5520, 8510, and 8540 Controllers | Enabled | Unicast | No |
Enabled | Multicast | Yes | |
Disabled | Unicast | No multicast support (configuration supported) | |
Disabled | Multicast | No multicast support (configuration supported) | |
Cisco Flex 7510 Controller | Global Multicast cannot be enabled. Only Unicast mode is supported. Also, AP-Multicast mode cannot be changed to Multicast-Multicast. | ||
Cisco 2504 Controller | Only Multicast mode is supported. | ||
Cisco vWLC | Multicast is not supported; only Unicast mode is supported. | ||
Cisco 3504 Controller and Cisco 5508 Controller | Enabled | Unicast | Yes |
Enabled | Multicast | Yes | |
Disabled | Unicast | Yes | |
Disabled | Multicast | No |
All devices and setup are shown in the diagram:
The devices need to be configured for basic IP connectivity and enable multicasting in the network. Therefore, users can send and receive multicast traffic from the wired side to the wireless side and vice versa.
This document uses these IP addresses for the WLC, AP, and wireless clients:
WLC Management Interface IP address: 10.63.84.48/23 LAP IP address: 172.16.16.0/23 Wireless Client C1 IP address: 192.168.47.17/24 Wired Client W1 IP address: 192.168.48.11/24
CAPWAP multicast IP address : 239.2.2.2
Stream multicast address : 239.100.100.100
In order to configure the devices for this setup, these need to be performed:
Before you configure multicasting on WLCs, you must configure the WLC for basic operation and register the APs to the WLC. This document assumes that the WLC is configured for basic operation and that the LAPs are registered to the WLC. If you are a new user trying to set up the WLC for basic operation with LAPs, refer to Lightweight AP (LAP) Registration to a Wireless LAN Controller (WLC).
Once the LAPs are registered to the WLC, complete these tasks in order to configure the LAPs and WLC for this setup:
The first step is to create a WLAN that the wireless clients can connect to and receive access to the network. Complete these steps in order to create a WLAN on the WLC:
In this example, the WLAN is named MulticastUsers
and the WLAN ID is 1:
Click Apply
.
In the WLAN > Edit Window
, define the parameters specific to the WLAN.
For the WLAN, choose the appropriate interface from the Interface Name
field.
This example maps the MulticastUsers (192.168.47.0/24) interface to the WLAN.
Choose the other parameters, which depend on the design requirements.
In this example, you can use WLAN with no L2 Security (Open WLAN).
Click Apply
.
Issue these commands in order to configure the WLANs on WLC with the use of the CLI:
Issue the config wlan create <wlan-id> <wlan-name>
command in order to create a new WLAN. For wlan-id, enter an ID from 1 to 16. For wlan-name, enter an SSID up to 31 alphanumeric characters.
Issue the config wlan enable <wlan-id>
command in order to enable a WLAN.
For the example in this document, the commands are:
config wlan create 1 MulticastUsers config wlan enable 1
The next step is to configure the WLC for multicasting. Complete these steps:
Navigate to Controller > Multicast
. This opens the Multicast page.
Choose the Enable Global Multicast Mode
check box to configure the WLC to forward multicast packets. The default value is disabled.
Click Apply
.
Issue these commands in order to enable multicast through the CLI:
For the example in this document, the commands are:
config network multicast global enable config network multicast mode multicast 239.2.2.2
After the administrator enables multicast (multicast mode is disabled by default) and configures the CAPWAP multicast group, the new multicast algorithm works in one of these ways:
When the source of the multicast group is on the wired LAN:
One Multicast is enabled and the CAPWAP multicast group is configured. The AP issues an IGMP request in order to join the controller CAPWAP multicast group. This triggers the normal setup for the multicast state in the multicast-enabled routers, between the controller and APs. The source IP address for the multicast group is the controller management interface IP address.
When the controller receives a multicast packet from any of the client VLANs on the first hop router, it transmits the packet to the CAPWAP multicast group via the management interface at the lowest QoS level. The QoS bits for the CAPWAP multicast packet are hard-coded at the lowest level and cannot be changed by the user.
The multicast-enabled network delivers the CAPWAP multicast packet to each of the APs that have joined the CAPWAP multicast group. The multicast-enabled network uses the normal multicast mechanisms in the routers to replicate the packet along the way, as needed so that the multicast packet reaches all APs. This relieves the controller from the replication of multicast packets.
APs can receive other multicast packets, but process only the multicast packets that come from the controller to which they are currently joined. Any other copies are discarded. If more than one WLAN SSID is associated with the VLAN from where the original multicast packet was sent, the AP transmits the multicast packet over each WLAN SSID (along with the WLAN bitmap in the CAPWAP header). In addition, if that WLAN SSID is on both radios (802.11g and 802.11a), both radios transmit the multicast packet on the WLAN SSID if there are clients associated with it, even if those clients did not request the multicast traffic.
When the source of the multicast group is a wireless client, the multicast packet is unicast (CAPWAP-encapsulated) from the AP to the controller, similar to standard wireless client traffic.
The controller makes two copies of the multicast packet. One copy is sent out to the VLAN associated with the WLAN SSID on which it arrived. This enables receivers on the wired LAN to receive the multicast stream and the router to learn about the new multicast group. The second copy of the packet is CAPWAP-encapsulated and is sent to the CAPWAP multicast group so that wireless clients can receive the multicast stream.
In order to configure the wired network for this setup, you need to configure the L3 Core switch for basic routing and enable multicast routing.
Any multicast protocol can be used in the wired network. This document uses PIM-DM as the multicast protocol. Refer to the Cisco IOS IP Multicast Configuration Guide for detailed information on the different protocols that can be used for multicasting in a wired network.
Core Switch Configuration |
---|
ip multicast-routing !--- Enables IP Multicasting on the network. interface Vlan16 |
No configuration is needed on the L2 access switch since IGMP snooping is enabled by default on Cisco Switches.
Use this section to confirm that your configuration works properly.
In order to verify the configuration, you need to send multicast traffic from source W1 and check if multicast traffic flows through the wired network and reaches the wired and wireless group members (C1).
Perform this task in order to test if IP multicast is configured correctly in your network.
Check multicast routing on the Core switch and IGMP memberships with the commands show ip mroute and show ip igmp membership . The output from the previous example is shown here:
CORE1-R1#show ip mroute
IP Multicast Routing Table
Flags: D - Dense, S - Sparse, B - Bidir Group, s - SSM Group, C - Connected,
L - Local, P - Pruned, R - RP-bit set, F - Register flag,
T - SPT-bit set, J - Join SPT, M - MSDP created entry,
X - Proxy Join Timer Running, A - Candidate for MSDP Advertisement,
U - URD, I - Received Source Specific Host Report, Z - Multicast Tunnel
Y - Joined MDT-data group, y - Sending to MDT-data group
Outgoing interface flags: H - Hardware switched, A - Assert winner
Timers: Uptime/Expires
Interface state: Interface, Next-Hop or VCD, State/Mode
(*, 239.255.255.250), 21:19:09/00:02:55, RP 0.0.0.0, flags: DC
Incoming interface: Null, RPF nbr 0.0.0.0
Outgoing interface list:
Vlan48, Forward/Dense, 00:04:48/00:00:00
Vlan84, Forward/Sparse-Dense, 21:19:09/00:00:00
(*, 239.100.100.100), 00:01:58/stopped, RP 0.0.0.0, flags: DC
Incoming interface: Null, RPF nbr 0.0.0.0
Outgoing interface list:
Vlan47, Forward/Dense, 00:01:29/00:00:00
(192.168.48.11, 239.100.100.100), 00:01:58/00:02:58, flags: T
Incoming interface: Vlan48, RPF nbr 0.0.0.0, RPF-MFD
Outgoing interface list:
Vlan47, Forward/Dense, 00:01:29/00:00:00, H
(*, 224.0.1.40), 1d21h/00:02:54, RP 0.0.0.0, flags: DCL
Incoming interface: Null, RPF nbr 0.0.0.0
Outgoing interface list:
Vlan84, Forward/Sparse-Dense, 1d01h/00:00:00
(*, 239.2.2.2), 01:21:13/stopped, RP 0.0.0.0, flags: DC
Incoming interface: Null, RPF nbr 0.0.0.0
Outgoing interface list:
Vlan16, Forward/Dense, 00:33:10/00:00:00
(10.63.84.48, 239.2.2.2), 00:33:46/00:02:51, flags: T
Incoming interface: Vlan84, RPF nbr 0.0.0.0, RPF-MFD
Outgoing interface list:
Vlan16, Forward/Dense, 00:33:10/00:00:00, H
CORE1-R1#show ip igmp membership
Flags: A - aggregate, T - tracked
L - Local, S - static, V - virtual, R - Reported through v3
I - v3lite, U - Urd, M - SSM (S,G) channel
1,2,3 - The version of IGMP, the group is in
hannel/Group-Flags:
/ - Filtering entry (Exclude mode (S,G), Include mode (G))
Reporter:
<mac-or-ip-address> - last reporter if group is not explicitly tracked
<n>/<m> - <n> reporter in include mode, <m> reporter in exclude
Channel/Group Reporter Uptime Exp. Flags Interface
*,239.2.2.2 172.16.16.17 00:33:25 02:48 2A Vl16 !--- AP membership to CAPWAP multicast address.
*,224.0.1.40 10.63.84.1 1d01h 02:38 2LA Vl84
*,239.100.100.100 192.168.47.10 00:01:45 02:56 2A Vl47 !--- Wireless Client C1 to Stream multicast address .
*,239.255.255.250 192.168.48.11 00:05:03 02:58 2A Vl48
*,239.255.255.250 10.63.85.163 21:19:25 02:40 2A Vl84
You can also use the command show ip mroute count
in order to ensure that multicast routing works properly:
CORE1-R1#show ip mroute count
IP Multicast Statistics
10 routes using 5448 bytes of memory
6 groups, 0.66 average sources per group
Forwarding Counts: Pkt Count/Pkts per second/Avg Pkt Size/Kilobits per second
Other counts: Total/RPF failed/Other drops(OIF-null, rate-limit etc)
Group: 239.255.255.250, Source count: 0, Packets forwarded: 0, Packets received: 0
Group: 239.100.100.100, Source count: 1, Packets forwarded: 1351, Packets received: 1491
Source: 192.168.48.11/32, Forwarding: 1351/14/1338/151, Other: 1491/0/140
Group: 224.0.1.40, Source count: 0, Packets forwarded: 0, Packets received: 0
Group: 239.2.2.2, Source count: 1, Packets forwarded: 3714, Packets received: 3726
Source: 10.63.84.48/32, Forwarding: 3714/28/551/163, Other: 3726/0/12
From these outputs, you can see that multicast traffic flows from source W1 and is received by the group members.
Revision | Publish Date | Comments |
---|---|---|
4.0 |
25-Nov-2024 |
Recertification, reformatting. |
3.0 |
23-Nov-2023 |
Recertification |
1.0 |
17-Jan-2007 |
Initial Release |