Method and device for fast message forwarding
A technology of forwarding device and forwarding method, which is applied in the field of data communication and can solve the problems of large forwarding table and poor efficiency
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Publication Date
- 2016-02-10
Smart Images
Figure 1 Figure 2 Figure 3
Abstract
Description
technical field
[0001] The invention relates to the field of data communication, in particular to a message fast forwarding method and device. Background technique
[0002] With the rapid development of network technology, on the one hand, the processing performance requirements of network equipment such as switches and firewalls are getting higher and higher; The integrated security protection business is becoming more and more complex, resulting in a sharp decline in the processing performance of the whole machine. After a large number of actual tests, the applicant found that the processing capability of the current hardware and the transmission and reception efficiency of the bottom layer of the driver are guaranteed, and the bottleneck of the forwarding performance of the network device is mainly processed at the upper layer of the protocol stack. The upper-layer processing pays more attention to the business itself, resulting in low processing efficiency, and the forw...
Examples
Embodiment Construction
[0017] The present invention designs table items as a hash (Hash) structure, and an important problem for the Hash structure is to solve Hash conflicts. However, considering that the forwarding table entry itself is relatively large, directly using the forwarding table entry to handle conflicts will cause too much memory overhead, so the present invention also introduces an index table. When the number of entries in the forwarding table is N, the index table is designed as N*M, where N is the number of Hash buckets in the index table, and M is the bucket depth, that is, the number of index entries in a Hash bucket. The index entry includes two fields: key and forwarding pointer, with a total of X bytes. The implementation process of a preferred embodiment of the present invention is introduced below. An embodiment of the present invention provides a fast forwarding device, which includes a fast forwarding execution module, an entry processing module, and a critical processing...