[Click] how to test

=?gb2312?q?liang=20jian?= liang_7902 at yahoo.com.cn
Sat Aug 23 22:22:33 EDT 2003


If I want to test A (172.16.1.253) to B (172.16.1.1 ) machine rate. I do:
A:
// udpgen.click
// This file is a simple, fast UDP/IP load generator, meant to be used in the
// Linux kernel module. It sends UDP/IP packets from this machine to another
// machine at a given rate.
// The relevant address and rate arguments are specified as parameters to a
// compound element UDPGen.
// UDPGen($device, $rate, $limit, $seth, $sip, $sport, $deth, $dip, $dport);
//
//      $device         name of device to generate traffic on
//      $rate           rate to generate traffic (packets/s)
//      $limit          total number of packets to send
//      $size           bytes per packet
//      $seth           source eth addr
//      $sip            source ip addr
//      $sport          source port
//      $deth           destination eth addr
//      $dip            destination ip addr
//      $dport          destination port
elementclass UDPGen {
  $device, $rate, $limit, $size,
  $seth, $sip, $sport, $deth, $dip, $dport |
  source :: FastUDPSource($rate, $limit, $size, $seth, $sip, $sport,
                                                $deth, $dip, $dport);
  pd :: FromDevice($device) -> ToHost;
  source -> td :: ToDevice($device);
}
// create a UDPGen
u :: UDPGen(eth0, 82000, 820000, 64,
            00:e0:4c:39:0b:ec, 172.16.1.253, 1234,
            00:e0:4c:5a:8e:6f, 172.16.1.1, 1234);

B:
// Generated by make-udpcount.pl
ar      :: ARPResponder(172.16.1.1 00:e0:4c:5a:8e:6f);
c0      :: Classifier(12/0806 20/0001, -);
pd      :: FromDevice(eth1);
td      :: ToDevice(eth1);
out     :: Queue(200) -> td;
tol     :: ToHost;
pd -> [0]c0;
c0[0] -> ar -> out;
c0[1] -> Counter -> tol;
ScheduleInfo(td 1, pd 1);

 
then How  to know my network rate ? the data in /proc/click/* ?
please tell me!
Thanks.
 
 
If I want to test like this :
 
A (172.16.1.253 )--(172.16.1.254)Router(10.0.1.254) --B(10.0.1.253)
 
My udpgen.click and My udpcount.click how to deal ?
I want to test 64-byte network rate and thoughtout how packets of 64-bytes pass the router!
My router have three Intel pro1000 8490MF adapter.
 
Can you tell me how to do ?
 
Thanks.

liang jian <liang_7902 at yahoo.com.cn> wrote:

hi,
 
A--Router--B
I need run :
#click-install udgen.click
on A machine and run:
#click-install udpcount.click 
on B machine
 
Yes or No?
Eddie Kohler <kohler at icir.org> wrote:
Hi,

> I compile udpgen.c udpcount.c on kernel 2.4.20 have a lot of error!
> when compile them on 2.2.18 then 
> insmod udpcount.o have:
> udpcount.o: unresolved symbol udpcount_hook
> error!
> 
> I don't know how to compile udpgen on 2.4.20?
> 
> can you help me ?

udpgen.c and udpcount.c are no longer supported because we use straight
Click configurations instead. You can find the udpgen-equivalent in
CLICK/conf/udpgen.click. I've just checked in a udpcount-equivalent, to
CLICK/conf/udpcount.click; it is also attached.

Let us know if you have problems/...
Eddie

// udpcount.click

// This file is a simple UDP/IP packet counter, meant to be used in the
// Linux kernel module. It counts UDP packets received on port 1234. (Change
// the argument to 'ip_classifier' to use a diffe! rent port.) See
// 'udpgen.click' for a traffic generator corresponding to udpcount.click.

// The interface's hardware and IP addresses go here.
AddressInfo(me 1.0.0.1 0:0:c0:8a:67:ef);

classifier :: Classifier(12/0800 /* IP packets */,
12/0806 20/0001 /* ARP requests */,
- /* everything else */);
ip_classifier :: IPClassifier(dst udp port 1234 /* relevant UDP packets */,
- /* everything else */);
in_device :: PollDevice(me);
out :: Queue(200) -> ToDevice(me);
to_host :: ToHost;
ctr :: Counter /* or AverageCounter */;

in_device -> classifier
-> CheckIPHeader(14, CHECKSUM false) // don't check checksum for speed
-> ip_classifier
-> ctr
-> Discard;
classifier[1] -> ARPResponder(me) -> out;
classifier[2] -> to_host;
ip_classifier[1] -> to_host;
 



---------------------------------
Do You Yahoo!?
ÆôÓõçÓÊÕʺţ¬Áì»áÑÅ»¢Í¨[ÉíÁÙÆä¾³ÁĵçÓ°]µÄ¶¯¸Ð÷ÈÁ¦£¬»¹ÓÐÍøÂçÉãÏñÍ·+ÑÅ»¢Í¨ÊÕÒô»úµÈÄãÀ´ÄÃ_______________________________________________
click mailing list
click at amsterdam.lcs.mit.edu
https://amsterdam.lcs.mit.edu/mailman/listinfo/click



---------------------------------
Do You Yahoo!?
ÆôÓõçÓÊÕʺţ¬Áì»áÑÅ»¢Í¨[ÉíÁÙÆä¾³ÁĵçÓ°]µÄ¶¯¸Ð÷ÈÁ¦£¬»¹ÓÐÍøÂçÉãÏñÍ·+ÑÅ»¢Í¨ÊÕÒô»úµÈÄãÀ´ÄÃ
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://amsterdam.lcs.mit.edu/pipermail/click/attachments/20030823/822a312c/attachment.htm


More information about the click mailing list