CN103220228A - Method and equipment for sending border gateway protocol (BGP) routes - Google Patents

Method and equipment for sending border gateway protocol (BGP) routes Download PDF

Info

Publication number
CN103220228A
CN103220228A CN2013101229988A CN201310122998A CN103220228A CN 103220228 A CN103220228 A CN 103220228A CN 2013101229988 A CN2013101229988 A CN 2013101229988A CN 201310122998 A CN201310122998 A CN 201310122998A CN 103220228 A CN103220228 A CN 103220228A
Authority
CN
China
Prior art keywords
bgp
equipment
route
bgp route
priority
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.)
Pending
Application number
CN2013101229988A
Other languages
Chinese (zh)
Inventor
林慧
王伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou H3C Technologies Co Ltd
Original Assignee
Hangzhou H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN2013101229988A priority Critical patent/CN103220228A/en
Publication of CN103220228A publication Critical patent/CN103220228A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a method and equipment for sending border gateway protocol (BGP) routes. The method comprises the following steps: BGP equipment determines priority information of each BGP route, and the BGP equipment sends the BGP routes to BGP neighbor equipment according to a specified route release strategy by using the priority information of each BGP route; and the specified route release strategy is that the BGP routes which have a high priority are released preferentially. According to the method and equipment for sending the BGP routes, when lots of BGP routes need to be sent by the BGP equipment, the BGP routes with large bearing service amount can be sent preferentially, and the stability of networks is improved.

Description

A kind of sending method of BGP route and equipment
Technical field
The present invention relates to communication technical field, especially relate to a kind of BGP(Border Gateway Protocol, Border Gateway Protocol) sending method and the equipment of route.
Background technology
BGP is responsible for the exchange that route between this autonomous area and the outside autonomous area can reach information, and BGP is by increasing AS(Autonomous System in routing iinformation, autonomous system) attribute in path, construct the topological diagram of autonomous area, thereby the elimination route loop, and can implement user configured strategy.Along with rapid development of network, the exchange capacity of routing iinformation is increasing between the autonomous area, and the quantity of BGP route is also more and more in the network, and the BGP route needs repeatedly to send in batches.
After bgp neighbor relation was set up, BGP equipment need upgrade by update() message sends to bgp neighbor equipment with all BGP routes of local terminal; When bgp neighbor number and BGP number of routes are very big, BGP equipment is when all BGP routes of bgp neighbor equipment issue local terminal, need a period of time just can finish the transmission of BGP route, thereby cause the big BGP route of some bearer traffic may wait for that long time just is sent out away, could transmit after causing network traffics to wait long, influence stability of network.
Summary of the invention
The embodiment of the invention provides a kind of sending method and equipment of BGP route, with the big BGP route of preferential transmission bearer traffic, thereby improves stability of network.
In order to achieve the above object, the embodiment of the invention provides a kind of sending method of Border Gateway Protocol (BGP) route, be applied to comprise in the bgp network of BGP equipment and bgp neighbor equipment that after described BGP equipment and described bgp neighbor equipment were set up the bgp neighbor relation, this method may further comprise the steps:
Described BGP equipment is determined the precedence information of each BGP route;
The precedence information of described each BGP route of BGP equipment utilization sends BGP route by publishing policy to described bgp neighbor equipment according to specified circuit; Wherein:
Described specified circuit is specially the BGP route that preferential issue has high priority by publishing policy.
Described BGP equipment is determined the precedence information of each BGP route, specifically comprises:
Described BGP equipment is in the interfaces enabled network traffics Netstream function of configuration bgp protocol, and described Netstream function is used for carrying out traffic statistics according to message purpose IP address;
The statistics of the described Netstream function of described BGP equipment query, obtain the statistical counting of each message purpose IP flow that mate the address, and the statistical counting of definite message purpose IP flow that mate the address is the precedence information of the corresponding BGP route in this message purpose IP address; Wherein:
The statistical counting of BGP route correspondence is big more, illustrates that then the priority of this BGP route is high more;
Perhaps, described BGP equipment obtains the routing property information of each BGP route, has priority priority routing property in the routing property information of BGP route or does not have the priority routing property;
The priority that described BGP equipment determines to have the BGP route of priority routing property is higher than the priority of the BGP route with priority routing property.
The precedence information of described each BGP route of BGP equipment utilization sends BGP route by publishing policy to described bgp neighbor equipment according to specified circuit, specifically comprises:
Described BGP equipment adds the statistical counting of BGP route correspondence in the record of this BGP route on the Radix tree to, and when described bgp neighbor equipment sends the BGP route, obtain the pairing BGP route of each statistical counting from described Radix tree successively according to statistical counting order from big to small, and send the BGP route that obtains to described bgp neighbor equipment;
Perhaps, when the BGP route has the priority routing property, described BGP equipment adds the priority routing property in the record of this BGP route on the Radix tree, and when described bgp neighbor equipment sends the BGP route, preferentially obtain having the BGP route of priority routing property, and send the BGP route that obtains to described bgp neighbor equipment from described Radix tree.
The precedence information of described each BGP route of BGP equipment utilization, according to specified circuit by publishing policy after described bgp neighbor equipment sends the BGP route, described method also comprises:
When described BGP equipment no longer need according to specified circuit by publishing policy when described bgp neighbor equipment sends the BGP route, the statistical counting of each the BGP route correspondence that writes down on the described Radix tree of described BGP device clear; Perhaps, remove the priority routing property of record on the described Radix tree.
Described method also comprises: described BGP equipment is sending to described bgp neighbor equipment after statistical counting is not 0 BGP route, and is sending before statistical counting is 0 BGP route, and described BGP device processes is used to safeguard the message of bgp neighbor relation;
Perhaps, described BGP equipment is after described bgp neighbor equipment transmission has the BGP route of priority routing property, and before transmission did not have the BGP route of priority routing property, described BGP device processes was used to safeguard the message of bgp neighbor relation.
The embodiment of the invention provides a kind of Border Gateway Protocol (BGP) equipment, is applied to comprise in the bgp network of described BGP equipment and bgp neighbor equipment, and after described BGP equipment and described bgp neighbor equipment were set up the bgp neighbor relation, described BGP equipment comprised:
Determination module is used for determining the precedence information of each BGP route;
Sending module is used to utilize the precedence information of each BGP route, sends BGP route by publishing policy to described bgp neighbor equipment according to specified circuit; Wherein:
Described specified circuit is specially the BGP route that preferential issue has high priority by publishing policy.
Described determination module specifically is used for the interfaces enabled network traffics Netstream function at the configuration bgp protocol, and described Netstream function is used for carrying out traffic statistics according to message purpose IP address; Inquire about the statistics of described Netstream function, obtain the statistical counting of each message purpose IP flow that mate the address, and the statistical counting of definite message purpose IP flow that mate the address is the precedence information of the corresponding BGP route in this message purpose IP address; Wherein: the statistical counting of BGP route correspondence is big more, illustrates that then the priority of this BGP route is high more; Perhaps, obtain the routing property information of each BGP route, have priority priority routing property in the routing property information of BGP route or do not have the priority routing property; The priority of determining to have the BGP route of priority routing property is higher than the priority of the BGP route with priority routing property.
Described sending module, specifically be used for adding the statistical counting of BGP route correspondence the record of this BGP route on the Radix tree to, and when described bgp neighbor equipment sends the BGP route, obtain the pairing BGP route of each statistical counting from described Radix tree successively according to statistical counting order from big to small, and send the BGP route that obtains to described bgp neighbor equipment;
Perhaps, when the BGP route has the priority routing property, the priority routing property is added in the record of this BGP route on the Radix tree, and when described bgp neighbor equipment sends the BGP route, preferentially obtain having the BGP route of priority routing property, and send the BGP route that obtains to described bgp neighbor equipment from described Radix tree.
Also comprise: remove module, be used for when no longer need according to specified circuit by publishing policy when described bgp neighbor equipment sends the BGP route, remove the statistical counting of each the BGP route correspondence that writes down on the described Radix tree; Perhaps, remove the priority routing property of record on the described Radix tree.
Also comprise: processing module is used for sending to described bgp neighbor equipment after statistical counting is not 0 BGP route, and sending before statistical counting is 0 BGP route, handles the message that is used to safeguard the bgp neighbor relation; Perhaps, after described bgp neighbor equipment transmission has the BGP route of priority routing property, and before transmission does not have the BGP route of priority routing property, handle the message that is used to safeguard the bgp neighbor relation.
Compared with prior art, the embodiment of the invention has the following advantages at least: in the embodiment of the invention, when BGP equipment sends a large amount of BGP route at needs, can preferentially send the big BGP route of bearer traffic, thereby could transmit after avoiding network traffics to wait long, improve stability of network.
Description of drawings
Fig. 1 is the sending method schematic flow sheet of a kind of BGP route of providing of the embodiment of the invention;
Fig. 2 is the structural representation of a kind of BGP equipment of providing of the embodiment of the invention.
Embodiment
At problems of the prior art, the embodiment of the invention provides a kind of sending method of BGP route, be applied to comprise in the bgp network of BGP equipment and bgp neighbor equipment, when BGP equipment need send a large amount of BGP routes to bgp neighbor equipment, can preferentially send the big BGP route of bearer traffic, thereby could transmit after avoiding network traffics to wait long, improve stability of network.
In the embodiment of the invention, set up between BGP equipment and bgp neighbor equipment after the bgp neighbor relation, as shown in Figure 1, the sending method of this BGP route may further comprise the steps:
Step 101, BGP equipment is determined the precedence information of each BGP route.
Step 102, the precedence information of each BGP route of BGP equipment utilization sends BGP route by publishing policy to bgp neighbor equipment according to specified circuit; Wherein: this specified circuit is specially the BGP route that preferential issue has high priority by publishing policy.For example, when the priority of BGP route 1 was higher than the priority of BGP route 2, BGP equipment sent BGP route 1 to bgp neighbor equipment earlier.
In the embodiment of the invention, BGP equipment is determined the precedence information of each BGP route, and utilizes the precedence information of each BGP route, by the mode of publishing policy to bgp neighbor equipment transmission BGP route, specifically includes but not limited to following mode according to specified circuit:
Mode one:
BGP equipment determines that the precedence information of each BGP route specifically comprises: BGP equipment is enabled the Netstream(network traffics on the total interface of configuration bgp protocol) function (this Netstream function is used for carrying out traffic statistics according to message purpose IP address); Afterwards, the statistics of BGP equipment query Netstream function, obtain the statistical counting of each message purpose IP flow that mate the address, and the statistical counting of definite message purpose IP flow that mate the address is the precedence information of the corresponding BGP route in this message purpose IP address; Wherein: the statistical counting of BGP route correspondence is big more, illustrates that the priority of this BGP route is high more.
In the embodiment of the invention, in order to realize under the BGP view, to enable by configuration order row delaminate-send enable according to the function of priority issue BGP route; This function is a closed condition under the default situations, and promptly order line delaminate-send enable does not enable, and BGP equipment is according to existing procedure issue BGP route, and this process repeats no more; When under the BGP view during enable command row delaminate-send enable, the technical scheme issue BGP route that BGP equipment provides according to the embodiment of the invention, be the precedence information that BGP equipment is determined each BGP route, and preferential issue have the BGP route of high priority.
In mode one, BGP equipment need be determined the precedence information of BGP route based on the statistics of Netstream function; Therefore, when BGP equipment not enabled Netstream function (promptly not carrying out traffic statistics) according to message purpose IP address, BGP equipment needs to dispose at all earlier the interfaces enabled Netstream function of bgp protocols, and configuration Netstream function is for according to carrying out traffic statistics in message purpose IP address, thereby makes Netstream carry out traffic statistics according to message purpose IP address; Based on this, BGP equipment can be by the statistics of inquiry Netstream function, obtain the statistical counting of each message purpose IP flow that mate the address, and the statistical counting of definite message purpose IP flow that mate the address is the precedence information of the corresponding BGP route in this message purpose IP address.
Concrete, BGP equipment is after enabling according to priority issue BGP routing function, can create visit Netstream timer, default cycles is 10s, BGP equipment obtains the statistical counting (being the precedence information of BGP route) of each BGP route every the statistics of 10s inquiry Netstream function.
The precedence information of each BGP route of BGP equipment utilization, send BGP route by publishing policy to bgp neighbor equipment according to specified circuit, specifically comprise: BGP equipment adds the statistical counting of BGP route correspondence to the Radix(radix) tree (be a kind of key assignments search tree based on binary representation, in specific implementation, can utilize the prefix information of BGP route to store the BGP route into relevant position that Radix sets, and can utilize the prefix information of BGP route to read the BGP route from the relevant position of Radix tree) go up the record of this BGP route, and when bgp neighbor equipment sends the BGP route, (this Radix tree is transmitting terminal Radix tree from the Radix tree successively according to statistical counting order from big to small, follow-up is that example describes with the Radix tree all) on obtain the pairing BGP route of each statistical counting, and send the BGP route obtain to bgp neighbor equipment.
Concrete, BGP equipment need add the statistical counting of BGP route correspondence on the Radix tree to and (promptly upgrade the statistical counting of this BGP route on the Radix tree) behind the statistical counting (being the precedence information of BGP route) that obtains each BGP route; BGP equipment is when bgp neighbor equipment sends the BGP route, obtain the pairing BGP route of each statistical counting from the Radix tree successively according to statistical counting order from big to small, the BGP route added to send to bgp neighbor equipment in the update message, thereby realize that BGP route branch priority sends, make and preferentially send the big BGP route of bearer traffic, thereby could transmit after avoiding network traffics to wait long, improve stability of network.
If BGP equipment need send a large amount of BGP routes to bgp neighbor equipment, then can cause the BGP task to be used for the renewal of BGP route for a long time, after finishing, the BGP routing update just can handle other BGP affairs (as bgp neighbor relationship safeguard etc.), thereby cause can not timely and effective processing from the message (as the keepalive message) that is used to safeguard the bgp neighbor relation of bgp neighbor equipment, then can cause the concussion of bgp neighbor relation, and further cause the concussion of the whole network BGP route.
Based on above-mentioned discovery, in the embodiment of the invention, BGP equipment is sending to bgp neighbor equipment after statistical counting is not 0 BGP route, and is sending before statistical counting is 0 BGP route, and this BGP equipment can also be handled the message that is used to safeguard the bgp neighbor relation; Thereby at needs when bgp neighbor equipment sends a large amount of BGP route, can regulate and control CPU and other resource flexibly, after sending the BGP route of high priority, handle the message that is used to safeguard the bgp neighbor relation earlier, send the BGP route of low priority then, with further raising stability of network.
Wherein, after sending the BGP route of high priority, the cpu resource that is used to send the BGP route can discharge the short time, the message (as the keepalive message) that is used to safeguard the bgp neighbor relation with processing, thereby reduce owing to send the BGP route for a long time and can not in time handle the neighbours that message the caused concussion that is used to safeguard the bgp neighbor relation, with stablizing of maintenance of neighbor relation, and avoid route oscillation.
In the embodiment of the invention, BGP equipment is at the precedence information that utilizes each BGP route, according to specified circuit by publishing policy after bgp neighbor equipment sends the BGP route, the function of issuing the BGP route according to priority when BGP equipment configure (is that BGP equipment no longer sends BGP route by publishing policy to bgp neighbor equipment according to specified circuit, handle not according to the technical scheme that the embodiment of the invention provides) time, BGP equipment also needs to remove the statistical counting of each BGP route correspondence of record on the Radix tree, and remove visit Netstream timer, follow-up BGP route process of transmitting is handled according to existing procedure.
Mode two:
BGP equipment determines that the precedence information of each BGP route specifically comprises: BGP equipment obtains the routing property information of each BGP route, can have priority(priority in the routing property information of BGP route) routing property or do not have the priority routing property; Afterwards, the BGP equipment priority of determining to have the BGP route of priority routing property is higher than the priority of the BGP route with priority routing property.
In the embodiment of the invention, in order to realize under the BGP view, to enable by configuration order row delaminate-send enable according to the function of priority issue BGP route; This function is a closed condition under the default situations, and promptly order line delaminate-send enable does not enable, and BGP equipment is according to existing procedure issue BGP route, and this process repeats no more; When under the BGP view during enable command row delaminate-send enable, the technical scheme issue BGP route that BGP equipment provides according to the embodiment of the invention, be the precedence information that BGP equipment is determined each BGP route, and preferential issue have the BGP route of high priority.
In mode two, whether BGP equipment need have the precedence information that the priority routing property is determined the BGP route based on each BGP route; Therefore, in the embodiment of the invention, by the BGP route being increased a kind of priority routing property, have the priority routing property by the user by the higher BGP route of policy configurations priority (the BGP route big), and the lower BGP route of configuration preference level do not have the priority routing property as bearer traffic; Based on this, the priority that BGP equipment can determine to have the BGP route of priority routing property is higher than the priority of the BGP route with priority routing property.
The precedence information of each BGP route of BGP equipment utilization, send BGP route by publishing policy to bgp neighbor equipment according to specified circuit, specifically comprise: when the BGP route has the priority routing property, BGP equipment adds the priority routing property in the record of this BGP route on the Radix tree, and when bgp neighbor equipment sends the BGP route, preferentially obtain having the BGP route of priority routing property, and send the BGP route that obtains to bgp neighbor equipment from the Radix tree.
Concrete, BGP equipment is when bgp neighbor equipment sends the BGP route, need preferentially to set the BGP route that obtains having the priority routing property from Radix, and the BGP route that obtains added to send to bgp neighbor equipment in the update message, thereby realize that BGP route branch priority sends, make preferentially to send the big and high BGP route of priority of bearer traffic, thereby could transmit after can avoiding network traffics to wait long, and improve stability of network.
If BGP equipment need send a large amount of BGP routes to bgp neighbor equipment, then can cause the BGP task to be used for the renewal of BGP route for a long time, after finishing, the BGP routing update just can handle other BGP affairs (as bgp neighbor relationship safeguard etc.), thereby cause can not timely and effective processing from the message (as the keepalive message) that is used to safeguard the bgp neighbor relation of bgp neighbor equipment, then can cause the concussion of bgp neighbor relation, and further cause the concussion of the whole network BGP route.
Based on above-mentioned discovery, in the embodiment of the invention, BGP equipment is after the transmission of bgp neighbor equipment has the BGP route of priority routing property, and before transmission did not have the BGP route of priority routing property, this BGP equipment can also be handled the message that is used to safeguard the bgp neighbor relation; Thereby at needs when bgp neighbor equipment sends a large amount of BGP route, can regulate and control CPU and other resource flexibly, after sending the BGP route of high priority, handle the message that is used to safeguard the bgp neighbor relation earlier, send the BGP route of low priority then, with further raising stability of network.
Wherein, after sending the BGP route of high priority, the cpu resource that is used to send the BGP route can discharge the short time, the message (as the keepalive message) that is used to safeguard the bgp neighbor relation with processing, thereby reduce owing to send the BGP route for a long time and can not in time handle the neighbours that message the caused concussion that is used to safeguard the bgp neighbor relation, with stablizing of maintenance of neighbor relation, and avoid route oscillation.
In the embodiment of the invention, BGP equipment is at the precedence information that utilizes each BGP route, according to specified circuit by publishing policy after bgp neighbor equipment sends the BGP route, the function of issuing the BGP route according to priority when BGP equipment configure (is that BGP equipment no longer sends BGP route by publishing policy to bgp neighbor equipment according to specified circuit, need not handle according to the technical scheme that the embodiment of the invention provides) time, BGP equipment also needs to remove the priority routing property of record on the Radix tree, the process of transmitting of follow-up BGP route will be handled according to existing procedure, not repeat them here.
Based on the inventive concept same with said method, a kind of Border Gateway Protocol (BGP) equipment also is provided in the embodiment of the invention, be applied to comprise in the bgp network of described BGP equipment and bgp neighbor equipment, after described BGP equipment and described bgp neighbor equipment are set up the bgp neighbor relation, as shown in Figure 2, described BGP equipment comprises:
Determination module 11 is used for determining the precedence information of each BGP route;
Sending module 12 is used to utilize the precedence information of each BGP route, sends BGP route by publishing policy to described bgp neighbor equipment according to specified circuit; Wherein:
Described specified circuit is specially the BGP route that preferential issue has high priority by publishing policy.
Described determination module 11 specifically is used for the interfaces enabled network traffics Netstream function at the configuration bgp protocol, and described Netstream function is used for carrying out traffic statistics according to message purpose IP address; Inquire about the statistics of described Netstream function, obtain the statistical counting of each message purpose IP flow that mate the address, and the statistical counting of definite message purpose IP flow that mate the address is the precedence information of the corresponding BGP route in this message purpose IP address; Wherein: the statistical counting of BGP route correspondence is big more, illustrates that then the priority of this BGP route is high more; Perhaps, obtain the routing property information of each BGP route, have priority priority routing property in the routing property information of BGP route or do not have the priority routing property; The priority of determining to have the BGP route of priority routing property is higher than the priority of the BGP route with priority routing property.
Described sending module 12, specifically be used for adding the statistical counting of BGP route correspondence the record of this BGP route on the Radix tree to, and when described bgp neighbor equipment sends the BGP route, obtain the pairing BGP route of each statistical counting from described Radix tree successively according to statistical counting order from big to small, and send the BGP route that obtains to described bgp neighbor equipment;
Perhaps, when the BGP route has the priority routing property, the priority routing property is added in the record of this BGP route on the Radix tree, and when described bgp neighbor equipment sends the BGP route, preferentially obtain having the BGP route of priority routing property, and send the BGP route that obtains to described bgp neighbor equipment from described Radix tree.
Described BGP equipment also comprises: remove module 13, be used for when no longer need according to specified circuit by publishing policy when described bgp neighbor equipment sends the BGP route, remove the statistical counting of each the BGP route correspondence that writes down on the described Radix tree; Or, remove the priority routing property that writes down on the described Radix tree.
Described BGP equipment also comprises: processing module 14 is used for sending to described bgp neighbor equipment after statistical counting is not 0 BGP route, and sending before statistical counting is 0 BGP route, handles the message that is used to safeguard the bgp neighbor relation; Perhaps, after described bgp neighbor equipment transmission has the BGP route of priority routing property, and before transmission does not have the BGP route of priority routing property, handle the message that is used to safeguard the bgp neighbor relation.
Wherein, each module of apparatus of the present invention can be integrated in one, and also can separate deployment.Above-mentioned module can be merged into a module, also can further split into a plurality of submodules.
Through the above description of the embodiments, those skilled in the art can be well understood to the present invention and can realize by the mode that software adds essential general hardware platform, can certainly pass through hardware, but the former is better execution mode under a lot of situation.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words can embody with the form of software product, this computer software product is stored in the storage medium, comprise that some instructions are with so that a computer equipment (can be a personal computer, server, the perhaps network equipment etc.) carry out the described method of each embodiment of the present invention.
It will be appreciated by those skilled in the art that accompanying drawing is the schematic diagram of a preferred embodiment, module in the accompanying drawing or flow process might not be that enforcement the present invention is necessary.
It will be appreciated by those skilled in the art that the module in the device among the embodiment can be distributed in the device of embodiment according to the embodiment description, also can carry out respective change and be arranged in the one or more devices that are different from present embodiment.The module of the foregoing description can be merged into a module, also can further split into a plurality of submodules.
The invention described above embodiment sequence number is not represented the quality of embodiment just to description.
More than disclosed only be several specific embodiment of the present invention, still, the present invention is not limited thereto, any those skilled in the art can think variation all should fall into protection scope of the present invention.

Claims (10)

1. the sending method of a Border Gateway Protocol (BGP) route is applied to comprise in the bgp network of BGP equipment and bgp neighbor equipment, it is characterized in that, after described BGP equipment and described bgp neighbor equipment were set up the bgp neighbor relation, this method may further comprise the steps:
Described BGP equipment is determined the precedence information of each BGP route;
The precedence information of described each BGP route of BGP equipment utilization sends BGP route by publishing policy to described bgp neighbor equipment according to specified circuit; Wherein:
Described specified circuit is specially the BGP route that preferential issue has high priority by publishing policy.
2. the method for claim 1 is characterized in that, described BGP equipment is determined the precedence information of each BGP route, specifically comprises:
Described BGP equipment is in the interfaces enabled network traffics Netstream function of configuration bgp protocol, and described Netstream function is used for carrying out traffic statistics according to message purpose IP address;
The statistics of the described Netstream function of described BGP equipment query, obtain the statistical counting of each message purpose IP flow that mate the address, and the statistical counting of definite message purpose IP flow that mate the address is the precedence information of the corresponding BGP route in this message purpose IP address; Wherein:
The statistical counting of BGP route correspondence is big more, illustrates that then the priority of this BGP route is high more;
Perhaps,
Described BGP equipment obtains the routing property information of each BGP route, has priority priority routing property in the routing property information of BGP route or does not have the priority routing property;
The priority that described BGP equipment determines to have the BGP route of priority routing property is higher than the priority of the BGP route with priority routing property.
3. method as claimed in claim 2 is characterized in that,
The precedence information of described each BGP route of BGP equipment utilization sends BGP route by publishing policy to described bgp neighbor equipment according to specified circuit, specifically comprises:
Described BGP equipment adds the statistical counting of BGP route correspondence in the record of this BGP route on the Radix tree to, and when described bgp neighbor equipment sends the BGP route, obtain the pairing BGP route of each statistical counting from described Radix tree successively according to statistical counting order from big to small, and send the BGP route that obtains to described bgp neighbor equipment;
Perhaps,
When the BGP route has the priority routing property, described BGP equipment adds the priority routing property in the record of this BGP route on the Radix tree, and when described bgp neighbor equipment sends the BGP route, preferentially obtain having the BGP route of priority routing property, and send the BGP route that obtains to described bgp neighbor equipment from described Radix tree.
4. method as claimed in claim 3 is characterized in that,
The precedence information of described each BGP route of BGP equipment utilization, according to specified circuit by publishing policy after described bgp neighbor equipment sends the BGP route, described method also comprises:
When described BGP equipment no longer need according to specified circuit by publishing policy when described bgp neighbor equipment sends the BGP route, the statistical counting of each the BGP route correspondence that writes down on the described Radix tree of described BGP device clear; Perhaps, remove the priority routing property of record on the described Radix tree.
5. method as claimed in claim 3 is characterized in that, described method also comprises:
Described BGP equipment is sending to described bgp neighbor equipment after statistical counting is not 0 BGP route, and is sending before statistical counting is 0 BGP route, and described BGP device processes is used to safeguard the message of bgp neighbor relation;
Perhaps,
Described BGP equipment is after described bgp neighbor equipment transmission has the BGP route of priority routing property, and before transmission did not have the BGP route of priority routing property, described BGP device processes was used to safeguard the message of bgp neighbor relation.
6. a Border Gateway Protocol (BGP) equipment is applied to comprise in the bgp network of described BGP equipment and bgp neighbor equipment, it is characterized in that, after described BGP equipment and described bgp neighbor equipment were set up the bgp neighbor relation, described BGP equipment comprised:
Determination module is used for determining the precedence information of each BGP route;
Sending module is used to utilize the precedence information of each BGP route, sends BGP route by publishing policy to described bgp neighbor equipment according to specified circuit; Wherein:
Described specified circuit is specially the BGP route that preferential issue has high priority by publishing policy.
7. BGP equipment as claimed in claim 6 is characterized in that,
Described determination module specifically is used for the interfaces enabled network traffics Netstream function at the configuration bgp protocol, and described Netstream function is used for carrying out traffic statistics according to message purpose IP address; Inquire about the statistics of described Netstream function, obtain the statistical counting of each message purpose IP flow that mate the address, and the statistical counting of definite message purpose IP flow that mate the address is the precedence information of the corresponding BGP route in this message purpose IP address; Wherein: the statistical counting of BGP route correspondence is big more, illustrates that then the priority of this BGP route is high more;
Perhaps,
Obtain the routing property information of each BGP route, have priority priority routing property in the routing property information of BGP route or do not have the priority routing property; The priority of determining to have the BGP route of priority routing property is higher than the priority of the BGP route with priority routing property.
8. BGP equipment as claimed in claim 7 is characterized in that,
Described sending module, specifically be used for adding the statistical counting of BGP route correspondence the record of this BGP route on the Radix tree to, and when described bgp neighbor equipment sends the BGP route, obtain the pairing BGP route of each statistical counting from described Radix tree successively according to statistical counting order from big to small, and send the BGP route that obtains to described bgp neighbor equipment;
Perhaps,
When the BGP route has the priority routing property, the priority routing property is added in the record of this BGP route on the Radix tree, and when described bgp neighbor equipment sends the BGP route, preferentially obtain having the BGP route of priority routing property, and send the BGP route that obtains to described bgp neighbor equipment from described Radix tree.
9. BGP equipment as claimed in claim 8 is characterized in that, also comprises:
Remove module, be used for when no longer need according to specified circuit by publishing policy when described bgp neighbor equipment sends the BGP route, remove the statistical counting of each the BGP route correspondence that writes down on the described Radix tree; Perhaps, remove the priority routing property of record on the described Radix tree.
10. BGP equipment as claimed in claim 8 is characterized in that, also comprises:
Processing module is used for sending to described bgp neighbor equipment after statistical counting is not 0 BGP route, and sending before statistical counting is 0 BGP route, handles the message that is used to safeguard the bgp neighbor relation; Perhaps, after described bgp neighbor equipment transmission has the BGP route of priority routing property, and before transmission does not have the BGP route of priority routing property, handle the message that is used to safeguard the bgp neighbor relation.
CN2013101229988A 2013-04-10 2013-04-10 Method and equipment for sending border gateway protocol (BGP) routes Pending CN103220228A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2013101229988A CN103220228A (en) 2013-04-10 2013-04-10 Method and equipment for sending border gateway protocol (BGP) routes

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2013101229988A CN103220228A (en) 2013-04-10 2013-04-10 Method and equipment for sending border gateway protocol (BGP) routes

Publications (1)

Publication Number Publication Date
CN103220228A true CN103220228A (en) 2013-07-24

Family

ID=48817707

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2013101229988A Pending CN103220228A (en) 2013-04-10 2013-04-10 Method and equipment for sending border gateway protocol (BGP) routes

Country Status (1)

Country Link
CN (1) CN103220228A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105915465A (en) * 2016-06-30 2016-08-31 华为技术有限公司 Method, device and system for adjusting priority of BGP (Border Gateway Protocol) flow-spec table
CN107241272A (en) * 2016-03-29 2017-10-10 瞻博网络公司 Mthods, systems and devices for improving transfer capability during route convergence
CN107888501A (en) * 2016-09-30 2018-04-06 中国电信股份有限公司 Sending method, RR, the network equipment and the network system of routing update message
CN108521374A (en) * 2018-03-28 2018-09-11 新华三技术有限公司 The processing method and processing device of routing
CN108696433A (en) * 2018-07-24 2018-10-23 新华三技术有限公司 Route flapping suppressing method and BGP routing devices
CN110519076A (en) * 2019-07-25 2019-11-29 新华三大数据技术有限公司 It is connect with bgp neighbor equipment and disconnects method, apparatus and interactive system
CN110830598A (en) * 2018-08-07 2020-02-21 华为技术有限公司 Method and network equipment for establishing and transmitting interface address and alias in BGP (Border gateway protocol) session
CN113852560A (en) * 2021-10-20 2021-12-28 浪潮思科网络科技有限公司 Method, device and medium for updating routing information between BGP peers

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101068214A (en) * 2007-06-26 2007-11-07 华为技术有限公司 Route convergent method and equipment
CN101155118A (en) * 2006-09-27 2008-04-02 华为技术有限公司 BGP routing processing method and device
US7778248B2 (en) * 2005-10-28 2010-08-17 Cisco Technology, Inc. Method and apparatus for prioritized processing of routing information
CN101924684A (en) * 2009-06-12 2010-12-22 华为技术有限公司 Routing processing method and system as well as router
CN102075435A (en) * 2011-02-09 2011-05-25 杭州华三通信技术有限公司 Routing issuing method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7778248B2 (en) * 2005-10-28 2010-08-17 Cisco Technology, Inc. Method and apparatus for prioritized processing of routing information
CN101155118A (en) * 2006-09-27 2008-04-02 华为技术有限公司 BGP routing processing method and device
CN101068214A (en) * 2007-06-26 2007-11-07 华为技术有限公司 Route convergent method and equipment
CN101924684A (en) * 2009-06-12 2010-12-22 华为技术有限公司 Routing processing method and system as well as router
CN102075435A (en) * 2011-02-09 2011-05-25 杭州华三通信技术有限公司 Routing issuing method and device

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107241272A (en) * 2016-03-29 2017-10-10 瞻博网络公司 Mthods, systems and devices for improving transfer capability during route convergence
CN107241272B (en) * 2016-03-29 2020-04-21 瞻博网络公司 Method, system and apparatus for improving forwarding capability during route convergence
CN105915465A (en) * 2016-06-30 2016-08-31 华为技术有限公司 Method, device and system for adjusting priority of BGP (Border Gateway Protocol) flow-spec table
CN107888501A (en) * 2016-09-30 2018-04-06 中国电信股份有限公司 Sending method, RR, the network equipment and the network system of routing update message
CN107888501B (en) * 2016-09-30 2020-12-29 中国电信股份有限公司 Routing update message sending method, routing update (RR), network equipment and network system
CN108521374A (en) * 2018-03-28 2018-09-11 新华三技术有限公司 The processing method and processing device of routing
CN108696433A (en) * 2018-07-24 2018-10-23 新华三技术有限公司 Route flapping suppressing method and BGP routing devices
CN108696433B (en) * 2018-07-24 2021-04-06 新华三技术有限公司 Route oscillation suppression method and BGP routing equipment
CN110830598A (en) * 2018-08-07 2020-02-21 华为技术有限公司 Method and network equipment for establishing and transmitting interface address and alias in BGP (Border gateway protocol) session
CN110830598B (en) * 2018-08-07 2021-10-22 华为技术有限公司 Method and network equipment for establishing and transmitting interface address and alias in BGP (Border gateway protocol) session
CN110519076A (en) * 2019-07-25 2019-11-29 新华三大数据技术有限公司 It is connect with bgp neighbor equipment and disconnects method, apparatus and interactive system
CN113852560A (en) * 2021-10-20 2021-12-28 浪潮思科网络科技有限公司 Method, device and medium for updating routing information between BGP peers

Similar Documents

Publication Publication Date Title
CN103220228A (en) Method and equipment for sending border gateway protocol (BGP) routes
KR101473783B1 (en) Method and apparatus for control of dynamic service chaining by using tunneling
CN104255046A (en) Customizable mobile broadband network system, and method for customizing mobile broadband network
KR101460048B1 (en) Method and apparatus for control of dynamic service chaining by using tagging
CN104601482A (en) Traffic cleaning method and device
CN103209108A (en) Dynamic virtual private network (DVPN)-based route generation method and equipment
US10439882B2 (en) Virtualized networking application and infrastructure
CN105340224A (en) Network control method and apparatus
KR20140106235A (en) Open-flow switch and packet manageing method thereof
KR20160040091A (en) Mobile Application Specific Networks
CN106487558A (en) A kind of method and apparatus realizing the scalable appearance of access device
JP2019536369A (en) Method and system and device for handling NF component exceptions
CN103731817B (en) Data transmission method and equipment
CN110601989A (en) Network traffic balancing method and device
US10263864B2 (en) Apparatus and method for collecting adaptive flow statistics data in carrier network
CN103812707B (en) A kind of method for processing forwarding of line identification message
CN104639557A (en) Method and system for establishing PCEP (Path Computation Element Communication Protocol) session and equipment
RU2693903C1 (en) Method, apparatus and processing system for expanded port
KR101984846B1 (en) Communication method and apparatus providing mobility of objects
CN106330527B (en) Method and device for managing routing link state data
WO2016177135A1 (en) Resource management method, device, and control terminal
CN105429844A (en) Network system, internal network equipment and access method of internal network equipment
CN105765903A (en) Topology discovery method and device
JP4630298B2 (en) Function distributed communication apparatus, component element coupling control method, and program
WO2017169947A1 (en) Operation device, communication system, and update method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20130724