diff options
Diffstat (limited to 'doc/trex_stateless.asciidoc')
-rwxr-xr-x | doc/trex_stateless.asciidoc | 68 |
1 files changed, 1 insertions, 67 deletions
diff --git a/doc/trex_stateless.asciidoc b/doc/trex_stateless.asciidoc index 2bd21d91..8edb5df4 100755 --- a/doc/trex_stateless.asciidoc +++ b/doc/trex_stateless.asciidoc @@ -336,73 +336,7 @@ client.set_service_mode(port = 0, enabled = False) ---- === Port Service Mode - -In 'normal operation mode', to preserve high speed processing of packets, -TRex ignores most of the RX traffic, with the exception of counting/statistic and handling -latency flows. - - -In the following diagram it is illustrated how RX packets are handled. -Only a portion is forwarded to the RX handling module and none of forward back -to the Python client. - -image::images/port_normal_mode.png[title="Port Under Normal Mode",align="left",width={p_width}, link="images/port_normal_mode.png"] - - - -We provide another mode called 'service mode' in which a port will respond to ping, ARP requests -and also provide a capabality in this mode to forward packets to the Python control plane for -applying full duplex protocols (DCHP, IPv6 neighboring and etc.) - -The following diagram illustrates of packets can be forwarded back to the Python client - -image::images/port_service_mode.png[title="Port Under Service Mode",align="left",width={p_width}, link="images/port_service_mode.png"] - -In this mode, it is possible to write python plugins for emulation (e.g. IPV6 ND/DHCP) to prepare the setup and then move to normal mode for high speed testing - - -*Example Of Switcing Between 'Service' And 'Normal' Mode* -[source,bash] ----- - -trex(service)>service --help -usage: service [-h] [--port PORTS [PORTS ...] | -a] [--off] - -Configures port for service mode. In service mode ports will reply to ARP, -PING and etc. - -optional arguments: - -h, --help show this help message and exit - --port PORTS [PORTS ...], -p PORTS [PORTS ...] - A list of ports on which to apply the command - -a Set this flag to apply the command on all available - ports - --off Deactivates services on port(s) - - -trex>service - -Enabling service mode on port(s) [0, 1]: [SUCCESS] - -trex(service)>service --off - -Disabling service mode on port(s) [0, 1]: [SUCCESS] - ----- - -.*Example Of Switcing Between 'Service' And 'Normal' Mode-API* -[source,Python] ----- - - client.set_service_mode(ports = [0, 1], enabled = True) - - client.set_service_mode(ports = [0, 1], enabled = False) - ----- - -==== ARP / ICMP response -[IMPORTANT] -Only while in service mode, ports will reply to ICMP echo requests and ARP requests. +include::trex_port_service_mode.asciidoc[] === Neighboring Protocols |