next up previous contents index
Next: 15.2 Extensions made to Up: 15.1.7 Generation of node-movement Previous: 15.1.7.1 MobileNode Movement

   
15.1.7.2 Generating traffic pattern files

The examples for traffic patterns may be found in tcl/mobility/scene/cbr-50-{10-4-512, 20-4-512}.

The traffic generator is located under indep-utils/cmu-scen-gen/ and are called cbrgen.tcl and tcpgen.tcl. They may be used for generating CBR and TCP connections respectively.

To create CBR connecions, run

ns cbrgen.tcl [-type cbr|tcp] [-nn nodes] [-seed seed] 
              [-mc connections] [-rate rate]
To create TCP connections, run
ns tcpgen.tcl [-nn nodes] [-seed seed]
You will need to pipe the outputs from above to a cbr-* or a tcp-* file.




2000-08-24