The invention discloses a
network data forwarding method and
system of a Linux device, and relates to the technical field of Linux
network data forwarding. The method comprises the following steps ofdetermining whether a
Hash table item corresponding to the received data packet exists in a Hash link
list, if yes, forwarding the received data packet, otherwise, keeping the Linux device in the Hashlink
list, and forming the
Hash table item according to the received data packet; subjecting the received data packet to the CPU
processing to form a sending data packet; if the
Hash table item corresponding to the data packet information exists in the Hash link
list, comparing the header information of the sending data packet with the header information of the data packet in the Hash table itemto obtain the difference header information, and forwarding the sending data packet through a Linux standard network
protocol stack after the difference header information is added to the
hash table item. On the basis that the data packet is not forwarded relaying on a hardware network accelerator, the probability of data
packet loss is reduced, the forwarding time of the data packet is shortened,and the forwarding efficiency of the data packet is improved.