CN113098881A - Time synchronization device and method - Google Patents
Time synchronization device and method Download PDFInfo
- Publication number
- CN113098881A CN113098881A CN202110374816.0A CN202110374816A CN113098881A CN 113098881 A CN113098881 A CN 113098881A CN 202110374816 A CN202110374816 A CN 202110374816A CN 113098881 A CN113098881 A CN 113098881A
- Authority
- CN
- China
- Prior art keywords
- time
- time synchronization
- kernel driver
- software module
- timing
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/28—Timers or timing mechanisms used in protocols
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Electric Clocks (AREA)
- Synchronisation In Digital Transmission Systems (AREA)
Abstract
The invention provides a time synchronization device and a method, which relate to the technical field of communication and comprise the following steps: a target server and a client; the target server is provided with a first time synchronization software module based on a domestic Linux system, the first time synchronization software module comprises a time synchronization card and a first kernel driver, the client is provided with a second time synchronization software module based on the domestic Linux system, and the second time synchronization software module comprises a second kernel driver; the time reference card is used for acquiring a time reference signal from the target B code terminal and sending the time reference signal to the first kernel driver; the first kernel driver is used for timing the target server based on the time reference signal; and the second kernel driver is used for carrying out network timing on the client based on the time information after timing. The time synchronization device based on the domestic Linux system can keep the time synchronization between the target server and the client, and ensures the information safety.
Description
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a time synchronization apparatus and method.
Background
The time synchronization method in the prior art can only work by relying on imported equipment, so that the information safety can not be guaranteed. In addition, after research, no domestic related product for providing the time synchronization function is found in the market at present.
Disclosure of Invention
The invention aims to provide a time synchronization device and a time synchronization method, which are used for solving the technical problem that the time synchronization function is limited by imported equipment and the information safety cannot be guaranteed in the prior art.
In a first aspect, the present invention provides a time synchronization apparatus, including: a target server and a client connected through a target network; the target server is provided with a first time synchronization software module based on a domestic Linux system, the first time synchronization software module comprises a time synchronization card and a first kernel driver, the client is provided with a second time synchronization software module based on the domestic Linux system, and the second time synchronization software module comprises a second kernel driver; the time reference card is used for acquiring a time reference signal from a target B code terminal and sending the time reference signal to the first kernel driver; the first kernel driver is used for timing the target server based on the time reference signal and sending time information after timing of the target server to the second kernel driver; and the second kernel driver is used for carrying out network timing on the client based on the time information after timing.
Further, the time system card is also used for generating an interrupt pulse signal and sending the interrupt pulse signal to the first kernel driver; the first core driver is further configured to capture an interrupt event corresponding to the interrupt pulse signal.
Further, the first time synchronization software module further includes: the first background control unit and the first graphical management unit are both connected with the first kernel driver; the second time synchronization software module further comprises: and the second background control unit and the second graphical management unit are both connected with the second kernel driver.
Further, the target server is any one of a main server and a standby server.
Further, the target network includes an Ethernet network.
In a second aspect, the present invention provides a time synchronization method, where a first time synchronization software module applied in the time synchronization apparatus according to the first aspect includes: receiving a time reference signal acquired by a system card from a target B code terminal; and timing the target server based on the time reference signal, and sending the time information after the timing of the target server to a second kernel driver so as to enable the second kernel driver to perform network timing on the client based on the time information after the timing.
Further, the method further comprises: receiving a start-stop control instruction input by a user; and performing start-stop control on the first time synchronization software module based on the start-stop control instruction.
Further, the method further comprises: and displaying the time information to be synchronized before the time correction of the target server and the time information after the time correction.
In a third aspect, the present invention further provides an electronic device, including a memory and a processor, where the memory stores a computer program operable on the processor, and the processor executes the computer program to implement the method of the first aspect.
In a fourth aspect, the present invention also provides a computer readable medium having non-volatile program code executable by a processor, wherein the program code causes the processor to perform the method of the first aspect.
The invention provides a time synchronization device and a method, comprising the following steps: a target server and a client connected through a target network; the target server is provided with a first time synchronization software module based on a domestic Linux system, the first time synchronization software module comprises a time synchronization card and a first kernel driver, the client is provided with a second time synchronization software module based on the domestic Linux system, and the second time synchronization software module comprises a second kernel driver; the time reference card is used for acquiring a time reference signal from the target B code terminal and sending the time reference signal to the first kernel driver; the first kernel driver is used for timing the target server based on the time reference signal and sending time information after timing of the target server to the second kernel driver; and the second kernel driver is used for carrying out network timing on the client based on the time information after timing. The time synchronization device provided by the invention is characterized in that a first time synchronization software module based on a domestic Linux system is installed on a target server, and a second time synchronization software module based on the domestic Linux system is installed on a client. The time synchronization device based on the domestic Linux system can keep the time synchronization of the target server and the client, and ensures the information safety.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and drawings.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a schematic structural diagram of a time synchronization apparatus according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of another time synchronization apparatus according to an embodiment of the present invention;
FIG. 3 is a flowchart of the operation of the time synchronizer;
FIG. 4 is a schematic interface diagram of a target server;
FIG. 5 is a schematic diagram of a user interface of a client;
fig. 6 is a flowchart of a time synchronization method according to an embodiment of the present invention.
Icon:
1-a target network; 2-a target server; 3-a client; 10-a first time synchronization software module; 11-time system card; 12-a first kernel driver; 13-a first background control unit; 14-a first graphical management unit; 20-a second time synchronization software module; 21-a second kernel driver; 22-a second background control unit; 23-a second graphical management unit; 201-a primary server; 202-backup server.
Detailed Description
The technical solutions of the present invention will be described clearly and completely with reference to the following embodiments, and it should be understood that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The most common Time synchronization protocol in the current system is the network Time protocol, that is, the NTP (network Time protocol) protocol, which is used to perform Time synchronization between the NTP server and the NTP client. The protocol is realized based on a UDP unicast protocol, and the realization process is as follows: the NTP server periodically sends time synchronization data to the NTP client; after receiving the time synchronization information, the NTP client modifies the local time of the NTP client into the received NTP server time, and therefore time synchronization is completed.
Because the NTP protocol uses a point-to-point method to calibrate a plurality of nodes, when the number of NTP clients in the system is large, time synchronization of all nodes in the whole system needs to be completed, long time is needed, and the time synchronization efficiency is low.
If the time difference between the local time of the NTP client and the time of the NTP server exceeds the set time range, the NTP client considers that the time of the NTP server has a problem, and then synchronization is refused, so that the local time of the NTP client needs to be manually adjusted before the NTP client starts NTP timing, and the time difference between the NTP client and the time of the NTP server is guaranteed not to exceed a set threshold value. In addition, the time synchronization method in the prior art can only work by relying on imported equipment, so that the information safety cannot be guaranteed.
Accordingly, an object of the present invention is to provide a time synchronization apparatus and method, which can keep time synchronization between a target server and a client and ensure information security.
To facilitate understanding of the present embodiment, a detailed description is first given of a time synchronization apparatus disclosed in the present embodiment.
Example 1:
fig. 1 is a schematic structural diagram of a time synchronization apparatus according to an embodiment of the present invention. As shown in fig. 1, the time synchronization apparatus includes: a target server 2 and a client 3 (also called a terminal or an application server) connected through a target network 1. As shown in fig. 2, a first time synchronization software module 10 based on a domestic Linux system (or called domestic Linux operating system) is installed on the target server 2, the first time synchronization software module 10 includes a time system card 11 and a first kernel driver 12, a second time synchronization software module 20 based on the domestic Linux system is installed on the client 3, and the second time synchronization software module 20 includes a second kernel driver 21;
the time reference card 11 is configured to obtain a time reference signal from the target B code terminal, and send the time reference signal to the first kernel driver 12;
the first kernel driver 12 is configured to perform timing on the target server 2 based on the time reference signal, and send time information obtained after the timing of the target server 2 to the second kernel driver 21;
the second kernel driver 21 is configured to perform network timing on the client 3 based on the time information after timing.
The first time synchronization software module 10 and the second time synchronization software module 20 form a time synchronization software system, that is, the time synchronization software system is built by adopting a C/S architecture and is formed by the first time synchronization software module 10 on the target server 2 and the second time synchronization software module 20 on the client 3. The target network 1 includes an Ethernet network. It should be noted that the time system card 11 may be a PCI-E time system card, and the time synchronization accuracy of the time system card 11 may reach 2ms, and the time synchronization accuracy of the Ethernet network may reach 15ms, so the time synchronization accuracy of the embodiment of the present invention is high.
The embodiment of the invention can keep the time synchronization of the target server 2 and the client 3 by developing the first time synchronization software module 10 and the second time synchronization software module 20 based on the domestic Linux system, and ensures the information safety.
In an optional embodiment, the timing card 11 is further configured to generate an interrupt pulse signal (referred to as an interrupt signal, or interrupt information for short), and send the interrupt pulse signal to the first core driver 12; the first core driver 12 is also used to capture interrupt events corresponding to the interrupt pulse signal.
In an optional embodiment, as shown in fig. 2, the first time synchronization software module 10 further includes: a first background control unit 13 and a first graphical management unit 14 both connected to the first kernel driver 12; the second time synchronization software module 20 further comprises: a second background control unit 22 and a second graphical management unit 23, both connected to the second kernel driver 21.
In summary, as shown in fig. 2, the first time synchronization software module 10 includes four parts: a timing card 11, a first kernel DRIVER 12(DRIVER1, SERVER-DRIVER), a first background control unit 13(CTRL1, SERVER-CTRL) and a first graphics management unit 14(UI1, SERVER-CTRL); the second time synchronization software module 20 comprises three parts: a second kernel DRIVER 21(DRIVER2, CLIENT-DRIVER), a second background control unit 22(CTRL2, CLIENT-CTRL) and a second graphical management unit 23(UI2, CLIENT-UI). The embodiments of the present invention respectively describe the above parts in detail as follows:
as shown in fig. 3, for the first time synchronization software module 10, (1) the time reference card 11 is used to obtain a B-code DC time reference signal (i.e., the time reference signal) from a preset target B-code terminal, and the time reference signal is otherwise called a time reference. The timer card 11 may generate interrupt Pulse signals of 20Hz, 50Hz, 100Hz, and the like necessary for the target server 2 based on 1PPS (Pulse Per Second). The system card 11 supplies the time reference signal and the interrupt pulse signal to the first core driver 12 component of the target server 2 through the PCI-E interface at this time.
(2) The first kernel driver 12 is the core of the target server 2, and mainly completes local timing, network timing and interrupt event capture of the target server 2. The local timing may be understood as timing performed on the target server 2 by using a time reference signal, and the network timing may be understood as network timing performed on the client 3 by using time information obtained after timing by the target server 2, and the interrupt time may be understood as an interrupt event corresponding to the interrupt pulse signal. The first kernel driver 12 initializes the multicast data to establish a communication link according to the start parameter provided by the background control program of the target server 2, and is configured to send a real-time interrupt signal and periodic time synchronization data (i.e., time information after timing by the target server 2), and respond to a system time query command and an interrupt event query command sent by an application layer API call interface to provide a time synchronization and interrupt event query service to the outside (a third-party application program in fig. 3).
(3) The first background control unit 13 may execute a series of executable programs such as Tim Script, Show Time Source, watching Single Event, and the like, and is mainly used to implement the functions of start-stop control, Time-system Time query, Time-system card Time Source and B code state query, Single interrupt Event acquisition, and the like of the first Time synchronization software module 10. The time source of the time system card can be a target B code terminal, and the B code state comprises an effective state and an ineffective state, wherein the B code state is the effective state when the B code DC time reference signal is detected, and the B code state is the ineffective state otherwise.
The first background control unit 13 may send to the first kernel driver 12: time service control information, system time and interrupt information, date calibration enable information, interrupt event enable information, and the like.
(4) The first graphical management unit 14 may provide a time service function to the user in a graphical manner, where the time service function mainly includes functions of target server end system time display, time service time display, interrupt statistics (i.e., statistics of interrupt events within a period of time) information display, target server end local timing period setting, network timing period setting, zero point protection period setting, setting whether to perform timing immediately, emergency event generation, and the like. The embodiment of the invention can provide a plurality of (for example: 4) emergency events, and the content of the emergency event can be defined by the user according to the use condition.
The first graphical management unit 14 may send to the first kernel driver 12: the system comprises time system time and interrupt information, local timing cycle information, network timing cycle information, zero point protection cycle information, interrupt signal network transmission enabling information, immediate timing enabling information, emergency event enabling information and the like.
As shown in fig. 3, for the second time synchronization software module 20, (1) the second kernel driver 21 is the core of the client 3, and mainly completes local timing and interrupt event capture of the client 3. Similar to the function of the first time synchronization software module 10, the second kernel driver 21 initializes the multicast data connection communication link according to the start parameter provided by the background control program of the client 3, and is configured to receive the real-time interrupt signal and the periodic time synchronization data sent by the target server 2, and respond to the system time query and the interrupt event query command sent by the application layer API call interface of the client 3, so as to provide time synchronization and interrupt event query services to the outside (the third party application program in fig. 3).
(2) The second background control unit 22 has a function similar to that of the first background control unit 13, and can execute a series of executable programs such as Tim Script, Show Time Source, and watching Single Event, and is mainly used for implementing the functions of start-stop control, Time-system Time query, Time-system card Time Source state query, Single interrupt Event acquisition, and the like of the second Time synchronization software module 20.
The second background control unit 22 can obtain, under the operation of the second kernel driver 21: time service control information, system time and interrupt information, date calibration enable information, interrupt event enable information, and the like.
(3) The function of the second graphical management unit 23 is similar to that of the first graphical management unit 14, and the second graphical management unit 23 may provide a time service function to the user in a graphical manner, where the time service function mainly includes functions of displaying system time of the client 3, displaying system time, displaying interruption statistical information, displaying emergency statistical information, setting a local timing period of the client 3, setting a zero protection period, setting a multicast data receiving address, and the like. The purpose of setting the multicast data receiving address is as follows: the multicast address and the receiving port of the client 3 are ensured to be consistent with the multicast address and the sending port of the target server 2 respectively.
The second graphic management unit 23 can obtain, under the operation of the second kernel driver 21: the system time and interruption information, the emergency event statistical information, the local timing cycle information, the zero point protection cycle information and the multicast data receiving address information.
As shown in fig. 3, the system time information and the interrupt event information can be obtained by the third party application based on the first kernel driver 12; alternatively, the system time information and the interrupt event information may be acquired based on the second kernel driver 21 by a third party application.
In an alternative embodiment, as shown in fig. 1, the target server 2 is any one of a main server 201 and a standby server 202. The primary server 201 may be referred to simply as the host and the standby server 202 may be referred to simply as the standby. The main server 201 and the standby server 202 have the following two operation modes: automatic mode and manual mode. In the automatic mode, the automatic judgment is generally carried out according to the priority of two servers; in the manual mode, the main/standby switch button can be clicked to manually select whether the target server 2 is the host or the standby, and after the target server 2 selects the host or the standby, the working state of the other server can be automatically changed into the corresponding working state.
When the time synchronizer works, the target server 2 is connected with the time unification card 11 by adopting a PCI-E bus interface, and receives a time unification signal (i.e. the time reference signal) sent by the target B code terminal by utilizing the PCI-E bus interface. Since the target server 2 and the client 3 are connected via the Ethernet network, the second time synchronization software module 20 of the client 3 receives the real-time interrupt signal and the time synchronization data sent by the first time synchronization software module 10 of the target server 2 by means of UDP multicast.
Aiming at a multi-time synchronization node system (namely a system comprising a plurality of clients 3 to be time synchronized), the embodiment of the invention completes the time synchronization of all the clients 3 in the multi-time synchronization node system in a UDP multicast mode, can realize the time synchronization based on a domestic Linux operating system, and improves the time synchronization efficiency of the system.
The embodiment of the present invention describes the functions of the first time synchronization software module 10 as follows: (1) time display, namely displaying a time reference signal acquired from the time card 11; (2) displaying the end system time of the target server, namely displaying the local time information of the target server 2; (3) displaying a time source of a time system card and displaying a B code state, wherein the time source of the time system card is used for reflecting whether the current time source is a B code terminal or not, and the B code state is used for reflecting whether the B code state is effective or not; (4) interrupt event display and emergency frequency display, which is used for reflecting the accumulated interrupt information obtained from the time system card 11; (5) parameter settings, including but not limited to: setting a zero point protection time interval (namely the zero point protection period), setting a local timing period of the target server 2, setting a network timing period, setting whether to perform immediate timing, and generating an emergency event, wherein the zero point protection time interval is used for determining a protection period before and after a zero point moment, ensuring that the target server 2 does not perform local timing service in the time period, and setting a value range of 120-600 seconds, and manually setting a specific numerical value; the local time correction period adopted for local time correction of the target server 2 ranges from 1 second to 60 seconds, and specific numerical values can be manually set; when network control is performed, whether the target server 2 sends the current time (namely, the time information after the time correction) to the client 3 is judged, if yes, a communication link between the target server 2 and the client 3 is established, and the target server 2 sends time data to the client 3 regularly according to a set network time correction period; after the user clicks the icon for immediate timing, the target server 2 and all clients 3 perform network timing immediately. In addition, in order to ensure that the setting has certain safety, the authorized user can directly carry out various settings, but the unauthorized user can carry out the setting within the authority range only by inputting a user name and a password, otherwise, the setting operation cannot be carried out; (6) displaying the states of the main machine and the standby machine: displaying whether the target server 2 is a host or a standby at the current time; (7) displaying a log: and displaying log information such as interruption overtime, master-slave machine switching and the like.
As shown in fig. 4, an interface schematic diagram of a target server is provided in the embodiment of the present invention, where the interface schematic diagram includes: the system time 2018-01-1711: 20:34 of the target server 2, a plurality of display modules such as a time system, statistical information, parameter setting, duplex and logs, wherein the statistical information module comprises 4 emergency events, the zero point protection time interval of the parameter setting module is set to 300 seconds, the time correction period of the local computer is set to 10 seconds, the whole network time correction adopts network control, and the duplex working mode is automatic.
The embodiment of the present invention will explain the functions of the second time synchronization software module 20 as follows: (1) displaying the time and the system time of the client 3; (2) displaying an interruption event and emergency times; (3) parameter settings, including but not limited to: setting a local timing period of the client 3, setting a zero point protection time interval of the client 3 and selecting a multicast type, wherein the local timing period of the client 3 is 1-60 seconds, and a specific numerical value can be manually set, the zero point protection time interval of the client 3 is used for determining a protection period before and after a zero point moment, and ensuring that the client 3 does not perform local timing service in the time period, the value range is 120-600 seconds, and the numerical value can be manually set; the multicast type has two modes of optional source multicast and appointed source multicast, when the optional source multicast is selected, the IP address and the port number of the client 3 are required to be set, and a setting button is clicked to take effect; when a designated source is selected for multicast, the IP address, the port number and the source address of the client 3 (i.e. the network card IP address required by the target server 2 for sending multicast data) need to be configured, and then the setting button is clicked to take effect; in order to ensure that the multicast mode selection has certain safety, the authorized user can directly carry out setting, but the unauthorized user can carry out setting only by inputting a user name and a password, otherwise, the setting operation cannot be carried out; (4) displaying a log: and displaying log information such as interruption overtime, master-slave machine switching and the like.
As shown in fig. 5, an interface schematic diagram of a client is provided in the embodiment of the present invention, where the interface schematic diagram includes: the system time 2018-01-1711: 22:32 of the client 3, a plurality of display modules such as a time system, statistical information, parameter setting and a log, wherein the zero protection time interval under the parameter setting module is set to 300 seconds, the time correction period of the client is set to 10 seconds, the IP address is 226.20.33.44, the port is 2345, and the type is any source multicast.
The time synchronization device provided by the embodiment of the invention is based on a domestic Linux operating system and can quickly realize multi-node time synchronization by adopting a UDP multicast-based mode.
Example 2:
in accordance with an embodiment of the present invention, there is provided an embodiment of a method for time synchronization, it being noted that the steps illustrated in the flowchart of the drawings may be performed in a computer system such as a set of computer-executable instructions and that, although a logical order is illustrated in the flowchart, in some cases, the steps illustrated or described may be performed in an order different than presented herein.
Fig. 6 is a flowchart of a time synchronization method according to an embodiment of the present invention, where the method is applied to a first time synchronization software module of a time synchronization apparatus according to embodiment 1, as shown in fig. 6, the method includes the following steps:
step S101, receiving a time reference signal acquired by a time system card from a target B code terminal;
and step S102, timing the target server based on the time reference signal, and sending the time information after the timing of the target server to the second kernel driver, so that the second kernel driver performs network timing on the client based on the time information after the timing.
According to the time synchronization method provided by the embodiment of the invention, because the first time synchronization software module of the target server adopts a domestic Linux operating system, the time of the client and the time of the target server can be kept synchronous, and the information safety can be ensured.
In an optional embodiment, the method further comprises: step S103 and step S104, wherein:
step S103, receiving a start-stop control instruction input by a user;
and step S104, performing start-stop control on the first time synchronization software module based on the start-stop control instruction. The parameters required for start-stop control can be configured in a file.
In an optional embodiment, the method further comprises: and step S105, displaying the time information to be synchronized before the time correction of the target server and the time information after the time correction.
In an optional embodiment, the present embodiment further provides an electronic device, which includes a memory and a processor, where the memory stores a computer program operable on the processor, and the processor executes the computer program to implement the steps of the method of the foregoing method embodiment.
In an alternative embodiment, the present embodiment also provides a computer readable medium having non-volatile program code executable by a processor, wherein the program code causes the processor to perform the method of the above method embodiment.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.
Claims (10)
1. A time synchronization apparatus, comprising: a target server and a client connected through a target network; the target server is provided with a first time synchronization software module based on a domestic Linux system, the first time synchronization software module comprises a time synchronization card and a first kernel driver, the client is provided with a second time synchronization software module based on the domestic Linux system, and the second time synchronization software module comprises a second kernel driver;
the time reference card is used for acquiring a time reference signal from a target B code terminal and sending the time reference signal to the first kernel driver;
the first kernel driver is used for timing the target server based on the time reference signal and sending time information after timing of the target server to the second kernel driver;
and the second kernel driver is used for carrying out network timing on the client based on the time information after timing.
2. The apparatus of claim 1,
the time system card is also used for generating an interrupt pulse signal and sending the interrupt pulse signal to the first kernel driver;
the first core driver is further configured to capture an interrupt event corresponding to the interrupt pulse signal.
3. The apparatus of claim 1, wherein the first time synchronization software module further comprises: the first background control unit and the first graphical management unit are both connected with the first kernel driver; the second time synchronization software module further comprises: and the second background control unit and the second graphical management unit are both connected with the second kernel driver.
4. The apparatus of claim 1, wherein the target server is any one of a primary server and a standby server.
5. The apparatus of claim 1, wherein the target network comprises an Ethernet network.
6. A time synchronization method, wherein a first time synchronization software module applied to the time synchronization apparatus according to any one of claims 1 to 5 comprises:
receiving a time reference signal acquired by a system card from a target B code terminal;
and timing the target server based on the time reference signal, and sending the time information after the timing of the target server to a second kernel driver so as to enable the second kernel driver to perform network timing on the client based on the time information after the timing.
7. The method of claim 6, further comprising:
receiving a start-stop control instruction input by a user;
and performing start-stop control on the first time synchronization software module based on the start-stop control instruction.
8. The method of claim 6, further comprising:
and displaying the time information to be synchronized before the time correction of the target server and the time information after the time correction.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method according to any one of claims 6 to 8 when executing the computer program.
10. A computer-readable medium having non-volatile program code executable by a processor, the program code causing the processor to perform the method of any of claims 6 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110374816.0A CN113098881B (en) | 2021-04-07 | 2021-04-07 | Time synchronization device and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110374816.0A CN113098881B (en) | 2021-04-07 | 2021-04-07 | Time synchronization device and method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113098881A true CN113098881A (en) | 2021-07-09 |
CN113098881B CN113098881B (en) | 2022-05-31 |
Family
ID=76674842
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110374816.0A Active CN113098881B (en) | 2021-04-07 | 2021-04-07 | Time synchronization device and method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113098881B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103152117A (en) * | 2012-09-14 | 2013-06-12 | 南京航空航天大学 | Embedded-type high-precision network time server system |
CN105187148A (en) * | 2015-08-17 | 2015-12-23 | 武汉理工大学 | ARM-based network clock synchronization system and method |
CN105337680A (en) * | 2015-08-07 | 2016-02-17 | 中国人民解放军63892部队 | High-precision network time unifying device and method |
CN105515709A (en) * | 2015-12-07 | 2016-04-20 | 中国电子科技集团公司第三十二研究所 | Time synchronization device based on domestic FPGA and uclinux operating system |
US20160380749A1 (en) * | 2015-06-27 | 2016-12-29 | Wipro Limited | System and method for adaptive clock/time synchronization between devices in a network |
CN110545152A (en) * | 2019-09-10 | 2019-12-06 | 清华大学 | upper computer with real-time transmission function in Ethernet and Ethernet system |
-
2021
- 2021-04-07 CN CN202110374816.0A patent/CN113098881B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103152117A (en) * | 2012-09-14 | 2013-06-12 | 南京航空航天大学 | Embedded-type high-precision network time server system |
US20160380749A1 (en) * | 2015-06-27 | 2016-12-29 | Wipro Limited | System and method for adaptive clock/time synchronization between devices in a network |
CN105337680A (en) * | 2015-08-07 | 2016-02-17 | 中国人民解放军63892部队 | High-precision network time unifying device and method |
CN105187148A (en) * | 2015-08-17 | 2015-12-23 | 武汉理工大学 | ARM-based network clock synchronization system and method |
CN105515709A (en) * | 2015-12-07 | 2016-04-20 | 中国电子科技集团公司第三十二研究所 | Time synchronization device based on domestic FPGA and uclinux operating system |
CN110545152A (en) * | 2019-09-10 | 2019-12-06 | 清华大学 | upper computer with real-time transmission function in Ethernet and Ethernet system |
Also Published As
Publication number | Publication date |
---|---|
CN113098881B (en) | 2022-05-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101610145B (en) | Method and system for realizing synchronous control of distributed system | |
CN110708696B (en) | Network data recovery method and device, storage medium and electronic equipment | |
CN110492967B (en) | Time synchronization method, relay equipment and device | |
CN102638417A (en) | Information communication method, device and system | |
CN110691398B (en) | Network interaction method, system, equipment and storage medium of intelligent equipment | |
CN114629822B (en) | Link detection method, device, electronic equipment and storage medium | |
CN104317764A (en) | Real-time control method for asynchronous messages of 1553B bus | |
CN102076065B (en) | Method and device of data interaction | |
CN110941665A (en) | Data synchronization method, data synchronization device and data synchronization equipment between nodes | |
CN112054985A (en) | Data interaction method and system for mobile terminal and field detection test equipment | |
CN110830324A (en) | Method and device for detecting network connectivity of data center and electronic equipment | |
CN106161086B (en) | The control method and device that master control borad is restarted | |
CN113098881B (en) | Time synchronization device and method | |
CN106941418B (en) | SSL VPN configuration information synchronization method and device | |
CN107360012B (en) | Link state processing method and network node equipment | |
CN111339460B (en) | Data updating method, device, computer equipment and storage medium | |
WO2024169385A1 (en) | Cluster deployment method and apparatus, and device, medium and product | |
CN116996369B (en) | Containerized management server, main and standby management method and device thereof, and storage medium | |
KR101435181B1 (en) | Time synchronization and transmission delay time correction method between the master and the slave of intelligent power distribution system | |
CN116887418B (en) | Method, device and medium for scheduling high priority messages in EPA network | |
CN103501298A (en) | Method and device for ensuring continuous flow in a link circuit during no-break service upgrade process | |
CN111615819B (en) | Method and device for transmitting data | |
CN111901395A (en) | Multi-cluster switching method and device | |
CN107147552B (en) | Method and device for remotely controlling return letter reading | |
CN113259198A (en) | Method for monitoring network, forwarding plane device, storage medium and system |
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 |