Host Loopback

Napatech Link-Capture™ Software Features

Platform
Napatech SmartNIC
Content Type
Feature Description
Capture Software Version
Link™ Capture Software 12.15

Host loopback returns traffic sent from the host back into the SmartNIC on the same port so that it is received again by the host. It loops frames transmitted by the host back to the host.

Feature

Host loopback enables frames transmitted from the host on a port or generated in the FPGA to be received on the same port and to be delivered to the host. The host-loopback feature is useful in a development environment to transmit and receive frames on the same host without a pluggable module or a physical link.

Note: Line loopback and host loopback cannot be configured on a port at the same time.
Figure. Host-loopback traffic path
Page-1 Rounded Rectangle.32 Server Server Sheet.2 L Shape Sheet.4 Round Corner Rectangle SmartNIC SmartNIC Round Corner Rectangle.24 Round Corner Rectangle.25 Round Corner Rectangle.26 Round Corner Rectangle.27 Round Corner Rectangle.28 Round Corner Rectangle.29 Round Corner Rectangle.30 Round Corner Rectangle.31 Round Corner Rectangle.33 Round Corner Rectangle.34 L Shape.38 Sheet.17 Port 0 Port 0 Sheet.18 Port 1 Port 1 Rounded Rectangle.25 Host Host Dynamic connector.26 Dynamic connector.27 Sheet.22 Outgoing traffc Outgoing traffc Sheet.23 Incoming traffc Incoming traffc Sheet.24 Host lookback active Host lookback active

Configuration

The host-loopback functionality can be enabled using the config tool or using the NTAPI.

Using the config tool, apply the --host_loopback option as shown in the following command example.

# Enable host loopback on port 0.
/opt/napatech3/bin/config --cmd set --port 0 --host_loopback on

It can also be configured using the NT_ConfigWrite function with the NT_CONFIG_PARM_PORT_SETTINGS_V2 parameter and the NtPortSettings_v2_s structure. Set NtPortSettings_v2_s.hostLoopback to 0 or 1 (see DN-0449).

Note: The RX power of the pluggable module is turned off on a port with host loopback enabled. Any received frames from the remote host are therefore dropped.
Note: If host loopback is enabled on a port which is connected to a remote host, frames are transmitted to the remote host while the same frames are delivered to the local host. To stop transmitting frames to the remote host, turn the TX power off using the config tool. For example:
/opt/napatech3/bin/config --cmd set --port 0 --txpower off