For AI agents: this documentation is indexed for you in llms.txt, and all of it in /llms.txt. Every page is also available as markdown: append .md to its address.

Data Plane configuration

The current implementation of TPLoad Generator generates only UDP traffic. UDP payload contains the Generator metadata that is used to:

  • Discard non-TPLoad generated packets
  • Check the correctness of the session and flow
  • Check the NAT mapping
  • Detect missed, duplicated, or reordered packets inside the flow

TPLoad Generator supports the following interfaces:

  • memif - there is no interaction with the Linux kernel. Only the slave mode is supported.

  • tap - used when you want the Generator to create a Linux interface connected directly to a router inside the Generator

  • macvtap - similar to the tap interface but bridged with another Linux interface, which makes it look as if the Generator is attached to the existing interface. The macvtap interface must be created before starting the Generator using this command:

    bash

Both types of the traffic Generators have a set of common parameters:

Memif interface configuration

The following options are available for the memif interface:

These are the environment variables for the Generator:

See the sample configuration for the memif interface:

yaml

Tap and macvtap interface configuration

The following options are available for the tap and macvtap interfaces:

See the sample configuration for the tap and macvtap interfaces:

yaml

Traffic profiles

Traffic profiles define the payload of the generated traffic. Currently, you can only generate UDP traffic.

size describes the UDP payload size. To calculate it from the desired IP payload size, substract 8 bytes from the UDP header. The size can't be less than 12 bytes because of the metadata inside the UDP payload.

You can configure traffic profiles using these parameters:

  • size_from_range - packet has a random size chosen from min to max.
  • weighted_selection_of_sizes - packet size is chosen from the defined distribution. For example, a packet with size: X is choosen with chance: Y.

See a sample configuration for traffic profiles:

yaml

Burst profiles

TPLoad supports the bursting capability to generate a sequential series of packets for each flow. This allows TPLoad to simulate user traffic in a better way.

You can configure burst profiles using these parameters:

  • count_from_range - packets sequence has a random length chosen from min to max.
  • weighted_selection_of_lengths - packets sequence length is chosen from the defined distribution. For example, a packet with length: X is chosen with chance: Y.

See a sample configuration for burst profiles:

yaml