next up previous contents index
Next: 14.2 The Hierarchical Address Up: 14. The (Revised) Addressing Previous: 14. The (Revised) Addressing

14.1 The Default Address Format

The default settings allocates 8 lower bits for port-id, 1 higher bit for mcast and the rest 7 higher bits for node-id. The procedure to set the address format in default mode is called during initialisation of the simulator as:

# The preamble
set ns [new Simulator]                  # initialise the simulation;

It can also be called explicitly set as:

\$ns set-address-format def