PS_PACKETLENGTH

code: 179

# set
<module-index>/<port-index> PS_PACKETLENGTH [<stream_index>] <length_type> <min_val> <max_val>

# get
<module-index>/<port-index> PS_PACKETLENGTH [<stream_index>] ?

Description

The length distribution of the packets transmitted for a stream. The length of the packets transmitted for a stream can be varied from packet to packet, according to a choice of distributions within a specified min…max range. The length of each packet is reflected in the size of the payload portion of the packet, whereas the header has constant length. Length variation complements, and is independent of, the content variation produced by header modifiers.

Actions

set, get

Parameters

  1. length_type: integer, the type of distribution of packet length

  • FIXED = 0

  • INCREMENTING = 1

  • BUTTERFLY = 2

  • RANDOM = 3

  • MIX = 4

  1. min_val: integer, lower limit on the packet length

  2. max_val: integer, upper limit on the packet length

Example

# set
input:  0/1 PS_PACKETLENGTH [0] FIXED 1 1
output: <OK>

# get
input:  0/1 PS_PACKETLENGTH [0] ?
output: 0/1 PS_PACKETLENGTH [0] FIXED 1 1