Packet forwarding apparatus and method, communication chip, and network device
OwnerHongbo XU, Zhonghua LIinventors
Life of this patent
Estimating the term…
Abstract
This application provides example packet forwarding methods and packet forwarding apparatuses. One example method includes sending, by a network processor, at least one descriptor to a traffic manager, where the at least one descriptor indicates a storage address of at least one packet in a buffer module. First information of a to-be-forwarded packet is sent by the traffic manager to the network processor based on the at least one descriptor. The to-be-forwarded packet is obtained by the network processor based on the first information. The to-be-forwarded packet is sent by the network processor to the traffic manager. The to-be-forwarded packet is received and forwarded by the traffic manager.
Claims20
A packet forwarding apparatus, comprising a network processor and a traffic manager connected to the network processor, wherein:
- the network processor comprises a buffer module;
- the network processor is configured to send at least one descriptor to the traffic manager, wherein the at least one descriptor indicates a storage address of at least one packet in the buffer module;
- the traffic manager is configured to send first information of a to-be-forwarded packet to the network processor based on the at least one descriptor, wherein the to-be-forwarded packet is one of the at least one packet, and the first information indicates a storage address of the to-be-forwarded packet in the buffer module;
- the network processor is configured to:
- obtain the to-be-forwarded packet based on the first information;
- and
- send the to-be-forwarded packet to the traffic manager;
- and
- the traffic manager is further configured to receive and forward the to-be-forwarded packet.
A packet forwarding method, applied to a packet forwarding apparatus, wherein the packet forwarding apparatus is configured to forward a packet, the packet forwarding apparatus comprises a network processor and a traffic manager, and the method comprises:
- sending, by the network processor, at least one descriptor to the traffic manager, wherein the at least one descriptor indicates a storage address of at least one packet in a buffer module;
- sending, by the traffic manager, first information of a to-be-forwarded packet to the network processor based on the at least one descriptor, wherein the to-be-forwarded packet is one of the at least one packet, and the first information indicates a storage address of the to-be-forwarded packet in the buffer module;
- obtaining, by the network processor, the to-be-forwarded packet based on the first information;
- sending, by the network processor, the to-be-forwarded packet to the traffic manager;
- and
- receiving and forwarding, by the traffic manager, the to-be-forwarded packet.
A non-transitory computer-readable storage medium storing one or more programming instructions executable by at least one processor to cause the at least one processor to perform operations comprising:
- sending, by a network processor, at least one descriptor to a traffic manager, wherein the at least one descriptor indicates a storage address of at least one packet in a buffer module;
- sending, by the traffic manager, first information of a to-be-forwarded packet to the network processor based on the at least one descriptor, wherein the to-be-forwarded packet is one of the at least one packet, and the first information indicates a storage address of the to-be-forwarded packet in the buffer module;
- obtaining, by the network processor, the to-be-forwarded packet based on the first information;
- sending, by the network processor, the to-be-forwarded packet to the traffic manager;
- and
- receiving and forwarding, by the traffic manager, the to-be-forwarded packet.
Dependencies are inferred from the claim text.