[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ns] question about mobile node address



On Fri, 16 Mar 2001, Liang Qin wrote:


> Hi ns2 users,
>
> I'm using ns2 2.1b6 n ad hoc network. When I read the manual of ns2 about trace
> file, the example shows:
> r 160.093884945 _6_ RTR  --- 5 tcp 1492 [a2 4 6 800] ------- [65536:0
> 16777984:0 31 16777984] [1 0] 2 0
> The source in ip address is 65536
>
> but in my simulations, I always got:
> s 11.352939215 _18_ RTR  --- 77 cbr 96 [0 0 0 0] ------- [18:2 20:0 32 26] [11] 0 2
> f 11.354021331 _26_ RTR  --- 77 cbr 96 [a2 1a 12 800] ------- [18:2 20:0 32 20] [11] 1 2
> it seems that in ip trace, ns doesn't use IP(32 bits) format anymore, instead
> it is the same as the node ID (like _18_ in first line), not like what the
> manual example said using a 3 level hier-address of 8/8/8.

That is true only if hierarchical addressing is used. Otherwise IP
address is same as the nodeid.
--Padma.


>
> Can anyone confirm my question please?
>
>
> Your early reaply would be really appreciate.
>
> Liang Qin
>

-- 
------------------------------------------------
Be true to your work, your word, and your friend.
--Thoreau

Padmaparna Haldar