<?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-07-09T11:49:44Z</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-24415871</id>
	<title>HELP WITH MODIFYING TCL FOR MOBILE IP SCENARIOS</title>
	<published>2009-07-09T11:49:44Z</published>
	<updated>2009-07-09T11:49:44Z</updated>
	<author>
		<name>Oladapo Oluwadiya</name>
	</author>
	<content type="html">&lt;br&gt;i forgot to mention that the original scenario is such that there are two base stations...one mobile node
&lt;br&gt;and two wired nodes.the mobile node moves from base station to the
&lt;br&gt;second base station.the two base stations are connected to a wired node
&lt;br&gt;which in turn is connected to a second wired node
&lt;br&gt;i m using ns2.33 &amp; cygwin 1.5.25-15
&lt;br&gt;&lt;br&gt;--- On Thu, 7/9/09, Oladapo Oluwadiya &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=24415871&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ooluwadiya@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;br&gt;From: Oladapo Oluwadiya &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=24415871&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ooluwadiya@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Subject: HELP WITH MODIFYING TCL FOR MOBILE IP SCENARIOS
&lt;br&gt;To: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=24415871&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ns-users@...&lt;/a&gt;
&lt;br&gt;Date: Thursday, July 9, 2009, 2:26 PM
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;i  need  help with this.....
&lt;br&gt;I have the code to simulate mobile ip scenario.The code is attached and also pasted below..
&lt;br&gt;i need to modify the code to do the following;
&lt;br&gt;1.) mobile node and a base station with the mobile node withing the bs range.
&lt;br&gt;2.) further modification such that i have a mobile node communicating with a base
&lt;br&gt;&amp;nbsp;station and the base station is connected to a wired node
&lt;br&gt;3.) a further modification such that a mobile node communicates with a base station and the base station is connected to a wired node in which the wired node is also connected to another wired node
&lt;br&gt;&lt;br&gt;thanks.
&lt;br&gt;&lt;br&gt;&lt;br&gt;# Copyright (c) 1997 Regents of the University of
&lt;br&gt;&amp;nbsp;California.
&lt;br&gt;# All rights reserved.
&lt;br&gt;#
&lt;br&gt;# Redistribution and use in source and binary forms, with or without
&lt;br&gt;# modification, are permitted provided that the following conditions
&lt;br&gt;# are met:
&lt;br&gt;# 1. Redistributions of source code must retain the above copyright
&lt;br&gt;#    notice, this list of conditions and the following disclaimer.
&lt;br&gt;# 2. Redistributions in binary form must reproduce the above copyright
&lt;br&gt;#    notice, this list of conditions and the following disclaimer in the
&lt;br&gt;#    documentation and/or other materials provided with the distribution.
&lt;br&gt;# 3. All advertising materials mentioning features or use of this software
&lt;br&gt;#    must display the following acknowledgement:
&lt;br&gt;#      This product includes software developed by the Computer Systems
&lt;br&gt;#      Engineering Group at Lawrence Berkeley Laboratory.
&lt;br&gt;# 4. Neither the
&lt;br&gt;&amp;nbsp;name of the University nor of the Laboratory may be used
&lt;br&gt;#    to endorse or promote products derived from this software without
&lt;br&gt;#    specific prior written permission.
&lt;br&gt;#
&lt;br&gt;# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
&lt;br&gt;# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
&lt;br&gt;# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
&lt;br&gt;# ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
&lt;br&gt;# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
&lt;br&gt;# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
&lt;br&gt;# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
&lt;br&gt;# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
&lt;br&gt;# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
&lt;br&gt;# OUT OF THE USE OF THIS SOFTWARE, EVEN IF
&lt;br&gt;&amp;nbsp;ADVISED OF THE POSSIBILITY OF
&lt;br&gt;# SUCH DAMAGE.
&lt;br&gt;#
&lt;br&gt;# wireless3.tcl
&lt;br&gt;# simulation of a wired-cum-wireless topology running with mobileIP
&lt;br&gt;# ======================================================================
&lt;br&gt;# Define options
&lt;br&gt;# ======================================================================
&lt;br&gt;&lt;br&gt;set opt(chan)   Channel/WirelessChannel        ;# channel type
&lt;br&gt;set opt(prop)   Propagation/TwoRayGround       ;# radio-propagation model
&lt;br&gt;set opt(netif)  Phy/WirelessPhy                ;# network interface type
&lt;br&gt;set opt(mac)    Mac/802_11                     ;# MAC type
&lt;br&gt;set opt(ifq)   
&lt;br&gt;&amp;nbsp;Queue/DropTail/PriQueue        ;# interface queue type
&lt;br&gt;set opt(ll)     LL                             ;# link layer type
&lt;br&gt;set opt(ant)    Antenna/OmniAntenna            ;# antenna model
&lt;br&gt;set opt(ifqlen)         50                     ;# max packet in ifq
&lt;br&gt;set opt(nn)             1                      ;# number of mobilenodes
&lt;br&gt;set opt(adhocRouting)  
&lt;br&gt;&amp;nbsp;DSDV                   ;# routing protocol
&lt;br&gt;&lt;br&gt;set opt(cp)     &amp;quot;&amp;quot;                             ;# cp file not used
&lt;br&gt;set opt(sc)     &amp;quot;&amp;quot;                             ;# node movement file. 
&lt;br&gt;&lt;br&gt;set opt(x)      670                            ;# x coordinate of topology
&lt;br&gt;set opt(y)     
&lt;br&gt;&amp;nbsp;670                            ;# y coordinate of topology
&lt;br&gt;set opt(seed)   0.0                            ;# random seed
&lt;br&gt;set opt(stop)   250                            ;# time to stop simulation
&lt;br&gt;&lt;br&gt;set opt(ftp1-start)      100.0
&lt;br&gt;&lt;br&gt;set num_wired_nodes      2
&lt;br&gt;#set num_bs_nodes       2  ; this is not really used here.
&lt;br&gt;&lt;br&gt;# ======================================================================
&lt;br&gt;&lt;br&gt;# check for boundary parameters and
&lt;br&gt;&amp;nbsp;random seed
&lt;br&gt;if { $opt(x) == 0 || $opt(y) == 0 } {
&lt;br&gt;    puts &amp;quot;No X-Y boundary values given for wireless topology\n&amp;quot;
&lt;br&gt;}
&lt;br&gt;if {$opt(seed) &amp;gt; 0} {
&lt;br&gt;    puts &amp;quot;Seeding Random number generator with $opt(seed)\n&amp;quot;
&lt;br&gt;    ns-random $opt(seed)
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;# create simulator instance
&lt;br&gt;set ns_   [new Simulator]
&lt;br&gt;&lt;br&gt;# set up for hierarchical routing
&lt;br&gt;$ns_ node-config -addressType hierarchical
&lt;br&gt;&lt;br&gt;AddrParams set domain_num_ 3           ;# number of domains
&lt;br&gt;lappend cluster_num 2 1 1              ;# number of clusters in each domain
&lt;br&gt;AddrParams set cluster_num_ $cluster_num
&lt;br&gt;lappend eilastlevel 1 1 2 1            ;# number of nodes in each cluster 
&lt;br&gt;AddrParams set nodes_num_ $eilastlevel ;# of each domain
&lt;br&gt;&lt;br&gt;set
&lt;br&gt;&amp;nbsp;tracefd  [open wireless3-out.tr w]
&lt;br&gt;set namtrace [open wireless3-out.nam w]
&lt;br&gt;$ns_ trace-all $tracefd
&lt;br&gt;$ns_ namtrace-all-wireless $namtrace $opt(x) $opt(y)
&lt;br&gt;&lt;br&gt;# Create topography object
&lt;br&gt;set topo   [new Topography]
&lt;br&gt;&lt;br&gt;# define topology
&lt;br&gt;$topo load_flatgrid $opt(x) $opt(y)
&lt;br&gt;&lt;br&gt;# create God
&lt;br&gt;#   2 for HA and FA
&lt;br&gt;create-god [expr $opt(nn) + 2]
&lt;br&gt;&lt;br&gt;#create wired nodes
&lt;br&gt;set temp {0.0.0 0.1.0}           ;# hierarchical addresses 
&lt;br&gt;for {set i 0} {$i &amp;lt; $num_wired_nodes} {incr i} {
&lt;br&gt;    set W($i) [$ns_ node [lindex $temp $i]] 
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;# Configure for ForeignAgent and HomeAgent nodes
&lt;br&gt;$ns_ node-config -mobileIP ON \
&lt;br&gt;                 -adhocRouting $opt(adhocRouting)
&lt;br&gt;&amp;nbsp;\
&lt;br&gt;                 -llType $opt(ll) \
&lt;br&gt;                 -macType $opt(mac) \
&lt;br&gt;                 -ifqType $opt(ifq) \
&lt;br&gt;                 -ifqLen $opt(ifqlen) \
&lt;br&gt;                 -antType $opt(ant) \
&lt;br&gt;                 -propType $opt(prop) \
&lt;br&gt;                 -phyType $opt(netif) \
&lt;br&gt;                 -channelType
&lt;br&gt;&amp;nbsp;$opt(chan) \
&lt;br&gt;         -topoInstance $topo \
&lt;br&gt;                 -wiredRouting ON \
&lt;br&gt;         -agentTrace ON \
&lt;br&gt;                 -routerTrace OFF \
&lt;br&gt;                 -macTrace OFF 
&lt;br&gt;&lt;br&gt;# Create HA and FA
&lt;br&gt;set HA [$ns_ node 1.0.0]
&lt;br&gt;set FA [$ns_ node 2.0.0]
&lt;br&gt;$HA random-motion 0
&lt;br&gt;$FA random-motion 0
&lt;br&gt;&lt;br&gt;# Position (fixed) for base-station nodes (HA &amp; FA).
&lt;br&gt;$HA set X_ 1.000000000000
&lt;br&gt;$HA set Y_ 2.000000000000
&lt;br&gt;$HA set Z_ 0.000000000000
&lt;br&gt;&lt;br&gt;$FA set X_ 650.000000000000
&lt;br&gt;$FA set Y_ 600.000000000000
&lt;br&gt;$FA set Z_ 0.000000000000
&lt;br&gt;&lt;br&gt;# create a mobilenode that would be moving between HA and FA.
&lt;br&gt;# note address of MH
&lt;br&gt;&amp;nbsp;indicates its in the same domain as HA.
&lt;br&gt;$ns_ node-config -wiredRouting OFF
&lt;br&gt;&lt;br&gt;set MH [$ns_ node 1.0.1]
&lt;br&gt;set node_(0) $MH
&lt;br&gt;set HAaddress [AddrParams addr2id [$HA node-addr]]
&lt;br&gt;[$MH set regagent_] set home_agent_ $HAaddress
&lt;br&gt;&lt;br&gt;# movement of the MH
&lt;br&gt;$MH set Z_ 0.000000000000
&lt;br&gt;$MH set Y_ 2.000000000000
&lt;br&gt;$MH set X_ 2.000000000000
&lt;br&gt;&lt;br&gt;# MH starts to move towards FA
&lt;br&gt;$ns_ at 100.000000000000 &amp;quot;$MH setdest 640.000000000000 610.000000000000 20.000000000000&amp;quot;
&lt;br&gt;# goes back to HA
&lt;br&gt;$ns_ at 200.000000000000 &amp;quot;$MH setdest 2.000000000000 2.000000000000 20.000000000000&amp;quot;
&lt;br&gt;&lt;br&gt;# create links between wired and BaseStation nodes
&lt;br&gt;$ns_ duplex-link $W(0) $W(1) 5Mb 2ms DropTail
&lt;br&gt;$ns_ duplex-link $W(1) $HA 5Mb 2ms DropTail
&lt;br&gt;$ns_ duplex-link $W(1) $FA 5Mb 2ms DropTail
&lt;br&gt;&lt;br&gt;$ns_ duplex-link-op $W(0) $W(1) orient down
&lt;br&gt;$ns_ duplex-link-op $W(1) $HA orient left-down
&lt;br&gt;$ns_ duplex-link-op $W(1) $FA orient right-down
&lt;br&gt;&lt;br&gt;# setup TCP
&lt;br&gt;&amp;nbsp;connections between a wired node and the MobileHost
&lt;br&gt;&lt;br&gt;set tcp1 [new Agent/TCP]
&lt;br&gt;$tcp1 set class_ 2
&lt;br&gt;set sink1 [new Agent/TCPSink]
&lt;br&gt;$ns_ attach-agent $W(0) $tcp1
&lt;br&gt;$ns_ attach-agent $MH $sink1
&lt;br&gt;$ns_ connect $tcp1 $sink1
&lt;br&gt;set ftp1 [new Application/FTP]
&lt;br&gt;$ftp1 attach-agent $tcp1
&lt;br&gt;$ns_ at $opt(ftp1-start) &amp;quot;$ftp1 start&amp;quot;
&lt;br&gt;&lt;br&gt;# source connection-pattern and node-movement scripts
&lt;br&gt;if { $opt(cp) == &amp;quot;&amp;quot; } {
&lt;br&gt;    puts &amp;quot;*** NOTE: no connection pattern specified.&amp;quot;
&lt;br&gt;        set opt(cp) &amp;quot;none&amp;quot;
&lt;br&gt;} else {
&lt;br&gt;    puts &amp;quot;Loading connection pattern...&amp;quot;
&lt;br&gt;    source $opt(cp)
&lt;br&gt;}
&lt;br&gt;if { $opt(sc) == &amp;quot;&amp;quot; } {
&lt;br&gt;    puts &amp;quot;*** NOTE: no scenario file specified.&amp;quot;
&lt;br&gt;        set opt(sc) &amp;quot;none&amp;quot;
&lt;br&gt;} else {
&lt;br&gt;    puts &amp;quot;Loading scenario file...&amp;quot;
&lt;br&gt;    source $opt(sc)
&lt;br&gt;    puts
&lt;br&gt;&amp;nbsp;&amp;quot;Load complete...&amp;quot;
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;# Define initial node position in nam
&lt;br&gt;&lt;br&gt;for {set i 0} {$i &amp;lt; $opt(nn)} {incr i} {
&lt;br&gt;&lt;br&gt;    # 20 defines the node size in nam, must adjust it according to your
&lt;br&gt;    # scenario
&lt;br&gt;    # The function must be called after mobility model is defined
&lt;br&gt;&lt;br&gt;    $ns_ initial_node_pos $node_($i) 20
&lt;br&gt;}     
&lt;br&gt;&lt;br&gt;# Tell all nodes when the siulation ends
&lt;br&gt;for {set i 0} {$i &amp;lt; $opt(nn) } {incr i} {
&lt;br&gt;    $ns_ at $opt(stop).0 &amp;quot;$node_($i) reset&amp;quot;;
&lt;br&gt;}
&lt;br&gt;$ns_ at $opt(stop).0 &amp;quot;$HA reset&amp;quot;;
&lt;br&gt;$ns_ at $opt(stop).0 &amp;quot;$FA reset&amp;quot;;
&lt;br&gt;&lt;br&gt;$ns_ at $opt(stop).0002 &amp;quot;puts \&amp;quot;NS EXITING...\&amp;quot; ; $ns_ halt&amp;quot;
&lt;br&gt;$ns_ at $opt(stop).0001 &amp;quot;stop&amp;quot;
&lt;br&gt;proc stop {} {
&lt;br&gt;    global ns_ tracefd namtrace
&lt;br&gt;    close $tracefd
&lt;br&gt;    close $namtrace
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;# some useful headers for tracefile
&lt;br&gt;puts
&lt;br&gt;&amp;nbsp;$tracefd &amp;quot;M 0.0 nn $opt(nn) x $opt(x) y $opt(y) rp \
&lt;br&gt;    $opt(adhocRouting)&amp;quot;
&lt;br&gt;puts $tracefd &amp;quot;M 0.0 sc $opt(sc) cp $opt(cp) seed $opt(seed)&amp;quot;
&lt;br&gt;puts $tracefd &amp;quot;M 0.0 prop $opt(prop) ant $opt(ant)&amp;quot;
&lt;br&gt;&lt;br&gt;puts &amp;quot;Starting Simulation...&amp;quot;
&lt;br&gt;$ns_ run
&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;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 
&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/HELP-WITH-MODIFYING-TCL-FOR-MOBILE-IP-SCENARIOS-tp24415871p24415871.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-24415479</id>
	<title>HELP WITH MODIFYING TCL FOR MOBILE IP SCENARIOS</title>
	<published>2009-07-09T11:26:06Z</published>
	<updated>2009-07-09T11:26:06Z</updated>
	<author>
		<name>Oladapo Oluwadiya</name>
	</author>
	<content type="html">&lt;br&gt;&lt;br /&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;i  need  help with this.....
&lt;br&gt;I have the code to simulate mobile ip scenario.The code is attached and also pasted below..
&lt;br&gt;i need to modify the code to do the following;
&lt;br&gt;1.) mobile node and a base station with the mobile node withing the bs range.
&lt;br&gt;2.) further modification such that i have a mobile node communicating with a base station and the base station is connected to a wired node
&lt;br&gt;3.) a further modification such that a mobile node communicates with a base station and the base station is connected to a wired node in which the wired node is also connected to another wired node
&lt;br&gt;&lt;br&gt;thanks.
&lt;br&gt;&lt;br&gt;&lt;br&gt;# Copyright (c) 1997 Regents of the University of
&lt;br&gt;&amp;nbsp;California.
&lt;br&gt;# All rights reserved.
&lt;br&gt;#
&lt;br&gt;# Redistribution and use in source and binary forms, with or without
&lt;br&gt;# modification, are permitted provided that the following conditions
&lt;br&gt;# are met:
&lt;br&gt;# 1. Redistributions of source code must retain the above copyright
&lt;br&gt;#    notice, this list of conditions and the following disclaimer.
&lt;br&gt;# 2. Redistributions in binary form must reproduce the above copyright
&lt;br&gt;#    notice, this list of conditions and the following disclaimer in the
&lt;br&gt;#    documentation and/or other materials provided with the distribution.
&lt;br&gt;# 3. All advertising materials mentioning features or use of this software
&lt;br&gt;#    must display the following acknowledgement:
&lt;br&gt;#      This product includes software developed by the Computer Systems
&lt;br&gt;#      Engineering Group at Lawrence Berkeley Laboratory.
&lt;br&gt;# 4. Neither the
&lt;br&gt;&amp;nbsp;name of the University nor of the Laboratory may be used
&lt;br&gt;#    to endorse or promote products derived from this software without
&lt;br&gt;#    specific prior written permission.
&lt;br&gt;#
&lt;br&gt;# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
&lt;br&gt;# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
&lt;br&gt;# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
&lt;br&gt;# ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
&lt;br&gt;# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
&lt;br&gt;# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
&lt;br&gt;# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
&lt;br&gt;# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
&lt;br&gt;# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
&lt;br&gt;# OUT OF THE USE OF THIS SOFTWARE, EVEN IF
&lt;br&gt;&amp;nbsp;ADVISED OF THE POSSIBILITY OF
&lt;br&gt;# SUCH DAMAGE.
&lt;br&gt;#
&lt;br&gt;# wireless3.tcl
&lt;br&gt;# simulation of a wired-cum-wireless topology running with mobileIP
&lt;br&gt;# ======================================================================
&lt;br&gt;# Define options
&lt;br&gt;# ======================================================================
&lt;br&gt;&lt;br&gt;set opt(chan)   Channel/WirelessChannel        ;# channel type
&lt;br&gt;set opt(prop)   Propagation/TwoRayGround       ;# radio-propagation model
&lt;br&gt;set opt(netif)  Phy/WirelessPhy                ;# network interface type
&lt;br&gt;set opt(mac)    Mac/802_11                     ;# MAC type
&lt;br&gt;set opt(ifq)   
&lt;br&gt;&amp;nbsp;Queue/DropTail/PriQueue        ;# interface queue type
&lt;br&gt;set opt(ll)     LL                             ;# link layer type
&lt;br&gt;set opt(ant)    Antenna/OmniAntenna            ;# antenna model
&lt;br&gt;set opt(ifqlen)         50                     ;# max packet in ifq
&lt;br&gt;set opt(nn)             1                      ;# number of mobilenodes
&lt;br&gt;set opt(adhocRouting)  
&lt;br&gt;&amp;nbsp;DSDV                   ;# routing protocol
&lt;br&gt;&lt;br&gt;set opt(cp)     &amp;quot;&amp;quot;                             ;# cp file not used
&lt;br&gt;set opt(sc)     &amp;quot;&amp;quot;                             ;# node movement file. 
&lt;br&gt;&lt;br&gt;set opt(x)      670                            ;# x coordinate of topology
&lt;br&gt;set opt(y)     
&lt;br&gt;&amp;nbsp;670                            ;# y coordinate of topology
&lt;br&gt;set opt(seed)   0.0                            ;# random seed
&lt;br&gt;set opt(stop)   250                            ;# time to stop simulation
&lt;br&gt;&lt;br&gt;set opt(ftp1-start)      100.0
&lt;br&gt;&lt;br&gt;set num_wired_nodes      2
&lt;br&gt;#set num_bs_nodes       2  ; this is not really used here.
&lt;br&gt;&lt;br&gt;# ======================================================================
&lt;br&gt;&lt;br&gt;# check for boundary parameters and
&lt;br&gt;&amp;nbsp;random seed
&lt;br&gt;if { $opt(x) == 0 || $opt(y) == 0 } {
&lt;br&gt;    puts &amp;quot;No X-Y boundary values given for wireless topology\n&amp;quot;
&lt;br&gt;}
&lt;br&gt;if {$opt(seed) &amp;gt; 0} {
&lt;br&gt;    puts &amp;quot;Seeding Random number generator with $opt(seed)\n&amp;quot;
&lt;br&gt;    ns-random $opt(seed)
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;# create simulator instance
&lt;br&gt;set ns_   [new Simulator]
&lt;br&gt;&lt;br&gt;# set up for hierarchical routing
&lt;br&gt;$ns_ node-config -addressType hierarchical
&lt;br&gt;&lt;br&gt;AddrParams set domain_num_ 3           ;# number of domains
&lt;br&gt;lappend cluster_num 2 1 1              ;# number of clusters in each domain
&lt;br&gt;AddrParams set cluster_num_ $cluster_num
&lt;br&gt;lappend eilastlevel 1 1 2 1            ;# number of nodes in each cluster 
&lt;br&gt;AddrParams set nodes_num_ $eilastlevel ;# of each domain
&lt;br&gt;&lt;br&gt;set
&lt;br&gt;&amp;nbsp;tracefd  [open wireless3-out.tr w]
&lt;br&gt;set namtrace [open wireless3-out.nam w]
&lt;br&gt;$ns_ trace-all $tracefd
&lt;br&gt;$ns_ namtrace-all-wireless $namtrace $opt(x) $opt(y)
&lt;br&gt;&lt;br&gt;# Create topography object
&lt;br&gt;set topo   [new Topography]
&lt;br&gt;&lt;br&gt;# define topology
&lt;br&gt;$topo load_flatgrid $opt(x) $opt(y)
&lt;br&gt;&lt;br&gt;# create God
&lt;br&gt;#   2 for HA and FA
&lt;br&gt;create-god [expr $opt(nn) + 2]
&lt;br&gt;&lt;br&gt;#create wired nodes
&lt;br&gt;set temp {0.0.0 0.1.0}           ;# hierarchical addresses 
&lt;br&gt;for {set i 0} {$i &amp;lt; $num_wired_nodes} {incr i} {
&lt;br&gt;    set W($i) [$ns_ node [lindex $temp $i]] 
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;# Configure for ForeignAgent and HomeAgent nodes
&lt;br&gt;$ns_ node-config -mobileIP ON \
&lt;br&gt;                 -adhocRouting $opt(adhocRouting)
&lt;br&gt;&amp;nbsp;\
&lt;br&gt;                 -llType $opt(ll) \
&lt;br&gt;                 -macType $opt(mac) \
&lt;br&gt;                 -ifqType $opt(ifq) \
&lt;br&gt;                 -ifqLen $opt(ifqlen) \
&lt;br&gt;                 -antType $opt(ant) \
&lt;br&gt;                 -propType $opt(prop) \
&lt;br&gt;                 -phyType $opt(netif) \
&lt;br&gt;                 -channelType
&lt;br&gt;&amp;nbsp;$opt(chan) \
&lt;br&gt;         -topoInstance $topo \
&lt;br&gt;                 -wiredRouting ON \
&lt;br&gt;         -agentTrace ON \
&lt;br&gt;                 -routerTrace OFF \
&lt;br&gt;                 -macTrace OFF 
&lt;br&gt;&lt;br&gt;# Create HA and FA
&lt;br&gt;set HA [$ns_ node 1.0.0]
&lt;br&gt;set FA [$ns_ node 2.0.0]
&lt;br&gt;$HA random-motion 0
&lt;br&gt;$FA random-motion 0
&lt;br&gt;&lt;br&gt;# Position (fixed) for base-station nodes (HA &amp; FA).
&lt;br&gt;$HA set X_ 1.000000000000
&lt;br&gt;$HA set Y_ 2.000000000000
&lt;br&gt;$HA set Z_ 0.000000000000
&lt;br&gt;&lt;br&gt;$FA set X_ 650.000000000000
&lt;br&gt;$FA set Y_ 600.000000000000
&lt;br&gt;$FA set Z_ 0.000000000000
&lt;br&gt;&lt;br&gt;# create a mobilenode that would be moving between HA and FA.
&lt;br&gt;# note address of MH
&lt;br&gt;&amp;nbsp;indicates its in the same domain as HA.
&lt;br&gt;$ns_ node-config -wiredRouting OFF
&lt;br&gt;&lt;br&gt;set MH [$ns_ node 1.0.1]
&lt;br&gt;set node_(0) $MH
&lt;br&gt;set HAaddress [AddrParams addr2id [$HA node-addr]]
&lt;br&gt;[$MH set regagent_] set home_agent_ $HAaddress
&lt;br&gt;&lt;br&gt;# movement of the MH
&lt;br&gt;$MH set Z_ 0.000000000000
&lt;br&gt;$MH set Y_ 2.000000000000
&lt;br&gt;$MH set X_ 2.000000000000
&lt;br&gt;&lt;br&gt;# MH starts to move towards FA
&lt;br&gt;$ns_ at 100.000000000000 &amp;quot;$MH setdest 640.000000000000 610.000000000000 20.000000000000&amp;quot;
&lt;br&gt;# goes back to HA
&lt;br&gt;$ns_ at 200.000000000000 &amp;quot;$MH setdest 2.000000000000 2.000000000000 20.000000000000&amp;quot;
&lt;br&gt;&lt;br&gt;# create links between wired and BaseStation nodes
&lt;br&gt;$ns_ duplex-link $W(0) $W(1) 5Mb 2ms DropTail
&lt;br&gt;$ns_ duplex-link $W(1) $HA 5Mb 2ms DropTail
&lt;br&gt;$ns_ duplex-link $W(1) $FA 5Mb 2ms DropTail
&lt;br&gt;&lt;br&gt;$ns_ duplex-link-op $W(0) $W(1) orient down
&lt;br&gt;$ns_ duplex-link-op $W(1) $HA orient left-down
&lt;br&gt;$ns_ duplex-link-op $W(1) $FA orient right-down
&lt;br&gt;&lt;br&gt;# setup TCP
&lt;br&gt;&amp;nbsp;connections between a wired node and the MobileHost
&lt;br&gt;&lt;br&gt;set tcp1 [new Agent/TCP]
&lt;br&gt;$tcp1 set class_ 2
&lt;br&gt;set sink1 [new Agent/TCPSink]
&lt;br&gt;$ns_ attach-agent $W(0) $tcp1
&lt;br&gt;$ns_ attach-agent $MH $sink1
&lt;br&gt;$ns_ connect $tcp1 $sink1
&lt;br&gt;set ftp1 [new Application/FTP]
&lt;br&gt;$ftp1 attach-agent $tcp1
&lt;br&gt;$ns_ at $opt(ftp1-start) &amp;quot;$ftp1 start&amp;quot;
&lt;br&gt;&lt;br&gt;# source connection-pattern and node-movement scripts
&lt;br&gt;if { $opt(cp) == &amp;quot;&amp;quot; } {
&lt;br&gt;    puts &amp;quot;*** NOTE: no connection pattern specified.&amp;quot;
&lt;br&gt;        set opt(cp) &amp;quot;none&amp;quot;
&lt;br&gt;} else {
&lt;br&gt;    puts &amp;quot;Loading connection pattern...&amp;quot;
&lt;br&gt;    source $opt(cp)
&lt;br&gt;}
&lt;br&gt;if { $opt(sc) == &amp;quot;&amp;quot; } {
&lt;br&gt;    puts &amp;quot;*** NOTE: no scenario file specified.&amp;quot;
&lt;br&gt;        set opt(sc) &amp;quot;none&amp;quot;
&lt;br&gt;} else {
&lt;br&gt;    puts &amp;quot;Loading scenario file...&amp;quot;
&lt;br&gt;    source $opt(sc)
&lt;br&gt;    puts
&lt;br&gt;&amp;nbsp;&amp;quot;Load complete...&amp;quot;
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;# Define initial node position in nam
&lt;br&gt;&lt;br&gt;for {set i 0} {$i &amp;lt; $opt(nn)} {incr i} {
&lt;br&gt;&lt;br&gt;    # 20 defines the node size in nam, must adjust it according to your
&lt;br&gt;    # scenario
&lt;br&gt;    # The function must be called after mobility model is defined
&lt;br&gt;&lt;br&gt;    $ns_ initial_node_pos $node_($i) 20
&lt;br&gt;}     
&lt;br&gt;&lt;br&gt;# Tell all nodes when the siulation ends
&lt;br&gt;for {set i 0} {$i &amp;lt; $opt(nn) } {incr i} {
&lt;br&gt;    $ns_ at $opt(stop).0 &amp;quot;$node_($i) reset&amp;quot;;
&lt;br&gt;}
&lt;br&gt;$ns_ at $opt(stop).0 &amp;quot;$HA reset&amp;quot;;
&lt;br&gt;$ns_ at $opt(stop).0 &amp;quot;$FA reset&amp;quot;;
&lt;br&gt;&lt;br&gt;$ns_ at $opt(stop).0002 &amp;quot;puts \&amp;quot;NS EXITING...\&amp;quot; ; $ns_ halt&amp;quot;
&lt;br&gt;$ns_ at $opt(stop).0001 &amp;quot;stop&amp;quot;
&lt;br&gt;proc stop {} {
&lt;br&gt;    global ns_ tracefd namtrace
&lt;br&gt;    close $tracefd
&lt;br&gt;    close $namtrace
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;# some useful headers for tracefile
&lt;br&gt;puts
&lt;br&gt;&amp;nbsp;$tracefd &amp;quot;M 0.0 nn $opt(nn) x $opt(x) y $opt(y) rp \
&lt;br&gt;    $opt(adhocRouting)&amp;quot;
&lt;br&gt;puts $tracefd &amp;quot;M 0.0 sc $opt(sc) cp $opt(cp) seed $opt(seed)&amp;quot;
&lt;br&gt;puts $tracefd &amp;quot;M 0.0 prop $opt(prop) ant $opt(ant)&amp;quot;
&lt;br&gt;&lt;br&gt;puts &amp;quot;Starting Simulation...&amp;quot;
&lt;br&gt;$ns_ run
&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;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&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/HELP-WITH-MODIFYING-TCL-FOR-MOBILE-IP-SCENARIOS-tp24415479p24415479.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-24414503</id>
	<title>Re: 802.11 10Mhz Channel</title>
	<published>2009-07-09T10:23:43Z</published>
	<updated>2009-07-09T10:23:43Z</updated>
	<author>
		<name>Ramon Bauza</name>
	</author>
	<content type="html">Hello,
&lt;br&gt;&lt;br&gt;I would like to submit for code review the attached patch implementing half
&lt;br&gt;and quarter-clocked Wifi operation using 5 and 10 Mhz channels spacing. We
&lt;br&gt;would be glad to merge this new functionality in the main branch if ns-3
&lt;br&gt;developers think it may be interesting for other people. The following files
&lt;br&gt;have been modified (ns-3-dev):
&lt;br&gt;&lt;br&gt;src/devices/wifi/interference-helper.cc
&lt;br&gt;src/devices/wifi/interference-helper.h
&lt;br&gt;src/devices/wifi/wifi-phy.cc
&lt;br&gt;src/devices/wifi/wifi-phy.h
&lt;br&gt;src/devices/wifi/wifi-phy-standard.h
&lt;br&gt;src/devices/wifi/yans-error-rate-model.cc
&lt;br&gt;src/devices/wifi/yans-wifi-phy.cc
&lt;br&gt;src/devices/wifi/yans-wifi-phy.h
&lt;br&gt;src/helper/nqos-wifi-mac-helper.cc
&lt;br&gt;src/helper/nqos-wifi-mac-helper.h
&lt;br&gt;src/helper/qos-wifi-mac-helper.cc
&lt;br&gt;src/helper/qos-wifi-mac-helper.h
&lt;br&gt;src/helper/wifi-helper.cc
&lt;br&gt;src/helper/wifi-helper.h
&lt;br&gt;&lt;br&gt;Apart from the modifications pointed out in the previous email posted some
&lt;br&gt;weeks ago, we have also modified some of the wifi helpers. In order not to
&lt;br&gt;make the user set weird values for the MAC parameters (slot,sifs, etc) from
&lt;br&gt;the script, we have modified the WifiMacHelper incorporating two new
&lt;br&gt;functions (Configure80211_10MhzParameters and Configure80211_5MhzParameters)
&lt;br&gt;that allows the user to automatically select the default MAC parameters for
&lt;br&gt;5Mhz and 10Mhz channel spacing (we have also moved the function SetType and
&lt;br&gt;the ObjectFactory m_mac from NqosWifiMacHelper and QosWifiMacHelper to
&lt;br&gt;WifiMacHelper).
&lt;br&gt;&lt;br&gt;Looking forward to your comments.
&lt;br&gt;&lt;br&gt;Best regards,
&lt;br&gt;Ramon Bauza.
&lt;br&gt;&lt;br&gt;2009/5/29 Ramon Bauza &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=24414503&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;monbauza@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hello everyone,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I am Ramon Bauza, a researcher at Miguel Hernandez University (Spain).
&lt;br&gt;&amp;gt; Currently, I am involved in the EU FP7 project iTETRIS which aims at
&lt;br&gt;&amp;gt; creating an integrated traffic and wireless simulation platform that will
&lt;br&gt;&amp;gt; allow evaluating traffic management strategies and communication protocols
&lt;br&gt;&amp;gt; in vehicular environments. The iTETRIS project employs SUMO and ns-3 as
&lt;br&gt;&amp;gt; traffic simulation and wireless simulation platforms respectively.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Our research group at UMH, it is charge of implementing the 802.11p (WAVE)
&lt;br&gt;&amp;gt; standard in ns-3. 802.11p is based on 802.11a, being the channel bandwidth
&lt;br&gt;&amp;gt; and thus also the data rates the main differences between both (802.11p uses
&lt;br&gt;&amp;gt; a 10Mhz whereas 802.11a uses 20Mhz). After implementing 802.11p in ns-3, we
&lt;br&gt;&amp;gt; will also look into and implement propagation models for vehicular
&lt;br&gt;&amp;gt; environments that consider LOS/NLOS visibility conditions,
&lt;br&gt;&amp;gt; vehicle-to-vehicle and vehicle-to-infraestructure communications, and
&lt;br&gt;&amp;gt; shadowing and multipath fading effects.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; In order to model a 10Mhz channel in ns-3, some additions/modifications
&lt;br&gt;&amp;gt; should be done (some weeks ago I posted a message in the user mailing list
&lt;br&gt;&amp;gt; regarding this
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://groups.google.com/group/ns-3-users/browse_thread/thread/f27b1ddcf9f1d532#&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/ns-3-users/browse_thread/thread/f27b1ddcf9f1d532#&lt;/a&gt;).
&lt;br&gt;&amp;gt; Apart from 802.11p, I think other 802.11 standards employ 10MHz channels and
&lt;br&gt;&amp;gt; thus probably the modeling of 10Mhz channels would also be useful for the
&lt;br&gt;&amp;gt; ns-3 community working on 802.11-related topics. In fact, the IEEE Std
&lt;br&gt;&amp;gt; 802.11TM-2007 standard considers 10Mhz channel spacing using OFDM. If you
&lt;br&gt;&amp;gt; consider that the modeling of 10Mhz channels may be beneficial for other
&lt;br&gt;&amp;gt; users we would be glad to merge the 10Mhz modeling in the main branch.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Below, I compile the needed functions and modifications we plan to
&lt;br&gt;&amp;gt; introduce in ns-3 at the PHY layer for modeling a 10Mhz channel:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; + wifi-phy-standard.h
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; Add WIFI_PHY_STANDARD_80211_10Mhz in the enum WifiPhyStandard
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; + wifi-phy.h and wifi-phy.cc
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; Declare and define the following new functions:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; static WifiMode Get3mb10Mhz (void);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; static WifiMode Get4_5mb10Mhz (void);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; static WifiMode Get6mb10Mhz (void);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; static WifiMode Get9mb10Mhz (void);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; static WifiMode Get12mb10Mhz (void);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; static WifiMode Get18mb10Mhz (void);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; static WifiMode Get24mb10Mhz (void);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; static WifiMode Get27mb10Mhz (void);
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; + yans-wifi-phy.h and yans-wifi-phy.cc
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; Declare and define the void Configure80211_10Mhz (void) function.
&lt;br&gt;&amp;gt; &amp;nbsp; Modify the void SetStandard (enum WifiPhyStandard standard) function so
&lt;br&gt;&amp;gt; that the user can also select a 10Mhz channel.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; + interference-helper.h and interference-helper.cc
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; Declare and define void Configure80211_10MhzParameters (void);
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; One function that should be modified is
&lt;br&gt;&amp;gt; InterferenceHelper::CalculateTxDuration (uint32_t size, WifiMode
&lt;br&gt;&amp;gt; payloadMode, WifiPreamble preamble) const since it assumes that the symbol
&lt;br&gt;&amp;gt; duration is always 4us (20 Mhz channel). This function should employ a
&lt;br&gt;&amp;gt; symbol duration according to the channel used (10Mhz or 20Mhz). One possible
&lt;br&gt;&amp;gt; solution to solve this would be to have a new variable in the class
&lt;br&gt;&amp;gt; InterferenceHelper which allows differentiating the channel used. This
&lt;br&gt;&amp;gt; variable could be of type WifiPhyStandard. In the function Time
&lt;br&gt;&amp;gt; InterferenceHelper::CalculateTxDuration, this new variable would be examined
&lt;br&gt;&amp;gt; and the packet txon duration will be calculated based on the bandwidth
&lt;br&gt;&amp;gt; channel.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Please, I would like to have your comments on this in order to proceed with
&lt;br&gt;&amp;gt; the implementation.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thank you in advance.
&lt;br&gt;&amp;gt; Best regards,
&lt;br&gt;&amp;gt; Ramon.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --------------------------------------------------------------------------
&lt;br&gt;&amp;gt; Ramon Bauza
&lt;br&gt;&amp;gt; Ubiquitous Wireless Communications Research Laboratory
&lt;br&gt;&amp;gt; Uwicore, &lt;a href=&quot;http://www.uwicore.umh.es&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.uwicore.umh.es&lt;/a&gt;&lt;br&gt;&amp;gt; Signal Theory and Communications Division
&lt;br&gt;&amp;gt; University Miguel Hernández (Spain)
&lt;br&gt;&amp;gt; Tel: +34 96522 2031
&lt;br&gt;&amp;gt; Fax: +34 96665 8903
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ----------------------------------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;&lt;tt&gt;[patchWifi10and5MhzChannels.diff]&lt;/tt&gt;&lt;br /&gt;&lt;hr align=&quot;left&quot; width=&quot;300&quot; /&gt;&lt;tt&gt;Los ficheros binarios ns-3-dev/.hg/dirstate y ns-3-spacing/.hg/dirstate son distintos
&lt;br&gt;Los ficheros binarios ns-3-dev/regression.pyc y ns-3-spacing/regression.pyc son distintos
&lt;br&gt;diff -u -r -N ns-3-dev/src/devices/wifi/interference-helper.cc ns-3-spacing/src/devices/wifi/interference-helper.cc
&lt;br&gt;--- ns-3-dev/src/devices/wifi/interference-helper.cc	2009-07-09 18:14:07.000000000 +0200
&lt;br&gt;+++ ns-3-spacing/src/devices/wifi/interference-helper.cc	2009-07-09 12:27:49.000000000 +0200
&lt;br&gt;@@ -241,6 +241,18 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;delay += m_plcpLongPreambleDelayUs;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;delay += lrint (ceil ((size * 8.0 + 48.0) / payloadMode.GetDataRate () / 4e-6) * 4);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;break;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;case WIFI_PHY_STANDARD_80211_10Mhz: 
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp;delay += m_plcpLongPreambleDelayUs;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp;// symbol duration is 8us
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp;delay += 8;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp;delay += lrint (ceil ((size * 8.0 + 16.0 + 6.0) / payloadMode.GetDataRate () / 8e-6) * 8);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp;break;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;case WIFI_PHY_STANDARD_80211_5Mhz: 
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp;delay += m_plcpLongPreambleDelayUs;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp;// symbol duration is 16us
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp;delay += 16;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp;delay += lrint (ceil ((size * 8.0 + 16.0 + 6.0) / payloadMode.GetDataRate () / 1.6e-5) * 16);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp;break;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;default:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; NS_ASSERT (false);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; break;
&lt;br&gt;@@ -277,6 +289,34 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp;m_maxPacketDuration = CalculateTxDuration (4095, WifiPhy::Get1mbb (), WIFI_PREAMBLE_LONG);
&lt;br&gt;&amp;nbsp;}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;+void
&lt;br&gt;+InterferenceHelper::Configure80211_10MhzParameters (void)
&lt;br&gt;+{
&lt;br&gt;+ &amp;nbsp;NS_LOG_FUNCTION (this);
&lt;br&gt;+ &amp;nbsp;m_80211_standard = WIFI_PHY_STANDARD_80211_10Mhz;
&lt;br&gt;+ &amp;nbsp;m_plcpLongPreambleDelayUs = 32;
&lt;br&gt;+ &amp;nbsp;m_plcpShortPreambleDelayUs = 32;
&lt;br&gt;+ &amp;nbsp;m_longPlcpHeaderMode = WifiPhy::Get3mb10Mhz ();
&lt;br&gt;+ &amp;nbsp;m_shortPlcpHeaderMode = WifiPhy::Get3mb10Mhz ();
&lt;br&gt;+ &amp;nbsp;m_plcpHeaderLength = 4 + 1 + 12 + 1 + 6;
&lt;br&gt;+ &amp;nbsp;/* 4095 bytes at a 3Mb/s rate with a 1/2 coding rate. */
&lt;br&gt;+ &amp;nbsp;m_maxPacketDuration = CalculateTxDuration (4095, WifiPhy::Get3mb10Mhz (), WIFI_PREAMBLE_LONG);
&lt;br&gt;+}
&lt;br&gt;+
&lt;br&gt;+void
&lt;br&gt;+InterferenceHelper::Configure80211_5MhzParameters (void)
&lt;br&gt;+{
&lt;br&gt;+ &amp;nbsp;NS_LOG_FUNCTION (this);
&lt;br&gt;+ &amp;nbsp;m_80211_standard = WIFI_PHY_STANDARD_80211_5Mhz;
&lt;br&gt;+ &amp;nbsp;m_plcpLongPreambleDelayUs = 64;
&lt;br&gt;+ &amp;nbsp;m_plcpShortPreambleDelayUs = 64;
&lt;br&gt;+ &amp;nbsp;m_longPlcpHeaderMode = WifiPhy::Get1_5mb5Mhz ();
&lt;br&gt;+ &amp;nbsp;m_shortPlcpHeaderMode = WifiPhy::Get1_5mb5Mhz ();
&lt;br&gt;+ &amp;nbsp;m_plcpHeaderLength = 4 + 1 + 12 + 1 + 6;
&lt;br&gt;+ &amp;nbsp;/* 4095 bytes at a 1.5Mb/s rate with a 1/2 coding rate. */
&lt;br&gt;+ &amp;nbsp;m_maxPacketDuration = CalculateTxDuration (4095, WifiPhy::Get1_5mb5Mhz (), WIFI_PREAMBLE_LONG);
&lt;br&gt;+}
&lt;br&gt;+
&lt;br&gt;&amp;nbsp;void 
&lt;br&gt;&amp;nbsp;InterferenceHelper::AppendEvent (Ptr&amp;lt;InterferenceHelper::Event&amp;gt; event)
&lt;br&gt;&amp;nbsp;{
&lt;br&gt;diff -u -r -N ns-3-dev/src/devices/wifi/interference-helper.h ns-3-spacing/src/devices/wifi/interference-helper.h
&lt;br&gt;--- ns-3-dev/src/devices/wifi/interference-helper.h	2009-07-09 18:14:07.000000000 +0200
&lt;br&gt;+++ ns-3-spacing/src/devices/wifi/interference-helper.h	2009-07-09 12:26:29.000000000 +0200
&lt;br&gt;@@ -71,6 +71,8 @@
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp;void Configure80211aParameters (void);
&lt;br&gt;&amp;nbsp; &amp;nbsp;void Configure80211bParameters (void);
&lt;br&gt;+ &amp;nbsp;void Configure80211_10MhzParameters (void);
&lt;br&gt;+ &amp;nbsp;void Configure80211_5MhzParameters (void);
&lt;br&gt;&amp;nbsp; &amp;nbsp;void SetNoiseFigure (double value);
&lt;br&gt;&amp;nbsp; &amp;nbsp;void SetErrorRateModel (Ptr&amp;lt;ErrorRateModel&amp;gt; rate);
&lt;br&gt;&amp;nbsp;
&lt;br&gt;diff -u -r -N ns-3-dev/src/devices/wifi/wifi-phy.cc ns-3-spacing/src/devices/wifi/wifi-phy.cc
&lt;br&gt;--- ns-3-dev/src/devices/wifi/wifi-phy.cc	2009-07-09 18:14:07.000000000 +0200
&lt;br&gt;+++ ns-3-spacing/src/devices/wifi/wifi-phy.cc	2009-07-09 12:22:34.000000000 +0200
&lt;br&gt;@@ -244,6 +244,150 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp;return mode;
&lt;br&gt;&amp;nbsp;}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;+WifiMode 
&lt;br&gt;+WifiPhy::Get3mb10Mhz (void)
&lt;br&gt;+{
&lt;br&gt;+ &amp;nbsp;static WifiMode mode = WifiModeFactory::CreateBpsk (&amp;quot;wifi-3mbs-10Mhz&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; &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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;true,
&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; &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; &amp;nbsp; &amp;nbsp; &amp;nbsp;10000000, 3000000, 6000000);
&lt;br&gt;+ &amp;nbsp;return mode;
&lt;br&gt;+}
&lt;br&gt;+
&lt;br&gt;+WifiMode 
&lt;br&gt;+WifiPhy::Get4_5mb10Mhz (void)
&lt;br&gt;+{
&lt;br&gt;+ &amp;nbsp;static WifiMode mode = WifiModeFactory::CreateBpsk (&amp;quot;wifi-4.5mbs-10Mhz&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; &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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;false,
&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; &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; &amp;nbsp; &amp;nbsp; &amp;nbsp;10000000, 4500000, 6000000);
&lt;br&gt;+ &amp;nbsp;return mode;
&lt;br&gt;+}
&lt;br&gt;+
&lt;br&gt;+WifiMode 
&lt;br&gt;+WifiPhy::Get6mb10Mhz (void)
&lt;br&gt;+{
&lt;br&gt;+ &amp;nbsp;static WifiMode mode = WifiModeFactory::CreateBpsk (&amp;quot;wifi-6mbs-10Mhz&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; &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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;true,
&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; &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; &amp;nbsp; &amp;nbsp; &amp;nbsp;10000000, 6000000, 12000000);
&lt;br&gt;+ &amp;nbsp;return mode;
&lt;br&gt;+}
&lt;br&gt;+
&lt;br&gt;+WifiMode 
&lt;br&gt;+WifiPhy::Get9mb10Mhz (void)
&lt;br&gt;+{
&lt;br&gt;+ &amp;nbsp;static WifiMode mode = WifiModeFactory::CreateBpsk (&amp;quot;wifi-9mbs-10Mhz&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; &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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;false,
&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; &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; &amp;nbsp; &amp;nbsp; &amp;nbsp;10000000, 9000000, 12000000);
&lt;br&gt;+ &amp;nbsp;return mode;
&lt;br&gt;+}
&lt;br&gt;+
&lt;br&gt;+WifiMode 
&lt;br&gt;+WifiPhy::Get12mb10Mhz (void)
&lt;br&gt;+{
&lt;br&gt;+ &amp;nbsp;static WifiMode mode = WifiModeFactory::CreateBpsk (&amp;quot;wifi-12mbs-10Mhz&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; &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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;true,
&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; &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; &amp;nbsp; &amp;nbsp; &amp;nbsp;10000000, 12000000, 24000000);
&lt;br&gt;+ &amp;nbsp;return mode;
&lt;br&gt;+}
&lt;br&gt;+
&lt;br&gt;+WifiMode 
&lt;br&gt;+WifiPhy::Get18mb10Mhz (void)
&lt;br&gt;+{
&lt;br&gt;+ &amp;nbsp;static WifiMode mode = WifiModeFactory::CreateBpsk (&amp;quot;wifi-18mbs-10Mhz&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; &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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;false,
&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; &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; &amp;nbsp; &amp;nbsp; &amp;nbsp;10000000, 18000000, 24000000);
&lt;br&gt;+ &amp;nbsp;return mode;
&lt;br&gt;+}
&lt;br&gt;+
&lt;br&gt;+WifiMode 
&lt;br&gt;+WifiPhy::Get24mb10Mhz (void)
&lt;br&gt;+{
&lt;br&gt;+ &amp;nbsp;static WifiMode mode = WifiModeFactory::CreateBpsk (&amp;quot;wifi-24mbs-10Mhz&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; &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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;false,
&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; &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; &amp;nbsp; &amp;nbsp; &amp;nbsp;10000000, 24000000, 36000000);
&lt;br&gt;+ &amp;nbsp;return mode;
&lt;br&gt;+}
&lt;br&gt;+
&lt;br&gt;+WifiMode 
&lt;br&gt;+WifiPhy::Get27mb10Mhz (void)
&lt;br&gt;+{
&lt;br&gt;+ &amp;nbsp;static WifiMode mode = WifiModeFactory::CreateBpsk (&amp;quot;wifi-27mbs-10Mhz&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; &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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;false,
&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; &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; &amp;nbsp; &amp;nbsp; &amp;nbsp;10000000, 27000000, 36000000);
&lt;br&gt;+ &amp;nbsp;return mode;
&lt;br&gt;+}
&lt;br&gt;+
&lt;br&gt;+WifiMode 
&lt;br&gt;+WifiPhy::Get1_5mb5Mhz (void)
&lt;br&gt;+{
&lt;br&gt;+ &amp;nbsp;static WifiMode mode = WifiModeFactory::CreateBpsk (&amp;quot;wifi-1_5mbs-5Mhz&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; &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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;true,
&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; &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; &amp;nbsp; &amp;nbsp; &amp;nbsp;5000000, 1500000, 3000000);
&lt;br&gt;+ &amp;nbsp;return mode;
&lt;br&gt;+}
&lt;br&gt;+
&lt;br&gt;+WifiMode 
&lt;br&gt;+WifiPhy::Get2_25mb5Mhz (void)
&lt;br&gt;+{
&lt;br&gt;+ &amp;nbsp;static WifiMode mode = WifiModeFactory::CreateBpsk (&amp;quot;wifi-2.25mbs-5Mhz&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; &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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;false,
&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; &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; &amp;nbsp; &amp;nbsp; &amp;nbsp;5000000, 2250000, 3000000);
&lt;br&gt;+ &amp;nbsp;return mode;
&lt;br&gt;+}
&lt;br&gt;+
&lt;br&gt;+WifiMode 
&lt;br&gt;+WifiPhy::Get3mb5Mhz (void)
&lt;br&gt;+{
&lt;br&gt;+ &amp;nbsp;static WifiMode mode = WifiModeFactory::CreateBpsk (&amp;quot;wifi-3mbs-5Mhz&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; &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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;true,
&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; &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; &amp;nbsp; &amp;nbsp; &amp;nbsp;5000000, 3000000, 6000000);
&lt;br&gt;+ &amp;nbsp;return mode;
&lt;br&gt;+}
&lt;br&gt;+
&lt;br&gt;+WifiMode 
&lt;br&gt;+WifiPhy::Get4_5mb5Mhz (void)
&lt;br&gt;+{
&lt;br&gt;+ &amp;nbsp;static WifiMode mode = WifiModeFactory::CreateBpsk (&amp;quot;wifi-4.5mbs-5Mhz&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; &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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;false,
&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; &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; &amp;nbsp; &amp;nbsp; &amp;nbsp;5000000, 4500000, 6000000);
&lt;br&gt;+ &amp;nbsp;return mode;
&lt;br&gt;+}
&lt;br&gt;+
&lt;br&gt;+WifiMode 
&lt;br&gt;+WifiPhy::Get6mb5Mhz (void)
&lt;br&gt;+{
&lt;br&gt;+ &amp;nbsp;static WifiMode mode = WifiModeFactory::CreateBpsk (&amp;quot;wifi-6mbs-5Mhz&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; &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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;true,
&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; &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; &amp;nbsp; &amp;nbsp; &amp;nbsp;5000000, 6000000, 12000000);
&lt;br&gt;+ &amp;nbsp;return mode;
&lt;br&gt;+}
&lt;br&gt;+
&lt;br&gt;+WifiMode 
&lt;br&gt;+WifiPhy::Get9mb5Mhz (void)
&lt;br&gt;+{
&lt;br&gt;+ &amp;nbsp;static WifiMode mode = WifiModeFactory::CreateBpsk (&amp;quot;wifi-9mbs-5Mhz&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; &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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;false,
&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; &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; &amp;nbsp; &amp;nbsp; &amp;nbsp;10000000, 9000000, 12000000);
&lt;br&gt;+ &amp;nbsp;return mode;
&lt;br&gt;+}
&lt;br&gt;+
&lt;br&gt;+WifiMode 
&lt;br&gt;+WifiPhy::Get12mb5Mhz (void)
&lt;br&gt;+{
&lt;br&gt;+ &amp;nbsp;static WifiMode mode = WifiModeFactory::CreateBpsk (&amp;quot;wifi-12mbs-5Mhz&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; &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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;false,
&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; &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; &amp;nbsp; &amp;nbsp; &amp;nbsp;10000000, 12000000, 18000000);
&lt;br&gt;+ &amp;nbsp;return mode;
&lt;br&gt;+}
&lt;br&gt;+
&lt;br&gt;+WifiMode 
&lt;br&gt;+WifiPhy::Get13_5mb5Mhz (void)
&lt;br&gt;+{
&lt;br&gt;+ &amp;nbsp;static WifiMode mode = WifiModeFactory::CreateBpsk (&amp;quot;wifi-13.5mbs-5Mhz&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; &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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;false,
&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; &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; &amp;nbsp; &amp;nbsp; &amp;nbsp;10000000, 13500000, 18000000);
&lt;br&gt;+ &amp;nbsp;return mode;
&lt;br&gt;+}
&lt;br&gt;+
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;} // namespace ns3
&lt;br&gt;&amp;nbsp;
&lt;br&gt;@@ -265,6 +409,22 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;ns3::WifiPhy::Get2mbb ();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;ns3::WifiPhy::Get5_5mbb ();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;ns3::WifiPhy::Get11mbb ();
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;ns3::WifiPhy::Get3mb10Mhz ();
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;ns3::WifiPhy::Get4_5mb10Mhz ();
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;ns3::WifiPhy::Get6mb10Mhz ();
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;ns3::WifiPhy::Get9mb10Mhz ();
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;ns3::WifiPhy::Get12mb10Mhz ();
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;ns3::WifiPhy::Get18mb10Mhz ();
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;ns3::WifiPhy::Get24mb10Mhz ();
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;ns3::WifiPhy::Get27mb10Mhz ();
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;ns3::WifiPhy::Get1_5mb5Mhz ();
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;ns3::WifiPhy::Get2_25mb5Mhz ();
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;ns3::WifiPhy::Get3mb5Mhz ();
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;ns3::WifiPhy::Get4_5mb5Mhz ();
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;ns3::WifiPhy::Get6mb5Mhz ();
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;ns3::WifiPhy::Get9mb5Mhz ();
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;ns3::WifiPhy::Get12mb5Mhz ();
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;ns3::WifiPhy::Get13_5mb5Mhz ();
&lt;br&gt;&amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp;} g_constructor;
&lt;br&gt;&amp;nbsp;}
&lt;br&gt;diff -u -r -N ns-3-dev/src/devices/wifi/wifi-phy.h ns-3-spacing/src/devices/wifi/wifi-phy.h
&lt;br&gt;--- ns-3-dev/src/devices/wifi/wifi-phy.h	2009-07-09 18:14:07.000000000 +0200
&lt;br&gt;+++ ns-3-spacing/src/devices/wifi/wifi-phy.h	2009-07-09 12:21:10.000000000 +0200
&lt;br&gt;@@ -256,6 +256,22 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp;static WifiMode Get2mbb (void);
&lt;br&gt;&amp;nbsp; &amp;nbsp;static WifiMode Get5_5mbb (void);
&lt;br&gt;&amp;nbsp; &amp;nbsp;static WifiMode Get11mbb (void);
&lt;br&gt;+ &amp;nbsp;static WifiMode Get3mb10Mhz (void);
&lt;br&gt;+ &amp;nbsp;static WifiMode Get4_5mb10Mhz (void);
&lt;br&gt;+ &amp;nbsp;static WifiMode Get6mb10Mhz (void);
&lt;br&gt;+ &amp;nbsp;static WifiMode Get9mb10Mhz (void);
&lt;br&gt;+ &amp;nbsp;static WifiMode Get12mb10Mhz (void);
&lt;br&gt;+ &amp;nbsp;static WifiMode Get18mb10Mhz (void);
&lt;br&gt;+ &amp;nbsp;static WifiMode Get24mb10Mhz (void);
&lt;br&gt;+ &amp;nbsp;static WifiMode Get27mb10Mhz (void);
&lt;br&gt;+ &amp;nbsp;static WifiMode Get1_5mb5Mhz (void);
&lt;br&gt;+ &amp;nbsp;static WifiMode Get2_25mb5Mhz (void);
&lt;br&gt;+ &amp;nbsp;static WifiMode Get3mb5Mhz (void);
&lt;br&gt;+ &amp;nbsp;static WifiMode Get4_5mb5Mhz (void);
&lt;br&gt;+ &amp;nbsp;static WifiMode Get6mb5Mhz (void);
&lt;br&gt;+ &amp;nbsp;static WifiMode Get9mb5Mhz (void);
&lt;br&gt;+ &amp;nbsp;static WifiMode Get12mb5Mhz (void);
&lt;br&gt;+ &amp;nbsp;static WifiMode Get13_5mb5Mhz (void);
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp;/**
&lt;br&gt;diff -u -r -N ns-3-dev/src/devices/wifi/wifi-phy-standard.h ns-3-spacing/src/devices/wifi/wifi-phy-standard.h
&lt;br&gt;--- ns-3-dev/src/devices/wifi/wifi-phy-standard.h	2009-07-09 18:14:07.000000000 +0200
&lt;br&gt;+++ ns-3-spacing/src/devices/wifi/wifi-phy-standard.h	2009-07-09 12:23:11.000000000 +0200
&lt;br&gt;@@ -25,6 +25,8 @@
&lt;br&gt;&amp;nbsp;enum WifiPhyStandard {
&lt;br&gt;&amp;nbsp; &amp;nbsp;WIFI_PHY_STANDARD_80211a,
&lt;br&gt;&amp;nbsp; &amp;nbsp;WIFI_PHY_STANDARD_80211b,
&lt;br&gt;+ &amp;nbsp;WIFI_PHY_STANDARD_80211_10Mhz,
&lt;br&gt;+ &amp;nbsp;WIFI_PHY_STANDARD_80211_5Mhz,
&lt;br&gt;&amp;nbsp; &amp;nbsp;WIFI_PHY_STANDARD_holland
&lt;br&gt;&amp;nbsp;};
&lt;br&gt;&amp;nbsp;
&lt;br&gt;diff -u -r -N ns-3-dev/src/devices/wifi/yans-error-rate-model.cc ns-3-spacing/src/devices/wifi/yans-error-rate-model.cc
&lt;br&gt;--- ns-3-dev/src/devices/wifi/yans-error-rate-model.cc	2009-07-09 18:14:07.000000000 +0200
&lt;br&gt;+++ ns-3-spacing/src/devices/wifi/yans-error-rate-model.cc	2009-07-09 12:38:14.000000000 +0200
&lt;br&gt;@@ -176,7 +176,7 @@
&lt;br&gt;&amp;nbsp;double 
&lt;br&gt;&amp;nbsp;YansErrorRateModel::GetChunkSuccessRate (WifiMode mode, double snr, uint32_t nbits) const
&lt;br&gt;&amp;nbsp;{
&lt;br&gt;- &amp;nbsp;if (mode == WifiPhy::Get6mba ())
&lt;br&gt;+ &amp;nbsp;if (mode == WifiPhy::Get6mba () || mode == WifiPhy::Get3mb10Mhz () || mode == WifiPhy::Get1_5mb5Mhz ())
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;{
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return GetFecBpskBer (snr, 
&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;nbits,
&lt;br&gt;@@ -186,7 +186,7 @@
&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;11 // adFree
&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;); &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;- &amp;nbsp;else if (mode == WifiPhy::Get9mba ())
&lt;br&gt;+ &amp;nbsp;else if (mode == WifiPhy::Get9mba () || mode == WifiPhy::Get4_5mb10Mhz () || mode == WifiPhy::Get2_25mb5Mhz ())
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;{
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return GetFecBpskBer (snr, 
&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;nbits,
&lt;br&gt;@@ -196,7 +196,7 @@
&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;8 // adFree
&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;- &amp;nbsp;else if (mode == WifiPhy::Get12mba ())
&lt;br&gt;+ &amp;nbsp;else if (mode == WifiPhy::Get12mba () || mode == WifiPhy::Get6mb10Mhz () || mode == WifiPhy::Get3mb5Mhz ())
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;{
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return GetFecQamBer (snr, 
&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; nbits,
&lt;br&gt;@@ -208,7 +208,7 @@
&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; // adFreePlusOne
&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; );
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;- &amp;nbsp;else if (mode == WifiPhy::Get18mba ())
&lt;br&gt;+ &amp;nbsp;else if (mode == WifiPhy::Get18mba () || mode == WifiPhy::Get9mb10Mhz () || mode == WifiPhy::Get4_5mb5Mhz ())
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;{
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return GetFecQamBer (snr, 
&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; nbits,
&lt;br&gt;@@ -220,7 +220,7 @@
&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; 31 // adFreePlusOne
&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; );
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;- &amp;nbsp;else if (mode == WifiPhy::Get24mba ())
&lt;br&gt;+ &amp;nbsp;else if (mode == WifiPhy::Get24mba () || mode == WifiPhy::Get12mb10Mhz () || mode == WifiPhy::Get6mb5Mhz ())
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;{
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return GetFecQamBer (snr, 
&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; nbits,
&lt;br&gt;@@ -232,7 +232,7 @@
&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; // adFreePlusOne
&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; );
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;- &amp;nbsp;else if (mode == WifiPhy::Get36mba ())
&lt;br&gt;+ &amp;nbsp;else if (mode == WifiPhy::Get36mba () || mode == WifiPhy::Get18mb10Mhz () || mode == WifiPhy::Get9mb5Mhz ())
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;{
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return GetFecQamBer (snr, 
&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; nbits,
&lt;br&gt;@@ -244,7 +244,7 @@
&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; 31 &amp;nbsp;// adFreePlusOne
&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; );
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;- &amp;nbsp;else if (mode == WifiPhy::Get48mba ())
&lt;br&gt;+ &amp;nbsp;else if (mode == WifiPhy::Get48mba () || mode == WifiPhy::Get24mb10Mhz () || mode == WifiPhy::Get12mb5Mhz ())
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;{
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return GetFecQamBer (snr, 
&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; nbits,
&lt;br&gt;@@ -256,7 +256,7 @@
&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; 16 &amp;nbsp;// adFreePlusOne
&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; );
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;- &amp;nbsp;else if (mode == WifiPhy::Get54mba ())
&lt;br&gt;+ &amp;nbsp;else if (mode == WifiPhy::Get54mba () || mode == WifiPhy::Get27mb10Mhz () || mode == WifiPhy::Get13_5mb5Mhz ())
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;{
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return GetFecQamBer (snr, 
&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; nbits,
&lt;br&gt;diff -u -r -N ns-3-dev/src/devices/wifi/yans-wifi-phy.cc ns-3-spacing/src/devices/wifi/yans-wifi-phy.cc
&lt;br&gt;--- ns-3-dev/src/devices/wifi/yans-wifi-phy.cc	2009-07-09 18:14:07.000000000 +0200
&lt;br&gt;+++ ns-3-spacing/src/devices/wifi/yans-wifi-phy.cc	2009-07-09 12:25:35.000000000 +0200
&lt;br&gt;@@ -111,6 +111,8 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; MakeEnumAccessor (&amp;YansWifiPhy::SetStandard),
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; MakeEnumChecker (WIFI_PHY_STANDARD_80211a, &amp;quot;802.11a&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;WIFI_PHY_STANDARD_80211b, &amp;quot;802.11b&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;WIFI_PHY_STANDARD_80211_10Mhz,&amp;quot;802.11_10Mhz&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;WIFI_PHY_STANDARD_80211_5Mhz,&amp;quot;802-11_5Mhz&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;WIFI_PHY_STANDARD_holland, &amp;quot;holland&amp;quot;))
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;.AddAttribute (&amp;quot;State&amp;quot;, &amp;quot;The state of the PHY layer&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; PointerValue (),
&lt;br&gt;@@ -156,6 +158,12 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp;case WIFI_PHY_STANDARD_80211b:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Configure80211b ();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;break;
&lt;br&gt;+ &amp;nbsp;case WIFI_PHY_STANDARD_80211_10Mhz: 
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;Configure80211_10Mhz ();
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;break;
&lt;br&gt;+ &amp;nbsp;case WIFI_PHY_STANDARD_80211_5Mhz:
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;Configure80211_5Mhz ();
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;break;
&lt;br&gt;&amp;nbsp; &amp;nbsp;case WIFI_PHY_STANDARD_holland:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;ConfigureHolland ();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;break;
&lt;br&gt;@@ -461,6 +469,36 @@
&lt;br&gt;&amp;nbsp;}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;void
&lt;br&gt;+YansWifiPhy::Configure80211_10Mhz (void)
&lt;br&gt;+{
&lt;br&gt;+ &amp;nbsp;NS_LOG_FUNCTION (this);
&lt;br&gt;+ &amp;nbsp;m_interference.Configure80211_10MhzParameters ();
&lt;br&gt;+ &amp;nbsp;m_modes.push_back (WifiPhy::Get3mb10Mhz ());
&lt;br&gt;+ &amp;nbsp;m_modes.push_back (WifiPhy::Get4_5mb10Mhz ());
&lt;br&gt;+ &amp;nbsp;m_modes.push_back (WifiPhy::Get6mb10Mhz ());
&lt;br&gt;+ &amp;nbsp;m_modes.push_back (WifiPhy::Get9mb10Mhz ());
&lt;br&gt;+ &amp;nbsp;m_modes.push_back (WifiPhy::Get12mb10Mhz ());
&lt;br&gt;+ &amp;nbsp;m_modes.push_back (WifiPhy::Get18mb10Mhz ());
&lt;br&gt;+ &amp;nbsp;m_modes.push_back (WifiPhy::Get24mb10Mhz ());
&lt;br&gt;+ &amp;nbsp;m_modes.push_back (WifiPhy::Get27mb10Mhz &amp;nbsp;());
&lt;br&gt;+}
&lt;br&gt;+
&lt;br&gt;+void
&lt;br&gt;+YansWifiPhy::Configure80211_5Mhz (void)
&lt;br&gt;+{
&lt;br&gt;+ &amp;nbsp;NS_LOG_FUNCTION (this);
&lt;br&gt;+ &amp;nbsp;m_interference.Configure80211_5MhzParameters ();
&lt;br&gt;+ &amp;nbsp;m_modes.push_back (WifiPhy::Get1_5mb5Mhz ());
&lt;br&gt;+ &amp;nbsp;m_modes.push_back (WifiPhy::Get2_25mb5Mhz ());
&lt;br&gt;+ &amp;nbsp;m_modes.push_back (WifiPhy::Get3mb5Mhz ());
&lt;br&gt;+ &amp;nbsp;m_modes.push_back (WifiPhy::Get4_5mb5Mhz ());
&lt;br&gt;+ &amp;nbsp;m_modes.push_back (WifiPhy::Get6mb5Mhz ());
&lt;br&gt;+ &amp;nbsp;m_modes.push_back (WifiPhy::Get9mb5Mhz ());
&lt;br&gt;+ &amp;nbsp;m_modes.push_back (WifiPhy::Get12mb5Mhz ());
&lt;br&gt;+ &amp;nbsp;m_modes.push_back (WifiPhy::Get13_5mb5Mhz &amp;nbsp;());
&lt;br&gt;+}
&lt;br&gt;+
&lt;br&gt;+void
&lt;br&gt;&amp;nbsp;YansWifiPhy::ConfigureHolland (void)
&lt;br&gt;&amp;nbsp;{
&lt;br&gt;&amp;nbsp; &amp;nbsp;NS_LOG_FUNCTION (this);
&lt;br&gt;diff -u -r -N ns-3-dev/src/devices/wifi/yans-wifi-phy.h ns-3-spacing/src/devices/wifi/yans-wifi-phy.h
&lt;br&gt;--- ns-3-dev/src/devices/wifi/yans-wifi-phy.h	2009-07-09 18:14:07.000000000 +0200
&lt;br&gt;+++ ns-3-spacing/src/devices/wifi/yans-wifi-phy.h	2009-07-09 12:24:31.000000000 +0200
&lt;br&gt;@@ -125,6 +125,8 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp;virtual void DoDispose (void);
&lt;br&gt;&amp;nbsp; &amp;nbsp;void Configure80211a (void);
&lt;br&gt;&amp;nbsp; &amp;nbsp;void Configure80211b (void);
&lt;br&gt;+ &amp;nbsp;void Configure80211_10Mhz (void);
&lt;br&gt;+ &amp;nbsp;void Configure80211_5Mhz ();
&lt;br&gt;&amp;nbsp; &amp;nbsp;void ConfigureHolland (void);
&lt;br&gt;&amp;nbsp; &amp;nbsp;double GetEdThresholdW (void) const;
&lt;br&gt;&amp;nbsp; &amp;nbsp;double DbmToW (double dbm) const;
&lt;br&gt;diff -u -r -N ns-3-dev/src/helper/nqos-wifi-mac-helper.cc ns-3-spacing/src/helper/nqos-wifi-mac-helper.cc
&lt;br&gt;--- ns-3-dev/src/helper/nqos-wifi-mac-helper.cc	2009-07-09 18:14:07.000000000 +0200
&lt;br&gt;+++ ns-3-spacing/src/helper/nqos-wifi-mac-helper.cc	2009-07-09 12:35:22.000000000 +0200
&lt;br&gt;@@ -41,28 +41,6 @@
&lt;br&gt;&amp;nbsp;}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;void
&lt;br&gt;-NqosWifiMacHelper::SetType (std::string type,
&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; &amp;nbsp; &amp;nbsp; &amp;nbsp;std::string n0, const AttributeValue &amp;v0,
&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; &amp;nbsp; &amp;nbsp; &amp;nbsp;std::string n1, const AttributeValue &amp;v1,
&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; &amp;nbsp; &amp;nbsp; &amp;nbsp;std::string n2, const AttributeValue &amp;v2,
&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; &amp;nbsp; &amp;nbsp; &amp;nbsp;std::string n3, const AttributeValue &amp;v3,
&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; &amp;nbsp; &amp;nbsp; &amp;nbsp;std::string n4, const AttributeValue &amp;v4,
&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; &amp;nbsp; &amp;nbsp; &amp;nbsp;std::string n5, const AttributeValue &amp;v5,
&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; &amp;nbsp; &amp;nbsp; &amp;nbsp;std::string n6, const AttributeValue &amp;v6,
&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; &amp;nbsp; &amp;nbsp; &amp;nbsp;std::string n7, const AttributeValue &amp;v7)
&lt;br&gt;-{
&lt;br&gt;- &amp;nbsp;m_mac.SetTypeId (type);
&lt;br&gt;- &amp;nbsp;m_mac.Set (n0, v0);
&lt;br&gt;- &amp;nbsp;m_mac.Set (n1, v1);
&lt;br&gt;- &amp;nbsp;m_mac.Set (n2, v2);
&lt;br&gt;- &amp;nbsp;m_mac.Set (n3, v3);
&lt;br&gt;- &amp;nbsp;m_mac.Set (n4, v4);
&lt;br&gt;- &amp;nbsp;m_mac.Set (n5, v5);
&lt;br&gt;- &amp;nbsp;m_mac.Set (n6, v6);
&lt;br&gt;- &amp;nbsp;m_mac.Set (n7, v7);
&lt;br&gt;-}
&lt;br&gt;-
&lt;br&gt;-void
&lt;br&gt;&amp;nbsp;NqosWifiMacHelper::SetDcaParameters (std::string n0, const AttributeValue &amp;v0,
&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; std::string n1, const AttributeValue &amp;v1,
&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; std::string n2, const AttributeValue &amp;v2,
&lt;br&gt;diff -u -r -N ns-3-dev/src/helper/nqos-wifi-mac-helper.h ns-3-spacing/src/helper/nqos-wifi-mac-helper.h
&lt;br&gt;--- ns-3-dev/src/helper/nqos-wifi-mac-helper.h	2009-07-09 18:14:07.000000000 +0200
&lt;br&gt;+++ ns-3-spacing/src/helper/nqos-wifi-mac-helper.h	2009-07-09 12:35:14.000000000 +0200
&lt;br&gt;@@ -39,37 +39,6 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp; */
&lt;br&gt;&amp;nbsp; &amp;nbsp;static NqosWifiMacHelper Default (void);
&lt;br&gt;&amp;nbsp; &amp;nbsp;/**
&lt;br&gt;- &amp;nbsp; * \param type the type of ns3::WifiMac to create.
&lt;br&gt;- &amp;nbsp; * \param n0 the name of the attribute to set
&lt;br&gt;- &amp;nbsp; * \param v0 the value of the attribute to set
&lt;br&gt;- &amp;nbsp; * \param n1 the name of the attribute to set
&lt;br&gt;- &amp;nbsp; * \param v1 the value of the attribute to set
&lt;br&gt;- &amp;nbsp; * \param n2 the name of the attribute to set
&lt;br&gt;- &amp;nbsp; * \param v2 the value of the attribute to set
&lt;br&gt;- &amp;nbsp; * \param n3 the name of the attribute to set
&lt;br&gt;- &amp;nbsp; * \param v3 the value of the attribute to set
&lt;br&gt;- &amp;nbsp; * \param n4 the name of the attribute to set
&lt;br&gt;- &amp;nbsp; * \param v4 the value of the attribute to set
&lt;br&gt;- &amp;nbsp; * \param n5 the name of the attribute to set
&lt;br&gt;- &amp;nbsp; * \param v5 the value of the attribute to set
&lt;br&gt;- &amp;nbsp; * \param n6 the name of the attribute to set
&lt;br&gt;- &amp;nbsp; * \param v6 the value of the attribute to set
&lt;br&gt;- &amp;nbsp; * \param n7 the name of the attribute to set
&lt;br&gt;- &amp;nbsp; * \param v7 the value of the attribute to set
&lt;br&gt;- &amp;nbsp; *
&lt;br&gt;- &amp;nbsp; * All the attributes specified in this method should exist
&lt;br&gt;- &amp;nbsp; * in the requested mac.
&lt;br&gt;- &amp;nbsp; */
&lt;br&gt;- &amp;nbsp;void SetType (std::string type,
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;std::string n0 = &amp;quot;&amp;quot;, const AttributeValue &amp;v0 = EmptyAttributeValue (),
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;std::string n1 = &amp;quot;&amp;quot;, const AttributeValue &amp;v1 = EmptyAttributeValue (),
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;std::string n2 = &amp;quot;&amp;quot;, const AttributeValue &amp;v2 = EmptyAttributeValue (),
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;std::string n3 = &amp;quot;&amp;quot;, const AttributeValue &amp;v3 = EmptyAttributeValue (),
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;std::string n4 = &amp;quot;&amp;quot;, const AttributeValue &amp;v4 = EmptyAttributeValue (),
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;std::string n5 = &amp;quot;&amp;quot;, const AttributeValue &amp;v5 = EmptyAttributeValue (),
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;std::string n6 = &amp;quot;&amp;quot;, const AttributeValue &amp;v6 = EmptyAttributeValue (),
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;std::string n7 = &amp;quot;&amp;quot;, const AttributeValue &amp;v7 = EmptyAttributeValue ());
&lt;br&gt;- &amp;nbsp;/**
&lt;br&gt;&amp;nbsp; &amp;nbsp; * \param n0 the name of the attribute to set
&lt;br&gt;&amp;nbsp; &amp;nbsp; * \param v0 the value of the attribute to set
&lt;br&gt;&amp;nbsp; &amp;nbsp; * \param n1 the name of the attribute to set
&lt;br&gt;@@ -91,7 +60,6 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp; */
&lt;br&gt;&amp;nbsp; &amp;nbsp;virtual Ptr&amp;lt;WifiMac&amp;gt; Create (void) const;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;- &amp;nbsp;ObjectFactory m_mac;
&lt;br&gt;&amp;nbsp; &amp;nbsp;ObjectFactory m_queue;
&lt;br&gt;&amp;nbsp;};
&lt;br&gt;&amp;nbsp;
&lt;br&gt;diff -u -r -N ns-3-dev/src/helper/qos-wifi-mac-helper.cc ns-3-spacing/src/helper/qos-wifi-mac-helper.cc
&lt;br&gt;--- ns-3-dev/src/helper/qos-wifi-mac-helper.cc	2009-07-09 18:14:07.000000000 +0200
&lt;br&gt;+++ ns-3-spacing/src/helper/qos-wifi-mac-helper.cc	2009-07-09 12:34:19.000000000 +0200
&lt;br&gt;@@ -69,28 +69,6 @@
&lt;br&gt;&amp;nbsp;}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;void
&lt;br&gt;-QosWifiMacHelper::SetType (std::string type,
&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; &amp;nbsp; &amp;nbsp; std::string n0, const AttributeValue &amp;v0,
&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; &amp;nbsp; &amp;nbsp; std::string n1, const AttributeValue &amp;v1,
&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; &amp;nbsp; &amp;nbsp; std::string n2, const AttributeValue &amp;v2,
&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; &amp;nbsp; &amp;nbsp; std::string n3, const AttributeValue &amp;v3,
&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; &amp;nbsp; &amp;nbsp; std::string n4, const AttributeValue &amp;v4,
&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; &amp;nbsp; &amp;nbsp; std::string n5, const AttributeValue &amp;v5,
&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; &amp;nbsp; &amp;nbsp; std::string n6, const AttributeValue &amp;v6,
&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; &amp;nbsp; &amp;nbsp; std::string n7, const AttributeValue &amp;v7)
&lt;br&gt;-{
&lt;br&gt;- &amp;nbsp;m_mac.SetTypeId (type);
&lt;br&gt;- &amp;nbsp;m_mac.Set (n0, v0);
&lt;br&gt;- &amp;nbsp;m_mac.Set (n1, v1);
&lt;br&gt;- &amp;nbsp;m_mac.Set (n2, v2);
&lt;br&gt;- &amp;nbsp;m_mac.Set (n3, v3);
&lt;br&gt;- &amp;nbsp;m_mac.Set (n4, v4);
&lt;br&gt;- &amp;nbsp;m_mac.Set (n5, v5);
&lt;br&gt;- &amp;nbsp;m_mac.Set (n6, v6);
&lt;br&gt;- &amp;nbsp;m_mac.Set (n7, v7);
&lt;br&gt;-}
&lt;br&gt;-
&lt;br&gt;-void
&lt;br&gt;&amp;nbsp;QosWifiMacHelper::SetMsduAggregatorForAc (AccessClass accessClass, std::string type,
&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;std::string n0, const AttributeValue &amp;v0,
&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;std::string n1, const AttributeValue &amp;v1,
&lt;br&gt;diff -u -r -N ns-3-dev/src/helper/qos-wifi-mac-helper.h ns-3-spacing/src/helper/qos-wifi-mac-helper.h
&lt;br&gt;--- ns-3-dev/src/helper/qos-wifi-mac-helper.h	2009-07-09 18:14:07.000000000 +0200
&lt;br&gt;+++ ns-3-spacing/src/helper/qos-wifi-mac-helper.h	2009-07-09 12:34:06.000000000 +0200
&lt;br&gt;@@ -41,37 +41,6 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp; */
&lt;br&gt;&amp;nbsp; &amp;nbsp;static QosWifiMacHelper Default (void);
&lt;br&gt;&amp;nbsp; &amp;nbsp;/**
&lt;br&gt;- &amp;nbsp; * \param type the type of ns3::WifiMac to create.
&lt;br&gt;- &amp;nbsp; * \param n0 the name of the attribute to set
&lt;br&gt;- &amp;nbsp; * \param v0 the value of the attribute to set
&lt;br&gt;- &amp;nbsp; * \param n1 the name of the attribute to set
&lt;br&gt;- &amp;nbsp; * \param v1 the value of the attribute to set
&lt;br&gt;- &amp;nbsp; * \param n2 the name of the attribute to set
&lt;br&gt;- &amp;nbsp; * \param v2 the value of the attribute to set
&lt;br&gt;- &amp;nbsp; * \param n3 the name of the attribute to set
&lt;br&gt;- &amp;nbsp; * \param v3 the value of the attribute to set
&lt;br&gt;- &amp;nbsp; * \param n4 the name of the attribute to set
&lt;br&gt;- &amp;nbsp; * \param v4 the value of the attribute to set
&lt;br&gt;- &amp;nbsp; * \param n5 the name of the attribute to set
&lt;br&gt;- &amp;nbsp; * \param v5 the value of the attribute to set
&lt;br&gt;- &amp;nbsp; * \param n6 the name of the attribute to set
&lt;br&gt;- &amp;nbsp; * \param v6 the value of the attribute to set
&lt;br&gt;- &amp;nbsp; * \param n7 the name of the attribute to set
&lt;br&gt;- &amp;nbsp; * \param v7 the value of the attribute to set
&lt;br&gt;- &amp;nbsp; *
&lt;br&gt;- &amp;nbsp; * All the attributes specified in this method should exist
&lt;br&gt;- &amp;nbsp; * in the requested mac.
&lt;br&gt;- &amp;nbsp; */
&lt;br&gt;- &amp;nbsp;void SetType (std::string type,
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;std::string n0 = &amp;quot;&amp;quot;, const AttributeValue &amp;v0 = EmptyAttributeValue (),
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;std::string n1 = &amp;quot;&amp;quot;, const AttributeValue &amp;v1 = EmptyAttributeValue (),
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;std::string n2 = &amp;quot;&amp;quot;, const AttributeValue &amp;v2 = EmptyAttributeValue (),
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;std::string n3 = &amp;quot;&amp;quot;, const AttributeValue &amp;v3 = EmptyAttributeValue (),
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;std::string n4 = &amp;quot;&amp;quot;, const AttributeValue &amp;v4 = EmptyAttributeValue (),
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;std::string n5 = &amp;quot;&amp;quot;, const AttributeValue &amp;v5 = EmptyAttributeValue (),
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;std::string n6 = &amp;quot;&amp;quot;, const AttributeValue &amp;v6 = EmptyAttributeValue (),
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;std::string n7 = &amp;quot;&amp;quot;, const AttributeValue &amp;v7 = EmptyAttributeValue ());
&lt;br&gt;- &amp;nbsp;/**
&lt;br&gt;&amp;nbsp; &amp;nbsp; * \param accessClass access class for which we are setting aggregator. Possibilities
&lt;br&gt;&amp;nbsp; &amp;nbsp; * &amp;nbsp;are: AC_BK, AC_BE, AC_VI, AC_VO.
&lt;br&gt;&amp;nbsp; &amp;nbsp; * \param type the type of ns3::WifiMac to create.
&lt;br&gt;@@ -117,7 +86,6 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp; */
&lt;br&gt;&amp;nbsp; &amp;nbsp;virtual Ptr&amp;lt;WifiMac&amp;gt; Create (void) const;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;- &amp;nbsp;ObjectFactory m_mac;
&lt;br&gt;&amp;nbsp; &amp;nbsp;std::map&amp;lt;AccessClass, ObjectFactory&amp;gt; m_queues;
&lt;br&gt;&amp;nbsp; &amp;nbsp;std::map&amp;lt;AccessClass, ObjectFactory&amp;gt; m_aggregators;
&lt;br&gt;&amp;nbsp;};
&lt;br&gt;diff -u -r -N ns-3-dev/src/helper/wifi-helper.cc ns-3-spacing/src/helper/wifi-helper.cc
&lt;br&gt;--- ns-3-dev/src/helper/wifi-helper.cc	2009-07-09 18:14:07.000000000 +0200
&lt;br&gt;+++ ns-3-spacing/src/helper/wifi-helper.cc	2009-07-09 18:03:54.000000000 +0200
&lt;br&gt;@@ -152,4 +152,54 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp;LogComponentEnable (&amp;quot;YansWifiPhy&amp;quot;, LOG_LEVEL_ALL);
&lt;br&gt;&amp;nbsp;}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;+void
&lt;br&gt;+WifiMacHelper::SetType (std::string type,
&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; &amp;nbsp; &amp;nbsp; std::string n0, const AttributeValue &amp;v0,
&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; &amp;nbsp; &amp;nbsp; std::string n1, const AttributeValue &amp;v1,
&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; &amp;nbsp; &amp;nbsp; std::string n2, const AttributeValue &amp;v2,
&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; &amp;nbsp; &amp;nbsp; std::string n3, const AttributeValue &amp;v3,
&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; &amp;nbsp; &amp;nbsp; std::string n4, const AttributeValue &amp;v4,
&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; &amp;nbsp; &amp;nbsp; std::string n5, const AttributeValue &amp;v5,
&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; &amp;nbsp; &amp;nbsp; std::string n6, const AttributeValue &amp;v6,
&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; &amp;nbsp; &amp;nbsp; std::string n7, const AttributeValue &amp;v7)
&lt;br&gt;+{
&lt;br&gt;+ &amp;nbsp;m_mac.SetTypeId (type);
&lt;br&gt;+ &amp;nbsp;m_mac.Set (n0, v0);
&lt;br&gt;+ &amp;nbsp;m_mac.Set (n1, v1);
&lt;br&gt;+ &amp;nbsp;m_mac.Set (n2, v2);
&lt;br&gt;+ &amp;nbsp;m_mac.Set (n3, v3);
&lt;br&gt;+ &amp;nbsp;m_mac.Set (n4, v4);
&lt;br&gt;+ &amp;nbsp;m_mac.Set (n5, v5);
&lt;br&gt;+ &amp;nbsp;m_mac.Set (n6, v6);
&lt;br&gt;+ &amp;nbsp;m_mac.Set (n7, v7);
&lt;br&gt;+}
&lt;br&gt;+
&lt;br&gt;+void 
&lt;br&gt;+WifiMacHelper::Configure80211_10MhzParameters (std::string type, Ssid ssid) 
&lt;br&gt;+{
&lt;br&gt;+ &amp;nbsp;Time MaxPropagationDelay = Seconds (1000.0 / 300000000.0);
&lt;br&gt;+ &amp;nbsp;SetType (type,
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;&amp;quot;Ssid&amp;quot;, SsidValue (ssid),
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;&amp;quot;Sifs&amp;quot;, TimeValue (MicroSeconds(32)),
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;&amp;quot;Slot&amp;quot;, TimeValue (MicroSeconds(13)),
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;&amp;quot;EifsNoDifs&amp;quot;, TimeValue (MicroSeconds(32+88)),
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;&amp;quot;Pifs&amp;quot;, TimeValue (MicroSeconds(32+13)),
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;&amp;quot;CtsTimeout&amp;quot;, TimeValue (MicroSeconds(32+88+13+MaxPropagationDelay.GetMicroSeconds ()*2)),
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;&amp;quot;AckTimeout&amp;quot;, TimeValue (MicroSeconds(32+88+13+MaxPropagationDelay.GetMicroSeconds ()*2)));
&lt;br&gt;+}
&lt;br&gt;+
&lt;br&gt;+void 
&lt;br&gt;+WifiMacHelper::Configure80211_5MhzParameters (std::string type, Ssid ssid) 
&lt;br&gt;+{
&lt;br&gt;+ &amp;nbsp;Time MaxPropagationDelay = Seconds (1000.0 / 300000000.0);
&lt;br&gt;+ &amp;nbsp;SetType (type,
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;&amp;quot;Ssid&amp;quot;, SsidValue (ssid),
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;&amp;quot;Sifs&amp;quot;, TimeValue (MicroSeconds(64)),
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;&amp;quot;Slot&amp;quot;, TimeValue (MicroSeconds(21)),
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;&amp;quot;EifsNoDifs&amp;quot;, TimeValue (MicroSeconds(64+176)),
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;&amp;quot;Pifs&amp;quot;, TimeValue (MicroSeconds(64+21)),
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;&amp;quot;CtsTimeout&amp;quot;, TimeValue (MicroSeconds(64+176+21+MaxPropagationDelay.GetMicroSeconds ()*2)),
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;&amp;quot;AckTimeout&amp;quot;, TimeValue (MicroSeconds(64+176+21+MaxPropagationDelay.GetMicroSeconds ()*2)));
&lt;br&gt;+}
&lt;br&gt;+
&lt;br&gt;&amp;nbsp;} // namespace ns3
&lt;br&gt;diff -u -r -N ns-3-dev/src/helper/wifi-helper.h ns-3-spacing/src/helper/wifi-helper.h
&lt;br&gt;--- ns-3-dev/src/helper/wifi-helper.h	2009-07-09 18:14:07.000000000 +0200
&lt;br&gt;+++ ns-3-spacing/src/helper/wifi-helper.h	2009-07-09 12:33:10.000000000 +0200
&lt;br&gt;@@ -27,6 +27,7 @@
&lt;br&gt;&amp;nbsp;#include &amp;quot;ns3/object-factory.h&amp;quot;
&lt;br&gt;&amp;nbsp;#include &amp;quot;ns3/node-container.h&amp;quot;
&lt;br&gt;&amp;nbsp;#include &amp;quot;ns3/net-device-container.h&amp;quot;
&lt;br&gt;+#include &amp;quot;ns3/wifi-mac.h&amp;quot;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;namespace ns3 {
&lt;br&gt;&amp;nbsp;
&lt;br&gt;@@ -73,6 +74,43 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp; * to create MAC objects from ns3::WifiHelper::Install.
&lt;br&gt;&amp;nbsp; &amp;nbsp; */
&lt;br&gt;&amp;nbsp; &amp;nbsp;virtual Ptr&amp;lt;WifiMac&amp;gt; Create (void) const = 0;
&lt;br&gt;+ &amp;nbsp;/**
&lt;br&gt;+ &amp;nbsp; * \param type the type of ns3::WifiMac to create.
&lt;br&gt;+ &amp;nbsp; * \param n0 the name of the attribute to set
&lt;br&gt;+ &amp;nbsp; * \param v0 the value of the attribute to set
&lt;br&gt;+ &amp;nbsp; * \param n1 the name of the attribute to set
&lt;br&gt;+ &amp;nbsp; * \param v1 the value of the attribute to set
&lt;br&gt;+ &amp;nbsp; * \param n2 the name of the attribute to set
&lt;br&gt;+ &amp;nbsp; * \param v2 the value of the attribute to set
&lt;br&gt;+ &amp;nbsp; * \param n3 the name of the attribute to set
&lt;br&gt;+ &amp;nbsp; * \param v3 the value of the attribute to set
&lt;br&gt;+ &amp;nbsp; * \param n4 the name of the attribute to set
&lt;br&gt;+ &amp;nbsp; * \param v4 the value of the attribute to set
&lt;br&gt;+ &amp;nbsp; * \param n5 the name of the attribute to set
&lt;br&gt;+ &amp;nbsp; * \param v5 the value of the attribute to set
&lt;br&gt;+ &amp;nbsp; * \param n6 the name of the attribute to set
&lt;br&gt;+ &amp;nbsp; * \param v6 the value of the attribute to set
&lt;br&gt;+ &amp;nbsp; * \param n7 the name of the attribute to set
&lt;br&gt;+ &amp;nbsp; * \param v7 the value of the attribute to set
&lt;br&gt;+ &amp;nbsp; *
&lt;br&gt;+ &amp;nbsp; * All the attributes specified in this method should exist
&lt;br&gt;+ &amp;nbsp; * in the requested mac.
&lt;br&gt;+ &amp;nbsp; */
&lt;br&gt;+ &amp;nbsp;void SetType (std::string type,
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;std::string n0 = &amp;quot;&amp;quot;, const AttributeValue &amp;v0 = EmptyAttributeValue (),
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;std::string n1 = &amp;quot;&amp;quot;, const AttributeValue &amp;v1 = EmptyAttributeValue (),
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;std::string n2 = &amp;quot;&amp;quot;, const AttributeValue &amp;v2 = EmptyAttributeValue (),
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;std::string n3 = &amp;quot;&amp;quot;, const AttributeValue &amp;v3 = EmptyAttributeValue (),
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;std::string n4 = &amp;quot;&amp;quot;, const AttributeValue &amp;v4 = EmptyAttributeValue (),
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;std::string n5 = &amp;quot;&amp;quot;, const AttributeValue &amp;v5 = EmptyAttributeValue (),
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;std::string n6 = &amp;quot;&amp;quot;, const AttributeValue &amp;v6 = EmptyAttributeValue (),
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;std::string n7 = &amp;quot;&amp;quot;, const AttributeValue &amp;v7 = EmptyAttributeValue ());
&lt;br&gt;+ &amp;nbsp;/// Configure MAC parameters to 10 MHz &amp;quot;half-clocked&amp;quot; channels, see Table 17-15 of IEEE 802.11-2007 std
&lt;br&gt;+ &amp;nbsp;void Configure80211_10MhzParameters (std::string type, Ssid ssid);
&lt;br&gt;+ &amp;nbsp;/// Configure MAC parameters to 5 MHz &amp;quot;quarter-clocked&amp;quot; channels, see Table 17-15 of IEEE 802.11-2007 std
&lt;br&gt;+ &amp;nbsp;void Configure80211_5MhzParameters (std::string type, Ssid ssid);
&lt;br&gt;+protected:
&lt;br&gt;+ &amp;nbsp;ObjectFactory m_mac;
&lt;br&gt;&amp;nbsp;};
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;/**
&lt;br&gt;Los ficheros binarios ns-3-dev/wutils.pyc y ns-3-spacing/wutils.pyc son distintos
&lt;br&gt;&lt;/tt&gt;&lt;hr align=&quot;left&quot; width=&quot;300&quot; /&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/802.11-10Mhz-Channel-tp23775848p24414503.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-24413224</id>
	<title>HOW TO CONVERT NS2 TRACEFILES TO TRACE GRAPH FORMAT</title>
	<published>2009-07-09T09:17:33Z</published>
	<updated>2009-07-09T09:17:33Z</updated>
	<author>
		<name>Oladapo Oluwadiya</name>
	</author>
	<content type="html">&lt;br&gt;Hello,
&lt;br&gt;&lt;br&gt;I m trying to generate a graph of a mobile ip simulation i ran in each i would love to plot for example delay against packet number or simulation time and also packet loss against simulation time ...etc...
&lt;br&gt;what is the easiest NS2 analysing tool i can use for this? below is part of the trace file..
&lt;br&gt;regards,
&lt;br&gt;&lt;br&gt;n -t 50.000000 -s 2 -x 591.256560 -y 199.373307 -U -3.343610 -V -0.434985 -T 66.333489
&lt;br&gt;n -t 51.000000 -s 1 -x 257.046298 -y 345.357732 -U -1.967869 -V -14.778819 -T 17.897386
&lt;br&gt;+ -t 127.936679222 -s 0 -d -1 -p cbr -e 512 -c 2 -a 0 -i 0 -k AGT 
&lt;br&gt;- -t 127.936679222 -s 0 -d -1 -p cbr -e 512 -c 2 -a 0 -i 0 -k AGT
&lt;br&gt;h -t 127.936679222 -s 0 -d -1 -p cbr -e 512 -c 2 -a 0 -i 0 -k AGT
&lt;br&gt;r -t 128.006847881 -s 2 -d 2 -p cbr -e 512 -c 2 -a 0 -i 0 -k AGT
&lt;br&gt;+ -t 131.663684440 -s 0 -d -1 -p cbr -e 512 -c 2 -a 0 -i 4 -k AGT 
&lt;br&gt;- -t 131.663684440 -s 0 -d -1 -p cbr -e 512 -c 2 -a 0 -i 4 -k AGT
&lt;br&gt;h -t 131.663684440 -s 0 -d -1 -p cbr -e 512 -c 2 -a 0 -i 4 -k AGT
&lt;br&gt;r -t 131.675524586 -s 2 -d 2 -p cbr -e 512 -c 2 -a 0 -i 4 -k AGT
&lt;br&gt;+ -t 133.945590635 -s 0 -d -1 -p cbr -e 512 -c 2 -a 0 -i 5 -k AGT 
&lt;br&gt;- -t 133.945590635 -s 0 -d -1 -p cbr -e 512 -c 2 -a 0 -i 5 -k AGT
&lt;br&gt;h -t 133.945590635 -s 0 -d -1 -p cbr -e 512 -c 2 -a 0 -i 5 -k AGT
&lt;br&gt;r -t 133.958070782 -s 2 -d 2 -p cbr -e 512 -c 2 -a 0 -i 5 -k AGT
&lt;br&gt;+ -t 137.188115528 -s 0 -d -1 -p cbr -e 512 -c 2 -a 0 -i 6 -k AGT 
&lt;br&gt;- -t 137.188115528 -s 0 -d -1 -p cbr -e 512 -c 2 -a 0 -i 6 -k AGT
&lt;br&gt;h -t 137.188115528 -s 0 -d -1 -p cbr -e 512 -c 2 -a 0 -i 6 -k AGT
&lt;br&gt;r -t 137.199595674 -s 2 -d 2 -p cbr -e 512 -c 2 -a 0 -i 6 -k AGT
&lt;br&gt;+ -t 139.503813140 -s 0 -d -1 -p cbr -e 512 -c 2 -a 0 -i 7 -k AGT 
&lt;br&gt;- -t 139.503813140 -s 0 -d -1 -p cbr -e 512 -c 2 -a 0 -i 7 -k AGT
&lt;br&gt;h -t 139.503813140 -s 0 -d -1 -p cbr -e 512 -c 2 -a 0 -i 7 -k AGT
&lt;br&gt;r -t 139.516193286 -s 2 -d 2 -p cbr -e 512 -c 2 -a 0 -i 7 -k AGT
&lt;br&gt;+ -t 142.916715894 -s 0 -d -1 -p cbr -e 512 -c 2 -a 0 -i 8 -k AGT 
&lt;br&gt;- -t 142.916715894 -s 0 -d -1 -p cbr -e 512 -c 2 -a 0 -i 8 -k AGT
&lt;br&gt;h -t 142.916715894 -s 0 -d -1 -p cbr -e 512 -c 2 -a 0 -i 8 -k AGT
&lt;br&gt;r -t 142.928796040 -s 2 -d 2 -p cbr -e 512 -c 2 -a 0 -i 8 -k AGT
&lt;br&gt;+ -t 146.621508996 -s 0 -d -1 -p cbr -e 512 -c 2 -a 0 -i 9 -k AGT 
&lt;br&gt;- -t 146.621508996 -s 0 -d -1 -p cbr -e 512 -c 2 -a 0 -i 9 -k AGT
&lt;br&gt;h -t 146.621508996 -s 0 -d -1 -p cbr -e 512 -c 2 -a 0 -i 9 -k AGT
&lt;br&gt;r -t 146.633649142 -s 2 -d 2 -p cbr -e 512 -c 2 -a 0 -i 9 -k AGT
&lt;br&gt;+ -t 150.000000000 -s 1 -d -1 -p tcp -e 40 -c 2 -a 0 -i 10 -k AGT 
&lt;br&gt;- -t 150.000000000 -s 1 -d -1 -p tcp -e 40 -c 2 -a 0 -i 10 -k AGT
&lt;br&gt;h -t 150.000000000 -s 1 -d -1 -p tcp -e 40 -c 2 -a 0 -i 10 -k AGT
&lt;br&gt;&lt;br&gt;&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/HOW-TO-CONVERT-NS2-TRACEFILES-TO-TRACE-GRAPH-FORMAT-tp24413224p24413224.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-24412076</id>
	<title>New Agent</title>
	<published>2009-07-09T08:10:09Z</published>
	<updated>2009-07-09T08:10:09Z</updated>
	<author>
		<name>Τσιλιγγίρης Γεώργιος</name>
	</author>
	<content type="html">&lt;br&gt;&lt;br /&gt;Hi to all.
&lt;br&gt;&lt;br&gt;I am trying to implement a agent. I wrote the C++ code and recompiled with
&lt;br&gt;no errors but when I try to attach the agent to a node I
&lt;br&gt;get this error:
&lt;br&gt;&lt;br&gt;invalid command name &amp;quot;Agent/IMS&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; while executing
&lt;br&gt;&amp;quot;Agent/IMS create _o86 &amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; invoked from within
&lt;br&gt;&amp;quot;catch &amp;quot;$className create $o $args&amp;quot; msg&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; invoked from within
&lt;br&gt;&amp;quot;if [catch &amp;quot;$className create $o $args&amp;quot; msg] {
&lt;br&gt;if [string match &amp;quot;__FAILED_SHADOW_OBJECT_&amp;quot; $msg] {
&lt;br&gt;delete $o
&lt;br&gt;return &amp;quot;&amp;quot;
&lt;br&gt;}
&lt;br&gt;global errorInfo
&lt;br&gt;error &amp;quot;class $...&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; (procedure &amp;quot;new&amp;quot; line 3)
&lt;br&gt;&amp;nbsp; &amp;nbsp; invoked from within
&lt;br&gt;&amp;quot;new Agent/IMS&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; invoked from within
&lt;br&gt;&amp;quot;set ims [new Agent/IMS]&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; (file &amp;quot;ping.tcl&amp;quot; line 41)
&lt;br&gt;&lt;br&gt;&lt;br&gt;I have attached the source code files. Can anyone help? What modifications
&lt;br&gt;do I need to make to already existing files?
&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/New-Agent-tp24412076p24412076.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-24410812</id>
	<title>How to execute ad-hockey?</title>
	<published>2009-07-09T07:04:46Z</published>
	<updated>2009-07-09T07:04:46Z</updated>
	<author>
		<name>Nadilma Nunes</name>
	</author>
	<content type="html">&lt;br&gt;Anybody knows how to execute with ad-hockey?
&lt;br&gt;I know that nam, for to execute I write in prompt:
&lt;br&gt;*Nadilma@nadilma-pc/ nam file_name.nam*
&lt;br&gt;But how to use ad-hockey? Anybody help me?
&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-to-execute-ad-hockey--tp24410812p24410812.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-24406256</id>
	<title>Canceling Events vs. Handling Events</title>
	<published>2009-07-09T01:31:30Z</published>
	<updated>2009-07-09T01:31:30Z</updated>
	<author>
		<name>Damian Philipp-2</name>
	</author>
	<content type="html">&lt;br&gt;Hello,
&lt;br&gt;&lt;br&gt;I am developing some protocol extensions utilizing a keep-alive (recieve a packet every n seconds, if there was no packet for n+x seconds consider the sender dead).
&lt;br&gt;&lt;br&gt;When designing an implementation, I thought about the scheduler: I read somewhere in the manual, that inserting and deleting events may be costly. So now I am faced with two options:
&lt;br&gt;&lt;br&gt;- Have a single periodic timer for each node that when fired performs all pending actions.
&lt;br&gt;- Have a separate timer for everything that needs to be timer-handled and have a receive-event of a keep-alive-packet cancel and reschedule the timer to the appropriate timeout.
&lt;br&gt;&lt;br&gt;Both are okay with respect to my protocol. I am expecting the keep-alive timeout to be reached almost never, so the timer handlers will hardly ever be run (second case) or have anything to do but calculate what actions actually are pending (first case).
&lt;br&gt;&lt;br&gt;Which would make my simulation run faster?
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;Damian Philipp
&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/Canceling-Events-vs.-Handling-Events-tp24406256p24406256.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-24406121</id>
	<title>Re: ns 2 agents</title>
	<published>2009-07-09T01:20:25Z</published>
	<updated>2009-07-09T01:20:25Z</updated>
	<author>
		<name>Arturo Servin-2</name>
	</author>
	<content type="html">&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; I did play with the headers to test my own protocol. As far as I know &amp;nbsp;
&lt;br&gt;NS you should be able to modify your own header information to add &amp;nbsp;
&lt;br&gt;what you need. I am not enough savy to explain how I did it but I &amp;nbsp;
&lt;br&gt;found this manual really helpful to understand how NS handles the &amp;nbsp;
&lt;br&gt;headers. It also contains some examples that you can use as starting &amp;nbsp;
&lt;br&gt;point.
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://www.isi.edu/nsnam/ns/ns-documentation.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.isi.edu/nsnam/ns/ns-documentation.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;Hope it helps,
&lt;br&gt;-as
&lt;br&gt;&lt;br&gt;&lt;br&gt;On 9 Jul 2009, at 08:18, Τσιλιγγίρης Γεώργιος wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Hi to all,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I am trying to simulate a simple call flow in ns 2. Something like the
&lt;br&gt;&amp;gt; one attached. My idea is to create a new packet header with one int
&lt;br&gt;&amp;gt; value and one agent for each node. Each message in the call flow is
&lt;br&gt;&amp;gt; given an ID (1,2,3...). The first agent sends the first packet with
&lt;br&gt;&amp;gt; the ID=1 to the second node. The agent on the second node receives the
&lt;br&gt;&amp;gt; packet and sends one packet back (ID=2) and one packet to the third
&lt;br&gt;&amp;gt; node (ID=3). The procedure continues in the same way.
&lt;br&gt;&amp;gt; I created the packet header successfully but i have some problems with
&lt;br&gt;&amp;gt; the agents. Has anyone done anything similar? Can anyone help me?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; George.
&lt;/div&gt;&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/ns-2-agents-tp24405393p24406121.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-24406079</id>
	<title>Re: open issues for ns-3 testing</title>
	<published>2009-07-09T01:19:37Z</published>
	<updated>2009-07-09T01:19:37Z</updated>
	<author>
		<name>Pavel Boyko</name>
	</author>
	<content type="html">&amp;nbsp; Hi, 
&lt;br&gt;&lt;br&gt;On Thursday 09 July 2009 09:15:06 am Tom Henderson wrote:
&lt;br&gt;&amp;gt; I tried to collect and summarize below what I understand to be many of
&lt;br&gt;&amp;gt; the remaining issues, and maybe Craig and others can respond or add to
&lt;br&gt;&amp;gt; the below list, and propose their requirements or goals.
&lt;br&gt;&lt;br&gt;&amp;nbsp; Let me add few words. 
&lt;br&gt;&lt;br&gt;&amp;nbsp; First of all, I believe that the model validation is a research activity 
&lt;br&gt;which can't be automated or restricted to use some build-in &amp;quot;Validation 
&lt;br&gt;toolkit&amp;quot;. IMHO the best thing we can do is to encourage a companion &amp;quot;The NS-3 
&lt;br&gt;Foo Model Validation&amp;quot; paper(s) for every foo module. The recent 802.11b PHY 
&lt;br&gt;model is an excellent example of this, see &amp;nbsp;
&lt;br&gt;&lt;a href=&quot;http://www.nsnam.org/~pei/80211b.pdf&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.nsnam.org/~pei/80211b.pdf&lt;/a&gt;&amp;nbsp;M.b. we should create and maintain a wiki 
&lt;br&gt;page listing all available models together with references to their validation 
&lt;br&gt;reports (see e.g. &lt;a href=&quot;http://www.scalable-networks.com/pdf/QualNet_Library.pdf&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.scalable-networks.com/pdf/QualNet_Library.pdf&lt;/a&gt;&amp;nbsp;for 
&lt;br&gt;a nice table of all available models). When model is validated, usual 
&lt;br&gt;regression tests (both unit and functional) can be used to assert that it is 
&lt;br&gt;not broken. To summarize -- I propose do not create any kind of validation 
&lt;br&gt;toolkit, rather than encourage and collect references to the validation 
&lt;br&gt;efforts. &amp;nbsp;
&lt;br&gt;&lt;br&gt;&amp;gt; we need a better way for generating, saving, and
&lt;br&gt;&amp;gt; comparing input and output test vectors that are more specific than
&lt;br&gt;&amp;gt; packet trace dumps.
&lt;br&gt;&lt;br&gt;&amp;nbsp; Agree.
&lt;br&gt;&lt;br&gt;&amp;gt; 2) Why not just borrow one of the existing GPLed testing frameworks and
&lt;br&gt;&amp;gt; reuse it here? &amp;nbsp;Which ones have we looked at for comparison?
&lt;br&gt;&lt;br&gt;&amp;nbsp; Existing test.h + waf --check unit test facility just fits my needs and is 
&lt;br&gt;not worse than boost::test + cmake/ctest . 
&lt;br&gt;&lt;br&gt;&amp;gt; 7) Where do more complicated test and validation programs (i.e. the
&lt;br&gt;&amp;gt; actual tests) reside? &amp;nbsp;src/test?
&lt;br&gt;&lt;br&gt;&amp;nbsp; Why not?
&lt;br&gt;&lt;br&gt;&amp;gt; 9) What output do people want to see, typically (Gustavo had made a
&lt;br&gt;&amp;gt; comment about minimal output for successful tests and verbose outputs
&lt;br&gt;&amp;gt; for failed tests)?
&lt;br&gt;&lt;br&gt;&amp;nbsp; Personally I'd like to see (finally) usual green-red html table like 
&lt;br&gt;&lt;a href=&quot;http://www.cdash.org/CDash/index.php?project=Slicer3#Coverage&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.cdash.org/CDash/index.php?project=Slicer3#Coverage&lt;/a&gt;&amp;nbsp;or 
&lt;br&gt;&lt;a href=&quot;http://buildbot.net/trac/wiki/ScreenShots&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://buildbot.net/trac/wiki/ScreenShots&lt;/a&gt;&amp;nbsp;with optional cpu time / memory 
&lt;br&gt;usage / stdout / stderr available by click. &amp;nbsp;
&lt;br&gt;&lt;br&gt;&amp;gt; 10) Can we avoid baking in a GSL dependency in case we want to rewrite
&lt;br&gt;&amp;gt; histogram or chi-squared routines ourselves in the future?
&lt;br&gt;&lt;br&gt;&amp;nbsp; Why not interface with dedicated statistical systems like R 
&lt;br&gt;(&lt;a href=&quot;http://www.rproject.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.rproject.org/&lt;/a&gt;) for data analysis? I don't believe that we really 
&lt;br&gt;need to create one more homegrown histogram implementation, to say nothing 
&lt;br&gt;about hypothesis testing.
&lt;br&gt;&lt;br&gt;&amp;nbsp; Regards,
&lt;br&gt;&amp;nbsp; Pavel Boyko, IITP
&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/open-issues-for-ns-3-testing-tp24404136p24406079.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-24405608</id>
	<title>creating new agent</title>
	<published>2009-07-09T00:41:48Z</published>
	<updated>2009-07-09T00:41:48Z</updated>
	<author>
		<name>hadavi</name>
	</author>
	<content type="html">hi every body:
&lt;br&gt;I want to write a new routing algorithm in ns2, and need to send 2 different packet to collect some info for building routing tables. so I have a question:
&lt;br&gt;&amp;quot; can I send these 2 different packets with 2 different timers by creating only one agent or I have to create 2 different agent for each of them.
&lt;br&gt;&lt;br&gt;thanks.
&lt;br&gt;zeinab&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/creating-new-agent-tp24405608p24405608.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-24405393</id>
	<title>ns 2 agents</title>
	<published>2009-07-09T00:18:36Z</published>
	<updated>2009-07-09T00:18:36Z</updated>
	<author>
		<name>Τσιλιγγίρης Γεώργιος</name>
	</author>
	<content type="html">&lt;br&gt;&lt;br /&gt;Hi to all,
&lt;br&gt;&lt;br&gt;I am trying to simulate a simple call flow in ns 2. Something like the
&lt;br&gt;one attached. My idea is to create a new packet header with one int
&lt;br&gt;value and one agent for each node. Each message in the call flow is
&lt;br&gt;given an ID (1,2,3...). The first agent sends the first packet with
&lt;br&gt;the ID=1 to the second node. The agent on the second node receives the
&lt;br&gt;packet and sends one packet back (ID=2) and one packet to the third
&lt;br&gt;node (ID=3). The procedure continues in the same way.
&lt;br&gt;I created the packet header successfully but i have some problems with
&lt;br&gt;the agents. Has anyone done anything similar? Can anyone help me?
&lt;br&gt;&lt;br&gt;George.
&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-2-agents-tp24405393p24405393.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-24404136</id>
	<title>open issues for ns-3 testing</title>
	<published>2009-07-08T22:15:06Z</published>
	<updated>2009-07-08T22:15:06Z</updated>
	<author>
		<name>Tom Henderson-2</name>
	</author>
	<content type="html">We last left off the testing discussion [1] prior to ns-3.5 release, 
&lt;br&gt;when we discussed the relative merits of running the tests from within 
&lt;br&gt;or outside of waf. &amp;nbsp;However, there are still several issues that need to 
&lt;br&gt;be addressed before we could move towards a merge of a new testing 
&lt;br&gt;framework.
&lt;br&gt;&lt;br&gt;I tried to collect and summarize below what I understand to be many of 
&lt;br&gt;the remaining issues, and maybe Craig and others can respond or add to 
&lt;br&gt;the below list, and propose their requirements or goals.
&lt;br&gt;&lt;br&gt;Here is some prototype code that Craig has been putting together (it is 
&lt;br&gt;in separate repos):
&lt;br&gt;&lt;a href=&quot;http://code.nsnam.org/craigdo/ns-3-test-patches/file/e6a504a6568e/test.patch&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://code.nsnam.org/craigdo/ns-3-test-patches/file/e6a504a6568e/test.patch&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://code.nsnam.org/craigdo/ns-3-valver/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://code.nsnam.org/craigdo/ns-3-valver/&lt;/a&gt;&lt;br&gt;&lt;br&gt;To recap, we already have a unit test framework, and a regression 
&lt;br&gt;testing framework for trace-based comparison of our examples. &amp;nbsp;We don't 
&lt;br&gt;have a good place yet for validation and verification tests, we don't 
&lt;br&gt;have good examples to point to for how to write more complicated tests 
&lt;br&gt;(including stochastic tests), and further, we would like to not lean too 
&lt;br&gt;heavily on simply comparing pcap trace files for regression or 
&lt;br&gt;validation purposes, so we need a better way for generating, saving, and 
&lt;br&gt;comparing input and output test vectors that are more specific than 
&lt;br&gt;packet trace dumps.
&lt;br&gt;&lt;br&gt;Here are some lingering issues.
&lt;br&gt;&lt;br&gt;1) what is the overall plan for where this test code lives, and how does 
&lt;br&gt;it relate to existing test.h and test.cc? &amp;nbsp;Should existing src/test be 
&lt;br&gt;moved to src/core?
&lt;br&gt;&lt;br&gt;2) Why not just borrow one of the existing GPLed testing frameworks and 
&lt;br&gt;reuse it here? &amp;nbsp;Which ones have we looked at for comparison?
&lt;br&gt;&lt;br&gt;3) How are non-trivial output test vectors (they could be trace files, 
&lt;br&gt;long sequences of numbers or timestamps, etc.) going to be stored?
&lt;br&gt;&lt;br&gt;4) What is the story for waf integration, if test.py is retained? &amp;nbsp;In 
&lt;br&gt;particular, what kind of front end could waf provide for test.py script? 
&lt;br&gt;&amp;nbsp; In a previous post, I suggested that basic modes of test.py could 
&lt;br&gt;still be invoked by ./waf &amp;nbsp;--check, ./waf --test, ./waf --regression 
&lt;br&gt;(etc.). Are the issues of accessing the configuration cache and of 
&lt;br&gt;running programs through waf (or not) settled?
&lt;br&gt;&lt;br&gt;5) Related to this, what is the expected API and granularity for running 
&lt;br&gt;these tests? &amp;nbsp;Do we have different levels of testing that have simple 
&lt;br&gt;APIs (such as the above sequence of waf commands)?
&lt;br&gt;&lt;br&gt;6) Can we review some really simple examples (e.g. in samples/ 
&lt;br&gt;directory) showing different examples of what different types of tests 
&lt;br&gt;would look like? &amp;nbsp;What about a TCP model verification example?
&lt;br&gt;&lt;br&gt;7) Where do more complicated test and validation programs (i.e. the 
&lt;br&gt;actual tests) reside? &amp;nbsp;src/test?
&lt;br&gt;&lt;br&gt;8) What about Mathieu's comment recently about having a mode that dumps 
&lt;br&gt;a lot of trace locally (without downloading saved regression traces) for 
&lt;br&gt;more extensive regression testing before a checkin?
&lt;br&gt;&lt;br&gt;9) What output do people want to see, typically (Gustavo had made a 
&lt;br&gt;comment about minimal output for successful tests and verbose outputs 
&lt;br&gt;for failed tests)?
&lt;br&gt;&lt;br&gt;10) Can we avoid baking in a GSL dependency in case we want to rewrite 
&lt;br&gt;histogram or chi-squared routines ourselves in the future?
&lt;br&gt;&lt;br&gt;11) Mathieu remarked early on that it would be nice to factor out the 
&lt;br&gt;chi-squared testing tools from within the random number tests, so they 
&lt;br&gt;could be used elsewhere.
&lt;br&gt;&lt;br&gt;12) How would lcov, nightly builds (buildbots, others) etc. be plumbed in?
&lt;br&gt;&lt;br&gt;- Tom
&lt;br&gt;&lt;br&gt;[1] &lt;a href=&quot;http://mailman.isi.edu/pipermail/ns-developers/2009-May/005884.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mailman.isi.edu/pipermail/ns-developers/2009-May/005884.html&lt;/a&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/open-issues-for-ns-3-testing-tp24404136p24404136.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-24394367</id>
	<title>Re: How to get the power a node receives from a BS</title>
	<published>2009-07-08T09:25:40Z</published>
	<updated>2009-07-08T09:25:40Z</updated>
	<author>
		<name>M_A</name>
	</author>
	<content type="html">Hi
&lt;br&gt;&lt;br&gt;i have the same problem i want to get the power of the signal received by mobile nodes... 
&lt;br&gt;Can you please help me...
&lt;br&gt;&lt;br&gt;Regards
&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;martini.spy wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;Hi all!
&lt;br&gt;Please could anyone help me with this? It is really important.
&lt;br&gt;How can I get the power of the signal a mobile node receives from a base station as it moves in the topology??
&lt;br&gt;Is there a c++ function I can call from my code?
&lt;br&gt;Thank you very much in advance!
&lt;br&gt;Spyros
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;___________________________________________________________ 
&lt;br&gt;Χρησιμοποιείτε Yahoo!; 
&lt;br&gt;Βαρεθήκατε τα ενοχλητικά μηνύματα (spam); Το Yahoo! Mail 
&lt;br&gt;διαθέτει την καλύτερη δυνατή προστασία κατά των ενοχλητικών 
&lt;br&gt;μηνυμάτων &lt;a href=&quot;http://login.yahoo.com/config/mail?.intl=gr&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://login.yahoo.com/config/mail?.intl=gr&lt;/a&gt;&amp;nbsp;
&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/How-to-get-the-power-a-node-receives-from-a-BS-tp21869512p24394367.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-24393069</id>
	<title>Re: R:   Phy/WirelessPhy set Pt_ ?</title>
	<published>2009-07-08T08:14:29Z</published>
	<updated>2009-07-08T08:14:29Z</updated>
	<author>
		<name>M_A</name>
	</author>
	<content type="html">hello i am getting the same problem even with &amp;quot;array&amp;quot;
&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;Marco Fiore wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;Hi,
&lt;br&gt;&lt;br&gt;&amp;quot;Array&amp;quot; should be &amp;quot;array&amp;quot;...
&lt;br&gt;&lt;br&gt;bye,
&lt;br&gt;&lt;br&gt;Marco
&lt;br&gt;&lt;br&gt;&amp;gt;----Messaggio 
&lt;br&gt;originale----
&lt;br&gt;&amp;gt;Da: leandro_villas@dc.ufscar.br
&lt;br&gt;&amp;gt;Data: 26-nov-2006 5.42 
&lt;br&gt;PM
&lt;br&gt;&amp;gt;A: &amp;lt;ns-users@ISI.EDU&amp;gt;
&lt;br&gt;&amp;gt;Ogg: [ns] &amp;nbsp;Phy/WirelessPhy set Pt_ ?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;I 
&lt;br&gt;am attemped to use the code line [[lindex [$node_ (0) Array get &amp;nbsp;
&lt;br&gt;&amp;gt;netif_] 1] set Pt_ 0,5] and you giving the error ?invalid command 
&lt;br&gt;name &amp;nbsp;
&lt;br&gt;&amp;gt;?0,5??. somebody knows to say me why?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&lt;a href=&quot;http://decision.csl&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://decision.csl&lt;/a&gt;.
&lt;br&gt;uiuc.edu/~kawadia/SOFTWARE/ns2-txpower-describe.txt
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;Thank you!
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;----------------------------------------------------------------
&lt;br&gt;&amp;gt;This 
&lt;br&gt;message was sent using IMP, the Internet Messaging Program.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&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/R%3A---Phy-WirelessPhy-set-Pt_---tp7568798p24393069.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-24392882</id>
	<title>Cant read file .../mobility/scene/cbr-3-test...no such directory while executing.</title>
	<published>2009-07-08T07:40:28Z</published>
	<updated>2009-07-08T07:40:28Z</updated>
	<author>
		<name>Oladapo Oluwadiya</name>
	</author>
	<content type="html">&lt;br&gt;hello,
&lt;br&gt;i tried running a simulation of 
&lt;br&gt;simple multihop wireless scenario consisting of 3 mobilenodes here. However the node movements for this example defines random node
&lt;br&gt;movements for the 3 mobilenodes within a topology of 670mX670m. 
&lt;br&gt;i get the error: cant read file .../mobility/scene/cbr-3-test...no such directory while executing.
&lt;br&gt;but the tcl file is in my cygwin home administrator folder
&lt;br&gt;below is the script...please can someone assist...Thanks alot
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;# Copyright (c) 1999 Regents of the University of Southern California.
&lt;br&gt;# All rights reserved.
&lt;br&gt;#
&lt;br&gt;# Redistribution and use in source and binary forms, with or without
&lt;br&gt;# modification, are permitted provided that the following conditions
&lt;br&gt;# are met:
&lt;br&gt;# 1. Redistributions of source code must retain the above copyright
&lt;br&gt;#    notice, this list of conditions and the following disclaimer.
&lt;br&gt;# 2. Redistributions in binary form must reproduce the above copyright
&lt;br&gt;#    notice, this list of conditions and the following disclaimer in the
&lt;br&gt;#    documentation and/or other materials provided with the distribution.
&lt;br&gt;# 3. All advertising materials mentioning features or use of this software
&lt;br&gt;#    must display the following acknowledgement:
&lt;br&gt;#      This product includes software developed by the Computer Systems
&lt;br&gt;#      Engineering Group at Lawrence Berkeley Laboratory.
&lt;br&gt;# 4. Neither the name of the University nor of the Laboratory may be used
&lt;br&gt;#    to endorse or promote products derived from this software without
&lt;br&gt;#    specific prior written permission.
&lt;br&gt;#
&lt;br&gt;# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
&lt;br&gt;# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
&lt;br&gt;# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
&lt;br&gt;# ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
&lt;br&gt;# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
&lt;br&gt;# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
&lt;br&gt;# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
&lt;br&gt;# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
&lt;br&gt;# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
&lt;br&gt;# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
&lt;br&gt;# SUCH DAMAGE.
&lt;br&gt;# wireless1.tcl
&lt;br&gt;# A simple example for wireless simulation
&lt;br&gt;&lt;br&gt;# ======================================================================
&lt;br&gt;# Define options
&lt;br&gt;# ======================================================================
&lt;br&gt;&lt;br&gt;set val(chan)       Channel/WirelessChannel
&lt;br&gt;set val(prop)       Propagation/TwoRayGround
&lt;br&gt;set val(netif)      Phy/WirelessPhy
&lt;br&gt;set val(mac)        Mac/802_11
&lt;br&gt;set val(ifq)        Queue/DropTail/PriQueue
&lt;br&gt;set val(ll)         LL
&lt;br&gt;set val(ant)        Antenna/OmniAntenna
&lt;br&gt;set val(x)              670   ;# X dimension of the topography
&lt;br&gt;set val(y)              670   ;# Y dimension of the topography
&lt;br&gt;set val(ifqlen)         50            ;# max packet in ifq
&lt;br&gt;set val(seed)           0.0
&lt;br&gt;set val(adhocRouting)   DSR
&lt;br&gt;set val(nn)             3             ;# how many nodes are simulated
&lt;br&gt;set val(cp)             &amp;quot;../mobility/scene/cbr-3-test&amp;quot; 
&lt;br&gt;set val(sc)             &amp;quot;../mobility/scene/scen-3-test&amp;quot; 
&lt;br&gt;set val(stop)           400.0           ;# simulation time
&lt;br&gt;&lt;br&gt;set ns_    [new Simulator]
&lt;br&gt;set tracefd     [open simple.tr w]
&lt;br&gt;$ns_ trace-all $tracefd
&lt;br&gt;set nf [open simple.nam w]
&lt;br&gt;$ns_ namtrace-all-wireless $nf $val(x) $val(y)
&lt;br&gt;set topo    [new Topography]
&lt;br&gt;$topo load_flatgrid $val(x) $val(y)
&lt;br&gt;set god_ [create-god $val(nn)]
&lt;br&gt;&lt;br&gt;create-god $val(nn)
&lt;br&gt;#global node setting
&lt;br&gt;&lt;br&gt;$ns_ node-config -adhocRouting $val(adhocRouting) \
&lt;br&gt;                 -llType $val(ll) \
&lt;br&gt;                 -macType $val(mac) \
&lt;br&gt;                 -ifqType $val(ifq) \
&lt;br&gt;                 -ifqLen $val(ifqlen) \
&lt;br&gt;                 -antType $val(ant) \
&lt;br&gt;                 -propType $val(prop) \
&lt;br&gt;                 -phyType $val(netif) \
&lt;br&gt;                 -channelType $val(chan) \
&lt;br&gt;         -topoInstance $topo \
&lt;br&gt;         -agentTrace ON \
&lt;br&gt;                 -routerTrace OFF \
&lt;br&gt;                 -macTrace OFF 
&lt;br&gt;&lt;br&gt;#
&lt;br&gt;#  Create the specified number of nodes [$val(nn)] and &amp;quot;attach&amp;quot; them
&lt;br&gt;#  to the channel. 
&lt;br&gt;&lt;br&gt;for {set i 0} {$i &amp;lt; $val(nn) } {incr i} {
&lt;br&gt;    set node_($i) [$ns_ node]    
&lt;br&gt;    $node_($i) random-motion 0        ;# disable random motion
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;&lt;br&gt;# 
&lt;br&gt;# Define node movement model
&lt;br&gt;#
&lt;br&gt;puts &amp;quot;Loading connection pattern...&amp;quot;
&lt;br&gt;source $val(cp)
&lt;br&gt;&lt;br&gt;# 
&lt;br&gt;# Define traffic model
&lt;br&gt;#
&lt;br&gt;puts &amp;quot;Loading scenario file...&amp;quot;
&lt;br&gt;source $val(sc)
&lt;br&gt;&lt;br&gt;# Define node initial position in nam
&lt;br&gt;&lt;br&gt;for {set i 0} {$i &amp;lt; $val(nn)} {incr i} {
&lt;br&gt;&lt;br&gt;    # 20 defines the node size in nam, must adjust it according to your scenario
&lt;br&gt;    # The function must be called after mobility model is defined
&lt;br&gt;    
&lt;br&gt;    $ns_ initial_node_pos $node_($i) 20
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;&lt;br&gt;#
&lt;br&gt;# Tell nodes when the simulation ends
&lt;br&gt;#
&lt;br&gt;for {set i 0} {$i &amp;lt; $val(nn) } {incr i} {
&lt;br&gt;    $ns_ at $val(stop).0 &amp;quot;$node_($i) reset&amp;quot;;
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;$ns_ at  $val(stop).0002 &amp;quot;puts \&amp;quot;NS EXITING...\&amp;quot; ; $ns_ halt&amp;quot;
&lt;br&gt;&lt;br&gt;puts $tracefd &amp;quot;M 0.0 nn $val(nn) x $val(x) y $val(y) rp $val(adhocRouting)&amp;quot;
&lt;br&gt;puts $tracefd &amp;quot;M 0.0 sc $val(sc) cp $val(cp) seed $val(seed)&amp;quot;
&lt;br&gt;puts $tracefd &amp;quot;M 0.0 prop $val(prop) ant $val(ant)&amp;quot;
&lt;br&gt;&lt;br&gt;puts &amp;quot;Starting Simulation...&amp;quot;
&lt;br&gt;$ns_ run
&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;      
&lt;br&gt;&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/Cant-read-file-...-mobility-scene-cbr-3-test...no-such-directory-while-executing.-tp24392882p24392882.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-24392697</id>
	<title>Re: NODE 1 NOT DEFINED ERROR MESSAGE</title>
	<published>2009-07-08T07:32:02Z</published>
	<updated>2009-07-08T07:32:02Z</updated>
	<author>
		<name>Oladapo Oluwadiya</name>
	</author>
	<content type="html">&lt;br&gt;&lt;br&gt;hello,
&lt;br&gt;i tried running a simulation of 
&lt;br&gt;simple multihop wireless scenario consisting of 3 mobilenodes here. However the node movements for this example defines random node
&lt;br&gt;movements for the 3 mobilenodes within a topology of 670mX670m. 
&lt;br&gt;i get the error: cant read file .../mobility/scene/cbr-3-test...no such directory while executing.
&lt;br&gt;but the tcl file is in my cygwin home administrator folder
&lt;br&gt;below is the script...please can someone assist...Thanks alot
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;# Copyright (c) 1999 Regents of the University of Southern California.
&lt;br&gt;# All rights reserved.
&lt;br&gt;#
&lt;br&gt;# Redistribution and use in source and binary forms, with or without
&lt;br&gt;# modification, are permitted provided that the following conditions
&lt;br&gt;# are met:
&lt;br&gt;# 1. Redistributions of source code must retain the above copyright
&lt;br&gt;#    notice, this list of conditions and the following disclaimer.
&lt;br&gt;# 2. Redistributions in binary form must reproduce the above copyright
&lt;br&gt;#    notice, this list of conditions and the following disclaimer in the
&lt;br&gt;#    documentation and/or other materials provided with the distribution.
&lt;br&gt;# 3. All advertising materials mentioning features or use of this software
&lt;br&gt;#    must display the following acknowledgement:
&lt;br&gt;#      This product includes software developed by the Computer Systems
&lt;br&gt;#      Engineering Group at Lawrence Berkeley Laboratory.
&lt;br&gt;# 4. Neither the name of the University nor of the Laboratory may be used
&lt;br&gt;#    to endorse or promote products derived from this software without
&lt;br&gt;#    specific prior written permission.
&lt;br&gt;#
&lt;br&gt;# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
&lt;br&gt;# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
&lt;br&gt;# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
&lt;br&gt;# ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
&lt;br&gt;# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
&lt;br&gt;# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
&lt;br&gt;# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
&lt;br&gt;# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
&lt;br&gt;# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
&lt;br&gt;# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
&lt;br&gt;# SUCH DAMAGE.
&lt;br&gt;# wireless1.tcl
&lt;br&gt;# A simple example for wireless simulation
&lt;br&gt;&lt;br&gt;# ======================================================================
&lt;br&gt;# Define options
&lt;br&gt;# ======================================================================
&lt;br&gt;&lt;br&gt;set val(chan)       Channel/WirelessChannel
&lt;br&gt;set val(prop)       Propagation/TwoRayGround
&lt;br&gt;set val(netif)      Phy/WirelessPhy
&lt;br&gt;set val(mac)        Mac/802_11
&lt;br&gt;set val(ifq)        Queue/DropTail/PriQueue
&lt;br&gt;set val(ll)         LL
&lt;br&gt;set val(ant)        Antenna/OmniAntenna
&lt;br&gt;set val(x)              670   ;# X dimension of the topography
&lt;br&gt;set val(y)              670   ;# Y dimension of the topography
&lt;br&gt;set val(ifqlen)         50            ;# max packet in ifq
&lt;br&gt;set val(seed)           0.0
&lt;br&gt;set val(adhocRouting)   DSR
&lt;br&gt;set val(nn)             3             ;# how many nodes are simulated
&lt;br&gt;set val(cp)             &amp;quot;../mobility/scene/cbr-3-test&amp;quot; 
&lt;br&gt;set val(sc)             &amp;quot;../mobility/scene/scen-3-test&amp;quot; 
&lt;br&gt;set val(stop)           400.0           ;# simulation time
&lt;br&gt;&lt;br&gt;set ns_    [new Simulator]
&lt;br&gt;set tracefd     [open simple.tr w]
&lt;br&gt;$ns_ trace-all $tracefd
&lt;br&gt;set nf [open simple.nam w]
&lt;br&gt;$ns_ namtrace-all-wireless $nf $val(x) $val(y)
&lt;br&gt;set topo    [new Topography]
&lt;br&gt;$topo load_flatgrid $val(x) $val(y)
&lt;br&gt;set god_ [create-god $val(nn)]
&lt;br&gt;&lt;br&gt;create-god $val(nn)
&lt;br&gt;#global node setting
&lt;br&gt;&lt;br&gt;$ns_ node-config -adhocRouting $val(adhocRouting) \
&lt;br&gt;                 -llType $val(ll) \
&lt;br&gt;                 -macType $val(mac) \
&lt;br&gt;                 -ifqType $val(ifq) \
&lt;br&gt;                 -ifqLen $val(ifqlen) \
&lt;br&gt;                 -antType $val(ant) \
&lt;br&gt;                 -propType $val(prop) \
&lt;br&gt;                 -phyType $val(netif) \
&lt;br&gt;                 -channelType $val(chan) \
&lt;br&gt;         -topoInstance $topo \
&lt;br&gt;         -agentTrace ON \
&lt;br&gt;                 -routerTrace OFF \
&lt;br&gt;                 -macTrace OFF 
&lt;br&gt;&lt;br&gt;#
&lt;br&gt;#  Create the specified number of nodes [$val(nn)] and &amp;quot;attach&amp;quot; them
&lt;br&gt;#  to the channel. 
&lt;br&gt;&lt;br&gt;for {set i 0} {$i &amp;lt; $val(nn) } {incr i} {
&lt;br&gt;    set node_($i) [$ns_ node]    
&lt;br&gt;    $node_($i) random-motion 0        ;# disable random motion
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;&lt;br&gt;# 
&lt;br&gt;# Define node movement model
&lt;br&gt;#
&lt;br&gt;puts &amp;quot;Loading connection pattern...&amp;quot;
&lt;br&gt;source $val(cp)
&lt;br&gt;&lt;br&gt;# 
&lt;br&gt;# Define traffic model
&lt;br&gt;#
&lt;br&gt;puts &amp;quot;Loading scenario file...&amp;quot;
&lt;br&gt;source $val(sc)
&lt;br&gt;&lt;br&gt;# Define node initial position in nam
&lt;br&gt;&lt;br&gt;for {set i 0} {$i &amp;lt; $val(nn)} {incr i} {
&lt;br&gt;&lt;br&gt;    # 20 defines the node size in nam, must adjust it according to your scenario
&lt;br&gt;    # The function must be called after mobility model is defined
&lt;br&gt;    
&lt;br&gt;    $ns_ initial_node_pos $node_($i) 20
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;&lt;br&gt;#
&lt;br&gt;# Tell nodes when the simulation ends
&lt;br&gt;#
&lt;br&gt;for {set i 0} {$i &amp;lt; $val(nn) } {incr i} {
&lt;br&gt;    $ns_ at $val(stop).0 &amp;quot;$node_($i) reset&amp;quot;;
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;$ns_ at  $val(stop).0002 &amp;quot;puts \&amp;quot;NS EXITING...\&amp;quot; ; $ns_ halt&amp;quot;
&lt;br&gt;&lt;br&gt;puts $tracefd &amp;quot;M 0.0 nn $val(nn) x $val(x) y $val(y) rp $val(adhocRouting)&amp;quot;
&lt;br&gt;puts $tracefd &amp;quot;M 0.0 sc $val(sc) cp $val(cp) seed $val(seed)&amp;quot;
&lt;br&gt;puts $tracefd &amp;quot;M 0.0 prop $val(prop) ant $val(ant)&amp;quot;
&lt;br&gt;&lt;br&gt;puts &amp;quot;Starting Simulation...&amp;quot;
&lt;br&gt;$ns_ run
&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;&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/NODE-1-NOT-DEFINED-ERROR-MESSAGE-tp24373759p24392697.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-24392380</id>
	<title>installing lenux red hat</title>
	<published>2009-07-08T07:16:57Z</published>
	<updated>2009-07-08T07:16:57Z</updated>
	<author>
		<name>najwa al_mawajdeh</name>
	</author>
	<content type="html">&lt;br&gt;&lt;br&gt;&lt;br&gt;i hve installed the red hat version 5 after removing fedora and i have a new problem it is :
&lt;br&gt;&amp;nbsp;
&lt;br&gt;checking if 64 bit support is requested .....no
&lt;br&gt;&amp;nbsp;
&lt;br&gt;checking if 64 bit sparc VIC support is requested ....no
&lt;br&gt;&amp;nbsp;
&lt;br&gt;its in the TCL folder
&lt;br&gt;&amp;nbsp;
&lt;br&gt;do you have any idea
&lt;br&gt;&amp;nbsp;
&lt;br&gt;thanks
&lt;br&gt;Najwa 
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_________________________________________________________________
&lt;br&gt;Show them the way! Add maps and directions to your party invites. 
&lt;br&gt;&lt;a href=&quot;http://www.microsoft.com/windows/windowslive/products/events.aspx&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.microsoft.com/windows/windowslive/products/events.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/installing-lenux-red-hat-tp24392380p24392380.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-24389859</id>
	<title>AODV routing table</title>
	<published>2009-07-08T04:34:43Z</published>
	<updated>2009-07-08T04:34:43Z</updated>
	<author>
		<name>Nadilma Nunes</name>
	</author>
	<content type="html">&lt;br&gt;Anybody knows how to change values in routing table of AODV protocol?
&lt;br&gt;For example, I have this path: 1-2-4-5, but 1-3-4-5 is path valid too. I
&lt;br&gt;would like update and force a new path. Anybody knows how to do this?
&lt;br&gt;&lt;br&gt;Thanks in advance.
&lt;br&gt;&lt;br&gt;&lt;br&gt;--
&lt;br&gt;Nadilma Nunes.
&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/AODV-routing-table-tp24389859p24389859.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-24388021</id>
	<title>ECN wired network somulation</title>
	<published>2009-07-08T02:11:07Z</published>
	<updated>2009-07-08T02:11:07Z</updated>
	<author>
		<name>neggazi brahim</name>
	</author>
	<content type="html">&lt;br&gt;Hi
&lt;br&gt;&lt;br&gt;i want to simulate TCP with ECN in wired network, so are there any one work
&lt;br&gt;on this concept ?
&lt;br&gt;&lt;br&gt;I search also any program to start simple simulation of ECN. thanks for your
&lt;br&gt;help.
&lt;br&gt;&lt;br&gt;kind regards
&lt;br&gt;&lt;br&gt;Brahim
&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/ECN-wired-network-somulation-tp24388021p24388021.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-24385949</id>
	<title>qos in manets using bandwidth as parameter</title>
	<published>2009-07-07T23:08:30Z</published>
	<updated>2009-07-07T23:08:30Z</updated>
	<author>
		<name>neeraj  gupta</name>
	</author>
	<content type="html">&lt;br&gt;&lt;br&gt;&amp;nbsp;hi all
&lt;br&gt;&lt;br&gt;&amp;nbsp; i am doing research work in qos in manets using bandwidth as parameter. do i have have to work in link layer or network layer. does i need to be protocol specific. actually i have gone through certain papers ut i totla confussed kindly help me.
&lt;br&gt;&lt;br&gt;Neeraj Gupta
&lt;br&gt;Assistant Professor
&lt;br&gt;HOD, CSE &amp; IT Department
&lt;br&gt;Hindu College of Engineering
&lt;br&gt;Sonepat
&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/qos-in-manets-using-bandwidth-as-parameter-tp24385949p24385949.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-24383048</id>
	<title>Re: Change the value of dataRate_ in Mac/802_11</title>
	<published>2009-07-07T16:10:15Z</published>
	<updated>2009-07-07T16:10:15Z</updated>
	<author>
		<name>David Ross-2</name>
	</author>
	<content type="html">&lt;br&gt;Are you setting it *before* creating the nodes?
&lt;br&gt;If dataRate_ is not set when the nodes are created, they use bandwidth_ (defaults to 1Mb) instead.
&lt;br&gt;&lt;br&gt;- David Ross.
&lt;br&gt;&lt;br&gt;El hadi Cherkaoui wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; hi all,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; i want to change via tcl the value of rate in Mac/802_11 ...
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; For exemple when i set :
&lt;br&gt;&amp;gt; Mac/802_11 set dataRate_ 1Mb 
&lt;br&gt;&amp;gt; the dataRate is really 1 Mb but after if i want to change the datarate to 2Mb
&lt;br&gt;&amp;gt; Mac/802_11 set dataRate_ 2Mb 
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; the value of dataRate_ is still 1Mb
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; What's wrong with this ?
&lt;br&gt;&amp;gt; thanx 
&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;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;/div&gt;&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/Change-the-value-of-dataRate_-in-Mac-802_11-tp24375810p24383048.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-24378428</id>
	<title>error report</title>
	<published>2009-07-07T10:53:12Z</published>
	<updated>2009-07-07T10:53:12Z</updated>
	<author>
		<name>Narkisos</name>
	</author>
	<content type="html">&lt;br&gt;&lt;br /&gt;&lt;br&gt;Hi to everyone,
&lt;br&gt;&lt;br&gt;I found an example on the internet and I tried to run it but I am getting a feedback to change some variables but I don't know which one I have to change.
&lt;br&gt;At the attached files are the example file and the report error. Please give me help on this problem.
&lt;br&gt;&lt;br&gt;&lt;br&gt;Kind regards,
&lt;br&gt;&lt;br&gt;Venetis
&lt;br&gt;&lt;br&gt;_________________________________________________________________
&lt;br&gt;Έχετε Messenger; Έχετε και Windows Live. Μάθετε περισσότερα.
&lt;br&gt;&lt;a href=&quot;http://microsoft.com/windows/windowslive&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://microsoft.com/windows/windowslive&lt;/a&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/error-report-tp24378428p24378428.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-24377713</id>
	<title>Re: ipv6 plans for ns-3</title>
	<published>2009-07-07T10:12:01Z</published>
	<updated>2009-07-07T10:12:01Z</updated>
	<author>
		<name>Sébastien Vincent</name>
	</author>
	<content type="html">Hi Tom,
&lt;br&gt;&lt;br&gt;Tom Henderson a écrit :
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Sebastien,
&lt;br&gt;&amp;gt; I'd like to put the IPv6 code back on track for merging into ns-3-dev. &amp;nbsp;Can
&lt;br&gt;&amp;gt; you please provide a status update on the repos that you or your group are
&lt;br&gt;&amp;gt; maintaining at &lt;a href=&quot;https://svnet.u-strasbg.fr/hg/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://svnet.u-strasbg.fr/hg/&lt;/a&gt;&amp;nbsp;and what you might suggest
&lt;br&gt;&amp;gt; for next steps? &amp;nbsp;Also, I'd like to know where the effort to refactor the
&lt;br&gt;&amp;gt; transport protocols and network layer to allow a common transport protocol
&lt;br&gt;&amp;gt; implementation to use IPv4 and IPv6 ended up-- I see that the current
&lt;br&gt;&amp;gt; ns-3-ipv6 repo has separate IPv4 and IPv6 implementations for TCP.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;/div&gt;&lt;br&gt;Currently, &amp;nbsp;&lt;a href=&quot;https://svnet.u-strasbg.fr/hg/ns-3-ipv6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://svnet.u-strasbg.fr/hg/ns-3-ipv6&lt;/a&gt;&amp;nbsp;is very outdated. 
&lt;br&gt;Two day ago I begin to work with up-to-date ns-3-dev and port some of 
&lt;br&gt;the IPv6 components. It is located at 
&lt;br&gt;&lt;a href=&quot;https://svnet.u-strasbg.fr/hg/ns-3-ipv6-2nd&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://svnet.u-strasbg.fr/hg/ns-3-ipv6-2nd&lt;/a&gt;&amp;nbsp;(not publicly available yet 
&lt;br&gt;but I will unlock access tomorrow or next monday).
&lt;br&gt;&lt;br&gt;For the next release, I really would like to have IPv6 routing, ICMPv6 
&lt;br&gt;(+ neighbor discovery protocol), UDP, IPv6 applications such as UdpEcho, 
&lt;br&gt;basic examples. If I had time radvd application to have IPv6 address 
&lt;br&gt;autoconfiguration, multihoming.
&lt;br&gt;The features delayed will be TCP (if we can not find a good and easy 
&lt;br&gt;solution to integrate it nicely), IPv6 header extension (fragmentation, 
&lt;br&gt;loose routing, ...).
&lt;br&gt;&lt;br&gt;As I have a lot of work for my job arround wireless sensor network, I 
&lt;br&gt;can not work as long as I want on ns-3. But I will do my best during my 
&lt;br&gt;spare time on my holidays (tomorrow) to propose a working IPv6 stack.
&lt;br&gt;&lt;br&gt;&lt;br&gt;For ns-3-ipv6-2nd repo I have also integrated Ipv6InterfaceAddress, 
&lt;br&gt;Ipv6Interface, NdiscCache. For routing code located in src/node, I think 
&lt;br&gt;it will be exactly the same for IPv6 (except changing Ipv4* to Ipv6* ).
&lt;br&gt;&lt;br&gt;For transport protocol, the main problem is (if I remember correctly) 
&lt;br&gt;that Tcp/UdpL4Protocol' and Tcp/UdpSocketImpl functions take Ipv4Address 
&lt;br&gt;arguments. We already have some discusses here with Mathieu but we have 
&lt;br&gt;not found a good solution to handle this. By the way same problem for 
&lt;br&gt;IPv4EndPoint / Ipv4EndPointDemux which majority of code will be duplicated.
&lt;br&gt;&lt;br&gt;&lt;br&gt;To resume, I will open my private repository next couple of days. I will 
&lt;br&gt;continue to read code about recent IPv4 refactoring and implement 
&lt;br&gt;routing stuff (Ipv6L3Protocol), ICMPv6 (and neighbor discovery protocol) 
&lt;br&gt;and wait about transport protocol problem. Now all of us interrested in 
&lt;br&gt;IPv6 can begin to find a nice way to handle transport protocol in both 
&lt;br&gt;IPv4 and IPv6 without copy/paste code. And to finish It will be really 
&lt;br&gt;good if we can put great efforts on IPv6 integration for ns-3.6 to bring 
&lt;br&gt;ns-3 users the power of IPv6 ;)
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;--
&lt;br&gt;Seb
&lt;br&gt;&lt;br&gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt; Tom
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; 
&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/ipv6-plans-for-ns-3-tp24375431p24377713.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-24375810</id>
	<title>Change the value of dataRate_ in Mac/802_11</title>
	<published>2009-07-07T08:38:51Z</published>
	<updated>2009-07-07T08:38:51Z</updated>
	<author>
		<name>El hadi Cherkaoui</name>
	</author>
	<content type="html">&lt;br&gt;hi all,
&lt;br&gt;&lt;br&gt;i want to change via tcl the value of rate in Mac/802_11 ...
&lt;br&gt;&lt;br&gt;For exemple when i set :
&lt;br&gt;Mac/802_11 set dataRate_ 1Mb 
&lt;br&gt;the dataRate is really 1 Mb but after if i want to change the datarate to 2Mb
&lt;br&gt;Mac/802_11 set dataRate_ 2Mb 
&lt;br&gt;&lt;br&gt;the value of dataRate_ is still 1Mb
&lt;br&gt;&lt;br&gt;What's wrong with this ?
&lt;br&gt;thanx 
&lt;br&gt;&lt;br&gt;&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/Change-the-value-of-dataRate_-in-Mac-802_11-tp24375810p24375810.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-24375431</id>
	<title>ipv6 plans for ns-3</title>
	<published>2009-07-07T08:22:08Z</published>
	<updated>2009-07-07T08:22:08Z</updated>
	<author>
		<name>Tom Henderson-2</name>
	</author>
	<content type="html">Sebastien,
&lt;br&gt;I'd like to put the IPv6 code back on track for merging into ns-3-dev. &amp;nbsp;Can
&lt;br&gt;you please provide a status update on the repos that you or your group are
&lt;br&gt;maintaining at &lt;a href=&quot;https://svnet.u-strasbg.fr/hg/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://svnet.u-strasbg.fr/hg/&lt;/a&gt;&amp;nbsp;and what you might suggest
&lt;br&gt;for next steps? &amp;nbsp;Also, I'd like to know where the effort to refactor the
&lt;br&gt;transport protocols and network layer to allow a common transport protocol
&lt;br&gt;implementation to use IPv4 and IPv6 ended up-- I see that the current
&lt;br&gt;ns-3-ipv6 repo has separate IPv4 and IPv6 implementations for TCP.
&lt;br&gt;&lt;br&gt;Thanks,
&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/ipv6-plans-for-ns-3-tp24375431p24375431.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-24374677</id>
	<title>Calculate the power consumption</title>
	<published>2009-07-07T07:43:38Z</published>
	<updated>2009-07-07T07:43:38Z</updated>
	<author>
		<name>Narkisos</name>
	</author>
	<content type="html">&lt;br&gt;&lt;br&gt;Hi to everyone,
&lt;br&gt;&lt;br&gt;&lt;br&gt;I would like to know whether the ns2 can calculate the power consumption or not and if yes, could someone please tell me how?
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;Kind regards,
&lt;br&gt;&lt;br&gt;Venetis
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;&lt;br&gt;_________________________________________________________________
&lt;br&gt;Έχετε Messenger; Έχετε και Windows Live. Μάθετε περισσότερα.
&lt;br&gt;&lt;a href=&quot;http://microsoft.com/windows/windowslive&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://microsoft.com/windows/windowslive&lt;/a&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/Calculate-the-power-consumption-tp24374677p24374677.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-24373759</id>
	<title>NODE 1 NOT DEFINED ERROR MESSAGE</title>
	<published>2009-07-07T06:52:01Z</published>
	<updated>2009-07-07T06:52:01Z</updated>
	<author>
		<name>Oladapo Oluwadiya</name>
	</author>
	<content type="html">&lt;br&gt;I tried simulating a simple wireless scenario of two mobile nodes moving towards each other and after a while moves away . the simulation builds and runs well,but i cant see the two nodes in the NAM animation though the TR file shows the simulation generated correct results..below is the scripts.please help!!!!
&lt;br&gt;&lt;br&gt;# =====================================================================
&lt;br&gt;# Define options
&lt;br&gt;# =====================================================================
&lt;br&gt;set val(chan)         Channel/WirelessChannel  ;# channel type
&lt;br&gt;set val(prop)       Propagation/TwoRayGround ;# radio-propagation model
&lt;br&gt;set val(ant)          Antenna/OmniAntenna      ;# Antenna type
&lt;br&gt;set val(ll)           LL                       ;# Link layer type
&lt;br&gt;set val(ifq)          Queue/DropTail/PriQueue  ;# Interface queue type
&lt;br&gt;set val(ifqlen)       50                       ;# max packet in ifq
&lt;br&gt;set val(netif)       Phy/WirelessPhy          ;# network interface type
&lt;br&gt;set val(mac)          Mac/802_11               ;# MAC type
&lt;br&gt;set val(rp)         DSDV                     ;# ad-hoc routing protocol 
&lt;br&gt;set val(x)           500                 ;# x-axis of grid
&lt;br&gt;set val(y)           500                 ;# y-axis of grid
&lt;br&gt;set val(nn)           2                        ;# number of mobilenodes
&lt;br&gt;set ns_    [new Simulator]
&lt;br&gt;set tracefd     [open simple.tr w]
&lt;br&gt;$ns_ trace-all $tracefd           
&lt;br&gt;set nf [open simple.nam w]
&lt;br&gt;$ns_ namtrace-all-wireless $nf $val(x) $val(y)
&lt;br&gt;set topo    [new Topography]
&lt;br&gt;$topo load_flatgrid $val(x) $val(y)
&lt;br&gt;&lt;br&gt;create-god $val(nn)
&lt;br&gt;                                   #(parameter examples)
&lt;br&gt;# $ns_ node-config -addressingType flat or hierarchical or expanded
&lt;br&gt;#                  -adhocRouting   DSDV or DSR or TORA
&lt;br&gt;#                  -llType       LL
&lt;br&gt;#                  -macType       Mac/802_11
&lt;br&gt;#                  -propType       &amp;quot;Propagation/TwoRayGround&amp;quot;
&lt;br&gt;#                  -ifqType       &amp;quot;Queue/DropTail/PriQueue&amp;quot;
&lt;br&gt;#                  -ifqLen       50
&lt;br&gt;#                  -phyType       &amp;quot;Phy/WirelessPhy&amp;quot;
&lt;br&gt;#                  -antType       &amp;quot;Antenna/OmniAntenna&amp;quot;
&lt;br&gt;#                  -channelType    &amp;quot;Channel/WirelessChannel&amp;quot;
&lt;br&gt;#                  -topoInstance   $topo
&lt;br&gt;#                  -energyModel    &amp;quot;EnergyModel&amp;quot;
&lt;br&gt;#                  -initialEnergy  (in Joules)
&lt;br&gt;#                  -rxPower        (in W)
&lt;br&gt;#                  -txPower        (in W)
&lt;br&gt;#                  -agentTrace     ON or OFF
&lt;br&gt;#                  -routerTrace    ON or OFF
&lt;br&gt;#                  -macTrace       ON or OFF
&lt;br&gt;#                  -movementTrace  ON or OFF
&lt;br&gt;# Configure nodes
&lt;br&gt;        $ns_ node-config -adhocRouting $val(rp) \
&lt;br&gt;                         -llType $val(ll) \
&lt;br&gt;                         -macType $val(mac) \
&lt;br&gt;                         -ifqType $val(ifq) \
&lt;br&gt;                         -ifqLen $val(ifqlen) \
&lt;br&gt;                         -antType $val(ant) \
&lt;br&gt;                         -propType $val(prop) \
&lt;br&gt;                         -phyType $val(netif) \
&lt;br&gt;                         -topoInstance $topo \
&lt;br&gt;                         -channelType $val(chan) \
&lt;br&gt;                         -agentTrace ON \
&lt;br&gt;                         -routerTrace ON \
&lt;br&gt;                         -macTrace OFF \
&lt;br&gt;                         -movementTrace OFF
&lt;br&gt;for {set i 0} {$i &amp;lt; $val(nn) } {incr i} {
&lt;br&gt;                set node_($i) [$ns_ node]
&lt;br&gt;$node_($i) random-motion 0       ;# disable random motion
&lt;br&gt;        }    
&lt;br&gt;#
&lt;br&gt;# Provide initial (X,Y, for now Z=0) co-ordinates for node_(0) and node_(1)
&lt;br&gt;#
&lt;br&gt;$node_(0) set X_ 5.0
&lt;br&gt;$node_(0) set Y_ 2.0
&lt;br&gt;$node_(0) set Z_ 0.0
&lt;br&gt;&lt;br&gt;$node_(1) set X_ 390.0
&lt;br&gt;$node_(1) set Y_ 385.0
&lt;br&gt;$node_(1) set Z_ 0.0
&lt;br&gt;#
&lt;br&gt;# Node_(1) starts to move towards node_(0)
&lt;br&gt;#
&lt;br&gt;$ns_ at 50.0 &amp;quot;$node_(1) setdest 25.0 20.0 15.0&amp;quot;
&lt;br&gt;$ns_ at 10.0 &amp;quot;$node_(0) setdest 20.0 18.0 1.0&amp;quot;
&lt;br&gt;&lt;br&gt;# Node_(1) then starts to move away from node_(0)
&lt;br&gt;$ns_ at 100.0 &amp;quot;$node_(1) setdest 490.0 480.0 15.0&amp;quot; 
&lt;br&gt;# TCP connections between node_(0) and node_(1)
&lt;br&gt;&lt;br&gt;set tcp [new Agent/TCP]
&lt;br&gt;$tcp set class_ 2
&lt;br&gt;set sink [new Agent/TCPSink]
&lt;br&gt;$ns_ attach-agent $node_(0) $tcp
&lt;br&gt;$ns_ attach-agent $node_(1) $sink
&lt;br&gt;$ns_ connect $tcp $sink
&lt;br&gt;set ftp [new Application/FTP]
&lt;br&gt;$ftp attach-agent $tcp
&lt;br&gt;$ns_ at 10.0 &amp;quot;$ftp start&amp;quot; 
&lt;br&gt;#
&lt;br&gt;# Tell nodes when the simulation ends
&lt;br&gt;#
&lt;br&gt;for {set i 0} {$i &amp;lt; $val(nn) } {incr i} {
&lt;br&gt;    $ns_ at 150.0 &amp;quot;$node_($i) reset&amp;quot;;
&lt;br&gt;}
&lt;br&gt;$ns_ at 150.0001 &amp;quot;stop&amp;quot;
&lt;br&gt;$ns_ at 150.0002 &amp;quot;puts \&amp;quot;NS EXITING...\&amp;quot; ; $ns_ halt&amp;quot;
&lt;br&gt;proc stop {} {
&lt;br&gt;    global ns_ tracefd
&lt;br&gt;    close $tracefd
&lt;br&gt;}
&lt;br&gt;puts &amp;quot;Starting Simulation...&amp;quot;
&lt;br&gt;$ns_ run
&lt;br&gt;&lt;br&gt;&lt;br&gt;&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/NODE-1-NOT-DEFINED-ERROR-MESSAGE-tp24373759p24373759.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-24371508</id>
	<title>AODV local repair</title>
	<published>2009-07-07T04:19:28Z</published>
	<updated>2009-07-07T04:19:28Z</updated>
	<author>
		<name>Nadilma Nunes</name>
	</author>
	<content type="html">&lt;br&gt;Somebody knows how to modify local_repair() function?
&lt;br&gt;In local repair mechanism when a link failure happens on an active route,
&lt;br&gt;the first node upstream of that break (the predecessor) chooses to repair
&lt;br&gt;the link locally. I wish to choose ANYTHING node upstream of that break and
&lt;br&gt;no only THE predecessor.
&lt;br&gt;&lt;br&gt;*AODV::local_rt_repair(aodv_rt_entry *rt, Packet *p) {
&lt;br&gt;#ifdef DEBUG
&lt;br&gt;&amp;nbsp; fprintf(stderr,&amp;quot;%s: Dst - %d\n&amp;quot;, __FUNCTION__, rt-&amp;gt;rt_dst);
&lt;br&gt;#endif
&lt;br&gt;&amp;nbsp; // Buffer the packet
&lt;br&gt;&lt;br&gt;&amp;nbsp; rqueue.enque(p);
&lt;br&gt;&lt;br&gt;&amp;nbsp; // mark the route as under repair
&lt;br&gt;&amp;nbsp; rt-&amp;gt;rt_flags = RTF_IN_REPAIR;
&lt;br&gt;&lt;br&gt;&amp;nbsp; sendRequest(rt-&amp;gt;rt_dst);
&lt;br&gt;&lt;br&gt;&amp;nbsp; // set up a timer interrupt
&lt;br&gt;&amp;nbsp; Scheduler::instance().schedule(&amp;lrtimer, p-&amp;gt;copy(), rt-&amp;gt;rt_req_timeout);
&lt;br&gt;}
&lt;br&gt;&amp;nbsp;*
&lt;br&gt;I wish before *rqueue.enque(p);* to be called, the predecessor node bring
&lt;br&gt;down the route for to third predecessor node, for example, and only after
&lt;br&gt;that make *rqueue.enque(p); *then after do send requests. Anybody help me?*
&lt;br&gt;**
&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/AODV-local-repair-tp24371508p24371508.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-24370735</id>
	<title>Re: Problems with 64bits platform</title>
	<published>2009-07-07T03:28:53Z</published>
	<updated>2009-07-07T03:28:53Z</updated>
	<author>
		<name>Fernando Boronat Seguí</name>
	</author>
	<content type="html">&lt;br&gt;Our problem appears when, in the 64-bit machine, we simulate multicast scenarios.
&lt;br&gt;&lt;br&gt;1. With PIM-DM protocol, when the source sends packets, all the nodes receive them, because Prune messages are sent very frequently (despite we have changed the prunetimeout variable to a large value). We have also checked that after a join-group action, no graft message is sent. So we conclude the management of the multicast groups is not running OK.
&lt;br&gt;&lt;br&gt;2. Now, we have also changed the multicast protocol to PIM-SM but it doesn't works in the 64-bit machine.
&lt;br&gt;&lt;br&gt;Any help is welcome.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Fernando Boronat Seguí escribió:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I have only tested multicast examples with DM protocol, whit nodes 
&lt;br&gt;&amp;gt; joining and leaving the group. I think the control messages of the 
&lt;br&gt;&amp;gt; multicast protocol (prune) don't work well. I tried to change the period 
&lt;br&gt;&amp;gt; of sending prune messages and the animation doesn't take it into account.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I tried to change it with this sentence and it doesn't work well.
&lt;br&gt;&amp;gt; DM set PruneTimeout 200 &amp;nbsp; (large number to avoid sending prunes).
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The nam animation shows a prune sent hundred of times per second and the 
&lt;br&gt;&amp;gt; joinings and leavings don't take effect. The nessages are broadcasted to 
&lt;br&gt;&amp;gt; all the nodes all the time.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The same scenario in a simple PC with 32-bit ubuntu an a 32-bit 
&lt;br&gt;&amp;gt; processor works well
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Any help will be welcomed.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Best regards
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; qweq adcsad escribió:
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt; Is this problem happening while you are running only multicast scenario or some specific scenario? Or it is happening in general?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; --- On Mon, 7/6/09, Fernando Boronat Seguí &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=24370735&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;fboronat@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; From: Fernando Boronat Seguí &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=24370735&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;fboronat@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Subject: [ns] Problems with 64bits platform
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; To: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=24370735&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ns-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Date: Monday, July 6, 2009, 9:00 AM
&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;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I am having problems whit multicast scenarios in ns-2.34
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; installed in a 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; doble intel quadcore machine.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I hve tried it in Ubuntu and Red Hat linux distributions.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; The same scenarios works well in a 32bit platform.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I anyone have had simlar problems I would really appreciate
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; his/her help.
&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;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Best regards from Spain &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ============================================================
&lt;br&gt;&amp;gt; Dr. Fernando Boronat Seguí	
&lt;br&gt;&amp;gt; Dept. Comunicaciones &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Tlf.-+34+962 849 300 Ext.-49341
&lt;br&gt;&amp;gt; Tlf. directo -+34+962 849 341 &amp;nbsp;Fax.-+34+962 849 309 (Compartido)
&lt;br&gt;&amp;gt; UNIVERSIDAD POLITÉCNICA DE VALENCIA-Esc. Politécnica Superior de Gandia
&lt;br&gt;&amp;gt; Calle Pararaninfo, 1, CP. 46730, Grao de Gandia (Valencia), SPAIN
&lt;br&gt;&amp;gt; ============================================================
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;&lt;br&gt;Saludos.
&lt;br&gt;&lt;br&gt;============================================================
&lt;br&gt;Dr. Fernando Boronat Seguí	
&lt;br&gt;Dept. Comunicaciones &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Tlf.-+34+962 849 300 Ext.-49341
&lt;br&gt;Tlf. directo -+34+962 849 341 &amp;nbsp;Fax.-+34+962 849 309 (Compartido)
&lt;br&gt;UNIVERSIDAD POLITÉCNICA DE VALENCIA-Esc. Politécnica Superior de Gandia
&lt;br&gt;Calle Pararaninfo, 1, CP. 46730, Grao de Gandia (Valencia), SPAIN
&lt;br&gt;============================================================
&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/Problems-with-64bits-platform-tp24358258p24370735.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-24369666</id>
	<title>Re: mcps_data_request and losses</title>
	<published>2009-07-07T02:13:01Z</published>
	<updated>2009-07-07T02:13:01Z</updated>
	<author>
		<name>Réjane Dalcé</name>
	</author>
	<content type="html">&lt;br&gt;Hello,
&lt;br&gt;Thanks for your proposition. I'm not near the computer I use for work but
&lt;br&gt;I'll explain.
&lt;br&gt;In my Tcl script, I call mcpsDataRequest to send frames. In the command
&lt;br&gt;function of SSCS, I defined the mapping and made the call to
&lt;br&gt;MCPS_DATA_request which in turn calls mcps_data_request. The issue I was
&lt;br&gt;facing was that with 3 nodes, I had 99% packets successfully sent which was
&lt;br&gt;just impossible. I checked the call to MCPS_DATA_request and noticed that I
&lt;br&gt;had set the handle to 0. Since the handle was used later on to direct to
&lt;br&gt;MCPS_DATA_confirm, I never got to that point as soon as there was one lost
&lt;br&gt;frame. So the first two nodes to fail in sending a frame will never recover
&lt;br&gt;from it and the last one will continue sending, leading to a near zero loss
&lt;br&gt;ratio.
&lt;br&gt;I don't really know awk. I use databases to process my files.
&lt;br&gt;BR
&lt;br&gt;&lt;br&gt;RD
&lt;br&gt;&lt;br&gt;2009/7/6 hakim anouar &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=24369666&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;hakim.anouar@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; *Hi,
&lt;br&gt;&amp;gt; Related to your pb,i'm also working on zigbee technologie (802.15.4), and
&lt;br&gt;&amp;gt; with pleasure to collaborate with you on this topic.
&lt;br&gt;&amp;gt; if you can send me your script file and also the script used to calculate
&lt;br&gt;&amp;gt; the ratio of packets losed and &amp;nbsp;received in order to analyse it and giving
&lt;br&gt;&amp;gt; if possible my helps.Me i use a simple CBR traffic, i can calculate &amp;nbsp;those
&lt;br&gt;&amp;gt; statistics &amp;nbsp;by using a awk script.
&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; ANOUAR Abdelhakim
&lt;br&gt;&amp;gt; Systèmes Informatiques et Réseaux
&lt;br&gt;&amp;gt; Département de Génie Informatiques
&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;Life is too short to be pissed off all the time.
&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/mcps_data_request-and-losses-tp24322785p24369666.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-24369254</id>
	<title>Power consumption measure</title>
	<published>2009-07-07T01:37:21Z</published>
	<updated>2009-07-07T01:37:21Z</updated>
	<author>
		<name>Narkisos</name>
	</author>
	<content type="html">&lt;br&gt;&lt;br&gt;Hi to everyone,
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;I would like to know whether on ns2 we can measure the power consumption or not and if yes, could someone please tell me how?
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;Kind regards,
&lt;br&gt;&lt;br&gt;Venetis
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;_________________________________________________________________
&lt;br&gt;Σύρετε φωτογραφίες στο παράθυρο του Messenger. Δείτε πώς.
&lt;br&gt;&lt;a href=&quot;http://download.live.com/messenger&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://download.live.com/messenger&lt;/a&gt;&amp;nbsp;&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/Power-consumption-measure-tp24369254p24369254.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-24369202</id>
	<title>Re: Problems with 64bits platform</title>
	<published>2009-07-07T01:36:40Z</published>
	<updated>2009-07-07T01:36:40Z</updated>
	<author>
		<name>Fernando Boronat Seguí</name>
	</author>
	<content type="html">&lt;br&gt;I have only tested multicast examples with DM protocol, whit nodes 
&lt;br&gt;joining and leaving the group. I think the control messages of the 
&lt;br&gt;multicast protocol (prune) don't work well. I tried to change the period 
&lt;br&gt;of sending prune messages and the animation doesn't take it into account.
&lt;br&gt;&lt;br&gt;I tried to change it with this sentence and it doesn't work well.
&lt;br&gt;DM set PruneTimeout 200 &amp;nbsp; (large number to avoid sending prunes).
&lt;br&gt;&lt;br&gt;The nam animation shows a prune sent hundred of times per second and the 
&lt;br&gt;joinings and leavings don't take effect. The nessages are broadcasted to 
&lt;br&gt;all the nodes all the time.
&lt;br&gt;&lt;br&gt;The same scenario in a simple PC with 32-bit ubuntu an a 32-bit 
&lt;br&gt;processor works well
&lt;br&gt;&lt;br&gt;Any help will be welcomed.
&lt;br&gt;&lt;br&gt;Best regards
&lt;br&gt;&lt;br&gt;qweq adcsad escribió:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Is this problem happening while you are running only multicast scenario or some specific scenario? Or it is happening in general?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --- On Mon, 7/6/09, Fernando Boronat Seguí &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=24369202&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;fboronat@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt; From: Fernando Boronat Seguí &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=24369202&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;fboronat@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Subject: [ns] Problems with 64bits platform
&lt;br&gt;&amp;gt;&amp;gt; To: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=24369202&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ns-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; Date: Monday, July 6, 2009, 9:00 AM
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Hello,
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I am having problems whit multicast scenarios in ns-2.34
&lt;br&gt;&amp;gt;&amp;gt; installed in a 
&lt;br&gt;&amp;gt;&amp;gt; doble intel quadcore machine.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I hve tried it in Ubuntu and Red Hat linux distributions.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; The same scenarios works well in a 32bit platform.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I anyone have had simlar problems I would really appreciate
&lt;br&gt;&amp;gt;&amp;gt; his/her help.
&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; Best regards from Spain &amp;nbsp;
&lt;/div&gt;&lt;br&gt;============================================================
&lt;br&gt;Dr. Fernando Boronat Seguí	
&lt;br&gt;Dept. Comunicaciones &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Tlf.-+34+962 849 300 Ext.-49341
&lt;br&gt;Tlf. directo -+34+962 849 341 &amp;nbsp;Fax.-+34+962 849 309 (Compartido)
&lt;br&gt;UNIVERSIDAD POLITÉCNICA DE VALENCIA-Esc. Politécnica Superior de Gandia
&lt;br&gt;Calle Pararaninfo, 1, CP. 46730, Grao de Gandia (Valencia), SPAIN
&lt;br&gt;============================================================
&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/Problems-with-64bits-platform-tp24358258p24369202.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-24367688</id>
	<title>example programs</title>
	<published>2009-07-06T23:07:07Z</published>
	<updated>2009-07-06T23:07:07Z</updated>
	<author>
		<name>kundavi</name>
	</author>
	<content type="html">&lt;br&gt;hi
&lt;br&gt;&amp;nbsp;i need example programs for wireless simulations using Tcl....with odmrp
&lt;br&gt;protocol,,,else atleast any other protocol..
&lt;br&gt;&lt;br&gt;&lt;br&gt;with regards,
&lt;br&gt;sangeetha.k
&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/example-programs-tp24367688p24367688.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-24367336</id>
	<title>error in running NAM</title>
	<published>2009-07-06T22:23:52Z</published>
	<updated>2009-07-06T22:23:52Z</updated>
	<author>
		<name>priyanka ramani</name>
	</author>
	<content type="html">&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;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Looking for local information? Find it on Yahoo! Local &lt;a href=&quot;http://in.local.yahoo.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://in.local.yahoo.com/&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/error-in-running-NAM-tp24367336p24367336.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-24367023</id>
	<title>Voice packet generation in NS-2</title>
	<published>2009-07-06T21:35:27Z</published>
	<updated>2009-07-06T21:35:27Z</updated>
	<author>
		<name>atifet97</name>
	</author>
	<content type="html">&lt;br&gt;Hi all!
&lt;br&gt;&lt;br&gt;How to generate the voice packets in NS-2? If you have some example code please email me.
&lt;br&gt;Thanks
&lt;br&gt;&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/Voice-packet-generation-in-NS-2-tp24367023p24367023.html" />
</entry>

</feed>
