qlog icon indicating copy to clipboard operation
qlog copied to clipboard

units of src_port, dst_port, minimum_congestion_window

Open junhochoi opened this issue 4 years ago • 2 comments

While I read the some of the event definitions, I have some questions:

https://github.com/quicwg/qlog/blob/main/draft-ietf-quic-qlog-quic-events.md#L312

    src_port?: uint32,
    dst_port?: uint32,

uint16 for udp port numbers (https://datatracker.ietf.org/doc/html/rfc768) looks good enough.

https://github.com/quicwg/qlog/blob/main/draft-ietf-quic-qlog-quic-events.md#L1106

    initial_congestion_window?:uint64, // in bytes
    minimum_congestion_window?:uint32, // in bytes // Note: this could change when max_datagram_size changes

Since both are congestion window values, using uint64 for both makes sense to me.

junhochoi avatar Jul 06 '21 17:07 junhochoi

Hello Junho,

Thanks for opening the issue.

uint16 for UDP ports seems sensible.

Not sure if we need uint64 at all for congestion windows though... I'd rather think that using uint32 for the initial cwnd would be better? (or are there systems doing +4GB bursts on new connections somewhere? :P)

rmarx avatar Jul 09 '21 09:07 rmarx

congestion_window is also uint64, so I just think that initial_congestion_window and minimal_congestion_window need to be a same type. In practice it will fit into 32bit (10 x mss and 2 x mss, respectively), but no need to assign a different type for them only because they are small?

junhochoi avatar Jul 09 '21 18:07 junhochoi