Secure ranging

11821978 · 2023-11-21

Assignee

Inventors

Cpc classification

International classification

Abstract

A method of secure wireless ranging between a verifier node and a prover node comprises performing a measurement procedure resulting in a two-way phase measurement and a round-trip time measurement between the verifier node and the prover node. The measurement procedure comprises the verifier node transmitting on the frequency a verifier packet, the prover node receiving the verifier packet and performing a phase measurement of a verifier carrier signal and a time-of-arrival measurement of a verifier frame delimiter, the prover node transmitting a prover packet, and the verifier node receiving the prover packet and performing a phase measurement of the prover carrier signal and a time-of-arrival measurement of the prover frame delimiter. The method further comprises calculating a distance between the verifier node and the prover node based on the two-way phase measurements and the round-trip time measurements for the plurality of frequencies.

Claims

1. A method of secure wireless ranging between a verifier node and a prover node, comprising: for each frequency in a plurality of frequencies, performing a measurement procedure resulting in a two-way phase measurement and a round-trip time measurement between the verifier node and the prover node, the measurement procedure comprising: transmitting, by the verifier node on the frequency, a verifier packet comprising a verifier carrier signal and a verifier frame delimiter; receiving, by the prover node, the verifier packet; performing, by the prover node, a phase measurement of the verifier carrier signal; performing, by the prover node, a time-of-arrival measurement of the verifier frame delimiter, wherein performing the time-of-arrival measurement comprises measuring a time instant at which the verifier frame delimiter has been received; transmitting, by the prover node on the frequency, a prover packet comprising a prover carrier signal and a prover frame delimiter; receiving, by the verifier node, the prover packet; performing, by the verifier node, a phase measurement of the prover carrier signal; and performing, by the verifier node, a time-of-arrival measurement of the prover frame delimiter, wherein performing the time-of-arrival measurement comprises measuring a time instant at which the prover frame delimiter has been received, wherein each of the verifier frame delimiters and each of the prover frame delimiters comprise a respective authentication code, and wherein the authentication codes are based on a key commonly known by the verifier node and the prover node; attempting to calculate a distance between the verifier node and the prover node based on the two-way phase measurements and the round-trip time measurements for the plurality of frequencies, wherein the carrier signals are authenticated based on the authentication code of the corresponding frame delimiter and the commonly known key, and wherein attempting to calculate the distance comprises: from the two-way phase measurements and round-trip time measurements of the measurement procedure for the plurality of frequencies, excluding from further calculation measurements for frequencies where: at least one of the prover carrier signal and the verifier carrier signal was not authenticated based on the respective frame delimiter; or the measured round-trip time exceeds a pre-determined value; and failing the attempt to calculate the distance if the number of remaining frequencies after the excluding does not exceed a pre-determined threshold number; and otherwise, calculating the distance based on the phase measurement results remaining after the excluding.

2. The method of claim 1, wherein the verifier carrier signal is preceded by the frame delimiter and the prover carrier signal is followed by the frame delimiter.

3. The method of claim 1, wherein the authentication code is a sequence of bits selected using a pseudo-random function from a pre-determined set of sequences.

4. The method of claim 3, wherein the pseudo-random function has as input the commonly known key and one or more of the following: an index of the carrier signal, a sequence index, an identifier of the node transmitting the corresponding frame delimiter, and an identifier of the node receiving the corresponding frame delimiter.

5. The method of claim 3, wherein each sequence of the pre-determined set of sequences is a Gold code sequence.

6. The method of claim 1, wherein the measurement procedure further comprises: transmitting, by the prover node, the time-of-arrival measurement of the verifier frame delimiter or the phase measurement of the verifier carrier signal to the verifier node.

7. The method of claim 1, wherein, during the verifier node transmitting the verifier carrier signal, the prover node adjusts its local oscillator (LO) based on the phase measurement of the verifier carrier signal.

8. The method of claim 1, wherein attempting to calculate the distance further comprises: evaluating an average round-trip time based on the round-trip time measurements for frequencies remaining after the excluding; and failing the attempt to calculate if the average round-trip time exceeds a predetermined value.

9. The method of claim 1, wherein attempting to calculate the distance further comprises: assigning the remaining frequencies into a prover group and an adversary group based on their respective measured round-trip times; and failing the attempt to calculate if the number of frequencies in the prover group does not exceed the threshold number or if the number of frequencies in the adversary group does exceed the threshold number.

10. The method of claim 1, wherein the prover node transmits the frame delimiter comprising: a first authentication code when the verifier carrier signal has been authenticated based on the corresponding authentication code of the corresponding verifier node frame delimiter; and a second, different authentication code otherwise.

11. A method of secure wireless ranging between a verifier node and a prover node, comprising: for each frequency in a plurality of frequencies, performing a measurement procedure comprising: receiving, by the prover node, a verifier packet comprising a verifier carrier signal and a verifier frame delimiter from the verifier node; performing, by the prover node, a phase measurement of the verifier carrier signal; performing, by the prover node, a time-of-arrival measurement of the verifier frame delimiter, wherein performing the time-of-arrival measurement comprises measuring a time instant at which the verifier frame delimiter has been received; and transmitting, by the prover node on the frequency, a prover packet comprising a prover carrier signal and a prover frame delimiter, wherein each of the verifier frame delimiters and each of the prover frame delimiters comprise a respective authentication code, and wherein the authentication codes are based on a key commonly known by the verifier node and the prover node; attempting to calculate a distance between the verifier node and the prover node based on the measurement procedure, wherein the verifier carrier signals are authenticated by the prover node based on the authentication code of the corresponding frame delimiter and the commonly known key, and wherein attempting to calculate the distance comprises: from the measurement procedure for the plurality of frequencies, excluding from further calculation measurements for frequencies where the verifier carrier signal was not authenticated based on the corresponding frame delimiter; and failing the attempt to calculate the distance if the number of remaining frequencies after the excluding does not exceed a pre-determined threshold number; and otherwise, calculating the distance based on the phase measurement results remaining after the excluding.

12. A prover node that participates in secure wireless ranging with a verifier node, wherein the prover node comprises a first processor and a first transceiver, wherein the verifier node comprises a second processor and a second transceiver, wherein the prover node, for each frequency in a plurality of frequencies, participates in a measurement procedure comprising: receiving, by the prover node, a verifier packet comprising a verifier carrier signal and a verifier frame delimiter from the verifier node; performing, by the prover node, a phase measurement of the verifier carrier signal; performing, by the prover node, a time-of-arrival measurement of the verifier frame delimiter, wherein performing the time-of-arrival measurement comprises measuring a time instant at which the verifier frame delimiter has been received; and transmitting, by the prover node on the frequency, a prover packet comprising a prover carrier signal and a prover frame delimiter, wherein each of the verifier frame delimiters and each of the prover frame delimiters comprise a respective authentication code, and wherein the authentication codes are based on a key commonly known by the verifier node and the prover node, wherein the prover node participates in an attempted distance calculation between the verifier node and the prover node based on the measurement procedure, wherein the verifier carrier signals are authenticated by the prover node based on the authentication code of the corresponding frame delimiter and the commonly known key, and wherein the attempted distance calculation comprises: from the measurement procedure for the plurality of frequencies, excluding from further calculation measurements for frequencies where the verifier carrier signal was not authenticated based on the corresponding frame delimiter; and failing the attempted distance calculation if the number of remaining frequencies after the excluding does not exceed a pre-determined threshold number, and wherein, otherwise, the prover node participates in a distance calculation based on the phase measurement results remaining after the excluding.

13. A method of secure wireless ranging between a verifier node and a prover node, comprising: for each frequency in a plurality of frequencies, performing a measurement procedure comprising: transmitting, by the verifier node on the frequency, a verifier packet comprising a verifier carrier signal and a verifier frame delimiter; receiving, by the verifier node, a prover packet comprising a prover carrier signal and a prover frame delimiter from the prover node; performing, by the verifier node, a phase measurement of the prover carrier signal; and performing, by the verifier node, a time-of-arrival measurement of the prover frame delimiter, wherein performing the time-of-arrival measurement comprises measuring a time instant at which the prover frame delimiter has been received, wherein each of the verifier frame delimiters and each of the prover frame delimiters comprise a respective authentication code, and wherein the authentication code is based on a key commonly known by the verifier node and the prover node; attempting to calculate a distance between the verifier node and the prover node based on the measurement procedure, wherein the prover carrier signals are authenticated by the verifier node based on the authentication code of the corresponding frame delimiter and the commonly known key, and wherein attempting to calculate the distance comprises: from the measurement procedure for the plurality of frequencies, excluding from further calculation measurements for frequencies where the prover carrier signal was not authenticated based on the corresponding frame delimiter; and failing the attempt to calculate the distance if the number of remaining frequencies after the excluding does not exceed a pre-determined threshold number; and otherwise, calculating the distance based on the phase measurement results remaining after the excluding.

14. A verifier node that participates in secure wireless ranging with a prover node, wherein the prover node comprises a first processor and a first transceiver, wherein the verifier node comprises a second processor and a second transceiver, wherein the verifier node, for each frequency in a plurality of frequencies, participates in a measurement procedure comprising: transmitting, by the verifier node on the frequency, a verifier packet comprising a verifier carrier signal and verifier frame delimiter; receiving, by the verifier node, a prover packet comprising a prover carrier signal and a prover frame delimiter from the prover node; performing, by the verifier node, a phase measurement of the prover carrier signal; and performing, by the verifier node, a time-of-arrival measurement of the prover frame delimiter, wherein performing the time-of-arrival measurement comprises measuring a time instant at which the prover frame delimiter has been received, wherein each of the verifier frame delimiters and each of the prover frame delimiters comprise a respective authentication code, and wherein the authentication code is based on a key commonly known by the verifier node and the prover node, wherein the verifier node participates in an attempted distance calculation between the verifier node and the prover node based on the measurement procedure, wherein the prover carrier signals are authenticated by the verifier node based on the authentication code of the corresponding frame delimiter and the commonly known key, and wherein the attempted distance calculation comprises: from the measurement procedure for the plurality of frequencies, excluding from further calculation measurements for frequencies where the prover carrier signal was not authenticated based on the corresponding frame delimiter; and failing the attempted distance calculation if the number of remaining frequencies after the excluding does not exceed a pre-determined threshold number, and wherein, otherwise, the verifier node participates in a distance calculation based on the phase measurement results remaining after the excluding.

15. A system, comprising: a prover node that participates in secure wireless ranging with a verifier node, wherein the prover node comprises a first processor and a first transceiver, wherein the verifier node comprises a second processor and a second transceiver, wherein the prover node, for each frequency in a plurality of frequencies, participates in a measurement procedure comprising: receiving a verifier packet comprising a verifier carrier signal and a verifier frame delimiter from the verifier node; performing a phase measurement of the verifier carrier signal; performing a time-of-arrival measurement of the verifier frame delimiter, wherein performing the time-of-arrival measurement comprises measuring a time instant at which the verifier frame delimiter has been received; and transmitting, on the frequency, a prover packet comprising a prover carrier signal and a prover frame delimiter, wherein each of the verifier frame delimiters and each of the prover frame delimiters comprise a respective authentication code, wherein the authentication codes are based on a key commonly known by the verifier node and the prover node, wherein the verifier carrier signals are authenticated by the prover node based on the authentication code of the corresponding frame delimiter and the commonly known key, wherein the verifier node participates in secure wireless ranging with the prover node, wherein the verifier node, for each frequency in a plurality of frequencies, participates in the measurement procedure, and wherein the measurement procedure further comprises: transmitting, on the frequency, the verifier packet comprising the verifier carrier signal and the verifier frame delimiter; receiving the prover packet comprising the prover carrier signal and the prover frame delimiter from the prover node; performing a phase measurement of the prover carrier signal; and performing a time-of-arrival measurement of the prover frame delimiter, wherein performing the time-of-arrival measurement comprises measuring a time instant at which the prover frame delimiter has been received, wherein each of the verifier frame delimiters and each of the prover frame delimiters comprise the respective authentication code, wherein the authentication code is based on a key commonly known by the verifier node and the prover node, and wherein the prover carrier signals are authenticated by the verifier node based on the authentication code of the corresponding frame delimiter and the commonly known key, wherein the prover node and the verifier node participate in an attempted distance calculation between the verifier node and the prover node based on the measurement procedure, and wherein the attempted distance calculation comprises: from the phase measurement of the verifier carrier signal, the phase measurement of the prover carrier signal, and round-trip time measurements of the measurement procedure for the plurality of frequencies, excluding from further calculation measurements for frequencies where at least one of the prover carrier signal and the verifier carrier signal was not authenticated based on the respective frame delimiter; and failing the attempted distance calculation if the number of remaining frequencies after the excluding does not exceed a pre-determined threshold number, and wherein, otherwise, the prover node and the verifier node participate in a distance calculation based on the phase measurement results remaining after the excluding.

Description

BRIEF DESCRIPTION OF THE FIGURES

(1) The above, as well as additional, features will be better understood through the following illustrative and non-limiting detailed description of example embodiments, with reference to the appended drawings.

(2) FIG. 1 shows schematically a wireless network, according to an example embodiment.

(3) FIG. 2 is a flowchart of a method example of secure ranging, according to an example embodiment.

(4) FIG. 3 is a timing diagram of transmissions, according to an example embodiment.

(5) FIG. 4 is a detailed timing diagram of transmissions, according to an example embodiment.

(6) FIG. 5a is diagram showing transmission of packets each comprising a frame delimiter and a carrier signal, according to an example embodiment.

(7) FIG. 5b shows a timeline of transmissions, according to an example embodiment.

(8) FIG. 6 shows a flow chart of a first algorithm for distance determination, according to an example embodiment.

(9) FIG. 7 shows a flow chart of a second algorithm for distance determination, according to an example embodiment.

(10) All the figures are schematic, not necessarily to scale, and generally only show parts which are necessary to elucidate example embodiments, wherein other parts may be omitted or merely suggested.

DETAILED DESCRIPTION

(11) Example embodiments will now be described more fully hereinafter with reference to the accompanying drawings. That which is encompassed by the claims may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein; rather, these embodiments are provided by way of example. Furthermore, like numbers refer to the same or similar elements or components throughout.

(12) FIG. 1 shows schematically a wireless network 100. The wireless network 100 comprises a prover node “P” 102 and a verifier node “V” 104, separated by a distance d 108. The verifier node may control a resource 106 to which the prover node 102 wishes to gain access by virtue, at least in part, of proximity to the verifier node 104. As part of gaining such access, the verifier node 104 may wish to verify the distance d 108 between the prover node 102 and the verifier node 104, for example, to ensure that the prover node 102 is located in the vicinity of the verifier node 104.

(13) An adversary node “A” 110 may spy on the transmissions of the prover node 102 and the verifier node 104 and may through illicit transmissions interfere with ranging between the prover node 102 and the verifier node 104 and/or try to gain access to the resource 106.

(14) FIG. 2 is a flowchart of a method example 200 of secure ranging which may be implemented in the wireless network 100 (FIG. 1).

(15) Starting, at 201, a frequency index i may be set to zero.

(16) At 202, the verifier node 104 may transmit a ranging request and the prover node may receive the ranging request and reply by transmitting a ranging acknowledgement. Further, the verifier node may generate or exchange with the prover node a commonly known key. This may be performed securely using methods known per se. For instance, the SIGMA protocol may be used to authenticate and securely exchange the key. Further, a time synchronization may be performed between the clock of the verifier node 104 and the clock of the prover node 102.

(17) Now, for each frequency f.sub.i in a plurality of frequencies f.sub.0, f.sub.1, f.sub.2 . . . f.sub.N-1, a measurement procedure 204-210 is performed, resulting in a two-way phase measurement and a round-trip time measurement between the verifier node 104 and the prover node 102, as will be detailed in the following.

(18) In some embodiments, a two-way phase measurement (i.e., a measurement of the round-trip phase advance between a first node and a second node), such as the verifier node and the prover node, may be performed based on a combination of a phase measurement performed at the second node with the first node transmitting and a phase measurement at the first node with the second node transmitting. With the phase measurement at the second node made with respect to the second node's LO, which is also used for generating the carrier signal transmitted by the second node, and the phase measurement done at the first node made with respect to the first node's LO, which is used for generating the carrier signal transmitted by the first node any phase offset between the respective local oscillators of the two nodes will cancel out when combining the two measurements.

(19) At 204, the verifier node 104 transmits on frequency f.sub.i a verifier packet comprising a verifier frame delimiter and a verifier carrier signal. The verifier packet is received by the prover node 102. The prover node 102 performs a phase measurement of the verifier carrier signal and a time-of arrival measurement of the verifier frame delimiter. The prover node measures the phase of the verifier carrier signal with respect to the local oscillator (LO) of the prover node. Alternatively, the prover node may lock its local oscillator, LO, signal to the verifier carrier signal. Thus, it adjusts its LO based on the phase measurement of the verifier carrier signal.

(20) At 206, the prover node 102 transmits on frequency f.sub.i a prover packet comprising a prover frame delimiter and a prover carrier signal. The prover packet is received by the verifier node 104. The verifier node 104 performs a phase measurement of the prover carrier signal and a time-of arrival measurement of the prover frame delimiter.

(21) At 208, if the measurement procedure is to be performed on further frequencies out of the total of N frequencies, at 210, the verifier node 104 and the prover node 102 may switch to the next frequency f.sub.i+1 and repeat the measurement procedure 204, 206. Thus, the measurement procedure is repeated several times at different frequencies.

(22) At 212, the prover node 102 may encrypt its measurement results, including the time-of arrival measurements for each frequency f.sub.i, and, optionally, if the prover node did not lock its LO to the verifier signal at 204, the phase measurements, with the commonly known key and transmit them. This transmission is received by the verifier node 104.

(23) At 214, the verifier node 104 may calculate the distance d between the verifier node 104 and the prover node 102 based on the measurements results, which involve the two-way phase measurements and the round-trip time measurements for the plurality of frequencies f.sub.i. Some of the measurements may be excluded due to their being biased or modified by an adversary. Frequencies for which measurements may be used may be chosen based on the round-trip-time measurements and the authentication based on the authentication codes. In conjunction with FIGS. 6 and 7 below, two alternative algorithms are described.

(24) If the calculated distance d is smaller than a pre-determined value, the verifier node 104 may provide access to the resource 106.

(25) At 216, the method example finishes.

(26) Each verifier frame delimiter and each prover frame delimiter above comprises an authentication code. The authentication code is based on a key commonly known by the verifier node and the prover node, which may be the key generated or exchanged between the nodes at 202.

(27) At 204 above, the prover node 102 may correlate the bit sequence of the received authentication code of the verifier frame delimiter with an available known sequence based on the commonly known key. If the outcome of this comparison is an impulse-like signal with an amplitude higher than a pre-determined threshold, then the verifier packet, including the frame delimiter and the carrier signal, is authenticated by the prover node as coming from the verifier node, since this with high probability indicates that the signal has been sent by the verifier node. Otherwise, the signal is not authenticated, and is deemed as having been sent by another node (e.g., an adversary or the signal was corrupted), for example due to interference.

(28) Similarly, at 206 above, the verifier node 104 may correlate the bit sequence of the received authentication code of the prover frame delimiter with the available known sequence based on the commonly known key. If the outcome of this comparison is an impulse-like signal with an amplitude higher than a pre-determined threshold, then the prover packet, including the frame delimiter and the carrier signal, is authenticated as coming from the prover node, since this indicates that the signal has been sent by the prover node with high probability. Otherwise, the signal is not authenticated, and is deemed as having been sent by another node (e.g., an adversary or the signal was corrupted), for example due to interference.

(29) The prover node 102 then generates a correct response sequence if the received sequence was correct and an incorrect response sequence, to inform the verifier node 104 that the received signal is illegitimate, if the received sequence was incorrect. In other words, the prover node 102 transmits the frame delimiter comprising a first authentication code on a condition that the verifier node carrier signal has been authenticated based on the corresponding authentication code of the corresponding verifier node frame delimiter and a second, different, authentication code otherwise.

(30) The authentication code may be a sequence of bits selected randomly, for example, using a pseudo-random function, and in some examples from a pre-determined set of sequences.

(31) The pseudo-random function may as input have commonly known key and one or more of the following: an index of the carrier signal, a sequence index, an identifier of the node transmitting the corresponding the frame delimiter, and an identifier of the node receiving the corresponding the frame delimiter. The pseudo-random function may output the authentication code, or in the case of using a pre-determined set of sequences, an index indicating a specific sequence from the pre-determined set of sequences.

(32) Each sequence of the pre-determined set of sequences may be a Gold code sequence. Gold codes are constructed by combining two maximal length sequences of the same length with each other, and the maximal length sequences can be generated using linear-feedback shift register (LFSR). For a Gold sequence of length 2.sup.n−1, one uses two LFSRs, each contains n registers and the set of Gold code sequences consists of 2.sup.n+1 unique sequences.

(33) FIG. 3 is a timing diagram of transmissions by the prover node “P” 102 and the verifier node “V” 104 during the method example 200 (FIG. 2). Transmissions by each respective node are marked “TX” and reception by “RX”.

(34) Shown, at 202, are the ranging request transmission by the verifier node 104 received by the prover node 102 and the ranging acknowledgement transmission by the prover node 102 received by the verifier node 104.

(35) Further shown, at 204, are the respective transmissions, at each frequency f.sub.i, of the packet comprising the frame delimiter and the carrier signal from the verifier node 104, received by the prover node 102, and, at 206, the packet comprising the frame delimiter and the carrier signal from the prover node 102, received by the verifier node 104.

(36) Further shown, at 212 (FIG. 2), is the transmission by the prover node 102 of the measurement results, received by the verifier node 104.

(37) Finally shown, at 214 (FIG. 2), is timing of the distance calculation performed by the verifier node.

(38) FIG. 4 is a detailed timing diagram of transmission and reception at 204 and 206 by the verifier node “V” 104 and the prover node “P” 102, with half-duplex operation and transmission/reception at each node.

(39) At 402 and 412, the respective phase-locked loops (PLLs) of the verifier node 104 and of the prover node 102 settle.

(40) At 406, corresponding to 204 in FIG. 2 above, the verifier node 104 transmits the verifier packet, which is received, at 414, by the prover node 102.

(41) At 410, corresponding to 206 in FIG. 2 above, the prover node 102 transmits 418 the prover packet 418a, which is received, at 410, by the verifier node 104.

(42) When the verifier node 104 transmits its signal at instant t.sub.0, the prover node 102 will receive it at instant t′.sub.0 where t′.sub.0=t.sub.0+D, where D is the propagation delay between the two nodes, and vice versa.

(43) The transmitting 406 and the receiving 410 by the verifier node 104 is separated by a switching time “ST” 408. Similarly, the receiving 414 and transmitting 418 by the prover node 102 is separated by a switching time 416.

(44) FIG. 5a is diagram showing transmission of packets each comprising a frame delimiter and a carrier signal.

(45) Starting at time T.sub.start=t.sub.0, the verifier node (“V”) 104 (FIGS. 1-3) transmits the verifier packet 406a (FIG. 4) comprising the verifier frame delimiter 502 followed by the verifier carrier signal 504. Being subject to propagation delay, D, the verifier packet 406a comprising the verifier frame delimiter 502 followed by the verifier carrier signal 504 is received at the prover node at a later measured time T.sub.1.

(46) Similarly, the prover node (“P”) 102 (FIGS. 1-3) transmits the prover packet 418a (FIG. 4) comprising the prover carrier signal 506 followed by the prover frame delimiter 508, ending at a time T.sub.2. Again being subject to the propagation delay D, the prover packet 418a (FIG. 4) comprising the prover carrier signal 506 followed by the prover frame delimiter 508 is received at the verifier node ending at a later measured time T.sub.stop.

(47) FIG. 5b shows a timeline of transmissions. The verifier node 104 (cf FIGS. 1-3) transmits the verifier packet, as in FIG. 5a, starting at a time T.sub.start=t.sub.0. The prover node 102 measures the time instant T.sub.1 at which the verifier frame delimiter 502 (FIG. 5a) has been received (i.e., the time of arrival of the verifier frame delimiter 502, with respect to the clock of the prover node 102). This measured time T.sub.1 equals the starting time T.sub.start=t.sub.0 plus the propagation delay D, plus a clock error Δ, by which the clock of the prover node differs from the clock of the verifier node. Then, the prover node 102 after some processing time PT measures the time instant T.sub.2 at which the frame delimiter, that contains the response bits, is transmitted.

(48) The verifier node 104 measures the time instant T.sub.stop at which the prover frame delimiter has been received (i.e., the time of arrival of the prover frame delimiter 508, with respect to the clock of the verifier node 104).

(49) The time instants T.sub.1 and T.sub.2 are later, at 212 above, encrypted using the symmetric key and transmitted to the verifier.

(50) The verifier may then, at 214 above, evaluate the round trip time by taking the difference between T.sub.stop and T.sub.start and from that subtract the difference between T.sub.2 and T.sub.1, which corresponds to the processing time PT at the prover node 102 and the packet length duration PL. This is performed separately for each frequency.

(51) The presence of an interfering adversary located further away from the prover node would lead to further propagation delays, which would result in a shift in the measured round-trip time.

(52) FIG. 6 shows a flow chart of a first algorithm for distance determination which may be performed at 214 (FIG. 2).

(53) At 602, the algorithm starts.

(54) At 604, the algorithm 600 receives as input two-way phase measurements per frequency f.sub.i, round-trip-time RTT measurements per frequency, and the results of the authentication per frequency. The results of the authentication comprise a challenge status C of the authentication of the verifier packet and a response status R of authentication of the prover packet. The outcome of each of the challenge status C and the response status R is either “true” when the received response is correct or “false” otherwise.

(55) At 606, from the round-trip phase measurements and round-trip time measurements of the measurement procedure 204-210 for the plurality of frequencies, measurements for frequencies where at least one of the prover carrier signal, signified by the response status R, and the verifier carrier signal, signified by the challenge status C, was not authenticated based on the respective frame delimiter are excluded from further calculation. Thus, frequencies that have the wrong response from the prover node are excluded, since the signals on those frequencies may be either have been sent by an illegitimate node or have been corrupted by deep fading. Alternatively, or additionally, measurements for frequencies where at least one prover carrier signal and verifier carrier signal was not authenticated based on the respective frame delimiter or where the measured round-trip time RTT exceeds a pre-determined value T.sub.t may be excluded from further calculation.

(56) At 608 it is checked whether the number N′ of remaining frequencies after the excluding at 606 exceeds a pre-determined threshold number T. T can have a predefined value depending on the level of security. For instance, T can be less than the total number of frequencies by one or the maximum between a minimum number of frequencies to evaluate range with adequate accuracy and a minimum number of carriers to achieve adequate security.

(57) If not so, the calculating is failed at 610. Thus, the algorithm continues only if the number N′ of remaining frequencies is larger than the pre-defined threshold T, otherwise the algorithm fails to evaluate the distance and stops.

(58) If so, at 612, an average round-trip time, RTT, is calculated based on the round-trip time measurements for frequencies remaining after the excluding at 606.

(59) At 614, it is checked whether the average round-trip time calculated at 612 exceeds, or alternatively exceeds or is equal to, a pre-determined value T.sub.t.

(60) If so, the calculation is failed at 620. Thus, the algorithm continues to evaluate the distance d 108 only if the average round-trip time is less than the predefined threshold T.sub.t; otherwise the algorithm stops and the distance will not be evaluated. For instance, T.sub.t can be equal to the phase ambiguity bound, or smaller than the phase ambiguity bound, which, in some examples may be in noisy and multi-path environments, or where higher security is desired.

(61) If not so, at 618, the distance d 108 is calculated from the two-way phase measurements at each remaining frequency f.sub.i remaining after the excluding at 606 using MCPDR methods.

(62) Finally, at 622, the algorithm 600 ends.

(63) FIG. 7 shows a flow chart of a second algorithm 700 for distance determination, as an alternative to the first algorithm 600 described above.

(64) At 702, the algorithm 700 starts.

(65) At 704, the algorithm 700 receives as input two-way phase measurements per frequency f.sub.i, round-trip-time measurements RTT per frequency, and the results of the authentication per frequency. The results of the authentication comprise a challenge status C of the authentication of the verifier packet and a response status R of authentication of the prover packet. The outcome of each of the challenge status C and the response status R is either “true” when the received response is correct or “false” otherwise.

(66) At 706, from the two-way phase measurements and round-trip time measurements of the measurement procedure for the plurality of frequencies, measurements for frequencies where at least one prover carrier signal, signified by the response status R, and verifier carrier signal, signified by the challenge status C, was not authenticated based on the respective the frame delimiter or where the measured round-trip time RTT exceeds a pre-determined value T.sub.t are excluded from further calculation. Thus, frequencies that have wrong challenge or response status are eliminated, since signal on those frequencies can be assumed to mostly have been sent by an illegitimate adversary node. Further, frequencies for which the calculated round-trip time value higher than the predefined threshold T.sub.t are eliminated, since in this case either the prover is outside a bound or there is an adversary who is relaying and delaying the signals. T.sub.t can for instance be equal to the phase ambiguity bound, or less than the phase ambiguity bound.

(67) At 708, it is checked whether the number N′ of remaining frequencies after the excluding at 706 exceeds a pre-determined threshold number T.

(68) If not so, the calculating is failed at 710. Thus, the algorithm continues only if the number N′ of remaining frequencies is larger than the pre-defined threshold T; otherwise the algorithm fails to evaluate the distance d 108 and stops. T can be pre-defined depending on the required level of security. For instance, T can be less than the total number of frequencies by one or the maximum between the minimum required number of frequencies to evaluate range with accuracy and the minimum required number of frequencies to achieve adequate security.

(69) If so, at 712, the remaining frequencies are grouped based on their respective measured round-trip-times RTT, resulting, at 714, in assignment into either a prover group G.sub.1, of N.sub.1 frequencies, or an adversary group G.sub.2, of N.sub.2 frequencies. For instance, this may be done based on a cut-off value, so that frequencies with an RTT less than or equal to the cut-off value are assigned to the prover group G.sub.1 and frequencies with an RTT more the cut-off value are assigned to the adversary group G.sub.2. Alternatively, the group G.sub.1 or G.sub.2 that has the highest number N.sub.1 or N.sub.2 of frequencies may be designated as the prover group, and the other group G.sub.1 or G.sub.2 as the adversary group.

(70) The cut-off value may either be pre-determined, for example corresponding to the phase ambiguity bound, or corresponding to a value smaller than the phase ambiguity bound, such as half the phase ambiguity bound. Alternatively, the cut-off value may be based on a statistical property of the RTT measurements, such as the mean or median value of all RTT measurements or the mean of the [10-90] percentile or the [25-75] percentile.

(71) Thus, the frequencies are divided into two different groups (G.sub.1 and G.sub.2) based on their RTT value. G.sub.1 denotes the group of carrier frequencies that belong to the prover and G.sub.2 the group of carrier frequencies that belong to the adversary; G.sub.1 contains the frequencies where the carrier signals that have not been delayed by the adversary and G.sub.2 contains the frequencies where the adversary was successfully able to predict the challenge and response bits. Either of the groups G.sub.1 and G.sub.2 can contain zero frequencies.

(72) At 718, it is checked whether the number N.sub.1 of frequencies in the prover group exceeds the threshold number T and whether the number of frequencies N.sub.2 in the adversary group does exceed the threshold number T.

(73) If so, with both conditions at 718 fulfilled, at 720, the distance d 108 is calculated from the two-way phase measurements at each frequency f.sub.i in the prover group G.sub.1 using MCPDR methods known per se.

(74) If not so, with at least of the of the conditions at 718 not fulfilled, at 724, the algorithm fails at 724 without calculating the distance d 108.

(75) Thus, for each group G.sub.1 and G.sub.2, the algorithm checks whether the number of frequencies are larger than T The algorithm evaluates the distance only if N.sub.1>T and N.sub.2<T; otherwise the algorithm stops.

(76) Finally, at 722, the algorithm 700 ends.

(77) Aspects of the present disclosure are described with reference to a limited number of examples. However, as is readily appreciated by a person skilled in the art, other examples than the ones disclosed above are equally possible within the scope of the disclosure, as defined by the appended claims.

(78) While some embodiments have been illustrated and described in detail in the appended drawings and the foregoing description, such illustration and description are to be considered illustrative and not restrictive. Other variations to the disclosed embodiments can be understood and effected in practicing the claims, from a study of the drawings, the disclosure, and the appended claims. The mere fact that certain measures or features are recited in mutually different dependent claims does not indicate that a combination of these measures or features cannot be used. Any reference signs in the claims should not be construed as limiting the scope.