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

Re: [ns] cost associated with links.



the link cost can be defined by users (and the default is 1),
see ns manual chapter 6 and example ~ns/tcl/ex/simple-eqp1.tcl.
So you can define your bandwidth-delay-to-cost conversion.

- difa

On Thu, 8 Nov 2001, abrar hussain wrote:

>
> Hi ns - users,
>
>  	I have a question regarding the cost associated with the links in ns.
>
> 	Given the bandwidth and the delay of the link how is its cost determined
>   in ns and what cost metric is used? Since the shortest path is based on
>   the cost associated with the links, these bandwidth and delays
>   characterstics of a link must be used to represent cost.
>
> 	Where in ns can i find such a conversion (bandwidth & delay to
>   cost) if it exists else how does ns determines the shortest paths, does
>   it simply use number of hops and assumes all links have cost 1 ?
>
>  	Please give me some pointers in this area .
>
> Thanks,
> Sincerely,
> Abrar.
>