15.4 Commands at a glance
The following is a list of address-format related commands used in simulation
scripts:
$ns_ set-address-format def
This command is used internally to set the address format to its default value
of 31 lower bits for port-id, 1 higher bit for mcast and the rest 30 higher bits
for node-id. However this API has been replaced by the new node API
$ns_ node-config -addressType flat.
$ns_ set-address-format hierarchical
This command is used to set the address format to the hierarchical configuration
that consists of 3 levels and 31 lower bits
for port-id. However this API has been replaced by the new node API
$ns_ node-config -addressType hierarchical.
$ns_ set-address-format hierarchical levels args
This command is used to set the address format to a specific hierarchical
setting. The <levels> indicate the number of levels of hierarchy in the addressing
structure, while the args define number of bits for each level. An example
would be $ns_ set-address-format hierachical 3 4 4 16 , where 4, 4 and
16 defines the number of bits to be used for the address space in level 1 , 2
and 3 respectively.
Tom Henderson
2011-11-05