[Paper Review] AntMonitor: A System for On-Device Mobile Network Monitoring and its Applications
AntMonitor is a high-performance, on-device mobile network monitoring system that uses a lightweight, user-space VPN service to passively collect and analyze fine-grained packet traces directly on smartphones, achieving 94% of native throughput with 2–12x lower energy use than prior mobile-only approaches. It enables real-time privacy leak detection, network performance monitoring, and application classification using only TCP/IP header features and device context, outperforming state-of-the-art methods in accuracy and efficiency.
In this paper, we present a complete system for on-device passive monitoring, collection, and analysis of fine grained, large-scale packet measurements from mobile devices. First, we describe the design and implementation of AntMonitor as a userspace mobile app based on a VPN-service but only on the device (without the need to route through a remote VPN server) and using only the minimum resources required. We evaluate our prototype and show that it significantly outperforms prior state-of-the-art approaches: it achieves throughput of over 90 Mbps downlink and 65 Mbps uplink, which is 2x and 8x faster than mobile-only baselines and is 94% of the throughput without VPN, while using 2-12x less energy. Second, we show that AntMonitor is uniquely positioned to serve as a platform for passive on-device mobile network monitoring and to enable a number of applications, including: (i) real-time detection and prevention of private information leakage from the device to the network; (ii) passive network performance monitoring; and (iii) application classification and user profiling. We showcase preliminary results from a pilot user study at a university campus.
Motivation & Objective
- To address the limitations of coarse-grained ISP traces and small-scale user traces in mobile network monitoring.
- To design a high-performance, low-overhead on-device monitoring system that does not require root access or remote servers.
- To enable real-time, privacy-preserving network monitoring and analysis directly on mobile devices.
- To support applications such as PII leak detection, network performance profiling, and application classification using device-level context.
- To create a scalable, user-friendly platform for crowdsourced mobile network measurements.
Proposed method
- AntMonitor implements a user-space VPN service that intercepts all network traffic on the device without routing through a remote server, using only minimal system resources.
- It employs a TUN-based packet forwarding mechanism with only two threads for reading/writing to the TUN interface, minimizing CPU and memory overhead.
- The system multiplexes UDP sockets and carefully manages TCP sockets to reduce resource usage and avoid interference with foreground applications.
- It captures packet traces and annotates them with rich contextual metadata such as time, location, and active foreground/background apps.
- Machine learning models are trained on TCP/IP header features and contextual data to classify applications and profile users with high accuracy.
- A logging server is used for off-line analysis, while real-time detection and visualization of privacy leaks are performed directly on the device.
Experimental results
Research questions
- RQ1Can a passive, on-device mobile monitoring system achieve high throughput and low energy consumption without requiring root access or remote servers?
- RQ2Can on-device packet monitoring enable real-time detection of private information leaks from mobile applications?
- RQ3Can application classification and user profiling be accurately performed using only TCP/IP header features and device context, without access to HTTP payloads?
- RQ4How does the performance of on-device monitoring compare to client-server or native (no-VPN) configurations in terms of throughput and energy efficiency?
- RQ5To what extent can on-device monitoring support scalable, privacy-preserving network measurements and application-level insights?
Key findings
- AntMonitor achieves downlink throughput of over 90 Mbps and uplink of 65 Mbps, which is 2x and 8x faster than prior mobile-only approaches like Privacy Guard and Haystack.
- It attains 94% of the throughput of a native (no-VPN) connection, significantly outperforming previous mobile-only solutions.
- The system uses 2–12x less energy than comparable mobile-only approaches, making it practical for long-term user adoption.
- AntMonitor enables real-time detection and visualization of private information leaks, identifying sensitive data transmission to external destinations.
- Application classification using only TCP/IP headers achieves higher accuracy than state-of-the-art methods that rely on HTTP payload inspection, with 91% precision on a large dataset.
- User profiling based on normalized app activity volume shows promising results, with supervised models correctly classifying users and detecting behavioral patterns, including reinstallation events and shared usage patterns.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.