Dear Mr Longtrb, > I am a newbie in VPP. Many thanks to you all for making great Vpp. > I have many applications in user space (written by java, C, python,...) and I > want to connect those apps to VPP so what is the fastest way that VPP can > support without changing the application? > > I tried with tap create by VPP and cross connect it to a physical NIC, NIC is > bound by DPDK ( data path: NIC VPP - tap - application): > > vppctl create tap id 0 host-ip4-addr 192.168.56.110/24 gso > vppctl set interface tap0 ip address 192.168.56.110/24 > vppctl set interface l2 xconnect tap0 enp0s8 > vppctl set interface l2 xconnect enp0s8 tap0 > vppctl set interface state enp0s8 up > vppctl set interface state tap0 up > > But the bandwidth are lower and latency is higher than when I use real NIC ( > without VPP). > VPP is version 21.10, I use 4 workers. Server is ubuntu 20.04, tool test is > Iperf3.
If you compare: NIC - Linux kernel - BSD socket app and NIC - VPP - Linux kernel - BSD socket app Then I would indeed expect the latter to be slower. NIC - VPP - BSD socket app (using LD_PRELOAD https://s3-docs.fd.io/vpp/22.02/developer/extras/vcl_ldpreload.html) is one option. But the answer here is very much "it depends". Best regards, Ole
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#21156): https://lists.fd.io/g/vpp-dev/message/21156 Mute This Topic: https://lists.fd.io/mt/90135014/21656 Mute #vpp:https://lists.fd.io/g/vpp-dev/mutehashtag/vpp Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-