[Click] Is there a way to simulate internet traffic in Click?

betamaz betamaz at gmail.com
Mon May 9 17:55:23 EDT 2005


Hi,

I want to use click to simulate traffic.  I want the packets created
to look like traffic that would go through a router sitting on the
internet backbone.  The configuration should generate udp traffic with
varying source and destination addresses. The addresses should be
varying on the Class A-D level.  My goal is to feed this traffic to
another configuration that would be promiscously listening and
classifiying packets based on specified end-hosts.

Is there a click element that would allow me to randomly change the
source and destination in the IP header? So far the closest thing to
what i want is FastUdpFlows which only changes the class D (or is it
E) addresses. Right now, I am looking at creating a similar element to
fastudpflows.c. If there is a better way to go about it, please let me
know.

By they way, to prevent packets generated by click from going off into
the internet and disrupting other people's network, im planning on
having the packets generated at (for example) eth0 ip-address to eth1
ip-address.  And finally discarded at eth1 before going off on the
real network.

Thanks,
Bita.


---------------------------------------------
this is the result of using fastudpflow:
// packet_generator.click

fup	:: FastUDPFlows(1, 5, 60, 
		00:0C:41:1F:9C:70, 128.111.40.200, 
		00:0C:41:1F:9C:78, 128.111.40.201,  
		1, 10) 


fup -> IPPrint(fup1) -> Discard;

click: starting router thread pid 11239 (c846e120)
chatter: fup1: 0.000000: 128.111.40.200.19566 > 128.111.40.201.8389: udp 26
chatter: fup1: 0.000000: 128.111.40.200.19566 > 128.111.40.201.8389: udp 26
chatter: fup1: 0.000000: 128.111.40.200.19566 > 128.111.40.201.8389: udp 26



More information about the click mailing list