Trex version : v3.00
Stateless
sudo ./t-rex-64 -i --software --cfg trex_cfg.yaml
Killing Scapy server... Scapy server is killed
Starting Scapy server..... Scapy server is started
Starting Cmds server.... Cmds server is started
The ports are bound/configured.
Starting TRex v3.00 please wait ...
set driver name net_af_packet
driver capability : SLRO
set dpdk queues mode to ONE_QUE
Number of ports found: 2 (dummy among them: 1)
zmq publisher at: tcp://*:4500
wait 1 sec .
port : 0
------------
link : link : Link Up - speed 10000 Mbps - full-duplex
promiscuous : 0
number of ports : 2
max cores for 2 ports : 1
tx queues per port : 3
-------------------------------
RX core uses TX queue number 65535 on all ports
core, c-port, c-queue, s-port, s-queue, lat-queue
------------------------------------------
1 0 0 1 0 0
-------------------------------
Cleanup of old namespaces related to Linux-based stack
Cleanup Done
trex_cfg.yaml
### Config file generated by dpdk_setup_ports.py ###
- port_limit: 2
version : 2
#c : 2
interfaces: ['test1', 'dummy']
stack : linux_based
low_end : true
low_end_core: 3
ICMP Stream:
packet = (Ether(src='00:00:00:01:02:03',dst='"dstmac") /
Dot1Q(vlan=1552) /
IP(src='25.20.20.100',proto=1,dst='25.20.20.10') /
ICMP() /
Raw(load='a' * 954))
vm = STLVM()
stream = STLStream(packet = STLPktBuilder(pkt = packet, vm = vm),stream_id = 1,name = 'TC16_UC2_Ping',mode =STLTXSingleBurst(total_pkts = 2,pps = 50),flow_stats = STLFlowStats(pg_id = 1))
streams.append(stream)
Trex ns :
trex(service)>ns show-node -p 0 --mac 00:00:00:01:02:03
Setting port 0 in with namespace configuration [SUCCESS]
wait_for_async_results [SUCCESS]
{'nodes': [{'bpf': '',
'ether': {'src': '00:00:00:01:02:03'},
'ipv4': {'dst': '25.20.20.10', 'src': '25.20.20.100'},
'ipv6': {'enabled': False},
'is-shared-ns': False,
'is_bird': False,
'linux-ns': 'trex-a-0-1',
'linux-veth-external': 'trex-a-0-1-T',
'linux-veth-internal': 'trex-a-0-1-L',
'vlan': {'tags': [1552], 'tpids': []},
'vlan_filter': 'no_tcp_udp'}]}
trex(service)>
Capture in linux namespace:
ip netns exec trex-a-0-1 tcpdump -i any
13:35:52.703904 IP _gateway > trex-trex-0: ICMP echo reply, id 0, seq 0, length 962
Stats:
trex(service)>stats -s
Streams Statistics
PG ID | 1
-----------+------------------
Tx pps | 0 pps
Tx bps L2 | 0 bps
Tx bps L1 | 0 bps
--- |
Rx pps | 0 pps
Rx bps | 0 bps
---- |
opackets | 2
ipackets | 0
obytes | 2008
ibytes | 0
----- |
opackets | 2 pkts
ipackets | 0 pkts
obytes | 2.01 KB
ibytes | 0 B
Can you please help me understand on what is going wrong here ?