Packet processing method and related device
AssigneeHuawei Technologies Co., Ltd.
InventorsJie Li, Zhigang Ji, Shixing Liu, Ling Li, Yijin Zhou, Xuemin Chen, Songlin Wang
Life of this patent
Estimating the term…
Abstract
This application discloses a packet processing method and a related device. A first communication apparatus obtains a hash key value based on an obtained first packet, and obtains a first path selecting parameter of a flow corresponding to the first packet; and the first communication apparatus determines, based on the hash key value and the first path selecting parameter, a first path for sending the first packet, and sends the first packet through the first path.
Claims30
A packet processing method, applied to a first communication apparatus, and comprising:
- obtaining a first packet;
- obtaining a hash key value based on the first packet, wherein the hash key value is used by the first communication apparatus to determine a path for sending the first packet;
- obtaining a first path selecting parameter of a flow corresponding to the first packet, wherein the first path selecting parameter is used by the first communication apparatus to determine a path for sending the first packet;
- determining, based on the hash key value and the first path selecting parameter, a first path for sending the first packet;
- and
- sending the first packet through the first path.
A packet processing method, applied to a third communication apparatus, wherein the method comprises:
- receiving a first packet from a first communication apparatus, wherein the first packet comprises a hash key value, a first path selecting parameter, and a path switching identifier, and the path switching identifier indicates the third communication apparatus to perform path switching;
- and
- modifying, based on the path switching identifier, a path selecting parameter in a target flow table in which the hash key value is located, wherein after the modification, the target flow table comprises the first path selecting parameter, and the first path selecting parameter in the target flow table is used by the third communication apparatus to determine a path for sending a packet belonging to a backward flow of the first packet.
A first communication apparatus, comprising:
- a processor;
- a memory storing program instructions, which, when executed by the processor, cause the first communication apparatus to:
- obtain a first packet;
- obtain a hash key value based on the first packet, wherein the hash key value is used by the first communication apparatus to determine a path for sending the first packet;
- obtain a first path selecting parameter of a flow corresponding to the first packet, wherein the first path selecting parameter is used by the first communication apparatus to determine a path for sending the first packet;
- determine, based on the hash key value and the first path selecting parameter, a first path for sending the first packet;
- and
- send the first packet through the first path.
A third communication apparatus, comprising:
- a processor;
- a memory storing program instructions, which, when executed by the processor, cause the third communication apparatus to:
- receive a first packet from a first communication apparatus, wherein the first packet comprises a hash key value, a first path selecting parameter, and a path switching identifier, and the path switching identifier indicates the third communication apparatus to perform path switching;
- and
- modify, based on the path switching identifier, a path selecting parameter in a target flow table in which the hash key value is located, wherein after the modification, the target flow table comprises the first path selecting parameter, and the first path selecting parameter in the target flow table is used by the third communication apparatus to determine a path for sending a packet belonging to a backward flow of the first packet.
Dependencies are inferred from the claim text.