Currently the TRex Test has a hardcoded set of streams.
In order to make it more generic and extendable, this series first refactors the client and server code into a library that does not depend on other LNST code. That way, a small cli appliation can be implemented to inject traffic using the same code as LNST would. This is useful for early prototyping.
An example of such as tool is introduced: test_tools/tperf. It basically runs the client and server as LNST would and report the aggregated throughput.
Finally, the stream can be modularized into TRex compatible modules so that: - New stream generators can be easily implemented - TRex tools (e.g: stl-sym) can be used for stream generator development
The current stream generation is modularized as an example: UdpSimple
Finally a new stream generator is introduced: UdpMultiflow, that creates multiple UDP streams by modifying the source and destination ports.
Adrian Moreno (4): lnst.Tests.TRex Create lnst-independent library test_tools: Add tperf lnst.TRex Use stl compatible modules to generate streams lnst.Tests.TRex: Add UDPMultiflow
lnst/External/TRex/TRexLib.py | 215 +++++++++++++++++++++++++++++ lnst/External/TRex/UDPMultiflow.py | 39 ++++++ lnst/External/TRex/UDPSimple.py | 38 +++++ lnst/External/TRex/__init__.py | 0 lnst/External/__init__.py | 0 lnst/Tests/TRex.py | 144 ++++--------------- test_tools/tperf/tperf | 201 +++++++++++++++++++++++++++ 7 files changed, 517 insertions(+), 120 deletions(-) create mode 100644 lnst/External/TRex/TRexLib.py create mode 100644 lnst/External/TRex/UDPMultiflow.py create mode 100644 lnst/External/TRex/UDPSimple.py create mode 100644 lnst/External/TRex/__init__.py create mode 100644 lnst/External/__init__.py create mode 100755 test_tools/tperf/tperf