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

Re: Difference between Agent/UDP+Application/Traffic/CBR & Agent/CBR





On Thu, 4 Nov 1999, Bancherdvanich Terdsak wrote:

> Hi, 
> 
> I am new in NS-2. I would like to ask what is the difference between
> 
> i) set udp0 [new Agent/UDP]
>    $ns attach-agent $n0 $udp0
>    set cbr0 [new Application/Traffic/CBR]
>    $cbr0 attach-agent $udp0
> 
> ii) set cbr0 [new Agent/CBR]
>     $ns attach-agent $n0 $cbr0
> 
Both should work pretty much the same-- but ii) is functional for backward
compatibility only and its use is deprecated.  See the ns documentation.

Tom