Bandwidth Allocation for Transfer of Frames to Host

Napatech Link™ Capture Software Features

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

Shaping based on priority

The bandwidth available for transfer of frames from the SDRAM and into the host memory is allocated among the host buffers according to the greatest need.

Time to fill the SDRAM

The time it takes to fill the SDRAM mainly depends on the network capture load, the size of the SDRAM, and the data transfer over the PCIe bus. It also depends to a smaller extent on the number of host buffers, the length of the packet descriptor used and in most cases the packet size.
Note: The SDRAM will never run full if the transfer over the PCIe bus can keep up with the capture load.

If the capture load exceeds the transfer over the PCIe bus, the SDRAM will fill up according to this equation:

           SizeSDRAM × 8 × F
tfull = –––––––––––––––––––––––   for Loadcapture > TransferPCI
        Loadcapture - TransferPCI

where:

tfull is the time in seconds to fill the SDRAM.

SizeSDRAM is the size of the SDRAM in GB.

F is a factor normally close to 1 that reflects the dependency on number of host buffers, length of packet descriptor used and packet size.

Loadcapture is the network capture load in Gbit/s.

TransferPCI is the data transfer in Gbit/s over the PCIe bus.

With a packet descriptor of 20 bytes, which equals the Preamble, Start Frame Delimiter and minimumInter-Frame Gap fields of an Ethernet frame, the factor F only depends on the number of host buffers, getting slightly smaller than 1 for high numbers of host buffers. A packet descriptor shorter than 20 bytes will increase F slightly especially for short packets while a packet descriptor longer than 20 bytes will decrease F also especially for short packets.

Example

As an example, consider an NT200A02 running at 2 × 100 Gbit/s and with full capture load with 300-byte packets, using a standard packet descriptor and transferring 100 Gbit/s of data over the PCIe bus:

The size of the SDRAM is 12.288 GB. There is no considerable host buffer contribution to the factor F, and the contribution from the packet descriptor is approximately 320/316. This means that the host buffer runs full in:

 12.288 × 8 × 1.01 Gbit
––––––––––––––––––––––--– = 1.0 s
 200 Gbit/s - 100 Gbit/s