This invention provides a circular queuing and forwarding method based on shadow queues to absorb
time variations, relating to the field of time-sensitive networking technology. The method includes: S1, filtering data frames that meet real-time service conditions; S2, combining the
arrival time of the data frame, the global synchronization
clock, and the period offset, controlling the gating time
window opening and closing state of the sub-
queue to be delayed relative to the main circular
queue, and selecting a target
queue to receive the data frame; S3, generating period tags for the data frames in each target queue; and S4, sending the data
frame based on the period tags. This invention, based on the circular queuing and forwarding mechanism, introduces a shadow queue composed of two sub-queues, and sets the gating time
window opening and closing state of the sub-queue to be delayed relative to the main circular queue. This allows the sub-queue to receive delayed data frames and catch up with normally arriving data frames when sending data frames, thus ensuring that the
data stream is transmitted within a precise time period.