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

Re: a simple question




hi,

you can use the following

set link [$ns link $n0 $n1] # to access the link connecting two nodes
set link_q [$link queue]        # to access the queue associated with the link
set cur [$link_q set limit_]    # to assign current queue size to cur
$link_q set limit_ 100          # to set to a new value

Regards

Srikar

------------------------------------------------------------------------------
Address: H216, Hall V IIT Kanpur, 208016        At Bangalore                 
Ph: Hostel - (0512)597115                       Address: 31, 32 "Venkatadri" 
    Lab    - (0512)597653                       C K Garden, Wheeler Rd Extn,
Mail ID: [email protected],                 St Thomas Town, B'lore 560084
         [email protected]                 Ph:(080)5468598

On Sun, 29 Aug 1999, Chen Wen-Jen wrote:

> hi...
> 
>   When I do this
> 
>    $ns duplex-link $n0 $n1 10mbps 10ms DropTail
> 
>   How can I konw this link's maximum queue size?
>                          (how many packets can be queued)
>   Can I change it?
> 
>   thanks for your help... :)
> 
>           Jay...
>