facebook / mvfst

An implementation of the QUIC transport protocol.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Question about Connection ID in mvfst's implementation of QUIC

wtao0221 opened this issue · comments

Hi team,

Suppose one host may have multiple QUIC connections. Will there any source or destination connection IDs be the same?

They shouldn't be, otherwise there'd be no way to reliably distinguish the connections. CID generation thus has to have a degree of randomness in it to avoid such eventualities. You can see how our CID generation tries to account for this here: https://github.com/facebookincubator/mvfst/blob/main/quic/codec/DefaultConnectionIdAlgo.h#L18