Sample ns scripts
Sample scripts include:
- basic-*.tcl: examples used in the lecture;
- tcp.tcl: create TCP connection on simple topology,
use nam to show animation;
- red.tcl: apply RED queuing disciplines, plot queue
statistics with x-graph;
- pudp.tcl: create both TCP and UDP traffic, use
nam to show animation and TCP variable tracing, use nam graph to show TCP
sequence plot.
Read and understand these scripts, then run them and see if your understanding
is correct.
$ ns script.tcl
References: