Manual:Tools/Traffic Generator: Difference between revisions

From MikroTik Wiki
Jump to navigation Jump to search
Line 197: Line 197:
}}
}}


{{Mr-arg-table-end
{{Mr-arg-table
|arg=
|arg=disabled
|type=
|type=yes {{!}} no
|default=no
|desc=Whether stream is disabled
}}
 
{{Mr-arg-table
|arg=mbps
|type=integer [0..4294967295]
|default=0
|desc=Value in Mega bits per second that stream will try to generate.
}}
 
{{Mr-arg-table
|arg=name
|type=string
|default=
|default=
|desc=Descriptive name of the stream.
}}
{{Mr-arg-table
|arg=num
|type=integer [0..15]
|default=0
|desc=
|desc=
}}
}}


{{Mr-arg-table
|arg=packet-size
|type=integer[1..65535] [-integer[1..65535]]
|default=0
|desc=Generated size of the packets in bytes. Can be set as the range for random packet size generation.
}}


{{Mr-arg-table
|arg=port
|type=string
|default=
|desc=Name of the port from [[#Port_Configuration | Port menu]] that will be used to transmit packets.
}}
{{Mr-arg-table
|arg=pps
|type=integer [0..4294967295]
|default=0
|desc=Packets per second that stream will try to generate.
}}
{{Mr-arg-table-end
|arg=tx-template
|type=string
|default=
|desc=Name of the packet template from [[#Packet_Template | packet-template]] or [[#Raw_Packet_Template | raw-packet-template]] menus used as the packet content source.
}}


==Configuration Examples==
==Configuration Examples==

Revision as of 09:17, 28 September 2011

Applies to RouterOS: v5 +

Summary

Traffic Generator is a tool that allows to generate and send RAW packets over specific ports. Tool also collects latency and jitter values, tx/rx rates, it also counts lost packets and detects Out-of-Order packets. Traffic Generator can be used similar to bandwidth test tool as well as generate packets that will be routed back to packet generator for advanced status collection.

General

Sub-menu /tool traffic-generator


This menu allows to set general traffic generator properties and contains commands to quickly start and stop the tool.


Properties

Property Description
latency-distribution-scale (integer [0..28]; Default: 10)
test-id (integer [0..255]; Default: 0)


Read-Only Properties

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
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


Properties

Property Description
(; Default: )

Port Configuration

Sub-menu /tool packet-generator port


This menu allows to specify ports (interfaces) that will be used to receive send generated packets.


Properties

Property Description
disabled (yes | no; Default: no) Whether port is disabled and does not participate in receiving/sending of the packets
name (string; Default: ) Descriptive name of the port
interface (string; Default: ) Name of the interface which will be used for tx/rx


Read-Only Properties

Property Description
dynamic (yes | no) Whether port configuration is generated automatically.
first-header (ip | mac | raw | udp | vlan) Shows the first generated header from packet template.
inactive (yes | no) Whether port is inactive and can't participate in tx/rx of the packets.

Stats

Sub-menu /tool traffic-generator stats


Properties

Property Description
(; Default: )


Streams

Properties

Property Description
disabled (yes | no; Default: no) Whether stream is disabled
mbps (integer [0..4294967295]; Default: 0) Value in Mega bits per second that stream will try to generate.
name (string; Default: ) Descriptive name of the stream.
num (integer [0..15]; Default: 0)
packet-size (integer[1..65535] [-integer[1..65535]]; Default: 0) Generated size of the packets in bytes. Can be set as the range for random packet size generation.
port (string; Default: ) Name of the port from Port menu that will be used to transmit packets.
pps (integer [0..4294967295]; Default: 0) Packets per second that stream will try to generate.
tx-template (string; Default: ) Name of the packet template from packet-template or raw-packet-template menus used as the packet content source.

Configuration Examples

[ Top | Back to Content ]