-
-
Notifications
You must be signed in to change notification settings - Fork 416
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
exposes current path MTU discovered in connection stats #1967
Conversation
behzadnouri
commented
Aug 14, 2024
- For debugging and performance analysis purposes we need to inspect path MTU discovered by the connection.
- The commit exposes current path MTU discovered in connection stats.
Hey @djc , this is a pretty small trivial change. |
Who's we, what's the use case, why aren't the currently exposed values good enough for you? |
(Are you aware of https://docs.rs/quinn-proto/latest/quinn_proto/struct.Connection.html#method.rtt?) |
https://github.com/anza-xyz/agave We need to understand and optimize around packet fragmentation and see if we can send larger packets without exacerbating packet fragmentation. That requires to gather some data about path MTU quinn is discovering and using between nodes in the cluster.
I don't think path MTU is exposed any where.
I specifically need to know path MTU. What is the concern about exposing path MTU? |
QUIC packets are never fragmented. That's why Quinn knows about the MTU internally in the first place: to maximize efficiency without sending packets that would exceed it. https://docs.rs/quinn/latest/quinn/struct.Connection.html#method.max_datagram_size is a function of MTU, and may be of interest, but for streams you shouldn't need to think about this.
Every new API incurs maintenance costs, so we need to ensure additions are strongly motivated. |
Maybe this was misunderstood. I meant, for example, you can send any amount of data with this api:
That is fair and right. |
This is stream fragmentation, not packet fragmentation. Stream fragmentation does not incur the elevated loss risks that make packet fragmentation harmful, because the transport layer is aware of it.
It does seem like a reasonable thing to monitor, since unexpected deviations would be a good signal of something wrong with your network. |
2aeccac
to
5ecfca2
Compare
Would you mind squashing the extra commit? |
5ecfca2
to
039de5f
Compare
done. |
Thanks! |