The instructions for use of IBIHOP source code in Contiki (Cooja) simulator are as following:
System Setup
- Go to the Contiki webpage: http://www.contiki-os.org/start.html, download Instant Contiki 3.0 and VMWare Player.
- Unzip Instant Contiki 3.0 on desktop or preferred directory.
- Open VMWare Player and run Instant_Contiki_Ubuntu_12.04_32-bit.vmx. Default login password is “user”.
- Open a terminal and go to
~/contiki/tools/cooja
directory, run command:$ git submodule update --init $ ant run
You may see the following screen.
Build Simulation Network and Launch Simulation
Follow the instructions to run two-node mutual authentication with IBIHOP protocol.
- Copy IBIHOP source code folder “IBIHOP” to the directory
~/contiki/examples/
- Create a new simulation: Click “File” → “New simulation” → “Create”.
- Add server mote (refer the following figure): Click “Motes” → “Add motes” → “Create new mote type” → “Sky mote…” → “Browse”. Then, choose the file server.c in IBIHOP folder. Click “Open” → “Compile” →”Create” → “Add motes”.
- Add client mote: Click “Motes” → “Add motes” → “Create new mote type” → “Sky mote…” → “Browse”. Choose the file client.c in IBIHOP folder. Click “Open” → “Compile” → “Create” → “Add motes”.
- Press “Start” in Simulation control window to run the experiment.
- Use Pause, Step and Reload from Simulation control window to control an experiment.
Note: A tutorial can be found at http://www.contiki-os.org/start.html
Experimental Result
Mote output window shows outputs of motes during the simulation.
- Time column shows the time of printing the message. It can be used to check (by subtraction) the time consumption for a specific step
- If your program prints out some messages, they will appear in the Message column as the following figure.