{"id":65,"date":"2015-02-04T15:15:58","date_gmt":"2015-02-04T15:15:58","guid":{"rendered":"http:\/\/chkr.at\/wordpress\/?p=65"},"modified":"2015-02-04T15:15:58","modified_gmt":"2015-02-04T15:15:58","slug":"how-to-run-your-own-codescenario-with-ndnsim-2-0-ubuntu-14-04","status":"publish","type":"post","link":"https:\/\/chkr.at\/wordpress\/?p=65","title":{"rendered":"How-To: Run your own code\/scenario with ndnSIM 2.0 (Ubuntu 14.04)"},"content":{"rendered":"<p>Apparently the <a href=\"http:\/\/ndnsim.net\/2.0\/getting-started.html\">tutorial<\/a> suggests to download the <a href=\"https:\/\/github.com\/cawka\/ndnSIM-scenario-template\">ndnSIM scenario template<\/a>, however, this does not look to be compatible with ndnSIM 2.0 (yet).<\/p>\n<p>The mailing list suggests using the ns-3\/scratch\/ folder (for now), so here is an example of how to use that folder to run your scenario:<br \/>\n<code><br \/>\ncd ns-3<br \/>\ncd scratch<br \/>\nwget https:\/\/raw.githubusercontent.com\/named-data\/ndnSIM\/master\/examples\/ndn-simple.cpp<br \/>\nmv ndn-simple.cpp my-ndn-code.cc<br \/>\ncd ..<br \/>\n.\/waf --run my-ndn-code --vis<br \/>\n<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Apparently the tutorial suggests to download the ndnSIM scenario template, however, this does not look to be compatible with ndnSIM 2.0 (yet). The mailing list suggests using the ns-3\/scratch\/ folder (for now), so here is an example of how to use that folder to run your scenario: cd ns-3 cd scratch wget https:\/\/raw.githubusercontent.com\/named-data\/ndnSIM\/master\/examples\/ndn-simple.cpp mv ndn-simple.cpp <a class=\"read-more\" href=\"https:\/\/chkr.at\/wordpress\/?p=65\">...continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[5,6,7],"tags":[],"_links":{"self":[{"href":"https:\/\/chkr.at\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/65"}],"collection":[{"href":"https:\/\/chkr.at\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/chkr.at\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/chkr.at\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/chkr.at\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=65"}],"version-history":[{"count":2,"href":"https:\/\/chkr.at\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/65\/revisions"}],"predecessor-version":[{"id":67,"href":"https:\/\/chkr.at\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/65\/revisions\/67"}],"wp:attachment":[{"href":"https:\/\/chkr.at\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=65"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/chkr.at\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=65"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/chkr.at\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=65"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}