-
Notifications
You must be signed in to change notification settings - Fork 13
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
Do we need an acked_packet event? #107
Comments
So this is similar to "do we need a For connection close and packet acked, the reasoning initially was that those could be fully parsed from the corresponding frames inside I can now see the reasoning for wanting a specific |
Personally, I agree with @marten-seemann. MsQuic logs (to ETW) events or state changes for things. For qlog, we then have a converter. We don't log the contents of every packet or frame. For packets, we track when they're created, acknowledged, dropped, assumed lost, deemed spuriously lost, etc. IMO, tools that process the logs should not have to know how to process a logged ACK frame to then go calculate which in-flight packets have now been acknowledged. Another reason, is that our logging system doesn't assume full state was contained within the log file. The logs may have been started mid run or the fixed fixed log buffer rolled over. In those cases, you wouldn't necessarily have the created event for a packet and wouldn't know what is already in-flight. |
Paraphrasing an argument I made in a Slack conversation: I can see @rmarx's argument that logging both the ACK frame and |
We have a
lost_packet
event, but no correspondingacked_packet
event. That event would fire when a packet is acknowledged and removed from the map of sent packets.A parser that wants to track when a packet is (first) acknowledged would have to build a map of sent packets, and remove packets from that map when they are either acknowledged, declared lost or when the packet number space is lost.
The text was updated successfully, but these errors were encountered: