CN104270307B - A kind of method for building up and equipment of bgp neighbor - Google Patents
A kind of method for building up and equipment of bgp neighbor Download PDFInfo
- Publication number
- CN104270307B CN104270307B CN201410509627.XA CN201410509627A CN104270307B CN 104270307 B CN104270307 B CN 104270307B CN 201410509627 A CN201410509627 A CN 201410509627A CN 104270307 B CN104270307 B CN 104270307B
- Authority
- CN
- China
- Prior art keywords
- router
- local terminal
- alliance
- bgp
- 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
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The present invention provides a kind of method for building up and equipment of bgp neighbor, and method includes:Local terminal router receives the neighbours that end-to-end router is sent and establishes request message, and neighbours establish the Alliance Identity that request message carries end-to-end router;When a configuration identifier at least one configuration identifier of the Alliance Identity for determining end-to-end router with local terminal router is identical, local terminal router establishes bgp neighbor with end-to-end router.According to said program, Alliance Identity is added by being established between local terminal router and end-to-end router in first transmitted by bgp neighbor message, so that local terminal router can determine whether to establish bgp neighbor with end-to-end router according to whether a configuration identifier at least one Alliance Identity of end-to-end router is identical as the configuration identifier of local terminal router, to ensure after establishing bgp neighbor, the Alliance Identity of all-router in same alliance is identical, the problem of to eliminate route loop and route oscillation.
Description
Technical field
The present invention relates to field of communication technology, more particularly to the method for building up and equipment of a kind of bgp neighbor.
Background technology
BGP (Border Gateway Protocol, Border Gateway Protocol) be a kind of AS (Autonomous System,
Autonomous system) between dynamic routing protocol, the exchange for being responsible for routeing between this autonomous system and external autonomous system.Alliance
(Confederation) it is used to solve the problem of that IBGP (Interior BGP internal bgps) network connection inside AS increases sharply,
As shown in Figure 1, Fig. 1 shows two autonomous system AS (including AS100 and AS200), in wherein AS200 IBGP network connections swash
Increase, alliance's technology can be applied at this time, it is using autonomous system AS200 as an alliance, and using AS200 as the alliance
Alliance Identity, which is divided into several autonomous systems (such as AS65002 in Fig. 1, AS65003, AS65004), joins
IBGP connection relations are established between each router inside each autonomous system in alliance, the road between autonomous system in alliance
EBGP (External BGP, external EPG) connection relation inside alliance is established by device.
By taking Fig. 2 as an example, illustrate the existing process for establishing bgp neighbor.Management level are that the Alliance Identity of router H configurations is
AS2, and configure autonomous system (the i.e. finger of router H that the alliance that the Alliance Identity is AS2 includes AS Serial No. AS1000
The AS sequence numbers for determining neighbours include:AS1000).When establishing bgp neighbor, router H can only be known router H and router I
The AS sequence numbers of router I, due to the AS Serial No. AS1000 of router I, i.e. AS1000 where router I is included in connection
Alliance is identified as in the alliance of AS2, therefore router H and router I establishes alliance's internal BGP neighbors.But in fact, router I
On the Alliance Identity that is configured be that AS3 is established that is, when establishing bgp neighbor between the different router of two Alliance Identities
Alliance's internal BGP neighbors, therefore will appear following situation:
It is sent to router H when router G introduces a routing 1.1.1.1/32 by BGP, wherein carrying AS_PATH
(description reaches the purpose network AS sequence numbers to be passed through, wherein if some alliance belonging to router, AS sequence numbers are
For the Alliance Identity of router) it is (AS1);The routing is forwarded to router I and router J by router H respectively, carrying
AS_PATH is respectively (AS1) and (AS1, AS2);The routing forwarding to router J, the AS_PATH of carrying be by router I
(AS1、AS3);When router J gives this routing forwarding to router I, the AS_PATH of carrying is (AS1, AS3, AS4).However
The Alliance Identity of router H is AS2, thus router H receiving routers J send this routing when according to the AS_ of carrying
PATH (AS1, AS3, AS4) does not know what the router I in this alliance was sent, therefore normally receives this routing, this
When the routing AS_PATH changed, router H records the routing again, and the routing after variation is sent to road
It by device I, repeatedly recycles, route loop and route oscillation is selected and cause to influence the normal of routing.
Invention content
In view of this, the present invention provides a kind of method for building up and equipment of bgp neighbor, to solve to influence the normal choosing of routing
It selects and the problem of route oscillation.
An embodiment of the present invention provides a kind of method for building up of bgp neighbor, including:
Local terminal router receives the neighbours that end-to-end router is sent and establishes request message, and the neighbours establish request message and take
Alliance Identity with the end-to-end router;
The local terminal router determines at least one of the Alliance Identity of the end-to-end router and the local terminal router
When a configuration identifier in configuration identifier is identical, the local terminal router establishes bgp neighbor with the end-to-end router.
Preferably, at least one configuration identifier of the local terminal router includes:At least one local terminal router
Alliance Identity;
The local terminal router determines at least one of the Alliance Identity of the end-to-end router and the local terminal router
When a configuration identifier in configuration identifier is identical, the local terminal router establishes bgp neighbor with the end-to-end router, wraps
It includes:
The local terminal router determines the Alliance Identity of the Alliance Identity and the local terminal router of the end-to-end router
When identical, the local terminal router establishes alliance's internal BGP neighbors with the end-to-end router.
Preferably, at least one configuration identifier of the local terminal router includes:The local terminal router it is at least one
The autonomous system AS sequence numbers of specified neighbours;
The local terminal router determines at least one of the Alliance Identity of the end-to-end router and the local terminal router
When a configuration identifier in configuration identifier is identical, the local terminal router establishes bgp neighbor with the end-to-end router, wraps
It includes:
The local terminal router determines at least one of the Alliance Identity of the end-to-end router and the local terminal router
When an AS sequence number in the AS sequence numbers of specified neighbours is identical, the local terminal router is established with the end-to-end router to be joined
Alliance external BGP neighbours.
Preferably, further include:
The local terminal router determines at least one of the Alliance Identity of the end-to-end router and the local terminal router
When configuration identifier is all different, the local terminal router sends error notification message to the end router, and the mistake is logical
Know message for notifying the end-to-end router, the local terminal router not to establish bgp neighbor with the end-to-end router.
Preferably, it after the local terminal router and the end-to-end router establish alliance external BGP neighbours, also wraps
It includes:
The ground of alliance where the local terminal router receives the deletion end-to-end router that the end-to-end router is sent
Bgp update message after location race information;Alternatively, the local terminal router receives described in the carrying that the end-to-end router is sent
Where end-to-end router when the bgp update message of the address family information of alliance, the ground of alliance where ignoring the end-to-end router
Location race information.
What the embodiment of the present invention additionally provided a kind of bgp neighbor establishes equipment, is applied to local terminal router, including:
Receiving unit, the neighbours for receiving end-to-end router transmission establish request message, and the neighbours establish request report
Text carries the Alliance Identity of the end-to-end router;
Bgp neighbor establishes unit, and the Alliance Identity and the local terminal router for determining the end-to-end router are extremely
When a configuration identifier in a few configuration identifier is identical, bgp neighbor is established with the end-to-end router.
Preferably, at least one configuration identifier of the local terminal router includes:The Alliance Identity of the local terminal router;
The bgp neighbor establishes unit, is specifically used for determining the Alliance Identity of the end-to-end router and the local terminal road
When identical by the Alliance Identity of device, alliance's internal BGP neighbors are established with the end-to-end router.
Preferably, at least one configuration identifier of the local terminal router includes:The local terminal router it is at least one
The autonomous system AS sequence numbers of specified neighbours;
The bgp neighbor establishes unit, is specifically used for determining the Alliance Identity of the end-to-end router and the local terminal road
When identical by an AS sequence number in the AS sequence numbers of at least one specified neighbours of device, establish and join with the end-to-end router
Alliance external BGP neighbours.
Preferably, further include:
Transmission unit, for determining that the Alliance Identity of the end-to-end router is matched with described at least one of local terminal router
When setting mark and being all different, error notification message is sent to the end router, the error notification message is for notifying institute
End-to-end router is stated, the local terminal router does not establish bgp neighbor with the end-to-end router.
Preferably, the receiving unit is additionally operable to receive the deletion end-to-end router that the end-to-end router is sent
Bgp update message after the address family information of place alliance;Alternatively, being additionally operable to receive the carrying that the end-to-end router is sent
Where the end-to-end router when bgp update message of the address family information of alliance, ignore alliance where the end-to-end router
Address family information.
The embodiment of the present invention provides a kind of method for building up and equipment of bgp neighbor, by local terminal router and opposite end road
Alliance Identity is added in first message (i.e. neighbours establish request message) transmitted by bgp neighbor by being established between device, to make
Local terminal router can according to the Alliance Identity of end-to-end router whether at least one configuration identifier of local terminal router
A configuration identifier it is identical determine whether to establish bgp neighbor with end-to-end router, with ensure establish bgp neighbor after, it is same
The Alliance Identity of all-router in alliance is identical, the problem of to eliminate route loop and route oscillation.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is this hair
Some bright embodiments for those of ordinary skill in the art without creative efforts, can be with root
Other attached drawings are obtained according to these attached drawings.
Fig. 1 is two autonomous system relation schematic diagrams that the prior art provides;
Fig. 2 is the alliance schematic diagram that the prior art provides;
Fig. 3 method flow diagrams provided in an embodiment of the present invention;
Fig. 4 is the method flow diagram that another embodiment of the present invention provides;
Fig. 5 is alliance schematic diagram provided in an embodiment of the present invention;
Fig. 6 is device structure schematic diagram provided in an embodiment of the present invention.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation describes, it is clear that described embodiment is only a part of the embodiment of the present invention, instead of all the embodiments.Based on this
Embodiment in invention, every other reality obtained by those of ordinary skill in the art without making creative efforts
Example is applied, shall fall within the protection scope of the present invention.
Since in the prior art, local terminal router is pre-configured in AS sequence numbers, Alliance Identity and the Alliance Identity
The AS sequence numbers of the specified neighbours of local terminal router, for example, in Fig. 2, router H is as local terminal router, AS Serial No.
The AS Serial No. AS1000 of AS1000, Alliance Identity AS2 and specified neighbours.When establishing bgp neighbor, when router H connects
When the neighbours for receiving router I transmissions establish request message, which establishes the AS sequence numbers that request message carries router I
AS1000, then router H the AS of the specified neighbours of AS1000 and router H is known by the AS sequence number AS1000 of router I
Sequence number AS1000 is identical, i.e. the AS sequence numbers AS1000 of router I is therefore the and road in the alliance that Alliance Identity is AS2
Alliance's internal BGP neighbors are established by device I.However, it is AS3 that management level, which may give the Alliance Identity of router I configurations, with router
H is different alliances, and route loop and route oscillation can be led to by establishing alliance's internal BGP neighbors.
The bgp neighbor method for building up of the embodiment of the present invention so that when establishing bgp neighbor, local terminal router being capable of basis
Whether the Alliance Identity of end-to-end router is identical as a configuration identifier at least one configuration identifier of local terminal router really
It is fixed whether with end-to-end router to establish bgp neighbor.
Embodiment one
As shown in figure 3, an embodiment of the present invention provides a kind of method for building up of bgp neighbor, the method for the present embodiment is pair
End router sends neighbours to local terminal router and establishes request message, is executed, be may comprise steps of by local terminal router:
Step 301:Local terminal router receives the neighbours that end-to-end router is sent and establishes request message, and the neighbours establish and ask
Message is asked to carry the Alliance Identity of the end-to-end router.
Wherein, it is first message that local terminal router receives that end-to-end router is sent that neighbours, which establish request message, such as
OPEN (opening) message.It is established in request message in the neighbours, on the basis of carrying original parameter, also carries end-to-end router
Alliance Identity, Alliance Identity can be specially alliance ID.
Step 302:Local terminal router determines the Alliance Identity of the end-to-end router with the local terminal router at least
When a configuration identifier in one configuration identifier is identical, the local terminal router establishes bgp neighbor with the end-to-end router.
Firstly the need of the configuration identifier for knowing local terminal router, wherein if management level are local terminal configuration of routers alliance
Mark, then at least one configuration identifier of the local terminal router is the Alliance Identity of local terminal router.If management level do not give local terminal
Configuration of routers Alliance Identity, then at least one configuration identifier of the local terminal router is at least one specified of local terminal router
The AS sequence numbers of neighbours.
Further, if local terminal router determines that at least one configuration identifier of local terminal router is the connection of local terminal router
Alliance identifies, then when local terminal router determines that the Alliance Identity of the end-to-end router is identical as the Alliance Identity of local terminal router,
Local terminal router establishes alliance's internal BGP neighbors with end-to-end router.
If local terminal router determines that at least one configuration identifier of local terminal router is at least one finger of local terminal router
Determine the AS sequence numbers of neighbours, then local terminal router determines the Alliance Identity of end-to-end router and at least one finger of local terminal router
Determine an AS sequence number in the AS sequence numbers of neighbours it is identical when, local terminal router establishes alliance's external BGP with end-to-end router
Neighbours.
According to said program, the Alliance Identity of end-to-end router is added by being established in request message in neighbours, to make
Local terminal router is obtained when the neighbours for receiving end-to-end router establish request message, knows the Alliance Identity of end-to-end router,
It can be marked according to whether the Alliance Identity of end-to-end router configures with one at least one configuration identifier of local terminal router
It is sensible to determine whether to establish bgp neighbor with end-to-end router together.
Embodiment two
As shown in figure 4, an embodiment of the present invention provides a kind of method for building up of bgp neighbor, this method is by local terminal router
It executes, how more detailed description of embodiment of the present invention local terminal router is marked according to configuration identifier and end-to-end router alliance
Bgp neighbor is established in the comparison of knowledge.It may comprise steps of:
Step 401:Local terminal router receives the neighbours that end-to-end router is sent and establishes request message, which establishes request
Message carries the Alliance Identity of the end-to-end router.
Include router M, routing in the network as shown in figure 5, in a network, including multiple router devices
Device N and router O.Wherein, the AS Serial No. AS30 of router M.The AS Serial No. AS40 of router N.The AS of router O
Serial No. AS40.
Using router O as local terminal router, router N is as end-to-end router.Router N is by learning to road
By the path of device O, BGP message is sent to router O, wherein establish request message including sending neighbours to router O, the neighbour
The Alliance Identity established and carry router N in request text is occupied, Alliance Identity can be specially alliance ID.The alliance of router N marks
Know, such as AS2, in addition, the neighbours establish in request message the AS sequence numbers for also carrying router N, e.g., AS40.
Wherein, BGP message includes 5 kinds of type of messages:Open (opening) message, Update (update) message,
Notification (notice) message, Keepalive (keep-alive) messages and Route-refresh (route recovery) message.The neighbour
It occupies and establishes first message that request message carries out neighbours' foundation between router N and router O, router in the present embodiment
It can be OPEN messages that the neighbours that N is sent, which establish request message for example, i.e., alliance's mark of router N is added in OPEN messages
Know, the format of the newly-increased parameter in the OPEN messages is as follows:
Mutiprotocol extensions capability(6bytes)
capability code:Confederation negotiate capability(120bytes)
capability length:4bytes
Confederation Identifier:2
Wherein, Mutiprotocol extensions capability (6bytes) are for indicating new in OPEN messages
Increase parameter;capability code:Confederation negotiate capability for indicate the parameter for into
Row alliance negotiates, capability length:4bytes is used to indicate the parameter (i.e. Alliance Identity) for carrying out alliance's negotiation
Length be 4bytes, Confederation Identifier:2 are for the Alliance Identity for carrying out alliance's negotiation for indicating
2, i.e., the Alliance Identity carried in the OPEN messages is AS2.
Step 402:Local terminal router determines at least one configuration identifier of itself, however, it is determined that at least one configuration identifier
For the Alliance Identity of local terminal router, 403 are thened follow the steps;If it is determined that at least one configuration identifier be local terminal router extremely
The AS sequence numbers of few specified neighbours, then follow the steps 406.
In embodiments of the present invention, if management level are local terminal configuration of routers Alliance Identity, at least one configuration
It is identified as Alliance Identity.As shown in figure 5, if router O, as local terminal router, management level are that router O is configured with alliance's mark
Know, such as AS3, then at least one configuration identifier is the Alliance Identity of router O.
If it is local terminal router that management level, which do not give local terminal configuration of routers Alliance Identity, at least one configuration identifier,
The sequence number of at least one specified neighbours, if as shown in figure 5, router M is as local terminal router, management level do not give router M
Alliance Identity is configured, then at least one configuration identifier is the AS sequence numbers of at least one specified neighbours of local terminal router, such as
AS30、AS40。
Step 403:Whether the Alliance Identity for judging end-to-end router is identical as the Alliance Identity of local terminal router, if phase
Together, 404 are thened follow the steps;If differing, 405 are thened follow the steps.
Step 404:Local terminal router establishes alliance's internal BGP neighbors with end-to-end router.Step 405:It is route to opposite end
Device sends error notification message.
As shown in fig. 5, it is assumed that router O is as local terminal router, router N is as end-to-end router.
Wherein, the Alliance Identity of router N and router O are configurable to identical Alliance Identity, such as AS2.Then in the step
In deterministic process under rapid 403, the Alliance Identity of router O and the Alliance Identity of router O are AS2, therefore, router O
Alliance's internal BGP neighbors are established with router N.
It should be noted that alliance's internal BGP neighbors include:IBGP neighbours and alliance's inside ebgp neighbor inside alliance.
If local terminal router is identical as end-to-end router Alliance Identity and AS sequence numbers are identical, IBGP neighbours inside alliance are established.If
Local terminal router is identical as end-to-end router Alliance Identity and AS sequence numbers are different, then establishes ebgp neighbor inside alliance.
In addition, the Alliance Identity of router N and router O are configurable to different Alliance Identity, such as router N
Alliance Identity is AS2, and the Alliance Identity of router O is AS3, therefore router O and router N are not belonging to same alliance, therefore
Negotiate failure, router O sends error notification message to router N, to inform that router N routers O is not established with router N
Bgp neighbor.
In embodiments of the present invention, error notification message can be the Notification messages that type of error is 2/8.It should
The Notification messages that type of error is 2/8 are newly-increased message, the Notification messages which is 2/8
Format is as follows:
Marker:16bytes
Length:21bytes
Type:NOTIFICATION Message(3)
Error code:OPEN Message Error(2)
Error subcode:Bad Confederation Identifier(8)
Wherein, Marker:16bytes, BGP messages, length 16bytes, content are full F for identification;Length:
21bytes is used to indicate that the length of Notification messages to be 21bytes, Type:NOTIFICATION Message (3) are used
In expression, the message is Notification messages;Error code:OPEN Message Error (2) are for notifying opposite end road
There is mistake by device OPEN messages;Error subcode:Bad Confederation Identifier (8) are for indicating this
Error code is Alliance Identity mistake.
According to the parameter for the Notification messages that above-mentioned type of error is 2/8, it is known that local terminal router is to opposite end road
The Notification messages that type of error is 2/8 are sent by device, for notifying end-to-end router, due to the connection of end-to-end router
Alliance identifies mistake, therefore local terminal router does not establish bgp neighbor with end-to-end router.
Step 406:Judge whether to have in the AS sequence numbers of at least one specified neighbours of local terminal router and be route with opposite end
The identical AS sequence numbers of Alliance Identity of device, if having in the AS sequence numbers of at least one specified neighbours of local terminal router and opposite end
The identical AS sequence numbers of Alliance Identity of router, then follow the steps 407;If at least one specified neighbours' of local terminal router
AS sequence numbers not identical with the Alliance Identity of end-to-end router, then follow the steps 408 in AS sequence numbers.
Step 407:Local terminal router establishes alliance external BGP neighbours with end-to-end router.
Step 408:Error notification message is sent to end-to-end router.
As shown in fig. 5, it is assumed that router M is as local terminal router, router N is as end-to-end router, wherein management level
Router M is not given to configure Alliance Identity, the AS sequence number packets of the specified neighbours of AS the Serial No. AS30, router M of router M
It includes:AS2, AS30.
If the Alliance Identity of router N is AS2, in the deterministic process of the step 406, the Alliance Identity of router N
AS sequence numbers AS2 with the specified neighbours of router M is identical, therefore router M and router N establishes alliance external BGP neighbour
It occupies.
It should be noted that alliance external BGP neighbours are ebgp neighbor.
If the Alliance Identity of router N is AS3, the AS sequence numbers of the specified neighbours of router M do not include AS3, not with
The AS sequence numbers of the identical specified neighbours of Alliance Identity AS3 of router N, therefore negotiate failure, router M is sent out to router N
Error notification message is sent, to inform that router N routers M does not establish bgp neighbor with router N.
Wherein, which may be the Notification messages that type of error is 2/8.
It should be noted that above-described embodiment is to establish the Alliance Identity that request message carries end-to-end router in neighbours
In the case of carry out, if management level do not configure Alliance Identity to end-to-end router or neighbours establish request message and do not carry alliance
Mark, then it does not include end-to-end router that the neighbours that the end-to-end router that local terminal router receives is sent, which establish in request message,
Alliance Identity.Therefore, the bgp neighbor method for building up of local terminal router and end-to-end router further includes two kinds of situations:
The first situation is:Management-side is local terminal configuration of routers Alliance Identity, the opposite end road that local terminal router receives
The neighbours sent by device establish in request message the Alliance Identity for not including end-to-end router, include the AS sequences of end-to-end router
In the case of number.As shown in fig. 5, it is assumed that router N is as local terminal router, router M is as end-to-end router.Wherein, road
It is AS2, the AS Serial No. AS40 of router N by the Alliance Identity of device N.The neighbours that router N receiving routers M is sent establish
Request message, the neighbours establish in request message the AS sequence number AS30 for carrying router M, do not carry alliance's mark of router M
Know.Alliance internal bgp neighbour is established if the AS sequence numbers of the specified neighbours of router N include AS30, router N and router M
It occupies.And prompt message is locally displayed in router N.The prompt message can be that " there may be mistakes for the Alliance Identity of router M
Accidentally ".If the AS sequence numbers of the specified neighbours of router N do not include AS30, router N and router M negotiation errors, router
N sends error notification message to router M, which can be the Notification reports that type of error is 2/2
Text, the Notification messages which is 2/2 are for notifying router M, since the AS sequence numbers of router M are wrong
Accidentally, therefore bgp neighbor is not established with router M.
The second situation is:Management-side does not give local terminal configuration of routers Alliance Identity, the opposite end road that local terminal router receives
The neighbours sent by device establish in request message the Alliance Identity for not including end-to-end router, include the AS sequences of end-to-end router
In the case of number.As shown in fig. 5, it is assumed that router N is as local terminal router, router M is as end-to-end router.Wherein, it manages
It manages layer and does not configure Alliance Identity, the AS Serial No. AS40 of router N to router N.Router N receives the neighbour of router M
Request message is established in residence, which establishes the sequence number AS30 that request message carries router M, does not carry the alliance of router M
Mark.If AS the Serial No. AS30, router N and router M of the specified neighbours of router N establish ebgp neighbor.If road
When AS sequence numbers by the specified neighbours of device N do not include AS30, then router N and router M negotiation errors, router N is to road
Error notification message is sent by device M, which can be the Notification messages that type of error is 2/2, should
The Notification messages that type of error is 2/2 are for notifying router M, due to the AS sequence number errors of router M,
Bgp neighbor is not established with router M.
In addition, after local terminal router and end-to-end router establish alliance external BGP neighbours, since end-to-end router exists
When sending bgp update message to the local terminal router for being not belonging to identical alliance, which includes end-to-end router place
The address family information of alliance, after local terminal router receives the bgp update message, it is found that it is not certainly the bgp update includes
The address family information of alliance where body, then delete or ignore the bgp update message by the bgp update message.Therefore, on local terminal road
After completing bgp neighbor by device and end-to-end router foundation, if what local terminal router and end-to-end router established is outside alliance
The bgp neighbor in portion, when end-to-end router sends bgp update message to local terminal router, by pair in the bgp update message
Hold router where alliance address family information deletion, and will delete end-to-end router where alliance address family information after
Bgp update message is sent to local terminal router, i.e., what local terminal router received is the deletion opposite end routing that end-to-end router is sent
Bgp update message after the address family information of alliance where device.If local terminal router and end-to-end router foundation are outside alliance
The bgp neighbor in portion, alliance where the bgp update message that end-to-end router is sent to local terminal router carries end-to-end router
Address family information deletion, then local terminal router ignore pair carried in the bgp update message when receiving the bgp update message
The address family information of alliance where holding router.
According to said program, by establishing first transmitted by bgp neighbor between local terminal router and end-to-end router
Message, i.e. neighbours, which are established, adds Alliance Identity in request message, so that local terminal router can be according to end-to-end router
Whether Alliance Identity identical as a configuration identifier at least one configuration identifier of local terminal router to determine whether and opposite end
Router establishes bgp neighbor, and to ensure after establishing bgp neighbor, the Alliance Identity of the all-router in same alliance is identical, from
And the problem of eliminating route loop and route oscillation.
Embodiment three
As shown in fig. 6, establishing equipment an embodiment of the present invention provides a kind of bgp neighbor, it is applied to local terminal router, it can
To include:
Receiving unit 601, the neighbours for receiving end-to-end router transmission establish request message, and the neighbours establish request
Message carries the Alliance Identity of the end-to-end router;
Bgp neighbor establishes unit 602, the Alliance Identity for determining the end-to-end router and the local terminal router
When a configuration identifier at least one configuration identifier is identical, bgp neighbor is established with the end-to-end router.
Further, at least one configuration identifier of the local terminal router includes:The alliance of the local terminal router marks
Know;
The bgp neighbor establishes unit, is specifically used for determining the Alliance Identity of the end-to-end router and the local terminal road
When identical by the Alliance Identity of device, alliance's internal BGP neighbors are established with the end-to-end router.
Further, at least one configuration identifier of the local terminal router includes:The specified neighbour of the local terminal router
The autonomous system AS sequence numbers in residence;
The bgp neighbor establishes unit, is specifically used for determining the Alliance Identity of the end-to-end router and the local terminal road
When identical by an AS sequence number in the AS sequence numbers of at least one specified neighbours of device, establish and join with the end-to-end router
Alliance external BGP neighbours.
Further, further include:
Transmission unit 603, the Alliance Identity and at least the one of the local terminal router for determining the end-to-end router
When a configuration identifier is all different, the local terminal router sends error notification message, the mistake to the end router
Notice message is for notifying the end-to-end router, the local terminal router not to establish bgp neighbor with the end-to-end router.
Further,
Receiving unit 601 is additionally operable to the local terminal router and receives the deletion opposite end that the end-to-end router is sent
Bgp update message after the address family information of alliance where router;Alternatively, being additionally operable to receive the end-to-end router transmission
The carrying end-to-end router where alliance address family information bgp update message when, ignore the end-to-end router institute
In the address family information of alliance.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all essences in the present invention
With within principle, any modification, equivalent substitution, improvement and etc. done should be included within the scope of protection of the invention god.
Claims (6)
1. a kind of method for building up of bgp neighbor, which is characterized in that including:
Local terminal router receives the neighbours that end-to-end router is sent and establishes request message, and the neighbours establish request message and carry institute
State the Alliance Identity of end-to-end router;
The local terminal router determines at least one configuration of the Alliance Identity and the local terminal router of the end-to-end router
When a configuration identifier in mark is identical, the local terminal router establishes bgp neighbor with the end-to-end router;
Wherein, if at least one configuration identifier of the local terminal router includes the Alliance Identity of the local terminal router, institute
It is described when stating local terminal router and determining that the Alliance Identity of the end-to-end router is identical as the Alliance Identity of local terminal router
Local terminal router establishes alliance's internal BGP neighbors with the end-to-end router;
If at least one configuration identifier of the local terminal router includes at least one specified neighbours of the local terminal router
Autonomous system AS sequence numbers, then the local terminal router determine the Alliance Identity of the end-to-end router and the local terminal router
At least one specified neighbours AS sequence numbers in an AS sequence number it is identical when, the local terminal router and the opposite end road
Alliance external BGP neighbours are established by device.
2. according to the method described in claim 1, it is characterized in that, further including:
The local terminal router determines at least one configuration of the Alliance Identity and the local terminal router of the end-to-end router
When mark is all different, the local terminal router sends error notification message, the error notification report to the end router
Text is for notifying the end-to-end router, the local terminal router not to establish bgp neighbor with the end-to-end router.
3. according to the method described in claim 1, it is characterized in that, being established in the local terminal router and the end-to-end router
After alliance external BGP neighbours, further include:
The address family of alliance where the local terminal router receives the deletion end-to-end router that the end-to-end router is sent
Bgp update message after information;Alternatively,
The address of alliance where the local terminal router receives the carrying end-to-end router that the end-to-end router is sent
When the bgp update message of race's information, the address family information of alliance where ignoring the end-to-end router.
4. a kind of bgp neighbor establishes equipment, it is applied to local terminal router, which is characterized in that including:
Receiving unit, the neighbours for receiving end-to-end router transmission establish request message, and the neighbours establish request message and take
Alliance Identity with the end-to-end router;
Bgp neighbor establishes unit, the Alliance Identity and at least the one of the local terminal router for determining the end-to-end router
When a configuration identifier in a configuration identifier is identical, bgp neighbor is established with the end-to-end router;
Wherein, if at least one configuration identifier of the local terminal router includes the Alliance Identity of the local terminal router, institute
It states bgp neighbor and establishes unit, be specifically used for determining the alliance of the Alliance Identity and the local terminal router of the end-to-end router
When identifying identical, alliance's internal BGP neighbors are established with the end-to-end router;
If at least one configuration identifier of the local terminal router includes at least one specified neighbours of the local terminal router
Autonomous system AS sequence numbers, then the bgp neighbor establish unit, be specifically used for determining the Alliance Identity of the end-to-end router with
When an AS sequence number in the AS sequence numbers of at least one specified neighbours of the local terminal router is identical, with the opposite end road
Alliance external BGP neighbours are established by device.
5. according to any equipment of claim 4, which is characterized in that further include:
Transmission unit, for determining the Alliance Identity of the end-to-end router and at least one configuration mark of the local terminal router
When knowledge is all different, error notification message is sent to the end router, the error notification message is described right for notifying
Router, the local terminal router is held not to establish bgp neighbor with the end-to-end router.
6. equipment according to claim 4, which is characterized in that the receiving unit is additionally operable to receive the opposite end routing
Bgp update message after the address family information of alliance where the deletion end-to-end router that device is sent;Alternatively, being additionally operable to receive
Where the carrying end-to-end router sent to the end-to-end router when the bgp update message of the address family information of alliance,
The address family information of alliance where ignoring the end-to-end router.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410509627.XA CN104270307B (en) | 2014-09-28 | 2014-09-28 | A kind of method for building up and equipment of bgp neighbor |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410509627.XA CN104270307B (en) | 2014-09-28 | 2014-09-28 | A kind of method for building up and equipment of bgp neighbor |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104270307A CN104270307A (en) | 2015-01-07 |
CN104270307B true CN104270307B (en) | 2018-07-24 |
Family
ID=52161800
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410509627.XA Active CN104270307B (en) | 2014-09-28 | 2014-09-28 | A kind of method for building up and equipment of bgp neighbor |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104270307B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108696433B (en) * | 2018-07-24 | 2021-04-06 | 新华三技术有限公司 | Route oscillation suppression method and BGP routing equipment |
CN111385246B (en) | 2018-12-28 | 2021-09-21 | 华为技术有限公司 | Secure route identification method and device |
CN114567580B (en) * | 2020-11-27 | 2023-10-20 | 华为技术有限公司 | Message sending method, message processing method, device and system |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7702765B1 (en) * | 2004-03-01 | 2010-04-20 | Cisco Technology, Inc. | Techniques for automatically creating an iBGP mesh |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8228786B2 (en) * | 2005-04-07 | 2012-07-24 | Cisco Technology, Inc. | Dynamic shared risk node group (SRNG) membership discovery |
US8396988B2 (en) * | 2007-12-19 | 2013-03-12 | At&T Intellectual Property I, L.P. | Method and system for survival of data plane through a total control plane failure |
-
2014
- 2014-09-28 CN CN201410509627.XA patent/CN104270307B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7702765B1 (en) * | 2004-03-01 | 2010-04-20 | Cisco Technology, Inc. | Techniques for automatically creating an iBGP mesh |
Also Published As
Publication number | Publication date |
---|---|
CN104270307A (en) | 2015-01-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7742400B2 (en) | Method and system for detecting link failure between nodes in a hybrid network | |
CN111294236B (en) | Communication method and device based on Service Function Chain (SFC) | |
US20150326469A1 (en) | Oam aided explicit path report via igp | |
CN102571601B (en) | A kind of method and label switched path equipment for ensureing two-way converting detection reliability | |
US10439880B2 (en) | Loop-free convergence in communication networks | |
US8457086B2 (en) | Dynamic EQAM discovery in M-CMTS architecture | |
PH12015502297B1 (en) | A method and system for updating distributed resilient network interconnect (drni) states | |
US8199679B2 (en) | Enterprise virtual private LAN services | |
JP5764820B2 (en) | Transmission system and transmission system control method | |
CN112769614B (en) | Automatic management method of VPN (virtual private network) on demand and intercommunication system of heterogeneous network | |
EP2553870B1 (en) | An operations, administrations and management proxy and a method for handling operations, administrations and management messages | |
CN104144122B (en) | Establish the method, equipment and system of label switched path | |
US12009984B2 (en) | Targeted neighbor discovery for border gateway protocol | |
KR20140117993A (en) | Mpls-tp network and method for link failure trace | |
CN101826990A (en) | Method, device and system for detecting connectedness of virtual pseudo wires | |
EP2439888B1 (en) | Apparatus and method for establishing pseudo wire | |
CN104270307B (en) | A kind of method for building up and equipment of bgp neighbor | |
US20060002306A1 (en) | Failure detection of path information corresponding to a transmission path | |
JP4500781B2 (en) | Ethernet network topology confirmation method | |
CN106357541A (en) | Information transmission method and device | |
JP2007194957A (en) | Transmission device, method of connecting transmission line rings, and program for connecting transmission line rings | |
CN109347790B (en) | Security attack test system and test method for electric power MPLS VPN network | |
CN105530109B (en) | A kind of network element is method, router and the system of slotting i.e. management | |
CN108521336A (en) | A kind of method and device for controlling routing networking IP address conflict | |
TW202023242A (en) | Device and method of establishing hybrid mesh network for multi-link |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No. Applicant after: Xinhua three Technology Co., Ltd. Address before: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No. Applicant before: Huasan Communication Technology Co., Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |