Method and system for key generation, distribution and management
11496294 · 2022-11-08
Assignee
Inventors
- Syed Khalid Raza (Fremont, CA)
- Praveen Raju Kariyanahalli (San Ramon, CA)
- Rameshbabu Prabagaran (Los Gatos, CA)
- Amir Khan (San Jose, CA, US)
Cpc classification
H04L63/068
ELECTRICITY
H04L63/062
ELECTRICITY
H04L63/06
ELECTRICITY
H04L9/0825
ELECTRICITY
H04L9/0816
ELECTRICITY
International classification
Abstract
A method for securing communications for a given network topology is provided. The method comprises generating by a node N(i) of the network, security parameters for the node N(i); transmitting by the node N(i), said security parameters to a controller for the network; maintaining by the controller said security parameters for the node N(i); receiving by the controller a request from a node N(j) for the security parameters for the node N(i); retrieving by the controller the security parameters for the node N(i); and transmitting by the controller said security parameters to the node N(j).
Claims
1. A method comprising: receiving, by a controller, key parameters generated by a first node, the key parameters including at least a current key; maintaining, by the controller, the key parameters for the first node; receiving, by the controller, a request from a second node for the key parameters of the first node; transmitting, by the controller, the key parameters of the first node to the second node; receiving, by the controller from the first node, a rekey message with a new key generated by the first node, the rekey message received before the current key for the first node expires; and receiving, by the controller from the first node, a key invalidation message to invalidate the current key in response to the second node and additional nodes that have previously received the new key.
2. The method of claim 1, further comprising: in response to receiving the key parameters of the first node, establishing a data channel, by the second node, with the first node.
3. The method of claim 2, further comprising: transmitting, by the second node, data encrypted with the current key.
4. The method of claim 2, further comprising: transmitting, by the controller to the second node, updated key parameters including the new key.
5. The method of claim 4, further comprising: transmitting, by the second node, data encrypted with the encryption by new key.
6. The method of claim 5, further comprising: in response to determining the data was encrypted with the new key, recording that the second node has the new key; and in response to determining the second node and additional nodes have previously received the key parameters and have been recorded as receiving the new key, invaliding the current key.
7. The method of claim 1, further comprising: determining, by a key timer at the controller, that the current key is invalid.
8. A system comprising: at least one processor; and at least one memory storing instructions, which when executed by the at least one processor, causes the at least one processor to: receive key parameters generated by a first node, the key parameters including at least a current key; maintain the key parameters for the first node; receive a request from a second node for the key parameters of the first node; transmit the key parameters of the first node to the second node; receive, from the first node, a rekey message with a new key for the first node, the rekey message received before the current key for the first node expires; and receive, from the first node, a key invalidation message to invalidate the current key in response to the second node and additional nodes that have previously received the new key.
9. The system of claim 8, wherein in response to receiving the key parameters of the first node, the second node establishes a data channel with the first node.
10. The system of claim 9, wherein the second node transmits data encrypted with current key.
11. The system of claim 9, further comprising instructions which when executed by the at least one processor, causes the at least one processor to: transmit, to the second node, updated key parameters including the new key.
12. The system of claim 11, wherein the second node transmits data encrypted with the new key.
13. The system of claim 12, wherein the first node records that the second node has the new key in response to determining the data was encrypted with the new key, and the first node invalidates the current key in response to determining the second node and additional nodes have previously received the key parameters and have been recorded as receiving the new key.
14. The system of claim 13, further comprising instructions which when executed by the at least one processor, causes the at least one processor to: determine, by a key timer, that the current key is invalid.
15. At least one non-transitory computer-readable medium storing instructions, which when executed by at least one processor, causes the at least one processor to: receive key parameters generated by a first node, the key parameters including at least a current key; maintain the key parameters for the first node; receive a request from a second node for the key parameters of the first node; transmit the key parameters of the first node to the second node; receive, from the first node, a rekey message with a new key for the first node, the rekey message received before the current key for the first node expires; and receive, from the first node, a key invalidation message to invalidate the current key in response to the second node and additional nodes that have previously received the new key.
16. The at least one non-transitory computer-readable medium of claim 15, wherein in response to receiving the key parameters of the first node, the second node establishes a data channel with the first node.
17. The at least one non-transitory computer-readable medium of claim 16, further comprising instructions which when executed by the at least one processor, causes the at least one processor to: transmit, to the second node, updated key parameters including the new key.
18. The at least one non-transitory computer-readable medium of claim 17, wherein the second node transmits data encrypted with the new key.
19. The at least one non-transitory computer-readable medium of claim 18, wherein the first node records that the second node has the new key in response to determining the data was encrypted with the new key, and the first node invalidates the current key in response to determining the second node and additional nodes have previously received the updated key parameters and have been recorded as receiving the new key.
20. The method of claim 1, wherein the rekey message is generated by a rekey timer.
Description
BRIEF DESCRIPTION OF THE FIGURES
(1)
(2)
(3)
(4)
(5)
(6)
(7)
(8)
DETAILED DESCRIPTION
(9) In the following description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the invention. It will be apparent, however, to one skilled in the art that the invention can be practiced without these specific details. In other instances, structures and devices are shown in block or flow diagram form only in order to avoid obscuring the invention.
(10) Reference in this specification to “one embodiment” or “an embodiment” means that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment of the invention. The appearance of the phrase “in one embodiment” in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Moreover, various features are described which may be exhibited by some embodiments and not by others. Similarly, various requirements are described which may be requirements for some embodiments but not other embodiments.
(11) Moreover, although the following description contains many specifics for the purposes of illustration, anyone skilled in the art will appreciate that many variations and/or alterations to the details are within the scope of the present invention. Similarly, although many of the features of the present invention are described in terms of each other, or in conjunction with each other, one skilled in the art will appreciate that many of these features can be provided independently of other features. Accordingly, this description of the invention is set forth without any loss of generality to, and without imposing limitations upon, the invention.
(12) Broadly, embodiments of the present invention disclose methods and systems for key generation, distribution, and management. Advantageously, said methods and systems enable encryption of multicast and unicast packets over a public WAN such as the Internet.
(13)
(14) Each node of the topology 100 may comprise a router and may define an access point to a private network 112.
(15) It is to be noted that the nodes of the topology 100 may be located at different geographic locations, branches, customer premises, or on different circuits, carrier networks, etc.
(16) In accordance with the methods of the present invention, each node N(i) of the plurality of nodes N executes a Key Generation and Publishing method. Said Key Generation and Publishing method is shown in the flow chart of
(17) Block 200: where the node N(i) establishes a Control Channel with the controller 102. In one embodiment the Control Channel may be established using a protocol such as SSL. One advantage of using SSL to establish the control channel 112 is that SSL is a relatively lightweight protocol compared to say IKE. Once established the Control Channel is persistent over time or always available;
(18) Block 202: where the node N(i) generates Security Parameters. In one embodiment, the Security Parameters may include an encryption key and a decryption key. In one embodiment, the Security Parameters may comprise pre-defined Security Profiles that the node N(i) may support. Each Security Profile may include a Security Association. Examples of Security Profiles include:
(19) TABLE-US-00001 Gold security-profile : { Encryption: AES Digest : SHA2 :::: } Silver security-profile : { Encryption: 3 Key 3DES Digest : SHA1 :::: } Bronze security-profile : { Encryption: 2 Key 3DES Digest : MD5 :::: }
(20) In one embodiment, node N(i) generates a IPSEC SA based on the Security Profiles it supports.
(21) Typically each node N(i) may comprise a router. The encryption and decryption keys may be uniquely generated by the router for the router. That is to say the encryption and decryption keys are established per device in the topology 100;
(22) and
(23) Block 204: where the node N(i) sends its transport location address (TLOC), the Security Parameters, information on its connected routes or peers to the controller 102 via the Control Channel that exists between the two.
(24) In accordance with one embodiment of the invention, the controller 102 may store the TLOC for the node N(i). Additionally, the controller 102 may create a security association for the node N(i) based on the received Security Parameters.
(25) In accordance with the methods of the present invention, the controller 102 performs a Key Distribution method. One embodiment of this method is shown in the flow chart of
(26) Block 300: where the controller 102 receives a Key Request Message (KRM). The KRM may be from a node N(j) that is requesting Security Parameters for the node N(i);
(27) Block 302: where responsive to the KRM, the controller retrieves the Security Parameters for the node N(i), e.g. based on its TLOC (Transport Location) address; and
(28) Block 304: where the controller 102 sends the retrieved Security Parameters to the node N(j).
(29) All messages and data exchanged between the controller 102 and the node N(j) as part of the Key Distribution Method use the Control Channel that exists between the two.
(30) At this point, the node N(j) knows the TLOC address of the node N(i) and the Security Parameters for the node N(i). Thus, the node N(j) may use this information to encrypt data towards the node N(i) as is shown in the flowchart of
(31) Block 400: where the node N(j) establishes a Data Channel with the node N(i). Any suitable protocol may be used for the Data Channel. In one embodiment of the invention IPsec may be used as a protocol for the Data Channel. By virtue of the Data Channel, the nodes N(j) and N(i) will become peer-to-peer session partners;
(32) Block 402 where data towards the node N(i) is encrypted using the encryption key associated with the node N(i) as obtained from the controller 102 in the manner already described. For example if the node N(i) supports the Gold Security Profile, then the encryption algorithms as per the Gold Security Profile is used to encrypt packets towards the node N(i). At the same time the node N(i) may be communicating with a device that supports a less secure Security Profile, say the Silver Security Profile. In that case packets towards this node will be encrypted using the encryption algorithms as per the Silver Security Profile. The block 402 is for unicast traffic only; and
(33) Block 404 where for multicast traffic, the data towards the node N(i) is encrypted using an encryption key associated with the multicast traffic. For example, the actual encryption key used in one embodiment may comprise an encryption key published on the controller 102 by a source for the multicast traffic.
(34) In one embodiment, the invention discloses a Rekey Generation and Distribution method, which includes the following processing blocks as is shown in the flowchart of
(35) Block 500: where the node N(i) performs a rekeying operation to generate new keys. The generation of the new keys may be responsive to a rekeying trigger. As an example, a rekeying trigger may be time-based where new keys are generated at periodic intervals in accordance with a rekey timer maintained by the controller 102; and
(36) Block 502: where the node N(i) publishes the new keys to the controller 102 via the Control Channel that exists between the two; and
(37) Block 504: where the controller 102 sends the new keys to all peers or session partners of the node N(i).
(38) An important aspect of key management involves the invalidation of old keys after rekeying has occurred. In one embodiment key invalidation is a function of each node in the topology 100.
(39) Block 600: where the node N(i) receives an encrypted data packet from the node N(j);
(40) Block 602: where if the encrypted packet was encrypted using a newly issued key generated through rekeying, then the node N(i) records that the node N(j) is in possession of the new key. For example, in one embodiment, the node N(j) may maintain and/or update a data structure that tracks whether the Node(j) has the new key; and
(41) Block 604: where if all the peers of the node N(i) has the new key as determined by the information recorded for each peer at block 602, then the node N(i) invalidates the old key that was in use prior to the generation of the new key.
(42) Advantageously, in accordance with the above-described Rekey Invalidation method there is no need to maintain a timer to control how long to keep an old key active before it can be invalidated. Moreover, because an old key in only invalidated when it is no longer in use by any peer data loss through data encryption by an invalidated key is no longer a problem.
(43) Setting up peer-to-peer secure connections within a network comprising N nodes generally would require n choose 2 or nC2 i.e. (n*(n−1)/2) connections. This is a large number of connections, on the order of n squared to manage and the problem is further compounded by the need to maintain nC2 data plane connections and nc2 control plane connections. Advantageously, in accordance with the methods disclosed herein, only N control plane connections are required. Moreover, because encryption keys are issued per device there are only N encryption keys required.
(44) In one embodiment, the controller 102 may maintain a old key timer to control how long to keep an old key active after the generation of a new key that supersedes the old key. The new key is pushed to each node N(i) that is a peer of a node N(j) that generated the new key, pursuant to a rekey trigger. The old key timer is pushed to the node N(j) that issued the new key. The node N(j) will decrypt packets encrypted with the old key for as long as the old key timer is unexpired. After the old key timer expires, the node N(j) will no longer decrypt packets encrypted with the old key.
(45) Advantageously, the techniques of key generation, distribution, and management disclosed herein facilitate the creating of very large scale secure networks without the need for private carrier circuits. Thus, a large network such as the Internet may be used a secure network without any private carrier circuits.
(46) An exemplary construction of a node 700 of the network topology 100 will now be described by reference to
(47) An exemplary construction of a controller 102 will now be described by reference to
(48) Although the present invention has been described with reference to specific exemplary embodiments, it will be evident that the various modification and changes can be made to these embodiments without departing from the broader spirit of the invention. Accordingly, the specification and drawings are to be regarded in an illustrative sense rather than in a restrictive sense.