<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Jason's Computer Science Blog &#187; 802.11s</title>
	<atom:link href="http://www.jasonernst.com/tag/802-11s/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jasonernst.com</link>
	<description>By Jason Ernst</description>
	<lastBuildDate>Wed, 25 Jan 2012 14:04:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Tutorial: Install ns-3 in Windows 7 using cygwin</title>
		<link>http://www.jasonernst.com/2010/04/15/ns-3-7-1-windows-7-cygwin/</link>
		<comments>http://www.jasonernst.com/2010/04/15/ns-3-7-1-windows-7-cygwin/#comments</comments>
		<pubDate>Thu, 15 Apr 2010 19:35:56 +0000</pubDate>
		<dc:creator>Jason Ernst</dc:creator>
				<category><![CDATA[Computer Science]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[Simulation]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Wireless Networks]]></category>
		<category><![CDATA[802.11]]></category>
		<category><![CDATA[802.11s]]></category>
		<category><![CDATA[cygwin]]></category>
		<category><![CDATA[NS-3]]></category>
		<category><![CDATA[NS-3.10]]></category>
		<category><![CDATA[NS-3.7.1]]></category>
		<category><![CDATA[Windows 7]]></category>

		<guid isPermaLink="false">http://www.jasonernst.com/?p=781</guid>
		<description><![CDATA[Ns-3 is one of the most popular simulation tools for network simulation. See the website: http://www.nsnam.org/. It is the successor to the popular ns-2 simulator. The tool is written in c++ / python, but I manage to get by using mostly only c++ (as opposed to ns-2 which uses c/c++ and tcl). One major difference [...]]]></description>
			<content:encoded><![CDATA[<p>Ns-3 is one of the most popular simulation tools for network simulation. See the website: <a href="http://www.nsnam.org/">http://www.nsnam.org/</a>. It is the successor to the popular ns-2 simulator. The tool is written in c++ / python, but I manage to get by using mostly only c++ (as opposed to ns-2 which uses c/c++ and tcl). One major difference between ns-3 and ns-2 is that this version has been designed for wireless network simulation from the ground up. (There is support for many types of 802.11 networks including 802.11s mesh networks which interest me).</p>
<p><span id="more-781"></span></p>
<p>The following instructions explain how to install the latest stable version of ns3 (<del datetime="2011-03-22T14:57:11+00:00">as of April 14th, 2010</del> as of March 22nd 2011 with ns-3.10) on windows 7 with cygwin. It should work with newer releases as they come out, but if not leave me a message and I will update the instructions. I will try to include any common problems I have encountered, or those of users who comment on the post experience in order to make your install easier.</p>
<p>Step 1:<br />
<a href="http://www.cygwin.com/setup.exe">Download &#038; install cygwin</a>. (note: I install it in the recommended directory &#8220;{System Root}/cygwin/&#8221;). Make sure you select &#8220;install&#8221; for python and devel. This will ensure you have python and gcc/g++ as well as all of the dependencies. You can do this by clicking on the word default in the list of packages. I left all of the other package options on default for the install.</p>
<p>Step 2:<br />
<del datetime="2011-03-22T14:58:32+00:00"><a href="http://www.nsnam.org/releases/ns-allinone-3.7.1.tar.bz2">Download ns3.7.1</a></del>Download the most recent version of ns3 from their <a href="http://www.nsnam.org/download.html">website</a> (you will likely want the all-in-one version if you are just starting out. Save the file to &#8220;{System Root}/cygwin/home/{your-username}&#8221;. Alternatively, you can try downloading the file directly within cygwin using something like &#8220;wget http://http://www.nsnam.org/releases/<filename>&#8221; where filename is the name of the release you wish to install.</p>
<p>Step 3:<br />
Start cygwin. At the cygwin prompt type: &#8220;tar xvf ns-allinone-3.7.1.tar.bz2&#8243; (or whatever the filename is depending on the version you downloaded). This will unpack the ns3 archive so you can use it.</p>
<p>Step 4:<br />
After it has unpacked, change directory to the new ns3 directory with the following: &#8220;cd ns-allinone-3.7.1&#8243;. Then build ns3 by typing the following: &#8220;./build.py&#8221;. You can probably grab a coffee or tea while it compiles.</p>
<p><center>
<div class="image"><img src="http://www.jasonernst.com/wp-content/uploads/2010/04/cygwin-ns3-300x200.jpg" alt="ns3 cygwin windows 7"/>
<p style="text-align:center;">ns3 on windows 7 with cygwin</div>
<p></center></p>
<p>Step 5:<br />
You should be good to go. You can validate the install by changing directory again to the ns-3.7.1 directory (&#8220;cd ns-3.7.1&#8243;) and running &#8220;./test.py&#8221;. It will let you know with a PASS / FAIL for each test case. You can now edit the files yourself. The scenario files are located in &#8220;&#8221; and the source files are located in &#8220;&#8221;. Good luck!</p>
<p><strong>Note</strong>: For those getting remapping errors, I have finally had the same trouble. This is what worked for me: Open command prompt, change to your /cygwin/bin directory. Type: &#8216;ash&#8217;. Then type &#8216;/bin/rebaseall&#8217;. You can now try cygwin again and it may work. If it still does not work (this happened to me), you can apply <a href="http://blog.brev.name/2010/09/nodejs-on-windows-7-under-cygwin.html">this fix</a> to the rebaseall script. (you can edit it using some tool like notepad within windows).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jasonernst.com/2010/04/15/ns-3-7-1-windows-7-cygwin/feed/</wfw:commentRss>
		<slash:comments>27</slash:comments>
		</item>
	</channel>
</rss>

