[go: up one dir, main page]

CN101931590A - A routing integration method and device - Google Patents

A routing integration method and device Download PDF

Info

Publication number
CN101931590A
CN101931590A CN2010102673741A CN201010267374A CN101931590A CN 101931590 A CN101931590 A CN 101931590A CN 2010102673741 A CN2010102673741 A CN 2010102673741A CN 201010267374 A CN201010267374 A CN 201010267374A CN 101931590 A CN101931590 A CN 101931590A
Authority
CN
China
Prior art keywords
index
platform software
frr
ecmp
routing
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.)
Pending
Application number
CN2010102673741A
Other languages
Chinese (zh)
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN2010102673741A priority Critical patent/CN101931590A/en
Publication of CN101931590A publication Critical patent/CN101931590A/en
Priority to PCT/CN2011/074318 priority patent/WO2012024948A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks

Landscapes

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

Abstract

本发明公开了一种路由整合方法和装置,均可进行路由表下发,获得其中的部分转发信息和出口索引;根据出口索引查找平台软件表,获得出口和封装信息;并能够根据路由表和平台软件表中的信息整合出完整的转发信息。本发明方法和装置,不再需要二次查硬件表或者二次路由,转发效率得到明显提高;并能够保证在不支持多次查表的设备上也能实现两级转发,在提供相同的功能前提下,降低了设备成本。

Figure 201010267374

The invention discloses a routing integration method and device, both of which can issue the routing table to obtain part of the forwarding information and export index; search the platform software table according to the export index to obtain export and packaging information; and can obtain the export and encapsulation information according to the routing table and The information in the platform software table is integrated to form complete forwarding information. The method and device of the present invention no longer need to check the hardware table twice or the second routing, and the forwarding efficiency is significantly improved; and it can ensure that two-level forwarding can also be realized on devices that do not support multiple table lookups, providing the same function Under the premise, the equipment cost is reduced.

Figure 201010267374

Description

一种路由整合方法和装置 A routing integration method and device

技术领域technical field

本发明涉及通信领域,具体涉及一种路由整合方法和装置。The invention relates to the communication field, in particular to a routing integration method and device.

背景技术Background technique

随着互连网和企业内部网的不断发展,三层vpn(Visual-Private-Network,虚拟专用网)、ECMP(Equal-Cost Multi-Path,等价多路径)、FRR(Fast ReRoute,快速重路由)等各种技术应用越来越广泛。两级ecmp/frr组网的需求也越来越普遍。如图1所示:三层vpn组网,远端目的CE(Custom Edge Router,用户边缘路由器)进行双归,远端2台PE(Provider Edge Router,运营商边缘路由器)设备进行备份,到达主PE设备的公网又进行了负载均衡,那么本地PE上就需要支持多级ecmp/frr路由转发。现有的技术主要是依靠多次查找硬件转发表,首先根据目的ip地址查路由表,如果发现出口是ecmp或者frr,则获得第一级出口索引,根据此索引查硬件表;如果发现表项所指出口还是ecmp或者frr,则说明是多级嵌套,获得第二级索引,再查一次ecmp/frr硬件表,获取真正的出口信息进行封装和转发。With the continuous development of the Internet and corporate intranets, three-tier vpn (Visual-Private-Network, virtual private network), ECMP (Equal-Cost Multi-Path, equal-cost multi-path), FRR (Fast ReRoute, fast rerouting) And other technologies are more and more widely used. The demand for two-level ecmp/frr networking is becoming more and more common. As shown in Figure 1: a three-layer VPN network, the remote destination CE (Custom Edge Router, user edge router) performs dual-homing, and two remote PE (Provider Edge Router, operator edge router) devices perform backup and reach the primary The public network of the PE device is load-balanced, so the local PE needs to support multi-level ecmp/frr routing and forwarding. Existing technology mainly relies on searching the hardware forwarding table multiple times. First, the routing table is checked according to the destination ip address. If the exit is found to be ecmp or frr, the first-level exit index is obtained, and the hardware table is searched according to this index; if an entry is found If the specified export is still ecmp or frr, it means that it is multi-level nesting, obtain the second-level index, check the ecmp/frr hardware table again, and obtain the real export information for encapsulation and forwarding.

上述技术内容存在以下缺陷:There is following defect in above-mentioned technical content:

1、硬件不支持二次查表或者二次路由的设备无法实现上述嵌套组网的路由转发;1. Devices whose hardware does not support secondary table lookup or secondary routing cannot realize the routing and forwarding of the above-mentioned nested networking;

2、支持多次查表或路由的设备,硬件成本较高,且需要进行多次查找硬件表,显然转发效率低下。2. Devices that support multiple table lookups or routings have high hardware costs and need to look up the hardware table multiple times, obviously the forwarding efficiency is low.

发明内容Contents of the invention

有鉴于此,本发明的主要目的在于提供一种路由整合方法和装置,保证在不支持多次查表的设备上也能实现两级转发,并提高转发效率。In view of this, the main purpose of the present invention is to provide a routing integration method and device, which can ensure two-level forwarding on devices that do not support multiple table lookups, and improve forwarding efficiency.

为达到上述目的,本发明的技术方案是这样实现的:In order to achieve the above object, technical solution of the present invention is achieved in that way:

一种路由整合方法,该方法包括:A routing integration method, the method comprising:

路由表下发,获得其中的部分转发信息和出口索引;根据出口索引查找平台软件表,获得出口和封装信息;Issue the routing table to obtain part of the forwarding information and export index; search the platform software table according to the export index to obtain export and encapsulation information;

根据路由表和平台软件表中的信息整合出完整的转发信息。The complete forwarding information is integrated according to the information in the routing table and the platform software table.

针对平台软件表的所述查找,是基于路由表进行循环查找实现的,包括:The search for the platform software table is realized based on the routing table for circular search, including:

依照由一级索引至二级索引的索引关系,循环查找一级索引下的所有二级索引,依此获得平台软件表。According to the index relationship from the first-level index to the second-level index, all the second-level indexes under the first-level index are searched circularly, and the platform software table is obtained accordingly.

所述整合出完整的转发信息包括:The integrated forwarding information includes:

从每次循环时所获得的平台软件表中获取出口和封装信息,并结合从路由表中获取的所述部分转发信息,最终整合出完整的转发信息。The egress and encapsulation information is obtained from the platform software table obtained in each cycle, combined with the partial forwarding information obtained from the routing table, and finally the complete forwarding information is integrated.

所述出口索引是基于建立的索引关系实现的,所述索引关系包括:The export index is implemented based on the established index relationship, and the index relationship includes:

地址解析协议arp到快速重路由/等价多路径frr/ecmp/路由的索引关系;frr到路由的索引关系;ecmp到路由的索引关系;公网frr到虚拟专用网vpnecmp/vpn frr的索引关系;公网ecmp到vpn ecmp/vpn frr的索引关系。Index relationship from address resolution protocol arp to fast rerouting/equivalent multipath frr/ecmp/routing; index relationship from frr to routing; index relationship from ecmp to routing; index relationship from public network frr to virtual private network vpnecmp/vpn frr ; Index relationship from public network ecmp to vpn ecmp/vpn frr.

该方法进一步包括路由更新处理,为整合出完整的转发信息提供可用来参考的路由更新信息;The method further includes routing update processing, providing routing update information that can be used for reference for integrating complete forwarding information;

所述路由更新由下一跳arp变动引起,或由frr组变动引起,或由ecmp组变动引起。The routing update is caused by the change of the next hop arp, or by the change of the frr group, or by the change of the ecmp group.

一种路由整合装置,该装置包括路由表处理单元、平台软件表处理单元、整合单元;其中,A routing integration device, which includes a routing table processing unit, a platform software table processing unit, and an integration unit; wherein,

所述路由表处理单元,用于进行路由表下发,并获得其中的部分转发信息和出口索引;The routing table processing unit is configured to deliver the routing table and obtain part of the forwarding information and egress index;

所述平台软件表处理单元,用于获得路由表处理单元所得到的出口索引,并据此查找平台软件表,获得出口和封装信息;The platform software table processing unit is used to obtain the export index obtained by the routing table processing unit, and search the platform software table accordingly to obtain export and packaging information;

所述整合单元,用于得到路由表处理单元所获取的转发信息以及平台软件表处理单元所查找到的平台软件表,并根据获取的路由表和平台软件表中的信息整合出完整的转发信息。The integration unit is used to obtain the forwarding information obtained by the routing table processing unit and the platform software table found by the platform software table processing unit, and integrate the complete forwarding information according to the information in the obtained routing table and platform software table .

所述平台软件表处理单元针对平台软件表的所述查找,是基于路由表进行循环查找实现的;所述平台软件表处理单元查找平台软件表时用于:The platform software table processing unit searches for the platform software table based on a routing table for circular search; the platform software table processing unit searches for the platform software table for:

依照由一级索引至二级索引的索引关系,循环查找一级索引下的所有二级索引,依此获得平台软件表。According to the index relationship from the first-level index to the second-level index, all the second-level indexes under the first-level index are searched circularly, and the platform software table is obtained accordingly.

所述整合单元整合出完整的转发信息时,用于:When the integration unit integrates the complete forwarding information, it is used for:

从每次循环时所获得的平台软件表中获取出口和封装信息,并结合从路由表中获取的所述部分转发信息,最终整合出完整的转发信息。The egress and encapsulation information is obtained from the platform software table obtained in each cycle, combined with the partial forwarding information obtained from the routing table, and finally the complete forwarding information is integrated.

所述出口索引是基于建立的索引关系实现的,所述索引关系包括:The export index is implemented based on the established index relationship, and the index relationship includes:

arp到frr/ecmp/路由的索引关系;frr到路由的索引关系;ecmp到路由的索引关系;公网frr到vpn ecmp/vpn frr的索引关系;公网ecmp到vpn ecmp/vpn frr的索引关系。Index relationship from arp to frr/ecmp/routing; index relationship from frr to routing; index relationship from ecmp to routing; index relationship from public network frr to vpn ecmp/vpn frr; index relationship from public network ecmp to vpn ecmp/vpn frr .

该装置进一步包括路由更新单元,用于:进行路由更新并为所述整合单元提供可用来参考的路由更新信息;The device further includes a routing updating unit, configured to: perform routing updating and provide the integrating unit with routing updating information that can be used for reference;

所述路由更新由下一跳arp变动引起,或由frr组变动引起,或由ecmp组变动引起。The routing update is caused by the change of the next hop arp, or by the change of the frr group, or by the change of the ecmp group.

本发明方法和装置,不再需要二次查硬件表或者二次路由,转发效率得到明显提高;并能够保证在不支持多次查表的设备上也能实现两级转发,在提供相同的功能前提下,降低了设备成本。The method and device of the present invention no longer need to check the hardware table twice or the second routing, and the forwarding efficiency is significantly improved; and it can ensure that two-level forwarding can also be realized on devices that do not support multiple table lookups, providing the same function Under the premise, the equipment cost is reduced.

附图说明Description of drawings

图1为两级ecmp/frr组网应用场景示意图;Figure 1 is a schematic diagram of a two-level ecmp/frr networking application scenario;

图2为本发明一实施例的两级ecmp/frr路由整合流程图;Fig. 2 is the two-stage ecmp/frr routing integration flowchart of an embodiment of the present invention;

图3为本发明一实施例的地址解析协议(arp)、frr/ecmp路由之间的引用关系示意图;Fig. 3 is a schematic diagram of the reference relationship between address resolution protocol (arp) and frr/ecmp routing according to an embodiment of the present invention;

图4为本发明一实施例的下一跳arp变动引起的路由更新流程图;Fig. 4 is the flow chart of routing update caused by the change of next hop arp according to an embodiment of the present invention;

图5为本发明一实施例的frr组变动引起的路由更新流程图;Fig. 5 is a flow chart of routing update caused by frr group changes according to an embodiment of the present invention;

图6为本发明一实施例的ecmp组变动引起的路由更新流程图;Fig. 6 is a flow chart of routing update caused by ecmp group changes according to an embodiment of the present invention;

图7为本发明一实施例的路由整合流程简图;FIG. 7 is a schematic diagram of a routing integration process according to an embodiment of the present invention;

图8为本发明一实施例的路由整合装置图。FIG. 8 is a diagram of a routing integration device according to an embodiment of the present invention.

具体实施方式Detailed ways

总体而言,可以通过平台软件下发路由表,还可以查询平台软件表,并根据路由表和平台软件表整合出完整的出口信息,再将整合出的出口信息一次下发给驱动以写硬件表,在后续应用中,硬件只需要针对硬件表进行一次查表过程,即可完成两级ecmp/frr转发。Generally speaking, the routing table can be issued through the platform software, and the platform software table can also be queried, and the complete export information can be integrated according to the routing table and platform software table, and then the integrated export information can be issued to the driver at one time to write the hardware. Table, in subsequent applications, the hardware only needs to perform a table lookup process for the hardware table to complete the two-level ecmp/frr forwarding.

上述操作思路可以包括以下步骤:The above operation idea may include the following steps:

1)路由表下发,获得其中的部分转发信息和出口索引。1) The routing table is issued to obtain part of the forwarding information and egress index.

2)根据出口索引查找平台软件表,获得出口和封装信息。2) Search the platform software table according to the export index to obtain export and packaging information.

3)根据路由表和平台软件表中的信息整合出完整的转发信息。3) Integrating the complete forwarding information according to the information in the routing table and the platform software table.

需要说明的是,所述出口索引包括ecmp索引或者frr索引。并且,如果在平台软件表中查找不到出口索引,则直接结束。完整的转发信息通常包括:目的ip,掩码,vpn id,物理出端口,出接口索引,下一跳ip地址,目的介质访问控制mac,出标签等。It should be noted that the egress index includes an ecmp index or a frr index. And, if the exit index cannot be found in the platform software table, then end directly. The complete forwarding information usually includes: destination ip, mask, vpn id, physical outbound port, outbound interface index, next hop ip address, destination media access control mac, outbound label, etc.

在实际应用时,具体的路由整合流程如图2所示,该流程包括以下步骤:In actual application, the specific routing integration process is shown in Figure 2, which includes the following steps:

步骤201:上层协议下发路由表添加或者触发路由更新。Step 201: The upper layer protocol issues routing table addition or triggers routing update.

步骤202:判断路由出口类型是否为普通的下一跳,如果是,进入步骤203;否则,进入步骤204。Step 202: Determine whether the route egress type is a common next hop, if yes, go to step 203; otherwise, go to step 204.

步骤203:根据下一跳ip和三层接口索引查平台软件表,获得目的mac和物理出端口。Step 203: Search the platform software table according to the next hop ip and the three-layer interface index, and obtain the destination mac and physical outbound port.

步骤204:根据出口frr索引或者ecmp索引查找平台软件表,判断是否查找成功,如果成功,进入步骤205;否则,返回失败并结束本流程。Step 204: Search the platform software table according to the export frr index or ecmp index, judge whether the search is successful, if successful, enter step 205; otherwise, return failure and end the process.

步骤205:设置i的取值为零。Step 205: Set the value of i to zero.

步骤206:判断i是否小于m,如果小于,进入步骤208;否则,进入步骤207。Step 206: Determine whether i is smaller than m, if smaller, go to step 208; otherwise, go to step 207.

步骤207:将路由前缀信息、出口信息等完整的转发信息添加给驱动。Step 207: Add complete forwarding information such as routing prefix information and egress information to the driver.

具体而言,路由前缀信息包括目的ip、掩码、vpn id等,出口信息包括下一跳ip、物理出端口、目的mac、出接口索引、下一跳vpn id等。Specifically, routing prefix information includes destination ip, mask, vpn id, etc., and egress information includes next-hop ip, physical outbound port, destination mac, outbound interface index, next-hop vpn id, etc.

步骤208:判断第i个下一跳的出口是否存在二级索引,如果存在,进入步骤210;否则,进入步骤209。Step 208: Determine whether there is a secondary index at the exit of the i-th next hop, if so, go to step 210; otherwise, go to step 209.

步骤209:根据第i个下一跳的ip地址和三层接口索引查平台软件表,获得目的mac和物理出端口。Step 209: Search the platform software table according to the ip address of the i-th next hop and the three-layer interface index, and obtain the destination mac and physical egress port.

步骤210:根据出口frr索引或者ecmp索引查找平台软件表,判断是否查找成功;如果查找成功,进入步骤211;否则,返回失败并结束本流程。Step 210: Search the platform software table according to the export frr index or ecmp index, and judge whether the search is successful; if the search is successful, enter step 211; otherwise, return failure and end the process.

步骤211:设置j的取值为零。Step 211: Set the value of j to zero.

步骤212:判断j是否小于n,如果小于,进入步骤213;否则,进入步骤215。Step 212: Judging whether j is smaller than n, if smaller, go to step 213; otherwise, go to step 215.

步骤213:根据第j个下一跳的ip地址和三层接口索引查平台软件表,获得目的mac和物理出端口。Step 213: Search the platform software table according to the ip address of the jth next hop and the three-layer interface index, and obtain the destination mac and physical egress port.

步骤214:累加j,返回步骤212。Step 214: Accumulate j, return to step 212.

步骤215:累加i,返回步骤206。Step 215: Accumulate i, return to step 206.

由上述流程可见,针对平台软件表的查找,是基于路由表进行循环查找实现的,如:依照由一级索引至二级索引的索引关系,循环查找一级索引下的所有二级索引,依此获得平台软件表。基于上述的循环查找方式,后续在整合出完整的转发信息时,则可以从之前每次循环时所获得的平台软件表中获取出口和封装信息,并结合从路由表中获取的部分转发信息,最终整合出完整的转发信息。It can be seen from the above process that the lookup for the platform software table is realized based on the routing table. This gets the platform software table. Based on the above-mentioned cyclic search method, when the complete forwarding information is integrated later, the export and encapsulation information can be obtained from the platform software table obtained in each previous cycle, combined with the partial forwarding information obtained from the routing table, Finally, the complete forwarding information is integrated.

上述流程中的各索引之间存在索引关系,可以结合arp、frr/ecmp和路由之间的引用关系,应用图3说明上述索引关系。参见图3,普通下一跳arp变化会使引用它的路由或者引用它的ecmp/frr发生变化,arp变化需要触发相关frr/ecmp和路由更新;同理,frr/ecmp变化会使引用它的vpn frr、vpn ecmp或者路由发生变化,需要触发相关vpn frr、vpn ecmp以及路由更新,vpn frr或者vpnecmp变化会使引用它的路由出口发生变化,需要触发相关路由更新。因此需要建立与引用关系方向相反的索引关系:即arp到frr/ecmp/路由的索引关系;frr到路由的索引关系;ecmp到路由的索引关系;公网frr到vpn ecmp/vpn frr的索引关系;公网ecmp到vpn ecmp/vpn frr的索引关系。There is an index relationship between the indexes in the above process, and the above index relationship can be described by using Figure 3 in combination with the reference relationship among arp, frr/ecmp, and routing. See Figure 3. The common next-hop arp change will change the route that references it or the ecmp/frr that references it. The change of arp needs to trigger the update of related frr/ecmp and routes; If vpn frr, vpn ecmp or routing changes, related vpn frr, vpn ecmp and routing updates need to be triggered. Changes in vpn frr or vpnecmp will cause changes to the routing exits that refer to it, and related routing updates need to be triggered. Therefore, it is necessary to establish an index relationship opposite to the direction of the reference relationship: that is, the index relationship from arp to frr/ecmp/routing; the index relationship from frr to routing; the index relationship from ecmp to routing; the index relationship from public network frr to vpn ecmp/vpn frr ; Index relationship from public network ecmp to vpn ecmp/vpn frr.

可以结合上述的索引,说明路由、下一跳arp、ecmp/frr组之间的更新关系。The above indexes can be combined to illustrate the update relationship among routing, next-hop arp, and ecmp/frr groups.

具体而言,协议无法感知所有的下一跳arp变化,需要由目前的路由整合模块响应arp变化,并触发相关路由更新驱动。普通下一跳变动引起的路由更新过程如图4所示,图4所示流程包括以下步骤:Specifically, the protocol cannot perceive all next-hop arp changes, and the current routing integration module needs to respond to arp changes and trigger related routing update drivers. The routing update process caused by common next-hop changes is shown in Figure 4. The process shown in Figure 4 includes the following steps:

步骤401:协议下发arp添加、删除、或者更新操作。Step 401: The protocol issues an arp add, delete, or update operation.

步骤402:判断根据索引关系是否能找到引用该arp的子网路由,如果能找到,进入步骤403;否则,进入步骤404。Step 402: Determine whether the subnet route referencing the arp can be found according to the index relationship, if found, go to step 403; otherwise, go to step 404.

步骤403:根据操作类型具体处理。如:如果是arp添加或者更新操作,则将完整的出口信息和查到的路由前缀信息整合并写驱动。如果是arp删除操作,则可以将子网路由出口设置为上送CPU,等待arp信息完整后再重新整合子网路由出口。Step 403: Specific processing according to the operation type. For example: if it is an arp addition or update operation, integrate the complete export information and the found routing prefix information and write the driver. If it is an arp deletion operation, you can set the subnet routing exit to be sent to the CPU, and wait for the arp information to be complete before reintegrating the subnet routing exit.

步骤404:判断根据索引关系是否能找到引用arp的ecmp组,如果能找到,进入步骤405;否则,进入步骤406。Step 404: Determine whether the ecmp group referencing the arp can be found according to the index relationship, if found, go to step 405; otherwise, go to step 406.

步骤405:根据ecmp索引进行路由更新流程。Step 405: Perform a routing update process according to the ecmp index.

步骤406:判断根据索引关系是否能找到引用arp的frr组,如果能找到,进入步骤407;否则,结束本流程。Step 406: Determine whether the frr group referencing the arp can be found according to the index relationship, if found, go to step 407; otherwise, end the process.

步骤407:根据frr索引进行路由更新流程。Step 407: Perform a routing update process according to the frr index.

frr组变化引起的路由更新过程如图5所示,图5所示流程包括以下步骤:The routing update process caused by the frr group change is shown in Figure 5, and the process shown in Figure 5 includes the following steps:

步骤501:判断是否为frr组更新操作,如果是,进入步骤502;否则,进入步骤510。Step 501: Determine whether it is an frr group update operation, if yes, go to step 502; otherwise, go to step 510.

步骤502:判断根据frr索引能否查找到平台frr软件表项,如果能查找到,进入步骤503;否则,结束本流程。Step 502: Judging whether the platform frr software entry can be found according to the frr index, if found, go to step 503; otherwise, end the process.

步骤503:判断根据索引关系是否能找到引用该frr组的vpn frr或者vpnecmp,如果能查找到,进入步骤504;否则,进入步骤507。Step 503: Judging whether the vpn frr or vpnecmp referring to the frr group can be found according to the index relationship, if it can be found, enter step 504; otherwise, enter step 507.

步骤504:判断根据vpn frr/vpn ecmp索引能否查找到平台软件表项,如果能查找到,进入步骤505;否则,进入步骤507。Step 504: Judging whether the platform software entry can be found according to the vpn frr/vpn ecmp index, if found, enter step 505; otherwise, enter step 507.

步骤505:判断根据索引关系能否查找到引用vpn frr或者vpn ecmp的路由a,如果能查找到,进入步骤506;否则,进入步骤507。Step 505: Judging whether the route a referencing vpn frr or vpn ecmp can be found according to the index relationship, if it can be found, enter step 506; otherwise, enter step 507.

步骤506:整合完整的转发信息,将引用vpn frr/vpn ecmp的路由a更新驱动。Step 506: integrate the complete forwarding information, and update the driver by referencing the route a of vpn frr/vpn ecmp.

步骤507:判断是否能根据索引关系找到引用该frr组的路由b,并在能查找到时进入步骤508。Step 507: Determine whether the route b referencing the frr group can be found according to the index relationship, and enter step 508 if found.

步骤508:如果是frr更新或者添加操作,则整合完整的路由b信息并更新驱动;如果是frr删除操作,则暂时将路由b的出口置为上送cpu,并更新驱动。结束本流程。Step 508: If it is an frr update or add operation, then integrate the complete route b information and update the driver; if it is an frr delete operation, temporarily set the exit of route b to send to the cpu, and update the driver. End this process.

步骤510:判断是否为frr组添加操作,如果是,进入步骤503;否则,进入步骤520。Step 510: Judging whether to add operation for frr group, if yes, go to step 503; otherwise, go to step 520.

步骤520:判断是否为frr组删除操作,如果是,进入步骤507;否则,结束本流程。Step 520: Determine whether it is an frr group deletion operation, if yes, go to step 507; otherwise, end this process.

ecmp组变动引起的路由更新过程如图6所示,图6所示流程包括以下步骤:The routing update process caused by the ecmp group change is shown in Figure 6, and the process shown in Figure 6 includes the following steps:

步骤601:判断是否为Ecmp组更新操作,如果是,进入步骤602;否则,进入步骤610。Step 601: Determine whether it is an Ecmp group update operation, if yes, go to step 602; otherwise, go to step 610.

步骤602:判断根据Ecmp索引能否查找到平台Ecmp软件表项,如果能查找到,进入步骤603;否则,结束本流程。Step 602: Determine whether the platform Ecmp software entry can be found according to the Ecmp index, and if it can be found, go to step 603; otherwise, end the process.

步骤603:判断根据索引关系是否能找到引用该Ecmp组的vpn frr或者vpnecmp,如果能查找到,进入步骤604;否则,进入步骤607。Step 603: Judging whether the vpn frr or vpnecmp referring to the Ecmp group can be found according to the index relationship, if it can be found, enter step 604; otherwise, enter step 607.

步骤604:判断根据vpn frr/vpn ecmp索引能否查找到平台软件表项,如果能查找到,进入步骤605;否则,进入步骤607。Step 604: Judging whether the platform software entry can be found according to the vpn frr/vpn ecmp index, if found, enter step 605; otherwise, enter step 607.

步骤605:判断根据索引关系能否查找到引用vpn frr或者vpn ecmp的路由a,如果能查找到,进入步骤606;否则,进入步骤607。Step 605: Judging whether the route a referencing vpn frr or vpn ecmp can be found according to the index relationship, if it can be found, enter step 606; otherwise, enter step 607.

步骤606:整合完整的路由a的信息并更新驱动。Step 606: Integrate the complete route a information and update the driver.

步骤607:判断是否能根据索引关系查找到引用该Ecmp组的路由b,并在能查找到时进入步骤608。Step 607: Determine whether the route b referencing the Ecmp group can be found according to the index relationship, and go to step 608 if it can be found.

步骤608:如果是Ecmp更新或者添加操作,则整合完整的路由b的信息并更新驱动;如果是Ecmp删除操作,则暂时将路由b的出口置为上送cpu,并更新驱动。结束本流程。Step 608: If it is an Ecmp update or add operation, integrate the complete information of route b and update the driver; if it is an Ecmp delete operation, temporarily set the exit of route b to be sent to the cpu, and update the driver. End this process.

步骤610:判断是否为Ecmp组添加操作,如果是,进入步骤603;否则,进入步骤620。Step 610: Determine whether to add an operation for the Ecmp group, if yes, go to step 603; otherwise, go to step 620.

步骤620:判断是否为Ecmp组删除操作,如果是,进入步骤607;否则,结束本流程。Step 620: Determine whether it is an Ecmp group deletion operation, if yes, go to step 607; otherwise, end this process.

结合以上流程描述可知,本发明路由整合的操作思路可以表示如图7所示。参见图7,图7为本发明一实施例的路由整合流程简图,该流程包括以下步骤:In combination with the above process description, it can be seen that the operation idea of routing integration in the present invention can be represented as shown in FIG. 7 . Referring to FIG. 7, FIG. 7 is a schematic diagram of a routing integration process according to an embodiment of the present invention, and the process includes the following steps:

步骤710:路由表下发,获得其中的部分转发信息和出口索引。Step 710: Deliver the routing table, and obtain part of the forwarding information and egress index in it.

步骤720:根据出口索引查找平台软件表,获得出口和封装信息。Step 720: Search the platform software table according to the export index to obtain export and package information.

步骤730:根据路由表和平台软件表中的信息整合成完整的转发信息。Step 730: Integrate into complete forwarding information according to the information in the routing table and the platform software table.

为了保证上述流程及操作思路能够顺利实现,可以进行如图8所示的设置。参见图8,图8为本发明一实施例的路由整合装置图,该装置包括相连的路由表处理单元、平台软件表处理单元、整合单元,还可以包括与整合单元相连的路由更新单元。In order to ensure that the above-mentioned process and operation idea can be realized smoothly, the settings shown in Figure 8 can be performed. Referring to FIG. 8 , FIG. 8 is a diagram of a route integration device according to an embodiment of the present invention. The device includes a connected routing table processing unit, a platform software table processing unit, an integration unit, and may also include a routing update unit connected to the integration unit.

在具体应用时,路由表处理单元能够进行路由表下发,并获得其中的部分转发信息和出口索引;平台软件表处理单元则能够获得路由表处理单元所得到的出口索引,并据此查找平台软件表,获得出口和封装信息。整合单元能够得到路由表处理单元所获取的转发信息以及平台软件表处理单元所查找到的平台软件表,并根据获取的路由表和平台软件表中的信息整合出完整的转发信息。In a specific application, the routing table processing unit can issue the routing table and obtain part of the forwarding information and export index; the platform software table processing unit can obtain the export index obtained by the routing table processing unit, and search for the platform based on it. Software table, for export and packaging information. The integration unit can obtain the forwarding information obtained by the routing table processing unit and the platform software table found by the platform software table processing unit, and integrate the complete forwarding information according to the information in the obtained routing table and platform software table.

另外,路由更新单元能够进行如图4至图6所示的路由更新处理,并将处理结果通知给整合单元,为整合单元在整合出完整的转发信息时提供可用来参考的路由更新信息。In addition, the routing updating unit can perform routing updating processing as shown in FIGS. 4 to 6 , and notify the integration unit of the processing result, so as to provide the routing updating information that can be used for reference when the integration unit integrates the complete forwarding information.

需要说明的是,针对图8所示各单元中的任何单元,只要该单元需要应用arp、frr/ecmp路由之间的引用关系进行相关操作,那么就可以维护该引用关系。图8所示各单元所能实现的具体操作已在前述流程中的详细描述,在此不再赘述。另外,对于传统的一级ecmp/frr组网或者普通组网而言,前述流程同样适用。It should be noted that, for any unit in the units shown in FIG. 8 , as long as the unit needs to use the reference relationship between the arp and frr/ecmp routes to perform related operations, the reference relationship can be maintained. The specific operations that can be realized by each unit shown in FIG. 8 have been described in detail in the foregoing process, and will not be repeated here. In addition, for the traditional first-level ecmp/frr networking or common networking, the preceding process is also applicable.

综上所述可见,无论是方法还是装置,本发明的两级ecmp/frr路由整合技术,与现有技术相比,具有如下有益效果:In summary, no matter the method or the device, the two-level ecmp/frr routing integration technology of the present invention has the following beneficial effects compared with the prior art:

1、不再需要二次查硬件表或者二次路由,转发效率得到明显提高。1. It is no longer necessary to check the hardware table or route twice, and the forwarding efficiency is significantly improved.

2、保证在不支持多次查表的设备上也能实现两级转发,在提供相同的功能前提下,降低了设备成本。2. It is guaranteed that two-level forwarding can also be realized on devices that do not support multiple table lookups, and the device cost is reduced under the premise of providing the same function.

以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。The above description is only a preferred embodiment of the present invention, and is not used to limit the protection scope of the present invention. Any modifications, equivalent replacements and improvements made within the spirit and principles of the present invention shall be included in the within the protection scope of the present invention.

Claims (10)

1. A method for route aggregation, the method comprising:
issuing a routing table to obtain part of forwarding information and an exit index in the routing table; searching a platform software table according to the export index to obtain export and packaging information;
and integrating complete forwarding information according to the information in the routing table and the platform software table.
2. The method of claim 1, wherein the lookup for the platform software table is implemented by performing a round-robin lookup based on a routing table, and comprises:
and circularly searching all the secondary indexes under the primary index according to the index relationship from the primary index to the secondary index, thereby obtaining the platform software table.
3. The method of claim 2, wherein the integrating the complete forwarding information comprises:
and acquiring export and encapsulation information from the platform software table acquired during each circulation, and finally integrating complete forwarding information by combining the partial forwarding information acquired from the routing table.
4. The method of any of claims 1 to 3, wherein the exit index is implemented based on an established indexing relationship comprising:
the index relationship from the address resolution protocol arp to the fast reroute/equal cost multipath frr/ecmp/route; frr index relationship to route; ecmp index relationship to route; the index relationship from the public network frr to the virtual private network vpnecmp/vpn frr; the index relationship of the public network ecmp to vpn ecmp/vpn frr.
5. The method of claim 4, further comprising a route update process for providing route update information for the integrated complete forwarding information to be used as a reference;
the route update is caused by a next hop arp change, or by a frr group change, or by an ecmp group change.
6. A route integration device is characterized by comprising a route table processing unit, a platform software table processing unit and an integration unit; wherein,
the routing table processing unit is used for issuing a routing table and acquiring part of forwarding information and exit indexes in the routing table;
the platform software table processing unit is used for obtaining the outlet index obtained by the routing table processing unit and searching the platform software table according to the outlet index to obtain outlet and packaging information;
the integration unit is used for obtaining the forwarding information acquired by the routing table processing unit and the platform software table searched by the platform software table processing unit, and integrating complete forwarding information according to the acquired routing table and the information in the platform software table.
7. The apparatus according to claim 6, wherein the lookup of the platform software table by the platform software table processing unit is implemented by performing a loop lookup based on a routing table; when the platform software table processing unit searches the platform software table, the platform software table processing unit is used for:
and circularly searching all the secondary indexes under the primary index according to the index relationship from the primary index to the secondary index, thereby obtaining the platform software table.
8. The apparatus of claim 7, wherein the integration unit, when integrating the complete forwarding information, is configured to:
and acquiring export and encapsulation information from the platform software table acquired during each circulation, and finally integrating complete forwarding information by combining the partial forwarding information acquired from the routing table.
9. The apparatus of any of claims 6 to 8, wherein the exit index is implemented based on an established indexing relationship comprising:
the index relationship of arp to frr/ecmp/route; frr index relationship to route; ecmp index relationship to route; the index relation from the public network frr to the vpn ecmp/vpn frr; the index relationship of the public network ecmp to vpn ecmp/vpn frr.
10. The apparatus of claim 9, further comprising a route update unit configured to: performing route updating and providing route updating information which can be used for reference for the integration unit;
the route update is caused by a next hop arp change, or by a frr group change, or by an ecmp group change.
CN2010102673741A 2010-08-27 2010-08-27 A routing integration method and device Pending CN101931590A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN2010102673741A CN101931590A (en) 2010-08-27 2010-08-27 A routing integration method and device
PCT/CN2011/074318 WO2012024948A1 (en) 2010-08-27 2011-05-19 Method and apparatus for integrating routing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010102673741A CN101931590A (en) 2010-08-27 2010-08-27 A routing integration method and device

Publications (1)

Publication Number Publication Date
CN101931590A true CN101931590A (en) 2010-12-29

Family

ID=43370521

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010102673741A Pending CN101931590A (en) 2010-08-27 2010-08-27 A routing integration method and device

Country Status (2)

Country Link
CN (1) CN101931590A (en)
WO (1) WO2012024948A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012024948A1 (en) * 2010-08-27 2012-03-01 中兴通讯股份有限公司 Method and apparatus for integrating routing
CN102984062A (en) * 2012-11-29 2013-03-20 中兴通讯股份有限公司 Method for processing subnet routes and packet forwarding equipment
CN104158718A (en) * 2014-08-25 2014-11-19 杭州华三通信技术有限公司 A message processing method and device
CN110635988A (en) * 2019-10-24 2019-12-31 北京大学 A data forwarding method and device for multipath transmission

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1885820A (en) * 2005-06-21 2006-12-27 中兴通讯股份有限公司 Engine apparatus for route forwarding table address searching
CN101043428A (en) * 2006-05-30 2007-09-26 华为技术有限公司 Routing retransmitting method and system
CN101127709A (en) * 2007-09-26 2008-02-20 杭州华三通信技术有限公司 A method and device for updating port address in address parsing protocol table
CN101442494A (en) * 2008-12-16 2009-05-27 中兴通讯股份有限公司 Method for implementing rapid rerouting
CN101562575A (en) * 2009-06-04 2009-10-21 杭州华三通信技术有限公司 MPLS TE FRR fast switching method and device thereof
CN101695047A (en) * 2009-10-26 2010-04-14 中兴通讯股份有限公司 Method and switch for realizing forwarding of dynamic tunnel message

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101931590A (en) * 2010-08-27 2010-12-29 中兴通讯股份有限公司 A routing integration method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1885820A (en) * 2005-06-21 2006-12-27 中兴通讯股份有限公司 Engine apparatus for route forwarding table address searching
CN101043428A (en) * 2006-05-30 2007-09-26 华为技术有限公司 Routing retransmitting method and system
CN101127709A (en) * 2007-09-26 2008-02-20 杭州华三通信技术有限公司 A method and device for updating port address in address parsing protocol table
CN101442494A (en) * 2008-12-16 2009-05-27 中兴通讯股份有限公司 Method for implementing rapid rerouting
CN101562575A (en) * 2009-06-04 2009-10-21 杭州华三通信技术有限公司 MPLS TE FRR fast switching method and device thereof
CN101695047A (en) * 2009-10-26 2010-04-14 中兴通讯股份有限公司 Method and switch for realizing forwarding of dynamic tunnel message

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012024948A1 (en) * 2010-08-27 2012-03-01 中兴通讯股份有限公司 Method and apparatus for integrating routing
CN102984062A (en) * 2012-11-29 2013-03-20 中兴通讯股份有限公司 Method for processing subnet routes and packet forwarding equipment
CN102984062B (en) * 2012-11-29 2016-06-15 中兴通讯股份有限公司 The processing method of a kind of subnet route and message forwarding equipment
CN104158718A (en) * 2014-08-25 2014-11-19 杭州华三通信技术有限公司 A message processing method and device
CN104158718B (en) * 2014-08-25 2017-06-13 新华三技术有限公司 A kind of message processing method and device
CN110635988A (en) * 2019-10-24 2019-12-31 北京大学 A data forwarding method and device for multipath transmission
CN110635988B (en) * 2019-10-24 2020-10-27 北京大学 A data forwarding method and device for multi-path transmission

Also Published As

Publication number Publication date
WO2012024948A1 (en) 2012-03-01

Similar Documents

Publication Publication Date Title
CN105099913B (en) A kind of message forwarding method and equipment
US20160277297A1 (en) Sdn packet forwarding
CN104184664B (en) Route forwarding table items generation method and device
CN104488235B (en) Message forwarding method and network equipment
CN104426763B (en) Tunnel switching method, device and interchanger
CN102075438B (en) unicast data frame transmission method and device
EP3054634B1 (en) Scheme for performing one-pass tunnel forwarding function on two-layer network structure
EP2997702B1 (en) Compressing singly linked lists sharing common nodes for multi-destination group expansion
CN113519144B (en) Exact match and Ternary Content Addressable Memory (TCAM) hybrid lookup for network devices
CN103379029B (en) A kind of method of the routing forwarding of content network, apparatus and system
CN105763454B (en) Data message forwarding method and device based on two-dimentional routing policy
WO2013026384A1 (en) Service data transmission method, network node and system
CN106992933A (en) Policybased routing processing, message forwarding method and device
CN106453091B (en) The equivalent route management method and device of router Forwarding plane
CN109617803A (en) A method, device and device for generating a forwarding entry
CN102137025A (en) Method and device for forwarding messages and switch chip
WO2012079368A1 (en) Method and system for multiprotocol label switching layer-three virtual private network fast reroute
CN102474451B (en) Connecting inner and outer MPLS labels
CN101931590A (en) A routing integration method and device
CN102255816B (en) Method and device for load sharing
CN103841026B (en) VPN route managing system and method of router IP protocol stack
US10313274B2 (en) Packet forwarding
CN112437008B (en) Network routing convergence processing and message processing method, device and equipment
WO2013010435A1 (en) Routing table management method and system
US9853891B2 (en) System and method for facilitating communication

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20101229