WO2016177132A1 - Bgp routing source processing method and device - Google Patents

Bgp routing source processing method and device Download PDF

Info

Publication number
WO2016177132A1
WO2016177132A1 PCT/CN2016/076650 CN2016076650W WO2016177132A1 WO 2016177132 A1 WO2016177132 A1 WO 2016177132A1 CN 2016076650 W CN2016076650 W CN 2016076650W WO 2016177132 A1 WO2016177132 A1 WO 2016177132A1
Authority
WO
WIPO (PCT)
Prior art keywords
routing
information
bgp
preview
preview information
Prior art date
Application number
PCT/CN2016/076650
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 WO2016177132A1 publication Critical patent/WO2016177132A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or discovery
    • H04L45/04Interdomain routing, e.g. hierarchical routing
    • 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

Definitions

  • the present invention relates to the field of communications, and in particular, to a border gateway protocol BGP routing source processing method and apparatus.
  • Border Gateway Protocol is often used to form a policy-based network architecture.
  • BGP can set policies through its own attributes, and can also use public routing policies to filter and match routes, match and set route attributes. .
  • IGP Interior Gateway Protocol
  • the BGP route is dependent on the IGP route.
  • routing policies can be used to control the number of injected routing entries and routing attributes. If the routing policy is used when IGP routes are injected into BGP, the route generation, advertisement, and routing attributes may change accordingly.
  • routing policy preview method only for the BGP peer peer to receive and advertise the route preview, can not solve the above problem, and can not preview the IGP route application routing policy after the BGP post routing table selection, routing order, routing table information and Specific routing entry attributes, etc., cannot accurately control route injection.
  • the IGP cannot be accurately injected into the BGP, and the route flapping is caused by the misuse of the routing policy.
  • the IGP injection configuration or routing policy configuration information needs to be deleted and reconfigured repeatedly, and the IGP route cannot be previewed.
  • the problem of selecting the best and routing the full table information has not yet proposed an effective solution.
  • the present invention provides a method and a device for processing a border gateway protocol BGP routing source, so as to at least solve the problem that the IGP cannot be accurately injected into the BGP due to the misuse of the routing policy in the related art, and the route flapping is required, and the IGP injection configuration or routing policy configuration information needs to be injected.
  • a method for processing a border gateway protocol BGP routing source includes: obtaining a routing policy used when injecting internal gateway protocol IGP routing information into BGP; and obtaining preview information generated according to the routing policy. And if it is determined that the generated preview information is consistent with the predetermined preview information, the foregoing IGP routing information is injected into the BGP according to the routing policy.
  • the method further includes: if the preview information is inconsistent with the predetermined preview information, adjusting configuration information of the routing policy and/or adjusting application information of the routing policy until the preview information and the expected preview information. Consistent.
  • the obtaining the preview information generated according to the foregoing routing policy includes: synchronizing the routing policy to the BGP, and acquiring, by using the BGP, the preview information generated by the BGP by using at least one of the following operations: filtering a route prefix, matching a route Prefix, match route attributes, set route attributes.
  • the generated preview information includes at least one of the following: a routing table global preview information for displaying the entire routing table information, and routing entry preview information for displaying the specified routing entry information.
  • the method includes: releasing the preview information.
  • a border gateway protocol BGP routing source processing apparatus including: a first obtaining module, configured to acquire a routing policy used when injecting internal gateway protocol IGP routing information into BGP;
  • the acquiring module is configured to obtain the preview information generated according to the routing policy, and the injecting module is configured to: when determining that the generated preview information is consistent with the predetermined preview information, inject the IGP routing information into the BGP according to the routing policy.
  • the device further includes: an adjustment module, configured to adjust configuration information of the routing policy and/or adjust application information of the routing policy until the preview information and the case that the preview information is inconsistent with the predetermined preview information The above predetermined preview information is identical.
  • an adjustment module configured to adjust configuration information of the routing policy and/or adjust application information of the routing policy until the preview information and the case that the preview information is inconsistent with the predetermined preview information The above predetermined preview information is identical.
  • the foregoing second obtaining module includes: a synchronization unit, configured to synchronize the routing policy to the BGP; and the generating unit is configured to obtain, by using the BGP, the preview information generated by the BGP by using at least one of the following operations: Filter route prefixes, match route prefixes, match route attributes, and set route attributes.
  • the generated preview information includes at least one of the following: a routing table global preview information for displaying the entire routing table information, and routing entry preview information for displaying the specified routing entry information.
  • the device further includes: a release module, configured to release the preview information.
  • a release module configured to release the preview information.
  • the routing policy used to inject the internal gateway protocol IGP routing information into the BGP is obtained; the preview information generated according to the routing policy is obtained; and when the generated preview information is consistent with the predetermined preview information, according to the
  • the routing policy injects the IGP routing information into the BGP, and solves the problem that the IGP injection configuration or routing policy configuration information is repeatedly deleted and reconfigured due to the misuse of the routing policy.
  • the problem of routing table preference, routing table information, and specific route entry attributes after IGP route injection into BGP cannot be previewed, thereby reducing the jitter of routing from the source, reducing the processing overhead of the router, and improving the technical stability of the network.
  • FIG. 1 is a flowchart of a Border Gateway Protocol BGP routing source process according to an embodiment of the present invention
  • FIG. 2 is a structural block diagram of a border gateway protocol BGP routing source processing apparatus according to an embodiment of the present invention
  • FIG. 3 is a structural block diagram (1) of a border gateway protocol BGP routing source processing apparatus according to an embodiment of the present invention
  • FIG. 4 is a structural block diagram (2) of a border gateway protocol BGP routing source processing apparatus according to an embodiment of the present invention.
  • FIG. 5 is a structural block diagram (3) of a border gateway protocol BGP routing source processing apparatus according to an embodiment of the present invention.
  • FIG. 6 is a schematic diagram of a network topology of a method for processing a Border Gateway Protocol BGP route source according to an embodiment of the present invention.
  • FIG. 1 is a flowchart of a border gateway protocol BGP routing source processing according to an embodiment of the present invention. As shown in FIG. 1 , the process includes the following steps:
  • Step S102 Acquire a routing policy used when injecting the internal gateway protocol IGP routing information into the BGP.
  • Step S104 acquiring preview information generated according to the routing policy
  • Step S106 If it is determined that the generated preview information is consistent with the predetermined preview information, the IGP routing information is injected into the BGP according to the routing policy.
  • the preview information generated according to the routing policy is compared with the predetermined preview information.
  • the administrator can actually apply the routing policy to the BGP route source when the IGP route is injected into the BGP.
  • the administrator does not use any routing information to directly use the routing policy.
  • the misuse of the routing policy to inject the IGP into the BGP the IGP injection configuration or routing policy configuration information is deleted and reconfigured repeatedly, causing route flapping, etc.
  • the problem is that the above steps solve the problem that the IGP injection configuration or the routing policy configuration information is repeatedly deleted and reconfigured due to the misuse of the routing policy, and the IGP cannot be accurately injected into the BGP.
  • the problem of routing table preference, routing full table information, and specific routing entry attributes reduces the jitter of routing from the source, reduces the processing overhead of the router, and improves the technical stability of the network.
  • the configuration information of the routing policy is adjusted and/or the application information of the routing policy is adjusted until the preview information is consistent with the predetermined preview information.
  • the foregoing step S104 involves obtaining preview information generated according to the routing policy.
  • Synchronize the routing policy to the BGP and obtain the preview information generated by the BGP through the operation of at least one of the following: filtering the route prefix, matching the route prefix, matching the route attribute, setting the route attribute, and acquiring the generated route policy. Preview the information.
  • the generated preview information may include various forms of information, which will be exemplified below.
  • the preview information may be global preview information for displaying the entire routing table after the temporary route preference and the route sorting.
  • the preview information may also be used to display the specified route.
  • the routing entry preview information for the entry information Through the global preview of the routing table, it can be assumed that after the routing policy is applied, the temporary routing preference is performed according to the change of the routing entry and the update of the routing attribute, and the entire routing table information (including the routing source entry after the IGP is injected into the BGP) is displayed.
  • the route information of the route can be previewed separately, and the route information after the routing policy is applied, such as the advertised or received neighbor, origin, next hop, metric, Weight, route optimization, local priority, weight, path attribute (AS_PATH), community attribute, extended community attribute, aggregate attribute, originator id, cluster id, etc.
  • the preview information generated according to the routing policy is obtained, the preview information is released.
  • This method does not affect the actual route advertisement reception, routing attributes, and routing table. It does not have a real effect on the network. It only provides a temporary preview and is released after the preview is over.
  • the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware, but in many cases, the former is A better implementation.
  • the technical solution of the present invention in essence or the contribution to the related art can be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk, CD-ROM).
  • the instructions include a number of instructions for causing a terminal device (which may be a cell phone, computer, server, or network device, etc.) to perform the methods described in various embodiments of the present invention.
  • a border gateway protocol BGP routing source processing device is also provided, which is used to implement the foregoing embodiments and preferred embodiments, and has not been described again.
  • the term "module” may implement a combination of software and/or hardware of a predetermined function.
  • the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
  • the apparatus includes: a first obtaining module 22 configured to acquire an internal gateway protocol IGP routing information into a BGP a routing policy used; the second obtaining module 24 is configured to obtain preview information generated according to the routing policy; and the generating module 26 is configured to, according to the case that the generated preview information is consistent with the predetermined preview information,
  • the routing policy injects the IGP routing information into the BGP to accurately generate a basis for the BGP routing source.
  • FIG. 3 is a structural block diagram (1) of a border gateway protocol BGP routing source processing apparatus according to an embodiment of the present invention.
  • the apparatus includes: an adjustment module 32, in addition to all the modules shown in FIG.
  • the configuration information of the routing policy and/or the application information of the routing policy are adjusted until the preview information is consistent with the predetermined preview information.
  • the second obtaining module 24 includes: a synchronization unit 242 configured to synchronize the routing policy to the BGP; and a generating unit 244 configured to obtain, from the BGP, the preview information generated by the BGP by at least one of the following operations : Filter route prefixes, match route prefixes, match route attributes, and set route attributes.
  • the preview information generated by the second obtaining module 24 includes at least one of the following: global preview information for displaying the entire routing table after the temporary route preference and the route sorting, and is used to display the specified route. Preview information for the entry.
  • FIG. 5 is a structural block diagram (3) of a border gateway protocol BGP route source processing apparatus according to an embodiment of the present invention. As shown in FIG. 5, in an optional embodiment, the apparatus further includes: a release module 52, configured to Release the preview information.
  • each of the above modules may be implemented by software or hardware.
  • the foregoing may be implemented by, but not limited to, the foregoing modules are all located in the same processor; or, the modules are located in multiple In the processor.
  • Embodiments of the present invention also provide a storage medium.
  • the foregoing storage medium may be configured to store program code for performing the following steps:
  • the IGP routing information is injected into the BGP according to the routing policy.
  • the foregoing storage medium may include, but not limited to, a USB flash drive, a Read-Only Memory (ROM), a Random Access Memory (RAM), a mobile hard disk, and a magnetic memory.
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • a mobile hard disk e.g., a hard disk
  • magnetic memory e.g., a hard disk
  • the processor executes the above S1, S2, and S3 according to the stored program code in the storage medium.
  • An alternative embodiment of the present invention provides a method for processing a BGP routing source of a border gateway protocol, that is, before applying a routing policy to an IGP route, the correctness of the routing policy logic is predicted by a preview command, such as: Inbound BGP, the injected route attribute is incorrect, the useful route entry is filtered out, and the route preference is correct. If the preview information is inconsistent with the expected, the solution can be re-adjusted until the networking requirements are met, and finally the routing policy is actually applied. According to the configuration, it can be divided into two kinds of previews: (1) the full-table information of the temporary route after applying the routing policy; (2) the detailed information of the route after specifying the specific routing entry.
  • the specific plan is as follows:
  • the administrator configures the routing policy according to the design scheme.
  • the BGP protocol can be configured before or after the routing policy is applied.
  • the IGP route is injected into BGP dynamically or statically to generate a BGP route source.
  • BGP route source application routing policy preview function Before the actual injection, use the BGP route source application routing policy preview function to view the policy application effect.
  • BGP must first register a routing policy. After the routing policy synchronizes specific policy information to BGP, the preview function takes effect. Routing policies can filter and match route prefixes, set and match route attributes, etc. through pre-defined conditions. For example, the update can be filtered based on attributes such as route prefix, path attribute (AS_PATH), community, metric med, next hop, source (ORIGIN), local priority, weight, and so on.
  • Routing policies can filter and match route prefixes, set and match route attributes, etc. through pre-defined conditions. For example, the update can be filtered based on attributes such as route prefix, path attribute (AS_PATH), community, metric med, next hop, source (ORIGIN), local priority, weight, and so on.
  • BGP Based on the synchronized routing policy information, BGP performs corresponding routing prefix list filtering and matching, routing attribute setting, and matching operations. According to whether the specific routing entry is specified during the preview, it can be divided into: (1) global preview of the routing table: no specific routing entry is specified when using the preview function, and a routing policy is assumed when the route is injected, according to the change of the routing entry and the update of the routing attribute.
  • Temporary routing optimization display the entire routing table information (including injected routing entries); (2) specific routing entry information preview: If you use the preview function to specify routing entries, you can preview the current real routing information of the routing, if Routing information after applying the routing policy, such as: advertised or received neighbors, origin, nexthop, metric, weight, route optimization, local priority, weight, path attribute ( AS_PATH), community attribute, extended community attribute, aggregate attribute, originator id, cluster id, etc.
  • routing policy such as: advertised or received neighbors, origin, nexthop, metric, weight, route optimization, local priority, weight, path attribute ( AS_PATH), community attribute, extended community attribute, aggregate attribute, originator id, cluster id, etc.
  • the administrator can determine whether the actual application of the routing policy can meet the design requirements, such as whether the route filtering and routing preference are correct, and whether the routing attribute setting is reasonable.
  • the routing policy configuration information and application are adjusted multiple times according to the preview information until the expected solution is achieved. This prevents the IGP from being injected into the BGP multiple times due to repeated operations, causing network instability and reducing network oscillations from the root cause.
  • routing policy preview method when BGP routing source is generated does not affect the actual route advertisement receiving, routing attributes, routing preferences, and routing table. It only provides a temporary preview method to predict the impact on the route after the actual application of the specified policy, and does not have a real effect on the network. Therefore, the routing policy preview information needs to be created temporarily and released after the preview is over.
  • the optional embodiment of the present invention is applicable to various devices supporting the BGP protocol, including routers and switches.
  • FIG. 6 is a schematic diagram of a network topology of a method for processing a Border Gateway Protocol BGP route source according to an embodiment of the present invention.
  • the R1 routers have multiple OSPF routes, such as 10.1.1.0/24 and 20.1.1.0/24.
  • the administrator wants to advertise the route 10.1.1.0/24 to other routers on the network through BGP. Other routes are not advertised.
  • the administrator can use the route map route-map to control the injection of route entries, such as: configure the access list ACL, only permit route 10.1.1.0/24 and deny other routes, and then set the route-map to match the ACL.
  • When redistributing OSPF routes into BGP you can inject only routes 10.1.1.0/24 into BGP by using the configured route-map.
  • the administrator misuses the ACL and causes other routes to be injected into BGP, and 10.1.1.0/24 is not imported, the wrong routing information will be passed to R3 through R2 and then cascaded to the entire network. In this case, the wrong configuration needs to be deleted and reconfigured, which undoubtedly increases the amount of information on the network and the processing overhead of the lower-level router, and causes network flapping.
  • the administrator can use the BGP source route to generate the routing policy preview function to preview the change of the routing entries, the routing attribute changes, and the routing preference status after applying the policy.
  • the routing strategy is selectively applied, which makes the application effect of the routing strategy more intuitive and clear, effectively reducing network oscillation and router load.
  • the present invention provides a method and apparatus for processing a border gateway protocol BGP routing source, wherein the method uses a routing policy used to inject an internal gateway protocol IGP routing information into BGP; and obtains a preview generated according to a routing policy. If the generated preview information is consistent with the predetermined preview information, the IGP routing information is injected into the BGP according to the routing policy, so as to provide a basis for accurately generating the BGP routing source.
  • IGP route injection into BGP is more accurate and intuitive. It can accurately inject IGP routes into BGP, which reduces the number of BGP useless routes and makes the application of routing policies more accurate and effective.
  • the load of the router is reduced, and the BGP routing policy preview function does not actually update the routing table, nor does it affect the actual route advertisement and reception, and reduces the extra BGP route calculation, route jitter information transmission, and transfer caused by misconfiguration.
  • the published fluctuations reduce the processing overhead of the router.
  • the performance of the BGP network is optimized.
  • the IGP protocol is more accurate in injecting BGP, which reduces the jitter of the route from the source and improves the network stability.
  • modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
  • the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module.
  • the invention is not limited to any specific combination of hardware and software.
  • the routing policy used to inject the internal gateway protocol IGP routing information into the BGP is obtained; the preview information generated according to the routing policy is obtained; and when the generated preview information is consistent with the predetermined preview information,
  • the routing policy injects the IGP routing information into the BGP, and solves the problem that the IGP injection configuration or the routing policy configuration information is repeatedly deleted and reconfigured due to the misuse of the routing policy.
  • the problem of routing table preference, routing table information, and specific route entry attributes after IGP route injection into BGP cannot be previewed, thereby reducing the jitter of the route from the source, reducing the processing overhead of the router, and improving the technical stability of the network.

Abstract

Provided are a border gateway protocol (BGP) routing source processing method and device. The method comprises: acquiring a routing policy used when interior gateway protocol (IGP) routing information is injected into the BGP; acquiring preview information generated according to the routing policy; when the generated preview information and preset preview information are determined to be consistent, injecting the IGP routing information into the BGP according to the routing policy. The present invention addresses the problem in the related art in which misuse of the routing policy causes inaccurate injection of an IGP into a BGP, causing route flapping, which then requires IGP injection configuration or routing policy configuration information to be repeatedly deleted and reconfigured, and the problem in which it is impossible to preview a routing table optimal selection and all routing information following injection of the IGP routing into the BGP, thus reducing route flapping from the source, reducing overhead in processing the routing, and improving a technical effect of network stability.

Description

边界网关协议BGP路由源处理方法及装置Border gateway protocol BGP routing source processing method and device 技术领域Technical field
本发明涉及通信领域,具体而言,涉及一种边界网关协议BGP路由源处理方法及装置。The present invention relates to the field of communications, and in particular, to a border gateway protocol BGP routing source processing method and apparatus.
背景技术Background technique
边界网关协议(Border Gateway Protocol,简称为BGP)常用来组建基于策略的网络架构,BGP既可以通过自身提供的属性来设置策略,还可以使用公共路由策略进行过滤和匹配路由、匹配和设置路由属性。当内部网关协议(Interior Gateway Protocol,简称为IGP)路由注入到BGP中生成BGP路由源时,使得BGP路由依赖于IGP路由。为了减少BGP路由表信息量,降低其对IGP路由依赖性,可使用路由策略来控制注入的路由条目数量和路由属性等。如果IGP路由注入BGP时使用了路由策略,路由产生、通告和路由属性可能会发生相应的变化。此时需要根据选路规则重新进行路由择优,选出最优路由进行路由通告、下发转发层面,并最终影响流量转发。在复杂的网络配置中,如果管理者误用路由策略,需要将IGP注入配置或者路由策略配置信息反复删除、再配置。这样就可能导致最优路由产生抖动flapping,并通过下一级路由器将UPDATE和WITHDRAW震荡信息传播给其他对等体,产生级联效应,降低了网路的稳定性。此外,路由收敛的重复计算和路由属性变更会增加下游路由器额外的处理开销。Border Gateway Protocol (BGP) is often used to form a policy-based network architecture. BGP can set policies through its own attributes, and can also use public routing policies to filter and match routes, match and set route attributes. . When the Interior Gateway Protocol (IGP) route is injected into BGP to generate a BGP route source, the BGP route is dependent on the IGP route. In order to reduce the amount of BGP routing table information and reduce its dependence on IGP routing, routing policies can be used to control the number of injected routing entries and routing attributes. If the routing policy is used when IGP routes are injected into BGP, the route generation, advertisement, and routing attributes may change accordingly. In this case, you need to re-route the routing according to the routing rules, select the optimal route for route advertisement, and deliver the forwarding layer, and finally affect traffic forwarding. In a complex network configuration, if the administrator misuses the routing policy, the IGP injection configuration or routing policy configuration information needs to be deleted and reconfigured repeatedly. This may result in jitter mapping of the optimal route, and propagate the UPDATE and WITHDRAW oscillator information to other peers through the next-level router, resulting in a cascade effect, which reduces the stability of the network. In addition, repeated calculations of route convergence and routing attribute changes increase the overhead of additional processing by downstream routers.
当前已实现路由策略预览方法仅针对BGP对等体peer接收和通告路由的预览,不能解决上述问题,且无法预览到IGP路由应用路由策略注入BGP后路由表择优、路由排序、路由全表信息和具体路由条目属性等,不能精确地控制路由注入。The current implementation of the routing policy preview method only for the BGP peer peer to receive and advertise the route preview, can not solve the above problem, and can not preview the IGP route application routing policy after the BGP post routing table selection, routing order, routing table information and Specific routing entry attributes, etc., cannot accurately control route injection.
针对相关技术中,由于误用路由策略导致IGP不能准确注入BGP中,造成路由震荡,需要将IGP注入配置或路由策略配置信息反复删除、再配置的问题,及无法预览到IGP路由注入BGP后路由表择优、路由全表信息的问题,还未提出有效的解决方案。In the related art, the IGP cannot be accurately injected into the BGP, and the route flapping is caused by the misuse of the routing policy. The IGP injection configuration or routing policy configuration information needs to be deleted and reconfigured repeatedly, and the IGP route cannot be previewed. The problem of selecting the best and routing the full table information has not yet proposed an effective solution.
发明内容Summary of the invention
本发明提供了一种边界网关协议BGP路由源处理方法及装置,以至少解决相关技术中由于误用路由策略导致IGP不能准确注入BGP中,造成路由震荡,需要将IGP注入配置或路由策略配置信息反复删除、再配置的问题,及无法预览到IGP路由注入BGP后路由表择优、路由全表信息和具体路由条目属性的问题。The present invention provides a method and a device for processing a border gateway protocol BGP routing source, so as to at least solve the problem that the IGP cannot be accurately injected into the BGP due to the misuse of the routing policy in the related art, and the route flapping is required, and the IGP injection configuration or routing policy configuration information needs to be injected. The problem of repeated deletion and reconfiguration, and the inability to preview the routing table preference, routing table information, and specific routing entry attributes of the IGP route into BGP.
根据本发明实施例的一个方面,提供了一种边界网关协议BGP路由源处理方法,包括:获取将内部网关协议IGP路由信息注入BGP时所使用的路由策略;获取依据上述路由策略生成的预览信息;在确定生成的上述预览信息与预定预览信息一致的情况下,依据上述路由策略将上述IGP路由信息注入上述BGP。 According to an aspect of the present invention, a method for processing a border gateway protocol BGP routing source includes: obtaining a routing policy used when injecting internal gateway protocol IGP routing information into BGP; and obtaining preview information generated according to the routing policy. And if it is determined that the generated preview information is consistent with the predetermined preview information, the foregoing IGP routing information is injected into the BGP according to the routing policy.
可选地,上述方法还包括:在上述预览信息与上述预定预览信息不一致的情况下,调整上述路由策略的配置信息和/或调整上述路由策略的应用信息直至上述预览信息与上述预期定预览信息一致。Optionally, the method further includes: if the preview information is inconsistent with the predetermined preview information, adjusting configuration information of the routing policy and/or adjusting application information of the routing policy until the preview information and the expected preview information. Consistent.
可选地,获取依据上述路由策略生成的预览信息包括:将上述路由策略同步至上述BGP;从上述BGP中获取上述BGP通过以下至少之一的操作生成的上述预览信息:过滤路由前缀、匹配路由前缀、匹配路由属性、设置路由属性。Optionally, the obtaining the preview information generated according to the foregoing routing policy includes: synchronizing the routing policy to the BGP, and acquiring, by using the BGP, the preview information generated by the BGP by using at least one of the following operations: filtering a route prefix, matching a route Prefix, match route attributes, set route attributes.
可选地,生成的上述预览信息包括以下至少之一:用于显示整个路由表信息的路由表全局预览信息、用于显示指定路由条目信息的路由条目预览信息。Optionally, the generated preview information includes at least one of the following: a routing table global preview information for displaying the entire routing table information, and routing entry preview information for displaying the specified routing entry information.
可选地,获取依据上述路由策略生成的预览信息之后包括:释放上述预览信息。Optionally, after acquiring the preview information generated according to the foregoing routing policy, the method includes: releasing the preview information.
根据本发明实施例的另一方面,提供了一种边界网关协议BGP路由源处理装置,包括:第一获取模块,设置为获取将内部网关协议IGP路由信息注入BGP时所使用的路由策略;第二获取模块,设置为获取依据上述路由策略生成的预览信息;注入模块,设置为在确定生成的上述预览信息与预定预览信息一致的情况下,依据上述路由策略将上述IGP路由信息注入上述BGP。According to another aspect of the present invention, a border gateway protocol BGP routing source processing apparatus is provided, including: a first obtaining module, configured to acquire a routing policy used when injecting internal gateway protocol IGP routing information into BGP; The acquiring module is configured to obtain the preview information generated according to the routing policy, and the injecting module is configured to: when determining that the generated preview information is consistent with the predetermined preview information, inject the IGP routing information into the BGP according to the routing policy.
可选地,上述装置还包括:调整模块,设置为在上述预览信息与上述预定预览信息不一致的情况下,调整上述路由策略的配置信息和/或调整上述路由策略的应用信息直至上述预览信息与上述预定预览信息一致。Optionally, the device further includes: an adjustment module, configured to adjust configuration information of the routing policy and/or adjust application information of the routing policy until the preview information and the case that the preview information is inconsistent with the predetermined preview information The above predetermined preview information is identical.
可选地,上述第二获取模块包括:同步单元,设置为将上述路由策略同步至上述BGP;生成单元,设置为从上述BGP中获取上述BGP通过以下至少之一的操作生成的上述预览信息:过滤路由前缀、匹配路由前缀、匹配路由属性、设置路由属性。Optionally, the foregoing second obtaining module includes: a synchronization unit, configured to synchronize the routing policy to the BGP; and the generating unit is configured to obtain, by using the BGP, the preview information generated by the BGP by using at least one of the following operations: Filter route prefixes, match route prefixes, match route attributes, and set route attributes.
可选地,生成的上述预览信息包括以下至少之一:用于显示整个路由表信息的路由表全局预览信息、用于显示指定路由条目信息的路由条目预览信息。Optionally, the generated preview information includes at least one of the following: a routing table global preview information for displaying the entire routing table information, and routing entry preview information for displaying the specified routing entry information.
可选地,上述装置还包括:释放模块,设置为释放上述预览信息。Optionally, the device further includes: a release module, configured to release the preview information.
通过本发明实施例,采用获取将内部网关协议IGP路由信息注入BGP时所使用的路由策略;获取依据路由策略生成的预览信息;在确定生成的预览信息与预定预览信息一致的情况下,依据该路由策略将IGP路由信息注入BGP,解决了相关技术中由于误用路由策略导致IGP不能准确注入BGP中,造成路由震荡,需要将IGP注入配置或路由策略配置信息反复删除、再配置的问题,及无法预览到IGP路由注入BGP后路由表择优、路由全表信息和具体路由条目属性的问题,进而实现了从源头减少路由的抖动,降低路由器的处理开销,提高网络稳定性的技术效果。According to the embodiment of the present invention, the routing policy used to inject the internal gateway protocol IGP routing information into the BGP is obtained; the preview information generated according to the routing policy is obtained; and when the generated preview information is consistent with the predetermined preview information, according to the The routing policy injects the IGP routing information into the BGP, and solves the problem that the IGP injection configuration or routing policy configuration information is repeatedly deleted and reconfigured due to the misuse of the routing policy. The problem of routing table preference, routing table information, and specific route entry attributes after IGP route injection into BGP cannot be previewed, thereby reducing the jitter of routing from the source, reducing the processing overhead of the router, and improving the technical stability of the network.
附图说明DRAWINGS
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示 意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The drawings described herein are provided to provide a further understanding of the invention, which form a part of this application, The illustrative embodiments and the description thereof are illustrative of the invention and are not to be construed as limiting the invention. In the drawing:
图1是根据本发明实施例的边界网关协议BGP路由源处理的流程图;1 is a flowchart of a Border Gateway Protocol BGP routing source process according to an embodiment of the present invention;
图2是根据本发明实施例的边界网关协议BGP路由源处理装置的结构框图;2 is a structural block diagram of a border gateway protocol BGP routing source processing apparatus according to an embodiment of the present invention;
图3是根据本发明实施例的边界网关协议BGP路由源处理装置的结构框图(一);3 is a structural block diagram (1) of a border gateway protocol BGP routing source processing apparatus according to an embodiment of the present invention;
图4是根据本发明实施例的边界网关协议BGP路由源处理装置的结构框图(二);4 is a structural block diagram (2) of a border gateway protocol BGP routing source processing apparatus according to an embodiment of the present invention;
图5是根据本发明实施例的边界网关协议BGP路由源处理装置的结构框图(三);5 is a structural block diagram (3) of a border gateway protocol BGP routing source processing apparatus according to an embodiment of the present invention;
图6是根据本发明实施例的边界网关协议BGP路由源处理方法的网络拓扑示意图。FIG. 6 is a schematic diagram of a network topology of a method for processing a Border Gateway Protocol BGP route source according to an embodiment of the present invention.
具体实施方式detailed description
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。The invention will be described in detail below with reference to the drawings in conjunction with the embodiments. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict.
需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。It is to be understood that the terms "first", "second" and the like in the specification and claims of the present invention are used to distinguish similar objects, and are not necessarily used to describe a particular order or order.
在本实施例中提供了一种边界网关协议BGP路由源处理方法,图1是根据本发明实施例的边界网关协议BGP路由源处理的流程图,如图1所示,该流程包括如下步骤:In this embodiment, a method for processing a border gateway protocol BGP routing source is provided. FIG. 1 is a flowchart of a border gateway protocol BGP routing source processing according to an embodiment of the present invention. As shown in FIG. 1 , the process includes the following steps:
步骤S102,获取将内部网关协议IGP路由信息注入BGP时所使用的路由策略;Step S102: Acquire a routing policy used when injecting the internal gateway protocol IGP routing information into the BGP.
步骤S104,获取依据路由策略生成的预览信息;Step S104, acquiring preview information generated according to the routing policy;
步骤S106,在确定生成的该预览信息与预定预览信息一致的情况下,依据该路由策略将IGP路由信息注入BGP。Step S106: If it is determined that the generated preview information is consistent with the predetermined preview information, the IGP routing information is injected into the BGP according to the routing policy.
通过上述步骤,将依据路由策略生成的预览信息与预定预览信息进行比较,在比较结果一致的情况下,管理者可以在IGP路由注入BGP时实际应用上述路由策略,准确生成BGP路由源。相比于相关技术中,管理者无任何参考信息直接使用路由策略,由于误用路由策略将IGP错误注入BGP中,需要将IGP注入配置或路由策略配置信息反复删除、再配置,造成路由震荡等问题,上述步骤解决了由于误用路由策略导致IGP不能准确注入BGP中,造成路由震荡,需要将IGP注入配置或路由策略配置信息反复删除、再配置的问题,及无法预览到IGP路由注入BGP后路由表择优、路由全表信息和具体路由条目属性的问题,实现了从源头减少路由的抖动,降低路由器的处理开销,提高网络稳定性的技术效果。Through the above steps, the preview information generated according to the routing policy is compared with the predetermined preview information. When the comparison result is consistent, the administrator can actually apply the routing policy to the BGP route source when the IGP route is injected into the BGP. Compared with the related technology, the administrator does not use any routing information to directly use the routing policy. Because the misuse of the routing policy to inject the IGP into the BGP, the IGP injection configuration or routing policy configuration information is deleted and reconfigured repeatedly, causing route flapping, etc. The problem is that the above steps solve the problem that the IGP injection configuration or the routing policy configuration information is repeatedly deleted and reconfigured due to the misuse of the routing policy, and the IGP cannot be accurately injected into the BGP. The problem of routing table preference, routing full table information, and specific routing entry attributes reduces the jitter of routing from the source, reduces the processing overhead of the router, and improves the technical stability of the network.
在一个可选的实施例中,在预览信息与预定预览信息不一致的情况下,调整路由策略的配置信息和/或调整路由策略的应用信息直至该预览信息与该预定预览信息一致。通过该方法,可以最大限度的避免了因为重复误用路由策略导致IGP多次抖动注入BGP,造成网络不稳定。In an optional embodiment, if the preview information is inconsistent with the predetermined preview information, the configuration information of the routing policy is adjusted and/or the application information of the routing policy is adjusted until the preview information is consistent with the predetermined preview information. With this method, the IGP multiple jitter is injected into BGP due to repeated misuse of routing policies, which causes network instability.
上述步骤S104涉及到获取依据路由策略生成的预览信息,在一个可选的实施例中,通过 将路由策略同步至BGP,从该BGP中获取该BGP通过以下至少之一的操作生成的该预览信息:过滤路由前缀、匹配路由前缀、匹配路由属性、设置路由属性,实现获取依据路由策略生成的预览信息。The foregoing step S104 involves obtaining preview information generated according to the routing policy. In an optional embodiment, Synchronize the routing policy to the BGP, and obtain the preview information generated by the BGP through the operation of at least one of the following: filtering the route prefix, matching the route prefix, matching the route attribute, setting the route attribute, and acquiring the generated route policy. Preview the information.
生成的预览信息可以包括多种形式的信息,下面对此进行举例说明。在一个可选实施例中,预览信息可以是用于显示临时路由择优和路由排序后的整个路由表的全局预览信息,在另一个可选实施例中,预览信息也可以是用于显示指定路由条目信息的路由条目预览信息。通过路由表全局预览可以假设应用路由策略后,根据路由条目的变化和路由属性的更新,进行临时路由择优,显示整个路由表信息(包含IGP注入BGP后的路由源条目)。如果指定了路由条目,可以分别预览到该路由真实路由信息、假如应用路由策略后的路由信息,如:通告或接收的邻居、源(origin)、下一跳(nexthop)、度量(metric)、权重(weight)、路由最优、本地优先、权重、路径属性(AS_PATH)、团体属性、扩展团体属性、聚合属性、起源标签(originator id)、集群标签(clust id)等。The generated preview information may include various forms of information, which will be exemplified below. In an optional embodiment, the preview information may be global preview information for displaying the entire routing table after the temporary route preference and the route sorting. In another optional embodiment, the preview information may also be used to display the specified route. The routing entry preview information for the entry information. Through the global preview of the routing table, it can be assumed that after the routing policy is applied, the temporary routing preference is performed according to the change of the routing entry and the update of the routing attribute, and the entire routing table information (including the routing source entry after the IGP is injected into the BGP) is displayed. If a route entry is specified, the route information of the route can be previewed separately, and the route information after the routing policy is applied, such as the advertised or received neighbor, origin, next hop, metric, Weight, route optimization, local priority, weight, path attribute (AS_PATH), community attribute, extended community attribute, aggregate attribute, originator id, cluster id, etc.
在一个可选的实施例中,获取依据该路由策略生成的预览信息之后,释放该预览信息。通过该方法不影响实际的路由通告接收、路由属性和路由表,不对网络产生真实的作用,仅提供一种临时预览,并在预览结束后释放。In an optional embodiment, after the preview information generated according to the routing policy is obtained, the preview information is released. This method does not affect the actual route advertisement reception, routing attributes, and routing table. It does not have a real effect on the network. It only provides a temporary preview and is released after the preview is over.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对相关技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware, but in many cases, the former is A better implementation. Based on such understanding, the technical solution of the present invention in essence or the contribution to the related art can be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk, CD-ROM). The instructions include a number of instructions for causing a terminal device (which may be a cell phone, computer, server, or network device, etc.) to perform the methods described in various embodiments of the present invention.
在本实施例中还提供了一种边界网关协议BGP路由源处理装置,该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。In this embodiment, a border gateway protocol BGP routing source processing device is also provided, which is used to implement the foregoing embodiments and preferred embodiments, and has not been described again. As used below, the term "module" may implement a combination of software and/or hardware of a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
图2是根据本发明实施例的边界网关协议BGP路由源处理装置的结构框图,如图2所示,该装置包括:第一获取模块22,设置为获取将内部网关协议IGP路由信息注入BGP时所使用的路由策略;第二获取模块24,设置为获取依据该路由策略生成的预览信息;生成模块26,设置为在确定生成的该预览信息与预定预览信息一致的情况下,为管理者依据该路由策略将该IGP路由信息注入该BGP,准确生成BGP路由源提供依据。2 is a structural block diagram of a border gateway protocol BGP routing source processing apparatus according to an embodiment of the present invention. As shown in FIG. 2, the apparatus includes: a first obtaining module 22 configured to acquire an internal gateway protocol IGP routing information into a BGP a routing policy used; the second obtaining module 24 is configured to obtain preview information generated according to the routing policy; and the generating module 26 is configured to, according to the case that the generated preview information is consistent with the predetermined preview information, The routing policy injects the IGP routing information into the BGP to accurately generate a basis for the BGP routing source.
图3是根据本发明实施例的边界网关协议BGP路由源处理装置的结构框图(一),如图3所示,该装置除包括图2所示的所有模块外,还包括:调整模块32,设置为在该预览信息与该预定预览信息不一致的情况下,调整该路由策略的配置信息和/或调整路由策略的应用信息直至该预览信息与该预定预览信息一致。3 is a structural block diagram (1) of a border gateway protocol BGP routing source processing apparatus according to an embodiment of the present invention. As shown in FIG. 3, the apparatus includes: an adjustment module 32, in addition to all the modules shown in FIG. When the preview information is inconsistent with the predetermined preview information, the configuration information of the routing policy and/or the application information of the routing policy are adjusted until the preview information is consistent with the predetermined preview information.
图4是根据本发明实施例的边界网关协议BGP路由源处理装置的结构框图(二),如图4 所示,第二获取模块24包括:同步单元242,设置为将该路由策略同步至该BGP;生成单元244,设置为从该BGP中获取该BGP通过以下至少之一的操作生成的该预览信息:过滤路由前缀、匹配路由前缀、匹配路由属性、设置路由属性。4 is a structural block diagram (2) of a border gateway protocol BGP routing source processing apparatus according to an embodiment of the present invention, as shown in FIG. 4 As shown, the second obtaining module 24 includes: a synchronization unit 242 configured to synchronize the routing policy to the BGP; and a generating unit 244 configured to obtain, from the BGP, the preview information generated by the BGP by at least one of the following operations : Filter route prefixes, match route prefixes, match route attributes, and set route attributes.
在一个可选的实施例中,上述第二获取模块24生成的该预览信息包括以下至少之一:用于显示临时路由择优和路由排序后的整个路由表的全局预览信息、用于显示指定路由条目的预览信息。In an optional embodiment, the preview information generated by the second obtaining module 24 includes at least one of the following: global preview information for displaying the entire routing table after the temporary route preference and the route sorting, and is used to display the specified route. Preview information for the entry.
图5是根据本发明实施例的边界网关协议BGP路由源处理装置的结构框图(三),如图5所示,在一个可选的实施例中,该装置还包括:释放模块52,设置为释放该预览信息。5 is a structural block diagram (3) of a border gateway protocol BGP route source processing apparatus according to an embodiment of the present invention. As shown in FIG. 5, in an optional embodiment, the apparatus further includes: a release module 52, configured to Release the preview information.
需要说明的是,上述各个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:上述模块均位于同一处理器中;或者,上述模块分别位于多个处理器中。It should be noted that each of the above modules may be implemented by software or hardware. For the latter, the foregoing may be implemented by, but not limited to, the foregoing modules are all located in the same processor; or, the modules are located in multiple In the processor.
本发明的实施例还提供了一种存储介质。可选地,在本实施例中,上述存储介质可以被设置为存储用于执行以下步骤的程序代码:Embodiments of the present invention also provide a storage medium. Optionally, in the embodiment, the foregoing storage medium may be configured to store program code for performing the following steps:
S1,获取将内部网关协议IGP路由信息注入BGP时所使用的路由策略;S1. Obtain a routing policy used when injecting internal gateway protocol IGP routing information into BGP.
S2,获取依据路由策略生成的预览信息;S2, acquiring preview information generated according to the routing policy;
S3,在确定生成的该预览信息与预定预览信息一致的情况下,依据该路由策略将IGP路由信息注入BGP。S3. If it is determined that the generated preview information is consistent with the predetermined preview information, the IGP routing information is injected into the BGP according to the routing policy.
可选地,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。Optionally, in this embodiment, the foregoing storage medium may include, but not limited to, a USB flash drive, a Read-Only Memory (ROM), a Random Access Memory (RAM), a mobile hard disk, and a magnetic memory. A variety of media that can store program code, such as a disc or a disc.
可选地,在本实施例中,处理器根据存储介质中已存储的程序代码执行上述S1、S2和S3。Optionally, in the embodiment, the processor executes the above S1, S2, and S3 according to the stored program code in the storage medium.
可选地,本实施例中的具体示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。For example, the specific examples in this embodiment may refer to the examples described in the foregoing embodiments and the optional embodiments, and details are not described herein again.
针对相关技术中存在的上述问题,下面结合具体的可选实施例进行说明,在下述可选实施例中结合了上述可选实施例及其可选实施方式。For the above problems in the related art, the following description will be made with reference to specific alternative embodiments, and the above optional embodiments and their optional embodiments are combined in the following alternative embodiments.
本发明可选实施例中提供了一种边界网关协议BGP路由源处理方法,即:IGP路由注入BGP时应用路由策略之前,通过预览命令预测路由策略逻辑的正确性,如:错误的路由信息漏入BGP中、注入的路由属性不正确、有用路由条目被过滤掉、路由择优是否正确等。如果预览信息和预期不一致,可重新调整方案,直到符合组网要求,最后再实际应用路由策略。根据配置可分为2种预览:(1)应用路由策略后的临时路由全表信息;(2)指定具体路由条目后的路由详细信息。具体方案如下:An alternative embodiment of the present invention provides a method for processing a BGP routing source of a border gateway protocol, that is, before applying a routing policy to an IGP route, the correctness of the routing policy logic is predicted by a preview command, such as: Inbound BGP, the injected route attribute is incorrect, the useful route entry is filtered out, and the route preference is correct. If the preview information is inconsistent with the expected, the solution can be re-adjusted until the networking requirements are met, and finally the routing policy is actually applied. According to the configuration, it can be divided into two kinds of previews: (1) the full-table information of the temporary route after applying the routing policy; (2) the detailed information of the route after specifying the specific routing entry. The specific plan is as follows:
1、管理者根据设计方案配置路由策略,BGP协议应用路由策略之前或之后配置均可。 1. The administrator configures the routing policy according to the design scheme. The BGP protocol can be configured before or after the routing policy is applied.
2、IGP路由通过动态或静态方式注入BGP生成BGP路由源。在实际注入之前,使用BGP路由源应用路由策略预览功能查看策略应用效果。预览时BGP先要注册路由策略,路由策略将具体策略信息同步给BGP后,预览功能才能生效。路由策略可以通过预先定义的条件来过滤和匹配路由前缀,设置和匹配路由属性等。如:可以基于路由前缀、路径属性(AS_PATH)、团体、度量med、下一跳、源(ORIGIN)、本地优先、权重等属性来过滤更新。2. The IGP route is injected into BGP dynamically or statically to generate a BGP route source. Before the actual injection, use the BGP route source application routing policy preview function to view the policy application effect. When previewing, BGP must first register a routing policy. After the routing policy synchronizes specific policy information to BGP, the preview function takes effect. Routing policies can filter and match route prefixes, set and match route attributes, etc. through pre-defined conditions. For example, the update can be filtered based on attributes such as route prefix, path attribute (AS_PATH), community, metric med, next hop, source (ORIGIN), local priority, weight, and so on.
3、BGP根据同步过来的路由策略信息,分别进行相应的路由前缀列表过滤和匹配、路由属性设置和匹配等操作。根据预览时是否指定了具体路由条目,可分为:(1)路由表全局预览:使用预览功能时不指定具体路由条目,注入路由时假设应用路由策略,根据路由条目的变化和路由属性的更新,进行临时路由择优,显示整个路由表信息(包含注入的路由条目);(2)具体路由条目信息预览:使用预览功能时如果指定了路由条目,可以分别预览到该路由当前真实路由信息、假如应用路由策略后的路由信息,如:通告或接收的邻居、源(origin)、下一跳(nexthop)、度量(metric)、权重(weight)、路由最优、本地优先、权重、路径属性(AS_PATH)、团体属性、扩展团体属性、聚合属性、起源标签(originator id)、集群标签(clust id)等。3. Based on the synchronized routing policy information, BGP performs corresponding routing prefix list filtering and matching, routing attribute setting, and matching operations. According to whether the specific routing entry is specified during the preview, it can be divided into: (1) global preview of the routing table: no specific routing entry is specified when using the preview function, and a routing policy is assumed when the route is injected, according to the change of the routing entry and the update of the routing attribute. Temporary routing optimization, display the entire routing table information (including injected routing entries); (2) specific routing entry information preview: If you use the preview function to specify routing entries, you can preview the current real routing information of the routing, if Routing information after applying the routing policy, such as: advertised or received neighbors, origin, nexthop, metric, weight, route optimization, local priority, weight, path attribute ( AS_PATH), community attribute, extended community attribute, aggregate attribute, originator id, cluster id, etc.
4、管理者可根据上述预览信息,判断实际应用此路由策略能否达到设计要求,如:路由过滤和路由择优是否正确,路由属性设置是否合理等。依据预览信息多次调整路由策略配置信息和应用,直至达到预期方案,避免了因为重复操作导致IGP多次抖动注入BGP,造成网络不稳定,从根源上减少了网络震荡。4. According to the above preview information, the administrator can determine whether the actual application of the routing policy can meet the design requirements, such as whether the route filtering and routing preference are correct, and whether the routing attribute setting is reasonable. The routing policy configuration information and application are adjusted multiple times according to the preview information until the expected solution is achieved. This prevents the IGP from being injected into the BGP multiple times due to repeated operations, causing network instability and reducing network oscillations from the root cause.
5、BGP路由源生成时应用路由策略预览方法不影响实际的路由通告接收、路由属性、路由择优和路由表。它仅提供一种临时预览方法,用来预测实际应用指定策略后对路由的影响,并不对网络产生真实的作用。因此,路由策略预览信息需要单独临时创建,并于预览结束后释放。5. Applying the routing policy preview method when BGP routing source is generated does not affect the actual route advertisement receiving, routing attributes, routing preferences, and routing table. It only provides a temporary preview method to predict the impact on the route after the actual application of the specified policy, and does not have a real effect on the network. Therefore, the routing policy preview information needs to be created temporarily and released after the preview is over.
本发明可选实施例适用于各种支持BGP协议的设备,包括路由器和交换机等。The optional embodiment of the present invention is applicable to various devices supporting the BGP protocol, including routers and switches.
图6是根据本发明实施例的边界网关协议BGP路由源处理方法的网络拓扑示意图。如图6所示,源于R1路由器上分别有10.1.1.0/24和20.1.1.0/24等多条OSPF路由,管理者想通过BGP协议将路由10.1.1.0/24通告给网络中其他路由器,而其他路由不通告。管理者可以使用路由映射route-map控制路由条目的注入,如:配置访问列表ACL,仅仅permit路由10.1.1.0/24而deny其他路由,然后设置route-map匹配该ACL。重分发OSPF路由注入到BGP时,使用配置的route-map,就可以实现仅仅将路由10.1.1.0/24注入到BGP中。如果管理者误用了ACL导致其他路由注入到了BGP中,而10.1.1.0/24没有导入,错误的路由信息将通过R2传递R3,再级联至整个网络。此时需要将错误配置删除并重配,这无疑增加了网络的信息量和下级路由器的处理开销,并造成网络震荡。为了避免此种情况发生,管理者可以使用BGP源路由生成时应用路由策略预览功能,预先查看到应用策略后路由条目的变更、路由属性变化,及路由择优状况。根据预览信息重新设计方案,有选择性的应用路由策略,这就使得路由策略的应用效果更为直观明了,有效降低了网络震荡和路由器负载。 FIG. 6 is a schematic diagram of a network topology of a method for processing a Border Gateway Protocol BGP route source according to an embodiment of the present invention. As shown in Figure 6, the R1 routers have multiple OSPF routes, such as 10.1.1.0/24 and 20.1.1.0/24. The administrator wants to advertise the route 10.1.1.0/24 to other routers on the network through BGP. Other routes are not advertised. The administrator can use the route map route-map to control the injection of route entries, such as: configure the access list ACL, only permit route 10.1.1.0/24 and deny other routes, and then set the route-map to match the ACL. When redistributing OSPF routes into BGP, you can inject only routes 10.1.1.0/24 into BGP by using the configured route-map. If the administrator misuses the ACL and causes other routes to be injected into BGP, and 10.1.1.0/24 is not imported, the wrong routing information will be passed to R3 through R2 and then cascaded to the entire network. In this case, the wrong configuration needs to be deleted and reconfigured, which undoubtedly increases the amount of information on the network and the processing overhead of the lower-level router, and causes network flapping. To avoid this situation, the administrator can use the BGP source route to generate the routing policy preview function to preview the change of the routing entries, the routing attribute changes, and the routing preference status after applying the policy. According to the preview information redesign scheme, the routing strategy is selectively applied, which makes the application effect of the routing strategy more intuitive and clear, effectively reducing network oscillation and router load.
综上所述,本发明提供了一种边界网关协议BGP路由源处理方法及装置,其中该方法采用获取将内部网关协议IGP路由信息注入BGP时所使用的路由策略;获取依据路由策略生成的预览信息;在确定生成的预览信息与预定预览信息一致的情况下,依据该路由策略将IGP路由信息注入BGP,为准确生成BGP路由源提供依据。In summary, the present invention provides a method and apparatus for processing a border gateway protocol BGP routing source, wherein the method uses a routing policy used to inject an internal gateway protocol IGP routing information into BGP; and obtains a preview generated according to a routing policy. If the generated preview information is consistent with the predetermined preview information, the IGP routing information is injected into the BGP according to the routing policy, so as to provide a basis for accurately generating the BGP routing source.
IGP路由注入BGP更准确和直观,较为精确的将IGP路由注入到BGP中,减少了BGP无用路由的数量,使路由策略的应用更为准确有效。降低了路由器的负载,BGP路由策略预览功能不会真正的进行路由表的更新,也不会影响实际的路由通告和接收,减少了由于错误配置导致的额外BGP路由计算、路由抖动信息传递和转发表的波动,降低了路由器的处理开销。优化了BGP网络性能,由于IGP协议注入BGP更为准确,从源头减少了路由的抖动,提高了网络稳定性。IGP route injection into BGP is more accurate and intuitive. It can accurately inject IGP routes into BGP, which reduces the number of BGP useless routes and makes the application of routing policies more accurate and effective. The load of the router is reduced, and the BGP routing policy preview function does not actually update the routing table, nor does it affect the actual route advertisement and reception, and reduces the extra BGP route calculation, route jitter information transmission, and transfer caused by misconfiguration. The published fluctuations reduce the processing overhead of the router. The performance of the BGP network is optimized. The IGP protocol is more accurate in injecting BGP, which reduces the jitter of the route from the source and improves the network stability.
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。It will be apparent to those skilled in the art that the various modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein. The steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software.
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above description is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.
工业实用性Industrial applicability
在本发明实施例中,采用获取将内部网关协议IGP路由信息注入BGP时所使用的路由策略;获取依据路由策略生成的预览信息;在确定生成的预览信息与预定预览信息一致的情况下,依据该路由策略将IGP路由信息注入BGP,解决了相关技术中由于误用路由策略导致IGP不能准确注入BGP中,造成路由震荡,需要将IGP注入配置或路由策略配置信息反复删除、再配置的问题,及无法预览到IGP路由注入BGP后路由表择优、路由全表信息和具体路由条目属性的问题,进而实现了从源头减少路由的抖动,降低路由器的处理开销,提高网络稳定性的技术效果。 In the embodiment of the present invention, the routing policy used to inject the internal gateway protocol IGP routing information into the BGP is obtained; the preview information generated according to the routing policy is obtained; and when the generated preview information is consistent with the predetermined preview information, The routing policy injects the IGP routing information into the BGP, and solves the problem that the IGP injection configuration or the routing policy configuration information is repeatedly deleted and reconfigured due to the misuse of the routing policy. The problem of routing table preference, routing table information, and specific route entry attributes after IGP route injection into BGP cannot be previewed, thereby reducing the jitter of the route from the source, reducing the processing overhead of the router, and improving the technical stability of the network.

Claims (10)

  1. 一种边界网关协议BGP路由源处理方法,包括:A border gateway protocol BGP routing source processing method includes:
    获取将内部网关协议IGP路由信息注入BGP时所使用的路由策略;Obtain the routing policy used when injecting the internal gateway protocol IGP routing information into BGP;
    获取依据所述路由策略生成的预览信息;Obtaining preview information generated according to the routing policy;
    在确定生成的所述预览信息与预定预览信息一致的情况下,依据所述路由策略将所述IGP路由信息注入所述BGP。In the case that it is determined that the generated preview information is consistent with the predetermined preview information, the IGP routing information is injected into the BGP according to the routing policy.
  2. 根据权利要求1所述的方法,其中,所述方法还包括:The method of claim 1 wherein the method further comprises:
    在所述预览信息与所述预定预览信息不一致的情况下,调整所述路由策略的配置信息和/或调整所述路由策略的应用信息直至所述预览信息与所述预定预览信息一致。And if the preview information is inconsistent with the predetermined preview information, adjusting configuration information of the routing policy and/or adjusting application information of the routing policy until the preview information is consistent with the predetermined preview information.
  3. 根据权利要求1所述的方法,其中,获取依据所述路由策略生成的预览信息包括:The method according to claim 1, wherein the obtaining preview information generated according to the routing policy comprises:
    将所述路由策略同步至所述BGP;Synchronizing the routing policy to the BGP;
    从所述BGP中获取所述BGP通过以下至少之一的操作生成的所述预览信息:Obtaining, from the BGP, the preview information generated by the BGP by using at least one of the following operations:
    过滤路由前缀、匹配路由前缀、匹配路由属性、设置路由属性。Filter route prefixes, match route prefixes, match route attributes, and set route attributes.
  4. 根据权利要求1所述的方法,其中,生成的所述预览信息包括以下至少之一:The method of claim 1, wherein the generated preview information comprises at least one of the following:
    用于显示整个路由表信息的路由表全局预览信息、用于显示指定路由条目信息的路由条目预览信息。A global routing information of the routing table for displaying the entire routing table information, and a routing entry preview information for displaying information of the specified routing entry.
  5. 根据权利要求1至4中任一项所述的方法,其中,获取依据所述路由策略生成的预览信息之后包括:The method according to any one of claims 1 to 4, wherein after acquiring the preview information generated according to the routing policy, the method comprises:
    释放所述预览信息。Release the preview information.
  6. 一种边界网关协议BGP路由源处理装置,包括:A border gateway protocol BGP routing source processing device, comprising:
    第一获取模块,设置为获取将内部网关协议IGP路由信息注入BGP时所使用的路由策略;The first obtaining module is configured to obtain a routing policy used when injecting the internal gateway protocol IGP routing information into the BGP;
    第二获取模块,设置为获取依据所述路由策略生成的预览信息;a second obtaining module, configured to obtain preview information generated according to the routing policy;
    注入模块,设置为在确定生成的所述预览信息与预定预览信息一致的情况下,依据所述路由策略将所述IGP路由信息注入所述BGP。The injection module is configured to inject the IGP routing information into the BGP according to the routing policy if it is determined that the generated preview information is consistent with the predetermined preview information.
  7. 根据权利要求6所述的装置,其中,所述装置还包括:The apparatus of claim 6 wherein said apparatus further comprises:
    调整模块,设置为在所述预览信息与所述预定预览信息不一致的情况下,调整所述路由策略的配置信息和/或调整所述路由策略的应用信息直至所述预览信息与所述预定预览信息一致。 And an adjustment module, configured to adjust configuration information of the routing policy and/or adjust application information of the routing policy until the preview information and the predetermined preview, if the preview information is inconsistent with the predetermined preview information The information is consistent.
  8. 根据权利要求6所述的装置,其中,所述第二获取模块包括:The apparatus of claim 6, wherein the second acquisition module comprises:
    同步单元,设置为将所述路由策略同步至所述BGP;a synchronization unit, configured to synchronize the routing policy to the BGP;
    生成单元,设置为从所述BGP中获取所述BGP通过以下至少之一的操作生成的所述预览信息:And generating, by the BGP, the preview information generated by the BGP by using at least one of the following operations:
    过滤路由前缀、匹配路由前缀、匹配路由属性、设置路由属性。Filter route prefixes, match route prefixes, match route attributes, and set route attributes.
  9. 根据权利要求6所述的装置,其中,生成的所述预览信息包括以下至少之一:The apparatus of claim 6, wherein the generated preview information comprises at least one of the following:
    用于显示整个路由表信息的路由表全局预览信息、用于显示指定路由条目信息的路由条目预览信息。A global routing information of the routing table for displaying the entire routing table information, and a routing entry preview information for displaying information of the specified routing entry.
  10. 根据权利要求6至9中任一项所述的装置,其中,所述装置还包括:The device according to any one of claims 6 to 9, wherein the device further comprises:
    释放模块,设置为释放所述预览信息。 Release the module, set to release the preview information.
PCT/CN2016/076650 2015-08-17 2016-03-17 Bgp routing source processing method and device WO2016177132A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510504277.2A CN106470154A (en) 2015-08-17 2015-08-17 Border Gateway Protocol (BGP) route source processing method and processing device
CN201510504277.2 2015-08-17

Publications (1)

Publication Number Publication Date
WO2016177132A1 true WO2016177132A1 (en) 2016-11-10

Family

ID=57218485

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/076650 WO2016177132A1 (en) 2015-08-17 2016-03-17 Bgp routing source processing method and device

Country Status (2)

Country Link
CN (1) CN106470154A (en)
WO (1) WO2016177132A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108206786A (en) * 2016-12-16 2018-06-26 新华三技术有限公司 Equipment stacking method for building up and device
CN111147478A (en) * 2019-12-24 2020-05-12 北京网太科技发展有限公司 Safety protection method, device and storage medium

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110932921B (en) 2018-09-19 2022-10-11 华为技术有限公司 Method for determining route oscillation information and related equipment thereof
CN110708207B (en) * 2018-12-24 2021-10-29 新华三技术有限公司 Route oscillation positioning method, server and machine readable storage medium
CN115720207A (en) * 2020-02-28 2023-02-28 华为技术有限公司 Method, network equipment and system for updating routing attribute

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101040487A (en) * 2004-12-29 2007-09-19 思科技术公司 Automatic route tagging of bgp next-hop routes in igp
CN101047565A (en) * 2006-04-24 2007-10-03 华为技术有限公司 System for detecting consistency of node running information of boundary gateway protocol and its method
CN101867503A (en) * 2010-06-09 2010-10-20 清华大学 Cross-domain BGP routing policy deployment method
US20140177819A1 (en) * 2012-11-21 2014-06-26 Genesys Telecommunications Laboratories, Inc. Graphical user interface for configuring contact center routing strategies

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101335697B (en) * 2007-06-25 2012-04-04 华为技术有限公司 Route information publishing method, data packet routing implementing method, system and apparatus
CN101227262B (en) * 2008-02-20 2011-12-07 中兴通讯股份有限公司 System and method of route inhibiting
CN101577680B (en) * 2009-06-19 2011-08-17 福建星网锐捷网络有限公司 Updating method, device and system of tunnel routing information
US8750095B2 (en) * 2012-06-26 2014-06-10 Cisco Technology, Inc. System and method for protection against edge node failure

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101040487A (en) * 2004-12-29 2007-09-19 思科技术公司 Automatic route tagging of bgp next-hop routes in igp
CN101047565A (en) * 2006-04-24 2007-10-03 华为技术有限公司 System for detecting consistency of node running information of boundary gateway protocol and its method
CN101867503A (en) * 2010-06-09 2010-10-20 清华大学 Cross-domain BGP routing policy deployment method
US20140177819A1 (en) * 2012-11-21 2014-06-26 Genesys Telecommunications Laboratories, Inc. Graphical user interface for configuring contact center routing strategies

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108206786A (en) * 2016-12-16 2018-06-26 新华三技术有限公司 Equipment stacking method for building up and device
CN111147478A (en) * 2019-12-24 2020-05-12 北京网太科技发展有限公司 Safety protection method, device and storage medium

Also Published As

Publication number Publication date
CN106470154A (en) 2017-03-01

Similar Documents

Publication Publication Date Title
WO2016177132A1 (en) Bgp routing source processing method and device
US10887192B2 (en) Targeted network discovery and visualizations
US11868824B2 (en) Single node and multiple node datastore architecture in a network routing environment
US10715485B2 (en) Managing dynamic IP address assignments
US10659344B2 (en) Information transmission method, apparatus and system
US20190034226A1 (en) Method and apparatus for determining virtual machine migration
US20160134591A1 (en) VPN Implementation Processing Method and Device for Edge Device
US10379890B1 (en) Synchronized cache of an operational state of distributed software system
EP3166264A1 (en) Isis-based routing calculation method and device
US20230231795A1 (en) Method for Synchronizing Topology Information in SFC Network, and Routing Network Element
EP3166263A1 (en) Routing calculation method and device for trill isis
US10554543B1 (en) Migrating data traffic between label switched paths (LSPs) based on per-LSP protocol priority value
US20190334814A1 (en) Path establishment method and device, and network node
Vissicchio et al. Safe routing reconfigurations with route redistribution
Lin et al. R-iCDN: An approach supporting flexible content routing for ISP-operated CDN
US9531642B1 (en) Distributing routing updates according to a synchronous mode
WO2018113460A1 (en) Multi-layer lsp control method and apparatus
US9667554B2 (en) DS domain generating method, device and system
US11985057B1 (en) Shifting of network traffic using converged primary and secondary paths in a network device
US10778563B1 (en) Brick identifier attribute for routing in multi-tier computer networks
TWI839379B (en) Single node and multiple node datastore architecture in a network routing environment
WO2015154466A1 (en) Route selection method and device
US9699068B1 (en) Distributing routing updates according to a decay mode
Norvor et al. Dynamic Routing Implementation Decision between OSPFv3 and IS–IS in IPv6 Networks
Le Implementation of GlobalProtect and Data Centre Interconnect

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

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

Country of ref document: EP

Kind code of ref document: A1