[ns] Change Link Cost

Roberto Evelim Penha Borges reborges at timbrasil.com.br
Tue Mar 4 11:53:18 PST 2008


Hi all,

 

 I have a topology running LS rtProto and I need to change the cost of a

link during the simulation. I tried doing something like:

 

$ns at 5 "$ns cost $n1 $n2 10"

 

 I didn't receive any error message, but it just didn't work. It doesn't

matter how high I set the link cost, the traffic keeps going trough it.

 

 Does anyone have any suggestion about what I can do? Do I need to

modify any NS file? Which ones?

 

Thanks in advance,

 

 

Roberto Evelim Penha Borges 

 



More information about the Ns-users mailing list