A timing server supporting NTP / PTP dynamic configuration
Through the rubidium clock-type timing server integrating the rubidium clock unit and the network timing unit, the problem of the timer lacking multi-work mode switching function in the prior art is solved, and dynamic switching and configuration of NTP/PTP signals are realized, which improves the flexibility and performance of the equipment.
Patent Information
- Application Number
- CN202210964870.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-11
- Publication Date
- 2025-05-13
- Estimated Expiration
- 2042-08-11
AI Technical Summary
The existing rubidium clock-type timing server lacks the function of supporting multi-work mode switching, making it difficult to dynamically configure NTP/PTP timing services.
A rubidium clock-type timing server is designed, integrating a rubidium clock unit, a satellite receiving unit, a signal driving unit, a main control unit and a network timing unit, and dynamic switching and configuration of NTP/PTP signals are realized through the main control unit and the network timing unit.
Dynamic switching of NTP and PTP working modes is realized, which improves the flexibility and adaptability of the timing server, reduces equipment manufacturing costs, and improves the performance of the output signal.
Smart Images

Figure CN115396057B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the field of high-precision time service, and in particular relates to a time service server supporting NTP / PTP dynamic configuration. Background Art
[0002] At present, the international high-precision satellite timing system is still dominated by GPS products. The more well-known products in the world include Ublox and Trimble. There are also many companies in China that provide Beidou satellite timing products. Taking GPS as an example, the timing information provided by GPS is derived from the timing information by the receiver. Among the 16 key industries confirmed by the Presidential Policy Directive No. 21 of the U.S. Department of Homeland Security, 11 rely on accurate timing. Timing has a very wide range of uses in the military and civilian fields.
[0003] The timing system mainly consists of four parts: reference signal source, frequency source, signal processing unit, and timing signal output. The reference signal source is mainly based on satellite signals. The frequency source is composed of atomic clocks. In terms of atomic clock technology, the rubidium atomic clock independently developed by my country was put into service in 2007. Now the Beidou-3 satellite has adopted rubidium atomic clocks with a stability of E-14 and hydrogen atomic clocks with a stability of E-15. Timing signals generally include serial digital signals, network signals, AC modulation signals, etc. However, in the field of rubidium clock timing servers, there is still a lack of timing servers that support multi-working mode switching.
[0004] In view of this, it is urgent to propose a timing server that supports NTP / PTP dynamic configuration. Summary of the invention
[0005] To this end, the present invention provides a timing server supporting NTP / PTP dynamic configuration, which realizes the working mode switching between NTP and PTP based on the timing of a rubidium clock.
[0006] The rubidium clock type timing server supporting NTP / PTP dynamic configuration of the present invention comprises a rubidium clock unit, a satellite receiving unit, a signal driving unit, a main control unit and a network timing unit;
[0007] The rubidium clock unit provides a heartbeat pulse working signal for each unit;
[0008] The satellite receiving unit is connected to a satellite antenna, receives data signals from a satellite, and outputs them as position information and time information;
[0009] The signal driving unit includes a digital signal driver and an analog signal driver, which isolates the internal signal of the timing server and distributes it to multiple outputs;
[0010] The main control unit performs signal reception and analysis, data processing and signal output of the timing server;
[0011] The network timing unit dynamically configures the configuration file of the timing service according to the demand, performs the output and reception of the NTP / PTP signal, and realizes the dynamic switching of NTP / PTP;
[0012] It also includes a power supply unit for supplying power to each unit.
[0013] Furthermore, the timing server is integrated on the baseboard;
[0014] The base plate receives 1PPS, 10MHz, and Lock signals from the rubidium clock unit, and sends a calibration 1PPS or D / A voltage control signal to the rubidium clock unit;
[0015] The bottom plate is connected to the signal distribution board, sends 1PPS, 10MHz, B code, serial port, and network port signals to the signal distribution board, and receives B code and 1PPS timing signal input from the outside through the signal distribution board;
[0016] The base plate is connected to a control unit, and the control unit is used to switch the working mode of the timing server.
[0017] Furthermore, the main control unit is composed of ARM and FPGA, and ARM and FPGA communicate through the FSMC parallel bus. The main control unit receives reference information from the outside, and parses it into time information and reference information after processing, outputs the time information as system information, and sends the reference information to the rubidium clock unit to tame the frequency source.
[0018] Furthermore, the network timing unit is composed of an ARM core board, a power supply unit, an RTC unit, an SD card unit and a network card unit, runs a Linux system, and has an onboard ROM.
[0019] Furthermore, the driving unit includes TLL driving and AC signal driving.
[0020] Furthermore, it also includes a filtering unit for filtering and processing the data received by the network timing unit.
[0021] The present invention also provides a rubidium clock type timing server communication method supporting NTP / PTP dynamic configuration, comprising the following steps:
[0022] Configure the timing server working mode;
[0023] The main control unit sends a control signal to the network timing unit, modifies the configuration file parameters according to the working mode and restarts the timing service;
[0024] Switch the hardware link according to the working mode corresponding to the configuration file;
[0025] Execute the timing communication corresponding to each hardware link;
[0026] Calculate time data.
[0027] Furthermore, when executing timing communication, it also includes:
[0028] receiving time information and status information from a satellite signal source;
[0029] Determine whether the satellite signal source is in an available state according to the state information;
[0030] When the satellite is locked, the time information is solved and post-processed.
[0031] Furthermore, the post-processing process is specifically as follows:
[0032] The filtering unit receives a reference pulse signal;
[0033] By comparing the pulse signal with the main frequency of the timing server, the deviation value of the network timing unit is obtained;
[0034] After the signal is denoised, it is filtered using dynamic window sliding and weighted averaging to obtain a reference pulse signal.
[0035] Furthermore, the specific process of calculating time data is:
[0036] Receiving sending end timestamp information and receiving end timestamp information;
[0037] Calculate the time delay between network links;
[0038] Finally, the terminal device makes up for the link delay when receiving the time and obtains the time data.
[0039] The above technical solution of the present invention has the following advantages compared with the prior art:
[0040] The present invention uses a rubidium clock unit as a timing unit, and realizes the timing switching between NTP and PTP on the basis of the rubidium clock timing. At the same time, the present invention adopts an all-in-one design, has the characteristics of simple operation and excellent performance, greatly reduces the equipment manufacturing cost, and improves the performance of the equipment output signal; it greatly promotes the scale application of the timing industry market, has a typical demonstration effect and greater economic benefits. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] Figure 1 It is a schematic block diagram of module connection of the present invention;
[0042] Figure 2 It is a schematic block diagram of the whole machine connection of the present invention;
[0043] Figure 3 It is a schematic diagram of the configuration working mode of the present invention;
[0044] Figure 4 It is the timing signal output link diagram;
[0045] Figure 5 This is a schematic diagram of the working modes of NTP and PTP;
[0046] Figure 6 This is the timing signal input link diagram. DETAILED DESCRIPTION
[0047] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments.
[0048] The timing server supporting NTP / PTP dynamic configuration of this embodiment is integrated on an all-in-one machine with buttons, and the buttons have multiple buttons for switching timing working modes, each of which corresponds to NTP timing output, PTP timing output, NTP timing input and PTP timing input in this embodiment.
[0049] like Figure 1 As shown in FIG. 1 , the timing server supporting NTP / PTP dynamic configuration is composed of a power supply unit, a rubidium clock unit, a satellite receiver, a signal driving unit, a main control unit and a network timing unit.
[0050] The power supply unit supplies power to all modules of the entire system and supports 85~305VAC voltage input. It supports output short circuit, over-current, over-voltage, and over-temperature protection functions.
[0051] The rubidium clock unit adopts modular design, supports 10MHz output, 1PPS input and output functions, and has a lock mark function. It integrates an SC-cut common precision 10MHz crystal oscillator. It has low phase noise, low environmental sensitivity, and excellent frequency drift rate and stability.
[0052] The signal driving unit includes digital signal driving and analog signal driving, specifically TTL driving and AC signal driving, which isolates the internal signal of the timing server and distributes multiple outputs. This part of the circuit needs to have the characteristics of high isolation, low latency, low signal interference, etc. The rubidium clock unit provides heartbeat pulse working signals for each unit.
[0053] The satellite receiving unit is connected to the satellite antenna, receives data signals from the satellite, and outputs them as position information and time information.
[0054] The main control unit performs signal reception and analysis, data processing and signal output of the timing server. It is composed of ARM+FPGA. ARM and FPGA communicate using FSMC parallel bus communication. The processing unit receives external reference information, including four signals of satellite, B code, PTP and NTP (mainly in the form of TOD+1PPS), and parses the time and reference information after internal data processing. The time information is output as the system time, and the reference information is used to tame the frequency source so that the frequency source can work stably and with high precision. In order to achieve high stability and high precision taming of the local frequency source, the product uses a set of high-performance clock taming technology based on adaptive Kalman filtering, full digital closed-loop frequency correction and frequency offset intelligent prediction compensation technology.
[0055] The network timing unit consists of an ARM core board, a power supply unit, an RTC unit, an SD card unit, a network card unit, etc. It runs the Linux operating system internally and supports standard SSH communication. The onboard large-capacity ROM supports data storage and logging functions. The network timing unit dynamically configures the configuration file of the timing service according to the demand, executes the output and reception of NTP / PTP signals, and realizes the dynamic switching of NTP / PTP.
[0056] like Figure 2 This is the overall connection block diagram of the system. The core board, network processing unit, RNSS module and signal driving unit are integrated on the baseboard.
[0057] The power supply unit of this embodiment specifically includes a switching power supply and a power processing unit. The switching power supply is powered by a 220V voltage, the switching power supply supplies power to the baseboard and other components connected to the baseboard, and then the power processing unit on the baseboard supplies power to the baseboard.
[0058] The baseboard receives 1PPS, 10MHz, Lock and other signals from the rubidium clock module, and sends calibration 1PPS or D / A voltage-controlled signals to the rubidium clock module. It is worth mentioning that a small rubidium clock is also provided on the baseboard to realize the self-timing calibration function of the baseboard.
[0059] After internal data processing, the baseboard sends 1PPS, 10MHz, B code, serial port, network port and other signals to the signal distribution board, and can also receive external B code and 1PPS timing signal input.
[0060] like Figure 3 As shown, the device supports dynamic configuration of working modes, including NTP timing output, PTP timing output, NTP timing input, and PTP timing input. The configuration mode can be controlled by the control buttons of the host computer or the front panel. The front panel of this embodiment is the front panel of the all-in-one machine in which the server is integrated. The front panel is connected through the bottom plate and has buttons, button lights, and a display device.
[0061] When the device working mode configuration is completed, the control signal is sent to the network timing unit. The network timing unit modifies the parameters in the configuration file according to the currently set mode and restarts the timing service. Since the device timing signal supports input and output mode configuration, different modes make the signal communication direction inconsistent. Therefore, it is necessary to switch the corresponding hardware link according to the mode to ensure that the signal can pass normally.
[0062] Figure 4 It is a timing signal output link diagram, which includes a data processing unit, a filtering unit, a timestamp printing part, a link deviation measurement algorithm, and terminal equipment.
[0063] The data processing unit receives the time information and status information of the satellite signal source, and determines whether the satellite signal source is in an available state according to the status information. When the satellite is locked, the time information is calculated and submitted to the back end for processing.
[0064] The filter unit receives the reference pulse signal and compares the pulse signal with the internal main frequency to obtain the deviation value of the network timing unit. Due to the large amount of noise interference in the network, including ionospheric interference in satellite signal propagation, interference from strong magnetic signal sources, and level fluctuation interference in hardware circuits, the reference pulse signal has jumps. The filter unit processes the jumps of the reference signal, removes jumps with large deviations, caches smaller jumps, and uses dynamic window sliding and weighted averaging to perform filtering processing to obtain a more accurate reference pulse signal.
[0065] According to the NTP timing principle, the NTP timing communication package must contain the timestamp information of the current package. The NTP timing service algorithm calculates the time delay between network links by processing the timestamp information of the sender and the receiver. Finally, the terminal device makes up for the link delay when receiving the time to obtain the accurate time.
[0066] The timestamp information in the NTP timing message is particularly important, and its accuracy directly affects the timing accuracy of the terminal. Figure 5 As shown in the figure, the main difference between NTP and PTP communication is the location of the message timestamp printing. NTP adds time information to the protocol message for the system layer application software, while PTP communication inserts time information in the network card part. Due to the system scheduling, interrupt response and other problems in the application layer, the accuracy of NTP timestamp is generally at the us level, while PTP does not have this problem and the time accuracy can reach the ns level.
[0067] Figure 6The figure shows the working link diagram of the device in the network timing input mode. When the device is configured as timing output, the network timing unit needs to receive time information and reference pulse information, and after data processing, provide external timing through the network. When the device is configured as timing input, the network timing unit needs to receive the timing information sent by the upper timing server through network communication, parse the reference pulse signal and time information through data processing, and output it externally.
[0068] A rubidium clock type of the present invention supports the NTP / PTP dynamic configuration method, which integrates the rubidium clock unit, satellite receiver, signal drive unit, main control unit and network timing unit to realize the function of high-precision timing. The main control unit adopts a self-developed control algorithm to receive the reference signals of the satellite receiver and the rubidium clock unit, performs high-precision calculations internally, and integrates them into standard control data. This network timing unit adopts a complete hardware link design, which can realize the dynamic switching of the signal communication link. And it integrates a self-developed drive control algorithm, which can receive the control commands issued by the upper-level application, dynamically change the internal configuration file, and start the corresponding timing service to realize the input and output functions of the network timing signal.
[0069] The present invention adopts an all-in-one design mode, which has the characteristics of simple operation and excellent performance, greatly reducing the manufacturing cost of the equipment and improving the performance of the output signal of the equipment. The successful development of this server has greatly promoted the scale application of the timing industry market, and has a typical demonstration effect and great economic benefits.
[0070] Obviously, the above embodiments are merely examples for the purpose of clear explanation, and are not intended to limit the implementation methods. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the implementation methods here. The obvious changes or modifications derived therefrom are still within the scope of protection of the invention.
Claims
1. A timing server that supports dynamic configuration of NTP / PTP, characterized in that: It includes a rubidium clock unit, a satellite receiving unit, a signal driving unit, a main control unit and a network timing unit integrated into one machine; The rubidium clock unit provides heartbeat pulse working signals for each unit; The satellite receiving unit is connected to a satellite antenna, receives data signals from a satellite, and outputs them as position information and time information; The signal driving unit includes a digital signal driver and an analog signal driver, which isolates the internal signal of the timing server and distributes it to multiple outputs; The main control unit performs signal reception and analysis, data processing and signal output of the timing server; The network timing unit dynamically configures the configuration file of the timing service according to the demand, performs the output and reception of the NTP / PTP signal, and realizes the dynamic switching of NTP / PTP; It also includes a power supply unit for supplying power to each unit; The signal driving unit includes TLL driving and AC signal driving; A timing server communication method supporting NTP / PTP dynamic configuration includes the following steps: Configure the timing server working mode; The main control unit sends a control signal to the network timing unit, modifies the configuration file parameters according to the working mode and restarts the timing service; Switch the hardware link according to the working mode corresponding to the configuration file; Execute the timing communication corresponding to each hardware link; Calculate time data.
2. The timing server supporting NTP / PTP dynamic configuration according to claim 1, characterized in that: The timing server is integrated on the base plate; The base plate receives 1PPS, 10MHz, and Lock signals from the rubidium clock unit, and sends a calibration 1PPS or D / A voltage control signal to the rubidium clock unit; The bottom plate is connected to the signal distribution board, sends 1PPS, 10MHz, B code, serial port, and network port signals to the signal distribution board, and receives B code and 1PPS timing signal input from the outside through the signal distribution board; The base plate is connected to a control unit, and the control unit is used to switch the working mode of the timing server.
3. The timing server supporting NTP / PTP dynamic configuration according to claim 1, characterized in that: The main control unit is composed of ARM and FPGA. ARM and FPGA communicate through the FSMC parallel bus. The main control unit receives reference information from the outside, parses it into time information and reference information after processing, outputs the time information as system information, and sends the reference information to the rubidium clock unit to tame the frequency source.
4. The timing server supporting NTP / PTP dynamic configuration according to claim 1, characterized in that: The network timing unit is composed of an ARM core board, a power supply unit, an RTC unit, an SD card unit and a network card unit, runs a Linux system, and has an onboard ROM.
5. The timing server supporting NTP / PTP dynamic configuration according to claim 1, characterized in that: It also includes a filtering unit for filtering and processing the data received by the network timing unit.
6. The timing server supporting NTP / PTP dynamic configuration according to claim 1, characterized in that: When performing timing communication, it also includes: Receive time information and status information from a satellite signal source; determine whether the satellite signal source is in an available state according to the status information; When the satellite is locked, the time information is solved and post-processed.
7. The timing server supporting NTP / PTP dynamic configuration according to claim 6, characterized in that: The post-processing process is specifically as follows: The filter unit receives the reference pulse signal; after comparing the pulse signal with the main frequency of the timing server, the deviation value of the network timing unit is obtained; After the signal is denoised, it is filtered using dynamic window sliding and weighted averaging to obtain a reference pulse signal.
8. The timing server supporting NTP / PTP dynamic configuration according to claim 7, characterized in that: The specific process of calculating time data is: Receiving sending end timestamp information and receiving end timestamp information; Calculate the time delay between network links; Finally, the terminal device makes up for the link delay when receiving the time and obtains the time data.
Citation Information
Patent Citations
Beidou timing and punctuality system based on VPX board card in complex environment
CN108628157A
Multi-system time source redundancy timing equipment
CN210428114U