[ns] learn about SETDEST
hi all, i am newbie with ns2 i really need your help about using setdest i had follow this step, but as the result is 1. Go to ns directory and run "configure" (you probably have done that already while building ns). This creates a makefile for setdest. 2.Go to indep-utils/cmu-scen-gen/setdest. Run "make" , which first creates a stand-alone object file for ~ns/rng.cc (the stand-alone version doesnot use Tclcl libs) and then creates the executable setdest. 3. Run setdest with arguments ./setdest -n 20 -p 2.0 -s 10.0 -t 200 -x 500 -y 500 > scen-20-test but as the result is ./setdest: ./setdest: cannot execute binary file could you help me to sole this problem? and also i want to ask how to use this scen-20-test file in my .tcl file? thank you so much for your attention and help regards, cinthia
[ns] Problem with rng.cc on Xeon processors
Dear all, my name is Mario Fanelli, and I'm writing this mail to ask your help with a problem in ns 2.34. I've already tested my simulations on my laptop, and everything seems ok. But when I try to run the simulations on our cluster, all my simulations end with this error: num_nodes is set 100 INITIALIZE THE LIST xListHead INITIALIZE THE LIST xListHead Starting Simulation... ERROR: Seed[0] >= 4294967087, Seed is not set. Apparently, the error comes rng.cc class due to invalid seed initiialization. The principal problem is that I do not have this error on my laptop, and I cannot run any debug on the cluster due to the absence of any debugging tool. Every cluster node has a Intel(R) Xeon(R) CPU X3220 @ 2.40GHz processor with 8 GB of ram. Do you have any ideas about the above problem? Best regards, Mario Fanelli
[ns] "Direction for pkt-flow not specified; Sending pkt up the stack on default" problem "wlan with one AP"
Hi every body; I have to do a networks "wlan" with one AP and 6 nodes. But when running this script below, I found this problem "Direction for pkt-flow not specified; Sending pkt up the stack on default." # Define Options set val(chan) Channel/WirelessChannel ;# channel type set val(prop) Propagation/TwoRayGround ;# radio-propagation model set val(netif) Phy/WirelessPhy ;# network interface type set val(mac) Mac/802_11 ;# MAC type set val(ifq) Queue/DropTail/PriQueue ;# interface queue type set val(ll) LL ;# link layer type set val(ant) Antenna/OmniAntenna ;# antenna model set val(ifqlen) 50 ;# max packet in ifq set val(nn) 7 ;# number of mobile nodes set val(rp) DumbAgent ;# routing protocol set val(x) 600 ;# X dimension of topography set val(y) 600 ;# Y dimension of topography set val(stop) 50 ;# time of simulation end #DSSS (IEEE802.11b) Mac/802_11 set SlotTime_ 0.20 ;# 20us Mac/802_11 set SIFS_ 0.10 ;# 10us Mac/802_11 set PreambleLength_ 144 ;# 144 bit Mac/802_11 set PLCPHeaderLength_ 48 ;# 48 bits Mac/802_11 set PLCPDataRate_ 1.0e6 ;# 1Mbps Mac/802_11 set dataRate_ 11.0e6 ;# 11Mbps Mac/802_11 set basicRate_ 1.0e6 ;# 1Mbps Mac/802_11 set RTSThreshold_ 3000 ;# Disable RTS/CTS # frequency is 2.4 GHz Phy/WirelessPhy set freq_ 2.4e+9 # Main Program set ns [new Simulator] set tracefile [open Roaming-out.tr w] set namtrace [open Roaming-out.nam w] $ns trace-all $tracefile $ns namtrace-all-wireless $namtrace $val(x) $val(y) $ns color 1 Blue # Set up topography object set topo [new Topography] $topo load_flatgrid $val(x) $val(y) # Create god (node) create-god $val(nn) # Create channel set chan_1_ [new $val(chan)] # Configure the wireless nodes $ns node-config -adhocRouting $val(rp) \ -llType $val(ll) \ -macType $val(mac) \ -ifqType $val(ifq) \ -ifqLen $val(ifqlen) \ -antType $val(ant) \ -propType $val(prop) \ -phyType $val(netif) \ -topoInstance $topo \ -agentTrace OFF \ -routerTrace OFF \ -macTrace ON \ -movementTrace ON \ -channel $chan_1_ for {set i 0} {$i < $val(nn)} {incr i} { set node_($i) [$ns node] $node_($i) random-motion 0 ;# disable random motion set mac_($i) [$node_($i) getMac 0] $mac_($i) set RTSThreshold_ 3000 } #Set node_(0) and node_(1) as the APs set AP_ADDR1 [$mac_(0) id] $mac_(0) ap $AP_ADDR1 $mac_(0) ScanType PASSIVE $ns at 0.0 "$node_(0) label AP" #$node_(0) set BeaconInterval_ 0.2 $node_(0) set X_ 100.0 $node_(0) set Y_ 300.0 $node_(0) set Z_ 0.0 $node_(1) set X_ 180.0 $node_(1) set Y_ 250.0 $node_(1) set Z_ 0.0 $ns at 0.2 "$mac_(1) ScanType ACTIVE" $ns at 0.5 "$mac_(2) ScanType ACTIVE" $ns at 1.0 "$mac_(3) ScanType ACTIVE" $ns at 1.5 "$mac_(4) ScanType ACTIVE" $ns at 2.0 "$mac_(5) ScanType ACTIVE" $ns at 2.5 "$mac_(6) ScanType ACTIVE" $node_(2) set X_ 120.0 $node_(2) set Y_ 190.0 $node_(2) set Z_ 0.0 $node_(3) set X_ 210.0 $node_(3) set Y_ 210.0 $node_(3) set Z_ 0.0 $node_(4) set X_ 150.0 $node_(4) set Y_ 350.0 $node_(4) set Z_ 0.0 $node_(5) set X_ 80.0 $node_(5) set Y_ 450.0 $node_(5) set Z_ 0.0 $node_(6) set X_ 40.0 $node_(6) set Y_ 200.0 $node_(6) set Z_ 0.0 for {set i 1 } {$i < [expr $val(nn) - 1] } {incr i} { set rtp1($i) [new Agent/RTP] set null1($i) [new Agent/Null] $ns attach-agent $node_($i) $rtp1($i) $ns attach-agent $node_(0) $null1($i) $ns connect $rtp1($i) $null1($i) set cbr1($i) [new Application/Traffic/CBR] $cbr1($i) attach-agent $rtp1($i) $ns at 5.0 "$cbr1($i) start" } # Define node initial position in nam for {set i 0} {$i < $val(nn)} {incr i} { # 1 defines the node size for name $ns initial_node_pos $node_($i) 20 } # Telling nodes when the simulation ends for {set i 0} {$i < $val(nn)} {incr i} { $ns at $val(stop) "$node_($i) reset"; } # ending nam and the simulation $ns at $val(stop) "$ns nam-end-wireless $val(stop)" $ns at $val(stop) "stop" $ns at 50.1 "puts \"end simulation\" ; $ns halt" proc stop {} { global ns tracefile namtrace $ns flush-trace close $tracefile close $namtrace exec nam Roaming-out.nam & } # informative headers for CMUTracefile puts $tracefile "M 0.0 nn $val(nn) x $val(x) y $val(y) rp $val(rp)" puts $tracefile "M 0.0 prop $val(prop) ant $val(ant)" puts "Starting Simulation..." $ns run I can't figure the problem. The trace file has this format: D 5.0037500
[ns] Link state problem
hello im running link state routing protocol successfully that is rtproto ls here it uses only hop count to find the shortest path from src to dtn route.cc we can see that i want to find the shortest path from src to detn using bandwidth and delay(propagation and queuing delay) how to add delay and bandwidth to route.cc to find the shortest path. pls help me and guide me thanking all
[ns] connect two nodes with wireless base station
hello, i ask for help to manipulate a scenario in NS-2 in this scenario, i want to connect separates wired nodes with each other with wireless base station, in some how like this node node \ / BS ))) BS / \ node node is it possible to do that or there is another solution, Best regard __ | OTHMAN Ramzi| | Technicien réseaux informatiques, programmation,| | Tel : 99644844 | | Mail : ramzi-ra...@voila.fr | |_| Nouveau ! Partagez vos envies et découvrez les bons plans voyages des internautes sur http://forums.voila.fr/
[ns] how to implement directional antenna in NS2
I wanted to use directional antenna for my algorithm, Instead of omnidirectional antenna, So, how to implement directional antenna in NS2, or is there one which is already implement in ns2 package? If so how can I use it? any help is appreciated Thanks in advance kage