Supercharge Your Innovation With Domain-Expert AI Agents!

Method and device for calculating absolute time of message sending and receiving of equipment, equipment and medium

An absolute time and relative time technology, applied in the field of communication, can solve problems such as high CPU operating pressure and increased operating overhead

Active Publication Date: 2019-09-10
北京东土军悦科技有限公司
View PDF6 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In practical applications, when the CPU receives a large number of data packets, there will be a large number of bursts of PTP packets. At this time, the CPU is under great pressure. At the same time, it is necessary to frequently access the relevant time stamp registers of the switching chip, which further increases the CPU operation. overhead

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
  • Method and device for calculating absolute time of message sending and receiving of equipment, equipment and medium
  • Method and device for calculating absolute time of message sending and receiving of equipment, equipment and medium
  • Method and device for calculating absolute time of message sending and receiving of equipment, equipment and medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0025] figure 1 The flow chart of a method for calculating the absolute time of sending and receiving messages of a device provided by Embodiment 1 of the present invention. This embodiment is applicable to the case of calculating the absolute time of sending and receiving event messages of a PTP clock device. This method can be provided by the embodiment of the present invention The calculation means of the absolute time of sending and receiving messages of the device is executed, and the means can be realized by software and / or hardware, and can generally be integrated in a processor.

[0026] Such as figure 1 As shown, the method of this embodiment specifically includes:

[0027] S110. Obtain the relative time of sending and receiving, the relative time of reference calculation, and the absolute time of reference calculation respectively corresponding to the message receiving phase and / or the message forwarding phase of the event message.

[0028] Wherein, in the phase of...

Embodiment 2

[0043] figure 2 It is a flow chart of a method for calculating the absolute time when a device sends and receives a message provided in Embodiment 2 of the present invention. This embodiment is embodied on the basis of the foregoing embodiments, and explains in detail the calculation method of the absolute time when a device sends and receives a message during the message receiving phase.

[0044] Wherein, in the message receiving phase, the relative sending and receiving time is the relative time when the switch chip receives the event message, and the reference calculation relative time is the relative time when the CPU receives the event message.

[0045] The relative time of sending and receiving corresponding to the message receiving phase of the event message can be obtained through the CPU, specifically:

[0046] The relative time of sending and receiving added in the time stamp field is obtained from the event message reported by the switch chip, wherein the time sta...

Embodiment 3

[0080] image 3 It is a flow chart of a method for calculating the absolute time when a device sends and receives a message provided in Embodiment 3 of the present invention. This embodiment is embodied on the basis of the foregoing embodiments, and explains in detail the calculation method of the absolute time when a device sends and receives a message during the message forwarding phase.

[0081] Wherein, in the message forwarding stage, the relative time of sending and receiving is the relative time when the event message leaves the switch chip, and the relative time for reference calculation is the relative time when the CPU sends the event message to the switch chip.

[0082] Based on the relative time of sending and receiving, the relative time of reference calculation and the absolute time of reference calculation, the absolute time of sending and receiving that matches the relative time of sending and receiving can be calculated, specifically:

[0083] If it is determ...

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

The embodiment of the invention discloses a method and a device for calculating absolute time of message sending and receiving of equipment, equipment and a medium. The method comprises the followingsteps: acquiring receiving and transmitting relative time, reference calculation relative time and reference calculation absolute time which respectively correspond to a message receiving stage and / ora message forwarding stage of an event message; in the message receiving stage, the relative time of receiving and transmitting is the relative time of receiving the event message by the switching chip, reporting the event message after receiving the event message through the switching chip, and actively reporting the event message to the CPU after receiving a CPU query instruction through the switching chip in a message forwarding stage when the relative time of receiving and transmitting is the relative time of leaving the event message from the switching chip; and according to the transmitting-receiving relative time, the reference calculation relative time and the reference calculation absolute time, calculating transmitting-receiving absolute time matched with the transmitting-receiving relative time. According to the technical scheme, the CPU can effectively reduce the overhead of frequently accessing the switch chip timestamp register under the condition that a large number ofPTP messages are emerged.

Description

technical field [0001] The embodiments of the present invention relate to the field of communication technologies, and in particular, to a method, device, device, and medium for calculating the absolute time when a device sends and receives messages. Background technique [0002] A precision time protocol (Precision Time Protocol, PTP for short) is defined in the IEEE 1588 protocol, and the PTP protocol defines an event (event) message and a general (general) message. An event message is a message containing accurate time stamps for sending and receiving, while ordinary messages do not need accurate time stamps. The event message includes a synchronization message (Sync), a delay request message (Delay_Req), a peer delay request message (Pdelay_Req), and a peer delay response message (PdelayResp). Taking the synchronization message as an example, the hardware of the slave clock in the PTP domain obtains the most accurate matching time when the synchronization message is tra...

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): H04J3/06
CPCH04J3/0638H04J3/0644
Inventor 王小军邵继超李爱斌
Owner 北京东土军悦科技有限公司
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More