A Local Communication System Over Wi-Fi Direct: Implementation and Performance Evaluation

Fuliang Li, Xingwei Wang, Zijian Wang, Jiannong Cao, Xuefeng Liu, Yuanguo Bi, Weichao Li, Yi Wang

Introduction

While modern society relies heavily on cellular and Wi-Fi infrastructure, these networks are prone to failure during natural disasters or congestion in high-density environments like stadiums. Device-to-Device (D2D) technologies, particularly Wi-Fi Direct (WFD), offer a promising alternative for infrastructure-less communication. However, standard implementations, especially on Android, suffer from significant limitations: Group Members (GMs) cannot easily discover each other's IP addresses, and there is no native support for inter-group communication. Furthermore, node mobility often leads to unstable connections and "ping-pong" effects in handover.

System Architecture

To address these challenges, this paper proposes a bottom-up architecture designed to transform isolated WFD groups into a cohesive, multi-hop network.

The proposed bottom-up architecture for inter-group communication.

Intra-group and Inter-group Connectivity

The system enhances intra-group communication through a broadcast-based member discovery mechanism. The Group Owner (GO) monitors join/leave events and broadcasts updated member lists (IP and MAC addresses) to all GMs, enabling direct peer-to-peer communication within the group.

For inter-group connectivity, the authors introduce a "Legacy Client/Group Owner" (LC/GO) connection schema. This allows a single device to serve as a "Gateway Node" by maintaining a P2P connection as a GO in one group while simultaneously connecting to another group's GO as a standard Wi-Fi "Legacy Client."

Inter-group communication schema using TCP and UDP Multicast.

Routing and Handover

Because standard routing protocols do not natively support these virtual interfaces, a custom application-layer forwarding engine was developed. This engine utilizes TCP unicast and a "Member Tree" structure to route packets across multiple hops. To manage node mobility, the system employs a Fuzzy Logic-based Normalized Quantitative Decision (FNQD) engine. By using the Fuzzy Analytic Hierarchy Process (FAHP), the system evaluates multiple variables—RSSI, load balance, available bandwidth, and remaining power—to make more stable handover decisions than traditional rigid threshold-based methods.

Performance Evaluation

The system was evaluated using a real-world testbed of 13 Android devices (running Android 6.0/7.0) and custom simulations.

Key Results

  • Throughput: The system achieved a peak intra-group throughput of 31.7 Mbps. Inter-group (multi-hop) communication reached a maximum goodput of 4.76 Mbps.
  • Latency: Intra-group delay was approximately 123 ms for a single hop, increasing to roughly 785 ms for a 5-hop path.
  • Handover Stability: The FAHP+FNQD algorithm significantly reduced unnecessary handovers—from 20 down to 5 in simulation cycles—effectively mitigating the "ping-pong" effect.
  • Reliability: While UDP provided higher raw throughput, it experienced packet loss up to 43% under heavy load. Consequently, TCP was selected for inter-group forwarding to ensure multi-hop reliability.

Conclusion and Future Work

This implementation demonstrates that WFD can support robust, multi-hop local networks by exploiting virtual interfaces and intelligent handover logic. However, performance remains sensitive to environmental interference, with high-density scenarios significantly reducing throughput. Future research will focus on Wi-Fi channel coordination to mitigate collisions and session migration protocols to ensure seamless data transfers during handovers.

Summary updated

Abstract

Wireless communication demands increase sharply with the explosive growth of mobile devices. The communications mainly depend on the infrastructure-based networks, e.g., WLANs and cellular networks. However, such wireless connections may be unavailable in crowded areas (e.g., concert and conference hall) or interrupted by infrastructure failures caused by earthquake or tsunami. These promote the evolution of local communication systems over device-to-device communication, such as Bluetooth and Wi-Fi Direct (WFD). However, none of the existing studies construct a full-featured local communication system, and they do not consider how to support the user mobility either. In this article, we implement and evaluate the performance of a WFD-based local communication system. First, we improve the intragroup communication by the native implementation of WFD on the Android platform, and propose an application-layer forwarding solution for the intergroup communication, which can be applied to three or more connected groups. Then, we put forward a self-adaptive handover mechanism taking user mobility and node failures into account. To deal with the uncertainty in the handover decision procedure, a fuzzy-logic-based normalized quantitative decision algorithm (FNQD) with the weights derived from the fuzzy analytic hierarchy process (FAHP) is utilized. Finally, we evaluate the performance of the system through both simulation and experiment analysis. Results show that we can get a maximum throughput of 31.7 Mb/s for the intragroup communication and a maximum goodput of 4.76 Mb/s for the intergroup communication. What is more, mobile devices could perform various types of handover according to their roles and status, which could improve the robustness of the local communication system.
BibTeX
@article{li2020local,
  author = {Fuliang Li and Xingwei Wang and Zijian Wang and Jiannong Cao and Xuefeng Liu and Yuanguo Bi and Weichao Li and Yi Wang},
  title = {{A Local Communication System Over Wi-Fi Direct: Implementation and Performance Evaluation}},
  journal = {IEEE Internet of Things Journal},
  year = {2020},
  doi = {10.1109/jiot.2020.2976114},
}
Figure