Open tcaiazzi opened 1 year ago
Hi When trex client and server deployed separately, how to fetch the received stats information in stateless traffic ?
Hi @pankajrodge,
Sorry, but I used only the Stateful API for now.
If I develop labs with the Stateless API I will ping you!
However searching the docs I found this method:
get_stats(ports=None, sync_now=True)
Gets all statistics on given ports, flow stats and latency.
See here for more details: https://trex-tgn.cisco.com/trex/doc/cp_stl_docs/api/client_code.html
Hi all,
I recently started to use TRex and I developed two Kathará labs for training.
The first is a very simple scenario to show the usage of the TRex Python API when the TRex client and server are deployed separately. The second tests the data-plane of a simple two-PoDs fat-tree where a TRex server is deployed inside the data center and a TRex client is deployed outside.
Kathará is an open source container-based network emulator. It supports all the main OSes (Linux, Windows, MacOS) and it is very simple to install and use (all the instructions are provided in the repository).
I think this is a very good starting point for newbies and for learning, if you are interested please take a look: https://github.com/tcaiazzi/kathara-trex-labs
The repo also contains a Dockefile to build an updated Docker Image of TRex.
Maybe you can add the labs as reference.
Thanks, Tommaso