Abstract:
This application provides a latency compensation method and a device. The device determines a first latency value of a first data flow from a first physical port of the device to a second physical port of the device and a second latency value of a second data flow from the second physical port to the first physical port, where the first latency value is less than the second latency value. The device determines a first target latency value based on the first latency value and the second latency value. The device adjusts a latency value of the first data flow to the first target latency value. According to the foregoing method, the device can control a latency value of a bidirectional data flow.
Abstract:
This application provides a clock synchronization method, including: receiving, by a receiving apparatus, a plurality of data blocks by using a plurality of physical layer modules PHYs, where the plurality of data blocks include a plurality of head data blocks; performing, by the receiving apparatus, timestamp sampling on the plurality of data blocks to generate a plurality of receipt timestamps; aligning, by the receiving apparatus, the plurality of receipt timestamps by using a first receipt timestamp as a reference; generating, by the receiving apparatus, a clock synchronization packet based on the plurality of data blocks; and writing, by the receiving apparatus, a value of a second receipt timestamp into the clock synchronization packet, where the second receipt timestamp is a receipt timestamp that is of a second data block and that is determined based on the plurality of aligned receipt timestamps, and the second data block is a data block for sending timestamp sampling in the plurality of data blocks. In the clock synchronization method provided in this application, a skew that occurs between a plurality of data blocks of a same FlexE client after the plurality of data blocks arrive at a receiving apparatus can be corrected.
Abstract:
This application provides a communication method and an optical module. The method includes: A first optical module determines a first delay. The first optical module sends the first delay to an interface chip. According to the communication method and the optical module that are provided in this application, a delay in the optical module can be reported to the interface chip, so as to improve precision of time synchronization between a master clock and a slave clock, thereby further improving clock precision of a network device.
Abstract:
This application provides a method for sending and receiving a clock synchronization packet in FlexE. The method includes: generating, by a sending apparatus, indication information and a plurality of data blocks, where the plurality of data blocks are obtained by encoding a first clock synchronization packet, the indication information is used to indicate a first data block, and the first data block is a data block used for timestamp sampling in the plurality of data blocks; determining, by the sending apparatus, according to the indication information, a moment at which the first data block arrives at a medium dependent interface MDI of the sending apparatus, and generating a sending timestamp, where the sending timestamp is used to record a sending moment of the first clock synchronization packet; generating, by the sending apparatus, a second clock synchronization packet carrying the sending timestamp; and sending, by the sending apparatus, the second clock synchronization packet. In this way, clock synchronization frequency is increased, a bandwidth that can be used for transmitting a clock synchronization packet is increased, and clock synchronization complexity is reduced.
Abstract:
A communications network delay variation smoothing method, an apparatus, and a system are disclosed. The method includes: clearing, by a receiving module, a forward delay threshold and a reverse delay threshold when an initialization time starts; and performing the following operation for each service flow fragment within the initialization time: when determining that a maximum value between a real-time forward delay value corresponding to a current service flow fragment and a reverse delay threshold corresponding to the current service flow fragment is greater than a current value of the forward delay threshold, replacing the current value of the forward delay threshold with the maximum value. In this way, after the initialization ends, a delay threshold after the initialization ends is determined and is applied to delay compensation, thereby significantly reducing a bi-directional asymmetric delay variation, and avoiding a problem of abnormal user communication that is caused when the variation exceeds a limit.
Abstract:
Embodiments of this application disclose a delay measurement method. The method may be applied to a fine granularity service scenario, and includes: A first communication apparatus obtains a first moment, where the first moment is a timestamp at which the first communication apparatus inserts an operation, administration and maintenance OAM block; and the first moment is greater than or equal to a moment at which the first communication apparatus receives a first service bit flow, the first moment is less than a moment at which the first communication apparatus inserts a one-way delay measurement 1DM message or a two-way delay measurement 2DM message into a first block flow, the first service bit flow carries a first fine granularity service, and the first block flow is obtained based on the first service bit flow; and the first communication apparatus sends first moment to a second communication apparatus, where the first moment is for measuring a delay between the first communication apparatus and the second communication apparatus. This reduces a detection blind area in one-way or two-way delay measurement, and improves delay measurement accuracy, thereby improving communication quality and reducing a service interruption probability.
Abstract:
A communication method, a related apparatus, and a storage medium are provided, to resolve transparent transmission of clock frequency information of a service. In this application, a first communication apparatus receives a first service data stream, generates a first code block stream based on the first service data stream, and sends the first code block stream. The first code block stream includes first clock frequency information, and the first clock frequency information indicates transmission duration of k first data frames of the first service data stream, and/or a moment at which the k first data frames of the first service data stream are received. In this way, a second communication apparatus may send the k first data frames based on the first clock frequency information, so that a clock frequency of the k first data frames sent by the second communication apparatus are basically consistent with a clock frequency of the k first data frames received by the first communication apparatus. This can resolve transparent transmission of clock frequency information of a service.
Abstract:
Embodiments of this application disclose a delay compensation method. The method may be applied to a fine granularity service scenario, and includes: A first communication apparatus determines a first transmission delay, where the first transmission delay indicates a transmission delay of a fine granularity service in the first communication apparatus; and the first communication apparatus sends the first transmission delay to a second communication apparatus. According to the foregoing method, it is ensured that a service bit flow sent by a sink node meets a delay compensation requirement, to ensure that a network transmission delay from a source node to the sink node and a network transmission delay from the sink node to the source node in a fine granularity service network are equal or meet an expected error range, or that the network transmission delay from the source node to the sink node and the network transmission delay from the sink node to the source node are adjusted to an expected value, to meet a service requirement. For example, when the delay compensation method provided in embodiments of this application is applied to a power grid system, it can be ensured that information collection moments of any two terminal devices are consistent.
Abstract:
A communication method and device, and a chip system are provided, to adjust, by adjusting a quantity of slot resources included in a multiframe, a bandwidth resource corresponding to one multiframe. A first communication device in this application sends a first request message. The first request message is used to request to adjust a quantity of basic frames in a multiframe included in a second block sequence. The first communication device multiplexes, based on S 1 slot resources corresponding to the adjusted multiframe in the second block sequence, Q1 first block sequences corresponding to a slot resource in the S 1 slot resources, to obtain and send the second block sequence. The quantity of basic frames in the multiframe may be adjusted. In other words, a quantity of slot resources corresponding to data carried in one multiframe may be adjusted. In other words, the bandwidth corresponding to one multiframe may be adjusted. Therefore, a bandwidth of a service corresponding to the multiframe may be further adjusted based on the adjusted bandwidth corresponding to the multiframe.