{"id":40,"date":"2013-03-29T17:18:46","date_gmt":"2013-03-29T08:18:46","guid":{"rendered":"http:\/\/dnssec.sekiya-lab.info\/?page_id=40"},"modified":"2014-03-30T20:34:27","modified_gmt":"2014-03-30T11:34:27","slug":"softwares","status":"publish","type":"page","link":"https:\/\/dnssec.sekiya-lab.info\/?page_id=40","title":{"rendered":"Software"},"content":{"rendered":"<ul>\n<li>\n<h1><strong><span style=\"color: #0000ff;\">CreateZones tool for Generating Simulation Scenarios<\/span><\/strong><\/h1>\n<\/li>\n<\/ul>\n<p style=\"padding-left: 30px;\">The latest codes are available from the link below.<br \/>\n<a href=\"https:\/\/github.com\/shored\/createzones\/\" target=\"_blank\">https:\/\/github.com\/shored\/<wbr>createzones\/<\/wbr><\/a><\/p>\n<ul>\n<li>\n<h1><span style=\"color: #0000ff;\"><strong>Getting and Building NS-3 DCE Environment<\/strong><\/span><\/h1>\n<\/li>\n<\/ul>\n<p style=\"padding-left: 30px;\">ns-3 Direct Code Execution (DCE) based DNSSEC simulator. bind9, unbound, dig, etc are running inside ns-3 simulation.<\/p>\n<ol>\n<li>Install bake<br \/>\nAll the software installation is handled by\u00c2\u00a0<em><a href=\"http:\/\/www.nsnam.org\/docs\/bake\/tutorial\/html\/index.html\">bake<\/a><\/em>\u00c2\u00a0build tool. You could obtain the tools as:<\/p>\n<pre>hg clone http:\/\/code.nsnam.org\/bake<\/pre>\n<p>You need to install &#8216;mercurial&#8217; for this installation.<\/li>\n<li>Obtain bakeconf.xml for ns-3-dce-dnssec module\n<pre>wget http:\/\/ns3-dev.sekiya-lab.info\/hg\/ns-3-dce-dnssec\/raw-file\/tip\/utils\/bakeconf.xml -O bakeconf.xml<\/pre>\n<\/li>\n<li>Build<br \/>\nThe following commands build the DNSSEC module, ns-3, bind9, unbound, and some additional modules that the simulator requires. It will take long time to finish it.<\/p>\n<pre>mkdir dnssec\r\ncd dnssec\r\n..\/bake\/bake.py configure -c ..\/bakeconf.xml -e dce-dnssec\r\n..\/bake\/bake.py download\r\n..\/bake\/bake.py build<\/pre>\n<\/li>\n<li>Test examples<br \/>\nIf all the build steps above are finished without no errors, you can try pre-installed example.<\/p>\n<pre>cd source\/ns-3-dce\r\n.\/waf --run dce-dns-simple<\/pre>\n<p>This\u00c2\u00a0command simulates a simple DNS packet exchange, resulting pcap files which contains packets of DNS. You will see<\/p>\n<pre>% ls -ltr *.pcap\r\n-rw-r--r-- 1 foo foo 32944 Feb  7 17:54 dce-dns-simple-1-0.pcap\r\n-rw-r--r-- 1 foo foo 32944 Feb  7 17:54 dce-dns-simple-0-0.pcap<\/pre>\n<p>If you wanna try DNSSEC example,<\/p>\n<pre>cd source\/ns-3-dce\r\n.\/waf --run \"dce-dnssec --pcap=1\"<\/pre>\n<p>will give you another pcap files.<\/p>\n<pre>% tcpdump -r dce-dnssec-4-0.pcap -n\r\n(snip)\r\n09:01:51.002006 IP 10.0.0.5.53 &gt; 10.0.0.6.64932: 52654 2\/2\/1 A 192.168.1.2, RRSIG (292)\r\n09:01:51.004451 IP 10.0.0.5.53 &gt; 10.0.0.6.53602: 57806 2\/2\/1 A 10.0.0.4, RRSIG (308)<\/pre>\n<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>CreateZones tool for Generating Simulation Scenarios The latest codes are available from the link below. https:\/\/github.com\/shored\/createzones\/ Getting and Building NS-3 DCE Environment ns-3 Direct Code Execution (DCE) based DNSSEC simulator&#8230;.<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":2,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"https:\/\/dnssec.sekiya-lab.info\/index.php?rest_route=\/wp\/v2\/pages\/40"}],"collection":[{"href":"https:\/\/dnssec.sekiya-lab.info\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/dnssec.sekiya-lab.info\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/dnssec.sekiya-lab.info\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dnssec.sekiya-lab.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=40"}],"version-history":[{"count":10,"href":"https:\/\/dnssec.sekiya-lab.info\/index.php?rest_route=\/wp\/v2\/pages\/40\/revisions"}],"predecessor-version":[{"id":102,"href":"https:\/\/dnssec.sekiya-lab.info\/index.php?rest_route=\/wp\/v2\/pages\/40\/revisions\/102"}],"wp:attachment":[{"href":"https:\/\/dnssec.sekiya-lab.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=40"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}