Amazing technological breakthrough possible @S-Logix pro@slogix.in

Office Address

  • #5, First Floor, 4th Street Dr. Subbarayan Nagar Kodambakkam, Chennai-600 024 Landmark : Samiyar Madam
  • pro@slogix.in
  • +91- 81240 01111

Social List

How to calculate the number of forwarding and receiving packets in RPL using cooja simulator?

Description

To know about how to calculate the number of forwarding and receiving packets in RPL using contiki cooja.

Source Code

Open the contiki/core/net/ip/tcpip.c File

id means current node id

recvcount[id] = recvcount[id] +1;

if (nexthop != 0) {

forwardcount[id] = forwardcount[id] + 1;

} else {

forwardcount[id] = forwardcount[id];

}

Step-1

  Now open the terminal in contiki
desktop and make the right
directories to run the cooja
simulator tools.

In terminal, go the this
directory --> cd “contiki/ tools/ cooja”

Give Command: ant run

Step 3
Run simulation, Open (contiki/examples/
ipv6/rpl-udp/) that (rpl-udp.csc)
files you simulated.
Output