Giter VIP home page Giter VIP logo

bcppa's Introduction

BCPPA

Source codes of solidity-based smart contract, NS, VanetMobiSim in our proposed BCPPA

Solidity-based Smart Contract

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).

NS + VanetMobiSim

VanetMobiSim Related File

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.

NS Related File

The test files are <awk_average_delay_RSU.awk> and <awk_Packet_Loss_RSU.awk> for testing average delay and packet loss, respectively.

How to use these files

Dependency:

  1. ns 2.35, avaiable at: http://nchc.dl.sourceforge.net/project/nsnam/allinone/ns-allinone-2.35/ns-allinone-2.35.tar.gz

  2. JDK, avaiable at: http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html

  3. Ant, avaiable at: http://ant.apache.org/bindownload.cgi

  4. VanetMobiSim, avaiable at:http://vanet.eurecom.fr/

Setps

  1. Use vms_get_scen.xml to generate the simualtion scenario file:

order: java -jar VanetMobiSim.jar vms_get_scen.xml

output: vms_scen_file

  1. 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

  1. Analyse the average delay:

order: gawk -f awk_average_delay_RSU.awk ns_trace.tr

output: the final average delay

  1. Analyse the packet loss:

order: gawk -f awk_Packet_Loss_RSU.awk ns_trace.tr

output: the final packet loss

bcppa's People

Contributors

colyn91 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.