i have successfull do 1. Add NOAH as a new module (Noah/Noah.o) 2. Successfull get sdist.o and i place in in Ns-2.31/propagation/sdist.o (this is simpledistance) 3. when i run ns singlehop.tcl the error come out..
invalid command name "Propagation/sdist" while executing "Propagation/sdist create _o24 " invoked from within "catch "$className create $o $args" msg" invoked from within "if [catch "$className create $o $args" msg] { if [string match "__FAILED_SHADOW_OBJECT_" $msg] { delete $o return "" } global errorInfo error "class $..." (procedure "new" line 3) invoked from within "new $propType_" (procedure "_o3" line 29) (Simulator node-config line 29) invoked from within "$ns_ node-config -mobileIP OFF \ -adhocRouting NOAH \ -llType LL \ -macType Mac/802_11 \ ..." (file "singlehop.tcl" line 22) -- AZHAR MOHD ARIS (GS16917) Master in Computer Science Candidate (Distributed Computing) University Putra of Malaysia +^019.613.742.2 YM: azuan76
# # nodes: 10, max conn: 3, send rate: 0.0, seed: 0.0 # # 5.0 0 -> 3 exp 10000 500 # 0 connecting to 3 at time 5.0 #set udp_(0) [new Agent/UDP] #set null_(0) [new Agent/Null] #$udp_(0) set fid_ 0 #$null_(0) set fid_ 0 #$ns_ attach-agent $node_(0) $udp_(0) #$ns_ attach-agent $node_(2) $null_(0) #$ns_ connect $udp_(0) $null_(0) #$udp_(0) set packetSize_ 500 #set exp_(0) [new Application/Traffic/Exponential] #$exp_(0) attach-agent $udp_(0) #$exp_(0) set interval_ 0.020 #$exp_(0) set burst_time_ 2.0 #$exp_(0) set idle_time_ 0.5 #$exp_(0) set packetSize_ 500 #$ns_ at 5.0 "$exp_(0) start" #$ns_ at 120.0 "$exp_(0) stop" # 5.0 0 -> 3 tcp 10000 512 # 0 connecting to 3 at time 5.0 #set tcp_(1) [$ns_ create-connection TCP $node_(0) TCPSink $node_(3) 1] #$tcp_(1) set window_ 32 #$tcp_(1) set packetSize_ 512 #set ftp_(1) [new Application/FTP] #$ftp_(1) attach-agent $tcp_(1) #$ns_ at 5.0 "$ftp_(1) start" ##$ns_ at 920.0 "$ftp_(1) stop" #$ns_ at 1000.0 "$ftp_(1) stop" # 5.0 0 -> 3 udp 10000 1000 # 0 connecting to 3 at time 5.0 #set udp_(2) [new Agent/UDP] #set null_(2) [new Agent/Null] #$udp_(2) set fid_ 2 #$null_(2) set fid_ 2 #$ns_ attach-agent $node_(0) $udp_(2) #$ns_ attach-agent $node_(3) $null_(2) #$ns_ connect $udp_(2) $null_(2) #$udp_(2) set packetSize_ 1000 #set cbr_(2) [new Application/Traffic/CBR] #$cbr_(2) attach-agent $udp_(2) #$cbr_(2) set interval_ 5 #$cbr_(2) set packetSize_ 1000 ##$ns_ at 5.0 "$cbr_(2) start" ASM #$ns_ at 920.0 "$cbr_(2) stop" set tcp1 [new Agent/TCP] $tcp1 set class_ 2 set sink1 [new Agent/TCPSink] $ns_ attach-agent $node_(0) $tcp1 $ns_ attach-agent $node_(2) $sink1 $ns_ connect $tcp1 $sink1 set ftp1 [new Application/FTP] $ftp1 attach-agent $tcp1 $ns_ at 5.0 "$ftp1 start" $ns_ at 120.0 "$ftp1 stop" #Traffic to cause congestion in base station set udp [new Agent/UDP] $ns_ attach-agent $node_(0) $udp set null [new Agent/Null] $ns_ attach-agent $node_(2) $null $ns_ connect $udp $null $udp set fid_ 2 set cbr [new Application/Traffic/CBR] $cbr attach-agent $udp $cbr set type_ CBR $cbr set packet_size_ 1000 $cbr set rate_ 0.5mb $cbr set random_ false $ns_ at 0.1 "$cbr start" $ns_ at 120.0 "$cbr stop" # #Total sources/connections: 3/3 #