Source codes of solidity-based smart contract, NS, VanetMobiSim in our proposed BCPPA
The smart contract provides the function of 'update', 'get', and 'deletetx' to maintain certificates of vehicles. It can be directly deployed in Rinkeby (a Ethereum test netwokr), the link is available at: https://www.rinkeby.io, and we tested and invoked it using Remix (available at: http://remix.ethereum.org).
These files include some map source data of format .RT (the used map in our simulation is TGR11001.RT1), the setting of vehicles's speed and scenario generation test file.
The test files are <awk_average_delay_RSU.awk> and <awk_Packet_Loss_RSU.awk> for testing average delay and packet loss, respectively.
-
ns 2.35, avaiable at: http://nchc.dl.sourceforge.net/project/nsnam/allinone/ns-allinone-2.35/ns-allinone-2.35.tar.gz
-
JDK, avaiable at: http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html
-
Ant, avaiable at: http://ant.apache.org/bindownload.cgi
-
VanetMobiSim, avaiable at:http://vanet.eurecom.fr/
- Use vms_get_scen.xml to generate the simualtion scenario file:
order: java -jar VanetMobiSim.jar vms_get_scen.xml
output: vms_scen_file
- Use the file of vms_scen_file to genrate .tcl file, that is, importing the scenario file <vms_scen_file> in ns.tcl:
order: ns ns.tcl
output: ns_trace.tr and ns_nam.nam
- Analyse the average delay:
order: gawk -f awk_average_delay_RSU.awk ns_trace.tr
output: the final average delay
- Analyse the packet loss:
order: gawk -f awk_Packet_Loss_RSU.awk ns_trace.tr
output: the final packet loss