Skip to content
Eddie Kohler edited this page Oct 17, 2017 · 3 revisions

FastUDPSourceIP6 Element Documentation

NAME

FastUDPSourceIP6 — Click element; creates packets with static UDP/IP6/Ethernet headers

SYNOPSIS

FastUDPSourceIP6(RATE, LIMIT, LENGTH, SRCETH, SRCIP6, SPORT, DSTETH, DSTIP6, DPORT [, CHECKSUM, INTERVAL, ACTIVE])

Ports: no inputs, 1 output
Processing: pull

DESCRIPTION

FastUDPSourceIP6 is a benchmark tool. At initialization time, FastUDPSourceIP6 creates a UDP/IP6 packet of length LENGTH (min 60), with source ethernet address SRCETH, source IP6 address SRCIP6, source port SPORT, destination ethernet address DSTETH, destination IP6 address DSTIP6, 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.

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

 FastUDPSourceIP6(100000, 500000, 60, 0:0:0:0:0:0, 3ffe::1.0.0.1, 1234,
 1:1:1:1:1:1, 3ff2::2.0.0.2, 1234)
 -> ToDevice;

Generated by click-elem2man from ../elements/tcpudp/fastudpsrcip6.hh:4 on 2017/10/17.

Clone this wiki locally