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

Stateless Reset and CID Recovery #1639

Closed
MikeBishop opened this issue Aug 7, 2018 · 0 comments
Closed

Stateless Reset and CID Recovery #1639

MikeBishop opened this issue Aug 7, 2018 · 0 comments
Labels
-transport editorial An issue that does not affect the design of the protocol; does not require consensus.

Comments

@MikeBishop
Copy link
Contributor

6.13.4.2 discusses the need to request a non-zero-length CID if you want to be able to generate Stateless Resets:

An endpoint that loses state can use the same method to generate a valid Stateless Reset Token. The connection ID comes from the packet that the endpoint receives.

This design relies on the peer always sending a connection ID in its packets so that the endpoint can use the connection ID from a packet to reset the connection. An endpoint that uses this design cannot allow its peers to send packets with a zero-length destination connection ID.

However, it doesn't discuss the fact that the length of the CID isn't identifiable from a short-header packet, and therefore even this algorithm works only if you either use a constant CID length or embed a length indicator in your CIDs. This might be a worthwhile piece to mention.

@MikeBishop MikeBishop added editorial An issue that does not affect the design of the protocol; does not require consensus. -transport labels Aug 7, 2018
martinthomson added a commit that referenced this issue Aug 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
-transport editorial An issue that does not affect the design of the protocol; does not require consensus.
Projects
None yet
Development

No branches or pull requests

1 participant