Commit 4c9a5c2c authored by Ozmen, Ozgur's avatar Ozmen, Ozgur
Browse files

Update README

parent 0976cc39
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
Change the Makefile pointing to your ADEVS path. Please also make sure that qemu binaries are in your environment PATH. 
Change the Makefile pointing to your ADEVS path. Please also make sure that qemu binaries are linked in your environment (PATH). 

To build and run the test case 1:
To build and run the test case 2:

make
./a.out	dataRate1 lossRate1 dataRate2 lossRate2 path_to_the_image
./a.out	dataRate1 lossRate1 dataRate2 lossRate2 path_to_the_images

For example  enter ./a.out 2500000000 0.0 1000000000 0.0 /home/ozi/documents/images/ to run the test case with 3G cellular (minimum of 2Gbit/second) network (which is 2500000000 bytes/second) and 0 percent data loss rate from the first forwarder, and with 1GB (1000000000 byte/second) and 0 percent loss rate from the second forwarder. The path (5th argument) should point to the images folder you downloaded from Dropbox.

When images are up assign their ip addresses via sudo ifconfig ens3 10.0.2.x. We tested historian as 2, forwarder-1 as 3, and forwarder-2 as 4.  
When images are up and running, log in, and assign their ip addresses via sudo ifconfig ens3 10.0.2.x. We tested historian as 2, forwarder-1 as 3, and forwarder-2 as 4.  

NOTE: MongoDB in the Historian will receive all the network packets and log them. You can delete all the data beforehand and have a clean start. Make sure that you close the historian properly (sudo poweroff) so that image will keep all the data. There is no time limit in ADEVS, it will simulate them forever unless you close the images. After images are closed, you can start the historian seperately and analyze the MongoDB. If you prefer to work with VirtualBox again during the analysis you can convert .img file to .vdi via VBoxManage commands.     
NOTE: MongoDB in the Historian will receive all the network packets and log them. You can delete all the data beforehand in the MongoDB and have a clean start. Make sure that you close the historian properly (sudo poweroff) so that image will keep all the data. There is no time limit in ADEVS, it will simulate them forever unless you close the images. After images are closed, you can start the historian seperately and analyze the MongoDB. If you prefer to work with VirtualBox again during the analysis you can convert .img file to .vdi via VBoxManage commands.