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

Add a method to record pcap files with a PC #157

Open
jakkul opened this issue Apr 11, 2024 · 0 comments
Open

Add a method to record pcap files with a PC #157

jakkul opened this issue Apr 11, 2024 · 0 comments

Comments

@jakkul
Copy link

jakkul commented Apr 11, 2024

Hey! I fully understand that this is not really possible to record a pcap file with a laptop, but there is certain equipment out there available, that can turn your PC into a pcap recording machine.

I can help putting together a howto that says how to do it. I know how to do it with Mellanox ConnectX-4 and newer cards. It turns out that Nvidia's OFED drivers just do the job perfectly. After installing the drivers and configuring a network card, one must:

  • sync the time using PTP
  • join the multicast with the 2110 stream

ip addr add MULTICAST-IP/32 dev NETWORK-INTERFACE autojoin

  • just record it with tcpdump with following options

chrt -rr 99 taskset -c 5 tcpdump -i NETWORK-INTERFACE -s 65535 -w YOUR-PCAP.pcap -c 100000 --time-stamp-precision=nano -j adapter_unsynced udp and "dst MULTICAST-IP"

Don't forget to drop the multicast afterwards.

So if it's OK to add a howto on this - please let me know where should I put it, I'll do something longer and create a pull request with that.

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

1 participant