First off, here is the dpdk port output:
tester@trex:~/trex/v2.00$ ./dpdk_setup_ports.py --s
Network devices using DPDK-compatible driver
============================================
0000:00:07.0 '82540EM Gigabit Ethernet Controller' drv=igb_uio unused=
0000:00:08.0 '82540EM Gigabit Ethernet Controller' drv=igb_uio unused=
Network devices using kernel driver
===================================
0000:00:03.0 'Virtio network device' if= drv=virtio-pci unused=igb_uio
Other network devices
=====================
<none>
Next is the trex_cfg.yaml file using these ports:
tester@trex:~$ more /etc/trex_cfg.yaml
- port_limit : 2 # this option can limit the number of port of the platform
version : 2
interfaces : ["00:07.0","00:08.0"] #the interfaces using ./dpdk_setup_ports.py -s
port_info : # set eh mac addr
- dest_mac : [0x52,0x54,0x00,0xf4,0x88,0xc3] # router mac addr should be taken from router
src_mac : [0x52,0x54,0x00,0x1d,0x83,0x37] # source mac-addr - taken from ifconfig
- dest_mac : [0x52,0x54,0x00,0xda,0x6f,0xc8] # router mac addr taken from router
src_mac : [0x52,0x54,0x00,0xf1,0xf9,0x4b] #source mac-addr taken from ifconfig
Next is the http_simple.yaml . No changes made except to the client and server IP ranges.
ester@trex:~/trex/v2.00/cap2$ more http_simple.yaml
- duration : 0.1
generator :
distribution : "seq"
clients_start : "38.0.0.1"
clients_end : "38.0.0.255"
servers_start : "48.0.0.1"
servers_end : "48.0.0.255"
clients_per_gb : 201
min_clients : 101
dual_port_mask : "1.0.0.0"
tcp_aging : 0
udp_aging : 0
mac : [0x0,0x0,0x0,0x1,0x0,0x00]
cap_ipg : true
cap_info :
- name: avl/delay_10_http_browsing_0.pcap
cps : 2.776
ipg : 30000
rtt : 30000
w : 1
Finally, verbose mode enabled output :
The test is for a duration of 10 seconds and no latency, and output is pasted below:
tester@trex:~/trex/v2.00$ sudo ./t-rex-64 -f cap2/dns_sample.yaml -d 10 -v 7
Starting TRex v2.00 please wait ...
found configuration file at /etc/trex_cfg.yaml
port limit : 2
port_bandwidth_gb : 10
if_mask : None
thread_per_dual_if : 1
if : 00:07.0, 00:08.0,
enable_zmq_pub : 1
zmq_pub_port : 4500
m_zmq_rpc_port : 4501
src : 52:54:00:f4:88:c3
dest : 52:54:00:1d:83:37
src : 52:54:00:da:6f:c8
dest : 52:54:00:f1:f9:4b
memory per 2x10G ports
MBUF_64 : 16380
MBUF_128 : 8190
MBUF_256 : 8190
MBUF_512 : 8190
MBUF_1024 : 8190
MBUF_2048 : 4095
MBUF_4096 : 128
MBUF_9K : 512
TRAFFIC_MBUF_64 : 65520
TRAFFIC_MBUF_128 : 32760
TRAFFIC_MBUF_256 : 8190
TRAFFIC_MBUF_512 : 8190
TRAFFIC_MBUF_1024 : 8190
TRAFFIC_MBUF_2048 : 65520
TRAFFIC_MBUF_4096 : 128
TRAFFIC_MBUF_9K : 512
MBUF_DP_FLOWS : 524288
MBUF_GLOBAL_FLOWS : 5120
no platform info
flags : 8010f00
write_file : 0
verbose : 7
realtime : 1
flip : 0
cores : 1
single core : 0
flow-flip : 0
no clean close : 0
1g mode : 0
zmq_publish : 1
vlan_enable : 0
mbuf_cache_disable : 0
mac_ip_features : 0
mac_ip_map : 0
vm mode : 0
cfg file : cap2/dns_sample.yaml
mac file :
out file :
duration : 10
factor : 1
mbuf_factor : 1
latency : 0 pkt/sec
zmq_port : 4500
telnet_port : 4501
expected_ports : 2
mac spreading: 0
port : 0 dst:52:54:00:f4:88:c3 src:52:54:00:1d:83:37
port : 1 dst:52:54:00:da:6f:c8 src:52:54:00:f1:f9:4b
port : 2 dst:00:00:00:01:00:00 src:00:00:00:01:00:00
port : 3 dst:00:00:00:01:00:00 src:00:00:00:01:00:00
port : 4 dst:00:00:00:01:00:00 src:00:00:00:01:00:00
port : 5 dst:00:00:00:01:00:00 src:00:00:00:01:00:00
port : 6 dst:00:00:00:01:00:00 src:00:00:00:01:00:00
port : 7 dst:00:00:00:01:00:00 src:00:00:00:01:00:00
port : 8 dst:00:00:00:01:00:00 src:00:00:00:01:00:00
port : 9 dst:00:00:00:01:00:00 src:00:00:00:01:00:00
port : 10 dst:00:00:00:01:00:00 src:00:00:00:01:00:00
port : 11 dst:00:00:00:01:00:00 src:00:00:00:01:00:00
Total Memory :
MBUF_64 : 81900
MBUF_128 : 40950
MBUF_256 : 16380
MBUF_512 : 16380
MBUF_1024 : 16380
MBUF_2048 : 69615
MBUF_4096 : 256
MBUF_9K : 1024
MBUF_DP_FLOWS : 524288
MBUF_GLOBAL_FLOWS : 5120
get_each_core_dp_flows : 524288
Total memory : 72.00 Mbytes
there is no configuration file given
args
xx
-c
0x3
-n
4
--log-level
8
-w
00:07.0
-w
00:08.0
EAL: Detected lcore 0 as core 0 on socket 0
EAL: Detected lcore 1 as core 0 on socket 0
EAL: Detected lcore 2 as core 0 on socket 0
EAL: Support maximum 128 logical core(s) by configuration.
EAL: Detected 3 lcore(s)
EAL: VFIO modules not all loaded, skip VFIO support...
EAL: Setting up physically contiguous memory...
EAL: Ask a virtual area of 0x200000 bytes
EAL: Virtual area found at 0x7f1a70e00000 (size = 0x200000)
EAL: Ask a virtual area of 0x33600000 bytes
EAL: Virtual area found at 0x7f1a3d600000 (size = 0x33600000)
EAL: Ask a virtual area of 0x200000 bytes
EAL: Virtual area found at 0x7f1a3d200000 (size = 0x200000)
EAL: Ask a virtual area of 0x200000 bytes
EAL: Virtual area found at 0x7f1a3ce00000 (size = 0x200000)
EAL: Ask a virtual area of 0x7e400000 bytes
EAL: Virtual area found at 0x7f19be800000 (size = 0x7e400000)
EAL: Ask a virtual area of 0x200000 bytes
EAL: Virtual area found at 0x7f19be400000 (size = 0x200000)
EAL: Ask a virtual area of 0x200000 bytes
EAL: Virtual area found at 0x7f19be000000 (size = 0x200000)
EAL: Ask a virtual area of 0xa00000 bytes
EAL: Virtual area found at 0x7f19bd400000 (size = 0xa00000)
EAL: Ask a virtual area of 0x600000 bytes
EAL: Virtual area found at 0x7f19bcc00000 (size = 0x600000)
EAL: Ask a virtual area of 0x200000 bytes
EAL: Virtual area found at 0x7f19bc800000 (size = 0x200000)
EAL: Ask a virtual area of 0x200000 bytes
EAL: Virtual area found at 0x7f19bc400000 (size = 0x200000)
EAL: Ask a virtual area of 0x800000 bytes
EAL: Virtual area found at 0x7f19bba00000 (size = 0x800000)
EAL: Ask a virtual area of 0x200000 bytes
EAL: Virtual area found at 0x7f19bb600000 (size = 0x200000)
EAL: Ask a virtual area of 0x600000 bytes
EAL: Virtual area found at 0x7f19bae00000 (size = 0x600000)
EAL: Ask a virtual area of 0x200000 bytes
EAL: Virtual area found at 0x7f19baa00000 (size = 0x200000)
EAL: Ask a virtual area of 0x38400000 bytes
EAL: Virtual area found at 0x7f1982400000 (size = 0x38400000)
EAL: Ask a virtual area of 0x200000 bytes
EAL: Virtual area found at 0x7f1982000000 (size = 0x200000)
EAL: Ask a virtual area of 0x200000 bytes
EAL: Virtual area found at 0x7f1981c00000 (size = 0x200000)
EAL: Ask a virtual area of 0x200000 bytes
EAL: Virtual area found at 0x7f1981800000 (size = 0x200000)
EAL: Ask a virtual area of 0x200000 bytes
EAL: Virtual area found at 0x7f1981400000 (size = 0x200000)
EAL: Ask a virtual area of 0x200000 bytes
EAL: Virtual area found at 0x7f1981000000 (size = 0x200000)
EAL: Requesting 1900 pages of size 2MB from socket 0
EAL: TSC frequency is ~2399996 KHz
EAL: WARNING: cpu flags constant_tsc=no nonstop_tsc=no -> using unreliable clock cycles !
EAL: Master lcore 0 is ready (tid=73f4a940;cpuset=[0])
EAL: lcore 1 is ready (tid=807fe700;cpuset=[1])
EAL: PCI device 0000:00:07.0 on NUMA socket -1
EAL: probe driver: 8086:100e rte_em_pmd
EAL: PCI memory mapped at 0x7f1a71000000
PMD: eth_em_dev_init(): port_id 0 vendorID=0x8086 deviceID=0x100e
EAL: PCI device 0000:00:08.0 on NUMA socket -1
EAL: probe driver: 8086:100e rte_em_pmd
EAL: PCI memory mapped at 0x7f1a71020000
PMD: eth_em_dev_init(): port_id 1 vendorID=0x8086 deviceID=0x100e
no client generator pool configured, using default pool
no server generator pool configured, using default pool
zmq publisher at: tcp://*:4500
Number of ports found: 2
if_index : 0
driver name : rte_em_pmd
min_rx_bufsize : 256
max_rx_pktlen : 16128
max_rx_queues : 1
max_tx_queues : 1
max_mac_addrs : 15
rx_offload_capa : 0
tx_offload_capa : 0
set driver name rte_em_pmd
PMD: eth_em_rx_queue_setup(): sw_ring=0x7f19bae21fc0 hw_ring=0x7f19bae230c0 dma_addr=0xba6230c0
PMD: eth_em_tx_queue_setup(): sw_ring=0x7f19bae0fe80 hw_ring=0x7f19bae11f80 dma_addr=0xba611f80
PMD: eth_em_rx_init(): forcing scatter mode
PMD: eth_em_start(): <<
PMD: eth_em_rx_queue_setup(): sw_ring=0x7f19bae0ec80 hw_ring=0x7f19bbce7d80 dma_addr=0xb96e7d80
PMD: eth_em_tx_queue_setup(): sw_ring=0x7f19bae0cb80 hw_ring=0x7f19bbcd7d40 dma_addr=0xb96d7d40
PMD: eth_em_rx_init(): forcing scatter mode
PMD: eth_em_start(): <<
port : 0
------------
link : link : Link Up - speed 1000 Mbps - full-duplex
promiscuous : 0
port : 1
------------
link : link : Link Up - speed 1000 Mbps - full-duplex
promiscuous : 0
-------------------------------
core , c-port, c-queue , s-port, s-queue
------------------------------------------
1, 0 , 0 , 1 , 0
-------------------------------
number of ports : 2
max cores for 2 ports : 1
max queue per port : 1
no client generator pool configured, using default pool
no server generator pool configured, using default pool
-- loading cap file cap2/dns.pcap
id,name , tps, cps,f-pkts,f-bytes, duration, Mb/sec, MB/sec, c-flows, PPS,total-Mbytes-duration,errors,flows
00, cap2/dns.pcap ,10.00,10.00, 2 , 162 , 0.06 , 0.01 , 0.00 , 1 , 20 , 0 , 0 , 1
00, sum ,10.00,10.00, 2 , 162 , 2.00 , 0.01 , 0.00 , 1 , 20 , 0 , 0 , 1
Memory usage
size_64 : 2
size_128 : 0
size_256 : 0
size_512 : 0
size_1024 : 0
size_2048 : 0
size_4096 : 0
size_8192 : 0
size_16384 : 0
Total : 128.00 bytes 376% util due to buckets
-Per port stats table
ports | 0 | 1
-----------------------------------------------------------------------------------------
opackets | 100 | 100
obytes | 0 | 0
ipackets | 100 | 100
ibytes | 0 | 0
ierrors | 0 | 0
oerrors | 0 | 0
Tx Bw | 0.00 bps | 0.00 bps
-Global stats enabled
Cpu Utilization : 1.3 % 0.0 Gb/core
Platform_factor : 1.0
Total-Tx : 0.00 bps
Total-Rx : 0.00 bps
Total-PPS : 15.80 pps
Total-CPS : 7.85 cps
Expected-PPS : 20.00 pps
Expected-CPS : 10.00 cps
Expected-BPS : 12.96 Kbps
Active-flows : 0 Clients : 255 Socket-util : 0.0001 %
Open-flows : 100 Servers : 255 Socket : 20 Socket/Clients : 0.1
drop-rate : 0.00 bps
current time : 12.0 sec
test duration : 0.0 sec
file stats
=================
m_total_bytes : 15.82 Kbytes
m_total_pkt : 200.00 pkt
m_total_open_flows : 100.00 flows
m_total_pkt : 200
m_total_open_flows : 100
m_total_close_flows : 100
m_total_bytes : 16200
==================
interface sum
==================
---------------
port : 0
------------
opackets : 100
obytes : 0
ipackets : 100
ibytes : 0
Tx : 0.00 bps
port : 1
------------
opackets : 100
obytes : 0
ipackets : 100
ibytes : 0
Tx : 0.00 bps
Cpu Utilization : 0.9 % 0.0 Gb/core
Platform_factor : 1.0
Total-Tx : 0.00 bps
Total-Rx : 0.00 bps
Total-PPS : 7.90 pps
Total-CPS : 3.93 cps
Expected-PPS : 20.00 pps
Expected-CPS : 10.00 cps
Expected-BPS : 12.96 Kbps
Active-flows : 0 Clients : 255 Socket-util : 0.0000 %
Open-flows : 100 Servers : 255 Socket : 0 Socket/Clients : 0.0
drop-rate : 0.00 bps
==================
==================
interface sum
==================
------------------------
per core stats core id : 1
------------------------
------------------------
per core per if stats id : 1
------------------------
port 0, queue id :0 - client
----------------------------
port 1, queue id :0 - server
----------------------------
==================
generators
==================
normal
-------------
min_delta : 10 usec
cnt : 689
high_cnt : 2
max_d_time : 9507 usec
sliding_average : 0 usec
precent : 0.3 %
histogram
-----------
h[2000] : 1
h[9000] : 1
m_total_bytes : 15.82 Kbytes
m_total_pkt : 200.00 pkt
m_total_open_flows : 100.00 flows
m_total_pkt : 200
m_total_open_flows : 100
m_total_close_flows : 100
m_total_bytes : 16200
---------------
port : 0
------------
opackets : 100
obytes : 0
ipackets : 100
ibytes : 0
Tx : 0.00 bps
port : 1
------------
opackets : 100
obytes : 0
ipackets : 100
ibytes : 0
Tx : 0.00 bps
Cpu Utilization : 0.7 % 0.0 Gb/core
Platform_factor : 1.0
Total-Tx : 0.00 bps
Total-Rx : 0.00 bps
Total-PPS : 7.90 pps
Total-CPS : 3.93 cps
Expected-PPS : 20.00 pps
Expected-CPS : 10.00 cps
Expected-BPS : 12.96 Kbps
Active-flows : 0 Clients : 255 Socket-util : 0.0000 %
Open-flows : 100 Servers : 255 Socket : 0 Socket/Clients : 0.0
drop-rate : 0.00 bps
summary stats
--------------
Total-pkt-drop : 0 pkts
Total-tx-bytes : 0 bytes
Total-tx-sw-bytes : 0 bytes
Total-rx-bytes : 0 byte
Total-tx-pkt : 200 pkts
Total-rx-pkt : 200 pkts
Total-sw-tx-pkt : 0 pkts
Total-sw-err : 0 pkts
Apologies for the formatting: Notice how that in the per port stats table, the opackets and ipackets are incrementing correctly but obytes and ibytes show as 0. This is also reflected in the Total-Tx and Total-Rx stats. The expected bps of 12.96 Kbps is not being generated/received. And finally, in the summary stats also I see that Total-tx-pkt and Total-rx-pkt is displaying as 200 pkts but Total-tx-bytes and Total-rx-bytes is displaying as 0.
Thanks in advance.
--
You received this message because you are subscribed to the Google Groups "TRex Traffic Generator" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trex-tgn+u...@googlegroups.com.
To post to this group, send email to trex...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/trex-tgn/d8922cef-a497-4647-9e9d-dc2fd495ae69%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/trex-tgn/2d78f08c-0727-46f1-92da-bdbf3aa79cf1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.