<?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>Wireless Wave &#187; NS-3</title>
	<atom:link href="http://matinrad.com/index.php/category/network/network-simulation/ns-3/feed/" rel="self" type="application/rss+xml" />
	<link>http://matinrad.com</link>
	<description>Arash, wireless and more</description>
	<lastBuildDate>Mon, 07 Mar 2011 12:32:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>What do I need to install NS-3 in Ubuntu/Gentoo/Fedora and other Linux distros?</title>
		<link>http://matinrad.com/index.php/2011/03/what-do-i-need-to-install-ns-3-in-ubuntugentoofedora-and-other-linux-distros/</link>
		<comments>http://matinrad.com/index.php/2011/03/what-do-i-need-to-install-ns-3-in-ubuntugentoofedora-and-other-linux-distros/#comments</comments>
		<pubDate>Mon, 07 Mar 2011 12:32:02 +0000</pubDate>
		<dc:creator>Arash</dc:creator>
				<category><![CDATA[NS-3]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://matinrad.com/?p=169</guid>
		<description><![CDATA[All the packages you need to install prior to using the NS-3 (3.6 and greater) can be found here: http://www.nsnam.org/wiki/index.php/Installation The last packages to install are necessary to run PyViz the animator. Related posts:Why I don&#8217;t have an antivirus on my Ubuntu/Linux box NS-3 (NS3) And Eclipse (Part I) Related posts brought to you by [...]


Related posts:<ol><li><a href='http://matinrad.com/index.php/2009/10/why-i-dont-have-an-antivirus-on-my-ubuntulinux-box/' rel='bookmark' title='Why I don&#8217;t have an antivirus on my Ubuntu/Linux box'>Why I don&#8217;t have an antivirus on my Ubuntu/Linux box</a></li>
<li><a href='http://matinrad.com/index.php/2010/02/ns-3-and-eclipse/' rel='bookmark' title='NS-3 (NS3) And Eclipse (Part I)'>NS-3 (NS3) And Eclipse (Part I)</a></li>
</ol>

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fmatinrad.com%2Findex.php%2F2011%2F03%2Fwhat-do-i-need-to-install-ns-3-in-ubuntugentoofedora-and-other-linux-distros%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fmatinrad.com%2Findex.php%2F2011%2F03%2Fwhat-do-i-need-to-install-ns-3-in-ubuntugentoofedora-and-other-linux-distros%2F&amp;source=matinrad&amp;style=compact&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>All the packages you need to install prior to using the NS-3 (3.6 and greater) can be found here: http://www.nsnam.org/wiki/index.php/Installation<br />
The last packages to install are necessary to run PyViz the animator.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fmatinrad.com%2Findex.php%2F2011%2F03%2Fwhat-do-i-need-to-install-ns-3-in-ubuntugentoofedora-and-other-linux-distros%2F&amp;title=What%20do%20I%20need%20to%20install%20NS-3%20in%20Ubuntu%2FGentoo%2FFedora%20and%20other%20Linux%20distros%3F" id="wpa2a_2">Share/Save</a></p>

<p>Related posts:<ol><li><a href='http://matinrad.com/index.php/2009/10/why-i-dont-have-an-antivirus-on-my-ubuntulinux-box/' rel='bookmark' title='Why I don&#8217;t have an antivirus on my Ubuntu/Linux box'>Why I don&#8217;t have an antivirus on my Ubuntu/Linux box</a></li>
<li><a href='http://matinrad.com/index.php/2010/02/ns-3-and-eclipse/' rel='bookmark' title='NS-3 (NS3) And Eclipse (Part I)'>NS-3 (NS3) And Eclipse (Part I)</a></li>
</ol></p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://matinrad.com/index.php/2011/03/what-do-i-need-to-install-ns-3-in-ubuntugentoofedora-and-other-linux-distros/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to find a specific header in packet in NS-3</title>
		<link>http://matinrad.com/index.php/2010/08/how-to-find-a-packet-header-in-ns-3/</link>
		<comments>http://matinrad.com/index.php/2010/08/how-to-find-a-packet-header-in-ns-3/#comments</comments>
		<pubDate>Fri, 27 Aug 2010 15:26:15 +0000</pubDate>
		<dc:creator>Arash</dc:creator>
				<category><![CDATA[Network]]></category>
		<category><![CDATA[NS-3]]></category>
		<category><![CDATA[Simulation]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Header]]></category>
		<category><![CDATA[packet]]></category>

		<guid isPermaLink="false">http://matinrad.com/?p=160</guid>
		<description><![CDATA[You can scan through headers like this: PacketMetadata::ItemIterator metadataIterator = copy-&#62;BeginItem(); PacketMetadata::Item item; while (metadataIterator.HasNext()) { item = metadataIterator.Next(); NS_LOG_FUNCTION("item name: " &#60;&#60; item.tid.GetName()); if(item.tid.GetName() == "ns3::Ipv4Header") { NS_LOG_DEBUG("Header Found"); m_isIpv4HeaderFound = true; break; } } In above code I tried to find  Ipv4Header And it is possible to access it like: if (m_isIpv4HeaderFound) { [...]


No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fmatinrad.com%2Findex.php%2F2010%2F08%2Fhow-to-find-a-packet-header-in-ns-3%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fmatinrad.com%2Findex.php%2F2010%2F08%2Fhow-to-find-a-packet-header-in-ns-3%2F&amp;source=matinrad&amp;style=compact&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>You can scan through headers like this:</p>
<p><code></p>
<div id="_mcePaste">
<div id="_mcePaste">PacketMetadata::ItemIterator metadataIterator = copy-&gt;BeginItem();</div>
<div id="_mcePaste">PacketMetadata::Item item;</div>
<div id="_mcePaste">while (metadataIterator.HasNext())</div>
<div id="_mcePaste">{</div>
<div id="_mcePaste">item = metadataIterator.Next();</div>
<div id="_mcePaste">NS_LOG_FUNCTION("item name: " &lt;&lt; item.tid.GetName());</div>
<div id="_mcePaste">if(item.tid.GetName() == "ns3::Ipv4Header")</div>
<div id="_mcePaste">{</div>
<div id="_mcePaste">NS_LOG_DEBUG("Header Found");</div>
<div id="_mcePaste">m_isIpv4HeaderFound = true;</div>
<div id="_mcePaste">break;</div>
<div id="_mcePaste">}</div>
<div id="_mcePaste">}</div>
</div>
<p></code></p>
<p>In above code I tried to find  <span style="font-family: monospace;">Ipv4Header</span></p>
<p>And it is possible to access it like:</p>
<p><code><br />
     if (m_isIpv4HeaderFound)<br />
       {<br />
       NS_LOG_DEBUG("Header Found");<br />
         Callback<ObjectBase *> constructor = item.tid.GetConstructor();</p>
<p>         NS_ASSERT(!constructor.IsNull());<br />
         ObjectBase *instance = constructor();<br />
         NS_ASSERT(instance != 0);<br />
         Ipv4Header *ipv4Header = dynamic_cast<Ipv4Header *> (instance);<br />
         NS_ASSERT(ipv4Header != 0);<br />
         ipv4Header->Deserialize(item.current);<br />
         delete ipv4Header;<br />
       }<br />
</code></p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fmatinrad.com%2Findex.php%2F2010%2F08%2Fhow-to-find-a-packet-header-in-ns-3%2F&amp;title=How%20to%20find%20a%20specific%20header%20in%20packet%20in%20NS-3" id="wpa2a_4">Share/Save</a></p>

<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://matinrad.com/index.php/2010/08/how-to-find-a-packet-header-in-ns-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>NS-3 (NS3) And Eclipse (Part I)</title>
		<link>http://matinrad.com/index.php/2010/02/ns-3-and-eclipse/</link>
		<comments>http://matinrad.com/index.php/2010/02/ns-3-and-eclipse/#comments</comments>
		<pubDate>Wed, 03 Feb 2010 17:37:19 +0000</pubDate>
		<dc:creator>Arash</dc:creator>
				<category><![CDATA[My notes]]></category>
		<category><![CDATA[NS-3]]></category>
		<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[Mercurial]]></category>
		<category><![CDATA[NS3]]></category>
		<category><![CDATA[NS3 simulator]]></category>

		<guid isPermaLink="false">http://matinrad.com/?p=145</guid>
		<description><![CDATA[This is a short explanation on how I added NS-3 (version 3.6) to Eclipse (Galileo). I use first part from NS-3 Wiki Adding Mercurial to Eclipse First download eclipse IDE for C++ developers from http://www.eclipse.org * Install eclipse into you operating system * Install mercurial eclipse plugin: - Go to help-&#62;software update - Click on [...]


No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fmatinrad.com%2Findex.php%2F2010%2F02%2Fns-3-and-eclipse%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fmatinrad.com%2Findex.php%2F2010%2F02%2Fns-3-and-eclipse%2F&amp;source=matinrad&amp;style=compact&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>This is a short explanation on how I added NS-3 (version 3.6) to Eclipse (Galileo). I use first part from <a title="NS-3 Wiki- How to use Eclipse with NS-3" href="http://www.nsnam.org/wiki/index.php/HOWTO_configure_eclipse_with_ns-3" target="_blank">NS-3 Wiki</a></p>
<p><em><strong>Adding Mercurial to Eclipse</strong></em></p>
<blockquote><p>First download eclipse IDE for C++ developers from <a title="http://www.eclipse.org" rel="nofollow" href="http://www.eclipse.org/">http://www.eclipse.org</a><br />
* Install eclipse into you operating system<br />
* Install mercurial eclipse plugin:<br />
- Go to help-&gt;software update<br />
- Click on available software<br />
- Click on add a site<br />
- Add <a title="http://www.vectrace.com/eclipse-update/" rel="nofollow" href="http://www.vectrace.com/eclipse-update/">http://www.vectrace.com/eclipse-update/</a> taken from <a title="http://www.vectrace.com/mercurialeclipse/" rel="nofollow" href="http://www.vectrace.com/mercurialeclipse/">http://www.vectrace.com/mercurialeclipse/</a> then click on mercurialeclipse and check the box and click on install<br />
* We suppose that you already have mercurial installed on your machine</p></blockquote>
<p><em><strong>Making a Clone of NS-3 in Eclipse</strong></em></p>
<p>After you that you need to add the NS-3 from the repository:</p>
<p>Select: New -&gt; Other, and it would be like picture below:</p>
<div id="attachment_147" class="wp-caption aligncenter" style="width: 310px"><a href="http://matinrad.com/wp-content/uploads/2010/02/ns-3_Eclipse_mercurial.png"><img class="size-medium wp-image-147" title="Eclipse mercurial new project" src="http://matinrad.com/wp-content/uploads/2010/02/ns-3_Eclipse_mercurial-300x238.png" alt="" width="300" height="238" /></a><p class="wp-caption-text">Eclipse mercurial after new project</p></div>
<p style="text-align: center;">
<p>Then press next. now you need to enter &#8220;Repository location URL&#8221; that is: <em><strong>http://code.nsnam.org/ns-3-dev</strong></em></p>
<p>in case you want to have different versions of the NS-3 you need to define the &#8220;Clone directory name&#8221;, in the figure below I chose <em><strong>ns-3.7-dev </strong></em></p>
<div id="attachment_148" class="wp-caption aligncenter" style="width: 281px"><a href="http://matinrad.com/wp-content/uploads/2010/02/2.png"><img class="size-medium wp-image-148" title="Clone the NS-3 to workspace" src="http://matinrad.com/wp-content/uploads/2010/02/2-271x300.png" alt="" width="271" height="300" /></a><p class="wp-caption-text">Clone the NS-3 to workspace</p></div>
<p>Now you just need to wait for the project files be cloned. then you will find a copy of the project you wanted like below:</p>
<div id="attachment_149" class="wp-caption aligncenter" style="width: 310px"><a href="http://matinrad.com/wp-content/uploads/2010/02/4.png"><img class="size-medium wp-image-149" title="A clone made of NS-3.7-dev in clipse" src="http://matinrad.com/wp-content/uploads/2010/02/4-300x268.png" alt="" width="300" height="268" /></a><p class="wp-caption-text">A clone made of NS-3.7-dev in clipse</p></div>
<p>Since the folder is not know as a C++ project it is necessary to be converted to so right click on project name and select: new -&gt; convert to a C/C++ project the rest of settings should be same as picture below:</p>
<div id="attachment_150" class="wp-caption aligncenter" style="width: 280px"><a href="http://matinrad.com/wp-content/uploads/2010/02/5.png"><img class="size-medium wp-image-150" title="Convert to C++ project" src="http://matinrad.com/wp-content/uploads/2010/02/5-270x300.png" alt="" width="270" height="300" /></a><p class="wp-caption-text">Convert to C++ project</p></div>
<p><em><strong>Configuring the Build system</strong></em></p>
<p>We know that build system for NS-3 is Waf so we need to change the build configuration from build/make to Waf. so right click on project and select the properties then choose the &#8220;C/C++ Build&#8221;.</p>
<p>In the &#8220;<strong>Builder setup</strong>&#8221; choose &#8220;<strong>External Builder</strong>&#8221;</p>
<p>Remove the check from &#8220;<strong>Use default build command</strong>&#8221;</p>
<p>change &#8220;<strong>Build command</strong>&#8221; to<em><strong> ${workspace_loc:/ns-3.7-dev/waf}</strong></em></p>
<div id="attachment_152" class="wp-caption aligncenter" style="width: 310px"><a href="http://matinrad.com/wp-content/uploads/2010/02/8.png"><img class="size-medium wp-image-152" title="Behaviour setting " src="http://matinrad.com/wp-content/uploads/2010/02/8-300x195.png" alt="" width="300" height="195" /></a><p class="wp-caption-text">Behaviour setting</p></div>
<p>in Behavior tab, clear both &#8220;<strong>Build on resource save (Auto save)&#8221; </strong>and &#8220;<strong>Build (Incremental build)</strong></p>
<p><strong></p>
<div id="attachment_152" class="wp-caption aligncenter" style="width: 310px"><strong><a href="http://matinrad.com/wp-content/uploads/2010/02/8.png"><img class="size-medium wp-image-152" title="Behaviour setting " src="http://matinrad.com/wp-content/uploads/2010/02/8-300x195.png" alt="" width="300" height="195" /></a></strong><p class="wp-caption-text">Behaviour setting</p></div>
<p></strong></p>
<p>Now all you need to do is to push  <em>apply </em>and<em> Ok</em>. you will notice that Waf starts to build the whole project.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fmatinrad.com%2Findex.php%2F2010%2F02%2Fns-3-and-eclipse%2F&amp;title=NS-3%20%28NS3%29%20And%20Eclipse%20%28Part%20I%29" id="wpa2a_6">Share/Save</a></p>

<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://matinrad.com/index.php/2010/02/ns-3-and-eclipse/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

