VPP(Vector Packet Processing)
VPP 简介
VP是一种包处理加速框架,基于这个框架构建的用户态网络协议栈。专门用于网络分包(Packet)的加速处理。
部署VPP
#Get the newest version of VPP sources code
git clone https://gerrit.fd.io/r/vpp
#
git clone -b stable/1908 https://github.com/FDio/vpp.git
cd vpp
#Make sure there are no FD.io VPP or DPDK packages
rpm -q vpp
rpm -q DPDK
#Build VPP Dependencies
make install-dep
#Build VPP Release Version
make build-release
#Building Necessary Packages
make pkg-rpm
#Afer packages are built, they will be put in build-root directory.And finaly we can install the package to our system.
cd /vpp/buil-root
rpm -ivh *.rpm
绑定网口
#Get pci address
lshw -c network -businfo
lspci -m
驱动导入:
modprobe uio_pci_generic
modprobe igb_uio
将获取的PCI网口ID号写入startup.conf文件后,启动VPP
vpp -c /etc/vpp/startup.conf