Toward Accurate Network Delay Measurement on Android Phones

Weichao LI, Daoyuan WU, Rocky K. C. CHANG*, Ricky K. P. MOK

*Corresponding author for this work

Research output: Journal PublicationsJournal Article (refereed)peer-review

9 Citations (Scopus)

Abstract

Measuring and understanding the performance of mobile networks is becoming very important for end users and operators. Despite the availability of many measurement apps, their measurement accuracy has not received sufficient scrutiny. In this paper, we appraise the accuracy of smartphone-based network performance measurement using the Android platform and the network round-trip time (RTT) as the metric. We show that two of the most popular measurement apps-Ookla Speedtest and MobiPerf-have their RTT measurements inflated. We build three test apps for three common measurement methods and evaluate them in a testbed. We overcome the main challenge of obtaining a complete trace of packets and their timestamps using multiple sniffers and frame-based synchronization. Our multi-layer analysis reveals that the delay inflation can be introduced both in the user space and kernel space. The long path of subfunction invocations accounts for the majority of the delay overhead in the Android runtime (both Dalvik VM and ART), and the sleeping functions in the drivers are the major source of the delay overhead between the kernel and physical layer. We propose and implement a native measurement app to mitigate the delay overhead in the Android runtime, and the resulted delay inflation in the user space can be kept under 1.5 ms for almost all cases.
Original languageEnglish
Article number8007228
Pages (from-to)717-732
Number of pages16
JournalIEEE Transactions on Mobile Computing
Volume17
Issue number3
Early online date10 Aug 2017
DOIs
Publication statusPublished - 1 Mar 2018
Externally publishedYes

Bibliographical note

Acknowledgments:
The work by Weichao Li was performed at The Hong Kong Polytechnic University. The authors would like to thank the editors for handling their paper, and the three anonymous reviewers for their valuable comments.

Publisher Copyright:
© 2017 IEEE.

Funding

This work was partially supported by an ITSP Tier-2 project grant (ref. no. GHP/027/11) from the Innovation Technology Fund in Hong Kong, and a research grant from the Joint Universities Computer Center of Hong Kong (ref. no. H-ZL17).

Keywords

  • Network measurement
  • mobile phone
  • Android
  • accuracy

Fingerprint

Dive into the research topics of 'Toward Accurate Network Delay Measurement on Android Phones'. Together they form a unique fingerprint.

Cite this