Non-stop routing (NSR) is a feature that provides continuous packet forwarding in routers. NSR is easy to deploy as a router can use NSR without any need to configure its peers.
In the drawings:
Use of the same reference numbers in different figures indicates similar or identical elements.
As used herein, the term “includes” means includes but not limited to, the term “including” means including but not limited to. The terms “a” and “an” are intended to denote at least one of a particular element. The term “based on” means based at least in part on.
A router with non-stop routing (NSR) is implemented with a primary routing engine and a backup routing engine. The backup routing engine is completely synchronized with the primary routing engine so the backup routing engine can take over for the primary routing engine after the primary routing engine experiences a fault. To synchronize the routing engines, the primary routing engine backs up neighbor state information and routing information for its routing protocol when the primary routing engine is operating normally. As a computer network increases in size so do routing tables at routers, which makes it complicated to maintain synchronization between the primary and the backup routing engines. Additionally more system resources are spent maintaining synchronization, which slows down the processing of other software services.
In some examples of the present disclosure, a router implements NSR of a routing protocol. The router has a primary routing engine and a backup routing engine. When the primary routing engine is operating normally, it backs up neighbor state information to backup routing engine. When the backup routing engine takes over for the primary routing engine, the backup routing engine obtains routing information based on the neighbor state information at the backup routing engine. The backup routing engine then generates local routes based on the routing information, determines best routes based on the local routes, sends the best routes to neighboring routers, and saves the best routes to local hardware. The router in this example may thus provide the NSR functionality, but simplify the synchronization between primary and backup routing engines.
In other examples of the present disclosure, a router that implements NSR of a routing protocol has a single routing engine. When the routing engine is operating normally, it backs up neighbor state information to a nonvolatile memory. After the routing engine reboots, the routing engine obtains the routing information based on the neighbor state information saved in the nonvolatile memory. The routing engine then generates local routes based on the routing information, determines best routes based on the local routes, sends the best routes to neighboring devices, and saves the best routes to local hardware. The router in this example may thus provide the NSR functionality, but without requiring primary and backup routing engines.
In block 202, when primary routing engine 104 (
In block 204, when backup routing engine 106 takes over for primary routing engine 104 in a switchover, the backup routing engine uses neighbor state information 108 to maintain neighbor relationships (e.g., continue to send hello packets to neighbor routers) to ensure neighbor connections of the routing protocol are not interrupted after the switchover. Backup routing engine 106 also suspends (e.g., stops) distributing (e.g., advertising) best routes to the neighboring routers and saving the best routes to the local hardware until the best routes are determined again. Block 204 may be followed by block 206.
In block 206, backup routing engine 106 obtains routing information 109 based on neighbor state information 108. The switchover may be unplanned, such as when primary routing engine 104 has a fault. In another example the switchover may be planned, such as when primary routing engine 104 updates its firmware. The details of how backup routing engine 106 uses neighbor state information 108 to obtain routing information 109 are described later for various routing protocols as well as some network types. Note that router 102 may handle one, several, or all of the routing protocols described later.
After obtaining routing information 109, backup routing engine 106 determines local or self-originated routes based on the routing information, determines best routes based on the local routes, sends the best routes to neighboring routers 110 and 112, and saves the best routes to local hardware, such as a forwarding chip. Local routes are routes that are locally generated by backup routing engine 106.
In block 302, when primary routing engine 104 (
In block 303, when backup routing engine 106 takes over for primary routing engine 104 in a switchover, the backup routing engine uses neighbor state information 108 to maintain neighbor relationships to ensure neighbor connections of the routing protocol are not interrupted after the switchover. Backup routing engine 106 also suspends distributing best routes to the neighboring routers and saving the best routes to the local hardware until the best routes are determined again. Block 303 may be followed by block 304.
In block 304, backup routing engine 106 sends a ROUTE-REFRESH message to neighboring routers 110 and 112 (
In block 306, backup routing engine 106 receives from neighboring routers 110 and 112 UPDATE messages with their routing information. Note that through blocks 304 and 306, backup routing engine 106 has obtained routing information 109 based on neighbor state information 108. Block 306 may be followed by block 308.
In block 308, backup routing engine 106 determines local routes based on the routing information in the UPDATE messages from neighboring routers 110 and 112, determines best routes based on the local routes and routes received from neighboring routers 110 and 112, sends the best routes to neighboring routers 110 and 112, and saves the best routes to local hardware.
In a broadcast network, a network segment has one DIS that periodically broadcasts a Complete Serial Number Protocol data unit (CSNP) packet. The CSNP packet summarizes Link-State Protocol data units (LSPs) in the DIS's link-state database (LSDB). More specifically, the CSNP packet includes headers of the LSPs in the DIS's LSDB. When a router receives the CSNP packet, it compares the LSPs in its LSDB against the summary of the LSPs in the DIS's LSDB to determine if it is missing any LSPs.
When the router determines that the CSNP is missing certain LSPs found in its LSDB, it sends a LSP packet with the missing LSPs to the DIS. In response, the DIS updates its LSDB with the missing LSPs.
When the router determines it is missing certain LSPs found in the CSNP, it sends a Partial Sequence Number Protocol data unit (PSNP) packet to the DIS. The PSNP packet includes a summary of the missing LSPs. More specifically, the PSNP packet includes headers of the missing LSPs. In response, the DIS sends a LSP packet with the missing LSPs to the router, and the router updates its LSDB with the missing LSPs.
Method 400 may begin in block 402. In block 402, when primary routing engine 104 (
In block 403, when backup routing engine 106 takes over for primary routing engine 104 in a switchover, the backup routing engine uses neighbor state information 108 to maintain neighbor relationships to ensure neighbor connections of the routing protocol are not interrupted after the switchover. Backup routing engine 106 also suspends distributing best routes to the neighboring routers and saving the best routes to the local hardware until the best routes are determined again. Block 403 may be followed by block 404.
In block 404, backup routing engine 106 send a CSNP packet to neighboring routers 110 and 112 (
In block 406, backup routing engine 106 receives an LSP packet from each neighboring router that has identified routing information that exists at the neighboring router (one or more LSPs found in its LSDB) but is not described in the CSNP packet. The LSP packet includes the missing routing information (the one or more missing LSPs). Backup routing engine 106 updates its LSDB with the missing routing information (the missing LSPs). Note that through blocks 404 and 406, backup routing engine 106 has obtained routing information 109 based on neighbor state information 108. Block 406 may be followed by block 408.
In block 408, backup routing engine 106 determines local routes based on the routing information in its LSDB, determines best routes based on the local routes and the IS-IS routing protocol, sends the best routes to neighboring routers 110 and 112, and saves the best routes to local hardware.
Method 500 may begin in block 502. In block 502, when primary routing engine 104 (
In block 503, when backup routing engine 106 takes over for primary routing engine 104 in a switchover, the backup routing engine uses neighbor state information 108 to maintain neighbor relationships to ensure neighbor connections of the routing protocol are not interrupted after the switchover. Backup routing engine 106 also suspends distributing best routes to the neighboring routers and saving the best routes to the local hardware until the best routes are determined again. Block 503 may be followed by block 504.
In block 504, backup routing engine 106 waits to receive a CSNP packet from each DIS listed in neighbor state information 108. Once backup routing engine 106 receives a CSNP packet from each DIS listed in neighbor state information 108, block 504 may be followed by block 506.
In block 506, backup routing engine 106 determines missing routing information (missing LSPs) that does not exist at the backup routing engine but is described in the summaries of routing information in the CSNP packets. To determine the missing routing information, backup routing engine 106 may compare the summary of routing information in each CSNP packet to routing information available at the backup routing engine (e.g., LSPs in the backup routing engine's LSDB). Backup routing engine 106 then generates a PSNP packet that carries a summary of the missing routing information, which is empty as the backup routing engine does not have any routing information at this time, and sends the PSNP to the corresponding DIS. Block 506 may be followed by block 508.
In block 508, backup routing engine 106 receives a LSP packet with the missing routing information (the missing LSPs) from each DIS. Backup routing engine 106 updates its LSDB with the missing routing information (the missing LSPs). Note that through blocks 506 and 508, backup routing engine 106 has obtained routing information 109 based on neighbor state information 108. Block 508 may be followed by block 510.
In block 510, backup routing engine 106 determines local routes based on the routing information in its LSDB, determines best routes based on the local routes and the IS-IS routing protocol, sends the best routes to neighboring routers 110 and 112, and saves the best routes to local hardware.
IS-IS Routing Protocol—P2P network
Method 600 may begin in block 602. In block 602, when primary routing engine 104 (
In block 603, when backup routing engine 106 takes over for primary routing engine 104 in a switchover, the backup routing engine uses neighbor state information 108 to maintain neighbor relationships to ensure neighbor connections of the routing protocol are not interrupted after the switchover. Backup routing engine 106 also suspends distributing best routes to the neighboring routers and saving the best routes to the local hardware until the best routes are determined again. Block 603 may be followed by block 604.
In block 604, backup routing engine 106 sends a CSNP packet to neighboring routers 110 and 112 (
In block 606, backup routing engine 106 receives a LSP packet from each neighboring router that has identified missing routing information that exists at the neighboring router (one or more LSPs found in its LSDB) but is not described in the CSNP packet. The LSP packet includes the missing routing information (the one or more missing LSPs). Backup routing engine 106 updates its LSDB with the missing routing information (the missing LSPs).
Note that through blocks 604 and 606, backup routing engine 106 has obtained routing information 109 based on neighbor state information 108. Block 606 may be followed by block 608.
In block 608, backup routing engine 106 sends one or more PSNP packets to acknowledge receipt of one or more LSP packets from neighboring routers 110 and 112. Block 608 may be followed by block 610.
In block 610, backup routing engine 106 determines local routes based on the routing information in its LSDB, determines best routes based on the local routes and the IS-IS routing protocol, sends the best routes to neighboring routers 110 and 112, and saves the best routes to local hardware.
In block 702, when primary routing engine 104 (
In block 703, when backup routing engine 106 takes over for primary routing engine 104 in a switchover, the backup routing engine uses neighbor state information 108 to maintain neighbor relationships to ensure neighbor connections of the routing protocol are not interrupted after the switchover. Backup routing engine 106 also suspends distributing best routes to the neighboring routers and saving the best routes to the local hardware until the best routes are determined again. Block 703 may be followed by block 704.
In block 704, backup routing engine 106 sends a Link State DataBase (LSDB) request packet to neighboring routers 110 and 112 (
In block 706, backup routing engine 106 receives from neighboring routers 110 and 112 LSU packets with the routing information in their LSDBs. Note that through blocks 704 and 706, backup routing engine 106 has obtained routing information 109 based on neighbor state information 108. Block 706 may be followed by block 708.
In block 708, backup routing engine 106 determines local routes based on the routing information from neighboring routers 110 and 112, determines best routes based on the local routes and the OSPF routing protocol, sends the best routes to neighboring routers 110 and 112, and saves the best routes to local hardware.
In a MPLS having two LSRs in the same FEC, the upstream LSR sends a label request packet to a downstream LSR to bind a label to the FEC. The label request packet includes FEC information, which is specified by type, length, and value. In response to the label request packet, the downstream LSR binds a label to the FEC and sends a label mapping packet carrying the FEC and label mapping to the upstream LSR. Based on FEC and label mappings from downstream LSRs, the upstream LSR establishes a label mapping table and forwards packets based on the label mapping table.
Two neighboring LSRs (e.g., LSR1 and LSR2) may belong to multiple FECs (e.g., FEC1, FEC2, and FEC3). For some FECs (e.g., FEC1 and FEC2), LSR1 may be upstream and LSR2 may be downstream. For another FEC (e.g., FEC3), LSR1 may be downstream and LSR2 may be upstream. In a label request packet, a wildcard may be used for the FEC type. In response, a downstream LSR would bind labels to all FECs it knows. For example, if LSR1 sends a label request packet to LSR2 and a wildcard is used for the FEC type, then LSR2 would bind LSR1 to labels associated to FEC1 and to labels associated with FEC2.
Method 800 may begin in block 802. In block 802, when primary routing engine 104 (
In block 803, when backup routing engine 106 takes over for primary routing engine 104 in a switchover, the backup routing engine uses neighbor state information 108 to maintain neighbor relationships to ensure neighbor connections of the routing protocol are not interrupted after the switchover. Backup routing engine 106 also suspends distributing best routes to the neighboring routers and saving the best routes to the local hardware until the best routes are determined again. Block 803 may be followed by block 804.
In block 804, backup routing engine 106 sends a label request packet to neighboring routers 110 and 112 (
In block 806, backup routing engine 106 receives from neighboring routers 110 and 112 label mapping packets carrying FEC and label mappings (their routing information). Note that through blocks 804 and 806, backup routing engine 106 has obtained routing information 109 based on neighbor state information 108. Block 806 may be followed by block 808.
In block 808, backup routing engine 106 determines local routes based on the routing information from neighboring routers 110 and 112, determines best routes based on the local routes and the OSPF routing protocol, sends the best routes to neighboring routers 110 and 112, and saves the best routes to local hardware. For example, backup routing engine 106 generates a label mapping table based on the FEC and label mappings in the label mapping packets from neighboring routers 110 and 112, sends the label mapping table to the neighboring routers, and save the label mapping table to local hardware.
When the routing protocol is BGP, route processor 906 obtains the routing information of the neighboring routers by sending a ROUTE-FRESH message to the neighboring routers 110 and 112 and receiving UPDATE messages with routing information of the neighboring routers from the neighboring routers.
When router 102 is a DIS in a broadcast network 100 (
When router 102 is not a DIS in a broadcast network 100 using the IS-IS routing protocol, route processor 906 obtains routing information 109 by receiving a CSNP packet from each DIS listed in neighbor state information 108, determining a missing routing information that does not exist in router 102 but is described in the summaries of routing information in the CSNP packets, sending to the DIS a PSNP packet carrying a summary of the missing routing information, and receiving a LSP packet from the DIS. The LSP packet carries the missing routing information.
When router 102 is in a point-to-point (P2P) network using the IS-IS routing protocol, route processor 906 obtains routing information 109 by sending a CSNP packet carrying a summary of routing information at the router to neighboring routers 110 and 112, and receiving
LSP packets from the neighboring routers. The LSP packet carries missing routing information that exists in the neighboring routers but is not described in the CSNP packet.
When the routing protocol is OSPF, route processor 906 obtains routing information 109 by sending a LSDB request packet to neighboring routers 110 and 112, and receiving LSU packets from the neighboring routers. The LSU packets carry the routing information at neighboring routers 110 and 112.
When the routing protocol is LDP, route processor 906 obtains routing information 109 by sending a label request packet that includes a wildcard for the FEC type to the neighboring routers 110 and 112, and receiving label mapping packets from the neighboring routers. The label mapping packets carry FEC and label mappings. Route processor 906 then generates a label mapping table based on the FEC and label mappings in the label mapping packets from neighboring devices 110 and 112.
Each component in router 102 may be implemented to perform its function in hardware or a combination of firmware and hardware. For example, each unit may be implemented with ASICs, FPGAs, or a microprocessor with nonvolatile memory.
In block 1102, when routing engine 1204 is operating normally, the routing engine backs up neighbor state information 108 (
In block 1104, after routing engine 1204 reboots, the routing engine uses neighbor state information 108 saved in nonvolatile memory 1206 to maintain neighbor relationships to ensure neighbor connections of the routing protocol are not interrupted after the switchover. Routing engine 1204 also suspends distributing best routes to the neighboring routers and saving the best routes to the local hardware until the best routes are determined again. Block 1104 may be followed by block 1106.
In block 1106, routing engine 1204 obtains routing information 109 based on neighbor state information 108 saved in nonvolatile memory 1206. The reboot of routing engine 1204 may be unplanned, such as a result when the routing engine has a fault. Alternatively the reboot of routing engine 1204 may be planned, such as a result when the routing engine updates its firmware. Depending on the routing protocol and network type, routing engine 1204 of router 1202 may operate similarly as backup routing engine 106 of router 102 (
After obtaining routing information 109, routing engine 1204 determines local routes based on the routing information, determines best routes based on the local routes, sends the best routes to neighboring routers 110 and 112, and saves the best routes to local hardware.
Like router 102, each component in router 1202 may be implemented to perform its function in hardware or a combination of firmware and hardware. For example, each unit may be implemented with ASICs, FPGAs, or a microprocessor with nonvolatile memory.
Various other adaptations and combinations of features of the examples disclosed are within the scope of the present disclosure.
Number | Date | Country | Kind |
---|---|---|---|
201210259526.2 | Jul 2012 | CN | national |
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/CN2013/079032 | 7/9/2013 | WO | 00 |