User Manual
TRex 18 / 113
Chapter 4
Basic usage
4.1 DNS basic example
The following is a simple example helpful for understanding how TRex works. The example uses the TRex simulator. This
simulator can be run on any Cisco Linux including on the TRex itself. TRex simulates clients and servers and generates traffic
based on the pcap files provided.
Clients/Servers
The following is an example YAML-format traffic configuration file (cap2/dns_test.yaml), with explanatory notes.
[bash]>cat cap2/dns_test.yaml
- duration : 10.0
generator :
distribution : "seq"
clients_start : "16.0.0.1"
v
1
clients_end : "16.0.0.255"
servers_start : "48.0.0.1"
v
2
servers_end : "48.0.0.255"
clients_per_gb : 201
min_clients : 101
dual_port_mask : "1.0.0.0"
tcp_aging : 1










