Packet processing method and apparatus
AssigneeHuawei Technologies Co., Ltd.
InventorsNan Li, Chao Huang
Life of this patent
Estimating the term…
Abstract
A packet processing method includes receiving, by a forwarding apparatus, a first packet, where the first packet belongs to a first packet flow, determining, by the forwarding apparatus, at least two types of information in the following four types of information a duration of staying in a first memory by the first packet flow, usage of the first memory, whether the first packet flow is a victim of a congestion control mechanism, and a drop priority of the first packet, and determining, by the forwarding apparatus based on the at least two types of information, whether explicit congestion notification marking needs to be performed on the first packet.
Claims17
A packet processing method, implemented by a forwarding apparatus, wherein the packet processing method comprises:
- receiving a first packet, wherein the first packet belongs to a first packet flow, and wherein the first packet flow comprises a first plurality of packets;
- storing the first plurality of packets in a first memory;
- sending the first plurality of packets using a first transmit port;
- and
- performing explicit congestion notification (ECN) marking on the first packet based on information related to the first packet and according to a weighted random early detection (WRED) algorithm,
- wherein the information comprises at least two of a duration of staying in the first memory, a usage of the first memory when receiving the first packet, whether the first packet flow is a victim of a congestion control mechanism when receiving the first packet, or a drop priority of the first packet.
A forwarding apparatus, comprising:
- an input interface configured to receive a first packet, wherein the first packet belongs to a first packet flow, and wherein the first packet flow comprises a first plurality of packets;
- a first memory coupled with the input interface and configured to store the first plurality of packets;
- a first transmit port coupled to the first memory and configured to send the first plurality of packets;
- and
- a processor coupled to the input interface, the first memory, and the first transmit port and configured to perform explicit congestion notification (ECN) marking on the first packet based on information related to the first packet and according to a weighted random early detection (WRED) algorithm,
- wherein the information comprises at least two of a first duration of staying in the first memory, a first usage of the first memory when receiving the first packet, whether the first packet flow is a victim of a congestion control mechanism when receiving the first packet, or a first drop priority of the first packet.
A forwarding apparatus, comprising:
- an input interface configured to receive a first packet, wherein the first packet belongs to a first packet flow, and wherein the first packet flow comprises a first plurality of packets;
- a first memory configured to store the first plurality of packets;
- a first transmit port coupled to the first memory and configured to send the first plurality of packets;
- and
- a processor coupled to the input interface, the first memory, and the first transmit port and configured to:
- store the first packet in the first memory in response to not dropping the first packet based on information related to the first packet;
- and
- perform explicit congestion notification (ECN) marking on the first packet according to a weighted random early detection (WRED) algorithm,
- wherein the information comprises at least two of a duration of staying in the first memory, a usage of the first memory when the first packet is received, whether the first packet flow is a victim of a congestion control mechanism when receiving the first packet, or a drop priority of the first packet.
Dependencies are inferred from the claim text.