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

Re: [ns] Please help!!!Urgent



count them! use awk and parse the trace-file.

{
	if (($3 == src) && ($4 == dst)) {
		if ($1 == "r") ++x;
	}
} 
END {
	print x;
}

or something like that... Note that the LAN itself has an address. read the 
manual.


>Date: Sun, 17 Sep 2000 21:07:52 -0700 (PDT)
>From: Binu Gopal <[email protected]>
>Subject: [ns] Please help!!!Urgent
>To: [email protected]
>MIME-Version: 1.0
>
>Hi, I need help!!
>Can someboby give me the code that allow to calculate
>the # of packets received in a node on a lan during a
>simulation time. I would really really appreciate.
>I read some chapters in the ns maual but It didn't
>help me.
>Thanks a lot
>Binu
>
>__________________________________________________
>Do You Yahoo!?
>Yahoo! Mail - Free email you can access from anywhere!
>http://mail.yahoo.com/

Tarik