Sample ns scripts

Sample scripts include:
Read and understand these scripts, then run them and see if your understanding is correct.
  $ ns script.tcl

References: