Liujun,
Can you please elaborate on your use case? The description of your
topology does not include all of the information required to answer your
question because there is no mention of what the source/destination of
the packet you are describing.
VCL/VCL-LDPRELOAD provides connectivity from an application to the VPP
Host Stack for L4 sessions (i.e. TCP & UDP endpoints) for either local
or remote destinations. I presume that you have run the iperf test
connecting two local containers. In this special case, the VPP host
stack is aware that the source and destination ports are both local and
forwards the connection request to the server's VCL instance. The
server VCL then creates a pair of FIFO's and forwards the fifo
information to the client VCL providing a "cut-through" connection.
If you want to connect an application in a container to application that
is remote over an L4 session, then you need to configure VPP with the
appropriate fib entries for so that the VPP transport layer can send the
packet out the appropriate interface to the destination endpoint's IP
address. You can test this configuration by following the recipe
specified on the VPP wiki:
https://wiki.fd.io/view/VPP/VPPCommunicationsLibrary#Multi-host_Tests
Hope this helps,
-daw-
On 10/26/2017 11:50 PM, 刘军 wrote:
Hi,Everyone!
I am interested in the VPP Communications Library(VCL), I have used it
to connect two docker containers and do the performance test by
Iperf3. My question is how to connect the container to the host NIC.
The topology is below.
Topology
When a packet input from eth, the DPDK will get it and pass it to VPP.
How to pass the packet to the container1 or contanier2? Can I use the
link established by VCL? If yes, how to configure it?
Thank you!
Liujun
_______________________________________________
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev
_______________________________________________
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev