CN1909518A - Route method and equipment - Google Patents

Route method and equipment Download PDF

Info

Publication number
CN1909518A
CN1909518A CNA2006101120862A CN200610112086A CN1909518A CN 1909518 A CN1909518 A CN 1909518A CN A2006101120862 A CNA2006101120862 A CN A2006101120862A CN 200610112086 A CN200610112086 A CN 200610112086A CN 1909518 A CN1909518 A CN 1909518A
Authority
CN
China
Prior art keywords
index information
table items
route table
items index
cam
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CNA2006101120862A
Other languages
Chinese (zh)
Other versions
CN100450100C (en
Inventor
吕超
杨雄
洪荣峰
张敏威
汪志韬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CNB2006101120862A priority Critical patent/CN100450100C/en
Publication of CN1909518A publication Critical patent/CN1909518A/en
Priority to PCT/CN2007/070057 priority patent/WO2008028412A1/en
Application granted granted Critical
Publication of CN100450100C publication Critical patent/CN100450100C/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/54Organization of routing tables
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • H04L45/745Address table lookup; Address filtering
    • H04L45/7453Address table lookup; Address filtering using hashing

Abstract

The invention relates to a route method and relative route device, wherein it compresses the index information of each route list, to make the unit with of one CAM able to contain several compressed index information of route list, to make CAM store more index information to improve its utilization and expand its capacity. Via compressing the index information of data report, and matching the compressed index information with the index information of CAM, it can overcome the problems as low route list search efficiency and worse transfer property.

Description

A kind of method for routing and routing device
Technical field
The present invention relates to the network communications technology field, be specifically related to a kind of method for routing and routing device.
Background technology
In today of social informatization high development, the network traffics of the Internet particularly flow of core network increase with exponential, simultaneously, number of users and user also increase sharply to the requirement of service, everything has all proposed more high-performance, the more requirement of high power capacity to the backbone route equipment as the Internet nucleus equipment, that is to say, backbone route equipment need be searched by the longest matching domain the IP address of packet, and reach seek rate faster, simultaneously, require the capacity of backbone route Device IP routing table constantly to enlarge.
At present, in routing device,, mainly contain two kinds of IP routing table look-up methods as in router, the Ethernet switch:
Method one, employing HASH (Hash) algorithm are realized the IP routing table look-up by RAM (Random Access Memory, random access memory).The low side Ethernet switch generally can adopt the HASH lookup table mode.
The advantage of method one is: the route implementing cost is low, and still, the subject matter of HASH algorithm is: after different IP addresses is the address of weak point through the HASH compression algorithm, always has situation about repeating the address and occur.Be the phenomenon of avoiding out current address to repeat, routing device generally can adopt multistage HASH structure to solve this problem, like this, make routing device in an IP tables look-up process, the actual number of times of looking into RAM is uncertain, and in the worst case, the number of times of looking into RAM can be a lot, thereby make IP routing table look-up efficient poor, finally cause the forwarding performance of routing device poor.Simultaneously, because routing device need be searched by the longest matching domain the IP address, after making the IP matching addresses in the HASH processing procedure, need to check whether this IP matching addresses is the longest coupling, further reduced IP routing table look-up efficient, thereby, further reduced the forwarding performance of routing device.
Method two, in order to improve the performance of IP routing table look-up, develop and CAM (the content-based device of tabling look-up) as TCAM (Triple Content Address Memory, three value content adressable memorys), TCAM can directly find corresponding table item index according to content such as IP address.In the chip of middle and high end, generally can adopt TCAM to realize the IP routing table look-up.
TCAM is a kind of device of high speed search on content, the territory that three values coupling can allow an IP route table item configuration of IP address and need mate, thus can the longest coupling of fine support IP table look-up, and once tabling look-up can obtain the result certainly.At present, device at a high speed can be accomplished 266M/S, and this is that HASH searches inconceivable speed, the IP routing table look-up efficient height of TCAM.But the price of TCAM is higher, makes the cost of routing device higher, and the capacity of present maximum monolithic is 18Mbit, and it is big especially that the monolithic capacity is difficult to do, thereby, bigger to the routing table capacity limit.
Summary of the invention
The objective of the invention is to, a kind of method for routing and routing device are provided, make CAM can store more route table items index information, improved the utilance of CAM, make routing device when having high efficiency CAM routing table look-up performance, reduced the cost of routing device.
For achieving the above object, a kind of method for routing provided by the invention comprises:
A, when needs carry out route to the data message, the route table items index information in the routing device packed data message, and the route table items index information of storing among route table items index information after will compressing and the CAM mates;
B, routing device carry out route according to the index information that matches to this data message to be handled;
A unit among the described CAM holds the route table items index information after the compression more than.
The technical scheme of following method is optional technical scheme.
Comprise before the described route table items index information compression: VPNID and IP address.
The route table items index information of storing among the described CAM comprises: the IP address of VPNID and compression comprises the compression of IP address: according to the CAM cell width address information of the presumptive area in the IP address is compressed.
The address information of described presumptive area comprises: category-A address information and category-B address information.
Setting the CAM cell width is 72 bits, comprises before the step a:
Routing device is high 16 bit boil down tos, 10 bits of IP address, and with this 10 bit with the VPNID of low 16 bits of IP address and 10 bits as the route table items index information, be stored in the CAM unit.
Described method also comprises: be provided with and do not compress route table items index information and the corresponding relation of the compression way of escape by table item index information;
And described step a comprises:
When needs carry out route to the data message, routing device is according to its route table items index information that obtains from data message, from described corresponding relation, search the route table items index information after the compression, and this route table items index information that will find and the route table items index information among the CAM mate.
The step that the route table items index information of storing among route table items index information after will compressing among the described step a and the CAM mates comprises:
Routing device mates route table items index information after the compression and the route table items index information among the CAM according to the order of low level list item in the CAM cell width to high-order list item.
When storing polytype route table items index information among the CAM, also store type identification information among the described CAM, and described step a comprises:
When needs carry out route to the data message, routing device is determined the type of this route table items index information according to its route table items index information that obtains from data message, from described corresponding relation, search the route table items index information after the compression, and the route table items index information among the type of the route table items index information in this data message, this route table items index information that finds and the CAM is mated.
The present invention also provides a kind of routing device, is provided with CAM, compression module and routing module in the described routing device;
Store each the route table items index information after the compression among the CAM, and store the route table items index information after the more than one compression in CAM unit;
Compression module is used for: when routing device need carry out route to the data message, compress the route table items index information in this data message, and this route table items index information after will compressing and the route table items index information among the CAM mate, and the index information that matches is sent to routing module;
Routing module is used for: the route table items index information according to its reception carries out the routing forwarding processing to this data message.
The technical scheme of following routing device is optional technical scheme.
Described compression module comprises: the corresponding relation sub module stored, search submodule and matched sub-block;
The corresponding relation sub module stored is used for: the corresponding relation of the route table items index information after storing unpressed route table items index information and compressing;
Searching submodule is used for: when routing device need carry out route to the data message, according to the unpressed route table items index information in the data message, from the corresponding relation sub module stored, search the route table items index information after the compression, and the route table items index information after the compression that will find transfers to matched sub-block;
Matched sub-block is used for: the route table items index information of its route table items index information that receives and CAM is mated, and the index information that matches is sent to routing module.
Description by technique scheme as can be known, by each route table items index information is compressed, make the route table items index information after the cell width of a CAM can be held a plurality of compressions, make CAM can store more route table items index information, improved the utilance of CAM, enlarged the capacity of routing table, when having overcome available technology adopting CAM, routing device cost height, the shortcoming that the routing list capacity restriction is big; Corresponding relation by the route table items index information after unpressed route table items index information being set and compressing, as this corresponding relation of storage in RAM, the technology that makes routing device can utilize the linear search of RAM to combine with CAM realizes routing forwarding, overcome when adopting RAM separately in the prior art, routing table look-up efficient is low, the shortcoming of routing forwarding poor performance; By type identification information being set, make CAM carry out routing forwarding, as data messages such as Ipv4, Ipv6 are carried out routing forwarding for polytype data message for dissimilar route table items index informations; Thereby make routing device can have characteristics such as routing table look-up efficient height, routing list capacity is big, the routing device cost is low simultaneously by technical scheme provided by the invention.
Description of drawings
Fig. 1 is a CAM schematic diagram of the prior art;
Fig. 2 is the IP address schematic diagram after the compression searched of the embodiment of the invention;
Fig. 3 is the CAM schematic diagram of the embodiment of the invention;
Fig. 4 is the flow chart of searching the route table items index information of the embodiment of the invention.
Embodiment
In the prior art, table look-up when realizing route querying,, have that routing forwarding efficient is low, the problem of routing forwarding poor performance though have the low advantage of cost when routing device adopts the HASH algorithm to carry out RAM; When routing device adopts TCAM to realize route querying,, there is the problem that routing list capacity is low, the routing device cost is high though have the high advantage of routing table look-up efficient.If two kinds of method for searching route in the prior art are combined, a kind of high forwarding performance that had not only had a TCAM is provided, but also has the method for searching route of lower cost, then can be when overcoming the routing forwarding poor performance, overcome routing device cost height, shortcoming that the routing list capacity restriction is big.
The present invention proposes a kind of fast routing method based on CAM and the compression of route table items index information, high speed processing ability by utilizing CAM such as TCAM device, simultaneously in conjunction with the data organization method of route table items index information, realized at a high speed, big capacity, method for searching route cheaply.
Below technical scheme provided by the invention is described in detail.
In technical scheme of the present invention, can store more than one route table items index information in the unit of CAM such as TCAM, promptly the quantity of the route table items index information of storing in CAM unit should be greater than 1, as storing an integer route table items index information in the CAM unit greater than 1, certainly, the quantity of the route table items index information of storing in CAM unit also can be for greater than 1 non-integer.
When storing greater than 1 integer route table items index information in the unit of CAM, routing device should compress each route table items index information, makes the route table items index information after a CAM cell width can be held a plurality of compressions.When needing to store in the CAM unit, should compress the route table items index information according to the cell width of CAM greater than the route table items index information after 1 the integer compression.Like this, when needs carry out route to the data message, the route table items index information that routing device is at first tackled in the data message compresses processing, and the route table items index information in the data message after will compressing and the route table items index information among the CAM mate; Then, routing device carries out routing forwarding according to the index information that matches to this data message.
In actual application, the route table items index information before the compression is generally: VPNID and IP address.Like this, the routing device among the present invention need compress processing to VPNID and IP address, concrete compression process can for: with the address information of the address information boil down to predetermined bit width of the predetermined interval of IP address.
Because the distribution of IP address is clocklike, promptly on network the network segment quantity of the category-A address of a routing node and category-B address seldom, the variation of IP address mainly concentrates on the low 16bit of back.Like this, the address information of the predetermined interval of IP address can be the category-A address in the IP address or category-B address, be routing device compressing when handling, can preferentially compress, as the IP address of high 16bit in the IP address is compressed to category-A address in the IP address or category-B address.In carrying out compression process, concrete compression algorithm can be provided with according to the concrete condition of network, high 16bit as the IP address in the system only represents the situation that the n kind is different, numeral 1 to n then is set, different high 16bit in the corresponding IP of the different digital address, in when compression, compress according to above-mentioned compression algorithm and to get final product.
When needing to store in the CAM unit greater than the route table items index information after 1 the integer compression, above-mentioned predetermined bit width should be determined according to the cell width among the CAM, as when needing to deposit two route table items index informations in the CAM unit, then the width of a route table items index information is 1/2nd of a CAM cell width, like this, when determining predetermined bit width, the width of the route table items index information before the compression need be compared with 1/2nd of CAM cell width, the more lack bit with the width of determining the route table items index information that compression is preceding than the CAM cell width, setting the CAM cell width is the K1 bit, the width of the route table items index information before the compression is than the bit of K2 more than 1/2nd of CAM cell width, at this moment, predetermined bit width is: K1 and K2's is poor.
After the route table items index information of storing in to CAM compresses storage, routing device is receiving need carry out the data message of routing forwarding the time, should adopt same compression method that the route table items index information in the data message is compressed processing, then, the matching treatment process of the route table items index information after compressing.
The corresponding relation of the route table items index information after the present invention also can set in advance unpressed route table items index information and compress, this corresponding relation can be stored in the routing device, as be stored among the RAM of routing device, certainly, also can be independent of the routing device storage.Above-mentioned corresponding relation also can be stored in other storage mediums of non-RAM.
After being provided with above-mentioned corresponding relation, routing device is when receiving the data message that need carry out the routing forwarding processing, at first, from data message, obtain unpressed route table items index information, then, from above-mentioned corresponding relation neutral line search with data message the compression that is complementary of unpressed route table items index information after the route table items index information, behind the route table items index information after finding the compression that is complementary, route table items index information after the compression that finds and the route table items index information among the CAM are mated, at last, the route table items index information among the CAM that matches of routing device utilization carries out routing forwarding to this data message and handles.
When storage in the CAM unit during greater than 1 integer route table items index information, in the route table items index information and the process of mating of the route table items index information among the CAM of routing device after the compression that will find, can be according to the order of low level list item in the CAM cell width to high-order list item, route table items index information after the compression that finds and the route table items index information among the CAM are mated, for example, when storing two route table items index informations in the CAM cell width, routing device at first carries out matching operation in the low level list item of CAM, if the match is successful, then matching process finishes, if it fails to match, then in the high-order list item of CAM, carry out matching operation.
When routing device can carry out routing forwarding when handling to the data message of number of different types such as IPv4, IPv6 data message etc., should correspondingly store dissimilar route table items index informations among the CAM, at this moment, also should store type identification information among the CAM, the type identification information is used to indicate the type of route table items index information, the route table items index information of the type of route table items index information such as IPv4, the route table items index information of IPv6 etc.
The present invention can all be provided with type identification information for each route table items index information, as the route table items index information for IPv4 and IPv6 type identification information is set all; Also can be for part route table items index information is provided with type identification information, for the route table items index information of IPv6 is provided with type identification information, the route table items index information of IPv4 is not provided with type identification information as only.
When in storing type identification information and CAM unit among the CAM, storing, when compression route table items index information, should consider the width of CAM unit and the bit wide information that type identification information takies greater than 1 integer route table items index information.
In CAM, store under the situation of type identification information, when routing device carries out routing forwarding at needs to the data message, not only need from data message, to obtain unpressed route table items index information, also need to determine the type of this route table items index information, then, routing device is determined the route table items index information after the compression of this unpressed route table items index information correspondence by mode such as inquiry ram table etc., routing device is behind the route table items index information after the compression of determining this data message correspondence, utilize route table items index information and type identification information after this compression in CAM, to search the list item of coupling, and according to coupling route table items index information this data message is carried out routing forwarding and handle.
With a concrete example method for routing provided by the invention is elaborated below.
In the routing device of middle and high end, IPv4 route table items index information generally is made up of VPNID and IP address, that is to say, routing device is searched routing index information according to VPNID and IP address.A cell width setting TCAM is unit with 72bit, because IPv4 route table items index information generally can not be accomplished just 72bit, like this, a lot of memory spaces among the TCAM all have been wasted.
For example, the IP address information of IPv4 is 32 bits, and VPNID is 10 bits, and the TCAM cell width as shown in Figure 1.
Among Fig. 1, the TCAM cell width is 72 bits, the width of IP address and VPNID and be 42 bits, and like this, the high 30bit of TCAM unit is not fully utilized.
In order to make full use of TCAM, routing device can be compressed to the VPNID+IP address information in the 36bit, like this, can put two route table items index informations after the compression in the TCAM unit of a 72bit, thereby the route table items capacity of TCAM is doubled.
When the VPNID+IP address information is compressed, consider the rule that the IP address distributes, on network the network segment quantity of the category-B address of the category-A address of the 8bit of a routing node and 16bit seldom, the variation of IP address mainly concentrates on the 16bit of back.Like this, routing device can compress the IP address of high 16bit, with the IP address compression of high 16bit is 10bit, like this, a route table items index information can be made up of 36bit, comprising: 10bit high address index information after the VPNID of 10bit, the compression and the IP address of low 16bit.Therefore, can store two route table items index informations in a TCAM unit.
Can utilize RAM to preserve the IP address information of unpressed high 16bit and the corresponding relation of IP address information of the high 10bit after the compression in the routing device, in accompanying drawing 2, store above-mentioned corresponding relation among the RAM, like this, routing device is when making up the route table items index information, can directly utilize the IP address of high 16bit in RAM, to carry out linearity and table look-up, obtain the high address index information of a 10bit after the compression as index.
Routing device is again with above-mentioned linearity table look-up high address index information, the IP address information of low 16bit and the route table items that VPNID makes up CAM of the 10bit that obtains, as shown in Figure 2, because each the route table items width among the TCAM has reduced to 36bit, therefore, can store 2 route table items index informations among the TCAM in the unit of each 72bit.
After being provided with above-mentioned RAM and TCAM, when routing device need carry out routing forwarding to the data message, at first, from data message, obtain IP address information and VPNID information, then, the high 16bit of this IP address and the list item among the RAM are mated, and the high address index information of the 10bit after the compression in the acquisition coupling list item, utilize IP address information and the VPNID one of this index information and low 16bit to play the matching treatment of carrying out the route table items index information among the TCAM, and utilize and to match the route table items index information and this data message is carried out routing forwarding handle.Routing forwarding among the present invention is handled identical with routing forwarding processing procedure of the prior art, is not described in detail at this.
Routing device utilizes process that RAM, TCAM carry out routing forwarding to the data message as shown in Figure 4.
Among Fig. 4, in step 400, routing device receives data message, begins routing procedure of the present invention.
To step 410, routing device obtains the IP address information from data message, and utilizes the high 16bit of this IP address and the list item among the RAM to mate, the high address index information of the 10bit after the compression in the acquisition coupling list item.
To step 420, the high address index information of the 10bit after routing device will compress is formed retrieving information with IP address information and the VPNID of low 16bit.
To step 430, routing device utilizes this retrieving information to carry out the matching treatment of route table items index information in the low 36bit of TCAM, routing device is judged the route table items index information that whether has among the low 36bit of TCAM with this retrieving information coupling, if have, to step 440, this matches the routing device utilization route table items index information and this data message is carried out routing forwarding handles.
In step 430, routing device is in determining the low 36bit of TCAM during not with the route table items index information of this retrieving information coupling, to step 450, routing device utilizes this retrieving information to carry out the matching treatment of route table items index information in the high 36bit of TCAM, routing device is judged the route table items index information that whether has among the high 36bit of TCAM with this retrieving information coupling, if have, execution in step 440.
In step 440, routing device utilizes the route table items index information of this coupling that this data message is carried out routing forwarding and handles process ends.
In step 450, if routing device is determined among the high 36bit of TCAM not the route table items index information with this retrieving information coupling, then determine not coupling of this route, to step 451, give CPU on the information such as IP address of routing device with message and do adress analysis by software, software guarantees can correctly transmit the same address message in back by the corresponding compression of configuration list item, content-addressable memory item and route table items then.
Be provided with CAM, compression module and routing module in the routing device provided by the invention.
Store each the route table items index information after the compression among the CAM, and store more than one route table items index information in a CAM unit.CAM here such as TCAM.When storing in the unit of CAM greater than 1 integer route table items index information, the length of the route table items index information after the compression should be determined according to the cell width of CAM, as the route table items index information be: with the allocation index information of the high 16bit boil down to 10bit of IP address, the low 16bit and the VPNID of IP address.When needing among the CAM to store dissimilar route table items index informations, also need the storage class identification information among the CAM, concrete as the description in the above-mentioned method.
Compression module is mainly used in: when routing device need carry out route to the data message, route table items index information in the packed data message, and this route table items index information after will compressing and the route table items index information among the CAM mate, and the index information that matches is sent to routing module.
Compression module is formed by searching submodule, corresponding relation sub module stored and matched sub-block.
The corresponding relation sub module stored is mainly used in: the corresponding relation of the route table items index information after storing unpressed route table items index information and compressing.The corresponding relation sub module stored can be RAM.Stored relation can be the corresponding relation between the allocation index information of the 10bit after: the high 16bit of IP address and the compression among the RAM.Concrete as the description in the above-mentioned method.
Searching submodule is mainly used in: when routing device need carry out routing forwarding to the data message, from data message, obtain unpressed route table items index information, then, route table items index information in this data message is carried out matched and searched in the corresponding relation sub module stored, with the route table items index information after the compression that obtains correspondence, and the route table items index information after the compression that will find transfers to matched sub-block, as search submodule in RAM, search with data message in the retrieving information of 10bit of high 16bit coupling of IP address, and with the retrieving information of the 10bit that finds, the low 16bit of the IP address in the data message and the VPNID message transmission in the data message are to matched sub-block.Concrete as the description in the above-mentioned method.
Matched sub-block is mainly used in: carry out matched and searched according to its route table items index information that receives and the route table items index information among the CAM, and the index information that matches is sent to routing module.Searching submodule can search according to the order from the low level to a high position in the matched and searched process, as when storing two route table items index informations in the unit of a 72bit among the CAM, from the unit of low 36bit, carry out matched and searched earlier, when in the unit of low 36bit, not finding the route table items index information of coupling, from the unit of the high 36bit of CAM, carry out matched and searched again.And, when also storing type identification information among the CAM, search the type that submodule also needs the route table items index information in the specified data message, and when matched and searched, increase the coupling of type identification information, concrete as the description in the above-mentioned method.
Routing module is mainly used in: receive the route table items index information that the matched sub-block transmission comes, and according to the route table items index information this data message is carried out routing forwarding and handle.It is identical with routing forwarding processing operation of the prior art that the routing forwarding that routing module carries out is handled operation, is not described in detail at this.
By foregoing description as can be known, because linear speed of tabling look-up is faster than TCAM, the hardware designs flow process of the present invention by adopting the streamline classification to search, make method for routing provided by the invention have routing table look-up performance at a high speed, thereby make routing forwarding performance of the present invention the same with the routing forwarding performance of the independent TCAM of employing in the prior art.Consider the regularity of distribution of IP address, the combination variety of high address seldom in the IP address, very big compression stroke is arranged, when route table items index information and CAM bit wide do not match, by adjusting the width of route table items index information, made full use of the memory space of CAM, and the width of adjusting the route table items index information does not cause the routing forwarding performance decrease.
The present invention propose based on the through street of TCAM and RAM by table item index information searching algorithm, the high speed processing ability of CAM is combined with the data organization method of IP address, realized at a high speed, capacity, routing forwarding processing procedure cheaply greatly.The present invention by hardware verification, has been truly feasible.
Though described the present invention by embodiment, those of ordinary skills know, the present invention has many distortion and variation and do not break away from spirit of the present invention, and the claim of application documents of the present invention comprises these distortion and variation.

Claims (10)

1, a kind of method for routing is characterized in that, comprising:
A, when needs carry out route to the data message, the route table items index information in the routing device packed data message, and the route table items index information of storing among route table items index information after will compressing and the CAM mates;
B, routing device carry out route according to the index information that matches to this data message to be handled;
A unit among the described CAM holds the route table items index information after the compression more than.
2, a kind of method for routing as claimed in claim 1 is characterized in that, comprises before the described route table items index information compression: VPNID and IP address.
3, a kind of method for routing as claimed in claim 2, it is characterized in that, the route table items index information of storing among the described CAM comprises: the IP address of VPNID and compression comprises the compression of IP address: according to the CAM cell width address information of the presumptive area in the IP address is compressed.
4, a kind of method for routing as claimed in claim 3 is characterized in that, the address information of described presumptive area comprises: category-A address information and category-B address information.
5, a kind of method for routing as claimed in claim 3 is characterized in that, setting the CAM cell width is 72 bits, comprises before the step a:
Routing device is high 16 bit boil down tos, 10 bits of IP address, and with this 10 bit with the VPNID of low 16 bits of IP address and 10 bits as the route table items index information, be stored in the CAM unit.
6, as the described a kind of method for routing of arbitrary claim in the claim 1 to 5, it is characterized in that described method also comprises: be provided with and do not compress route table items index information and the corresponding relation of the compression way of escape by table item index information;
And described step a comprises:
When needs carry out route to the data message, routing device is according to its route table items index information that obtains from data message, from described corresponding relation, search the route table items index information after the compression, and this route table items index information that will find and the route table items index information among the CAM mate.
As the described a kind of method for routing of arbitrary claim in the claim 1 to 5, it is characterized in that 7, the step that the route table items index information of storing among route table items index information after will compressing among the described step a and the CAM mates comprises:
Routing device mates route table items index information after the compression and the route table items index information among the CAM according to the order of low level list item in the CAM cell width to high-order list item.
8, as the described a kind of method for routing of arbitrary claim in the claim 1 to 5, it is characterized in that, when storing polytype route table items index information among the CAM, also store type identification information among the described CAM, and described step a comprise:
When needs carry out route to the data message, routing device is determined the type of this route table items index information according to its route table items index information that obtains from data message, from described corresponding relation, search the route table items index information after the compression, and the route table items index information among the type of the route table items index information in this data message, this route table items index information that finds and the CAM is mated.
9, a kind of routing device is characterized in that, is provided with CAM, compression module and routing module in the described routing device;
Store each the route table items index information after the compression among the CAM, and store the route table items index information after the more than one compression in CAM unit;
Compression module is used for: when routing device need carry out route to the data message, compress the route table items index information in this data message, and this route table items index information after will compressing and the route table items index information among the CAM mate, and the index information that matches is sent to routing module;
Routing module is used for: the route table items index information according to its reception carries out the routing forwarding processing to this data message.
10, a kind of routing device as claimed in claim 9 is characterized in that, described compression module comprises: the corresponding relation sub module stored, search submodule and matched sub-block;
The corresponding relation sub module stored is used for: the corresponding relation of the route table items index information after storing unpressed route table items index information and compressing;
Searching submodule is used for: when routing device need carry out route to the data message, according to the unpressed route table items index information in the data message, from the corresponding relation sub module stored, search the route table items index information after the compression, and the route table items index information after the compression that will find transfers to matched sub-block;
Matched sub-block is used for: the route table items index information of its route table items index information that receives and CAM is mated, and the index information that matches is sent to routing module.
CNB2006101120862A 2006-08-29 2006-08-29 Route method and equipment Active CN100450100C (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CNB2006101120862A CN100450100C (en) 2006-08-29 2006-08-29 Route method and equipment
PCT/CN2007/070057 WO2008028412A1 (en) 2006-08-29 2007-05-28 A routing method, a routing apparatus and a method for storing routing information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2006101120862A CN100450100C (en) 2006-08-29 2006-08-29 Route method and equipment

Publications (2)

Publication Number Publication Date
CN1909518A true CN1909518A (en) 2007-02-07
CN100450100C CN100450100C (en) 2009-01-07

Family

ID=37700512

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2006101120862A Active CN100450100C (en) 2006-08-29 2006-08-29 Route method and equipment

Country Status (2)

Country Link
CN (1) CN100450100C (en)
WO (1) WO2008028412A1 (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102291301A (en) * 2011-08-10 2011-12-21 杭州迪普科技有限公司 Message characteristic matching method and device
CN103581023A (en) * 2013-11-06 2014-02-12 盛科网络(苏州)有限公司 Method and device for realizing longest mask matching
CN108206782A (en) * 2017-11-22 2018-06-26 盛科网络(苏州)有限公司 Message forwarding method, device, chip and server
CN109039911A (en) * 2018-07-27 2018-12-18 烽火通信科技股份有限公司 It is a kind of to search the method and system that mode shares RAM based on HASH
CN110071923A (en) * 2019-04-24 2019-07-30 杭州迪普信息技术有限公司 Packet identification method, device, electronic equipment and machine readable storage medium
WO2019223795A1 (en) * 2018-05-25 2019-11-28 华为技术有限公司 Packet transmission method, communication device, and system
CN110708251A (en) * 2019-09-24 2020-01-17 北京计算机技术及应用研究所 Ternary Content Addressable Memory (TCAM) forwarding unicast table lookup method
CN112118186A (en) * 2020-08-28 2020-12-22 深圳市风云实业有限公司 Exchange chip routing table entry storage method, forwarding method and configuration method

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115484203A (en) * 2022-09-14 2022-12-16 杭州云合智网技术有限公司 Method, device and equipment for operating routing table entry and storage medium

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6389507B1 (en) * 1999-01-15 2002-05-14 Gigabus, Inc. Memory device search system and method
US7274697B2 (en) * 2000-11-16 2007-09-25 Tensilica, Inc. Fast IP route lookup with 16/K and 16/Kc compressed data structures
US7028098B2 (en) * 2001-07-20 2006-04-11 Nokia, Inc. Selective routing of data flows using a TCAM
US6751110B2 (en) * 2002-03-08 2004-06-15 Micron Technology, Inc. Static content addressable memory cell
CN100574251C (en) * 2002-12-10 2009-12-23 中兴通讯股份有限公司 A kind of multiprotocol label switching route system interface arrangement and retransmission method
CN1191520C (en) * 2003-04-04 2005-03-02 清华大学 TCAM high speed updating method supporting route compress
CN1279729C (en) * 2004-02-20 2006-10-11 清华大学 Distributed paralled IP route searching method based on TCAM
CN100375463C (en) * 2004-07-02 2008-03-12 中国科学院计算技术研究所 Method for realizing longest prifix address route search using sectioned compressed list

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102291301A (en) * 2011-08-10 2011-12-21 杭州迪普科技有限公司 Message characteristic matching method and device
CN102291301B (en) * 2011-08-10 2015-06-10 杭州迪普科技有限公司 Message characteristic matching method and device
CN103581023A (en) * 2013-11-06 2014-02-12 盛科网络(苏州)有限公司 Method and device for realizing longest mask matching
CN108206782A (en) * 2017-11-22 2018-06-26 盛科网络(苏州)有限公司 Message forwarding method, device, chip and server
WO2019223795A1 (en) * 2018-05-25 2019-11-28 华为技术有限公司 Packet transmission method, communication device, and system
CN110535812A (en) * 2018-05-25 2019-12-03 华为技术有限公司 Message transmitting method, communication device and system
CN110535812B (en) * 2018-05-25 2021-01-29 华为技术有限公司 Message transmission method, communication device and system
US11444874B2 (en) 2018-05-25 2022-09-13 Huawei Technologies Co., Ltd. Packet transmission method, and communications apparatus and system
CN109039911A (en) * 2018-07-27 2018-12-18 烽火通信科技股份有限公司 It is a kind of to search the method and system that mode shares RAM based on HASH
CN110071923A (en) * 2019-04-24 2019-07-30 杭州迪普信息技术有限公司 Packet identification method, device, electronic equipment and machine readable storage medium
CN110708251A (en) * 2019-09-24 2020-01-17 北京计算机技术及应用研究所 Ternary Content Addressable Memory (TCAM) forwarding unicast table lookup method
CN112118186A (en) * 2020-08-28 2020-12-22 深圳市风云实业有限公司 Exchange chip routing table entry storage method, forwarding method and configuration method

Also Published As

Publication number Publication date
WO2008028412A1 (en) 2008-03-13
CN100450100C (en) 2009-01-07

Similar Documents

Publication Publication Date Title
CN1909518A (en) Route method and equipment
US9704574B1 (en) Method and apparatus for pattern matching
EP2793436B1 (en) Content router forwarding plane architecture
CN1929447A (en) Method and device for searching address prefixion and message transfer method and system
US8972453B2 (en) Method and system for longest prefix matching of variable-sized hierarchical names by treelets
CN1282332C (en) A method of fast data packet filtering
CN101594319B (en) Entry lookup method and entry lookup device
US20120136846A1 (en) Methods of hashing for networks and systems thereof
CN105635343A (en) IP address list storage and query method applied to DNS query
CN1969525A (en) Communication server, method and systems, for reducing transportation volumes over communication networks
CN101043695A (en) Method for storing and maintaining user equipment information in mobile communication system
CN101034412A (en) Information storing method, information search method and engine device
WO2009046669A1 (en) Method and device for storing and searching keyword
CN1842042A (en) Method and apparatus for searching a network connection
Pao et al. Efficient hardware architecture for fast IP address lookup
Crescenzi et al. IP address lookupmade fast and simple
CN1688140A (en) High-speed multi-dimension message classifying algorithm design and realizing based on network processor
CN101043421A (en) Memory based method for searching quickly the longest matching of IP address
CN1878164A (en) E.164 number domain name storing and searching method
CN1216473C (en) TCAM high-speed search method and system supporting multiple nexthop
CN1897560A (en) Method for improving routing list capacity
CN1859208A (en) Method and system for managing TCAM route list
CN104253754A (en) ACL (access control list) fast matching method and equipment
CN1152516C (en) Method for finding out IP network node
CN1852241A (en) Flow classification device and base station adopting same

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant