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

How to track packet loss in tx sent by xsk? #440

Open
Jasper-1024 opened this issue Sep 12, 2024 · 1 comment
Open

How to track packet loss in tx sent by xsk? #440

Jasper-1024 opened this issue Sep 12, 2024 · 1 comment
Assignees

Comments

@Jasper-1024
Copy link

For rx received traffic, I can use xdpdump to see if packets have reached the nic card. But how can I troubleshoot tx sent packets? Currently, I can only use tcpdump at the destination nic to check for missing packets. Are there any other troubleshooting approaches, tools, etc.? Any help would be greatly appreciated.

I apologize if this is a simple question. I'm just starting to learn about these concepts and would be extremely grateful for any guidance or suggestions. Thank you so much for your time and patience!

@magnus-karlsson
Copy link
Member

I would start by looking at the xsk error stats with the socket option XDP_STATISTICS. If that does not help and you are running in copy mode (i.e. skb mode) then you could try "perf record -e skb:kfree_skb" to see where the skb is dropped. In zero-copy mode, this will not work since there are no skbs, so you would like have to use perf probe to put kprobes into the xsk and driver code to figure out what is going on. Ethernet interface stats using ethtool or even just ifconfig might give you some hints even in the xero-copy case.

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

No branches or pull requests

2 participants