Difference between revisions of "Energy model"

From Nsnam
Jump to: navigation, search
Line 21: Line 21:
 
*Device energy model.
 
*Device energy model.
  
Only a single energy source will exist on a node, representing the total energy reserve at the node. Multiple device energy model can exist on a single node, representing different devices. The device energy model will update the remaining energy at the energy source. When energy is depleted, the energy source will notify all device energy models.
+
Only a single energy source will exist on a node, representing the total energy reserve at the node. Multiple device energy models can exist on a single node, representing different devices. Each device energy model will notify the energy source of the energy consumed by that device, and thus update the remaining energy of the source. When energy is completely drained, the energy source will notify all device energy models connected to it.
  
 
== Energy Source ==
 
== Energy Source ==
Line 27: Line 27:
 
[[File:Ns-3_energy_source.PNG|thumb|Energy source class structure]]
 
[[File:Ns-3_energy_source.PNG|thumb|Energy source class structure]]
  
Child of the energy source class implements a specific type of energy source, eg. a battery. This base class provides interfaces for different energy model to update/record total energy consumption on the node. Some typical child classes:
+
This is an abstract base class that provides interfaces for for updating/recording total energy consumption on the node. It also issues a notification when the remaining energy goes to zero.
 +
 
 +
Child classes of the energy source class implement a specific type of energy source, eg. a battery. Some typical child classes are:
 
*Basic energy source.
 
*Basic energy source.
**Provides basic energy source functionalities such as keeping track of remaining energy, decrease remaining energy, notify device energy models for energy depletion.
+
**Provides basic functionalities such as keeping track of remaining energy, decrease remaining energy, notify device energy models on complete depletion of energy.
 
*Battery energy source.
 
*Battery energy source.
**Sub class that models behavior of a battery.
+
**Models the effect of energy consumption on the battery voltage, provides optional interfaces to provide recharging functionality, etc.
  
== Device Energy Model ==
+
== Device Energy Consumption Model ==
  
 
[[File:Ns-3_device_energy_model.PNG|thumb|Device energy model]]
 
[[File:Ns-3_device_energy_model.PNG|thumb|Device energy model]]
  
Child of the device energy model class implements energy consumption schemes of a specific device, eg. a radio device. This class provides interfaces for updating remaining energy in the energy source and handles notifications form the energy source when node energy is depleted. It can also records the total energy consumption of the device. Note that multiple device energy model can exist on the same node.
+
This is a base class and its main function is to monitor the state of a device, and accordingly calculate its energy consumption. It provides interfaces for updating remaining energy in the energy source and handles the notification from the energy source when node energy is depleted. It also maintains a record of the total energy consumption of the device.
 +
 
 +
Child classes of the device energy consumption class implement energy consumption schemes of specific devices, eg. a radio device. Multiple device models can exist on a node, representing energy consumption due to its different components. Further, multiple objects of the same device model class can also be used in a node. eg. a node could have multiple radios, and hence will have multiple radio energy consumption models.
  
 
A typical child implementation of this class is the radio energy model class.
 
A typical child implementation of this class is the radio energy model class.

Revision as of 06:36, 21 April 2010

Background

Energy modeling is a key element in wireless network simulation. In several simulation scenarios, the energy consumption at a particular node, or at a particular component of a node, is of interest. Further, energy consumption is an important metric for evaluating the performance of wireless network protocols. Also, if a protocol is energy-aware, i.e. its operation depends on the energy level, it cannot be effectively simulated without an energy model. An energy model has been implemented in ns2 (ns2 energy model) but is yet to be implemented in ns3.

Project Goals

In this project, we aim to provide the basic structures for modeling energy sources and energy consumption of various devices on the node. The energy source class will enable the modeling of batteries, discharging models, etc. while the energy consumption models are used to represent the energy consumed by various components of a node. The energy model will provide the following components:

  • Energy source model.
    • Battery.
    • etc.
  • Device energy consumption model.
    • Radio.
    • etc.

Energy Model Hierarchy

Energy model information flow

The energy model consists of 2 major components:

  • Energy source.
  • Device energy model.

Only a single energy source will exist on a node, representing the total energy reserve at the node. Multiple device energy models can exist on a single node, representing different devices. Each device energy model will notify the energy source of the energy consumed by that device, and thus update the remaining energy of the source. When energy is completely drained, the energy source will notify all device energy models connected to it.

Energy Source

Energy source class structure

This is an abstract base class that provides interfaces for for updating/recording total energy consumption on the node. It also issues a notification when the remaining energy goes to zero.

Child classes of the energy source class implement a specific type of energy source, eg. a battery. Some typical child classes are:

  • Basic energy source.
    • Provides basic functionalities such as keeping track of remaining energy, decrease remaining energy, notify device energy models on complete depletion of energy.
  • Battery energy source.
    • Models the effect of energy consumption on the battery voltage, provides optional interfaces to provide recharging functionality, etc.

Device Energy Consumption Model

Device energy model

This is a base class and its main function is to monitor the state of a device, and accordingly calculate its energy consumption. It provides interfaces for updating remaining energy in the energy source and handles the notification from the energy source when node energy is depleted. It also maintains a record of the total energy consumption of the device.

Child classes of the device energy consumption class implement energy consumption schemes of specific devices, eg. a radio device. Multiple device models can exist on a node, representing energy consumption due to its different components. Further, multiple objects of the same device model class can also be used in a node. eg. a node could have multiple radios, and hence will have multiple radio energy consumption models.

A typical child implementation of this class is the radio energy model class.

Radio Energy Model

This class represents energy model for radio devices. It is a base class for implementing other radio energy models. The radio energy model defines the typical operating states of a radio:

  • Idle
  • Tx
  • Rx
  • Sleep

Behaviors of switching between different modes are implemented by radio energy model's child class. Note that multiple radio energy model can exist on the same node.

Usage

Coming soon.

Schedule

  • 4/19/2010 - 4/23/2010: Private review of radio energy model.