Ola,
pode ser em portugues??

tenta usar
$udp_0 set class_ 0

e 
$SinkCBR_0 set flowid_ $flowId,
no lossmonitor

por exemplo um procedimento que cria tudo, so precisa de 2 nos, dst e src

proc cbr_traffic {id src dst flowId PacketSize Rate start stop} {

        global ns SinkCBR_
        set udp_($id) [new Agent/UDP]
        $udp_($id)    set class_ $flowId
        $ns attach-agent $src $udp_($id)
        set cbr_($id) [new Application/Traffic/CBR]
        $cbr_($id)    attach-agent $udp_($id)
        $cbr_($id)    set packet_size_ $PacketSize
        $udp_($id)    set packetSize_  $PacketSize
        $cbr_($id)    set rate_ $Rate
        set SinkCBR_($id) [new Agent/LossMonitor]
        $SinkCBR_($id) set flowid_ $flowId
        $ns attach-agent $dst  $SinkCBR_($id)
        $ns connect $udp_($id) $SinkCBR_($id)
        $ns at $start "$cbr_($id) start"
        $ns at $stop  "$cbr_($id) stop"
}

Filipe Mendes


Em Quarta 16 Agosto 2006 18:17, o Renata Vidal escreveu:
> 
> Hi,
> 
> I tried to set the flow number whith a command like this:
> 
> $udp0 set fid_ 0
> $udp1 set fid_ 1
> $udp2 set fid_ 2
> and so on....
> 
> But in my trace I always have the fid 0. What could be wrong?
> 

Reply via email to