12.07.2015 Views

The ns Manual (formerly ns Notes and Documentation)1 - NM Lab at ...

The ns Manual (formerly ns Notes and Documentation)1 - NM Lab at ...

The ns Manual (formerly ns Notes and Documentation)1 - NM Lab at ...

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

$<strong>ns</strong> duplex-link $host0_if1 $host1_if1 .5Mb 200ms DropTailset sctp0 [new Agent/SCTP]$<strong>ns</strong> multihome-<strong>at</strong>tach-agent $host0_core $sctp0set trace_ch [open trace.sctp w]$sctp0 set trace_all_ 1$sctp0 trace rto_$sctp0 trace errorCount_$sctp0 <strong>at</strong>tach $trace_ch;# print all on a single trace eventset sctp1 [new Agent/SCTP]$<strong>ns</strong> multihome-<strong>at</strong>tach-agent $host1_core $sctp1$<strong>ns</strong> connect $sctp0 $sctp1set ftp0 [new Applic<strong>at</strong>ion/FTP]$ftp0 <strong>at</strong>tach-agent $sctp0$sctp0 set-primary-destin<strong>at</strong>ion $host1_if0;# set primary before associ<strong>at</strong>ion starts$<strong>ns</strong> <strong>at</strong> 7.5 "$sctp0 set-primary-destin<strong>at</strong>ion $host1_if1";# change primary$<strong>ns</strong> <strong>at</strong> 7.5 "$sctp0 print cwnd_" ;# print all dests’ cwnds <strong>at</strong> time 7.5$<strong>ns</strong> <strong>at</strong> 0.5 "$ftp0 start"$<strong>ns</strong> <strong>at</strong> 9.5 "$ftp0 stop"$<strong>ns</strong> <strong>at</strong> 10.0 "finish"$<strong>ns</strong> run307

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!