-
Notifications
You must be signed in to change notification settings - Fork 268
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
[Bug] tcpreplay stop to generate unique-ip with --unique-ip option after some cycles #566
Comments
fklassen
added a commit
that referenced
this issue
Jun 3, 2020
At very high iteration counts '--unique-ip' calculation (which support floating point e.g. 0.75) has accuracy issues. Corrected by converting to integer earlier, and multiplying numerator/denominator by 1000.
fklassen
added a commit
that referenced
this issue
Jun 3, 2020
Bug #566 Fix float to integer rounding issue
Thanks for the detailed report. It was very helpful in reproducing the issue. Fixed in PR #600 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
I have pcap with only one udp packet.
I playing it like:
after ~ 11 minutes / 16 million cycles i see tcpreplay start to generate 2 same packets, after 38 million packets tcpreplay start to generate 4 same packets and etc.
i take pcap with 2 different packets and tried to play it on same speed(30k pps) and i see this situation start after ~38 million packets ~22min.
so, this bug reproduced after ~ 16-17 million cycles.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I thought tcpreplay can generate ~2 milliard unique packets. ( (255^4)/2 -because every cycle: dst.ip +1, src.ip -1)
System :
Ubuntu 16.04.6 LTS
tcpreplay version: 4.3.1 (build git:v4.3.1)
Copyright 2013-2018 by Fred Klassen - AppNeta
Copyright 2000-2012 by Aaron Turner
The entire Tcpreplay Suite is licensed under the GPLv3
Cache file supported: 04
Not compiled with libdnet.
Compiled against libpcap: 1.7.4
64 bit packet counters: enabled
Verbose printing via tcpdump: enabled
Packet editing: disabled
Fragroute engine: disabled
Default injection method: PF_PACKET send()
Optional injection method: netmap
The text was updated successfully, but these errors were encountered: