[ns]route metric
Liang Nikko
fsnikko at hotmail.com
Tue Apr 26 06:03:22 PDT 2005
Hi Yang,
Yes, the default link cost for every link is 1 regardless its bandwidth,
delay, etc.
Howerer, you can assign link cost to a link using this statement:
$ns cost $node1 $node2 10
Regards,
Lihao
Department of Computing and Information Systems
University of Luton
U.K
>
>Message: 19
>Date: Tue, 26 Apr 2005 17:56:12 +0800
>From: "=?gb2312?B?0e7P5rrN?=" <yxhliyi at mail.nankai.edu.cn>
>Subject: [ns]route metric
>To: ns-users at ISI.EDU
>Message-ID: <314509372.20859 at mail.nankai.edu.cn>
>Content-Type: text/plain
>
>Hi
>
>In routing-protocol like DV,Direct,the ns uses metric to pick out
>the best routine.I check the process "Agent/rtProto/Direct instproc
>compute-routes" in file route-protocol.tcl and then I know the initial
metric to
>neigbour nodes is link cost.So I check the file ns-link.tcl and find that
the
>default value of cost is 1.My question is :if I don't use the command cost
to set
>the link cost,do all of the links with different bandwich and delay having
the
>same cost of 1 ? If not,how does it works?
>regards
>Yang
>
_________________________________________________________________
ÓëÁª»úµÄÅóÓѽøÐн»Á÷£¬ÇëʹÓà MSN Messenger: http://messenger.msn.com/cn
More information about the Ns-users
mailing list