[Click] Help!!! Help!! LinkUnqueue
María Gómez
maria_gn1 at hotmail.com
Thu Sep 3 09:14:58 EDT 2009
Thanks thanks.
At first, I did not have STOP.
But as the source counter reached 100,000 and continued to receive packets the router, I thought it was a mistake.
So I put.
I am a little dumb, thought it might not be that.
I'll check.
Thanks for your speed in answering.
Regards
buscar
> From: sombrutz at informatik.hu-berlin.de
> To: click at amsterdam.lcs.mit.edu
> Subject: Re: [Click] Help!!! Help!! LinkUnqueue
> Date: Thu, 3 Sep 2009 14:42:24 +0200
> CC: maria_gn1 at hotmail.com
>
> Hi María,
> The script stops after 10 seconds, since the RatedSource has pushed the 100000
> packets. If you choose a rate of 1000 kbps ( LinkUnqueue) and the packetsize
> is 100 byte (800 bit) then the LinkUnqueue is only able to forward around
> 12000 pakets in the 10 seconds. Please insert a additional counter before
> the LinkUnqueue-element. You will see, there are a lot of pakets in the queue
> q1, if the script is finished. The packet aren't lost, the rate is too slow.
> Or you have to remove "STOP true" in RatedSource (or use "STOP false").
> Instead use Script to stop the script after some time.
>
> Robert
>
> On Donnerstag, 3. September 2009, María Gómez wrote:
> > r::RatedSource(DATA \<55 44 50 20 70 61 63 6b 65 74 21 0a 04 00 00 00
> > 01 00 00 00 01 00 00 00 00 00 00 00 00 80 04 08 00 80 04 08 53 53 00
> > 00
> > 53 53 00 00 05 00 00 00 00 10 00 00 01 00 00 00 54 53 00 00
> > 54 e3 04 08 54 e3 04 08 d8 01 00 00>, RATE 10000, LIMIT 100000, STOP
> > true) //datos = 72 -> c::Counter
> > -> SetTimestamp
> > -> DynamicUDPIPEncap(src_addr, 1234, dst_addr, 1234, INTERVAL 10)
> > //(headerIP 20 + headerUDP 8) -> SetUDPChecksum
> > -> SetIPChecksum
> > //-> Print("packet")
> > -> c5::Counter
> > -> q1::Queue(90000)
> > -> l::LinkUnqueue(0.04, 1000 kbps)
> > -> q2::Queue(90000)
> > -> c6::Counter
> > //-> IPPrint("SOURCE", PAYLOAD hex, ID true, TTL true, LENGTH true)
> > -> ToDevice($DEV)
> >
> > Script(TYPE ACTIVE,
> > set tasa $(mul 1000000 $carga),
> > print $tasa,
> > write r.rate $(div $tasa 100),
> > print $(r.rate),
> > write r.active true
> > );
>
>
_________________________________________________________________
Hay tantos ordenadores como personas. ¡Descubre ahora cuál eres tú!
http://www.quepceres.com/
More information about the click
mailing list