You can assign ID as network address or you maintain this in application layer.
In case of Application layer, create your own application layer packet format and add a field with ID as destination. While sending packet from application layer you could add 1 as destination number in this field ...
Hi, If you are programming the nodes using TinyOS, you can inf act assign node IDs to every sensor node. Now if the received packet is intended for a specific node D, only that node will receive it, the others will simply ignore the packet!
Thanks Khandakar n Farooq.I think i should applu both ur answers. That to assign an id for each node. Then I write in my programming code that all nodes should send to node 1,
In order to be complitely network independant : ipv4 ipv6, I prefer to use the MAC address. And as a good thing the MAC address is part of the ipv6 address.