Re: [ns] help needed
this site can help you hpds.ee.ncku.edu.tw/~smallko/ns2/ns2.htm Best wishes; Asma ___ New Yahoo! Mail is the ultimate force in competitive emailing. Find out more at the Yahoo! Mail Championships. Plus: play games and win prizes. http://uk.rd.yahoo.com/evt=44106/*http://mail.yahoo.net/uk
[ns] Help needed on RSVP !
Hi ;; I try to RSVP implementation from Mr. Alexander Sayenko, but in the make step I get this error: g_test -I. -I/home/asma/ns-allinone-2.28/tclcl-1.16 -I/home/asma/ns-allinone-2.2 8/otcl-1.9 -I/home/asma/ns-allinone-2.28/include -I/home/asma/ns-allinone-2.28/i nclude -I/usr/include/pcap -I./tcp -I./sctp -I./common -I./link -I./queue -I./ad c -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./diff usion3/ns -I./diffusion3/filter_core -I./asim/ -I./qs -I./diffserv -I./mac/802_1 1e -I./wpan -o rsvp/rsvp-link.o rsvp/rsvp-link.cc rsvp/rsvp-link.cc: In constructor `RSVPChecker::RSVPChecker()': rsvp/rsvp-link.cc:47: error: call of overloaded `bind(const char[5], nsaddr_t* )' is ambiguous /home/asma/ns-allinone-2.28/tclcl-1.16/tclcl.h:182: error: candidates are: void TclObject::bind(const char*, unsigned int*) /home/asma/ns-allinone-2.28/tclcl-1.16/tclcl.h:183: error: void TclObject::bind(const char*, int*) make: *** [rsvp/rsvp-link.o] Error 1 I am using ns-allinone-2.28 on the Cygwin environment. any advice??!! Sincerely, Asma >Hi > >I support the following implementation: >>http://www.cc.jyu.fi/~sayenko/src/ns-2.28-rsvp2.diff.gz. The patch also >>installs the test scripts in tcl/ex/rsvp > >Sincerely, >Alexander Sayenko >(PhD) >Assistant >Telecommunication laboratory, MIT department >University >of Jyvaskyla, Finland > > >> >> >> >> Hi all! >> >> IS any of u ppl >working on RSVP using NS-2??? >> If so, then do send me some example codes >or some links where I can get some direction about where shd I start 4m?? >> > >> Thanks in advance, >> Deepti. >> >> >> >- >> Jiyo cricket on Yahoo! India cricket >>> Yahoo! Messenger Mobile Stay in touch with your buddies all the time. Send instant messages to your online friends http://uk.messenger.yahoo.com
[ns] need help with TKN 802.11e
Hi I am using the TKN extension for WLAN 802.11e EDCF But when trying the example included in the package multi_udpflows.tcl # # globals and flags # set ns [new Simulator] set AKAROA 0 # #number of nodes # set num_wired_nodes 3 set num_mobile_nodes 4 set num_bs_nodes 1 ;# number of base stations set num_nodes [expr $num_wired_nodes + $num_mobile_nodes + $num_bs_nodes] set bs_id $num_wired_nodes # # Parameter for wireless nodes # 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_11e ;# MAC type set opt(ifq)Queue/DTail/PriQ ;# interface queue type set opt(ifqlen) 50 set opt(ll) LL ;# link layer type set opt(ant)Antenna/OmniAntenna;# antenna model set opt(ifqlen) 50;# max packet in ifq set opt(adhocRouting) DSDV ;# routing protocol set opt(x) 670 ;# X dimension of the topography set opt(y) 670 ;# Y dimension of the topography # # set up for hierarchical routing # (needed for routing over a basestation) # $ns node-config -addressType hierarchical AddrParams set domain_num_ 2 ;# domain number lappend cluster_num 1 1 ;# cluster number for each domain AddrParams set cluster_num_ $cluster_num lappend eilastlevel $num_wired_nodes [expr $num_mobile_nodes + $num_bs_nodes] ;# number of nodes for each cluster AddrParams set nodes_num_ $eilastlevel # #Open the nam trace file # #if {$AKAROA==0 } { #set nf [open out.nam w] set nf [open /dev/null w] $ns namtrace-all-wireless $nf $opt(x) $opt(y) set ntr [open out.tr w] $ns trace-all $ntr #} set chan [new $opt(chan)] set topo [new Topography] $topo load_flatgrid $opt(x) $opt(y) # Create God create-god [expr $num_mobile_nodes + $num_bs_nodes] # # creating wired nodes # for {set i 0} {$i < $num_wired_nodes} {incr i} { set W($i) [$ns node 0.0.$i] puts "wired node $i created" } # # creating base station # $ns node-config -adhocRouting $opt(adhocRouting) \ -llType $opt(ll) \ -macType $opt(mac) \ -ifqType $opt(ifq) \ -ifqLen $opt(ifqlen) \ -antType $opt(ant) \ -propType $opt(prop)\ -phyType $opt(netif) \ -channel $chan \ -topoInstance $topo \ -wiredRouting ON \ -agentTrace OFF \ -routerTrace OFF \ -macTrace OFF\ -movementTrace OFF set BS(0) [$ns node 1.0.0] $BS(0) random-motion 0 puts "Base-Station node $bs_id created" #provide some co-ord (fixed) to base station node $BS(0) set X_ 1.0 $BS(0) set Y_ 2.0 $BS(0) set Z_ 0.0 # # creating mobile nodes # $ns node-config -wiredRouting OFF for {set i 0} {$i < $num_mobile_nodes} {incr i} { set wl_node_($i) [$ns node 1.0.[expr $i + 1]] $wl_node_($i) random-motion 0;# disable random motion puts "wireless node $i created ..." $wl_node_($i) base-station [AddrParams addr2id [$BS(0) node-addr]] $wl_node_($i) set X_ [expr $i * 10] $wl_node_($i) set Y_ [expr $i * 10] $wl_node_($i) set Z_ 0.0 } # linking of root to base-station node $ns duplex-link $W(0) $BS(0) 10Mb 2ms DropTail # linking of wired nodes to root node for {set i 1} {$i < $num_wired_nodes} {incr i} { $ns duplex-link $W($i) $W(0) 10Mb 2ms DropTail } # telling akaroa which macs to observe set observed_queues 4 lappend observe_list 2 set numconnections [llength $observe_list] if {$AKAROA == 1} { set ak [new Akaroa] $ak AkDeclareParameters [expr $numconnections * $observed_queues] puts "numparams= $numconnections" #$ak AkObservation 1 $througput #$ak AkObservation 2 $througput #$ak AkObservation 3 $througput } #$ns duplex-link $W([expr $num_wired_nodes - 1]) $BS(0) 10Mb 2ms DropTail set src_udp0 [new Agent/UDP] $src_udp0 set class_ 0 $src_udp0 set prio_ 0 set dst_udp0 [new Agent/Null] $ns attach-agent $wl_node_(1) $src_udp0 $ns attach-agent $W(1) $dst_udp0 set app [new Application/Traffic/CBR] $app attach-agent $src_udp0 $ns connect $src_udp0 $dst_udp0 $ns at 0.0 "$app start" set src_udp1 [new Agent/UDP] $src_udp1 set class_ 1 $src_udp1 set prio_ 1 set dst_ud