Latency compensation method and device
AssigneeHuawei Technologies Co., Ltd.
InventorsYunlei Qi, Chunrong Li
Life of this patent
Estimating the term…
Abstract
A 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.
Claims20
A method, comprising:
- determining, by a device, a first latency value of the device for a first data flow, wherein the first latency value is a latency value in time of the first data flow when the first data flow is transmitted from a first physical port of the device to a second physical port of the device, the first physical port is an ingress port for the first data flow, and the second physical port is an egress port for the first data flow;
- determining, by the device, a second latency value of the device for a second data flow, wherein the second latency value is a latency value in time of the second data flow when the second data flow is transmitted from the second physical port of the device to the first physical port of the device, the second physical port is an ingress port for the second data flow, the first physical port is an egress port for the second data flow, and the first latency value is less than the second latency value;
- and
- adjusting, by the device, a latency in time of the device for the first data flow when the first data flow is transmitted from the first physical port of the device to the second physical port of the device from the first latency value to a first target latency value in time of the device, wherein the first target latency value is greater than or equal to a larger value between the first latency value and the second latency value.
A device, comprising:
- a non-transitory memory, wherein the non-transitory memory comprises an instruction;
- and
- a processor configured to communicate with the non-transitory memory, wherein the processor is configured to execute the instruction to:
- determine a first latency value of the device for a first data flow, wherein the first latency value is a latency value in time of the first data flow when the first data flow is transmitted from a first physical port of the device to a second physical port of the device, the first physical port is an ingress port for the first data flow, and the second physical port is an egress port for the first data flow;
- determine a second latency value of the device for a second data flow, wherein the second latency value is a latency value in time of the second data flow when the second data flow is transmitted from the second physical port of the device to the first physical port of the device, the second physical port is an ingress port for the second data flow, the first physical port is an egress port for the second data flow, and the first latency value is less than the second latency value;
- and
- adjust a latency in time of the device for the first data flow when the first data flow is transmitted from the first physical port of the device to the second physical port of the device from the first latency value to a first target latency value in time of the device, wherein the first target latency value is greater than or equal to a larger value between the first latency value and the second latency value.
A non-transitory computer-readable storage medium, comprising instructions which, when executed by a device, cause the device to carry out the instructions to:
- determine a first latency value of the device for a first data flow, wherein the first latency value is a latency value in time of the first data flow when the first data flow is transmitted from a first physical port of the device to a second physical port of the device, the first physical port is an ingress port for the first data flow, and the second physical port is an egress port for the first data flow;
- determine a second latency value of the device for a second data flow, wherein the second latency value is a latency value in time of the second data flow when the second data flow is transmitted from the second physical port of the device to the first physical port of the device, the second physical port is an ingress port for the second data flow, the first physical port is an egress port for the second data flow, and the first latency value is less than the second latency value;
- adjust a latency in time of the device for the first data flow when the first data flow is transmitted from the first physical port of the device to the second physical port of the device from the first latency value to a first target latency value in time of the device, wherein the first target latency value is greater than or equal to a larger value between the first latency value and the second latency value.
Dependencies are inferred from the claim text.