Packet forwarding system and associated packet forwarding method
AssigneeRealtek Semiconductor Corp.
InventorsHeng-Xiu Liu, Chen-Feng Kuo, Lun-Wu Yeh
Life of this patent
Estimating the term…
Abstract
The present invention provides a packet forwarding system including a packet, a packet analyzer and a DMA module. The packet buffer is configured to receive a packet and store the packet. The packet analyzer is configured to read the packet from the packet buffer, and analyze the packet to extract part of content of the packet to generate specific data. The DMA module is configured to write the specific data into a first buffer of a storage device, and write the packet into a second buffer of the storage device.
Claims12
A packet forwarding system, comprising:
- a packet buffer, configured to receive a packet and store the packet;
- a packet analyzer, configured to read the packet from the packet buffer, and analyze the packet to extract part of content of the packet to generate specific data;
- and
- a direct memory access (DMA) module, configured to write the specific data into a first buffer of a storage device, and write the packet into a second buffer of the storage device;
- wherein the storage device comprises a plurality of first descriptors and corresponding first buffers, and a plurality of second descriptors and corresponding second buffers;
- the DMA module reads one of the plurality of first descriptors, and writes the specific data into the corresponding first buffer according to content of the first descriptor;
- and the DMA module reads one of the plurality of second descriptors, and writes the packet into the corresponding second buffer according to the content of the second descriptor;
- wherein the storage device comprises a first memory and a second memory, a speed of the first memory is faster than a speed of the second memory, the plurality of first descriptors and the corresponding first buffers are in the first memory, and the plurality of second descriptors and the corresponding second buffers are in the second memory.
A packet forwarding system, comprising:
- a packet buffer, configured to receive a packet and store the packet;
- a packet analyzer, configured to read the packet from the packet buffer, and analyze the packet to extract part of content of the packet to generate specific data;
- and
- a direct memory access (DMA) module, configured to write the specific data into a first buffer of a storage device, and write the packet into a second buffer of the storage device;
- wherein the storage device comprises a plurality of first descriptors and corresponding first buffers, and a plurality of second descriptors and corresponding second buffers;
- the DMA module reads one of the plurality of first descriptors, and writes the specific data into the corresponding first buffer according to content of the first descriptor;
- and the DMA module reads one of the plurality of second descriptors, and writes the packet into the corresponding second buffer according to the content of the second descriptor;
- wherein the DMA module further writes first descriptor information into the first buffer, wherein the first descriptor information comprises a sequence tag, a packet tag and a length of the first descriptor information;
- and the DMA module further writes second descriptor information into the second buffer, wherein the second descriptor information comprises the sequence tag, the packet tag and a length of the second descriptor information.
A packet forwarding method, comprising:
- receiving a packet and storing the packet into a packet buffer;
- reading the packet from the packet buffer, and analyzing the packet to extract part of content of the packet to generate specific data;
- and
- writing the specific data into a first buffer of a storage device, and writing the packet into a second buffer of the storage device;
- wherein the storage device comprises a plurality of first descriptors and corresponding first buffers, and a plurality of second descriptors and corresponding second buffers;
- and the packet forwarding method further comprises:
- reading one of the plurality of first descriptors, and writing the specific data into the corresponding first buffer according to content of the first descriptor;
- and
- reading one of the plurality of second descriptors, and writing the packet into the corresponding second buffer according to the content of the second descriptor;
- wherein the storage device comprises a first memory and a second memory, a speed of the first memory is faster than a speed of the second memory, the plurality of first descriptors and the corresponding first buffers are in the first memory, and the plurality of second descriptors and the corresponding second buffers are in the second memory.
Dependencies are inferred from the claim text.