[go: up one dir, main page]

CN1173531C - At the same time, it supports routing search, IP packet classification, ARP search method and search system - Google Patents

At the same time, it supports routing search, IP packet classification, ARP search method and search system Download PDF

Info

Publication number
CN1173531C
CN1173531C CNB03100606XA CN03100606A CN1173531C CN 1173531 C CN1173531 C CN 1173531C CN B03100606X A CNB03100606X A CN B03100606XA CN 03100606 A CN03100606 A CN 03100606A CN 1173531 C CN1173531 C CN 1173531C
Authority
CN
China
Prior art keywords
arp
search
refresh
tcam
address
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.)
Expired - Fee Related
Application number
CNB03100606XA
Other languages
Chinese (zh)
Other versions
CN1426207A (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.)
Tsinghua University
Original Assignee
Tsinghua University
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 Tsinghua University filed Critical Tsinghua University
Priority to CNB03100606XA priority Critical patent/CN1173531C/en
Publication of CN1426207A publication Critical patent/CN1426207A/en
Application granted granted Critical
Publication of CN1173531C publication Critical patent/CN1173531C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention relates to a method which simultaneously supports routing search, IP packet classification and ARP search and a search system, which belongs to the field of internet route techniques. The method is characterized in that the routing search, the IP packet classification and the ARP search functions and optional combination functions thereof can be completed via the operation: a timing signal periodically controls an executive routing list, extraneous refreshing instructions of a classification rule base and ARP ageing refreshing instructions in the system. In addition, the routing research and the IP packet classification instructions are executed according to the packet head information of data packets, an ARP search instruction is executed according to an IP address for the ARP search, and an ARP list refreshing instruction is executed according to an extraneous ethernet address and an IP address used for refreshing an ARP list. The present invention reduces the complexity of router systems, and the configuration of systematic functions is more flexible simultaneously.

Description

同时支持路由查找、IP包分类、ARP查找的方法及查找系统At the same time, it supports routing search, IP packet classification, ARP search method and search system

技术领域technical field

同时支持路由查找、IP包分类、ARP查找的方法及查找系统属于计算机网络技术领域,尤其涉及路由技术领域中的IPv4与IPv6查找系统。The method and system for simultaneously supporting routing search, IP packet classification, and ARP search belong to the technical field of computer networks, and in particular relate to IPv4 and IPv6 search systems in the technical field of routing.

技术背景technical background

路由查找是路由器的基本功能,IP包分类为路由器支持IP QoS(服务质量)提供了条件,是路由器的扩展功能。在以太网中,还需要对每一个IP包进行一次ARP查找,因此随着人们对因特网服务质量的要求越来越高,要求路由器同时对每一个IP包进行一次路由查找、IP包分类和一次ARP查找。而这三种操作具有相似性,都是一种数据库的查找操作。Routing lookup is the basic function of routers, and IP packet classification provides conditions for routers to support IP QoS (Quality of Service), which is an extended function of routers. In Ethernet, it is also necessary to perform an ARP lookup for each IP packet. Therefore, as people's requirements for Internet service quality are getting higher and higher, routers are required to perform a route lookup, IP packet classification, and an IP packet at the same time. ARP lookup. These three operations are similar, and they are all database lookup operations.

路由查找、IP包分类和ARP表分类是三个独立的功能,并且处在路由器的不同层次上,在以往的技术中,通过三个独立的模块实现,这样整个路由器系统的复杂性很高。另外,在以往的技术中查找速率不高,尤其是IP包分类技术,一般都采用软件算法来实现,由于IP包分类的复杂度相当高,不能达到很高的速率。Routing lookup, IP packet classification and ARP table classification are three independent functions, and they are at different levels of the router. In the previous technology, they were realized by three independent modules, so the complexity of the entire router system is very high. In addition, the search rate is not high in the previous technologies, especially the IP packet classification technology, which is generally implemented by software algorithms. Due to the high complexity of IP packet classification, it cannot achieve a high rate.

发明内容Contents of the invention

本发明的目的在于提供一种同时支持路由查找、IP包分类、ARP查找的方法及查找系统以降低路由器系统的复杂性。The purpose of the present invention is to provide a method and a search system that simultaneously support routing search, IP packet classification, and ARP search to reduce the complexity of the router system.

本发明所提出的方法的特征在于:The method proposed by the present invention is characterized in that:

1.它依次含有以下步骤:1. It contains the following steps in order:

(1)接收以下信息并缓存:(1) Receive and cache the following information:

IP包头信息、TCP(传输控制协议)包头信息或者UDP(用户数据报)包头信息;IP header information, TCP (Transmission Control Protocol) header information or UDP (User Datagram) header information;

接收ARP(地址解析协议)查找的IP地址,刷新路由表和分类规则库的消息,刷新ARP表的以太网地址和IP地址对并缓存;Receive the IP address that ARP (Address Resolution Protocol) searches for, refresh the message of routing table and classification rule base, refresh the Ethernet address and IP address pair of ARP table and cache;

(2)使查找系统内部定时产生一个ARP表老化的消息;(2) Make the search system internally generate an ARP table aging message at regular intervals;

(3)对接收到的消息和上述ARP表老化的消息做以下的组合处理:(3) The following combined processing is done to the message received and the aging message of the above-mentioned ARP table:

(3.1)把刷新路由表和分类规则库的消息,上述ARP表老化的消息各自分解为特定格式的微指令消息并缓存;(3.1) refresh the message of routing table and classification rule storehouse, the message of above-mentioned ARP table aging is decomposed into the micro instruction message of specific format respectively and caches;

(3.2)按下述具体情况分别执行不同的操作步骤:(3.2) Perform different operation steps according to the following specific situations:

当在查找系统内部定时设置的信号处于有效状态,并且有特定格式微指令消息存在时,便选中该特定格式微指令消息对应查找系统中的三态内容可寻址存储器(TCAM),并通过TCAM对同步静态存储器(SSRAM)做读写操作;When the signal regularly set in the search system is in an effective state, and when there is a micro-command message in a specific format, the micro-command message in this specific format is selected to correspond to the tri-state content addressable memory (TCAM) in the search system, and the TCAM Read and write operations on synchronous static memory (SSRAM);

当存在数据包包头信息(包括IP包头信息、TCP包头信息、UDP包头信息)时,选中数据包包头信息通过TCAM和SSRAM做路由查找、IP包分类的查找操作;When there is packet header information (including IP header information, TCP header information, and UDP header information), select the packet header information to perform routing lookup and IP packet classification search operations through TCAM and SSRAM;

当存在用于进行ARP查找的IP地址时,便选中ARP查找的IP地址通过TCAM和SSRAM做ARP查找操作;When there is an IP address for ARP search, the IP address for ARP search is selected to perform ARP search operation through TCAM and SSRAM;

当存在用来刷新ARP表的外来以太网地址和IP地址对时,便选中用于刷新ARP表的以太网地址和IP地址对通过TCAM和SSRAM进行刷新ARP表的查找操作。When there is an external Ethernet address and IP address pair used to refresh the ARP table, the pair of Ethernet address and IP address used to refresh the ARP table is selected to perform a lookup operation for refreshing the ARP table through the TCAM and SSRAM.

(4)对外发送路由查找、IP包分类和ARP查找的结果;(4) The results of routing lookup, IP packet classification and ARP lookup are sent externally;

2.所述的特定格式微指令消息是以下两种中的任何一种:2. The specified format microcommand message is any one of the following two types:

从路由表和分类规则库刷新接口收到的刷新命令分解成的刷新微指令;Refresh microinstructions decomposed into refresh commands received from the refresh interface of the routing table and classification rule base;

根据产生ARP老化请求计数电路发出的请求信息和ARP刷新控制电路发出的请求信息生成的ARP老化和ARP刷新微指令。The ARP aging and ARP refresh microinstructions are generated according to the request information sent by the generating ARP aging request counting circuit and the request information sent by the ARP refreshing control circuit.

本发明所提出的查找系统的特征在于它含有:控制电路模块,和该控制电路模块双向连接的TCAM,以及输入端和TCAM输出端相连接且和该控制电路模块双向连接的SSRAM;其中控制电路模块含有:输入端分别和数据包包头接收接口、ARP查找接收接口、ARP刷新接口相连用来调度的操作选择电路,输入端接路由表和分类规则库刷新接口而输出端和上述操作选择电路相连以便把接收到的刷新命令分解成微指令的指令分解电路,用于向上述指令分解电路输出ARP老化请求信号的ARP老化请求计数电路,输入端与操作选择电路相连而输出端与指令分解电路相连的ARP刷新控制电路,输入端和操作选择电路输出端相连而输出端和TCAM输入端相连的TCAM控制电路,和SSRAM输入/输出连接及TCAM输出端相连而输出端与操作选择电路相连的查找数据接收电路,输入端分别与上述查找数据接收电路、操作选择电路相连而输出端分别与ARP刷新控制电路、路由查找和IP包分类结果发送接口、ARP查找结果发送接口相连的查找数据处理电路。The search system proposed by the present invention is characterized in that it contains: a control circuit module, a TCAM bidirectionally connected to the control circuit module, and an SSRAM whose input terminal is connected to the TCAM output and bidirectionally connected to the control circuit module; wherein the control circuit The module contains: the input end is respectively connected to the data packet header receiving interface, the ARP search receiving interface, and the ARP refresh interface to connect the operation selection circuit for scheduling, the input end is connected to the routing table and the classification rule base refresh interface, and the output end is connected to the above operation selection circuit In order to decompose the received refresh command into an instruction decomposition circuit of micro instructions, an ARP aging request counting circuit for outputting an ARP aging request signal to the above-mentioned instruction decomposition circuit, the input terminal is connected to the operation selection circuit and the output terminal is connected to the instruction decomposition circuit The ARP refresh control circuit, the TCAM control circuit whose input terminal is connected to the output terminal of the operation selection circuit and the output terminal is connected to the TCAM input terminal, and the search data that is connected to the SSRAM input/output connection and the TCAM output terminal and the output terminal is connected to the operation selection circuit The receiving circuit is a search data processing circuit whose input ends are respectively connected to the above-mentioned search data receiving circuit and the operation selection circuit, and whose output ends are respectively connected to the ARP refresh control circuit, the routing search and IP packet classification result sending interface, and the ARP search result sending interface.

试用证明本发明降低了路由器系统的复杂度,同时又可使系统根据需要灵活配置上述的功能。Trials have proved that the present invention reduces the complexity of the router system, and at the same time allows the system to flexibly configure the above-mentioned functions according to needs.

附图说明Description of drawings

图1.查找系统的功能示意图。Figure 1. Functional schematic of the lookup system.

图2.查找系统的电路原理框图。Figure 2. Circuit block diagram of the lookup system.

图3.控制电路模块的原理框图及其外接电路和各种接口的连接框图。Figure 3. The functional block diagram of the control circuit module and its external circuit and connection block diagram of various interfaces.

图4.网络数据包的多层封装格式。Figure 4. Multilayer encapsulation format for network packets.

具体实施方式Detailed ways

查找系统完成三个独立的,但又具有一定相似性的功能,图1是查找系统的功能示意图。在系统内部维护路由表、分类规则库和ARP表三个表,完成路由查找、IP包分类查找、ARP查找功能,同时完成路由刷新、分类规则库刷新、和ARP刷新以及ARP老化。这些功能又可以分为路由表功能,IP包分类功能,ARP表功能三个部分,每个功能都可以独立开启或者关闭,使系统能满足多种应用的需求。The search system completes three independent but similar functions. Figure 1 is a functional schematic diagram of the search system. Maintain the routing table, classification rule base and ARP table in the system to complete routing lookup, IP packet classification lookup, ARP lookup functions, and complete routing refresh, classification rule base refresh, ARP refresh and ARP aging. These functions can be divided into three parts: routing table function, IP packet classification function, and ARP table function. Each function can be turned on or off independently, so that the system can meet the needs of various applications.

查找系统对外提供的接口包括:The interfaces provided by the search system include:

1.数据包包头接收接口(1-1):接收数据包包头信息,这是进行路由查找和IP包分类的依据;1. Data packet header receiving interface (1-1): Receive data packet header information, which is the basis for routing lookup and IP packet classification;

2.ARP查找接收接口(1-2):接收IP地址,这是进行ARP查找的依据;2. ARP search receiving interface (1-2): Receive IP address, which is the basis for ARP search;

3.路由表和分类规则库刷新接口(1-3):接收路由表和分类规则库的刷新命令;3. Routing table and classification rule base refresh interface (1-3): receive the refresh command of routing table and classification rule base;

4.ARP刷新接口(1-4):接收ARP表的刷新信息;4. ARP refresh interface (1-4): receive refresh information of ARP table;

5.路由查找和IP包分类结果发送接口(1-5):发送路由查找和IP包分类的结果;5. Routing lookup and IP packet classification result sending interface (1-5): send the result of routing lookup and IP packet classification;

6.ARP查找结果发送接口(1-6):发送ARP查找的结果。6. ARP search result sending interface (1-6): send the result of ARP search.

图2是查找系统的电路原理框图,它由以下的三个部分组成:Figure 2 is a block diagram of the circuit principle of the search system, which consists of the following three parts:

1.控制电路模块(2-1):它由可编程器件实现,主要提供查找系统的对外接口,并控制系统中其它模块的工作。它是系统的控制中心。1. Control circuit module (2-1): It is implemented by a programmable device, which mainly provides the external interface of the search system and controls the work of other modules in the system. It is the control center of the system.

2.TCAM(2-2):它是内容可寻址存储器,在系统中存放路由表、分类规则库和ARP表的一部分数据,该部分主要是查找决策的依据。2. TCAM (2-2): It is a content addressable memory, which stores a part of data in the routing table, classification rule base and ARP table in the system, and this part is mainly the basis for finding decisions.

3.SSRAM(2-3):它配合TCAM(2-2)使用,用来存放路由表、分类规则库和ARP表的另外一部分数据,该部分是查找的结果。3. SSRAM (2-3): It is used in conjunction with TCAM (2-2) to store another part of data in the routing table, classification rule base and ARP table, which is the result of the search.

这三部分的连接关系是:控制电路模块(2-1)与TCAM(2-2)相联,控制TCAM(2-2)的读写和查找操作,TCAM(2-2)与SSRAM(2-3)相连,控制电路模块(2-1)通过TCAM(2-2)控制SSRAM(2-3)的读写操作,SSRAM(2-3)的数据线直接与控制电路模块(2-1)相连。The connection relationship of these three parts is: the control circuit module (2-1) is connected with the TCAM (2-2), controls the reading and writing and searching operations of the TCAM (2-2), and the TCAM (2-2) and the SSRAM (2 -3) connected, the control circuit module (2-1) controls the read and write operations of the SSRAM (2-3) through the TCAM (2-2), and the data line of the SSRAM (2-3) is directly connected to the control circuit module (2-1 ) connected.

路由查找、IP包分类以及ARP查找都是查找过程。图4是网络数据包的多层封装格式以及以太网头部、IP头部和传输层头部(以TCP协议为例)的格式。ARP查找是链路层的查找过程,在这个过程中,通过IP地址在ARP表中查找得到以太网帧的目的以太网地址;路由查找是根据IP包的目的IP地址查找路由表,得到IP包的转发信息,包括下一跳的地址,转发端口等;IP包分类是路由器的扩展功能,它可以根据IP头部、传输层头部(如TCP头部、UDP头部等)甚至更高层协议的数据(常用的数据有IP头部的目的IP地址、源IP地址、TOS、协议,TCP或者UDP的目的端口和源端口等)来查找分类规则库,得到对此数据包的特定处理依据(如实现对数据包的过滤,或设定此数据包的优先级等)。Routing lookup, IP packet classification, and ARP lookup are all lookup processes. Fig. 4 is the multi-layer encapsulation format of the network data packet and the formats of the Ethernet header, the IP header and the transport layer header (taking the TCP protocol as an example). ARP search is the search process of the link layer. In this process, the destination Ethernet address of the Ethernet frame is obtained by searching the ARP table through the IP address; the routing search is to search the routing table according to the destination IP address of the IP packet to obtain the IP packet forwarding information, including the address of the next hop, forwarding port, etc.; IP packet classification is an extended function of the router, which can be based on IP headers, transport layer headers (such as TCP headers, UDP headers, etc.) or even higher-level protocols The data (commonly used data include destination IP address, source IP address, TOS, protocol of IP header, destination port and source port of TCP or UDP, etc.) Such as realizing the filtering of data packets, or setting the priority of this data packet, etc.).

查找系统中的处理过程包括:路由查找、IP包分类、ARP查找、路由表刷新、分类规则库刷新、ARP表刷新、ARP表老化。The processing process in the search system includes: route search, IP packet classification, ARP search, routing table refresh, classification rule base refresh, ARP table refresh, ARP table aging.

路由查找:控制电路模块(2-1)通过IP包头接收接口(1-1)接收目的IP地址,然后将目的IP地址作为关键字送给TCAM(2-2)进行查找,TCAM(2-2)在路由表中进行查找,根据查找的结果控制SSRAM(2-3),从SSRAM(2-3)中读出路由查找结果,送到控制电路模块(2-1),控制电路模块(2-1)通过路由查找和IP包分类结果发送接口(1-5)将路由查找结果发送出去。Routing search: the control circuit module (2-1) receives the destination IP address through the IP header receiving interface (1-1), and then sends the destination IP address as a keyword to the TCAM (2-2) for searching, and the TCAM (2-2 ) search in the routing table, control the SSRAM (2-3) according to the result of the search, read the route search result from the SSRAM (2-3), send it to the control circuit module (2-1), and the control circuit module (2-2 -1) Send the route search result through the route search and IP packet classification result sending interface (1-5).

IP包分类:控制电路模块(2-1)通过IP包头接收接口(1-1)接收指定的包头字段(由查找系统的使用者指定,可以是包头字段和传输层字段),然后将这些IP包头字段作为关键字送给TCAM(2-2)进行查找,TCAM(2-2)在分类规则库中进行查找,根据查找的结果控制SSRAM(2-3),从SSRAM(2-3)中读出IP包分类结果,送到控制电路模块(2-1),控制电路模块(2-1)经过路由查找和IP包分类结果发送接口(1-5)将IP包分类结果发送出去。IP packet classification: the control circuit module (2-1) receives the specified packet header field (specified by the user of the search system, which can be the packet header field and the transport layer field) through the IP packet header receiving interface (1-1), and then these IP The packet header field is sent to TCAM (2-2) as a keyword for searching, and TCAM (2-2) searches in the classification rule base, and controls SSRAM (2-3) according to the result of searching, from SSRAM (2-3) Read out the IP packet classification result and send it to the control circuit module (2-1), and the control circuit module (2-1) sends the IP packet classification result through the routing search and the IP packet classification result sending interface (1-5).

ARP查找:控制电路模块(2-1)通过ARP查找接收接口(1-2)接收IP地址,然后将IP地址作为关键字送给TCAM(2-2)进行查找,TCAM(2-2)在其ARP表中进行查找,根据查找的结果控制SSRAM(2-3),从SSRAM(2-3)中读出ARP查找的结果,送到控制电路模块(2-1),控制电路模块(2-1)经过ARP查找结果发送接口(1-6)将ARP查找结果发送出去。ARP search: the control circuit module (2-1) receives the IP address through the ARP search receiving interface (1-2), and then sends the IP address as a keyword to the TCAM (2-2) for search, and the TCAM (2-2) is in Search in its ARP table, control SSRAM (2-3) according to the result of search, read the result of ARP search from SSRAM (2-3), send to control circuit module (2-1), control circuit module (2 -1) Send the ARP search result through the ARP search result sending interface (1-6).

路由表刷新:控制电路模块(2-1)通过路由表和分类规则库刷新接口(1-3)接收路由刷新命令,然后刷新TCAM(2-2)和SSRAM(2-3)中相应的路由表项。Refresh the routing table: the control circuit module (2-1) receives the routing refresh command through the routing table and classification rule base refresh interface (1-3), and then refreshes the corresponding routing in the TCAM (2-2) and SSRAM (2-3) entry.

分类规则库刷新:控制电路模块(2-1)通过路由表和分类规则库刷新接口(1-3)接收分类规则刷新命令,然后刷新TCAM(2-2)和SSRAM(2-3)中相应的分类规则库表项。Classification rule base refresh: the control circuit module (2-1) receives the classification rule refresh command through the routing table and classification rule base refresh interface (1-3), then refreshes the corresponding The classification rule base entry.

ARP表刷新:控制电路模块(2-1)通过ARP刷新接口(1-4)接收ARP刷新命令(是以太网、IP地址对),然后以IP地址为关键字送给TCAM(2-2),TCAM(2-2)在ARP表中进行查找,根据查找的结果控制SSRAM(2-3),从SSRAM(2-3)中读出ARP查找的结果,送到控制电路模块(2-1),控制电路模块(2-1)根据查找的结果刷新TCAM(2-2)和SSRAM(2-3)中相应的ARP表项。ARP table refresh: the control circuit module (2-1) receives the ARP refresh command (Ethernet, IP address pair) through the ARP refresh interface (1-4), and then sends it to the TCAM (2-2) with the IP address as the key , TCAM (2-2) searches in the ARP table, controls SSRAM (2-3) according to the result of searching, reads the result of ARP searching from SSRAM (2-3), sends to control circuit module (2-1 ), the control circuit module (2-1) refreshes the corresponding ARP entry in the TCAM (2-2) and the SSRAM (2-3) according to the result of the search.

ARP表老化:控制电路模块(2-1)内部有一个定时器,定时发出命令,使控制电路模块(2-1)从TCAM(2-2)中读出一个ARP表项,将ARP表项的生存时间减一,再将减一后的结果写到TCAM(2-2)中。如果生存时间变为零,则控制TCAM(2-2)删除该表项。ARP table aging: there is a timer inside the control circuit module (2-1), which sends commands regularly to make the control circuit module (2-1) read an ARP table entry from the TCAM (2-2), and the ARP table entry Subtract one from the survival time, and then write the result after subtracting one to TCAM(2-2). If the lifetime becomes zero, the control TCAM (2-2) deletes the entry.

本发明的控制电路模块(2-1)是系统的控制中心,图3是控制电路模块(2-1)原理框图及具体外接电路和各种接口的连接框图,它可以用现场可编程门阵列(FPGA)或专用集成电路(ASIC)实现。系统所有的外部接口都通过控制模块提供。控制模块内部由操作选择电路(3-1)、指令分解电路(3-2)、TCAM控制电路(3-3)、查找数据接收电路(3-4)、查找数据处理电路(3-5)、ARP刷新控制电路(3-6)、ARP老化请求计数电路(3-7)共7个模块组成。对于路由表和分类规则库的刷新,指令分解电路(3-2)将从路由表和分类规则库刷新接口(1-3)接收到的刷新命令分解成微指令,指令分解模块还根据ARP老化请求计数电路(3-7)的请求以及ARP刷新控制电路(3-6)的请求生成ARP老化和ARP刷新的微指令。操作选择电路(3-1)根据指令分解电路(3-2)分解的微指令、IP包头接收接口(1-1)接收的包头信息、ARP查找接收接口(1-2)接收的IP地址、ARP刷新接口(1-4)接收的以太网地址和IP地址对的情况选择一种操作,其中微指令为读写操作,后三者为查找操作,三种查找操作可以流水进行。操作选择电路(3-1)选择了操作以后,通知TCAM控制电路(3-3),TCAM控制电路(3-3)实现相应的时序来访问TCAM(2-2)和SSRAM(2-3)。对于读操作和查找操作,都有结果从TCAM(2-2)或SSRAM(2-3)返回到查找数据接收电路(3-4)。如果为读操作,查找数据接收电路(3-4)将读出的结果送到操作选择电路(3-1),为执行其它微指令提供参数;如果为查找操作,查找数据接收电路(3-4)将查找结果送到查找数据处理电路(3-5)。对于查找操作,如果为IP包分类或路由查找,查找数据处理电路(3-5)将IP包分类结果或者路由查找结果通过路由查找和IP包分类结果发送接口(1-5)发送出去;如果为ARP查找,查找数据处理电路(3-5)将ARP查找结果通过ARP查找结果发送接口(1-6)发送出去;如果为ARP刷新时进行的查找操作,查找数据处理电路(3-5)通知ARP刷新控制电路(3-6)。ARP刷新控制电路(3-6)还接收操作选择电路(3-1)的控制,向指令分解电路(3-2)发出请求,要求指令分解模块生成微指令完成ARP刷新的操作。The control circuit module (2-1) of the present invention is the control center of the system, and Fig. 3 is a block diagram of the control circuit module (2-1) principle and a specific external circuit and a connection block diagram of various interfaces, and it can use a field programmable gate array (FPGA) or Application Specific Integrated Circuit (ASIC) implementation. All external interfaces of the system are provided through the control module. Inside the control module is an operation selection circuit (3-1), an instruction decomposition circuit (3-2), a TCAM control circuit (3-3), a search data receiving circuit (3-4), and a search data processing circuit (3-5) , ARP refresh control circuit (3-6), ARP aging request counting circuit (3-7) consists of 7 modules in total. For the refresh of the routing table and classification rule base, the instruction decomposition circuit (3-2) decomposes the refresh command received from the routing table and classification rule base refresh interface (1-3) into micro-instructions, and the instruction decomposition module is also aged according to ARP The request of the request counting circuit (3-7) and the request of the ARP refresh control circuit (3-6) generate microinstructions for ARP aging and ARP refresh. The operation selection circuit (3-1) decomposes the microinstruction according to the instruction decomposition circuit (3-2), the packet header information received by the IP packet header receiving interface (1-1), the IP address received by the ARP search receiving interface (1-2), ARP refresh interface (1-4) receives Ethernet address and IP address to choose a kind of operation, wherein the microinstruction is read and write operation, and the last three are search operations, and three kinds of search operations can be carried out in pipeline. After the operation selection circuit (3-1) selects the operation, it notifies the TCAM control circuit (3-3), and the TCAM control circuit (3-3) implements the corresponding sequence to access the TCAM (2-2) and SSRAM (2-3) . For both read and lookup operations, results are returned from the TCAM (2-2) or SSRAM (2-3) to the lookup data receiving circuit (3-4). If it is a read operation, the search data receiving circuit (3-4) sends the read-out result to the operation selection circuit (3-1), and provides parameters for performing other microinstructions; if it is a search operation, search the data receiving circuit (3-1) 4) Send the search result to the search data processing circuit (3-5). For the search operation, if it is an IP packet classification or route search, the search data processing circuit (3-5) sends out the IP packet classification result or the route search result through the routing search and the IP packet classification result sending interface (1-5); if For ARP search, the search data processing circuit (3-5) sends the ARP search result through the ARP search result sending interface (1-6); if it is the search operation carried out when ARP is refreshed, the search data processing circuit (3-5) Notify the ARP refresh control circuit (3-6). The ARP refresh control circuit (3-6) also receives the control of the operation selection circuit (3-1), sends a request to the instruction decomposition circuit (3-2), and requires the instruction decomposition module to generate micro instructions to complete the ARP refresh operation.

指令分解电路(3-2)分解指令的方法是:刷新命令包括添加、删除、读取、移动路由和分类规则等多条命令,各种命令的参数,长度和格式不一致,通过指令分解电路(3-2)将这些命令分解成多个长度和格式固定的微指令,并缓存这些微指令,这些微指令完成对TCAM(2-2)和SSRAM(2-3)的读写操作。另外,ARP老化和ARP更新也要对TCAM(2-2)和SSRAM(2-3)进行读写访问,这些读写操作以微指令的形式完成即让指令分解电路(3-2)根据ARP老化和刷新的请求生成并缓存微指令,这些微指令与由路由和分类规则刷新命令分解出的微指令格式一致,由操作选择电路(3-1)统一调度处理。The method for decomposing instructions by the instruction decomposition circuit (3-2) is: the refresh command includes multiple commands such as adding, deleting, reading, moving routing and classification rules, the parameters of various commands, lengths and formats are inconsistent, and the instruction decomposition circuit ( 3-2) Decompose these commands into multiple microinstructions with fixed length and format, and cache these microinstructions, and these microinstructions complete the read and write operations to TCAM (2-2) and SSRAM (2-3). In addition, ARP aging and ARP update also need to read and write access to TCAM (2-2) and SSRAM (2-3). These read and write operations are completed in the form of micro instructions, that is, the instruction decomposition circuit (3-2) Aging and refresh requests generate and cache micro-instructions, which are consistent with the micro-instructions decomposed by routing and classification rule refresh commands, and are uniformly scheduled and processed by the operation selection circuit (3-1).

操作选择电路调度的方法是:操作选择电路(3-1)内部定时将一个信号(Signal)设置为有效,当操作选择电路(3-1)检查到TCAM控制模块(3-2)空闲时,如果Signal有效且有微指令,那么选择微指令执行处理,并将Signal设为无效;否则如果有从IP包头接收接口(1-1)接收的包头信息,那么进行路由查找和IP包分类;否则如果有从ARP查找接收接口(1-2)接收的IP地址,那么进行ARP查找;否则如果有从ARP刷新接口(1-4)接收的以太网地址和IP地址对,那么进行ARP刷新时的查找操作。The method for operation selection circuit dispatching is: a signal (Signal) is set to valid in operation selection circuit (3-1) internal timing, when operation selection circuit (3-1) checks TCAM control module (3-2) idle time, If Signal is effective and microinstruction is arranged, select microinstruction to carry out processing so, and Signal is made invalid; Otherwise if there is the packet header information that receives interface (1-1) from IP packet header, carry out routing search and IP packet classification; Otherwise If there is an IP address received from the ARP lookup receiving interface (1-2), then perform an ARP lookup; otherwise, if there is an Ethernet address and IP address pair received from the ARP refresh interface (1-4), then perform an ARP refresh Find operations.

Claims (3)

1. support the method that the classification of route querying, IP bag, ARP search simultaneously, it is characterized in that it contains following steps successively:
(1) receive following data packet head information and buffer memory:
IP header packet information, TCP header packet information or UDP header packet information;
The message in routing table and classifying rules storehouse is refreshed in the IP address that receiver address analysis protocol ARP searches, refresh the ethernet address of ARP table and IP address to and buffer memory;
(2) make and search internal system and regularly produce the aging message of ARP table;
(3) message and the aging message of above-mentioned ARP table that receive are done following combined treatment:
(3.1) the message that refreshes routing table and classifying rules storehouse, the aging message of above-mentioned ARP table is decomposed into the microcommand message and the buffer memory of specific format separately;
(3.2) carry out different operating procedures respectively by following concrete condition:
When being in effective status searching the signal that internal system regularly is provided with, and when having specific format microcommand message to exist, just choose this specific format microcommand message correspondence to search three-state content addressable memory TCAM in the system, and synchronous static memory SSRAM is done read-write operation by TCAM;
When having the packet header packet information, choose the packet header packet information to do the search operation of route querying, the classification of IP bag by TCAM and SSRAM; Described packet header packet information comprises IP header packet information, TCP header packet information, UDP header packet information;
When existence was used to carry out IP address that ARP searches, the ARP search operation was done by TCAM and SSRAM in the IP address of just choosing ARP to search;
When existence be used for refreshing the external ethernet address of ARP table and IP address to the time, just choose the ethernet address that is used to refresh the ARP table and IP address to do the search operation that refreshes the ARP table by TCAM and SSRAM;
(4) externally send the result that route querying, the classification of IP bag and ARP search.
2. the method for supporting that simultaneously the classification of route querying, IP bag, ARP search as claimed in claim 1 is characterized in that: described specific format microcommand message is any in following two kinds:
The refresh command of receiving from routing table and classifying rules bank refresh interface resolves into refreshes microcommand;
Refresh microcommand according to producing the aging and ARP of ARP that solicited message that solicited message that the aging request of ARP counting circuit sends and ARP refresh control circuit send produces.
3. according to claim 1ly support the method that the classification of route querying, IP bag, ARP search simultaneously and the system that proposes, it is characterized in that it contains: control circuit module, with the two-way TCAM that is connected of this control circuit module, and input is connected with the TCAM output and with the two-way SSRAM that is connected of this control circuit module; Wherein control circuit module contains: input respectively with packet packet header receiving interface, ARP searches receiving interface, the function selector circuit that the ARP refresh interface links to each other and is used for dispatching, input termination routing table is with classifying rules bank refresh interface and output selects circuit to link to each other with aforesaid operations so that the refresh command that handle receives resolves into the instruction decomposition circuit of microcommand, be used for the aging request of ARP counting circuit to the aging request signal of above-mentioned instruction decomposition circuit output ARP table, input links to each other with function selector circuit and the continuous ARP refresh control circuit of output and instruction decomposition circuit, input links to each other with the function selector circuit output and TCAM control circuit that output links to each other with the TCAM input, I/O is connected and the TCAM output links to each other and output links to each other with function selector circuit searches data receiver circuit with SSRAM, input respectively with the above-mentioned data receiver circuit of searching, function selector circuit link to each other and output respectively with the ARP refresh control circuit, route querying and IP bag classification results transmission interface, ARP lookup result transmission interface links to each other searches data processing circuit.
CNB03100606XA 2003-01-17 2003-01-17 At the same time, it supports routing search, IP packet classification, ARP search method and search system Expired - Fee Related CN1173531C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB03100606XA CN1173531C (en) 2003-01-17 2003-01-17 At the same time, it supports routing search, IP packet classification, ARP search method and search system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB03100606XA CN1173531C (en) 2003-01-17 2003-01-17 At the same time, it supports routing search, IP packet classification, ARP search method and search system

Publications (2)

Publication Number Publication Date
CN1426207A CN1426207A (en) 2003-06-25
CN1173531C true CN1173531C (en) 2004-10-27

Family

ID=4789865

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB03100606XA Expired - Fee Related CN1173531C (en) 2003-01-17 2003-01-17 At the same time, it supports routing search, IP packet classification, ARP search method and search system

Country Status (1)

Country Link
CN (1) CN1173531C (en)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1315297C (en) * 2003-07-12 2007-05-09 华为技术有限公司 Method for timed processing of list item in communication equipment and apparatus thereof
US7620732B2 (en) * 2003-11-18 2009-11-17 Kabushiki Kaisha Toshiba Apparatus for and method of setting communication path
CN100338927C (en) * 2004-09-09 2007-09-19 毛德操 Method for realizing addressing and routing according to path in internet by extending IP v4 packet head
CN100407693C (en) * 2004-12-30 2008-07-30 中兴通讯股份有限公司 Scheduling method and device for routing lookup and refresh based on FPGA
CN100387028C (en) * 2005-04-01 2008-05-07 清华大学 TCAM-based Parallel IP Packet Classifier and Method for Range Matching
CN100388725C (en) * 2005-12-28 2008-05-14 杭州华三通信技术有限公司 A method for refreshing hardware entries
CN100418331C (en) * 2006-03-03 2008-09-10 清华大学 Network Processor-Based Routing Lookup Result Cache Method
CN101094236B (en) 2007-07-20 2011-08-10 华为技术有限公司 Method for processing message in address resolution protocol, communication system, and forwarding planar process portion
CN101404611B (en) * 2008-11-07 2011-08-10 中兴通讯股份有限公司 Method for control address access by aging medium in Ethernet void connection field
CN102843362B (en) * 2012-08-08 2016-05-04 唐稳杰 A kind of TCAM of use carries out the method for ARP defence
CN103023793B (en) * 2012-12-11 2015-07-15 烽火通信科技股份有限公司 Management device and management method of address resolution protocol table
CN103647683A (en) * 2013-12-07 2014-03-19 天津光电通信技术有限公司 Method for realizing multi-path network port data monitoring processing by simulating router port
CN106302172A (en) * 2015-05-18 2017-01-04 深圳市中兴微电子技术有限公司 Support Hash lookup and the storage of route querying, lookup method and device simultaneously
CN111917738B (en) * 2020-07-14 2022-03-18 华东计算技术研究所(中国电子科技集团公司第三十二研究所) Processing method and system capable of supporting network high-level protocols

Also Published As

Publication number Publication date
CN1426207A (en) 2003-06-25

Similar Documents

Publication Publication Date Title
CN1173531C (en) At the same time, it supports routing search, IP packet classification, ARP search method and search system
US7436830B2 (en) Method and apparatus for wire-speed application layer classification of upstream and downstream data packets
US7039018B2 (en) Technique to improve network routing using best-match and exact-match techniques
TWI406133B (en) Data processing device and data transmission method
CN1671125A (en) Method and device for managing network traffic using cyclic redundancy check hash function
CN102487374B (en) Access control list realization method and apparatus thereof
JP2006313949A (en) Packet transfer device
CN101242362B (en) Search key-value generating device and method
CN101009656A (en) Routing system and method for managing rule entry thereof
US20110142050A1 (en) Hashing packet contents to determine a processor
US7403526B1 (en) Partitioning and filtering a search space of particular use for determining a longest prefix match thereon
CN1848814A (en) Filtering frames at an input port of a switch
US11652744B1 (en) Multi-stage prefix matching enhancements
CN101567852A (en) Method and device for switching the network address of IP message
CN101035060A (en) Integrated processing method for three-folded content addressable memory message classification
US7571242B2 (en) Method for accelerated packet processing
CN101035059A (en) Method for improving the classification searching speed of the three-folded content addressable memory message
CN1571352A (en) Method for processing five-membered stream group in network equipment
US11689464B2 (en) Optimizing entries in a content addressable memory of a network device
CN1794695A (en) Method of refreshing hardware table item
RU2233473C2 (en) Device and method for performing high-speed search for routes of internet protocol and controlling routing/transfer tables
CN100352233C (en) Route list organizing and searching method
CN106878308A (en) A kind of ICMP message matching system and method
CN1691664A (en) Method of ICMP error message conversion under PAT mode in NAT-PT gateway
EP1355472B1 (en) Method and system to determine the most appropriate software layer after reception of a packet

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20041027

Termination date: 20160117

EXPY Termination of patent right or utility model