WO2012116641A1 - 路由信息的处理方法和装置 - Google Patents

路由信息的处理方法和装置 Download PDF

Info

Publication number
WO2012116641A1
WO2012116641A1 PCT/CN2012/071777 CN2012071777W WO2012116641A1 WO 2012116641 A1 WO2012116641 A1 WO 2012116641A1 CN 2012071777 W CN2012071777 W CN 2012071777W WO 2012116641 A1 WO2012116641 A1 WO 2012116641A1
Authority
WO
WIPO (PCT)
Prior art keywords
routing
routing information
forwarding
board
interface
Prior art date
Application number
PCT/CN2012/071777
Other languages
English (en)
French (fr)
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 WO2012116641A1 publication Critical patent/WO2012116641A1/zh

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
    • H04L45/02Topology update or discovery
    • H04L45/025Updating only a limited number of routers, e.g. fish-eye update
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4633Interconnection of networks using encapsulation techniques, e.g. tunneling

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for processing routing information. Background technique
  • the structure of a router adopting a distributed architecture is shown in Figure 1. It is mainly composed of a routing control board, a switching fabric, and a forwarding board.
  • the routing control board is responsible for maintaining the routing table and updating the routing table according to the routing protocol.
  • the forwarding board and the switching fabric are responsible for the high-speed processing and internal switching of the data packets.
  • the routing control board sends routing information to the forwarding board through the switch fabric.
  • a method for the routing control board to send routing information to the forwarding board in the prior art is: maintaining a routing forwarding table on each forwarding board.
  • the routing control board sends all the obtained routing information to each forwarding board.
  • Each forwarding board forwards the received routing information according to the routing forwarding table maintained by it.
  • the routing control board in the prior art sends routing information to the forwarding board at least the following problems:
  • a single VPN Virtual Private Network
  • the forwarding board can only forward the routing information of the above single VPN.
  • All routing information sent by the routing control board received by the forwarding board necessarily includes routing information of VPNs other than the routing information of the single VPN, and the routing information of the other VPNs is redundant for the forwarding board. The remaining routing information will cause waste of the memory resources and CPU resources of the forwarding board. Summary of the invention
  • Embodiments of the present invention provide a method and apparatus for processing routing information to reduce redundant routing information on a repeater.
  • a routing information processing method where a routing forwarding table is saved in a routing control board, where the method specifically includes: The routing control board receives the routing information to be forwarded;
  • the routing control board queries the routing forwarding table according to the identifier of the virtual private network VPN corresponding to the routing information or the label corresponding to the routing information, and determines a corresponding forwarding board and a corresponding interface of the routing information, and the The routing information is sent to the corresponding interface on the corresponding forwarding board.
  • a routing information processing device is disposed in a routing control board, where the device specifically includes: a routing forwarding table saving module, configured to save a routing forwarding table;
  • a routing information receiving module configured to receive routing information to be forwarded
  • a query processing module configured to query, according to the identifier of the virtual private network VPN corresponding to the routing information received by the routing information receiving module or the label corresponding to the routing information, the route saved by the routing forwarding table saving module Forwarding a table, determining a corresponding forwarding board of the routing information and a response interface;
  • the routing information sending module is configured to send the routing information received by the routing information receiving module to the corresponding interface on the corresponding forwarding board determined by the query processing module.
  • the routing control board can implement the route forwarding table according to the identifier of the VPN included in the received routing information or the label corresponding to the routing information. And determining the corresponding forwarding board and the corresponding interface of the routing information, and sending the routing information to the corresponding interface on the corresponding forwarding board, so that the routing control board sends routing information to the forwarding board as needed, so as to avoid any difference All forwarding boards deliver all routes, which effectively reduces redundant routing information on the forwarding board.
  • FIG. 3 is a schematic diagram of binding a single VPN on each forwarding board according to Embodiment 1 of the present invention.
  • FIG. 4 is a process flow diagram of a method for processing routing information according to Embodiment 2 of the present invention.
  • FIG. 5 is a specific structural diagram of a device for processing routing information according to an embodiment of the present invention. detailed description
  • FIG. 2 is as follows:
  • routing control board save a routing forwarding table including the correspondence between the interface of the forwarding board and the identifier of the VPN.
  • each forwarding board reports the identification information of the VPN bound to the interface of the forwarding board to the routing control board.
  • the routing control board forms the interface including the forwarding board and the identifier of the VPN according to the received VPN identification information of each forwarding board.
  • a routing forwarding table between the correspondences.
  • FIG. 3 is a schematic diagram of an example of binding a single VPN on each forwarding board in this embodiment.
  • interface 1 of the forwarding board 10 1 is bound with VPN A
  • interface 2 of the forwarding board 10 2 is bound with VPN B.
  • the routing forwarding table stored on the routing control board Main is as shown in Table 1 below. Table 1
  • the routing control board queries the routing forwarding table according to the identifier of the VPN included in the routing information, determines the corresponding forwarding board and the corresponding interface of the routing information, and sends the routing information to the corresponding interface on the corresponding forwarding board.
  • the routing control board obtains the routing information from the external device, for example, after learning the routing information from the remote PE (Provider Edge, Network Edge Device) or the local CE (Customer Edge, the user edge device), the VPN included in the routing information is determined. information.
  • the remote PE Provider Edge, Network Edge Device
  • the local CE Customer Edge, the user edge device
  • the routing control board obtains the identifier of the VPN included in the routing information, queries the routing forwarding table according to the identifier of the VPN, determines a corresponding forwarding board and corresponding interface of the VPN, and forwards the corresponding forwarding board of the VPN. And the corresponding interface is determined to be the corresponding forwarding board and the corresponding interface of the routing information, and the routing information is sent to the corresponding interface on the corresponding forwarding board.
  • routing information includes a single VPN
  • querying the routing forwarding table according to the identifier of the single VPN, the corresponding forwarding board and the corresponding interface including the routing information of the single VPN may be determined; when the routing information includes multiple VPNs
  • the routing information may be decomposed into a plurality of routing information including a single VPN, and then the routing forwarding table is queried according to the identifier of each single VPN, and the corresponding forwarding board and corresponding interface of each routing information including a single VPN are determined.
  • the routing control board Main learns the routing information including only the VPN A
  • the interface 1 of the forwarding board 101 is bound to the VPN 1 according to the identifier of the VPN A. Therefore, the interface 1 is delivered to the interface 1 on the 101.
  • the route control board Main learns the routing information including only the VPN B
  • the interface 2 of the forwarding board 102 is bound to the VPN B according to the identifier of the VPN B. Then, the interface 2 is delivered to the interface 2 on the server 102.
  • the routing information of the VPNB is not included in the routing information of the VPNB.
  • the routing control board Main learns the routing information including the VPNA and the VPNB
  • the routing information can be decomposed into the routing information including only the VPNA and the routing information including only the VPNB. Then, the routing information including only the VPNA is sent to the interface 1 on the interface 1, and the routing information including only the VPNB is sent to the interface 2 on the interface.
  • the routing control board can query the routing forwarding table according to the identifier of the VPN included in the routing information, determine the corresponding forwarding board and corresponding interface of the routing information, and The routing information is sent to a corresponding interface on the corresponding forwarding board. Therefore, the routing information is delivered to the forwarding board on demand, and all routes are delivered to all forwarding boards without any difference, thereby effectively reducing redundant routing information on the forwarding board.
  • Embodiment 2 The processing flow of a method for processing routing information provided in this embodiment is as shown in FIG. 4, and includes:
  • the forwarding table of the correspondence between the interface including the forwarding board and the label corresponding to the routing information is saved on the routing control board.
  • the routing control board determines the interface and routing information of each forwarding board, the corresponding relationship of the corresponding labels, and one interface corresponds to one label.
  • a routing forwarding table is formed on the routing control board, which includes the correspondence between the interfaces of the forwarding boards and the labels corresponding to the routing information.
  • routing forwarding table saved on the routing control board Main is as shown in Table 2 below.
  • Table 2 the routing forwarding table saved on the routing control board Main
  • the routing control board queries the routing forwarding table according to the label corresponding to the routing information, determines the corresponding forwarding board and the corresponding interface of the routing information, and sends the routing information to the corresponding interface on the corresponding forwarding board.
  • the routing control board After the routing control board obtains the routing information from the external device, for example, after learning the routing information from the remote PE or the local CE, the label corresponding to the routing information is determined.
  • the label corresponding to the routing information may be a label carried by the routing information itself or a label allocated by the routing control board to the routing information.
  • the routing control board obtains the label corresponding to the routing information, queries the routing forwarding table according to the label, determines the corresponding forwarding board and the corresponding interface of the label, and determines the corresponding forwarding board and the corresponding interface of the label as Corresponding forwarding board and corresponding interface of the routing information, and sending the routing information to a corresponding interface on the corresponding forwarding board.
  • the route forwarding table is directly queried according to the single label, and the corresponding forwarding board and the corresponding interface of the routing information are determined.
  • the routing information may be used. It is decomposed into a plurality of routing information corresponding to a single label, and then the routing forwarding table is queried according to each single label, and the interface of each routing information should be determined.
  • the querier is queried according to the label 1 to find that the label 1 corresponds to the interface 1 on the 10 1 , and then the carrying label is sent to the interface 1 on the 10 1 .
  • 1 routing information For example, after the routing control board Main learns the routing information carrying the label 1 and the label 2, the routing information can be decomposed into the routing information carrying only the label 1 and the routing information carrying only the label 2. Then, the routing information carrying only the label 1 is sent to the interface 1 on the interface 1 , and the routing information carrying only the label 2 is sent to the interface 2 on the interface 2 .
  • the technical solution provided by the foregoing embodiment of the present invention can implement the routing control board to query the routing forwarding table according to the label corresponding to the routing information, determine the corresponding forwarding board and corresponding interface of the routing information, and send the routing information. Give the corresponding interface on the corresponding forwarding board. Therefore, the routing information is sent to the forwarding board as needed, so that all routes are delivered to all forwarding boards without any difference, and the redundant routing information on the forwarding board is effectively reduced.
  • the embodiment of the present invention further provides a routing information processing device, which is disposed in a routing control board, and has a specific structure as shown in FIG. 5, where the device specifically includes the following modules:
  • a routing forwarding table saving module 51 configured to save a routing forwarding table
  • the routing information receiving module 52 is configured to receive routing information to be forwarded
  • the query processing module 53 is configured to query the route saved by the routing forwarding table storage module 51 according to the identifier of the virtual private network VPN corresponding to the routing information received by the routing information receiving module 52 or the label corresponding to the routing information. Forwarding a table, determining a corresponding forwarding board of the routing information and a "should interface";
  • the routing information sending module 54 is configured to send the routing information received by the routing information receiving module 52 to the corresponding interface on the corresponding forwarding board determined by the query processing module 53.
  • the routing and forwarding table saving module 51 is configured to receive the identification information of the VPN bound to the interface of the forwarding board sent by each forwarding board, and save the interface including the forwarding board. And a routing forwarding table corresponding to the correspondence between the identifiers of the VPNs; the query processing module 53 is configured to obtain the identifiers of the VPNs included in the routing information received by the routing information receiving module 52, according to the identifiers of the VPNs Querying the routing forwarding table saved by the routing forwarding table holding module 51, determining the corresponding forwarding board and the corresponding interface of the VPN, and determining the corresponding forwarding board of the VPN and the corresponding interface as the correspondence of the routing information.
  • the forwarding board and ⁇ " should be interfaced.
  • the query processing module 53 queries the routing forwarding table saved by the routing forwarding table storage module 51 according to the identifier of the single VPN, and determines the corresponding forwarding of the routing information including the single VPN.
  • the routing forwarding table saved by the routing forwarding table holding module 51 determines the corresponding forwarding board and corresponding interface of each routing information including a single VPN.
  • the routing forwarding table saving module 51 is configured to determine a correspondence between the interface on the forwarding board and the label corresponding to the routing information, and save the forwarding board. a routing forwarding table of the correspondence between the interface and the label corresponding to the routing information;
  • the query processing module 53 is configured to obtain a label corresponding to the routing information received by the routing information receiving module 52, query the routing forwarding table saved by the routing forwarding table saving module 51 according to the label, and determine the The corresponding forwarding board and the corresponding interface of the label are determined as corresponding forwarding boards and corresponding interfaces of the routing information.
  • the route forwarding table is directly queried according to the single label, and the corresponding forwarding board and the corresponding interface of the routing information are determined.
  • the routing information may be used. It is decomposed into a plurality of routing information corresponding to a single label, and then the routing forwarding table is queried according to each single label, and the interface of each routing information should be determined.
  • the routing control board can determine the corresponding forwarding board and corresponding information of the routing information according to the identifier of the VPN included in the received routing information or the label forwarding routing table corresponding to the routing information.
  • the interface sends the routing information to a corresponding interface on the corresponding forwarding board.
  • the routing information is delivered to the forwarding board on demand, and all routes are delivered to all forwarding boards without any difference, which effectively reduces redundant routing information on the forwarding board.
  • by reducing redundant routing information on the forwarding board CPU resources and memory resources on the forwarding board can be saved, and the capacity of the VPN routing of the whole router can be greatly improved. It is especially suitable for scenarios where Internet routes are injected into the VPN.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

Landscapes

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

Description

路由信息的处理方法和装置
技术领域
本发明涉及通信技术领域,尤其涉及一种路由信息的处理方法和装置。 背景技术
采用分布式架构的路由器的结构如图 1 所示, 主要由路由控制板、 交 换结构和转发板组成。 路由控制板负责维护路由表和根据路由协议更新路 由表, 转发板和交换结构负责数据报文的高速处理和内部交换, 路由控制 板通过交换结构向转发板下发路由信息。
现有技术中的一种路由控制板向转发板下发路由信息的方法为: 在每 个转发板上维持一个路由转发表。 路由控制板将获取的所有路由信息向每 个转发板都下发, 每个转发板根据其维持的路由转发表将接收到的路由信 息进行转发。
在实现本发明实施例的过程中, 发明人发现现有技术中的路由控制板 向转发板下发路由信息的方法至少存在如下问题: 在实际应用中, 在一个 转发板上通常只绑定了单一的 VPN ( Virtual Private Network, 虚拟专用网 络), 该转发板只能转发上述单一的 VPN的路由信息。 而该转发板接收到 的路由控制板下发的所有路由信息中必然包含除了上述单一的 VPN 的路 由信息之外的其他 VPN的路由信息, 上述其他 VPN的路由信息对于该转 发板来说是冗余的路由信息,将造成该转发板内存资源和 CPU资源的浪费。 发明内容
本发明的实施例提供了一种路由信息的处理方法和装置, 以减少转发 器上的冗余的路由信息。
一种路由信息的处理方法, 在路由控制板中保存路由转发表, 所述方 法具体包括: 路由控制板接收待转发的路由信息;
所述路由控制板根据所述路由信息对应的虚拟专用网络 VPN 的标识 或者所述路由信息对应的标签查询所述路由转发表, 确定所述路由信息的 对应转发板和对应接口, 并将所述路由信息发送给所述对应转发板上的对 应接口。
一种路由信息的处理装置, 设置在路由控制板中, 所述装置具体包括: 路由转发表保存模块, 用于保存路由转发表;
路由信息接收模块, 用于接收待转发的路由信息;
查询处理模块, 用于根据所述路由信息接收模块所接收到的路由信息 对应的虚拟专用网络 VPN的标识或者所述路由信息对应的标签,查询所述 路由转发表保存模块所保存的所述路由转发表, 确定所述路由信息的对应 转发板和^"应接口;
路由信息发送模块, 用于将所述路由信息接收模块所接收到的路由信 息发送给所述查询处理模块所确定的所述对应转发板上的对应接口。
由上述本发明的实施例提供的技术方案可以看出, 本发明实施例可以 实现路由控制板根据接收的待转发的路由信息中包括的 VPN 的标识或者 所述路由信息对应的标签查询路由转发表, 确定路由信息的对应转发板和 对应接口, 并将所述路由信息发送给该对应转发板上的对应接口, 从而实 现路由控制板按需向转发板下发路由信息, 避免没有任何区别地向所有转 发板下发所有路由, 有效地减少了转发板上的冗余的路由信息。 附图说明
为了更清楚地说明本发明实施例的技术方案, 下面将对实施例描述中 所需要使用的附图作简单地介绍, 显而易见地, 下面描述中的附图仅仅是 本发明的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳 动性的前提下, 还可以根据这些附图获得其他的附图。
图 1为现有技术中的一种采用分布式架构的路由器的结构示意图; 图 2 为本发明实施例一提供的一种路由信息的处理方法的处理流程 图;
图 3为本发明实施例一提供的一种在每个转发板上绑定单一的 VPN的 示意图;
图 4 为本发明实施例二提供的一种路由信息的处理方法的处理流程 图;
图 5为本发明实施例提供的一种路由信息的处理装置的具体结构图。 具体实施方式
为使本发明实施例的目的、 技术方案和优点更加清楚, 下面将结合本 发明实施例中的附图, 对本发明实施例中的技术方案进行清楚、 完整地描 述, 显然, 所描述的实施例是本发明一部分实施例, 而不是全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没有作出创造性劳动前提 下所获得的所有其他实施例, 都属于本发明保护的范围。
为便于对本发明实施例的理解, 下面将结合附图以几个具体实施例为 实施例一 该实施例提供的一种路由信息的处理方法的处理流程如图 2所示, 包 括:
21、在路由控制板上保存包括转发板的接口和 VPN的标识之间的对应 关系的路由转发表。
例如,各个转发板向路由控制板上报转发板的接口上绑定的 VPN的标 识信息, 路由控制板根据接收到的各个转发板上报的 VPN的标识信息, 组 成包括转发板的接口和 VPN的标识之间的对应关系的路由转发表。
本实施例一种在每个转发板上绑定单一 VPN的例子的示意图如图 3所 示, 转发板 10 1的接口 1上绑定了 VPNA, 转发板 10 2的接口 2上绑定了 VPNB , 在路由控制板 Main上保存的路由转发表如下述表 1所示。 表 1
Figure imgf000006_0001
22、路由控制板根据路由信息中包括的 VPN的标识查询上述路由转发 表, 确定路由信息的对应转发板和对应接口, 并将所述路由信息发送给上 述对应转发板上的对应接口。
当路由控制板从外部设备获取路由信息后, 比如,从远端 PE ( Provider Edge, 网络边界设备) 或者本地 CE ( Customer Edge, 用户边界设备) 学 习到路由信息后, 确定路由信息中包括的 VPN信息。
然后, 路由控制板获取所述路由信息中包括的 VPN的标识, 根据所述 VPN 的标识查询所述路由转发表, 确定所述 VPN 的对应转发板和对应接 口,将所述 VPN的对应转发板和对应接口确定为所述路由信息的对应转发 板和对应接口, 并将所述路由信息发送给上述对应转发板上的对应接口。
当上述路由信息中包含单一 VPN时, 则根据该单一 VPN的标识查询 上述路由转发表,可以确定上述包含单一 VPN的路由信息的对应转发板和 对应接口; 当上述路由信息中包含了多个 VPN时, 可以将该路由信息分解 成多个包含单一 VPN的路由信息, 再根据每个单一 VPN的标识查询上述 路由转发表, 确定每个包含单一 VPN 的路由信息的对应转发板和对应接 口 。
比如, 当路由控制板 Main学习到只包含 VPNA的路由信息后, 根据 VPNA的标识查询上述表 1发现转发板 101上的接口 1绑定了 VPNA, 于 是, 向 101上的接口 1下发上述只包含 VPNA的路由信息, 并不向 102下 发上述包含 VPNA的路由信息。
又比如, 当路由控制板 Main学习到只包含 VPNB的路由信息后, 根 据 VPNB的标识查询上述表 1发现转发板 102上的接口 2绑定了 VPNB, 于是, 向 102上的接口 2下发上述只包含 VPNB的路由信息, 并不向 101 下发上述只包含 VPNB的路由信息。
又比如, 当路由控制板 Main学习到包含了 VPNA和 VPNB的路由信 息后, 可以将该路由信息分解成只包含 VPNA的路由信息和只包含 VPNB 的路由信息。 然后, 向 101上的接口 1下发只包含 VPNA的路由信息, 向 102上的接口 2下发上述只包含 VPNB的路由信息。
由上述本发明的实施例提供的技术方案可以看出, 该实施例可以实现 路由控制板根据路由信息中包括的 VPN的标识查询路由转发表,确定路由 信息的对应转发板和对应接口, 并将所述路由信息发送给所述对应转发板 上的对应接口。 从而实现按需向转发板下发路由信息, 避免没有任何区别 地向所有转发板下发所有路由,有效地减少了转发板上的冗余的路由信息。 实施例二 该实施例提供的一种路由信息的处理方法的处理流程如图 4所示, 包 括:
41、 在路由控制板上保存包括转发板的接口和路由信息对应的标签之 间的对应关系的转发表。
路由控制板确定各个转发板的接口和路由信, 对应的标签的对应关 系, 一个接口对应一个标签。
在路由控制板上保存包括各个转发板的接口和路由信息对应的标签之 间的对应关系的路由转发表。
比如, 在路由控制板 Main上保存的路由转发表如下述表 2所示。 表 2
Figure imgf000008_0001
42、 路由控制板根据路由信息对应的标签查询上述路由转发表, 确定 路由信息的对应转发板和对应接口, 并将路由信息发送给该对应转发板上 的^"应接口。
当路由控制板从外部设备获取路由信息后, 比如,从远端 PE或者本地 CE学习到路由信息后, 确定路由信息对应的标签。 上述路由信息对应的标 签可以为路由信息中本身携带的标签或者路由控制板给路由信息分配的标 签。
然后, 路由控制板获取所述路由信息对应的标签, 根据所述标签查询 所述路由转发表, 确定所述标签的对应转发板和对应接口, 将所述标签的 对应转发板和对应接口确定为所述路由信息的对应转发板和对应接口, 并 将上述路由信息发送给上述对应转发板上的对应接口。
当上述路由信息只对应单一标签时, 则直接根据上述单一标签查询上 述路由转发表, 确定上述路由信息的对应转发板和对应接口; 当上述路由 信息包括了多个标签时, 可以将该路由信息分解成多个对应单一标签的路 由信息, 再根据每个单一标签查询上述路由转发表, 确定每个路由信息的 ^"应转发板和^ "应接口 。
比如, 当路由控制板 Main学习到携带标签 1的路由信息后, 根据标签 1查询上述表 2, 发现标签 1对应 10 1上的接口 1 , 于是, 向 10 1上的接 口 1下发上述携带标签 1的路由信息。 又比如,当路由控制板 Main学习到携带了标签 1和标签 2的路由信息 后, 可以将该路由信息分解成只携带标签 1的路由信息和只携带标签 2的 路由信息。 然后, 向 10 1上的接口 1下发只携带标签 1的路由信息, 向 10 2上的接口 2下发只携带标签 2的路由信息。
由上述本发明的实施例提供的技术方案可以看出, 该实施例可以实现 路由控制板根据路由信息对应的标签查询路由转发表, 确定路由信息的对 应转发板和对应接口, 并将路由信息发送给该对应转发板上的对应接口。 从而实现按需向转发板下发路由信息, 避免没有任何区别地向所有转发板 下发所有路由, 有效地减少了转发板上的冗余的路由信息。
本发明实施例还提供了一种路由信息的处理装置, 设置在路由控制板 中, 其具体结构如图 5所示, 所述装置具体包括如下的模块:
路由转发表保存模块 51 , 用于保存路由转发表;
路由信息接收模块 52, 用于接收待转发的路由信息;
查询处理模块 53 , 用于根据所述路由信息接收模块 52所接收的路由 信息对应的虚拟专用网络 VPN的标识或者所述路由信息对应的标签,查询 所述路由转发表保存模块 51所保存的路由转发表,确定所述路由信息的对 应转发板和^ "应接口;
路由信息发送模块 54, 用于将所述路由信息接收模块 52所接收的路 由信息发送给所述查询处理模块 53 所确定的所述对应转发板上的对应接 口。
具体而言, 根据上述实施例 1 的技术方案, 所述的路由转发表保存模 块 51 , 用于接收各个转发板发送的转发板的接口上绑定的 VPN 的标识信 息, 保存包括转发板的接口和 VPN的标识之间的对应关系的路由转发表; 所述的查询处理模块 53 , 用于获取所述路由信息接收模块 52所接收 的路由信息中包括的 VPN的标识, 根据所述 VPN的标识查询所述路由转 发表保存模块 51所保存的路由转发表, 确定所述 VPN的对应转发板和对 应接口,将所述 VPN的对应转发板和对应接口确定为所述路由信息的对应 转发板和^"应接口。
当上述路由信息中包含单一 VPN时, 所述的查询处理模块 53根据该 单一 VPN的标识查询所述路由转发表保存模块 51所保存的路由转发表, 确定上述包含单一 VPN的路由信息的对应转发板和对应接口; 当所述路由 信息中包含了多个 VPN时, 所述的查询处理模块 53将所述路由信息分解 成多个包含单一 VPN的路由信息, 根据每个单一 VPN的标识查询所述路 由转发表保存模块 51所保存的路由转发表, 确定每个包含单一 VPN的路 由信息的对应转发板和对应接口。
具体而言, 根据上述实施例 2的技术方案, 所述的路由转发表保存模 块 51 , 用于确定转发板上的接口和路由信息对应的标签之间的——对应关 系, 保存包括各个转发板上的接口和路由信息对应的标签之间的对应关系 的路由转发表;
所述的查询处理模块 53 , 用于获取所述路由信息接收模块 52所接收 的路由信息对应的标签,根据所述标签查询所述路由转发表保存模块 51所 保存的路由转发表, 确定所述标签的对应转发板和对应接口, 将所述标签 的对应转发板和对应接口确定为所述路由信息的对应转发板和对应接口。
当上述路由信息只对应单一标签时, 则直接根据上述单一标签查询上 述路由转发表, 确定上述路由信息的对应转发板和对应接口; 当上述路由 信息包括了多个标签时, 可以将该路由信息分解成多个对应单一标签的路 由信息, 再根据每个单一标签查询上述路由转发表, 确定每个路由信息的 ^"应转发板和^ "应接口。
综上所述, 本发明实施例可以实现路由控制板根据接收的待转发的路 由信息中包括的 VPN 的标识或者所述路由信息对应的标签查询路由转发 表, 确定路由信息的对应转发板和对应接口, 并将所述路由信息发送给该 对应转发板上的对应接口。 从而实现按需向转发板下发路由信息, 避免没 有任何区别地向所有转发板下发所有路由, 有效地减少了转发板上的冗余 的路由信息。 本发明实施例通过减少转发板上的冗余的路由信息, 可以节省转发板 上的 CPU资源和内存资源, 能够大幅提升路由器整机 VPN路由的容量。 特别适合于 Internet路由注入到 VPN的场景。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流 程, 是可以通过计算机程序来指令相关的硬件来完成, 所述的程序可存储 于一计算机可读取存储介质中, 该程序在执行时, 可包括如上述各方法的 实施例的流程。 其中, 所述的存储介质可为磁碟、 光盘、 只读存储记忆体 ( Read-Only Memory, ROM )或随机存者 i己忆体 ( Random Access Memory, RAM ) 等。
以上所述, 仅为本发明较佳的具体实施方式, 但本发明的保护范围并 不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可轻易想到的变化或替换, 都应涵盖在本发明的保护范围之内。 因此, 本 发明的保护范围应该以权利要求的保护范围为准。

Claims

权 利 要 求 书
1、 一种路由信息的处理方法, 其特征在于, 在路由控制板中保存路由 转发表, 所述方法具体包括:
路由控制板接收待转发的路由信息;
所述路由控制板根据所述路由信息对应的虚拟专用网络 VPN 的标识 或者所述路由信息对应的标签查询所述路由转发表, 确定所述路由信息的 对应转发板和对应接口, 并将所述路由信息发送给所述对应转发板上的对 应接口。
2、 根据权利要求 1所述的路由信息的处理方法, 其特征在于, 所述的 在路由控制板中保存路由转发表包括:
路由控制板接收各个转发板发送的转发板的接口上绑定的 VPN 的标 识信息,在所述路由控制板中保存包括转发板的接口和 VPN的标识之间的 对应关系的路由转发表。
3、 根据权利要求 2所述的路由信息的处理方法, 其特征在于, 所述的 路由控制板根据所述路由信息对应的虚拟专用网络 VPN 的标识或者所述 路由信息对应的标签查询路由转发表, 确定所述路由信息的对应转发板和 对应接口, 包括:
路由控制板获取所述路由信息中包括的 VPN 的标识, 根据所述 VPN 的标识查询所述路由转发表, 确定所述 VPN的对应转发板和对应接口, 将 所述 VPN 的对应转发板和对应接口确定为所述路由信息的对应转发板和 对应接口。
4、 根据权利要求 3所述的路由信息的处理方法, 其特征在于, 所述的 路由控制板根据所述路由信息对应的虚拟专用网络 VPN 的标识或者所述 路由信息对应的标签查询路由转发表, 确定所述路由信息的对应转发板和 对应接口包括:
当所述路由信息中包含了多个 VPN时,将所述路由信息分解成多个包 含单一 VPN的路由信息,根据每个单一 VPN的标识查询所述路由转发表, 确定每个包含单一 VPN的路由信息的对应转发板和对应接口。
5、 根据权利要求 1所述的路由信息的处理方法, 其特征在于, 所述的 在路由控制板中保存路由转发表包括:
路由控制板确定转发板的接口和路由信息对应的标签之间的——对应 关系, 在所述路由控制板上保存包括各个转发板的接口和路由信息对应的 标签之间的对应关系的路由转发表。
6、 根据权利要求 5所述的路由信息的处理方法, 其特征在于, 所述的 路由控制板根据所述路由信息对应的虚拟专用网络 VPN 的标识或者所述 路由信息对应的标签查询所述路由转发表, 确定所述路由信息的对应转发 板和对应接口包括:
路由控制板获取所述路由信息对应的标签, 根据所述标签查询所述路 由转发表, 确定所述标签的对应转发板和对应接口, 将所述标签的对应转 发板和对应接口确定为所述路由信息的对应转发板和对应接口。
7、 根据权利要求 6所述的路由信息的处理方法, 其特征在于, 所述路 由信息对应的标签包括: 所述路由信息中携带的标签或者路由控制板给所 述路由信息分配的标签。
8、 根据权利要求 6所述的路由信息的处理方法, 其特征在于, 所述的 方法还包括:
当所述路由信息对应了多个标签时, 将所述路由信息分解成多个对应 单一标签的路由信息, 根据每个单一标签查询所述路由转发表, 确定每个 对应单一标签的路由信息的对应转发板和对应接口。
9、 一种路由信息的处理装置, 其特征在于, 设置在路由控制板中, 所 述装置具体包括:
路由转发表保存模块, 用于保存路由转发表;
路由信息接收模块, 用于接收待转发的路由信息;
查询处理模块, 用于根据所述路由信息接收模块所接收到的路由信息 对应的虚拟专用网络 VPN的标识或者所述路由信息对应的标签,查询所述 路由转发表保存模块所保存的路由转发表, 确定所述路由信息的对应转发 板和对应接口;
路由信息发送模块, 用于将所述路由信息接收模块所接收到的所述路 由信息发送给所述查询处理模块所确定的所述对应转发板上的对应接口。
10、 根据权利要求 9所述的路由信息的处理装置, 其特征在于: 所述的路由转发表保存模块, 用于接收各个转发板发送的转发板的接 口上绑定的 VPN的标识信息, 保存包括转发板的接口和 VPN的标识之间 的对应关系的路由转发表;
所述的查询处理模块, 用于获取所述路由信息接收模块所接收到的路 由信息中包括的 VPN的标识, 根据所述 VPN的标识查询所述路由转发表 保存模块所保存的路由转发表, 确定所述 VPN的对应转发板和对应接口, 将所述 VPN 的对应转发板和对应接口确定为所述路由信息的对应转发板 和对应接口。
11、 根据权利要求 9所述的路由信息的处理装置, 其特征在于: 所述的路由转发表保存模块, 用于确定转发板的接口和路由信息对应 的标签之间的——对应关系, 保存包括各个转发板的接口和路由信息对应 的标签之间的对应关系的路由转发表;
所述的查询处理模块, 用于获取所述路由信息接收模块所接收到的路 由信息对应的标签, 根据所述标签查询所述路由转发表保存模块所保存的 路由转发表, 确定所述标签的对应转发板和对应接口, 将所述标签的对应 转发板和对应接口确定为所述路由信息的对应转发板和对应接口。
PCT/CN2012/071777 2011-03-01 2012-02-29 路由信息的处理方法和装置 WO2012116641A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2011100513649A CN102143069A (zh) 2011-03-01 2011-03-01 路由信息的处理方法和装置
CN201110051364.9 2011-03-01

Publications (1)

Publication Number Publication Date
WO2012116641A1 true WO2012116641A1 (zh) 2012-09-07

Family

ID=44410304

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/071777 WO2012116641A1 (zh) 2011-03-01 2012-02-29 路由信息的处理方法和装置

Country Status (2)

Country Link
CN (1) CN102143069A (zh)
WO (1) WO2012116641A1 (zh)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102143069A (zh) * 2011-03-01 2011-08-03 华为技术有限公司 路由信息的处理方法和装置
CN105959220B (zh) * 2016-06-28 2019-10-11 杭州迪普科技股份有限公司 路由表下发的方法及装置
CN110290044B (zh) * 2019-06-26 2021-08-06 普联技术有限公司 一种vpn网络和主干网络的分流方法、装置及存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0993156A2 (en) * 1998-10-05 2000-04-12 Alcatel Network switching device with forwarding database tables populated based on use
CN101005458A (zh) * 2007-01-30 2007-07-25 华为技术有限公司 一种下发路由的方法、装置及系统
CN101051985A (zh) * 2006-04-12 2007-10-10 华为技术有限公司 一种实现虚拟专用网访问的方法
CN102143069A (zh) * 2011-03-01 2011-08-03 华为技术有限公司 路由信息的处理方法和装置

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101325551B (zh) * 2008-07-28 2010-09-22 杭州华三通信技术有限公司 一种报文处理方法和报文处理装置

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0993156A2 (en) * 1998-10-05 2000-04-12 Alcatel Network switching device with forwarding database tables populated based on use
CN101051985A (zh) * 2006-04-12 2007-10-10 华为技术有限公司 一种实现虚拟专用网访问的方法
CN101005458A (zh) * 2007-01-30 2007-07-25 华为技术有限公司 一种下发路由的方法、装置及系统
CN102143069A (zh) * 2011-03-01 2011-08-03 华为技术有限公司 路由信息的处理方法和装置

Also Published As

Publication number Publication date
CN102143069A (zh) 2011-08-03

Similar Documents

Publication Publication Date Title
US9590902B2 (en) Signaling aliasing capability in data centers
WO2017156974A1 (zh) 一种信息传输方法、装置和系统
US9369297B2 (en) Preventing traffic flooding to the root of a multi-point to multi-point label-switched path tree with no receivers
US20150058470A1 (en) System and method for sharing vxlan table information with a network controller
WO2011035703A1 (zh) L2vpn网络接入ip/l3vpn网络的方法和装置
WO2015070667A1 (zh) 路由信息发布的方法、传输报文的方法及装置
CN104253736A (zh) 通告pe设备的信息的方法和pe设备
US11240144B2 (en) Assisted replication in software defined network
US9356789B1 (en) Robust control plane assert for protocol independent multicast (PIM)
CN103516612B (zh) 分布式路由器中生成路由表项的方法及分布式路由器
US11811720B2 (en) Efficient ARP packet propagation
EP3806404A1 (en) Communication method, device and system for avoiding loop
US20140241351A1 (en) Dynamic determination of the root node of an mldp tunnel
WO2011103759A1 (zh) 关联的双向标签交换路径的创建方法及系统
WO2015081551A1 (zh) 一种网络中实现报文路由的方法、设备和系统
WO2023061061A1 (zh) 报文处理方法、线卡、设备及存储介质
WO2015106623A1 (zh) 一种配置、下发流表项的方法及装置
EP3018866A1 (en) Signaling aliasing capability in data centers
WO2012116641A1 (zh) 路由信息的处理方法和装置
WO2014023255A1 (zh) 数据中心虚拟化网络地址的分发方法、系统及目录服务器
WO2013104279A1 (zh) Trill网络中设置cvlan的方法和装置
CN111800338B (zh) 跨as的evpn路由交互方法及装置
US9602294B1 (en) Rendezvous point link resiliency for bidirectional protocol independent multicast (PIM-BIDIR)
WO2012079212A1 (zh) 管理业务的方法及装置
US9654304B2 (en) Method and apparatus for sending transparent interconnection of lots of links data frame

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

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

Country of ref document: EP

Kind code of ref document: A1