The present invention relates to a method and apparatus for encoding security status information.
Low rate personal wireless networks are used with small devices with transmission speeds of up to 250 kilobits per second. These devices typically have severe power constraints as they are operated on batteries, In many of these devices, such as battery-operated sensors, remote controls, car door openers and light switches, it is necessary to have long battery life. If the batteries die too quickly then the replacement cost can be equal to the cost of the product itself.
It is also desirable to have secure communications between such constrained devices to prevent abuse of the system. One technique is to encrypt data being sent between the devices. Encryption mathematically transforms the transmitted information using a secret key known only to the two parties who are communicating. Without the key, the message is unintelligible. However, this requires overhead in the message structure in order to allow the recipient to decrypt the data. The sender must indicate which key it has used, which algorithm it has used to encrypt, and input parameters of the encryption algorithm such as a counter.
Usually, a frame counter is used as one of the input parameters for freshness in the encryption. Freshness means that the parameters change for each communication and are thus not reused. One type of encryption called a block cipher breaks up a message into parts (blocks) of a fixed size. Various block ciphers are known such as DES (Data Encryption Standard) and AES (Advanced Encryption Standard). Block ciphers often use an input block as a seed when used in stream-cipher mode. This input block should not repeat in order to maintain data freshness and data confidentiality. In one approach, a frame counter and a key identifier are used as the input block and are indicated in the message that is sent. In addition, each message usually includes a sequence counter that is not used for security but rather to match the sending of a message with the acknowledgement thereof by the recipient. These messages typically include a data portion referred to as the payload which is about 20 bytes. Accordingly, a five byte overhead for security information represents a 25% overhead.
The amount of data transferred between such constrained devices is one of the principal factors in their battery life. Accordingly, it is desirable to reduce the amount of information transferred.
However, in order to maintain the security of the underlying encryption methods, the number of bits in the frame counter should not be reduced.
In accordance with one aspect of the present invention there is provided a method of encoding a frame counter used in communication between a sender and a receiver. The method comprises maintaining a sequence counter and a frame counter at the sender and computing new values of the frame counter such that the frame counter is unique and recoverable from an encoded value of the frame counter and the sequence counter.
In another aspect there is provided a method of transmitting messages from a sender to a recipient over a wireless channel, the messages including a sequence counter and a frame counter. The method comprises establishing initial values of the sequence counter and the frame counter at the sender. Initial values of the frame counter and the sequence counter are provided to the recipient. The sender sends compressed messages including the value of the sequence counter and not the frame counter and monitors for an acknowledgement of receipt by the recipient. When no acknowledgment is received, the sender sends uncompressed messages until an acknowledgement of receipt is received from the recipient. The sequence counter is incremented and the next value of the frame counter is established as the integer next larger than previous value of the frame counter which is congruent to the sequence counter modulo 256.
In yet another aspect, there is provided a method of transmitting messages from a sender to a recipient over a wireless channel, the messages including a sequence counter and a frame counter. The method comprises establishing initial values of the sequence counter and the frame counter at the sender and providing the initial values of the frame counter and the sequence counter to the recipient. The sender sends compressed messages including the value of the sequence counter and not the frame counter. Periodically the sender sends uncompressed messages including the value of the frame counter according to predefined criteria. The sender increments the sequence counter and establishes the next value of the frame counter as the integer next larger than previous value of the frame counter which is congruent to the sequence counter modulo 256.
In a further aspect, there is provided a wireless device for receiving communications from other wireless devices in a wireless network. The device comprises storage for a frame counter, a receiver for obtaining a message over the wireless network, the message including a sequence counter and data encrypted using a secret key and a new value of the frame counter as input to the encryption. The device includes a decryptor configured to perform decryption complementary to the encryption used in the message, the decryptor having access to the secret key. A processor is connected to the message receiver and configured to recover the value of the frame counter from a sequence counter in the message and provide the frame counter and encrypted data from the message to the decryptor.
In a yet further aspect, there is provided a wireless device for sending communications to other wireless devices in a wireless network. The device comprises storage for a frame counter and a sequence counter and a processor to compute a new value of the frame counter such that the frame counter is unique and recoverable from an encoded value of the frame counter and the sequence counter. The device further includes a transmitter for sending a message over the wireless network, the message including a sequence counter and data encrypted using a secret key and the new value of the frame counter as input to the encryption.
These and other features of the preferred embodiments of the invention will become more apparent in the following detailed description in which reference is made to the appended drawings wherein:
As may be seen in
The correspondents exchange messages using packets in the format shown in
In operation, the header is used to direct the packet to its intended address using the addressing fields. At the recipient, the footer is used to perform error correction and to ensure that the message has been received intact. In addition, the recipient may acknowledge the message. The acknowledgement will include the sequence counter DSN. The sequence counter is used to match sent messages with their acknowledgements. The security status information includes a frame counter which is used as input to a decryption method at the recipient. The decryption method is then used to decode the data and recover the original data sent by the sender.
In order to reduce the amount of information transferred, the frame counter is specially encoded. This encoding is accomplished by updating the frame counter N to a value of N0≥N such that N0=min {N1≥N such that N′=DSN mod 256}. The frame counter can then be represented as 3 byte encoded frame counter portion with the sequence counter DSN appended thereto. Accordingly, it is only necessary to transmit 3 bytes in the payload portion to communicate the frame counter rather than the full length of 4 bytes.
In another embodiment, further reduction in the information transferred may be achieved by omitting the frame counter altogether from the payload as seen in
Referring therefore to
In typical use, the sender will be communicating with several recipients and accordingly the messages may be spaced out in time. There may be intervening messages to other recipients which necessitate incrementing the sequence control DSN between messages to any given recipient. Accordingly, the consecutive structure shown in
In the above example, the recipient always acknowledges messages from the sender. Accordingly, the sender is immediately notified that a message has not been received because it does not receive an acknowledgement. In this case, the sender can send a full message to resynchronise transmission.
Referring to
In an alternative embodiment, the recipient does not acknowledge messages received. The sender continues to transmit regardless of whether the Messages are actually received. Accordingly, it is necessary for the sender to occasionally send uncompressed messages containing the value of the frame counter in case a loss of synchronisation has occurred. Referring therefore to
The steps performed in the example of
In a further embodiment, the recipient occasionally acknowledges messages. Furthermore, the sender may indicate in the header of a sent message that this message should be acknowledged. The recipient can therefore use such messages to indicate that a loss of synchronisation has occurred. Referring therefore to
Referring to
It will be recognised that in these embodiments, a reduction in the amount of data transferred is achieved. The reduction is realized by maintaining frame counters at both the sender and the recipient. The inventor has recognized that the recipient can reconstruct the correct value of the frame counter from partial information received from the sender in combination with the recipient's local copy of the information. Furthermore, a recovery mechanism is provided which re-synchronizes frame counters that end up out-of-synchronization. It will be recognized that the recovery mechanism allows the compression technique to be applied in a robust manner.
It will be recognized that the above techniques are not limited to use with integers hut rather may be used with counters that are elements of a finite set with a partial ordering. Furthermore, although the technique has been described in the particularly advantageous setting of a cryptographic system, it may be applied in other settings where counters are used and Where a reduction in communication cost is at a premium. One example of such a setting is the inclusion of frame counters to facilitate detection of duplicate transmission.
Although the invention has been described with reference to certain specific embodiments, various modifications thereof will be apparent to those skilled in the art without departing from the spirit and scope of the invention as outlined in the claims appended hereto.
This application is a divisional application of U.S. application Ser. No. 10/726,493 filed on Dec. 4, 2003, which claims priority from U.S. Provisions Application No. 60/431,078 filed on Dec. 4, 2002 and U.S. Provisional Application No. 60/431,645 filed on Dec. 5, 2002 hereby incorporated by reference.
Number | Date | Country | |
---|---|---|---|
60431645 | Dec 2002 | US | |
60431078 | Dec 2002 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 10726493 | Dec 2003 | US |
Child | 12549075 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 14470364 | Aug 2014 | US |
Child | 16113518 | US | |
Parent | 12549075 | Aug 2009 | US |
Child | 14470364 | US |