NS3 simple example program: 
 create a LAN with a number of devices and test them using echo:
 
 n1----n2----n3
 |            |
 echo        echo
 server      client