Hello ns users, I am not able to simulate SCTP protocol for the delay of 800 seconds, i am providing my TCL script please help regarding simulation using point to point communication using single stream, multistream and multihoming and where to modify in the code plsase tell me it is little bit urgent for submitting papaer for one of the conference
//this is my TCL SCRIPT Trace set show_sctphdr_ 1 set ns [new Simulator] set nf [open sctp.nam w] $ns namtrace-all $nf set allchan [open all.tr w] $ns trace-all $allchan proc finish {} { global ns nf allchan set PERL "/usr/bin/perl" set USERHOME [exec env | grep "^HOME" | sed /^HOME=/s/^HOME=//] set NSHOME "/NetworkSimulator/ns-allinone-2.32/ns-2.32/sctp/" set SETFID "/NetworkSimulator/ns-allinone-2.32/ns-2.32/bin/set_flow_id" set XGRAPH "/NetworkSimulator/ns-allinone-2.32/xgraph-12.1/xgraph" set RAW2XG_SCTP "/NetworkSimulator/ns-allinone-2.32/ns-2.32/bin/raw2xg-sctp" $ns flush-trace close $nf close $allchan exec nam sctp.nam & exit 0 } set host0_core [$ns node] set host0_if0 [$ns node] set host0_if1 [$ns node] $host0_core color Red $host0_if0 color Red $host0_if1 color Red $ns multihome-add-interface $host0_core $host0_if0 $ns multihome-add-interface $host0_core $host0_if1 set host1_core [$ns node] set host1_if0 [$ns node] set host1_if1 [$ns node] $host1_core color Blue $host1_if0 color Blue $host1_if1 color Blue $ns multihome-add-interface $host1_core $host1_if0 $ns multihome-add-interface $host1_core $host1_if1 set router [$ns node] $ns duplex-link $host0_if0 $router .5Mb 800s DropTail $ns duplex-link $host0_if1 $router .5Mb 800s DropTail $ns duplex-link $host1_if0 $router .5Mb 800s DropTail $ns duplex-link $host1_if1 $router .5Mb 800s DropTail set sctp0 [new Agent/SCTP] $ns multihome-attach-agent $host0_core $sctp0 $sctp0 set fid_ 0 $sctp0 set debugMask_ -1 $sctp0 set debugFileIndex_ 0 $sctp0 set mtu_ 1500 $sctp0 set dataChunkSize_ 1468 $sctp0 set numOutStreams_ 1 $sctp0 set oneHeartbeatTimer_ 0 # each dest has its own heartbeat timer set trace_ch [open trace.sctp w] $sctp0 set trace_all_ 1 # trace them all on oneline $sctp0 trace cwnd_ $sctp0 trace rto_ $sctp0 trace errorCount_ $sctp0 attach $trace_ch set sctp1 [new Agent/SCTP] $ns multihome-attach-agent $host1_core $sctp1 $sctp1 set debugMask_ -1 $sctp1 set debugFileIndex_ 1 $sctp1 set mtu_ 1500 $sctp1 set initialRwnd_ 131072 $sctp1 set useDelayedSacks_ 1 $ns color 0 Red $ns color 1 Blue $ns connect $sctp0 $sctp1 set ftp0 [new Application/FTP] $ftp0 attach-agent $sctp0 $sctp0 set-primary-destination $host1_if0 # change primary $ns at 7.5 "$sctp0 set-primary-destination $host1_if1" $ns at 7.5 "$sctp0 print cwnd_" $ns at 0.5 "$ftp0 start" $ns at 12.0 "finish" $ns run This code is not working because of 800 seconds of delay. please help me it is little bit urgent and one more problem is Throughput generation plot i,e throughput vs RTT using NS-2 regd. Venkatesh N B IRSO Satellite Center, Bangalore 17 venkatesh N B #331 judicial layout, 22 nd A main, 28th B Creoss, GKVK Post, Bangalore -560065 ph: 080-28564157