Applicable VersionsNetSim AcadNetSim StandardNetSim Pro


Applicable Versionv13

NetSim has a dedicated power model for Sensor nodes that are part of WSN/IoT networks. The power model is user-configurable and can be found in the ZigBee Interface properties of the Sensor nodes.

 

1. Consider the following scenario which comprises of 2 Sensors,1 Sink node 


 

 

2. Application (Traffic generation):
a. 2 Sensor application, with each application generating 50bytes of a packet every 1s(IAT=1000000 micro sec).
 b. Start time of each application is set to zero with Link layer acknowledgment enabled in the physical layer of all the sensors.

 

3. With all other properties leaving it to default values.


Energy Model properties configured in a sensor(Default values).

 

 

4. Simulate the scenario for 10 sec, With Event trace enable.

 

5. Energy consumption is calculated individually for each sensor node that is part of the network scenario during various Radio States such as SLEEP, TRX_ON_BUSY, RX_ON_IDLE, RX_ON_BUSY, RX_OFF. Based on the calculations done, NetSim provides a detailed Energy Metrics table that provides the energy consumption of each device with respect to Transmission, Reception, Idle Mode, and Sleep Mode

 

The energy consumption of each device (sensor node) is available in the Battery Model Metrics table.

 

 

Though every sensor has the same properties configured differences in Energy consumption in every sensor can be observed from the above table of Battery Metrics table as the following reason 


Collisions occur due to the working of the 802.15.4 protocol. Even if the route is direct to the sink, there is a common wireless medium. Collisions can occur. 

 

We notice the following result from the packet trace:


Application Name 

Collided Data Packets 

Successful Data Packets 

Total Data Packets Transmitted

App1_Sensor_APP

1

9

10

App2_Sensor_APP

0

9

9


The variation in the number of packets transmitted / ACKs received is the cause for the difference in energy consumption.

 

The energy consumption can be calculated as follows:

  • Transmit-Energy-Consumed = Transmit-Current * Voltage * Time-for-which-node-transmits-packets
  • Receive-Energy-Consumed = Receive-Current * Voltage * Time -for-which-node-receives-packets
  • IdleMode-Energy-Consumed = IdleMode-Current * Voltage * Time-in-Idle-Mode
  • SleepMode-Energy-Consumed = SleepMode-Current * Voltage * Time-in-sleep-mode

 

 

Here Time-for-which-node-transmits-packets is calculated with the formula

Time = PHY_OUT - CARRIER_SENSE_END 

 

of each packet which can only be calculated using Event Trace. The Event trace feature is not available in the Academic version of NetSim. It is only available with the standard version.