Skip to content

Running a Basic Simulation

peurpdapeurp edited this page May 14, 2018 · 1 revision

You can run a basic producer and consumer simulation by using RIOT's native board feature (https://github.com/RIOT-OS/RIOT/wiki/Family:-native) and its tapsetup tool, located in .../RIOT/dist/tools/tapsetup.

First, go to the tapsetup tool directory and run the tool with the following command:

./tapsetup

This should output the following:

creating tapbr0

creating tap0

creating tap1

Afterwards, you can open two terminal windows.

In the first terminal window, go to the directory .../ndn-riot-examples/ndn-producer and run the following command:

make term flash PORT=tap0

In the second terminal window, go to the directory .../ndn-riot-examples/ndn-consumer and run the following command:

make term flash PORT=tap1

The second window should prompt you to enter an 's' character to send an interest; if you do so, you should see messages appear in both terminal windows regarding the interest and data exchange.