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

Re: [ns] collect data only between two node?




hi,
   suppose you want to trace the dynamics between nodes n(0) and n(1)
only in your topology. then you can add the following to your tcl code
(after the declerations for the nodes and link to be set up)

set ef [open enqueue.tr w]
set lnk [$ns link $n(0) $n(1)]
set etr [$ns create-trace Enque $ef $n(0) $n(1)]
$lnk add-to-head $etr

of course this will just trace the enqueue operations. but you can add
similar lines for the drops etc. hope this helps,

						biplab sikdar
						dept. of ECSE,
					 rensselaer polytechnic inst.,
						troy NY 12180.

On Fri, 2 Feb 2001, myzhai wrote:

> Hi,
>    I simulate a network having many links, but only one link(for example, link n0->n1) is congested. Because of space limitation, I want only collect trace data  on the link(n0->n1), how can I  write a script to impletement the function?
> 
> thx
> Zhai
> ______________________________________
> 
> ===================================================================
> ������ѵ������� (http://mail.sina.com.cn)
> ���������-MP3����ͨDVD�ֻ��������������ṩ����������� (http://newchat.sina.com.cn/love/)
> 
>