WO2010072110A1 - Routing aging method, apparatus and router based on border gateway protocol - Google Patents
Routing aging method, apparatus and router based on border gateway protocol Download PDFInfo
- Publication number
- WO2010072110A1 WO2010072110A1 PCT/CN2009/075041 CN2009075041W WO2010072110A1 WO 2010072110 A1 WO2010072110 A1 WO 2010072110A1 CN 2009075041 W CN2009075041 W CN 2009075041W WO 2010072110 A1 WO2010072110 A1 WO 2010072110A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- route
- bgp
- neighbor
- message
- aging
- Prior art date
- Legal status (The legal status 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 status listed.)
- Ceased
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/74—Address processing for routing
- H04L45/741—Routing in networks with a plurality of addressing schemes, e.g. with both IPv4 and IPv6
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/02—Topology update or discovery
- H04L45/033—Topology update or discovery by updating distance vector protocols
Definitions
- the present invention relates to the field of network communication technologies, and specifically relates to a BGP-based route aging method, a BGP-based route aging device, and a router.
- BGP Border Gateway Protocol
- the distributed technology solution sets multiple BGP distribution points. For example, BG P processes, BGP threads, etc. are set on multiple boards. All routes (such as VPN routes or IP routes) are configured. Assigned to multiple BGP distribution points for processing.
- the BGP distributed technology solution can reduce the routing processing pressure of a single BGP process or a thread in a BGP centralized technology solution, and avoid the performance bottleneck of BGP route processing, thereby improving the routing processing capability and routing capacity of BGP.
- the inventor found that: In the BGP distributed technical solution, a plurality of different reasons may cause the BGP distribution point to restart; during the BGP distribution point restart process, the route may occur.
- the BGP distribution point cannot be notified to the BGP neighbors. Update the changed route.
- this processing method enables BGP neighbors to store correct routes, any BGP distribution point restart will affect all BGP neighbors.
- the embodiment of the present invention provides a BGP-based route aging method, device, and router, which may When the BGP neighbor is disconnected, the route stored in the BGP neighbor is updated.
- a route aging method provided by the embodiment of the present invention after the BGP distribution point is restarted, the method includes:
- the BGP neighbor is: a BGP neighbor having an aging routing capability when the neighbor is continuously connected;
- the route processed by the route is sent to the BGP neighbor, so that the BGP neighbor performs route aging according to the received route.
- the route requesting module is configured to send a route request message to the BGP neighbor after the BGP distribution point is restarted, where the BGP neighbor is a BGP neighbor having the ability to aging the route when the neighbor is continuously connected;
- the route processing module is configured to distribute the BGP The route received by the point is routed, and the received route is a route sent by the BGP neighbor according to the route request message;
- the route sending module is configured to: after the route processing module completes the route processing, send the route processed by the route to the BGP neighbor, so that the BGP neighbor performs route aging according to the received route.
- the router provided by the embodiment of the present invention is configured with multiple BGP distribution points, and the router includes: a route requesting module, configured to send a route request message to the BGP neighbor after the BGP distribution point is restarted, where the BGP neighbor has the neighbor a BGP neighbor that continuously aging the routing capability; and a receiving module, configured to receive a route that the BGP neighbor sends according to the routing request message;
- a routing processing module configured to perform routing processing on a route received by the receiving module
- the route sending module is configured to: after the route processing module completes the route processing, send the route processed by the route to the BGP neighbor, so that the BGP neighbor performs route aging according to the received route.
- the BGP distribution point can receive the route sent by the BGP neighbor and implement the route processing by sending a route request message to the BGP neighbor.
- the BGP distribution point sends the route to the BGP neighbor.
- the BGP neighbors can aging the routes that are stored on the BGP neighbors based on the received routes. Therefore, the BGP neighbors can store the correct routes and avoid the BGP neighbors.
- a BGP distribution point re- Startup affects all BGP neighbors.
- FIG. 1 is a flowchart of a BGP-based route aging method according to Embodiment 1 of the present invention
- FIG. 2 is a schematic structural diagram of an RD-based distributed routing process according to Embodiment 2 of the present invention.
- FIG. 3 is a flowchart of a BGP-based route aging method according to Embodiment 3 of the present invention.
- FIG. 4 is a schematic diagram of a BGP-based route aging apparatus according to Embodiment 4 of the present invention.
- FIG. 5 is a schematic diagram of a routing processing module according to Embodiment 4 of the present invention.
- FIG. 6 is a schematic diagram of a route sending module according to Embodiment 4 of the present invention.
- Embodiment 1 The flow of the BGP-based route aging method is as shown in FIG. 1.
- step 100 at least one of the plurality of BGP distribution points is restarted.
- the reason for the restart of the B GP distribution point is that the resource is exhausted and the board of the BGP distribution point is abnormal.
- This embodiment does not limit the cause of restarting the BGP distribution point.
- BGP distribution points for example, BGP-based BGP distribution points. This embodiment does not limit the specific representation of BGP distribution points.
- Step 110 After the restart of the BGP distribution point is completed, the BGP distribution point sends a route request message to the BGP neighbor when the connection between the BGP distribution point and the B GP neighbor is continuously connected.
- the BGP neighbors here can be: BGP neighbors with the ability to aging routes when the neighbors are continuously connected.
- the BGP distribution point can send routing request messages directly to all BGP neighbors after restarting. If not all the nodes are sure to have the ability to aging routes when the neighbors are continuously connected, the BGP distribution point can be selected to have the B GP neighbors with the aging route capability in the case of continuous neighbor connection. Then, The selected BGP neighbor sends a route request message.
- the BGP distribution point can determine, according to the pre-stored information, a BGP neighbor with the aging route capability in the case of continuous neighbor connection.
- the pre-stored information can be statically configured or dynamically configured.
- a specific example of the static configuration is as follows: The NMS sends a command to configure the BGP neighbors with the aging neighboring capability in the BGP distribution point.
- a specific example of dynamic configuration is: Regardless of the support of each node in the network for the above capabilities, between the BGP neighbor and the BGP distribution point It is possible to notify each other whether there is information about the aging routing capability in the case where the neighbors are constantly connected, and the BGP distribution point stores the notified information. In this way, the BGP distribution point can learn, according to the notified information, which BGP neighbors have the ability to aging the route when the neighbors are continuously connected.
- the process of whether the above notification has the information of aging routing capability in the case of continuous neighbor connection can be implemented in the BGP capability negotiation process. That is, the ability to aging routes while neighbors are constantly connected can be used as part of BGP capabilities.
- a specific example of whether the BGP neighbors have the information about the aging capability of the neighbors in the case of the neighbors are: The information about whether the BGP neighbors have the aging capability in the case of the neighbors are continuously carried in the OPEN message, and sent to the peer node. The OPEN message.
- the OPEN message can be extended to carry the above information in the OPEN message.
- the extension of the OPEN message may be to add a new field, and use the newly added field to carry the above information; or to use the existing field of the OPEN message to carry the above information, for example, by using a reserved field in the OPEN message to carry the above information. Information, etc.
- BGP neighbors in the network that do not have the ability to aging routes in the case of neighbors, you can use existing methods to ensure that BGP neighbors store the correct routes, for example, between BGP distribution points and BGP neighbors. Connect, and then re-establish the connection between BGP neighbors.
- the routing request message may be implemented by using a message in the existing protocol, such as a Route-Refresh message as a routing request message; the routing request message may also be implemented by other messages, for example, by a new definition.
- the message is used to implement the routing request message. This embodiment does not limit the specific representation of the routing request message.
- Step 120 The BGP neighbor receives the route request message, and sends a route to the BGP distribution point according to the route request message. BGP neighbors should follow BGP's route loopback prevention rules when sending routes to BGP distribution points.
- the message used by the BGP neighbor to send the route can be the message specified in the existing BGP. Of course, other messages can also be used, for example, the newly added message is added.
- the BGP neighbor can send a message to the BGP distribution point.
- the message indicates that the BGP neighbor route is sent.
- the message can be called the first route sending end message.
- a specific example of the first route transmission end message is: End-Of-RIB message.
- the first route sending end message may also be other messages, for example, a message that may be added for a new definition or the like.
- the BGP neighbor may also carry the first route sending end flag information in the message sending the route, and the flag information indicates that the BGP neighbor route is sent. When the route sending end message carries the route sending end flag information, the BGP neighbor may no longer send the first route sending end message.
- Step 130 The BGP distribution point receives the route sent by the BGP neighbor, and performs routing processing on the received route.
- the BGP distribution point After the BGP neighbor sends a route to the BGP distribution point and sends the first route transmission end message to the BGP distribution point, the BGP distribution point needs to determine whether to receive each route after receiving the route sent by each BGP neighbor.
- the first route sent by the BGP neighbor sends a message.
- the BGP distribution point After the route that is sent by each BGP neighbor and the first route is sent, the BGP distribution point processes the received route.
- BGP distribution points can be routed according to existing mechanisms, such as routing routes and updating routing forwarding tables. In the case that the route sent by the BGP neighbor to the BGP distribution point carries the first route sending end flag information, the BGP distribution point can also perform routing processing in a similar manner.
- Step 140 After the route processing is completed, the BGP distribution point sends the route processed route to the BGP neighbor. For example, a BGP distribution point sends a route processed route to each BGP neighbor according to an egress policy.
- the BGP distribution point sends a route to the BGP neighbor.
- the BGP neighbor sends a message to the BGP neighbor.
- the message indicates that the route received by the BGP neighbor is sent by the BGP distribution point and used by the BGP neighbor. Route aging processed route. This message can be referred to as a route to send start message.
- the BGP distribution point should send a route sending start message to multiple BGP neighbors.
- the BGP distribution point can consider the address family and sub-address family information supported by the BGP neighbors in the process of sending the route to the BGP neighbor. That is, the route sent by the BGP distribution point to the BGP neighbor should belong to the BGP neighbor. Address family and sub address family.
- the address family and sub-address family information supported by BGP neighbors can be statically configured or dynamically configured.
- a specific example of static configuration is as follows: The network management device configures the address family and sub-address family information supported by BGP neighbors in the BGP distribution point by sending commands.
- a specific example of dynamic configuration is as follows: A BGP neighbor informs a BGP distribution point of its supported address family and sub-address family information, and a BGP distribution point stores the notified information.
- the BGP distribution point can learn the address family and sub-address family information supported by the BGP neighbor according to the notified information.
- the address family and sub-address families here are IP v6 unicast/multicast, IPv4 unicast/multicast, VPNv6 unicast/multicast, and VPNv4 unicast/multicast.
- BGP distribution points can be considered in the process of sending route processing to BGP neighbors. If the BGP neighbors support the routing range, the BGP distribution point can send the route range information of the aging route to the BGP neighbor and the route within the route range. Otherwise, the BGP distribution point needs to send all the routes to the BGP neighbor. Routing. Whether the BGP neighbor supports the routing range information can be statically configured or dynamically configured. A specific example of static configuration is as follows: The NMS configures BGP neighbors to support routing range information in BGP distribution points by sending commands. A specific example of dynamic configuration is as follows: A BGP neighbor notifies a BGP distribution point of its supported route range information, and a BGP distribution point stores the notified information. In this way, the BGP distribution point can learn the supported routing range of the BGP neighbor according to the notified information.
- the BGP distribution point can carry the route range information in the route start message.
- the route range information is used to indicate that the BGP neighbor performs route aging processing in the route range.
- VPN routing range information such as RD information.
- the above route sending start message may be a newly defined added message.
- the BGP distribution point After sending the route sending start message, the BGP distribution point sends the route processed route to the BGP neighbor.
- BGP distribution points should follow BGP's route loopback prevention rules when sending routes to BGP neighbors.
- the message used by the BGP distribution point to send routing information may be a message specified in the existing BGP, such as a routing update message; of course, other messages may also be used, such as using a newly defined added message.
- the BGP distribution point sends a message to the BGP neighbor.
- the message indicates that the BGP distribution point route is sent.
- the message can be It is called the second route sending end message.
- a specific example of the second route transmission end message is: End-Of-RIB message.
- the second route sending end message may also be other messages, for example, a message that may be added for a new definition or the like.
- the second route sending end message may be the same as the first route sending end message, such as an End-Of-RIB message, or a message that is newly added.
- the BGP distribution point may also carry the route sending start flag information and the route range information in the message sending the route, where the flag information indicates that the BGP distribution point starts to send the route used for route aging.
- the BGP distribution point may no longer send the route sending start message.
- the BGP distribution point may also carry a route to send a second end flag information in the message sending the route, and the flag information indicates BGP.
- the distribution point route is sent.
- the second route transmission end flag may be the same as the above-described first route transmission end flag.
- Step 150 The BGP neighbor performs route aging processing according to the received route.
- the route aging process includes deleting a route stored in a BGP neighbor, modifying a route stored in a BGP neighbor, and adding a new route to the BGP neighbor.
- the BGP neighbor may perform route aging processing on the stored route according to the received route after receiving the second route sending end message. If the BGP neighbor does not receive the second route sending end message within the scheduled interval, the BGP neighbor can also perform route aging processing on the stored route based on the received route.
- the predetermined time interval is the maximum waiting time for the aging process of the BGP neighbors.
- the BGP neighbor can start counting the maximum waiting time after receiving the route sending start message.
- the BGP neighbor receives the message according to the Routes are routed to the stored routes.
- the BGP neighbor is received according to the received route.
- the BGP neighbors can also start the maximum waiting time after receiving the route sent by the BGP distribution point.
- the BGP neighbor may also use the similar manner described above.
- the above maximum waiting time may be statically configured or dynamically configured.
- static configuration is as follows: The NMS configures the maximum waiting time in the BGP neighbor by sending commands.
- dynamic configuration is: Negotiate to determine the maximum wait time during the BGP capability negotiation process.
- the BGP distribution point is sent to the BGP neighbor after being restarted.
- Route request message the BGP neighbor sends a route to the BGP distribution point according to the received route request message, so that the BGP distribution point can collect the route sent by the BGP neighbor after the restart, without disconnecting the BGP neighbor.
- Route processing The BGP distribution point sends the route-processed route to the BGP neighbor, so that the BGP neighbor can aging the stored route based on the received route, so that the BGP neighbor does not need to be disconnected and re-established. It also enables BGP neighbors to store the correct routes, thus avoiding the problem that a BGP distribution point is restarted and affects all BGP neighbors.
- the BGP distribution point can clearly know whether the complete route is successfully collected from the BGP neighbor.
- the aging process of the BGP neighbor is triggered by using the maximum waiting time and the second route to send the end message. This prevents the aging of the route due to the abnormal transmission of the second route.
- the BGP distribution point can easily learn which BGP neighbors have the ability to aging routes when the neighbors are continuously connected. In the BGP capability negotiation process, the aging of the routes is the same as that of the neighbors. , so that BGP neighbors can get a reasonable maximum waiting time. By carrying the routing range information in the routing start message, the BGP neighbor can perform aging processing on the route within the routing range that is responsible for the BGP distribution point.
- Embodiment 2 A method for implementing route aging in the case that the BGP distribution point is an RD-based BGP distribution point.
- Figure 2 includes: a route receiving and distribution module and three route storage and processing modules.
- a route storage and processing module is an RD-based BGP distribution point, that is, an RD-based BGP operation unit.
- the RD-based BGP operation unit can be called an RD-BGP operation unit, and the RD-BGP operation unit can be a process or a thread. Other ways to achieve.
- the route receiving and distribution module receives VPN routes from BGP neighbors.
- the route receiving and distributing module shown in FIG. 2 can receive the VPN route sent by the BGP neighbor 1 and the BGP neighbor 2, and the VPN route sent by the BGP neighbor 1 can include the VPN route with the RD of 100: 1 and the RD is 200: 1 VPN route;
- the VPN route sent by BGP neighbor 2 can include a VPN route with an RD of 300:1.
- the route receiving and distributing module After receiving the VPN route from the BGP neighbor, acquires the route storage and processing module corresponding to the RD of the VPN route from the BGP neighbor.
- the route receiving and distribution module will receive The VPN route is sent to the acquired route storage and processing module, that is, a VPN route is sent to one of the three route storage and processing modules.
- the route storage and processing module receives the VPN route sent by the route receiving and distribution module, and processes the received VPN route.
- the restarted RD-BGP running unit can use the BGP capability negotiation mechanism to learn which BGP neighbors have the ability to aging routes when the neighbors are continuously connected, and which BGP neighbors do not have the ability to aging routes when the neighbors are continuously connected. If there are five BGP neighbors with the ability to aging the neighbors in the case of continuous neighboring, the five BGP neighbors send routes to the restarted RD-BGP running unit according to their storage routes after receiving the routing request message.
- Each of the five BGP neighbors needs to send an End-Of-RIB message to the restarted RD-BGP running unit after the route is sent to indicate that the BGP neighbor route is sent.
- the restarted RD-BGP running unit receives the routes respectively sent by the five BGP neighbors, and the restarted RD-BGP running unit determines the End-Of-RIB message sent by the five BGP neighbors respectively. Successfully collected routes from the above five BGP neighbors.
- the restarted RD-BGP running unit performs routing processing on all received routes, such as routing routing, updating routing forwarding tables, and the like.
- the restarted RD-BGP running unit sends a route sending start message to the five BGP neighbors respectively, so that the restarted RD-BGP running unit starts to send routes to the BGP neighbors, and the BGP neighbors should be re-based. Routes sent by the RD-BGP running unit to perform route aging processing.
- the route sending start message may carry the address family and sub-address family information supported by the BGP neighbor and the routing range information of the RD-BGP running unit.
- the restarted RD-BGP running unit sends a routing update message to the five BGP neighbors, and the route update message carries the route processed by the route, and the route carried in the message is the restarted RD-BGP running unit.
- responsible routing After the restarted RD-BGP running unit sends a route to each BGP neighbor, it needs to send an End-Of-RIB message to indicate that the restarted RD-BGP running unit route is sent.
- the BGP neighbor After receiving the route sending start message, the BGP neighbor starts to calculate the maximum waiting time. If the BGP neighbor receives the E nd-Of-RIB message after the calculated value does not reach the maximum waiting time, the BGP neighbor stores the route according to the route in the received routing update message.
- Route aging processing is performed. If the BGP neighbor does not receive the End-Of-RIB message after the aging timer reaches the maximum waiting time, the BGP neighbor performs route aging processing on the route that is stored according to the route in the received routing update message.
- the route that performs the route aging process is: the address family and sub-address family supported by the BGP neighbor, and the route within the route range.
- the specific implementation process of the route aging method is shown in FIG. 3 when the BGP distribution point is an RD-based BGP distribution point.
- the BGP restarter that is, the restarted RD-based BGP distribution point
- the BGP peer PBGP neighbor
- negotiate "the ability of neighbors to continuously connect to aging routes" and establish a session.
- the restarter and the BGP peer carry the foregoing capability negotiation information in the TLV field of the OPEN message.
- the capability negotiation information carried in the TLV field is used to describe whether the local end can support the foregoing capability, the address family and the sub-address family information of the aging route supported by the local end. Route range information and the maximum wait time required for BGP neighbor aging routes.
- Step 2 After the BGP restarter is restarted, the BGP restarter sends a Route-Refresh message to all BGP peers with the ability of the neighbor to continuously connect to the aging route to request to update the route.
- Step 3 After receiving the Route-Refresh message, the BGP peer sends an update route message to the BGP restarter. After the BGP peer sends the update route message, the BGP peer sends the BGP peer to the BGP peer.
- the restarter sends an End-Of-RIB message ' to indicate that the route has been sent.
- Step 4 After receiving the End-Of-RIB message sent by all BGP peers, the BGP restarter starts routing the received route and updates the routing and forwarding table.
- Step 5 The BGP restarter sends a "route sending start message" to the BGP peer.
- the message format of the "route sending start message” may be extended in the message format of the Route-Refresh message specified by BGP, for example, extending a TLV field based on the Route-Refresh message.
- the extended TLV field carries the RD information, and the RD information can instruct the BGP peer to perform route aging processing on the route of the specific RD.
- the RD information is the routing range information.
- the peer After receiving the "route sending start message", the peer records the aging flag and starts the aging process for the BGP neighbor.
- the aging timer set by the maximum waiting time required.
- a specific example of recording the aging flag is: Recording the time when the route sending start message is received, and the time is the aging flag, so that the route within the route range received before the time is required to perform route aging.
- Another specific example of the aging flag is: The route within the route range is marked before the route is sent, so that the marked route is a route that needs to be routed.
- the BGP peer can obtain the RD information from the TLV field of the "Route to send start message" and store the RD
- Step 7 The BGP restarter sends an update routing message to the BGP peer. After the update routing message is sent, the BGP restarter sends an End-Of-RIB message to the BGP peer.
- the BGP restarter should consider the address family and sub-address family information supported by the BGP peer and whether the BGP peer supports the routing range. In the case that the BGP peer supports the route range, the route carried in the update route message should belong to the address family and sub-address family supported by the BGP peer, and the route within the predetermined route range (such as the RD range supported by the BGP restarter).
- Step 8 In the case that the aging timer does not reach the maximum waiting time, the BGP peer receives the End-Of-RIB message, and the BGP peer performs route aging according to the aging flag to update its route. Forwarding table. For example, a BGP peer performs route aging processing on routes that belong to the RD information before the aging flag.
- the BGP peer sends a route to the BGP restarter according to the received Route-Refresh message, so that the BGP restarter can
- the route sent by the BGP peer is collected and the route is processed.
- the BGP restarter sends the route to the BGP peer to ensure that the BGP peer can receive the route according to the received route.
- the stored routes are aged, so that the B GP peer can store the correct route without BGP neighbors disconnecting and re-establishing the connection, thereby avoiding a BGP.
- the restarter restarts and affects all BGP neighbors.
- Embodiment 4 A BGP-based route aging device is shown in FIG. 4.
- the route aging device in FIG. 4 includes: a route request module 400, a route processing module 410, and a route sending module 420.
- the device may further include a capability negotiation module 430.
- the routing request module 400 After the BGP distribution point is restarted, the routing request module 400, after continuously connecting the connection between the BGP distribution point and the BGP neighbor, to the B GP neighbor having the aging routing capability in the case of continuous connection of the neighbors Send a route request message.
- BGP distribution points such as BGP-based BGP distribution points.
- the route requesting module 400 can directly send routing requests to all BGP neighbors after the BGP distribution point is restarted. Message. If not all the nodes are sure to have the ability to aging the route when the neighbors are continuously connected, the route requesting module 400 may select the BGP with the aging route capability in the case of continuous neighbor connection after the BGP distribution point is restarted. The neighbor then sends a route request message to the selected B GP neighbor.
- the route requesting module 400 may determine, according to the pre-stored information, a BGP neighbor having an aging routing capability in the case of a persistent neighbor connection.
- Pre-stored information can be statically configured or dynamically configured.
- a specific example of static configuration is as follows:
- the NMS sends information to BGP neighbors with aging routes in the BGP distribution point.
- a specific example of the dynamic configuration is as follows:
- the capability negotiation module 430 acquires and stores, in the BGP capability negotiation process, whether the BGP neighbor has the capability of aging the route when the neighbors are continuously connected. That is to say, the ability to aging routes in the case of neighbors can be used as part of BGP capabilities.
- the capability negotiation module 430 obtains, from the received OPE N message, whether the BGP neighbor has the capability of aging the routing capability when the neighbor is continuously connected.
- the routing request message sent by the routing request module 400 is a Route-Refresh message.
- the BGP neighbor After receiving the route request message, the BGP neighbor sends a route to the BGP distribution point according to the route request message. BGP neighbors should follow the BGP route loopback prevention rules when sending routes to BGP distribution points.
- the message that the B GP neighbor sends the route can be the message specified in the existing BGP. Of course, other messages can also be used, for example, the newly added message is added.
- the BGP neighbor can send a message to the BGP distribution point.
- the message indicates that the BGP neighbor route is sent.
- the message can be called the first route sending end message.
- a specific example of the first route transmission end message is: End-Of-RIB message.
- the BGP neighbor may also carry the route to send the first end flag information in the message that sends the route, as described in the foregoing embodiment.
- the routing processing module 410 performs routing processing on the route that is sent by the BGP distribution point and is sent by the BGP neighbor according to the routing request message. In the case that the BGP neighbor sends the End-Of-RIB message, the route processing module 410 may start the routing process after receiving the End-Of-RIB message sent by each BGP neighbor at the BGP distribution point.
- the route sending module 420 sends the routed route to the BGP neighbor, so that the BGP neighbor performs route aging according to the received route.
- the BGP neighbor may send a message to the BGP neighbor.
- the message indicates that the route received by the BGP neighbor is sent by the BGP distribution point. Routing. This message can be referred to as a route to send start message.
- the route sending module 420 should send a route sending start message to multiple BGP neighbors.
- the route sending module 420 can consider the address family and the sub-address family information supported by the BGP neighbors in the process of sending the route to the BGP neighbor. That is, the route sent by the route sending module 420 to the BGP neighbor should belong to the address supported by the BGP neighbor.
- the address family and sub-address family information supported by BGP neighbors can be statically configured or dynamically configured.
- the dynamic configuration such as the capability negotiation module 430, is negotiated during the BGP capability negotiation process.
- the capability negotiation module 430 can use the existing capability negotiation process to carry the address family and the sub-address family information supported by the BGP neighbors in the existing message to obtain the address family and the sub-address family supported by the BGP peer, as described in the foregoing embodiment. .
- the route sending module 420 may consider whether the BGP neighbor supports the routing range in the process of sending the route to the BGP neighbor. If the BGP neighbor supports the routing range, the route sending module 420 may send the route that needs to perform route aging to the BGP neighbor. Range information, and routes within the routing range; otherwise, route sending module 420 sends all routes to the BGP neighbors.
- Whether the BGP neighbor supports the routing range information can be statically configured or dynamically configured.
- a specific example of static configuration is as follows:
- the NMS configures BGP neighbors to support routing range information in the BGP distribution point by sending commands.
- the dynamic configuration such as the capability negotiation module 430, is negotiated during the BGP capability negotiation process.
- the capability negotiation module 430 can use the existing capability negotiation process to carry out whether the BGP neighbor supports the routing range information in the existing message to negotiate whether the BGP neighbor supports the routing range information, as described in the foregoing embodiment.
- the route sending module 420 can carry in the route sending start message.
- the route range information is used to indicate that the BGP neighbor performs route aging processing in the route range.
- VPN routing range information such as RD information.
- the route sending module 420 sends a route to the BGP neighbor after sending the route start message.
- the route sending module 420 should follow the BGP route loopback prevention rules when sending routes to the BGP neighbors.
- the message sent by the route sending module 420 to the route may be a route update message.
- the route sending module 420 may send a message to the BGP neighbor, where the message indicates that the BGP distribution point route is complete, the message is sent. It can be called a second route transmission end message.
- a specific example of the second route transmission end message is: End-Of-RIB message.
- the route sending module 420 may also carry the route sending start flag information, the route range information, and the second route sending end flag, etc., in the message sending the route, as described in the foregoing embodiment.
- the BGP neighbor performs route aging processing according to the received route.
- Route aging processing such as deleting a route stored in a BGP neighbor, modifying a route stored in a BGP neighbor, and adding a new route to a BGP neighbor.
- the capability negotiation module 430 can also implement the negotiation of the maximum waiting time in the BGP capability negotiation process.
- the maximum waiting time can trigger the aging process of the BGP neighbors, as described in the foregoing embodiment.
- the routing processing module 410 of FIG. 5 includes: a determining sub-module 411 and a routing processing sub-module 412.
- the determining sub-module 411 determines whether the BGP distribution point receives the first route sending end message sent by each BGP neighbor.
- the routing processing sub-module 412 performs routing processing on the route received by the BGP distribution point after the judgment result of the sub-module 411 is that the BGP distribution point receives the first route sending end message sent by each BGP neighbor.
- the routing process performed by the routing processing sub-module 412 is as described in the above embodiment.
- the routing module 420 of FIG. 6 includes: a message construction sub-module 421 and a transmission sub-module 422.
- the message construction sub-module 421 constructs a route transmission start message sent to the BGP neighbor, a message carrying the route processed route, and a second route transmission end message.
- the message construction sub-module 421 can be constructed first The routing start message is generated, and after the sending sub-module 422 successfully sends the route sending start message, the message carrying the route is constructed, and after the sending sub-module 422 successfully sends the message carrying the route, the second route is sent. Message.
- the message construction sub-module 421 may also not construct the above message in the above order. Although the message construction sub-module 421 may not construct the message in the above order, the transmission sub-module 422 shall send a start message according to the route after transmitting the message.
- the message carrying the route processed route is sent in the order of the second route transmission end message.
- the information in the foregoing embodiment is described in the foregoing embodiment, and the information carried in the routing start message, the message carrying the routed route, and the information in the second route sending end message are not described here.
- Embodiment 5 A router with multiple BGP distribution points is set.
- the router includes: a route request module, a receiving module, a route processing module, and a route sending module.
- the optional router may also include a capability negotiation module.
- the routing request module After the routing request module detects that the BGP distribution point restarts, it continuously connects the BGP distribution point with B.
- a route request message is sent to a BGP neighbor having an aging route capability in the case of a neighbor continuous connection.
- BGP distribution points such as BGP-based BGP distribution points.
- the routing requesting module can learn, according to the BGP capability negotiation result of the capability negotiation module, the BGP neighbor that has the aging routing capability in the case that the neighbor is continuously connected. Specifically, the description of the above embodiment.
- the BGP neighbor After receiving the route request message, the BGP neighbor sends a route to the BGP distribution point according to the route request message.
- the receiving module receives the route sent by the BGP neighbor, and the first route sending end message.
- the routing processing module performs routing processing on the route that is received by the receiving module and sent by the BGP neighbor according to the routing request message.
- the routing processing module may start routing processing after the receiving module receives the End-Of-RIB message sent by each BGP neighbor.
- the route sending module sends the route processed route to the BGP neighbor, so that the BGP neighbor performs route aging according to the received route.
- the route sending module After the route sending module needs to send a route to the BGP neighbor, it can send a message to the BGP neighbor.
- the message indicates that the route received by the subsequent BGP neighbor is sent by the BGP distribution point and is used for aging processing of the BGP neighbor. routing. This message can be referred to as a route to send start message.
- the route sending module should send a route sending start message to multiple BGP neighbors.
- the route sending module can consider the address family and sub-address family information supported by the BGP neighbor. That is, the route sent by the route sending module to the BGP neighbor should belong to the address family and sub-supports supported by the BGP neighbor. Address family.
- the address family and sub-address family information supported by BGP neighbors can be statically configured or dynamically configured.
- the dynamic configuration such as the capability negotiation module, is configured during the BGP capability negotiation process.
- the capability negotiation module can use the existing capability negotiation process to carry the address family and the sub-address family information supported by the BGP neighbors in the existing message to obtain the address family and the sub-address family supported by the BGP peer. The description is as follows.
- the route sending module can consider whether the BGP neighbor supports the route range. If the BGP neighbor supports the route range, the route sending module can send the route range information of the route aging to the BGP neighbor, and Routing within the routing range; otherwise, the routing module sends all routes to the B GP neighbor.
- Whether the BGP neighbor supports the routing range information can be statically configured or dynamically configured.
- the dynamic configuration such as the capability negotiation module, is set during the BGP capability negotiation process.
- the capability negotiation module can use the existing capability negotiation process to carry the BGP neighbors to support the routing range information in the existing message to negotiate whether the BGP neighbor supports the routing range information, as described in the foregoing embodiment.
- the route sending module may carry the route range information in the route sending start message, where the route range information is used to indicate that the BGP neighbor performs route aging processing in the route range.
- VPN routing range information such as RD information.
- the route sending module sends a route to the BGP neighbor after sending the route start message.
- the routing module sends routings to BGP neighbors, which should comply with BGP's route loopback prevention rules.
- the message sent by the route sending module to send the route may be a route update message.
- the route sending module sends a message to the BGP neighbor after the route to be sent is sent to the BGP neighbor.
- the message indicates that the BGP distribution point route is sent.
- the message can be sent. It is called the second route sending end message.
- a specific example of the second route transmission end message is: End-Of-RIB message.
- the route sending module may also carry the route to send the second start flag information, the route range information, and the second route sending end flag in the message sending the route, as described in the foregoing embodiment.
- a BGP neighbor performs route aging processing based on the received route.
- Route aging processing such as deleting BGP neighbors A route stored in the BGP neighbor, a new route stored in the BGP neighbor, and a new route added to the BGP neighbor.
- the foregoing capability negotiation module may also implement negotiation of the maximum waiting time in the BGP capability negotiation process.
- the maximum waiting time can trigger the aging process of the BGP neighbors, as described in the above embodiment.
- the sub-modules and the like included in the routing processing module and the routing module respectively are as described in the above embodiments, and will not be described in detail herein.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
Description
说明书 Instruction manual
Title of Invention:基于边界网关协议的路由老化方法、 装置和路由 器 Title of Invention: Route aging method, device and router based on border gateway protocol
[1] 本申请要求于 2008年 12月 25日提交中国专利局、 申请号为 200810241079.1、 发 明名称为"基于边界网关协议的路由老化方法、 装置和路由器 "的中国专利申请的 优先权, 其全部内容通过引用结合在本申请中。 [1] This application claims priority to Chinese Patent Application No. 200810241079.1, entitled "Route Aging Method, Device and Router Based on Border Gateway Protocol", filed on December 25, 2008, all of which is filed on December 25, 2008. The content is incorporated herein by reference.
[2] 技术领域 [2] Technical field
[3] 本发明涉及网络通讯技术领域, 具体涉及基于 BGP的路由老化方法、 基于 BGP 的路由老化装置和路由器。 [3] The present invention relates to the field of network communication technologies, and specifically relates to a BGP-based route aging method, a BGP-based route aging device, and a router.
[4] 发明背景 [4] Background of the invention
[5] Border Gateway [5] Border Gateway
Protocol (边界网关协议, BGP) 分布式技术方案即设置多个 BGP分布点, 例如 在多个单板中分别设置 BGP进程、 BGP线程等, 所有的路由 (如 VPN路由或 IP路 由等) 被分配到多个 BGP分布点处进行处理。 BGP分布式技术方案能够减轻 BGP 集中式技术方案中单一 BGP进程或线程等的路由处理压力, 避免 BGP路由处理的 性能瓶颈问题, 从而提高 BGP的路由处理能力以及路由容量。 Protocol (Border Gateway Protocol, BGP) The distributed technology solution sets multiple BGP distribution points. For example, BG P processes, BGP threads, etc. are set on multiple boards. All routes (such as VPN routes or IP routes) are configured. Assigned to multiple BGP distribution points for processing. The BGP distributed technology solution can reduce the routing processing pressure of a single BGP process or a thread in a BGP centralized technology solution, and avoid the performance bottleneck of BGP route processing, thereby improving the routing processing capability and routing capacity of BGP.
[6] 在实现本发明过程中, 发明人发现: 在 BGP分布式技术方案中, 多种不同的原 因可能均会导致 BGP分布点重新启动; 在 BGP分布点重新启动过程中, 路由可能 会发生变化, 例如某 VPN路由或 IP路由被撤销等; 在 BGP分布点启动完成后, 由 于该 BGP分布点无法获知在启动过程中发生变化的路由, 因此, 该 BGP分布点也 就不能够通知 BGP邻居更新变化的路由。 为了保证 BGP邻居存储正确的路由, 可 以釆用 BGP集中式技术方案中的处理方式, 即 BGP分布点在启动完成后与所有的 BGP邻居断连, 并重新建立连接, 在连接成功重建后, 各 BGP邻居重新收集路由 。 该处理方式虽然能够使 BGP邻居存储正确的路由, 但是, 任何一个 BGP分布点 的重新启动都会影响到所有的 BGP邻居。 [6] In the process of implementing the present invention, the inventor found that: In the BGP distributed technical solution, a plurality of different reasons may cause the BGP distribution point to restart; during the BGP distribution point restart process, the route may occur. The BGP distribution point cannot be notified to the BGP neighbors. Update the changed route. In order to ensure that the BGP neighbors store the correct routes, you can use the BGP centralized technology solution. That is, the BGP distribution point is disconnected from all BGP neighbors after the startup is complete, and the connection is re-established. After the connection is successfully re-established, The BGP neighbor re-collects the route. Although this processing method enables BGP neighbors to store correct routes, any BGP distribution point restart will affect all BGP neighbors.
[7] 发明内容 [7] Summary of the invention
[8] 本发明实施方式提供一种基于 BGP的路由老化方法、 装置和路由器, 可在不与 BGP邻居断连的情况下, 更新 BGP邻居中存储的路由。 [8] The embodiment of the present invention provides a BGP-based route aging method, device, and router, which may When the BGP neighbor is disconnected, the route stored in the BGP neighbor is updated.
本发明实施方式提供的一种路由老化方法, BGP分布点在重新启动后, 所述方 法包括: A route aging method provided by the embodiment of the present invention, after the BGP distribution point is restarted, the method includes:
向 BGP邻居发送路由请求消息, 所述 BGP邻居为: 具有在邻居不断连情况下老 化路由能力的 BGP邻居; Sending a routing request message to the BGP neighbor, where the BGP neighbor is: a BGP neighbor having an aging routing capability when the neighbor is continuously connected;
接收所述 BGP邻居根据所述路由请求消息发送的路由, 并对接收到的路由进行 路由处理; Receiving a route sent by the BGP neighbor according to the route request message, and performing routing processing on the received route;
向所述 BGP邻居发送路由处理后的路由, 使所述 BGP邻居根据接收到的路由进 行路由老化。 The route processed by the route is sent to the BGP neighbor, so that the BGP neighbor performs route aging according to the received route.
本发明实施方式提供的基于 BGP的路由老化装置, 包括: The BGP-based route aging device provided by the embodiment of the present invention includes:
路由请求模块, 用于在 BGP分布点重新启动后, 向 BGP邻居发送路由请求消息 , 所述 BGP邻居为具有在邻居不断连情况下老化路由能力的 BGP邻居; 路由处理模块, 用于对 BGP分布点接收到的路由进行路由处理, 所述接收到的 路由为 BGP邻居根据所述路由请求消息发送的路由; The route requesting module is configured to send a route request message to the BGP neighbor after the BGP distribution point is restarted, where the BGP neighbor is a BGP neighbor having the ability to aging the route when the neighbor is continuously connected; the route processing module is configured to distribute the BGP The route received by the point is routed, and the received route is a route sent by the BGP neighbor according to the route request message;
路由发送模块, 用于在路由处理模块完成路由处理后, 向 BGP邻居发送路由处 理后的路由, 使 BGP邻居根据接收到的路由进行路由老化。 The route sending module is configured to: after the route processing module completes the route processing, send the route processed by the route to the BGP neighbor, so that the BGP neighbor performs route aging according to the received route.
本发明实施方式提供的路由器, 设置有多个 BGP分布点, 该路由器包括: 路由请求模块, 用于在 BGP分布点重新启动后, 向 BGP邻居发送路由请求消息 , 所述 BGP邻居为具有在邻居不断连情况下老化路由能力的 BGP邻居; 接收模块, 用于接收 BGP邻居根据所述路由请求消息发送的路由; The router provided by the embodiment of the present invention is configured with multiple BGP distribution points, and the router includes: a route requesting module, configured to send a route request message to the BGP neighbor after the BGP distribution point is restarted, where the BGP neighbor has the neighbor a BGP neighbor that continuously aging the routing capability; and a receiving module, configured to receive a route that the BGP neighbor sends according to the routing request message;
路由处理模块, 用于对接收模块接收的路由进行路由处理; a routing processing module, configured to perform routing processing on a route received by the receiving module;
路由发送模块, 用于在路由处理模块完成路由处理后, 向 BGP邻居发送路由处 理后的路由, 使 BGP邻居根据接收到的路由进行路由老化。 The route sending module is configured to: after the route processing module completes the route processing, send the route processed by the route to the BGP neighbor, so that the BGP neighbor performs route aging according to the received route.
通过上述技术方案的描述可知, 在 BGP分布点重新启动后, 通过向 BGP邻居发 送路由请求消息, BGP分布点可以接收到 BGP邻居发送的路由并实现路由处理, BGP分布点通过向 BGP邻居发送路由处理后的路由, 使 BGP邻居可以根据接收到 的路由对其存储的路由进行老化处理, 从而在不需要 BGP邻居间断连并重新建立 连接的情况下, 也能够使 BGP邻居存储正确的路由, 避免了一个 BGP分布点重新 启动而影响到所有的 BGP邻居的问题。 According to the description of the foregoing technical solution, after the BGP distribution point is restarted, the BGP distribution point can receive the route sent by the BGP neighbor and implement the route processing by sending a route request message to the BGP neighbor. The BGP distribution point sends the route to the BGP neighbor. The BGP neighbors can aging the routes that are stored on the BGP neighbors based on the received routes. Therefore, the BGP neighbors can store the correct routes and avoid the BGP neighbors. a BGP distribution point re- Startup affects all BGP neighbors.
[23] 附图简要说明 [23] BRIEF DESCRIPTION OF THE DRAWINGS
[24] 图 1是本发明实施例一的基于 BGP的路由老化方法流程图; 1 is a flowchart of a BGP-based route aging method according to Embodiment 1 of the present invention;
[25] 图 2是本发明实施例二适用的基于 RD的分布式路由处理的结构示意图; 2 is a schematic structural diagram of an RD-based distributed routing process according to Embodiment 2 of the present invention;
[26] 图 3是本发明实施例三的基于 BGP的路由老化方法流程图; FIG. 3 is a flowchart of a BGP-based route aging method according to Embodiment 3 of the present invention; FIG.
[27] 图 4是本发明实施例四的基于 BGP的路由老化装置示意图; 4 is a schematic diagram of a BGP-based route aging apparatus according to Embodiment 4 of the present invention;
[28] 图 5是本发明实施例四的路由处理模块示意图; FIG. 5 is a schematic diagram of a routing processing module according to Embodiment 4 of the present invention; FIG.
[29] 图 6是本发明实施例四的路由发送模块示意图。 6 is a schematic diagram of a route sending module according to Embodiment 4 of the present invention.
[30] 实施本发明的方式 [30] Mode for carrying out the invention
[31] 下面结合附图对基于 BGP的路由老化方法的具体实现过程进行举例说明。 [31] The specific implementation process of the BGP-based route aging method will be described below with reference to the accompanying drawings.
[32] 实施例一、 基于 BGP的路由老化方法流程如附图 1所示。 [32] Embodiment 1 The flow of the BGP-based route aging method is as shown in FIG. 1.
[33] 图 1中, 步骤 100、 多个 BGP分布点中的至少一个 BGP分布点重新启动。 导致 B GP分布点重新启动的原因如资源耗尽、 BGP分布点所在单板异常等, 本实施例 不限制导致 BGP分布点重新启动的原因。 BGP分布点的种类有多种, 例如, 基于 RD的 BGP分布点等, 本实施例不限制 BGP分布点的具体表现形式。 [33] In Figure 1, step 100, at least one of the plurality of BGP distribution points is restarted. The reason for the restart of the B GP distribution point is that the resource is exhausted and the board of the BGP distribution point is abnormal. This embodiment does not limit the cause of restarting the BGP distribution point. There are various types of BGP distribution points, for example, BGP-based BGP distribution points. This embodiment does not limit the specific representation of BGP distribution points.
[34] 步骤 110、 重新启动的 BGP分布点在重新启动完成后, 在不断连 BGP分布点与 B GP邻居之间的连接的情况下, BGP分布点向 BGP邻居发送路由请求消息。 这里 的 BGP邻居可以为: 具有在邻居不断连情况下老化路由能力的 BGP邻居。 [34] Step 110: After the restart of the BGP distribution point is completed, the BGP distribution point sends a route request message to the BGP neighbor when the connection between the BGP distribution point and the B GP neighbor is continuously connected. The BGP neighbors here can be: BGP neighbors with the ability to aging routes when the neighbors are continuously connected.
[35] 在一个网络中, 如果所有的节点都肯定具有在邻居不断连情况下老化路由的能 力, 贝 l」BGP分布点可以在重新启动后, 直接向所有的 BGP邻居发送路由请求消息 。 如果不是所有的节点均肯定具有在邻居不断连情况下老化路由的能力, 则 BGP 分布点在重新启动后, 可以先选择出具有在邻居不断连情况下老化路由能力的 B GP邻居, 然后, 向选择出的 BGP邻居发送路由请求消息。 [35] In a network, if all nodes are sure to have the ability to aging routes when the neighbors are constantly connected, the BGP distribution point can send routing request messages directly to all BGP neighbors after restarting. If not all the nodes are sure to have the ability to aging routes when the neighbors are continuously connected, the BGP distribution point can be selected to have the B GP neighbors with the aging route capability in the case of continuous neighbor connection. Then, The selected BGP neighbor sends a route request message.
[36] BGP分布点可以根据预先存储的信息确定出具有在邻居不断连情况下老化路由 能力的 BGP邻居。 预先存储的信息可以是静态配置的, 也可以是动态配置的。 静 态配置的一个具体的例子为: 网管等通过发送命令在 BGP分布点中配置具有在邻 居不断连情况下老化路由能力的 BGP邻居的信息。 动态配置的一个具体例子为: 不论网络中的各节点对上述能力的支持情况如何, BGP邻居和 BGP分布点之间都 可以相互通报是否具有在邻居不断连情况下老化路由能力的信息, BGP分布点存 储该通报的信息。 这样, BGP分布点可以根据该通报的信息获知哪些 BGP邻居具 有在邻居不断连情况下老化路由能力。 [36] The BGP distribution point can determine, according to the pre-stored information, a BGP neighbor with the aging route capability in the case of continuous neighbor connection. The pre-stored information can be statically configured or dynamically configured. A specific example of the static configuration is as follows: The NMS sends a command to configure the BGP neighbors with the aging neighboring capability in the BGP distribution point. A specific example of dynamic configuration is: Regardless of the support of each node in the network for the above capabilities, between the BGP neighbor and the BGP distribution point It is possible to notify each other whether there is information about the aging routing capability in the case where the neighbors are constantly connected, and the BGP distribution point stores the notified information. In this way, the BGP distribution point can learn, according to the notified information, which BGP neighbors have the ability to aging the route when the neighbors are continuously connected.
[37] 上述通报是否具有在邻居不断连情况下老化路由能力的信息的过程可以在 BGP 能力协商过程中实现。 也就是说, 可以将在邻居不断连情况下老化路由的能力 作为 BGP能力的一部分。 BGP邻居通报是否具有在邻居不断连情况下老化路由能 力的信息的一个具体例子为: BGP邻居将是否具有在邻居不断连情况下老化路由 能力的信息携带在 OPEN消息中, 并向对端节点发送该 OPEN消息。 可以对 OPEN 消息进行扩展, 以在 OPEN消息中携带上述信息。 对 OPEN消息的扩展可以为增 加新的字段, 利用该新增加的字段携带上述信息; 也可以为利用 OPEN消息的已 有字段来携带上述信息, 例如利用 OPEN消息中的某个保留字段来携带上述信息 等。 [37] The process of whether the above notification has the information of aging routing capability in the case of continuous neighbor connection can be implemented in the BGP capability negotiation process. That is, the ability to aging routes while neighbors are constantly connected can be used as part of BGP capabilities. A specific example of whether the BGP neighbors have the information about the aging capability of the neighbors in the case of the neighbors are: The information about whether the BGP neighbors have the aging capability in the case of the neighbors are continuously carried in the OPEN message, and sent to the peer node. The OPEN message. The OPEN message can be extended to carry the above information in the OPEN message. The extension of the OPEN message may be to add a new field, and use the newly added field to carry the above information; or to use the existing field of the OPEN message to carry the above information, for example, by using a reserved field in the OPEN message to carry the above information. Information, etc.
[38] 对于网络中存在的不具有在邻居不断连情况下老化路由能力的 BGP邻居, 可以 釆用现有的方法来保证 BGP邻居存储正确的路由, 例如中断 BGP分布点与 BGP邻 居之间的连接, 再重新建立 BGP邻居之间的连接等。 [38] For BGP neighbors in the network that do not have the ability to aging routes in the case of neighbors, you can use existing methods to ensure that BGP neighbors store the correct routes, for example, between BGP distribution points and BGP neighbors. Connect, and then re-establish the connection between BGP neighbors.
[39] 在步骤 110中, 可以利用现有协议中的消息来实现路由请求消息, 如将 Route -Refresh消息作为路由请求消息; 也可以通过其它消息来实现路由请求消息, 例 如通过新定义增加的消息来实现路由请求消息。 本实施例不限制路由请求消息 的具体表现形式。 [39] In step 110, the routing request message may be implemented by using a message in the existing protocol, such as a Route-Refresh message as a routing request message; the routing request message may also be implemented by other messages, for example, by a new definition. The message is used to implement the routing request message. This embodiment does not limit the specific representation of the routing request message.
[40] 步骤 120、 BGP邻居接收路由请求消息, 并根据该路由请求消息向 BGP分布点 发送路由。 BGP邻居在向 BGP分布点发送路由吋应遵守 BGP的防止路由环回等规 定。 BGP邻居发送路由釆用的消息可以为现有 BGP中规定的消息, 当然, 也可以 釆用其它消息, 例如釆用新定义增加的消息等。 [40] Step 120: The BGP neighbor receives the route request message, and sends a route to the BGP distribution point according to the route request message. BGP neighbors should follow BGP's route loopback prevention rules when sending routes to BGP distribution points. The message used by the BGP neighbor to send the route can be the message specified in the existing BGP. Of course, other messages can also be used, for example, the newly added message is added.
[41] BGP邻居在将需要发送的路由均向 BGP分布点发送完成后, 可以向 BGP分布点 发送一条消息, 该消息表示 BGP邻居路由发送完成, 该消息可以称为第一路由发 送结束消息。 第一路由发送结束消息的一个具体例子为: End-Of-RIB消息。 当 然, 第一路由发送结束消息也可以为其它消息, 例如, 可以为新定义增加的消 息等。 [42] 需要说明的是, BGP邻居也可以在发送路由的消息中携带第一路由发送结束标 志信息, 该标志信息表示 BGP邻居路由发送完成。 在发送路由的消息中携带路由 发送结束标志信息的情况下, BGP邻居可以不再发送第一路由发送结束消息。 [41] After the BGP neighbor sends the route to be sent to the BGP distribution point, the BGP neighbor can send a message to the BGP distribution point. The message indicates that the BGP neighbor route is sent. The message can be called the first route sending end message. A specific example of the first route transmission end message is: End-Of-RIB message. Of course, the first route sending end message may also be other messages, for example, a message that may be added for a new definition or the like. [42] It should be noted that the BGP neighbor may also carry the first route sending end flag information in the message sending the route, and the flag information indicates that the BGP neighbor route is sent. When the route sending end message carries the route sending end flag information, the BGP neighbor may no longer send the first route sending end message.
[43] 步骤 130、 BGP分布点接收 BGP邻居发送来的路由, 并对接收到的路由进行路 由处理。 [43] Step 130: The BGP distribution point receives the route sent by the BGP neighbor, and performs routing processing on the received route.
[44] 在 BGP邻居向 BGP分布点发送路由之后还向 BGP分布点发送第一路由发送结束 消息的情况下, BGP分布点在接收到各 BGP邻居发送的路由后, 还需要判断是否 接收到各 BGP邻居发送的第一路由发送结束消息, 在判断出成功接收到各 BGP邻 居发送的路由以及第一路由发送结束消息后, BGP分布点再对接收到的路由进行 路由处理。 BGP分布点可以按照现有机制进行路由处理, 如对路由选路并更新路 由转发表等。 在 BGP邻居向 BGP分布点发送的路由中携带有第一路由发送结束标 志信息的情况下, BGP分布点也可以釆用类似的方式来进行路由处理。 [44] After the BGP neighbor sends a route to the BGP distribution point and sends the first route transmission end message to the BGP distribution point, the BGP distribution point needs to determine whether to receive each route after receiving the route sent by each BGP neighbor. The first route sent by the BGP neighbor sends a message. After the route that is sent by each BGP neighbor and the first route is sent, the BGP distribution point processes the received route. BGP distribution points can be routed according to existing mechanisms, such as routing routes and updating routing forwarding tables. In the case that the route sent by the BGP neighbor to the BGP distribution point carries the first route sending end flag information, the BGP distribution point can also perform routing processing in a similar manner.
[45] 步骤 140、 在路由处理完成后, BGP分布点向 BGP邻居发送路由处理后的路由 。 例如, BGP分布点根据出口策略向各 BGP邻居发送路由处理后的路由。 [45] Step 140: After the route processing is completed, the BGP distribution point sends the route processed route to the BGP neighbor. For example, a BGP distribution point sends a route processed route to each BGP neighbor according to an egress policy.
[46] BGP分布点在需要向 BGP邻居发送路由处理后的路由吋, 可以先向 BGP邻居发 送一条消息, 该消息表示后续 BGP邻居接收到的路由为 BGP分布点发送的、 用于 BGP邻居进行路由老化处理的路由。 该消息可以称为路由发送起始消息。 在 BGP 邻居为多个吋, BGP分布点应向多个 BGP邻居均发送路由发送起始消息。 [46] The BGP distribution point sends a route to the BGP neighbor. The BGP neighbor sends a message to the BGP neighbor. The message indicates that the route received by the BGP neighbor is sent by the BGP distribution point and used by the BGP neighbor. Route aging processed route. This message can be referred to as a route to send start message. After a BGP neighbor has multiple ports, the BGP distribution point should send a route sending start message to multiple BGP neighbors.
[47] BGP分布点在向 BGP邻居发送路由处理后的路由过程中, 可以考虑 BGP邻居支 持的地址族和子地址族信息, 也就是说, BGP分布点向 BGP邻居发送的路由应该 属于 BGP邻居支持的地址族和子地址族。 BGP邻居支持的地址族和子地址族信息 可以是静态配置的, 也可以是动态配置的。 静态配置的一个具体的例子为: 网 管等通过发送命令在 BGP分布点中配置 BGP邻居支持的地址族和子地址族信息。 动态配置的一个具体例子为: BGP邻居向 BGP分布点通报其支持的地址族和子地 址族信息, BGP分布点存储该通报的信息。 这样, BGP分布点可以根据该通报的 信息获知 BGP邻居支持的地址族和子地址族信息。 这里的地址族和子地址族如 IP v6单播 /多播、 IPv4单播 /多播、 VPNv6单播 /多播、 以及 VPNv4单播 /多播等。 [47] The BGP distribution point can consider the address family and sub-address family information supported by the BGP neighbors in the process of sending the route to the BGP neighbor. That is, the route sent by the BGP distribution point to the BGP neighbor should belong to the BGP neighbor. Address family and sub address family. The address family and sub-address family information supported by BGP neighbors can be statically configured or dynamically configured. A specific example of static configuration is as follows: The network management device configures the address family and sub-address family information supported by BGP neighbors in the BGP distribution point by sending commands. A specific example of dynamic configuration is as follows: A BGP neighbor informs a BGP distribution point of its supported address family and sub-address family information, and a BGP distribution point stores the notified information. In this way, the BGP distribution point can learn the address family and sub-address family information supported by the BGP neighbor according to the notified information. The address family and sub-address families here are IP v6 unicast/multicast, IPv4 unicast/multicast, VPNv6 unicast/multicast, and VPNv4 unicast/multicast.
[48] BGP分布点在向 BGP邻居发送路由处理后的路由过程中, 可以考虑 BGP邻居是 否支持路由范围, 如果 BGP邻居支持路由范围, 贝 l」BGP分布点可以向 BGP邻居发 送需要进行路由老化的路由范围信息、 以及路由范围内的路由; 否则, BGP分布 点需要向 BGP邻居发送所有的路由。 BGP邻居是否支持路由范围信息可以是静态 配置的, 也可以是动态配置的。 静态配置的一个具体的例子为: 网管等通过发 送命令在 BGP分布点中配置 BGP邻居支持路由范围信息。 动态配置的一个具体例 子为: BGP邻居向 BGP分布点通报其支持路由范围信息, BGP分布点存储该通报 的信息。 这样, BGP分布点可以根据该通报的信息获知 BGP邻居的支持路由范围[48] BGP distribution points can be considered in the process of sending route processing to BGP neighbors. If the BGP neighbors support the routing range, the BGP distribution point can send the route range information of the aging route to the BGP neighbor and the route within the route range. Otherwise, the BGP distribution point needs to send all the routes to the BGP neighbor. Routing. Whether the BGP neighbor supports the routing range information can be statically configured or dynamically configured. A specific example of static configuration is as follows: The NMS configures BGP neighbors to support routing range information in BGP distribution points by sending commands. A specific example of dynamic configuration is as follows: A BGP neighbor notifies a BGP distribution point of its supported route range information, and a BGP distribution point stores the notified information. In this way, the BGP distribution point can learn the supported routing range of the BGP neighbor according to the notified information.
Ι π Λ∑!、。 Ι π Λ∑! ,.
[49] 在 BGP邻居支持路由范围吋, BGP分布点可以在路由发送起始消息中携带路由 范围信息, 该路由范围信息用于指示 BGP邻居在该路由范围内进行路由老化处理 。 VPN路由范围信息如 RD信息等。 上述路由发送起始消息可以为新定义增加的 消息。 [49] After the BGP neighbor supports the route range, the BGP distribution point can carry the route range information in the route start message. The route range information is used to indicate that the BGP neighbor performs route aging processing in the route range. VPN routing range information such as RD information. The above route sending start message may be a newly defined added message.
[50] 在发送路由发送起始消息后, BGP分布点向 BGP邻居发送路由处理后的路由。 [50] After sending the route sending start message, the BGP distribution point sends the route processed route to the BGP neighbor.
BGP分布点在向 BGP邻居发送路由吋应遵守 BGP的防止路由环回等规定。 BGP分 布点发送路由釆用的消息可以为现有 BGP中规定的消息, 如路由更新消息; 当然 , 也可以釆用其它消息, 例如釆用新定义增加的消息等。 BGP distribution points should follow BGP's route loopback prevention rules when sending routes to BGP neighbors. The message used by the BGP distribution point to send routing information may be a message specified in the existing BGP, such as a routing update message; of course, other messages may also be used, such as using a newly defined added message.
[51] 针对一个 BGP邻居来说, BGP分布点在将需要发送的路由均向该 BGP邻居发送 完成后, 可以向该 BGP邻居发送一条消息, 该消息表示 BGP分布点路由发送完成 , 该消息可以称为第二路由发送结束消息。 第二路由发送结束消息的一个具体 例子为: End-Of-RIB消息。 当然, 第二路由发送结束消息也可以为其它消息, 例如, 可以为新定义增加的消息等。 这里的第二路由发送结束消息可以与上述 第一路由发送结束消息相同, 如均 End-Of-RIB消息、 或者均为某个新定义增加 的消息等。 [51] For a BGP neighbor, after the BGP distribution point sends the route to be sent to the BGP neighbor, the BGP distribution point sends a message to the BGP neighbor. The message indicates that the BGP distribution point route is sent. The message can be It is called the second route sending end message. A specific example of the second route transmission end message is: End-Of-RIB message. Of course, the second route sending end message may also be other messages, for example, a message that may be added for a new definition or the like. The second route sending end message may be the same as the first route sending end message, such as an End-Of-RIB message, or a message that is newly added.
[52] 步骤 140中需要说明的是, BGP分布点也可以在发送路由的消息中携带路由发 送起始标志信息以及路由范围信息, 该标志信息表示 BGP分布点开始发送用于路 由老化的路由。 在发送路由的消息中携带路由发送起始标志信息和路由范围信 息的情况下, BGP分布点可以不再发送路由发送起始消息。 另外, BGP分布点也 可以在发送路由的消息中携带路由发送第二结束标志信息, 该标志信息表示 BGP 分布点路由发送完成。 在发送路由的消息中携带第二路由发送结束标志信息的 情况下, BGP分布点可以不再发送第二路由发送结束消息。 这里的第二路由发送 结束标志可以与上述第一路由发送结束标志相同。 [52] In step 140, the BGP distribution point may also carry the route sending start flag information and the route range information in the message sending the route, where the flag information indicates that the BGP distribution point starts to send the route used for route aging. When the route sending message carries the route sending start flag information and the route range information, the BGP distribution point may no longer send the route sending start message. In addition, the BGP distribution point may also carry a route to send a second end flag information in the message sending the route, and the flag information indicates BGP. The distribution point route is sent. When the message carrying the route carries the second route sending end flag information, the BGP distribution point may no longer send the second route sending end message. Here, the second route transmission end flag may be the same as the above-described first route transmission end flag.
[53] 步骤 150、 BGP邻居根据接收到的路由进行路由老化处理。 路由老化处理如删 除 BGP邻居中存储的某路由、 修改 BGP邻居中存储的某路由、 以及在 BGP邻居中 增加存储新的路由等。 [53] Step 150: The BGP neighbor performs route aging processing according to the received route. The route aging process includes deleting a route stored in a BGP neighbor, modifying a route stored in a BGP neighbor, and adding a new route to the BGP neighbor.
[54] 在 BGP分布点发送第二路由发送结束消息的情况下, BGP邻居可以在接收到第 二路由发送结束消息后, 根据接收到的路由对其存储的路由进行路由老化处理 。 如果 BGP邻居在预定吋间间隔内没有接收到第二路由发送结束消息, 则 BGP邻 居也可以根据接收到的路由对其存储的路由进行路由老化处理。 该预定吋间间 隔即 BGP邻居进行路由老化处理的最大等待吋间。 [54] In the case that the BGP distribution point sends the second route sending end message, the BGP neighbor may perform route aging processing on the stored route according to the received route after receiving the second route sending end message. If the BGP neighbor does not receive the second route sending end message within the scheduled interval, the BGP neighbor can also perform route aging processing on the stored route based on the received route. The predetermined time interval is the maximum waiting time for the aging process of the BGP neighbors.
[55] BGP邻居可以在接收到路由发送起始消息吋开始为最大等待吋间计吋, 在计吋 值未超过最大等待吋间且 BGP邻居接收到路由发送结束消息, 则 BGP邻居根据接 收到的路由对其存储的路由进行路由老化处理; 在计吋值超过最大等待吋间且 B GP邻居一直未接收到 BGP分布点发送的第二路由发送结束消息的情况下, BGP 邻居根据接收到的路由对其存储的路由进行路由老化。 也就是说, 在本实施例 中, 触发 BGP邻居进行路由老化处理的条件可以为第二路由发送结束消息, 也可 以为最大等待吋间。 上述计吋值未超过最大等待吋间也可以为计吋值未达到最 大等待吋间, 此吋, 计吋值超过最大等待吋间应该为计吋值达到最大等待吋间 。 另外, BGP邻居也可以在接收到 BGP分布点发送的路由吋开始为最大等待吋间 计吋。 [55] The BGP neighbor can start counting the maximum waiting time after receiving the route sending start message. When the accounting value does not exceed the maximum waiting time and the BGP neighbor receives the route sending end message, the BGP neighbor receives the message according to the Routes are routed to the stored routes. In the case where the calculated value exceeds the maximum waiting time and the B GP neighbor has not received the second route transmission end message sent by the BGP distribution point, the BGP neighbor is received according to the received route. A route aging the routes it stores. That is to say, in this embodiment, the condition for triggering the BGP neighbor to perform the route aging process may be the second route sending end message, or may be the maximum waiting time. If the above calculation value does not exceed the maximum waiting time, the calculation value may not reach the maximum waiting time. Therefore, the calculation value exceeds the maximum waiting time, and the calculation value should reach the maximum waiting time. In addition, the BGP neighbors can also start the maximum waiting time after receiving the route sent by the BGP distribution point.
[56] 需要说明的是, 在 BGP分布点向 BGP邻居发送的路由中携带路由发送起始标志 信息和 /或第二路由发送结束标志信息的情况下, BGP邻居也可以釆用上述类似 的方式来进行路由老化处理。 另外, 上述最大等待吋间可以是静态配置的, 也 可以是动态配置的。 静态配置的一个具体例子为: 网管等通过发送命令在 BGP邻 居中配置最大等待吋间。 动态配置的一个具体例子为: 在 BGP能力协商过程中协 商确定最大等待吋间。 [56] It should be noted that, in the case that the route sent by the BGP distribution point to the BGP neighbor carries the route sending start flag information and/or the second route sending end flag information, the BGP neighbor may also use the similar manner described above. To perform route aging processing. In addition, the above maximum waiting time may be statically configured or dynamically configured. A specific example of static configuration is as follows: The NMS configures the maximum waiting time in the BGP neighbor by sending commands. A specific example of dynamic configuration is: Negotiate to determine the maximum wait time during the BGP capability negotiation process.
[57] 从上述实施例一的描述可知, BGP分布点在重新启动后, 通过向 BGP邻居发送 路由请求消息, BGP邻居根据接收到的路由请求消息向 BGP分布点发送路由, 使 BGP分布点可以在重新启动后、 不需要断连 BGP邻居连接的情况下, 收集到 BGP 邻居发送的路由, 实现路由处理; BGP分布点通过向 BGP邻居发送路由处理后的 路由, 使 BGP邻居可以根据接收到的路由对其存储的路由进行老化处理, 从而在 不需要 BGP邻居间断连并重新建立连接的情况下, 也能够使 BGP邻居存储正确的 路由, 进而避免了一个 BGP分布点重新启动而影响到所有的 BGP邻居的问题。 通 过使 BGP邻居在发送路由后向 BGP分布点发送第一路由发送结束消息, 使 BGP分 布点可以明确获知是否从 BGP邻居处成功收集到完整的路由。 通过釆用最大等待 吋间和第二路由发送结束消息来触发 BGP邻居进行路由老化处理, 避免了第二路 由发送结束消息传输异常而导致的不能够成功进行路由老化的现象。 通过在 BGP 能力协商过程中进行具有在邻居不断连情况下路由老化能力、 以及最大等待吋 间等的协商, 使 BGP分布点可以方便的获知哪些 BGP邻居具有在邻居不断连情况 下路由老化的能力, 使 BGP邻居可以获得合理的最大等待吋间。 通过在路由发送 起始消息中携带路由范围信息, 使 BGP邻居能够针对 BGP分布点负责的路由范围 内对路由进行老化处理。 [57] It can be seen from the description of the first embodiment that the BGP distribution point is sent to the BGP neighbor after being restarted. Route request message, the BGP neighbor sends a route to the BGP distribution point according to the received route request message, so that the BGP distribution point can collect the route sent by the BGP neighbor after the restart, without disconnecting the BGP neighbor. Route processing: The BGP distribution point sends the route-processed route to the BGP neighbor, so that the BGP neighbor can aging the stored route based on the received route, so that the BGP neighbor does not need to be disconnected and re-established. It also enables BGP neighbors to store the correct routes, thus avoiding the problem that a BGP distribution point is restarted and affects all BGP neighbors. After the BGP neighbor sends a route to the BGP distribution point, the BGP distribution point can clearly know whether the complete route is successfully collected from the BGP neighbor. The aging process of the BGP neighbor is triggered by using the maximum waiting time and the second route to send the end message. This prevents the aging of the route due to the abnormal transmission of the second route. The BGP distribution point can easily learn which BGP neighbors have the ability to aging routes when the neighbors are continuously connected. In the BGP capability negotiation process, the aging of the routes is the same as that of the neighbors. , so that BGP neighbors can get a reasonable maximum waiting time. By carrying the routing range information in the routing start message, the BGP neighbor can perform aging processing on the route within the routing range that is responsible for the BGP distribution point.
[58] 实施例二、 在 BGP分布点为基于 RD的 BGP分布点的情况下, 实现路由老化的 方法。 [58] Embodiment 2: A method for implementing route aging in the case that the BGP distribution point is an RD-based BGP distribution point.
[59] 基于 RD的分布式路由处理结构如附图 2所示。 [59] The RD-based distributed routing processing structure is shown in Figure 2.
[60] 图 2中包括: 路由接收与分发模块和三个路由存储与处理模块。 一个路由存储 与处理模块即一个基于 RD的 BGP分布点, 也即一个基于 RD的 BGP运行单元, 基 于 RD的 BGP运行单元可以称为 RD-BGP运行单元, RD-BGP运行单元可以以进程 或线程等方式实现。 [60] Figure 2 includes: a route receiving and distribution module and three route storage and processing modules. A route storage and processing module is an RD-based BGP distribution point, that is, an RD-based BGP operation unit. The RD-based BGP operation unit can be called an RD-BGP operation unit, and the RD-BGP operation unit can be a process or a thread. Other ways to achieve.
[61] 路由接收与分发模块接收来自 BGP邻居的 VPN路由。 图 2中示出的路由接收与 分发模块能够接收到 BGP邻居 1和 BGP邻居 2发送来的 VPN路由, BGP邻居 1发送 来的 VPN路由可以包括 RD为 100: 1的 VPN路由和 RD为 200: 1的 VPN路由; BGP 邻居 2发送来的 VPN路由可以包括 RD为 300: 1的 VPN路由。 [61] The route receiving and distribution module receives VPN routes from BGP neighbors. The route receiving and distributing module shown in FIG. 2 can receive the VPN route sent by the BGP neighbor 1 and the BGP neighbor 2, and the VPN route sent by the BGP neighbor 1 can include the VPN route with the RD of 100: 1 and the RD is 200: 1 VPN route; The VPN route sent by BGP neighbor 2 can include a VPN route with an RD of 300:1.
[62] 路由接收与分发模块在接收到来自 BGP邻居的 VPN路由后, 获取来自 BGP邻居 的 VPN路由的 RD对应的路由存储与处理模块。 路由接收与分发模块将接收到的 VPN路由发送到获取的路由存储与处理模块, 即向三个路由存储与处理模块中 的一个路由存储与处理模块发送 VPN路由。 路由存储与处理模块接收路由接收 与分发模块发送来的 VPN路由, 并对接收到的 VPN路由进行处理。 [62] After receiving the VPN route from the BGP neighbor, the route receiving and distributing module acquires the route storage and processing module corresponding to the RD of the VPN route from the BGP neighbor. The route receiving and distribution module will receive The VPN route is sent to the acquired route storage and processing module, that is, a VPN route is sent to one of the three route storage and processing modules. The route storage and processing module receives the VPN route sent by the route receiving and distribution module, and processes the received VPN route.
在上述图 2所示的三个 RD-BGP运行单元中, 设定其中一个 RD-BGP运行单元重 新启动, 该重新启动的 RD-BGP运行单元应该在重新启动后向所有的具有在邻居 不断连情况下老化路由能力的 BGP邻居发送路由请求消息。 重新启动的 RD-BGP 运行单元可以利用 BGP能力协商机制来获知哪些 BGP邻居具有在邻居不断连情况 下老化路由的能力, 哪些 BGP邻居不具有在邻居不断连情况下老化路由的能力。 设定具有在邻居不断连情况下老化路由能力的 BGP邻居有五个, 则这五个 BGP邻 居在接收到路由请求消息后, 分别根据其存储路由向重新启动的 RD-BGP运行单 元发送路由。 这五个 BGP邻居中的每一个 BGP邻居在发送了路由后, 均需要显式 的向重新启动的 RD-BGP运行单元发送 End-Of-RIB消息, 以表明该 BGP邻居路由 发送完成。 该重新启动的 RD-BGP运行单元接收这五个 BGP邻居分别发送的路由 , 该重新启动的 RD-BGP运行单元在接收到上述五个 BGP邻居分别发送的 End-Of- RIB消息后, 确定出从上述五个 BGP邻居处成功收集到路由。 该重新启动的 RD- BGP运行单元对接收到的所有路由进行路由处理, 如路由选路、 更新路由转发表 等。 重新启动的 RD-BGP运行单元在路由处理完成后, 向上述五个 BGP邻居分别 发送路由发送起始消息, 以表示重新启动的 RD-BGP运行单元开始向 BGP邻居发 送路由、 BGP邻居应根据重新启动的 RD-BGP运行单元发送的路由进行路由老化 处理。 在这五个 BGP邻居均支持路由范围的情况下, 路由发送起始消息中可以携 带有 BGP邻居支持的地址族和子地址族信息、 以及 RD-BGP运行单元的路由范围 信息。 之后, 重新启动的 RD-BGP运行单元向五个 BGP邻居分别发送路由更新消 息, 该路由更新消息中携带有路由处理后的路由, 该消息中携带的路由为该重 新启动的 RD-BGP运行单元负责的路由。 重新启动的 RD-BGP运行单元在向每一 个 BGP邻居发送完路由后, 均需要再发送一条 End-Of-RIB消息, 以表明重新启动 的 RD-BGP运行单元路由发送完成。 BGP邻居在接收到路由发送起始消息后, 开 始为最大等待吋间计吋。 如果 BGP邻居在计吋值未达到最大等待吋间吋接收到 E nd-Of-RIB消息, 则 BGP邻居根据接收到的路由更新消息中的路由对其存储的路 由进行路由老化处理。 如果 BGP邻居在计吋值达到最大等待吋间吋仍然没有接收 到 End-Of-RIB消息, 则 BGP邻居根据接收到的路由更新消息中的路由对其存储的 路由进行路由老化处理。 上述进行路由老化处理的路由为: BGP邻居支持的地址 族和子地址族、 以及路由范围内的路由。 In the three RD-BGP running units shown in Figure 2 above, set one of the RD-BGP running units to restart, and the restarted RD-BGP running unit should be continuously connected to all neighbors after restarting. In this case, the BGP neighbor that aging the routing capability sends a route request message. The restarted RD-BGP running unit can use the BGP capability negotiation mechanism to learn which BGP neighbors have the ability to aging routes when the neighbors are continuously connected, and which BGP neighbors do not have the ability to aging routes when the neighbors are continuously connected. If there are five BGP neighbors with the ability to aging the neighbors in the case of continuous neighboring, the five BGP neighbors send routes to the restarted RD-BGP running unit according to their storage routes after receiving the routing request message. Each of the five BGP neighbors needs to send an End-Of-RIB message to the restarted RD-BGP running unit after the route is sent to indicate that the BGP neighbor route is sent. The restarted RD-BGP running unit receives the routes respectively sent by the five BGP neighbors, and the restarted RD-BGP running unit determines the End-Of-RIB message sent by the five BGP neighbors respectively. Successfully collected routes from the above five BGP neighbors. The restarted RD-BGP running unit performs routing processing on all received routes, such as routing routing, updating routing forwarding tables, and the like. After the route processing is completed, the restarted RD-BGP running unit sends a route sending start message to the five BGP neighbors respectively, so that the restarted RD-BGP running unit starts to send routes to the BGP neighbors, and the BGP neighbors should be re-based. Routes sent by the RD-BGP running unit to perform route aging processing. In the case that the five BGP neighbors support the routing range, the route sending start message may carry the address family and sub-address family information supported by the BGP neighbor and the routing range information of the RD-BGP running unit. After that, the restarted RD-BGP running unit sends a routing update message to the five BGP neighbors, and the route update message carries the route processed by the route, and the route carried in the message is the restarted RD-BGP running unit. Responsible routing. After the restarted RD-BGP running unit sends a route to each BGP neighbor, it needs to send an End-Of-RIB message to indicate that the restarted RD-BGP running unit route is sent. After receiving the route sending start message, the BGP neighbor starts to calculate the maximum waiting time. If the BGP neighbor receives the E nd-Of-RIB message after the calculated value does not reach the maximum waiting time, the BGP neighbor stores the route according to the route in the received routing update message. Route aging processing is performed. If the BGP neighbor does not receive the End-Of-RIB message after the aging timer reaches the maximum waiting time, the BGP neighbor performs route aging processing on the route that is stored according to the route in the received routing update message. The route that performs the route aging process is: the address family and sub-address family supported by the BGP neighbor, and the route within the route range.
实施例三、 在 BGP分布点为基于 RD的 BGP分布点的情况下, 路由老化方法的 具体实现过程如附图 3所示。 In the third embodiment, the specific implementation process of the route aging method is shown in FIG. 3 when the BGP distribution point is an RD-based BGP distribution point.
图 3中, 步骤 1、 BGP restarter (即重新启动的基于 RD的 BGP分布点) 和 BGP peer ( PBGP邻居) 在 BGP能力协商过程中, 针对在邻居不断连情况下的路由老 化能力进行协商 (即协商"邻居不断连能够老化路由"的能力) , 并建立会话。 In Figure 3, the BGP restarter (that is, the restarted RD-based BGP distribution point) and the BGP peer (PBGP neighbor) negotiate the aging capability of the route in the case of continuous neighbor connection in the BGP capability negotiation process. Negotiate "the ability of neighbors to continuously connect to aging routes" and establish a session.
[66] 例如, 在 BGP的 OPEN消息的扩展字段中定义的一个 TLV字段, BGP [66] For example, a TLV field defined in the extension field of the BGP OPEN message, BGP
restarter和 BGP peer在 OPEN消息的该 TLV字段中携带上述能力协商信息, 该 TLV 字段携带的能力协商信息用于描述本端是否能够支持上述能力、 本端支持的老 化路由的地址族和子地址族信息、 路由范围信息以及 BGP邻居老化路由所需要的 最大等待吋间。 The restarter and the BGP peer carry the foregoing capability negotiation information in the TLV field of the OPEN message. The capability negotiation information carried in the TLV field is used to describe whether the local end can support the foregoing capability, the address family and the sub-address family information of the aging route supported by the local end. Route range information and the maximum wait time required for BGP neighbor aging routes.
[67] 步骤 2、 BGP restarter重新启动后, BGP restarter向所有的具有 "邻居不断连能够 老化路由"能力的 BGP peer发送 Route-Refresh消息, 以请求更新路由。 [67] Step 2: After the BGP restarter is restarted, the BGP restarter sends a Route-Refresh message to all BGP peers with the ability of the neighbor to continuously connect to the aging route to request to update the route.
[68] 步骤 3、 BGP peer接收到 Route-Refresh消息后, 向 BGP restarter发送更新路由消 息; 在 BGP peer发送完更新路由消息后, BGP peer向 BGP [68] Step 3: After receiving the Route-Refresh message, the BGP peer sends an update route message to the BGP restarter. After the BGP peer sends the update route message, the BGP peer sends the BGP peer to the BGP peer.
restarter发送 End-Of-RIB消息 ' 以表明路由发送完毕。 The restarter sends an End-Of-RIB message ' to indicate that the route has been sent.
[69] 步骤 4、 BGP restarter在接收到所有 BGP peer发送的 End-Of-RIB消息后, 幵始对 接收到的路由进行选路并更新路由转发表等路由处理。 [69] Step 4: After receiving the End-Of-RIB message sent by all BGP peers, the BGP restarter starts routing the received route and updates the routing and forwarding table.
[70] 步骤 5、 BGP restarter向 BGP peer发送"路由发送起始消息"。 [70] Step 5. The BGP restarter sends a "route sending start message" to the BGP peer.
[71] 这里的 "路由发送起始消息 "的消息格式可以是在 BGP规定的 Route-Refresh消息 的消息格式上扩展而成, 例如, 在 Route-Refresh消息的基础上扩展一个 TLV字段[71] The message format of the "route sending start message" may be extended in the message format of the Route-Refresh message specified by BGP, for example, extending a TLV field based on the Route-Refresh message.
, 该扩展的 TLV字段携带 RD信息, 该 RD信息能够指示 BGP peer针对特定 RD的 路由进行路由老化处理。 RD信息即路由范围信息。 The extended TLV field carries the RD information, and the RD information can instruct the BGP peer to perform route aging processing on the route of the specific RD. The RD information is the routing range information.
[72] 步骤 6、 BGP [72] Step 6, BGP
peer在接收到"路由发送起始消息"后, 记录老化标记, 并启动为 BGP邻居老化路 由需要的最大等待吋间设置的老化定吋器。 记录老化标记的一个具体的例子为 : 记录接收到路由发送起始消息的吋间, 该吋间即为老化标记, 从而在该吋间 之前接收到的路由范围内的路由为需要进行路由老化的路由; 记录老化标记的 另一个具体的例子为: 对接收到路由发送起始消息之前的、 路由范围内的路由 进行标记, 从而进行了标记的路由为需要进行路由老化的路由。 After receiving the "route sending start message", the peer records the aging flag and starts the aging process for the BGP neighbor. The aging timer set by the maximum waiting time required. A specific example of recording the aging flag is: Recording the time when the route sending start message is received, and the time is the aging flag, so that the route within the route range received before the time is required to perform route aging. Another specific example of the aging flag is: The route within the route range is marked before the route is sent, so that the marked route is a route that needs to be routed.
[73] BGP peer可以从 "路由发送起始消息 "的 TLV字段中获取 RD信息, 并存储该 RD [73] The BGP peer can obtain the RD information from the TLV field of the "Route to send start message" and store the RD
Ι π Λ∑!、。 Ι π Λ∑! ,.
[74] 步骤 7、 BGP restarter向 BGP peer发送更新路由消息, 在更新路由消息发送完毕 后, BGP restarter向 BGP peer发送 End-Of-RIB消息。 BGP restarter在发送更新路由 消息吋应考虑 BGP peer支持的地址族和子地址族信息、 以及 BGP peer是否支持路 由范围。 在 BGP peer支持路由范围的情况下, 更新路由消息中携带的路由应该属 于 BGP peer支持的地址族和子地址族、 以及预定路由范围 (如 BGP restarter支持 的 RD范围) 内的路由。 [74] Step 7. The BGP restarter sends an update routing message to the BGP peer. After the update routing message is sent, the BGP restarter sends an End-Of-RIB message to the BGP peer. The BGP restarter should consider the address family and sub-address family information supported by the BGP peer and whether the BGP peer supports the routing range. In the case that the BGP peer supports the route range, the route carried in the update route message should belong to the address family and sub-address family supported by the BGP peer, and the route within the predetermined route range (such as the RD range supported by the BGP restarter).
[75] 步骤 8、 在老化定吋器的计吋值没有达到最大等待吋间的情况下, BGP peer接 收到 End-Of-RIB消息, 则 BGP peer根据老化标记进行路由老化, 以更新其路由转 发表。 例如, BGP peer对老化标记之前的、 属于 RD信息的路由进行路由老化处 理。 [75] Step 8. In the case that the aging timer does not reach the maximum waiting time, the BGP peer receives the End-Of-RIB message, and the BGP peer performs route aging according to the aging flag to update its route. Forwarding table. For example, a BGP peer performs route aging processing on routes that belong to the RD information before the aging flag.
[76] 从上述实施例三的描述可知, BGP restarter在重新启动后, 通过向 BGP邻居发 送 Route-Refresh消息, BGP peer根据接收到的 Route-Refresh消息向 BGP restarter 发送路由, 使 BGP restarter可以在重新启动后、 不需要断连 BGP邻居连接的情况 下, 收集到 BGP peer发送的路由, 实现路由处理; BGP restarter通过向 BGP邻居 发送路由处理后的路由, 使 BGP peer可以根据接收到的路由对其存储的路由进行 老化处理, 从而在不需要 BGP邻居间断连并重新建立连接的情况下, 也能够使 B GP peer存储正确的路由, 进而避免了一个 BGP [76] From the description of the third embodiment, after the BGP restarter is restarted, the BGP peer sends a route to the BGP restarter according to the received Route-Refresh message, so that the BGP restarter can After the BGP peer is restarted, the route sent by the BGP peer is collected and the route is processed. The BGP restarter sends the route to the BGP peer to ensure that the BGP peer can receive the route according to the received route. The stored routes are aged, so that the B GP peer can store the correct route without BGP neighbors disconnecting and re-establishing the connection, thereby avoiding a BGP.
restarter重新启动而影响到所有的 BGP邻居的问题。 The restarter restarts and affects all BGP neighbors.
[77] 实施例四、 基于 BGP的路由老化装置如附图 4所示。 [77] Embodiment 4: A BGP-based route aging device is shown in FIG. 4.
[78] 图 4中的路由老化装置包括: 路由请求模块 400、 路由处理模块 410和路由发送 模块 420。 可选的, 该装置还可以包括能力协商模块 430。 [79] 路由请求模块 400在监测到 BGP分布点重新启动完成后, 在不断连 BGP分布点 与 BGP邻居之间的连接的情况下, 向具有在邻居不断连情况下老化路由能力的 B GP邻居发送路由请求消息。 这里的 BGP分布点的种类有多种, 如基于 RD的 BGP 分布点等。 [78] The route aging device in FIG. 4 includes: a route request module 400, a route processing module 410, and a route sending module 420. Optionally, the device may further include a capability negotiation module 430. [79] After the BGP distribution point is restarted, the routing request module 400, after continuously connecting the connection between the BGP distribution point and the BGP neighbor, to the B GP neighbor having the aging routing capability in the case of continuous connection of the neighbors Send a route request message. There are many types of BGP distribution points, such as BGP-based BGP distribution points.
[80] 在一个网络中, 如果所有的节点都肯定具有在邻居不断连情况下老化路由的能 力, 则路由请求模块 400可以在 BGP分布点重新启动完成后, 直接向所有的 BGP 邻居发送路由请求消息。 如果不是所有的节点均肯定具有在邻居不断连情况下 老化路由的能力, 则路由请求模块 400可以在 BGP分布点在重新启动完成后, 先 选择出具有在邻居不断连情况下老化路由能力的 BGP邻居, 然后, 向选择出的 B GP邻居发送路由请求消息。 [80] In a network, if all nodes are sure to have the ability to aging routes when the neighbors are continuously connected, the route requesting module 400 can directly send routing requests to all BGP neighbors after the BGP distribution point is restarted. Message. If not all the nodes are sure to have the ability to aging the route when the neighbors are continuously connected, the route requesting module 400 may select the BGP with the aging route capability in the case of continuous neighbor connection after the BGP distribution point is restarted. The neighbor then sends a route request message to the selected B GP neighbor.
[81] 路由请求模块 400可以根据预先存储的信息确定出具有在邻居不断连情况下老 化路由能力的 BGP邻居。 预先存储的信息可以是静态配置的, 也可以是动态配置 的。 静态配置的一个具体的例子为: 网管等通过发送命令在 BGP分布点中配置具 有在邻居不断连情况下老化路由能力的 BGP邻居的信息。 动态配置的一个具体例 子为: 能力协商模块 430在 BGP能力协商过程中获取并存储 BGP邻居是否具有在 邻居不断连情况下老化路由的能力。 也就是说, 可以将在邻居不断连情况下老 化路由的能力作为 BGP能力的一部分。 例如, 能力协商模块 430从接收到的 OPE N消息中获取 BGP邻居是否具有在邻居不断连情况下老化路由能力的信息。 [81] The route requesting module 400 may determine, according to the pre-stored information, a BGP neighbor having an aging routing capability in the case of a persistent neighbor connection. Pre-stored information can be statically configured or dynamically configured. A specific example of static configuration is as follows: The NMS sends information to BGP neighbors with aging routes in the BGP distribution point. A specific example of the dynamic configuration is as follows: The capability negotiation module 430 acquires and stores, in the BGP capability negotiation process, whether the BGP neighbor has the capability of aging the route when the neighbors are continuously connected. That is to say, the ability to aging routes in the case of neighbors can be used as part of BGP capabilities. For example, the capability negotiation module 430 obtains, from the received OPE N message, whether the BGP neighbor has the capability of aging the routing capability when the neighbor is continuously connected.
[82] 路由请求模块 400发送的路由请求消息如 Route -Refresh消息。 [82] The routing request message sent by the routing request module 400 is a Route-Refresh message.
[83] BGP邻居接收到路由请求消息后, 会根据该路由请求消息向 BGP分布点发送路 由。 BGP邻居在向 BGP分布点发送路由吋应遵守 BGP的防止路由环回等规定。 B GP邻居发送路由釆用的消息可以为现有 BGP中规定的消息, 当然, 也可以釆用 其它消息, 例如釆用新定义增加的消息等。 [83] After receiving the route request message, the BGP neighbor sends a route to the BGP distribution point according to the route request message. BGP neighbors should follow the BGP route loopback prevention rules when sending routes to BGP distribution points. The message that the B GP neighbor sends the route can be the message specified in the existing BGP. Of course, other messages can also be used, for example, the newly added message is added.
[84] BGP邻居在将需要发送的路由均向 BGP分布点发送完成后, 可以向 BGP分布点 发送一条消息, 该消息表示 BGP邻居路由发送完成, 该消息可以称为第一路由发 送结束消息。 第一路由发送结束消息的一个具体例子为: End-Of-RIB消息。 BGP 邻居也可以在发送路由的消息中携带路由发送第一结束标志信息, 具体如上述 实施例的描述。 [85] 路由处理模块 410对 BGP分布点接收到的、 BGP邻居根据路由请求消息而发送 的路由进行路由处理。 在 BGP邻居发送 End-Of-RIB消息的情况下, 路由处理模块 410可以在 BGP分布点接收到各 BGP邻居发送的 End-Of-RIB消息后, 开始进行路 由处理。 [84] After the BGP neighbor sends the route to be sent to the BGP distribution point, the BGP neighbor can send a message to the BGP distribution point. The message indicates that the BGP neighbor route is sent. The message can be called the first route sending end message. A specific example of the first route transmission end message is: End-Of-RIB message. The BGP neighbor may also carry the route to send the first end flag information in the message that sends the route, as described in the foregoing embodiment. [85] The routing processing module 410 performs routing processing on the route that is sent by the BGP distribution point and is sent by the BGP neighbor according to the routing request message. In the case that the BGP neighbor sends the End-Of-RIB message, the route processing module 410 may start the routing process after receiving the End-Of-RIB message sent by each BGP neighbor at the BGP distribution point.
[86] 路由发送模块 420在路由处理模块 410完成路由处理后, 向 BGP邻居发送路由处 理后的路由, 使 BGP邻居根据接收到的路由进行路由老化。 After the route processing module 420 completes the routing process, the route sending module 420 sends the routed route to the BGP neighbor, so that the BGP neighbor performs route aging according to the received route.
[87] 路由发送模块 420在需要向 BGP邻居发送路由吋, 可以先向 BGP邻居发送一条 消息, 该消息表示后续 BGP邻居接收到的路由为 BGP分布点发送的、 用于 BGP邻 居进行路由老化处理的路由。 该消息可以称为路由发送起始消息。 在 BGP邻居为 多个吋, 路由发送模块 420应向多个 BGP邻居均发送路由发送起始消息。 After the route sending module 420 needs to send a route to the BGP neighbor, the BGP neighbor may send a message to the BGP neighbor. The message indicates that the route received by the BGP neighbor is sent by the BGP distribution point. Routing. This message can be referred to as a route to send start message. After the BGP neighbors are multiple ports, the route sending module 420 should send a route sending start message to multiple BGP neighbors.
[88] 路由发送模块 420在向 BGP邻居发送路由过程中, 可以考虑 BGP邻居支持的地 址族和子地址族信息, 也就是说, 路由发送模块 420向 BGP邻居发送的路由应该 属于 BGP邻居支持的地址族和子地址族。 BGP邻居支持的地址族和子地址族信息 可以是静态配置的, 也可以是动态配置的。 动态配置如能力协商模块 430在进行 BGP能力协商过程中协商获得。 能力协商模块 430可以利用现有的能力协商流程 、 在现有的消息中携带 BGP邻居支持的地址族和子地址族信息来协商获得 BGP邻 居支持的地址族和子地址族, 具体如上述实施例的描述。 The route sending module 420 can consider the address family and the sub-address family information supported by the BGP neighbors in the process of sending the route to the BGP neighbor. That is, the route sent by the route sending module 420 to the BGP neighbor should belong to the address supported by the BGP neighbor. Family and subaddress families. The address family and sub-address family information supported by BGP neighbors can be statically configured or dynamically configured. The dynamic configuration, such as the capability negotiation module 430, is negotiated during the BGP capability negotiation process. The capability negotiation module 430 can use the existing capability negotiation process to carry the address family and the sub-address family information supported by the BGP neighbors in the existing message to obtain the address family and the sub-address family supported by the BGP peer, as described in the foregoing embodiment. .
[89] 路由发送模块 420在向 BGP邻居发送路由过程中, 可以考虑 BGP邻居是否支持 路由范围, 如果 BGP邻居支持路由范围, 贝 I」路由发送模块 420可以向 BGP邻居发 送需要进行路由老化的路由范围信息、 以及路由范围内的路由; 否则, 路由发 送模块 420向 BGP邻居发送所有的路由。 [89] The route sending module 420 may consider whether the BGP neighbor supports the routing range in the process of sending the route to the BGP neighbor. If the BGP neighbor supports the routing range, the route sending module 420 may send the route that needs to perform route aging to the BGP neighbor. Range information, and routes within the routing range; otherwise, route sending module 420 sends all routes to the BGP neighbors.
[90] BGP邻居是否支持路由范围信息可以是静态配置的, 也可以是动态配置的。 静 态配置的一个具体的例子为: 网管等通过发送命令在 BGP分布点中配置 BGP邻居 支持路由范围信息。 动态配置如能力协商模块 430在进行 BGP能力协商过程中协 商获得。 能力协商模块 430可以利用现有的能力协商流程、 在现有的消息中携带 BGP邻居是否支持路由范围信息来协商获得 BGP邻居是否支持路由范围信息, 具 体如上述实施例的描述。 [90] Whether the BGP neighbor supports the routing range information can be statically configured or dynamically configured. A specific example of static configuration is as follows: The NMS configures BGP neighbors to support routing range information in the BGP distribution point by sending commands. The dynamic configuration, such as the capability negotiation module 430, is negotiated during the BGP capability negotiation process. The capability negotiation module 430 can use the existing capability negotiation process to carry out whether the BGP neighbor supports the routing range information in the existing message to negotiate whether the BGP neighbor supports the routing range information, as described in the foregoing embodiment.
[91] 在 BGP邻居支持路由范围吋, 路由发送模块 420可以在路由发送起始消息中携 带路由范围信息, 该路由范围信息用于指示 BGP邻居在该路由范围内进行路由老 化处理。 VPN路由范围信息如 RD信息等。 [91] After the BGP neighbor supports the routing range, the route sending module 420 can carry in the route sending start message. The route range information is used to indicate that the BGP neighbor performs route aging processing in the route range. VPN routing range information such as RD information.
[92] 路由发送模块 420在发送路由发送起始消息后, 向 BGP邻居发送路由。 路由发 送模块 420在向 BGP邻居发送路由吋应遵守 BGP的防止路由环回等规定。 路由发 送模块 420发送路由釆用的消息可以为路由更新消息。 [92] The route sending module 420 sends a route to the BGP neighbor after sending the route start message. The route sending module 420 should follow the BGP route loopback prevention rules when sending routes to the BGP neighbors. The message sent by the route sending module 420 to the route may be a route update message.
[93] 针对一个 BGP邻居来说, 路由发送模块 420在将需要发送的路由均向该 BGP邻 居发送完成后, 可以向该 BGP邻居发送一条消息, 该消息表示 BGP分布点路由发 送完成, 该消息可以称为第二路由发送结束消息。 第二路由发送结束消息的一 个具体例子为: End-Of-RIB消息。 路由发送模块 420也可以在发送路由的消息中 携带路由发送起始标志信息、 路由范围信息、 以及第二路由发送结束标志等, 具体如上述实施例中的描述。 [93] For a BGP neighbor, after the route to be sent is sent to the BGP neighbor, the route sending module 420 may send a message to the BGP neighbor, where the message indicates that the BGP distribution point route is complete, the message is sent. It can be called a second route transmission end message. A specific example of the second route transmission end message is: End-Of-RIB message. The route sending module 420 may also carry the route sending start flag information, the route range information, and the second route sending end flag, etc., in the message sending the route, as described in the foregoing embodiment.
[94] BGP邻居根据接收到的路由进行路由老化处理。 路由老化处理如删除 BGP邻居 中存储的某路由、 修改 BGP邻居中存储的某路由、 以及在 BGP邻居中增加存储新 的路由等。 [94] The BGP neighbor performs route aging processing according to the received route. Route aging processing, such as deleting a route stored in a BGP neighbor, modifying a route stored in a BGP neighbor, and adding a new route to a BGP neighbor.
[95] 上述能力协商模块 430还可以在 BGP能力协商过程中实现对最大等待吋间的协 商。 最大等待吋间可以触发 BGP邻居进行路由老化处理, 具体如上述实施例中的 描述。 [95] The capability negotiation module 430 can also implement the negotiation of the maximum waiting time in the BGP capability negotiation process. The maximum waiting time can trigger the aging process of the BGP neighbors, as described in the foregoing embodiment.
[96] 上述实施例四中的路由处理模块 410的结构如附图 5所示。 [96] The structure of the routing processing module 410 in the above fourth embodiment is as shown in FIG.
[97] 图 5中的路由处理模块 410包括: 判断子模块 411和路由处理子模块 412。 [97] The routing processing module 410 of FIG. 5 includes: a determining sub-module 411 and a routing processing sub-module 412.
[98] 判断子模块 411判断 BGP分布点是否接收到各 BGP邻居发送的第一路由发送结 束消息。 [98] The determining sub-module 411 determines whether the BGP distribution point receives the first route sending end message sent by each BGP neighbor.
[99] 路由处理子模块 412在判断子模块 411的判断结果为 BGP分布点接收到各 BGP邻 居发送的第一路由发送结束消息后, 对 BGP分布点接收到的路由进行路由处理。 路由处理子模块 412进行的路由处理如上述实施例中的描述。 [99] The routing processing sub-module 412 performs routing processing on the route received by the BGP distribution point after the judgment result of the sub-module 411 is that the BGP distribution point receives the first route sending end message sent by each BGP neighbor. The routing process performed by the routing processing sub-module 412 is as described in the above embodiment.
[100] 上述实施例四中的路由发送模块 420的结构如附图 6所示。 [100] The structure of the route sending module 420 in the above fourth embodiment is as shown in FIG. 6.
[101] 图 6中的路由发送模块 420包括: 消息构造子模块 421和发送子模块 422。 The routing module 420 of FIG. 6 includes: a message construction sub-module 421 and a transmission sub-module 422.
[102] 消息构造子模块 421构造向 BGP邻居发送的路由发送起始消息、 携带有路由处 理后的路由的消息、 以及第二路由发送结束消息。 消息构造子模块 421可以先构 造路由发送起始消息, 在发送子模块 422将路由发送起始消息成功发送后再构造 携带有路由的消息, 在发送子模块 422将携带有路由的消息成功发送后再构造第 二路由发送结束消息。 消息构造子模块 421也可以不按照上述顺序来构造上述消 息, 虽然, 消息构造子模块 421可以不按照上述顺序来构造上述消息, 但是, 发 送子模块 422在发送消息吋应该按照路由发送起始消息 -携带有路由处理后的路 由的消息一第二路由发送结束消息的顺序来发送。 上述路由发送起始消息、 携 带有路由处理后的路由的消息、 以及第二路由发送结束消息中携带的信息如上 述实施例中的描述, 在此不再重复说明。 [102] The message construction sub-module 421 constructs a route transmission start message sent to the BGP neighbor, a message carrying the route processed route, and a second route transmission end message. The message construction sub-module 421 can be constructed first The routing start message is generated, and after the sending sub-module 422 successfully sends the route sending start message, the message carrying the route is constructed, and after the sending sub-module 422 successfully sends the message carrying the route, the second route is sent. Message. The message construction sub-module 421 may also not construct the above message in the above order. Although the message construction sub-module 421 may not construct the message in the above order, the transmission sub-module 422 shall send a start message according to the route after transmitting the message. - The message carrying the route processed route is sent in the order of the second route transmission end message. The information in the foregoing embodiment is described in the foregoing embodiment, and the information carried in the routing start message, the message carrying the routed route, and the information in the second route sending end message are not described here.
[103] 实施例五、 设置有多个 BGP分布点的路由器。 [103] Embodiment 5: A router with multiple BGP distribution points is set.
[104] 该路由器包括: 路由请求模块、 接收模块、 路由处理模块和路由发送模块。 可 选的该路由器还可以包括能力协商模块。 [104] The router includes: a route request module, a receiving module, a route processing module, and a route sending module. The optional router may also include a capability negotiation module.
[105] 路由请求模块在监测到 BGP分布点重新启动完成后, 在不断连 BGP分布点与 B[105] After the routing request module detects that the BGP distribution point restarts, it continuously connects the BGP distribution point with B.
GP邻居之间的连接的情况下, 向具有在邻居不断连情况下老化路由能力的 BGP 邻居发送路由请求消息。 这里的 BGP分布点的种类有多种, 如基于 RD的 BGP分 布点等。 In the case of a connection between GP neighbors, a route request message is sent to a BGP neighbor having an aging route capability in the case of a neighbor continuous connection. There are various types of BGP distribution points, such as BGP-based BGP distribution points.
[106] 路由请求模块可以根据能力协商模块的 BGP能力协商结果获知具有在邻居不断 连情况下老化路由能力的 BGP邻居。 具体如上述实施例的描述。 [106] The routing requesting module can learn, according to the BGP capability negotiation result of the capability negotiation module, the BGP neighbor that has the aging routing capability in the case that the neighbor is continuously connected. Specifically, the description of the above embodiment.
[107] BGP邻居接收到路由请求消息后, 会根据该路由请求消息向 BGP分布点发送路 由。 接收模块接收 BGP邻居发送来的路由、 以及第一路由发送结束消息等。 [107] After receiving the route request message, the BGP neighbor sends a route to the BGP distribution point according to the route request message. The receiving module receives the route sent by the BGP neighbor, and the first route sending end message.
[108] 路由处理模块对接收模块接收到的、 BGP邻居根据路由请求消息而发送的路由 进行路由处理。 在 BGP邻居发送 End-Of-RIB消息的情况下, 路由处理模块可以在 接收模块接收到各 BGP邻居发送的 End-Of-RIB消息后, 开始进行路由处理。 [108] The routing processing module performs routing processing on the route that is received by the receiving module and sent by the BGP neighbor according to the routing request message. In the case that the BGP neighbor sends an End-Of-RIB message, the routing processing module may start routing processing after the receiving module receives the End-Of-RIB message sent by each BGP neighbor.
[109] 路由发送模块在路由处理模块完成路由处理后, 向 BGP邻居发送路由处理后的 路由, 使 BGP邻居根据接收到的路由进行路由老化。 [109] After the route processing module completes the route processing, the route sending module sends the route processed route to the BGP neighbor, so that the BGP neighbor performs route aging according to the received route.
[110] 路由发送模块在需要向 BGP邻居发送路由吋, 可以先向 BGP邻居发送一条消息 , 该消息表示后续 BGP邻居接收到的路由为 BGP分布点发送的、 用于 BGP邻居进 行路由老化处理的路由。 该消息可以称为路由发送起始消息。 在 BGP邻居为多个 吋, 路由发送模块应向多个 BGP邻居均发送路由发送起始消息。 [111] 路由发送模块在向 BGP邻居发送路由过程中, 可以考虑 BGP邻居支持的地址族 和子地址族信息, 也就是说, 路由发送模块向 BGP邻居发送的路由应该属于 BGP 邻居支持的地址族和子地址族。 BGP邻居支持的地址族和子地址族信息可以是静 态配置的, 也可以是动态配置的。 动态配置如能力协商模块在进行 BGP能力协商 过程中配置。 能力协商模块可以利用现有的能力协商流程、 在现有的消息中携 带 BGP邻居支持的地址族和子地址族信息来协商获得 BGP邻居支持的地址族和子 地址族, 具体如上述实施例的描述。 [110] After the route sending module needs to send a route to the BGP neighbor, it can send a message to the BGP neighbor. The message indicates that the route received by the subsequent BGP neighbor is sent by the BGP distribution point and is used for aging processing of the BGP neighbor. routing. This message can be referred to as a route to send start message. After a BGP neighbor has multiple ports, the route sending module should send a route sending start message to multiple BGP neighbors. [111] In the process of sending a route to a BGP neighbor, the route sending module can consider the address family and sub-address family information supported by the BGP neighbor. That is, the route sent by the route sending module to the BGP neighbor should belong to the address family and sub-supports supported by the BGP neighbor. Address family. The address family and sub-address family information supported by BGP neighbors can be statically configured or dynamically configured. The dynamic configuration, such as the capability negotiation module, is configured during the BGP capability negotiation process. The capability negotiation module can use the existing capability negotiation process to carry the address family and the sub-address family information supported by the BGP neighbors in the existing message to obtain the address family and the sub-address family supported by the BGP peer. The description is as follows.
[112] 路由发送模块在向 BGP邻居发送路由过程中, 可以考虑 BGP邻居是否支持路由 范围, 如果 BGP邻居支持路由范围, 则路由发送模块可以向 BGP邻居发送需要进 行路由老化的路由范围信息、 以及路由范围内的路由; 否则, 路由发送模块向 B GP邻居发送所有的路由。 [112] In the process of sending a route to a BGP neighbor, the route sending module can consider whether the BGP neighbor supports the route range. If the BGP neighbor supports the route range, the route sending module can send the route range information of the route aging to the BGP neighbor, and Routing within the routing range; otherwise, the routing module sends all routes to the B GP neighbor.
[113] BGP邻居是否支持路由范围信息可以是静态配置的, 也可以是动态配置的。 动 态配置如能力协商模块在进行 BGP能力协商过程中设置。 能力协商模块可以利用 现有的能力协商流程、 在现有的消息中携带 BGP邻居是否支持路由范围信息来协 商获得 BGP邻居是否支持路由范围信息, 具体如上述实施例的描述。 [113] Whether the BGP neighbor supports the routing range information can be statically configured or dynamically configured. The dynamic configuration, such as the capability negotiation module, is set during the BGP capability negotiation process. The capability negotiation module can use the existing capability negotiation process to carry the BGP neighbors to support the routing range information in the existing message to negotiate whether the BGP neighbor supports the routing range information, as described in the foregoing embodiment.
[114] 在 BGP邻居支持路由范围吋, 路由发送模块可以在路由发送起始消息中携带路 由范围信息, 该路由范围信息用于指示 BGP邻居在该路由范围内进行路由老化处 理。 VPN路由范围信息如 RD信息等。 [114] After the BGP neighbors support the route range, the route sending module may carry the route range information in the route sending start message, where the route range information is used to indicate that the BGP neighbor performs route aging processing in the route range. VPN routing range information such as RD information.
[115] 路由发送模块在发送路由发送起始消息后, 向 BGP邻居发送路由。 路由发送模 块在向 BGP邻居发送路由吋应遵守 BGP的防止路由环回等规定。 路由发送模块发 送路由釆用的消息可以为路由更新消息。 [115] The route sending module sends a route to the BGP neighbor after sending the route start message. The routing module sends routings to BGP neighbors, which should comply with BGP's route loopback prevention rules. The message sent by the route sending module to send the route may be a route update message.
[116] 针对一个 BGP邻居来说, 路由发送模块在将需要发送的路由均向该 BGP邻居发 送完成后, 可以向该 BGP邻居发送一条消息, 该消息表示 BGP分布点路由发送完 成, 该消息可以称为第二路由发送结束消息。 第二路由发送结束消息的一个具 体例子为: End-Of-RIB消息。 路由发送模块也可以在发送路由的消息中携带路 由发送第二起始标志信息、 路由范围信息、 以及第二路由发送结束标志等, 具 体如上述实施例中的描述。 [116] For a BGP neighbor, the route sending module sends a message to the BGP neighbor after the route to be sent is sent to the BGP neighbor. The message indicates that the BGP distribution point route is sent. The message can be sent. It is called the second route sending end message. A specific example of the second route transmission end message is: End-Of-RIB message. The route sending module may also carry the route to send the second start flag information, the route range information, and the second route sending end flag in the message sending the route, as described in the foregoing embodiment.
[117] BGP邻居根据接收到的路由进行路由老化处理。 路由老化处理如删除 BGP邻居 中存储的某路由、 修改 BGP邻居中存储的某路由、 以及在 BGP邻居中增加存储新 的路由等。 [117] A BGP neighbor performs route aging processing based on the received route. Route aging processing, such as deleting BGP neighbors A route stored in the BGP neighbor, a new route stored in the BGP neighbor, and a new route added to the BGP neighbor.
[118] 上述能力协商模块还可以在 BGP能力协商过程中实现对最大等待吋间的协商。 [118] The foregoing capability negotiation module may also implement negotiation of the maximum waiting time in the BGP capability negotiation process.
最大等待吋间可以触发 BGP邻居进行路由老化处理, 具体如上述实施例中的描述 The maximum waiting time can trigger the aging process of the BGP neighbors, as described in the above embodiment.
[119] 路由处理模块和路由发送模块分别包括的子模块等如上述实施例中的描述, 在 此不再详细说明。 The sub-modules and the like included in the routing processing module and the routing module respectively are as described in the above embodiments, and will not be described in detail herein.
[120] 通过以上的实施方式的描述, 本领域的技术人员可以清楚地了解到本发明可借 助软件加必需的硬件平台的方式来实现, 当然也可以全部通过硬件来实施, 但 很多情况下前者是更佳的实施方式。 基于这样的理解, 本发明的技术方案对背 景技术做出贡献的全部或者部分可以以软件产品的形式体现出来, 该计算机软 件产品可以存储在存储介质中, 如 ROM/RAM、 磁碟、 光盘等, 包括若干指令用 以使得一台计算机设备 (可以是个人计算机, 服务器, 或者网络设备等) 执行 本发明各个实施例或者实施例的某些部分所述的方法。 Through the description of the above embodiments, those skilled in the art can clearly understand that the present invention can be implemented by means of software plus a necessary hardware platform, and of course, all can be implemented by hardware, but in many cases, the former It is a better implementation. Based on such understanding, all or part of the technical solution of the present invention contributing to the background art may be embodied in the form of a software product, which may be stored in a storage medium such as a ROM/RAM, a magnetic disk, an optical disk, or the like. A number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform the methods described in various embodiments of the present invention or portions of the embodiments.
[121] 虽然通过实施例描绘了本发明, 本领域普通技术人员知道, 本发明有许多变形 和变化而不脱离本发明的精神, 本发明的申请文件的权利要求包括这些变形和 变化。 While the invention has been described by the embodiments of the invention, it is understood that
Claims
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN2008102410791A CN101764737B (en) | 2008-12-25 | 2008-12-25 | Route aging method, device and router based on border gateway protocol |
| CN200810241079.1 | 2008-12-25 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2010072110A1 true WO2010072110A1 (en) | 2010-07-01 |
Family
ID=42286887
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2009/075041 Ceased WO2010072110A1 (en) | 2008-12-25 | 2009-11-19 | Routing aging method, apparatus and router based on border gateway protocol |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN101764737B (en) |
| WO (1) | WO2010072110A1 (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110611615B (en) * | 2018-11-28 | 2021-08-24 | 新华三技术有限公司 | Routing information transmission method and device |
| CN115225562A (en) * | 2021-04-15 | 2022-10-21 | 华为技术有限公司 | Routing update method, device and system |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6704795B1 (en) * | 1999-10-12 | 2004-03-09 | Cisco Technology, Inc. | Technique for reducing consumption of router resources after BGP restart |
| CN1889569A (en) * | 2006-07-14 | 2007-01-03 | 清华大学 | Method for quickly eliminating failure route in boundary gate protocol |
| CN1976313A (en) * | 2006-09-19 | 2007-06-06 | 中国人民解放军国防科学技术大学 | High performance router routing protocol distribution parallel realizing method |
| US20080089231A1 (en) * | 2006-10-13 | 2008-04-17 | Chandrashekhar Appanna | Suspending operation of Border Gateway Protocol |
-
2008
- 2008-12-25 CN CN2008102410791A patent/CN101764737B/en not_active Expired - Fee Related
-
2009
- 2009-11-19 WO PCT/CN2009/075041 patent/WO2010072110A1/en not_active Ceased
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6704795B1 (en) * | 1999-10-12 | 2004-03-09 | Cisco Technology, Inc. | Technique for reducing consumption of router resources after BGP restart |
| CN1889569A (en) * | 2006-07-14 | 2007-01-03 | 清华大学 | Method for quickly eliminating failure route in boundary gate protocol |
| CN1976313A (en) * | 2006-09-19 | 2007-06-06 | 中国人民解放军国防科学技术大学 | High performance router routing protocol distribution parallel realizing method |
| US20080089231A1 (en) * | 2006-10-13 | 2008-04-17 | Chandrashekhar Appanna | Suspending operation of Border Gateway Protocol |
Also Published As
| Publication number | Publication date |
|---|---|
| CN101764737B (en) | 2012-11-21 |
| CN101764737A (en) | 2010-06-30 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2008031334A1 (en) | Route updating method, system and router | |
| CN104541483B (en) | When for connectivity fault the method and system re-routed is enabled for home network | |
| WO2004084496A1 (en) | A method for implementing gateway dynamic load distribution | |
| TW201134151A (en) | RSVP-TE graceful restart under fast re-route conditions | |
| WO2011044828A1 (en) | Method, device and system for route withdrawal | |
| WO2011079695A1 (en) | Method, apparatus and system for controlling network traffic switch | |
| CN104620637A (en) | Method and system for mobility management in label switched networks | |
| WO2009105983A1 (en) | Method and system for neighbor migration in border gateway protocol distributed system | |
| CN113824647B (en) | A method, device and system for determining DF of multicast stream | |
| WO2012058915A1 (en) | Method, system and node equipment for path computation | |
| CN102624745B (en) | Method and device for establishing PCEP session | |
| CN114301824B (en) | Neighbor discovery of border gateway protocol in multiple access networks | |
| WO2009082905A1 (en) | Method, system and switch device for dynamically establishing multicast virtual local area network | |
| WO2011091696A1 (en) | Method, device and system for establishing connection between neighbouring base stations | |
| WO2021135419A1 (en) | Method and apparatus for updating routing information, computer device, and storage medium | |
| CN101984600A (en) | Graceful restart method, equipment and system of routing protocol | |
| JP2022052741A (en) | Target neighbor search for boundary gateway protocol | |
| WO2010069261A1 (en) | Method, device and system for processing border gateway protocol route | |
| US7940694B2 (en) | Intelligent filtering of redundant data streams within computer networks | |
| WO2007003088A1 (en) | A method and system for updating a route | |
| WO2010099743A1 (en) | Method, device and system thereof for migrating vrf | |
| WO2013104279A1 (en) | Method and device for setting cvlan in trill network | |
| WO2007059679A1 (en) | A method for processing the abnormal multicast service and a network equipment thereof | |
| WO2010072110A1 (en) | Routing aging method, apparatus and router based on border gateway protocol | |
| WO2011150832A1 (en) | Method, system and edge switch device for route convergence |
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: 09834063 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: 09834063 Country of ref document: EP Kind code of ref document: A1 |