CN113746588A - Ethernet network-based equipment clock error detection method - Google Patents

Ethernet network-based equipment clock error detection method Download PDF

Info

Publication number
CN113746588A
CN113746588A CN202110985925.6A CN202110985925A CN113746588A CN 113746588 A CN113746588 A CN 113746588A CN 202110985925 A CN202110985925 A CN 202110985925A CN 113746588 A CN113746588 A CN 113746588A
Authority
CN
China
Prior art keywords
message
time
equipment
test
time system
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.)
Pending
Application number
CN202110985925.6A
Other languages
Chinese (zh)
Inventor
蔡奕慰
吕遐东
张岿
张凯
于侃
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Ship Development and Design Centre
Original Assignee
China Ship Development and Design Centre
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Ship Development and Design Centre filed Critical China Ship Development and Design Centre
Priority to CN202110985925.6A priority Critical patent/CN113746588A/en
Publication of CN113746588A publication Critical patent/CN113746588A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0682Clock or time synchronisation in a network by delay compensation, e.g. by compensation of propagation delay or variations thereof, by ranging

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

The invention discloses an equipment clock error detection method based on an Ethernet network, which belongs to the field of integration design of a water surface ship information system. The error value can be used for monitoring the time synchronization state of the equipment by the ship information system and is a reference basis for the ship information system to master the working state of each equipment; the error value can be fed back to the relevant equipment of the time-sensitive service, and is used for the equipment to compensate and correct the clock information of the received target information, control command and other information, so as to ensure the correct execution of the service.

Description

Ethernet network-based equipment clock error detection method
Technical Field
The invention belongs to the field of integrated design of a water surface ship information system, and particularly relates to an equipment clock error detection method based on an Ethernet network.
Background
At present, the ethernet network is widely used in a ship information system, and each internet access device mainly completes transmission and interaction of various service information through the network. In order to ensure the clock accuracy of each internet access device, each internet access device performs clock time synchronization with the whole-ship time management device in different modes.
The equipment of the ship information system completes data transmission of detection information, command commands, control commands and the like through an Ethernet network, timestamp information of an equipment host clock is marked in information messages interacted among different equipment, and each equipment performs related calculation processing by utilizing the timestamp information. The equipment of the ship information system and the whole ship time system equipment carry out clock time synchronization in a plurality of different modes, but the time synchronization precision of different equipment is inconsistent, and positive or negative errors exist between the equipment and a time reference value, so that the host clock error value between different equipment is uncertain, the accumulated error value of the host clocks of the two equipment is possibly larger, and adverse effects are brought to application services with higher requirements on real-time performance and time synchronization precision, such as tracking detection of the ship information system.
Disclosure of Invention
Aiming at the defects or the improvement requirements in the prior art, the invention provides an equipment clock error detection method based on an Ethernet network, which utilizes the existing Ethernet network of a ship information system, sends a clock detection message to equipment to be detected through time system equipment, detects an error value between the equipment clock to be detected and the time system equipment clock, and feeds back the error value to relevant equipment for the equipment to perform time compensation processing during data calculation.
In order to achieve the above object, the present invention provides a method for detecting a clock error of an ethernet-based device, comprising:
establishing a data transmission detection model of the ship information system so as to carry out abstract description on the data transmission process of a test object of the ship information system;
sending a detection message to the tested equipment through the time system equipment in the ship information system data transmission detection model, and sending a feedback message to the time system equipment after the tested equipment receives the detection message;
and determining an error value between the clock of the tested device and the clock of the time system device according to the time when the time system device sends the detection message, the time when the tested device sends the feedback message and the time when the time system device receives the feedback message.
In some optional embodiments, the ship information system data transmission detection model includes a time system device and a device under test, the time system device and the device under test perform network intercommunication through a ship information system network switch, and both the time system device and the device under test include an application layer, an operating system layer and a physical layer.
In some optional embodiments, the detection packet is divided into a test packet and a feedback packet, and the test packet and the feedback packet have the same data structure, and both include a total packet length, a sender IP address, a receiver IP address, a packet identifier and a timestamp, and the test packet and the feedback packet are distinguished by the packet identifier.
In some optional embodiments, sending a detection message to a device under test by a time system device in a ship information system data transmission detection model, and sending a feedback message to the time system device after the device under test receives the detection message, includes:
carrying out information transmission between the time system equipment and the tested equipment by adopting a UDP protocol, sending a test message to the tested equipment by the time system equipment, and recording a time value T1 of the sending time of the test message;
after receiving the test message, the application layer program on the tested device host sends a feedback message to the time system device, and the time stamp field of the feedback message is filled in the time value T2 of the sending time;
and the time system equipment receives the feedback message and records the time value T3 of the receiving moment of the feedback message.
In some alternative embodiments, the composition is prepared from Δ TkDetermining the error value delta T between the clock of the tested device and the clock of the time system device at the current test time as (2T2-T1-T3)/2k
In some alternative embodiments, the composition is prepared by
Figure BDA0003230634590000031
And determining an error value delta T between the final clock of the tested device and the clock of the time system device, wherein N is the number of times of sending the test message by the time system device.
In general, compared with the prior art, the above technical solution contemplated by the present invention can achieve the following beneficial effects:
the invention utilizes the existing network and equipment resources of the ship information system, and can calculate the clock error value of the equipment host clock and the time system equipment clock of the ship information system. The error value can be used for monitoring the time synchronization state of the equipment by the ship information system and is a reference basis for the ship information system to master the working state of each equipment; the error value can be fed back to the relevant equipment of the time-sensitive service, and is used for the equipment to compensate and correct the clock information of the received target information, control command and other information, so as to ensure the correct execution of the service.
Drawings
FIG. 1 is a schematic diagram of a data transmission model of a test object according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a detection message transceiving process according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. In addition, the technical features involved in the embodiments of the present invention described below may be combined with each other as long as they do not conflict with each other.
Example one
The embodiment provides a method for detecting a clock error of equipment based on an Ethernet network, which comprises the following specific implementation processes:
(1) as shown in fig. 1, a data transmission detection model of a ship information system is established, abstract description is performed on a data transmission process of a test object of the ship information system, equipment to which the ship information system belongs is directly accessed to a network switch of the ship information system, and time system equipment is in network intercommunication with equipment to be tested; a typical tested device host receives network messages, passes through a host physical layer and an operating system layer, and is received and processed by an application layer program of the host;
(2) designing a detection message for clock error testing, wherein the detection message is divided into a test message and a feedback message, the data structures of the messages are the same, the messages comprise fields such as the total length of the messages, the IP address of a sender, the IP address of a receiver, message identification, timestamp and the like, and the types of the test message and the feedback message are distinguished through the message identification;
(3) designing a receiving and transmitting processing mechanism of the detection message, and carrying out information transmission between the time management equipment and the equipment to be detected by adopting a UDP (user Datagram protocol) protocol; sending a test message to the tested equipment by the time system equipment, and recording a time value T1 of the sending time of the test message; after receiving the test message, the application layer program on the tested device host sends a feedback message to the time system device, and the time stamp field of the feedback message is filled in the time value T2 of the sending time of the feedback message; the time system equipment receives the feedback message and records a time value T3 of the receiving moment of the feedback message;
(4) the clock error value of the tested device and the time system device is delta T, and the transmission processing time consumption of the test message and the feedback message through the switch, the host physical layer and the operating system layer is TCThen the calculation relationships of T1, T2, T3 are as follows:
T2-T1=ΔT+TC
T3-T2=-ΔT+TC
(5) calculating according to the formula in the step (4), and testing the current time by delta TkThe calculation method comprises the following steps:
ΔTk=(2T2-T1-T3)/2
(6) the time system equipment sends test messages to the tested equipment periodically at certain time intervals, the tested equipment sends feedback messages after receiving the test messages, the test messages are repeated for N times according to the step (3), and the clock error delta T is calculated according to the step (4) and the step (5)1、ΔT2、ΔT3And Δ TNDevice under testThe clock error value with the time system device is:
Figure BDA0003230634590000051
the time interval for the time system device to send the test packet to the device under test may be determined according to actual needs, and this embodiment is not limited uniquely.
Example two
The detection messages are divided into test messages and feedback messages, and the message structure is shown in table 1:
table 1 test message structure
Total Length (Total Length)
Message identification (Message ID)
Source-id H
Source-id L
Destination-id H
Destination-id (Destination-id) L
Time stamp H
Time stamp L
Wherein the content of the first and second substances,
(1) total Length of message (Total Length): the length is 16 bits, which represents the length of the whole message (including 2 bytes), and the Byte (Byte) is taken as a unit;
(2) message flag (Message ID): the length is 16 bits, the message identifier of the test message is set to 0xFFF1, and the message identifier of the feedback message is set to 0xFFF 2:
(3) sender IP address (Source-id) and receiver IP address (Destination-id): respectively representing the IP address of a sender and the IP address of a receiver, and each is 32 bits;
(4) time stamp: and representing the moment of message sending, wherein the timestamp H and the timestamp L respectively occupy 32 bits.
The transport layer of the network adopts UDP protocol, and conforms to RFC768 and RFC793 standards. The protocol port involved in the transport layer (UDP) is 21680 (decimal).
According to the message transceiving flow of fig. 2, the time-series device sends a test message to the tested device, and the tested device immediately sends a feedback message after receiving the test message; the time system equipment sends 10 times of test messages to the tested equipment in total according to the time period of 2 seconds, 10 clock error values are respectively calculated, and then the average value of 10 times of detection is calculated, so that the clock errors of the tested equipment and the time system equipment are determined.
It should be noted that, according to the implementation requirement, each step/component described in the present application can be divided into more steps/components, and two or more steps/components or partial operations of the steps/components can be combined into new steps/components to achieve the purpose of the present invention.
It will be understood by those skilled in the art that the foregoing is only a preferred embodiment of the present invention, and is not intended to limit the invention, and that any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (6)

1. A method for detecting clock error of equipment based on Ethernet network is characterized by comprising the following steps:
establishing a data transmission detection model of the ship information system so as to carry out abstract description on the data transmission process of a test object of the ship information system;
sending a detection message to the tested equipment through the time system equipment in the ship information system data transmission detection model, and sending a feedback message to the time system equipment after the tested equipment receives the detection message;
and determining an error value between the clock of the tested device and the clock of the time system device according to the time when the time system device sends the detection message, the time when the tested device sends the feedback message and the time when the time system device receives the feedback message.
2. The method according to claim 1, wherein the ship information system data transmission detection model comprises a time system device and a device under test, the time system device and the device under test are in network intercommunication through a ship information system network switch, and the time system device and the device under test each comprise an application layer, an operating system layer and a physical layer.
3. The method according to claim 2, wherein the detection message is divided into a test message and a feedback message, and the test message and the feedback message have the same data structure and each include a total message length, a sender IP address, a receiver IP address, a message identifier and a timestamp, and the test message and the feedback message are distinguished by the message identifier.
4. The method of claim 3, wherein the sending of the detection message to the device under test by the time system equipment in the ship information system data transmission detection model, and the sending of the feedback message to the time system equipment by the device under test after receiving the detection message, comprises:
carrying out information transmission between the time system equipment and the tested equipment by adopting a UDP protocol, sending a test message to the tested equipment by the time system equipment, and recording a time value T1 of the sending time of the test message;
after receiving the test message, the application layer program on the tested device host sends a feedback message to the time system device, and the time stamp field of the feedback message is filled in the time value T2 of the sending time;
and the time system equipment receives the feedback message and records the time value T3 of the receiving moment of the feedback message.
5. The method of claim 4, wherein Δ T is measured bykDetermining the error value delta T between the clock of the tested device and the clock of the time system device at the current test time as (2T2-T1-T3)/2k
6. The method of claim 5, wherein the method is performed by
Figure FDA0003230634580000021
And determining an error value delta T between the final clock of the tested device and the clock of the time system device, wherein N is the number of times of sending the test message by the time system device.
CN202110985925.6A 2021-08-26 2021-08-26 Ethernet network-based equipment clock error detection method Pending CN113746588A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110985925.6A CN113746588A (en) 2021-08-26 2021-08-26 Ethernet network-based equipment clock error detection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110985925.6A CN113746588A (en) 2021-08-26 2021-08-26 Ethernet network-based equipment clock error detection method

Publications (1)

Publication Number Publication Date
CN113746588A true CN113746588A (en) 2021-12-03

Family

ID=78733087

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110985925.6A Pending CN113746588A (en) 2021-08-26 2021-08-26 Ethernet network-based equipment clock error detection method

Country Status (1)

Country Link
CN (1) CN113746588A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007163330A (en) * 2005-12-15 2007-06-28 Yokogawa Electric Corp Time information communication system
CN104506268A (en) * 2014-12-15 2015-04-08 飞天诚信科技股份有限公司 Method for implementing time calibration
CN107046450A (en) * 2015-11-05 2017-08-15 罗伯特·博世有限公司 Clock Simultaneous Monitoring in network based on Ethernet
CN107592177A (en) * 2017-08-30 2018-01-16 江西昌河航空工业有限公司 A kind of clock synchronizing method of helicopter avionics system test network
CN109981206A (en) * 2019-02-26 2019-07-05 深圳猛犸电动科技有限公司 Time synchronization method, device, system and terminal device, storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007163330A (en) * 2005-12-15 2007-06-28 Yokogawa Electric Corp Time information communication system
CN104506268A (en) * 2014-12-15 2015-04-08 飞天诚信科技股份有限公司 Method for implementing time calibration
CN107046450A (en) * 2015-11-05 2017-08-15 罗伯特·博世有限公司 Clock Simultaneous Monitoring in network based on Ethernet
CN107592177A (en) * 2017-08-30 2018-01-16 江西昌河航空工业有限公司 A kind of clock synchronizing method of helicopter avionics system test network
CN109981206A (en) * 2019-02-26 2019-07-05 深圳猛犸电动科技有限公司 Time synchronization method, device, system and terminal device, storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
袁炳南;张国旺;: "遥测网络时间同步技术实现及检测方法研究", 计算机测量与控制, no. 04 *

Similar Documents

Publication Publication Date Title
CN106059701B (en) A kind of clock that Ethernet is triggered by capturing the Protocol Control frame testing time synchronizes the device of correction value
US6327274B1 (en) Method for estimating relative skew between clocks in packet networks
US20090135724A1 (en) Method and apparatus of RTP control protocol (RTCP) processing in real-time transport protocol (RTP) intermediate systems
US8345561B2 (en) Time monitor
US20110064091A1 (en) Method and apparatus for monitoring packet networks
EP2807785B1 (en) Packet-based timing measurement
CA2652594A1 (en) Network time protocol precision timestamping service
CN103067112A (en) Clock synchronization method and device and network equipment
US20220248353A1 (en) Synchronization method and device
CN101547063A (en) Method and system for testing forward delay
US11641245B2 (en) Timestamp confidence level
CN112968747A (en) Time calibration method and device, computer equipment and storage medium
CN102523263A (en) Sharing access host quantity monitoring method, device thereof and system thereof
CN104618922B (en) Measurement result matching process and device in a kind of RTT measurement and positionings system
CN108964822B (en) Method and system for acquiring network time in parallel by multiple schemes
CN113746588A (en) Ethernet network-based equipment clock error detection method
US8289868B2 (en) Network device and method of measuring upstream bandwidth employed thereby
US10784976B2 (en) Nanosecond accuracy of timestamping by leveraging alignment marker and method for producing the same
CN110784337A (en) Cloud service quality monitoring method and related product
CN107547620B (en) Response time obtaining method and device
US11907754B2 (en) System to trigger time-dependent action
US7587449B2 (en) Method and system for calculating performance metrics using backchannel messaging and information pattern matching
CN114884605A (en) Method for realizing time synchronization of network nodes based on FPGA
US20100050028A1 (en) Network device and method for simultaneously calculating network throughput and packet error rate
CN110138819B (en) Host state detection method and system of network switch

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