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

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

Active Publication Date: 2016-02-10
杭州迪普信息技术有限公司
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

But in this way, the forwarding table may be very large. If you use array storage, you need to traverse the entire array when searching, which is too inefficient

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 and device for fast message forwarding
  • Method and device for fast message forwarding
  • Method and device for fast message forwarding

Examples

Experimental program
Comparison scheme
Effect test

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...

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 present invention provides a fast forwarding method and a corresponding device. The method includes: calculating a Hash value according to the session characteristics of the message, and determining the corresponding Hash bucket in the index table according to the Hash value; wherein the index table includes N Hash buckets ; Wherein each index entry holds a forwarding pointer pointing to a forwarding entry in the forwarding table; traverse the Hash bucket, and perform fast forwarding when the forwarding entry corresponding to the session feature is found, but the corresponding one is not found during the traversal process Submit the upper-layer forwarding module for processing when forwarding the table item; save the processing result information of the upper-layer forwarding module in the forwarding table item, calculate the Hash value according to the session characteristics and determine the corresponding Hash bucket, and save the forwarding pointer pointing to the forwarding table item in In the hash bucket. The invention adopts a new table item structure and a query design method, can calmly deal with the problem of Hash conflicts, and provides an expansion mechanism to deal with severe Hash conflicts.

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...

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 Patents(China)
IPC IPC(8): H04L12/913H04L12/741H04L47/724H04L45/74
Inventor 陈子康秦永乐王伟威任红军
Owner 杭州迪普信息技术有限公司
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