Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This frame solves several problems. 1. it allows us to get rid of Initial keys very quickly, without relying on the existing implicit mess. 2. it allows us to get rid of Handshake keys quickly, without timers. 3. it allows us to regulate the rate of key update, without risk of becoming unsynchronized. The big design question here is whether to include an explicit marker for the current key phase, or to pull that in from the packet. I've chosen the latter, but I am willing to be convinced that this is a bad idea. There is a risk that retransmissions of KEYS_READY will cause problems, but that risk is easily addressed by purging unacknowledged KEYS_READY frames any time you initiate a key update. Or, you could not retransmit frames blindly. The alternative means pulling in the notion of an epoch, likely copying from DTLS (0=Initial, 1=0-RTT, 2=Handshake, 3+=1-RTT). Thats complicated and we would still need to work out what to do with the validation code in that case. I've tried to keep the request to minimize the number of active keys, by allowing KEYS_READY to be deferred by up to 3PTO. That seems to work well. Closes #2267, #1951. Prerequisite for fixing #2309.
- Loading branch information
1 parent
a2a860f
commit e378a88
Showing
2 changed files
with
103 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters