Packet processing method and apparatus, and chip
AssigneeHuawei Technologies Co., Ltd.
InventorsQing Chen, Jiyuan Shi, Jie Chen
Life of this patent
Estimating the term…
Abstract
A packet processing method includes generating, by a processor of a network device, a first encoding task based on M original packets in a to-be-processed first data stream, where M is a positive integer, and where the first encoding task instructs to encode the M original packets; and performing, by a target hardware engine of the network device and based on the first encoding task, forward error correction (FEC) encoding on the M original packets to obtain R redundant packets, where R is a positive integer.
Claims20
A packet processing method implemented by a network device, wherein the packet processing method comprises:
- generating, by a processor of the network device, a first encoding task based on M original packets in a to-be-processed first data stream, wherein M is a positive integer, and wherein the first encoding task instructs to encode the M original packets;
- and
- performing, by a target hardware engine of the network device and based on the first encoding task, forward error correction (FEC) encoding on the M original packets to obtain R redundant packets,
- wherein R is a positive integer.
A packet processing method implemented by a network device, wherein the packet processing method comprises:
- obtaining, by a processor of the network device, a first group of forward error correction (FEC) packets from a first data stream, wherein the FEC packets have a first FEC packet header, and wherein the first FEC packet header comprises an FEC-encoding original packet quantity;
- generating, by the processor, a first decoding task based on the first group when a quantity of original packets in the first group is less than the FEC-encoding original packet quantity, wherein the first decoding task instructs to decode the first group;
- and
- performing, by a target hardware engine of the network device and based on the first decoding task, FEC decoding on the original packets and redundant packets of the original packets to obtain lost original packets in the first group.
A packet processing apparatus comprising:
- a processor configured to generate a first encoding task based on M original packets in a to-be-processed first data stream, wherein M is a positive integer, and wherein the first encoding task instructs to encode the M original packets;
- and
- a target hardware engine coupled to the processor and configured to perform, based on the first encoding task, forward error correction (FEC) encoding on the M original packets to obtain R redundant packets,
- wherein R is a positive integer.
A packet processing apparatus comprising:
- a processor configured to:
- obtain a first group of forward error correction (FEC) packets from a first data stream, wherein FEC packets in the first group have a first FEC packet header, and wherein the first FEC packet header comprises an FEC-encoding original packet quantity;
- and
- generate a first decoding task based on the first group when a quantity of original packets in the first group is less than the FEC-encoding original packet quantity, wherein the first decoding task instructs to decode the first group;
- and
- a target hardware engine coupled to the processor and configured to perform, based on the first decoding task, FEC decoding on the original packets and redundant packets of the original packets to obtain lost original packets in the first group.
Dependencies are inferred from the claim text.