FD.IO-VPP研究及使用七(使用TRex测试vpp隧道性能)
硬件:Intel® Atom™ CPU C3758 @ 2.20GHz, 4G内存, 4核,1G网卡
软件:ubuntu16.04, vpp18.10
TRex双向线速发64字节的小包。
测试二层报文
拓扑如下:
待测vpp设备配置:
startup.conf
cpu {
main-core 1
corelist-workers 0,2,3
}
vppctl set interface l2 bridge TenGigabitEthernet7/0/0 10
vppctl set interface l2 bridge TenGigabitEthernet7/0/1 10
TRex发包器配置:
vi /etc/trex_cfg.yaml
- port_limit : 2
version : 2
#List of interfaces. Change to suit your setup. Use ./dpdk_setup_ports.py -s to see available options
interfaces : ["07:00.0","07:00.1"]
port_info : # Port IPs. Change to suit your needs. In case of loopback, you can leave as is.
- dest_mac : "c4:00:ad:a2:02:fb"
src_mac : "c4:00:ad:a2:02:fa"
- dest_mac : "c4:00:ad:a2:02:fa"
src_mac : "c4:00:ad:a2:02:fb"
测试结果如下:
TRex 1G网卡线速发包1.5Mpps,VPP基本线速转发,不丢包
Debug版本测试结果如下:
可以看得出Debug版本性能会下降很多。
测试三层报文
拓扑如下:
TRex发包器配置
- port_limit : 2
version : 2
#List of interfaces. Change to suit your setup. Use ./dpdk_setup_ports.py -s to see available options
interfaces : ["07:00.0","07:00.1"]
port_info : # Port IPs. Change to suit your needs. In case of loopback, you can leave as is.
- ip : 10.10.10.100
default_gw : 10.10.10.1
- ip : 90.10.10.100
default_gw : 90.10.10.1
测试结果如下:
线速转发