Re: [ns] prob in running aodv example

2009-04-12 Thread Bringo Shawn

Thanks Helber Wagner da Silva

I did replace all occurences of Agent/rtProto/AODV by Agent/AODV in AODV.tcl. 
This time, though no error occures but AODV does not run either.

Please help.



  


[ns] How to Reply a Thread?

2009-04-12 Thread Bringo Shawn

Please tell me how to reply a Thread at ns-users mailing list?

Regards.



  


[ns] 802.11s in NS2

2009-04-12 Thread qweq adcsad


Hi,
  If anybody knows about the available patch or code for 802.11S in NS2 please 
let me know.

Regards,
Nill





  



[ns] awk to calculate the throughput

2009-04-12 Thread Nadine Chen

Hi all,
Can you please give me an awk file to calculate the throughput in a particular 
node, in order to have a graph representing the throughput in function of time?
Thank you very much for your help.



  


[ns] error while running wireless simulation

2009-04-12 Thread Nikheel Kumar

*hi all,

friends actually i m new one in using ns so facing many problems while
solving error in running tcl file so kindly help me. i m running following
tcl file :*

# wireless3.tcl
# simulation of a wired-cum-wireless topology running with mobileIP
# ==
# Define options
# ==

set opt(chan)   Channel/WirelessChannel;# channel type
set opt(prop)   Propagation/TwoRayGround   ;# radio-propagation model
set opt(netif)  Phy/WirelessPhy;# network interface type
set opt(mac)Mac/802_11 ;# MAC type
set opt(ifq)Queue/DropTail/PriQueue;# interface queue type
set opt(ll) LL ;# link layer type
set opt(ant)Antenna/OmniAntenna;# antenna model
set opt(ifqlen) 50 ;# max packet in ifq
set opt(nn) 1  ;# number of mobilenodes
set opt(adhocRouting)   DSDV   ;# routing protocol

set opt(cp)  ;# cp file not used
set opt(sc)  ;# node movement file.

set opt(x)  670;# x coordinate of topology
set opt(y)  670;# y coordinate of topology
set opt(seed)   0.0;# random seed
set opt(stop)   250;# time to stop simulation

set opt(ftp1-start)  100.0

set num_wired_nodes  2
#set num_bs_nodes   2  ; this is not really used here.

# ==

# check for boundary parameters and random seed
if { $opt(x) == 0 || $opt(y) == 0 } {
  puts No X-Y boundary values given for wireless topology\n
}
if {$opt(seed)  0} {
  puts Seeding Random number generator with $opt(seed)\n
  ns-random $opt(seed)
}

# create simulator instance
set ns_   [new Simulator]

# set up for hierarchical routing
$ns_ node-config -addressType hierarchical

AddrParams set domain_num_ 3   ;# number of domains
lappend cluster_num 2 1 1  ;# number of clusters in each domain
AddrParams set cluster_num_ $cluster_num
lappend eilastlevel 1 1 2 1;# number of nodes in each cluster
AddrParams set nodes_num_ $eilastlevel ;# of each domain

set tracefd  [open wireless3-out.tr w]
set namtrace [open wireless3-out.nam w]
$ns_ trace-all $tracefd
$ns_ namtrace-all-wireless $namtrace $opt(x) $opt(y)

# Create topography object
set topo   [new Topography]

# define topology
$topo load_flatgrid $opt(x) $opt(y)

# create God
#   2 for HA and FA
create-god [expr $opt(nn) + 2]

#create wired nodes
set temp {0.0.0 0.1.0}   ;# hierarchical addresses
for {set i 0} {$i  $num_wired_nodes} {incr i} {
set W($i) [$ns_ node [lindex $temp $i]]
}

# Configure for ForeignAgent and HomeAgent nodes
$ns_ node-config -mobileIP ON \
 -adhocRouting $opt(adhocRouting) \
 -llType $opt(ll) \
 -macType $opt(mac) \
 -ifqType $opt(ifq) \
 -ifqLen $opt(ifqlen) \
 -antType $opt(ant) \
 -propType $opt(prop) \
 -phyType $opt(netif) \
 -channelType $opt(chan) \
 -topoInstance $topo \
 -wiredRouting ON \
 -agentTrace ON \
 -routerTrace OFF \
 -macTrace OFF

# Create HA and FA
set HA [$ns_ node 1.0.0]
set FA [$ns_ node 2.0.0]
$HA random-motion 0
$FA random-motion 0

# Position (fixed) for base-station nodes (HA  FA).
$HA set X_ 1.
$HA set Y_ 2.
$HA set Z_ 0.

$FA set X_ 650.
$FA set Y_ 600.
$FA set Z_ 0.

# create a mobilenode that would be moving between HA and FA.
# note address of MH indicates its in the same domain as HA.
$ns_ node-config -wiredRouting OFF

set MH [$ns_ node 1.0.1]
set node_(0) $MH
set HAaddress [AddrParams addr2id [$HA node-addr]]
[$MH set regagent_] set home_agent_ $HAaddress

# movement of the MH
$MH set Z_ 0.
$MH set Y_ 2.
$MH set X_ 2.

# MH starts to move towards FA
$ns_ at 100. $MH setdest 640. 610.
20.
# goes back to HA
$ns_ at 200. $MH setdest 2. 2.
20.

# create links between wired and BaseStation nodes
$ns_ duplex-link $W(0) $W(1) 5Mb 2ms DropTail
$ns_ duplex-link $W(1) $HA 5Mb 2ms DropTail
$ns_ duplex-link $W(1) $FA 5Mb 2ms DropTail

$ns_ duplex-link-op $W(0) $W(1) orient down
$ns_ duplex-link-op $W(1) $HA orient left-down
$ns_ duplex-link-op $W(1) $FA orient right-down

# setup TCP connections between a wired node and the MobileHost

set tcp1 [new Agent/TCP]
$tcp1 set class_ 2
set sink1 [new Agent/TCPSink]
$ns_ attach-agent $W(0) $tcp1
$ns_ attach-agent $MH 

[ns] PMIPv6 and MIH

2009-04-12 Thread Lynoh MaGee


Hello,

Does anyone have an idea of how to make PMIPv6 to be an MIH user in NS-2. That 
is, how to make PMIPv6 work with the MIH (Media Independent Handover) services.

Thank you

_
More than messages–check out the rest of the Windows Live™.
http://www.microsoft.com/windows/windowslive/


[ns] how to use Normal loss distribution

2009-04-12 Thread waqas javed

Hi,

  Can you tell me how to creat normal(gaussian) packet loss in ns2.

thanks

waqas


[ns] Fw: make error

2009-04-12 Thread mohamed saad



--- On Tue, 4/7/09, mohamed saad mohammed2742...@yahoo.com wrote:


From: mohamed saad mohammed2742...@yahoo.com
Subject: make error
To: nsusers ns-users@isi.edu
Date: Tuesday, April 7, 2009, 4:08 AM







salam alikom
how are u
 
i need a help from u
when i recompile ns2 to reflect changes that i made in ns2 files by typing make 
clean
and make in ns2 directory appear to me the following error:
 
std -DUSE_SINGLE_ADDRESS_SPACE -Drng_test  -I. -I. 
-I/home/mohammed_saad/1/ns-allinone-2.32/tclcl-1.19 
-I/home/mohammed_saad/1/ns-allinone-2.32/otcl-1.13 
-I/home/mohammed_saad/1/ns-allinone-2.32/include 
-I/home/mohammed_saad/1/ns-allinone-2.32/include -I/usr/include/pcap -I./tcp 
-I./sctp -I./common -I./link -I./queue -I./adc -I./apps -I./mac -I./mobile 
-I./trace -I./routing -I./tools -I./classifier -I./mcast 
-I./diffusion3/lib/main -I./diffusion3/lib -I./diffusion3/lib/nr 
-I./diffusion3/ns -I./diffusion3/filter_core -I./asim/ -I./qs -I./diffserv 
-I./satellite -I./wpan -o trace/cmu-trace.o trace/cmu-trace.cc 
In file included from trace/cmu-trace.cc:46: 
../dsr/hdr_sr.h:292:8: warning: extra tokens at end of #endif directive 
trace/cmu-trace.cc: In member function `void CMUTrace::format_dsr(Packet*, 
int)': 
trace/cmu-trace.cc:446: error: `access' is not a member of `hdr_sr' 
make: *** [trace/cmu-trace.o] Error 1 
can u help me what i do to solve this error?
all regards
 
mohammed




  


[ns] error while building wimax NIST extension

2009-04-12 Thread Mariem Thaalbi

Hi,
i'installed ns 2.29.2 and the mobility NIST extension, under windows XP pack
2 via cygwin, my problem is when i try to add the wimax NIST extension, i
have this error:
wimax/scheduling/bsscheduler.cc:error: 60:syntax error before '*' token
wimax/scheduling/bsscheduler.cc:error:in virtual void  member
Bssscheduler::schedule
Please any help
thanks,


[ns] error while building NIST extension

2009-04-12 Thread Mariem Thaalbi

 Hello,
I'm building the mobility extension NIST of NS 2.29.2, under ubuntu 8.10,
but i had this error while the compilation (./configure ; make clean ;
make):  In file included from mac/mac-802_11.cc:63:
mac/mac-802_11.h:620: error: extra qualification ‘Mac802_11::’ on member
‘calFreq’
make: *** [mac/mac-802_11.o] Error 1
 Please help me


[ns] how to improve maodv

2009-04-12 Thread vaishali mandhare

Hi all,
I am m-tech. student and doing my project in ad-hoc routing.I was implement=
ed one paperperformance comparision of tcp and cbr in maodv.I want to imp=
rove or extend maodv which affect the perfomance of tcp and cbr, but i cant=
know which technique exist and which i use.Please help me regarding this .=
Waiting for your valuable replay.
 
vaishu


  Add more friends to your messenger and enjoy! Go to 
http://messenger.yahoo.com/invite/