traffic_generator Subpackage
DTS traffic generators.
A traffic generator is capable of generating traffic and then monitor returning traffic. All traffic generators must count the number of received packets. Some may additionally capture individual packets.
A traffic generator may be software running on generic hardware or it could be specialized hardware.
The traffic generators that only count the number of received packets are suitable only for performance testing. In functional testing, we need to be able to dissect each arrived packet and a capturing traffic generator is required.
- create_traffic_generator(tg_node: Node, traffic_generator_config: TrafficGeneratorConfig) CapturingTrafficGenerator
The factory function for creating traffic generator objects from the test run configuration.
- Parameters:
tg_node (Node) – The traffic generator node where the created traffic generator will be running.
traffic_generator_config (TrafficGeneratorConfig) – The traffic generator config.
- Returns:
A traffic generator capable of capturing received packets.
- Return type: