I'm getting closer but still missing some pieces of the puzzle.
Right now I am testing in VirtualBox with 3 VM's, one for T-Rex server, one a Linux Router, and one a T-Rex client (see topology attached).
To test the routing, I used the kernel driver for the interfaces and assigned IP addresses and configured default gateway, and confirmed that 10.1.1.2 could ping 10.2.2.2, confirming the router is working. I unbinded the interfaces from the kernel driver and binded them back to igb_uio for use with TRex.
Server trex_cfg.yaml:
- version: 2
interfaces: [dummy, '00:08.0']
low_end: true
port_info:
- ip: 10.1.1.2
default_gw: 10.1.1.1
platform:
master_thread_id: 0
latency_thread_id: 1
dual_if:
- socket: 0
threads: [2,3]
Client trex_cfg.yaml:
- version: 2
interfaces: ['00:08.0', dummy]
low_end: true
port_info:
- ip: 10.2.2.2
default_gw: 10.2.2.1
platform:
master_thread_id: 0
latency_thread_id: 1
dual_if:
- socket: 0
threads: [2,3]
I'd like to run a simple test between the client and server to learn how this works, so I am trying "astf/http_simple.py". I see in this file it is using 16.0.0.0/24 for the client network and 48.0.0.0/24 for the server network, so I have added a route 10 48.0.0.0/24 via 10.1.1.2 and a route for 16.0.0.0/24 via 10.2.2.2 to my router.
Am I on the right path?
I've tried on my server:
./t-rex-64 -f astf/http_simple.py -d 600 --astf --astf-server-only --nc
One my client:
./t-rex-64 -f astf/http_simple.py -d 600 --astf --astf-client-mask 1 --nc
I run a packet capture on my router and I do see the router receiving http packets from the client, source 16.0.0.x dest 48.0.0.x, but I don't see any replies from the server. Upon further investigation I see that my router is sending ARP requests for who has 10.2.2.2 and is getting no response, so these packets are not making it to the T-Rex server. Do I need to add static ARP entries to my router or should the TRex server be answering these ARP requests?
Kind regards,
Brad
--
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/9b24ecaa-c147-4bcc-8462-4925633d84e6%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/ce6337c7-4b78-4f57-9065-1778a5f745d2%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/16f81b2d-56cd-4dbf-8fc9-706e23104b8e%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/30f8dec4-1a05-46df-916b-57d04efa9591%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.