A kind of BGP route management method and routing device
Technical field
The application relates to network communication technology field, particularly a kind of Border Gateway Protocol (BGP) route management method and routing device.
Background technology
BGP is a kind of for the dynamic routing protocol between autonomous system (AS), and often need between AS to forward a large amount of routes by bgp protocol, especially time network size is larger, number of routes also can become very huge, correspondingly, store route just to need to take a large amount of memory sources, transmission and process route also need to take a large amount of bandwidth and processor resources.
At present mainly by using route aggregation to reduce number of routes, thus saving memory source, bandwidth and processor resource.But under specific circumstances, route aggregation may cause path black hole and route loopback, therefore, only has and just carries out route aggregation when being necessary.
Fig. 1 is the existing networking schematic diagram establishing the routing device of bgp neighbor, and as shown in Figure 1, in this networking, RTA and RTB belongs to backbone network, and Performance comparision is strong, and RTC and RTD belongs to Customer Premises Network, and performance is relatively weak.RTB receives from RTC the route come to be needed, to RTA and RTD diffusion, to consider the performance issue of RTD equipment, need to carry out route aggregation on RTB, control the route quantity issued to RTD, to RTA issues time, then do not need route aggregation; If RTD for Add User side apparatus time, consider performance and the resource restriction of RTD belonging network equipment, need to configure route aggregation on RTB, reduce the route quantity of backbone network to RTD place Web Publishing.
But on the one hand, existing route aggregation granularity is too large, and the result of route aggregation for all neighbours, and needs under most of networking to be coordinated by neighbours' strategy to be controlled, make deployment complexity higher; On the other hand, when newly adding user side equipment in network, consider user side equipment performance and resource problem, need the configurations such as the polymerization of backbone network apparatus modifications and strategy, larger on original networking impact, and the user side equipment newly added belongs to different management organization from backbone network equipment, too large to configuration dependence.
Summary of the invention
In view of this, the invention provides a kind of BGP route management method, backbone network equipment can not only be realized and only route aggregation is carried out to user side newly added equipment, and reduce the complexity of network design.
Present invention also offers a kind of routing device, backbone network equipment can not only be realized and only route aggregation is carried out to user side newly added equipment, and reduce the complexity of network design.
In order to achieve the above object, the technical scheme that the present invention proposes is:
A kind of Border Gateway Protocol (BGP) route management method, the method comprises:
First routing device sends the open message with polymerizing power to other routing device, and receives the open message sent by other routing device, sets up bgp peer to make the first routing device and other each routing device;
When user side increases routing device newly, first routing device sends the open message with polymerizing power to described newly-increased routing device, and receive the open message with polymerizing power that newly-increased routing device sends, make these two routing devices can the refresh message of interacting strip aggregate request;
First routing device receive by newly-increased routing device send for ask polyaluminium chloride PAC refresh message after, according to certain strategy, detailed route is polymerized;
Polyaluminium chloride PAC is sent to newly-increased routing device after having sent to the detailed route of newly-increased routing device by device revocation by the first via.
Before described first routing device receives the refresh message sent by newly-increased routing device, the method comprises further:
Determine that the number of routes that self can receive is less than the number of routes that the first routing device sends to self by newly-increased routing device.
Described first routing device carries out polymerization according to certain strategy to detailed route and comprises:
Described first routing device receives the route aggregation strategy sent by newly-increased routing device, and is polymerized sending to the route of newly-increased routing device according to described route aggregation strategy.
Described first routing device carries out polymerization according to certain strategy to detailed route and comprises:
Described first routing device is polymerized sending to the route of newly-increased routing device according to existing strategy.
A kind of routing device, this routing device is the backbone network routing device established in Border Gateway Protocol (BGP) neighboring peers, and this routing device comprises: transmitting element, receiving element, polymerized unit and cancel unit, wherein,
Described transmitting element, for increasing the open message of routing device transmission with polymerizing power newly to other routing devices and user side; Cancel after unit cancels the detailed route sending to newly-increased routing device when described, the polyaluminium chloride PAC that described polymerized unit is polymerized is sent to newly-increased routing device;
Described receiving element, for receiving the open message sent by other routing devices, to make to set up bgp peer with other each routing device; Receive and increase by user side the open message with polymerizing power that routing device sends newly, making can the refresh message of interacting strip aggregate request with newly-increased routing device; Receive the refresh message for asking polyaluminium chloride PAC sent by newly-increased routing device;
Described polymerized unit, for receive when described receiving element newly-increased routing device send refresh message after, according to certain strategy, detailed route is polymerized;
Describedly cancel unit, for cancelling the detailed route sending to newly-increased routing device.
Described receiving element, also for receiving the route aggregation strategy sent by newly-increased routing device;
Described polymerized unit, is polymerized sending to the route of newly-increased routing device for the route aggregation strategy received according to described receiving element.
Described polymerized unit, for being polymerized sending to the route of newly-increased routing device according to existing strategy.
A kind of routing device, this routing device is that the user side established in Border Gateway Protocol (BGP) neighboring peers increases routing device newly, and this routing device comprises: transmitting element and receiving element, wherein,
Described transmitting element, for sending the open message with polymerizing power to the first routing device; And send the refresh message for asking polyaluminium chloride PAC to the first routing device;
Described receiving element, for receiving the open message with polymerizing power sent by the first routing device, making it can the refresh message of interacting strip aggregate request with the first routing device; And after described transmitting element sends refresh message to the first routing device, receive the polyaluminium chloride PAC after detailed route being polymerized according to certain strategy by the first routing device.
This routing device also comprises determining unit, for determining that the number of routes that self can receive is less than the number of routes that the first routing device sends to self, then,
Described transmitting element, for determine when described determining unit number of routes that self can receive be less than the first routing device send to the number of routes of self time, send the refresh message for asking polyaluminium chloride PAC to the first routing device.
Described transmitting element, also for sending route aggregation strategy to the first routing device, makes the first routing device be polymerized detailed route according to described route aggregation strategy.
In sum, BGP route management method of the present invention, it is the open message by increasing newly at the first routing device and user side alternately with polymerizing power between routing device, thus make newly-increased routing device to the refresh message of the first routing device transmission for asking polyaluminium chloride PAC, after being polymerized detailed route according to certain strategy by the first routing device, newly-increased routing device can be sent to.Due to the only mutual open message with polymerizing power between the first routing device and newly-increased route in the inventive method, thus only have newly-increased routing device to the first via by device request polyaluminium chloride PAC, and also can only be sent to through the first via the newly-increased routing device requesting polyaluminium chloride PAC by the polyaluminium chloride PAC after device aggregation.Therefore, BGP route management method of the present invention, without the need to improving original networking, can make the result of route aggregation can only send to specific user side routing device.
Accompanying drawing explanation
Fig. 1 is the existing networking schematic diagram establishing the routing device of bgp neighbor;
Fig. 2 is the workflow diagram of BGP route management method of the present invention;
Fig. 3 is the structural representation of routing device embodiment one of the present invention;
Fig. 4 is the structural representation of routing device embodiment two of the present invention.
Embodiment
In order to solve the technical problem that the present invention proposes, the specific implementation of scheme of the present invention comprises:
First routing device sends the open message with polymerizing power to other routing device, and receives the open message sent by other routing device, sets up bgp peer to make the first routing device and other each routing device; When user side increases routing device newly, first routing device sends the open message with polymerizing power to described newly-increased routing device, and receive the open message with polymerizing power that newly-increased routing device sends, make these two routing devices can the refresh message of interacting strip aggregate request; First routing device receive by newly-increased routing device send for ask polyaluminium chloride PAC refresh message after, according to certain strategy, detailed route is polymerized; Polyaluminium chloride PAC is sent to newly-increased routing device after having sent to the detailed route of newly-increased routing device by device revocation by the first via.
For making the object, technical solutions and advantages of the present invention clearly, the present invention is described in further detail below in conjunction with the accompanying drawings and the specific embodiments.
Fig. 2 is the workflow diagram of BGP route management method of the present invention, and as shown in Figure 2, this flow process comprises:
Step 201: the first routing device sends the open message with polymerizing power to other routing device, and receive the open message sent by other routing device, to make to set up bgp neighbor peer-to-peer between the first routing device and other each routing device.
It should be noted that, in this step, when there being the routing device needing to receive polyaluminium chloride PAC in other routing device, also need to send with the open message of polymerizing power to the first routing device, thus, follow-uply also can send refresh message for asking polyaluminium chloride PAC, to ask polyaluminium chloride PAC to the first routing device.
Also it should be noted that, in this step, the described open message format with polymerizing power can see table 1.
Table 1
Step 202: when user side increases routing device newly in network, first routing device sends the open message with polymerizing power to described newly-increased routing device, and receive the open message with polymerizing power that sent by newly-increased routing device, making between these two routing device peer-to-peers can the refresh message of interacting strip aggregate request.
In this step, described can the refresh message format of cross polymerization request can see such as following table 2.
Table 2
Step 203: the first routing device receive that newly-increased routing device sends for ask polyaluminium chloride PAC refresh message after, according to certain strategy, detailed route is polymerized.
It should be noted that, before this step, can also perform and determine that the number of routes that self can receive is less than the step that the first routing device sends to the number of routes of self by newly-increased routing device.
Also it should be noted that, described first routing device to be polymerized detailed route according to certain strategy and specifically can to comprise: described first routing device receives the route aggregation strategy sent by newly-increased routing device, and be polymerized sending to the route of newly-increased routing device according to described route aggregation strategy, or, be directly polymerized sending to the route of newly-increased routing device according to existing strategy by described first routing device.
Step 204: routing device is sent to newly-increased routing device after having sent to the detailed route of newly-increased routing device by device revocation by the first via.
So far, the whole workflow of BGP route management method of the present invention is namely completed.
Based on said method, Fig. 3 gives the structure of routing device embodiment one of the present invention, as shown in Figure 3, this routing device is the backbone network routing device established in bgp neighbor peer-to-peer, comprise: transmitting element 31, receiving element 32, polymerized unit 33 and cancel unit 34, wherein
Described transmitting element 31, for sending the open message with polymerizing power to other routing devices and newly-increased routing device; Cancel after unit 34 cancels the detailed route sending to newly-increased routing device when described, the polyaluminium chloride PAC that described polymerized unit 33 is polymerized is sent to newly-increased routing device;
Described receiving element 32, for receiving the open message sent by other routing devices, to make to set up bgp peer with other each routing device; Receive the open message with polymerizing power that sent by newly-increased routing device, making can the refresh message of interacting strip aggregate request with newly-increased routing device; Receive the refresh message for asking polyaluminium chloride PAC sent by newly-increased routing device;
Described polymerized unit 33, for receive when described receiving element 32 newly-increased routing device send refresh message after, according to certain strategy, detailed route is polymerized;
Describedly cancel unit 34, for cancelling the detailed route sending to newly-increased routing device.
Further, described receiving element 32, also for receiving the route aggregation strategy sent by newly-increased routing device;
Described polymerized unit 33, is polymerized sending to the route of newly-increased routing device for the route aggregation strategy received according to described receiving element 32.
Further, described polymerized unit 33, for being polymerized sending to the route of newly-increased routing device according to existing strategy.
Similarly, based on said method, Fig. 4 gives the structure of routing device embodiment two of the present invention, as shown in Figure 4, this routing device is that the user side established in bgp neighbor peer-to-peer increases routing device newly, comprising: transmitting element 41 and receiving element 42, wherein
Described transmitting element 41, for sending the open message with polymerizing power to the first routing device; And send the refresh message for asking polyaluminium chloride PAC to the first routing device;
Described receiving element 42, for receiving the open message with polymerizing power sent by the first routing device, making it can the refresh message of interacting strip aggregate request with the first routing device; And after described transmitting element 41 sends refresh message to the first routing device, receive the polyaluminium chloride PAC after detailed route being polymerized according to certain strategy by the first routing device.
Further, this routing device also comprises determining unit 43, for determining that the number of routes that self can receive is less than the number of routes that the first routing device sends to self, then,
Described transmitting element 41, for determine when described determining unit 43 number of routes that self can receive be less than the first routing device send to the number of routes of self time, send the refresh message for asking polyaluminium chloride PAC to the first routing device.
Further, described transmitting element 41, also for sending route aggregation strategy to the first routing device, makes the first routing device be polymerized detailed route according to described route aggregation strategy.
So far, routing device of the present invention is namely obtained.The workflow of equipment described in Fig. 3 and Fig. 4 specifically see the workflow of method described in Fig. 2, can repeat no more here.
In a word, BGP route management method of the present invention, by increasing the open message alternately with polymerizing power between routing device newly at the first routing device and user side, thus make newly-increased routing device to the refresh message of the first routing device transmission for asking polyaluminium chloride PAC, after being polymerized detailed route according to certain strategy by the first routing device, newly-increased routing device can be sent to.Due to the only mutual open message with polymerizing power between the first routing device and newly-increased route in the inventive method, thus only have newly-increased routing device to the first via by device request polyaluminium chloride PAC, and also can only be sent to through the first via the newly-increased routing device requesting polyaluminium chloride PAC by the polyaluminium chloride PAC after device aggregation.Therefore, BGP route management method of the present invention, without the need to improving original networking, can make the result of route aggregation can only send to specific user side routing device.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment made, equivalent replacement, improvement etc., all should be included within the scope of protection of the invention.