Agent-based intelligent clock time synchronization device and use method

Through the intelligent clock time synchronization device and the use of agent technology to automatically collect and adjust clock data, the problem of low clock inspection and time synchronization efficiency in the existing technology is solved, and efficient and accurate clock synchronization and historical record management are achieved.

CN114138057BActive Publication Date: 2024-10-11GUANGXI POWER GRID CORP
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202111375526.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-19
Publication Date
2024-10-11
Estimated Expiration
2041-11-19

AI Technical Summary

Technical Problem

In the existing technology, the provincial centralized metering automation master station clock has high clock accuracy requirements, but requires operation and maintenance personnel to manually inspect and synchronize the time every day, resulting in low operation and maintenance efficiency and complicated operations, and errors may occur due to manual operations.

Method used

An agent-based intelligent clock time synchronization device is designed, including a communication module, an inspection module, a time synchronization module and a display module. It realizes one-click inspection by automatically collecting clock data information, analyzing and adjusting the time of abnormal servers. and timing, reducing the complexity of manual operations.

Benefits of technology

It improves the efficiency of clock inspection and time synchronization in the computer room, reduces errors caused by manual operations, realizes automated clock synchronization and historical record management, and improves the accuracy of the clock.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114138057B_ABST
    Figure CN114138057B_ABST
Patent Text Reader

Abstract

The present invention provides an agent-based intelligent clock timing device and a method of use, which relates to the field of power statistics, including a communication module, an inspection module, a timing module and a display module; the inspection module is connected to the communication module, the timing module and the display module respectively; the communication module is connected to the server; the inspection module is used to collect clock data information and perform statistical analysis on the information; the timing module is used to adjust the time of abnormal servers; the display module is used to display a user exchange interface. Compared with the traditional solution, this solution realizes the functions of intelligent, one-button inspection and timing. It improves the work efficiency of clock inspection and timing of each partition of the computer room and reduces the mistakes caused by the complexity of manual operation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of electric power statistics, and in particular to an agent-based intelligent clock timing device and a use method thereof. Background Art

[0002] With the implementation of peak-valley time-of-use electricity prices, the requirements for the clock accuracy of metering terminals and meters are getting higher and higher; and the provincial centralized metering automation master station clock, as the clock source for metering terminals and meters, needs to ensure high clock accuracy.

[0003] In order to avoid the significant impact of clock deviation, the operation and maintenance personnel are currently required to inspect the clocks of each server in the computer room every day, and manually fill in the clock inspection daily report after the inspection. If the clock is abnormal, it is necessary to manually adjust the time. This process is time-consuming and labor-intensive, with low operation and maintenance efficiency and complex operations. Summary of the invention

[0004] The present invention aims to provide an agent-based intelligent clock time synchronization device and a use method thereof, which can improve work efficiency and reduce labor costs.

[0005] To achieve the above objectives, the present invention is implemented through the following technical solutions:

[0006] On the one hand, the present invention provides an agent-based intelligent clock synchronization device, including a communication module, an inspection module, a synchronization module and a display module; the inspection module is connected to the communication module, the synchronization module and the display module respectively; the communication module is connected to a server; the inspection module is used to collect clock data information and perform statistical analysis on the information; the synchronization module is used to adjust the time of an abnormal server; and the display module is used to display a user exchange interface.

[0007] Furthermore, the clock data information includes the current time of the server, the clock deviation between the server and the clock source, and the network delay between the inspection device terminal and the server.

[0008] Furthermore, the inspection module synchronizes the clock data information to the time synchronization module.

[0009] Furthermore, after the time synchronization is completed, the time synchronization module transmits the time synchronization information back to the processor module.

[0010] Furthermore, the time synchronization information includes the server time before the time synchronization and the server time after the time synchronization.

[0011] On the other hand, the present invention provides a method for using the agent-based intelligent clock time synchronization device, comprising the following steps:

[0012] The first step is to connect the device to the server in the area through the communication module and read the server configuration file;

[0013] The second step is to start the inspection module, extract the server information in the area, obtain clock-related information, and analyze the abnormal servers;

[0014] The third step is to start the time synchronization module and synchronize the clocks of the servers that are out of sync in the inspection results.

[0015] The fourth step is to save all operation data, form a historical record, and generate a report file.

[0016] Furthermore, the configuration file of the server includes the name, IP, location, cabinet owner and region.

[0017] Furthermore, when reading the server configuration file, an authentication key is required.

[0018] Furthermore, during the inspection process, each time the operator performs a time synchronization operation, it will be recorded in the system.

[0019] Beneficial effects of the present invention:

[0020] The present invention realizes intelligent one-key inspection and time synchronization functions through inspection modules and time synchronization modules, thereby improving the work efficiency of inspection and time synchronization of clocks in each partition of the computer room and reducing the mistakes caused by complicated manual operations. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1 It is a flow chart of the method of using the agent-based intelligent clock synchronization device; DETAILED DESCRIPTION

[0022] The embodiments of the present disclosure are described in detail below with reference to the accompanying drawings.

[0023] The following describes the embodiments of the present disclosure through specific examples, and those skilled in the art can easily understand other advantages and effects of the present disclosure from the contents disclosed in this specification. Obviously, the described embodiments are only a part of the embodiments of the present disclosure, rather than all of the embodiments. The present disclosure can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present disclosure. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present disclosure.

[0024] See also Figure 1The present invention provides an agent-based intelligent clock timing device, including a communication module, a patrol module, a timing module and a display module; the patrol module is connected to the communication module, the timing module and the display module respectively; the communication module is connected to the server; the patrol module is used to collect clock data information and perform statistical analysis on the information; the timing module is used to adjust the time of abnormal servers; the display module is used to display the user exchange interface. It should be noted that in actual scenarios, servers are distributed in different areas, and each area has a server as a clock source. When the patrol device terminal is connected to the network where a certain area is located, the device will automatically identify and switch to the area, and then the server in the partition can be patrolled with one click. Perform statistical analysis, query abnormal servers, find the clock deviation pattern, and foresee possible problems. After completing the statistics, control the timing module to start on the display module to complete the timing operation of all abnormal servers. The above operations are all performed on the display module.

[0025] Furthermore, in a preferred embodiment of the present application, the inspection module synchronizes the clock data information to the time synchronization module. It should be noted that after obtaining the inspection results, the time synchronization operation can be performed on the device terminal, and the time synchronization operation can be performed on all servers with one click, or on a certain asynchronous server. The device terminal will initiate a connection with the agent of the specified server and send a clock synchronization instruction; the agent program of the server will use the NTP protocol to synchronize with the clock source in its area, and finally return the synchronization result to the inspection device terminal.

[0026] The method for using the agent-based intelligent clock synchronization device includes the following steps:

[0027] The first step is to connect the device to the server in the area through the communication module and read the server configuration file.

[0028] The second step is to start the inspection module, extract the server information in the area, obtain clock-related information, and analyze the abnormal servers.

[0029] The third step is to start the time synchronization module and synchronize the clocks of the servers that are out of sync in the inspection results.

[0030] The fourth step is to save all operation data, form a historical record, and generate a report file.

[0031] S101, the communication module connects to the server and reads the configuration file;

[0032] That is, to manage server information. Each server belongs to and can only belong to a certain area. The server information includes: name, IP, location, cabinet owner, area, etc. The IP information will be used to connect to the corresponding server agent for inspection and time synchronization; the location information is to let the operator know the specific location of the server, such as the rack and number.

[0033] S102, start the inspection module, extract the server information in the area, and obtain clock related information;

[0034] After the inspection module is connected to the network where the area is located, it connects to the servers in the area. After a one-click inspection, the inspection device terminal will concurrently connect to the server agent in the area. The server IP information is required to connect to the server agent, conduct inspections and obtain clock-related information, including: the current time of the server, the clock deviation between the server and the clock source, the network delay between the inspection device terminal and the server, etc. After obtaining the clock inspection results of all servers in the area, statistical analysis is performed to calculate the total number of servers, the number of synchronized servers, the number of asynchronous servers, the number of servers that failed to connect, and the maximum clock deviation, and display them on the display module. For a certain server, if its deviation from the clock source is greater than the clock deviation abnormality threshold in the configuration information, it is considered to be asynchronous. After the inspection is completed, the inspection results will be displayed on the display module of the device.

[0035] In order to facilitate continuous observation, the device also implements a scheduled inspection function. The operator can perform scheduled inspections at specified time intervals at the device terminal, such as an inspection every 30 minutes. The device will automatically execute the scheduled task, perform an automatic inspection every 30 minutes, and record the inspection results.

[0036] S103, start the time synchronization module to synchronize the clocks of the servers that are out of sync in the inspection results;

[0037] After obtaining the inspection results, you can perform time synchronization operations on the device terminal. You can synchronize all servers with one click, or synchronize a specific asynchronous server. The device terminal will initiate a connection with the agent of the specified server and send a clock synchronization instruction; the server agent program will use the ntp protocol to synchronize with the clock source in its area, and finally return the synchronization result to the synchronization device terminal. The result information returned by the clock synchronization includes: server time before synchronization and server time after synchronization. Each synchronization will be recorded by the system.

[0038] S104. Save all operation data, form a historical record, and generate a report file.

[0039] This device provides the function of exporting inspection reports, which can export inspection results to files in PDF format. Operators can choose the saving path by themselves. Some statistical analysis can be performed on the report data to find the clock deviation pattern and foresee possible problems. For example, if the top ten servers with the most inspection asynchronization times are counted by month / quarter, the common characteristics of these servers can be analyzed to find out the reasons for the abnormal clock synchronization and correct them, thus improving the accuracy of the server clock.

[0040] The device system of the present invention has two parts in implementation: the inspection device terminal and the agent end. The inspection device terminal is a portable device, and the agent end is an independent program that needs to be deployed on all servers that need to be inspected in the area.

[0041] Among them, the inspection device terminal is responsible for the realization of control and management functions, and the agent is responsible for responding to inspection and time synchronization requests and returning results. In the clock inspection scenario of enterprise servers, different areas may be network isolated for security reasons. Therefore, in order to implement the inspection of a regional server, the inspection device terminal needs to be connected to the network where the inspection area is located and accessed through the local area network.

[0042] The interfaces provided by the agent include inspection interface and time synchronization interface, both of which are Http requests. The parameters are described as follows:

[0043] Table 1 Inspection interface

[0044]

[0045] Table 2 Timing interface

[0046]

[0047] To improve system security, the communication between the inspection device terminal and the agent needs to be authenticated. In the current design, the interface request uses https for secure encrypted transmission, and adds a token authorization parameter to the Http header parameter of the interface request for identity authentication. An illegal token will fail the request and prompt "unauthorized".

[0048] The agent-side program needs to be deployed on the inspection server. As a non-business auxiliary program, its running state should not occupy too many server system resources (CPU, memory). At the same time, due to the large number of servers, the convenience of deployment must be guaranteed. To achieve the above goals, the agent-side program of this device system is developed using the Go language. Compared with the Java language, the Go language has no virtual machine, so it is lighter at runtime and occupies much less system resources than Java, which greatly saves the cost of server resources. In addition, after compilation, the Go language directly generates a single-file binary executable file, which is very convenient to deploy and does not require the installation of additional programs, which is friendly to operation and maintenance.

[0049] In the description of the present invention, it is necessary to understand that the terms "middle", "length", "up", "down", "front", "back", "vertical", "horizontal", "inside", "outside", "radial", "circumferential" and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention.

[0050] In the present invention, unless otherwise clearly specified and limited, the first feature "on" the second feature may be that the first and second features are in direct contact, or the first and second features are in indirect contact through an intermediate medium. "Multiple" means at least two, such as two, three, etc., unless otherwise clearly and specifically limited.

[0051] In the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral one; it can be a mechanical connection, an electrical connection, or communication with each other; it can be a direct connection, or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements, unless otherwise clearly defined. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0052] The above is only for explaining the implementation mode of the present invention and is not intended to limit the present invention. For those skilled in the art, any modification, equivalent substitution, improvement, etc. made within the spirit and principle of the present invention without creative work should be included in the protection scope of the present invention.

Claims

1. A method for using an agent-based intelligent clock time synchronization device, applied to an agent-based intelligent clock time synchronization device, characterized in that: The agent-based intelligent clock timing device includes a communication module, a patrol module, a timing module and a display module; the patrol module is connected to the communication module, the timing module and the display module respectively; the communication module is connected to the server; the patrol module is used to collect clock data information and perform statistical analysis on the information; the timing module is used to adjust the time of the abnormal server; the display module is used to display the user exchange interface; the clock data information includes the current time of the server, the clock deviation between the server and the clock source, and the network delay between the patrol device terminal and the server, and the patrol module synchronizes the clock data information to the timing module; In actual scenarios, servers are distributed in different areas, and each area has a server as a clock source. The usage method includes the following steps: The first step is to connect the device to the server in the area through the communication module and read the server configuration file; The second step is to start the inspection module, extract the server information in the area, obtain clock-related information, and analyze the abnormal servers; The third step is to start the time synchronization module and synchronize the clocks of the servers that are out of sync in the inspection results. The fourth step is to save all operation data, form a historical record, and generate a report file.

2. The method for using the agent-based intelligent clock timing device according to claim 1, characterized in that: After the time synchronization is completed, the time synchronization module transmits the time synchronization information back to the processor module.

3. The method for using the agent-based intelligent clock timing device according to claim 2, characterized in that: The time synchronization information includes the server time before the time synchronization and the server time after the time synchronization.

4. The method for using the agent-based intelligent clock timing device according to claim 1, characterized in that: The configuration file of the server includes the name, IP, location, cabinet owner and region.

5. The method for using the agent-based intelligent clock timing device according to claim 1, characterized in that: When reading the server configuration file, you need to provide an authentication key.

6. The method for using the agent-based intelligent clock timing device according to claim 1, characterized in that: During the inspection process, every time the operator performs a time synchronization operation, it will be recorded in the system.

Citation Information

Patent Citations

  • Method and device for quick inspection of frequency deviation states of clock boards

    CN102480327A

  • Video decompression

    CN1144434A

  • Network device having time correction function

    CN1805440A

  • Detecting clock drift in networked devices through monitoring client buffer fullness

    CN1825955A