<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:www.nabble.com,2006:forum-15582</id>
	<title>Nabble - Network Simulator ns-2</title>
	<updated>2009-01-07T14:54:38Z</updated>
	<link rel="self" type="application/atom+xml" href="http://www.nabble.com/Network-Simulator-ns-2-f15582.xml" />
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Network-Simulator-ns-2-f15582.html" />
	<subtitle type="html">&lt;a href=&quot;http://www.isi.edu/nsnam/ns/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;NS&lt;/a&gt;&amp;nbsp;is a discrete event simulator targeted at networking research. Ns provides substantial support for simulation of TCP, routing, and multicast protocols over wired and wireless (local and satellite) networks.</subtitle>
	
<entry>
	<id>tag:www.nabble.com,2006:post-21342281</id>
	<title>Re: Proposing upgrade of WAF</title>
	<published>2009-01-07T14:54:38Z</published>
	<updated>2009-01-07T14:54:38Z</updated>
	<author>
		<name>Gustavo Carneiro</name>
	</author>
	<content type="html">2009/1/7 raj bhattacharjea &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=21342281&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rbhattacharjea@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Mon, Dec 29, 2008 at 1:06 PM, Gustavo Carneiro &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=21342281&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gjcarneiro@...&lt;/a&gt;&amp;gt;wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Yes, I was definitely planning to wait at least a week before merging
&lt;br&gt;&amp;gt;&amp;gt; anything.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; --
&lt;br&gt;&amp;gt;&amp;gt; Gustavo J. A. M. Carneiro
&lt;br&gt;&amp;gt;&amp;gt; INESC Porto, Telecommunications and Multimedia Unit
&lt;br&gt;&amp;gt;&amp;gt; &amp;quot;The universe is always one step beyond logic.&amp;quot; -- Frank Herbert
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; It has been a week and no one more has commented. &amp;nbsp;The consensus seems to
&lt;br&gt;&amp;gt; be that the proposed changes are good. &amp;nbsp;Do you have any plans for merging?
&lt;/div&gt;&lt;br&gt;&lt;br&gt;yes. &amp;nbsp; Sorry, I have been sick, and with some personal time consuming
&lt;br&gt;problems to solve. &amp;nbsp;I'll merge in the next few days.
&lt;br&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; Raj Bhattacharjea
&lt;br&gt;&amp;gt; Georgia Institute of Technology
&lt;br&gt;&amp;gt; School of Electrical and Computer Engineering
&lt;br&gt;&amp;gt; Ph.D. Candidate
&lt;br&gt;&amp;gt; Systems Analyst
&lt;br&gt;&amp;gt; 404.894.2955
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Gustavo J. A. M. Carneiro
&lt;br&gt;INESC Porto, Telecommunications and Multimedia Unit
&lt;br&gt;&amp;quot;The universe is always one step beyond logic.&amp;quot; -- Frank Herbert
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/ns-developers-f15584.html&quot; embed=&quot;fixTarget[15584]&quot; target=&quot;_top&quot; &gt;ns-developers&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Proposing-upgrade-of-WAF-tp21204120p21342281.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-21341925</id>
	<title>ns-3.4 release plans</title>
	<published>2009-01-07T14:34:18Z</published>
	<updated>2009-01-07T14:34:18Z</updated>
	<author>
		<name>Raj Bhattacharjea</name>
	</author>
	<content type="html">I wish a happy new year to the ns-3 development community! &amp;nbsp;With the new
&lt;br&gt;year comes new plans, namely those for releasing the next version of ns3,
&lt;br&gt;version 3.4 . &amp;nbsp;This email is lengthy, so you can catch the short version on
&lt;br&gt;the wiki:
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://www.nsnam.org/wiki/index.php/Ns-3.4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.nsnam.org/wiki/index.php/Ns-3.4&lt;/a&gt;&lt;br&gt;&lt;br&gt;Otherwise, read on.
&lt;br&gt;&lt;br&gt;==Release Schedule==
&lt;br&gt;The plan is to have an early merge period through January 27th, during which
&lt;br&gt;proposals for new APIs and features will be reviewed and merged into the
&lt;br&gt;ns-3-dev trunk. &amp;nbsp;Any remaining features which have been proposed but not
&lt;br&gt;fully reviewed, or for which there is no consensus, can be merged in up
&lt;br&gt;until February 10th.
&lt;br&gt;&lt;br&gt;The rest of the month of February will be for maintainance; during this
&lt;br&gt;period only P1 bugs will be fixed, and no API will change. &amp;nbsp;Behavioral
&lt;br&gt;changes to models not affecting API will be allowed.
&lt;br&gt;&lt;br&gt;&amp;gt;From March 1st, release candidates will be released. &amp;nbsp;The bug count should
&lt;br&gt;ideally be zero during this time, and any remaining bugs discovered will be
&lt;br&gt;ironed out by the the 18th of March, when the final release of ns3.4 is
&lt;br&gt;made.
&lt;br&gt;&lt;br&gt;More details follow here:
&lt;br&gt;&lt;a href=&quot;http://www.nsnam.org/wiki/index.php/Ns-3.4#The_ns-3.4_Release_Schedule&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.nsnam.org/wiki/index.php/Ns-3.4#The_ns-3.4_Release_Schedule&lt;/a&gt;&lt;br&gt;&lt;br&gt;==New Features==
&lt;br&gt;&lt;br&gt;The planned new features for 3.4 are as follows:
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;1. A new tap net device which will allow ns-3 to create a Linux system
&lt;br&gt;&amp;nbsp; &amp;nbsp;network interface through which ns-3 traffic can flow back and forth with
&lt;br&gt;&amp;nbsp; &amp;nbsp;the real world. &amp;nbsp;It is being adapted by Craig from a prototype version
&lt;br&gt;&amp;nbsp; &amp;nbsp;Mathieu has been utilizing in demonstrations of ns3.
&lt;br&gt;&amp;nbsp; &amp;nbsp;2. A system for assigning names to nodes. &amp;nbsp;Issues of accessing nodes by
&lt;br&gt;&amp;nbsp; &amp;nbsp;name, utilizing names for accessing trace hooks, displaying the names in
&lt;br&gt;&amp;nbsp; &amp;nbsp;trace output, and showing the names in logging output are still being
&lt;br&gt;&amp;nbsp; &amp;nbsp;resolved. &amp;nbsp;Craig is working on this.
&lt;br&gt;&amp;nbsp; &amp;nbsp;3. An upgrade to the waf version used in ns-3, as well as a move to a so
&lt;br&gt;&amp;nbsp; &amp;nbsp;called &amp;quot;allinone&amp;quot; build system. &amp;nbsp;The system will separate the downloading of
&lt;br&gt;&amp;nbsp; &amp;nbsp;&amp;quot;optional&amp;quot; components (such as pybindgen and nsc) from the regular waf build
&lt;br&gt;&amp;nbsp; &amp;nbsp;process of ns-3. &amp;nbsp;Gustavo has something in the works.
&lt;br&gt;&amp;nbsp; &amp;nbsp;4. New API for RandomVariables, adding new seeing API and new default
&lt;br&gt;&amp;nbsp; &amp;nbsp;seeding behavior. &amp;nbsp;Raj is working with Michelle Weigle and Hadi Arbabi on
&lt;br&gt;&amp;nbsp; &amp;nbsp;this.
&lt;br&gt;&amp;nbsp; &amp;nbsp;5. A refactoring of the IPv4 routing API. &amp;nbsp;Tom is working on this.
&lt;br&gt;&amp;nbsp; &amp;nbsp;6. More support for IPv6 (
&lt;br&gt;&amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://mailman.isi.edu/pipermail/ns-developers/2008-July/004358.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mailman.isi.edu/pipermail/ns-developers/2008-July/004358.html&lt;/a&gt;).
&lt;br&gt;&amp;nbsp; &amp;nbsp;Tom is working on this.
&lt;br&gt;&amp;nbsp; &amp;nbsp;7. Behavioral changes in TCP to be RFC compliant in regards to closedown
&lt;br&gt;&amp;nbsp; &amp;nbsp;behavior (correct FINs and RSTs). &amp;nbsp;Raj is working on this.
&lt;br&gt;&amp;nbsp; &amp;nbsp;8. Consistency of trace hooks across NetDevice types. and true PCAP
&lt;br&gt;&amp;nbsp; &amp;nbsp;compatibility (&lt;a href=&quot;http://www.nsnam.org/bugzilla/show_bug.cgi?id=443&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.nsnam.org/bugzilla/show_bug.cgi?id=443&lt;/a&gt;). &amp;nbsp;Craig
&lt;br&gt;&amp;nbsp; &amp;nbsp;is working on this.
&lt;br&gt;&amp;nbsp; &amp;nbsp;9. Possible addition of some rigorous ns3 system tests which work without
&lt;br&gt;&amp;nbsp; &amp;nbsp;comparing script output against known traces.
&lt;br&gt;&lt;br&gt;There have been no other proposals for ns-3.4. &amp;nbsp;There are a group of open
&lt;br&gt;issues with no committments from people to work on them. &amp;nbsp;I will be pinging
&lt;br&gt;people to see if they can commit to completing some of these other things.
&lt;br&gt;&lt;br&gt;Thanks for reading this lengthy email. &amp;nbsp;Have a wonderful day everyone,
&lt;br&gt;-- 
&lt;br&gt;Raj Bhattacharjea
&lt;br&gt;Georgia Institute of Technology
&lt;br&gt;School of Electrical and Computer Engineering
&lt;br&gt;Ph.D. Candidate
&lt;br&gt;Systems Analyst
&lt;br&gt;404.894.2955
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/ns-developers-f15584.html&quot; embed=&quot;fixTarget[15584]&quot; target=&quot;_top&quot; &gt;ns-developers&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/ns-3.4-release-plans-tp21341925p21341925.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-21338921</id>
	<title>Re: Proposing upgrade of WAF</title>
	<published>2009-01-07T11:47:03Z</published>
	<updated>2009-01-07T11:47:03Z</updated>
	<author>
		<name>raj bhattacharjea-2</name>
	</author>
	<content type="html">On Mon, Dec 29, 2008 at 1:06 PM, Gustavo Carneiro &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=21338921&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gjcarneiro@...&lt;/a&gt;&amp;gt;wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; Yes, I was definitely planning to wait at least a week before merging
&lt;br&gt;&amp;gt; anything.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; Gustavo J. A. M. Carneiro
&lt;br&gt;&amp;gt; INESC Porto, Telecommunications and Multimedia Unit
&lt;br&gt;&amp;gt; &amp;quot;The universe is always one step beyond logic.&amp;quot; -- Frank Herbert
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;It has been a week and no one more has commented. &amp;nbsp;The consensus seems to be
&lt;br&gt;that the proposed changes are good. &amp;nbsp;Do you have any plans for merging?
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Raj Bhattacharjea
&lt;br&gt;Georgia Institute of Technology
&lt;br&gt;School of Electrical and Computer Engineering
&lt;br&gt;Ph.D. Candidate
&lt;br&gt;Systems Analyst
&lt;br&gt;404.894.2955
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/ns-developers-f15584.html&quot; embed=&quot;fixTarget[15584]&quot; target=&quot;_top&quot; &gt;ns-developers&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Proposing-upgrade-of-WAF-tp21204120p21338921.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-21334770</id>
	<title>LAN Layout help</title>
	<published>2009-01-07T08:18:00Z</published>
	<updated>2009-01-07T08:18:00Z</updated>
	<author>
		<name>Syed Faraz Hasan</name>
	</author>
	<content type="html">&lt;br&gt;&lt;br /&gt;Hi Everybody,
&lt;br&gt;&lt;br&gt;I enclose the NAM layout of a code given as under. I am trying to simulate a LAN with CSMA/MAC/CD. The resulting diagram of the LAN is not very clear. Is there any way to shape it up properly like a LAN. I know only the orient command use with setting duplex links but here the links between the nodes are already set up.
&lt;br&gt;Also, I get a warning the CSMA/MAC/CD is now out of date, what does that mean?
&lt;br&gt;&lt;br&gt;Hope you will write back at the earliest.
&lt;br&gt;&lt;br&gt;Faraz
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/ns-users-f15583.html&quot; embed=&quot;fixTarget[15583]&quot; target=&quot;_top&quot; &gt;ns-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/LAN-Layout-help-tp21334770p21334770.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-21332399</id>
	<title>Re: 802.11 first changesets to comment on.</title>
	<published>2009-01-07T06:28:43Z</published>
	<updated>2009-01-07T06:28:43Z</updated>
	<author>
		<name>Timo Bingmann</name>
	</author>
	<content type="html">On Wednesday 07 January 2009 13:40:22 Mathieu Lacage wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Wed, 2009-01-07 at 13:35 +0100, Timo Bingmann wrote:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; DefaultValue::Bind (&amp;quot;ns3::JakesPropagationLossModel::DopplerFreq&amp;quot;,
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; StringValue (&amp;quot;0.1&amp;quot;));
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; No, I used only default values until now. I updated my sample program,
&lt;br&gt;&amp;gt; &amp;gt; but used
&lt;br&gt;&amp;gt; &amp;gt; // doppler frequency shift for 5.15 GHz at 100 km/h
&lt;br&gt;&amp;gt; &amp;gt; jakes-&amp;gt;SetAttribute(&amp;quot;DopplerFreq&amp;quot;, DoubleValue(477.9));
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Federico's scripts all used 0.1. Don't ask me why.
&lt;/div&gt;&lt;br&gt;Well, 0.1 doesn't work for me.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; &amp;gt; Is it correct that the Jakes model is invariant in respect to node
&lt;br&gt;&amp;gt; &amp;gt; distance? Then the new plot shows the following probability density
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; yes, I believe so.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp;function:
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; &lt;a href=&quot;http://idlebox.net/2008/ns-3-wifi/results/ns-3-main-propagation-loss.pdf?page=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://idlebox.net/2008/ns-3-wifi/results/ns-3-main-propagation-loss.pdf?page=4&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; Looks good. The key for jakes loss is that you want to see the varying
&lt;br&gt;&amp;gt; loss over time. i.e., you should replace distance by time in your graph.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Mathieu
&lt;/div&gt;&lt;br&gt;Updated with two plots by time at different resolutions. The second shows the superimposed oscillators.
&lt;br&gt;Much better this way.
&lt;br&gt;&lt;br&gt;Greetings
&lt;br&gt;Timo
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/ns-developers-f15584.html&quot; embed=&quot;fixTarget[15584]&quot; target=&quot;_top&quot; &gt;ns-developers&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Re%3A-802.11-first-changesets-to-comment-on.-tp21311111p21332399.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-21331556</id>
	<title>Re: Mac layer 802.11n</title>
	<published>2009-01-07T05:39:17Z</published>
	<updated>2009-01-07T05:39:17Z</updated>
	<author>
		<name>Mirko Banchi</name>
	</author>
	<content type="html">&amp;gt; I've been studying EDCA some time now, and will be implementing it for my thesis.
&lt;br&gt;&amp;gt; We really should somehow coordinate our efforts.
&lt;br&gt;&lt;br&gt;Yeah!At the moment i'm discussing with ns3 developers about the best way
&lt;br&gt;to implement aggregation and blockack features. I think that, for EDCA,
&lt;br&gt;&amp;nbsp;should be great to use DcfManager class. Let me know how you're going
&lt;br&gt;to realize EDCA!
&lt;br&gt;&lt;br&gt;&amp;gt; Not as colorful and detailed, but much more hackish: (temporary screenshot)
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://idlebox.net/2008/ns-3-wifi/results/snapshot4.png&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://idlebox.net/2008/ns-3-wifi/results/snapshot4.png&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; It just plots time events from debug output. Events are points in time with a duration and some labeling.
&lt;br&gt;&lt;br&gt;This is great!Very useful!My idea to choose AC which a packet belongs is
&lt;br&gt;to use Tags. Your tool should also choose correct AC for a packet? Let
&lt;br&gt;me know!
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;&lt;br&gt;Mirko
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Mirko Banchi
&lt;br&gt;&lt;br&gt;e-mail: &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=21331556&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mk.banchi@...&lt;/a&gt;
&lt;br&gt;e-mail: &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=21331556&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mk.banchi@...&lt;/a&gt;
&lt;br&gt;id-jabber: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=21331556&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mk.banchi@...&lt;/a&gt;
&lt;br&gt;id-msn: &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=21331556&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mb11684@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;PGP key fingerprint:
&lt;br&gt;&lt;br&gt;308F BFB1 4E67 2522 C88E
&lt;br&gt;DC69 7631 52ED 32A5 6456
&lt;br&gt;&lt;br&gt;&lt;br /&gt; &lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://www.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;smime.p7s&lt;/strong&gt; (4K) &lt;a href=&quot;http://www.nabble.com/attachment/21331556/0/smime.p7s&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/ns-developers-f15584.html&quot; embed=&quot;fixTarget[15584]&quot; target=&quot;_top&quot; &gt;ns-developers&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Mac-layer-802.11n-tp21203404p21331556.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-21330972</id>
	<title>Re: Mac layer 802.11n</title>
	<published>2009-01-07T05:05:47Z</published>
	<updated>2009-01-07T05:05:47Z</updated>
	<author>
		<name>Timo Bingmann</name>
	</author>
	<content type="html">&amp;gt; 1)I agree with you about EdcaTxopN class. Maybe the better way to reuse
&lt;br&gt;&amp;gt; also DcfManager to implement Edca mechanism is write an interface
&lt;br&gt;&amp;gt; DcaTxop and inherit from it.
&lt;br&gt;&lt;br&gt;I've been studying EDCA some time now, and will be implementing it for my thesis.
&lt;br&gt;We really should somehow coordinate our efforts.
&lt;br&gt;&lt;br&gt;Currently I'm developing a small tool to visualize the QoS later on.
&lt;br&gt;&lt;br&gt;Its basic idea is based on this screenshot from Yavista
&lt;br&gt;&lt;a href=&quot;http://yavista.sourceforge.net/images/e/e5/A_screenshot_of_an_SVG_generated_from_NS%27s_XML_trace.png&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://yavista.sourceforge.net/images/e/e5/A_screenshot_of_an_SVG_generated_from_NS%27s_XML_trace.png&lt;/a&gt;&lt;br&gt;&lt;br&gt;Not as colorful and detailed, but much more hackish: (temporary screenshot)
&lt;br&gt;&lt;a href=&quot;http://idlebox.net/2008/ns-3-wifi/results/snapshot4.png&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://idlebox.net/2008/ns-3-wifi/results/snapshot4.png&lt;/a&gt;&lt;br&gt;&lt;br&gt;It just plots time events from debug output. Events are points in time with a duration and some labeling.
&lt;br&gt;&lt;br&gt;Greetings
&lt;br&gt;Timo
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/ns-developers-f15584.html&quot; embed=&quot;fixTarget[15584]&quot; target=&quot;_top&quot; &gt;ns-developers&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Mac-layer-802.11n-tp21203404p21330972.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-21330578</id>
	<title>Re: 802.11 first changesets to comment on.</title>
	<published>2009-01-07T04:40:22Z</published>
	<updated>2009-01-07T04:40:22Z</updated>
	<author>
		<name>Mathieu Lacage</name>
	</author>
	<content type="html">On Wed, 2009-01-07 at 13:35 +0100, Timo Bingmann wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; DefaultValue::Bind (&amp;quot;ns3::JakesPropagationLossModel::DopplerFreq&amp;quot;,
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; StringValue (&amp;quot;0.1&amp;quot;));
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; No, I used only default values until now. I updated my sample program,
&lt;br&gt;&amp;gt; but used
&lt;br&gt;&amp;gt; // doppler frequency shift for 5.15 GHz at 100 km/h
&lt;br&gt;&amp;gt; jakes-&amp;gt;SetAttribute(&amp;quot;DopplerFreq&amp;quot;, DoubleValue(477.9));
&lt;br&gt;&lt;br&gt;Federico's scripts all used 0.1. Don't ask me why.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Is it correct that the Jakes model is invariant in respect to node
&lt;br&gt;&amp;gt; distance? Then the new plot shows the following probability density
&lt;br&gt;&lt;br&gt;yes, I believe so.
&lt;br&gt;&lt;br&gt;&amp;gt; &amp;nbsp;function:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://idlebox.net/2008/ns-3-wifi/results/ns-3-main-propagation-loss.pdf?page=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://idlebox.net/2008/ns-3-wifi/results/ns-3-main-propagation-loss.pdf?page=4&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;Looks good. The key for jakes loss is that you want to see the varying
&lt;br&gt;loss over time. i.e., you should replace distance by time in your graph.
&lt;br&gt;&lt;br&gt;Mathieu
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/ns-developers-f15584.html&quot; embed=&quot;fixTarget[15584]&quot; target=&quot;_top&quot; &gt;ns-developers&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Re%3A-802.11-first-changesets-to-comment-on.-tp21311111p21330578.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-21330502</id>
	<title>Re: 802.11 first changesets to comment on.</title>
	<published>2009-01-07T04:35:46Z</published>
	<updated>2009-01-07T04:35:46Z</updated>
	<author>
		<name>Timo Bingmann</name>
	</author>
	<content type="html">On Tuesday 06 January 2009 15:45:33 Mathieu Lacage wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Tue, 2009-01-06 at 15:12 +0100, Mathieu Lacage wrote:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; - Added samples/main-propagation-loss.cc, which outputs a plot of all
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; loss models (except Jakes', which I couldnt get to work right or don't
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; understand it.)
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; I am trying to look at it right now: did you try setting a non-zero
&lt;br&gt;&amp;gt; &amp;gt; doppler frequency ? i.e., 
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; DefaultValue::Bind (&amp;quot;ns3::JakesPropagationLossModel::DopplerFreq&amp;quot;,
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; StringValue (&amp;quot;0.1&amp;quot;));
&lt;/div&gt;&lt;br&gt;No, I used only default values until now. I updated my sample program, but used
&lt;br&gt;// doppler frequency shift for 5.15 GHz at 100 km/h
&lt;br&gt;jakes-&amp;gt;SetAttribute(&amp;quot;DopplerFreq&amp;quot;, DoubleValue(477.9));
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Ok, the problem in your case comes from the fact that the Jakes
&lt;br&gt;&amp;gt; propagation model relies on simulation time actually going forward to
&lt;br&gt;&amp;gt; calculate the fast fading loss. Since I assume your code is doing a
&lt;br&gt;&amp;gt; single loop calling GetLoss repeatedly, the loss is always a constant
&lt;br&gt;&amp;gt; equal to the first loss and never changes. The following code gets me
&lt;br&gt;&amp;gt; the expected output with the patch from bug 459 applied:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; Ptr&amp;lt;PropagationLossModel&amp;gt; model = CreateObject&amp;lt;JakesPropagationLossModel&amp;gt; ();
&lt;br&gt;&amp;gt; &amp;nbsp; Ptr&amp;lt;MobilityModel&amp;gt; a = CreateObject&amp;lt;StaticMobilityModel&amp;gt; ();
&lt;br&gt;&amp;gt; &amp;nbsp; a-&amp;gt;SetPosition (Vector (0.0, 0.0, 0.0));
&lt;br&gt;&amp;gt; &amp;nbsp; Ptr&amp;lt;MobilityModel&amp;gt; b = CreateObject&amp;lt;StaticMobilityModel&amp;gt; ();
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; for (double x = 0; x &amp;lt; 2000; x+= 1)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; b-&amp;gt;SetPosition (Vector (x, 0.0, 0.0));
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; double loss = model-&amp;gt;GetLoss (a, b);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; std::cout &amp;lt;&amp;lt; x &amp;lt;&amp;lt; &amp;quot; &amp;quot; &amp;lt;&amp;lt; loss &amp;lt;&amp;lt; std::endl;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; Simulator::Stop (Seconds (1.0));
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; Simulator::Run ();
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; regards,
&lt;br&gt;&amp;gt; Mathieu
&lt;/div&gt;&lt;br&gt;Yes, that was the problem: the Jakes model uses Simulator::Now() in it's oscillator calculations.
&lt;br&gt;However Seconds(1.0) were too large time steps, I had to decrease it to 0.01 to get better results.
&lt;br&gt;&lt;br&gt;Is it correct that the Jakes model is invariant in respect to node distance? Then the new plot shows the following probability density function:
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://idlebox.net/2008/ns-3-wifi/results/ns-3-main-propagation-loss.pdf?page=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://idlebox.net/2008/ns-3-wifi/results/ns-3-main-propagation-loss.pdf?page=4&lt;/a&gt;&lt;br&gt;&lt;br&gt;I don't know enough about this model to actually verify it's results.
&lt;br&gt;&lt;br&gt;Greetings
&lt;br&gt;Timo
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/ns-developers-f15584.html&quot; embed=&quot;fixTarget[15584]&quot; target=&quot;_top&quot; &gt;ns-developers&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Re%3A-802.11-first-changesets-to-comment-on.-tp21311111p21330502.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-21329744</id>
	<title>Re: Mac layer 802.11n</title>
	<published>2009-01-07T03:46:04Z</published>
	<updated>2009-01-07T03:46:04Z</updated>
	<author>
		<name>Mathieu Lacage</name>
	</author>
	<content type="html">On Wed, 2009-01-07 at 12:25 +0100, Mirko Banchi wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; Use of A-MSDU or A-MPDU should be chosen according to type of traffic.
&lt;br&gt;&amp;gt; The idea is to implement the possibility of choose first, second or
&lt;br&gt;&amp;gt; both.
&lt;br&gt;&lt;br&gt;Ok. Is it the responsability of the MAC layer to choose whether to use
&lt;br&gt;A-MPDUs or is the PHY layer expected to be able to make its own choices
&lt;br&gt;on its own without interference from the MAC ?
&lt;br&gt;&lt;br&gt;&amp;gt; 1)I agree with you about EdcaTxopN class. Maybe the better way to
&lt;br&gt;&amp;gt; reuse
&lt;br&gt;&amp;gt; also DcfManager to implement Edca mechanism is write an interface
&lt;br&gt;&amp;gt; DcaTxop and inherit from it.
&lt;br&gt;&lt;br&gt;You don't need anything special to reuse DcfManager: You should be able
&lt;br&gt;to instance one DcfManager, 4 DcfState, 4 EdcaTxop and associate each
&lt;br&gt;DcfState to one EdcaTxop.
&lt;br&gt;&lt;br&gt;&amp;gt; 2)About BlockAck, you suggest to move storage of packets for which an
&lt;br&gt;&amp;gt; ack hasn't been received yet in DcaTxop and i agree with you.
&lt;br&gt;&lt;br&gt;I think that it should be the EdcaTxop class which should be responsible
&lt;br&gt;for keeping a copy of each outgoing packet to perform a retransmission
&lt;br&gt;if needed. I merely suggested that the MacLow be responsible for sending
&lt;br&gt;a block of packets all in one go. I would expect the MacLow to forget
&lt;br&gt;about each packet as soon as it is sent on the medium, regardless of
&lt;br&gt;whether the packet is acked later or not.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; &amp;gt; a) change the signature of MacLowTransmissionListener::GotAck to
&lt;br&gt;&amp;gt; include
&lt;br&gt;&amp;gt; &amp;gt; the sequence number of the packet we got an ack for:
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp;virtual void GotAck (double snr, WifiMode txMode, uint16_t seq) =
&lt;br&gt;&amp;gt; 0;
&lt;br&gt;&amp;gt; &amp;gt; This method will be invoked by the MacLow class to notify the
&lt;br&gt;&amp;gt; EdcaTxop
&lt;br&gt;&amp;gt; &amp;gt; class of each packet whose bit is set in a received BlockAck.
&lt;br&gt;&amp;gt; Changing the signature of
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; virtual void MacLowTransmissionListener::GotAck(double snr, WifiMode
&lt;br&gt;&amp;gt; txMode, uint16_t seq) = 0;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; involves calling it for every corretly received packet that is
&lt;br&gt;&amp;gt; acknowledged with the BlockAck frame. Maybe is better a function like
&lt;br&gt;&amp;gt; this?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; virtual void MacLowTrasmissionListener::GotBlockAck(double snr,
&lt;br&gt;&amp;gt; WifiMode
&lt;br&gt;&amp;gt; txMode, uint16_t *p) = 0;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; where p array contains sequence numbers indicated in the blockack
&lt;br&gt;&amp;gt; bitmap.
&lt;/div&gt;&lt;br&gt;Yes, you could do something like this but the one I suggested:
&lt;br&gt;&amp;nbsp; - allows you to not have to deal with an array of uint16_t (hence, not
&lt;br&gt;have to allocate/deallocate it)
&lt;br&gt;&amp;nbsp; - allows you to not pass around a pointer
&lt;br&gt;&lt;br&gt;I think that both options have probably about the same performance cost
&lt;br&gt;(in one case, you have to do a dynamic allocation and perform a single
&lt;br&gt;function call, in the other case, you don't have to do dynamic
&lt;br&gt;allocation and you perform multiple function calls) but the one I
&lt;br&gt;suggested seems more simple.
&lt;br&gt;&lt;br&gt;&amp;gt; &amp;gt; b) add MacLowTransmissionListener::MissedAck to notify a listener
&lt;br&gt;&amp;gt; that a
&lt;br&gt;&amp;gt; &amp;gt; specific packet has been missed.
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp;virtual void MissedAck (uint16_t seq) = 0;
&lt;br&gt;&amp;gt; If we implement the function above there isn't need to add thid
&lt;br&gt;&amp;gt; method.
&lt;br&gt;&lt;br&gt;It seems easier for EdcaTxop to have this method too because it saves
&lt;br&gt;EdcaTxop from having to infer which packets must be retransmitted to
&lt;br&gt;prepare the retransmission.
&lt;br&gt;&lt;br&gt;&amp;gt; &amp;gt; add MacLowTransmissionParameters::AddPacket and m_packets:
&lt;br&gt;&amp;gt; &amp;gt; void AddPacket (Ptr&amp;lt;const Packet&amp;gt; packet,
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; const WifiMacHeader *hdr);
&lt;br&gt;&amp;gt; &amp;gt; std::list&amp;lt;std::pair&amp;lt;Ptr&amp;lt;const Packet&amp;gt;, WifiMacHeader&amp;gt; &amp;gt; m_packets;
&lt;br&gt;&amp;gt; Sorry but i have some problems here :( How is used m_packets? When is
&lt;br&gt;&amp;gt; AddPacket called ?
&lt;br&gt;&lt;br&gt;Sample code:
&lt;br&gt;&lt;br&gt;EdcaTxop::Send (void)
&lt;br&gt;{
&lt;br&gt;&amp;nbsp; MacLowTransmissionParameters params;
&lt;br&gt;&amp;nbsp; params.[...]
&lt;br&gt;&amp;nbsp; params.AddPacket (p1, h1);
&lt;br&gt;&amp;nbsp; params.AddPacket (p2, h2);
&lt;br&gt;&amp;nbsp; m_low-&amp;gt;StartTransmission (params, m_listener);
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;MacLowTransmissionParameters contains all the parameters to apply to a
&lt;br&gt;set of packets to transmit. This, of course, will work only if all
&lt;br&gt;packets share the same tx parameters. Will it be the case for you ?
&lt;br&gt;&lt;br&gt;Finally, I wanted to point out that if you really care about merging
&lt;br&gt;your work in ns-3 itself, it is very important to proceed in small steps
&lt;br&gt;and not try to merge/implement all features at once: I would suggest
&lt;br&gt;that you first define a couple of clear milestones with subsets of the
&lt;br&gt;full functionality and that we try to merge each of these incrementally.
&lt;br&gt;&lt;br&gt;regards,
&lt;br&gt;Mathieu
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/ns-developers-f15584.html&quot; embed=&quot;fixTarget[15584]&quot; target=&quot;_top&quot; &gt;ns-developers&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Mac-layer-802.11n-tp21203404p21329744.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-21329451</id>
	<title>Re: Mac layer 802.11n</title>
	<published>2009-01-07T03:25:11Z</published>
	<updated>2009-01-07T03:25:11Z</updated>
	<author>
		<name>Mirko Banchi</name>
	</author>
	<content type="html">&amp;gt;
&lt;br&gt;&amp;gt; I also looked briefly at the aggregation support and its interaction
&lt;br&gt;&amp;gt; with the rate control code but I have to confess that I am not too
&lt;br&gt;&amp;gt; familiar with the latest 802.11n spec (I did get a copy of draft 7) so,
&lt;br&gt;&amp;gt; I have a question for you too &amp;nbsp;:) &amp;nbsp;What is the difference between MSDU and
&lt;br&gt;&amp;gt; MPDU aggregation ? When do you use one or the other ? 
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; thanks a lot for getting started on this project !
&lt;br&gt;Hi Mathieu,
&lt;br&gt;&lt;br&gt;MSDU aggregation is performed at Mac Layer and MPDU aggregation is
&lt;br&gt;performed at Physical Layer.
&lt;br&gt;&lt;br&gt;A-MSDU:
&lt;br&gt;&lt;br&gt;- at every packet (MSDU), received from LLC that will be part of the
&lt;br&gt;A-MSDU, is added an A-MSDU subframe header.
&lt;br&gt;- all resulting packets are concatenated and is added only one MAC
&lt;br&gt;header. Bit 7 of QoS control field in MAC header indicates the presence
&lt;br&gt;of an A-MSDU.
&lt;br&gt;&lt;br&gt;Obviously all packets must have the same Destination Address and must
&lt;br&gt;belong to the same Access Class (they've same TID).
&lt;br&gt;&lt;br&gt;A-MPDU:
&lt;br&gt;&lt;br&gt;this aggregation consists in concatenate more packets received from Mac
&lt;br&gt;Layer (each of which with own MAC header) in a single packet with a
&lt;br&gt;single PLCP header and a single PLCP preamble.
&lt;br&gt;&lt;br&gt;A-MPDU and A-MSDU can be used togheter at the same time.
&lt;br&gt;&lt;br&gt;Use of A-MSDU or A-MPDU should be chosen according to type of traffic.
&lt;br&gt;The idea is to implement the possibility of choose first, second or both.
&lt;br&gt;&lt;br&gt;--------------------------------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;1)I agree with you about EdcaTxopN class. Maybe the better way to reuse
&lt;br&gt;also DcfManager to implement Edca mechanism is write an interface
&lt;br&gt;DcaTxop and inherit from it.
&lt;br&gt;&lt;br&gt;2)About BlockAck, you suggest to move storage of packets for which an
&lt;br&gt;ack hasn't been received yet in DcaTxop and i agree with you.
&lt;br&gt;&amp;gt; a) change the signature of MacLowTransmissionListener::GotAck to include
&lt;br&gt;&amp;gt; the sequence number of the packet we got an ack for:
&lt;br&gt;&amp;gt; &amp;nbsp;virtual void GotAck (double snr, WifiMode txMode, uint16_t seq) = 0;
&lt;br&gt;&amp;gt; This method will be invoked by the MacLow class to notify the EdcaTxop
&lt;br&gt;&amp;gt; class of each packet whose bit is set in a received BlockAck.
&lt;br&gt;Changing the signature of
&lt;br&gt;&lt;br&gt;virtual void MacLowTransmissionListener::GotAck(double snr, WifiMode
&lt;br&gt;txMode, uint16_t seq) = 0;
&lt;br&gt;&lt;br&gt;involves calling it for every corretly received packet that is
&lt;br&gt;acknowledged with the BlockAck frame. Maybe is better a function like this?
&lt;br&gt;&lt;br&gt;virtual void MacLowTrasmissionListener::GotBlockAck(double snr, WifiMode
&lt;br&gt;txMode, uint16_t *p) = 0;
&lt;br&gt;&lt;br&gt;where p array contains sequence numbers indicated in the blockack bitmap.
&lt;br&gt;&amp;gt; b) add MacLowTransmissionListener::MissedAck to notify a listener that a
&lt;br&gt;&amp;gt; specific packet has been missed.
&lt;br&gt;&amp;gt; &amp;nbsp;virtual void MissedAck (uint16_t seq) = 0;
&lt;br&gt;If we implement the function above there isn't need to add thid method.
&lt;br&gt;&amp;gt; c) add to MacLowTransmissionListener::MissedAck (void) that this method
&lt;br&gt;&amp;gt; is invoked if we missed an ack within ack timeout and that in case of
&lt;br&gt;&amp;gt; block ack transfers, this notifies that the tx side has not received a
&lt;br&gt;&amp;gt; blockack as requested by a block ack req.
&lt;br&gt;Ok!
&lt;div class='shrinkable-quote'&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; d) add a MacLowTransmissionParameters::EnableBlockAck, MustWaitBlockAck,
&lt;br&gt;&amp;gt; and ACK_BLOCK_ACK to m_wait_ack:
&lt;br&gt;&amp;gt; void EnableBlockAck (void);
&lt;br&gt;&amp;gt; bool MustWaitBlockAck (void);
&lt;br&gt;&amp;gt; &amp;nbsp; enum {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; ACK_NONE,
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; ACK_NORMAL,
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; ACK_FAST,
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; ACK_SUPER_FAST,
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; ACK_BLOCK_ACK
&lt;br&gt;&amp;gt; &amp;nbsp; } m_waitAck;
&lt;/div&gt;Ok!
&lt;br&gt;&amp;gt; add MacLowTransmissionParameters::AddPacket and m_packets:
&lt;br&gt;&amp;gt; void AddPacket (Ptr&amp;lt;const Packet&amp;gt; packet,
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; const WifiMacHeader *hdr);
&lt;br&gt;&amp;gt; std::list&amp;lt;std::pair&amp;lt;Ptr&amp;lt;const Packet&amp;gt;, WifiMacHeader&amp;gt; &amp;gt; m_packets;
&lt;/div&gt;Sorry but i have some problems here :( How is used m_packets? When is
&lt;br&gt;AddPacket called ?
&lt;br&gt;&amp;gt; f) change the signature of MacLow::CalculateTransmissionTime and
&lt;br&gt;&amp;gt; MacLow::StartTransmission:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; Time CalculateTransmissionTime (MacLowTransmissionParameters
&lt;br&gt;&amp;gt; const&amp;parameters) const;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; void StartTransmission (MacLowTransmissionParameters parameters,
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; MacLowTransmissionListener *listener);
&lt;br&gt;Ok!
&lt;br&gt;&lt;br&gt;I'd like to know what you think about this!
&lt;br&gt;Thank you very much for your consideration and collaboration :-)
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;&lt;br&gt;Mirko
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&lt;br&gt;Mirko Banchi
&lt;br&gt;&lt;br&gt;e-mail: &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=21329451&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mk.banchi@...&lt;/a&gt;
&lt;br&gt;e-mail: &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=21329451&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mk.banchi@...&lt;/a&gt;
&lt;br&gt;id-jabber: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=21329451&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mk.banchi@...&lt;/a&gt;
&lt;br&gt;id-msn: &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=21329451&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mb11684@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;PGP key fingerprint:
&lt;br&gt;&lt;br&gt;308F BFB1 4E67 2522 C88E 
&lt;br&gt;DC69 7631 52ED 32A5 6456
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br /&gt; &lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://www.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;smime.p7s&lt;/strong&gt; (4K) &lt;a href=&quot;http://www.nabble.com/attachment/21329451/0/smime.p7s&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/ns-developers-f15584.html&quot; embed=&quot;fixTarget[15584]&quot; target=&quot;_top&quot; &gt;ns-developers&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Mac-layer-802.11n-tp21203404p21329451.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-21325888</id>
	<title>Re: output of ./waf --regression</title>
	<published>2009-01-06T22:54:44Z</published>
	<updated>2009-01-06T22:54:44Z</updated>
	<author>
		<name>Mathieu Lacage</name>
	</author>
	<content type="html">On Tue, 2009-01-06 at 21:43 -0800, Tom Henderson wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; these are artifacts of tutorial scripts second.cc and third.cc being 
&lt;br&gt;&amp;gt; added to the regression tests, and these tutorial scripts make use of 
&lt;br&gt;&amp;gt; the logging facilities. &amp;nbsp;These could probably be quieted in the 
&lt;br&gt;&amp;gt; regression by adding an option to disable logging and plumbing it into 
&lt;br&gt;&amp;gt; the regression test-second.py.
&lt;br&gt;&lt;br&gt;even better would be to dump the stdout of each regression script into a
&lt;br&gt;specific regression trace and compare these during waf --regression. I
&lt;br&gt;would suggest that whoever did this change should be responsible for
&lt;br&gt;fixing the output :)
&lt;br&gt;&lt;br&gt;Mathieu
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/ns-developers-f15584.html&quot; embed=&quot;fixTarget[15584]&quot; target=&quot;_top&quot; &gt;ns-developers&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/output-of-.-waf---regression-tp21309253p21325888.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-21325313</id>
	<title>Re: output of ./waf --regression</title>
	<published>2009-01-06T21:43:06Z</published>
	<updated>2009-01-06T21:43:06Z</updated>
	<author>
		<name>Tom Henderson-2</name>
	</author>
	<content type="html">Mathieu Lacage wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; hi,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I just noticed that the output of ./waf --regression is a bit more
&lt;br&gt;&amp;gt; verbose than it should be:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; [mathieu@localhost ns-3-dev]$ ./waf --regression
&lt;br&gt;&amp;gt; Entering directory `/home/mathieu/code/ns-3-dev/build'
&lt;br&gt;&amp;gt; Compilation finished successfully 
&lt;br&gt;&amp;gt; ========== Running Regression Tests ==========
&lt;br&gt;&amp;gt; Synchronizing reference traces using Mercurial.
&lt;br&gt;&amp;gt; Pulling &lt;a href=&quot;http://code.nsnam.org/ns-3-dev-ref-traces&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://code.nsnam.org/ns-3-dev-ref-traces&lt;/a&gt;&amp;nbsp;from repo.
&lt;br&gt;&amp;gt; PASS test-csma-bridge
&lt;br&gt;&amp;gt; PASS test-csma-broadcast
&lt;br&gt;&amp;gt; PASS test-csma-multicast
&lt;br&gt;&amp;gt; PASS test-csma-one-subnet
&lt;br&gt;&amp;gt; PASS test-csma-packet-socket
&lt;br&gt;&amp;gt; PASS test-csma-ping
&lt;br&gt;&amp;gt; PASS test-csma-raw-ip-socket
&lt;br&gt;&amp;gt; PASS test-csma-star
&lt;br&gt;&amp;gt; PASS test-dynamic-global-routing
&lt;br&gt;&amp;gt; PASS test-global-routing-slash32
&lt;br&gt;&amp;gt; PASS test-ns2-mob
&lt;br&gt;&amp;gt; PASS test-realtime-udp-echo
&lt;br&gt;&amp;gt; Note the 3 messages below
&lt;br&gt;&amp;gt; Sent 1024 bytes to 10.1.2.4
&lt;br&gt;&amp;gt; Received 1024 bytes from 10.1.1.1
&lt;br&gt;&amp;gt; Received 1024 bytes from 10.1.2.4
&lt;br&gt;&amp;gt; PASS test-second
&lt;br&gt;&amp;gt; PASS test-simple-error-model
&lt;br&gt;&amp;gt; PASS test-simple-global-routing
&lt;br&gt;&amp;gt; PASS test-simple-point-to-point-olsr
&lt;br&gt;&amp;gt; PASS test-static-routing-slash32
&lt;br&gt;&amp;gt; PASS test-tcp-large-transfer
&lt;br&gt;&amp;gt; Skipping tcp-nsc-lfn: NSC not available.
&lt;br&gt;&amp;gt; SKIP test-tcp-nsc-lfn
&lt;br&gt;&amp;gt; And here again
&lt;br&gt;&amp;gt; Sent 1024 bytes to 10.1.2.4
&lt;br&gt;&amp;gt; Received 1024 bytes from 10.1.3.3
&lt;br&gt;&amp;gt; Received 1024 bytes from 10.1.2.4
&lt;br&gt;&amp;gt; PASS test-third
&lt;br&gt;&amp;gt; PASS test-udp-echo
&lt;br&gt;&amp;gt; PASS test-wifi-wired-bridging
&lt;br&gt;&amp;gt; [mathieu@localhost ns-3-dev]$ 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Did I misconfigure my system or is this expected ? If not, I will file a
&lt;br&gt;&amp;gt; bug.
&lt;/div&gt;&lt;br&gt;these are artifacts of tutorial scripts second.cc and third.cc being 
&lt;br&gt;added to the regression tests, and these tutorial scripts make use of 
&lt;br&gt;the logging facilities. &amp;nbsp;These could probably be quieted in the 
&lt;br&gt;regression by adding an option to disable logging and plumbing it into 
&lt;br&gt;the regression test-second.py.
&lt;br&gt;&lt;br&gt;Tom
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/ns-developers-f15584.html&quot; embed=&quot;fixTarget[15584]&quot; target=&quot;_top&quot; &gt;ns-developers&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/output-of-.-waf---regression-tp21309253p21325313.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-21324979</id>
	<title>802.11n MIMO support with ns2</title>
	<published>2009-01-06T21:01:38Z</published>
	<updated>2009-01-06T21:01:38Z</updated>
	<author>
		<name>Lochan Verma</name>
	</author>
	<content type="html">&lt;br&gt;Dear ns2 users,
&lt;br&gt;&lt;br&gt;&amp;nbsp;This is my second post relating to the same topic.
&lt;br&gt;&amp;nbsp;I was wondering if there is some exsistent code or hints to write a
&lt;br&gt;patch to incorporate MIMO support in ns2.
&lt;br&gt;&lt;br&gt;&amp;nbsp;Recently I saw some emails dealing with ns3 and 802.11n
&lt;br&gt;implementation by people from Univeristy of Florance.
&lt;br&gt;&amp;nbsp;When available, it will be a big contribution according to me.
&lt;br&gt;&lt;br&gt;&amp;nbsp;Can somebody please gives some ideas and thoughts.
&lt;br&gt;&lt;br&gt;&amp;nbsp;All help is appreciated.
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;Lochan
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/ns-users-f15583.html&quot; embed=&quot;fixTarget[15583]&quot; target=&quot;_top&quot; &gt;ns-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/802.11n-MIMO-support-with-ns2-tp21324979p21324979.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-21322534</id>
	<title>Re: how can i change the pause time parameters?</title>
	<published>2009-01-06T16:21:12Z</published>
	<updated>2009-01-06T16:21:12Z</updated>
	<author>
		<name>Sidney Doria</name>
	</author>
	<content type="html">&lt;br&gt;I was just questioning: Will that guy say: &amp;quot;hey, this is the same answer!&amp;quot;?
&lt;br&gt;&lt;br&gt;I tell you: It is not. Read your text and you'll see how rude It was.
&lt;br&gt;&lt;br&gt;I helped him. Twice. And I'm here to help him many more times, to
&lt;br&gt;answer many more questions (if I know the answer).
&lt;br&gt;&lt;br&gt;I will not read your message because probably it doesn't matter. This ends here.
&lt;br&gt;&lt;br&gt;You come from a excelent country, with good schools, and have an well
&lt;br&gt;known, incredible, knowledge of the inside NS-2 and NS-3. So, you can
&lt;br&gt;help people more than anyone.
&lt;br&gt;&lt;br&gt;Please, realize that many students in here had a quarter of your
&lt;br&gt;opportunities. What they need is incentive.
&lt;br&gt;&lt;br&gt;I propose you forget about it, remove the &amp;quot;checking for intelligent
&lt;br&gt;life... not found&amp;quot; from your email sign, and help us.
&lt;br&gt;&lt;br&gt;Sidney Doria
&lt;br&gt;&lt;br&gt;UFCG / BRAZIL
&lt;br&gt;&lt;br&gt;&lt;br&gt;2009/1/6 Hagen Paul Pfeifer &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=21322534&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;hagen@...&lt;/a&gt;&amp;gt;:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; * Sidney Doria | 2009-01-06 20:19:16 [-0300]:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;Ok, the answers are here, but I suggest you to google it a bit more! :)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ;-) that was that what I told you some months ago! OK, a little bit more
&lt;br&gt;&amp;gt; unkindly (but that was not my suggestion). But you see, a lot of questions
&lt;br&gt;&amp;gt; here are superfluous and a google search is much more effective as to post
&lt;br&gt;&amp;gt; here (this belongs to a big part of all questions here).
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Anyway, I must smile on myself where I read your sentence! ;-)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Best regards and have a nice week!
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Hagen
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; [...]
&lt;br&gt;&amp;gt; checking for intelligent life... not found
&lt;br&gt;&amp;gt; [...]
&lt;br&gt;&amp;gt; [aus 'configure' von GIMP-1.2.2]
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Sidney Doria
&lt;br&gt;Redes ad hoc móveis
&lt;br&gt;Doutorado em Computação
&lt;br&gt;UFCG
&lt;br&gt;Brasil
&lt;br&gt;&lt;br&gt;&amp;quot;Nessa jornada, o conhecimento será o seu escudo...&amp;quot;
&lt;br&gt;(Mestre dos Magos no episódio do grimoire de ouro)
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/ns-users-f15583.html&quot; embed=&quot;fixTarget[15583]&quot; target=&quot;_top&quot; &gt;ns-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/how-can-i-change-the-pause-time-parameters--tp21318495p21322534.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-21321691</id>
	<title>Re: how can i change the pause time parameters?</title>
	<published>2009-01-06T15:19:16Z</published>
	<updated>2009-01-06T15:19:16Z</updated>
	<author>
		<name>Sidney Doria</name>
	</author>
	<content type="html">&lt;br&gt;Ok, the answers are here, but I suggest you to google it a bit more! :)
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://web.syr.edu/~dchen02/FAQ.txt&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://web.syr.edu/~dchen02/FAQ.txt&lt;/a&gt;&lt;br&gt;------------------------------------------------------
&lt;br&gt;Question 6:
&lt;br&gt;&lt;br&gt;How to set up the wireless bandwidth (such as 802.11 a,b,g) in NS2?
&lt;br&gt;&lt;br&gt;Answer:
&lt;br&gt;&lt;br&gt;In ns2.26 and ns2.27, you can change (basicRate_ and dataRate_ ):
&lt;br&gt;&lt;br&gt;Mac/802_11 set basicRate_ 1Mb
&lt;br&gt;Mac/802_11 set dataRate_ &amp;nbsp;11Mb
&lt;br&gt;&lt;br&gt;in your tcl script.
&lt;br&gt;&lt;br&gt;FHSS (IEEE802.11)
&lt;br&gt;&amp;nbsp; &amp;nbsp;Mac/802_11 set SlotTime_ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.000050 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;;# 50us
&lt;br&gt;&amp;nbsp; &amp;nbsp;Mac/802_11 set SIFS_ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.000028 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;;# 28us
&lt;br&gt;&amp;nbsp; &amp;nbsp;Mac/802_11 set PreambleLength_ &amp;nbsp; &amp;nbsp;0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ;# no preamble
&lt;br&gt;&amp;nbsp; &amp;nbsp;Mac/802_11 set PLCPHeaderLength_ &amp;nbsp;128 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ;# 128 bits
&lt;br&gt;&amp;nbsp; &amp;nbsp;Mac/802_11 set PLCPDataRate_ &amp;nbsp; &amp;nbsp; &amp;nbsp;1.0e6 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ;# 1Mbps
&lt;br&gt;&amp;nbsp; &amp;nbsp;Mac/802_11 set dataRate_ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1.0e6 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ;# 11Mbps
&lt;br&gt;&amp;nbsp; &amp;nbsp;Mac/802_11 set basicRate_ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1.0e6 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ;# 1Mbps
&lt;br&gt;&lt;br&gt;DSSS (IEEE802.11b)
&lt;br&gt;&amp;nbsp; &amp;nbsp;Mac/802_11 set SlotTime_ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.000020 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;;# 20us
&lt;br&gt;&amp;nbsp; &amp;nbsp;Mac/802_11 set SIFS_ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.000010 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;;# 10us
&lt;br&gt;&amp;nbsp; &amp;nbsp;Mac/802_11 set PreambleLength_ &amp;nbsp; &amp;nbsp;144 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ;# 144 bit
&lt;br&gt;&amp;nbsp; &amp;nbsp;Mac/802_11 set PLCPHeaderLength_ &amp;nbsp;48 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;;# 48 bits
&lt;br&gt;&amp;nbsp; &amp;nbsp;Mac/802_11 set PLCPDataRate_ &amp;nbsp; &amp;nbsp; &amp;nbsp;1.0e6 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ;# 1Mbps
&lt;br&gt;&amp;nbsp; &amp;nbsp;Mac/802_11 set dataRate_ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;11.0e6 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;;# 11Mbps
&lt;br&gt;&amp;nbsp; &amp;nbsp;Mac/802_11 set basicRate_ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1.0e6 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ;# 1Mbps
&lt;br&gt;&lt;br&gt;Note:
&lt;br&gt;&lt;br&gt;-if using the short preamble option: you can change the line as:
&lt;br&gt;Mac/802_11 set PreambleLength_ 72
&lt;br&gt;&lt;br&gt;- &amp;nbsp;# frequency is 2.4 GHz
&lt;br&gt;&amp;nbsp; &amp;nbsp;Phy/WirelessPhy set freq_ 2.4e+9
&lt;br&gt;&amp;nbsp; &amp;nbsp;# transmit power
&lt;br&gt;&amp;nbsp; &amp;nbsp;Phy/WirelessPhy set Pt_ 3.3962527e-2
&lt;br&gt;&amp;nbsp; &amp;nbsp;# Receive sensitivity.
&lt;br&gt;&amp;nbsp; &amp;nbsp;Phy/WirelessPhy set RXThresh_ 6.309573e-12
&lt;br&gt;&amp;nbsp; &amp;nbsp;Phy/WirelessPhy set CSThresh_ 6.309573e-12
&lt;br&gt;&lt;br&gt;( *** HEY SARYM ***, READ THIS)
&lt;br&gt;Note that the radio range that results from this configuration may or may
&lt;br&gt;not coincide with open field tests. If you want setup a specific range,
&lt;br&gt;use the program ~/indep-utils/propagation/threshold.cc to obtain the
&lt;br&gt;desired RXThresh_ (rx sensitivity) based on the above frequency, transmit
&lt;br&gt;power and your desired range.
&lt;br&gt;&lt;br&gt;&lt;br&gt;802.11g:
&lt;br&gt;&lt;br&gt;#define DSSS_CWMin			15
&lt;br&gt;#define DSSS_CWMax			1023
&lt;br&gt;#define DSSS_SlotTime		0.000009	
&lt;br&gt;#define DSSS_CCATime 		0.000003	
&lt;br&gt;#define DSSS_RxTxTurnaroundTime	0.000002	
&lt;br&gt;#define DSSS_SIFSTime		0.000016 	
&lt;br&gt;#define DSSS_PreambleLength	 96
&lt;br&gt;#define DSSS_PLCPHeaderLength	40	
&lt;br&gt;#define DSSS_PLCPDataRate		6.0e6	// 6Mbps
&lt;br&gt;#define DSSS_MaxPropagationDelay &amp;nbsp; &amp;nbsp; 0.0000005	// 0.5us
&lt;br&gt;&lt;br&gt;Note: bandwidth is different with achievable throughput.
&lt;br&gt;&lt;br&gt;- In NS ACK are always sent at 1Mbps
&lt;br&gt;- NS use always the long PLCP preamble format sent at 1Mbps
&lt;br&gt;- by default NS uses RTS/CTS handshake
&lt;br&gt;- Packet's size has also an impact in the % of overhead.
&lt;br&gt;&lt;br&gt;All this factor can bound the achievable throughput
&lt;br&gt;---------------------------------------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Hope to be useful,
&lt;br&gt;&lt;br&gt;Sidney Doria
&lt;br&gt;&lt;br&gt;UFCG / BRAZIL
&lt;br&gt;&lt;br&gt;&lt;br&gt;2009/1/6 sarym binome &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=21321691&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;binome_ini@...&lt;/a&gt;&amp;gt;:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; hi sideny
&lt;br&gt;&amp;gt; please show me exactly where can i do that (about radio range )
&lt;br&gt;&amp;gt; set ns_ [new Simulator]
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; set topo [new Topography]
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; set val(chan) &amp;nbsp; &amp;nbsp; Channel/WirelessChannel
&lt;br&gt;&amp;gt; set val(prop) &amp;nbsp; &amp;nbsp; Propagation/TwoRayGround
&lt;br&gt;&amp;gt; set val(ant) &amp;nbsp; &amp;nbsp; &amp;nbsp;Antenna/OmniAntenna
&lt;br&gt;&amp;gt; set val(ll) &amp;nbsp; &amp;nbsp; &amp;nbsp; LL
&lt;br&gt;&amp;gt; set val(ifq) &amp;nbsp; &amp;nbsp; &amp;nbsp;Queue/DropTail/PriQueue
&lt;br&gt;&amp;gt; set val(x) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;670 &amp;nbsp; ;# X dimension of the topography
&lt;br&gt;&amp;gt; set val(y) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;670 &amp;nbsp; ;# Y dimension of the topography
&lt;br&gt;&amp;gt; set val(ifqlen) &amp;nbsp; 50
&lt;br&gt;&amp;gt; set val(seed) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.0
&lt;br&gt;&amp;gt; set val(netif) &amp;nbsp; &amp;nbsp;Phy/WirelessPhy
&lt;br&gt;&amp;gt; set val(mac) &amp;nbsp; &amp;nbsp; &amp;nbsp;Mac/802_11
&lt;br&gt;&amp;gt; set val(rp) &amp;nbsp; &amp;nbsp; &amp;nbsp; AODV
&lt;br&gt;&amp;gt; set val(nn) &amp;nbsp; &amp;nbsp; &amp;nbsp; 20
&lt;br&gt;&amp;gt; set val(cp) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;quot;cbr-20-test.cbr&amp;quot;
&lt;br&gt;&amp;gt; set val(sc) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [lindex $argv 0]
&lt;br&gt;&amp;gt; set val(stop) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 200.0
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; for {set i 0} {$i &amp;lt; $val(nn) } { incr i} {
&lt;br&gt;&amp;gt; &amp;nbsp; set node_($i) [$ns_ node]
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;$node_($i) random-motion 0
&lt;br&gt;&amp;gt; }
&lt;br&gt;&amp;gt; &amp;nbsp;thanks
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Date: Tue, 6 Jan 2009 18:29:46 -0300
&lt;br&gt;&amp;gt;&amp;gt; From: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=21321691&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ssdoria@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; To: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=21321691&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;binome_ini@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; Subject: Re: [ns] how can i change the pause time parameters?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; About the pause time I don't know, but about the radio range 250m is
&lt;br&gt;&amp;gt;&amp;gt; the default. This value is initiated in the TCL file, in a loop to
&lt;br&gt;&amp;gt;&amp;gt; create all nodes (with same parameters).
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Sidney Doria
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; UFCG / BRAZIL
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; 2009/1/6 sarym binome &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=21321691&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;binome_ini@...&lt;/a&gt;&amp;gt;:
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; hello
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; how can i change the pause time parameters without creating a lot of
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; scenario file and change the -p (when we use the setdest) ? is it possible
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; (how can i do it ?)
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; how can i set the radio range = 250m , where can i initiate this
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; variable ?
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; best regards
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; _________________________________________________________________
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; Glissez - déplacez : c'est si simple de partager vos photos sur Windows
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; Live™ Photos !
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; &lt;a href=&quot;http://www.microsoft.com/windows/windowslive/photos.aspx&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.microsoft.com/windows/windowslive/photos.aspx&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; --
&lt;br&gt;&amp;gt;&amp;gt; Sidney Doria
&lt;br&gt;&amp;gt;&amp;gt; Redes ad hoc móveis
&lt;br&gt;&amp;gt;&amp;gt; Doutorado em Computação
&lt;br&gt;&amp;gt;&amp;gt; UFCG
&lt;br&gt;&amp;gt;&amp;gt; Brasil
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;quot;Nessa jornada, o conhecimento será o seu escudo...&amp;quot;
&lt;br&gt;&amp;gt;&amp;gt; (Mestre dos Magos no episódio do grimoire de ouro)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ________________________________
&lt;br&gt;&amp;gt; Tous vos amis discutent sur Messenger, et vous ? Téléchargez Messenger,
&lt;br&gt;&amp;gt; c'est gratuit !
&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Sidney Doria
&lt;br&gt;Redes ad hoc móveis
&lt;br&gt;Doutorado em Computação
&lt;br&gt;UFCG
&lt;br&gt;Brasil
&lt;br&gt;&lt;br&gt;&amp;quot;Nessa jornada, o conhecimento será o seu escudo...&amp;quot;
&lt;br&gt;(Mestre dos Magos no episódio do grimoire de ouro)
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/ns-users-f15583.html&quot; embed=&quot;fixTarget[15583]&quot; target=&quot;_top&quot; &gt;ns-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/how-can-i-change-the-pause-time-parameters--tp21318495p21321691.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-21321398</id>
	<title>Re: Mac layer 802.11n</title>
	<published>2009-01-06T15:07:49Z</published>
	<updated>2009-01-06T15:07:49Z</updated>
	<author>
		<name>Mirko Banchi</name>
	</author>
	<content type="html"> &lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://www.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;smime.p7s&lt;/strong&gt; (4K) &lt;a href=&quot;http://www.nabble.com/attachment/21321398/0/smime.p7s&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/ns-developers-f15584.html&quot; embed=&quot;fixTarget[15584]&quot; target=&quot;_top&quot; &gt;ns-developers&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Mac-layer-802.11n-tp21203404p21321398.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-21318590</id>
	<title>what the Handoff Attempted  error mean</title>
	<published>2009-01-06T12:39:43Z</published>
	<updated>2009-01-06T12:39:43Z</updated>
	<author>
		<name>sarym binome</name>
	</author>
	<content type="html">&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;hello 
&lt;br&gt;i have this error when i simulate AODV protocol
&lt;br&gt;Client 7: Handoff Attempted
&lt;br&gt;best regards
&lt;br&gt;sarym
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_________________________________________________________________
&lt;br&gt;Découvrez Windows Live Spaces et créez votre site Web perso en quelques clics !
&lt;br&gt;&lt;a href=&quot;http://spaces.live.com/signup.aspx&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://spaces.live.com/signup.aspx&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/ns-users-f15583.html&quot; embed=&quot;fixTarget[15583]&quot; target=&quot;_top&quot; &gt;ns-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/what-the-Handoff-Attempted--error-mean-tp21318590p21318590.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-21318495</id>
	<title>how can i change the pause time parameters?</title>
	<published>2009-01-06T12:35:11Z</published>
	<updated>2009-01-06T12:35:11Z</updated>
	<author>
		<name>sarym binome</name>
	</author>
	<content type="html">&lt;br&gt;&lt;br&gt;hello
&lt;br&gt;how can i change the pause time parameters without creating a lot of scenario file and change the -p (when we use the setdest) ? is it possible (how can i do it ?)
&lt;br&gt;how can i set the radio range = 250m , where can i initiate this variable ?
&lt;br&gt;best regards
&lt;br&gt;&lt;br&gt;_________________________________________________________________
&lt;br&gt;Glissez - déplacez : c'est si simple de partager vos photos sur Windows Live™ Photos !
&lt;br&gt;&lt;a href=&quot;http://www.microsoft.com/windows/windowslive/photos.aspx&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.microsoft.com/windows/windowslive/photos.aspx&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/ns-users-f15583.html&quot; embed=&quot;fixTarget[15583]&quot; target=&quot;_top&quot; &gt;ns-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/how-can-i-change-the-pause-time-parameters--tp21318495p21318495.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-21317676</id>
	<title>Re: [RFC] Worker Infrastructure - Parallelization	in Large</title>
	<published>2009-01-06T11:48:26Z</published>
	<updated>2009-01-06T11:48:26Z</updated>
	<author>
		<name>Mathieu Lacage</name>
	</author>
	<content type="html">On Tue, 2009-01-06 at 20:33 +0100, Hagen Paul Pfeifer wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; &amp;gt;3) You would be my personal hero if you would modify the waf
&lt;br&gt;&amp;gt; &amp;gt;build/regression system to run the regression suite using a small C++
&lt;br&gt;&amp;gt; &amp;gt;program based on the WorkManager when it is available on the target
&lt;br&gt;&amp;gt; &amp;gt;platform.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; An alternative way is something like &amp;quot;if sys.platform == 'win32'&amp;quot;. The
&lt;br&gt;&amp;gt; interesting question is _how_ to react for systems where fork(2) is not
&lt;br&gt;&amp;gt; supported.
&lt;br&gt;&lt;br&gt;We support win32 through cygwin so, I am not worried about the lack of
&lt;br&gt;fork.
&lt;br&gt;&lt;br&gt;&amp;gt; Should &amp;quot;WorkManager::Run()&amp;quot; blindly ignores that a parallelized execution is
&lt;br&gt;&amp;gt; not supported and execute all registered task consecutively. This is my
&lt;br&gt;&amp;gt; favorite solution because the simulation file is independent from the platform
&lt;br&gt;&amp;gt; and the only disadvantage is a slower execution. My personal wish is that the
&lt;br&gt;&amp;gt; WorkManager is totally opaque to the user.
&lt;br&gt;&lt;br&gt;This also sounds great.
&lt;br&gt;&lt;br&gt;Mathieu
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/ns-developers-f15584.html&quot; embed=&quot;fixTarget[15584]&quot; target=&quot;_top&quot; &gt;ns-developers&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/-RFC--Worker-Infrastructure---Parallelization-in-Large-tp21127389p21317676.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-21317427</id>
	<title>Re: [RFC] Worker Infrastructure - Parallelization	in Large</title>
	<published>2009-01-06T11:33:55Z</published>
	<updated>2009-01-06T11:33:55Z</updated>
	<author>
		<name>Hagen Paul Pfeifer-2</name>
	</author>
	<content type="html">* Mathieu Lacage | 2009-01-06 11:41:02 [+0100]:
&lt;br&gt;&lt;br&gt;Point 1 and 2 are brilliant hints, I will commit these changes soon.
&lt;br&gt;&lt;br&gt;&amp;gt;3) You would be my personal hero if you would modify the waf
&lt;br&gt;&amp;gt;build/regression system to run the regression suite using a small C++
&lt;br&gt;&amp;gt;program based on the WorkManager when it is available on the target
&lt;br&gt;&amp;gt;platform.
&lt;br&gt;&lt;br&gt;An alternative way is something like &amp;quot;if sys.platform == 'win32'&amp;quot;. The
&lt;br&gt;interesting question is _how_ to react for systems where fork(2) is not
&lt;br&gt;supported.
&lt;br&gt;&lt;br&gt;Should &amp;quot;WorkManager::Run()&amp;quot; blindly ignores that a parallelized execution is
&lt;br&gt;not supported and execute all registered task consecutively. This is my
&lt;br&gt;favorite solution because the simulation file is independent from the platform
&lt;br&gt;and the only disadvantage is a slower execution. My personal wish is that the
&lt;br&gt;WorkManager is totally opaque to the user.
&lt;br&gt;&lt;br&gt;Any hints, ideas?
&lt;br&gt;&lt;br&gt;&amp;gt;thanks again for your code,
&lt;br&gt;&lt;br&gt;You are welcome!
&lt;br&gt;&lt;br&gt;Hagen
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/ns-developers-f15584.html&quot; embed=&quot;fixTarget[15584]&quot; target=&quot;_top&quot; &gt;ns-developers&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/-RFC--Worker-Infrastructure---Parallelization-in-Large-tp21127389p21317427.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-21311760</id>
	<title>Re: 802.11 first changesets to comment on.</title>
	<published>2009-01-06T06:45:33Z</published>
	<updated>2009-01-06T06:45:33Z</updated>
	<author>
		<name>Mathieu Lacage</name>
	</author>
	<content type="html">On Tue, 2009-01-06 at 15:12 +0100, Mathieu Lacage wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; &amp;gt; - Added samples/main-propagation-loss.cc, which outputs a plot of all
&lt;br&gt;&amp;gt; &amp;gt; loss models (except Jakes', which I couldnt get to work right or don't
&lt;br&gt;&amp;gt; &amp;gt; understand it.)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I am trying to look at it right now: did you try setting a non-zero
&lt;br&gt;&amp;gt; doppler frequency ? i.e., 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; DefaultValue::Bind (&amp;quot;ns3::JakesPropagationLossModel::DopplerFreq&amp;quot;,
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; StringValue (&amp;quot;0.1&amp;quot;));
&lt;br&gt;&lt;br&gt;Ok, the problem in your case comes from the fact that the Jakes
&lt;br&gt;propagation model relies on simulation time actually going forward to
&lt;br&gt;calculate the fast fading loss. Since I assume your code is doing a
&lt;br&gt;single loop calling GetLoss repeatedly, the loss is always a constant
&lt;br&gt;equal to the first loss and never changes. The following code gets me
&lt;br&gt;the expected output with the patch from bug 459 applied:
&lt;br&gt;&lt;br&gt;&amp;nbsp; Ptr&amp;lt;PropagationLossModel&amp;gt; model = CreateObject&amp;lt;JakesPropagationLossModel&amp;gt; ();
&lt;br&gt;&amp;nbsp; Ptr&amp;lt;MobilityModel&amp;gt; a = CreateObject&amp;lt;StaticMobilityModel&amp;gt; ();
&lt;br&gt;&amp;nbsp; a-&amp;gt;SetPosition (Vector (0.0, 0.0, 0.0));
&lt;br&gt;&amp;nbsp; Ptr&amp;lt;MobilityModel&amp;gt; b = CreateObject&amp;lt;StaticMobilityModel&amp;gt; ();
&lt;br&gt;&lt;br&gt;&amp;nbsp; for (double x = 0; x &amp;lt; 2000; x+= 1)
&lt;br&gt;&amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; b-&amp;gt;SetPosition (Vector (x, 0.0, 0.0));
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; double loss = model-&amp;gt;GetLoss (a, b);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; std::cout &amp;lt;&amp;lt; x &amp;lt;&amp;lt; &amp;quot; &amp;quot; &amp;lt;&amp;lt; loss &amp;lt;&amp;lt; std::endl;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Simulator::Stop (Seconds (1.0));
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Simulator::Run ();
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;regards,
&lt;br&gt;Mathieu
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/ns-developers-f15584.html&quot; embed=&quot;fixTarget[15584]&quot; target=&quot;_top&quot; &gt;ns-developers&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Re%3A-802.11-first-changesets-to-comment-on.-tp21311111p21311760.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-21311111</id>
	<title>Re: 802.11 first changesets to comment on.</title>
	<published>2009-01-06T06:12:25Z</published>
	<updated>2009-01-06T06:12:25Z</updated>
	<author>
		<name>Mathieu Lacage</name>
	</author>
	<content type="html">hi timo,
&lt;br&gt;&lt;br&gt;On Thu, 2008-11-27 at 15:53 +0100, Timo Bingmann wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; - Added samples/main-propagation-loss.cc, which outputs a plot of all
&lt;br&gt;&amp;gt; loss models (except Jakes', which I couldnt get to work right or don't
&lt;br&gt;&amp;gt; understand it.)
&lt;br&gt;&lt;br&gt;I am trying to look at it right now: did you try setting a non-zero
&lt;br&gt;doppler frequency ? i.e., 
&lt;br&gt;&lt;br&gt;DefaultValue::Bind (&amp;quot;ns3::JakesPropagationLossModel::DopplerFreq&amp;quot;,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; StringValue (&amp;quot;0.1&amp;quot;));
&lt;br&gt;&lt;br&gt;&lt;br&gt;Mathieu
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/ns-developers-f15584.html&quot; embed=&quot;fixTarget[15584]&quot; target=&quot;_top&quot; &gt;ns-developers&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Re%3A-802.11-first-changesets-to-comment-on.-tp21311111p21311111.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-21309253</id>
	<title>output of ./waf --regression</title>
	<published>2009-01-06T04:11:36Z</published>
	<updated>2009-01-06T04:11:36Z</updated>
	<author>
		<name>Mathieu Lacage</name>
	</author>
	<content type="html">hi,
&lt;br&gt;&lt;br&gt;I just noticed that the output of ./waf --regression is a bit more
&lt;br&gt;verbose than it should be:
&lt;br&gt;&lt;br&gt;[mathieu@localhost ns-3-dev]$ ./waf --regression
&lt;br&gt;Entering directory `/home/mathieu/code/ns-3-dev/build'
&lt;br&gt;Compilation finished successfully 
&lt;br&gt;========== Running Regression Tests ==========
&lt;br&gt;Synchronizing reference traces using Mercurial.
&lt;br&gt;Pulling &lt;a href=&quot;http://code.nsnam.org/ns-3-dev-ref-traces&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://code.nsnam.org/ns-3-dev-ref-traces&lt;/a&gt;&amp;nbsp;from repo.
&lt;br&gt;PASS test-csma-bridge
&lt;br&gt;PASS test-csma-broadcast
&lt;br&gt;PASS test-csma-multicast
&lt;br&gt;PASS test-csma-one-subnet
&lt;br&gt;PASS test-csma-packet-socket
&lt;br&gt;PASS test-csma-ping
&lt;br&gt;PASS test-csma-raw-ip-socket
&lt;br&gt;PASS test-csma-star
&lt;br&gt;PASS test-dynamic-global-routing
&lt;br&gt;PASS test-global-routing-slash32
&lt;br&gt;PASS test-ns2-mob
&lt;br&gt;PASS test-realtime-udp-echo
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;Note the 3 messages below
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;Sent 1024 bytes to 10.1.2.4
&lt;br&gt;Received 1024 bytes from 10.1.1.1
&lt;br&gt;Received 1024 bytes from 10.1.2.4
&lt;br&gt;PASS test-second
&lt;br&gt;PASS test-simple-error-model
&lt;br&gt;PASS test-simple-global-routing
&lt;br&gt;PASS test-simple-point-to-point-olsr
&lt;br&gt;PASS test-static-routing-slash32
&lt;br&gt;PASS test-tcp-large-transfer
&lt;br&gt;Skipping tcp-nsc-lfn: NSC not available.
&lt;br&gt;SKIP test-tcp-nsc-lfn
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;And here again
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;Sent 1024 bytes to 10.1.2.4
&lt;br&gt;Received 1024 bytes from 10.1.3.3
&lt;br&gt;Received 1024 bytes from 10.1.2.4
&lt;br&gt;PASS test-third
&lt;br&gt;PASS test-udp-echo
&lt;br&gt;PASS test-wifi-wired-bridging
&lt;br&gt;[mathieu@localhost ns-3-dev]$ 
&lt;br&gt;&lt;br&gt;Did I misconfigure my system or is this expected ? If not, I will file a
&lt;br&gt;bug.
&lt;br&gt;&lt;br&gt;Mathieu
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/ns-developers-f15584.html&quot; embed=&quot;fixTarget[15584]&quot; target=&quot;_top&quot; &gt;ns-developers&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/output-of-.-waf---regression-tp21309253p21309253.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-21308908</id>
	<title>storing packets</title>
	<published>2009-01-06T03:42:26Z</published>
	<updated>2009-01-06T03:42:26Z</updated>
	<author>
		<name>obaidabbasi</name>
	</author>
	<content type="html">&lt;br&gt;I want to store all packets send by a source node to destination node, so
&lt;br&gt;that I can resend the missing packets. How can I store the packets sent by
&lt;br&gt;source node.
&lt;br&gt;&lt;br&gt;Thanks for your response.
&lt;br&gt;&lt;br&gt;&lt;br&gt;BR
&lt;br&gt;Ubaid
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/ns-users-f15583.html&quot; embed=&quot;fixTarget[15583]&quot; target=&quot;_top&quot; &gt;ns-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/storing-packets-tp21308908p21308908.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-21308223</id>
	<title>Re: [RFC] Worker Infrastructure - Parallelization	in Large</title>
	<published>2009-01-06T02:41:02Z</published>
	<updated>2009-01-06T02:41:02Z</updated>
	<author>
		<name>Mathieu Lacage</name>
	</author>
	<content type="html">hi hagen,
&lt;br&gt;&lt;br&gt;Sorry for the very late answer,
&lt;br&gt;&lt;br&gt;On Mon, 2008-12-22 at 14:00 +0100, Hagen Paul Pfeifer wrote:
&lt;br&gt;&amp;gt; under &lt;a href=&quot;http://code.nsnam.org/pfeifer/ns-3-worker&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://code.nsnam.org/pfeifer/ns-3-worker&lt;/a&gt;&amp;nbsp;I published a high level
&lt;br&gt;&amp;gt; parallelization approach. Beside a component approach, where some/several
&lt;br&gt;&amp;gt; ns-3 subsystems works in parallel, this worker approach parallelize
&lt;br&gt;&amp;gt; complete ns-3 instances. The major goal is to speed up a *typical
&lt;br&gt;&amp;gt; simulation*
&lt;br&gt;&amp;gt; with more then one successive simulation runs.
&lt;br&gt;&lt;br&gt;I really like the idea and I always wanted to have something like this
&lt;br&gt;so, it would be really nice if we could try to merge something like this
&lt;br&gt;in ns-3 itself (in contrib or core).
&lt;br&gt;&lt;br&gt;&amp;gt; The next few lines show a minimal &amp;quot;hello world&amp;quot; worker application. That
&lt;br&gt;&amp;gt; example is generic enough to utilize all available cores at a system at
&lt;br&gt;&amp;gt; runtime
&lt;br&gt;&lt;br&gt;I went through the example code, API, and implementation. Comments
&lt;br&gt;below.
&lt;br&gt;&lt;br&gt;1) I can't see why ChunkStart/End and GetNumCores are inline so, I would
&lt;br&gt;move them to worker.cc
&lt;br&gt;&lt;br&gt;2) I think that the API is very focused on parallelizing a single for
&lt;br&gt;loop with a fixed number of iterations and the same code executing every
&lt;br&gt;time. It would be nice to try to generalize that. Here is a proposal.
&lt;br&gt;&lt;br&gt;class WorkManager
&lt;br&gt;{
&lt;br&gt;public:
&lt;br&gt;&amp;nbsp; // register a callback which wants to do work.
&lt;br&gt;&amp;nbsp; void AddWork (Callback&amp;lt;void&amp;gt; worker);
&lt;br&gt;&amp;nbsp; // Run one worker on each core, until all workers have run.
&lt;br&gt;&amp;nbsp; void Run (void);
&lt;br&gt;&amp;nbsp; // run one worker on n cores, until all workers have run.
&lt;br&gt;&amp;nbsp; void Run (uint32_t n);
&lt;br&gt;&amp;nbsp; static uint32_t GetNCores (void);
&lt;br&gt;};
&lt;br&gt;&lt;br&gt;class LoopWorkManager
&lt;br&gt;{
&lt;br&gt;public:
&lt;br&gt;&amp;nbsp; // register the loop callback and the total number of iterations.
&lt;br&gt;&amp;nbsp; void SetLoop (Callback&amp;lt;void,uint32_t,uint32_t&amp;gt; worker, uint32_t
&lt;br&gt;iterations);
&lt;br&gt;&amp;nbsp; // run the loop callback on each core until all iterations have run
&lt;br&gt;&amp;nbsp; void Run (void);
&lt;br&gt;&amp;nbsp; // run the loop callback on n cores, until all iterations have run
&lt;br&gt;&amp;nbsp; void Run (uint32_t n);
&lt;br&gt;&amp;nbsp; static uint32_t GetNCores (void);
&lt;br&gt;private:
&lt;br&gt;&amp;nbsp; // implement the loop manager with the work manager.
&lt;br&gt;&amp;nbsp; WorkManager m_manager;
&lt;br&gt;};
&lt;br&gt;&lt;br&gt;Note: I picked WorkManager over Worker because, for me, Worker means a
&lt;br&gt;single guy doing his job while here, the goal is to manage a bunch of
&lt;br&gt;guys doing their job. It could be also WorkerManager but WorkManager
&lt;br&gt;seemed shorter and sufficiently descriptive.
&lt;br&gt;&lt;br&gt;3) You would be my personal hero if you would modify the waf
&lt;br&gt;build/regression system to run the regression suite using a small C++
&lt;br&gt;program based on the WorkManager when it is available on the target
&lt;br&gt;platform.
&lt;br&gt;&lt;br&gt;&lt;br&gt;thanks again for your code,
&lt;br&gt;Mathieu
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/ns-developers-f15584.html&quot; embed=&quot;fixTarget[15584]&quot; target=&quot;_top&quot; &gt;ns-developers&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/-RFC--Worker-Infrastructure---Parallelization-in-Large-tp21127389p21308223.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-21307843</id>
	<title>Looking for LAN example in NS2</title>
	<published>2009-01-06T02:12:20Z</published>
	<updated>2009-01-06T02:12:20Z</updated>
	<author>
		<name>Syed Faraz Hasan</name>
	</author>
	<content type="html">&lt;br&gt;Hello everyone,
&lt;br&gt;&lt;br&gt;I am looking for a simple LAN example in NS 2. I am following the isi tutorial but it seems to have given only the lan command structure. I am looking for a proper syntax to work out at LANs in NS2 environment.
&lt;br&gt;&lt;br&gt;Can some one help please?
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;Faraz
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/ns-users-f15583.html&quot; embed=&quot;fixTarget[15583]&quot; target=&quot;_top&quot; &gt;ns-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Looking-for-LAN-example-in-NS2-tp21307843p21307843.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-21305912</id>
	<title>Re: NS installation (Ubuntu)</title>
	<published>2009-01-05T23:27:12Z</published>
	<updated>2009-01-05T23:27:12Z</updated>
	<author>
		<name>Waleed Tuffaha</name>
	</author>
	<content type="html">&lt;br&gt;I use ns-2.33 on ubuntu 8.04.1 . i remember that i solved these error by
&lt;br&gt;installing some packages
&lt;br&gt;&lt;br&gt;Try: sudo apt-get install tcl tk libxt-dev
&lt;br&gt;&lt;br&gt;&lt;br&gt;On Mon, Jan 5, 2009 at 4:28 AM, Bello Lawal &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=21305912&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lawalimoriki@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Hello,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Pls. can some one help me i try to install NS2 in Ubuntu during the
&lt;br&gt;&amp;gt; installation it gives me the following error.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; tcl8.3.2 configuration failed! Existing ...............
&lt;br&gt;&amp;gt; Tcl is not part of the ns project.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Waleed Tuffaha.
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/ns-users-f15583.html&quot; embed=&quot;fixTarget[15583]&quot; target=&quot;_top&quot; &gt;ns-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/NS-installation-%28Ubuntu%29-tp21284487p21305912.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-21305510</id>
	<title>Simulation parameters</title>
	<published>2009-01-05T22:43:07Z</published>
	<updated>2009-01-05T22:43:07Z</updated>
	<author>
		<name>Ghada Khoriba</name>
	</author>
	<content type="html">&lt;br&gt;&lt;br&gt;&lt;br&gt;Dear All, 
&lt;br&gt; 
&lt;br&gt;Is there any typical or standard simulation parameters for simulating wireless ad hoc networks in ns2? 
&lt;br&gt; 
&lt;br&gt;Thanks
&lt;br&gt; 
&lt;br&gt;Ghada
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/ns-users-f15583.html&quot; embed=&quot;fixTarget[15583]&quot; target=&quot;_top&quot; &gt;ns-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Simulation-parameters-tp21305510p21305510.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-21305358</id>
	<title>Re: (A naive solution) how to set different transmit range for different node</title>
	<published>2009-01-05T22:19:17Z</published>
	<updated>2009-01-05T22:19:17Z</updated>
	<author>
		<name>Phenix-2</name>
	</author>
	<content type="html">&lt;br&gt;&lt;br /&gt;Hi All,
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; After hacking threshold.cc, I've known the formula used to calculate 
&lt;br&gt;receive
&lt;br&gt;threshold (ATTENTION: threshold.cc only generates RXThresh_, NOT Pt_). I 
&lt;br&gt;modified
&lt;br&gt;TwoRayGround formula in threshold.cc, as below :
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Pr * d^4 * L
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Pt = ---------------------------
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Gt * Gr * (ht^2 * hr^2)
&lt;br&gt;&lt;br&gt;Pr is replace with RXThresh_ whose value is 3.652e-10.
&lt;br&gt;If a distance is given, Pt can be calculated by above formula.
&lt;br&gt;e.g.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Tx Range &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Pt_
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;100m &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.00721383
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;150m &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.03652
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;200m &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.115421
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;250m &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.28179
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;300m &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.58432
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ... &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;...
&lt;br&gt;I attached modified threshold.cc renamed threshold_Pt.cc .
&lt;br&gt;After compiling it, you can use like this:
&lt;br&gt;./threshold_Pt &amp;nbsp;-m TwoRayGround &amp;lt;Required TxRange&amp;gt;
&lt;br&gt;&lt;br&gt;But unluckily, if the tx range is smaller than crossover_dist (always should 
&lt;br&gt;be 86.1425m),
&lt;br&gt;the generated Pt_ value is incorrect either using Friis or TwoRay.
&lt;br&gt;If you know why, please let me know.
&lt;br&gt;&lt;br&gt;I've developed a simple tcl script in order to validate transmit range
&lt;br&gt;with different Pt_ value. I attached this script named TxRangeTest.tcl.
&lt;br&gt;The routing protocol used in the script is MFlood, which is just a simple
&lt;br&gt;flooding algorithm. Trace format has been changed a little, like:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;s 1.000000000 1 &amp;nbsp; 1.00 200.00 AGT &amp;nbsp;--- 0 cbr 512 &amp;nbsp;[0 0 0 0] ------- &amp;nbsp;
&lt;br&gt;[1:0 0:0 32 0] [0] 0 0
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;r 1.004860003 0 &amp;nbsp; 0.00 200.00 AGT &amp;nbsp;--- 0 MFlood 532 [mflood 1.000000000 
&lt;br&gt;1.00 200.00 ]
&lt;br&gt;&amp;nbsp; The trace format of cbr packet can be referred to NS2 manual. The explain 
&lt;br&gt;of trace format about
&lt;br&gt;MFlood packet is below:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; event = $1;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; curr_time = $2;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; curr_node_id = $3;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; curr_position_x = $4;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; curr_position_y = $5;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; trace_type = $6;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pkt_seq = $8;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pkt_type = $9;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pkt_generate_time = $12;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; prev_hop_position_x = $13;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; prev_hop_position_y = $14;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;Finally, a AWT file is used to calculate the transmit range.
&lt;br&gt;#========================================================================
&lt;br&gt;BEGIN {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; RecvNum = 0;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; final_curr_position_x = 0;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; final_curr_position_y = 0;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; final_prev_hop_position_x = 0;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; final_prev_hop_position_y = 0;
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;{
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; event = $1;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; curr_time = $2;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; curr_node_id = $3;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; curr_position_x = $4;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; curr_position_y = $5;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; trace_type = $6;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pkt_seq = $8;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pkt_type = $9;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pkt_generate_time = $12;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; prev_hop_position_x = $13;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; prev_hop_position_y = $14;
&lt;br&gt;&lt;br&gt;&amp;nbsp;	if ( event == &amp;quot;r&amp;quot; &amp;&amp; curr_node_id == 0 &amp;&amp; trace_type == &amp;quot;AGT&amp;quot; &amp;nbsp;)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; 	RecvNum++;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #	printf(&amp;quot; %3d &amp;nbsp; &amp;nbsp;[Time : %f] &amp;nbsp; &amp;nbsp;N0(%.2f,%.2f) &amp;nbsp;&amp;lt;---- &amp;nbsp;N1(%.2f,%.2f)\n&amp;quot;,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #		 &amp;nbsp; RecvNum,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #		 &amp;nbsp; curr_time,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #		 &amp;nbsp; curr_position_x,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #		 &amp;nbsp; curr_position_y,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #		 &amp;nbsp; prev_hop_position_x,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #		 &amp;nbsp; prev_hop_position_y);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; final_curr_position_x = curr_position_x;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; final_curr_position_y = curr_position_y;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; final_prev_hop_position_x = prev_hop_position_x;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; final_prev_hop_position_y = prev_hop_position_y;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;}
&lt;br&gt;&lt;br&gt;END{
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; dx = final_prev_hop_position_x - final_curr_position_x ;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; dy = final_prev_hop_position_y - final_curr_position_y ;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; tx_range = sqrt(dx * dx + dy * dy) ;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&amp;quot; \nNum of Recv pkts : %d \n&amp;quot;, RecvNum);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&amp;quot; \nTx Range of Node 1: %f \n&amp;quot;, tx_range);
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;This is just a reference. You should do some changes according to
&lt;br&gt;your trace file if you use other routing protocol.
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;Phenix
&lt;br&gt;&lt;br&gt;--------------------------------------------------
&lt;br&gt;From: &amp;quot;kavan sheth&amp;quot; &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=21305358&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;shethkavan@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Sent: Sunday, January 04, 2009 1:24 PM
&lt;br&gt;To: &amp;quot;Phenix&amp;quot; &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=21305358&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;phenix_yw@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Subject: Re: [ns] how to set different transmit range for different node
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi Phenix,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; As far as I know threshold.cc generates particular transmission
&lt;br&gt;&amp;gt; power(Pt_) based on the propagation model and distance specified by
&lt;br&gt;&amp;gt; you. different propagation model have different equations for
&lt;br&gt;&amp;gt; receiving power based on its characteristics. different equations are
&lt;br&gt;&amp;gt; given in the threshold.cc. you can know more by studying this
&lt;br&gt;&amp;gt; threshold.cc
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Kavan
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On 1/3/09, Phenix &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=21305358&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;phenix_yw@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Hi Sidney,
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; After times of trials, I've succeeded in letting different nodes own
&lt;br&gt;&amp;gt;&amp;gt; different
&lt;br&gt;&amp;gt;&amp;gt; Tx Range by configuring different value of Pt_ for each node. I get
&lt;br&gt;&amp;gt;&amp;gt; different
&lt;br&gt;&amp;gt;&amp;gt; values of Pt_ from a script:
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;# The transimssion radio range
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;Pt_ 6.9872e-4 &amp;nbsp; &amp;nbsp;;# ?m
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;Pt_ 8.5872e-4 &amp;nbsp; &amp;nbsp;;# 40m
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;Pt_ 1.33826e-3 &amp;nbsp; ;# 50m
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;Pt_ 7.214e-3 &amp;nbsp; &amp;nbsp; ;# 100m
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;Pt_ 0.2818 &amp;nbsp; &amp;nbsp; &amp;nbsp; ;# 250m
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; And in my script, I have test range of 250m and 40m. It really works 
&lt;br&gt;&amp;gt;&amp;gt; well.
&lt;br&gt;&amp;gt;&amp;gt; But It's a pity that I don't know how to obtain these values. The tool
&lt;br&gt;&amp;gt;&amp;gt; threshold
&lt;br&gt;&amp;gt;&amp;gt; (~ns/lidep-utils/propagation/threshold.cc) only generate RXThresh_ other
&lt;br&gt;&amp;gt;&amp;gt; than Pt_.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Is there somebody knowing how to get value of Pt_?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; [Here is my test script]
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; # ======================================================================
&lt;br&gt;&amp;gt;&amp;gt; # Define options
&lt;br&gt;&amp;gt;&amp;gt; # ======================================================================
&lt;br&gt;&amp;gt;&amp;gt; set val(ifqlen) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 50 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ;# max packet in ifq
&lt;br&gt;&amp;gt;&amp;gt; set val(nn) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;;# number of 
&lt;br&gt;&amp;gt;&amp;gt; mobilenodes
&lt;br&gt;&amp;gt;&amp;gt; set val(rp) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;MFlood &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;;# routing
&lt;br&gt;&amp;gt;&amp;gt; protocol,DumbAgent
&lt;br&gt;&amp;gt;&amp;gt; set val(chan) &amp;nbsp; &amp;nbsp; &amp;nbsp; Channel/WirelessChannel
&lt;br&gt;&amp;gt;&amp;gt; set val(prop) &amp;nbsp; &amp;nbsp; &amp;nbsp; Propagation/TwoRayGround
&lt;br&gt;&amp;gt;&amp;gt; set val(netif) &amp;nbsp; &amp;nbsp; &amp;nbsp;Phy/WirelessPhy
&lt;br&gt;&amp;gt;&amp;gt; set val(mac) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Mac/802_11
&lt;br&gt;&amp;gt;&amp;gt; set val(ifq) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Queue/DropTail/PriQueue
&lt;br&gt;&amp;gt;&amp;gt; set val(ll) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; LL
&lt;br&gt;&amp;gt;&amp;gt; set val(ant) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Antenna/OmniAntenna
&lt;br&gt;&amp;gt;&amp;gt; set val(stop) &amp;nbsp; &amp;nbsp; 150
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; # Initialize the SharedMedia interface with parameters to make
&lt;br&gt;&amp;gt;&amp;gt; # it work like the 914MHz Lucent WaveLAN DSSS radio interface
&lt;br&gt;&amp;gt;&amp;gt; Phy/WirelessPhy set CPThresh_ 10.0
&lt;br&gt;&amp;gt;&amp;gt; Phy/WirelessPhy set CSThresh_ 1.559e-11
&lt;br&gt;&amp;gt;&amp;gt; Phy/WirelessPhy set RXThresh_ 3.652e-10
&lt;br&gt;&amp;gt;&amp;gt; Phy/WirelessPhy set Rb_ 2*1e6
&lt;br&gt;&amp;gt;&amp;gt; Phy/WirelessPhy set freq_ 914e+6
&lt;br&gt;&amp;gt;&amp;gt; Phy/WirelessPhy set L_ 1.0
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; # Pt_
&lt;br&gt;&amp;gt;&amp;gt; set txpower_(0) &amp;nbsp;0.2818 &amp;nbsp; &amp;nbsp; &amp;nbsp; ;# 250m
&lt;br&gt;&amp;gt;&amp;gt; set txpower_(1) &amp;nbsp;8.5872e-4 &amp;nbsp; &amp;nbsp;;# 40m
&lt;br&gt;&amp;gt;&amp;gt; set txpower_(2) &amp;nbsp;7.214e-3 &amp;nbsp; &amp;nbsp; ;# 100m
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; # ======================================================================
&lt;br&gt;&amp;gt;&amp;gt; # Main Program
&lt;br&gt;&amp;gt;&amp;gt; # ======================================================================
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; #ns-random 0
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; # Initialize Global Variables
&lt;br&gt;&amp;gt;&amp;gt; set ns_ [new Simulator]
&lt;br&gt;&amp;gt;&amp;gt; set tracefd [open mflood_txRange.tr w]
&lt;br&gt;&amp;gt;&amp;gt; $ns_ trace-all $tracefd
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; set namtrace &amp;nbsp; &amp;nbsp;[open mflood_txRange.nam w]
&lt;br&gt;&amp;gt;&amp;gt; $ns_ namtrace-all-wireless $namtrace 1000 500
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; # set up topography
&lt;br&gt;&amp;gt;&amp;gt; set topo [new Topography]
&lt;br&gt;&amp;gt;&amp;gt; $topo load_flatgrid 1000 500
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; # Create God
&lt;br&gt;&amp;gt;&amp;gt; create-god $val(nn)
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; # Create the specified number of mobilenodes [$val(nn)] and &amp;quot;attach&amp;quot; them
&lt;br&gt;&amp;gt;&amp;gt; # to the channel.
&lt;br&gt;&amp;gt;&amp;gt; # configure node
&lt;br&gt;&amp;gt;&amp;gt; set channel [new Channel/WirelessChannel]
&lt;br&gt;&amp;gt;&amp;gt; $channel set errorProbability_ 0.0
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $ns_ node-config -adhocRouting $val(rp) \
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; -llType $val(ll) \
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; -macType $val(mac) \
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; -ifqType $val(ifq) \
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; -ifqLen $val(ifqlen) \
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; -antType $val(ant) \
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; -propType $val(prop) \
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; -phyType $val(netif) \
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; -channel $channel \
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; -topoInstance $topo \
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; -agentTrace ON \
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; -routerTrace OFF\
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; -macTrace OFF \
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; -movementTrace OFF
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;for {set i 0} {$i &amp;lt; $val(nn) } {incr i} {
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; Phy/WirelessPhy set Pt_ $txpower_($i)
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; set node_($i) [$ns_ node]
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; $node_($i) random-motion 0;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;}
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; # Provide initial (X,Y, for now Z=0) co-ordinates for mobilenodes
&lt;br&gt;&amp;gt;&amp;gt; #
&lt;br&gt;&amp;gt;&amp;gt; # &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;N_0 &amp;lt;-- d ---&amp;gt; N_2
&lt;br&gt;&amp;gt;&amp;gt; # &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;src &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;dst
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; $node_(0) set X_ 0.0
&lt;br&gt;&amp;gt;&amp;gt; $node_(0) set Y_ 200.0
&lt;br&gt;&amp;gt;&amp;gt; $node_(0) set Z_ 0.0
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; $node_(1) set X_ 1.0
&lt;br&gt;&amp;gt;&amp;gt; $node_(1) set Y_ 200.0
&lt;br&gt;&amp;gt;&amp;gt; $node_(1) set Z_ 0.0
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; $ns_ at 1.5 &amp;quot;$node_(1) setdest 255.0 200.0 2.0&amp;quot;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; # Define node initial position in nam
&lt;br&gt;&amp;gt;&amp;gt; for {set i 0} {$i &amp;lt; $val(nn)} {incr i} {
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; $ns_ initial_node_pos $node_($i) 20
&lt;br&gt;&amp;gt;&amp;gt; }
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; set udp_(0) [new Agent/UDP]
&lt;br&gt;&amp;gt;&amp;gt; set udp_(1) [new Agent/UDP]
&lt;br&gt;&amp;gt;&amp;gt; $ns_ attach-agent $node_(0) $udp_(0)
&lt;br&gt;&amp;gt;&amp;gt; $ns_ attach-agent $node_(1) $udp_(1)
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; set null_(0) [new Agent/Null]
&lt;br&gt;&amp;gt;&amp;gt; set null_(1) [new Agent/Null]
&lt;br&gt;&amp;gt;&amp;gt; $ns_ attach-agent $node_(1) $null_(0)
&lt;br&gt;&amp;gt;&amp;gt; $ns_ attach-agent $node_(0) $null_(1)
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; $ns_ connect $udp_(0) $null_(0)
&lt;br&gt;&amp;gt;&amp;gt; $ns_ connect $udp_(1) $null_(1)
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; for {set i 0} {$i &amp;lt; $val(nn)} {incr i} {
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;set cbr_($i) [new Application/Traffic/CBR]
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;$cbr_($i) set packetSize_ 512
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;$cbr_($i) set interval_ 2
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;$cbr_($i) set random_ 1
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;$cbr_($i) attach-agent $udp_($i)
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; }
&lt;br&gt;&amp;gt;&amp;gt; $ns_ at 1.0 &amp;quot;$cbr_(0) start&amp;quot;
&lt;br&gt;&amp;gt;&amp;gt; $ns_ at 1.1 &amp;quot;$cbr_(1) start&amp;quot;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; # Tell nodes when the simulation ends
&lt;br&gt;&amp;gt;&amp;gt; for {set i 0} {$i &amp;lt; $val(nn) } {incr i} {
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; $ns_ at $val(stop).0 &amp;quot;$node_($i) reset&amp;quot;;
&lt;br&gt;&amp;gt;&amp;gt; }
&lt;br&gt;&amp;gt;&amp;gt; $ns_ at $val(stop).0 &amp;quot;stop&amp;quot;
&lt;br&gt;&amp;gt;&amp;gt; $ns_ at $val(stop).01 &amp;quot;puts \&amp;quot;NS EXITING...\&amp;quot; ; $ns_ halt&amp;quot;
&lt;br&gt;&amp;gt;&amp;gt; proc stop {} {
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; global ns_ tracefd namtrace
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; $ns_ flush-trace
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; close $tracefd
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;close $namtrace
&lt;br&gt;&amp;gt;&amp;gt; }
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; puts &amp;quot;Starting Simulation...&amp;quot;
&lt;br&gt;&amp;gt;&amp;gt; $ns_ run
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Regards,
&lt;br&gt;&amp;gt;&amp;gt; Phenix
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; From: Sidney Doria
&lt;br&gt;&amp;gt;&amp;gt; Sent: Saturday, January 03, 2009 12:01 AM
&lt;br&gt;&amp;gt;&amp;gt; To: Phenix
&lt;br&gt;&amp;gt;&amp;gt; Subject: Re: [ns] how to set different transmit range for different node
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Hi Phenix,
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; In the TCL file, there's a loop for node creation. So, you can break this
&lt;br&gt;&amp;gt;&amp;gt; node in a manual creation, each node with specific characteristics.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Sidney Doria
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; UFCG / BRAZIL
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; 2009/1/2 Phenix &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=21305358&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;phenix_yw@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; Hi all,
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; I'd like how to set different transmit range for different node in 
&lt;br&gt;&amp;gt;&amp;gt; MANET.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; eg.
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;Three nodes,N0,N1 and N2 are in a line:
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;(N0) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (N1) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(N2)
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|--- &amp;nbsp;200m -----| ---120m---|
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; The transmit range of N0,N1 and N2 is respectively &amp;nbsp;250m,150m,200m.
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; So packets can be passed:
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;N0 --&amp;gt; N1 &amp;lt;---&amp;gt; N2
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; Let me know how to set different transmit range please.
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; Thank you in advance!
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; Regards,
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; Phenix
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; --
&lt;br&gt;&amp;gt;&amp;gt; Sidney Doria
&lt;br&gt;&amp;gt;&amp;gt; Redes ad hoc móveis
&lt;br&gt;&amp;gt;&amp;gt; Doutorado em Computação
&lt;br&gt;&amp;gt;&amp;gt; UFCG
&lt;br&gt;&amp;gt;&amp;gt; Brasil
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;quot;Nessa jornada, o conhecimento será o seu escudo...&amp;quot;
&lt;br&gt;&amp;gt;&amp;gt; (Mestre dos Magos no episódio do grimoire de ouro)
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &lt;/div&gt;&lt;/div&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/ns-users-f15583.html&quot; embed=&quot;fixTarget[15583]&quot; target=&quot;_top&quot; &gt;ns-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Re%3A-%28A-naive-solution%29-how-to-set-different-transmit-range-for-different-node-tp21305358p21305358.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-21304272</id>
	<title>Re: AWK programms</title>
	<published>2009-01-05T19:46:46Z</published>
	<updated>2009-01-05T19:46:46Z</updated>
	<author>
		<name>Mohammed</name>
	</author>
	<content type="html">&lt;br&gt;Salam Alikm,
&lt;br&gt;&lt;br&gt;About the first point: there are two type of packets ( Data and Control ) packets. control=request+reply messages. Also I am referring you to see the NS-2 manual about Packets in NS-2.
&lt;br&gt;&lt;br&gt;About the second: yes 
&lt;br&gt;&lt;br&gt;&amp;nbsp;packet_id = $41; 41 column. also try study the output trace file to get more information
&lt;br&gt;&lt;br&gt;I advise all the beginner into NS-2 to try simple programs and scenarios.
&lt;br&gt;&lt;br&gt;All the best,
&lt;br&gt;&lt;br&gt;Mohammed AbuHajar
&lt;br&gt;Master of Computer Science
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;________________________________
&lt;br&gt;From: sarym binome &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=21304272&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;binome_ini@...&lt;/a&gt;&amp;gt;
&lt;br&gt;To: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=21304272&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mcsist@...&lt;/a&gt;
&lt;br&gt;Sent: Monday, January 5, 2009 1:11:46 PM
&lt;br&gt;Subject: RE: [ns] AWK programms
&lt;br&gt;&lt;br&gt;&amp;nbsp;hello, salem
&lt;br&gt;i prepar a simulation for AODV routing protocol, for E2E delay , i saw your example you work in application layer (AGT),
&lt;br&gt;&lt;br&gt;if (( $1 == &amp;quot;r&amp;quot;) &amp;&amp; &amp;nbsp;( $35 == &amp;quot;cbr&amp;quot; ) &amp;&amp; ( $19==&amp;quot;AGT&amp;quot; )) { &amp;nbsp;end_time[packet_id] = time; &amp;nbsp;}
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;else { &amp;nbsp;end_time[packet_id] = -1; &amp;nbsp;}
&lt;br&gt;&lt;br&gt;don't we work whith pkt type ( AODV &amp;nbsp;REQUEST and &amp;nbsp;REPLY)??????????(i'm new and i realy don't know )
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;{ if (($1==&amp;quot;s&amp;quot;)&amp;&amp;($25==&amp;quot;(REQUEST)&amp;quot;)&amp;&amp;($17==&amp;quot;0]&amp;quot;)) { time[$23,$21]=$2 ;printf (&amp;quot;le temps d'émission de requête : %f \n&amp;quot;,time[$23,$21] );}; 
&lt;br&gt;&lt;br&gt;an other question about &amp;nbsp; # CALCULATE DELAY 
&lt;br&gt;( packet_id = $41;) whay you choose $41???? is the trace file for DRS has a more than 26 column !?
&lt;br&gt;&lt;br&gt;thanks, best regards.
&lt;br&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Date: Mon, 5 Jan 2009 11:56:37 -0800
&lt;br&gt;&amp;gt; From: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=21304272&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mcsist@...&lt;/a&gt;
&lt;br&gt;&amp;gt; To: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=21304272&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;g.hajer@...&lt;/a&gt;
&lt;br&gt;&amp;gt; CC: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=21304272&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ns-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Subject: Re: [ns] AWK programms
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; About the first point: you need to check your simulation environment and parameters and try to simulate these protocol with simple simulation scenarios.
&lt;br&gt;&amp;gt; About the second point: because I need to remove the size of the packet header from the received packet, so I need exactly to know how the size of header.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; All the Successes,
&lt;br&gt;&amp;gt; Mohammed AbuHajar
&lt;br&gt;&amp;gt; Palestine Territory, Occupied.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ________________________________
&lt;br&gt;&amp;gt; From: hajer h &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=21304272&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;g.hajer@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; To: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=21304272&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mcsist@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Sent: Monday, January 5, 2009 1:04:41 AM
&lt;br&gt;&amp;gt; Subject: AWK programms
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; hello i am working with ns2..
&lt;br&gt;&amp;gt; and i am loocking for some awk programme that calculate the average throughput, e-2-e delay, NRL and PDF...for all protcol AODV OLSR DSR DSDV...
&lt;br&gt;&amp;gt; can you help me in this way...
&lt;br&gt;&amp;gt; i have tried &lt;a href=&quot;http://mailman.isi.edu/pipermail/ns-users/2007-August/060808.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mailman.isi.edu/pipermail/ns-users/2007-August/060808.html&lt;/a&gt;&amp;nbsp;those programme i didn't understand why they gives 0 for such protocol like DSR or DSDV...
&lt;br&gt;&amp;gt; i have anothers questions : about the avearge thtoughut : why did you subtrain &amp;nbsp;512 ...did you calcul the average throughput for TCP traffic???
&lt;br&gt;&amp;gt; thanks in advance...
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; -- 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;quot;Somewhere, something incredible is waiting to be known.&amp;quot;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;________________________________
&lt;br&gt;Téléchargez le nouveau Windows Live Messenger ! Téléchargez Messenger, c'est gratuit !
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/ns-users-f15583.html&quot; embed=&quot;fixTarget[15583]&quot; target=&quot;_top&quot; &gt;ns-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Re%3A-AWK-programms-tp21298109p21304272.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-21303699</id>
	<title>Re: ns2 problems with simulation of lan</title>
	<published>2009-01-05T18:42:19Z</published>
	<updated>2009-01-05T18:42:19Z</updated>
	<author>
		<name>HaiderSa</name>
	</author>
	<content type="html">this is bcoz of the the nam is reading the previous history of the file.
&lt;br&gt;so u must delete the out.tr and out.nam both before re-running the simulation.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;pingpingping wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;Hello,
&lt;br&gt;recently I use the ns2 simulator to simulate local area network. I 
&lt;br&gt;write the tcl code following the manual downloaded from 
&lt;br&gt;&lt;a href=&quot;http://www.isi.edu/nsnam/ns/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.isi.edu/nsnam/ns/&lt;/a&gt;, but I find that every time I run the 
&lt;br&gt;code below, the output is 1.7293548387096773Mb/s,but it shouldn't 
&lt;br&gt;be,because I have set the bw of the local area network as 1Mb,how can
&lt;br&gt;&amp;nbsp;it achieve 1.7Mb, I am quite puzzled with it
&lt;br&gt;I don't kown whether there should be some more settings or some
&lt;br&gt;&amp;nbsp;other
&lt;br&gt;&lt;br&gt;the code below just simulate a lan which transmits data from node n1 
&lt;br&gt;to node n2,the bw between n1 and n2 is set as 1Mb
&lt;br&gt;&lt;b&gt;is there &amp;nbsp;bugs in the code, please point them out and give me some advice, thanks a lot!&lt;/b&gt;&lt;br&gt;##########################################code########################
&lt;br&gt;set ns [new Simulator]
&lt;br&gt;&lt;br&gt;#Define different colors for data flows (for NAM)
&lt;br&gt;$ns color 1 Blue
&lt;br&gt;$ns color 2 Red
&lt;br&gt;&lt;br&gt;#Open the Trace files
&lt;br&gt;set file1 [open out.tr w]
&lt;br&gt;set winfile [open WinFile w]
&lt;br&gt;$ns trace-all $file1
&lt;br&gt;#Define a 'finish' procedure
&lt;br&gt;proc finish {} {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; global ns file1
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $ns flush-trace
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; close $file1
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; exec nam out.nam &amp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; exit 0
&lt;br&gt;}
&lt;br&gt;set n1 [$ns node]
&lt;br&gt;set n2 [$ns node]
&lt;br&gt;set lan [$ns newLan &amp;quot;$n1 $n2&amp;quot; 1Mb 40ms LL Queue/DropTail MAC/Csma/Cd Channel]
&lt;br&gt;set tcp [new Agent/TCP/Newreno]
&lt;br&gt;$ns attach-agent $n1 $tcp
&lt;br&gt;set sink [new Agent/TCPSink/DelAck]
&lt;br&gt;$ns attach-agent $n2 $sink
&lt;br&gt;$ns connect $tcp $sink
&lt;br&gt;$tcp set fid_ 1
&lt;br&gt;$tcp set window_ 65536
&lt;br&gt;$tcp set packetSize_ 1024
&lt;br&gt;&lt;br&gt;#Setup a FTP over TCP connection
&lt;br&gt;set ftp [new Application/FTP]
&lt;br&gt;$ftp attach-agent $tcp
&lt;br&gt;$ftp set type_ FTP
&lt;br&gt;&lt;br&gt;proc get_throughput { tcp } {
&lt;br&gt;#now calculate the average throughtput (in Mb/s)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; puts &amp;quot;[expr [$tcp set ndatapack_]*8.0/1000/124]Mb/s&amp;quot;
&lt;br&gt;}
&lt;br&gt;$ns at 1.0 &amp;quot;$ftp start&amp;quot;
&lt;br&gt;$ns at 124.0 &amp;quot;$ftp stop&amp;quot;
&lt;br&gt;$ns at 124 &amp;quot;get_throughput $tcp&amp;quot;
&lt;br&gt;$ns at 125.0 &amp;quot;finish&amp;quot;
&lt;br&gt;$ns run
&lt;br&gt;########################################################
&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/ns-users-f15583.html&quot; embed=&quot;fixTarget[15583]&quot; target=&quot;_top&quot; &gt;ns-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/ns2-problems-with-simulation-of-lan-tp21140877p21303699.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-21303711</id>
	<title>FLOATING POINT EXECPTION</title>
	<published>2009-01-05T18:40:46Z</published>
	<updated>2009-01-05T18:40:46Z</updated>
	<author>
		<name>Diana Benitez</name>
	</author>
	<content type="html">&lt;br&gt;&lt;br&gt;Hello:I am trying to run a XCP protocol example script as follows:
&lt;br&gt;&amp;nbsp;
&lt;br&gt;---------------------------------------------
&lt;br&gt;### XCP EXAMPLE TCLset lrate 0.0
&lt;br&gt;Queue/XCP set tcp_xcp_on 1
&lt;br&gt;Agent/TCP set minrto_ 1
&lt;br&gt;set ns [new Simulator]
&lt;br&gt;$ns color 1 Red
&lt;br&gt;set tr_f [open out.tr w]
&lt;br&gt;set nam_f [open out.nam w]
&lt;br&gt;set record_f1 [open out.data1 w]
&lt;br&gt;$ns trace-all $tr_f$ns namtrace-all $nam_f
&lt;br&gt;&amp;nbsp;
&lt;br&gt;### Finish procproc finish {} 
&lt;br&gt;&amp;nbsp; { 
&lt;br&gt;&amp;nbsp; global ns tr_f record_f1 nam_f 
&lt;br&gt;&amp;nbsp; $ns flush-trace close $tr_f 
&lt;br&gt;&amp;nbsp; close $record_f1 close $nam_f exec 
&lt;br&gt;&amp;nbsp; awk { { print $1, $2 } } out.data1 &amp;gt; temp1.cwnd 
&lt;br&gt;&amp;nbsp; exit 0
&lt;br&gt;&amp;nbsp; }
&lt;br&gt;set n0 [$ns node]
&lt;br&gt;set n1 [$ns node]
&lt;br&gt;&amp;nbsp;
&lt;br&gt;#### LINK# object from to bandwith delay queue 
&lt;br&gt;$ns duplex-link $n0 $n1 5Mb 35ms XCP
&lt;br&gt;&amp;nbsp;
&lt;br&gt;#### BOTTLENECK BUFFER
&lt;br&gt;set buffer 43
&lt;br&gt;$ns queue-limit $n0 $n1 [expr $buffer *1]
&lt;br&gt;$ns duplex-link-op $n0 $n1 queuePos 0.5
&lt;br&gt;&amp;nbsp;
&lt;br&gt;#### TCP AGENT 1set tcp1 [new Agent/TCP/Reno/XCP]
&lt;br&gt;$ns attach-agent $n0 $tcp1
&lt;br&gt;set sink1 [new Agent/TCPSink/XCPSink]
&lt;br&gt;$ns attach-agent $n1 $sink1
&lt;br&gt;$ns connect $tcp1 $sink1$tcp1 set fid_ 1
&lt;br&gt;$tcp1 set window_ 8000
&lt;br&gt;$tcp1 set packetSize_ 552
&lt;br&gt;set ftp1 [new Application/FTP]
&lt;br&gt;$ftp1 attach-agent $tcp1
&lt;br&gt;$ftp1 set type_ FTP
&lt;br&gt;&amp;nbsp;
&lt;br&gt;### Record procproc record {} 
&lt;br&gt;&amp;nbsp; { 
&lt;br&gt;&amp;nbsp; global ns tcp1 sink1 record_f1 
&lt;br&gt;&amp;nbsp; set now [$ns now] 
&lt;br&gt;&amp;nbsp; set time 0.15 
&lt;br&gt;&amp;nbsp; set cwin1 [$tcp1 set cwnd_] 
&lt;br&gt;&amp;nbsp; puts $record_f1 &amp;quot;$now [expr $cwin1*1] &amp;quot; 
&lt;br&gt;&amp;nbsp; $ns at [expr $now+$time] &amp;quot;record &amp;quot;
&lt;br&gt;&amp;nbsp; }
&lt;br&gt;&amp;nbsp;
&lt;br&gt;$ns at 0.0 &amp;quot;record&amp;quot;
&lt;br&gt;$ns at 0.0 &amp;quot;$ftp1 start&amp;quot;
&lt;br&gt;$ns at 20.0 &amp;quot;$ftp1 stop&amp;quot;
&lt;br&gt;$ns at 20.0 &amp;quot;$ns detach-agent $n0 $tcp1 ; $ns detach-agent $n1 $sink1&amp;quot;
&lt;br&gt;$ns at 20.0 &amp;quot;finish&amp;quot;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;$ns run
&lt;br&gt;---------------------------------------------
&lt;br&gt;&amp;nbsp;
&lt;br&gt;I got the NS2 version 2.33 installed in Fedora 8. I have no problems with others TCP protocols. The exception normally appears when there is a division by zero. However, in the .tcl code there is nothing that can be associated with this error. How Can be this possible? Can someone help me? 
&lt;br&gt;&amp;nbsp;
&lt;br&gt;THANKS in advance 
&lt;br&gt;&amp;nbsp;
&lt;br&gt;DIANA
&lt;br&gt;_________________________________________________________________
&lt;br&gt;Life on your PC is safer, easier, and more enjoyable with Windows Vista®. 
&lt;br&gt;&lt;a href=&quot;http://clk.atdmt.com/MRT/go/127032870/direct/01/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://clk.atdmt.com/MRT/go/127032870/direct/01/&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/ns-users-f15583.html&quot; embed=&quot;fixTarget[15583]&quot; target=&quot;_top&quot; &gt;ns-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/FLOATING-POINT-EXECPTION-tp21303585p21303711.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-21303585</id>
	<title>FLOATING POINT EXECPTION</title>
	<published>2009-01-05T18:26:04Z</published>
	<updated>2009-01-05T18:26:04Z</updated>
	<author>
		<name>Diana Benitez</name>
	</author>
	<content type="html">&lt;br&gt;&lt;br&gt;Hello:
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;I am trying to run a XCP protocol example script as follows:---------------------------------------------### XCP EXAMPLE TCLset lrate 0.0Queue/XCP set tcp_xcp_on 1Agent/TCP set minrto_ 1set ns [new Simulator]$ns color 1 Redset tr_f &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[open out.tr w]set nam_f &amp;nbsp; &amp;nbsp; &amp;nbsp; [open out.nam w]set record_f1 &amp;nbsp; &amp;nbsp;[open out.data1 w]$ns trace-all $tr_f$ns namtrace-all $nam_f### Finish procproc finish {} { &amp;nbsp; &amp;nbsp; global ns tr_f record_f1 nam_f &amp;nbsp; &amp;nbsp; &amp;nbsp;$ns flush-trace &amp;nbsp; &amp;nbsp; close $tr_f &amp;nbsp; &amp;nbsp; close $record_f1 &amp;nbsp; &amp;nbsp; close $nam_f &amp;nbsp; &amp;nbsp; exec awk { { print $1, $2 } } out.data1 &amp;gt; temp1.cwnd &amp;nbsp; &amp;nbsp; exit 0}set n0 [$ns node]set n1 [$ns node]#### LINK# &amp;nbsp; object &amp;nbsp; &amp;nbsp; &amp;nbsp;from &amp;nbsp;to &amp;nbsp;bandwith &amp;nbsp; delay &amp;nbsp; &amp;nbsp;queue &amp;nbsp; &amp;nbsp;$ns duplex-link $n0 &amp;nbsp;$n1 &amp;nbsp; &amp;nbsp;5Mb &amp;nbsp; &amp;nbsp; &amp;nbsp;35ms &amp;nbsp; &amp;nbsp; XCP#### BOTTLENECK BUFFERset buffer 43# tamanho del buffer del link n1-n2$ns queue-limit $n0 $n1 [expr $buffer *1]$ns duplex-link-op $n0 $n1 queuePos 0.5#### TCP AGENT 1set tcp1 [new Agent/TCP/Reno/XCP]$ns attach-agent $n0 $tcp1set sink1 [new Agent/TCPSink/XCPSink]$ns attach-agent $n1 $sink1$ns connect $tcp1 $sink1$tcp1 set fid_ 1$tcp1 set window_ 8000$tcp1 set packetSize_ 552set ftp1 [new Application/FTP]$ftp1 attach-agent $tcp1$ftp1 set type_ FTP### Record procproc record {} { &amp;nbsp; &amp;nbsp;global ns tcp1 sink1 record_f1 &amp;nbsp; &amp;nbsp; &amp;nbsp;set now [$ns now] &amp;nbsp; &amp;nbsp;set time 0.15 &amp;nbsp; &amp;nbsp;set cwin1 &amp;nbsp; &amp;nbsp; [$tcp1 set cwnd_] &amp;nbsp; &amp;nbsp;puts $record_f1 &amp;quot;$now [expr $cwin1*1] &amp;quot; &amp;nbsp; &amp;nbsp;$ns at [expr $now+$time] &amp;quot;record &amp;quot;}$ns at 0.0 &amp;quot;record&amp;quot;$ns at 0.0 &amp;quot;$ftp1 start&amp;quot;$ns at 20.0 &amp;quot;$ftp1 stop&amp;quot;$ns at 20.0 &amp;quot;$ns detach-agent $n0 $tcp1 ; $ns detach-agent $n1 $sink1&amp;quot;$ns at 20.0 &amp;quot;finish&amp;quot;$ns run---------------------------------------------I got the NS2 version 2.33 installed in Fedora 8. I have no problems with others TCP protocols. The exception normally appears when there is a division by zero. However, in the .tcl code there is nothing that can be associated with this error. How Can be this possible? Can someone help me? THANKS in advance DIANA
&lt;br&gt;_________________________________________________________________
&lt;br&gt;It’s the same Hotmail®. If by “same” you mean up to 70% faster.
&lt;br&gt;&lt;a href=&quot;http://windowslive.com/online/hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_broad1_122008&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://windowslive.com/online/hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_broad1_122008&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/ns-users-f15583.html&quot; embed=&quot;fixTarget[15583]&quot; target=&quot;_top&quot; &gt;ns-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/FLOATING-POINT-EXECPTION-tp21303585p21303585.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-21303525</id>
	<title>FW: FLOATING POINT EXCEPTION</title>
	<published>2009-01-05T18:17:47Z</published>
	<updated>2009-01-05T18:17:47Z</updated>
	<author>
		<name>Diana Benitez</name>
	</author>
	<content type="html">&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;From: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=21303525&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;paraguayita_69@...&lt;/a&gt;: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=21303525&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ns-users@...&lt;/a&gt;: FLOATING POINT EXCEPTIONDate: Mon, 5 Jan 2009 21:13:25 -0500
&lt;br&gt;&lt;br&gt;Hello: I am trying to run a XCP protocol example script as follows: ----------------------------------------------
&lt;br&gt;### XCP EXAMPLE TCLset lrate 0.0Queue/XCP set tcp_xcp_on 1Agent/TCP set minrto_ 1set ns [new Simulator]$ns color 1 Redset tr_f &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[open out.tr w]set nam_f &amp;nbsp; &amp;nbsp; &amp;nbsp; [open out.nam w]set record_f1 &amp;nbsp; &amp;nbsp;[open out.data1 w]$ns trace-all $tr_f$ns namtrace-all $nam_f### Finish procproc finish {} { &amp;nbsp; &amp;nbsp; global ns tr_f record_f1 nam_f &amp;nbsp; &amp;nbsp; &amp;nbsp;$ns flush-trace &amp;nbsp; &amp;nbsp; close $tr_f &amp;nbsp; &amp;nbsp; close $record_f1 &amp;nbsp; &amp;nbsp; close $nam_f &amp;nbsp; &amp;nbsp; exec awk { { print $1, $2 } } out.data1 &amp;gt; temp1.cwnd &amp;nbsp; &amp;nbsp; exit 0}set n0 [$ns node]set n1 [$ns node]#### LINK# &amp;nbsp; object &amp;nbsp; &amp;nbsp; &amp;nbsp;from &amp;nbsp;to &amp;nbsp;bandwith &amp;nbsp; delay &amp;nbsp; &amp;nbsp;queue &amp;nbsp; &amp;nbsp;$ns duplex-link $n0 &amp;nbsp;$n1 &amp;nbsp; &amp;nbsp;5Mb &amp;nbsp; &amp;nbsp; &amp;nbsp;35ms &amp;nbsp; &amp;nbsp; XCP#### BOTTLENECK BUFFERset buffer 43# tamanho del buffer del link n1-n2$ns queue-limit $n0 $n1 [expr $buffer *1]$ns duplex-link-op $n0 $n1 queuePos 0.5#### TCP AGENT 1set tcp1 [new Agent/TCP/Reno/XCP]$ns attach-agent $n0 $tcp1set sink1 [new Agent/TCPSink/XCPSink]$ns attach-agent $n1 $sink1$ns connect $tcp1 $sink1$tcp1 set fid_ 1$tcp1 set window_ 8000$tcp1 set packetSize_ 552set ftp1 [new Application/FTP]$ftp1 attach-agent $tcp1$ftp1 set type_ FTP### Record procproc record {} { &amp;nbsp; &amp;nbsp;global ns tcp1 sink1 re