Hi Pallav,
Gladly. For this experiment, my setup is very simple (see image attached):
This configuration allows me to have a direct connection to the NFP card for both client devices which means i don't have to worry about the type of traffic i send as no routing is required.
The application is then built on the host and flashed to the NFP card. In this experiment, the host has no involvement in the network traffic and is effectively only responsible for flashing and powering the NFP card.
Once the application is running, i then run sudo tshark -x -i eth0
on both Client A and B to monitor for traffic.
ip link set eth0 promisc on (
though this command will depend on your OS)
.
sudo tcpreplay --intf1=eth0 single_pkt.pcap on
either Client A or B to direct arbitrary network traffic to the NFP card. As an update, i have been able to forward traffic between the two
physical interfaces on the device and have updated the repository accordingly.
After some general testing however, i do have two questions which i
would be very grateful if anyone could answer.
Firstly, i noted that for the NFP-400 2x10GE, all traffic received would
have an port number of either 0 or 4 depending on which physical
interface it was received over. Why is there and offset of 4 between the
physical interfaces and what are ports 1-3 reserved for?
Secondly, as best i can tell, traffic is only sent or received from one
NBI (all traffic is being handled by engines on island 32). After
reading the The Joy of MicroC Annex
(https://open-nfp.org/m/documents/the-joy-of-micro-c-annex_E8Wpvht.pdf),
i was under the impression that there would a separate NBI for each
physical interface. Do some architectures contain only a single NBI, and
how are the NBIs associated with physical interfaces? Is there
documentation indicating which products contain multiple NBIs and how
they are associated with NFP cards supporting multiple interfaces?
Kind regards,
Sean
As an update, i have been able to forward traffic between the two physical interfaces on the device and have updated the repository accordingly. After some general testing however, i do have two questions which i would be very grateful if anyone could answer.
Firstly, i noted that for the NFP-400 2x10GE, all traffic received would have an port number of either 0 or 4 depending on which physical interface it was received over. Why is there and offset of 4 between the physical interfaces and what are ports 1-3 reserved for?
Secondly, as best i can tell, traffic is only sent or received from one NBI (all traffic is being handled by engines on island 32). After reading the The Joy of MicroC Annex (https://open-nfp.org/m/documents/the-joy-of-micro-c-annex_E8Wpvht.pdf), i was under the impression that there would a separate NBI for each physical interface. Do some architectures contain only a single NBI, and how are the NBIs associated with physical interfaces? Is there documentation indicating which products contain multiple NBIs and how they are associated with NFP cards supporting multiple interfaces?