[go: up one dir, main page]

WO2008028412A1 - A routing method, a routing apparatus and a method for storing routing information - Google Patents

A routing method, a routing apparatus and a method for storing routing information Download PDF

Info

Publication number
WO2008028412A1
WO2008028412A1 PCT/CN2007/070057 CN2007070057W WO2008028412A1 WO 2008028412 A1 WO2008028412 A1 WO 2008028412A1 CN 2007070057 W CN2007070057 W CN 2007070057W WO 2008028412 A1 WO2008028412 A1 WO 2008028412A1
Authority
WO
WIPO (PCT)
Prior art keywords
routing
index information
compressed
routing entry
entry index
Prior art date
Application number
PCT/CN2007/070057
Other languages
French (fr)
Chinese (zh)
Inventor
Chao Lv
Xiong Yang
Rongfeng Hong
Minwei Zhang
Zhitao Wang
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.
Publication of WO2008028412A1 publication Critical patent/WO2008028412A1/en

Links

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

Definitions

  • Routing method Description Routing method, routing device, and routing information storage method
  • the present invention relates to the field of network communication technologies, and in particular, to a routing method, a routing device, and a routing information storage method.
  • routing devices After the algorithm is compressed into a shorter address, there will always be an address duplication. To avoid address duplication, routing devices generally use multi-level HASH.
  • the forwarding performance of the routing device is poor. At the same time, because the routing device needs to be IP
  • the address is searched by the longest matching field, so that the IP in the HASH process
  • TCAM Triple Content Address Memory
  • TCAM is generally used to implement IP routing lookup.
  • TCAM is a high-speed content-based device. Three-value matching allows an IP routing entry to be configured with an IP address and a domain to be matched.
  • the longest match table is checked, and the result can be obtained in one lookup.
  • high-speed devices can achieve 266M/S, which is the unimaginable speed of HASH search, TCAM IP.
  • the current maximum single-chip capacity is 18 Mbit, and the single-chip capacity is difficult to do. Therefore, the capacity of the routing table is greatly limited.
  • the embodiment of the present invention provides a routing method, a routing device, and a routing information storage method, so that the CAM can store more routing entry index information and improve the CAM.
  • the performance of the routing table reduces the cost of the routing device.
  • a routing method provided by an embodiment of the present invention includes:
  • the one unit in the content-based look-up table device accommodates one or more routing entry index information compressed in the first compression manner.
  • the embodiment of the present invention further provides a routing device, where the routing device is provided with a CAM
  • the compression module is configured to obtain the compressed routing entry index information according to the routing entry index information in the data packet, and compress the compressed routing entry index information and the routing entry in the content lookup table device. The index information is matched to obtain matching index information; [20] The routing module is configured to perform routing and forwarding processing on the data packet according to the matching routing entry index information obtained by the compression module.
  • the embodiment of the present invention further provides a routing information storage method, where the method includes:
  • the number of routing table entry index information that one unit needs to store is two or more.
  • CAM's unit width can accommodate multiple compressed routing entries index information, enabling CAM
  • routing table increases the capacity of the routing table, and overcomes the disadvantages of high cost of the routing device and large capacity limitation of the routing table when the CAM is used in the prior art; thus, the routing device can have the high efficiency of routing table lookup and large routing table capacity. , low cost of routing equipment and other characteristics.
  • Figure 1 is a schematic diagram of a CAM in the prior art
  • FIG. 2 is a schematic diagram of searching for a compressed IP address according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram of a CAM according to an embodiment of the present invention.
  • FIG. 4 is a flowchart of searching for routing entry index information according to an embodiment of the present invention.
  • the high forwarding performance and the lower cost routing lookup method can overcome the shortcomings of high routing equipment cost and large routing table capacity limitation while overcoming the poor routing and forwarding performance.
  • the embodiment of the present invention proposes a CAM based
  • the fast routing method of indexing information compression of routing entries achieves high-speed, large-capacity, low-cost route lookup by utilizing the high-speed processing capability of CAM, such as TCAM devices, and the data organization method of combining routing table entry information.
  • a CAM such as a TCAM
  • One unit can store more than one routing table entry index information, that is, a CAM
  • the number of routing table entry index information stored in the unit should be greater than 1, such as a CAM
  • the index information of an integer number of routing entries greater than 1 is stored in the unit.
  • the number of index entries of the routing entries stored in a CAM unit may also be a non-integer greater than one.
  • the routing device should compress the index information of each routing entry so that a CAM unit width can accommodate multiple compressed routing entry index information.
  • the routing table entry index information should be compressed according to the unit width of the CAM.
  • the routing device first compresses the routing entry index information in the data packet, and indexes the routing entry in the compressed data packet with the CAM.
  • the routing table entry index information is matched. Then, the routing device forwards the data packet according to the matched index information.
  • the index information of the routing entries before compression is generally: VPNID and IP.
  • the routing device in the embodiment of the present invention needs to have a VPNID and an IP.
  • the address is compressed.
  • the specific compression process can be: IP
  • the address information of the predetermined section of the address is compressed into address information of a predetermined bit width.
  • the address information of the predetermined interval of the IP address may be: a class A address or a class B address in the IP address, that is, the routing device may preferentially compress the class A address or the class B address in the IP address when performing compression processing. , such as IP address high 16bit IP The address is compressed.
  • the specific compression algorithm can be set according to the specific conditions of the network. For example, the upper 16 bits of the IP address in the system only represents n.
  • the numbers 1 to n are set, and the different numbers correspond to different high 16 bits in the IP address.
  • compression can be performed according to the above compression algorithm.
  • the above predetermined bit width should be determined according to the cell width in the CAM, such as when a CAM
  • the width of the index information of one routing entry is CAM.
  • One-half of the width of the unit so that when determining the predetermined bit width, the width of the routing table item before compression is required to be the width of the CAM.
  • the width of the index information of the routing table item before compression is more than the width of the CAM unit width, and the width of the address information of the predetermined interval is set to K1.
  • the bit position, the index of the routing table item before compression is more than one-half K2 bit wider than the width of the CAM unit.
  • the pre-positioning width is: the difference between K1 and K2.
  • the routing device compresses the routing entries in the data packets by using the same compression method when receiving the data packets that need to be forwarded.
  • the matching process of the index information of the compressed routing entry is performed.
  • the embodiment of the present invention may also pre-set the correspondence between the uncompressed routing entry index information and the compressed routing entry index information, and the corresponding relationship may be stored in the routing device, such as the RAM stored in the routing device.
  • the routing device receives the need for route forwarding processing.
  • the uncompressed routing entry index information is obtained from the data packet, and then the linear matching is performed to match the uncompressed routing entry index information in the data packet. Routing entry index information, after finding the matching compressed routing entry index information , will find the compressed routing table entry index information and CAM
  • the routing table entry index information is matched. Finally, the routing device performs routing and forwarding processing on the data packet by using the matching routing entry index information in the CAM.
  • the routing device may match the lower-order entry in the CAM unit width to the index entry of the compressed routing entry in the CAM.
  • the order of the high-order entries matches the found index information of the compressed routing entries with the routing table entry index information in the CAM, for example, when a CAM
  • the routing device When two routing table entry index information is stored in the cell width, the routing device first performs a matching operation in the lower table entry of the CAM. If the matching succeeds, the matching process ends, and if the matching fails.
  • the matching operation is performed in the high order entry of the CAM.
  • the type identifier information should also be stored.
  • the type identifier information is used to indicate the type of the index information of the routing entry.
  • the type of the index information of the routing entry is the index information of the routing entry of the IPv4, and the index information of the routing entry of the IPv6.
  • type identification information such as IPv4 and IPv6, may be set for each routing entry index information.
  • the routing table entry index information is set with the type identification information. You can also set the type identification information for the partial routing entry index information. For example, only the IPv6 routing entry index information is used to set the type identification information.
  • IPv4 routing entry index information does not set type identification information.
  • the width of the CAM unit and the bit width information occupied by the type identification information should be considered.
  • the routing device When the type identifier information is stored, the routing device needs to obtain the uncompressed routing entry index information from the data packet, and also needs to determine the route. The type of table entry index information, and then, the routing device queries the RAM
  • the table and the like determine the index information of the compressed routing entry corresponding to the index information of the uncompressed routing entry, and the routing device uses the compressed route after determining the compressed routing entry index information corresponding to the data packet. Entry index information and type identification information in CAM
  • the matching entry is found, and the data packet is forwarded and processed according to the matching routing entry index information.
  • IPv4 routing entry index information is generally determined by VPNID and IP.
  • the routing device is based on VPNID and IP
  • the IPv4 IP address information is 32 bits
  • the VPNID is 10 bits
  • the TCAM unit width is as shown in Figure 1.
  • the TCAM unit has a width of 72 bits, and the width of the IP address and VPNID is 42 bits. Thus, the high 30 bits of the TCAM unit are not fully utilized.
  • the routing device can compress the VPNID+IP address information into 36bit, thus a 72bit TCAM
  • Two compressed routing entry index information can be placed in the unit, thereby making the TCAM
  • the routing table entry capacity has doubled.
  • the law of address distribution is that the number of network segments of an 8-bit Class A address and a 16-bit Class B address of a routing node on the network is small, and the change of the IP address is mainly concentrated in the latter 16 bits.
  • a routing entry index information can be 36 bits.
  • Composition including: lObit VPNID, compressed lObit high address index information, and low
  • RAM can be used in routing devices to store uncompressed high 16bit IP
  • routing device can directly use the high 16-bit IP address as the index in the RAM when constructing the routing entry index information.
  • the routing device uses the lObit high-order address index information, the lower 16-bit IP address information, and the VPNID obtained by the above linear lookup table to construct a CAM routing entry, as shown in FIG. 2, because each routing table in the TCAM The item width is reduced to 36 bits. Therefore, each 72-bit unit in the TCAM can store two routing table entry index information.
  • the routing device needs to forward and forward the data packet, first, obtain the IP address information and the VPNID information from the data packet, and then, the high address of the IP address and the RAM.
  • the entries in the match are matched, and the compressed lObit in the matching entry is obtained.
  • High-order address index information using the index information together with low 16-bit IP address information and VPNID to TCAM
  • the matching process of the routing entry index information is performed, and the data packet is forwarded and processed by using the matching index information of the routing entry.
  • the route forwarding process in the embodiment of the present invention is the same as the route forwarding process in the prior art, and will not be described in detail herein.
  • the routing device uses the RAM and TCAM to route and forward data packets as shown in Figure 4.
  • step 400 the routing device receives the data packet and starts the routing process.
  • step 410 the routing device obtains IP address information from the data packet, and uses the IP
  • the upper 16 bits of the address are matched with the entries in the RAM to obtain the compressed high-order address index information of the lObit in the matching entry.
  • the routing device composes the compressed lObit high-order address index information with the lower 16-bit IP address information and the VPN ID to form the search information.
  • the routing device uses the retrieved information to the lower 36 bits of the TCAM.
  • routing entry index information The matching process of the routing entry index information is performed, and the routing device determines the low 36 bit of the TCAM. Whether there is routing table entry index information matching the retrieval information, if any, to step 440.
  • the routing device determines the low 36 bit of the TCAM.
  • the routing device uses the retrieved information to the TCAM high 36bit
  • the matching process of the routing entry index information is performed, and the routing device determines whether there is a routing entry index information matching the retrieval information in the high 36 bits of the TCAM, and if yes, executing step 440.
  • the routing device performs routing and forwarding processing on the data packet by using the matching routing entry index information, and ends the process.
  • the routing device uploads information such as the IP address of the packet to the CPU.
  • the address analysis is performed by the software, and then the software configures the corresponding compression entry, CAM.
  • Table entries and routing entries ensure that packets with the same address can be forwarded correctly.
  • the routing device provided by the embodiment of the present invention is provided with a CAM, a compression module, and a routing module.
  • the CAM stores the compressed index entries of each routing entry, and a CAM
  • More than one routing entry index information is stored in the unit.
  • the CAM here is like TCAM. When a unit of CAM is stored greater than 1
  • the length of the index information of the compressed routing entry should be determined according to the unit width of the CAM.
  • the index information of the routing entry is: The upper 16 bits of the IP address is compressed into the address index information of lObit. , the lower 16bit of the IP address and the VPNID.
  • the storage type identification information is also required, as described in the above method embodiment.
  • the compression module is used to: when the routing device needs to route data packets, compress the routing entry index information in the data packet, and compress the compressed routing entry index information with the CAM.
  • the routing table entry index information is matched, and the matched index information is sent to the routing module.
  • the compression module consists of a lookup submodule, a corresponding relational storage submodule, and a matching submodule.
  • the corresponding relationship storage submodule is mainly used to: store uncompressed routing table entry index information and compressed path
  • the correspondence between the index information of the entry can be RAM.
  • the correspondence stored in the RAM can be: the upper 16 bits of the IP address and the compressed lObit
  • the search sub-module is mainly used to: obtain the uncompressed routing entry index information from the data packet when the routing device needs to forward the data packet, and then the routing entry in the data packet.
  • the index information is matched and searched in the corresponding relationship storage sub-module to obtain the corresponding compressed routing entry index information, and the searched compressed routing entry index information is transmitted to the matching sub-module, such as the search sub-module.
  • the RAM searches for the lObit search information matching the upper 16 bits of the IP address in the data packet, and searches for the lObit search information, the lower 16 bits of the IP address in the data packet, and the VPNID in the data packet.
  • the information is transferred to the matching submodule. Specifically, it is as described in the above method embodiment.
  • the matching submodule is mainly used to: according to the routing table entry index information and CAM received by it
  • the routing table entry index information is matched and searched, and the matched index information is sent to the routing module.
  • the search sub-module can be searched in the order from low to high in the matching search process. For example, when two 72-bit units in the CAM store two routing table index information, the matching search is performed from the lower 36-bit unit. At low 36bit
  • the search sub-module When the type identification information is also stored, the search sub-module also needs to determine the type of the routing table item information in the data packet, and when the matching search is performed, the matching of the type identification information is added, as described in the above method. .
  • the routing module is mainly used to: receive the index information of the routing entry transmitted by the matching sub-module, and perform routing and forwarding processing on the data packet according to the index information of the routing entry.
  • the route forwarding processing operation performed by the routing module may be the same as the routing forwarding processing operation in the prior art, and will not be described in detail herein.
  • the routing performance of the embodiment of the present invention is the same as that of the TCAM in the prior art. .
  • IP There are few combinations of high-order addresses in the address, there is a lot of compression space, and the index information of the routing entries is
  • the storage space of the CAM is fully utilized by adjusting the width of the index information of the routing entry. Moreover, adjusting the width of the index information of the routing entry does not cause the degradation of the routing forwarding performance.
  • the data organization method of the address is combined to realize a high-speed, large-capacity, low-cost route forwarding process.
  • Embodiments of the present invention have been verified by hardware and are indeed feasible.
  • the unit width of one CAM can accommodate multiple compressed routing entry index information, so that CAM
  • the correspondence between the index information of the uncompressed routing entry and the index information of the compressed routing entry is set, such as in RAM.
  • CAM can enable CAM to Routing and forwarding of multiple types of data packets, such as Ipv4 and Ipv6
  • the data packet is forwarded by the data packet.
  • the technical solution provided by the embodiment of the present invention enables the routing device to have the characteristics of high efficiency of routing table lookup, large routing table capacity, and low cost of the routing device.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a routing method, a routing apparatus and a method for storing routing information. The routing method includes the step as follows: receiving the data messages; acquiring the compressed index information of routing table according to index information of routing table in the data message; matching the compressed index information of routing table with the index information of routing table which locates in the Content Addressable Memory; routing the data message by the matched index information of routing table; a unit of Content Address Memory can contain one or one more index information of routing table which is compressed with the first compressed format. According to the compressed index information of every routing table, a unit of CAM can contain the multi compressed index information of routing table; the CAM can store more index information of routing table, the efficiency using CAM is improved; the capacity of routing table is enlarged. The invention overcome the shortcoming such as follows: when using the CAM in prior art, the cost of routing apparatus is high, and the capacity of routing table is limited a lot.

Description

说明书 路由方法、 路由设备和路由信息存储方法  Description Routing method, routing device, and routing information storage method

[1] 技术领域  [1] Technical field

[2] 本发明涉及网络通讯技术领域, 具体涉及一种路由方法、 路由设备和路由信息 存储方法。  [2] The present invention relates to the field of network communication technologies, and in particular, to a routing method, a routing device, and a routing information storage method.

[3] 发明背景 [3] Background of the invention

[4] 目前, 在路由设备如路由器、 以太网交换机中, 主要有两种 IP  [4] Currently, there are two main types of IP in routing devices such as routers and Ethernet switches.

路由査表方法:  Routing lookup method:

[5] 方法一、 采用 HASH (哈希)算法, 通过 RAM ( Random Access Memory , 随机存取记忆体) 来实现 IP路由査表。 低端以太网交换机一般会采用 HASH査表方式。  [5] Method 1. Using HASH (Hash) algorithm, IP routing table lookup is realized by RAM (Random Access Memory). Low-end Ethernet switches generally use HASH lookup mode.

[6] 方法一的优点在于: 路由实现成本低, 但是, HASH  [6] The advantages of Method 1 are: Routing implementation costs are low, however, HASH

算法的主要问题是: 当不同 IP地址经过 HASH  The main problem of the algorithm is: When different IP addresses pass HASH

算法压缩为较短的地址后, 总会有地址重复的情况出现。 为避免出现地址重复 的现象, 路由设备一般会采用多级 HASH  After the algorithm is compressed into a shorter address, there will always be an address duplication. To avoid address duplication, routing devices generally use multi-level HASH.

结构来解决这个问题, 这样, 使路由设备在一次 IP査表过程中, 实际査 RAM 的次数不确定, 在最坏的情况下, 査 RAM 的次数会很多, 从而使 IP 路由査表效率差, 最终导致  Structure to solve this problem, so that the routing device in the IP lookup process, the actual number of RAM check is uncertain, in the worst case, the number of RAM check will be many, which makes the IP routing lookup efficiency is poor, ultimately leading to

路由设备的转发性能差。 同时, 由于路由设备需要对 IP  The forwarding performance of the routing device is poor. At the same time, because the routing device needs to be IP

地址按最长匹配域进行査找, 使 HASH处理过程中的 IP  The address is searched by the longest matching field, so that the IP in the HASH process

地址匹配后, 需要检査该 IP地址匹配是否为最长匹配, 进一步降低了 IP 路由査表效率 , 从而, 进一步降低了路由设备的转发性能。  After the address is matched, it is required to check whether the matching of the IP address is the longest match, which further reduces the efficiency of IP routing table lookup, thereby further reducing the forwarding performance of the routing device.

[7] 方法二、 为了提高 IP路由査表的性能, 发展出了 CAM [7] Method 2: In order to improve the performance of IP routing lookup table, CAM has been developed.

(基于内容査表器件)如 TCAM ( Triple Content Address Memory , 三值内容寻址存储器 ) , TCAM可以根据内容如 IP  (based on content lookup device) such as TCAM (Triple Content Address Memory), TCAM can be based on content such as IP

地址直接找到对应的表项索引。 在中高端芯片中, 一般会采用 TCAM实现 IP 路由査表。 [8] TCAM是一种高速按内容査找的器件, 三值匹配可以让一条 IP路由表项配置 IP地址和需要匹配的域, 从而可以很好支持 IP The address directly finds the corresponding entry index. In the middle and high-end chips, TCAM is generally used to implement IP routing lookup. [8] TCAM is a high-speed content-based device. Three-value matching allows an IP routing entry to be configured with an IP address and a domain to be matched.

最长匹配査表, 而且, 一次査表肯定可以得到结果。 目前, 高速的器件已经能 做到 266M/S , 这是 HASH査找不可想象的速度, TCAM 的 IP  The longest match table is checked, and the result can be obtained in one lookup. At present, high-speed devices can achieve 266M/S, which is the unimaginable speed of HASH search, TCAM IP.

路由査表效率高 。 但是, TCAM  The routing table is efficient. However, TCAM

的价格较高, 使路由设备的成本较高, 而且, 目前最大单片的容量为 18Mbit , 单片容量很难做的特别大, 因而, 对路由表容量限制较大。  The higher the price, the higher the cost of the routing device. Moreover, the current maximum single-chip capacity is 18 Mbit, and the single-chip capacity is difficult to do. Therefore, the capacity of the routing table is greatly limited.

[9] 发明内容 [9] Summary of the invention

[10] 本发明实施方式提供一种路由方法、 路由设备和路由信息存储方法, 使 CAM 能够存储更多的路由表项索引信息, 提高了 CAM  [10] The embodiment of the present invention provides a routing method, a routing device, and a routing information storage method, so that the CAM can store more routing entry index information and improve the CAM.

的利用率, 使路由设备在具有高效率的 CAM  Utilization of routing devices in a highly efficient CAM

路由査表性能的同时, 降低了路由设备的成本。  The performance of the routing table reduces the cost of the routing device.

[11] 本发明实施方式提供的一种路由方法, 包括: [11] A routing method provided by an embodiment of the present invention includes:

[12] 接收数据报文; [12] receiving data messages;

[13] 根据所述数据报文中的路由表项索引信息得到压缩后的路由表项索引信息; [14] 将该压缩后的路由表项索引信息与基于内容査表器件中存储的路由表项索引信 息进行匹配;  [13] obtaining the compressed routing entry index information according to the routing entry index information in the data packet; [14] the compressed routing entry index information and the routing entry stored in the content lookup table device Index information is matched;

[15] 根据匹配到的索引信息对该数据报文进行路由处理;  [15] routing the data packet according to the matched index information;

[16] 所述基于内容査表器件中的一个单元容纳一个以上以第一压缩方式压缩后的路 由表项索引信息。  [16] The one unit in the content-based look-up table device accommodates one or more routing entry index information compressed in the first compression manner.

[17] 本发明实施方式还提供一种路由设备, 所述路由设备中设置有 CAM  [17] The embodiment of the present invention further provides a routing device, where the routing device is provided with a CAM

、 压缩模块和路由模块;  , compression module and routing module;

[18] 基于内容査表器件, [18] Based on content lookup device,

用于存储压缩后的各路由表项索引信息, 且一个所述基于内容査表器件单元中 存储有一个以上的压缩后的路由表项索引信息;  And storing the compressed routing entry index information, and storing one or more compressed routing entry index information in the content-based table device unit;

[19] 压缩模块, 用于根据数据报文中的路由表项索引信息得到压缩后的路由表项索 引信息, 并将压缩后的该路由表项索引信息与基于内容査表器件中的路由表项 索引信息进行匹配, 得到匹配的索引信息; [20] 路由模块, 用于根据所述压缩模块得到的匹配的路由表项索引信息对该数据报 文进行路由转发处理。 [19] The compression module is configured to obtain the compressed routing entry index information according to the routing entry index information in the data packet, and compress the compressed routing entry index information and the routing entry in the content lookup table device. The index information is matched to obtain matching index information; [20] The routing module is configured to perform routing and forwarding processing on the data packet according to the matching routing entry index information obtained by the compression module.

[21] 本发明实施方式还提供一种路由信息存储方法, 该方法包括: [21] The embodiment of the present invention further provides a routing information storage method, where the method includes:

[22] 根据基于内容査表器件一个单元的长度、 一个单元需要存储的路由表项索引信 息的个数、 以及路由表项索引信息的长度对路由表项索引信息进行压缩; [22] compressing the routing entry index information according to the length of one unit based on the content lookup table device, the number of routing table entry index information that a unit needs to store, and the length of the routing table entry index information;

[23] 将所述压缩后的路由表项索引信息存储在基于内容査表器件中; [23] storing the compressed routing entry index information in a content-based table lookup device;

[24] 所述一个单元需要存储的路由表项索引信息的个数为两个或两个以上。 [24] The number of routing table entry index information that one unit needs to store is two or more.

[25] 通过上述技术方案的描述可知, 通过对各路由表项索引信息进行压缩, 使一个[25] According to the description of the foregoing technical solution, by compressing the index information of each routing entry, one

CAM 的单元宽度能够容纳多个压缩后的路由表项索引信息, 使 CAM CAM's unit width can accommodate multiple compressed routing entries index information, enabling CAM

能够存储更多的路由表项索引信息, 提高了 CAM  Ability to store more routing table entry index information, improve CAM

的利用率, 扩大了路由表的容量, 克服了现有技术中采用 CAM时, 路由 设备成本高, 路由表容量限制大的缺点; 从而使路由设备能够同时具有路由査 表效率高、 路由表容量大、 路由设备成本低等特性。  The utilization of the routing table increases the capacity of the routing table, and overcomes the disadvantages of high cost of the routing device and large capacity limitation of the routing table when the CAM is used in the prior art; thus, the routing device can have the high efficiency of routing table lookup and large routing table capacity. , low cost of routing equipment and other characteristics.

[26] 附图简要说明  [26] BRIEF DESCRIPTION OF THE DRAWINGS

[27] 图 1 是现有技术中的 CAM示意图;  [27] Figure 1 is a schematic diagram of a CAM in the prior art;

[28] 图 2 是本发明实施例的査找压缩后的 IP地址示意图;  2 is a schematic diagram of searching for a compressed IP address according to an embodiment of the present invention;

[29] 图 3 是本发明实施例的 CAM示意图;  3 is a schematic diagram of a CAM according to an embodiment of the present invention;

[30] 图 4是本发明实施例的査找路由表项索引信息的流程图。  4 is a flowchart of searching for routing entry index information according to an embodiment of the present invention.

[31] 实施本发明的方式  [31] Mode for carrying out the invention

[32] 在现有技术中, 当路由设备采用 HASH算法进行 RAM  [32] In the prior art, when the routing device uses the HASH algorithm for RAM

査表来实现路由査找时, 虽然具有成本低的优点, 但是存在路由转发效率低、 路由转发性能差的问题; 当路由设备采用 TCAM  When the lookup table is used to implement route lookup, although it has the advantage of low cost, there is a problem of low route forwarding efficiency and poor route forwarding performance; when the routing device adopts TCAM

来实现路由査找时, 虽然具有路由査表效率高的优点, 但是存在路由表容量低 、 路由设备成本高的问题。 如果将现有技术中两种路由査找方法相结合, 提供 一种既具有 TCAM  In order to implement route lookup, although it has the advantage of high efficiency of route lookup, there is a problem that the routing table has low capacity and the cost of the routing device is high. If the two route lookup methods in the prior art are combined, one provides TCAM

的高转发性能、 又具有较低成本的路由査找方法, 则能够在克服路由转发性能 差的同时, 克服路由设备成本高、 路由表容量限制大的缺点。  The high forwarding performance and the lower cost routing lookup method can overcome the shortcomings of high routing equipment cost and large routing table capacity limitation while overcoming the poor routing and forwarding performance.

[33] 本发明实施方式提出了一种基于 CAM 和路由表项索引信息压缩的快速路由方法, 通过利用 CAM如 TCAM 器件的高速处理能力、 同时结合路由表项索引信息的数据组织方法, 实现了高 速、 大容量、 低成本的路由査找。 [33] The embodiment of the present invention proposes a CAM based The fast routing method of indexing information compression of routing entries achieves high-speed, large-capacity, low-cost route lookup by utilizing the high-speed processing capability of CAM, such as TCAM devices, and the data organization method of combining routing table entry information.

[34] 下面对本发明实施方式提供的技术方案进行详细描述。  The technical solutions provided by the embodiments of the present invention are described in detail below.

[35] 在本发明实施方式的技术方案中, CAM如 TCAM  [35] In the technical solution of the embodiment of the present invention, a CAM such as a TCAM

的一个单元中可以存储一个以上的路由表项索引信息, 即一个 CAM  One unit can store more than one routing table entry index information, that is, a CAM

单元中存储的路由表项索引信息的数量应大于 1 , 如一个 CAM  The number of routing table entry index information stored in the unit should be greater than 1, such as a CAM

单元中存储有大于 1 的整数个路由表项索引信息, 当然, 一个 CAM 单元中存储的路由表项索引信息的数量也可以为大于 1 的非整数。  The index information of an integer number of routing entries greater than 1 is stored in the unit. The number of index entries of the routing entries stored in a CAM unit may also be a non-integer greater than one.

[36] 当 CAM 的一个单元中存储有大于 1  [36] When more than 1 is stored in a unit of CAM

的整数个路由表项索引信息时, 路由设备应压缩各路由表项索引信息, 使一个 CAM单元宽度能够容纳多个压缩后的路由表项索引信息。 当一个 CAM 单元中需要存储大于 1 的整数个压缩后的路由表项索引信息时, 应根据 CAM 的单元宽度来压缩路由表项索引信息  When an integer number of routing entry index information is used, the routing device should compress the index information of each routing entry so that a CAM unit width can accommodate multiple compressed routing entry index information. When a CAM unit needs to store index information of an integer number of compressed routing entries greater than 1, the routing table entry index information should be compressed according to the unit width of the CAM.

。 这样, 在需要对数据报文进行路由时, 路由设备首先应对数据报文中的路由 表项索引信息进行压缩处理, 并将压缩后的数据报文中的路由表项索引信息与 CAM  . In this way, when the data packet needs to be routed, the routing device first compresses the routing entry index information in the data packet, and indexes the routing entry in the compressed data packet with the CAM.

中的路由表项索引信息进行匹配; 然后, 路由设备根据匹配到的索引信息对该 数据报文进行路由转发。  The routing table entry index information is matched. Then, the routing device forwards the data packet according to the matched index information.

[37] 在实际应用过程中, 压缩前的路由表项索引信息一般为: VPNID和 IP  [37] In the actual application process, the index information of the routing entries before compression is generally: VPNID and IP.

地址。 这样, 本发明实施方式中的路由设备需要对 VPNID和 IP  address. Thus, the routing device in the embodiment of the present invention needs to have a VPNID and an IP.

地址进行压缩处理, 具体的压缩处理过程可以为: 将 IP  The address is compressed. The specific compression process can be: IP

地址的预定区间的地址信息压缩为预定位宽的地址信息。  The address information of the predetermined section of the address is compressed into address information of a predetermined bit width.

[38] 由于 IP地址的分布是有规律的, 即在网络上一个路由节点的 A类地址和 B 类地址的网段数量很少, IP地址的变化主要集中在后面的低 16bit 。 这样, IP地址的预定区间的地址信息可以为: IP地址中的 A类地址或者 B 类地址, 即 路由设备在进行压缩处理时, 可以优先对 IP地址中的 A 类地址或者 B类地址进行压缩, 如将 IP地址中 高 16bit 的 IP 地址进行压缩。 在进行压缩过程中, 具体的压缩算法可以根据网络的具体情况 来设置, 如系统中的 IP地址的 高 16bit只表示 n [38] Since the distribution of IP addresses is regular, that is, the number of network segments of Class A address and Class B address of a routing node on the network is small, and the change of IP address is mainly concentrated in the lower 16 bits. In this way, the address information of the predetermined interval of the IP address may be: a class A address or a class B address in the IP address, that is, the routing device may preferentially compress the class A address or the class B address in the IP address when performing compression processing. , such as IP address high 16bit IP The address is compressed. During the compression process, the specific compression algorithm can be set according to the specific conditions of the network. For example, the upper 16 bits of the IP address in the system only represents n.

种不同的情况, 则设置数字 1 到 n , 不同数字对应 IP地址中 不同的高 16bit , 在压缩时, 根据上述压缩算法进行压缩即可。  In different cases, the numbers 1 to n are set, and the different numbers correspond to different high 16 bits in the IP address. When compressing, compression can be performed according to the above compression algorithm.

[39] 当 一个 CAM单元中需要存储大于 1 [39] When a CAM unit needs to store more than 1

的整数个压缩后的路由表项索引信息时, 上述预定位宽应根据 CAM 中的单元宽度来确定, 如当一个 CAM  When an integer number of compressed routing table entry index information, the above predetermined bit width should be determined according to the cell width in the CAM, such as when a CAM

单元中需要存放两个路由表项索引信息时, 则一个路由表项索引信息的宽度为 CAM  When two routing table entries need to be stored in the unit, the width of the index information of one routing entry is CAM.

单元宽度的二分之一, 这样, 在确定预定位宽时, 需要将压缩前的路由表项索 弓 I信息的宽度与 CAM  One-half of the width of the unit, so that when determining the predetermined bit width, the width of the routing table item before compression is required to be the width of the CAM.

单元宽度的二分之一相比, 以确定压缩前的路由表项索引信息的宽度比 CAM 单元宽度多多少比特, 设定预定区间的地址信息的宽度为 K1  Compared with one-half of the cell width, it is determined that the width of the index information of the routing table item before compression is more than the width of the CAM unit width, and the width of the address information of the predetermined interval is set to K1.

比特位, 压缩前的路由表项索引信息的宽度比 CAM单元宽度的二分之一多 K2 比特, 此时, 预定位宽为: K1 与 K2 的差。  The bit position, the index of the routing table item before compression is more than one-half K2 bit wider than the width of the CAM unit. At this time, the pre-positioning width is: the difference between K1 and K2.

[40] 在对 CAM [40] In the CAM

中存储的路由表项索引信息进行压缩存储后, 路由设备在接收到需要进行路由 转发的数据报文时, 应采用同样的压缩方法对数据报文中的路由表项索引信息 进行压缩处理, 然后, 进行压缩后的路由表项索引信息的匹配处理过程。  After the routing information of the routing table entries is compressed and stored, the routing device compresses the routing entries in the data packets by using the same compression method when receiving the data packets that need to be forwarded. The matching process of the index information of the compressed routing entry is performed.

[41] 本发明实施方式也可以预先设置未压缩的路由表项索引信息与压缩后的路由表 项索引信息的对应关系, 这个对应关系可以存储在路由设备中, 如存储在路由 设备的 RAM [41] The embodiment of the present invention may also pre-set the correspondence between the uncompressed routing entry index information and the compressed routing entry index information, and the corresponding relationship may be stored in the routing device, such as the RAM stored in the routing device.

中, 当然, 也可以独立于路由设备存储。 上述对应关系也可以存储在非 RAM 的其他存储介质中。  Of course, it can also be stored independently of the routing device. The above correspondences can also be stored in other storage media other than RAM.

[42] 在设置了上述对应关系后, 路由设备在接收到需要进行路由转发处理的  [42] After the above correspondence is set, the routing device receives the need for route forwarding processing.

数据报文时, 首先, 从数据报文中获取未压缩的路由表项索引信息, 然后, 从 上述对应关系中线性査找与数据报文中的未压缩的路由表项索引信息相匹配的 压缩后的路由表项索引信息, 在査找到相匹配的压缩后的路由表项索引信息后 , 将査找到的压缩后的路由表项索引信息与 CAM In the case of a data packet, first, the uncompressed routing entry index information is obtained from the data packet, and then the linear matching is performed to match the uncompressed routing entry index information in the data packet. Routing entry index information, after finding the matching compressed routing entry index information , will find the compressed routing table entry index information and CAM

中的路由表项索引信息进行匹配, 最后, 路由设备利用匹配到的 CAM 中的路由表项索引信息对该数据报文进行路由转发处理。  The routing table entry index information is matched. Finally, the routing device performs routing and forwarding processing on the data packet by using the matching routing entry index information in the CAM.

[43] 当一个 CAM单元中存储大于 1  [43] When a CAM unit stores more than 1

的整数个路由表项索引信息时, 路由设备在将査找到的压缩后的路由表项索引 信息与 CAM 中的路由表项索引信息进行匹配的过程中, 可以根据 CAM 单元宽度中低位表项到高位表项的顺序, 将査找到的压缩后的路由表项索引信 息与 CAM 中的路由表项索引信息进行匹配, 例如, 当一个 CAM  In the process of matching the index information of the compressed routing entry and the routing information of the routing entry in the CAM, the routing device may match the lower-order entry in the CAM unit width to the index entry of the compressed routing entry in the CAM. The order of the high-order entries matches the found index information of the compressed routing entries with the routing table entry index information in the CAM, for example, when a CAM

单元宽度中存储有两个路由表项索引信息时, 路由设备首先在 CAM 的低位表项中进行匹配操作, 如果匹配成功, 则匹配过程结束, 如果匹配失败 When two routing table entry index information is stored in the cell width, the routing device first performs a matching operation in the lower table entry of the CAM. If the matching succeeds, the matching process ends, and if the matching fails.

, 则在 CAM 的高位表项中进行匹配操作。 , then the matching operation is performed in the high order entry of the CAM.

[44] 当路由设备能够对多种不同类型的数据报文如 IPv4 、 IPv6  [44] When routing devices are capable of handling many different types of datagrams such as IPv4, IPv6

数据报文等进行路由转发处理时, CAM  When data packets are routed and forwarded, CAM

中应对应存储不同类型的路由表项索引信息, 此时, CAM  The index information of different types of routing entries should be stored correspondingly. At this time, CAM

中还应该存储有类型标识信息, 该类型标识信息用于指示路由表项索引信息的 类型, 路由表项索引信息的类型如 IPv4 的路由表项索引信息、 IPv6 的路由表项索引信息等。  The type identifier information should also be stored. The type identifier information is used to indicate the type of the index information of the routing entry. The type of the index information of the routing entry is the index information of the routing entry of the IPv4, and the index information of the routing entry of the IPv6.

[45] 本发明实施方式可以为每一个路由表项索引信息均设置类型标识信息, 如为 IPv4和 IPv6  [45] In the embodiment of the present invention, type identification information, such as IPv4 and IPv6, may be set for each routing entry index information.

的路由表项索引信息均设置类型标识信息; 也可以为部分路由表项索引信息设 置类型标识信息, 如仅为 IPv6 的路由表项索引信息设置类型标识信息, 对 The routing table entry index information is set with the type identification information. You can also set the type identification information for the partial routing entry index information. For example, only the IPv6 routing entry index information is used to set the type identification information.

IPv4 的路由表项索引信息不设置类型标识信息。 IPv4 routing entry index information does not set type identification information.

[46] 当 CAM 中存储有类型标识信息、 且一个 CAM单元中存储有大于 1 [46] When type identification information is stored in the CAM, and a CAM unit stores more than 1

的整数个路由表项索引信息时, 在压缩路由表项索引信息时, 应考虑 CAM 单元的宽度、 以及类型标识信息占用的位宽信息。  When indexing information of an integer number of routing entries, when compressing the routing table entry index information, the width of the CAM unit and the bit width information occupied by the type identification information should be considered.

[47] 在 CAM [47] in CAM

中存储有类型标识信息的情况下, 路由设备在需要对数据报文进行路由转发时 , 不仅需要从数据报文中获得未压缩的路由表项索引信息, 还需要确定该路由 表项索引信息的类型, 然后, 路由设备通过査询 RAM When the type identifier information is stored, the routing device needs to obtain the uncompressed routing entry index information from the data packet, and also needs to determine the route. The type of table entry index information, and then, the routing device queries the RAM

表等方式确定该未压缩的路由表项索引信息对应的压缩后的路由表项索引信息 , 路由设备在确定该数据报文对应的压缩后的路由表项索引信息后, 利用该压 缩后的路由表项索引信息和类型标识信息在 CAM  The table and the like determine the index information of the compressed routing entry corresponding to the index information of the uncompressed routing entry, and the routing device uses the compressed route after determining the compressed routing entry index information corresponding to the data packet. Entry index information and type identification information in CAM

中査找匹配的表项, 并根据匹配路由表项索引信息对该数据报文进行路由转发 处理。  The matching entry is found, and the data packet is forwarded and processed according to the matching routing entry index information.

[48] 下面以一个具体的例子对本发明实施方式提供的路由方法进行详细说明。  [48] The routing method provided by the embodiment of the present invention is described in detail below with a specific example.

[49] 在路由设备中, IPv4路由表项索引信息一般是由 VPNID和 IP [49] In routing devices, IPv4 routing entry index information is generally determined by VPNID and IP.

地址组成, 也就是说, 路由设备是根据 VPNID和 IP  Address composition, that is, the routing device is based on VPNID and IP

地址来査找路由索引信息的。 设定 TCAM 的一个单元宽度是以 72bit 为单位的, 由于 IPv4路由表项索引信息一般不可能做到刚好 72bit , 这样, Address to find routing index information. Set a unit width of the TCAM in units of 72 bits. Since the index information of the IPv4 routing entries is generally not exactly 72 bits,

TCAM 中的很多存储空间均被浪费了。 A lot of storage space in TCAM is wasted.

[50] 例如, IPv4 的 IP地址信息为 32 比特位, VPNID为 10 比特位, TCAM 单元宽度如附图 1 所示。 [50] For example, the IPv4 IP address information is 32 bits, the VPNID is 10 bits, and the TCAM unit width is as shown in Figure 1.

[51] 图 1 中, TCAM单元宽度为 72 比特位, IP地址和 VPNID 的宽度和为 42 比特位, 这样, TCAM单元的高 30bit没有被充分利用。 [51] In Figure 1, the TCAM unit has a width of 72 bits, and the width of the IP address and VPNID is 42 bits. Thus, the high 30 bits of the TCAM unit are not fully utilized.

[52] 为了充分利用 TCAM , 路由设备可以将 VPNID+IP地址信息压缩到 36bit 内, 这样, 一个 72bit 的 TCAM [52] In order to make full use of TCAM, the routing device can compress the VPNID+IP address information into 36bit, thus a 72bit TCAM

单元中可以放两个压缩后的路由表项索引信息, 从而使 TCAM  Two compressed routing entry index information can be placed in the unit, thereby making the TCAM

的路由表项容量提高了一倍。  The routing table entry capacity has doubled.

[53] 在对 VPNID+IP地址信息进行压缩时, 考虑到 IP [53] Considering IP when compressing VPNID+IP address information

地址分布的规律, 在网络上一个路由节点的 8bit 的 A类地址和 16bit 的 B 类地址的网段数量很少, IP地址的变化主要集中在后面的 16bit  The law of address distribution is that the number of network segments of an 8-bit Class A address and a 16-bit Class B address of a routing node on the network is small, and the change of the IP address is mainly concentrated in the latter 16 bits.

。 这样, 路由设备可以对高 16bit 的 IP地址进行压缩, 将高 16bit 的 IP 地址压缩为 lObit , 这样, 一个路由表项索引信息可以由 36bit  . In this way, the routing device can compress the upper 16-bit IP address and compress the upper 16-bit IP address to lObit. Thus, a routing entry index information can be 36 bits.

组成, 其中包括: lObit 的 VPNID 、 压缩后的 lObit 高位地址索引信息和低 Composition, including: lObit VPNID, compressed lObit high address index information, and low

16bit 的 IP地址。 因此, 一个 TCAM 16bit IP address. Therefore, a TCAM

单元中可以存储两个路由表项索引信息。 [54] 路由设备中可以利用 RAM来保存未压缩的高 16bit 的 IP Two routing table entry index information can be stored in the unit. [54] RAM can be used in routing devices to store uncompressed high 16bit IP

地址信息和压缩后的高 lObit 的 IP地址信息的对应关系, 如附图 2 中, RAM  Correspondence between the address information and the compressed IP address information of the high lObit, as shown in Figure 2, RAM

中存储有上述对应关系, 这样, 路由设备在构建路由表项索引信息时, 可以直 接利用高 16bit 的 IP地址作为索引在 RAM  The above correspondence is stored in the foregoing, so that the routing device can directly use the high 16-bit IP address as the index in the RAM when constructing the routing entry index information.

中进行线性査表, 得到一个压缩后的 lObit 的高位地址索引信息。  Perform a linear lookup table to obtain a compressed lObit high-order address index information.

[55] 路由设备再用上述线性査表获得的 lObit 的高位地址索引信息、 低 16bit 的 IP地址信息和 VPNID来构建 CAM 的路由表项, 如附图 2所示, 由于 TCAM 中的每个路由表项宽度减少到了 36bit , 因此, TCAM 中每个 72bit 的单元中可以存储 2个路由表项索引信息。  [55] The routing device uses the lObit high-order address index information, the lower 16-bit IP address information, and the VPNID obtained by the above linear lookup table to construct a CAM routing entry, as shown in FIG. 2, because each routing table in the TCAM The item width is reduced to 36 bits. Therefore, each 72-bit unit in the TCAM can store two routing table entry index information.

[56] 在设置了上述 RAM和 TCAM  [56] Set up the above RAM and TCAM

后, 当路由设备需要对数据报文进行路由转发时, 首先, 从数据报文中获得 IP 地址信息和 VPNID信息, 然后, 将该 IP地址的高 16b it与 RAM  After the routing device needs to forward and forward the data packet, first, obtain the IP address information and the VPNID information from the data packet, and then, the high address of the IP address and the RAM.

中的表项进行匹配, 并获得匹配表项中的压缩后的 lObit  The entries in the match are matched, and the compressed lObit in the matching entry is obtained.

的高位地址索引信息, 利用该索引信息与低 16bit 的 IP地址信息和 VPNID 一起到 TCAM  High-order address index information, using the index information together with low 16-bit IP address information and VPNID to TCAM

中进行路由表项索引信息的匹配处理, 并利用匹配到路由表项索引信息对该数 据报文进行路由转发处理。 本发明实施方式中的路由转发处理与现有技术中的 路由转发处理过程相同, 在此不再详细描述。  The matching process of the routing entry index information is performed, and the data packet is forwarded and processed by using the matching index information of the routing entry. The route forwarding process in the embodiment of the present invention is the same as the route forwarding process in the prior art, and will not be described in detail herein.

[57] 路由设备利用 RAM、 TCAM对数据报文进行路由转发的过程如附图 4所示。 [57] The routing device uses the RAM and TCAM to route and forward data packets as shown in Figure 4.

[58] 图 4 中, 在步骤 400 , 路由设备接收到数据报文, 开始路由过程。 [58] In FIG. 4, in step 400, the routing device receives the data packet and starts the routing process.

[59] 到步骤 410 , 路由设备从数据报文中获得 IP地址信息, 并利用该 IP [59] In step 410, the routing device obtains IP address information from the data packet, and uses the IP

地址的高 16bit与 RAM 中的表项进行匹配, 获得匹配表项中的压缩后的 lObit 的高位地址索引信息。  The upper 16 bits of the address are matched with the entries in the RAM to obtain the compressed high-order address index information of the lObit in the matching entry.

[60] 到步骤 420 , 路由设备将该压缩后的 lObit 的高位地址索引信息与低 16bit 的 IP地址信息和 VPNID—起组成检索信息。 [60] In step 420, the routing device composes the compressed lObit high-order address index information with the lower 16-bit IP address information and the VPN ID to form the search information.

[61] 到步骤 430 , 路由设备利用该检索信息到 TCAM 的低 36bit [61] Go to step 430, the routing device uses the retrieved information to the lower 36 bits of the TCAM.

中进行路由表项索引信息的匹配处理, 路由设备判断 TCAM 的低 36bit 中是否有与该检索信息匹配的路由表项索引信息, 如果有, 到步骤 440 。 The matching process of the routing entry index information is performed, and the routing device determines the low 36 bit of the TCAM. Whether there is routing table entry index information matching the retrieval information, if any, to step 440.

[62] 在步骤 430 , 路由设备在确定 TCAM 的低 36bit [62] At step 430, the routing device determines the low 36 bit of the TCAM.

中没有与该检索信息匹配的路由表项索引信息时, 到步骤 450  When there is no routing entry index information matching the retrieval information, go to step 450.

, 路由设备利用该检索信息到 TCAM 的高 36bit  , the routing device uses the retrieved information to the TCAM high 36bit

中进行路由表项索引信息的匹配处理, 路由设备判断 TCAM 的高 36bit 中是否有与该检索信息匹配的路由表项索引信息, 如果有, 执行步骤 440 。  The matching process of the routing entry index information is performed, and the routing device determines whether there is a routing entry index information matching the retrieval information in the high 36 bits of the TCAM, and if yes, executing step 440.

[63] 在步骤 440 [63] At step 440

, 路由设备利用该匹配的路由表项索引信息对该数据报文进行路由转发处理, 结束流程。  The routing device performs routing and forwarding processing on the data packet by using the matching routing entry index information, and ends the process.

[64] 在步骤 450 , 如果路由设备确定 TCAM 的高 36bit  [64] At step 450, if the routing device determines the high 36bit of the TCAM

中没有与该检索信息匹配的路由表项索引信息, 则确定该路由没有匹配, 到步 骤 451 , 路由设备将报文的 IP地址等信息上传给 CPU  If there is no routing entry index information matching the search information, it is determined that the route does not match. To step 451, the routing device uploads information such as the IP address of the packet to the CPU.

由软件做地址分析, 然后软件通过配置对应压缩表项、 CAM  The address analysis is performed by the software, and then the software configures the corresponding compression entry, CAM.

表项和路由表项, 保证对后面同一地址报文能正确转发。  Table entries and routing entries ensure that packets with the same address can be forwarded correctly.

[65] 本发明实施方式提供的路由设备中 设置有 CAM、 压缩模块和路由模块。 The routing device provided by the embodiment of the present invention is provided with a CAM, a compression module, and a routing module.

[66] CAM 中存储有压缩后的各路由表项索引信息, 且一个 CAM [66] The CAM stores the compressed index entries of each routing entry, and a CAM

单元中存储有一个以上的路由表项索引信息。 这里的 CAM如 TCAM 。 当 CAM 的一个单元中存储有大于 1  More than one routing entry index information is stored in the unit. The CAM here is like TCAM. When a unit of CAM is stored greater than 1

的整数个路由表项索引信息时, 压缩后的路由表项索引信息的长度应根据 CAM 的单元宽度来确定, 如路由表项索引信息为: 将 IP地址的高 16bit压缩为 lObit 的地址索引信息、 IP地址的低 16bit和 VPNID 。 当 CAM  When the index information of an integer number of routing entries is used, the length of the index information of the compressed routing entry should be determined according to the unit width of the CAM. For example, the index information of the routing entry is: The upper 16 bits of the IP address is compressed into the address index information of lObit. , the lower 16bit of the IP address and the VPNID. When CAM

中需要存储不同类型的路由表项索引信息时, CAM  When you need to store different types of routing table entry index information, CAM

中还需要存储类型标识信息, 具体如上述方法实施方式中的描述。  The storage type identification information is also required, as described in the above method embodiment.

[67] 压缩模块用于: 在路由设备需要对数据报文进行路由时, 压缩数据报文中的路 由表项索引信息, 并将压缩后的该路由表项索引信息与 CAM [67] The compression module is used to: when the routing device needs to route data packets, compress the routing entry index information in the data packet, and compress the compressed routing entry index information with the CAM.

中的路由表项索引信息进行匹配, 将匹配到的索引信息发送至路由模块。  The routing table entry index information is matched, and the matched index information is sent to the routing module.

[68] 压缩模块由査找子模块、 对应关系存储子模块和匹配子模块组成。 [68] The compression module consists of a lookup submodule, a corresponding relational storage submodule, and a matching submodule.

[69] 对应关系存储子模块主要用于: 存储未压缩的路由表项索引信息与压缩后的路 由表项索引信息的对应关系。 对应关系存储子模块可以为 RAM 。 RAM 中存储的对应关系可以为: IP地址的高 16bit与压缩后的 lObit [69] The corresponding relationship storage submodule is mainly used to: store uncompressed routing table entry index information and compressed path The correspondence between the index information of the entry. The corresponding relation storage submodule can be RAM. The correspondence stored in the RAM can be: the upper 16 bits of the IP address and the compressed lObit

的地址索引信息之间的对应关系。 具体如上述方法实施方式中的描述。  Correspondence between address index information. Specifically, it is as described in the above method embodiment.

[70] 査找子模块主要用于: 在路由设备需要对数据报文进行路由转发时, 从数据报 文中获取未压缩的路由表项索引信息, 然后, 将这个数据报文中的路由表项索 引信息在对应关系存储子模块中进行匹配査找, 以获得对应的压缩后的路由表 项索引信息, 并将査找到的压缩后的路由表项索引信息传输至匹配子模块, 如 査找子模块在 RAM 中査找与数据报文中的 IP地址的高 16bit 匹配的 lObit 的检索信息, 并将査找到的 lObit 的检索信息、 数据报文中的 IP地址的低 16bit和数据报文中的 VPNID [70] The search sub-module is mainly used to: obtain the uncompressed routing entry index information from the data packet when the routing device needs to forward the data packet, and then the routing entry in the data packet. The index information is matched and searched in the corresponding relationship storage sub-module to obtain the corresponding compressed routing entry index information, and the searched compressed routing entry index information is transmitted to the matching sub-module, such as the search sub-module. The RAM searches for the lObit search information matching the upper 16 bits of the IP address in the data packet, and searches for the lObit search information, the lower 16 bits of the IP address in the data packet, and the VPNID in the data packet.

信息传输至匹配子模块。 具体如上述方法实施方式中的描述。  The information is transferred to the matching submodule. Specifically, it is as described in the above method embodiment.

[71] 匹配子模块主要用于: 根据其接收到的路由表项索引信息与 CAM [71] The matching submodule is mainly used to: according to the routing table entry index information and CAM received by it

中的路由表项索引信息进行匹配査找, 并将匹配到的索引信息发送至路由模块 。 査找子模块在匹配査找过程中可以按照从低位到高位的顺序来査找, 如当 CAM 中的一个 72bit 的单元中存储有两个路由表项索引信息时, 先从低 36bit 的单元中进行匹配査找, 在低 36bit  The routing table entry index information is matched and searched, and the matched index information is sent to the routing module. The search sub-module can be searched in the order from low to high in the matching search process. For example, when two 72-bit units in the CAM store two routing table index information, the matching search is performed from the lower 36-bit unit. At low 36bit

的单元中没有査找到匹配的路由表项索引信息时, 再从 CAM 的高 36bit 的单元中进行匹配査找。 而且, 当 CAM  When no matching routing entry index information is found in the unit, a matching search is performed from the high 36-bit unit of the CAM. And, when CAM

中还存储有类型标识信息时, 査找子模块还需要确定数据报文中的路由表项索 弓 I信息的类型, 并在匹配査找时, 增加类型标识信息的匹配, 具体如上述方法 中的描述。  When the type identification information is also stored, the search sub-module also needs to determine the type of the routing table item information in the data packet, and when the matching search is performed, the matching of the type identification information is added, as described in the above method. .

[72] 路由模块主要用于: 接收匹配子模块传输来的路由表项索引信息, 并根据路由 表项索引信息对该数据报文进行路由转发处理。 路由模块进行的路由转发处理 操作可以与现有技术中的路由转发处理操作相同, 在此不再详细描述。  [72] The routing module is mainly used to: receive the index information of the routing entry transmitted by the matching sub-module, and perform routing and forwarding processing on the data packet according to the index information of the routing entry. The route forwarding processing operation performed by the routing module may be the same as the routing forwarding processing operation in the prior art, and will not be described in detail herein.

[73] 通过上述描述可知, 由于线性査表的速度比 TCAM  [73] According to the above description, due to the speed of linear look-up table than TCAM

更快, 本发明实施方式通过采用流水线分级査找的硬件设计流程, 使路由方法 具有高速的路由査表性能, 从而使本发明实施方式的路由转发性能与现有技术 中单独采用 TCAM 的路由转发性能一样。 考虑到 IP地址的分布规律, IP 地址中高位地址的组合种类很少, 有很大的压缩空间, 在路由表项索引信息与The routing performance of the embodiment of the present invention is the same as that of the TCAM in the prior art. . Considering the distribution of IP addresses, IP There are few combinations of high-order addresses in the address, there is a lot of compression space, and the index information of the routing entries is

CAM位宽不匹配时, 通过调整路由表项索引信息的宽度, 充分利用了 CAM 的存储空间, 而且, 调整路由表项索引信息的宽度并没有导致路由转发性能的 下降。 When the CAM bit width is not matched, the storage space of the CAM is fully utilized by adjusting the width of the index information of the routing entry. Moreover, adjusting the width of the index information of the routing entry does not cause the degradation of the routing forwarding performance.

[74] 本发明实施方式提出的基于 TCAM和 RAM  [74] Based on TCAM and RAM proposed by embodiments of the present invention

的快速路由表项索引信息査找算法, 将 CAM 的高速处理能力与 IP  Fast routing entry index information lookup algorithm, CAM's high-speed processing capability and IP

地址的数据组织方法相结合, 实现了高速、 大容量、 低成本的路由转发处理过 程。 本发明实施方式已经通过硬件验证, 是确实可行的。  The data organization method of the address is combined to realize a high-speed, large-capacity, low-cost route forwarding process. Embodiments of the present invention have been verified by hardware and are indeed feasible.

[75] 通过上述实施方式的描述可知, 通过对各路由表项索引信息进行压缩, 使一个 CAM 的单元宽度能够容纳多个压缩后的路由表项索引信息, 使 CAM  [75] According to the description of the foregoing implementation manner, by compressing the index information of each routing entry, the unit width of one CAM can accommodate multiple compressed routing entry index information, so that CAM

能够存储更多的路由表项索引信息, 提高了 CAM  Ability to store more routing table entry index information, improve CAM

的利用率, 扩大了路由表的容量, 克服了现有技术中采用 CAM  Utilization, expanding the capacity of the routing table, overcoming the use of CAM in the prior art

时, 路由设备成本高, 路由表容量限制大的缺点; 通过设置未压缩的路由表项 索引信息与压缩后的路由表项索引信息的对应关系, 如在 RAM  When the cost of the routing device is high and the capacity of the routing table is limited, the correspondence between the index information of the uncompressed routing entry and the index information of the compressed routing entry is set, such as in RAM.

中存储该对应关系, 使路由设备能够利用 RAM 的线性査找与 CAM  Store the correspondence, enabling the routing device to utilize the linear lookup of RAM and CAM

相结合的技术来实现路由转发, 克服了现有技术中单独采用 RAM时, 路由査表效率低、 路由转发性能差的缺点; 通过为不同类型的路由表项索引信 息设置类型标识信息, 使 CAM能够为多种类型的数据报文进行路由转发, 如对 Ipv4 、 Ipv6  The combination of technologies to implement routing and forwarding overcomes the disadvantages of low efficiency of routing table lookup and poor routing and forwarding performance when RAM is used alone in the prior art. By setting type identification information for index information of different types of routing entries, CAM can enable CAM to Routing and forwarding of multiple types of data packets, such as Ipv4 and Ipv6

等数据报文进行路由转发; 从而通过本发明实施方式提供的技术方案 使路由设备能够同时具有路由査表效率高、 路由表容量大、 路由设备成本低等 特性。  The data packet is forwarded by the data packet. The technical solution provided by the embodiment of the present invention enables the routing device to have the characteristics of high efficiency of routing table lookup, large routing table capacity, and low cost of the routing device.

[76] 虽然通过实施例描绘了本发明, 本领域普通技术人员知道, 本发明有许多变形 和变化而不脱离本发明的精神, 本发明的申请文件的权利要求包括这些变形和 变化。  While the invention has been described by the embodiments of the invention, it is understood that

Claims

权利要求书 Claim [1] 1、 一种路由方法, 其特征在于, 包括:  [1] 1. A routing method, comprising: 接收数据报文;  Receiving data packets; 根据所述数据报文中的路由表项索引信息得到压缩后的路由表项索引信息 将该压缩后的路由表项索引信息与基于内容査表器件中存储的路由表项索 弓 I信息进行匹配;  And obtaining, according to the routing entry index information in the data packet, the compressed routing entry index information, and matching the compressed routing entry index information with the routing table entry information stored in the content lookup table device; 根据匹配到的索引信息对该数据报文进行路由处理;  Routing the data packet according to the matched index information; 所述基于内容査表器件中的一个单元容纳一个以上以第一压缩方式压缩后 的路由表项索引信息。  The unit based on the content lookup table device accommodates more than one routing entry index information compressed in the first compression manner. [2] 2 、 如权利要求 1  [2] 2, as claimed in claim 1 所述的路由方法, 其特征在于, 所述根据数据报文的路由表项索引信息得 到压缩后的路由表项索引信息具体为:  The routing method is characterized in that: the index information of the compressed routing entry obtained according to the index information of the routing entry of the data packet is: 将所述数据报文的路由表项信息以所述第一压缩方式压缩, 得到压缩后的 路由表项索引信息。  The routing entry information of the data packet is compressed in the first compression manner to obtain the compressed routing entry index information. [3] 3 、 如权利要求 1 [3] 3, as claimed in claim 1 所述的一种路由方法, 其特征在于, 所述基于内容査表器件中存储的路由 表项索引信息包括: VPNID和压缩的 IP  The routing method of the routing table item stored in the content lookup table device includes: a VPN ID and a compressed IP address. 地址, 所述第一压缩方式压缩包括: 根据基于内容査表器件单元宽度对 IP 地址中的预定区域的地址信息进行压缩。  The first compression mode compression includes: compressing address information of a predetermined area in the IP address according to the content of the table lookup device unit. [4] 4 、 如权利要求 3 [4] 4, as claimed in claim 3 所述的一种路由方法, 其特征在于, 所述预定区域的地址信息包括: A 类地址信息和 B类地址信息。  The routing method of the foregoing, wherein the address information of the predetermined area includes: type A address information and class B address information. [5] 5 、 如权利要求 1 [5] 5, as claimed in claim 1 所述的路由方法, 其特征在于, 所述根据数据报文的路由表项索引信息得 到压缩后的路由表项索引信息具体为:  The routing method is characterized in that: the index information of the compressed routing entry obtained according to the index information of the routing entry of the data packet is: 根据所述数据报文的路由表项索引信息査询对应关系表, 获得对应的所述 压缩后的路由表项索引信息; 所述对应关系表存储有未压缩路由表项索引信息与以所述第一压缩方式压 缩的所述压缩后的路由表项索引信息的对应关系。 Querying the correspondence table according to the routing entry index information of the data packet, and obtaining the corresponding index information of the compressed routing entry; The correspondence table stores the correspondence between the uncompressed routing entry index information and the compressed routing entry index information compressed in the first compression manner. [6] 6 、 如权利要求 1 至 5 [6] 6 , as claimed in claims 1 to 5 中任一权利要求所述的一种路由方法, 其特征在于, 所述将压缩后的路由 表项索引信息与基于内容査表器件中存储的路由表项索引信息进行匹配的 步骤包括:  The routing method according to any one of the preceding claims, wherein the step of matching the compressed routing entry index information with the routing entry index information stored in the content lookup table device comprises: 按照基于内容査表器件单元宽度中低位表项到高位表项的顺序, 将压缩后 的路由表项索引信息与基于内容査表器件中的路由表项索引信息进行匹配  Matching the compressed routing entry index information with the routing table entry index information based on the content lookup table device according to the order of the lower-order entry to the upper-order entry in the device unit width based on the content lookup table [7] 7 、 如权利要求 1 至 5 [7] 7 , as claimed in claims 1 to 5 中任一权利要求所述的一种路由方法, 其特征在于, 所述根据数据报文的 路由表项索引信息得到压缩后的路由表项索引信息, 将该压缩后的路由表 项索引信息与基于内容査表器件中存储的路由表项索引信息进行匹配具体 为:  The routing method according to any one of the preceding claims, wherein the compressed routing entry index information is obtained according to the routing entry index information of the data packet, and the compressed routing entry index information is The matching is performed based on the index information of the routing entry stored in the content lookup device: 根据所述数据报文的路由表项索引信息査询对应关系表, 获得对应的所述 压缩后的路由表项索引信息;  Querying the correspondence table according to the routing entry index information of the data packet, and obtaining the corresponding index information of the compressed routing entry; 将所述数据报文的路由表项索引信息的类型、 所述压缩后的路由表项索引 信息, 与基于内容査表器件中的路由表项索引信息进行匹配; 所述对应关系表存储有类型标识信息、 未压缩路由表项索引信息与以所述 第一压缩方式压缩的所述压缩后的路由表项索引信息的对应关系。  Matching the type of the routing entry index information of the data packet and the compressed routing entry index information with the routing entry index information in the content lookup table device; the correspondence relationship table stores the type identifier The correspondence between the information, the uncompressed routing entry index information, and the compressed routing entry index information compressed in the first compression manner. [8] 8 、 一种路由设备, 其特征在于, 所述路由设备中设置有: [8] 8 . A routing device, wherein: the routing device is configured with: 基于内容査表器件,  Based on content lookup device, 用于存储压缩后的各路由表项索引信息, 且一个所述基于内容査表器件单 元中存储有一个以上的压缩后的路由表项索引信息;  And storing the compressed routing table entry index information, and storing, by the content lookup table device unit, one or more compressed routing entry index information; 压缩模块, 用于根据数据报文中的路由表项索引信息得到压缩后的路由表 项索引信息, 并将压缩后的该路由表项索引信息与基于内容査表器件中的 路由表项索引信息进行匹配, 得到匹配的索引信息;  The compression module is configured to obtain the compressed routing entry index information according to the routing entry index information in the data packet, and perform the compressed routing entry index information and the routing entry index information in the content lookup device. Match, get matching index information; 路由模块, 用于根据所述压缩模块得到的匹配的路由表项索引信息对该数 据报文进行路由转发处理。 a routing module, configured to use the matching routing table entry index information obtained by the compression module Route forwarding processing is performed according to the message. [9] 9 、 如权利要求 8 [9] 9 as in claim 8 所述的一种路由设备, 其特征在于, 所述压缩模块包括:  The routing device is characterized in that: the compression module includes: 对应关系存储子模块, 用于存储未压缩的路由表项索引信息与压缩后的路 由表项索引信息的对应关系;  a corresponding relationship storage submodule, configured to store a correspondence between the index information of the uncompressed routing entry and the index information of the compressed routing entry; 査找子模块, 用于根据数据报文中的未压缩的路由表项索引信息, 从所述 对应关系存储子模块中査找压缩后的路由表项索引信息;  The locating sub-module is configured to search, according to the uncompressed routing entry index information in the data packet, the compressed routing entry index information from the corresponding relationship storage sub-module; 匹配子模块, 用于将接收到所述査找子模块査找得到的压缩后的路由表项 索引信息与基于内容査表器件 中  a matching sub-module, configured to receive the compressed routing entry index information obtained by the searching sub-module and the content-based table lookup device 的路由表项索引信息进行匹配, 并将匹配到的索引信息发送至所述路由模 块。  The routing entry index information is matched, and the matched index information is sent to the routing module. [10] 10 、 一种路由信息存储方法, 其特征在于, 所述方法包括:  [10] 10, a routing information storage method, characterized in that the method comprises: 根据基于内容査表器件一个单元的长度、 一个单元需要存储的路由表项索 引信息的个数、 以及路由表项索引信息的长度对路由表项索引信息进行压 缩;  The routing entry index information is compressed according to the length of a unit based on the content lookup table device, the number of routing table entry index information that a unit needs to store, and the length of the routing entry index information; 将所述压缩后的路由表项索引信息存储在基于内容査表器件中; 所述一个单元需要存储的路由表项索引信息的个数为两个或两个以上。  And storing the compressed routing entry index information in the content-based table lookup device; the number of routing entry index information to be stored in the one unit is two or more. [11] 11 、 如权利要求 10 [11] 11 , as claimed in claim 10 所述的方法, 其特征在于, 所述对路由表项索引信息进行压缩的步骤包括 The method of the present invention, wherein the step of compressing routing table entry index information includes: : 对路由表项索引信息的 IP地址中的预定区域的地址信息进行压缩。 : The address information of the predetermined area in the IP address of the routing entry index information is compressed.
PCT/CN2007/070057 2006-08-29 2007-05-28 A routing method, a routing apparatus and a method for storing routing information WO2008028412A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200610112086.2 2006-08-29
CNB2006101120862A CN100450100C (en) 2006-08-29 2006-08-29 A routing method and routing device

Publications (1)

Publication Number Publication Date
WO2008028412A1 true WO2008028412A1 (en) 2008-03-13

Family

ID=37700512

Family Applications (1)

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

Country Status (2)

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

Cited By (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

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN108206782B (en) * 2017-11-22 2021-07-06 盛科网络(苏州)有限公司 Message forwarding method, device, chip and server
CN112804147A (en) * 2018-05-25 2021-05-14 华为技术有限公司 Message transmission method, communication device and system
CN109039911B (en) * 2018-07-27 2021-02-26 烽火通信科技股份有限公司 Method and system for sharing RAM based on HASH searching mode
CN110071923A (en) * 2019-04-24 2019-07-30 杭州迪普信息技术有限公司 Packet identification method, device, electronic equipment and machine readable storage medium
CN110708251B (en) * 2019-09-24 2021-11-16 北京计算机技术及应用研究所 Ternary Content Addressable Memory (TCAM) forwarding unicast table lookup method
CN112118186B (en) * 2020-08-28 2022-11-01 深圳市风云实业有限公司 Exchange chip routing table entry storage method, forwarding method and configuration method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020172203A1 (en) * 2000-11-16 2002-11-21 Hongbin Ji Fast IP route lookup with 16/K and 16/Kc compressed data structures
CN1447223A (en) * 2003-04-04 2003-10-08 清华大学 TCAM high speed updating method supporting route compress
CN1561047A (en) * 2004-02-20 2005-01-05 清华大学 Distributed Parallel IP Routing Lookup Method Based on TCAM
CN1588907A (en) * 2004-07-02 2005-03-02 中国科学院计算技术研究所 Method for realizing longest prifix address route search using sectioned compressed list

Family Cites Families (4)

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

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020172203A1 (en) * 2000-11-16 2002-11-21 Hongbin Ji Fast IP route lookup with 16/K and 16/Kc compressed data structures
CN1447223A (en) * 2003-04-04 2003-10-08 清华大学 TCAM high speed updating method supporting route compress
CN1561047A (en) * 2004-02-20 2005-01-05 清华大学 Distributed Parallel IP Routing Lookup Method Based on TCAM
CN1588907A (en) * 2004-07-02 2005-03-02 中国科学院计算技术研究所 Method for realizing longest prifix address route search using sectioned compressed list

Cited By (2)

* 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
CN115484203B (en) * 2022-09-14 2024-05-24 云合智网(上海)技术有限公司 Routing table item operation method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN1909518A (en) 2007-02-07
CN100450100C (en) 2009-01-07

Similar Documents

Publication Publication Date Title
WO2008028412A1 (en) A routing method, a routing apparatus and a method for storing routing information
CN101834802B (en) Method and device for forwarding data packet
US7885268B2 (en) Method and system for hash table based routing via table and prefix aggregation
EP2793436B1 (en) Content router forwarding plane architecture
TW468116B (en) High speed Internet protocol address lookups method for saving memory
CN100581129C (en) packet transfer device
US7443841B2 (en) Longest prefix matching (LPM) using a fixed comparison hash table
CN101510855B (en) Method and apparatus for processing QinQ message
TWI232049B (en) Technique to improve network routing using best-match and exact-match techniques
CN100466627C (en) Address prefix search method and device, and message forwarding method and system
JP4716909B2 (en) Method and apparatus for providing a network connection table
CN105635343A (en) IP address list storage and query method applied to DNS query
CN103404092B (en) Route prefix storage means, device and routing address lookup method, device
US8923298B2 (en) Optimized trie-based address lookup
EP2880827A1 (en) High-speed content routing
WO2009046669A1 (en) Method and device for storing and searching keyword
US9654397B2 (en) Method for looking up data in hash tables and associated network device
CN106330716B (en) IP routing search method and device
WO2012009873A1 (en) Search processing device and network system thereof
CN103973571A (en) Network processor and routing searching method
WO2020248690A1 (en) Message matching table lookup method, system, storage medium, and terminal
CN101060482A (en) A route search method and forwarding system
TWI239476B (en) Address search
WO2010127536A1 (en) Table creating and searching method used by network processor
CN103457855B (en) Classless inter-domain routing table is established and the method and apparatus of message forwarding

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 07721680

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

NENP Non-entry into the national phase

Ref country code: RU

122 Ep: pct application non-entry in european phase

Ref document number: 07721680

Country of ref document: EP

Kind code of ref document: A1