Workshop on ns-3

Research Article

A Realistic MAC and Energy Model for 802.15.4

  • @INPROCEEDINGS{10.1145/2915371.2915379,
        author={Vishwesh Rege and Tommaso Pecorella},
        title={A Realistic MAC and Energy Model for 802.15.4},
        proceedings={Workshop on ns-3},
        keywords={ns-3 energy consumption IEEE 802.15.4 IoT WSN MAC duty cycling},
  • Vishwesh Rege
    Tommaso Pecorella
    Year: 2016
    A Realistic MAC and Energy Model for 802.15.4
    DOI: 10.1145/2915371.2915379
Vishwesh Rege1, Tommaso Pecorella2
  • 1: Robert Bosch Centre for Cyber Physical Systems, Indian Institute of Science (IISc), Bangalore, India
  • 2: Dpt. of Information Engineering (DINFO), Università di Firenze, Firenze, Italy


The IEEE 802.15.4 standard defines the physical and media access control layers for LR-WPANs (Low-Rate Wireless Personal Area Networks), and is one of the enabling technologies for Wireless Sensor Networks (WSNs) as well as the emerging Internet of Things (IoT) applications. The ns-3 network simulator offers support for simulating LR-WPANs as specified by the IEEE standard 802.15.4 (2006). However, only the ad-hoc mode is currently supported and many important features of the MAC such as radio duty cycle management are missing from the implementation. Moreover, at the moment ns-3 does not support simulating the energy consumption of LR-WPAN devices. Since energy efficiency is an important consideration for WSN and IoT applications, support for accurate energy modeling is highly desirable in order to develop energy-aware protocols for such applications. In this paper, we present the models developed for simulating the energy consumption of nodes in LR-WPANs. Further we implement the ContikiMAC radio duty cycling protocol in order to provide a realistic 802.15.4 compliant MAC layer which supports sleep/wake mechanisms.