From f812c253dc4a0fc5b3f3be8885834337f79ba58f Mon Sep 17 00:00:00 2001 From: Randy Bush Date: Tue, 2 Jan 2024 16:56:09 -0800 Subject: [PATCH] reworked version negotiation --- draft-ietf-sidrops-8210bis.xml | 44 ++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/draft-ietf-sidrops-8210bis.xml b/draft-ietf-sidrops-8210bis.xml index 47a8ecb..b982978 100644 --- a/draft-ietf-sidrops-8210bis.xml +++ b/draft-ietf-sidrops-8210bis.xml @@ -1177,6 +1177,49 @@
+ + Once a router has established a transport connection to a cache, + it MUST attempt to open a RPKI-Router 'session' by issuing + either a Reset Query ) or a Serial + Query () with the highest version of + this protocol the router implements in the Protocol Version + field. If the cache supports that version, it responds with a + Cache Response () of that version + and the session is considered open. + + + If a cache which supports version N receives a query with + Protocol Version Q < N, and the cache does not support + versions <= Q, the cache MUST send an Error Report () with Protocol Version N and Error Code 4 + ("Unsupported Protocol Version") and disconnect the transport + session. + + + If a cache which supports version N receives a query with + Protocol Version Q < N, the cache MUST downgrade to protocol + version Q, or , + and respond with a Cache Response () of that Protocol Version and the + session is considered open. + + + If the router query has version Q > N, the cache MUST send an + Error Report () with Protocol Version + N and Error Code 4 ("Unsupported Protocol Version"), and the + router SHOULD send another query with a Protocol Version Q of + the version N in the Error Report, unless it has already + failed at that version. This MAY repeat with the router + attempting to negotiate lower and lower versions until they + agree. + + + If the router requests Q == 0 and it still fails with the cache + sending an Error Report () with Error Code + 4 ("Unsupported Protocol Version"), then the router MUST abort + the transport connection. + + In any of the downgraded combinations above, the new features of the higher version will not be available, and all PDUs MUST have