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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM

Abstract
Description
Claims
Application Information

- R&D
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com