Re: [ns] assigning IP address to nodes

2008-11-05 Thread Ramy Eid
Hi Marlos, I am not sure but this linkhttp://tagus.inesc-id.pt/%7Epestrela/ns2/ns2_haddr_tips.html#_Toc121548868says that the addresses must be in the X.Y.Z format ? On Wed, Nov 5, 2008 at 14:03, Marlos Marques [EMAIL PROTECTED]wrote: Hello all, Currently, I am trying to implement an

Re: [ns] assigning IP address to nodes

2008-11-05 Thread Marlos Marques
Thanks Fernando, That's Ok, the node ID is used in the simulator core. But, it is possible assign real IP addresses to the nodes (not X.Y.Z hierarchical format)? I need the IP addresses because my protocol algorithm does some calculations with them. As a matter of fact, it is not so important IP

[ns] assigning IP address to nodes

2008-11-05 Thread Marlos Marques
Hello all, Currently, I am trying to implement an application layer multicast algorithm using NS2. For this purpose I need to assign IP address to every node in NS2. I checked out the NS2 nodes may have hierarchical routing addressing which is similar to IP addressing. But, I also found the addr

Re: [ns] assigning IP address to nodes

2008-11-05 Thread Marlos Marques
Thanks Rami, I read that link too. That is the hierarchical format in NS. It is like IP addressing but not the same. It uses 3 levels of hierarchy because optimum results were found with this value (The NS Manual). But I need assign real IP addresses to the nodes because my protocol algorithm

Re: [ns] assigning IP address to nodes

2008-11-05 Thread Sidney Doria
The best of NS-2 is its flexibility. If you didn't find a trivial solution to assign a simple IP to a node, you can add a new attribute to an inherited class of node. You can simply bind this new attribute in your TCL script and assign what IP you want on the node you want. The new atrribute can

Re: [ns] assigning IP address to nodes

2008-11-05 Thread Arturo Servin
If you are working with your code in TCL may be you can make a map Node_ID (from ns) to an IP address in your TCL script. If you are working in C++ you can do what Sidney proposes. Either way you have a way to do it, may be not trivial but definitely possible. -as

Re: [ns] assigning IP address to nodes

2008-11-05 Thread Marlos Marques
Thank you very much guys. I was considering if those structures exist in NS, in some way they are ready for use. I wouldn't like to reinvent the wheel :) So, any link/example/source would be *much* appreciated. Thanks again. []s, Marlos. On Wed, Nov 5, 2008 at 1:29 PM, Arturo Servin [EMAIL