-
Notifications
You must be signed in to change notification settings - Fork 5
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
pyshark.liveCapture drop packets? #3
Comments
Are you running |
Thanks for the reply. I used IXIA PerfectStorm device to generate the traffic, and the pyshark and wireshark ran in the same PC simultaneously to capture the traffic from the same interface. Comparing the captured pcap files, pyshark.liveCapture missed a lot of packets, even the input traffic rate is less than 10Mb/s. |
What is the different in pcap sizes? When you DIFF the files how much is different? |
In the experiment, the size ratio of pcap file generated from pyshark.liveCapture compared to that from Wireshark is about 50% or less relating to input traffic rate. IP filter was set during the packet capture for both. May repeat the experiments and verify the problem. Working on finding the cause and solution. thanks. |
50% less seem near impossible. I need to run a test myself to see my pcap sizes. |
When comparing the packets captured in "live_cap.pcap" by the function:
cap = pyshark.LiveCapture(interface='eth0',bpf_filter="ip", output_file = “live_cap.pcap”)
with the packets captured simultaneously by Wireshark in a pcap file, the packets in "live_cap.pcap" is much less.
Please help to answer whether there is packet drop issue in the pyshark.live_capture function, or some parameter setting is wrong, how to resolve the packet missing problem?
(this problem was posted in KimiNewt/pyshark#495, no answer yet)
Thanks.
The text was updated successfully, but these errors were encountered: