-
Notifications
You must be signed in to change notification settings - Fork 81
FastUDPSource
FastUDPSource — Click element; creates packets with static UDP/IP/Ethernet headers
FastUDPSource(RATE, LIMIT, LENGTH, SRCETH, SRCIP, SPORT, DSTETH, DSTIP, DPORT [, CHECKSUM, INTERVAL, ACTIVE])
Ports: no inputs, 1 output
Processing: pull
Drivers: userlevel
FastUDPSource is a benchmark tool. At initialization time, FastUDPSource creates a UDP/IP packet of length LENGTH (min 60), with source ethernet address SRCETH, source IP address SRCIP, source port SPORT, destination ethernet address DSTETH, destination IP address DSTIP, 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.
INTERVAL is zero by default. If it is not 0, after INTERVAL number of packets, both sport and dport will be incremented by 1. Checksum will be recomputed.
- 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
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/linuxmodule/fastudpsrc.hh:4
on 2018/10/03.