System and method for improving encrypted transmission between nodes
By using two separate random value sequences and security parameter resets between network nodes, the problems of synchronization loss and delay attacks are solved, and network performance and security are improved.
Patent Information
- Application Number
- CN202210000799.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2021-03-25
- Filing Date
- 2022-01-04
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2042-01-04
AI Technical Summary
Existing technologies have inefficiency and security issues in synchronization loss and delay attacks between nodes, especially in intermediate node configurations, which results in nodes requiring frequent resynchronization, increasing delay and power consumption.
Use two separate sequences of random values, one for transmission from node A to node B and one from node B to node A, to encrypt and decrypt the packet, ensuring synchronization in each direction, and resetting security parameters when necessary to Reduce the possibility of delayed attacks.
Through independent random value sequences and security parameter resets, the probability of synchronization loss is reduced, network performance is improved, the number of resynchronizations is reduced, and the risk of delay attacks is effectively reduced.
Smart Images

Figure CN114726507B_ABST
Abstract
Description
[0001] This application claims priority to U.S. Provisional Patent Application Serial No. 63 / 133,876, filed on January 5, 2021, the disclosure of which is incorporated herein by reference in its entirety.
[0002] The present disclosure describes systems and methods for maintaining synchronization between two nodes to allow encryption of transmissions between the nodes and to minimize the chance of latency attacks. Background Art
[0003] Some network protocols use encryption to securely transmit messages between nodes. In some embodiments, all messages are encrypted using the same key. In other words, the two nodes determine the encryption key and use that key for all transmissions.
[0004] In other embodiments, the two nodes may utilize an initialization vector (IV) or nonce so that each transmission is encrypted using a different key. For example, the Z-Wave network protocol uses the concept of SPAN (Singlecast Pre-Agree Nonce). For each transmission between two nodes, a unique SPAN is used that is known only to the two nodes. After sending and receiving a transmission, both nodes use the same algorithm to update the SPAN.
[0005] In this way, a malicious actor cannot decrypt transmissions between two nodes by monitoring them over an extended period of time because each transmission is sent with a different SPAN. This technique requires that the two nodes remain synchronized so that each node knows the SPAN used by the other node to encrypt incoming packets.
[0006] However, there are problems with this approach. Figure 1 . shows one such limitation. In this case, a first node 1, labeled node A, and a second node 2, labeled node B, communicate with each other through an intermediate node 3, which may be a repeater or other device. The first node 1 and the second node 2 use the same SPAN for all communications between the two nodes. Specifically, when a node sends or receives a packet, it updates its SPAN. For example, a node may increment a counter, which is used as an index into a sequence of random value values. Alternatively, a node may execute a software function to update its SPAN. At time T0, the two nodes synchronize, and both indicate that the SPAN is set to the same number, which for illustration purposes is 18. Of course, other values may also be used. The SPAN is used to encrypt and decrypt specific packets.
[0007] At time T1, node A sends a first packet to intermediate node 3 and receives an acknowledgement from the intermediate node 3. Therefore, node A increments SPAN because the packet was successfully sent. Therefore, node A now believes that the current SPAN is 19.
[0008] At time T2, the intermediate node 3 then forwards the first packet to node B. However, this transmission may fail so that node B does not receive the first packet, which must be retransmitted at a later time by the intermediate node 3. The retransmission utilizes the same SPAN value.
[0009] However, Node B may have a second packet to send to Node A. Since Node B has not received the first packet, it sends the second packet to Node A at time T3 using a SPAN value of 18. Since the second packet was successfully sent, Node B updates its SPAN to 19.
[0010] However, node A cannot decrypt the second packet because its SPAN has been updated to 19, as described above.
[0011] At time T4, intermediate node 3 successfully forwards the first packet to node B. However, node B cannot decrypt the packet because the packet utilizes a SPAN value of 18, and node B's current SPAN value is set to 19.
[0012] Since both nodes 1, 2 cannot decrypt the two packets, the two nodes 1, 2 are forced to resynchronize, as shown at time T5. Note that the resynchronization process is time consuming, increases power and reduces efficiency.
[0013] Therefore, it would be beneficial if there was a system and method for maintaining synchronization between two nodes utilizing IVs or random numbers. It would be advantageous if such a technique could be easily introduced. Summary of the invention
[0014] Disclosed are systems and methods for improving encrypted transmissions between nodes in a network. In one embodiment, two sets of random values are used to encrypt communications between each pair of network devices, wherein one set of random values is used for packets sent from a first node to a second node, and a second set of random values is used for packets sent from the second node to the first node. These random values are used to encrypt packets transmitted between the two nodes. In this way, the probability of synchronization loss can be reduced, especially in configurations where there are intermediate nodes between the first node and the second node. In another embodiment, the possibility of delay attacks is minimized by intentionally resetting security parameters.
[0015] According to one embodiment, a method for maintaining synchronization between a first node and a second node transmitting an encrypted packet is disclosed. The method includes: creating an initial value of a first random value for transmission from the first node to the second node in the first node and the second node; updating the first random value at the first node whenever a packet to the second node is successfully sent; and updating the first random value at the second node whenever a packet from the first node is successfully received; wherein the first random value is used by the first node to encrypt the packet sent to the second node and is used by the second node to decrypt the packet received from the first node. In some embodiments, the method also includes creating an initial value of a second random value for transmission from the second node to the first node in the first node and the second node; updating the second random value at the second node whenever a packet to the first node is successfully sent; and updating the second random value at the first node whenever a packet from the second node is successfully received; wherein the second random value is used by the second node to encrypt the packet sent to the first node and is used by the first node to decrypt the packet received from the second node. In some embodiments, the first random value and the second random value may differ over time due to differences in the events that cause each random value to be updated. In some embodiments, the first node and the second node both include a sequence of first random value numbers, and updating the first random value number includes incrementing an index into the first sequence of random value numbers. In some embodiments, the first node and the second node both include a sequence of random value numbers, and updating the first random value number includes incrementing a first index into the sequence of random value numbers, and updating the second random value number includes incrementing a second index into the sequence of random value numbers. In some embodiments, the first node and the second node both include a sequence of first random value numbers and a sequence of second random value numbers, and updating the first random value number includes incrementing a first index into the sequence of first random value numbers, and updating the second random value number includes incrementing a second index into the sequence of second random value numbers. In certain embodiments, updating the first random value number includes calling a software function, wherein a new first random value number is generated each time the software function is called. In some embodiments, updating the first random value number includes incrementing a previous first random value number.
[0016] According to a second embodiment, a network device is disclosed. The network device includes a wireless network interface for communicating with a second network device; a processing unit; and a memory device, including instructions, which, when executed by the processing unit, enable the network device to: create an initial value of a first random value for transmission from the network device to the second network device; and, whenever a packet to the second network device is successfully sent, update the first random value; wherein the first random value is used to encrypt the packet sent to the second network device. In some embodiments, the network device also includes instructions, which, when executed by the processing unit, enable the network device to: create an initial value of a second random value for transmission from the second network device to the network device; and, whenever a packet from the second network device is successfully received, update the second random value; wherein the second random value is used to decrypt the packet sent from the second network device. In some embodiments, the first random value and the second random value may differ over time due to differences in the events that cause each random value to be updated. In some embodiments, the network device includes a first random value sequence, and updating the first random value includes incrementing an index into the first random value sequence. In some embodiments, the network device includes a sequence of random value numbers, and updating the first random value number includes incrementing to a first index in the sequence of random value numbers, and updating the second random value number includes incrementing to a second index in the sequence of random value numbers. In some embodiments, the network device includes a first sequence of random value numbers and a second sequence of random value numbers, and updating the first random value number includes incrementing to a first index in the first sequence of random value numbers, and updating the second random value number includes incrementing to a second index in the second sequence of random value numbers. In some embodiments, updating the first random value number includes calling a software function, wherein a new first random value number is generated each time the software function is called.
[0017] According to another embodiment, a method for minimizing the risk of a delay attack between a first node and a second node transmitting an encrypted packet is disclosed. The method includes initiating a resynchronization process based on predetermined parameters, wherein the resynchronization process resets security parameters associated with the first node and the second node. In some embodiments, the predetermined parameters include a duration since the packet was received. In some embodiments, the predetermined parameters include regular time intervals. In some embodiments, the predetermined parameters include noise or RSSI levels. In some embodiments, the security parameters include one or more random values used to encrypt packets between the first node and the second node. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] For a better understanding of the present disclosure, please refer to the accompanying drawings, in which like elements are represented by like numerals, and in which:
[0019] Figure 1 is a timing diagram illustrating a loss of synchronization according to the prior art;
[0020] Figure 2 A block diagram showing a network device according to one embodiment;
[0021] Figure 3 is a timing diagram illustrating preservation of synchronization according to one embodiment; and
[0022] Figure 4 is a timing diagram illustrating a response to a delay attack according to one embodiment. DETAILED DESCRIPTION
[0023] Figure 2 A block diagram of a network device 10 that can be used to implement the techniques described herein is shown. The network device 10 has a processing unit 20 and an associated memory device 25. The processing unit 20 can be any suitable component, such as a microprocessor, an embedded processor, a dedicated circuit, a programmable circuit, a microcontroller, or other similar device. The memory device 25 contains instructions that, when executed by the processing unit 20, enable the network device 10 to perform the functions described herein. The memory device 25 can be a non-volatile memory, such as a FLASH ROM, an electrically erasable ROM, or other suitable device. In other embodiments, the memory device 25 can be a volatile memory, such as a RAM or a DRAM. The instructions contained in the memory device 25 can be referred to as a software program, which is arranged on a non-temporary storage medium.
[0024] The network device 10 also includes a network interface 30, which may be a wireless network interface including an antenna 35. The network interface 30 may support any wireless network supporting a security level, such as WiFi, a network using the IEEE 802.15.4 specification, such as Zigbee, a network using the IEEE 802.15.6 specification, and a wireless smart home protocol, such as Z-Wave. The network interface 30 is used to allow the network device 10 to communicate with other devices arranged on the first network 31.
[0025] The network device 10 may include a second memory device 40. Data received from the network interface 30 or to be sent via the network interface 30 may also be stored in the second memory device 40. The second memory device 40 is conventionally a volatile memory.
[0026] Although a memory device 25 is disclosed, any computer readable medium may be used to store the instructions. For example, a read-only memory (ROM), a random access memory (RAM), a magnetic storage device (such as a hard drive), or an optical storage device (such as a CD or DVD) may be used. In addition, the instructions may be downloaded to the memory device 25, such as, for example, via a network connection (not shown), via a CD ROM, or through another mechanism. The instructions may be written in any programming language and are not limited by the present disclosure. Therefore, in some embodiments, there may be multiple computer readable non-transitory media containing the instructions described herein. A first computer readable non-transitory medium may communicate with the processing unit 20, such as Figure 2 The second computer readable non-transitory medium may be a CDROM, or a different memory device located remote from the network device 10. The instructions contained on the second computer readable non-transitory medium may be downloaded to the memory device 25 to allow the instructions to be executed by the network device 10.
[0027] Although the processing unit 20, the memory device 25, the network interface 30 and the second memory device 40 are Figure 2 , but it should be understood that some or all of these components may be integrated into a single electronic assembly. Figure 2 It is used to illustrate the functionality of the network device 10 rather than its physical configuration.
[0028] Although not shown, the network device 10 also has a power source, which may be a battery or a connection to a permanent power source, such as a wall outlet.
[0029] In contrast to the previous embodiment, the network device 10 of the present invention maintains separate SPAN values for packets being sent to a second node and packets being received by the second node. Thus, within the memory device 25 or within the second memory device 40, the network device 10 maintains two SPAN values per connection; a transmit SPAN value for packets being sent to a second node and a receive SPAN value for packets being received by the second node.
[0030] Figure 3 The operation of the network device 10 using two separate SPAN values is shown. In the figure, the first node 100, labeled Node A, is a node having a Figure 2 Similarly, the second node 110 marked as node B is also a network device 10 having a configuration similar to that shown in FIG. Figure 2 The configuration shown is similar to the configuration of the network device 10. Node A and node B communicate with each other through an intermediate node 120, which may be a repeater or other device.
[0031] Initially, as shown at time T0, nodes 100, 110 are synchronized. There is a transmit SPAN value for node A, referred to as SPAN_A_to_B, and a receive SPAN value for node A, referred to as SPAN_B_to_A. Likewise, there is a transmit SPAN value for node B, referred to as SPAN_B_to_A, and a receive SPAN value for node B, referred to as SPAN_A_to_B. The SPAN_A_to_B values for nodes A and B are synchronized. Similarly, the SPAN_B_to_A values for nodes A and B are synchronized.
[0032] The SPAN_B_to_A value and the SPAN_A_to_B value can be initialized using current technology. For example, for the Z-wave network protocol, each node contributes to the random number used to create the initial value. A specific example is given below.
[0033] Each node (i.e., node A and node B) can contribute an entropy input (EI). Each node can contribute 16 bytes. Each EI can be generated using a predetermined algorithm. In one embodiment, a pseudo-random number generator is used to create an EI for each node. These EI values can be transmitted to another node using a special packet format (such as a resync message).
[0034] The EI of each node, which may be referred to as the SenderEI and the ReceiverEI, is mixed to form a 32-byte entropy value. This 32-byte value may then be used as an input to one or more software functions to generate a mixed entropy input (MEI). In some embodiments, the one or more software functions may be CKDF-MEI-Extract and CKDF-MEI-Expand functions, such as those described in the Z-Wave Transport-Encapsulation Command Class Specification, published on July 6, 2020, the disclosure of which is incorporated herein by reference in its entirety. The MEI may be used as an input to the CTR_DRBG function to generate an internal state set, also known as the InnerSPAN. The CTR_DRBG function is defined by NIST Special Publication 800-90A Revision 1, entitled “Recommendation for Random Number Generation Using Deterministic Random BitGenerators,” the disclosure of which is incorporated herein by reference in its entirety. This process establishes the initial random number value to be used. Subsequent random value numbers may be generated using a software function called NextNonce, which may utilize the CTR_DRBG_Generate algorithm defined by the previously mentioned NIST special publication. Note that if both nodes utilize the same 32-byte entropy input, the resulting random value numbers will be the same for both nodes.
[0035] In one embodiment, node A and node B each create two 16-byte EI values; one for the SPAN_A_to_B value and one for the SPAN_B_to_A value. In another embodiment, node A and node B each create a 16-byte EI value that is used to seed both the SPAN_A_to_B and SPAN_B_to_A values.
[0036] In other embodiments, the initial values may be generated in different ways. The only requirement is that Node A and Node B utilize the same initial value for the SPAN_A_to_B value, and utilize the same initial value for the SPAN_B_to_A value.
[0037] The SPAN_A_to_B value is updated by node A each time node A successfully sends a packet destined for node B. The SPAN_A_to_B value is updated by node B each time node B successfully receives a packet from node A. Similarly, the SPAN_B_to_A value is updated by node A each time it successfully receives a packet from node B. The SPAN_B_to_A value is updated by node B each time it successfully sends a packet destined for node A. Of course, if there is a third node, such as node C, node A may have two additional SPAN values to track packets sent to and received from node C. Similarly, node B may also have two additional SPAN values to track packets sent to and received from node C.
[0038] In certain embodiments, the SPAN_A_to_B value and SPAN_B_to_A value in the accompanying drawings represent actual values for encrypting and decrypting packets. Although small numbers have been used in this example, it should be understood that the length of these numbers can be many bytes. Therefore, in this embodiment, these values are actual random value numbers. In other embodiments, the values in the present disclosure refer to indexes in a random value sequence. Therefore, if the SPAN_A_to_B value is 18, this refers to the eighteenth entry in the random value sequence.
[0039] In another embodiment, a software function such as the NextNonce function described above is used to create a random value. In this embodiment, the values in the accompanying drawings represent the number of times the NextNonce function is called. Therefore, in all embodiments, the values used in the present disclosure are used directly or indirectly to generate random numbers for encrypting and decrypting specific packets.
[0040] Since the number of packets sent from node A to node B may be different than the number of packets sent from node B to node A, the SPAN_A_to_B value and the SPAN_B_to_A value may be different.
[0041] Back to Figure 3 , at time T0, for illustration purposes, assume that the SPAN_A_to_B value is 42, and the SPAN_B_to_A value is 18. Of course, any other values may be used.
[0042] At time T1, node A sends a first packet to intermediate node 120 and receives an acknowledgement from the intermediate node 120. Therefore, due to the successful transmission of the packet, node A updates the SPAN_A_to_B value. Therefore, node A now believes that the current SPAN_A_to_B value is 43. As described above, in some embodiments, the values shown in the figure are random value numbers. In other embodiments, the value is an index into a sequence of random value numbers. In other embodiments, the value represents the number of times the NextNonce function has been called. Therefore, the increment of the SPAN_A_to_B value represents the generation or selection of the next SPAN_A_to_B random number.
[0043] At time T2, intermediate node 120 then forwards the first packet to node B. However, the transmission may fail such that node B does not receive the first packet, which must be retransmitted at a later time by intermediate node 120. The retransmission utilizes the same SPAN_A_to_B value.
[0044] However, node B may have a second packet to send to node A. Since the packet is directed from node B to node A, a SPAN_B_to_A value is used. Therefore, node B uses a SPAN_B_to_A value of 18 to send the second packet to node A at time T3. Since the second packet is successfully sent, node B increments its SPAN_B_to_A value to 19. As mentioned above, in some embodiments, this value is an actual random number value. In other embodiments, this value is an index into a random number sequence. In other embodiments, this value represents the number of times the NextNonce function has been called. Therefore, the increment of the SPAN_B_to_A value represents the generation or selection of the next SPAN_B_to_A random number.
[0045] In some embodiments, there are two sequences of random values; one for SPAN_A_to_B random numbers and one for SPAN_B_to_A random numbers. The SPAN_A_to_B counter and the SPAN_B_to_A counter are used to index into these two sequences respectively. In other embodiments, there is a single sequence, where each counter represents an index into the sequence. Thus, an increment in value indicates that the next random value is selected for the communication path.
[0046] Because there is now a separate SPAN value, node A is able to decrypt the second packet because its SPAN_B_to_A value is also set to 18.
[0047] At time T4, intermediate node 120 successfully forwards the first packet to node B. Since it now has a separate SPAN value, node B is able to decrypt the packet because the packet utilizes a SPAN_A_to_B value of 42, and node B's SPAN_A_to_B value is also set to 42.
[0048] Therefore, at time T5, node A and node B are still synchronized.
[0049] In other words, by utilizing a unidirectional SPAN value, it is possible to withstand a transmission interruption and send a second packet from node B to node A before the first packet sent by node A reaches node B. This can improve overall network performance by reducing the number of times the two nodes must resynchronize.
[0050] Therefore, in one embodiment, each of node A and node B generates a first sequence of random values and a first index into the first sequence. Whenever a packet to node B is successfully transmitted, node A increments the first index. Whenever a packet from node A is successfully received, node B increments the first index. The random value arranged at the first index into the first sequence is used by node A to encrypt the packet sent to node B, and is used by node B to decrypt the packet received from node A. In addition, node A and node B both claim the second index into the second sequence of random values. Whenever a packet to node A is successfully sent, node B increments the second index. Whenever a packet from node B is successfully received, node A increments the second index. The random value arranged at the second index into the second sequence is used by node B to encrypt the packet sent to node A, and is used by node A to decrypt the packet received from node B. In certain embodiments, the first sequence and the second sequence are identical sequences. In certain embodiments, these sequences are generated by calling a software function such as NextNonce function multiple times, wherein each call creates a new random value. In other embodiments, the sequence may be consecutive numbers.
[0051] Thus, in each embodiment, node A and node B each create the same initial value for a first random value for transmission from node A to node B. Node A updates the first random value each time it successfully sends a packet to node B. Node B updates the first random value each time it successfully receives a packet from node A. The first random value may be referred to as SPAN_A_to_B. As described above, updating the first random value may involve: incrementing the random value; incrementing an index into a sequence of random values; or using a software function to generate a new random value.
[0052] Node A and node B also each create the same initial value for a second random value for transmission from node B to node A. Node B updates the second random value each time it successfully sends a packet to node A. Node A updates the second random value each time it successfully receives a packet from node B. The second random value may be referred to as SPAN_B_to_A. As described above, updating the second random value may involve: incrementing the random value; incrementing into an index of a sequence of random values; or using a software function to generate a new random value.
[0053] Note that the initial values of the first random value and the second random value may be the same. However, due to differences in the events that cause each random value to be updated, the first random value and the second random value may differ over time.
[0054] In some embodiments, where a node maintains a sequence of random values, the same sequence of random values may be used for the first random value and the second random value. In other embodiments, each node may maintain two sequences of random values.
[0055] In certain embodiments, where the node utilizes a software function to update the random value, the same software function is used to update the first random value and the second random value.
[0056] In some embodiments, the first random value and the second random value may be updated by simply incrementing the previous random value.
[0057] While the above description discloses systems and methods for reducing the likelihood of synchronization loss, other benefits are possible.
[0058] For example, additional modifications to typical network protocols may be implemented to reduce the chances of potential latency attacks.
[0059] These modifications may be performed in addition to the modifications described above, or independently of them.
[0060] In one embodiment, each node may include a timer. The timer may be started upon receipt of an incoming message and may be reset by receipt of a second message. In other words, the timer may be used to measure the time between two packets. The receiving node may establish a maximum time between received packets. If the maximum time is exceeded, the receiving node may reseed one or more SPAN values. Figure 4 An example of this operation is shown in .
[0061] In this embodiment, it is assumed that the network device 10 uses two separate SPAN values. In the figure, the first node 200, marked as node A, is a node having a similar Figure 2Similarly, the second node 210 marked as node B also has a configuration similar to Figure 2 The configuration shown is a network device 10. Node A and Node B communicate with each other through an intermediate node 220, which may be a repeater or other device.
[0062] Initially, as shown at time T0, nodes 200, 210 are synchronized. There is a transmit SPAN value for node A, referred to as SPAN_A_to_B, and a receive SPAN value for node A, referred to as SPAN_B_to_A. Likewise, there is a transmit SPAN value for node B, referred to as SPAN_B_to_A, and a receive SPAN value for node B, referred to as SPAN_A_to_B. The SPAN_A_to_B values of nodes A and B are synchronized. Similarly, the SPAN_B_to_A values of nodes A and B are also synchronized.
[0063] At time T0, for illustration purposes, assume that the SPAN_A_to_B value is 42, and the SPAN_B_to_A value is 18. Of course, any other values may be used.
[0064] At time T1, node A transmits a first packet to node B via intermediate node 220. Although not shown, at this time, node A updates the SPAN_A_to_B value to 43.
[0065] At time T2, intermediate node 220 attempts to forward the first message to node B. The transmission fails. Intermediate node 220 may attempt to retransmit the first packet one or more additional times. This transmission delay may be simply noise, or may be an attacker attempting to delay the transmission of the first packet. This may be referred to as a delay attack. At some point, a timer within node B expires, indicating that the time since the last packet received from node A exceeds a predetermined threshold.
[0066] In response, node B resets the security parameters between itself and node A. The security parameters include a SPAN_A_to_B value and a SPAN_B_to_A value. Specifically, in this embodiment, node B may send a packet to node A at time T3 for resynchronizing the communication between the two nodes. In this packet, which may be referred to as a resynchronization message or Resync message, node B may provide its EI for both the SPAN_A_to_B value and the SPAN_B_to_A value. If two SPANs are used, node B may send two EI values. In another embodiment, node B may send one EI value that is used to seed both the SPAN_A_to_B and SPAN_B_to_A values. If only one SPAN is used for bidirectional communication, node B only sends one EI.
[0067] Once Node B determines that the time since the last packet received by Node A exceeds a predetermined threshold, it can no longer decrypt the first message. Therefore, at time T4, when the first message is finally successfully transmitted to Node B, Node B will not be able to decrypt the message.
[0068] At time T5, a resynchronization message from node B arrives at node A. In response, node A also resets its security parameters. As described above, the security parameters include the SPAN_A_to_B value and the SPAN_B_to_A value. Since the resynchronization message includes the EI value from node B, node A is able to generate new SPAN_A_to_B and SPAN_B_to_A values. Node A then sends a resynchronization message to node B at time T6. The resynchronization message includes the EI value of node A, which enables node B to construct MEI and new SPAN_A_to_B and SPAN_B_to_A values, as described above. Therefore, at time T7, node A and node B are synchronized again.
[0069] Note that the above scenario describes a case where the Node B resets the security parameters based on the duration since the last message. In other embodiments, the Node B may use other criteria to initiate the resynchronization process. For example, the Node B may initiate the resynchronization process at regular intervals regardless of network traffic. In yet another embodiment, the Node B may monitor noise or RSSI values and may initiate a resynchronization process if these metrics are too large.
[0070] Thus, in this embodiment, a node such as Node B may initiate a resynchronization process based on predetermined parameters, such as at regular intervals, based on the duration between packets, or another metric.
[0071] The present system and method have many advantages. First, Figure 1As shown, there is a situation where synchronization between two network devices is lost due to timing anomalies. By utilizing two separate one-way random value values, this synchronization loss can be eliminated. This approach requires minimal additional overhead. A second random value is required for each network device that the network device communicates with. Therefore, the synchronization of devices can be improved with limited impact on system resources.
[0072] Secondly, if Figure 4 As shown, there are situations where a delay attack may occur. By periodically or strategically resetting the security parameters between two nodes, the chances of a delay attack are reduced.
[0073] The present disclosure is not limited by the scope of the specific embodiments described herein. In fact, in addition to those embodiments described herein, according to the foregoing description and the accompanying drawings, various other embodiments and modifications of the present disclosure should also be apparent to those of ordinary skill in the art. Therefore, these other embodiments and modifications are intended to fall within the scope of the present disclosure. In addition, although the present disclosure has been described herein for a specific purpose in the context of a specific implementation in a specific environment, it should be appreciated by those of ordinary skill in the art that its usefulness is not limited thereto, and the present disclosure can be beneficially implemented in any number of environments for any number of purposes. Therefore, the claims set forth below should be interpreted in view of the full breadth and spirit of the present disclosure as described herein.
Claims
1. A method for maintaining synchronization between a first node and a second node transmitting an encrypted packet, include: creating, in the first node and the second node, an initial value of a first random value for transmission from the first node to the second node; At the first node, whenever a packet destined for the second node is successfully sent, updating the first random value; At the second node, whenever a packet from the first node is successfully received, updating the first random value; creating, in the first node and the second node, an initial value of a second random value for transmission from the second node to the first node; At the second node, whenever a packet destined for the first node is successfully sent, updating the second random value; as well as At the first node, whenever a packet from the second node is successfully received, updating the second random value; wherein the first random value is used by the first node to encrypt packets sent to the second node and is used by the second node to decrypt packets received from the first node, The second random value is used by the second node to encrypt packets sent to the first node, and is used by the first node to decrypt packets received from the second node.
2. The method according to claim 1, in, The first random value and the second random value differ over time due to differences in events that cause each random value to be updated.
3. The method according to claim 1, in, The first node and the second node each include a first sequence of random value, and updating the first random value includes incrementing an index into the first sequence of random value.
4. The method according to claim 1, in, The first node and the second node each include a sequence of random value, and updating the first random value includes incrementing to a first index in the sequence of random value, and updating the second random value includes incrementing to a second index in the sequence of random value.
5. The method according to claim 1, in, The first node and the second node each include a first sequence of random value and a second sequence of random value, and updating the first random value includes incrementing to a first index in the first sequence of random value, and updating the second random value includes incrementing to a second index in the second sequence of random value.
6. The method according to claim 1, in, Updating the first random value includes calling a software function, wherein a new first random value is generated each time the software function is called.
7. The method according to claim 1, in, Updating the first random value includes incrementing a previous first random value.
8. A network device, include: A wireless network interface, used for communicating with a second network device; Processing unit; as well as a memory device comprising instructions that, when executed by the processing unit, enable the network device to: creating an initial value of a first random value for transmission from the network device to a second network device; Whenever a packet destined for the second network device is successfully sent, updating the first random value; creating an initial value for a second random value for transmission from the second network device to the network device; as well as Whenever a packet from the second network device is successfully received, updating the second random value; The first random value is used to encrypt a packet sent to the second network device. The second random value is used to decrypt a packet sent from the second network device.
9. The network device according to claim 8, in, The first random value and the second random value differ over time due to differences in events that cause each random value to be updated.
10. The network device according to claim 8, in, The network device includes a first sequence of random value and updating the first random value includes incrementing an index into the first sequence of random value.
11. The network device according to claim 8, in, The network device includes a sequence of random value values, and updating the first random value includes incrementing to a first index in the sequence of random value values, and updating the second random value includes incrementing to a second index in the sequence of random value values.
12. The network device according to claim 8, in, The network device includes a first sequence of random value and a second sequence of random value, and updating the first random value includes incrementing to a first index in the first sequence of random value, and updating the second random value includes incrementing to a second index in the second sequence of random value.
13. The network device according to claim 8, in, Updating the first random value includes calling a software function, wherein a new first random value is generated each time the software function is called.
