Packet processing method and router
AssigneeHuawei Technologies Co., Ltd.
InventorsHongmiao XIA, Tuanhui SUN
Life of this patent
Estimating the term…
Abstract
Embodiments of the application describe a packet processing method and a router. The method includes: receiving, by an input line card, at least one packet; obtaining, by the input line card, information about an available first buffer block in a third buffer module, where the third buffer module is a first buffer module that includes an available first buffer block; allocating, by the input line card, a third buffer block to each of the at least one packet based on at least one buffer information block stored in the input line card and the information about an available first buffer block; and buffering, by the input line card, each packet into the third buffer block. Distributed packet buffering can be implemented by using the method.
Claims16
A packet processing method, comprising:
- receiving, by an input line card in a router, at least one packet, wherein the router further includes an output line card, at least one switching module connecting the input line card and the output line card, and a first buffer module connected to the at least one switching module, the first buffer module including at least one first buffer block, the input line card including at least one second buffer module, and each of the at least one second buffer module including at least one second buffer block
- obtaining, by the input line card, information about an available first buffer block in a third buffer module, wherein the third buffer module is a first buffer module that comprises an available first buffer block;
- allocating, by the input line card, a third buffer block to each of the at least one packet based on at least one buffer information block stored in the input line card and the information about an available first buffer block, wherein the third buffer block is one of a first buffer block and a second buffer block, wherein each of the at least one buffer information block corresponds to at least one fourth buffer block, wherein each of the at least one fourth buffer block is a first buffer block or a second buffer block, and wherein each of the at least one buffer information block is used to indicate an occupation status of each of the at least one fourth buffer block;
- and
- buffering, by the input line card, each of the at least one packet into the third buffer block.
A router, comprising an input line card, an output line card, at least one switching module connecting the input line card and the output line card, and a first buffer module connected to the switching module, wherein the first buffer module comprises at least one first buffer block, wherein the input line card comprises at least one second buffer module, and wherein each of the at least one second buffer module comprises at least one second buffer block;
- and
- wherein the input line card is configured to:
- receive at least one packet;
- obtain information about an available first buffer block in a third buffer module, wherein the third buffer module is a first buffer module that comprises an available first buffer block;
- allocate a third buffer block to each of the at least one packet based on at least one buffer information block stored in the input line card and the information about an available first buffer block, wherein the third buffer block is one of a first buffer block and a second buffer block, wherein each of the at least one buffer information block corresponds to at least one fourth buffer block, wherein each of the at least one fourth buffer block is a first buffer block or a second buffer block, and wherein each of the at least one buffer information block is used to indicate an occupation status of each of the at least one fourth buffer block;
- and
- buffer each of the at least one packet into the third buffer block.
Dependencies are inferred from the claim text.