This is automatically generated documentation. Edit after the "COMMENTS" heading; changes to the main body will be lost.

FastTCPFlows Element Documentation

NAME

FastTCPFlows -- Click element; creates packets flows with static TCP/IP/Ethernet headers

SYNOPSIS

FastTCPFlows(RATE, LIMIT, LENGTH,

 SRCETH, SRCIP,N<>
 DSTETH, DSTIP,N<>
 FLOWS, FLOWSIZE [, ACTIVE])

Ports: no inputs, 1 output
Processing: pull
Drivers: linuxmodule
Package: linuxmodule (core)

DESCRIPTION

FastTCPFlows is a benchmark tool. At initialization time, FastTCPFlows creates FLOWS number of fake TCP/IP packets of length LENGTH (min 60), with source ethernet address SRCETH, source IP address SRCIP, destination ethernet address DSTETH, and destination IP address DSTIP. Source and destination ports are randomly generated. The TCP checksum is calculated. Each time the FastTCPFlows element is called, it selects a flow, increments the reference count on the skbuff created and returns the skbuff object w/o copying or cloning. Therefore, the packet returned by FastTCPFlows should not be modified. FastTCPFlows sents packets at RATE packets per second. It will send LIMIT number of packets in total. Each flow is limited to FLOWSIZE number of packets. After FLOWSIZE number of packets are sent, the sort and dst port will be modified. FLOWSIZE must be greater than or equal to 3. For each flow, a SYN packet, a DATA packet, and a FIN packet are sent. These packets have the invalid sequence numbers, in order to avoid recomputing checksum. After FastTCPFlows has sent LIMIT packets, it will calculate the average send rate (packets per second) between the first and last packets sent and make that available in the rate handler. By default FastTCPFlows is ACTIVE.

ELEMENT HANDLERS

count (read-only)
Returns the total number of packets that have been generated.
rate (read/write)
Returns or sets the RATE parameter.
reset (write)
Reset and restart.
active (write)
Change ACTIVE

EXAMPLES

 FastTCPFlows(100000, 500000, 60,
 0:0:0:0:0:0, 1.0.0.1, 1234,
 1:1:1:1:1:1, 2.0.0.2, 1234,
 100, 10)
 -> ToDevice;

Generated by 'click-elem2man' from '../elements/linuxmodule/fasttcpflows.hh:4' on 12/Jul/2011.

COMMENTS

 
elements/fasttcpflows.txt · Last modified: 2011/07/12 11:29 (external edit)
 
Recent changes RSS feed Driven by DokuWiki