artofrf.com

Ali's Technology Blog

Menu
  • Home
  • Important Links
  • About Me
  • Tools and Scripts
Menu

mDNS, AWDL journey

Posted on January 16, 2024January 18, 2024 by mali

I was recently doing some troubleshooting around screen casting/mirroring/sharing etc and kept getting deeper into this mDNS and AWDL hole. After some conversations in Mist Slack Channel with Bryan Ward, Brian Powers, Robert Haviland, Jake Snyder, Allyn Crowe I got some clarification.

I decided to document some of what I tested and discovered.

Test Setup:

  • Apple TV in VLAN20 connected to SSID (winteriscoming).
  • VLAN20 SSID(winteriscoming) –> Isolation – Same AP
  • VLAN30 SSID(mspw) –> Isolation – Disabled

Tools I used:

  • Wi-Fi Explorer 3
  • Airtool 2
  • Ekahau Side Kick 2
  • Discovery App
  • M1 Macbook
  • iPhone Pro 15
  • iPad
  • BLE Scanner
  • Mist AP43
  • Mist AP34

Test 1 – Same VLAN/SSID (Isolation – Same AP):

  • Apple TV in VLAN20 connected to SSID (winteriscoming).
  • Mac, iPad and iPhone in VLAN20.
  • VLAN20 SSID(winteriscoming) –> Isolation – Same AP
  • No Bonjour Gateway Enabled
  • Apple TV, Macbook and iPhone all connected to the same AP/different APs

Default behavior of a WLAN in a flat VLAN allows mDNS packets. Devices should be able to discover each other and there is no need for Bonjour Gateway, unless “Broadcast/Multicast” filtering is on. For this test I enabled “Isolation” –> Same AP” and did not have any Filtering(Wireless) enabled.

Mist WLAN – Isolation Options

Here’s all my devices connected to the same access point and SSID using VLAN20.

Mist – Clients

Next I used the “Discovery App” to validate that my Mac and iPhone 15 Pro can discover the AppleTV named “Living Room”.

Discovery app

Since I have the “Isolation” on “Same AP” enabled I noticed that when all devices were connected to the same Mist AP34-01, I was not able to communicate with them since checking that option disables any peer to peer communication.

Ping

As soon as I moved the devices to different APs, I was able to communicate successfully.

Mist – Clients
Successful Ping – Different APs

Test 2 – Different VLANs/SSID (Bonjour Gateway Disabled):

  • Apple TV in VLAN20 connected to SSID (winteriscoming).
  • Mac, iPad and iPhone in VLAN30.
  • VLAN20 SSID(winteriscoming).
  • VLAN30 SSID(mspw).
  • VLAN30 SSID(Mist-TLS)
  • Bonjour Gateway Disabled.
  • Bluetooth on.

In this test I have the Apple TV on one SSID/VLAN and other client devices on different SSID/VLAN as listed above.

With Bonjour Gateway Disabled, I’m unable to see my Apple TV in the Discovery app. NOTE: I was able to only see my MacBook from my iPad because they are both in VLAN30.

Discovery App – iPad/Macbook

Can I still Mirror my screen between two devices and able to see other devices? I tested this from my iPad and iPhone and then my Mac, and it looks like screen mirroring still works.

Test from iPad/iPhone
Test from MacBook Air

Reason behind this is AWDL (Apple Wireless Direct Link); devices will discover each other using Bluetooth and then establish a direct link with each other using the “Social Channels”, 6, 44 and 149.

AWDL – Social Channels

This pcap from Wireshark shows AWDL frames.

AWDL – MIF/PSF

Another noticeable thing was that when I was doing screen mirroring from my iPad or iPhone it was only using 20 MHz channels, however, when I did a large video file transfer from my phone to the laptop it ended up using 80 MHz channel.

AWDL – SpecAn using Ekahau Side Kick v2

Since it uses Bluetooth, discovery range is far, so I went outside my house and tried to mirror again; this time nothing showed up as I expected.

iPhone Screen Mirroring

Bluetooth Off:

What happens if I use all the same parameters from Test #2 above and turn the Bluetooth off? Since the discovery is happening using Bluetooth, as expected I did not see any results.

MacBoook – BT Off/Screen Mirroring

Next I wanted to test the same scenario on my iPhone and iPad. Just like my MacBook, I expected the Screen Mirroring to not work, however, after I turned off the Bluetooth from the quick menu, I was still able to see my Apple TV and screen mirror.

Why this happens on iPad/iPhone? I created a short video that explains this, here is some further reading from Apple on this, “Use Bluetooth and Wi-Fi in Control Center”.

mDNS Testing

I used a BLE Scanner to do some testing and after turning off the Bluetooth from the quick menu, I was able to see the Apple TV, but I was not able to connect to it as shown in the video later.

BLE Scanner

Test 3 – Different VLANs/SSID (Bonjour Gateway Enabled):

  • Apple TV in VLAN20 connected to SSID (winteriscoming).
  • Mac, iPad and iPhone in VLAN30.
  • VLAN20 SSID(winteriscoming).
  • VLAN30 SSID(mspw).
  • VLAN30 SSID(Mist-TLS)
  • Bonjour Gateway Enabled.
  • Bluetooth on.

With the Bojour Gateway enabled on the SSID (mspw), now I am able to see Apple TV from VLAN30 in the Discovery App on my MacBook, iPad and iPhone.

Discovery App – Bonjour Gateway Enabled

Bluetooth Off:

Even if I disable the Bluetooth completely, I am able to see the Apple TV and cast to it successfully now.

mDNS Testing – Bonjour Gateway Enabled

Test 4 – Different VLANs/SSID (Bonjour Gateway Enabled):

Spectrum Analysis (AirDrop):

  • Apple TV in VLAN20 connected to SSID (winteriscoming).
  • MacBook SSID (winteriscoming)
  • iPad/iPhone SSID (mspw)
  • VLAN20 SSID(winteriscoming).
  • VLAN30 SSID(mspw).
  • VLAN30 SSID(Mist-TLS)
  • Bonjour Gateway Enabled.
  • Bluetooth on

I wanted to look at some Spectrum Analysis while doing a file transfer from VLAN30 to VLAN20 with the Bonjour Gateway Enabled. This time I connected my MacBook to the SSID (winteriscoming) in VLAN20.

Mist – Clients
Mist – AP Channels

AP43-01 is where my iPhone was connected. This AP was on channel 100. AP43-02 is where the Apple TV was connected, this AP was was on channel 132. Spectrum Analyzer shows little bit traffic on channel 100 and 132, but notice how 149, 153, 157, 161 all four channels are being utilized during the file transfer. So AirDrop traffic ended up using the 80 MHz channel with 149 as the primary channel.

AirDrop

In this next video, I took the phone further away from my MacBook to see how it will behave. I noticed very little traffic on channels 52 (AP43-01 changed channel) and 132, but the video clearly shows that AirDrop transfer took a while to start and it started on 80 MHz channels with 149 being the primary.

Any mirroring on the other hand, I did not notice it hitting the 80 MHz channels with 149 as a primary channel.

AirDrop Testing – iPhone out of range

Summary:

I did not realize it would take this long to write this, but the testing every thing multiple times and video editing is apparently very time consuming. I feel like, there is more to all this and next I’d love to dig into some more mDNS pcaps and Spectrum Analysis.

I used Juniper Mist Access Points so the configuration is specific to Juniper Mist WLAN, but I’d imagine basic rules should apply to all the vendors. If I get enough time I may test out another vendor.

I must admit that I learned some new stuff along the way while writing this. I highly encourage you to follow some of these links that were very helpful to me during this testing.

  • AWDL | Ferney Muñoz | WLPC Phoenix 2020 (Love this video, Ferney did a great job)
  • Apples to Apples | Bryan Ward (Excellent presentation from Bryan and he shared his slides from the WLPC presentation with some good data/content. Go Read it and then read it again atleast few more times)
  • I also found this resource that revolves around the security aspect of AWDL, “A Billion Open Interfaces for Eve and Mallory: MitM, DoS, and Tracking Attacks on iOS and macOS Through Apple Wireless Direct Link”. And here is a link to their slide deck.

If you have made it this far, would love to hear your thoughts, feedback and about your mDNS, AWDL experiences. If you find any information wrong or incomplete, please reach out to me and I’d be happy to update that information. Thank you for reading.

Category: Troubleshooting, Wireless

2 thoughts on “mDNS, AWDL journey”

  1. Bhupinder Misra says:
    January 23, 2024 at 1:04 am

    Hi Ali,
    Nice write up and very informative. The nuances of Airplay/airdrop are not trivial.
    I see that there is a difference between disabling bluetooth (control center) and turning in off (settings). I think if you turn it off from settings then airplay would not work right?

    I wanted to check if you have some across apple tv deployments in Corp/Edu and what are some of the best practices around this.

    Reply
  2. J.W. Hannam says:
    January 24, 2024 at 2:22 am

    Fantastic write up Ali. Looking forward to WPLC2024

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Recent Posts

  • Nile Secure Guest – Configuration and Use Case
  • WLAN Pros Toolbox
  • Nile does NAC – Configuring Trust Engine
  • WLAN Validator
  • PCAP I/O Graph Analyzer

Tags

AirDrop arista Arista AGNI Arista CV-CUE Arista NAC Arista WIPS Arista WPA3 UPSK Aruba Central Automating Mist Switch Templates Automation AWDL Configuring Switch Templates in Mist CWAP 403 EAP Format MAC Addresses Hamina Network Planner Juniper SRX300 MacBook Marvis mdns MFD8 MFD9 Mist Access Assurance MistAI Mist Auto Placement Mist MPSK Mist Wireless NaaS Networking Field Day NFD32 NileNav Nile Secure Nile Wi-Fi Social Channels Tech Field Day Troubleshooting with Marvis Troubleshooting with Mist Troubleshooting with Mist AI Troubleshooting with Wireshark Wireless Adjuster Wireless Adjuster Level II Wireless troubleshooting WLPC wlpc2023 Wyebot

Tech Blogs

  • WiFiTodd
  • CCNA Wireless
  • Cisco Full Bars
  • Packet Life
  • Havilandweb
  • Gjermund Raaen
  • Bad-Fi
  • The ASCII Construct
  • Juniper Port Checker
  • WiFrizzy
  • Spectrum Chart
  • BadgerWiFi

Recent Comments

  • Hiten Thakkar on PCAP I/O Graph Analyzer
  • mali on Deploying Nile Secure – My First NSB
  • Larry Farrish on Deploying Nile Secure – My First NSB
  • Courtney on Mist Access Point – CSV
  • ayoub chabrouk on Ubiquiti stealing the show at MFD11

Archives

  • August 2026
  • July 2026
  • March 2026
  • February 2026
  • December 2025
  • November 2025
  • October 2025
  • August 2025
  • May 2025
  • January 2025
  • December 2024
  • November 2024
  • October 2024
  • September 2024
  • August 2024
  • July 2024
  • May 2024
  • April 2024
  • March 2024
  • February 2024
  • January 2024
  • December 2023
  • September 2023
  • August 2023
  • June 2023
  • May 2023
  • April 2023
  • February 2023
  • November 2022
  • October 2022
  • August 2022
  • July 2022
  • June 2022
  • May 2022
  • April 2022
  • March 2022
  • February 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • August 2021
  • July 2021
  • May 2021
  • April 2021
  • March 2021
  • July 2020
  • June 2020
  • May 2020
  • April 2020
  • March 2020
  • February 2020
  • January 2020
  • December 2019
  • November 2019
  • October 2019
  • September 2019
  • August 2019
  • July 2019
  • June 2019
  • April 2019
  • March 2019
  • November 2018
  • October 2018
  • September 2018
  • May 2018
  • January 2018
  • December 2017
  • August 2017
  • January 2017
  • September 2014
  • December 2013
  • October 2013
  • May 2013
  • August 2012
  • July 2012

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

Categories

  • AeroHive
  • Arista
  • Arista
  • Aruba
  • Aruba
  • Aruba Central
  • BYoD
  • Certifications
  • Cisco
  • Cisco
  • Cisco EEM Scripting
  • Cisco Routing
  • Cisco Security
  • Cisco VoIP
  • Cisco VPN
  • Cisco Wireless
  • Conferences and Meetings
  • Design
  • Ekahau
  • General
  • Hamina
  • IoT, IIoT, OT
  • Juniper Security
  • Juniper Switching
  • Juniper/Mist
  • Linux
  • Microsoft
  • Mist
  • Mist Wireless
  • Nile
  • Nile Secure
  • Nile Wi-Fi
  • Programming/Automation
  • Python
  • Ruckus
  • Ruckus Wireless
  • Ruckus/Brocade
  • Ruckus/Brocade Scripting
  • Ruckus/Brocade Switching
  • Secure Guest Service
  • Security
  • Switching
  • Tools
  • Troubleshooting
  • Trust Engine
  • Uncategorized
  • Windows
  • Wireless
  • Wireless
  • WLAN Tools
© 2026 artofrf.com | Powered by Minimalist Blog WordPress Theme