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 thetapinterface but bridged with another Linux interface, which makes it look as if the Generator is attached to the existing interface. Themacvtapinterface 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:
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:
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
mintomax. - weighted_selection_of_sizes - packet size is chosen from the defined distribution. For example, a packet with
size: Xis choosen withchance: Y.
See a sample configuration for traffic profiles:
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 frommintomax.weighted_selection_of_lengths- packets sequence length is chosen from the defined distribution. For example, a packet withlength: Xis chosen withchance: Y.
See a sample configuration for burst profiles: