Goals

Fields

Session IDs, sequence numbers and Message IDs

A session represents a particular block cipher key and MAC key.

It's suggested that sessions be remembered for at least 5 seconds, but it is not required.

All sessions start with sequence # 0. Messages with a sequence # of 0 MUST contain a block cipher key and a MAC key signed by the source encrypted to the destination that the destination can retrieve and verify with no further messages exchanged with the source (provided that it already knows the source's full public key).

Handling of message IDs

A message id is considered a globally unique identifier for a message from the source to the destination. As such, there is some processing that should occur to ensure this rule is properly maintained.

A message id taken as a whole is a monotonically increasing number. This means that you can base a sliding window on the message id and toss out messages that are too 'old' to fit in the window. This greatly simplifies protection against replay attacks as you only have to remember the specific message ids you've recieved within the window.

Use of protocol data in higher layer protocols

The service receiving the message knows the source, the destination, and the message id. It should not worry about the internal structure of the message id. It may use these fields in its messages and reference previously seen messages by their message id.

In particular, when acknowledging reciept of data, reference to the message id being acknowledged is encouraged.

CAKE: CakeProtocol2 (last edited 2006-02-20 02:14:18 by EricHopper)