CN112711039B - Time synchronization attack detection and correction method and device based on optimal estimation - Google Patents
Time synchronization attack detection and correction method and device based on optimal estimation Download PDFInfo
- Publication number
- CN112711039B CN112711039B CN202110323384.0A CN202110323384A CN112711039B CN 112711039 B CN112711039 B CN 112711039B CN 202110323384 A CN202110323384 A CN 202110323384A CN 112711039 B CN112711039 B CN 112711039B
- Authority
- CN
- China
- Prior art keywords
- clock
- clock error
- sequence
- model
- receiver
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01S—RADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
- G01S19/00—Satellite radio beacon positioning systems; Determining position, velocity or attitude using signals transmitted by such systems
- G01S19/01—Satellite radio beacon positioning systems transmitting time-stamped messages, e.g. GPS [Global Positioning System], GLONASS [Global Orbiting Navigation Satellite System] or GALILEO
- G01S19/13—Receivers
- G01S19/21—Interference related issues ; Issues related to cross-correlation, spoofing or other methods of denial of service
-
- G—PHYSICS
- G04—HOROLOGY
- G04R—RADIO-CONTROLLED TIME-PIECES
- G04R20/00—Setting the time according to the time information carried or implied by the radio signal
- G04R20/02—Setting the time according to the time information carried or implied by the radio signal the radio signal being sent by a satellite, e.g. GPS
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04J—MULTIPLEX COMMUNICATION
- H04J3/00—Time-division multiplex systems
- H04J3/02—Details
- H04J3/06—Synchronising arrangements
- H04J3/0635—Clock or time synchronisation in a network
- H04J3/0638—Clock or time synchronisation among nodes; Internode synchronisation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/14—Network architectures or network communication protocols for network security for detecting or protecting against malicious traffic
- H04L63/1408—Network architectures or network communication protocols for network security for detecting or protecting against malicious traffic by monitoring network traffic
- H04L63/1416—Event detection, e.g. attack signature detection
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Radar, Positioning & Navigation (AREA)
- Remote Sensing (AREA)
- Computer Security & Cryptography (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Position Fixing By Use Of Radio Waves (AREA)
Abstract
The application relates to a time synchronization attack detection and correction method and device based on optimal estimation, computer equipment and a storage medium. The method comprises the following steps: acquiring an observation clock error sequence, constructing an optimization model by taking a clock error binomial model parameter and a clock error attack amount as optimization variables and taking the minimum difference value between the observation clock error sequence and a real clock error sequence when being attacked by time as an optimization target, and solving the optimization model under a constraint condition to obtain an estimation value of the clock error binomial model parameter and an estimation value of the clock error attack amount; fitting a clock error model in an observation window according to the estimated value of the clock error binomial model parameter, and determining a predicted clock error sequence in the observation window; and obtaining a receiver clock error model fitting residual error according to the observed clock error sequence and the predicted clock error sequence, judging whether the receiver is attacked by time synchronization according to the receiver clock error model fitting residual error, and if so, correcting a current clock error calculation value of the receiver according to an estimated value of a clock error attack amount.
Description
Technical Field
The application relates to the field of satellite time service anti-spoofing, in particular to a time synchronization attack detection and correction method and device based on optimal estimation, computer equipment and a storage medium.
Background
With the continuous improvement of the technology level, the precision requirement of each industry on time synchronization becomes higher and higher. For example, power systems utilize phase measurement units to estimate the state of the grid in real time and perform system control and power scheduling accordingly, while phase measurement units rely heavily on precise time synchronization, which can be achieved by satellite navigation solutions or network time synchronization protocols. Besides, time synchronization is widely used in the fields of mobile communication, aviation control, robot cooperative control, and sensor-based passive positioning.
Positioning, navigation and time service are three basic services of a global satellite navigation system. The satellite time service is the most important time service method at present because of the characteristics of wide audience, good accuracy, long-term stability and the like. The time service type receiver is used as a main device for realizing time synchronization, and high-precision time is obtained by resolving the received satellite navigation signal, so that a standard time signal is provided for each system. At present, the time synchronization system based on the GPS/BDS uses civil GPS/BDS signals, and the signal structure of the civil satellite navigation signals is disclosed, which makes the time synchronization system vulnerable to time synchronization attack. The attack aiming at the time synchronization system is to inject false satellite navigation signals into the receiver, so that the target receiver solves and obtains wrong time information, and further, the time of an important infrastructure department of the opposite party cannot be synchronized. Time synchronization attacks, which typically do not see the effect immediately, cause losses and hazards that are covert and persistent, so efficient time synchronization attack resistant algorithms are necessary.
The prior art has the problem of poor real-time performance.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a time synchronization attack detection and correction method, apparatus, computer device and storage medium based on optimal estimation, which can improve the real-time performance of the algorithm.
A time synchronization attack detection and correction method based on optimal estimation comprises the following steps:
acquiring an observation clock error sequence of the satellite time service receiver in an observation window;
according to a coefficient matrix of an observation clock error sequence and a binomial model for describing clock errors, taking parameters of the clock error binomial model and a clock error attack amount as optimization variables, and taking the minimum difference value between the observation clock error sequence and a real clock error sequence when being attacked by time as an optimization target, constructing an optimization model, and solving the optimization model under a constraint condition to obtain an estimation value of the parameters of the clock error binomial model and an estimation value of the clock error attack amount; the clock error binomial model parameters comprise clock drift, frequency drift and clock error;
fitting a clock error model in the observation window according to the estimated value of the clock error binomial model parameter, and determining a predicted clock error sequence in the observation window according to the clock error model;
and obtaining a receiver clock error model fitting residual error according to the observed clock error sequence and the predicted clock error sequence, judging whether the receiver is attacked by time synchronization according to the receiver clock error model fitting residual error, and if so, correcting a current clock error calculation value of the receiver according to an estimated value of a clock error attack amount.
In one embodiment, the method further comprises the following steps: according to the coefficient matrix of the observation clock error sequence and the binomial model used for describing the clock error, the parameters of the clock error binomial model and the clock error attack amount are taken as optimization variables, the minimum difference value between the observation clock error sequence and the real clock error sequence when the clock error is attacked is taken as an optimization target, and the construction of the optimization model is as follows:
wherein the content of the first and second substances,;a sequence of observed clock differences is represented,which is indicative of the current observation time instant,which represents the length of the observation window,represents the observed clock error;an estimated value representing the clock error attack amount;a true value representing the amount of clock error attack;representing estimated values of clock-error binomial model parameters, whereinRespectively representing estimated values of clock drift, frequency drift and clock offset of the receiver;representing the true values of the parameters of the clock-difference binomial model;representing a coefficient matrix;a true value representing the receiver clock drift;
solving the optimized model under the constraint condition to obtain an estimated value of clock error binomial model parameters and an estimated value of clock error attack quantity; the constraint condition is。
In one embodiment, the method further comprises the following steps: fitting a clock error model in the observation window according to the estimated value of the clock error binomial model parameter, and determining a predicted clock error sequence in the observation window according to the clock error model as follows:
wherein the content of the first and second substances,,nindicating a time sequence number within the observation window;representing the predicted clock error obtained from the clock error model.
In one embodiment, the method further comprises the following steps: obtaining the fitting error sequence of each time in the observation window according to the difference value of the observation clock difference sequence and the predicted clock difference sequence,;
From the fitting error sequence,,Representing the step length of the sliding window to obtain the mean value of the fitting errorAnd standard deviation of;
Judgment ofFitting error of time of dayWhether or not to fall onWithin the interval, ifThen the receiver is considered to be inThe time is not attacked by time synchronization ifThen the receiver is considered to be inThe time of day is subject to a time synchronization attack.
In one embodiment, the method further comprises the following steps: if the receiver is attacked, correcting the current clock error calculation value of the receiver according to the estimated value of the clock error attack quantity, and obtaining the corrected clock error calculation value as follows:
wherein the content of the first and second substances,is shown inmAn estimate of the amount of clock-error attack at a time.
In one embodiment, the method further comprises the following steps: obtaining a receiver clock error model fitting residual error according to the observation clock error sequence and the prediction clock error sequence, judging whether the receiver is attacked by time synchronization according to the receiver clock error model fitting residual error, if so, correcting the current clock error calculation value of the receiver according to the estimated value of the clock error attack amount, and moving the observation window backwardsAnd (5) continuously carrying out time synchronization attack detection and correction on each observation epoch.
In one embodiment, the method further comprises the following steps: and resolving to obtain an observation clock error sequence in an observation window according to the satellite navigation signal received by a receiving antenna of the satellite time service receiver.
An optimal estimation based time synchronization attack detection and correction device, comprising:
the observation clock error sequence acquisition module is used for acquiring an observation clock error sequence of the satellite time service receiver in an observation window;
the optimization model solving module is used for establishing an optimization model by taking parameters of a clock error binomial model and a clock error attack amount as optimization variables and taking the minimum difference value between the observed clock error sequence and a real clock error sequence when the clock error binomial model is attacked by time as an optimization target according to a coefficient matrix of the observed clock error binomial model and the binomial model used for describing the clock error, and solving the optimization model under the constraint condition to obtain an estimation value of the parameters of the clock error binomial model and an estimation value of the clock error attack amount; the clock error binomial model parameters comprise clock drift, frequency drift and clock error;
the system comprises a prediction clock error sequence acquisition module, a clock error model generation module and a clock error correction module, wherein the prediction clock error sequence acquisition module is used for fitting a clock error model in an observation window according to an estimated value of a clock error binomial model parameter and determining a prediction clock error sequence in the observation window according to the clock error model;
and the clock error correction module is used for obtaining a receiver clock error model fitting residual error according to the observed clock error sequence and the predicted clock error sequence, judging whether the receiver is attacked by time synchronization according to the receiver clock error model fitting residual error, and correcting the current clock error calculation value of the receiver according to the estimated value of the clock error attack amount if the receiver is attacked.
A computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
acquiring an observation clock error sequence of the satellite time service receiver in an observation window;
according to a coefficient matrix of an observation clock error sequence and a binomial model for describing clock errors, taking parameters of the clock error binomial model and a clock error attack amount as optimization variables, and taking the minimum difference value between the observation clock error sequence and a real clock error sequence when being attacked by time as an optimization target, constructing an optimization model, and solving the optimization model under a constraint condition to obtain an estimation value of the parameters of the clock error binomial model and an estimation value of the clock error attack amount; the clock error binomial model parameters comprise clock drift, frequency drift and clock error;
fitting a clock error model in the observation window according to the estimated value of the clock error binomial model parameter, and determining a predicted clock error sequence in the observation window according to the clock error model;
and obtaining a receiver clock error model fitting residual error according to the observed clock error sequence and the predicted clock error sequence, judging whether the receiver is attacked by time synchronization according to the receiver clock error model fitting residual error, and if so, correcting a current clock error calculation value of the receiver according to an estimated value of a clock error attack amount.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
acquiring an observation clock error sequence of the satellite time service receiver in an observation window;
according to a coefficient matrix of an observation clock error sequence and a binomial model for describing clock errors, taking parameters of the clock error binomial model and a clock error attack amount as optimization variables, and taking the minimum difference value between the observation clock error sequence and a real clock error sequence when being attacked by time as an optimization target, constructing an optimization model, and solving the optimization model under a constraint condition to obtain an estimation value of the parameters of the clock error binomial model and an estimation value of the clock error attack amount; the clock error binomial model parameters comprise clock drift, frequency drift and clock error;
fitting a clock error model in the observation window according to the estimated value of the clock error binomial model parameter, and determining a predicted clock error sequence in the observation window according to the clock error model;
and obtaining a receiver clock error model fitting residual error according to the observed clock error sequence and the predicted clock error sequence, judging whether the receiver is attacked by time synchronization according to the receiver clock error model fitting residual error, and if so, correcting a current clock error calculation value of the receiver according to an estimated value of a clock error attack amount.
According to the time synchronization attack detection and correction method and device based on optimal estimation, the computer equipment and the storage medium, an observation clock difference sequence of the satellite time service receiver in an observation window is obtained, the clock difference binomial model parameters and the clock difference attack amount are used as optimization variables, the minimum difference value between the observation clock difference sequence and the real clock difference sequence when the satellite time service receiver is attacked is used as an optimization target, an optimization model is constructed, the optimization model is solved under the constraint condition, and the estimation value of the clock difference binomial model parameters and the estimation value of the clock difference attack amount are obtained; then, fitting a clock error model in an observation window according to the estimated value of the clock error binomial model parameter, and further determining a predicted clock error sequence in the observation window; and obtaining a receiver clock error model fitting residual error according to the observed clock error sequence and the predicted clock error sequence, judging whether the receiver is attacked by time synchronization according to the receiver clock error model fitting residual error, and if so, correcting a current clock error calculation value of the receiver according to an estimated value of a clock error attack amount. Compared with other time synchronization attack resisting algorithms, the algorithm provided by the invention can be detected and corrected in real time, is good in real time and has a good effect on resisting time synchronization attack.
Drawings
FIG. 1 is a schematic flow chart of a method for time-synchronized attack detection and correction based on optimal estimation according to an embodiment;
FIG. 2 is a schematic flow chart of a method for time-synchronized attack detection and correction based on optimal estimation in another embodiment;
FIG. 3 is a schematic diagram of detecting and correcting a mutant time synchronization attack as contemplated in one embodiment;
FIG. 4 is a diagram of detecting and correcting a persistent time synchronization attack as is involved in one embodiment;
FIG. 5 is a block diagram of an embodiment of an apparatus for time-synchronized attack detection and modification based on optimal estimation;
FIG. 6 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The time synchronization attack detection and correction method based on the optimal estimation can be applied to the following application environments. Executing a time synchronization attack detection and correction method based on optimal estimation through a satellite time attack detection terminal, acquiring an observation clock error sequence of a satellite time service receiver in an observation window, constructing an optimal model by taking clock error binomial model parameters and a clock error attack amount as optimization variables and taking the minimum difference value between the observation clock error sequence and a real clock error sequence when the satellite time service receiver is subjected to time attack as an optimization target, and solving the optimal model under a constraint condition to obtain an estimated value of the clock error binomial model parameters and an estimated value of the clock error attack amount; then, fitting a clock error model in an observation window according to the estimated value of the clock error binomial model parameter, and further determining a predicted clock error sequence in the observation window; and obtaining a receiver clock error model fitting residual error according to the observed clock error sequence and the predicted clock error sequence, judging whether the receiver is attacked by time synchronization according to the receiver clock error model fitting residual error, and if so, correcting a current clock error calculation value of the receiver according to an estimated value of a clock error attack amount.
In one embodiment, as shown in fig. 1, there is provided a time synchronization attack detection and correction method based on optimal estimation, comprising the following steps:
and 102, acquiring an observation clock error sequence of the satellite time service receiver in an observation window.
The deviation between the time obtained by the satellite time service receiver and the standard system time is called receiver clock error, and the clock error of the receiver can be expressed by a binomial model within a period of time as follows:
in the formula (I), the compound is shown in the specification,for receiver at reference timeDeviation from system time, also known as receiver clock error;for receiver internal clock at reference timeFrequency drift relative to actual frequency;is the drift factor of the receiver clock frequency, i.e. the clock drift.
In the prior art, a binomial coefficient is determined by performing polynomial fitting on observation data, and a sliding window mode is adopted to recur backwards so as to ensure that the obtained coefficient has good continuity.
104, according to the observation clock error sequence and the coefficient matrix of the binomial model for describing the clock error, taking the parameters of the clock error binomial model and the clock error attack amount as optimization variables, and taking the minimum difference value between the observation clock error sequence and the real clock error sequence when being attacked by time as an optimization target, constructing an optimization model, and solving the optimization model under the constraint condition to obtain the estimation value of the parameters of the clock error binomial model and the estimation value of the clock error attack amount;
the coefficient matrix is predefined according to a clock-difference binomial model structure. In the embodiment, the optimal estimation mode is adopted, the solution of the clock error binomial model parameters and the clock error attack amount is converted into the solution optimization model, and the algorithm provided by the invention can be detected and corrected in real time, so that the time synchronization attack resisting method has a good effect.
And step 106, fitting a clock error model in the observation window according to the estimated value of the clock error binomial model parameter, and determining a predicted clock error sequence in the observation window according to the clock error model.
The predicted clock difference sequence is obtained according to a clock difference binomial model constructed by the estimated binomial model parameters, and has certain continuity and predictability.
And 108, obtaining a receiver clock difference model fitting residual according to the observation clock difference sequence and the prediction clock difference sequence, judging whether the receiver is attacked by time synchronization according to the receiver clock difference model fitting residual, and if so, correcting the current clock difference calculation value of the receiver according to the estimated value of the clock difference attack quantity.
If the difference between the observed clock difference value obtained by the receiver at the observation time and the clock difference value predicted by the binomial is too large, the receiver is considered to be attacked by time synchronization, and the current clock difference calculation value of the receiver needs to be corrected according to the estimated value of the clock difference attack amount.
In the time synchronization attack detection and correction method based on optimal estimation, an observation clock error sequence of a satellite time service receiver in an observation window is obtained, a clock error binomial model parameter and a clock error attack amount are used as optimization variables, the minimum difference value between the observation clock error sequence and a real clock error sequence when the satellite time service receiver is attacked is used as an optimization target, an optimization model is constructed, the optimization model is solved under a constraint condition, and an estimation value of the clock error binomial model parameter and an estimation value of the clock error attack amount are obtained; then, fitting a clock error model in an observation window according to the estimated value of the clock error binomial model parameter, and further determining a predicted clock error sequence in the observation window; and obtaining a receiver clock error model fitting residual error according to the observed clock error sequence and the predicted clock error sequence, judging whether the receiver is attacked by time synchronization according to the receiver clock error model fitting residual error, and if so, correcting a current clock error calculation value of the receiver according to an estimated value of a clock error attack amount. Compared with other time synchronization attack resisting algorithms, the algorithm provided by the invention can be detected and corrected in real time, is good in real time and has a good effect on resisting time synchronization attack.
In one embodiment, the method further comprises the following steps: according to the coefficient matrix of the observation clock error sequence and the binomial model used for describing the clock error, the parameters of the clock error binomial model and the clock error attack amount are taken as optimization variables, the minimum difference value between the observation clock error sequence and the real clock error sequence when the clock error is attacked is taken as an optimization target, and the construction of the optimization model is as follows:
wherein the content of the first and second substances,;a sequence of observed clock differences is represented,which is indicative of the current observation time instant,which represents the length of the observation window,represents the observed clock error;an estimated value representing the clock error attack amount;a true value representing the amount of clock error attack;representing estimated values of clock-error binomial model parameters, whereinRespectively representing estimated values of clock drift, frequency drift and clock offset of the receiver;representing the true values of the parameters of the clock-difference binomial model;representing a coefficient matrix;a true value representing the receiver clock drift;
solving the optimized model under the constraint condition to obtain an estimated value of clock error binomial model parameters and an estimated value of clock error attack quantity; the constraint condition is。
In one embodiment, the method further comprises the following steps: fitting a clock error model in the observation window according to the estimated value of the clock error binomial model parameter, and determining a predicted clock error sequence in the observation window according to the clock error model as follows:
wherein the content of the first and second substances,,nindicating a time sequence number within the observation window;representing the predicted clock error obtained from the clock error model.
In one embodiment, the method further comprises the following steps: obtaining the fitting error sequence of each time in the observation window according to the difference value of the observation clock difference sequence and the predicted clock difference sequence,(ii) a From the fitting error sequence,,Representing the step length of the sliding window to obtain the mean value of the fitting errorAnd standard deviation of(ii) a Judgment ofFitting error of time of dayWhether or not to fall onWithin the interval, ifThen the receiver is considered to be inThe time is not attacked by time synchronization ifThen the receiver is considered to be inThe time of day is subject to a time synchronization attack. If the receiver is attacked, correcting the current clock error calculation value of the receiver according to the estimated value of the clock error attack quantity, and obtaining the corrected clock error calculation value as follows:
wherein the content of the first and second substances,is shown inmTime of dayAn estimate of the amount of clock error attack.
In one embodiment, the method further comprises the following steps: obtaining a receiver clock error model fitting residual error according to the observation clock error sequence and the prediction clock error sequence, judging whether the receiver is attacked by time synchronization according to the receiver clock error model fitting residual error, if so, correcting the current clock error calculation value of the receiver according to the estimated value of the clock error attack amount, and moving the observation window backwardsAnd (5) continuously carrying out time synchronization attack detection and correction on each observation epoch.
In one embodiment, the method further comprises the following steps: and resolving to obtain an observation clock error sequence in an observation window according to the satellite navigation signal received by a receiving antenna of the satellite time service receiver.
It should be understood that, although the steps in the flowchart of fig. 1 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a portion of the steps in fig. 1 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 2, a time synchronization attack detection and correction method based on optimal estimation is provided, which includes the following steps:
step (1): the receiver is obtained by resolving according to the satellite navigation signal received by the receiving antennakClock difference value of receiver of time of day;
Step (2): will be provided withkMarking the actual clock error attack amount of the timeLength of sliding observation windowThe step size of the sliding is marked. When the receiver is in normal operation, the signal is calculated and obtainedAfter a true receiver clock difference valueWithin the observation window of (a) solving the following optimization model:
wherein,Is a receiver clock difference sequence, and each item of the sequence is a clock difference value obtained by the receiver after normal resolving in the step (1) or correction in the step (6).The sequence is the estimated clock error attack quantity of each time, and the estimation result is 0 to indicate that the receiver is not attacked by time synchronization at the time.Is estimated to bekA fitting coefficient of a receiver clock error binomial model of a time, whereinRespectively representing the clock drift, frequency drift and clock offset of the receiver, because the clock drift of the high-precision crystal oscillator used by the general receiver is less than that of the common receiver in a short timeIn magnitude, therefore there areSatisfy the requirement of。The coefficient matrix is obtained by using a clock error binomial model of the receiver in an observation windowThe discretization of each observation epoch in the interior is obtained by:
and (3): utilizing the receiver clock error binomial model parameters obtained in the step (2)To fit the observation windowInner receiver clock error model:
And (4): using the product obtained in step (1)Receiver clock error solution value of each time in time periodSubtracting the model fitting value obtained in the step (3)So as to obtain the receiver clock error fitting error of each time in the current observation windowThen calculating the fitting error sequence of the receiver clock error modelMean value ofAnd standard deviation of;
And (5): judging fitting errorWhether or not to fall onWithin the interval, ifThen the receiver is considered to be inTime of day not receiving timeSynchronous attack, in which the clock error is resolvedIs a normal value ifIf yes, executing step (6);
and (6): utilizing the clock error attack amount estimated in the step (2)To the clock difference solutionAnd (5) correcting:
the corrected clock errorIn place of the receivermClock error calculation value of time. Moving the observation window backwardAnd (4) observing the epoch and returning to the step (2).
In another specific example, MATLAB simulation software of MathWorks company and a high-precision positioning type receiver board UB4B0 of Unicorecomm company are used for verifying the time synchronization attack detection and correction method. The time synchronization attack signal is obtained through simulation on the basis of the received real satellite signal, the attack signal cannot influence the position calculation result of the receiver, and only influences relevant parameters of a receiver clock. The receiver receives clock error obtained by resolving real satellite signals and resolves the clock error when suffering from mutant time synchronization attackThe relationship between the obtained clock offset and the clock offset corrected by the method is shown in FIG. 3 (a), the mutant time synchronization attack starts at the 60 th time, and the time attack amount isThe error between the receiver clock difference corrected by the method and the clock difference obtained by resolving the received real satellite signal is shown in fig. 3 (b), and the maximum error between the receiver clock difference and the clock difference is about. The relationship between the clock offset obtained by the receiver receiving the real satellite signal and the clock offset obtained by the receiver when suffering the continuous time synchronization attack and the clock offset obtained by the receiver after being corrected by the method is shown in fig. 4 (a), the continuous time attack starts from the 60 th s, and the time attack amount is aboutThe error between the receiver clock difference corrected by the method and the clock difference obtained by resolving the received real satellite signal is shown in fig. 4 (b), and the maximum error between the receiver clock difference and the clock difference is. According to the embodiment, the algorithm provided by the invention has better time synchronization attack detection and correction effects.
In one embodiment, as shown in fig. 5, there is provided an optimal estimation-based time synchronization attack detection and modification apparatus, including: an observation clock difference sequence obtaining module 502, an optimization model solving module 504, a prediction clock difference sequence obtaining module 506 and a clock difference correction module 508, wherein:
an observation clock difference sequence obtaining module 502, configured to obtain an observation clock difference sequence of the satellite time service receiver in an observation window;
an optimization model solving module 504, configured to construct an optimization model according to a coefficient matrix of an observation clock difference sequence and a binomial model used for describing clock differences, with parameters of the clock difference binomial model and a clock difference attack amount as optimization variables, and with a minimum difference between the observation clock difference sequence and a real clock difference sequence when subjected to time attack as an optimization target, and solve the optimization model under a constraint condition to obtain an estimated value of the parameters of the clock difference binomial model and an estimated value of the clock difference attack amount; the clock error binomial model parameters comprise clock drift, frequency drift and clock error;
a predicted clock difference sequence obtaining module 506, configured to fit a clock difference model in the observation window according to the estimated value of the clock difference binomial model parameter, and determine a predicted clock difference sequence in the observation window according to the clock difference model;
and the clock offset correction module 508 is configured to obtain a receiver clock offset model fitting residual according to the observed clock offset sequence and the predicted clock offset sequence, judge whether the receiver is attacked by time synchronization according to the receiver clock offset model fitting residual, and correct a current clock offset calculation value of the receiver according to an estimated value of a clock offset attack amount if the receiver is attacked.
The optimization model solving module 504 is further configured to construct an optimization model, according to the observed clock difference sequence and the coefficient matrix of the binomial model used for describing the clock difference, with the clock difference binomial model parameters and the clock difference attack amount as optimization variables, and with the minimum difference between the observed clock difference sequence and the real clock difference sequence when subjected to time attack as an optimization objective:
wherein the content of the first and second substances,;a sequence of observed clock differences is represented,which is indicative of the current observation time instant,which represents the length of the observation window,represents the observed clock error;an estimated value representing the clock error attack amount;a true value representing the amount of clock error attack;representing estimated values of clock-error binomial model parameters, whereinRespectively representing estimated values of clock drift, frequency drift and clock offset of the receiver;representing the true values of the parameters of the clock-difference binomial model;representing a coefficient matrix;a true value representing the receiver clock drift;
solving the optimized model under the constraint condition to obtain an estimated value of clock error binomial model parameters and an estimated value of clock error attack quantity; the constraint condition is。
The predicted clock difference sequence obtaining module 506 is further configured to fit a clock difference model in the observation window according to the estimated values of the clock difference binomial model parameters, and determine that the predicted clock difference sequence in the observation window is:
wherein the content of the first and second substances,,nindicating a time sequence number within the observation window;representing the predicted clock error obtained from the clock error model.
The clock error correction module 508 is further configured to obtain a fitting error sequence at each time in the observation window according to a difference between the observed clock error sequence and the predicted clock error sequence,;
From the fitting error sequence,,Representing the step length of the sliding window to obtain the mean value of the fitting errorAnd standard deviation of;
Judgment ofFitting error of time of dayWhether or not to fall onWithin the interval, ifThen the receiver is considered to be inThe time is not attacked by time synchronization ifThen the receiver is considered to be inThe time of day is subject to a time synchronization attack. If the receiver is attacked, correcting the current clock error calculation value of the receiver according to the estimated value of the clock error attack quantity, and obtaining the corrected clock error calculation value as follows:
wherein the content of the first and second substances,is shown inmAn estimate of the amount of clock-error attack at a time.
The clock error correction module 508 is also used for moving the observation window backwardAnd (5) continuously carrying out time synchronization attack detection and correction on each observation epoch.
The observation clock difference sequence obtaining module 502 is further configured to obtain an observation clock difference sequence in the observation window by resolving according to a satellite navigation signal received by a receiving antenna of the satellite time service receiver.
For specific limitations of the time synchronization attack detection and correction device based on the optimal estimation, see the above limitations on the time synchronization attack detection and correction method based on the optimal estimation, which are not described herein again. The modules in the above-mentioned time synchronization attack detection and correction device based on optimal estimation can be wholly or partially realized by software, hardware and their combination. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 6. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a time synchronization attack detection and modification method based on an optimal estimate. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 6 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In an embodiment, a computer device is provided, comprising a memory storing a computer program and a processor implementing the steps of the above method embodiments when executing the computer program.
In an embodiment, a computer-readable storage medium is provided, on which a computer program is stored, which computer program, when being executed by a processor, carries out the steps of the above-mentioned method embodiments.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.
Claims (10)
1. A time synchronization attack detection and correction method based on optimal estimation is characterized by comprising the following steps:
acquiring an observation clock error sequence of the satellite time service receiver in an observation window;
according to the coefficient matrix of the observation clock error sequence and the binomial model for describing the clock error, taking the parameters of the clock error binomial model and the clock error attack amount as optimization variables, and taking the minimum difference value between the observation clock error sequence and the real clock error sequence when being attacked by time as an optimization target, constructing an optimization model, and solving the optimization model under the constraint condition to obtain the estimation value of the parameters of the clock error binomial model and the estimation value of the clock error attack amount; the clock error binomial model parameters comprise clock drift, frequency drift and clock error;
fitting a clock error model in the observation window according to the estimated value of the clock error binomial model parameter, and determining a predicted clock error sequence in the observation window according to the clock error model;
and obtaining a receiver clock error model fitting residual error according to the observation clock error sequence and the prediction clock error sequence, judging whether the receiver is attacked by time synchronization according to the receiver clock error model fitting residual error, and if so, correcting the current clock error calculation value of the receiver according to the estimated value of the clock error attack amount.
2. The method according to claim 1, wherein, based on the observed clock difference sequence and the coefficient matrix of the binomial model for describing the clock difference, the optimization model is constructed by using the parameters of the binomial model for clock difference and the attack amount for clock difference as optimization variables and using the minimum difference between the observed clock difference sequence and the real clock difference sequence when being attacked by time as an optimization target, and the optimization model is solved under the constraint condition to obtain the estimated values of the parameters of the binomial model for clock difference and the estimated values of the attack amount for clock difference, comprising:
according to the coefficient matrix of the observation clock error sequence and the binomial model used for describing the clock error, the parameters of the clock error binomial model and the clock error attack amount are taken as optimization variables, the minimum difference value between the observation clock error sequence and the real clock error sequence when the clock error is attacked is taken as an optimization target, and the construction of the optimization model is as follows:
wherein the content of the first and second substances,,representing any one column vector;representing the sequence of observed clock differences,which is indicative of the current observation time instant,which represents the length of the observation window,represents the observed clock error;a sequence representing an estimate of the amount of said clock error attack;a sequence of true values representing the amount of clock error attack;representing estimated values of said clock-difference binomial model parameters, whereinRespectively representing estimated values of clock drift, frequency drift and clock offset of the receiver;representing the true values of the parameters of the clock-difference binomial model;representing the coefficient matrix;a true value representing the receiver clock drift;
solving the optimization model under the constraint condition to obtain an estimation value of the clock error binomial model parameter and a sequence of the estimation value of the clock error attack quantity, and obtaining the estimation value of the clock error attack quantity according to the sequence of the estimation value of the clock error attack quantity; the constraint condition is。
3. The method of claim 2, wherein fitting a clock model within the observation window based on the estimated values of the clock binomial model parameters, determining a sequence of predicted clock differences within the observation window based on the clock model, comprises:
fitting a clock error model in the observation window according to the estimated value of the clock error binomial model parameter, and determining a predicted clock error sequence in the observation window according to the clock error model as follows:
4. The method of claim 3, wherein determining whether the receiver is under a time synchronization attack based on a current clock offset in the observed clock offset sequence and the predicted clock offset sequence comprises:
obtaining a fitting residual sequence of each moment in the observation window according to the difference value of the observation clock difference sequence and the prediction clock difference sequence,;
From the fitted residual sequence,,Representing the step length of the sliding window to obtain the mean value of the fitting residual errorsAnd standard deviation of;
5. The method of claim 4, wherein the modifying the current clock offset solution of the receiver according to the estimated value of the clock offset attack amount if the receiver is attacked comprises:
if the receiver is attacked, correcting the current clock error calculation value of the receiver according to the estimated value of the clock error attack quantity, and obtaining the corrected clock error calculation value as follows:
6. The method of claim 5, wherein determining whether the receiver is under time synchronization attack according to the current clock offset in the observed clock offset sequence and the predicted clock offset sequence, and if the receiver is under attack, after correcting the current clock offset calculation value of the receiver according to the estimated value of the clock offset attack amount, the method comprises:
7. The method according to any one of claims 1 to 6, wherein acquiring the sequence of observation clock differences of the satellite timing receiver in the observation window comprises:
and resolving to obtain an observation clock error sequence in an observation window according to the satellite navigation signal received by a receiving antenna of the satellite time service receiver.
8. An optimal estimation based time synchronization attack detection and modification apparatus, the apparatus comprising:
the observation clock error sequence acquisition module is used for acquiring an observation clock error sequence of the satellite time service receiver in an observation window;
the optimization model solving module is used for constructing an optimization model by taking clock error binomial model parameters and clock error attack quantity as optimization variables and taking the minimum difference value between an observation clock error sequence and a real clock error sequence when the clock error binomial model is attacked by time as an optimization target according to the observation clock error sequence and a coefficient matrix of a binomial model for describing clock error, and solving the optimization model under the constraint condition to obtain an estimation value of the clock error binomial model parameters and an estimation value of the clock error attack quantity; the clock error binomial model parameters comprise clock drift, frequency drift and clock error;
the predicted clock difference sequence acquisition module is used for fitting a clock difference model in the observation window according to the estimated value of the clock difference binomial model parameter and determining a predicted clock difference sequence in the observation window according to the clock difference model;
and the clock error correction module is used for obtaining a receiver clock error model fitting residual error according to the observation clock error sequence and the prediction clock error sequence, judging whether the receiver is attacked by time synchronization according to the receiver clock error model fitting residual error, and correcting the current clock error calculation value of the receiver according to the estimated value of the clock error attack amount if the receiver is attacked.
9. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110323384.0A CN112711039B (en) | 2021-03-26 | 2021-03-26 | Time synchronization attack detection and correction method and device based on optimal estimation |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110323384.0A CN112711039B (en) | 2021-03-26 | 2021-03-26 | Time synchronization attack detection and correction method and device based on optimal estimation |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112711039A CN112711039A (en) | 2021-04-27 |
CN112711039B true CN112711039B (en) | 2021-06-04 |
Family
ID=75550238
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110323384.0A Active CN112711039B (en) | 2021-03-26 | 2021-03-26 | Time synchronization attack detection and correction method and device based on optimal estimation |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112711039B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113890764B (en) * | 2021-10-08 | 2023-05-09 | 中国电子科技集团公司第三十研究所 | Time synchronization system with prediction function and safety monitoring method and device thereof |
CN114911306B (en) * | 2022-03-21 | 2024-05-07 | 中海油田服务股份有限公司 | Precision clock error forecasting method, device, computing equipment and storage medium |
CN116125512B (en) * | 2023-04-13 | 2023-07-18 | 中国科学院精密测量科学与技术创新研究院 | PPP self-adaptive clock difference model estimation method considering clock frequency time-varying characteristics |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103116171A (en) * | 2013-01-21 | 2013-05-22 | 江苏指南针导航通信技术有限公司 | False detection method of satellite navigation signal and satellite navigation positioning receiver |
CN103713297A (en) * | 2013-11-29 | 2014-04-09 | 航天恒星科技有限公司 | INS assistance-based satellite navigation spoofing-type interference resisting method |
CN103983986A (en) * | 2014-06-10 | 2014-08-13 | 哈尔滨工业大学 | Particle filter-based improved RAIM (Receiver Autonomous Integrity Monitoring) anti-deception jamming method |
JP2014238388A (en) * | 2013-05-02 | 2014-12-18 | ザ・ボーイング・カンパニーTheBoeing Company | Device, system and methods using angle-of-arrival measurements for ads-b authentication and navigation |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105158774A (en) * | 2015-07-20 | 2015-12-16 | 国家电网公司 | Satellite navigation time service receiver anti-spoofing method |
CN106093978B (en) * | 2016-06-30 | 2019-05-10 | 郑州威科姆科技股份有限公司 | A kind of anti-spoofing formula interference signal processing method of GNSS time service type satellite receiver |
US11105932B2 (en) * | 2017-12-20 | 2021-08-31 | Board Of Regents, The University Of Texas System | Method and system for detecting and mitigating time synchronization attacks of global positioning system (GPS) receivers |
US10673883B2 (en) * | 2018-05-14 | 2020-06-02 | Cisco Technology, Inc. | Time synchronization attack detection in a deterministic network |
CN109412738B (en) * | 2018-11-05 | 2020-01-24 | 国网湖北省电力有限公司电力科学研究院 | Time synchronization equipment detection method based on satellite time service module output signal simulation |
CN109901200B (en) * | 2019-05-07 | 2019-09-06 | 湖南国科防务电子科技有限公司 | Satellite navigation signals cheating interference detection method, processing equipment and system |
CN111158025A (en) * | 2019-12-31 | 2020-05-15 | 中国南方电网有限责任公司超高压输电公司 | Satellite navigation time service receiver anti-cheating method based on clock error modeling |
-
2021
- 2021-03-26 CN CN202110323384.0A patent/CN112711039B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103116171A (en) * | 2013-01-21 | 2013-05-22 | 江苏指南针导航通信技术有限公司 | False detection method of satellite navigation signal and satellite navigation positioning receiver |
JP2014238388A (en) * | 2013-05-02 | 2014-12-18 | ザ・ボーイング・カンパニーTheBoeing Company | Device, system and methods using angle-of-arrival measurements for ads-b authentication and navigation |
CN103713297A (en) * | 2013-11-29 | 2014-04-09 | 航天恒星科技有限公司 | INS assistance-based satellite navigation spoofing-type interference resisting method |
CN103983986A (en) * | 2014-06-10 | 2014-08-13 | 哈尔滨工业大学 | Particle filter-based improved RAIM (Receiver Autonomous Integrity Monitoring) anti-deception jamming method |
Also Published As
Publication number | Publication date |
---|---|
CN112711039A (en) | 2021-04-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112711039B (en) | Time synchronization attack detection and correction method and device based on optimal estimation | |
CN110376620B (en) | Real-time clock error forecasting method and device and computer equipment | |
CN108957495B (en) | GNSS and MIMU combined navigation method and device and computer equipment | |
CN110389364B (en) | Positioning method, positioning device, computer equipment and storage medium | |
CN113259042B (en) | Clock reference synchronization method, device, equipment and storage medium between multiple equipment | |
CN110913338B (en) | Positioning track correction method and device, computer equipment and storage medium | |
US20210109228A1 (en) | Identifying gnss navigation data as potentially manipulated or as trustworthy at least partially based on an estimated deviation of a second estimate of a satellite state from a first estimate of the satellite state | |
CN114355758B (en) | High-precision time tracing method based on Beidou satellite-based augmentation and precise ephemeris service | |
CN114647178B (en) | Automatic atomic clock calibration method and system based on Beidou and ground reference transmission | |
Garcia et al. | Unscented Kalman filter applied to the spacecraft attitude estimation with euler angles | |
CN111678513A (en) | Ultra-wideband/inertial navigation tight coupling indoor positioning device and system | |
CN111178126A (en) | Target detection method, target detection device, computer equipment and storage medium | |
CN117055323A (en) | Star-based precise time service method and system based on Beidou/Galileo system fusion | |
SG175818A1 (en) | Relative time measurement system with nanosecond level accuracy | |
CN109856656B (en) | Navigation positioning method and device, electronic equipment and storage medium | |
CN110412633B (en) | Positioning method, positioning device, computer equipment and storage medium | |
JP2008008691A (en) | Tracking processing apparatus, and method and program therefor | |
CN113987803A (en) | Frequency control method, device, equipment and storage medium based on model correction | |
CN110907977B (en) | Information processing method, device and computer storage medium | |
CN111610540A (en) | Self-adaptive unscented Kalman filter carrier tracking loop and method for resisting ionosphere flicker | |
CN114501615A (en) | Terminal positioning method, device, computer equipment, storage medium and program product | |
Guo et al. | A novel EM implementation for initial alignment of SINS based on particle filter and particle swarm optimization | |
CN111487659B (en) | State recognition method and device, computer equipment and storage medium | |
CN111551234A (en) | Water level measuring method and device, computer equipment and storage medium | |
CN115079213B (en) | Space-time controllable navigation spoofing signal generation method, device and equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |