Difference between revisions of "GSOC2015LrWpanMac"

From Nsnam
Jump to: navigation, search
(LrWpan Radio Energy Model)
(LrWpan Radio Energy Model)
Line 72: Line 72:
 
* PHY_TRX_OFF : Sleep
 
* PHY_TRX_OFF : Sleep
  
The following are the main interfaces to be implemented:
+
The following are the main functions to be implemented:
 
* '''SetEnergySource''' (This will be called by the LrWpanRadioEnergyModel helper class)
 
* '''SetEnergySource''' (This will be called by the LrWpanRadioEnergyModel helper class)
 
* '''GetCurrent/SetCurrent''' functions to set current draw for different states (Sleep, Tx, Rx, etc.) and to represent the energy consumption behavior of a specific device. '''GetCurrent''' will be called by the EnergySource object
 
* '''GetCurrent/SetCurrent''' functions to set current draw for different states (Sleep, Tx, Rx, etc.) and to represent the energy consumption behavior of a specific device. '''GetCurrent''' will be called by the EnergySource object

Revision as of 18:49, 9 May 2015

802.15.4 realistic MAC and Energy Model

  • Abstract: 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 as well as the emerging Internet of Things applications. The ns-3 network simulator currently offers support for simulating LR-WPANs as specified by the IEEE standard 802.15.4 (2006). The current MAC implementation however, lacks sleep features. The radio is assumed to be always active, which is not true for nodes deployed in the field which usually employ some sort of sleep/wake mechanism in order to conserve energy. The goal of this project is therefore to develop a realistic MAC model and link it with the energy model in order to simulate realistic scenarios where a node’s energy can get depleted resulting in changes in the network topology. Most of WSN research is focused on developing energy efficient protocols at each level of the protocol stack and hence this project, along with allowing for more realistic simulations would also help researchers to test the energy efficiency of their protocols running on top of 802.15.4 nodes.
  • About me: I’m currently in the final year of B.E. (Electrical and Electronics) at BITS Pilani, India. My main research interest is in networked embedded systems, specifically WSNs and IoT.

Approach

Deliverables

  • 802.15.4 Energy Model:

Development of LrWpan Radio Energy model that models the energy consumption of 802.15.4 nodes.

  • 802.15.4 Phy layer support for duty cycling MAC protocols:

Modifications to the LrWpanPhy model in order to support linking with the LrWpan Radio Energy model.

  • RDC layer for the 802.15.4 MAC:

RDC layer for testing the newly developed Energy model - development of the ContikiMAC Radio Duty Cycling Protocol is planned.

  • Linking the RDC layer with the 802.15.4 Energy Model

Integration of the 802.15.4 Energy Model and the new 802.15.4 MAC Model.

Researchers can test their own protocols by developing their own models and linking with the developed 802.15.4 Energy Model.

Schedule

  • Week1
* Define the various classes. Implement the energy model.
  • Week2-3
* Modify the Phy model. Define and implement the PhyListener for the energy model. 
* Define the energy model test class for testing the energy model. Test and document.
  • Week4-5
* New Mac layer implementation.
  • Week6-7
* Thoroughly test the working of the newly developed MAC model and check the flow of outgoing and incoming packets. 
* Debug any issues that may arise. Document.
  • Week8-9
* Start development of the ContikiMAC model. 
* Test the working of ContikiMAC. Document.
  • Week10-11
* Integration of the energy module and the Mac module. Thoroughly test the basic implementation of ContikiMAC, along with the energy model. 
* Simulate, analyze, debug, document.
  • Week12
* Define scope for future work. Optimizations. Buffer period.

Energy Model

The energy model consists of 2 major components:

  • Energy source.
  • Device energy model.

The Device energy model is used to represent the energy consumed by a specific device on a node (eg. a LrWpan radio device). The LrWpanRadioEnergyModel (derived from DeviceEnergyModel class) will model the energy consumption due to the LrWpan radio device.

LrWpan Radio Energy Model

This class represents energy model for LrWpan radio devices with states:

  • Idle
  • TX
  • RX
  • Sleep

These states correspond to the PHY Emumerations defined in the LrWpanPhy class of ns-3 as follows:

  • PHY_BUSY_RX : RX
  • PHY_BUSY_TX : TX
  • PHY_IDLE / PHY_RX_ON / PHY_TX_ON : Idle
  • PHY_TRX_OFF : Sleep

The following are the main functions to be implemented:

  • SetEnergySource (This will be called by the LrWpanRadioEnergyModel helper class)
  • GetCurrent/SetCurrent functions to set current draw for different states (Sleep, Tx, Rx, etc.) and to represent the energy consumption behavior of a specific device. GetCurrent will be called by the EnergySource object
  • Function to change current state - Sleep, Tx, Rx, Idle - and update remaining energy stored in the EnergySource object installed on the node (based on last state update time) - this function will be called by the LrWpanRadioEnergyModelPhyListener.

After each transition, the LrWpanRadioEnergyModel notifies the EnergySource object. The EnergySource object will query this model for the total current. Then the EnergySource object uses the total current to calculate energy. The energy source will be updated using the formula duration * prevStateCurrent * supplyVoltage, where duration is the amount of time the radio was in the previous state and supplyVoltage is the EnergySource's supply voltage. (EnergySource's UpdateEnergySource function will be called by LrWpanRadioEnergyModel)

When energy is depleted, LrWpanRadioEnergyModel object installed on the node will be informed by the EnergySource, using energyRechargedCallback (defined in LrWpanRadioEnergyModel).

References

  • Part 15.4: Wireless Medium Access Control (MAC) and Physical Layer (PHY) Specifications for Low-Rate Wireless Personal Area Networks (WPANs) [1]
  • The ContikiMAC Radio Duty Cycling Protocol [2]