Can I show my iPad on that big-ass conference room screen? Yes sir. Yes you can. To do iPad mirroring, you need AirPlay which means you need to support multicast over wireless. Specifically, Apple’s Bonjour protocol. Cisco’s WLC code currently has the features to support this type of functionality. So, as IT professionals, we can say yes to iPad mirroring, and make it work over the enterprise network in a standardized, scalable manner.
So how do we make this work? And more importantly, since we are talking about video over wireless, how do we ensure the quality of streamed Youtube videos in HD? This is how I did it…
Which wired device to use? This is the device that will receive and display the mirrored iPad screen. We went through the steps listed below, just in lab. Here is a pic of the messy messy lab:
The following devices were tested for connectivity and video quality:
- Mac Mini running AirServer
- PC running AirServer
- PC running Reflections
Reflections was eliminated because we found it could not mirror wireless to wired. The other three options performed generally the same. PC running AirServer was chosen as it made the most sense for our organization.
High level diagram:
WLC 5508 126.96.36.199
Wireless clients (iOS Devices 7.x and 6.x) use Airplay to mirror to the PCs running AirServer.
APs are in mDNS mode and snooping the vlan the PCs reside in.
AirServer (1.9.4) installed on wired PCs. Giant monitors are connected to these PCs.
Wireless clients in separate WLAN.
My WLCs are in the Data Center and we needed to have this functionality working in our user campus. So the WLC didnt know about the wired devices that were running AirServer. One option is to enable multicast throughout your enterprise network (not fun). In 7.5 Cisco provided functionality to achieve this by having the AP snoop on the vlan the wired device is in. This feature is called mDNS AP.
Enabled bonjour gateway and mDNS AP (trunk mode)
And by the way this allows you to do more than just AirPlay – AirPrint, File Sharing, etc are available services as well.
Here is the config I used on the AP switchport that is doing mDNS snooping:
switchport trunk encapsulation dot1q
switchport trunk native vlan 50
switchport trunk allowed vlan 50,10
switchport mode trunk
Where vlan 50 is the vlan for APs. And vlan 10 is the vlan for the wired PCs running AirServer.
And then configure the WLC to set the AP(s) to mDNS AP mode:
config mdns ap enable AP-NAME-01 vlan 10
AirPlay should work at this point, but it may not work very well. Disconnects and degraded video quality are symptoms I experienced. I used the following guide to optimize the wireless network for video.
Enabled videostream and wireless QoS
This is a big detailed doc and you may want to pick pieces and parts out that are relevant.
Verified via packet capture the client traffic is being marked for QoS (and Gold enabled on WLAN)
Differentiated Services Field: 0x80 (DSCP 0x20: Class Selector 4; ECN: 0x00: Not-ECT (Not ECN-Capable Transport))
And so we have the finished solution. An iPad playing a Planet Earth video on YouTube that is being mirrored via AirPlay to a wired PC running AirServer.
Also, I used a few articles written by MRNCCIEW that were very helpful.