Skip to content
vthglyk edited this page Apr 18, 2016 · 43 revisions

Installation

  1. Installation of ns3 (https://www.nsnam.org/wiki/Installation). The project has been tested with versions 3.24 and 3.25.
  2. Download rapidjson (https://github.com/miloyip/rapidjson).
  3. Create a new directory named rapidjson under ns-allinone-3.xx/ns-3.xx.
  4. Copy the contents of the directory include/rapidjson (from the downloaded rapidjson project in step 2) to the newly created rapidjson folder.
  5. Update the ns-allinone-3.xx/ns-3.xx/src/applications/wscript.
    • Add the following lines in module.source:
      'model/bitcoin.cc',
      'model/bitcoin-node.cc',
      'model/bitcoin-miner.cc',
      'model/bitcoin-simple-attacker.cc',
      'model/bitcoin-selfish-miner.cc',
      'model/bitcoin-selfish-miner-trials.cc',
      'helper/bitcoin-topology-helper.cc',
      'helper/bitcoin-node-helper.cc',
      'helper/bitcoin-miner-helper.cc'
    • Add the following lines in headers.source:
      'model/bitcoin.h', 'model/bitcoin-node.h', 'model/bitcoin-miner.h', 'model/bitcoin-simple-attacker.h', 'model/bitcoin-selfish-miner.h', 'model/bitcoin-selfish-miner-trials.h', 'helper/bitcoin-topology-helper.h', 'helper/bitcoin-node-helper.h', 'helper/bitcoin-miner-helper.h'
  6. Update the ns-allinone-3.xx/ns-3.xx/src/internet/wscript.
    • Add the following line in module.source:
      'helper/ipv4-address-helper-custom.cc'
    • Add the following lines in headers.source:
      'helper/ipv4-address-helper-custom.h'
  7. Copy all the files from Bitcoin-Simulation/src to the respective folder under ns-allinone-3.xx/ns-3.xx/src/
  8. Rebuild ns3.

Project structure

{Please fill}

Clone this wiki locally