[Csci551-talk] can we send the neighbour ip addresses to a router
johnh at ISI.EDU
Sat Mar 20 20:25:39 PST 2004
On Sat, 20 Mar 2004 18:08:17 PST, amit pande wrote:
>> BUT... why do you need to send neighbor IP addresses? Can't you
>> discover that info in the first LS announcement you hear from them?
>> -John Heidemann
>the router cannot figure out the ip address from the ls announcement, since we
>dontput the senders ip address in the ls message (only the sender router id is
>there).if we were to put the senders ip address in the ls message, than ya
>sure we could figure out the ip address.
What IP address do you mean?
If you mean the address mask of the address space that router handles,
than this should definitely be in the LS announcement.
If you mean the IP address that goes along with the port that the
router be listening to exchange messages with other routers, than the
assignment assumes all processes are on the same machine. Thus,
whatever means you use to pick the IP address you bind to can be done
by all processes (routers and manager). They don't need to explicitly
swap that IP address.
In addition, you CAN tell the senders IP address even if it's not in
the message data. See the recvfrom man page for details.
If you choose to swap that IP address, as I said, please not that in
your README file along with why.
More information about the Csci551-talk