<?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; Simulation</title>
	<atom:link href="http://matinrad.com/index.php/category/network/network-simulation/feed/" rel="self" type="application/rss+xml" />
	<link>http://matinrad.com</link>
	<description>Arash, wireless and more</description>
	<lastBuildDate>Tue, 31 Aug 2010 15:31:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<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[NS-3]]></category>
		<category><![CDATA[Network]]></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://mitcho.com/code/yarpp/'>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" 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 addtoany_share_save" href="http://www.addtoany.com/share_save">Share/Save</a> </p>

<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>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://mitcho.com/code/yarpp/'>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" 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 addtoany_share_save" href="http://www.addtoany.com/share_save">Share/Save</a> </p>

<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>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>3</slash:comments>
		</item>
		<item>
		<title>(Ke Liu&#8217;s) NS2 Wireless trace meaning and explanation</title>
		<link>http://matinrad.com/index.php/2009/12/ke-lius-ns2-wireless-trace-meaning-and-explanation/</link>
		<comments>http://matinrad.com/index.php/2009/12/ke-lius-ns2-wireless-trace-meaning-and-explanation/#comments</comments>
		<pubDate>Mon, 07 Dec 2009 11:47:54 +0000</pubDate>
		<dc:creator>Arash</dc:creator>
				<category><![CDATA[My notes]]></category>
		<category><![CDATA[ns2]]></category>
		<category><![CDATA[trace]]></category>

		<guid isPermaLink="false">http://matinrad.com/?p=142</guid>
		<description><![CDATA[ACTION: [s&#124;r&#124;D]: s -- sent, r -- received, D -- dropped WHEN: the time when the action happened WHERE: the node where the action happened LAYER: AGT -- application, RTR -- routing, LL -- link layer (ARP is done here) IFQ -- outgoing packet queue (between link and mac layer) MAC -- mac, PHY -- [...]


Related posts:<ol><li><a href='http://matinrad.com/index.php/2009/10/ieee-802-11-medium-access-control/' rel='bookmark' title='Permanent Link: IEEE 802.11 Medium Access Control'>IEEE 802.11 Medium Access Control</a></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>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%2F2009%2F12%2Fke-lius-ns2-wireless-trace-meaning-and-explanation%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fmatinrad.com%2Findex.php%2F2009%2F12%2Fke-lius-ns2-wireless-trace-meaning-and-explanation%2F&amp;source=matinrad&amp;style=compact" height="61" width="50" /><br />
			</a>
		</div>
<blockquote>
<pre><span><span style="color: brown;">ACTION:	[s|r|D]: s -- sent, r -- received, D -- dropped
WHEN:	the time when the action happened
WHERE:	the node where the action happened
LAYER:	AGT -- application,
	RTR -- routing,
	LL  -- link layer (ARP is done here)
	IFQ -- outgoing packet queue
               (between link and mac layer)
	MAC -- mac,
	PHY -- physical
flags:
SEQNO:	the sequence number of the packet
TYPE:	the packet type
		cbr -- CBR data stream packet
		DSR -- DSR routing packet (control packet
                generated by routing)
		RTS -- RTS packet generated by MAC 802.11
		ARP -- link layer ARP packet
SIZE:	the size of packet at current layer, when packet goes down,
        size increases, goes up size decreases
[a b c d]:	a -- the packet duration in mac layer header
		b -- the mac address of destination
		c -- the mac address of source
		d -- the mac type of the packet body
flags:
[......]:	[
		source node ip : port_number
		destination node ip (-1 means broadcast) : port_number
		ip header ttl
		ip of next hop (0 means node 0 or broadcast)
		]
</span></span></pre>
</blockquote>
<p>via <a href="http://www.cs.binghamton.edu/~kliu/research/ns2code/index.html">Ke Liu&#8217;s NS2 Code and Q&amp;A</a>.</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save">Share/Save</a> </p>

<p>Related posts:<ol><li><a href='http://matinrad.com/index.php/2009/10/ieee-802-11-medium-access-control/' rel='bookmark' title='Permanent Link: IEEE 802.11 Medium Access Control'>IEEE 802.11 Medium Access Control</a></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://matinrad.com/index.php/2009/12/ke-lius-ns2-wireless-trace-meaning-and-explanation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>NS2 ,ZigBee and WPAN « Udin Harun</title>
		<link>http://matinrad.com/index.php/2009/10/ns2-zigbee-and-wpan-udin-harun/</link>
		<comments>http://matinrad.com/index.php/2009/10/ns2-zigbee-and-wpan-udin-harun/#comments</comments>
		<pubDate>Sun, 25 Oct 2009 22:13:28 +0000</pubDate>
		<dc:creator>Arash</dc:creator>
				<category><![CDATA[ZigBee]]></category>
		<category><![CDATA[ns2]]></category>
		<category><![CDATA[Blog]]></category>
		<category><![CDATA[Links]]></category>

		<guid isPermaLink="false">http://matinrad.com/?p=120</guid>
		<description><![CDATA[After lots of googling I got this useful blog with lots of must-to-have links for NS2, ZigBee and most of the tools to do the simulation. We are going to have a course project for network simulation on WPAN and ZigBee and these rare resources are very handy to start with. NS2 for IEEE 802.15.4/ZigBee [...]


Related posts:<ol><li><a href='http://matinrad.com/index.php/2009/10/z-wave-and-zensys/' rel='bookmark' title='Permanent Link: Z-Wave and Zensys'>Z-Wave and Zensys</a></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>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%2F2009%2F10%2Fns2-zigbee-and-wpan-udin-harun%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fmatinrad.com%2Findex.php%2F2009%2F10%2Fns2-zigbee-and-wpan-udin-harun%2F&amp;source=matinrad&amp;style=compact" height="61" width="50" /><br />
			</a>
		</div>
<p>After lots of googling I got<a title="NS2" href="http://alkautsarpens.wordpress.com/ns/" target="_blank"> this useful blog</a> with lots of must-to-have links for NS2, ZigBee and most of the tools to do the simulation.</p>
<p>We are going to have a course project for network simulation on WPAN and ZigBee and these rare resources are very handy to start with.</p>
<blockquote><p><strong>NS2 for IEEE 802.15.4/ZigBee LR-WPANs :</strong></p>
<ol>
<li><a href="http://www.ifn.et.tu-dresden.de/%7Emarandin/ZigBee/ZigBeeSimulation.html">Simulation of  IEEE 802.15./ZigBee With NS-2</a></li>
<li><a href="http://www.ee.washington.edu/research/funlab/802_15_4/">IEEE 802.15.4 Mac Implementation in NS-2</a></li>
<li><a href="http://ees2cy.engr.ccny.cuny.edu/zheng/pub/">Low Rate Wireless Personal Area Networks (LR-WPANs) NS-2 Platform</a></li>
<li><a href="http://www.vaddina.com/pages/Zigbee/snav_1_0.php">Simulative Investigation of ZigBee/802.15.4Zigbee/IEEE 802.15.4<br />
</a></li>
<li><a href="http://www.vaddina.com/pages/Zigbee/snav_1_0.php">Module for NS2 simulator : </a><a href="http://www.cs.uwm.edu/%7Emukul/wpan.html">http://www.cs.uwm.edu/~mukul/wpan.html</a></li>
</ol>
<p><a href="http://alkautsarpens.wordpress.com/ns/">NS « Udin Harun</a></p></blockquote>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save">Share/Save</a> </p>

<p>Related posts:<ol><li><a href='http://matinrad.com/index.php/2009/10/z-wave-and-zensys/' rel='bookmark' title='Permanent Link: Z-Wave and Zensys'>Z-Wave and Zensys</a></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://matinrad.com/index.php/2009/10/ns2-zigbee-and-wpan-udin-harun/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
