Network data forwarding method and system of Linux device

A network data and forwarding method technology, applied in the direction of digital transmission system, transmission system, network connection, etc., can solve the problem that the CPU cannot control the network data message, cannot know the network data message information, network data message security risks, etc. problem, achieve the effect of shortening forwarding time, improving forwarding efficiency, and reducing CPU load

Active Publication Date: 2018-02-09
FENGHUO COMM SCI & TECH CO LTD
View PDF5 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0008] (1) The hardware network accelerator can only forward specific types of network data packets, and the hardware network accelerator needs to rely on specific CPU hardware; therefore, the packet types and usage requirements forwarded by the hardware network accelerator have certain restrictions, and the scope of application is relatively single. poor versatility
[0009] (2) The CPU cannot control the network data packets forwarded by the hardware network accelerator, and thus cannot know the information of the network data packets (such as the speed limit of the network data packets, the content limit of the webpage, etc.), and the security of the network data packets has certain limitations. Hidden danger

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Network data forwarding method and system of Linux device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0037] The present invention will be described in further detail below in conjunction with the accompanying drawings and embodiments.

[0038] The Linux device of the embodiment of the present invention is that the kernel version is Linux2.6.30, and the CPU is the home gateway device of the MIPS architecture; on this basis, see figure 1 As shown, the network data forwarding method of the Linux device in the embodiment of the present invention comprises the following steps:

[0039] S1: the hash linked list (header) of the initial Linux device and the global spin lock for writing the hash linked list, the hash linked list includes the upstream hash linked list (header) and the downstream hash linked list (table header), when traversing the hash linked list, the hash table header is used as the starting node, and then go to S2.

[0040] S2: a hook function for initializing the network data packet transmission channel of the Linux device, the data packet transmission channel of th...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

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.

Description

technical field [0001] The invention relates to the technical field of Linux network data forwarding, in particular to a method and system for forwarding network data of Linux devices. Background technique [0002] The Linux system is a multi-tasking, multi-threading and multi-CPU open source operating system. Since it came out in 1990, it has derived various versions and is widely used on various hardware devices (ie Linux devices), such as home gateways, Tablet PCs, mobile phones, and various servers, etc. [0003] Taking the home gateway as an example, the home gateway running Linux system, as a terminal product that can provide users with Internet access, video and voice services, is more and more widely used, and the needs of customers are becoming more and more abundant. Especially strong, the demand has risen from the previous few megabytes to the current tens of megabytes or even hundreds of megabytes. The first-generation home gateway adopts the data forwarding lo...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): H04L12/743H04L12/741H04L12/721H04L45/74
CPCH04L45/14H04L45/54H04L45/7453H04L12/66
Inventor 赵伟刘启林
Owner FENGHUO COMM SCI & TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products