[ns] Changing the ns-lib.tcl file

Dalton Cézane daltoncezane at gmail.com
Mon Sep 21 15:32:41 PDT 2009


Hi, people.
I would like to know if I can change the ns-lib.tcl file (like below)
without be needed a lot of changes in all ns. I want to add a line to be
possible choose topology control protocols, like:

\$ns_ node-config -addressType hierarchical \bs
                   -adhocRouting AODV \bs
                   -topologyControl MyTopologyControlProtocolHere
                   -llType LL \bs
                   -macType Mac/802_11 \bs
                   -ifqType Queue/DropTail/PriQueue \bs
                   -ifqLen 50 \bs
                   -antType Antenna/OmniAntenna \bs
                   -propType Propagation/TwoRayGround \bs
                   -phyType Phy/WirelessPhy \bs
                   -topologyInstance \$topo \bs
                   -channel Channel/WirelessChannel \bs
                   -agentTrace ON \bs
                   -routerTrace ON \bs
                   -macTrace OFF \bs
                   -movementTrace OFF

Did anyone already do something like that? Can anyone give me some tips?

Thanks in advance!



-- 
=======================================================
Dalton Cézane - Voip UFCG: 1075-2005
Mestrando em Ciência da Computação (UFCG)
Bacharel em Ciência da Computação (UFCG)
Técnico em Informática (ETER)


More information about the Ns-users mailing list