<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"><base href="x-msg://611/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Hi Aaron,</div><div><br></div><div>Sorry, you are not the first one who gets confused with my template.  I hope a corrected README file is more clear.</div><div><br></div><div>In any case,  you need to clone ndnSIM-sample-topologies into a separate location, not related to ns-3.  Let's say you start from scratch, then you can do the following:</div><div><br></div><div><pre style="margin-top: 15px; margin-bottom: 15px; padding: 6px 10px; border: 1px solid rgb(204, 204, 204); font-size: 13px; font-family: Consolas, 'Liberation Mono', Courier, monospace; background-color: rgb(248, 248, 248); line-height: 19px; overflow: auto; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; color: rgb(51, 51, 51); "><code style="margin: 0px; padding: 0px; border: none; font-size: 12px; font-family: Consolas, 'Liberation Mono', Courier, monospace; background-color: transparent; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; ">mkdir ns-dev
cd ns-dev

git clone <a href="git://github.com/cawka/ns-3-dev-ndnSIM.git">git://github.com/cawka/ns-3-dev-ndnSIM.git</a> -b ns-3.16-ndnSIM ns-3
git clone <a href="git://github.com/NDN-Routing/ndnSIM.git">git://github.com/NDN-Routing/ndnSIM.git</a> -b v0.2.6 ns-3/src/ndnSIM

git clone <a href="git://github.com/cawka/ndnSIM-sample-topologies.git">git://github.com/cawka/ndnSIM-sample-topologies.git</a> ndnSIM-sample-topologies

cd ns-3
./waf configure
./waf install

cd ../ndnSIM-sample-topologies</code></pre><div>(there are some tricks to compile ndnSIM-sample-topologies, but README talks about them)</div></div><div><br></div><div><br></div><div>As for the usage, you can create your scenario similar to <a href="http://ndnsim.net/examples.html#node-grid-example-using-topology-plugin">http://ndnsim.net/examples.html#node-grid-example-using-topology-plugin</a>, but instead of  </div><div><pre style="overflow-x: auto; overflow-y: hidden; padding: 5px; line-height: 14px; border-top-width: 1px; border-bottom-width: 1px; border-style: solid none; border-top-color: rgb(170, 204, 153); border-bottom-color: rgb(170, 204, 153); font-size: 12px; text-align: left; "><span class="hll" style="background-color: rgb(255, 255, 136);"><span class="n">topologyReader</span><span class="p">.</span><span class="n">SetFileName</span> <span class="p">(</span><span class="s" style="color: rgb(64, 112, 160);">"src/ndnSIM/examples/topologies/topo-grid-3x3.txt"</span><span class="p">);</span></span></pre><div>write something like</div></div><div><pre style="overflow-x: auto; overflow-y: hidden; padding: 5px; line-height: 14px; border-top-width: 1px; border-bottom-width: 1px; border-style: solid none; border-top-color: rgb(170, 204, 153); border-bottom-color: rgb(170, 204, 153); font-size: 12px; text-align: left; "><span class="hll" style="background-color: rgb(255, 255, 136);"><span class="n">topologyReader</span><span class="p">.</span><span class="n">SetFileName</span> <span class="p">(</span><span class="s" style="color: rgb(64, 112, 160);">"topologies/bw-delay-rand-1/1221.r0-conv-annotated.txt"</span><span class="p">);  // you also need to adjust other parts of the scenario</span></span></pre><div><br></div></div><div>(or you can just copy .txt files to your preferred location)</div><div><br></div><div>Btw. This template can be used for all your custom simulations.  Just put any scenario that you're working on in scenarios/ folder and all of them will be automatically compiled when you do ./waf and you can run.</div><div><br></div><div>---</div><div>Alex</div><div><br></div><br><div><div>On Mar 5, 2013, at 6:36 PM, aaronishere <<a href="mailto:aaronishere@qq.com">aaronishere@qq.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="line-height: 1.5; font-family: 微软雅黑; color: rgb(0, 0, 128); font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; margin: 10px; "><div>Hi, Alex and Chengyu</div><div>I download the  ndnSIM-sample-topologies under the ..ns3/src but when ./waf configue, it showed like below:</div><div><div>Traceback (most recent call last):</div><div>  File "/home/ndnSIM/ns-3/.waf-1.6.11-30618c54883417962c38f5d395f83584/waflib/Scripting.py", line 97, in waf_entry_point</div><div>    run_commands()</div><div>  File "/home/ndnSIM/ns-3/.waf-1.6.11-30618c54883417962c38f5d395f83584/waflib/Scripting.py", line 146, in run_commands</div><div>    parse_options()</div><div>  File "/home/ndnSIM/ns-3/.waf-1.6.11-30618c54883417962c38f5d395f83584/waflib/Scripting.py", line 125, in parse_options</div><div>    Context.create_context('options').execute()</div><div>  File "/home/ndnSIM/ns-3/.waf-1.6.11-30618c54883417962c38f5d395f83584/waflib/Options.py", line 133, in execute</div><div>    super(OptionsContext,self).execute()</div><div>  File "/home/ndnSIM/ns-3/.waf-1.6.11-30618c54883417962c38f5d395f83584/waflib/Context.py", line 87, in execute</div><div>    self.recurse([os.path.dirname(g_module.root_path)])</div><div>  File "/home/ndnSIM/ns-3/.waf-1.6.11-30618c54883417962c38f5d395f83584/waflib/Context.py", line 128, in recurse</div><div>    user_function(self)</div><div>  File "/home/ndnSIM/ns-3/wscript", line 218, in options</div><div>    opt.sub_options('src')</div><div>  File "/home/ndnSIM/ns-3/.waf-1.6.11-30618c54883417962c38f5d395f83584/waflib/Context.py", line 128, in recurse</div><div>    user_function(self)</div><div>  File "/home/ndnSIM/ns-3/src/wscript", line 51, in options</div><div>    opt.sub_options(module, mandatory=False)</div><div>  File "/home/ndnSIM/ns-3/.waf-1.6.11-30618c54883417962c38f5d395f83584/waflib/Context.py", line 128, in recurse</div><div>    user_function(self)</div><div>  File "/home/ndnSIM/ns-3/src/ndnSIM-sample-topologies/wscript", line 26, in options</div><div>    opt.load("compiler_c compiler_cxx boost ns3")</div><div>  File "/home/ndnSIM/ns-3/.waf-1.6.11-30618c54883417962c38f5d395f83584/waflib/Context.py", line 81, in load</div><div>    module=load_tool(t,path)</div><div>  File "/home/ndnSIM/ns-3/.waf-1.6.11-30618c54883417962c38f5d395f83584/waflib/extras/compat15.py", line 77, in load_tool</div><div>    ret=eld(*k,**kw)</div><div>  File "/home/ndnSIM/ns-3/.waf-1.6.11-30618c54883417962c38f5d395f83584/waflib/Context.py", line 296, in load_tool</div><div>    __import__(d)</div><div>ImportError: No module named ns3</div></div><div> </div><div>I'm new in ns3 and is there some guidelines for how to use this topology?</div><div> </div><div>Thanks a lot !</div><div>  </div><div><hr align="left" size="1" style="width: 210px; height: 1px; "></div><div><span>Aaron</span></div><div> </div><div style="border-width: 1pt medium medium; border-style: solid none none; padding: 3pt 0cm 0cm; border-top-color: rgb(181, 196, 223); "><div style="padding: 8px; background-color: rgb(239, 239, 239); font-size: 12px; "><div><b>From:</b> <a href="mailto:alexander.afanasyev@ucla.edu">Alex Afanasyev</a></div><div><b>Date:</b> 2013-03-06 09:06</div><div><b>To:</b> <a href="mailto:chengyu@cs.colostate.edu">Chengyu Fan</a></div><div><b>CC:</b> <a href="mailto:aaronishere@qq.com">aaronishere</a>;<span class="Apple-converted-space"> </span><a href="mailto:ndnsim@lists.cs.ucla.edu">ndnsim</a></div><div><b>Subject:</b> Re: [ndnSIM] question for topology</div></div></div><div><div class="FoxDiv20130306102925784623" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi all,<div><br></div><div>You can also checkout the repository that I just created <a href="http://github.com/cawka/ndnSIM-sample-topologies">http://github.com/cawka/ndnSIM-sample-topologies</a>, which can be used as a base for topology generation using rocketfuel-maps-cch-to-annotaded tool.</div><div><br></div><div>I also put a sample for converted topologies (with graphviz-generated topology visualizations) here: <a href="https://github.com/cawka/ndnSIM-sample-topologies/tree/master/topologies/bw-delay-rand-1">https://github.com/cawka/ndnSIM-sample-topologies/tree/master/topologies/bw-delay-rand-1</a>   But you need to double check if the parameters used in the rocketfuel-maps-cch-to-annotaded tool are good for your simulations.</div><div><br></div><div>---</div><div>Alex</div><div><br><div><div>On Mar 5, 2013, at 9:47 AM, Chengyu Fan <<a href="mailto:chengyu@cs.colostate.edu">chengyu@cs.colostate.edu</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite" style="margin-top: 0px; margin-bottom: 0px; margin-left: 2em; ">You can find an example in the src directory:<div><br></div><div><b>src/ndnSIM/tools/rocketfuel-maps-cch-to-annotaded.cc</b></div><div><br></div><div>Thanks,</div><div>Chengyu<br><br><div class="gmail_quote">On Tue, Mar 5, 2013 at 8:41 AM, aaronishere<span class="Apple-converted-space"> </span><span dir="ltr"><<a href="mailto:aaronishere@qq.com" target="_blank">aaronishere@qq.com</a>></span><span class="Apple-converted-space"> </span>wrote:<br><blockquote class="gmail_quote" style="margin: 0px; border-left-color: rgb(204, 204, 204); border-left-width: 1px; border-left-style: solid; padding-left: 1ex; "><u></u><div style="margin: 10px; "><div>Hi, Alex</div><div> </div><div>The topology in the example is a little simple, is there more complex topology available? And I found that in the ../plugins/topology there's rocketfuel-map/weights, how to use it? Thanks !  </div><div> </div><hr align="left" size="1" style="min-height: 1px; width: 210px; "><div><span>Aaron -</span></div></div><br>_______________________________________________<br>ndnSIM mailing list<br><a href="mailto:ndnSIM@lists.cs.ucla.edu">ndnSIM@lists.cs.ucla.edu</a><br><a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim" target="_blank">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a><br><br></blockquote></div><br></div>_______________________________________________<br>ndnSIM mailing list<br><a href="mailto:ndnSIM@lists.cs.ucla.edu">ndnSIM@lists.cs.ucla.edu</a><br><a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a><br></blockquote></div><br></div></div></div>_______________________________________________<br>ndnSIM mailing list<br><a href="mailto:ndnSIM@lists.cs.ucla.edu">ndnSIM@lists.cs.ucla.edu</a><br><a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a></div></blockquote></div><br></body></html>