Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multicast discovery issue in Kubernetes #144

Open
jrz1977 opened this issue Jan 27, 2021 · 3 comments
Open

Multicast discovery issue in Kubernetes #144

jrz1977 opened this issue Jan 27, 2021 · 3 comments

Comments

@jrz1977
Copy link

jrz1977 commented Jan 27, 2021

In kubernetes and other cloud providers, multicast is disabled and usually not possible to enable. IPFIX template discovery in this scenario will fail. Is there an alternative method or plan to implement some kind of unicast discovery protocol?

@Slepwin
Copy link

Slepwin commented Jan 28, 2021

In kubernetes and other cloud providers, multicast is disabled and usually not possible to enable. IPFIX template discovery in this scenario will fail. Is there an alternative method or plan to implement some kind of unicast discovery protocol?

In k8s you can use different load-balancing algorithms for service, example for kube-router CNI:

annotations:
   kube-router.io/service.scheduler: "sh" 

All traffic from one device/source will always going to the same pod and you do not need to use template discovery at all.

@jrz1977
Copy link
Author

jrz1977 commented Jan 28, 2021

This could be a

In kubernetes and other cloud providers, multicast is disabled and usually not possible to enable. IPFIX template discovery in this scenario will fail. Is there an alternative method or plan to implement some kind of unicast discovery protocol?

In k8s you can use different load-balancing algorithms for service, example for kube-router CNI:

annotations:
   kube-router.io/service.scheduler: "sh" 

All traffic from one device/source will always going to the same pod and you do not need to use template discovery at all.

This could be a workaround, but not ideal. Pods are ephemeral by nature and when a pod is recreated, until the device sends the template again, the new pod will not be able to process it.

Also sticky traffic is not ideal in enterprise networks, for example there could be 1000s of Wifi routers exporting ipfix.

@Slepwin
Copy link

Slepwin commented Feb 1, 2021

This could be a

In kubernetes and other cloud providers, multicast is disabled and usually not possible to enable. IPFIX template discovery in this scenario will fail. Is there an alternative method or plan to implement some kind of unicast discovery protocol?

In k8s you can use different load-balancing algorithms for service, example for kube-router CNI:

annotations:
   kube-router.io/service.scheduler: "sh" 

All traffic from one device/source will always going to the same pod and you do not need to use template discovery at all.

This could be a workaround, but not ideal. Pods are ephemeral by nature and when a pod is recreated, until the device sends the template again, the new pod will not be able to process it.

Also sticky traffic is not ideal in enterprise networks, for example there could be 1000s of Wifi routers exporting ipfix.

Yes, after pod re-creation need some time (2-3 minutes) to get templates, that not a big problem, also if you have multiple device (routers, etc) you still can balance traffic between pods (with source hash you just sticky traffic from one router to some pod). Sticky traffic is a must for consistent hash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants