System information
Manual:Tools/Traffic Generator
126
Property Description
latency-distribution-samples (integer)
latency-distribution-measure-interval (time)
running (yes | no) Shows whether traffic generator tool is started.
Commands
Property Description
quick
()
This command allows to quickly start packet generator and print the stats output to the terminal. Command also accept several
parameters that overrides settings in packet template and stream settings. Accepted parameters are duration, entries-to-show,
freeze-frame-interval, mbps, num, packet-size, port, pps, stream, test-id, tx-template
• duration - how long to run the test
• entries-to-show - how many status lines print to the terminal
• freeze-frame-interval - how often to update status to the terminal
The rest of the parameters are not command specific and are described elsewhere. Parameters specified when running quick command
overrides configured values. In case if parameter is specified only for one header then value is multiplied for all the other headers (if
required).
start
()
Commands starts the traffic generator tool in the background. It accepts one parameter test-id
stop () Command stops the started traffic generator tool by start command.
Packet Template
Sub-menu /tool traffic-generator packet-template
This sub menu allows to build packet based on provided parameters. Based on parameters you can build ip packet
with vlan tags and set udp ports. Raw packet template is generated based on provided parameters.
If you require more low level packet or take full advantage of traffic generator, then please use raw-packet-template
builder to build the packet.
If same type of header is present in packet more than once then header field values are passed as comma separated
list. (For example if there are two ip headers then source addresses are given like "ip-src=1.1.1.1,2.2.2.2").
For quicker header construction many of the header field values are assumed. For example if header stack is
"mac,ip" then traffic generator can assume that mac-protocol value is "ip". Or if "port" or "interface" setting is
specified traffic generator can assume "mac-src" to be MAC address of interface). Assumed values have distinct
names that start with "assumed-" and are read only. Manually specified values override assumed ones.
Note: Assumed values are not automatically updated. New values are assumed after template edit.
"packet-template set 0" is enough to trigger new assumed values
Properties