Miracast Performance Overview
Miracast is a standard for wireless connections from sending devices (such as laptops, tablets, or smartphones) to display receivers (such as TVs, monitors, or projectors), introduced in 2012 by the Wi-Fi Alliance. It can roughly be described as "HDMI over Wi-Fi," replacing the cable from the device to the display.
The standards for Miracast are defined by the Wi-Fi Alliance, with significant contributions from Microsoft. It has similar functionality to AirPlay from Apple and Chromecast from Google. A variety of devices now natively support Miracast, including laptops running Windows 8.1 and 10, as well as devices from consumer companies such as Samsung, LG, Roku, and Amazon. Mersive introduced Miracast support starting with Solstice 3.5, and made improvements to Miracast connectivity, video and audio delivery, and latency in Solstice 4.6
Note
Android phones starting with version 4.2 were Miracast-enabled, but support was dropped at version 6.0.
Mersive's Miracast Support
Mersive’s implementation of Miracast fully complies with the Wi-Fi Alliance specification for Wi-Fi Direct (WFD) and the Miracast over Infrastructure Connection Establishment Protocol (used for the Existing Network implementation). It uses the following protocols:
Device discovery based on Wi-Fi Protected Setup (WPS), a peer-to-peer (P2P) protocol
A control protocol based on RTSP, layered on TCP
A streaming protocol based on RTP, layered on UDP
Mersive is one of very few vendors that support both WFD and Existing Network implementations. Furthermore, the Mersive’s Existing Network, or infrastructure mode, supports encryption which is critical in enterprise network deployments. Mersive’s implementation of Miracast also honors the use of default or “per Pod” encryption certificates.
Miracast Limitations
Miracast is based on UDP which does not guarantee data packet delivery. Consequently, Miracast connections are more sensitive to network stability. When compounded with wireless infrastructure limitations and environmental factors, Miracast performance may not be optimal. Mersive’s implementation avoids many of these issues as it is architected to be more resilient in dealing with environmental gaps. However, your Miracast performance also depends on the user device’s implementation of Miracast support. For the best performance and collaboration experience, Mersive always recommends using the Solstice app.
Technical Description
Miracast supports sharing over two different transport types:
Wi-Fi-Direct (WFD). A peer-to-peer (P2P) connection that does not require a wireless access point (WAP) where your client device connects in a single-hop to the synch device (i.e., the Solstice Pod). In this mode there is no need for any additional network infrastructure
Existing Network (or Miracast over Infrastructure). A connection over an existing Wi-Fi or Ethernet network using the “Miracast over Infrastructure Connection Establishment Protocol” (MS-MICE). Typically, the existing network is an internal LAN that can be either Wi-Fi or Ethernet.
Process for Sharing with Miracast
Three steps need to be completed in the process of sharing content using Miracast on a Solstice Pod:
Device discovery of Miracast-enabled Solstice Pod (with Miracast enabled).
Authenticating to the Solstice Pod.
Sharing device content to the Solstice Pod over Miracast.
1. Device discovery of Miracast-enabled Solstice Pod (with Miracast enabled)
After Miracast is enabled, the Solstice Pod broadcasts that it supports Miracast along with some of its capabilities such as SSID, name of Pod, encryption method, infrastructure capability, etc. This is similar to how a Wi-Fi hotspot broadcasts SSIDs so you can connect.
This broadcast is the required method for devices to find the Miracast-enabled Pod to Miracast using either Wi-Fi Direct or Existing Network. It is even required even if you only use the Existing Network transport.
If you disable WFD in Solstice, it does not disable Wi-Fi Discovery broadcast as it is the only way to find the Pod. In this mode, essentially WFD connections are refused but Wi-Fi itself is still on.
2. Authenticating to the Solstice Pod
After device discovery, the IP addresses of the client device and Solstice Pod are passed to the protocol layers, which initiate a TCP connection which allows a capabilities exchange and session setup. This is followed by a UDP connection for video and audio streaming.
Additionally, the way the device connects to the Pod and how it authenticates, is different depending on whether the Solstice Pod is set up to use Wi-Fi Direct or Existing Network.
If the Pod is in Wi-Fi Direct mode, the device negotiates directly with the Pod via Wi-Fi and joins as a P2P group. If Access Control for the Pod has “Enable screen key” checked, the device authenticates via WPS. (This is functionality that the WPS button on your Wi-Fi router employs to connect devices). If “Enable screen key” is not checked, the device connects without authentication.
If the Pod is in Existing Network mode, the device negotiates and connects with network port (Wi-Fi or Ethernet) and check to see if a screen key is required. If a screen key is required, then it encrypts traffic using Datagram Transport Layer Security (DTLS).
3. Sharing Device Content over Miracast
Audio and video are shared over Miracast using the Real-time Transport Protocol (RTP). You can have a maximum of four simultaneous Miracast session on a single Pod. However, depending on network bandwidth and latency, two Miracast sessions may be more practical.
Of course, all Miracast connections are concurrent with all other client connections to the Pod.
Miracast Performance Expectations by Use Case
The sections below describe the options for Miracast network configuration and discuss the setup and use of Solstice’s Miracast support to achieve the best possible performance.
Note
Both the Pod’s local configuration panel and the Solstice Dashboard allow the user to select a Miracast mode, or select both modes. For more information on how to configure Miracast, see Enable Sharing with Miracast.
Over Existing Network – Miracast via Ethernet
Miracast mode: Over Existing Network
Solstice Pod network connection: Attached via Ethernet
Client device network connection: Attached via Ethernet
This use case offers the highest reliability for Miracast sessions, with ~0% packet loss and >95% connection success. The latency should remain in the range 100-166ms, and corruption should be non-existent. If both Ethernet and Wi-Fi are enabled, Miracast favors Ethernet. This is the least common use case because it requires an Ethernet cable connection, which in most cases means the device is a laptop.
Over Existing Network – Miracast via Wireless Network
Miracast mode: Over Existing Network
Solstice Pod network connection: Attached wirelessly
Client device network connection: Attached wirelessly
The performance of this use case is entirely dependent on the performance of the existing wireless network. Problems such as distant access points or low signal strength can significantly decrease reliability and create packet loss as high as 10% and latency of multiple seconds.
Measuring signal strength of the existing wireless network is an important step in setting up this mode. Solstice Pods can internally measure signal strength, but this information is not available to users. Android phones and many other devices can measure Wi-Fi signal strength. Here is a table that lists expected performance based on signal strength:
Signal Strength | Signal Quality | Description |
---|---|---|
> -30 dBm | Excellent | Maximum achievable signal strength |
> -50 dBm | Very Good | Excellent level for all network uses |
> -65 dBm | Good | Sufficient level for streaming video |
> -70 dBm | Marginal | Acceptable only for web browsing and email |
> -80 dBm | Poor | Packet delivery will be unreliable |
< -90 dBm | Very Poor | Mostly noise, not usable |
Over Existing Network – Miracast via Ethernet or Wireless Network
Miracast mode: Over Existing Network
Solstice Pod network connection: Attached via Ethernet or wirelessly
Client device network connection: Attached via Ethernet or wirelessly
The performance and latency of Miracast in this use case falls somewhere between that of Miracast via Ethernet and Miracast via Wireless Network, and is mostly determined by the quality of the wireless network, because Ethernet is highly reliable.
WiFi Direct – Miracast via WiFi Direct
Miracast mode: Stream video over Wi-Fi Direct
Solstice Pod network connection: No network connection required, but Pod must have Wireless Settings enabled and WAP disabled
Client device network connnection: No network connection required
This use case offers reasonable reliability for Miracast sessions, generally with <1% packet loss and >90% connection success. The latency should remain in the range 100-166ms, and corruption should be limited. Wi-Fi Direct works well because a link is made directly between the device and the Solstice Pod, thereby avoiding any performance issues with the enterprise wireless network. Wi-Fi Direct depends on the device and the Pod being within approximately 150-200 feet of each other, with mobile devices typically needing to be within a 25-35-foot range. This essentially means that the device and Pod need to be in the same room.
Other Important Considerations
The resolution of Miracast streaming is limited to 1080p.
Miracast beaconing (Wi-Fi Direct mode) occurs on the 2.4 GHz band on channels 1, 6, or 11.
Miracast streaming when in Wi-Fi Direct mode also occurs on the 2.4 GHz band on channels 1, 6, or 11. The reason is because Wi-Fi Direct mode does not use the 5 GHz band. Solstice cannot configure which channels Wi-Fi Direct uses.
If using Wi-Fi Direct, ensure that there is no channel overlap within your corporate wireless environment. If there is significant noise on the same channels that are used for Wi-Fi Direct, the user experience and performance may be significantly degraded.