CN111490843A - Time checking method and device, computer equipment and storage medium - Google Patents

Time checking method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN111490843A
CN111490843A CN202010260343.7A CN202010260343A CN111490843A CN 111490843 A CN111490843 A CN 111490843A CN 202010260343 A CN202010260343 A CN 202010260343A CN 111490843 A CN111490843 A CN 111490843A
Authority
CN
China
Prior art keywords
time
value
client
preset
local
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.)
Granted
Application number
CN202010260343.7A
Other languages
Chinese (zh)
Other versions
CN111490843B (en
Inventor
赵趁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202010260343.7A priority Critical patent/CN111490843B/en
Publication of CN111490843A publication Critical patent/CN111490843A/en
Application granted granted Critical
Publication of CN111490843B publication Critical patent/CN111490843B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0638Clock or time synchronisation among nodes; Internode synchronisation
    • H04J3/0658Clock or time synchronisation among packet nodes
    • H04J3/0661Clock or time synchronisation among packet nodes using timestamps
    • H04J3/0667Bidirectional timestamps, e.g. NTP or PTP for compensation of clock drift and for compensation of propagation delays
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)

Abstract

The application relates to a time checking method, a time checking device, computer equipment and a storage medium. The method comprises the following steps: acquiring a plurality of client time points in a preset time period; acquiring local time points corresponding to the time points of the clients respectively; acquiring time difference values between each client time point and the corresponding local time point; determining a difference characteristic value between local time and corresponding world standard time in the preset time period according to each time difference value; and checking the local time according to the difference characteristic value. By adopting the method, the local time of the time synchronization server can be verified in a closed network environment.

Description

Time checking method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a time checking method and apparatus, a computer device, and a storage medium.
Background
With the development of computer technology, clocks are widely used in time synchronization of server clusters. It is important to keep the Time of each server in the server cluster consistent with the UTC (Coordinated Universal Time). The inconsistency of the server clock in the server cluster or the too large difference of the UTC time may cause the server cluster to fail or cause the security certificate to fail, thereby seriously affecting the service.
In the conventional technology, a time synchronization server (Network time protocol) is usually set in a server cluster, and the time synchronization server can obtain UTC time through the internet to check local time, so that an accurate time source can be provided to perform time synchronization on each server in the server cluster.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a time verification method, apparatus, computer device and storage medium capable of verifying a local time of a time synchronization server in a closed network environment.
A method of time checking, the method comprising:
acquiring a plurality of client time points in a preset time period;
acquiring local time points corresponding to the time points of the clients respectively;
acquiring time difference values between each client time point and the corresponding local time point;
determining a difference characteristic value between local time and corresponding world standard time in the preset time period according to each time difference value;
and checking the local time according to the difference characteristic value.
A time verification apparatus, the apparatus comprising:
the first time acquisition module is used for acquiring a plurality of client time points in a preset time period;
the second time acquisition module is used for acquiring local time points corresponding to the client time points;
the time difference value acquisition module is used for acquiring time difference values between the client time points and the local time points corresponding to the client time points;
the difference characteristic value acquisition module is used for determining a difference characteristic value between local time and corresponding world standard time in the preset time period according to each time difference value;
and the checking module is used for checking the local time according to the difference characteristic value.
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 a plurality of client time points in a preset time period;
acquiring local time points corresponding to the time points of the clients respectively;
acquiring time difference values between each client time point and the corresponding local time point;
determining a difference characteristic value between local time and corresponding world standard time in the preset time period according to each time difference value;
and checking the local time according to the difference characteristic value.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
acquiring a plurality of client time points in a preset time period;
acquiring local time points corresponding to the time points of the clients respectively;
acquiring time difference values between each client time point and the corresponding local time point;
determining a difference characteristic value between local time and corresponding world standard time in the preset time period according to each time difference value;
and checking the local time according to the difference characteristic value.
The time checking method, the device, the computer equipment and the storage medium have the advantages that by acquiring a plurality of client time points in a preset time period, and local time points corresponding to the client time points respectively, and further acquiring time difference values between the client time points and the local time points corresponding to the client time points respectively, determining a difference characteristic value between local time and corresponding world standard time in the preset time period according to each time difference value, finally checking the local time according to the difference characteristic value, since the time difference values between a plurality of client time points and corresponding local time points can be approximately fitted to the difference values between the time standard time and the local time, therefore, the problem of time inconsistency between the time synchronization server and the world standard time can be found in time, and the local time of the time synchronization server can be verified in a closed network environment.
Drawings
FIG. 1 is a diagram of an exemplary implementation of a time check method;
FIG. 2 is a flow diagram illustrating a method for time verification in one embodiment;
FIG. 3 is a schematic flow chart illustrating obtaining a plurality of client time points within a predetermined time period according to an embodiment;
FIG. 4 is a diagram illustrating a timeline for a client access event, according to one embodiment;
FIG. 5 is a schematic flow chart illustrating a process for obtaining a plurality of client time points within a predetermined time period according to another embodiment;
FIG. 6 is a schematic flow chart illustrating the determination of a variance feature value in one embodiment;
FIG. 7 is a diagram showing an application environment of the time verification method in another embodiment;
FIG. 8 is a block diagram showing the structure of a time checking apparatus according to an embodiment;
FIG. 9 is a block diagram showing the construction of a time checking apparatus according to another embodiment;
FIG. 10 is a diagram showing 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 verification method provided by the application can be applied to the application environment shown in fig. 1. The time synchronization server 102A is deployed in a server cluster 102 in a closed network environment, servers in the server cluster cannot directly communicate with the outside through the internet, and the time synchronization server 102A is used for providing a standard time source and performing time synchronization on a service server 102B in the server cluster. The server cluster 102 may communicate with a plurality of terminals, for example, the terminal 104A and the terminal 104B, through a network, and each terminal is installed with a client corresponding to the service server. The terminal 102 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices, and the time synchronization server 102A and the service server 102B may be implemented by independent servers or multiple servers.
The time synchronization server acquires a plurality of client time points in a preset time period and local time points corresponding to the client time points respectively, acquires time difference values between the client time points and the local time points corresponding to the client time points respectively, determines a difference characteristic value between local time and current world standard time according to the time difference values, and verifies the local time according to the difference characteristic value, so that the accuracy of a time source is verified under a closed network environment.
In one embodiment, a server cluster of the present application may be a Cloud server cluster, and the Cloud server cluster is a Cloud technology-based server cluster, which may be a generic term of Network technology, information technology, integration technology, management platform technology, application technology, etc. applied based on a Cloud Computing (Cloud Computing) business model, and may constitute a resource pool, and may be used as needed, and may be flexibly and conveniently.
With the development of diversification of internet, real-time data stream and connecting equipment and the promotion of demands of search service, social network, mobile commerce, open collaboration and the like, cloud computing is rapidly developed. Different from the prior parallel distributed computing, the generation of cloud computing can promote the revolutionary change of the whole internet mode and the enterprise management mode in concept.
In an embodiment, as shown in fig. 2, a time checking method is provided, which is described by taking the method as an example applied to the terminal in fig. 1, and includes the following steps:
step 202, obtaining a plurality of client time points in a preset time period.
The preset time period refers to a preset fixed time interval, and the preset time period can be set according to actual needs, for example, the preset time period can be set to be 1 minute, half an hour, and the like. The preset time period is based on the time of the time synchronization server, for example, the preset time period is 1 minute, and one preset time period may be, for example, 8:10:00 to 8:11:00 of the time synchronization server. The client time point refers to a specific time point of a terminal where the client is located, for example, 8:10:15, 13:20:10, and the like.
In this embodiment, the time synchronization server obtains a plurality of client time points in each preset time period, and obtains a large number of client time points in the preset time period, so as to verify the local time according to the client time points.
For example, when the preset time period is 1 minute, the time synchronization server may obtain the client time points of the plurality of clients during the local time of the time synchronization server from 8:10:00 to 8:11: 00.
It can be understood that, for each client, the client time point of the client may be obtained multiple times within the preset time period, so as to obtain multiple different client time points of the client.
It can be further understood that the shorter the preset time period is, the higher the frequency of checking the local time by the time synchronization server is, and the higher the time accuracy of the time synchronization server is.
In one embodiment, the units of the time points of the present application may be seconds. In another embodiment, the units of the time points of the present application may be milliseconds.
In an embodiment, the time synchronization server may obtain a local time point of the client when the client accesses the service server within a preset time period, to obtain a client time point.
In another embodiment, the time synchronization server may obtain a local time point acquired by a terminal where the client is located by calling a time interface provided by the local operating system within a preset time period, so as to obtain the client time point.
Step 204, local time points corresponding to the time points of the clients are obtained.
The local time point refers to a specific time point of the time synchronization server within a preset time period, for example, a preset time period is 8:10:00-8:11:00, and the local time point may be 8:10: 12. The local time point corresponding to the client time point refers to a local time point when the time synchronization server acquires the client time point.
Specifically, when acquiring each client time point, the time synchronization server records the local time point at this time, acquires the local time point corresponding to each client time point, and records the correspondence between each client time point and the local time point corresponding thereto.
In one embodiment, after obtaining the local time point t2 corresponding to each client time point t1, the time synchronization server may store the correspondence between the client time point and its corresponding local time point in a binary array manner (t1, tn). For example, if the client time point is 8:10:10, and the local time point corresponding to the client time point is 8:10:12, the correspondence between the client time point and the local time point corresponding to the client time point may be saved as (8:10:10, 8:10: 12).
In step 206, the time difference value between each client time point and the corresponding local time point is obtained.
The time difference value is used for representing the difference between the client time point and the corresponding local time point, the larger the absolute value of the time difference value is, the larger the difference between the client time point and the corresponding local time point is, and the smaller the absolute value of the time difference value is, the smaller the difference between the client time point and the corresponding local time point is.
In this embodiment, after obtaining the plurality of client time points and the local time points corresponding to the client time points, the time synchronization server may calculate a difference between the client time points and the local time points corresponding to the client time points, so as to obtain a time difference value between the client time points and the local time points corresponding to the client time points.
In one embodiment, the time synchronization server may calculate a difference between each client time point and a corresponding local time point to obtain a time difference value, as shown in the following formula (1), where t issAs a value of time difference, t1As a client time point, t2For the local time point:
ts=t1-t2(1)
in another embodiment, the time synchronization server may calculate a difference between each local time point and each corresponding client time point to obtain a time difference value between the client time point and each corresponding local time point, as shown in the following formula (2), where t issWhen isValue of difference between t1As a client time point, t2For the local time point:
ts=t2-t1(2)
and 208, determining a difference characteristic value between the local time and the corresponding world standard time in a preset time period according to each time difference value.
The local time generally refers to the time of the time synchronization server within a preset time period, and may refer to any local time point of the time synchronizer within the preset time period. The current universal time generally refers to the current universal time within a preset time period, which may refer to any one universal time point within the preset time period. The difference characteristic value is used for representing the difference between the local time point of the time synchronization server and the corresponding world standard time point in a preset time period, and the larger the absolute value of the difference characteristic value is, the larger the difference between the local time point of the time synchronization server and the corresponding world standard time point is, the more inaccurate the time of the time synchronization server is; conversely, the smaller the absolute value of the difference feature value is, the smaller the difference between the local time point of the time synchronization server and the corresponding world standard time point is, and the more accurate the time of the time synchronization server is.
In particular, the local time of the client may be synchronized with the world standard time via the internet. In general, the local time of a single client is not completely consistent with the corresponding world standard time, but statistically, the difference between the local time of a large number of clients and the world standard time is normally distributed, so that the time difference between the world standard time and the time synchronization server can be approximately fitted by using the time difference between the time points of a plurality of clients and the local time points of the corresponding time synchronization server, so that the problem of time inconsistency between the time synchronization server and the world standard time can be found.
In one embodiment, when determining the difference characteristic value between the local time and the corresponding world standard time in the preset time period according to each time difference value, the time synchronization server may calculate an arithmetic mean of all the time difference values, and use the calculated arithmetic mean as the difference characteristic value between the local time and the corresponding world standard time in the preset time period.
And step 210, checking the local time according to the difference characteristic value.
Specifically, since the difference characteristic value may be used to represent a difference between the local time of the time synchronization server and the corresponding world standard time within the preset time period, the time synchronization server may check the accuracy of the local time of the time synchronization server according to the difference characteristic value, and find a problem of time inconsistency between the local time of the time synchronization server and the world standard time.
In one embodiment, the time synchronization server may compare the absolute value of the difference feature value with a preset threshold, and when the absolute value of the difference feature value exceeds the preset threshold, determine that the local time of the time synchronization server is inconsistent with the world standard time; and otherwise, when the absolute value of the difference characteristic value does not exceed the preset threshold value, judging that the local time of the time synchronization server is inconsistent with the world standard time.
In another embodiment, a monitoring server may be set in the server cluster where the time synchronization server is located, and after the time synchronization server obtains the difference characteristic value, a verification instruction may be generated according to the difference characteristic value to instruct the monitoring server to verify the local time of the time synchronization server according to the difference characteristic value.
The time checking method comprises the steps of obtaining a plurality of client time points in a preset time period and local time points corresponding to the client time points, and further obtain the time difference value between each client time point and the corresponding local time point, determining the difference characteristic value between the local time and the corresponding world standard time in the preset time period according to each time difference value, finally checking the local time according to the difference characteristic value, since the time difference values between a plurality of client time points and corresponding local time points can be approximately fitted to the difference values between the time standard time and the local time, therefore, the problem of time inconsistency between the time synchronization server and the world standard time can be found in time, and the local time of the time synchronization server can be verified in a closed network environment.
In an embodiment, as shown in fig. 3, acquiring a plurality of client time points within a preset time period specifically includes the following steps 302 to 304:
step 302, receiving a first data packet sent by a gateway within a preset time period; the first data packet carries a first timestamp; the first timestamp is obtained by acquiring the local time of the client through a first preset time acquisition program in a browser page corresponding to the service server when the client accesses the service server corresponding to the time synchronization server.
And step 304, extracting a first timestamp from the first data packet, and taking the extracted first timestamp as a client time point in a preset time period.
The first data packet refers to a message sent by a client when the client accesses a service server corresponding to the time synchronization server. The service server corresponding to the time synchronization server refers to a service server in a server cluster where the time synchronization server is located, and the service server is used for providing various service services for the client. And the business server indicated by the browser page corresponding to the business server provides a webpage for the client to access the service. The first preset time acquisition program refers to a code which is embedded in a browser page corresponding to the service server in advance and is used for acquiring time.
It can be understood that the service server and the client are usually in different networks, and therefore a gateway is usually required to be set between the client and the service server, and when the client accesses the service server, a packet of the client is first sent to the gateway, and the gateway forwards the packet to the corresponding service server.
In the embodiment of the present application, since the first time acquisition program is embedded in the browser page corresponding to the service server in advance, when the client accesses the service server through the browser page corresponding to the service server, the first time acquisition program can acquire the local time point of the terminal where the client is positioned at the moment, and embed the acquired local time point into the timestamp field in the message, so that the message sent by the client to the gateway carries the local time point of the client, since the time synchronization server needs to acquire the local time point of the client, when the gateway sends the client message to the service server, the client message can be sent to the time synchronization server at the same time, and after receiving the client message, and analyzing the client message, and extracting the timestamp in the client message, so as to obtain the client time point in a preset time period.
It can be understood that a large number of clients usually access the service server within a preset time period, and each client may also access the service server multiple times within the preset time period, each access of the client may be regarded as a client access event, so that a large number of client access events may exist within the preset time period, each time when a client access event occurs, the first preset acquisition program acquires a local time point of the client at that time, and the time synchronization server acquires a large number of client time points.
As shown in fig. 4, which is a schematic diagram of a time axis corresponding to the client access event in one embodiment, where the horizontal axis is the time axis, each small circle on the diagram is a client access event, because the time axis extends to the right infinitely, it means that the client access event is also infinite.
In the above embodiment, the first time stamp is extracted from the first data packet by receiving the first data packet sent by the gateway within the preset time period to obtain the time point of the client, and the first time stamp is obtained by acquiring the local time of the client by embedding the first preset time acquisition program in the browser page corresponding to the service server, so that the time point of the client can be accurately obtained.
In an embodiment, as shown in fig. 5, acquiring a plurality of client time points within a preset time period specifically includes the following steps 502 to 504:
step 502, receiving a second data packet sent by the gateway within a preset time period; the second data packet carries a second timestamp; and the second timestamp is acquired by calling a time interface provided by the local operating system through a second preset time acquisition program by the terminal where the client is located.
Step 504, extracting a second timestamp from the second data packet, and using the extracted second timestamp as a client time point in a preset time period.
And the terminal where the client side is located of the second data packet sends the data packet at the local time point to the time synchronization server.
Specifically, a second preset time acquisition program can be installed at the terminal where the client is located, in each preset time period, the second preset time acquisition program can acquire the local time point of the terminal by calling a time interface provided by a local operating system, and encapsulate the local time point into a second data packet and send the second data packet to the gateway, the gateway sends the second data packet to the time synchronization server, and the time synchronization server analyzes the data packet, extracts a timestamp field therein, and obtains the client time point of the client in the preset time period.
In an embodiment, in each preset time period, the second preset time acquisition program may acquire the local time point of the terminal at preset time intervals, and each time the local time point is acquired, encapsulate the local time point to obtain a second data packet, and send the second data packet to the gateway. The preset time interval may be set according to actual needs, for example, when the preset time period is set to 1 minute, the preset time interval may be set to 5 seconds.
It can be understood that, for the time interface provided by the local operating system, the operating systems implemented by different programming languages have different time interfaces, and for example, javascript may be used to collect the local time point of the client using Date (). getTime () interface.
In this embodiment, the timestamp is extracted from the second data packet by receiving the second data packet sent by the gateway within the preset time period, so as to obtain the time point of the client within the preset time period, and since the second timestamp is acquired by the terminal where the client is located calling the time interface provided by the local operating system through the second preset time acquisition program, a large amount of accurate time points of the client can be obtained.
In one embodiment, the determining the difference characteristic value between the local time and the corresponding world standard time in the preset time period according to each time difference value includes: calculating a corresponding average value according to each time difference value; and taking the calculated average value as a difference characteristic value between the local time and the corresponding world standard time in a preset time period.
Since the difference between the local time of the plurality of clients and the universal time is normally distributed, that is, the arithmetic mean of the time points of the plurality of clients is equal to the corresponding universal time point, therefore, it is easy to know that the arithmetic mean of the differences between a plurality of client time points and the local time points of the corresponding time synchronization servers is equal to the difference between the universal standard time and the time synchronization server time, so that when the time synchronization server determines the difference characteristic value between the local time and the corresponding universal standard time in the preset time period according to each time difference value, after the time difference value between each client time point and each corresponding local time point, and calculating the arithmetic mean value of all time difference values, and taking the calculated arithmetic mean value as the difference characteristic value between the local time of the time synchronization server and the corresponding world standard time in a preset time period.
Specifically, if the time synchronization server obtains N time difference values between each client time point and the corresponding local time point, which are ts1, ts2, ts3, … …, and tsN, the corresponding average value T can be calculated according to the following formula (3):
T=(ts1+ts2+ts3+……+tsN)/N (3)
in an embodiment, as shown in fig. 6, determining the difference characteristic value between the local time and the corresponding world standard time in the preset time period according to each time difference value specifically includes the following steps 602 to 608:
step 602, obtaining a maximum value of the first preset proportion and a minimum value of the second preset proportion from each time difference value.
Step 604, filtering the obtained maximum value and the obtained minimum value, and determining the time difference value obtained after filtering as a target difference value.
And 606, calculating a corresponding average value according to the target difference value.
And 608, taking the calculated average value as a difference characteristic value between the local time and the corresponding world standard time in a preset time period.
It can be understood that, under some circumstances, for example, a network of the client is abnormal for a long time, a machine of the client fails, and a local time of some clients may deviate from the world standard time greatly, and the local time of the client deviates from the world standard time greatly specifically includes two situations, one is that the local time of the client lags behind the world standard time greatly, and the other is that the local time of the client leads ahead of the world standard time greatly, and the local times of the clients are all abnormal values and cannot reflect the overall state of the local time of the client. In order to avoid that the local time of the clients affects the calculation result, in this embodiment of the application, the time synchronization server may obtain the first preset proportion and the second preset proportion, obtain a maximum value of the first preset proportion and a minimum value of the second preset proportion from each time difference value, filter the obtained maximum value and minimum value, and determine the filtered time difference value as the target difference value.
The first preset proportion refers to a preset first proportion; the second preset ratio refers to a second ratio that is set in advance. The first predetermined ratio and the second predetermined ratio may be the same or different. The first preset proportion and the second preset proportion can be set and adjusted according to experience and actual needs. It will be appreciated that the first predetermined ratio and the second predetermined ratio are typically a relatively small ratio. In a specific embodiment, the first predetermined proportion may be 5%, and the first predetermined proportion may be 5%.
In the above embodiment, because the maximum value and the minimum value in the time difference values are filtered in the preset proportion, the condition that the calculation of the difference characteristic values is inaccurate under the condition that the local time of the client is abnormal can be avoided, and the accuracy of time verification is improved.
In one embodiment, the step 210 of checking the local time according to the difference feature value specifically includes: generating a checking instruction according to the difference characteristic value; sending a check instruction to the monitoring server, wherein the check instruction is used for instructing the monitoring server to compare the absolute value of the difference characteristic value with a preset threshold value, and when the absolute value of the difference characteristic value exceeds the preset threshold value, obtaining a first check result, and when the absolute value of the difference characteristic value does not exceed the preset threshold value, obtaining a second check result; the first check result is used for representing that the local time is inconsistent with the current world standard time; and the second check result is used for representing that the local time is consistent with the current world standard time.
Specifically, a monitoring server may be set in a server cluster where the time synchronization server is located, when the time synchronization server verifies local time, the time synchronization server may generate a verification instruction according to the calculated difference characteristic value, the generated verification instruction carries the difference characteristic value, the time synchronization server further sends the verification instruction to the monitoring server, after receiving the verification instruction, the monitoring server parses the verification instruction to obtain the difference characteristic value carried therein, the difference characteristic value may be a positive value or a negative value, the absolute value of the difference characteristic value may be taken, the absolute value of the difference characteristic value is compared with a preset threshold, if the absolute value of the difference characteristic value exceeds the preset threshold, the monitoring server obtains a first verification result, otherwise, if the absolute value of the difference characteristic value does not exceed the preset threshold, the monitoring server obtains a second check result. The first check result is used for representing that the local time corresponding to the time synchronization server is inconsistent with the current world standard time, and the second check result is used for representing that the local time corresponding to the time synchronization server is consistent with the current world standard time.
It can be understood that the preset threshold may be set and adjusted according to the service requirement, and the smaller the preset threshold is, the higher the precision of the time synchronization server in checking is.
In one embodiment, the first and second verification results may be represented by different numbers, for example, the first verification result may be represented by "0" and the second verification result may be represented by "1".
In the embodiment, the verification instruction is generated and sent to the monitoring server to verify the local time of the time synchronization server, so that the pressure of the time synchronization server can be reduced, and the time verification efficiency can be improved.
In an embodiment, the verification instruction is further used for instructing the monitoring server to generate alarm information when the first verification result is obtained, and sending the alarm information to the preset terminal.
The preset terminal refers to a terminal corresponding to operation and maintenance personnel. The predetermined terminal may be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices.
Specifically, the monitoring server may be bound with the preset terminal in advance, when the monitoring server compares the absolute value of the difference characteristic value with the preset threshold, if the absolute value of the difference characteristic value exceeds the preset threshold, a first check result is obtained, the local time corresponding to the synchronization server at this time is inconsistent with the current world standard time, in order to ensure that the service server can provide normal service, the monitoring server may generate alarm information, send the alarm information to the preset terminal bound in advance, and the preset terminal performs an alarm prompt after receiving the alarm information, so that the operation and maintenance staff can process the alarm in time.
In one embodiment, the preset terminal may perform the warning prompt in one or more of a voice prompt, a text prompt, a vibration prompt, and an indicator light flashing prompt.
In one embodiment, the monitoring server may send the warning information to the preset terminal in the form of a short message, a mail, or the like.
In the above embodiment, the time synchronization server sends the check instruction to the monitoring server to instruct the monitoring server to send the warning information to the preset terminal when the monitoring server obtains the first check result, so that operation and maintenance personnel can process the warning information in time, and the time accuracy of the time synchronization server is ensured.
In one embodiment, the time checking method further includes: receiving a time inquiry data packet sent by a service server; acquiring a current local time point according to a time query data packet, and generating a time response data packet according to the acquired current local time; sending the time response data packet to a service server; the time inquiry data packet and the time response data packet are data packets based on a network time protocol.
The time inquiry data packet and the time response data packet are data packets based on a network time protocol. Network Time Protocol (NTP) is a Protocol used to synchronize the Time of a computer, which enables the computer to synchronize its servers or clock sources (e.g., quartz clock, GPS, etc.), and which provides highly accurate Time correction. The NTP packet is transmitted based on a UDP (User Datagram Protocol) packet, and the number of the UDP port used is 123.
Specifically, in this embodiment, the time synchronization server is an NTP server, the service server may be equipped with a corresponding NTP client, the NTP client may generate a time query data packet and send the time query data packet to the NTP server every preset time interval, for example, 10 minutes, the NTP server obtains a current local time point after receiving the time query data packet, generates a time response data packet by encapsulation according to the obtained current local time, returns the generated time response data packet to the NTP client, and the NTP client adjusts the current local time point according to a time point in the time response data packet.
In one embodiment, when the NTP client sends the time query data packet, the time query data packet may be encrypted by using a preconfigured key, so that when the NTP server receives the time query data packet, the NTP server may decrypt the time query data packet according to the preconfigured key, obtain a current local time point according to the time query data packet if decryption is successful, generate a time response data packet according to the obtained current local time point, and return the time response data packet to the NTP client, and if decryption is failed, discard the received query data packet, so as to prevent inaccurate time synchronization caused by malicious protocol attack.
In one embodiment, since a certain time is required for transmitting a data packet between an NTP client and an NTP server, if the NTP client directly adjusts the current local time according to the time point in a time response data packet returned by the NTP server, the adjusted time is not completely synchronized with the NTP server actually, and in order to further ensure the accuracy of the time, when the NTP client adjusts the current local time according to the time point in the time response data packet, the network delay generated by the transmission of the data packet may be calculated first, the time point in the time response data packet is added to half of the network delay to obtain the current accurate time point of the NTP server, and the current local time point is adjusted according to the time point.
Specifically, assuming that the NTP client sends a time query packet at time t0, after a period of network delay transmission, the NTP server receives the time query packet at time t1, and after a period of time processing, returns a time response packet to the client at time t2, and after a period of network delay transmission, the NTP client receives the time response packet returned by the NTP server at time t3, the network delay Td may be calculated according to the following formula (4):
Td=(t3-t0)-(t2-t1) (4)
the local time point of the NTP client may be adjusted according to the time Tc, where the calculation formula of Tc is as the following formula (5):
Tc=t2+Td/2 (5)
in the above embodiment, the time synchronization server and the service server perform time synchronization through the data packet based on the network time protocol, so that the accuracy of time synchronization can be improved.
In a specific embodiment, a time check method is provided, which may be applied to the Application environment shown in fig. 7, and referring to fig. 7, the Application environment includes a browser 702, an API (Application programming interface) gateway 704, an NTP server 706, a monitoring server 708, and a short message/mail gateway 710, and the time check method specifically includes the following steps:
1. in each preset time period, when a plurality of clients access the service server through the browser, a first preset acquisition program in a browser page corresponding to the service server acquires a client time point t1 of the clients, and embeds t1 in a first data packet sent by the clients.
2. After receiving the first data packets, the API gateway sends the first data packets to the NTP server, and after receiving each first data packet, the NTP server obtains the client time point t1 therein, records the local time point t2 of the NTP server at the same time, and stores t1 and the corresponding t2 in a binary array form (t1, t 2).
3. The NTP server differences each binary array: and t1-t2, and obtaining the time difference value between each client time point and the corresponding local time point.
4. The NTP server obtains a maximum value of a first preset proportion and a minimum value of a second preset proportion from the time difference values, filters the obtained maximum value and the obtained minimum value, and determines the time difference value obtained after filtering as a target difference value.
5. The NTP server calculates the arithmetic mean value of the target time difference values, and the calculated arithmetic mean value is used as a difference characteristic value between the local time of the time synchronization server and the corresponding world standard time in the preset time period.
5. And the NTP server reports the difference characteristic value to the monitoring server, and the monitoring server compares the absolute value of the difference characteristic value with a preset threshold value.
6. And when the absolute value of the difference characteristic value exceeds a preset threshold value, the monitoring server sends alarm information to a preset terminal through the short message/mail gateway.
In the above embodiment, the client time points of a large number of clients are accurately obtained through the first preset time acquisition program in the browser page, the local time points corresponding to the client time points are obtained, the time difference values between the client time points and the local time points are calculated, the time of the time synchronization server is checked by taking the arithmetic mean of the time difference values as the difference characteristic value between the time synchronization server and the world standard time, and since the normal distribution is fitted to the difference values between the client time points of the large number of clients and the world standard time, the difference values between the world standard time and the time synchronization server time can be approximately fitted through the arithmetic mean of the difference values between the client time points and the local time points, thereby realizing the check of the local time of the time synchronization server in a closed network environment, when the time of the world standard time is not consistent with the time of the time synchronization server through verification, the alarm information is sent so that operation and maintenance personnel can process the alarm information in time, and the time accuracy of the time synchronization server can be guaranteed to the maximum extent.
It should be understood that, although the steps in the flowcharts of fig. 2-3 and 5-6 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 some of the steps in fig. 2-3 and fig. 5-6 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed alternately or in alternation with other steps or at least some of the other steps.
In one embodiment, as shown in fig. 8, there is provided a time checking apparatus, which may be a part of a computer device using a software module or a hardware module, or a combination of the two modules, and specifically includes: a first time obtaining module 802, a second time obtaining module 804, a time difference value obtaining module 806, a difference characteristic value obtaining module 808, and a checking module 810, wherein:
a first time obtaining module 802, configured to obtain a plurality of client time points within a preset time period;
a second time obtaining module 804, configured to obtain local time points corresponding to the time points of the clients respectively;
a time difference value obtaining module 806, configured to obtain a time difference value between each client time point and each corresponding local time point;
a difference characteristic value obtaining module 808, configured to determine, according to each time difference value, a difference characteristic value between the local time and the corresponding world standard time within a preset time period;
and the checking module 810 is configured to check the local time according to the difference feature value.
The time checking device obtains a plurality of client time points in a preset time period and local time points corresponding to the client time points respectively, and further obtain the time difference value between each client time point and the corresponding local time point, determining the difference characteristic value between the local time and the corresponding world standard time in the preset time period according to each time difference value, finally checking the local time according to the difference characteristic value, since the time difference values between a plurality of client time points and corresponding local time points can be approximately fitted to the difference values between the time standard time and the local time, therefore, the problem of time inconsistency between the time synchronization server and the world standard time can be found in time, and the local time of the time synchronization server can be verified in a closed network environment.
In one embodiment, as shown in fig. 9, the first time acquisition module 802 includes:
the receiving module 802A receives a first data packet sent by a gateway within a preset time period; the first data packet carries a first timestamp; the first timestamp is obtained by acquiring the local time of the client through a first preset time acquisition program in a browser page corresponding to the service server when the client accesses the service server corresponding to the time synchronization server;
the extracting module 802B is configured to extract a first timestamp from the first data packet, and use the extracted first timestamp as a client time point in a preset time period.
In an embodiment, the first time obtaining module 802 is further configured to receive a second data packet sent by the gateway within a preset time period; the second data packet carries a second timestamp; the second timestamp is acquired by calling a time interface provided by a local operating system through a second preset time acquisition program by the terminal where the client is located; and extracting a second timestamp from the second data packet, and using the extracted second timestamp as a client time point in a preset time period.
In one embodiment, as shown in fig. 9, the time difference value obtaining module 806 includes:
an average value calculating module 806A, configured to calculate a corresponding average value according to each time difference value;
and a time difference value determining module 806B, configured to use the calculated average value as a difference characteristic value between the local time and the corresponding world standard time in a preset time period.
In one embodiment, as shown in FIG. 9, the average calculation module 806A includes:
an abnormal value obtaining module 806a1, configured to obtain a maximum value of the first preset ratio and a minimum value of the second preset ratio from each time difference value;
a filtering module 806a2, configured to filter the obtained maximum value and minimum value, and determine a time difference value obtained after filtering as a target difference value;
the calculating module 806a3 is configured to calculate a corresponding average value according to the target difference value.
In one embodiment, the verification module 810 is further configured to generate a verification instruction according to the difference characteristic value; sending a check instruction to the monitoring server, wherein the check instruction is used for instructing the monitoring server to compare the absolute value of the difference characteristic value with a preset threshold value, and when the absolute value of the difference characteristic value exceeds the preset threshold value, obtaining a first check result, and when the absolute value of the difference characteristic value does not exceed the preset threshold value, obtaining a second check result; the first check result is used for representing that the local time is inconsistent with the current world standard time; and the second check result is used for representing that the local time is consistent with the current world standard time.
In an embodiment, the verification instruction is further used for instructing the monitoring server to generate alarm information when the first verification result is obtained, and sending the alarm information to the preset terminal.
In one embodiment, the above apparatus further comprises: the time synchronization module is used for receiving a time inquiry data packet sent by the service server; acquiring a current local time point according to a time query data packet, and generating a time response data packet according to the acquired current local time; sending the time response data packet to a service server; the time inquiry data packet and the time response data packet are data packets based on a network time protocol.
For the specific definition of the time checking device, reference may be made to the above definition of the time checking method, which is not described herein again. The modules in the time checking device can be wholly or partially realized by software, hardware and a combination thereof. 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 server, and its internal structure diagram may be as shown in fig. 10. The computer device includes a processor, a memory, and a network interface 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, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing time data, including client time points and local time points of the time synchronization server corresponding to the client time points. 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 method of time synchronization.
Those skilled in the art will appreciate that the architecture shown in fig. 10 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 one embodiment, a computer device is further provided, which includes a memory and a processor, the memory stores a computer program, and the processor implements the steps of the above method embodiments when executing the computer program.
In an embodiment, a computer-readable storage medium is provided, in which a computer program is stored which, 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 can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
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 (15)

1. A time checking method is applied to a time synchronization server, and comprises the following steps:
acquiring a plurality of client time points in a preset time period;
acquiring local time points corresponding to the time points of the clients respectively;
acquiring time difference values between each client time point and the corresponding local time point;
determining a difference characteristic value between local time and corresponding world standard time in the preset time period according to each time difference value;
and checking the local time according to the difference characteristic value.
2. The method of claim 1, wherein the obtaining the plurality of client time points within the preset time period comprises:
receiving a first data packet sent by a gateway within a preset time period; the first data packet carries a first timestamp;
the first timestamp is obtained by acquiring the local time of the client through a first preset time acquisition program in a browser page corresponding to the service server when the client accesses the service server corresponding to the time synchronization server;
and extracting the first timestamp from the first data packet, and taking the extracted first timestamp as a client time point in a preset time period.
3. The method of claim 1, wherein the obtaining the plurality of client time points within the preset time period comprises:
receiving a second data packet sent by the gateway within a preset time period; the second data packet carries a second timestamp; the second timestamp is acquired by calling a time interface provided by a local operating system through a second preset time acquisition program by the terminal where the client is located;
and extracting the second timestamp from the second data packet, and taking the extracted second timestamp as a client time point in a preset time period.
4. The method according to claim 1, wherein the determining the difference characteristic value between the local time and the corresponding world standard time in the preset time period according to each time difference value comprises:
calculating a corresponding average value according to each time difference value;
and taking the calculated average value as a difference characteristic value between the local time and the corresponding world standard time in the preset time period.
5. The method of claim 4, wherein said calculating a corresponding average value from each of said time-difference values comprises:
acquiring a maximum value of a first preset proportion and a minimum value of a second preset proportion from each time difference value;
filtering the obtained maximum value and the minimum value, and determining a time difference value obtained after filtering as a target difference value;
and calculating a corresponding average value according to the target difference value.
6. The method of claim 1, wherein the checking the local time according to the difference feature value comprises:
generating a checking instruction according to the difference characteristic value;
sending the check instruction to a monitoring server, wherein the check instruction is used for instructing the monitoring server to compare the absolute value of the difference characteristic value with a preset threshold value, and when the absolute value of the difference characteristic value exceeds the preset threshold value, obtaining a first check result, and when the absolute value of the difference characteristic value does not exceed the preset threshold value, obtaining a second check result;
the first check result is used for representing that the local time is inconsistent with the current world standard time;
and the second check result is used for representing that the local time is consistent with the current world standard time.
7. The method according to claim 6, wherein the verification instruction is further used for instructing the monitoring server to generate alarm information when the first verification result is obtained, and sending the alarm information to a preset terminal.
8. The method according to any one of claims 1 to 7, further comprising:
receiving a time inquiry data packet sent by a service server;
acquiring a current local time point according to the time query data packet, and generating a time response data packet according to the acquired current local time;
sending the time response data packet to the service server;
the time inquiry data packet and the time response data packet are data packets based on a network time protocol.
9. A time verification apparatus, the apparatus comprising:
the first time acquisition module is used for acquiring a plurality of client time points in a preset time period;
the second time acquisition module is used for acquiring local time points corresponding to the client time points;
the time difference value acquisition module is used for acquiring time difference values between the client time points and the local time points corresponding to the client time points;
the difference characteristic value acquisition module is used for determining a difference characteristic value between local time and corresponding world standard time in the preset time period according to each time difference value;
and the checking module is used for checking the local time according to the difference characteristic value.
10. The apparatus of claim 9, wherein the first time acquisition module comprises:
the receiving module is used for receiving a first data packet sent by the gateway within a preset time period; the first data packet carries a first timestamp; the first timestamp is obtained by acquiring the local time of the client through a first preset time acquisition program in a browser page corresponding to the service server when the client accesses the service server corresponding to the time synchronization server;
and the extracting module is used for extracting the first timestamp from the first data packet and taking the extracted first timestamp as a client time point in a preset time period.
11. The apparatus according to claim 9, wherein the first time obtaining module is further configured to receive a second data packet sent by the gateway within a preset time period; the second data packet carries a second timestamp; the second timestamp is acquired by calling a time interface provided by a local operating system through a second preset time acquisition program by the terminal where the client is located; and extracting the second timestamp from the second data packet, and taking the extracted second timestamp as a client time point in a preset time period.
12. The apparatus of claim 9, wherein the time difference value obtaining module comprises:
the average value calculating module is used for calculating a corresponding average value according to each time difference value;
and the time difference value determining module is used for taking the calculated average value as a difference characteristic value between the local time and the corresponding world standard time in the preset time period.
13. The apparatus of claim 12, wherein the mean computation module comprises:
an abnormal value obtaining module, configured to obtain a maximum value of the first preset proportion and a minimum value of the second preset proportion from each of the time difference values;
the filtering module is used for filtering the obtained maximum value and the minimum value and determining the time difference value obtained after filtering as a target difference value;
and the calculating module is used for calculating a corresponding average value according to the target difference value.
14. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any of claims 1 to 8.
15. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 8.
CN202010260343.7A 2020-04-03 2020-04-03 Time checking method and device, computer equipment and storage medium Active CN111490843B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010260343.7A CN111490843B (en) 2020-04-03 2020-04-03 Time checking method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010260343.7A CN111490843B (en) 2020-04-03 2020-04-03 Time checking method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111490843A true CN111490843A (en) 2020-08-04
CN111490843B CN111490843B (en) 2021-10-26

Family

ID=71812597

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010260343.7A Active CN111490843B (en) 2020-04-03 2020-04-03 Time checking method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111490843B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112732733A (en) * 2020-12-31 2021-04-30 中国工商银行股份有限公司 Data checking processing method and device
CN113783649A (en) * 2021-08-06 2021-12-10 深圳市科陆电子科技股份有限公司 Terminal timing method, system, electronic equipment and storage medium
CN114499734A (en) * 2022-02-25 2022-05-13 南京贝龙通信科技有限公司 Communication clock synchronization method, system and equipment based on PTP
CN115022959A (en) * 2022-08-04 2022-09-06 绵阳优森科技有限公司 Unified control and timing system and method in wireless communication and body measurement wearable device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101227246A (en) * 2008-01-28 2008-07-23 中兴通讯股份有限公司 Method and apparatus for master-salve clock synchronization
US20100086091A1 (en) * 2008-10-08 2010-04-08 Dae Geun Park Method and apparatus for synchronizing time of day of terminal in convergent network
US20150139069A1 (en) * 2009-08-25 2015-05-21 Electronics And Telecommunications Research Institute Station for data transmission/reception synchronization
CN104982080A (en) * 2013-02-12 2015-10-14 三星电子株式会社 Terminal apparatus and method for time synchronization
CN107360060A (en) * 2017-08-07 2017-11-17 瑞斯康达科技发展股份有限公司 A kind of time-delay measuring method and device
CN110677211A (en) * 2019-09-27 2020-01-10 宁波三星医疗电气股份有限公司 Time synchronization method and device and power acquisition terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101227246A (en) * 2008-01-28 2008-07-23 中兴通讯股份有限公司 Method and apparatus for master-salve clock synchronization
US20100086091A1 (en) * 2008-10-08 2010-04-08 Dae Geun Park Method and apparatus for synchronizing time of day of terminal in convergent network
US20150139069A1 (en) * 2009-08-25 2015-05-21 Electronics And Telecommunications Research Institute Station for data transmission/reception synchronization
CN104982080A (en) * 2013-02-12 2015-10-14 三星电子株式会社 Terminal apparatus and method for time synchronization
CN107360060A (en) * 2017-08-07 2017-11-17 瑞斯康达科技发展股份有限公司 A kind of time-delay measuring method and device
CN110677211A (en) * 2019-09-27 2020-01-10 宁波三星医疗电气股份有限公司 Time synchronization method and device and power acquisition terminal

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112732733A (en) * 2020-12-31 2021-04-30 中国工商银行股份有限公司 Data checking processing method and device
CN112732733B (en) * 2020-12-31 2024-02-09 中国工商银行股份有限公司 Data checking processing method and device
CN113783649A (en) * 2021-08-06 2021-12-10 深圳市科陆电子科技股份有限公司 Terminal timing method, system, electronic equipment and storage medium
CN113783649B (en) * 2021-08-06 2023-12-29 深圳市科陆电子科技股份有限公司 Terminal timing method, system, electronic equipment and storage medium
CN114499734A (en) * 2022-02-25 2022-05-13 南京贝龙通信科技有限公司 Communication clock synchronization method, system and equipment based on PTP
CN115022959A (en) * 2022-08-04 2022-09-06 绵阳优森科技有限公司 Unified control and timing system and method in wireless communication and body measurement wearable device

Also Published As

Publication number Publication date
CN111490843B (en) 2021-10-26

Similar Documents

Publication Publication Date Title
CN111490843B (en) Time checking method and device, computer equipment and storage medium
CN109413087B (en) Data sharing method and device, digital gateway and computer readable storage medium
US10671474B2 (en) Monitoring node usage in a distributed system
CN111949953B (en) Identity authentication method, system and device based on block chain and computer equipment
US10091228B2 (en) Secured event monitoring leveraging blockchain
US7702909B2 (en) Method and system for validating timestamps
US20220271960A1 (en) Blockchain-based data processing method, apparatus, device, and readable storage medium
US9419804B2 (en) Data authenticity assurance method, management computer, and storage medium
CN102739659B (en) Authentication method for preventing replay attack
US20140229738A1 (en) Timestamping system and timestamping program
CN105447046A (en) Distributed system data consistency processing method, device and system
CN109656574B (en) Transaction time delay measurement method and device, computer equipment and storage medium
CN110602455B (en) Video storage system, video processing method, device, equipment and storage medium
US20230327879A1 (en) System and method for maintaining usage records in a shared computing environment
CN107872440B (en) Identity authentication method, device and system
CN115239090A (en) Enterprise carbon efficiency evaluation method based on industrial internet identification analysis
CN111488372A (en) Data processing method, device and storage medium
CN110597541A (en) Interface updating processing method, device, equipment and storage medium based on block chain
CN111368172A (en) Sensor data processing method and device, computer equipment and storage medium
CN110737719A (en) Data synchronization method, device, equipment and computer readable storage medium
CN113806110A (en) Event-driven message processing method, device, equipment and storage medium
CN112713996A (en) Fault verification method based on block chain, server and terminal
CN113778709B (en) Interface calling method, device, server and storage medium
CN108882230B (en) Call record management method, device and system
CN112231408B (en) Data integration method and device, electronic equipment and storage medium

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
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40028351

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant