Skip to content

Latest commit

 

History

History

Kernel2IP2Memif

Test kernel to IP to memif

This example shows that NSC and NSE on the different nodes could find and work with each other.

NSC is using the kernel mechanism to connect to its local forwarder. NSE is using the memif mechanism to connect to its local forwarder. Forwarders are using the IP payload to connect with each other.

Requires

Make sure that you have completed steps from basic or memory or ipsec mechanism setup.

Run

Deploy NSC and NSE:

kubectl apply -k https://github.com/networkservicemesh/deployments-k8s/examples/use-cases/Kernel2IP2Memif?ref=7a2735f6f8c8ed02d058c1a6a2f04846a3d88cad

Wait for applications ready:

kubectl wait --for=condition=ready --timeout=1m pod -l app=alpine -n ns-kernel2ip2memif
kubectl wait --for=condition=ready --timeout=1m pod -l app=nse-memif -n ns-kernel2ip2memif

Ping from NSC to NSE:

kubectl exec pods/alpine -n ns-kernel2ip2memif -- ping -c 4 172.16.1.100

Ping from NSE to NSC:

result=$(kubectl exec deployments/nse-memif -n "ns-kernel2ip2memif" -- vppctl ping 172.16.1.101 repeat 4)
echo ${result}
! echo ${result} | grep -E -q "(100% packet loss)|(0 sent)|(no egress interface)"

Cleanup

Delete ns:

kubectl delete ns ns-kernel2ip2memif