networkservicemesh / deployments-k8s

Apache License 2.0
42 stars 34 forks source link

Question about VPP-forwarder #11878

Open isZams opened 5 months ago

isZams commented 5 months ago

Question

Hi everyone, I wanted to get some purely theoretical information. If a composition of NSEs is realised, is the VPP forwarder contacted by all elements of the chain? What I would like to understand is whether the forwarder, even in the case where kernel interfaces are used to create the composition, goes to forward traffic from one pod to another, or is simply an element that is contacted for the creation of tap interfaces. As far as I understand it, if memif interfaces are used, the VPP forwarder can also be used for forwarding traffic: however, in the case where kernel interfaces are used, since I manually handle the forwarding of traffic between interfaces, I believe the forwarder is not used. Considering also the picture present in the "kernel2kernel" example i would like to have a clarification about this aspect. Thanks for you attention.

EDIT2: I just tried to use the dashboard with a custom composition example where the pods are going to use kernele interfaces and this is the result. immagine

Instead this the result of the composition provided by your repo: immagine

isZams commented 5 months ago

Hi @denis-tingaikin, for curiosity i tried also the composition example provided by you and i uploaded the result in the previous comment. I hope this can be useful to have some clarifications about the forwarder. I would like to underline that what i want to understand is if the forwarder is responsible somehow for the forwarding of the traffic when using kernel interfaces instead of the memif ones.

This instead is the result of kernel2kernel example. immagine From what I remember, the VPP forwarder is designed to work with memif interfaces. So trivially what is the role of traffic forwarding in this example? Thanks for you attention