1 / 28

Understanding the Networking Performance of Wear OS

This study delves into the unique networking challenges and performance factors in Wear OS, compared to smartphones, offering insights into latency, buffer management, handover delays, and more. The research highlights the impact of smartphone proxying on network performance and suggests strategies for mitigating issues like buffer bloat. The study also evaluates BT-WiFi handover performance, providing valuable findings for optimizing network interface switching in wearables.

karenrich
Download Presentation

Understanding the Networking Performance of Wear OS

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Understanding the Networking Performance of Wear OS Xiao Zhu1Yihua Ethan Guo2Ashkan Nikravesh1 Feng Qian3 Z. Morley Mao1 1University of Michigan 2Uber Techologies Inc. 3Univeristy of Minnesota

  2. Wearable Networking IsImportant Increased popularity Multiple network interfaces Third-party apps

  3. ItIsDifferent fromSmartphoneNetworking • Bluetooth (BT) communication • Differentprotocolstackandradiostatemachine

  4. ItIsDifferent fromSmartphoneNetworking • Bluetooth (BT) communication • Differentprotocolstackandradiostatemachine • Smartphone as a “gateway” • ApairofproxiesinWearOS Client app Serverapp TCP/IP stack TCP/IP stack TCP/IP stack Wear OS proxy Wear OS proxy BT stack BT stack

  5. ItIsDifferent fromSmartphoneNetworking • Bluetooth (BT) communication • Differentprotocolstackandradiostatemachine • Smartphone as a “gateway” • ApairofproxiesinWearOS • Network interface switching • BThasamuchshorterrange • Verticalhandoverunder mobility

  6. Wearable Networking Stack Is Under-explored Application[NirjonMobiSys 15][Shen MobiSys 16] Networking Traffic characterization:[KolamunnaIMC18] Core networking stack: ? OS [Liu APSys 15] [Liu Mobisys 16] UI [Chen CHI 14] [Xu MobiCom 17] Power [Liu Mobisys17][Yang ICNP 17] The networking performance and application QoEoncommercial wearables is not well-studied.

  7. WearableNetworkingTestbed uplink downlink

  8. TheWearableNetworkMeasurementToolkit • ActiveMeasurements • Bulkdatatransferandconstantbitratetraffic • Automaticreconnectionuponnetworkfailure • PassiveMeasurements • CollectWiFiandBTtracesfrommultipleentities and layers • Packettransmission/receptionpipelineInstrumentation • Signalstrengthandnetworkstates • Open-source • 3K lines of C++, Java, and Python code • https://github.com/XiaoShawnZhu/WearMan.

  9. OverviewofMeasurementFindings • Proxyatpairedsmartphone • End-to-endlatency isinflatedto tens of seconds • Phone’sTCPreceivebuffercausesbufferbloat • Networkhandover • Handoversareperformedreactively • BT-WiFi handovers may take 60+ seconds • Bluetoothradioresourcemanagement • Different state machinemodels on phone andwearable • BTdownloadexperiencesfrequent“blackout” periods • Networkinterfaceselection • Wear OS’s default interface selection policy is often suboptimal • Multipathonwearablesfacesobstacles

  10. OverviewofMeasurementFindings • Proxyatpairedsmartphone • End-to-endlatency isinflatedto tens of seconds • Phone’sTCPreceivebuffercausesbufferbloat • Networkhandover • Handoversareperformedreactively • BT-WiFi handovers may take 60+ seconds • Bluetoothradioresourcemanagement • Different state machinemodels on phone andwearable • BTdownloadexperiencesfrequent“blackout” periods • Networkinterfaceselection • Wear OS’s default interface selection policy is often suboptimal • Multipathonwearablesfacesobstacles

  11. ImpactofSmartphoneProxying • End-to-end(E2E)latencycharacterization • Constantbitrate(CBR)trafficandbulktransfer E2Elatencyisdramaticallyinflatedto30+secondsforhighbitratetraffic.

  12. ImpactofSmartphoneProxying • Rootcauseanalysis • BreakingdowntheE2Elatency dataistransmittedout dataisreceivedinthephoneOSkernel dataiscopiedtotheproxy’suserspace dataissenttotheBTstack dataisdeliveredtothewearableOS

  13. ImpactofSmartphoneProxying • d2dominatestheE2Elatency • DelayincurredbyTCPreceivebuffer

  14. ImpactofSmartphoneProxying • Phone’sTCPreceivebuffersizeimpactonE2Elatency SmallerTCPreceiverbuffersizereducestheE2Elatency,butsettingittobetoosmallmaythrottletheserver-phoneconnectionthroughput.

  15. ImpactofSmartphoneProxying • Mitigatingthebufferbloat • Examinethequeuelength()onthephoneandphone-wearablebandwidth() • Throttletheserver-phoneconnectionwhenbecomeshigh Dynamicserver-phone flowcontrolthatconsidersthephone-wearablenetworkconditionreducestheE2Edelay.

  16. OverviewofMeasurementFindings • Proxyatpairedsmartphone • End-to-endlatency isinflatedto tens of seconds • Phone’sTCPreceivebuffercausesbufferbloat • Networkhandover • Handoversareperformedreactively • BT-WiFi handovers may take 60+ seconds • Bluetoothradioresourcemanagement • Different state machinemodels on phone andwearable • BTdownloadexperiencesfrequent“blackout” periods • Networkinterfaceselection • Wear OS’s default interface selection policy is often suboptimal • Multipathonwearablesfacesobstacles

  17. BT-WiFiHandoverPerformance • Monitoringthenetworkstate • ConnectivityManager in Wear OS • Avaliable or not:whether the network interface is up • Connected or not: whether the interface provides actual network connectivity • Experimentsetup • BothBTandWiFiareenabled • Real-time streaming traffic • tinyCamapp: stream real-time videos captured from an IP camera • A user wearing a smartwatch moves away from the paired smartphone

  18. BT-WiFiHandoverPerformance • Throughputandframedelayseverelydegradeduringthehandover • 60+secondsofinterruptiontimewhennovideodataisreceived

  19. Root Cause Analysis:DelayBreakdown • P1: BT is connected but data cannot be actually transmitted • P2: no network available • P3: WiFi available (interface up) but not connected • P4: WiFi connected but no application data transmission

  20. Root Cause Analysis: Delay from the Wear OS (P1, P2, and P3) Reactive in nature: Only afterBT connection gets lost completely(P1), the Wear OS turn on (P2) and then connect to (P3) WiFi.

  21. Root Cause Analysis: Delay Incurred by the Wearable App (P4) • Insufficient protocol support for applications: wearable apps need to implement their own data migration logic.

  22. Root Cause Analysis: Delay Incurred by the Wearable App (P4) • P4:33.3s(tinyCam)v.s.5.6s(RTApp) • RTApp: downloading a 3KB data chunk every 160ms, establish new connection once a new network interface is connected after a handover. • Overall handover interruption time • Improved application data migration logic (in RTApp) reduces P4aswellastheoverall interruption time.

  23. Reducingthe Handover Delay • Proactively performingahandovertoWiFiwhen BT quality degrades • Variant 1: establishWiFiwhenperforminghandovers(on-demandWiFi) • Variant 2: pre-established WiFi(always-onWiFi)

  24. Summary • First in-depth study on the networking performance of Wear OS. • Developed a toolkit for wearable networking measurement and analysis. • Identified performance issues regarding key aspects of wearable networking. • Analyzed the root causes and proposed practical solutions.

  25. Thankyou!

  26. Thankyou!

  27. BT State Machines on Wearable and Phone

  28. QoE-energy Tradeoffs of Different Networks

More Related