{'fraction_non_alphanumeric': 0.03114754098360656, 'fraction_numerical': 0.0, 'mean_word_length': 5.1858108108108105, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Empirical Analysis of Extended QX-MAC for IOT-Based WSNS

The Internet of Things (IoT) connects our world in more ways than we imagine. Wireless sensor network (WSN) technology is at the core of implementing IoT architectures. Although WSN applications give us enormous opportunities, their deployment is challenging because of the energy constraint in sensor nodes. The primary design objective of WSNs is therefore to maximize energy efficiency. Enhancing network quality of service (QoS), such as latency, is another crucial factor, particularly for different delay-sensitive applications. Medium access control (MAC) protocols are of paramount importance to achieve these targets. Over the years, several duty-cycled MAC protocols were proposed. Among them, the strobed preamble approach introduced in X-MAC has gained much interest in IoT field because of its several theoretical advantages. However, X-MAC is highly efficient only under light traffic. Under heavy traffic, X-MAC incurs high per-packet overhead and extra delay. In addition, X-MAC has several design flaws that can significantly degrade network performance. In this paper, we point out some specific malfunctions in the original X-MAC design and propose alternatives to reduce their impact. We present an energy-efficient, traffic-adaptive MAC protocol called QX-MAC that addresses the foreseen shortcomings in X-MAC. QX-MAC integrates Q-learning and the more bit scheme to enable the nodes to adapt the active period and duty cycle in accordance with incoming traffic. Finally, the performance of QX-MAC is thoroughly analyzed compared with other reference protocols to validate its efficacy. Our QX-MAC simulation results demonstrate substantial improvements in overall network performance in terms of energy consumption, packet loss, delay, or throughput.