Hi Everyone,

I am trying to change the bandwidth between two links at run-time using
ns-2, at the link layer.  For example, if the previous bandwidth between
nodes n1 and n2 was 2Mbps, I would need to change it to 1Mbps at a certain
instant.

What I have done so far is to try to manually set the bandwidth thus (by
looking at the code in gen/ns_tcl.cc):

set sid [$n1 id]
set did [$n2 id]
$ns at $half_time "set bw_($sid:$did) [bw_parse ${bw}kb]"
$ns at $half_time "set bw_($did:$did) [bw_parse ${bw}kb]"

However, when I try to do a simple simulation to see if the number of
packets flowing between the links has changed before and after the change, I
see no changes.  I am using ftp between the two nodes.

I look forward to your help.

Prajjwal

Reply via email to