Assigning traffic to streams
The streams that the traffic should be distributed to are specified by giving a range or list of streams as StreamId argument in one or more Assign NTPL commands.
Traffic that is not assigned to any stream will be dropped.
By default, traffic is distributed to a set of streams using a round robin algorithm.
Simple distribution example
In this example, all traffic will be distributed in round robin fashion between streams 0, 1, 2, 3, 4, 5 and 6.
Assign[StreamId=(0..6)] = All
Configuring host buffers
For forwarding traffic to
multiple host buffers and streams, host buffers must be configured in the
ntservice.ini file. To edit the ntservice.ini
file, run the following
command.
vim /opt/napatech3/config/ntservice.iniBy default, host buffers are configured as follows.
NumaNode = -1 HostBuffersRx = [4,16,-1]Four 16-Mbyte host buffers are configured on the NUMA node taken from the NumaNode value. NUMAnode = -1 means that the driver attempts to determine the NUMA node location of the SmartNIC. Set the number of the RX host buffers to a desired number. For example:
HostBuffersRx = [8,16,-1]ntservice must be stopped and restarted for changes to take effect.
/opt/napatech3/bin/ntstop.sh /opt/napatech3/bin/ntstart.shFor more information on configuration parameters in the ntservice.ini file, see ntservice ini file in DN-0449.