Geographic Adaptive Fidelity (GAF) is a protocol that can be used along with other protocols such as AODV, DSR etc.
Here I am providing steps to run GAF
One can look into the ../ns-2.35/tcl/test folder for already existing TCL files
GAF can run as follows
$ ns test-all-wireless-lan-gaf.tcl gaf
However this way doing can take very long time to complete the simulation. You may open the file and can change the simulation time to a small time (by default 800 seconds is the sim time).
The simulation traces will be available in temp.rands file.
You can also add nam trace file as follows
set namtrace [open $opt(tr).nam w]
$ns_ namtrace-all-wireless $namtrace $opt(x) $opt(y)
in TestSuite instproc init {} function
Once the simulation is completed, you can view the simulation through nam by typing the command as follows
nam temp.rands.nam
No comments:
Post a Comment