Port
This module contains the L47 port classes.
The Xena L47 test execution engine has seven states: off
, prepare
, prepare_rdy
, prerun
, prerun_rdy
, running
and stopped
. Traffic is generated in the prerun
and running states only, and configuration of parameters is only valid in state off
except for a few runtime options. Port traffic commands can be given with P4_TRAFFIC
and port state queried by P4_STATE
.
off
- default state. Entered from stopped or prepare onOFF
command. This is the only state that allows configuration commands.P_RESET
is also considered a configuration command. Upon entering off state, some internal ‘’house cleaning’’’ is done. For example: freeing TCP Connections, clearing test specific counters etc.prepare
- this state is entered from state off onPREPARE
command. Here internal data structures relevant for the test configuration are created.prepare_rdy
- entered automatically after activities in prepare have completed successfully.prepare_fail
- entered automatically from prepare, if an error occurs. An error could for example be failure to load a configured replay file.prerun
- entered fromprepare_ready
onPRERUN
command. If enabled, this is where ARP and NDP requests are sent.prerun_rdy
- entered automatically after activities in prerun have completed.running
- entered either fromprepare_ready
orprerun_ready
onON
command. This is where TCP connections are established, payload is generated and connections are closed again.stopping
- entered fromrunning
,prerun_ready
orprerun
onSTOP
command. Stops Rx/Tx traffic. In thestopping
state, post-test data are calculated and captured packets are saved to files.stopped
- entered automatically after activities instopping
are complete. This is where you can read post-test statistics and extract captured packets.