[ns] regarding the dynamic addressing for MANET in NS2

Erico Augusto ericosign at gmail.com
Sun Mar 22 16:31:53 PDT 2009


Hi Jeyapala and readers,

I'm working in something similar to Jeyapala issue. At a ns-2 node, IP
addresses are assigned at creation time. So, the IP address of the node is
its ID. For example, in a scenario with 30 nodes, node _28_ has IP 28(see
line below).

s 0.011891439 _28_ RTR  --- 3 TBRPF 60 [0 0 0 0] ------- [28:255 -1:255 32
0] [1 0 [HELLO 0]]

^                                                               ^
                    (NODE ID)                                         (IP
SOURCE ADDRESS)

If I understood correclty, Jeyapala needs to assign 2 different IP addresses
to each node (is that right friend?)
That was my issue also. The difference: I need to assign one IP address for
each interface, in a multi-interface scenario.
Does anybody develop something like that: How to assigned two different IP
address to the same ns-2 node?

Thank you,

Erico.



2009/3/22 jeyapala nagasatish <nagasatishchj at yahoo.co.in>

>
> Hi users and friends,
>   I am working on interconnectivity of fixed networks with MANET. Inorder
> to have address autoconfiguration, I should have global address and a local
> address. But, in NS2 the addressing is differnet and follows
> domain.cluster.node representation which is static given at the time of node
> creation. What I needed is dynamic address allocation, and an exact
> representation of real world scenario.
>
> So, if anyone have clues / code regarding dynamic addressing, please
> respon=
> d to this mail. How the addressing (not static) is done?
>
> Thank you.
>
>
>      Add more friends to your messenger and enjoy! Go to
> http://messenger.yahoo.com/invite/
>


More information about the Ns-users mailing list