[Click] Help FromHost!!
María Gómez
maria_gn1 at hotmail.com
Sat Aug 29 04:41:07 EDT 2009
This is my configuration:
//this file generates UDP traffic
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 20, LIMIT 10000) //data = 72 bytes
-> c::Counter
-> SetTimestamp
//-> StoreTimestamp(TAIL true)
-> DynamicUDPIPEncap(1.0.0.1, 1234, 2.0.0.2, 1234, INTERVAL 10) //header IP= 20 + header UDP= 8
-> SetUDPChecksum
-> SetIPChecksum
-> EtherEncap(0x0800, 1:1:1:1:1:1, 2:2:2:2:2:2) //header eth = 14
-> Print ("source") // packet length 114
-> c2::Counter
-> cola::Queue()
-> l::LinkUnqueue (0, 512 kbps)
-> Queue
-> c3::Counter
-> ToDevice(tun0)
//the other file
FromHost(tun0)
-> Queue
-> l1::LinkUnqueue(0.16, 512 kbps) //link
-> Queue
-> c::Counter
-> SetTimestamp
-> Unqueue
-> brs::BandwidthRatedSplitter(1000 bps)
-> ToDump(tiempo1.dump, ENCAP IP)
-> Print
//-> Print("tasa menor de 1000 bps")
//-> CheckIPHeader2
//-> Strip(14) //IPV4
-> GetIPAddress(16)
-> DropBroadcasts
//-> CheckUDPHeader
//-> StripIPHeader()
-> DecIPTTL
//-> IPPrint("hola",PAYLOAD hex, ID true, TTL true, LENGTH true)//OUTFILE dump_packets)
-> DynamicUDPIPEncap(2.0.0.2, 1234, 1.0.0.1, 1234, INTERVAL 10)
-> EtherEncap(0x0800, 2:2:2:2:2:2, 1:1:1:1:1:1)
-> Queue
->l2::LinkUnqueue(0.16, 512 kbps) //link
-> Queue
-> ToDevice(tun1)
brs[1]-> Print("tasa mayor de 1000 bps") -> IPPrint("hola",PAYLOAD hex, ID true, TTL true, LENGTH true) -> d1::Discard;
Although the second file has only FromHost(), Print() and Discard, the console output is 110 bytes.
Thank for your time
> Date: Fri, 28 Aug 2009 19:52:39 -0400
> From: ianrose at eecs.harvard.edu
> To: maria_gn1 at hotmail.com
> CC: click at pdos.csail.mit.edu
> Subject: Re: [Click] Help FromHost!!
>
> Can you send your click configuration?
>
>
> María Gómez wrote:
> > Hi!!
> >
> > I don't understand why my configuration loses 4 bytes when using the element FromHost.
> >
> > Thanks
> >
> > _________________________________________________________________
> > Toda la información meteorológica. Consulta en MSN el tiempo que va a hacer en cualquier lugar de España o del Mundo.
> > http://eltiempo.es.msn.com/
> > _______________________________________________
> > click mailing list
> > click at amsterdam.lcs.mit.edu
> > https://amsterdam.lcs.mit.edu/mailman/listinfo/click
_________________________________________________________________
Entérate de todas las noticias al instante ¡Suscríbete al servicio de Alertas MSN!
http://especiales.es.msn.com/noticias/msninforma.aspx
More information about the click
mailing list