> I wanted to know if I can set the the maximum no of packets to be sent. I > want to send lets say 100 packets and then shutdown. How do I do this? You can use the "produce" command as follows: $ns_ at 23 "$ftp(0) produce 100" Hope this helps. --TJ