User Manual

TRex 19 / 113
udp_aging : 1
cap_info :
- name: cap2/dns.pcap
v
3
cps : 1.0
v
4
ipg : 10000
v
5
rtt : 10000
v
6
w : 1
v
1
Range of clients (IPv4 format).
v
2
Range of servers (IPv4 format).
v
3
pcap file, which includes the DNS cap file that will be used as a template.
v
4
Number of connections per second to generate. In the example, 1.0 means 1 connection per secod.
v
5
Inter-packet gap (microseconds). 10,000 = 10 msec.
v
6
Should be the same as ipg.
DNS template file
The DNS template file includes:
1. One flow
2. Two packets
3. First packet: from the initiator (client server)
4. Second packet: response (server client)
TRex replaces the client_ip, client_port, and server_ip. The server_port will be remain the same.
[bash]>./bp-sim-32-debug -f cap2/dns.yaml -o my.erf -v 3
-- loading cap file cap2/dns.pcap
id,name , tps, cps,f-pkts,f-bytes, duration, Mb/sec, MB/sec, #
v
1
00, cap2/dns.pcap ,1.00,1.00, 2 , 170 , 0.02 , 0.00 , 0.00 ,
00, sum ,1.00,1.00, 2 , 170 , 0.00 , 0.00 , 0.00 ,
Generating erf file ...
pkt_id,time,fid,pkt_info,pkt,len,type,is_init,is_last,type,thread_id,src_ip,dest_ip, -
src_port #
v
2
1 ,0.010000,1,0x9055598,1,77,0,1,0,0,0,10000001,30000001,1024
2 ,0.020000,1,0x9054760,2,93,0,0,1,0,0,10000001,30000001,1024
3 ,2.010000,2,0x9055598,1,77,0,1,0,0,0,10000002,30000002,1024
4 ,2.020000,2,0x9054760,2,93,0,0,1,0,0,10000002,30000002,1024
5 ,3.010000,3,0x9055598,1,77,0,1,0,0,0,10000003,30000003,1024
6 ,3.020000,3,0x9054760,2,93,0,0,1,0,0,10000003,30000003,1024
7 ,4.010000,4,0x9055598,1,77,0,1,0,0,0,10000004,30000004,1024
8 ,4.020000,4,0x9054760,2,93,0,0,1,0,0,10000004,30000004,1024
9 ,5.010000,5,0x9055598,1,77,0,1,0,0,0,10000005,30000005,1024
10 ,5.020000,5,0x9054760,2,93,0,0,1,0,0,10000005,30000005,1024
11 ,6.010000,6,0x9055598,1,77,0,1,0,0,0,10000006,30000006,1024
12 ,6.020000,6,0x9054760,2,93,0,0,1,0,0,10000006,30000006,1024
13 ,7.010000,7,0x9055598,1,77,0,1,0,0,0,10000007,30000007,1024
14 ,7.020000,7,0x9054760,2,93,0,0,1,0,0,10000007,30000007,1024
15 ,8.010000,8,0x9055598,1,77,0,1,0,0,0,10000008,30000008,1024