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

FastUDPSource.b Element Documentation

NAME

FastUDPSource.b -- Click element; creates packets with static UDP/IP/Ethernet headers

SYNOPSIS

FastUDPSource(RATE, LIMIT, LEN, SETHADDR, SIPADDR, SPORT, DETHADDR, DIPADDR, DPORT [, CHECKSUM?, INTERVAL, ACTIVE])

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

DESCRIPTION

FastUDPSource is a benchmark tool. At initialization time, FastUDPSource creates a UDP/IP packet of length LEN (min 60), with source ethernet address SETHADDR, source IP address SIPADDR, source port SPORT, destination ethernet address DETHADDR, destination IP address DIPADDR, and destination port DPORT. The UDP checksum is calculated if CHECKSUM? is true; it is true by default. Each time the FastUDPSource element is called, it increments the reference count on the skbuff created and returns the skbuff object w/o copying or cloning. Therefore, the packet returned by FastUDPSource should not be modified. FastUDPSource sents packets at RATE packets per second. It will send LIMIT number of packets in total. After FastUDPSource 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 FastUDPSource is ACTIVE. PACKET is zero by default. If it is not 0, after PACKET number of packets, both sport and dport will be incremented by 1. Checksum will be recomputed.

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

 FastUDPSource(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)
 -> ToDevice;

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

COMMENTS

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