Two main funcitons, "replay pcap files" and "traffic generator".
Attribute
Description
Type
Default (* must have)
Specifies a unique id for an element
Specifies a type for an element
replayPcap or traffic-gen
Before using this function, make sure you upload pcap files to the correct path first.
<run>
<input type="replayPcap">
<port>P0</port>
<filepath>H1/in/sample.pcap</filepath>
<time>1</time>
<msinterval>1</msinterval>
</input>
</run>
Defines output port**(must have)**.
It has a start tag <port> and an end tag </port>.
Defines play time**(must have)**.
It has a start tag <time> and an end tag </time>.
Defines pcap filepath**(either filepath or scandir must have)**.
It has a start tag <filepath> and an end tag </filepath>.
Defines speed, default is full line rate.
It has a start tag <speed> and an end tag </speed>.
Defines the play ms interval between each packet.
It has a start tag <msinterval> and an end tag </msinterval>.
Defines pcap scandir**(either filepath or scandir must have)**.
It has a start tag <scandir> and an end tag </scandir>., limit 1024 files
Attribute
Description
Type
Default (* must have)
will replay if pcap file bigger than minbytes
force replay if pcap file less than minbytes after timeout
playedFilesHandle
Defines pcap file handle after replay.
It has a start tag <playedFilesHandle> and an end tag </playedFilesHandle>. must be delete or move
playedFilesMoveTo
Defines pcap file move to dir after after replay.
It has a start tag <playedFilesMoveTo> and an end tag </playedFilesMoveTo>.
Example - scandir
generate traffic
Defines output port**(must have)**.
It has a start tag <port> and an end tag </port>.
Defines protocol TCP/UDP/ICMP, default UDP
It has a start tag <protocol> and an end tag </protocol>.
Defines packet size, default 512
It has a start tag <packet_size> and an end tag </packet_size>.
Defines packet data
It has a start tag <packet_data> and an end tag </packet_data>.
Defines speed, default is full line rate.
It has a start tag <speed> and an end tag </speed>.
Defines the ms interval between each packet. higher priority than speed.
It has a start tag <msinterval> and an end tag </msinterval>.
Defines payload text
It has a start tag <payload_text> and an end tag </payload_text>.
Defines source mac address
It has a start tag <src_mac> and an end tag </src_mac>.
Defines destination mac address
It has a start tag <dest_mac> and an end tag </dest_mac>.
Defines source ip, default 10.0.1.99
It has a start tag <src_ip> and an end tag </src_ip>.
Defines minimum source ip
It has a start tag <src_ip_min> and an end tag </src_ip_min>.
Defines maximum source ip
It has a start tag <src_ip_max> and an end tag </src_ip_max>.
Defines the number to increase source ip, default 0
It has a start tag <src_ip_inc> and an end tag </src_ip_inc>.
Defines source ip random (0 or 1), default 0
It has a start tag <src_ip_random> and an end tag </src_ip_random>.
Defines source port, default 5000
It has a start tag <src_port> and an end tag </src_port>.
Defines minimum source port
It has a start tag <src_port_min> and an end tag </src_port_min>.
Defines maximum source port
It has a start tag <src_port_max> and an end tag </src_port_max>.
Defines the number to increase source port, default 0
It has a start tag <src_port_inc> and an end tag </src_port_inc>.
src_port_random
Defines random source port (0 or 1), default 0
It has a start tag <src_port_random> and an end tag </src_port_random>.
Defines destination ip,default 10.0.0.99
Defines minimum destination ip
Defines maximum destination ip
Defines the number to increase destination ip, default 0
Defines destination ip random (0 or 1), default 0
Defines destination port, default 5001
Defines minimum destination port
Defines maximum destination port
Defines the number to increase destination port, default 0
dest_port_random
Defines random destination port (0 or 1), default 0
//destination ip and port, please refer to src_ip and src_port for xml syntax