Home > other >  F - stack kni set and analysis
F - stack kni set and analysis

Time:09-27

According to the example of tencent, f - stack start kni need to do it:
1. Select a network adapter, the LAN IP/netmask/gw: card at this time also in system kernel
2. Then put the card reserved for DPDK: DPDK - devbind. Py. The card from the system kernel to remove
3. Start the f - stack application: can be nginx can also be examples of f - stack helloworld, using a script start. Sh
4. Set up a virtual network card: according to the tencent and DPDK data, the virtual network adapter and previously reserved for f - the stack of CARDS for the same physical network card; Set the two identical IP/netmask/gw; Guarantee from the same physical network card to accept traffic, according to the configuration of kni into different treatment processes - f - stack protocol stack processing or into the kernel stack processing
5. Refer to the f - stack source code, the code in the kni interface name rules for veth0... VethN;
6. When the system network card instead of eth0 eno1, we set up a virtual network card still set veth0
7. At the end of the third step, you can use the system tools ifconfig f - application stack allocation kni: kni life at this time will be veth0 (vethN), kni at this time not configured IP/netmask, etc.; Can be found at the end of the fourth step, ifconfig kni configured IP/netmask
8. After the same physical network card, can give f - stack application to send and receive data, you can also use SSH management server
  • Related