Data Stream Timestamping from Frame Headers Before SERDES Conversion
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing technologies face challenges in acquiring precise timestamps for data streams, particularly in systems where data conversion leads to invalid data, preventing accurate timestamp sampling.
Innovation Solution
A method and apparatus for acquiring a timestamp of a data stream involve receiving the data stream, acquiring a first frame header identifier in a SERDES clock mode, determining the timestamp under a system clock, encapsulating the timestamp, and outputting the encapsulated data frame.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Productivity
If a device adaptively converts a data stream to be transmitted, then the data stream can be transmitted through the device, but data gaps (invalid data) are introduced, preventing precise timestamp sampling
Solution Approach 1:
The patent performs timestamp sampling on the original data stream before it undergoes adaptive conversion in the device. By capturing the timestamp at this preliminary stage, the system obtains precise timing information without being affected by the data gaps introduced during subsequent conversion and transmission through the device.
2Ease of operation
If timestamp sampling is performed on a converted data stream containing invalid data, then the data stream can be processed, but the timestamp precision is degraded due to data gaps
Solution Approach 1:
The patent extracts the timestamp information from the data stream at a specific point before the data undergoes conversion that introduces invalid data. This extraction occurs at the optimal location in the data flow where the timestamp can be captured with maximum precision, separating the timestamp acquisition from the problematic conversion process.
3Reliability
If the IEEE 1588 protocol is used for clock synchronization in Ethernet fields, then system stability and reliability are improved, but timestamp accuracy is insufficient when data gaps are present
Solution Approach 1:
The patent implements timestamp sampling before the data stream undergoes adaptive conversion that creates data gaps. This preliminary timestamp acquisition ensures that the IEEE 1588 protocol can operate with high-precision timestamps that are not degraded by subsequent data conversion issues, thereby maintaining both system reliability and timestamp accuracy.
Data Source
AI summary
The present disclosure provides a method and apparatus for acquiring a timestamp of a data stream, a storage medium and an electronic apparatus. The method for acquiring the timestamp of the data stream includes: receiving a data stream to be transmitted, and acquiring a first frame header identifier of the data stream to be transmitted in a serializer-deserializer (SERDES) clock mode, the first frame header identifier being used for representing a position of a frame header of the data stream to be transmitted; determining, based on the first frame header identifier, a timestamp of the data stream to be transmitted under a system clock; encapsulating the timestamp to obtain a first target data frame; and outputting the first target data frame.


