Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Clock synchronization method based on PTP (Precision Time Protocol) and reflective memory network

A technology of PTP protocol and reflective memory network, which is applied in synchronization devices, digital transmission systems, electrical components, etc., and can solve the problems of low clock synchronization accuracy.

Active Publication Date: 2013-08-14
北京飞秒留声科技有限公司
View PDF3 Cites 16 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0015] The present invention proposes a clock synchronization method based on the PTP protocol and reflective memory network in order to solve the problem that the existing communication method has low precision of clock synchronization due to network instability

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Clock synchronization method based on PTP (Precision Time Protocol) and reflective memory network
  • Clock synchronization method based on PTP (Precision Time Protocol) and reflective memory network
  • Clock synchronization method based on PTP (Precision Time Protocol) and reflective memory network

Examples

Experimental program
Comparison scheme
Effect test

specific Embodiment approach 1

[0031] Specific implementation mode one: see figure 1 and Figure 4 Describe this embodiment, the clock synchronization method based on the PTP protocol and the reflective memory network described in this embodiment, this method is suitable for the clock synchronization between the host and the node device in the virtual simulation test, inserting a reflective memory network on the host and the node device The memory card and the reflective memory card carry out data transmission through an optical fiber, and the specific process of the method is as follows:

[0032] Step 1: Build a clock based on the PTP protocol in the host as the master clock, and build a clock based on the PTP protocol in the node device as the slave clock;

[0033] Step 2: Master clock at TM 1 [1] Send Sync information to the slave clock at any time, and record the exact time TM sent 1 [1], then the time TM when the Sync information is sent in the FollowUp information 1 [1] Send to the slave clock, a...

specific Embodiment approach 2

[0046] Specific embodiment two: this embodiment is a further limitation of the clock synchronization method based on the PTP protocol and the reflective memory network described in the specific embodiment one, in the step one, constructing a clock based on the PTP protocol in the host as the master clock and The method of constructing a clock based on the PTP protocol in the node device as the slave clock is the same, and the method of constructing the clock based on the PTP protocol in the host as the master clock is:

[0047] Obtain the clock oscillation frequency of the CPU of the host computer and the count value of the timer through the API interface of the Windows system to construct a logical clock,

[0048] t=t 0 +Δt

[0049] Among them, t 0 Indicates the count value of the CPU timer of the host, Δt indicates the deviation of the logic time relative to the CPU count, t indicates the current logic time, that is, the main clock constructed with logic time as the unit, ...

specific Embodiment approach 3

[0055] Specific embodiment three: this embodiment is a further limitation of the clock synchronization method based on PTP protocol and reflective memory network described in specific embodiment one, to N offset values ​​Offset[1:N] described in step four Perform filtering to obtain filtered data Data'[1:P], said Data'[1:P]=f m,n (Data[1:N]), where P=N-m-n, m and n are positive integers less than N, f m,n (Data[1:N]) indicates a function to sort the measured N data and eliminate m small values ​​and n large values.

[0056] The m small values ​​and n large values ​​described in this embodiment represent the m values ​​on the side of the small number among the N data arranged from small to large, and the n large values ​​are m small values Indicates the n values ​​on the side of the larger number among the N data arranged from small to large,

[0057] In the present invention, m and n are determined according to the size of the data volume and the stability of the data, and M...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

A clock synchronization method based on a PTP (Precision Time Protocol) and a reflective memory network relates to the technical field of virtual simulation tests. According to the invention, the problem of the existing communication method that the clock synchronization precision is low due to unstable network can be solved, and the clock synchronization method based on the PTP and the reflective memory network is provided. The method is applicable to the clock synchronization between a host and node equipment in a virtual simulation experiment. A reflective memory card is inserted into each of the host and the node equipment respectively, and the data transmission is carried out by a fiber between the reflective memory cards in the host and the node equipment. The method comprises the following steps: a main clock and a slave clock are constructed; an offset correction phase is carried out; the offset correction is repeated; an offset value is obtained by a data processing algorithm; an optimal fitting value is obtained; a delay correction phase is carried out; the relay correction is repeated; a delay value is obtained by the data processing algorithm; and an optimal fitting value is obtained to complete the synchronization of the main clock and the slave clock. The method is suitable for virtual simulation tests.

Description

technical field [0001] The invention relates to the technical field of virtual simulation experiment. Background technique [0002] In the virtual simulation test, a distributed system requires a global clock to coordinate the work of each device. In addition, in order to determine the order of various events in the system, coordinate the transmission of various messages, etc., to control and monitor the state of the system, it is also necessary to unify the local time of each component in the system and perform clock synchronization. [0003] The PTP (Precision Time Protocol) protocol is a precision clock synchronization protocol defined in IEEE-1588, which provides a clock synchronization method in a local area network. The PTP protocol is mainly aimed at relatively localized and networked systems. Well, the internal components are designed for a relatively stable environment. Because the PTP protocol is simple to implement and occupies less network and computing resourc...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): H04L7/00
Inventor 魏长安邓舒予宋波杨京礼姜守达
Owner 北京飞秒留声科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products