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