[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [ns] bandwidth of wired nodes
> -----Original Message-----
> From: Neundorf Alexander [SMTP:[email protected]]
> Sent: Thursday, July 26, 2001 3:54 PM
> To: '[email protected]'
> Subject: [ns] bandwidth of wired nodes
>
> Hi,
>
> I have a duplex link created with 100MBit/sec, I start ftp, and after 30 seconds I do
> $my_link set bandwidth_ 0.1Mb
> but nothing changes :-(
> Is there a way to change the bandwidth of a wired link during the run ?
>
> Bye
> Alex
[Neundorf Alexander]
Sorry for replying to myself, but I did it :-)
Well, I added
SimpleLink instproc setBw {bw} {
$self instvar link_
$link_ set bandwidth $bw
}
and then called
$ns duplex-link-op $node0 $node1 setBw 0.1Mb
and it worked :-)
Bye
Alex