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

Re: [ns] get the bandwidth of link



AFAIK, I don't think we can do it.

On Mon, 7 Jan 2002, yenhung hu wrote:

> Dear Chen:
> Thanks, I appreciate.
> By the way, do you know, how can I change the bandwidth of a link at certain
> time. For example, I want to change bandwidth at 5.0 sec.
> $ns at 5.0 XXX
> Yenhung Hu
> ----- Original Message -----
> From: "Xuan Chen" <[email protected]>
> To: "yenhung hu" <[email protected]>
> Cc: <[email protected]>
> Sent: Monday, January 07, 2002 12:35 PM
> Subject: Re: [ns] get the bandwidth of link
> 
> 
> > There are some code in ~ns/tcl/lib/ns-link.tcl, which may be helpful:
> >
> > # Debo
> > Link instproc id {}     { $self set id_ }
> > Link instproc setid { x } { $self set id_ $x }
> > Link instproc bw {} { $self set bandwidth_ }
> >
> > I guess you can try something like:
> > $your_link bw
> >
> > Hope it helps,
> > -chen
> >
> > On Mon, 7 Jan 2002, yenhung hu wrote:
> >
> > > Dear NS Users:
> > > Does anyone now how to return the bandwidth of a link in tcl script?
> Thanks,
> > > I appreciate.
> > > Yenhung Hu
> > >
> >
> > --
> > Xuan Chen
> > USC/ISI
> >
> >
> 

-- 
Xuan Chen
USC/ISI