Network time service monitoring equipment and method compatible with NTP (Network Time Protocol) and PTP (Precision Time Protocol)

By designing a network timing monitoring device that is compatible with NTP and PTP, integrating power, monitoring, receiver and clock modules, high-precision real-time monitoring of NTP and PTP network timing is achieved, solving the problems of single functions and low accuracy in the existing technology, and improving the integration and applicability of the equipment.

CN120433875APending Publication Date: 2025-08-05THE 54TH RESEARCH INSTITUTE OF CHINA ELECTRONICS TECHNOLOGY GROUP CORPORATION
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510555082.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-29
Publication Date
2025-08-05

AI Technical Summary

Technical Problem

The prior art cannot conduct high-precision real-time monitoring of NTP and PTP network timing at the same time, resulting in a single device function and low accuracy, which cannot meet the high-precision needs in the fields of industrial automation and communications.

Method used

A network timing monitoring device compatible with NTP and PTP is designed, including a power module, a motherboard module, a monitoring module, a receiver module, a clock module, an NTP monitoring module and a PTP monitoring module. The clock module provides stable time-frequency signals, combines NTP and PTP monitoring modules to perform accurate timestamp information processing, and uses the upper computer to perform human-computer interaction and instruction transmission.

Benefits of technology

It realizes high-precision real-time monitoring of NTP and PTP network timing, has comprehensive equipment functions and high integration, and can monitor NTP and PTP network timing at the same time, filling the field gap, improving monitoring accuracy and equipment applicability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120433875A_ABST
    Figure CN120433875A_ABST
Patent Text Reader

Abstract

The invention relates to network time service monitoring equipment and method compatible with NTP and PTP, and belongs to the field of network time service monitoring. The system comprises a power supply module, a mother board module, a monitoring module, a receiver module, a clock module, an NTP monitoring module, a PTP monitoring module and upper computer software. The device is comprehensive in function, high in integration level and wide in application field, high-precision real-time monitoring can be carried out on NTP network time service and PTP network time service at the same time, and the blank in the field is filled. In addition, the mother board module is composed of a plurality of vertical slot positions side by side, different modules can be inserted according to needs, and the number of the NTP monitoring modules and the number of the PTP monitoring modules can be configured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of network timing monitoring, and in particular to a network timing monitoring device and method that is compatible with NTP and PTP. Background Art

[0002] Time synchronization technology is widely used in industrial automation, instrumentation, and communications. Network timing synchronization technology, in particular, plays an increasingly important role in the national economy, and its time synchronization accuracy has become a crucial factor. Currently, widely used network timing synchronization technologies include the Network Time Protocol (NTP) and the Precision Time Protocol (PTP).

[0003] NTP network timing is a software-based timestamp technology used for network synchronization between distributed time servers and clients. NTP time synchronization accuracy can reach 1ms on a local area network (LAN) and tens of milliseconds on the Internet. When using NTP network timing services, factors such as network transmission latency, network load, and transmission uncertainty can cause fluctuations in NTP timing accuracy. When NTP timing accuracy deteriorates to a certain level, the NTP timing server will be unable to provide normal timing services. To monitor the quality of NTP timing services in real time, it is necessary to develop an NTP network timing monitoring device.

[0004] PTP network timing is a hardware-based timestamp technology with high accuracy and a wide range of applications. PTP time synchronization accuracy is typically within a few nanoseconds. With the widespread adoption of PTP network timing services, obtaining and monitoring PTP network timing accuracy in real time has become a pressing issue. Therefore, the development of a PTP network timing monitoring device is urgently needed.

[0005] It can be seen that network timing monitoring equipment that is compatible with both NTP and PTP has more comprehensive functions, wider applications, high integration, and space saving. However, there are currently no mature products of this type in China. Most related products have a single function and low accuracy, and cannot simultaneously perform high-precision real-time monitoring of NTP and PTP network timing. Therefore, it is particularly important to build a network timing monitoring device that can simultaneously perform high-precision real-time monitoring of NTP and PTP network timing. Summary of the Invention

[0006] In view of this, the present invention provides a network timing monitoring device and method compatible with NTP and PTP, which has the characteristics of high device integration and high test accuracy.

[0007] In order to achieve the above object, the technical solution adopted by the present invention is as follows:

[0008] A network timing monitoring device compatible with NTP and PTP, comprising a power module, a motherboard module, a monitoring module, a receiver module, a clock module, an NTP monitoring module, a PTP monitoring module and a host computer;

[0009] The power module provides the required voltage for the entire device;

[0010] The motherboard module provides card insertion locations, power supply, and transmission channels for 1PPS, 10MHz, TOD, and monitoring information for other modules;

[0011] The monitoring module is responsible for collecting the status of the internal modules of the device and reporting it to the host computer. It also receives instructions from the host computer and forwards them to the internal modules of the device.

[0012] The receiver module receives BeiDou signals, parses the 1PPS and TOD signals, and outputs them to the clock module;

[0013] The clock module generates 1PPS, 10MHz, and TOD signals that trace back to the Beidou signal based on the 1PPS and TOD signals transmitted by the receiver module, providing stable and accurate time and frequency signals for the entire device.

[0014] The NTP monitoring module monitors the input NTP signal based on the time frequency signal output by the clock module;

[0015] The PTP monitoring module monitors the input PTP signal based on the time frequency signal output by the clock module;

[0016] The host computer provides a human-computer interaction interface, displays the status information of the internal modules of the device, and generates instructions to send to the monitoring module.

[0017] Furthermore, the motherboard module includes a plurality of side-by-side vertical slots for inserting different modules as needed.

[0018] Furthermore, the clock module includes a rubidium atomic clock, a frequency branching module, an operation control module, and a time-frequency processing module; wherein,

[0019] The rubidium atomic clock generates a 10MHz signal and outputs it to the frequency splitter module;

[0020] The frequency splitting module splits the input 10MHz signal and outputs it to the operation control module and the time-frequency processing module respectively;

[0021] The operation control module calculates the frequency adjustment value of the rubidium atomic clock based on the 1PPS signal transmitted by the receiver module and the 10MHz signal transmitted by the frequency splitting module, and sends a frequency adjustment instruction to the rubidium atomic clock to complete the clock training of the rubidium atomic clock. The rubidium atomic clock continuously generates the trained 10MHz signal and outputs it to the frequency splitting module, realizing the traceability of the 10MHz signal to the Beidou signal.

[0022] The time-frequency processing module calculates and generates 1PPS and TOD signals synchronized with the 10MHz signal based on the TOD signal transmitted by the receiver module and the 10MHz signal transmitted by the frequency splitter module, and outputs the 1PPS, 10MHz and TOD signals to other modules of the device. When the rubidium atomic clock completes clock training, the 1PPS, 10MHz and TOD signals can be traced back to the Beidou signal.

[0023] Furthermore, the NTP monitoring module includes a network transformer, a physical layer chip, a microprocessor, and a level conversion chip; wherein,

[0024] The network transformer is integrated into the RJ45 connector, and completes data transmission and reception with the NTP server. It outputs the NTP signal transmitted by the NTP server to the physical layer chip, and outputs the message information transmitted by the physical layer chip to the NTP server. At the same time, the network transformer couples and amplifies the message information to isolate the physical layer chip from the external NTP server.

[0025] The physical layer chip completes data transmission and reception with the external NTP server through the network transformer;

[0026] The microprocessor provides MAC hardware support for network communication and runs the TCP / IP protocol stack and NTP protocol stack;

[0027] The level conversion chip is used to receive the 1PPS, 10MHz and TOD signals transmitted by the motherboard module, convert them into the required level format and output them to the microprocessor.

[0028] Furthermore, the PTP monitoring module includes a network transformer, a physical layer chip, a microprocessor, and a level conversion chip; wherein,

[0029] The network transformer is integrated into the RJ45 connector, completes data transmission and reception with the PTP server, outputs the PTP signal transmitted by the PTP server to the physical layer chip, and outputs the message information transmitted by the physical layer chip to the PTP server. At the same time, the network transformer couples and amplifies the message information to isolate the physical layer chip from the external PTP server.

[0030] The physical layer chip supports the PTP protocol standard and can mark the PTP signal with timestamp information; the physical layer chip completes data transmission and reception with the external PTP server through the network transformer;

[0031] The microprocessor provides MAC hardware support for network communication, runs the TCP / IP protocol stack and the PTP protocol stack, and parses the timestamp information of the PTP signal;

[0032] The level conversion chip is used to receive the 1PPS, 10MHz and TOD signals transmitted by the motherboard module, convert them into the required level format and output them to the microprocessor.

[0033] A method for monitoring NTP network timing, based on the above-mentioned network timing monitoring device, is used to monitor the input NTP signal, comprising the following steps:

[0034] (1) The NTP monitoring module sends a synchronization request to the NTP server, and the host computer records the local timestamp T1 of sending the synchronization request;

[0035] (2) The NTP server receives the synchronization request sent by the NTP monitoring module and records the timestamp T2 of receiving the synchronization request;

[0036] (3) The NTP server sends a receipt to the NTP monitoring module and records the timestamp T3 of the receipt. The NTP server encapsulates both T2 and T3 in the receipt.

[0037] (4) The NTP monitoring module receives the receipt sent by the NTP server, and the host computer parses T2 and T3 from it and records the local timestamp T4 of the receipt;

[0038] (5) The host computer calculates the clock difference and path delay between the NTP server and the NTP monitoring module based on the four timestamps T1, T2, T3, and T4 obtained, and realizes the monitoring of the NTP signal.

[0039] A PTP network timing monitoring method is implemented based on the above-mentioned network timing monitoring device and is used to monitor the input PTP signal, comprising the following steps:

[0040] (1) The PTP server sends a synchronization command to the PTP monitoring module and records the timestamp T1 of sending the synchronization command;

[0041] (2) The PTP monitoring module receives the synchronization instruction sent by the PTP server and records the local timestamp T2 of receiving the synchronization instruction;

[0042] (3) The PTP server sends a follow instruction to the PTP monitoring module and encapsulates the timestamp T1 of the synchronization instruction in the follow instruction;

[0043] (4) The PTP monitoring module receives the follow-up instruction sent by the PTP server and parses T1 from it;

[0044] (5) The PTP monitoring module sends a delay request instruction to the PTP server and records the local timestamp T3 of sending the delay request instruction;

[0045] (6) The PTP server receives the delay application instruction sent by the PTP monitoring module and records the timestamp T4 of receiving the delay application instruction;

[0046] (7) The PTP server sends a delay request receipt to the PTP monitoring module and encapsulates T4 into the delay request receipt;

[0047] (8) The PTP monitoring module receives the delay request receipt sent by the PTP server and parses T4 from it;

[0048] (9) The PTP monitoring module reports the four timestamps T1, T2, T3, and T4 to the host computer through the monitoring module;

[0049] (10) The host computer calculates the clock difference and path delay between the PTP server and the PTP monitoring module to monitor the PTP signal.

[0050] The beneficial effects of the present invention compared to the background technology are:

[0051] (1) The present invention is the first to propose a network timing monitoring device and method that can simultaneously perform high-precision real-time monitoring of NTP network timing and PTP network timing, filling a gap in this field;

[0052] (2) The motherboard module in the present invention consists of multiple vertical slots arranged side by side, into which different modules can be inserted as needed, and the number of NTP monitoring modules and PTP monitoring modules can be configured;

[0053] (3) In the present invention, the PTP monitoring module uses the physical layer chip to mark the timestamp information, and the microprocessor parses the timestamp information, avoiding the process of the host computer software parsing the timestamp information, and the accuracy is higher;

[0054] (4) The device of the present invention can simultaneously perform high-precision real-time monitoring of NTP network timing and PTP network timing, with comprehensive functions and high integration. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] Figure 1 This is a structural block diagram of a network timing monitoring device compatible with NTP and PTP in an embodiment of the present invention.

[0056] Figure 2 This is a structural block diagram of a clock module in an embodiment of the present invention.

[0057] Figure 3 This is a structural block diagram of the PTP monitoring module in an embodiment of the present invention.

[0058] Figure 4 This is a business flow chart of NTP network timing monitoring in an embodiment of the present invention.

[0059] Figure 5 This is a business flow chart of PTP network timing monitoring in an embodiment of the present invention. DETAILED DESCRIPTION

[0060] The present invention will be further described in detail below with reference to the accompanying drawings.

[0061] A network timing monitoring device compatible with NTP and PTP, such as Figure 1 As shown, it includes a power module, a motherboard module, a monitoring module, a receiver module, a clock module, an NTP monitoring module, a PTP monitoring module and a host computer; among which:

[0062] The power module converts the input 220V AC power into DC voltage and provides voltage for the entire device;

[0063] The motherboard module provides other modules with card insertion location, power supply, and transmission channels for 1PPS, 10MHz, TOD, monitoring and other information;

[0064] The monitoring module is responsible for collecting the status of the internal modules of the device and reporting it to the host computer software. At the same time, it receives instructions issued by the host computer software and forwards them to the internal modules of the device.

[0065] The receiver module receives Beidou navigation signals, parses the 1PPS and TOD signals, and transmits them to the clock module through the motherboard module;

[0066] The clock module receives the 1PPS and TOD signals from the receiver module through the motherboard module, and generates 1PPS, 10MHz, and TOD signals that trace back to the Beidou navigation signal, providing stable and accurate time and frequency signals for the entire device.

[0067] The NTP monitoring module uses the time frequency signal output by the clock module as a benchmark, runs the NTP protocol, and applies for clock synchronization from the NTP server. It calculates the clock difference between the local clock and the NTP server according to the synchronization protocol, and monitors the input NTP signal.

[0068] The PTP monitoring module uses the time and frequency signal output by the clock module as a benchmark, and runs the PTP protocol to receive the clock synchronization sent by the PTP server. It calculates the clock difference between the local clock and the PTP server according to the synchronization protocol to monitor the input PTP signal.

[0069] The host computer provides a human-computer interaction interface, displays the status information of each module of the device reported by the monitoring module, and generates instructions to send to the monitoring module.

[0070] Furthermore, the motherboard module is composed of 16 vertical slots arranged side by side, and different modules can be inserted as needed. The number of NTP monitoring modules and PTP monitoring modules determines the number of NTP or PTP servers that can be monitored simultaneously.

[0071] like Figure 2 As shown, the clock module consists of a rubidium atomic clock, a frequency branching module, an operation control module, and a time-frequency processing module; wherein,

[0072] The rubidium atomic clock provides a high-precision clock reference and can generate a 10MHz signal output to the frequency splitter module;

[0073] The frequency splitting module splits the input 10MHz signal and outputs it to the operation control module and the time-frequency processing module respectively;

[0074] The operation control module calculates the frequency adjustment value of the rubidium atomic clock based on the 1PPS signal transmitted by the receiver module and the 10MHz signal transmitted by the frequency splitting module, and sends a frequency adjustment instruction to the rubidium atomic clock to complete the clock training of the rubidium atomic clock. The rubidium atomic clock continuously generates the trained 10MHz signal and outputs it to the frequency splitting module, realizing the traceability of the 10MHz signal to the Beidou signal.

[0075] The time-frequency processing module calculates and generates 1PPS and TOD signals synchronized with the 10MHz signal based on the TOD signal transmitted by the receiver module and the 10MHz signal transmitted by the frequency splitter module, and outputs the 1PPS, 10MHz and TOD signals to other modules of the device. When the rubidium atomic clock completes clock training, the 1PPS, 10MHz and TOD signals can be traced back to the Beidou signal.

[0076] Furthermore, the NTP monitoring module is composed of a network transformer, a physical layer chip, a microprocessor, and a level conversion chip; wherein,

[0077] The network transformer is integrated into the RJ45 connector, and completes data transmission and reception with the NTP server. It outputs the NTP signal transmitted by the NTP server to the physical layer chip, and outputs the message information transmitted by the physical layer chip to the NTP server. At the same time, the network transformer can couple and amplify the message information, isolate the physical layer chip from the external NTP server, and improve the anti-interference capability.

[0078] The physical layer chip completes data transmission and reception with the external NTP server through the network transformer;

[0079] The microprocessor is the core part of the NTP monitoring module, providing MAC (Media Access Control Layer) hardware support for network communication, TCP / IP protocol stack operation, and NTP protocol stack operation;

[0080] The level conversion chip is used to receive the 1PPS, 10MHz and TOD signals transmitted by the motherboard module, convert them into the required level format and output them to the microprocessor.

[0081] like Figure 3 As shown, the PTP monitoring module consists of a network transformer, a physical layer chip, a microprocessor, and a level conversion chip; wherein,

[0082] The network transformer is integrated into the RJ45 connector, completes data transmission and reception with the PTP server, outputs the PTP signal transmitted by the PTP server to the physical layer chip, and outputs the message information transmitted by the physical layer chip to the PTP server. At the same time, the network transformer can couple and amplify the message information, isolate the physical layer chip from the external PTP server, and improve the anti-interference ability;

[0083] The physical layer chip transmits and receives data with an external PTP server via a network transformer. To meet the requirements of high-precision and high-resolution timestamp information acquisition for PTP monitoring, a physical layer chip that supports the PTP protocol standard was selected, which can mark the PTP signal with timestamp information.

[0084] The microprocessor is the core of the PTP monitoring module, providing MAC (Media Access Control) hardware support for network communications, TCP / IP protocol stack operation, PTP protocol stack operation, and parsing the timestamp information of the PTP signal. Compared with the method of parsing the timestamp information of the NTP signal by the host computer software, this method has higher accuracy.

[0085] The level conversion chip is used to receive the 1PPS, 10MHz and TOD signals transmitted by the motherboard module, convert them into the required level format and output them to the microprocessor.

[0086] A method for monitoring NTP network timing, using the network timing monitoring device as described above to monitor the input NTP signal, such as Figure 4 As shown, the following steps are included:

[0087] (1) The NTP monitoring module sends a synchronization request to the NTP server, and the host computer software records the local timestamp T1 of sending the synchronization request;

[0088] (2) The NTP server receives the synchronization request sent by the NTP monitoring module and records the timestamp T2 of receiving the synchronization request;

[0089] (3) The NTP server sends a receipt to the NTP monitoring module and records the timestamp T3 of the receipt. The NTP server encapsulates both T2 and T3 in the receipt.

[0090] (4) The NTP monitoring module receives the receipt sent by the NTP server, and the host computer software parses T2 and T3 from it and records the local timestamp T4 of the receipt;

[0091] (5) The host computer software calculates the clock difference and path delay between the NTP server and the NTP monitoring module based on the four timestamps T1, T2, T3, and T4 obtained, and completes one monitoring of the NTP signal. By repeating this process at a specified frequency, continuous monitoring of the NTP signal can be achieved.

[0092] Among them, the clock offset is:

[0093]

[0094] The path delay is:

[0095]

[0096] A PTP network timing monitoring method uses the network timing monitoring device as described above to monitor the input PTP signal, such as Figure 5 As shown, the following steps are included:

[0097] (1) The PTP server sends a synchronization command to the PTP monitoring module and records the timestamp T1 of sending the synchronization command;

[0098] (2) The PTP monitoring module receives the synchronization instruction sent by the PTP server and records the local timestamp T2 of receiving the synchronization instruction;

[0099] (3) The PTP server sends a follow instruction to the PTP monitoring module and encapsulates the timestamp T1 of the synchronization instruction in the follow instruction;

[0100] (4) The PTP monitoring module receives the follow-up instruction sent by the PTP server and parses T1 from it;

[0101] (5) The PTP monitoring module sends a delay request instruction to the PTP server and records the local timestamp T3 of sending the delay request instruction;

[0102] (6) The PTP server receives the delay application instruction sent by the PTP monitoring module and records the timestamp T4 of receiving the delay application instruction;

[0103] (7) The PTP server sends a delay request receipt to the PTP monitoring module and encapsulates T4 into the delay request receipt;

[0104] (8) The PTP monitoring module receives the delay request receipt sent by the PTP server and parses T4 from it;

[0105] (9) The PTP monitoring module reports the four timestamps T1, T2, T3, and T4 to the host computer software through the monitoring module;

[0106] (10) The host computer software calculates the clock difference and path delay between the PTP server and the PTP monitoring module, completes one-time monitoring of the PTP signal, and repeats this process at a specified frequency to achieve continuous monitoring of the PTP signal.

[0107] Among them, the clock offset is:

[0108]

[0109] The path delay is:

[0110]

[0111] All components of the network timing monitoring system are housed indoors. The power module, motherboard module, monitoring module, receiver module, clock module, NTP monitoring module, and PTP monitoring module are integrated into a 4U chassis. Beidou signals are connected to the receiver module via an RF cable, NTP signals to the NTP monitoring module via an Ethernet cable, and PTP signals to the PTP monitoring module via an Ethernet cable. The monitoring module is also connected to a computer via an Ethernet cable.

[0112] In summary, the present invention pioneers a network timing monitoring device and method capable of simultaneously performing high-precision, real-time monitoring of both NTP and PTP network timing, filling a gap in this field. The device of the present invention boasts comprehensive functionality, high integration, and a wide range of applications, enabling high-precision, real-time monitoring of both NTP and PTP network timing, filling a gap in this field. Furthermore, the motherboard module of the present invention comprises multiple vertical slots arranged side by side, allowing for the insertion of different modules as needed. The number of NTP and PTP monitoring modules is configurable.

Claims

1. A network timing monitoring device compatible with NTP and PTP, characterized in that: Including power module, motherboard module, monitoring module, receiver module, clock module, NTP monitoring module, PTP monitoring module and host computer; The power module provides the required voltage for the entire device; The motherboard module provides card insertion locations, power supply, and transmission channels for 1PPS, 10MHz, TOD, and monitoring information for other modules; The monitoring module is responsible for collecting the status of the internal modules of the device and reporting it to the host computer. It also receives instructions from the host computer and forwards them to the internal modules of the device. The receiver module receives BeiDou signals, parses the 1PPS and TOD signals, and outputs them to the clock module; The clock module generates 1PPS, 10MHz, and TOD signals that trace back to the Beidou signal based on the 1PPS and TOD signals transmitted by the receiver module, providing stable and accurate time and frequency signals for the entire device. The NTP monitoring module monitors the input NTP signal based on the time frequency signal output by the clock module; The PTP monitoring module monitors the input PTP signal based on the time frequency signal output by the clock module; The host computer provides a human-computer interaction interface, displays the status information of the internal modules of the device, and generates instructions to send to the monitoring module.

2. A network timing monitoring device compatible with NTP and PTP according to claim 1, characterized in that, The motherboard module includes a plurality of vertical slots arranged side by side for inserting different modules as needed.

3. A network timing monitoring device compatible with NTP and PTP according to claim 1, characterized in that, The clock module includes a rubidium atomic clock, a frequency branching module, an operation control module, and a time-frequency processing module; wherein, The rubidium atomic clock generates a 10MHz signal and outputs it to the frequency splitter module; The frequency splitting module splits the input 10MHz signal and outputs it to the operation control module and the time-frequency processing module respectively; The operation control module calculates the frequency adjustment value of the rubidium atomic clock based on the 1PPS signal transmitted by the receiver module and the 10MHz signal transmitted by the frequency splitting module, and sends a frequency adjustment instruction to the rubidium atomic clock to complete the clock training of the rubidium atomic clock. The rubidium atomic clock continuously generates the trained 10MHz signal and outputs it to the frequency splitting module, realizing the traceability of the 10MHz signal to the Beidou signal. The time-frequency processing module calculates and generates 1PPS and TOD signals synchronized with the 10MHz signal based on the TOD signal transmitted by the receiver module and the 10MHz signal transmitted by the frequency splitter module, and outputs the 1PPS, 10MHz and TOD signals to other modules of the device. When the rubidium atomic clock completes clock training, the 1PPS, 10MHz and TOD signals can be traced back to the Beidou signal.

4. A network timing monitoring device compatible with NTP and PTP according to claim 1, characterized in that, The NTP monitoring module includes a network transformer, a physical layer chip, a microprocessor, and a level conversion chip; wherein, The network transformer is integrated into the RJ45 connector, and completes data transmission and reception with the NTP server. It outputs the NTP signal transmitted by the NTP server to the physical layer chip, and outputs the message information transmitted by the physical layer chip to the NTP server. At the same time, the network transformer couples and amplifies the message information to isolate the physical layer chip from the external NTP server. The physical layer chip completes data transmission and reception with the external NTP server through the network transformer; The microprocessor provides MAC hardware support for network communication and runs the TCP / IP protocol stack and NTP protocol stack; The level conversion chip is used to receive the 1PPS, 10MHz and TOD signals transmitted by the motherboard module, convert them into the required level format and output them to the microprocessor.

5. A network timing monitoring device compatible with NTP and PTP according to claim 1, characterized in that, The PTP monitoring module includes a network transformer, a physical layer chip, a microprocessor, and a level conversion chip; wherein, The network transformer is integrated into the RJ45 connector, completes data transmission and reception with the PTP server, outputs the PTP signal transmitted by the PTP server to the physical layer chip, and outputs the message information transmitted by the physical layer chip to the PTP server. At the same time, the network transformer couples and amplifies the message information to isolate the physical layer chip from the external PTP server. The physical layer chip supports the PTP protocol standard and can mark the PTP signal with timestamp information; the physical layer chip completes data transmission and reception with the external PTP server through the network transformer; The microprocessor provides MAC hardware support for network communication, runs the TCP / IP protocol stack and the PTP protocol stack, and parses the timestamp information of the PTP signal; The level conversion chip is used to receive the 1PPS, 10MHz and TOD signals transmitted by the motherboard module, convert them into the required level format and output them to the microprocessor.

6. A method for monitoring NTP network timing, characterized in that: The network timing monitoring device according to any one of claims 1 to 5 is implemented to monitor an input NTP signal, comprising the following steps: (1) The NTP monitoring module sends a synchronization request to the NTP server, and the host computer records the local timestamp T1 of sending the synchronization request; (2) The NTP server receives the synchronization request sent by the NTP monitoring module and records the timestamp T2 of receiving the synchronization request; (3) The NTP server sends a receipt to the NTP monitoring module and records the timestamp T3 of the receipt. The NTP server encapsulates both T2 and T3 in the receipt. (4) The NTP monitoring module receives the receipt sent by the NTP server, and the host computer parses T2 and T3 from it and records the local timestamp T4 of the receipt; (5) The host computer calculates the clock difference and path delay between the NTP server and the NTP monitoring module based on the four timestamps T1, T2, T3, and T4 obtained, and realizes the monitoring of the NTP signal.

7. A PTP network timing monitoring method, characterized in that: The network timing monitoring device according to any one of claims 1 to 5 is implemented to monitor the input PTP signal, comprising the following steps: (1) The PTP server sends a synchronization command to the PTP monitoring module and records the timestamp T1 of sending the synchronization command; (2) The PTP monitoring module receives the synchronization instruction sent by the PTP server and records the local timestamp T2 of receiving the synchronization instruction; (3) The PTP server sends a follow instruction to the PTP monitoring module and encapsulates the timestamp T1 of the synchronization instruction in the follow instruction; (4) The PTP monitoring module receives the follow-up instruction sent by the PTP server and parses T1 from it; (5) The PTP monitoring module sends a delay request instruction to the PTP server and records the local timestamp T3 of sending the delay request instruction; (6) The PTP server receives the delay application instruction sent by the PTP monitoring module and records the timestamp T4 of receiving the delay application instruction; (7) The PTP server sends a delay request receipt to the PTP monitoring module and encapsulates T4 into the delay request receipt; (8) The PTP monitoring module receives the delay request receipt sent by the PTP server and parses T4 from it; (9) The PTP monitoring module reports the four timestamps T1, T2, T3, and T4 to the host computer through the monitoring module; (10) The host computer calculates the clock difference and path delay between the PTP server and the PTP monitoring module to monitor the PTP signal.