Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method for forwarding Linux kernel protocol stack network bridge data

A kernel protocol and forwarding method technology, applied in data exchange network, data exchange through path configuration, network interconnection, etc., can solve problems such as data forwarding and data packets failing to reach the destination, and achieve easy implementation, Scalability Guarantees, Simple Effects

Active Publication Date: 2012-11-14
SHENZHEN GONGJIN ELECTRONICS CO LTD
View PDF3 Cites 14 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The present invention is aimed at the current implementation of the LINUX kernel protocol stack network bridge for the HASH value calculated by the same MAC address. Only one forwarding entry can be established in the network bridge, corresponding to one output device, and for data going to other output devices The message cannot reach the destination because it goes out of the device by mistake, and cannot meet the needs of data forwarding. Provide a method of using VLAN ID+MAC to realize the data forwarding method of the Linux kernel protocol stack bridge

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
  • Method for forwarding Linux kernel protocol stack network bridge data

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0023] like figure 1 As shown, the present embodiment is a data forwarding method of a LINUX kernel protocol stack bridge realized with VLAN+MAC, the method is realized by means of network data packets and equipment supporting software instructions, specifically including starting a boot program, loading a LINUX system kernel , start the application program, find the MAC and VLAN, learn the forwarding entry, and forward the data packet. First, when the LINUX kernel protocol stack is up, a doubly-linked list for storing and forwarding entries is initialized. When a data message enters the bridge of the kernel protocol stack, the HASH value is jointly calculated by VLAN and MAC, and the forwarding table entry is established with HASH as the index. Inserted into the doubly-linked list storing forwarding entries, for the MAC address of the same source, forwarding entries corresponding to multiple different outgoing devices can be learned. The steps of this method include:

[002...

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 provides a method for forwarding Linux kernel protocol stack network bridge data, when an LINUX kernel protocol stack is established, a double lined list which stores a forwarding table is initialized, when the data message enters a kernel protocol stack network bridge, an HASH value is computed through a virtual local area network (VLAN) and a multi-access computer (MAC), and is taken as an index to establish the forwarding table to be inserted into the double lined list which stores the forwarding table, and for the MAC addresses from one source, the forwarding tables which correspond to a plurality of different output equipment can be learnt. The method has the beneficial effects that the whole process is simple to realize and easy to carry out, ensures the stability and the expansibility of an LINUX kernel, and is very suitable for the requirement on network bridge data forwarding of embedded devices which are based on an LINUX system.

Description

technical field [0001] The invention relates to the field of embedded operating systems, in particular to a Linux kernel protocol stack bridge data forwarding method. Background technique [0002] In the implementation mode of the current LINUX kernel protocol stack network bridge, when two or more outgoing devices are added in a bridge, only one data flow can pass through the data packets that need to go through different outgoing devices for the same purpose MAC. The reason is that the learning and forwarding principle of the LINUX kernel protocol stack bridge forwarding entry is to calculate the HASH value according to the MAC, and use the calculated HASH value to index and search the forwarding entry to forward the data message. A forwarding entry includes at least Port number, forwarding flag, aging time, outgoing device. The output device here is the port of the corresponding hardware. Usually, in the appearance, a mac address can only correspond to one output device...

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
IPC IPC(8): H04L12/56H04L12/46
Inventor 何思斌王志波邓永坚郭小东
Owner SHENZHEN GONGJIN ELECTRONICS CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products