WO2013091523A1 - Route backup method and device - Google Patents

Route backup method and device Download PDF

Info

Publication number
WO2013091523A1
WO2013091523A1 PCT/CN2012/086817 CN2012086817W WO2013091523A1 WO 2013091523 A1 WO2013091523 A1 WO 2013091523A1 CN 2012086817 W CN2012086817 W CN 2012086817W WO 2013091523 A1 WO2013091523 A1 WO 2013091523A1
Authority
WO
WIPO (PCT)
Prior art keywords
node
route
source
candidate
destination
Prior art date
Application number
PCT/CN2012/086817
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 WO2013091523A1 publication Critical patent/WO2013091523A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/14Multichannel or multilink protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/52Network services specially adapted for the location of the user terminal

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a route backup method and apparatus.
  • the data communication network is mainly carried by the protocol stack of the Internet Protocol (IP).
  • IP Internet Protocol
  • Each IP address marks the exact address of a host in the network.
  • a router acts as a basic network node and assumes the role of transmitting IP packets. Specifically, in the process of transmitting IP packets, the router queries the local IP routing table for the corresponding IP packet address. Interface, and then send the IP packet from this outbound interface.
  • the Internal Gateway Protocol is the most commonly used routing protocol in IP networks, including Open Shortest Path First (OSPF), Intermediate System to Intermediate System. Routing Protocol, IS-IS), and Routing Information Protocol (RIP).
  • OSPF Open Shortest Path First
  • IS-IS Intermediate System to Intermediate System. Routing Protocol
  • RIP Routing Information Protocol
  • the existing methods of the Fast Reroute are mainly:
  • the backup route is generated according to a certain algorithm before the link is faulty, and the information of the backup route is sent to the IP routing table of the router for storage in advance.
  • the router directly forwards the IP packets using the information of the backup routes in the IP routing table to ensure that the service packets are forwarded without interruption.
  • the route routing method of Partial Routes Calculation PRC
  • the backup route may be determined by a method such as Loop-Free Alternates (LFA).
  • the PRC method is mainly based on a network node, and the routes advertised by each network node (a network node may issue multiple routes) are organized, so that the path to the destination network node, that is, the shortest path preference is known.
  • SPPF Shortest Path First
  • One aspect of the present invention provides a route backup method and apparatus, which implements backup of multiple source routes.
  • An aspect of the present invention provides a route backup method, including:
  • An aspect of the present invention provides a route backup method, including:
  • the route to the candidate node serves as a backup route from the source node to the destination node.
  • An aspect of the present invention provides a route backup device, including:
  • An alternative selection unit configured to select an alternate node that has issued the same multi-source route as the route advertised by the destination node
  • a route backup unit configured to: when there is no intersection on the path of the candidate node selected from the source node to the destination node and the candidate selection unit, and the path from the source node to the candidate node
  • the distance from the intermediate node to the candidate node is smaller than the distance from the intermediate node to the source node to the destination node, and the route from the source node to the candidate node is used as a location A backup route from the source node to the destination node.
  • An aspect of the present invention provides a route backup device, including:
  • An alternative determining unit configured to determine an alternate node that backs up the destination node
  • a backup determining unit configured to: when a distance from an intermediate node on the path from the source node to the candidate node to the candidate node is less than a distance from the intermediate node to the source node to the destination node Routing the source node to the candidate node as the source node to the destination Backup route for the node.
  • an alternative node that issues the same multi-source route as the route of the destination node is selected first; if there is no intersection node from the source node to the path of the destination node and the candidate node, and the source is The distance from the intermediate node to the candidate node on the path of the node to the candidate node is less than the distance from the intermediate node to the source node and then to the destination node, and the route from the source node to the candidate node is used as the backup from the source node to the destination node.
  • Routes for fast route convergence In the embodiment of the present invention, the same route is issued for multiple network nodes, and a multi-source route backup is performed by using a method with low complexity.
  • FIG. 1 is a flowchart of a route backup method according to an embodiment of the present invention
  • FIG. 2 is a schematic diagram showing the relationship structure of network nodes organized according to the S PF algorithm in the embodiment of the present invention
  • FIG. 3 is a schematic diagram showing the relationship between network nodes when routing backup is performed according to an embodiment of the present invention
  • FIG. 4 is a schematic structural diagram of a route backup device according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of another route backup device according to an embodiment of the present invention
  • FIG. 6 is a schematic structural diagram of another route backup device according to an embodiment of the present invention.
  • the embodiment of the present invention provides a route backup method, which can be applied to a backup of a path from a source node to a destination node by a device such as a network management device or a network node in a scenario where multiple network nodes advertise the same route.
  • a device such as a network management device or a network node in a scenario where multiple network nodes advertise the same route.
  • the figure is shown in Figure 1, including: Step 101: Select an alternate node that has issued the same multi-source route as the route advertised by the destination node.
  • each network node can advertise at least one route that is directly reachable by itself, that is, a local route; and multiple network nodes may advertise the same route, that is, a multi-source route, which may occur at a network node at the boundary of the IGP domain, mainly Since the IGP domain is invisible to the IGP domain, multiple network nodes at the edge of the IGP domain may advertise routes outside the IGP domain as their own routes, thus generating multi-source routes.
  • a network node advertises a route, it can advertise information such as the prefix and the cost value that uniquely identifies a route.
  • the route addresses advertised by multiple network nodes are the same, that is, the prefix of the route is the same, but Other information posted, such as cost values, may be different.
  • the routing backup device may first organize the routes advertised by each network node by using the SPF method, and then select an alternate node among the various network nodes of the organization, specifically when the organization is performed according to the SPF method, the routing backup device is You can use "route" as the base point to organize all network nodes that have published the same route. On the other hand, based on the "network node", all the routes advertised by one network node are organized together. Information about multiple network nodes that advertise the same route.
  • the candidate node when performing backup calculation on the route from the source node to the destination node, the candidate node may be selected according to the information of the same route advertised by each network node. For example, the route advertised by the destination node may be the same. Among the multiple network nodes of the multi-source route, the network node with the smaller cost value of the multi-source route is selected as the candidate node.
  • node A is the root node
  • node B issues three routes bl to b3
  • node C issues three routes.
  • node D issues three routes dl to d3
  • nodes B, C, and D both issue the same route 10.0.0.0/24, which is a multi-source route. If Node B is the destination node, Node C or Node D can be selected as the candidate node.
  • Step 102 If there is no intersection node from the source node to the path of the destination node and the candidate node respectively, and the distance from the source node to the intermediate node of the candidate node to the candidate node is smaller than the return source from the intermediate node The distance from the node to the destination node, and the route from the source node to the candidate node is used as the backup route from the source node to the destination node.
  • the candidate node After the candidate node is selected, it is necessary to determine whether the candidate node can be used as the protection of the destination node, and the following conditions are met: (1) The node with no intersection on the path from the source node to the destination node and the alternate node (except the source node):
  • the path from the source node to the candidate node cannot pass through nodes a, b and c, that is, two different network nodes need to have different
  • the next hop node ensures that any network node on the path from the source node to the alternate node does not wrap around the path from the source node to the destination node.
  • the network node may advertise information such as a prefix and an overhead value for uniquely identifying a route, where the cost value may be information indicating distance, bandwidth, delay, etc., for other network nodes to perform optimally.
  • the routing backup device considers the cost value advertised by each network node in the process of performing the route backup.
  • the distance S 1 from the intermediate node to the candidate node in this embodiment may be the intermediate node.
  • the distance from the intermediate node to the destination node to the destination node, S2 is the shortest distance from the intermediate node to the source node, the shortest distance from the source node to the destination node, and the sum of the distribution values of the destination node's published routes.
  • the ringless backup can be implemented.
  • the reason for the source node to the candidate node is used as the backup route from the source node to the destination node.
  • the backup of the next hop of the source node is the source node.
  • the route can be quickly converge according to the backup route. Specifically, if the route from the source node to the destination node fails, the route from the source node to the destination node is switched from the source node to the candidate node. routing.
  • the node S is a source node
  • the routing table stored in the node S includes a route 10.0.0.10, a next hop node E, and a distance 30 from the node S to the destination node A, which are posted on the destination node A
  • the distance from the node S to the destination node A is the sum of the shortest distance 20 from the node S to the node A and the cost value 10 of the route 10.0.0.10 issued by the node A, and the shortest distance from the node S to the node A may be the node E.
  • the sum of the cost value of the advertised route 10 and the cost of the route advertised by node A 20; Node B also publishes this route 10.0.0.10, then node S can determine whether node B can act as a protection node for node A, specifically:
  • the distance S1 from the node N to the node B is the shortest distance 10 from the node N to the node B and the overhead of issuing the route 10.0.0.10 to the node B.
  • the sum 100 of the values 100, and the distance S2 from the node N back to the node S to the node A is the shortest distance 20 from the node N to the node S, the shortest distance 20 from the node S to the node A, and the route A.10.10.
  • the cost value of 10 and 50 because S1 is greater than S2, can not achieve a ringless backup, that is, the path from node S to node B can not be used as a backup path from node S to node A, that is, node N cannot be used as a backup of node S routing.
  • the complexity of routing backup according to the existing LFA algorithm is (M+P). *Q, and the complexity of the multi-source route backup according to the method of the embodiment is P, wherein the complexity may indicate that in the process of performing the route backup calculation, the backup formula is used to determine the number of times of the backup route, and the like.
  • the complexity of performing multi-source route backup by using the method of the embodiment of the present invention is low.
  • the candidate node that is the same as the route advertised by the destination node is selected first; if there is no intersection node from the source node to the path of the destination node and the candidate node respectively, and The distance from the intermediate node to the candidate node on the path from the source node to the candidate node is less than the distance from the intermediate node to the source node to the destination node, and the route from the source node to the candidate node is used as the source node to the destination node.
  • Back up routes for fast route convergence In the embodiment of the present invention, the same route is issued for multiple network nodes, and a multi-source route backup is performed by using a method with low complexity.
  • the candidate node is selected, and then the candidate node is determined to meet the condition of the acyclic backup. If yes, the backup route is determined.
  • the routing organization algorithm is combined with the determination of the ringless backup. .
  • the embodiment of the invention further provides a route backup method, which is mainly a route backup method for protecting between different network nodes, including:
  • Step 201 Determine an alternate node that performs backup on the destination node.
  • Step 202 If the distance from the source node to the alternate node on the path of the candidate node to the candidate node is less than the distance from the intermediate node to the source node and then to the destination node, then the path from the source node to the candidate node is An intermediate node will not return to the path from the source node to the destination node. A ringless backup can be performed, and the route from the source node to the candidate node is used as the backup route from the source node to the destination node.
  • the distance from the intermediate node to the candidate node on the path from the source node to the candidate node may be: the shortest distance from the intermediate node to the candidate node, and The candidate node advertises the sum of the cost values of the route; and the distance from the intermediate node to the source node to the destination node can be: the shortest distance from the intermediate node to the source node, the shortest distance from the source node to the destination node, and the destination node release The sum of the cost values of the routes, and so on.
  • the backup route can be quickly converge according to the backup route. Specifically, if the route from the source node to the destination node fails, the route from the source node to the destination node is switched to the source node. The route to the alternate node.
  • the candidate node that performs backup on the destination node is first determined, and then the candidate node is determined to meet the condition of the ringless backup. If yes, the backup route is determined, and the route to the different network nodes is implemented. Ring protection.
  • the embodiment of the present invention further provides a route backup device.
  • the structure of the device is as shown in FIG. 4, and includes: an alternative selection unit 10, configured to select an alternate node that has issued the same multi-source route as the route advertised by the destination node;
  • the routing backup unit 11 is configured to: when there is no intersection on the path from the source node to the destination node and the candidate node selected by the candidate selection unit 10, and from the source node to the candidate node The distance from the intermediate node to the candidate node on the path is smaller than the distance from the intermediate node to the source node to the destination node, and the route from the source node to the candidate node is taken as A backup route from the source node to the destination node.
  • the distance from any one of the intermediate nodes to the candidate nodes in the path from the source node to the candidate node may be: a shortest distance from the intermediate node to the candidate node, and a sum of the cost values of the multi-source route issued by the candidate node;
  • the distance from the intermediate node to the source node to the destination node may be: the shortest distance from the intermediate node to the source node, the shortest distance from the source node to the destination node, and the sum of the cost values of the route advertised by the destination node.
  • the candidate selecting unit 10 first selects an alternate node that has the same multi-source route as the route advertised by the destination node; if there is no intersection on the path from the source node to the destination node and the candidate node respectively The node, and the distance from the intermediate node to the alternate node on the path from the source node to the candidate node is less than the distance from the intermediate node to the source node and then to the destination node, then the route backup unit 11 will source the node to the candidate node.
  • the route acts as a backup route from the source node to the destination node.
  • the same route is issued for multiple network nodes, and a multi-source route backup is performed by using a method with low complexity.
  • the route backup device may include a route convergence unit 12 in addition to the structure shown in FIG. 4, and the candidate selection unit 10 may specifically include a node organization unit 110 and Selection unit 120, wherein:
  • the route convergence unit 12 is configured to: when the route from the source node to the destination node fails, switch the route of the source node to the destination node to be from the source according to the backup route determined by the route backup unit 11. The route of the node to the alternate node.
  • the node organization unit 110 is configured to organize the routes advertised by the network nodes by using the shortest path preference SPF. After being organized by the node organization unit 110, the information of multiple network nodes that advertise the same route can be obtained intuitively.
  • the selecting unit 120 is configured to select, among the various network nodes organized by the node organization unit 110, an alternate node that issues the same multi-source route as the route advertised by the destination node.
  • the selecting unit 120 may be specifically configured to: according to the organization of the node organization unit 110, select, in the plurality of network nodes that have the same multi-source route as the route advertised by the destination node, the cost of issuing the multi-source route is small.
  • the node is used as an alternative node.
  • the candidate node is obtained by the organization of the node organization unit 110 and the selection unit 120, and the backup route is determined by the route backup unit 11, and the route convergence unit 12 can perform fast route convergence.
  • the embodiment of the present invention further provides a route backup device.
  • the schematic diagram of the structure is shown in FIG. 6.
  • the method includes: an candidate determining unit 20, configured to determine an alternate node that performs backup on the destination node.
  • the alternative determining unit 20 may select, as an alternative node, a node having the same interface as the destination node or the same route as the destination node when determining the candidate node to back up the destination node.
  • a backup determining unit 21 for selecting an alternate node from the source node to the candidate determining unit 20 The distance from the intermediate node on the path to the candidate node is less than the distance from the intermediate node to the source node to the destination node; the route from the source node to the candidate node is taken as A backup route from the source node to the destination node.
  • the distance from the source node to the intermediate node on the path of the candidate node to the candidate node may be: from the intermediate node to the candidate node
  • the shortest distance, the sum of the cost of the route issued by the candidate node; and the distance between the intermediate node and the source node to the destination node can be: the shortest distance from the intermediate node to the source node, the shortest distance from the source node to the destination node And the sum of the cost values of the route advertised by the destination node.
  • the device in this embodiment may further include a convergence unit, configured to: when the route of the source node to the destination node fails, according to the backup route determined by the backup determining unit 21, send the source node to the destination node. The route is switched to a route from the source node to the candidate node. Then, the backup determining unit 21 determines whether the candidate node meets the condition of the ringless backup, and if yes, determines the backup route, so that the route can be quickly converged by the convergence unit, and the routing of the different network nodes is implemented. Ring protection.
  • routing backup devices provided by the embodiments of the present invention may perform corresponding steps in the method embodiments, and details are not described herein again.
  • the program can be stored in a computer readable storage medium.
  • the storage medium can include: Read only memory (ROM), random access memory (RAM), magnetic or optical disk, and the like.

Landscapes

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

Abstract

A route backup method and device are disclosed, and applied in the technical filed of communications. In the method according to an embodiment of the present invention, an alternative node that has already published a multi-source route same as a route of a destination node is first selected; if no intersection node exists on a path from a source node to the destination node and a path from the source node to the alternative node, and the distance from an intermediate node, on the path from the source node to the alternative node, to the alternative node is shorter than the distance from the intermediate node through the source node to the destination node, a route from the source node to the alternative node is used as a backup route from the source node to the destination node. The embodiments of the present invention mainly aim at the case that multiple network nodes publish the same route, and use a low-complexity method to realize multi-source route backup.

Description

一种路由备份方法及装置 本申请要求于 2011 年 12 月 20 日提交中国专利局、 申请号为 201110430171.4、 发明名称为 "一种路由备份方法及装置" 的中国专利申请 的优先权, 其全部内容通过引用结合在本申请中。 技术领域  The present invention claims the priority of the Chinese patent application filed on December 20, 2011, the Chinese Patent Application No. 201110430171.4, entitled "A Route Backup Method and Apparatus", the entire contents of which is filed on December 20, 2011. This is incorporated herein by reference. Technical field
本发明涉及通信技术领域, 特别涉及一种路由备份方法及装置。  The present invention relates to the field of communications technologies, and in particular, to a route backup method and apparatus.
背景技术 Background technique
数据通信网络主要是由互联网协议(Internet Protocol, IP )的协议栈承 载, 每个 IP地址都标志着网络中一个主机的确切地址。 在 IP网络中, 路由器 作为基本网络节点, 承担着传递 IP报文的角色, 具体地, 在传递 IP报文的过 程中,路由器要在本地的 IP路由表中查询对应该 IP报文地址的出接口, 然后 再将该 IP报文从这个出接口中发出。  The data communication network is mainly carried by the protocol stack of the Internet Protocol (IP). Each IP address marks the exact address of a host in the network. In an IP network, a router acts as a basic network node and assumes the role of transmitting IP packets. Specifically, in the process of transmitting IP packets, the router queries the local IP routing table for the corresponding IP packet address. Interface, and then send the IP packet from this outbound interface.
内部网关协议( Internal Gateway Protocol, IGP )是 IP网络中最常用的 路由协议, 包括开放式最短路径优先(Open Shortest Path First, OSPF ), 中 间系统到中间系统的路由选择协议 ( Intermediate System to Intermediate System Routing Protocol , IS-IS ), 和路由信息协议 ( Routing information Protocol, RIP )等。 当网络拓朴发生变化时, 如链路故障, 各个网络节点 之间要重新进行路由协议的交互来生成新的路由表, 即路由收敛的过程。  The Internal Gateway Protocol (IGP) is the most commonly used routing protocol in IP networks, including Open Shortest Path First (OSPF), Intermediate System to Intermediate System. Routing Protocol, IS-IS), and Routing Information Protocol (RIP). When the network topology changes, such as a link failure, each network node needs to re-implement the routing protocol interaction to generate a new routing table, that is, the route convergence process.
现有一种快速重路由 (Fast Reroute, FRR ) 的方法主要是: 在链路发 生故障之前按一定算法产生备份路由, 并将备份路由的信息提前下发到路 由器的 IP路由表中进行储存, 当故障发生时,路由器直接使用 IP路由表中备 份路由的信息转发 IP报文,保证业务报文转发的不中断。上述在产生备份路 由时, 可以通过部分路由计算( Partial Routes Calculation, PRC ) 的路由组 织方式, 或是通过无环备选路径(Loop-Free Alternates, LFA )等方法进行 确定备份路由。其中对于 PRC方法主要是以网络节点为单元,将各个网络节 点发布的路由 (一个网络节点可能会发布多条路由)进行组织, 这样就可 得知达到目的网络节点的路径, 即最短路径优选(Shortest Path First, SPF ) 的计算, 则到达目的路由的备份路由会继承到达目的网络节点的备份路由; 而 LFA方法中主要是以路由为单位,将直接可达目的路由且不会产生环路的 路由作为备份路由。 The existing methods of the Fast Reroute (FRR) are mainly: The backup route is generated according to a certain algorithm before the link is faulty, and the information of the backup route is sent to the IP routing table of the router for storage in advance. When a fault occurs, the router directly forwards the IP packets using the information of the backup routes in the IP routing table to ensure that the service packets are forwarded without interruption. When the backup route is generated, the route routing method of Partial Routes Calculation (PRC) may be used, or the backup route may be determined by a method such as Loop-Free Alternates (LFA). The PRC method is mainly based on a network node, and the routes advertised by each network node (a network node may issue multiple routes) are organized, so that the path to the destination network node, that is, the shortest path preference is known. The calculation of the Shortest Path First (SPF), the backup route to the destination route inherits the backup route to the destination network node; and the LFA method is mainly based on the route, which will directly reach the destination route and will not generate a loop. Routing as a backup route.
上述现有的 PRC方法和 LFA方法中进行路由备份的确定时,只针对各个 网络节点发布不同路由的情况, 但是实际应用中多个网络节点可能会发布 同一条路由即多源路由, 现有的方案中并没有针对多源路由进行备份的方 法。  In the above-mentioned existing PRC method and the LFA method, when routing backup is determined, only different routes are issued for each network node, but in actual applications, multiple network nodes may issue the same route, that is, multi-source routing, existing There is no way to back up multiple source routes in the solution.
发明内容 Summary of the invention
本发明一方面提供一种路由备份方法及装置, 实现了多源路由的备份。 本发明一方面提供一种路由备份方法, 包括:  One aspect of the present invention provides a route backup method and apparatus, which implements backup of multiple source routes. An aspect of the present invention provides a route backup method, including:
选择发布了与目的节点发布的路由相同的多源路由的备选节点; 若从源节点分别到所述目的节点和所述备选节点的路径上没有交集的 节点, 且从所述源节点到所述备选节点的路径上的中间节点到所述备选节 点的距离, 小于从所述中间节点返回所述源节点再到所述目的节点的距离, 将所述源节点到备选节点的路由作为所述源节点到目的节点的备份路由。  Selecting an alternate node that has issued the same multi-source route as the route advertised by the destination node; if there is no intersection node from the source node to the path of the destination node and the candidate node, and from the source node The distance from the intermediate node on the path of the candidate node to the candidate node is smaller than the distance from the intermediate node to the source node to the destination node, and the source node is to the candidate node. The route acts as a backup route from the source node to the destination node.
本发明一方面提供一种路由备份方法, 包括:  An aspect of the present invention provides a route backup method, including:
确定对目的节点进行备份的备选节点;  Determining an alternate node to back up the destination node;
若从源节点到所述备选节点的路径上的中间节点到所述备选节点的距 离, 小于从所述中间节点返回所述源节点再到所述目的节点的距离; 将所 述源节点到所述备选节点的路由作为所述源节点到目的节点的备份路由。  If the distance from the source node to the intermediate node on the path of the candidate node to the candidate node is less than the distance from the intermediate node to the source node to the destination node; The route to the candidate node serves as a backup route from the source node to the destination node.
本发明一方面提供一种路由备份装置, 包括:  An aspect of the present invention provides a route backup device, including:
备选选择单元, 用于选择发布了与目的节点发布的路由相同的多源路 由的备选节点;  An alternative selection unit, configured to select an alternate node that has issued the same multi-source route as the route advertised by the destination node;
路由备份单元, 用于当从源节点分别到所述目的节点和所述备选选择 单元选择的备选节点的路径上没有交集的节点, 且从所述源节点到所述备 选节点的路径上的所述中间节点到所述备选节点的距离, 小于从所述中间 节点返回所述源节点再到所述目的节点的距离, 将所述源节点到所述备选 节点的路由作为所述源节点到目的节点的备份路由。  a route backup unit, configured to: when there is no intersection on the path of the candidate node selected from the source node to the destination node and the candidate selection unit, and the path from the source node to the candidate node The distance from the intermediate node to the candidate node is smaller than the distance from the intermediate node to the source node to the destination node, and the route from the source node to the candidate node is used as a location A backup route from the source node to the destination node.
本发明一方面提供一种路由备份装置, 包括:  An aspect of the present invention provides a route backup device, including:
备选确定单元, 用于确定对目的节点进行备份的备选节点;  An alternative determining unit, configured to determine an alternate node that backs up the destination node;
备份确定单元, 用于当从源节点到所述备选节点的路径上的中间节点 到所述备选节点的距离, 小于从所述中间节点返回所述源节点再到所述目 的节点的距离; 将所述源节点到所述备选节点的路由作为所述源节点到目 的节点的备份路由。 a backup determining unit, configured to: when a distance from an intermediate node on the path from the source node to the candidate node to the candidate node is less than a distance from the intermediate node to the source node to the destination node Routing the source node to the candidate node as the source node to the destination Backup route for the node.
根据本发明一方面的方法, 先选择发布了与目的节点的路由相同的多 源路由的备选节点; 若从源节点分别到目的节点和备选节点的路径上没有 交集的节点, 且从源节点到备选节点的路径上的中间节点到备选节点的距 离, 小于从中间节点返回源节点再到目的节点的距离, 则将源节点到备选 节点的路由作为源节点到目的节点的备份路由以进行路由快速收敛。 本发 明实施例中主要是针对多个网络节点发布同一条路由的情况, 釆用一种复 杂度较低的方法进行多源路由备份。  According to the method of an aspect of the present invention, an alternative node that issues the same multi-source route as the route of the destination node is selected first; if there is no intersection node from the source node to the path of the destination node and the candidate node, and the source is The distance from the intermediate node to the candidate node on the path of the node to the candidate node is less than the distance from the intermediate node to the source node and then to the destination node, and the route from the source node to the candidate node is used as the backup from the source node to the destination node. Routes for fast route convergence. In the embodiment of the present invention, the same route is issued for multiple network nodes, and a multi-source route backup is performed by using a method with low complexity.
附图说明 DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对 实施例或现有技术描述中所需要使用的附图作简单地介绍, 显而易见地, 下面描述中的附图仅仅是本发明的一些实施例, 对于本领域普通技术人员 来讲, 在不付出创造性劳动性的前提下, 还可以根据这些附图获得其他的 附图。  In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description are only It is a certain embodiment of the present invention, and other drawings can be obtained from those skilled in the art without any inventive labor.
图 1是本发明实施例提供的一种路由备份方法流程图;  FIG. 1 is a flowchart of a route backup method according to an embodiment of the present invention;
图 2是本发明实施例中按照 S PF算法组织的网络节点的关系结构示意 图;  2 is a schematic diagram showing the relationship structure of network nodes organized according to the S PF algorithm in the embodiment of the present invention;
图 3是按照本发明实施例中进行路由备份时, 各网络节点之间的关系结 构示意图;  3 is a schematic diagram showing the relationship between network nodes when routing backup is performed according to an embodiment of the present invention;
图 4是本发明实施例提供的一种路由备份装置的结构示意图;  4 is a schematic structural diagram of a route backup device according to an embodiment of the present invention;
图 5是本发明实施例提供的另一种路由备份装置的结构示意图; 图 6是本发明实施例提供的另一种路由备份装置的结构示意图。  FIG. 5 is a schematic structural diagram of another route backup device according to an embodiment of the present invention; FIG. 6 is a schematic structural diagram of another route backup device according to an embodiment of the present invention.
具体实施方式 detailed description
下面将结合本发明实施例中的附图, 对本发明实施例中的技术方案进 行清楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而不是全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没 有作出创造性劳动前提下所获得的所有其他实施例, 都属于本发明保护的 范围。  The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, but not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
本发明实施例提供一种路由备份方法, 可以应用于多个网络节点发布 同一个路由的场景下, 路由备份装置比如网管设备或网络节点等设备对源 节点到目的节点路径的备份, 其方法流程图如图 1所示, 包括: 步骤 101 , 选择发布了与目的节点发布的路由相同的多源路由的备选节 点。 The embodiment of the present invention provides a route backup method, which can be applied to a backup of a path from a source node to a destination node by a device such as a network management device or a network node in a scenario where multiple network nodes advertise the same route. The figure is shown in Figure 1, including: Step 101: Select an alternate node that has issued the same multi-source route as the route advertised by the destination node.
可以理解, 每个网络节点都可以发布至少一条自己直接可达的路由即 本地路由; 且多个网络节点可能会发布同一条路由即多源路由, 可以发生 在 IGP域边界的网络节点,主要是由于 IGP域外对于 IGP域内是不可见的, 因 此 IGP域边界的多个网络节点可能会将 IGP域外部的路由作为自己的路由进 行发布, 从而产生了多源路由。 其中网络节点在发布路由时, 可以发布用 于唯一标识一条路由的前缀和开销值等信息, 多个网络节点发布同一条路 由是指多个网络节点发布的路由地址相同即路由的前缀相同, 但是发布的 其它信息比如开销值可以不相同。  It can be understood that each network node can advertise at least one route that is directly reachable by itself, that is, a local route; and multiple network nodes may advertise the same route, that is, a multi-source route, which may occur at a network node at the boundary of the IGP domain, mainly Since the IGP domain is invisible to the IGP domain, multiple network nodes at the edge of the IGP domain may advertise routes outside the IGP domain as their own routes, thus generating multi-source routes. When a network node advertises a route, it can advertise information such as the prefix and the cost value that uniquely identifies a route. When multiple network nodes advertise the same route, the route addresses advertised by multiple network nodes are the same, that is, the prefix of the route is the same, but Other information posted, such as cost values, may be different.
路由备份装置在选择备选节点时,可以先通过 SPF方法组织各个网络节 点发布的路由, 然后在组织的各个网络节点中选择备选节点, 具体在根据 SPF方法进行组织时, 路由备份装置一方面可以以 "路由" 为基点, 将所有 发布了同一条路由的网络节点组织在一起, 另一方面以 "网络节点" 为基 点, 将一个网络节点发布的所有路由都组织在一起, 这样就可以得到发布 同一条路由的多个网络节点的信息。  When selecting an alternate node, the routing backup device may first organize the routes advertised by each network node by using the SPF method, and then select an alternate node among the various network nodes of the organization, specifically when the organization is performed according to the SPF method, the routing backup device is You can use "route" as the base point to organize all network nodes that have published the same route. On the other hand, based on the "network node", all the routes advertised by one network node are organized together. Information about multiple network nodes that advertise the same route.
具体地, 在对源节点到目的节点的路由进行备份计算时, 可以先根据 各个网络节点发布的同一条路由的信息来选择一个备选节点, 比如可以在 发布了与目的节点发布的路由相同的多源路由的多个网络节点中, 选择发 布这条多源路由的开销值较小的网络节点作为备选节点。  Specifically, when performing backup calculation on the route from the source node to the destination node, the candidate node may be selected according to the information of the same route advertised by each network node. For example, the route advertised by the destination node may be the same. Among the multiple network nodes of the multi-source route, the network node with the smaller cost value of the multi-source route is selected as the candidate node.
例如图 2所示, 通过 SPF方法的组织后, 可以看出, 在节点 A、 B、 C和 D中, 节点 A为根节点, 节点 B发布了三条路由 bl到 b3 , 节点 C发布了三条路 由 cl到 c3 , 节点 D发布了三条路由 dl到 d3 , 而节点 B、 C和 D都发布了同一条 路由 10.0.0.0/24, 即为多源路由。 如果节点 B为目的节点, 则可以选择节点 C 或节点 D作为备选节点。  For example, as shown in Figure 2, after the organization of the SPF method, it can be seen that among nodes A, B, C, and D, node A is the root node, node B issues three routes bl to b3, and node C issues three routes. From cl to c3, node D issues three routes dl to d3, and nodes B, C, and D both issue the same route 10.0.0.0/24, which is a multi-source route. If Node B is the destination node, Node C or Node D can be selected as the candidate node.
步骤 102, 若从源节点分别到目的节点和备选节点的路径上没有交集的 节点, 且从源节点到备选节点的路径上的中间节点到备选节点的距离, 小 于从中间节点返回源节点再到目的节点的距离, 将源节点到备选节点的路 由作为源节点到目的节点的备份路由。  Step 102: If there is no intersection node from the source node to the path of the destination node and the candidate node respectively, and the distance from the source node to the intermediate node of the candidate node to the candidate node is smaller than the return source from the intermediate node The distance from the node to the destination node, and the route from the source node to the candidate node is used as the backup route from the source node to the destination node.
在选择了备选节点后, 需要确定该备选节点是否能作为目的节点的保 护, 需要满足如下的条件: ( 1 )源节点分别到目的节点和备选节点的路径上没有交集的节点(除 了源节点): After the candidate node is selected, it is necessary to determine whether the candidate node can be used as the protection of the destination node, and the following conditions are met: (1) The node with no intersection on the path from the source node to the destination node and the alternate node (except the source node):
比如从源节点到目的节点的路径上经过节点 、 b和 c , 则从源节点到备 选节点的路径上就不能经过节点 a、 b和 c , 也就是两个不同的网络节点需要 有不同的下一跳节点, 这样就保证了从源节点到备选节点的路径上的任一 个网络节点不会绕回到源节点到目的节点的路径上。  For example, from the source node to the destination node through the nodes, b and c, the path from the source node to the candidate node cannot pass through nodes a, b and c, that is, two different network nodes need to have different The next hop node ensures that any network node on the path from the source node to the alternate node does not wrap around the path from the source node to the destination node.
( 2 )从源节点到备选节点的路径上的任一个中间节点(不包括源节点 和备选节点)到备选节点的距离 S1 , 小于从中间节点返回源节点再到目的 节点的距离 S2 , 其中 S2为从中间节点返回源节点的距离, 与从源节点到目 的节点的距离之和, 即 S S2:  (2) The distance S1 from any one of the intermediate nodes (excluding the source node and the candidate node) on the path from the source node to the candidate node to the candidate node is smaller than the distance S2 from the intermediate node to the source node to the destination node Where S2 is the distance from the intermediate node to the source node and the sum of the distance from the source node to the destination node, ie S S2:
可以理解, 网络节点在发布路由时, 可以发布用于唯一标识一条路由 的前缀和开销值等信息, 其中开销值可以为指示距离, 带宽和延时等等信 息, 以供其它网络节点进行最优路由的计算。 在本实施例中, 路由备份装 置在进行路由备份的过程中, 考虑了各个网络节点发布的开销值, 具体地, 本实施例中从中间节点到备选节点的距离 S 1可以为从中间节点到备选节点 的最短距离, 与备选节点发布多源路由的开销值之和, 其中该多源路由与 目的节点的一个路由相同。  It can be understood that, when a route is advertised, the network node may advertise information such as a prefix and an overhead value for uniquely identifying a route, where the cost value may be information indicating distance, bandwidth, delay, etc., for other network nodes to perform optimally. The calculation of the route. In this embodiment, the routing backup device considers the cost value advertised by each network node in the process of performing the route backup. Specifically, the distance S 1 from the intermediate node to the candidate node in this embodiment may be the intermediate node. The shortest distance to the candidate node, and the sum of the cost values of the multi-source route issued by the candidate node, wherein the multi-source route is the same as the route of the destination node.
而中间节点返回源节点再到目的节点的距离 S2为从中间节点到源节点 的最短距离, 从源节点到目的节点的最短距离, 及目的节点发布路由的开 销值之和。  The distance from the intermediate node to the destination node to the destination node, S2, is the shortest distance from the intermediate node to the source node, the shortest distance from the source node to the destination node, and the sum of the distribution values of the destination node's published routes.
当满足上述条件 1和 2时, 即可实现无环备份, 将源节点到备选节点的 理由作为源节点到目的节点的备份路由, 则源节点的路由下一跳的备份即 为源节点到备选节点路由中源节点的下一跳。 在确定备份路由后, 可以根 据该备份路由进行快速收敛, 具体地, 如果源节点到目的节点的路由发生 故障时, 则将从源节点到目的节点的路由切换为从源节点到备选节点的路 由。  When the above conditions 1 and 2 are met, the ringless backup can be implemented. The reason for the source node to the candidate node is used as the backup route from the source node to the destination node. The backup of the next hop of the source node is the source node. The next hop of the source node in the alternate node route. After determining the backup route, the route can be quickly converge according to the backup route. Specifically, if the route from the source node to the destination node fails, the route from the source node to the destination node is switched from the source node to the candidate node. routing.
例如图 3所示, 节点 S为源节点, 在节点 S中储存的路由表中包括目的节 点 A上发布的一条路由 10.0.0.10、 下一跳节点 E及节点 S到目的节点 A的距离 30, 其中从节点 S到目的节点 A的距离为从节点 S到节点 A的最短距离 20与节 点 A发布路由 10.0.0.10的开销值 10之和,而从节点 S到节点 A的最短距离可以 为节点 E发布路由的开销值 10与节点 A发布路由的开销值之和 20; 在备选节 点 B上也发布了这条路由 10.0.0.10,则节点 S可以确定节点 B是否能作为节点 A的保护节点, 具体地: For example, as shown in FIG. 3, the node S is a source node, and the routing table stored in the node S includes a route 10.0.0.10, a next hop node E, and a distance 30 from the node S to the destination node A, which are posted on the destination node A, The distance from the node S to the destination node A is the sum of the shortest distance 20 from the node S to the node A and the cost value 10 of the route 10.0.0.10 issued by the node A, and the shortest distance from the node S to the node A may be the node E. The sum of the cost value of the advertised route 10 and the cost of the route advertised by node A 20; Node B also publishes this route 10.0.0.10, then node S can determine whether node B can act as a protection node for node A, specifically:
对于从节点 S到节点 B路径上的一个中间节点 N, 本实施例中, 从节点 N 到节点 B的距离 S1为从节点 N到节点 B的最短距离 10与节点 B发布路由 10.0.0.10的开销值 100之和 110 , 而从节点 N返回节点 S再到节点 A的距离 S2 为从节点 N到节点 S的最短距离 20、 从节点 S到节点 A的最短距离 20及节点 A 发送路由 10.0.0.10的开销值 10的和 50,由于 S1大于 S2,则不能实现无环备份, 即从节点 S到节点 B的路径不能作为从节点 S到节点 A的备份路径, 即节点 N 不能作为节点 S的备份路由。  For an intermediate node N on the path from the node S to the node B, in this embodiment, the distance S1 from the node N to the node B is the shortest distance 10 from the node N to the node B and the overhead of issuing the route 10.0.0.10 to the node B. The sum 100 of the values 100, and the distance S2 from the node N back to the node S to the node A is the shortest distance 20 from the node N to the node S, the shortest distance 20 from the node S to the node A, and the route A.10.10. The cost value of 10 and 50, because S1 is greater than S2, can not achieve a ringless backup, that is, the path from node S to node B can not be used as a backup path from node S to node A, that is, node N cannot be used as a backup of node S routing.
假设网络节点数量为 N, 单源路由数为 M, 多源路由数为 P, 可选择成 为备份的网络节点数为 Q, 则按照现有的 LFA算法进行路由备份的复杂度为 (M+P)*Q, 而按照本实施例的方法进行多源路由备份的复杂度为 P, 其中复 杂度可以指示在进行路由备份的计算的过程中, 使用备份公式来确定备份 路由的次数等信息, 可见釆用本发明实施例的方法进行多源路由备份的复 杂度较低。  Assume that the number of network nodes is N, the number of single-source routes is M, and the number of multi-source routes is P. If the number of network nodes that can be backed up is Q, the complexity of routing backup according to the existing LFA algorithm is (M+P). *Q, and the complexity of the multi-source route backup according to the method of the embodiment is P, wherein the complexity may indicate that in the process of performing the route backup calculation, the backup formula is used to determine the number of times of the backup route, and the like. The complexity of performing multi-source route backup by using the method of the embodiment of the present invention is low.
可见, 本发明实施例中, 先选择发布了与目的节点发布的路由相同的 多源路由的备选节点; 若从源节点分别到目的节点和备选节点的路径上没 有交集的节点, 且从源节点到备选节点的路径上的中间节点到备选节点的 距离, 小于从中间节点返回源节点再到目的节点的距离, 则将源节点到备 选节点的路由作为源节点到目的节点的备份路由以进行路由快速收敛。 本 发明实施例中主要是针对多个网络节点发布同一条路由的情况, 釆用一种 复杂度较低的方法进行多源路由备份。 结果选择备选节点, 然后再确定该备选节点是否符合无环备份的条件, 如 果是, 则确定备份路由, 可见, 本发明实施例中是将路由组织的算法与无 环备份的确定进行结合。 本发明实施例还提供一种路由备份方法, 主要是对不同网络节点之间 进行保护的一种路由备份方法, 包括:  It can be seen that, in the embodiment of the present invention, the candidate node that is the same as the route advertised by the destination node is selected first; if there is no intersection node from the source node to the path of the destination node and the candidate node respectively, and The distance from the intermediate node to the candidate node on the path from the source node to the candidate node is less than the distance from the intermediate node to the source node to the destination node, and the route from the source node to the candidate node is used as the source node to the destination node. Back up routes for fast route convergence. In the embodiment of the present invention, the same route is issued for multiple network nodes, and a multi-source route backup is performed by using a method with low complexity. As a result, the candidate node is selected, and then the candidate node is determined to meet the condition of the acyclic backup. If yes, the backup route is determined. In the embodiment of the present invention, the routing organization algorithm is combined with the determination of the ringless backup. . The embodiment of the invention further provides a route backup method, which is mainly a route backup method for protecting between different network nodes, including:
步骤 201 , 确定对目的节点进行备份的备选节点。  Step 201: Determine an alternate node that performs backup on the destination node.
在确定对目的节点进行备份的备选节点时, 可以选择对目的节点具有 相同接口或与目的节点发布了相同路由的节点作为备选节点。 When determining the candidate node to back up the destination node, you can choose to have the destination node The same interface or a node that has the same route as the destination node is elected as an alternate node.
步骤 202, 若从源节点到备选节点的路径上的中间节点到备选节点的距 离, 小于从中间节点返回源节点再到目的节点的距离, 则源节点到备选节 点的路径上的任一个中间节点就不会返回到源节点到目的节点的路径上, 可以进行无环备份, 就会将源节点到备选节点的路由作为源节点到目的节 点的备份路由。  Step 202: If the distance from the source node to the alternate node on the path of the candidate node to the candidate node is less than the distance from the intermediate node to the source node and then to the destination node, then the path from the source node to the candidate node is An intermediate node will not return to the path from the source node to the destination node. A ringless backup can be performed, and the route from the source node to the candidate node is used as the backup route from the source node to the destination node.
如果确定的备选节点与目的节点发布了同一条路由, 则从源节点到备 选节点的路径上的中间节点到备选节点的距离可以为: 从中间节点到备选 节点的最短距离, 与备选节点发布路由的开销值之和; 而中间节点返回源 节点再到目的节点的距离可以为: 从中间节点到源节点的最短距离, 从源 节点到目的节点的最短距离, 及目的节点发布路由的开销值之和等。  If the determined candidate node and the destination node issue the same route, the distance from the intermediate node to the candidate node on the path from the source node to the candidate node may be: the shortest distance from the intermediate node to the candidate node, and The candidate node advertises the sum of the cost values of the route; and the distance from the intermediate node to the source node to the destination node can be: the shortest distance from the intermediate node to the source node, the shortest distance from the source node to the destination node, and the destination node release The sum of the cost values of the routes, and so on.
需要说明的是, 在确定备份路由后, 可以根据该备份路由进行快速收 敛, 具体地, 如果源节点到目的节点的路由发生故障时, 则将从源节点到 目的节点的路由切换为从源节点到备选节点的路由。  It should be noted that after the backup route is determined, the backup route can be quickly converge according to the backup route. Specifically, if the route from the source node to the destination node fails, the route from the source node to the destination node is switched to the source node. The route to the alternate node.
本发明实施例中先确定对目的节点进行备份的备选节点, 再确定该备 选节点是否符合无环备份的条件, 如果是, 则确定备份路由, 实现了对不 同网络节点的路由进行的无环保护。 本发明实施例还提供一种路由备份装置,结构示意图如图 4所示, 包括: 备选选择单元 10 , 用于选择发布了与目的节点发布的路由相同的多源 路由的备选节点;  In the embodiment of the present invention, the candidate node that performs backup on the destination node is first determined, and then the candidate node is determined to meet the condition of the ringless backup. If yes, the backup route is determined, and the route to the different network nodes is implemented. Ring protection. The embodiment of the present invention further provides a route backup device. The structure of the device is as shown in FIG. 4, and includes: an alternative selection unit 10, configured to select an alternate node that has issued the same multi-source route as the route advertised by the destination node;
路由备份单元 11 , 用于当从源节点分别到所述目的节点和所述备选选 择单元 10选择的备选节点的路径上没有交集的节点, 且从所述源节点到所 述备选节点的路径上的中间节点到所述备选节点的距离, 小于从所述中间 节点返回所述源节点再到所述目的节点的距离, 将所述源节点到所述备选 节点的路由作为所述源节点到目的节点的备份路由。  The routing backup unit 11 is configured to: when there is no intersection on the path from the source node to the destination node and the candidate node selected by the candidate selection unit 10, and from the source node to the candidate node The distance from the intermediate node to the candidate node on the path is smaller than the distance from the intermediate node to the source node to the destination node, and the route from the source node to the candidate node is taken as A backup route from the source node to the destination node.
其中从源节点到备选节点的路径上的任一个中间节点到备选节点的距 离可以为: 从中间节点到备选节点的最短距离, 与备选节点发布多源路由 的开销值之和; 而中间节点返回源节点再到目的节点的距离可以为: 从中 间节点到源节点的最短距离, 从源节点到目的节点的最短距离, 及目的节 点发布路由的开销值之和。 可见, 本发明实施例中, 备选选择单元 10先选择发布了与目的节点发 布的路由相同的多源路由的备选节点; 若从源节点分别到目的节点和备选 节点的路径上没有交集的节点, 且从源节点到备选节点的路径上的中间节 点到备选节点的距离, 小于从中间节点返回源节点再到目的节点的距离, 则路由备份单元 11将源节点到备选节点的路由作为源节点到目的节点的备 份路由。 本发明实施例中主要是针对多个网络节点发布同一条路由的情况, 釆用一种复杂度较低的方法进行多源路由备份。 The distance from any one of the intermediate nodes to the candidate nodes in the path from the source node to the candidate node may be: a shortest distance from the intermediate node to the candidate node, and a sum of the cost values of the multi-source route issued by the candidate node; The distance from the intermediate node to the source node to the destination node may be: the shortest distance from the intermediate node to the source node, the shortest distance from the source node to the destination node, and the sum of the cost values of the route advertised by the destination node. It can be seen that, in the embodiment of the present invention, the candidate selecting unit 10 first selects an alternate node that has the same multi-source route as the route advertised by the destination node; if there is no intersection on the path from the source node to the destination node and the candidate node respectively The node, and the distance from the intermediate node to the alternate node on the path from the source node to the candidate node is less than the distance from the intermediate node to the source node and then to the destination node, then the route backup unit 11 will source the node to the candidate node. The route acts as a backup route from the source node to the destination node. In the embodiment of the present invention, the same route is issued for multiple network nodes, and a multi-source route backup is performed by using a method with low complexity.
参考图 5所示, 在一个具体的实施例中, 路由备份装置除了包括如图 4 所示的结构外, 还可以包括路由收敛单元 12 , 且备选选择单元 10具体可以 包括节点组织单元 110和选择单元 120 , 其中:  Referring to FIG. 5, in a specific embodiment, the route backup device may include a route convergence unit 12 in addition to the structure shown in FIG. 4, and the candidate selection unit 10 may specifically include a node organization unit 110 and Selection unit 120, wherein:
路由收敛单元 12, 用于当所述源节点到所述目的节点的路由发生故障, 根据路由备份单元 11确定的备份路由, 将所述源节点到所述目的节点的路 由切换为从所述源节点到所述备选节点的路由。  The route convergence unit 12 is configured to: when the route from the source node to the destination node fails, switch the route of the source node to the destination node to be from the source according to the backup route determined by the route backup unit 11. The route of the node to the alternate node.
节点组织单元 110 , 用于通过最短路径优选 SPF组织各个网络节点发布 的路由; 通过节点组织单元 110组织后, 可以直观地得到发布同一条路由的 多个网络节点的信息。  The node organization unit 110 is configured to organize the routes advertised by the network nodes by using the shortest path preference SPF. After being organized by the node organization unit 110, the information of multiple network nodes that advertise the same route can be obtained intuitively.
选择单元 120 , 用于在所述节点组织单元 110组织的各个网络节点中, 选择发布了与目的节点发布的路由相同的多源路由的备选节点。  The selecting unit 120 is configured to select, among the various network nodes organized by the node organization unit 110, an alternate node that issues the same multi-source route as the route advertised by the destination node.
选择单元 120具体可以用于根据所述节点组织单元 110的组织, 在发布 了与目的节点发布的路由相同的多源路由的多个网络节点中, 选择发布所 述多源路由的开销值较小的节点作为备选节点。  The selecting unit 120 may be specifically configured to: according to the organization of the node organization unit 110, select, in the plurality of network nodes that have the same multi-source route as the route advertised by the destination node, the cost of issuing the multi-source route is small. The node is used as an alternative node.
本实施例中, 通过节点组织单元 110的组织和选择单元 120的选择后得 到备选节点, 并由路由备份单元 11确定备份路由, 且可以由路由收敛单元 12进行路由快速收敛。 本发明实施例还提供一种路由备份装置,结构示意图如图 6所示, 包括: 备选确定单元 20 , 用于确定对目的节点进行备份的备选节点。  In this embodiment, the candidate node is obtained by the organization of the node organization unit 110 and the selection unit 120, and the backup route is determined by the route backup unit 11, and the route convergence unit 12 can perform fast route convergence. The embodiment of the present invention further provides a route backup device. The schematic diagram of the structure is shown in FIG. 6. The method includes: an candidate determining unit 20, configured to determine an alternate node that performs backup on the destination node.
备选确定单元 20在确定对目的节点进行备份的备选节点时, 可以选择 对目的节点具有相同接口或与目的节点发布了相同路由的节点作为备选节 点。  The alternative determining unit 20 may select, as an alternative node, a node having the same interface as the destination node or the same route as the destination node when determining the candidate node to back up the destination node.
备份确定单元 21, 用于当从源节点到备选确定单元 20确定的备选节点 的路径上的中间节点到所述备选节点的距离, 小于从所述中间节点返回所 述源节点再到所述目的节点的距离; 将所述源节点到所述备选节点的路由 作为所述源节点到目的节点的备份路由。 A backup determining unit 21 for selecting an alternate node from the source node to the candidate determining unit 20 The distance from the intermediate node on the path to the candidate node is less than the distance from the intermediate node to the source node to the destination node; the route from the source node to the candidate node is taken as A backup route from the source node to the destination node.
如果备选确定单元 20确定的备选节点与目的节点发布了同一条路由, 则从源节点到备选节点的路径上的中间节点到备选节点的距离可以为: 从 中间节点到备选节点的最短距离, 与备选节点发布路由的开销值之和; 而 中间节点返回源节点再到目的节点的距离可以为: 从中间节点到源节点的 最短距离, 从源节点到目的节点的最短距离, 及目的节点发布路由的开销 值之和等。  If the candidate node determined by the candidate determining unit 20 issues the same route as the destination node, the distance from the source node to the intermediate node on the path of the candidate node to the candidate node may be: from the intermediate node to the candidate node The shortest distance, the sum of the cost of the route issued by the candidate node; and the distance between the intermediate node and the source node to the destination node can be: the shortest distance from the intermediate node to the source node, the shortest distance from the source node to the destination node And the sum of the cost values of the route advertised by the destination node.
且本实施例中的装置还可以包括收敛单元, 用于当所述源节点到所述 目的节点的路由发生故障, 根据备份确定单元 21确定的备份路由, 将所述 源节点到所述目的节点的路由切换为从所述源节点到所述备选节点的路 由。 点, 再由备份确定单元 21确定该备选节点是否符合无环备份的条件, 如果 是, 则确定备份路由, 从而可以通过收敛单元进行路由快速收敛, 实现了 对不同网络节点的路由进行的无环保护。  The device in this embodiment may further include a convergence unit, configured to: when the route of the source node to the destination node fails, according to the backup route determined by the backup determining unit 21, send the source node to the destination node. The route is switched to a route from the source node to the candidate node. Then, the backup determining unit 21 determines whether the candidate node meets the condition of the ringless backup, and if yes, determines the backup route, so that the route can be quickly converged by the convergence unit, and the routing of the different network nodes is implemented. Ring protection.
本发明实施例提供的各种路由备份装置可以执行方法实施例中的相应 步骤, 在此不再赘述。  The various routing backup devices provided by the embodiments of the present invention may perform corresponding steps in the method embodiments, and details are not described herein again.
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分 步骤是可以通过程序来指令相关的硬件来完成, 该程序可以存储于一计算 机可读存储介质中, 存储介质可以包括: 只读存储器(ROM )、 随机存取存 储器(RAM )、 磁盘或光盘等。  A person skilled in the art can understand that all or part of the steps of the foregoing embodiments can be completed by a program to instruct related hardware. The program can be stored in a computer readable storage medium. The storage medium can include: Read only memory (ROM), random access memory (RAM), magnetic or optical disk, and the like.
以上对本发明实施例所提供的路由备份方法及装置, 进行了详细介绍, 例的说明只是用于帮助理解本发明的方法及其核心思想; 同时, 对于本领 域的一般技术人员, 依据本发明的思想, 在具体实施方式及应用范围上均 会有改变之处, 综上所述, 本说明书内容不应理解为对本发明的限制。  The method and apparatus for routing backup provided by the embodiments of the present invention are described in detail. The description of the examples is only used to help understand the method and core idea of the present invention. Meanwhile, for those skilled in the art, according to the present invention, The present invention is not limited by the scope of the present invention.

Claims

权利要求 Rights request
1、 一种路由备份方法, 其特征在于, 包括:  A route backup method, comprising:
选择发布了与目的节点发布的路由相同的多源路由的备选节点; 若从源节点分别到所述目的节点和所述备选节点的路径上没有交集的 节点, 且从所述源节点到所述备选节点的路径上的中间节点到所述备选节 点的距离, 小于从所述中间节点返回所述源节点再到所述目的节点的距离, 将所述源节点到备选节点的路由作为所述源节点到目的节点的备份路由。  Selecting an alternate node that has issued the same multi-source route as the route advertised by the destination node; if there is no intersection node from the source node to the path of the destination node and the candidate node, and from the source node The distance from the intermediate node on the path of the candidate node to the candidate node is smaller than the distance from the intermediate node to the source node to the destination node, and the source node is to the candidate node. The route acts as a backup route from the source node to the destination node.
2、 如权利要求 1所述的方法, 其特征在于, 所述选择发布了与目的节 点发布的路由相同的多源路由的备选节点具体包括:通过最短路径优选 SPF 组织各个网络节点发布的路由, 并在所述组织的各个网络节点中, 选择发 布了与目的节点发布的路由相同的多源路由的备选节点。  The method of claim 1, wherein the selecting the candidate node that has the same multi-source route as the route advertised by the destination node comprises: routing the route advertised by each network node by using the shortest path preferred SPF And selecting, among the various network nodes of the organization, an alternate node that has issued the same multi-source route as the route advertised by the destination node.
3、 如权利要求 2所述的方法, 其特征在于, 所述选择发布了与目的节 点发布的路由相同的多源路由的备选节点具体包括:  The method of claim 2, wherein the selecting the candidate node that has issued the same multi-source route as the route advertised by the destination node comprises:
在发布了与目的节点发布的路由相同的多源路由的多个网络节点中, 选择发布所述多源路由的开销值较小的节点作为备选节点。  Among the plurality of network nodes that have issued the same multi-source route as the route advertised by the destination node, the node that advertises the multi-source route with the smaller cost value is selected as the candidate node.
4、 如权利要求 1至 3任一项所述的方法, 其特征在于, 所述从所述源节 点到所述备选节点的路径上的中间节点到所述备选节点的距离为: 从所述 中间节点到所述备选节点的最短距离, 与所述备选节点发布所述多源路由 的开销值之和;  The method according to any one of claims 1 to 3, wherein the distance from the intermediate node on the path from the source node to the candidate node to the candidate node is: a shortest distance from the intermediate node to the candidate node, and a sum of the cost values of the multi-source route issued by the candidate node;
所述中间节点返回所述源节点再到所述目的节点的距离为: 从所述中 间节点到所述源节点的最短距离, 从所述源节点到所述目的节点的最短距 离, 及所述目的节点发布所述路由的开销值之和。  The distance that the intermediate node returns the source node to the destination node is: a shortest distance from the intermediate node to the source node, a shortest distance from the source node to the destination node, and the The destination node advertises the sum of the cost values of the routes.
5、 如权利要求 1至 3任一项所述的方法, 其特征在于, 还包括: 当所述源节点到所述目的节点的路由发生故障, 将从所述源节点到所 述目的节点的路由切换为从所述源节点到所述备选节点的路由。  The method according to any one of claims 1 to 3, further comprising: when a route of the source node to the destination node fails, from the source node to the destination node The route is switched to a route from the source node to the alternate node.
6、 一种路由备份方法, 其特征在于, 包括:  6. A route backup method, characterized in that:
确定对目的节点进行备份的备选节点;  Determining an alternate node to back up the destination node;
若从源节点到所述备选节点的路径上的中间节点到所述备选节点的距 离, 小于从所述中间节点返回所述源节点再到所述目的节点的距离; 将所 述源节点到所述备选节点的路由作为所述源节点到目的节点的备份路由。  If the distance from the source node to the intermediate node on the path of the candidate node to the candidate node is less than the distance from the intermediate node to the source node to the destination node; The route to the candidate node serves as a backup route from the source node to the destination node.
7、 如权利要求 6所述的方法, 其特征在于, 所述备选节点与目的节点 发布同一条路由; 7. The method of claim 6, wherein the candidate node and the destination node Publish the same route;
所述从所述源节点到备选节点的路径上的中间节点到所述备选节点的 距离为: 从所述中间节点到备选节点的最短距离, 与备选节点发布路由的 开销值之和;  The distance from the intermediate node on the path from the source node to the candidate node to the candidate node is: the shortest distance from the intermediate node to the candidate node, and the cost value of the route advertised by the candidate node with;
所述中间节点返回源节点再到所述目的节点的距离为: 从所述中间节 点到源节点的最短距离, 从所述源节点到目的节点的最短距离, 及所述目 的节点发布路由的开销值之和。  The distance that the intermediate node returns to the source node and then to the destination node is: the shortest distance from the intermediate node to the source node, the shortest distance from the source node to the destination node, and the cost of the route advertised by the destination node The sum of the values.
8、 如权利要求 6或 7所述的方法, 其特征在于, 还包括:  8. The method according to claim 6 or 7, further comprising:
当所述源节点到所述目的节点的路由发生故障, 将从所述源节点到所 述目的节点的路由切换为从所述源节点到所述备选节点的路由。  When the route from the source node to the destination node fails, the route from the source node to the destination node is switched to a route from the source node to the candidate node.
9、 一种路由备份装置, 其特征在于, 包括:  9. A route backup device, comprising:
备选选择单元, 用于选择发布了与目的节点发布的路由相同的多源路 由的备选节点;  An alternative selection unit, configured to select an alternate node that has issued the same multi-source route as the route advertised by the destination node;
路由备份单元, 用于当从源节点分别到所述目的节点和所述备选选择 单元选择的备选节点的路径上没有交集的节点, 且从所述源节点到所述备 选节点的路径上的所述中间节点到所述备选节点的距离, 小于从所述中间 节点返回所述源节点再到所述目的节点的距离, 将所述源节点到所述备选 节点的路由作为所述源节点到目的节点的备份路由。  a route backup unit, configured to: when there is no intersection on the path of the candidate node selected from the source node to the destination node and the candidate selection unit, and the path from the source node to the candidate node The distance from the intermediate node to the candidate node is smaller than the distance from the intermediate node to the source node to the destination node, and the route from the source node to the candidate node is used as a location A backup route from the source node to the destination node.
10、 如权利要求 9所述的装置, 其特征在于, 所述备选选择单元包括: 节点组织单元,用于通过最短路径优选 SPF组织各个网络节点发布的路 由;  The device according to claim 9, wherein the candidate selection unit comprises: a node organization unit, configured to organize a route issued by each network node by using a shortest path preference SPF;
选择单元, 用于在所述节点组织单元组织的各个网络节点中, 选择发 布了与目的节点发布的路由相同的多源路由的备选节点。  And a selecting unit, configured to select, in each network node of the node organization unit, an alternate node that has issued the same multi-source route as the route advertised by the destination node.
11、 如权利要求 7所述的装置, 其特征在于, 所述选择单元, 用于根据 所述节点组织单元的组织, 在发布了与目的节点发布的路由相同的多源路 由的多个网络节点中, 选择发布所述多源路由的开销值较小的节点作为备 选节点。  The device according to claim 7, wherein the selecting unit is configured to, according to the organization of the node organization unit, issue multiple network nodes of the same multi-source route as the route advertised by the destination node. In the middle, the node with the smaller cost value of the multi-source route is selected as the candidate node.
12、 如权利要求 9至 11任一项所述的装置, 其特征在于, 还包括: 路由收敛单元, 用于当所述源节点到所述目的节点的路由发生故障, 将所述源节点到所述目的节点的路由切换为从所述源节点到所述备选节点 的路由。 The device according to any one of claims 9 to 11, further comprising: a route convergence unit, configured to: when the route of the source node to the destination node fails, the source node is sent to The route of the destination node is switched to a route from the source node to the candidate node.
13、 一种路由备份装置, 其特征在于, 包括: 13. A route backup device, comprising:
备选确定单元, 用于确定对目的节点进行备份的备选节点;  An alternative determining unit, configured to determine an alternate node that backs up the destination node;
备份确定单元, 用于当从源节点到所述备选节点的路径上的中间节点 到所述备选节点的距离, 小于从所述中间节点返回所述源节点再到所述目 的节点的距离; 将所述源节点到所述备选节点的路由作为所述源节点到目 的节点的备份路由。  a backup determining unit, configured to: when a distance from an intermediate node on the path from the source node to the candidate node to the candidate node is less than a distance from the intermediate node to the source node to the destination node And routing the source node to the candidate node as a backup route from the source node to the destination node.
14、 如权利要求 13所述的装置, 其特征在于, 还包括:  14. The device of claim 13, further comprising:
收敛单元, 用于当所述源节点到所述目的节点的路由发生故障, 将所 述源节点到所述目的节点的路由切换为从所述源节点到所述备选节点的路 由。  And a convergence unit, configured to: when the route of the source node to the destination node fails, switch the route of the source node to the destination node to a route from the source node to the candidate node.
PCT/CN2012/086817 2011-12-20 2012-12-18 Route backup method and device WO2013091523A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110430171.4 2011-12-20
CN201110430171.4A CN103179032B (en) 2011-12-20 2011-12-20 A kind of route backup method and device

Publications (1)

Publication Number Publication Date
WO2013091523A1 true WO2013091523A1 (en) 2013-06-27

Family

ID=48638663

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/086817 WO2013091523A1 (en) 2011-12-20 2012-12-18 Route backup method and device

Country Status (2)

Country Link
CN (1) CN103179032B (en)
WO (1) WO2013091523A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113810275A (en) * 2020-06-17 2021-12-17 华为技术有限公司 Method and equipment for sending message

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9253079B2 (en) * 2013-10-11 2016-02-02 Telefonaktiebolaget L M Ericsson (Publ) High performance LFA path algorithms
CN104063293B (en) * 2014-07-04 2017-06-27 华为技术有限公司 A kind of data back up method and stream calculation system
CN105743785B (en) * 2014-12-12 2019-09-10 南京中兴软件有限责任公司 The route switching method and device of equipment
CN110099000B (en) * 2019-03-27 2021-11-19 华为技术有限公司 Method for forwarding message, network equipment and computer readable medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101272393A (en) * 2008-05-14 2008-09-24 杭州华三通信技术有限公司 Routing computing method and network node based on link condition routing protocol
CN101599898A (en) * 2009-07-01 2009-12-09 北京邮电大学 The multilink fault environment adopts the method for the avoiding loop for routers of LFA mode down
CN101772123A (en) * 2009-01-06 2010-07-07 孙波 Many-to-one routing algorithm in wireless sensor network
CN101796782A (en) * 2007-09-06 2010-08-04 思科技术公司 Forwarding data in a data communications network

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7986640B2 (en) * 2006-07-05 2011-07-26 Cisco Technology, Inc. Technique for efficiently determining acceptable link-based loop free alternates in a computer network
CN101610203A (en) * 2008-06-16 2009-12-23 华为技术有限公司 Realize method, the Apparatus and system of multicast heavy-route
US8422364B2 (en) * 2010-05-17 2013-04-16 Cisco Technology, Inc. Multicast label distribution protocol node protection

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101796782A (en) * 2007-09-06 2010-08-04 思科技术公司 Forwarding data in a data communications network
CN101272393A (en) * 2008-05-14 2008-09-24 杭州华三通信技术有限公司 Routing computing method and network node based on link condition routing protocol
CN101772123A (en) * 2009-01-06 2010-07-07 孙波 Many-to-one routing algorithm in wireless sensor network
CN101599898A (en) * 2009-07-01 2009-12-09 北京邮电大学 The multilink fault environment adopts the method for the avoiding loop for routers of LFA mode down

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113810275A (en) * 2020-06-17 2021-12-17 华为技术有限公司 Method and equipment for sending message
US11469989B2 (en) 2020-06-17 2022-10-11 Huawei Technologies Co., Ltd. Packet sending method and device
CN113810275B (en) * 2020-06-17 2023-08-04 华为技术有限公司 Method and equipment for sending message
US11882022B2 (en) 2020-06-17 2024-01-23 Huawei Technologies Co., Ltd. Packet sending method and device

Also Published As

Publication number Publication date
CN103179032B (en) 2016-03-30
CN103179032A (en) 2013-06-26

Similar Documents

Publication Publication Date Title
TWI803687B (en) System for routing optimization and method thereof
EP2761827B1 (en) Incremental deployment of mrt based ipfrr
US8456982B2 (en) System and method for fast network restoration
US8559414B2 (en) Automatically detecting best paths from shadow route reflectors
US20120236860A1 (en) Method and apparatus for rapid rerouting of ldp packets
JP7176095B2 (en) COMMUNICATION METHOD, COMMUNICATION DEVICE AND COMMUNICATION SYSTEM
US20100085972A1 (en) Method and routing device for advertising routing information
JP5625121B2 (en) Prioritizing routing information updates
US11646960B2 (en) Controller provided protection paths
US10015085B2 (en) Packet forwarding method, controller, forwarding device, and network system
WO2021004277A1 (en) Routing management method and apparatus, network device, and readable storage medium
CA3104756C (en) Loop avoidance communications method, device, and system
CN111698152B (en) Fault protection method, node and storage medium
US20130151445A1 (en) Method and System for Survival of Data Plane Through a Total Control Plane Failure
WO2013091523A1 (en) Route backup method and device
WO2011116731A2 (en) Route update method and router
WO2016123904A1 (en) Routing convergence method, device and virtual private network system
CN110430131B (en) Message forwarding method and device
CN110011921B (en) Route synchronization method, device, network equipment and storage medium
CN101527683B (en) Method, device and system of path calculation
WO2022001274A1 (en) Route generation method and apparatus, and route processing method and apparatus
US10735252B2 (en) Outside router fault detection
WO2008003253A1 (en) The method and system of routing calculation for the directly connected broadcast link
US12034631B2 (en) Loop avoidance communications method, device, and system
WO2022257773A1 (en) Routing detection method, device, system, and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 12859563

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

Country of ref document: EP

Kind code of ref document: A1