WO2012024948A1 - Method and apparatus for integrating routing - Google Patents

Method and apparatus for integrating routing Download PDF

Info

Publication number
WO2012024948A1
WO2012024948A1 PCT/CN2011/074318 CN2011074318W WO2012024948A1 WO 2012024948 A1 WO2012024948 A1 WO 2012024948A1 CN 2011074318 W CN2011074318 W CN 2011074318W WO 2012024948 A1 WO2012024948 A1 WO 2012024948A1
Authority
WO
WIPO (PCT)
Prior art keywords
index
routing
ecmp
platform software
frr
Prior art date
Application number
PCT/CN2011/074318
Other languages
French (fr)
Chinese (zh)
Inventor
史亮
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2012024948A1 publication Critical patent/WO2012024948A1/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

Definitions

  • the present invention relates to the field of communications, and in particular, to a route integration method and apparatus. Background technique
  • Layer 3 VPN Voice-Private-Network, Virtual Private Network
  • ECMP Equal-Cost Multi-Path
  • FRR Fast ReRoute
  • the Layer 3 VPN network the remote destination CE (Custom Edge Router) performs dual-homing
  • the remote PE Provider Edge Router
  • the public network of the PE device is load balanced.
  • the local PE needs to support multi-level ecmp/frr route forwarding.
  • the existing technology mainly relies on searching the hardware forwarding table multiple times.
  • the routing table is checked according to the destination IP address. If the egress is ecmp or frr, the first-level egress index is obtained, and the hardware table is checked according to the index; The indicated exit is still ecmp or frr, which means that it is multi-level nested, obtain the second-level index, and then check the ecmp/frr hardware table to obtain the real export information for encapsulation and forwarding.
  • the device that does not support the secondary lookup table or the secondary route cannot implement the routing and forwarding of the above nested networking.
  • the main object of the present invention is to provide a route integration method and apparatus, which can ensure two-level forwarding on a device that does not support multiple table lookups, and improve forwarding efficiency.
  • a route integration method comprising:
  • the complete forwarding information is integrated according to the information in the routing table and the platform software table.
  • the searching for the platform software table is implemented by a loop search based on a routing table, and the process of the loop search includes:
  • the index of each level under the primary index is searched step by step, and the platform software table is obtained accordingly.
  • the integration of complete forwarding information includes:
  • the egress and encapsulation information is obtained from the platform software table obtained in each loop search, and the partial forwarding information obtained from the routing table is combined, and finally the complete forwarding information is integrated.
  • the egress index is implemented based on an established index relationship, and the index relationship includes at least one of the following:
  • Address resolution protocol arp to fast reroute / equivalent multipath frr / ecmp / routing index relationship; frr to routing index relationship; ecmp to routing index relationship; public network frr to virtual private network vpn ecmp / vpn fir ⁇ index Relationship; index relationship of public network ecmp to vpn ecmp/vpn frr.
  • the method further includes routing update processing for providing routing update information that can be referenced for integrating the complete forwarding information;
  • the routing update is caused by a change in the next hop arp, or caused by a change in the frr group, or caused by a change in the ecmp group.
  • a route integration device the device includes a routing table processing unit, and a platform software table processing list Yuan, integrated unit; among them,
  • the routing table processing unit is configured to obtain partial forwarding information and an egress index in the routing table.
  • the platform software table processing unit is configured to obtain an egress index obtained by the routing table processing unit, and search for platform software according to the routing software Table, obtaining export and package information;
  • the integration unit is configured to obtain forwarding information acquired by the routing table processing unit and a platform software table found by the platform software table processing unit, and integrate the information according to the obtained routing table and the platform software table. Complete forwarding information.
  • the searching of the platform software table processing unit for the platform software table is implemented by performing a loop search based on the routing table; and the platform software table processing unit is used to: when searching the platform software table in a loop:
  • the index of each level under the primary index is searched step by step, and the platform software table is obtained accordingly.
  • 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 loop search, and the partial forwarding information obtained from the routing table is combined, and finally the complete forwarding information is integrated.
  • the egress index is implemented based on an established index relationship, and the index relationship includes at least one of the following:
  • Index relationship of arp to frr/ecmp/route index relationship of frr to route; index relationship of ecmp to route; index relationship of public network frr to vpn ecmp/vpn frr; index relationship of public network ecmp to vpn ecmp/vpn frr .
  • the apparatus further includes a routing update unit, configured to: provide the integration unit with routing update information that can be used for reference;
  • the routing update is caused by a change in the next hop arp, or caused by a change in the fa group, or caused by a change in the ecmp group.
  • the method and device of the invention no longer need to check the hardware table or the secondary route twice, and the forwarding efficiency Significantly improved; and can ensure that two-level forwarding can be implemented on devices that do not support multiple look-up tables, reducing equipment costs while providing the same functionality.
  • Figure 1 is a schematic diagram of a two-stage ecmp/frr networking application scenario
  • FIG. 2 is a flowchart of two-stage ecmp/frr routing integration according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram of a reference relationship between an address resolution protocol (arp) and a frr/ecmp route according to an embodiment of the present invention
  • FIG. 4 is a flowchart of a route update caused by a change of a next hop ar according to an embodiment of the present invention
  • FIG. 5 is a flowchart of a route update caused by a variation of a frr group according to an embodiment of the present invention
  • FIG. 6 is an ecmp according to an embodiment of the present invention
  • FIG. 1 is a schematic diagram of a route integration process according to an embodiment of the present invention
  • FIG. 8 is a diagram of a route integration apparatus according to an embodiment of the present invention. detailed description
  • the platform software can be used to deliver the routing table, and the platform software table can be queried, and the complete export information can be integrated according to the routing table and the platform software table, and the integrated export information is sent to the driver once to write the hardware.
  • the hardware only needs to perform a table lookup process for the hardware table to complete the two-stage ecmp/frr forwarding.
  • the routing table is delivered, and part of the forwarding information and the exit index are obtained.
  • the egress index includes an ecmp index or an frr index. Also, if the exit index is not found in the platform software table, it ends directly.
  • the complete forwarding information usually includes: destination ip, mask, vpn id, physical outbound interface, outbound interface index, next hop ip address, The destination media access controls mac, out tags, and so on.
  • Step 201 The upper layer protocol sends a routing table to add or trigger a route update.
  • Step 202 Determine whether the route exit type is a normal next hop, and if yes, enter the step
  • Step 203 Check the platform software table according to the next hop ip and the layer 3 interface index to obtain the destination mac and the physical outgoing port.
  • Step 204 Find the platform software table according to the export frr index or the ecmp index, and determine whether the search is successful. If successful, go to step 205; otherwise, return the failure and end the process.
  • Step 205 Set the value of i to zero.
  • Step 206 Determine whether i is less than m, if not, proceed to step 208; otherwise, proceed to step 207.
  • Step 207 Add complete forwarding information such as route prefix information and exit information to the driver.
  • the route prefix information includes the destination ip, the mask, the vpn id, and the like.
  • the egress information includes the next hop ip, the physical egress port, the destination mac, the outbound interface index, and the next hop vpn id.
  • Step 208 Determine whether there is a secondary index for the exit of the i th next hop. If yes, go to step 210; otherwise, go to step 209.
  • Step 209 Check the platform software table according to the ip address of the i-th next hop and the layer 3 interface index to obtain the destination mac and the physical egress port.
  • Step 210 Find the platform software table according to the export frr index or the ecmp index, and determine whether the search is successful. If the search is successful, go to step 211; otherwise, return the failure and end the process.
  • Step 211 Set the value of j to zero.
  • Step 212 Determine whether j is less than n, if not, proceed to step 213; otherwise, proceed to step 215.
  • Step 213 Check the platform software table according to the ip address of the jth next hop and the layer 3 interface index to obtain the destination mac and the physical outgoing port.
  • Step 214 Accumulate j, return to step 212.
  • Step 215 Accumulate i, return to step 206.
  • the search for the platform software table is implemented by a cyclic lookup based on the routing table, such as: according to the index relationship from the primary index to the multi-level index (such as the secondary index), the hierarchical search is performed under the primary index.
  • the index of each level (such as all secondary indexes), in order to obtain the platform software table.
  • the egress and encapsulation information can be obtained from the platform software table obtained in each previous loop, and combined with the partial forwarding information obtained from the routing table. The final integration of the complete forwarding information.
  • FIG. 3 illustrates the index relationship.
  • the normal next hop arp change will change the route that references it or the ecmp/frr that references it.
  • the arp change needs to trigger the relevant frr/ecmp and route update.
  • the frr/ecmp change will refer to it. If the vpn frr, vpn ecm, or route changes, the related vpn frr, vpn ecm, and route update must be triggered.
  • the vpn frr or vpn ecmp change will change the route exit that references it, and the related route update needs to be triggered.
  • index relationship of arp to frr/ecmp/route index relationship of frr to route
  • index relationship of ecmp to route index relationship of public network fir to vpn ecmp/vpn frr ; public network ecm to vpn ecmp / vpn frr index relationship.
  • the update relationship between the route, the next hop arp, and the ecmp/frr group can be described in combination with the above index.
  • the protocol can not perceive all the next-hop ar p changes required by the current routing module integrated response arp change, and triggers associated routing update the driver.
  • the route update process caused by the normal next hop change is shown in Figure 4.
  • the process shown in Figure 4 includes the following steps: Step 401: The protocol sends an arp add, delete, or update operation.
  • Step 402 Determine whether the subnet route referring to the arp can be found according to the index relationship. If yes, go to step 403; otherwise, go to step 404.
  • Step 403 Specifically processing according to the operation type. For example: If it is an arp add or update operation, the complete exit information and the found route prefix information are integrated and written. If the arp delete operation is performed, you can set the subnet route exit to the CPU and wait for the arp information to complete before re-integrating the subnet route exit.
  • Step 404 Determine whether the ecmp group referring to the aip can be found according to the index relationship. If yes, go to step 405; otherwise, go to step 406.
  • Step 405 Perform a route update process according to ecmp cable.
  • Step 406 Determine whether the frr group referring to the arp can be found according to the index relationship. If it can be found, go to step 407; otherwise, end the process.
  • Step 407 Perform a route update process according to the frr index.
  • the routing update process caused by the change of the frr group is shown in Figure 5.
  • the process shown in Figure 5 includes the following steps:
  • Step 501 Determine whether it is a frr group update operation, and if yes, go to step 502; otherwise, go to step 510.
  • Step 502 Determine whether the platform frr software entry can be found according to the frr index. If it can be found, go to step 503; otherwise, end the process.
  • Step 503 Determine whether vpn frr or vpn ecmp that references the frr group can be found according to the index relationship. If it can be found, go to step 504; otherwise, go to step 507.
  • Step 504 Determine whether the platform software entry can be found according to the vpn frr/vpn ecmp index. If it can be found, go to step 505; otherwise, go to step 507.
  • Step 505 Determine whether the route a referring to the vpn fir or the vpn ecmp can be found according to the index relationship. If it can be found, go to step 506; otherwise, go to step 507.
  • Step 506 Integrate the complete forwarding information, and update the route a reference vpn frr/vpn ecmp.
  • Step 507 Determine whether the route b referring to the frr group can be found according to the index relationship, and proceed to step 508 when it can be found.
  • Step 508 If it is a frr update or add operation, integrate the complete route b information and update the driver; if it is a frr delete operation, temporarily set the exit of the route b to the send cpu, and update the driver. End this process.
  • Step 510 Determine whether to add an operation to the frr group, if yes, go to step 503; otherwise, go to step 520.
  • Step 520 Determine whether the frr group delete operation, if yes, proceed to step 507; otherwise, end the process.
  • the route update process caused by the change of the ecmp group is shown in Figure 6.
  • the process shown in Figure 6 includes the following steps:
  • Step 601 Determine whether the Ecmp group update operation is performed. If yes, go to step 602; otherwise, go to step 610.
  • Step 602 Determine whether the platform Ecmp software entry can be found according to the Ecmp index. If it can be found, go to step 603; otherwise, end the process.
  • Step 603 Determine whether vpn fir or vpn ecmp that references the Ecmp group can be found according to the index relationship. If it can be found, go to step 604; otherwise, go to step 607.
  • Step 604 Determine whether the platform software entry can be found according to the vpn frr/vpn ecm index. If it can be found, go to step 605; otherwise, go to step 607.
  • Step 605 Determine whether the route a referring to vpn frr or vpn ecmp can be found according to the index relationship. If it can be found, go to step 606; otherwise, go to step 607.
  • Step 606 Integrate the complete route a information and update the driver.
  • Step 607 Determine whether the route b that references the Ecmp group can be found according to the index relationship. And when it can be found, it proceeds to step 608.
  • Step 608 If it is an Ecmp update or add operation, integrate the information of the complete route b and update the driver; if it is an Ecmp delete operation, temporarily set the exit of the route b to the send cpu, and update the driver. End this process.
  • Step 610 Determine whether to add an operation to the Ecmp group. If yes, go to step 603; otherwise, go to step 620.
  • Step 620 Determine whether the Ecmp group delete operation is performed. If yes, go to step 607; otherwise, end the process.
  • FIG. 7 is a schematic diagram of a route integration process according to an embodiment of the present invention, where the process includes the following steps:
  • Step 710 The routing table is delivered, and part of the forwarding information and the egress index are obtained.
  • Step 720 Find the platform software table according to the egress index, and obtain the export and encapsulation information.
  • Step 730 Integrate the complete forwarding information according to the information in the routing table and the platform software table.
  • FIG. 8 is a diagram of a route integration apparatus according to an embodiment of the present invention.
  • the apparatus includes an associated routing table processing unit, a platform software table processing unit, and an integration unit, and may further include a route update unit connected to the integration unit.
  • the routing table processing unit can issue a routing table and obtain part of the forwarding information and the egress index; the platform software table processing unit can obtain the egress index obtained by the routing table processing unit, and search the platform accordingly.
  • the merging 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 obtained routing table and the information in the platform software table.
  • the route update unit is capable of performing route update processing as shown in FIGS. 4 to 6, and The processing result is notified to the integration unit, and the integration unit provides routing update information that can be used for reference when integrating the complete forwarding information.
  • the two-stage ecmp/frr routing integration technique of the present invention has the following beneficial effects as compared with the prior art, whether it is a method or a device:

Abstract

The present invention discloses a method and an apparatus for integrating routing, and in the method and apparatus, partial forwarding information and an outlet index in the routing table can be acquired; a platform software table is searched according to the outlet index so as to acquire the outlet and encapsulation information, and the obtained information in the routing table is integrated with the obtained information in the platform software table to acquire the complete forwarding information. The method and apparatus can obviously improve the forwarding efficiency without secondary hardware table searching or secondary routing, ensure that two-level forwarding can be realized on the device which does not support repeated table searching, and reduce the device cost on the premise of providing the same function.

Description

一种路由整合方法和装置 技术领域  Route integration method and device
本发明涉及通信领域, 具体涉及一种路由整合方法和装置。 背景技术  The present invention relates to the field of communications, and in particular, to a route integration method and apparatus. 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 intranet, Layer 3 VPN (Visual-Private-Network, Virtual Private Network), ECMP (Equal-Cost Multi-Path), FRR (Fast ReRoute) Various technologies are becoming more and more widely used. The demand for two-stage ecmp/frr networking is also becoming more common. As shown in Figure 1: The Layer 3 VPN network, the remote destination CE (Custom Edge Router) performs dual-homing, and the remote PE (Provider Edge Router) devices back up to reach the primary. The public network of the PE device is load balanced. The local PE needs to support multi-level ecmp/frr route forwarding. The 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 egress is ecmp or frr, the first-level egress index is obtained, and the hardware table is checked according to the index; The indicated exit is still ecmp or frr, which means that it is multi-level nested, obtain the second-level index, and then check the ecmp/frr hardware table to obtain the real export information for encapsulation and forwarding.
上述技术内容存在以下缺陷:  The above technical content has the following drawbacks:
1、硬件不支持二次查表或者二次路由的设备无法实现上述嵌套組网的 路由转发;  1. The device that does not support the secondary lookup table or the secondary route cannot implement the routing and forwarding of the above nested networking.
2、 支持多次查表或路由的设备, 硬件成本较高, 且需要进行多次查找 硬件表, 显然转发效率低下。 发明内容 2. Supporting multiple tables or routing devices, the hardware cost is high, and the hardware table needs to be searched multiple times. Obviously, the forwarding efficiency is low. Summary of the invention
有鉴于此, 本发明的主要目的在于提供一种路由整合方法和装置, 保 证在不支持多次查表的设备上也能实现两级转发, 并提高转发效率。  In view of the above, the main object of the present invention is to provide a route integration method and apparatus, which can ensure two-level forwarding on a device that does not support multiple table lookups, and improve forwarding efficiency.
为达到上述目的, 本发明的技术方案是这样实现的:  In order to achieve the above object, the technical solution of the present invention is achieved as follows:
一种路由整合方法, 该方法包括:  A route integration method, the method comprising:
获得路由表中的部分转发信息和出口索引, 根据所述出口索引查找平 台软件表, 获得出口和封装信息;  Obtaining part of the forwarding information and the egress index in the routing table, searching the platform software table according to the egress index, and obtaining the export and encapsulation information;
根据所述路由表和平台软件表中的信息整合出完整的转发信息。  The complete forwarding information is integrated according to the information in the routing table and the platform software table.
针对平台软件表的所述查找, 是基于路由表进行循环查找实现的, 所 述循环查找的过程包括:  The searching for the platform software table is implemented by a loop search based on a routing table, and the process of the loop search includes:
依照由一级索引至多级索引的索引关系, 逐级循环查找一级索引下的 各级索引, 依此获得平台软件表。  According to the index relationship from the primary index to the multi-level index, the index of each level under the primary index is searched step by step, and the platform software table is obtained accordingly.
所述整合出完整的转发信息包括:  The integration of complete forwarding information includes:
从每次循环查找时所获得的平台软件表中获取出口和封装信息, 并结 合从路由表中获取的所述部分转发信息, 最终整合出完整的转发信息。  The egress and encapsulation information is obtained from the platform software table obtained in each loop search, and the partial forwarding information obtained from the routing table is combined, and finally the complete forwarding information is integrated.
所述出口索引是基于建立的索引关系实现的, 所述索引关系包括以下 至少之一:  The egress index is implemented based on an established index relationship, and the index relationship includes at least one of the following:
地址解析协议 arp到快速重路由 /等价多路径 frr/ecmp/路由的索引关系; frr到路由的索引关系; ecmp到路由的索引关系;公网 frr到虚拟专用网 vpn ecmp/vpn fir ό 索引关系; 公网 ecmp到 vpn ecmp/vpn frr的索引关系。  Address resolution protocol arp to fast reroute / equivalent multipath frr / ecmp / routing index relationship; frr to routing index relationship; ecmp to routing index relationship; public network frr to virtual private network vpn ecmp / vpn fir ό index Relationship; index relationship of public network ecmp to vpn ecmp/vpn frr.
该方法进一步包括路由更新处理, 用于为整合出完整的转发信息提供 可用来参考的路由更新信息;  The method further includes routing update processing for providing routing update information that can be referenced for integrating the complete forwarding information;
所述路由更新由下一跳 arp变动引起, 或由 frr组变动引起, 或由 ecmp 组变动引起。  The routing update is caused by a change in the next hop arp, or caused by a change in the frr group, or caused by a change in the ecmp group.
一种路由整合装置, 该装置包括路由表处理单元、 平台软件表处理单 元、 整合单元; 其中, A route integration device, the device includes a routing table processing unit, and a platform software table processing list Yuan, integrated unit; among them,
所述路由表处理单元, 用于获得路由表中的部分转发信息和出口索引; 所述平台软件表处理单元, 用于获得所述路由表处理单元所得到的出 口索引, 并据此查找平台软件表, 获得出口和封装信息;  The routing table processing unit is configured to obtain partial forwarding information and an egress index in the routing table. The platform software table processing unit is configured to obtain an egress index obtained by the routing table processing unit, and search for platform software according to the routing software Table, obtaining export and package information;
所述整合单元, 用于得到所述路由表处理单元所获取的转发信息以及 平台软件表处理单元所查找到的平台软件表, 并根据获取的所述路由表和 平台软件表中的信息整合出完整的转发信息。  The integration unit is configured to obtain forwarding information acquired by the routing table processing unit and a platform software table found by the platform software table processing unit, and integrate the information according to the obtained routing table and the platform software table. Complete forwarding information.
所述平台软件表处理单元针对平台软件表的所述查找, 是基于路由表 进行循环查找实现的; 所述平台软件表处理单元在循环查找平台软件表时 用于:  The searching of the platform software table processing unit for the platform software table is implemented by performing a loop search based on the routing table; and the platform software table processing unit is used to: when searching the platform software table in a loop:
依照由一级索引至多级索引的索引关系, 逐级循环查找一级索引下的 各级索引, 依此获得平台软件表。  According to the index relationship from the primary index to the multi-level index, the index of each level under the primary index is searched step by step, 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 loop search, and the partial forwarding information obtained from the routing table is combined, and finally the complete forwarding information is integrated.
所述出口索引是基于建立的索引关系实现的, 所述索引关系包括以下 至少之一:  The egress index is implemented based on an established index relationship, and the index relationship includes at least one of the following:
arp到 frr/ecmp/路由的索引关系; frr到路由的索引关系; ecmp到路由 的索引关系; 公网 frr到 vpn ecmp/vpn frr的索引关系; 公网 ecmp到 vpn ecmp/vpn frr的索引关系。  Index relationship of arp to frr/ecmp/route; index relationship of frr to route; index relationship of ecmp to route; index relationship of public network frr to vpn ecmp/vpn frr; index relationship of public network ecmp to vpn ecmp/vpn frr .
该装置进一步包括路由更新单元, 用于: 为所述整合单元提供可用来 参考的路由更新信息;  The apparatus further includes a routing update unit, configured to: provide the integration unit with routing update information that can be used for reference;
所述路由更新由下一跳 arp变动引起, 或由 fa组变动引起, 或由 ecmp 组变动引起。  The routing update is caused by a change in the next hop arp, or caused by a change in the fa group, or caused by a change in the ecmp group.
本发明方法和装置, 不再需要二次查硬件表或者二次路由, 转发效率 得到明显提高; 并能够保证在不支持多次查表的设备上也能实现两级转发, 在提供相同的功能前提下, 降低了设备成本。 附图说明 The method and device of the invention no longer need to check the hardware table or the secondary route twice, and the forwarding efficiency Significantly improved; and can ensure that two-level forwarding can be implemented on devices that do not support multiple look-up tables, reducing equipment costs while providing the same functionality. DRAWINGS
图 1为两级 ecmp/frr组网应用场景示意图;  Figure 1 is a schematic diagram of a two-stage ecmp/frr networking application scenario;
图 2为本发明一实施例的两级 ecmp/frr路由整合流程图;  2 is a flowchart of two-stage ecmp/frr routing integration according to an embodiment of the present invention;
图 3为本发明一实施例的地址解析协议(arp )、 frr/ecmp路由之间的引 用关系示意图;  3 is a schematic diagram of a reference relationship between an address resolution protocol (arp) and a frr/ecmp route according to an embodiment of the present invention;
图 4为本发明一实施例的下一跳 ar 变动引起的路由更新流程图; 图 5为本发明一实施例的 frr组变动引起的路由更新流程图; 图 6为本发明一实施例的 ecmp組变动引起的路由更新流程图; 图 Ί为本发明一实施例的路由整合流程简图;  4 is a flowchart of a route update caused by a change of a next hop ar according to an embodiment of the present invention; FIG. 5 is a flowchart of a route update caused by a variation of a frr group according to an embodiment of the present invention; FIG. 6 is an ecmp according to an embodiment of the present invention; Flowchart update flow chart caused by group change; FIG. 1 is a schematic diagram of a route integration process according to an embodiment of the present invention;
图 8为本发明一实施例的路由整合装置图。 具体实施方式  FIG. 8 is a diagram of a route integration apparatus according to an embodiment of the present invention. detailed description
总体而言, 可以通过平台软件下发路由表, 还可以查询平台软件表, 并根据路由表和平台软件表整合出完整的出口信息, 再将整合出的出口信 息一次下发给驱动以写硬件表, 在后续应用中, 硬件只需要针对硬件表进 行一次查表过程, 即可完成两级 ecmp/frr转发。  In general, the platform software can be used to deliver the routing table, and the platform software table can be queried, and the complete export information can be integrated according to the routing table and the platform software table, and the integrated export information is sent to the driver once to write the hardware. In the subsequent application, the hardware only needs to perform a table lookup process for the hardware table to complete the two-stage ecmp/frr forwarding.
上述操作思路可以包括以下步骤:  The above operation ideas can include the following steps:
1 )路由表下发, 获得其中的部分转发信息和出口索引。  1) The routing table is delivered, and part of the forwarding information and the exit index are obtained.
2 )根据出口索引查找平台软件表, 获得出口和封装信息。  2) Find the platform software table according to the export index to obtain the export and package information.
3 )根据路由表和平台软件表中的信息整合出完整的转发信息。  3) Integrate 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 an frr index. Also, if the exit index is not found in the platform software table, it ends directly. The complete forwarding information usually includes: destination ip, mask, vpn id, physical outbound interface, outbound interface index, next hop ip address, The destination media access controls mac, out tags, and so on.
在实际应用时, 具体的路由整合流程如图 2所示, 该流程包括以下步 骤:  In actual application, the specific route integration process is shown in Figure 2. The process includes the following steps:
步骤 201 : 上层协议下发路由表添加或者触发路由更新。  Step 201: The upper layer protocol sends a routing table to add or trigger a route update.
步骤 202: 判断路由出口类型是否为普通的下一跳, 如果是, 进入步骤 Step 202: Determine whether the route exit type is a normal next hop, and if yes, enter the step
203; 否则, 进入步骤 204。 203; Otherwise, proceed to step 204.
步骤 203:根据下一跳 ip和三层接口索引查平台软件表,获得目的 mac 和物理出端口。  Step 203: Check the platform software table according to the next hop ip and the layer 3 interface index to obtain the destination mac and the physical outgoing port.
步骤 204: 根据出口 frr索引或者 ecmp索引查找平台软件表, 判断是 否查找成功, 如果成功, 进入步骤 205; 否则, 返回失败并结束本流程。  Step 204: Find the platform software table according to the export frr index or the ecmp index, and determine whether the search is successful. If successful, go to step 205; otherwise, return the 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 less than m, if not, proceed to step 208; otherwise, proceed to step 207.
步骤 207: 将路由前缀信息、 出口信息等完整的转发信息添加给驱动。 具体而言, 路由前缀信息包括目的 ip、 掩码、 vpn id等, 出口信息包括 下一跳 ip、 物理出端口、 目的 mac、 出接口索引、 下一跳 vpn id等。  Step 207: Add complete forwarding information such as route prefix information and exit information to the driver. Specifically, the route prefix information includes the destination ip, the mask, the vpn id, and the like. The egress information includes the next hop ip, the physical egress port, the destination mac, the outbound interface index, and the next hop vpn id.
步骤 208: 判断第 i个下一跳的出口是否存在二级索引, 如果存在, 进 入步骤 210; 否则, 进入步骤 209。  Step 208: Determine whether there is a secondary index for the exit of the i th next hop. If yes, go to step 210; otherwise, go to step 209.
步骤 209: 根据第 i个下一跳的 ip地址和三层接口索引查平台软件表, 获得目的 mac和物理出端口。  Step 209: Check the platform software table according to the ip address of the i-th next hop and the layer 3 interface index to obtain the destination mac and the physical egress port.
步骤 210: 根据出口 frr索引或者 ecmp索引查找平台软件表, 判断是 否查找成功; 如果查找成功, 进入步骤 211 ; 否则,返回失败并结束本流程。  Step 210: Find the platform software table according to the export frr index or the ecmp index, and determine whether the search is successful. If the search is successful, go to step 211; otherwise, return the failure and end the process.
步骤 211 : 设置 j的取值为零。  Step 211: Set the value of j to zero.
步骤 212: 判断 j是否小于 n, 如果小于, 进入步骤 213; 否则, 进入 步骤 215。 步驟 213: 根据第 j个下一跳的 ip地址和三层接口索引查平台软件表, 获得目的 mac和物理出端口。 Step 212: Determine whether j is less than n, if not, proceed to step 213; otherwise, proceed to step 215. Step 213: Check the platform software table according to the ip address of the jth next hop and the layer 3 interface index to obtain the destination mac and the physical outgoing 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 search for the platform software table is implemented by a cyclic lookup based on the routing table, such as: according to the index relationship from the primary index to the multi-level index (such as the secondary index), the hierarchical search is performed under the primary index. The index of each level (such as all secondary indexes), in order to obtain the platform software table. Based on the above-mentioned loop search mode, when the complete forwarding information is integrated, the egress and encapsulation information can be obtained from the platform software table obtained in each previous loop, and combined with the partial forwarding information obtained from the routing table. The final integration of the complete forwarding information.
上述流程中的各索引之间存在索引关系, 可以结合 arp、 frr/ecmp和路 由之间的引用关系, 应用图 3 说明上述索引关系。 参见图 3 , 普通下一跳 arp变化会使引用它的路由或者引用它的 ecmp/frr发生变化, arp变化需要 触发相关 frr/ecmp和路由更新; 同理, frr/ecmp变化会使引用它的 vpn frr、 vpn ecm 或者路由发生变化, 需要触发相关 vpn frr、 vpn ecm 以及路由更 新, vpn frr或者 vpn ecmp变化会使引用它的路由出口发生变化, 需要触发 相关路由更新。 因此需要建立与引用关系方向相反的索引关系: 即 arp 到 frr/ecmp/路由的索引关系; frr到路由的索引关系; ecmp到路由的索引关系; 公网 fir到 vpn ecmp/vpn frr的索引关系; 公网 ecm 到 vpn ecmp/vpn frr的 索引关系。  There is an index relationship between the indexes in the above process. The reference relationship between arp, frr/ecmp, and routing can be combined. Figure 3 illustrates the index relationship. Referring to Figure 3, the normal next hop arp change will change the route that references it or the ecmp/frr that references it. The arp change needs to trigger the relevant frr/ecmp and route update. Similarly, the frr/ecmp change will refer to it. If the vpn frr, vpn ecm, or route changes, the related vpn frr, vpn ecm, and route update must be triggered. The vpn frr or vpn ecmp change will change the route exit that references it, and the related route update needs to be triggered. Therefore, it is necessary to establish an index relationship with the opposite direction of the reference relationship: index relationship of arp to frr/ecmp/route; index relationship of frr to route; index relationship of ecmp to route; index relationship of public network fir to vpn ecmp/vpn frr ; public network ecm to vpn ecmp / vpn frr index relationship.
可以结合上述的索引, 说明路由、 下一跳 arp、 ecmp/frr组之间的更新 关系。  The update relationship between the route, the next hop arp, and the ecmp/frr group can be described in combination with the above index.
具体而言, 协议无法感知所有的下一跳 arp变化, 需要由目前的路由整 合模块响应 arp变化, 并触发相关路由更新驱动。 普通下一跳变动引起的路 由更新过程如图 4所示, 图 4所示流程包括以下步骤: 步驟 401 : 协议下发 arp添加、 删除、 或者更新操作。 Specifically, the protocol can not perceive all the next-hop ar p changes required by the current routing module integrated response arp change, and triggers associated routing update the driver. The route update process caused by the normal next hop change is shown in Figure 4. The process shown in Figure 4 includes the following steps: Step 401: The protocol sends an arp add, delete, or update operation.
步骤 402: 判断根据索引关系是否能找到引用该 arp的子网路由, 如果 能找到, 进入步骤 403; 否则, 进入步骤 404。  Step 402: Determine whether the subnet route referring to the arp can be found according to the index relationship. If yes, go to step 403; otherwise, go to step 404.
步骤 403: 根据操作类型具体处理。如: 如果是 arp添加或者更新操作, 则将完整的出口信息和查到的路由前缀信息整合并写驱动。如果是 arp删除 操作, 则可以将子网路由出口设置为上送 CPU, 等待 arp信息完整后再重 新整合子网路由出口。  Step 403: Specifically processing according to the operation type. For example: If it is an arp add or update operation, the complete exit information and the found route prefix information are integrated and written. If the arp delete operation is performed, you can set the subnet route exit to the CPU and wait for the arp information to complete before re-integrating the subnet route exit.
步驟 404: 判断根据索引关系是否能找到引用 aip的 ecmp组, 如果能 找到, 进入步骤 405; 否则, 进入步骤 406。  Step 404: Determine whether the ecmp group referring to the aip can be found according to the index relationship. If yes, go to step 405; otherwise, go to step 406.
步骤 405: 根据 ecmp索 |进行路由更新流程。  Step 405: Perform a route update process according to ecmp cable.
步骤 406: 判断 4艮据索引关系是否能找到引用 arp的 frr组, 如果能找 到, 进入步骤 407; 否则, 结束本流程。  Step 406: Determine whether the frr group referring to the arp can be found according to the index relationship. If it can be found, go to step 407; otherwise, end the process.
步骤 407: 根据 frr索引进行路由更新流程。  Step 407: Perform a route update process according to the frr index.
frr组变化引起的路由更新过程如图 5所示, 图 5所示流程包括以下步 骤:  The routing update process caused by the change of the frr group is shown in Figure 5. The process shown in Figure 5 includes the following steps:
步骤 501 : 判断是否为 frr组更新操作, 如果是, 进入步骤 502; 否则, 进入步骤 510。  Step 501: Determine whether it is a frr group update operation, and if yes, go to step 502; otherwise, go to step 510.
步骤 502: 判断根据 frr索引能否查找到平台 frr软件表项, 如果能查找 到, 进入步骤 503; 否则, 结束本流程。  Step 502: Determine whether the platform frr software entry can be found according to the frr index. If it can be found, go to step 503; otherwise, end the process.
步驟 503:判断根据索引关系是否能找到引用该 frr组的 vpn frr或者 vpn ecmp, 如果能查找到, 进入步骤 504; 否则, 进入步骤 507。  Step 503: Determine whether vpn frr or vpn ecmp that references the frr group can be found according to the index relationship. If it can be found, go to step 504; otherwise, go to step 507.
步骤 504: 判断根据 vpn frr/vpn ecmp索引能否查找到平台软件表项, 如果能查找到, 进入步骤 505; 否则, 进入步骤 507。  Step 504: Determine whether the platform software entry can be found according to the vpn frr/vpn ecmp index. If it can be found, go to step 505; otherwise, go to step 507.
步骤 505: 判断根据索引关系能否查找到引用 vpn fir或者 vpn ecmp的 路由 a, 如果能查找到, 进入步骤 506; 否则, 进入步骤 507。 步驟 506: 整合完整的转发信息, 将引用 vpn frr/vpn ecmp的路由 a更 新驱动。 Step 505: Determine whether the route a referring to the vpn fir or the vpn ecmp can be found according to the index relationship. If it can be found, go to step 506; otherwise, go to step 507. Step 506: Integrate the complete forwarding information, and update the route a reference vpn frr/vpn ecmp.
步骤 507: 判断是否能根据索引关系找到引用该 frr组的路由 b, 并在 能查找到时进入步骤 508。  Step 507: Determine whether the route b referring to the frr group can be found according to the index relationship, and proceed to step 508 when it can be found.
步骤 508: 如果是 frr更新或者添加操作, 则整合完整的路由 b信息并 更新驱动; 如果是 frr删除操作, 则暂时将路由 b的出口置为上送 cpu, 并 更新驱动。 结束本流程。  Step 508: If it is a frr update or add operation, integrate the complete route b information and update the driver; if it is a frr delete operation, temporarily set the exit of the route b to the send cpu, and update the driver. End this process.
步驟 510: 判断是否为 frr组添加操作, 如果是, 进入步骤 503; 否则, 进入步骤 520。  Step 510: Determine whether to add an operation to the frr group, if yes, go to step 503; otherwise, go to step 520.
步骤 520: 判断是否为 frr组删除操作, 如果是, 进入步骤 507; 否则, 结束本流程。  Step 520: Determine whether the frr group delete operation, if yes, proceed to step 507; otherwise, end the process.
ecmp组变动引起的路由更新过程如图 6所示, 图 6所示流程包括以下 步骤:  The route update process caused by the change of the ecmp group is shown in Figure 6. The process shown in Figure 6 includes the following steps:
步骤 601 : 判断是否为 Ecmp组更新操作, 如果是, 进入步骤 602; 否 则, 进入步骤 610。  Step 601: Determine whether the Ecmp group update operation is performed. 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. If it can be found, go to step 603; otherwise, end the process.
步骤 603:判断根据索引关系是否能找到引用该 Ecmp组的 vpn fir或者 vpn ecmp, 如果能查找到, 进入步骤 604; 否则, 进入步骤 607。  Step 603: Determine whether vpn fir or vpn ecmp that references the Ecmp group can be found according to the index relationship. If it can be found, go to step 604; otherwise, go to step 607.
步驟 604: 判断根据 vpn frr/vpn ecm 索引能否查找到平台软件表项, 如果能查找到, 进入步骤 605; 否则, 进入步骤 607。  Step 604: Determine whether the platform software entry can be found according to the vpn frr/vpn ecm index. If it can be found, go to step 605; otherwise, go to step 607.
步骤 605: 判断根据索引关系能否查找到引用 vpn frr或者 vpn ecmp的 路由 a, 如果能查找到, 进入步骤 606; 否则, 进入步骤 607。  Step 605: Determine whether the route a referring to vpn frr or vpn ecmp can be found according to the index relationship. If it can be found, go to step 606; otherwise, go to 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 that references the Ecmp group can be found according to the index relationship. And when it can be found, it proceeds to step 608.
步骤 608: 如果是 Ecmp更新或者添加操作, 则整合完整的路由 b的信 息并更新驱动; 如果是 Ecmp删除操作, 则暂时将路由 b的出口置为上送 cpu, 并更新驱动。 结束本流程。  Step 608: If it is an Ecmp update or add operation, integrate the information of the complete route b and update the driver; if it is an Ecmp delete operation, temporarily set the exit of the route b to the send cpu, and update the driver. End this process.
步骤 610: 判断是否为 Ecmp组添加操作, 如果是, 进入步骤 603; 否 则, 进入步骤 620。  Step 610: Determine whether to add an operation to the Ecmp group. If yes, go to step 603; otherwise, go to step 620.
步骤 620: 判断是否为 Ecmp组删除操作, 如果是, 进入步驟 607; 否 则, 结束本流程。  Step 620: Determine whether the Ecmp group delete operation is performed. If yes, go to step 607; otherwise, end the process.
结合以上流程描述可知, 本发明路由整合的操作思路可以表示如图 7 所示。 参见图 7, 图 7为本发明一实施例的路由整合流程简图, 该流程包括 以下步骤:  According to the above process description, the operation idea of the route integration of the present invention can be represented as shown in FIG. 7. Referring to FIG. 7, FIG. 7 is a schematic diagram of a route integration process according to an embodiment of the present invention, where the process includes the following steps:
步骤 710: 路由表下发, 获得其中的部分转发信息和出口索引。  Step 710: The routing table is delivered, and part of the forwarding information and the egress index are obtained.
步骤 720: 根据出口索引查找平台软件表, 获得出口和封装信息。 步骤 730: 根据路由表和平台软件表中的信息整合成完整的转发信息。 为了保证上述流程及操作思路能够顺利实现, 可以进行如图 8所示的 设置。 参见图 8, 图 8为本发明一实施例的路由整合装置图, 该装置包括相 连的路由表处理单元、 平台軟件表处理单元、 整合单元, 还可以包括与整 合单元相连的路由更新单元。  Step 720: Find the platform software table according to the egress index, and obtain the export and encapsulation information. Step 730: Integrate the complete forwarding information according to the information in the routing table and the platform software table. In order to ensure that the above processes and operation ideas can be smoothly implemented, the settings shown in Figure 8 can be performed. Referring to FIG. 8, FIG. 8 is a diagram of a route integration apparatus according to an embodiment of the present invention. The apparatus includes an associated routing table processing unit, a platform software table processing unit, and an integration unit, and may further include a route update unit connected to the integration unit.
在具体应用时, 路由表处理单元能够进行路由表下发, 并获得其中的 部分转发信息和出口索引; 平台软件表处理单元则能够获得路由表处理单 元所得到的出口索引, 并据此查找平台软件表, 获得出口和封装信息。 整 合单元能够得到路由表处理单元所获取的转发信息以及平台软件表处理单 元所查找到的平台软件表, 并根据获取的路由表和平台软件表中的信息整 合出完整的转发信息。  In a specific application, the routing table processing unit can issue a routing table and obtain part of the forwarding information and the egress index; the platform software table processing unit can obtain the egress index obtained by the routing table processing unit, and search the platform accordingly. Software table, get export and package information. The merging 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 obtained routing table and the information in the platform software table.
另外, 路由更新单元能够进行如图 4至图 6所示的路由更新处理, 并 将处理结果通知给整合单元, 为整合单元在整合出完整的转发信息时提供 可用来参考的路由更新信息。 In addition, the route update unit is capable of performing route update processing as shown in FIGS. 4 to 6, and The processing result is notified to the integration unit, and the integration unit provides routing update information that can be used for reference when integrating the complete forwarding information.
需要说明的是, 针对图 8所示各单元中的任何单元, 只要该单元需要 应用 arp、 frr/ecmp路由之间的引用关系进行相关操作, 那么就可以维护该 引用关系。 图 8所示各单元所能实现的具体操作已在前述流程中的详细描 述, 在此不再赘述。 另外, 对于传统的一级 ecmp/frr组网或者普通组网而 言, 前述流程同样适用。  It should be noted that, for any unit in each unit shown in FIG. 8, as long as the unit needs to apply a reference relationship between arp and frr/ecmp routes, the reference relationship can be maintained. The specific operations that can be implemented in each unit shown in FIG. 8 have been described in detail in the foregoing process, and are not described herein again. In addition, for the traditional primary ecmp/frr networking or common networking, the foregoing process is equally applicable.
综上所述可见, 无论是方法还是装置, 本发明的两级 ecmp/frr路由整 合技术, 与现有技术相比, 具有如下有益效果:  In summary, the two-stage ecmp/frr routing integration technique of the present invention has the following beneficial effects as compared with the prior art, whether it is a method or a device:
1、 不再需要二次查硬件表或者二次路由, 转发效率得到明显提高。 1. It is no longer necessary to check the hardware table or secondary route twice, and the forwarding efficiency is obviously improved.
2、 保证在不支持多次查表的设备上也能实现两级转发, 在提供相同的 功能前提下, 降低了设备成本。 2. Ensure that two-level forwarding can be implemented on devices that do not support multiple table lookups, reducing device costs while providing the same functionality.
以上所述, 仅为本发明的较佳实施例而已, 并非用于限定本发明的保 护范围, 凡在本发明的精神和原则之内所作的任何修改、 等同替换和改进 等, 均应包含在本发明的保护范围之内。  The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included. Within the scope of protection of the present invention.

Claims

权利要求书 Claim
1、 一种路由整合方法, 其特征在于, 该方法包括:  A route integration method, characterized in that the method comprises:
获得路由表中的部分转发信息和出口索引, 根据所述出口索引查找平 台软件表, 获得出口和封装信息;  Obtaining part of the forwarding information and the egress index in the routing table, searching the platform software table according to the egress index, and obtaining the export and encapsulation information;
根据所述路由表和平台软件表中的信息整合出完整的转发信息。  The complete forwarding information is integrated according to the information in the routing table and the platform software table.
2、 根据权利要求 1所述的方法, 其特征在于, 针对平台软件表的所述 查找, 是基于路由表进行循环查找实现的, 所述循环查找的过程包括: 依照由一级索引至多级索引的索引关系, 逐级循环查找一级索引下的 各级索引, 依此获得平台软件表。  The method according to claim 1, wherein the searching for the platform software table is implemented by performing a loop search based on a routing table, and the process of the loop searching includes: following the index from the primary index to the multi-level index The index relationship, step by step to find the index of each level under the first level index, and obtain the platform software table accordingly.
3、 根据权利要求 2所述的方法, 其特征在于, 所述整合出完整的转发 信息包括:  3. The method according to claim 2, wherein the integrating the complete forwarding information comprises:
从每次循环查找时所获得的平台软件表中获取出口和封装信息, 并结 合从路由表中获取的所述部分转发信息, 最终整合出完整的转发信息。  The egress and encapsulation information is obtained from the platform software table obtained in each loop search, and the partial forwarding information obtained from the routing table is combined, and finally the complete forwarding information is integrated.
4、 根据权利要求 1至 3任一项所述的方法, 其特征在于, 所述出口索 引 于建立的索引关系实现的, 所述索引关系包括以下至少之一:  The method according to any one of claims 1 to 3, wherein the export index is implemented by an established index relationship, and the index relationship includes at least one of the following:
地址解析协议 arp到快速重路由 /等价多路径 frr/ecmp/路由的索引关系; frr到路由的索引关系; ecmp到路由的索引关系;公网 fir到虚拟专用网 vpn ecmp/vpn frr的索引关系; 公网 ecmp到 vpn ecmp/vpn frr的索引关系。  Index resolution protocol arp to fast reroute / equivalent multipath frr / ecmp / routing index relationship; frr to routing index relationship; ecmp to routing index relationship; public network fir to virtual private network vpn ecmp / vpn frr index Relationship; index relationship of public network ecmp to vpn ecmp/vpn frr.
5、 根据权利要求 1至 3任一项所述的方法, 其特征在于, 该方法进一 步包括路由更新处理, 用于为整合出完整的转发信息提供可用来参考的路 由更新信息;  The method according to any one of claims 1 to 3, characterized in that the method further comprises routing update processing for providing routing update information that can be used for reference for integrating the complete forwarding information;
所述路由更新由下一跳 arp变动引起, 或由 frr组变动引起, 或由 ecmp 组变动引起。  The routing update is caused by a change in the next hop arp, or caused by a change in the frr group, or caused by a change in the ecmp group.
6、 一种路由整合装置, 其特征在于, 该装置包括路由表处理单元、 平 台软件表处理单元、 整合单元; 其中, 所述路由表处理单元, 用于获得路由表中的部分转发信息和出口索引; 所述平台软件表处理单元, 用于获得所述路由表处理单元所得到的出 口索引, 并据此查找平台软件表, 获得出口和封装信息; A routing integration device, comprising: a routing table processing unit, a platform software table processing unit, and an integration unit; wherein The routing table processing unit is configured to obtain partial forwarding information and an egress index in the routing table. The platform software table processing unit is configured to obtain an egress index obtained by the routing table processing unit, and search for platform software according to the routing software Table, obtaining export and package information;
所述整合单元, 用于得到所述路由表处理单元所获取的转发信息以及 平台软件表处理单元所查找到的平台软件表, 并根据获取的所述路由表和 平台软件表中的信息整合出完整的转发信息。  The integration unit is configured to obtain forwarding information acquired by the routing table processing unit and a platform software table found by the platform software table processing unit, and integrate the information according to the obtained routing table and the platform software table. Complete forwarding information.
7、 根据权利要求 6所述的装置, 其特征在于, 所述平台软件表处理单 元针对平台软件表的所述查找, 是基于路由表进行循环查找实现的; 所述 平台软件表处理单元在循环查找平台软件表时用于:  The apparatus according to claim 6, wherein the searching by the platform software table processing unit for the platform software table is implemented by performing a loop search based on a routing table; the platform software table processing unit is in a loop Used when looking up the platform software table:
依照由一级索引至多级索引的索引关系, 逐级循环查找一级索引下的 各级索引, 依此获得平台软件表。  According to the index relationship from the primary index to the multi-level index, the index of each level under the primary index is searched step by step, and the platform software table is obtained accordingly.
8、 根据权利要求 7所述的装置, 其特征在于, 所述整合单元整合出完 整的转发信息时, 用于:  The device according to claim 7, wherein 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 loop search, and the partial forwarding information obtained from the routing table is combined, and finally the complete forwarding information is integrated.
9、 根据权利要求 6至 8任一项所述的装置, 其特征在于, 所述出口索 引 于建立的索引关系实现的, 所述索引关系包括以下至少之一:  The device according to any one of claims 6 to 8, wherein the export index is implemented by an established index relationship, and the index relationship includes at least one of the following:
arp到 frr/ecmp/路由的索引关系; frr到路由的索引关系; ecmp到路由 的索引关系; 公网 frr到 vpn ecmp/vpn frr的索引关系; 公网 ecmp到 vpn ecmp/vpn frr的索引关系。  Index relationship of arp to frr/ecmp/route; index relationship of frr to route; index relationship of ecmp to route; index relationship of public network frr to vpn ecmp/vpn frr; index relationship of public network ecmp to vpn ecmp/vpn frr .
10、 根据权利要求 6至 8任一项所述的装置, 其特征在于, 该装置进 一步包括路由更新单元, 用于: 为所述整合单元提供可用来参考的路由更 新信息;  The device according to any one of claims 6 to 8, characterized in that the device further comprises a routing update unit, configured to: provide the integration unit with route update information that can be used for reference;
所述路由更新由下一兆 arp变动引起, 或由 frr組变动引起, 或由 ecmp 组变动引起。  The routing update is caused by a change in the next megabyte, or by a change in the frr group, or by a change in the ecmp group.
PCT/CN2011/074318 2010-08-27 2011-05-19 Method and apparatus for integrating routing WO2012024948A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2010102673741A CN101931590A (en) 2010-08-27 2010-08-27 Method and device for integrating routing
CN201010267374.1 2010-08-27

Publications (1)

Publication Number Publication Date
WO2012024948A1 true WO2012024948A1 (en) 2012-03-01

Family

ID=43370521

Family Applications (1)

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

Country Status (2)

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

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101931590A (en) * 2010-08-27 2010-12-29 中兴通讯股份有限公司 Method and device for integrating routing
CN102984062B (en) * 2012-11-29 2016-06-15 中兴通讯股份有限公司 The processing method of a kind of subnet route and message forwarding equipment
CN104158718B (en) * 2014-08-25 2017-06-13 新华三技术有限公司 A kind of message processing method and device
CN110635988B (en) * 2019-10-24 2020-10-27 北京大学 Data forwarding method and equipment for multipath transmission

Citations (4)

* 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
CN101442494A (en) * 2008-12-16 2009-05-27 中兴通讯股份有限公司 Method for implementing rapid rerouting
CN101931590A (en) * 2010-08-27 2010-12-29 中兴通讯股份有限公司 Method and device for integrating routing

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100586108C (en) * 2007-09-26 2010-01-27 杭州华三通信技术有限公司 A method and device for updating port address in address parsing protocol table
CN101562575B (en) * 2009-06-04 2012-01-04 杭州华三通信技术有限公司 MPLS TE FRR fast switching method and device thereof
CN101695047B (en) * 2009-10-26 2015-01-28 中兴通讯股份有限公司 Method and switch for realizing forwarding of dynamic tunnel message

Patent Citations (4)

* 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
CN101442494A (en) * 2008-12-16 2009-05-27 中兴通讯股份有限公司 Method for implementing rapid rerouting
CN101931590A (en) * 2010-08-27 2010-12-29 中兴通讯股份有限公司 Method and device for integrating routing

Also Published As

Publication number Publication date
CN101931590A (en) 2010-12-29

Similar Documents

Publication Publication Date Title
US10050877B2 (en) Packet forwarding method and apparatus
JP5996643B2 (en) E-tree using two pseudowires between edge routers with enhanced forwarding method and system
US9973469B2 (en) MAC (L2) level authentication, security and policy control
US7944854B2 (en) IP security within multi-topology routing
EP2997702B1 (en) Compressing singly linked lists sharing common nodes for multi-destination group expansion
EP3054634B1 (en) Scheme for performing one-pass tunnel forwarding function on two-layer network structure
US7583674B2 (en) Switch and method for supporting internet protocol (IP) network tunnels
WO2011113340A1 (en) Access method and apparatus for multi-protocol label switching layer 2 virtual private network
WO2015024408A1 (en) Tunnel switching method, device and switch
US10313154B2 (en) Packet forwarding
WO2013139159A1 (en) Method for forwarding packet in network and provider edge device
US20110242988A1 (en) System and method for providing pseudowire group labels in a network environment
WO2012024948A1 (en) Method and apparatus for integrating routing
WO2011127849A2 (en) Method and network device for transmitting data stream
Sajassi et al. Requirements for ethernet vpn (evpn)
WO2007082405A1 (en) An implementing method for detecting the legitimacy of label message path
WO2007031006A1 (en) A virtual switching method which could be routed
EP1927222B1 (en) Low latency working vpls
JP2018537045A (en) Expansion of customer premises LAN
US20080240098A1 (en) Method and apparatus for providing flexible virtual forwarding table
JP5840211B2 (en) Pseudowire providing an in-band control channel with offset
WO2014105551A1 (en) Multiple domain addressing in message routing
WO2015081684A1 (en) Tunnel protection implementation method, apparatus and network device
WO2016074529A1 (en) Method and apparatus for switching media access control forwarding link
WO2022053007A1 (en) Network reachability verification method and apparatus, and computer storage medium

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: 11819323

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 11819323

Country of ref document: EP

Kind code of ref document: A1