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

Reduce threshold of out-of-order very old packet detection. #2951

Merged
merged 1 commit into from
Aug 22, 2024

Conversation

boks1971
Copy link
Contributor

There are cases where the very first packet on resume is an out-of-order packet. In that case, the gap in both sequence number and time stamp is a small(ish) negative number. With a high threshold to declare very old packet, the condition does not trip and the packet gets through and treated as a packet that has rolled over.

It should be fine to have smaller threshold (in fact, it is probably okay to have something a little over 1.0 too) as the expected jump is calculated based on elapsed time since last packet receive and new packets should be coming in with a diff close to that. So, a factor of just over 1.0 to prevent false triggers should be fine. Using 1.5 for now.

There are cases where the very first packet on resume is an out-of-order
packet. In that case, the gap in both sequence number and time stamp is
a small(ish) negative number. With a high threshold to declare very old
packet, the condition does not trip and the packet gets through and
treated as a packet that has rolled over.

It should be fine to have smaller threshold (in fact, it is probably
okay to have something a little over 1.0 too) as the expected jump is
calculated based on elapsed time since last packet receive and new
packets should be coming in with a diff close to that. So, a factor of
just over 1.0 to prevent false triggers should be fine. Using 1.5 for
now.
@boks1971 boks1971 requested a review from a team August 22, 2024 11:14
Copy link
Contributor

@paulwe paulwe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

config?

@boks1971
Copy link
Contributor Author

config?

Thought about it. But, a very edge case. So, decided to skip it. Will make one if I have to mess with this again.

@boks1971 boks1971 merged commit 37c6f95 into master Aug 22, 2024
2 checks passed
@boks1971 boks1971 deleted the raja_drop_old_packet branch August 22, 2024 12:18
boks1971 added a commit that referenced this pull request Aug 22, 2024
There are cases where the very first packet on resume is an out-of-order
packet. In that case, the gap in both sequence number and time stamp is
a small(ish) negative number. With a high threshold to declare very old
packet, the condition does not trip and the packet gets through and
treated as a packet that has rolled over.

It should be fine to have smaller threshold (in fact, it is probably
okay to have something a little over 1.0 too) as the expected jump is
calculated based on elapsed time since last packet receive and new
packets should be coming in with a diff close to that. So, a factor of
just over 1.0 to prevent false triggers should be fine. Using 1.5 for
now.
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

Successfully merging this pull request may close these issues.

2 participants