[ns] Doubt regarding running cc program and NAM

2007-01-05 Thread Swalaxmi Pandit

Hi,

I am trying to run a sample TCL program(example.tcl) in ns2.
The program is running smoothly but I am unable to see the output in nam and
xgraph.
For NAM,it is showing couldn't execute "nam": no such file or directory.
For xgraph,it is showing couldn't execute "xgraph": no such file or
directory.
I have included the paths for both NAM and xgraph in bashrc file.


I have one more doubt.
Can you just give me the procedure to link C++ program and TCL scripts and
run them succesfully?

I want to run mac-802_11.cc program from mac folder in ns-2.30. and want to
see the output. I am using fedora 5 and ns2.30.
Will you just tell me the step by step procedure to simulate the output?

This is my university project. Please try to clarify the doubts.
Thanks & Regards,
Swalaxmi


Re: [ns] Fwd: segmentation fault in wired cum wireless scenario usingaodv+ help

2007-01-05 Thread Pedro Vale Estrela


http://tagus.inesc-id.pt/~pestrela/ns2/ns2_haddr_tips.html#_Toc121548870



> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of subramani
> Sent: quinta-feira, 4 de Janeiro de 2007 18:09
> To: ns list
> Subject: [ns] Fwd: segmentation fault in wired cum wireless scenario
> usingaodv+ help
> 
> 
>  hi all,
> i have installed aodv+ for gateway discovery on ns-2.28 (redhat 9)
> aodv+ was in ns2 contributed code section
> 
> it worked everything fine for all the example scripts provided..
> but when i changed the number of nodes in the given example
> wired_wireless_ex.tcl
> i received a segmentation fault
> 
> i don't know wheres the fault .please atleast help me how to debug ns2
> scripts containing
> segmentation faults
> 
> *
> here is the complete code
> **
> #try.tcl
> 
> set opt(namfile) out.nam
> set opt(tracefile)   out.tr
> set opt(x)500;#x dimension of the
> topography
> set opt(y)   500;#y dimension of the
> topography
> set opt(wirelessNodes)   6;  #mobile nodes
> set opt(wiredNodes)  8;  #hosts and routers
> set opt(gatewayNodes)2;  #gateways
> 
> set val(stop) 60.0;   #simulation time
> set val(start-src)   1
> set val(stop-src)50
> 
> set opt(gw_discovery)reactive; #gateway discovery method
> # ==
> 
> #---
> #Initialize Global Variables
> #---
> #create a simulator object
> set ns [new Simulator]
> $ns color 0 Brown
> 
> #
> #Define The Hierachial Topology Structure
> #
> $ns node-config -addressType hierarchical
> #Nbr of domains
> AddrParams set domain_num_ 3
> #Nbr of clusters (=subdomains) in each domain
> lappend clusterNbr 2 2 1
> AddrParams set cluster_num_  $clusterNbr
> #Nbr of nodes in each cluster
> lappend eilastlevel 3 2 4 4 3
> AddrParams set nodes_num_ $eilastlevel
> 
> ##
> 
> #create trace objects for ns and nam
> $ns use-newtrace
> set nstrace [open $opt(tracefile) w]
> $ns trace-all $nstrace
> 
> set namtrace [open $opt(namfile) w]
> $ns namtrace-all-wireless $namtrace $opt(x) $opt(y)
> 
> 
> #create a topology object and define topology (500mx500m)
> set topo [new Topography]
> $topo load_flatgrid $opt(x) $opt(y)
> 
> #Choose method for gateway discovery
> if {$opt(gw_discovery) == "proactive"} {
> Agent/AODV set gw_discovery 0
> }
> if {$opt(gw_discovery) == "hybrid"} {
> Agent/AODV set gw_discovery 1
> }
> if {$opt(gw_discovery) == "reactive"} {
> Agent/AODV set gw_discovery 2
> }
> #create wired nodes
> set temp {2.0.0 2.0.1 2.0.2 2.0.3 2.1.4 2.1.5 2.1.6 2.1.7}
> for {set i 0} {$i < $opt(wiredNodes)} {incr i}  {
> set host($i) [$ns node [lindex $temp $i]]
> }
> 
> #create God (General Operations Director)
> create-god [expr $opt(wirelessNodes)+$opt(gatewayNodes)]]
> 
> 
> #--
> #Configure for Gateway and Mobile Nodes
> #--
> #Use hierarchical addresses for GWs and MNs
> 
> #configure for mobile nodes and gateways
> $ns node-config -adhocRouting AODV
> $ns node-config -llType LL
> $ns node-config -macType Mac/802_11
> $ns node-config -ifqType Queue/DropTail/PriQueue
> $ns node-config -ifqLen  50
> $ns node-config -antType Antenna/OmniAntenna
> $ns node-config -propType Propagation/TwoRayGround
> $ns node-config -phyType  Phy/WirelessPhy
> $ns node-config -topoInstance $topo
> $ns node-config -channel [new Channel/WirelessChannel]
> $ns node-config -agentTrace ON
> $ns node-config -routerTrace ON
> $ns node-config -macTrace ON
> $ns node-config  -movementTrace OFF
> 
> #3
> 
> #configure for gateways
> $ns node-config -wiredRouting ON
> #create gateway
> set gw(0) [$ns node 0.0.0]
> #set initial coordinates
> $gw(0) set X_ 100.0
> $gw(0) set Y_ 250.0
> $gw(0) set Z_ 0.0
> $ns at 0.00 "$gw(0) setdest 100 250 20"
> try
> set gw(1) [$ns node 1.0.0]
> #set initial coordinates
> $gw(1) set X_ 500.0
> $gw(1) set Y_ 250.0
> $gw(1) set Z_ 0.0
> $ns at 0.00 "$gw(1) setdest 500 250 20"
> 
> 
> #Define node initial position in nam
> 
> 
> 
> #configure for mobile nodes
> $ns node-config -wiredRouting OFF
> #create mobile nodes in the same domain as gw(0)
> set temp {0.0.1 0.0.2 0.1.0 0.1.1 1.0.1 1.0.2}
> for {set i 0} {$i < $opt(wirelessNodes)} {incr i} {
> set mobile($i) [$ns node [lindex $temp [expr $i]]]
> if {$i<4} {
> $mobile($i) base-station [AddrParams addr2id [$gw(0) node-addr]]
> }  else {
> $mobile($i) base-station [AddrParams addr2id [$gw(1) node-addr]]
> }
> 
> }
> 
> $mobile(0) set X_ 10
> $mobile(0) set Y_ 200
> $mobile(0) set Z_ 0.0
> 

[ns] RE : rayleigh fading channel

2007-01-05 Thread molo badji


Hi,
   
  I read somewhere (I am not sure but I think the authors was Günes and 
Vlahovic) that it isn't possible to use stochastic propagation models with Ns-2 
which only supports open space propagation models.
   
  Molo.

bhaskar sardar <[EMAIL PROTECTED]> a écrit : 
  
I want to model wireless channels according to rayleigh fading channel. But
I have not find any such support in NS-2. Could any one tell me how can i
use rayleigh fading model in ns2.


 __
Do You Yahoo!?
En finir avec le spam? Yahoo! Mail vous offre la meilleure protection possible 
contre les messages non sollicités 
http://mail.yahoo.fr Yahoo! Mail 


Re: [ns] Start a simulation with a full arp table

2007-01-05 Thread Pedro Vale Estrela

That is pretty much impossible because the arp cache has space only for 1
cached entry.

However, it can be possible to disable the arp code altoghether, by making
it return immediately with the desired MAC address.

Pedro Vale Estrela

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of Matthew Faulkner
> Sent: sexta-feira, 5 de Janeiro de 2007 10:18
> To: ns-users@ISI.EDU
> Subject: [ns] Start a simulation with a full arp table
> 
> 
> Hey all,
> 
> 
> Maybe a simple question, but does anyone know how to start a
> simulation with a full ARP table such that no ARP requests or replies
> are needed.
> 
> Thanks
> 
> Matt




Re: [ns] flow monitor trace file + end-to-end delay & delay jitter

2007-01-05 Thread Renata Vidal

What mean "delay from the archive"? With this site
http://140.116.72.80/~smallko/ns2/tool_en.htm you can measure all of
them based on the trace file.

On 1/5/07, Diana Asnani <[EMAIL PROTECTED]> wrote:
>
> Hi folks,
>
> I would like to know if there are sample tcl scripts to measure end-to-end
> delay and delay jitter from the flow monitor trace files? I had only found a
> script on measuring delay from the archives. Thanks a lot !
>
> Diana
> --
> visit my blog at http://sawkal.blogspot.com
>


-- 
Renata Vidal
"Triste é o destino de quem tenta vencer as batalhas e ter sucesso nos
ataques sem cultivar o espírito da iniciativa (A Arte da Guerra – SUN
TSU – pg 102)"



[ns] Start a simulation with a full arp table

2007-01-05 Thread Matthew Faulkner

Hey all,


Maybe a simple question, but does anyone know how to start a
simulation with a full ARP table such that no ARP requests or replies
are needed.

Thanks

Matt



[ns] rayleigh fading channel

2007-01-05 Thread bhaskar sardar

 I want to model wireless channels according to rayleigh fading channel. But
I have not find any such support in NS-2. Could any one tell me how can i
use rayleigh fading model in ns2.