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

Re: [ns] nodeid of packet



On Mon, 18 Jun 2001, Nandkishore Muralidharan wrote:

> Hi all,
> I want to count the number of packets that originate from a particular
> node or a set of nodes in a WAN that I have created. I would like to do
> this at the TCPSink as I am running TCP based simulations. The pointer
> to a packet does not contain this information as far as I know.
>
> How can I find the node from which a particular packet has originated


If U require the information for some kind of packet processing at the C++
level, U can take it from the source address in the ip_header.

If you want the info after running the simulations - u can get it by
running an awk script on the trace files generated.



-richa.