CN102202004B - Routing error processing method and device and routing equipment - Google Patents
Routing error processing method and device and routing equipment Download PDFInfo
- Publication number
- CN102202004B CN102202004B CN201110192741.0A CN201110192741A CN102202004B CN 102202004 B CN102202004 B CN 102202004B CN 201110192741 A CN201110192741 A CN 201110192741A CN 102202004 B CN102202004 B CN 102202004B
- Authority
- CN
- China
- Prior art keywords
- routing
- address family
- routing device
- protocol address
- neighbours
- 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.)
- Active
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 19
- 238000012545 processing Methods 0.000 claims description 46
- 238000000034 method Methods 0.000 claims description 11
- 238000012217 deletion Methods 0.000 claims description 4
- 230000037430 deletion Effects 0.000 claims description 4
- 238000001514 detection method Methods 0.000 claims description 4
- GOLXNESZZPUPJE-UHFFFAOYSA-N spiromesifen Chemical compound CC1=CC(C)=CC(C)=C1C(C(O1)=O)=C(OC(=O)CC(C)(C)C)C11CCCC1 GOLXNESZZPUPJE-UHFFFAOYSA-N 0.000 claims description 2
- 230000005540 biological transmission Effects 0.000 description 6
- 230000008569 process Effects 0.000 description 6
- 238000010586 diagram Methods 0.000 description 5
- 230000006870 function Effects 0.000 description 5
- 230000008859 change Effects 0.000 description 2
- 238000005538 encapsulation Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000008901 benefit Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000009472 formulation Methods 0.000 description 1
- 239000000203 mixture Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000010355 oscillation Effects 0.000 description 1
- 238000011084 recovery Methods 0.000 description 1
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The embodiment of the invention provides a routing error processing method and device and routing equipment. The routing error processing method comprises the following steps of: receiving a BGP (Border Gateway Protocol) update message sent by neighbor routing equipment by using routing equipment; after the presence of error routing information in multi-protocol address family routing information carried by the BGP update message is determined, switching the state of a first protocol address family of the neighbor routing equipment into an error forbidding state, wherein the routing information of the first protocol address family comprises the error routing information; and discarding all routing information of the first protocol address family received from the neighbor routing equipment and forbidding the routing equipment from informing the neighbor routing equipment of the routing information of the first protocol address family. By adopting the embodiment of the invention, the influence of error routing information of a protocol address family can be limited in failed protocol address families without influencing an entire BGP session and the routing information exchange of un-failed protocol address families on the BGP session, and the stability of the BGP session is enhanced.
Description
Technical field
The embodiment of the present invention relates to communication technical field, relates in particular to a kind of routing error processing method, device and routing device.
Background technology
Border Gateway Protocol (Border Gateway Protocol; Hereinafter to be referred as: BGP) be Internet Engineering task groups (Internet Engineering Task Force; Hereinafter to be referred as: the Exterior Gateway Protocol of IETF) formulating, for realizing study and the calculating of routing iinformation between different Autonomous Domains.
Between routing device, will pass through the mutual routing iinformation of BGP, needing first configuration the other side is mutually neighbours' routing device, and configuration neighbours routing device is generally by specifying the other side's Internet Protocol (Internet Protocol; Hereinafter to be referred as: IP) realize address, and afterwards, mutual both sides can use IP address that the IP address of self forms to setting up transmission control protocol (Transmission Control Protocol; Hereinafter to be referred as: TCP connects), realize the mutual of bgp routing information.
Routing device, setting up after TCP is connected with neighbours' routing device, will send BGP message mutually, and BGP message has polytype, is respectively used to different purposes.Upgrading (Update) message is a kind of of BGP message, for transmitting the routing iinformation of BGP.
BGP only supports internet protocol version four (IP version 4 when initial formulation; Hereinafter to be referred as: IPv4) protocol address family, only supports exchange, study and the calculating of IPv4 routing iinformation between two BGP routing devices.Along with the development of technology, IETF is organized in BGP is expanded, and makes BGP can support exchange, study and the calculating of multi-protocols address family routing iinformation.
The routing iinformation of BGP multi-protocols address family is also encapsulated in Update message and transmits, in order to realize Update message support encapsulation multi-protocols address family routing iinformation, in Update message, newly-increased two kinds of BGP path attributes, are respectively multi-protocols and can reach (Multi-protocol Reach NetworkLayer Reachability Information; Hereinafter to be referred as: MP_REACH_NLRI) unreachable (the Multi-protocol UnReach Network Layer Reachability Information of attribute and multi-protocols; Hereinafter to be referred as: MP_UNREACH_NLRI) attribute.For instance, at routing device 1, (Router 1; Hereinafter to be referred as: R1) (Router 2 with routing device 2; Hereinafter to be referred as: after setting up a bgp session R2), shared this bgp session of a plurality of protocol address family, the routing iinformation of different agreement address family transmits by MP_REACH_NLRI attribute or the MP_UNREACH_NLRI attribute of Update message, and by Address-Family Identifier (the Address Family Identifier in MP_REACH_NLRI attribute or MP_UNREACH_NLRI attribute; Hereinafter to be referred as: AFI) field and sign (the Subsequent AFI of subaddressing family; Hereinafter to be referred as: SAFI) field is distinguished different protocol address families.Can be understood as between R1 and R2 and set up many virtual protocol address family sessions, the routing iinformation of different agreement address family transmits in different virtual protocol address family sessions.
When receiving wrong multi-protocols address family routing iinformation from certain neighbours' routing device, existing processing mode is: delete all multi-protocols address family routing iinformations that receive from this neighbours' routing device, and the bgp session of termination and this neighbours' routing device, thereby avoid the mistake in computation of BGP route.But if the shortcoming of this processing mode is to stop above-mentioned bgp session, will causes the routing iinformation of other protocol address families on this bgp session also by deleted, thereby cause large-scale route oscillation.For instance, suppose to exist on the bgp session between R1 and R2 IPv4 clean culture (IPv4Unicast) address family, IPv 6 multiprotocol label switching-label (Internet Protocol version 6 Multi-Protocol Label Switching-Label; Hereinafter to be referred as: IPv6MPLS-Label) address family and IPv4 Layer3 Virtual Private Network (IPv4 Layer 3 Virtual Private Network; Hereinafter to be referred as: the IPv4 L3 VPN) Routing Information Exchange of address Zu Zhesange protocol address family, when R1 sometime receives a wrong IPv6 MPLS-Label address family routing iinformation from R2, according to existing processing mode, R1 will disconnect and R2 between bgp session, this will cause the route switching of the IPv4 Unicast address family that undertaken by this bgp session and IPv4 L3VPN address family and study also can be affected, thereby affects the stability of whole network.
Summary of the invention
The embodiment of the present invention provides a kind of routing error processing method, device and routing device, to reduce protocol address family routing iinformation, makes mistakes on bgp session and the impact on the routing iinformation transmission of the protocol address family that on bgp session, other are not made mistakes.
The embodiment of the present invention provides a kind of routing error processing method, comprising:
Routing device receives the Border Gateway Protocol updating message of neighbours' routing device transmission of described routing device;
There is wrong routing iinformation in determining the multi-protocols address family routing iinformation that described Border Gateway Protocol updating message is carried after, described routing device is converted to wrong illegal state by the state of the first protocol address family of described neighbours' routing device, and the routing iinformation of described the first protocol address family comprises the routing iinformation of described mistake;
Described routing device abandons the routing iinformation of all described the first protocol address families that receive from described neighbours' routing device, and forbids that described routing device notices the routing iinformation of the first protocol address family of described routing device to described neighbours' routing device.
The embodiment of the present invention also provides a kind of routing error processing unit, comprising:
Receiver module, the Border Gateway Protocol updating message sending for receiving neighbours' routing device of described routing error processing unit;
Determination module, for determining that the multi-protocols address family routing iinformation that the described Border Gateway Protocol updating message of described receiver module reception is carried exists wrong routing iinformation;
State modular converter, for after described determination module determines that described multi-protocols address family routing iinformation exists wrong routing iinformation, the state of the first protocol address family of described neighbours' routing device is converted to wrong illegal state, and the routing iinformation of described the first protocol address family comprises the routing iinformation of described mistake;
Processing module, for abandoning the routing iinformation of all described the first protocol address families that receive from described neighbours' routing device, and forbid that described routing error processing unit notices the routing iinformation of the first protocol address family of described routing error processing unit to described neighbours' routing device.
The embodiment of the present invention also provides a kind of routing device, comprises routing error processing unit as above.
Pass through the embodiment of the present invention, after routing device receives the bgp update message that neighbours' routing device of this routing device sends, there is wrong routing iinformation in determining the multi-protocols address family routing iinformation that bgp update message is carried after, this routing device is converted to wrong illegal state by the state of the first protocol address family of above-mentioned neighbours' routing device, and the routing iinformation of above-mentioned the first protocol address family comprises the routing iinformation of above-mentioned mistake; Then, routing device abandons the routing iinformation of all the first protocol address families that receive from neighbours' routing device, and forbids that this routing device notices the routing iinformation of the first protocol address family of this routing device to above-mentioned neighbours' routing device.Thereby can guarantee the normal operation of BGP and not exist under the prerequisite of compatibility issue, the impact that protocol address family routing iinformation is made mistakes is limited in this protocol address family, and do not affect the Routing Information Exchange of the protocol address family not makeing mistakes on whole bgp session and this bgp session, improved the stability of bgp session.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the flow chart of an embodiment of routing error processing method of the present invention;
Fig. 2 is the schematic diagram of an embodiment of application scenarios of the present invention;
Fig. 3 is the flow chart of another embodiment of routing error processing method of the present invention;
Fig. 4 is the schematic diagram of an embodiment of form of route refresh message of the present invention;
Fig. 5 is the structural representation of an embodiment of routing error processing unit of the present invention;
Fig. 6 is the structural representation of another embodiment of routing error processing unit of the present invention.
Embodiment
For making object, technical scheme and the advantage of the embodiment of the present invention clearer, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, the every other embodiment that those of ordinary skills obtain under the prerequisite of not making creative work, belongs to the scope of protection of the invention.
Fig. 1 is the flow chart of an embodiment of routing error processing method of the present invention, and as shown in Figure 1, this routing error processing method can comprise:
Wherein, the routing iinformation of above-mentioned the first protocol address family comprises and that is to say the routing iinformation of above-mentioned mistake, and the routing iinformation of above-mentioned mistake is the routing iinformation of the first protocol address family.
Particularly, routing device is converted to wrong illegal state by the state of the first protocol address family of above-mentioned neighbours' routing device: routing device keeps the bgp session between this routing device and above-mentioned neighbours' routing device stable, and the state of the first protocol address family of above-mentioned neighbours' routing device is updated to wrong illegal state; This routing device outputting alarm, to point out the routing iinformation of the first protocol address family to occur mistake, and delete the routing iinformation of all the first protocol address families that receive from above-mentioned neighbours' routing device, and the routing iinformation of notifying above-mentioned neighbours' routing device deletion the first protocol address family that all these routing devices have been noticed.
In the present embodiment, further, there is wrong routing iinformation in determining the multi-protocols address family routing iinformation that above-mentioned bgp update message is carried before, routing device can first detect in above-mentioned multi-protocols address family routing iinformation whether have wrong routing iinformation; ; determining in the multi-protocols address family routing iinformation that above-mentioned bgp update message carries exists wrong routing iinformation to be: the protocol address family sign of determining above-mentioned multi-protocols address family routing iinformation can correctly be resolved; and in above-mentioned multi-protocols address family routing iinformation, exist and occur the routing iinformation of format error, and there is not mistake in the routing iinformation that occurs format error other BGP routing properties except multi-protocols can reach attribute or the unreachable attribute of multi-protocols.
Wherein, the protocol address family sign of above-mentioned multi-protocols address family routing iinformation comprises AFI and SAFI, the protocol address family sign of determining above-mentioned multi-protocols address family routing iinformation can correctly be resolved and be referred to that the AFI and the SAFI that determine above-mentioned multi-protocols address family routing iinformation can correctly resolve, thereby can identify each protocol address family according to AFI and SAFI; Other BGP routing properties except multi-protocols can reach attribute or the unreachable attribute of multi-protocols do not occur that mistake refers to that the form of above-mentioned other BGP routing properties meets the regulation of BGP.
In addition, in the present embodiment, at routing device, the state of the first protocol address family of above-mentioned neighbours' routing device is converted to wrong illegal state also through after the scheduled time, this routing device can be updated to non-wrong illegal state by the state of the first protocol address family of above-mentioned neighbours' routing device; Then, this routing device is noticed the routing iinformation of the first protocol address family of this routing device again to above-mentioned neighbours' routing device, and send route refresh message to above-mentioned neighbours' routing device, this route refresh message is carried the protocol address family sign of the first protocol address family that needs restoration route information, so that above-mentioned neighbours' routing device, after receiving above-mentioned route refresh message, is noticed whole routing iinformations of above-mentioned the first protocol address family again to routing device.
In above-described embodiment, after routing device receives the bgp update message that neighbours' routing device of this routing device sends, there is wrong routing iinformation in determining the multi-protocols address family routing iinformation that bgp update message is carried after, this routing device is converted to wrong illegal state by the state of the first protocol address family of above-mentioned neighbours' routing device; Then, routing device abandons the routing iinformation of all the first protocol address families that receive from neighbours' routing device, and forbids that this routing device notices the routing iinformation of the first protocol address family of this routing device to above-mentioned neighbours' routing device.Thereby can guarantee the normal operation of BGP and not exist under the prerequisite of compatibility issue, the impact that protocol address family routing iinformation is made mistakes is limited in this protocol address family, and do not affect the Routing Information Exchange of the protocol address family not makeing mistakes on whole bgp session and this bgp session, improved the stability of bgp session.Wherein, the normal operation of above-mentioned BGP and do not have compatibility issue, the neighbours' routing device that refers to routing device and routing device is all supported the BGP of standard.
The routing error processing method providing by the embodiment of the present invention, when receiving wrong protocol address family routing iinformation, the state that routing device can Jiang Gai protocol address family is converted to mistake and forbids (ErrorDisable) state.The routing error processing method that the embodiment of the present invention provides can be applied in the application scenarios shown in Fig. 2 of the present invention, Fig. 2 is the schematic diagram of an embodiment of application scenarios of the present invention, as shown in Figure 2, R1 receives the (IPv4 that R2 notices, Unicast) after the wrong routing iinformation of address family, R1 can be for (the IPv4 of R2, Unicast) address family implements the routing error processing method that the embodiment of the present invention provides, keep bgp session stable, guarantee the protocol address family routing iinformation normal transmission that other are not made mistakes.
Fig. 3 is the flow chart of another embodiment of routing error processing method of the present invention, and the present embodiment be take routing device as R1, and neighbours' routing device of routing device is that R2 is that example describes.
As shown in Figure 3, this routing error processing method can comprise:
Particularly, after receiving bgp update message, R1 can resolve bgp update message, in resolving, R1 can detect in the multi-protocols address family routing iinformation that above-mentioned bgp update message carries whether have wrong routing iinformation, detects in above-mentioned multi-protocols address family routing iinformation, whether there is the routing iinformation that meets following condition:
(1) the protocol address family of above-mentioned multi-protocols address family routing iinformation sign, AFI and SAFI can correctly resolve; This is not affect whole bgp session because the object of the invention is to realize the mistake of certain protocol address family, therefore first needs to identify each protocol address family.
(2) in above-mentioned multi-protocols address family routing iinformation, there is the routing iinformation occur format error, cause above-mentionedly occurring that the routing iinformation of format error cannot correctly resolve; For instance, above-mentioned format error can be the next-hop network address size in MP_REACH_NLRI attribute (Length of Next Hop Network Address) field and/or Network Layer Reachable Information (Network Layer Reachability Information; Hereinafter to be referred as: there is grammer mistake in field NLRI); There is mistake in the encapsulation format that above-mentioned grammer mistake refers to field, for example: (IPv4, Unicast) the next-hop network address size of address family should be 4, but the value of above-mentioned next-hop network address length field is not 4, or (IPv4, Unicast) the route prefix length of address family mostly is 4 bytes most, but in NLRI field, route prefix length has exceeded 4 bytes etc.
(3) there is not mistake in other BGP routing properties except MP_REACH_NLRI attribute or MP_UNREACH_NLRI attribute, that is to say, the form of other BGP routing properties except MP_REACH_NLRI attribute or MP_UNREACH_NLRI attribute meets the regulation of BGP.In the embodiment of the present invention, if except MP_REACH_NLRI attribute or MP_UNREACH_NLRI attribute, also have other BGP routing properties to occur mistake, for example: format error appears in other BGP routing properties, can process according to the desired method of BGP, for example: disconnect bgp session.
In sum, the routing error processing method that the embodiment of the present invention provides is only applicable to the processing of protocol address family routing iinformation mistake.The routing iinformation of (IPv4, Unicast) address family of take in the description of following examples of the present invention is made mistakes as example and is described.
Particularly, R1 is converted to mistake by the state of (IPv4, Unicast) address family of R2 and forbids that (ErrorDisable) state can be:
First, R1 keeps the bgp session between R1 and R2 stable, and the state of (IPv4, Unicast) address family of R2 is updated to ErrorDisable state;
Secondly, R1 print system daily record (Syslog), to point out the routing iinformation of (IPv4, Unicast) address family to occur mistake;
Finally, R1 deletes the routing iinformation of all (IPv4, Unicast) address families that receive from R2, and notifies R2 to delete the routing iinformation of (IPv4, Unicast) address family that all R1 have noticed.
Through after above-mentioned processing, the bgp session between R1 and R2 is still in stable state, and the transmission of the routing iinformation of other protocol address families on this bgp session will can not be affected.
Particularly, first, R1 is updated to non-ErrorDisable state by the state of (IPv4, Unicast) address family of R2; Secondly, R1 notices the routing iinformation of (IPv4, Unicast) address family of R1 again to R2; Finally, R1 sends route refresh (RouteRefesh) message to R2; In this route refresh message, comprise and need the protocol address family of (IPv4, the Unicast) of restoration route information address family sign; R2, after receiving route refresh message, will notice to R1 whole routing iinformations of (IPv4, Unicast) address family again like this, thereby complete the recovery again of (IPv4, Unicast) address family routing iinformation.
Wherein, the length of the above-mentioned scheduled time can configure according to actual needs voluntarily, and the embodiment of the present invention is not construed as limiting this.
Above-mentioned BGP route refresh function is for asking neighbours' routing device again to notice all routing iinformations of having noticed, still as shown in Figure 2, suppose that Initial R 1 and R2 set up bgp session, and reach the negotiation of BGP route refresh ability, this means that R1 and R2 both sides support route refresh function.R1 learns route 1.1.2.0/24 from R2, and in the situation that route 1.1.2.0/24 does not change, R2 can not repeat to notice route 1.1.2.0/24 to R1 afterwards.And route refresh function is to realize R1 active request R2 again to notice its all routes, R1 sends route refresh (RouteRefresh) message to R2, R2, after receiving the route refresh message of R1, will notice all routing iinformations of corresponding protocol address family again according to the protocol address family sign of carrying in route refresh message.
Wherein, the form of above-mentioned route refresh message can be as shown in Figure 4, and Fig. 4 is the schematic diagram of an embodiment of form of route refresh message of the present invention.
As shown in Figure 4, this route refresh message can comprise AFI field, reserved (Reserved; Hereinafter to be referred as: Res.) field and SAFI field.
Wherein, the value of AFI field can be IPv4 or IPv6; The value of SAFI field can be clean culture (Unicast), multicast (Multicast), multiprotocol label switching-label (Multi-Protocol Label Switching-Label; Hereinafter to be referred as: MPLS-Label) or Layer3 Virtual Private Network (Layer 3 Virtual Private Network; Hereinafter to be referred as: L3VPN) etc.
That is to say, after R2 receives the route refresh message of R1, will according to the value of AFI field in route refresh message and SAFI field, again notice all routing iinformations of corresponding protocol address family.For instance, the value of supposing AFI field is IPv4, and the value of SAFI field is Unicast, and R2 will notice all routing iinformations of (IPv4, Unicast) address family again.
After execution step 305, between R1 and R2, the multi-protocols address family routing iinformation of bgp session will recover normal condition alternately again, if again find that in reciprocal process multi-protocols address family routing iinformation exists mistake, re-executes step 301~step 305.Whole process does not affect the stability of bgp session all the time, does not affect the mutual of protocol address family routing iinformation that on this bgp session, other are not made mistakes yet.
The routing error processing method that the embodiment of the present invention provides, by improving existing BGP for the wrong processing mode of multi-protocols address family routing iinformation, guaranteeing the normal operation of BGP and do not existing under the prerequisite of compatibility issue, the impact that protocol address family routing iinformation is made mistakes is limited in the protocol address family that routing iinformation makes mistakes, and do not affect the Routing Information Exchange of other the protocol address families that do not make mistakes on whole bgp session and this bgp session, improved the stability of bgp session.
One of ordinary skill in the art will appreciate that: all or part of step that realizes said method embodiment can complete by the relevant hardware of program command, aforesaid program can be stored in a computer read/write memory medium, this program, when carrying out, is carried out the step that comprises said method embodiment; And aforesaid storage medium comprises: various media that can be program code stored such as ROM, RAM, magnetic disc or CDs.
Fig. 5 is the structural representation of an embodiment of routing error processing unit of the present invention, and the routing error processing unit in the present embodiment can be used as routing device, or a part for routing device, realizes the present invention's flow process embodiment illustrated in fig. 1.
As shown in Figure 5, this routing error processing unit can comprise:
State modular converter 53, after determining that at determination module 52 above-mentioned multi-protocols address family routing iinformation exists wrong routing iinformation, the state of the first protocol address family of above-mentioned neighbours' routing device is converted to wrong illegal state, and the routing iinformation of above-mentioned the first protocol address family comprises the routing iinformation of above-mentioned mistake;
Routing device in the present embodiment can have for router or switch etc. the network entity of routing function, and the present embodiment is not construed as limiting the specific implementation form of routing device.
In above-mentioned routing error processing unit, after receiver module 51 receives the bgp update message that neighbours' routing device of this routing error processing unit sends, after there is wrong routing iinformation in the multi-protocols address family routing iinformation carrying in the definite bgp update message of determination module 52, state modular converter 53 is converted to wrong illegal state by the state of the first protocol address family of above-mentioned neighbours' routing device; Then, processing module 54 abandons the routing iinformation of all the first protocol address families that receive from neighbours' routing device, and forbids that this routing error processing unit notices the routing iinformation of the first protocol address family of this routing error processing unit to above-mentioned neighbours' routing device.Thereby can guarantee the normal operation of BGP and not exist under the prerequisite of compatibility issue, the impact that protocol address family routing iinformation is made mistakes is limited in this protocol address family, and do not affect the Routing Information Exchange of the protocol address family not makeing mistakes on whole bgp session and this bgp session, improved the stability of bgp session.Wherein, the normal operation of above-mentioned BGP and do not have compatibility issue, the neighbours' routing device that refers to routing device and routing device is all supported the BGP of standard.
Fig. 6 is the structural representation of another embodiment of routing error processing unit of the present invention, compares with the error processing apparatus shown in Fig. 5, and difference is, the routing error processing unit shown in Fig. 6 can also comprise:
Detection module 55, for detection of whether having wrong routing iinformation in above-mentioned multi-protocols address family routing iinformation; Like this, determination module 52 can determine that the protocol address family of above-mentioned multi-protocols address family routing iinformation identifies and can correctly resolve, and in above-mentioned multi-protocols address family routing iinformation, have the routing iinformation occur format error, and there is not mistake in the above-mentioned routing iinformation that occurs format error other BGP routing properties except MP_REACH_NLRI attribute or MP_UNREACH_NLRI attribute.Wherein, other BGP routing properties except MP_REACH_NLRI attribute or MP_UNREACH_NLRI attribute do not occur that mistake refers to that the form of above-mentioned other BGP routing properties meets the regulation of BGP.
In the present embodiment, state modular converter 53 can comprise:
Remind submodule 532, for outputting alarm, to point out the routing iinformation of the first protocol address family to occur mistake;
Delete submodule 533, for deleting the routing iinformation of all the first protocol address families that receive from above-mentioned neighbours' routing device;
In the present embodiment, above-mentioned routing error processing unit can also comprise: mistake is recovered module 56, announcement module 57 and sending module 58 again;
Wherein, mistake is recovered module 56, for the state of the first protocol address family of above-mentioned neighbours' routing device being converted at state modular converter 53 to wrong illegal state and through after the scheduled time, the state of the first protocol address family of above-mentioned neighbours' routing device being updated to non-wrong illegal state; Wherein, the length of the above-mentioned scheduled time can configure according to actual needs voluntarily, and the embodiment of the present invention is not construed as limiting this.
Again announcement module 57, for again notice the routing iinformation of the first protocol address family of routing error processing unit to above-mentioned neighbours' routing device;
Sending module 58, for sending route refresh message to above-mentioned neighbours' routing device, this route refresh message is carried the protocol address family sign of the first protocol address family that needs restoration route information, so that above-mentioned neighbours' routing device, after receiving this route refresh message, is noticed whole routing iinformations of the first protocol address family again to routing error processing unit.
Above-mentioned routing error processing unit can guarantee the normal operation of BGP and not exist under the prerequisite of compatibility issue, the impact that protocol address family routing iinformation is made mistakes is limited in this protocol address family, and do not affect the Routing Information Exchange of the protocol address family not makeing mistakes on whole bgp session and this bgp session, improved the stability of bgp session.Wherein, the normal operation of above-mentioned BGP and do not have compatibility issue, refers to that routing device and neighbours' routing device all support the BGP of standard.
The embodiment of the present invention also provides a kind of routing device, and this routing device can be realized by the routing error processing unit shown in Fig. 5 of the present invention or Fig. 6, does not repeat them here.Above-mentioned routing device can have for router or switch etc. the network entity of routing function, and the embodiment of the present invention is not construed as limiting the specific implementation form of routing device.
It will be appreciated by those skilled in the art that accompanying drawing is the schematic diagram of a preferred embodiment, the module in 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 in embodiment can be distributed in the device of embodiment according to embodiment description, also can carry out respective change and be arranged in the one or more devices that are different from the present embodiment.The module of above-described embodiment can be merged into a module, also can further split into a plurality of submodules.
Finally it should be noted that: above embodiment only, in order to technical scheme of the present invention to be described, is not intended to limit; Although the present invention is had been described in detail with reference to previous embodiment, those of ordinary skill in the art is to be understood that: its technical scheme that still can record aforementioned each embodiment is modified, or part technical characterictic is wherein equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution depart from the spirit and scope of various embodiments of the present invention technical scheme.
Claims (7)
1. a routing error processing method, is characterized in that, comprising:
Routing device receives the Border Gateway Protocol updating message that neighbours' routing device sends;
Described routing device detects in the multi-protocols address family routing iinformation that described Border Gateway Protocol updating message carries whether have wrong routing iinformation;
Determining in the multi-protocols address family routing iinformation that described Border Gateway Protocol updating message carries exists the routing iinformation of described mistake to comprise:
The protocol address family that determines described multi-protocols address family routing iinformation identifies and can correctly resolve, and in described multi-protocols address family routing iinformation, have the routing iinformation occur format error, and there is not mistake in the described routing iinformation that occurs format error other Border Gateway Protocol routing properties except multi-protocols can reach attribute or the unreachable attribute of multi-protocols;
There is wrong routing iinformation in determining the multi-protocols address family routing iinformation that described Border Gateway Protocol updating message is carried after, described routing device is converted to wrong illegal state by the state of the first protocol address family of described neighbours' routing device, and the routing iinformation of described the first protocol address family comprises the routing iinformation of described mistake;
Described routing device abandons the routing iinformation of all described the first protocol address families that receive from described neighbours' routing device, and forbids that described routing device notices the routing iinformation of the first protocol address family of described routing device to described neighbours' routing device.
2. method according to claim 1, is characterized in that, described routing device is converted to wrong illegal state by the state of the first protocol address family of described neighbours' routing device and comprises:
Described routing device keeps the Border Gateway Protocol between described routing device and described neighbours' routing device to talk over the stability, and the state of the first protocol address family of described neighbours' routing device is updated to wrong illegal state;
Described routing device outputting alarm, to point out the routing iinformation of described the first protocol address family to occur mistake, and delete the routing iinformation of all described the first protocol address families that receive from described neighbours' routing device, and the routing iinformation of notifying described neighbours' routing device deletion described the first protocol address family that all described routing devices have been noticed.
3. method according to claim 1, is characterized in that, also comprises:
At described routing device, the state of the first protocol address family of described neighbours' routing device is converted to wrong illegal state also through after the scheduled time, described routing device is updated to non-wrong illegal state by the state of the first protocol address family of described neighbours' routing device;
Described routing device is noticed the routing iinformation of the first protocol address family of described routing device again to described neighbours' routing device;
Described routing device sends route refresh message to described neighbours' routing device, described route refresh message is carried the protocol address family sign of the first protocol address family that needs restoration route information, so that described neighbours' routing device, after receiving described route refresh message, is noticed whole routing iinformations of described the first protocol address family again to described routing device.
4. a routing error processing unit, is characterized in that, comprising:
Receiver module, the Border Gateway Protocol updating message sending for receiving neighbours' routing device of described routing error processing unit;
Whether detection module, there is wrong routing iinformation in the multi-protocols address family routing iinformation carrying for detection of described Border Gateway Protocol updating message;
Determination module, for determining that the multi-protocols address family routing iinformation that the described Border Gateway Protocol updating message of described receiver module reception is carried exists wrong routing iinformation;
Described determination module is determined in the described multi-protocols address family routing iinformation that described Border Gateway Protocol updating message carries and is existed the routing iinformation of described mistake to comprise:
The protocol address family that determines described multi-protocols address family routing iinformation identifies and can correctly resolve, and in described multi-protocols address family routing iinformation, have the routing iinformation occur format error, and there is not mistake in the described routing iinformation that occurs format error other Border Gateway Protocol routing properties except multi-protocols can reach attribute or the unreachable attribute of multi-protocols;
State modular converter, for after described determination module determines that described multi-protocols address family routing iinformation exists wrong routing iinformation, the state of the first protocol address family of described neighbours' routing device is converted to wrong illegal state, and the routing iinformation of described the first protocol address family comprises the routing iinformation of described mistake;
Processing module, for abandoning the routing iinformation of all described the first protocol address families that receive from described neighbours' routing device, and forbid that described routing error processing unit notices the routing iinformation of the first protocol address family of described routing error processing unit to described neighbours' routing device.
5. device according to claim 4, is characterized in that, described state modular converter comprises:
Upgrade submodule, for keeping the Border Gateway Protocol between described routing error processing unit and described neighbours' routing device to talk over the stability, the state of the first protocol address family of described neighbours' routing device is updated to wrong illegal state;
Remind submodule, for the routing iinformation of the first protocol address family described in reminding user, occur mistake;
Delete submodule, for deleting the routing iinformation of all described the first protocol address families that receive from described neighbours' routing device;
Notice submodule, for notifying the routing iinformation of described neighbours' routing device deletion described the first protocol address family that all described routing error processing unit have been noticed.
6. device according to claim 4, is characterized in that, also comprises:
Mistake is recovered module, for the state of the first protocol address family of described neighbours' routing device being converted at described state modular converter to wrong illegal state and through after the scheduled time, the state of the first protocol address family of described neighbours' routing device being updated to non-wrong illegal state;
Again announcement module, for again noticing the routing iinformation of the first protocol address family of described routing error processing unit to described neighbours' routing device;
Sending module, for sending route refresh message to described neighbours' routing device, described route refresh message is carried the protocol address family sign of the first protocol address family that needs restoration route information, so that described neighbours' routing device, after receiving described route refresh message, is noticed whole routing iinformations of described the first protocol address family again to described routing error processing unit.
7. a routing device, is characterized in that, comprises the routing error processing unit as described in claim 4-6 any one.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110192741.0A CN102202004B (en) | 2011-07-08 | 2011-07-08 | Routing error processing method and device and routing equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110192741.0A CN102202004B (en) | 2011-07-08 | 2011-07-08 | Routing error processing method and device and routing equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102202004A CN102202004A (en) | 2011-09-28 |
CN102202004B true CN102202004B (en) | 2014-01-22 |
Family
ID=44662405
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201110192741.0A Active CN102202004B (en) | 2011-07-08 | 2011-07-08 | Routing error processing method and device and routing equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102202004B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10594514B2 (en) | 2017-03-29 | 2020-03-17 | At&T Intellectual Property I, L.P. | Method and apparatus for creating border gateway protocol reachability on demand in a multi-protocol label switching network |
EP4156612A4 (en) * | 2020-06-23 | 2023-11-22 | Huawei Technologies Co., Ltd. | Message advertisement method and related apparatus |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103401735B (en) * | 2013-08-19 | 2017-09-19 | 上海斐讯数据通信技术有限公司 | Indicate the wrong method and system in routing device |
CN110611615B (en) * | 2018-11-28 | 2021-08-24 | 新华三技术有限公司 | Routing information transmission method and device |
CN110061919B (en) * | 2019-04-22 | 2021-03-05 | 广西大学 | BGP routing neighbor establishing and maintaining method and equipment |
CN110932970B (en) * | 2019-12-04 | 2022-03-18 | 锐捷网络股份有限公司 | Processing method and device of Transmission Control Protocol (TCP) session |
CN113225194B (en) * | 2020-01-21 | 2022-09-09 | 华为技术有限公司 | Route abnormality detection method, device and system, and computer storage medium |
CN115604110A (en) * | 2022-09-29 | 2023-01-13 | 新华三技术有限公司(Cn) | Method and device for updating BGP Update message |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1767533A (en) * | 2004-10-26 | 2006-05-03 | 安捷伦科技有限公司 | Method for collecting border gateway protocol routing protocol messages |
US20060171404A1 (en) * | 2004-04-28 | 2006-08-03 | Gargi Nalawade | Network routing apparatus that performs soft graceful restart |
US20070097871A1 (en) * | 2005-10-27 | 2007-05-03 | Boyd William T | Method of routing I/O adapter error messages in a multi-host environment |
US7633874B1 (en) * | 2004-04-28 | 2009-12-15 | Cisco Technology, Inc. | Soft notification messaging for a routing protocol |
-
2011
- 2011-07-08 CN CN201110192741.0A patent/CN102202004B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060171404A1 (en) * | 2004-04-28 | 2006-08-03 | Gargi Nalawade | Network routing apparatus that performs soft graceful restart |
US7633874B1 (en) * | 2004-04-28 | 2009-12-15 | Cisco Technology, Inc. | Soft notification messaging for a routing protocol |
CN1767533A (en) * | 2004-10-26 | 2006-05-03 | 安捷伦科技有限公司 | Method for collecting border gateway protocol routing protocol messages |
US20070097871A1 (en) * | 2005-10-27 | 2007-05-03 | Boyd William T | Method of routing I/O adapter error messages in a multi-host environment |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10594514B2 (en) | 2017-03-29 | 2020-03-17 | At&T Intellectual Property I, L.P. | Method and apparatus for creating border gateway protocol reachability on demand in a multi-protocol label switching network |
EP4156612A4 (en) * | 2020-06-23 | 2023-11-22 | Huawei Technologies Co., Ltd. | Message advertisement method and related apparatus |
US12074786B2 (en) | 2020-06-23 | 2024-08-27 | Huawei Technologies Co., Ltd. | Packet advertisement method and related apparatus |
Also Published As
Publication number | Publication date |
---|---|
CN102202004A (en) | 2011-09-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102202004B (en) | Routing error processing method and device and routing equipment | |
US9843513B2 (en) | Multicast flow overlay using registration over a reliable transport | |
US10461998B2 (en) | PE device and method for advertising information about PE device | |
EP2996290B1 (en) | Packet forwarding method, apparatus, and system | |
US9769054B2 (en) | Network topology discovery method and system | |
CN113055295B (en) | Communication method, communication device and communication system | |
EP3917097B1 (en) | Bier-based bidirectional forwarding detection session creation method, bfir, bfer, system, and storage medium | |
CA3104756C (en) | Loop avoidance communications method, device, and system | |
EP4012987B1 (en) | Method and apparatus for processing link state information | |
US10404544B2 (en) | Network topology determining method and apparatus, and centralized network status information storage device | |
KR20220160639A (en) | Message interaction methods, devices, facilities and storage media | |
CN112702773A (en) | Communication method and device | |
CN108449276B (en) | Route convergence method and device | |
CN106302351A (en) | Collect to access and control the method for list, Apparatus and system | |
WO2011150835A1 (en) | Method for requesting to obtain route information and corresponding route device thereof | |
CN102142931B (en) | Method, device and system for preventing packet loss of E-TRUNK (Enhanced-Trunk) | |
CN111385117B (en) | Method, device and system for alarming | |
CN108667731A (en) | A processing and device based on BIER information | |
CN109428814B (en) | Multicast traffic transmission method, related equipment and computer readable storage medium | |
CN104579758A (en) | LISP (Location/ID Separation Protocol) domain fault detection convergence method and equipment | |
CN108540343B (en) | Path detection method and device | |
CN106470159B (en) | Tunnel convergence method and device | |
CN104426690B (en) | A kind of routing information is sent and storage method, device | |
CN108512762B (en) | Multicast implementation method and device | |
CN103685024A (en) | Node protecting method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
C56 | Change in the name or address of the patentee | ||
CP01 | Change in the name or title of a patent holder |
Address after: Cangshan District of Fuzhou City, Fujian province 350002 Jinshan Road No. 618 Garden State Industrial Park building 19# Patentee after: RUIJIE NETWORKS CO., LTD. Address before: Cangshan District of Fuzhou City, Fujian province 350002 Jinshan Road No. 618 Garden State Industrial Park building 19# Patentee before: Fujian Xingwangruijie Network Co., Ltd. |