On the event of requirement of more bits to the address space, the expanded address API may be used as:
$ns set-address-format expanded
This expands the address space to 30 bits, allocating 22 higher bits to node-id and lower 8 bits to port-id.