Hi, there is a unique node ID generated by NS2 for the nodes during their creation. it's an int. and since a short int is 16 bits, an int is 32 bits, and a long int is 64 bits. i suppose by acceding the class Node in the c++ hierarchy and setting the "int nodeid_" member as "short int nodeid_", you will get what u want (NS2 will generate the id as short int (16 bits)). of course you have to recompile...
> Date: Sat, 4 Jan 2014 12:32:41 -0800 > From: mfare...@yahoo.com > To: ns-users@ISI.EDU > Subject: [ns] Help friends !!! > > > Hi, > I am working in a wire-based topology, and I need each node in the topology > to has a unique 16 bits ID. > > Actually I have a huge number of nodes in my topology. And I will use this 16 > bits ID in future work. Is there any way to do this in NS2. > > > Many thanks in advance > > Eng. Magdy