CN102957623A - Maintenance method and equipment of neighborhood of border gate protocol - Google Patents

Maintenance method and equipment of neighborhood of border gate protocol Download PDF

Info

Publication number
CN102957623A
CN102957623A CN2012104936596A CN201210493659A CN102957623A CN 102957623 A CN102957623 A CN 102957623A CN 2012104936596 A CN2012104936596 A CN 2012104936596A CN 201210493659 A CN201210493659 A CN 201210493659A CN 102957623 A CN102957623 A CN 102957623A
Authority
CN
China
Prior art keywords
equipment
bgp
slave
agent process
slave equipment
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.)
Granted
Application number
CN2012104936596A
Other languages
Chinese (zh)
Other versions
CN102957623B (en
Inventor
林慧
王伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ziguang Hengyue Technology Co.,Ltd.
Original Assignee
Hangzhou H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN201210493659.6A priority Critical patent/CN102957623B/en
Publication of CN102957623A publication Critical patent/CN102957623A/en
Application granted granted Critical
Publication of CN102957623B publication Critical patent/CN102957623B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Telephonic Communication Services (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a maintenance method and equipment of a neighborhood of a border gate protocol. The maintenance method comprises the following steps: after starting a BGP (Border Gate Protocol), Slave equipment starts a retention timer for a BGP neighborhood of the equipment; before the retention timer is overtime, the Slave equipment sends a keepalive message to the BGP neighborhood periodically; if the Slave equipment receives the keepalive message from the BGP neighborhood, the Slave equipment updates the retention timer; and/or if the Slave equipment receives an update message from the BGP neighborhood, the Slave equipment updates the retention timer. In the embodiment of the invention, the interaction of the keepalive message on a stacking link can be reduced and the pressure of Master equipment can be reduced.

Description

A kind of Border Gateway Protocol neighbours' maintaining method and equipment
Technical field
The present invention relates to communication technical field, especially related to a kind of Border Gateway Protocol neighbours' maintaining method and equipment.
Background technology
IRF(Intelligent Resilient Framework, intelligent elastic framework) multiple devices is linked together, be virtualized into an equipment, IRF can gather hardware resource and the software disposal ability of multiple devices, realizes collaborative work, unified management and uninterrupted maintenance of multiple devices; In the IRF network, by Master(master) equipment and Slave(from) many member devices such as equipment form, Master equipment is responsible for the Operations, Administration and Maintenance of IRF network, in case Master equipment breaks down, Master equipment that then can automatic election is new from Slave equipment, guaranteeing that business do not interrupt, thus the 1:N of the equipment of realization backup.
BGP(Border Gateway Protocol, Border Gateway Protocol) be the Routing Protocol of outside, autonomous area, the route between responsible this autonomous area and outside autonomous area can reach the exchange of information; Wherein, BGP comprises 5 types message, being respectively open(begins) message (being used for setting up bgp neighbor), update(upgrades) message (being used for more new routing information), the keepalive(survival) message (being used for checking the bgp neighbor state), the notification(notice) message and route refresh(route recovery) message.
In the existing IRF network, the message of receiving on all Slave equipment all needs to send to Master equipment to be processed, so moves in the IRF network after the BGP, and Slave equipment receives that 5 types BGP message all needs to send to afterwards Master equipment; And because bgp neighbor is after setting up, need periodically mutual keepalive message, so the keepalive message that each Slave equipment all needs to receive sends to Master equipment, thereby cause a large amount of keepalive message of transmission between Slave equipment and the Master equipment, and cause the keepalive message that Master establishes needs processing a large amount of, and can affect Business Processing efficient.
As shown in Figure 1, networking schematic diagram for the IRF network, the member devices such as RTA, RTB, RTC, RTD form the IRF network, RTA is Master equipment, RTB, RTC, RTD are Slave equipment, RTE, RTG, RTF, RTH carry out networking with the interface board at RTA, RTB, RTC, RTD place respectively and dock, and the configuration bgp neighbor; Under above-mentioned networking, RTA is responsible for processing all business, namely all keepalive messages of receiving from Slave equipment all are transparent to RTA by stacking link and process (after receiving the keepalive message such as RTD, need to pass through RTA via RTB or RTC by stacking link and process); Thereby cause needing on the stacking link to transmit a large amount of keepalive messages, increase stacking link burden, and cause RTA need to process a large amount of keepalive messages, affect Business Processing efficient.
Summary of the invention
The invention provides a kind of Border Gateway Protocol neighbours' maintaining method and equipment, alleviating stacking link burden, and reduce Master equipment and need keepalive message amount to be processed.
In order to achieve the above object, the embodiment of the invention provides a kind of Border Gateway Protocol neighbours' maintaining method, is applied to comprise main Master equipment and from the intelligent elastic framework IRF network of Slave equipment, the method may further comprise the steps:
Described Slave equipment is the bgp neighbor startup maintenance timer of this equipment after starting the Border Gateway Protocol (BGP) agent process; Wherein, before described maintenance timer expired, between described Slave equipment and the described bgp neighbor maintenance there is neighborhood;
Before described maintenance timer expired, described Slave equipment periodic sends the keepalive message to described bgp neighbor; And, if described Slave equipment is received the keepalive message from described bgp neighbor, the described maintenance timer of described Slave renewal of the equipment then; And/or,
Before described maintenance timer expired, if described Slave equipment is received the update message from described bgp neighbor, the described maintenance timer of described Slave renewal of the equipment then.
The bgp neighbor that described Slave equipment is this equipment starts the maintenance timer, also comprises afterwards:
After described maintenance timer expired, described Slave equipment determines that the neighborhood between this equipment and the described bgp neighbor disconnects, and the information that the neighborhood between this equipment and the described bgp neighbor disconnects is notified to described Master equipment.
Described method further comprises: if described Slave equipment does not start the BGP agent process, then after the keepalive message and/or update message received from the bgp neighbor of this equipment, described keepalive message and/or update message are sent to the Slave equipment of acting on behalf of of this equipment, the described Slave equipment of acting on behalf of is the Slave equipment of startup BGP agent process, and is used to described Slave proxy for equipment bgp neighbor maintenance process; Perhaps,
Described Slave equipment is after starting the BGP agent process, if need to be other Slave proxy for equipment bgp neighbor maintenance process, then this Slave equipment starts and keeps timer as acting on behalf of the bgp neighbor of Slave equipment for the Slave equipment acted on behalf of; Before keeping timer expired, this Slave equipment periodic sends the keepalive message to the bgp neighbor of the Slave equipment that quilt is acted on behalf of; And, if this Slave equipment is received the keepalive message of the bgp neighbor of the Slave equipment of being acted on behalf of from this by the Slave equipment of being acted on behalf of, then upgrade corresponding maintenance timer; And/or, if this Slave equipment is received the update message of the bgp neighbor of the Slave equipment of being acted on behalf of from this by the Slave equipment of being acted on behalf of, then upgrade corresponding maintenance timer, and described update message is sent to described Master equipment.
Described method further comprises: described Slave equipment receives the information of the startup BGP agent process of described Master equipment notice;
Described Slave equipment utilizes the current CPU information of this equipment and/or memory usage information to determine whether this equipment starts the BGP agent process after receiving the information that starts the BGP agent process;
If so, described Slave device start BGP agent process then, and send this equipment to described Master equipment and started the information of BGP agent process and the identification information of this equipment;
If not, then described Slave equipment does not start the BGP agent process, and sends this equipment to described Master equipment and do not start the information of BGP agent process and the identification information of this equipment, does not perhaps send response message to described Master equipment;
Described Slave equipment is after starting the BGP agent process, and what receive described Master equipment notice need to be the information of other Slave proxy for equipment bgp neighbor maintenance process.
The embodiment of the invention provides a kind of Border Gateway Protocol neighbours' maintaining method, is applied to comprise main Master equipment and from the intelligent elastic framework IRF network of Slave equipment, the method may further comprise the steps:
Described Master equipment is after starting the Border Gateway Protocol (BGP) agent process, send the information that starts the BGP agent process to Slave equipment, determine by CPU information and/or memory usage information that described this equipment of Slave equipment utilization is current whether this equipment starts the BGP agent process;
When described Master equipment receives the identification information of the information that starts the BGP agent process that described Slave equipment returns and Slave equipment, determine described Slave device start BGP agent process, and do not need to determine the bgp neighbor for described Slave equipment to start the maintenance timer;
When described Master equipment receives the information that does not start the BGP agent process that described Slave equipment returns and the identification information of Slave equipment, when perhaps described Master equipment does not receive the response message of described Slave equipment in Preset Time, determine that described Slave equipment does not start the BGP agent process, and the Slave proxy for equipment bgp neighbor maintenance process of notifying the Slave equipment that starts the BGP agent process need to not start for other BGP agent process, and do not need to determine the bgp neighbor for described Slave equipment to start the maintenance timer.
The embodiment of the invention provides a kind of Border Gateway Protocol neighbours' service equipment, comprises that as being applied to from Slave equipment described Slave equipment comprises the intelligent elastic framework IRF network of main Master equipment and described Slave equipment:
Maintenance module is used for after starting the Border Gateway Protocol (BGP) agent process, is the bgp neighbor startup maintenance timer of this equipment; Wherein, before described maintenance timer expired, between this equipment and the described bgp neighbor maintenance there is neighborhood;
Communication module is used for periodically sending the keepalive message to described bgp neighbor before described maintenance timer expired; And, if receive keepalive message from described bgp neighbor, then upgrade described maintenance timer; And/or,
Before described maintenance timer expired, if receive update message from described bgp neighbor, then upgrade described maintenance timer.
Described communication module also is used for after described maintenance timer expired, determines that the neighborhood between this equipment and the described bgp neighbor disconnects, and the information that the neighborhood between this equipment and the described bgp neighbor disconnects is notified to described Master equipment.
Described communication module, also be used for when this equipment does not start the BGP agent process, after the keepalive message and/or update message received from the bgp neighbor of this equipment, described keepalive message and/or update message are sent to the Slave equipment of acting on behalf of of this equipment, the described Slave of agency equipment has started the BGP agent process, and is used to this proxy for equipment bgp neighbor maintenance process; Perhaps,
After starting the BGP agent process, if need to be other Slave proxy for equipment bgp neighbor maintenance process, then start and keep timer as acting on behalf of the bgp neighbor of Slave equipment for the Slave equipment acted on behalf of; Before keeping timer expired, periodicity sends the keepalive message to the bgp neighbor of the Slave equipment that quilt is acted on behalf of; And, if receive the keepalive message of the bgp neighbor of the Slave equipment of being acted on behalf of from quilt by the Slave equipment of being acted on behalf of, then upgrade corresponding maintenance timer; And/or, if receive the update message of the bgp neighbor of the Slave equipment of being acted on behalf of from quilt by the Slave equipment of being acted on behalf of, then upgrade corresponding maintenance timer, described update message is sent to described Master equipment.
Described communication module also is used for receiving the information of the startup BGP agent process of described Master equipment notice; The CPU information that this equipment of utilization is current and/or memory usage information determine whether this equipment starts the BGP agent process;
If so, then start the BGP agent process, and send this equipment to described Master equipment and started the information of BGP agent process and the identification information of this equipment;
If not, then do not start the BGP agent process, and send this equipment to described Master equipment and do not start the identification information of the information of BGP agent process and this equipment or do not send response message to described Master equipment; And after starting the BGP agent process, what receive described Master equipment notice need to be the information of other Slave proxy for equipment bgp neighbor maintenance process.
The embodiment of the invention provides a kind of Border Gateway Protocol neighbours' maintaining method, is applied to comprise described Master equipment and from the intelligent elastic framework IRF network of Slave equipment, described Master equipment comprises as main Master equipment:
Sending module, be used for after starting the Border Gateway Protocol (BGP) agent process, send the information that starts the BGP agent process to Slave equipment, determine by CPU information and/or memory usage information that described this equipment of Slave equipment utilization is current whether this equipment starts the BGP agent process;
Processing module, be used for when receiving the identification information of the information that starts the BGP agent process that described Slave equipment returns and Slave equipment, determine described Slave device start BGP agent process, and do not need to determine the bgp neighbor for described Slave equipment to start the maintenance timer;
When receiving the information that does not start the BGP agent process that described Slave equipment returns and the identification information of Slave equipment, when perhaps in Preset Time, not receiving the response message of described Slave equipment, determine that described Slave equipment does not start the BGP agent process, and the Slave proxy for equipment bgp neighbor maintenance process of notifying the Slave equipment that starts the BGP agent process need to not start for other BGP agent process, and do not need to determine the bgp neighbor for described Slave equipment to start the maintenance timer.
Compared with prior art, the embodiment of the invention has the following advantages at least: in the embodiment of the invention, Slave equipment is after starting the BGP agent process, can process the keepalive message of this equipment, not needing keepalive message with this equipment to send to Master equipment processes, thereby can alleviate stacking link burden, reduce the mutual of keepalive message on the stacking link; And can reduce Master equipment need keepalive message amount to be processed, reduce the pressure of Master equipment, and improve Business Processing efficient.
Description of drawings
Fig. 1 is the networking schematic diagram of IRF network of the prior art;
Fig. 2 is the maintaining method schematic flow sheet of a kind of bgp neighbor of providing of the embodiment of the invention;
Fig. 3 is the structural representation of a kind of Slave equipment of providing of the embodiment of the invention;
Fig. 4 is the structural representation of a kind of Master equipment of providing of the embodiment of the invention.
Embodiment
For problems of the prior art, the embodiment of the invention provides a kind of maintaining method of bgp neighbor, the method is applied to comprise in the IRF network of Master equipment and Slave equipment, and move BGP in the IRF network, application scenarios schematic diagram take Fig. 1 as the embodiment of the invention, the member devices such as RTA, RTB, RTC, RTD form the IRF network, RTA is Master equipment, RTB, RTC, RTD are Slave equipment, RTE, RTG, RTF, RTH carry out networking with the interface board at RTA, RTB, RTC, RTD place respectively and dock, and the configuration bgp neighbor; As shown in Figure 2, the method may further comprise the steps:
Step 201, Master equipment send the information that starts the BGP agent process to each Slave equipment after starting the BGP agent process.
In the embodiment of the invention, when behind Master equipment configuration BGP agent functionality, this Master equipment can be enabled the BGP agent process, and sends the information that starts the BGP agent process to each Slave equipment by this BGP agent process.In the specific implementation process, can be by the command line switch control mode at Master equipment configuration BGP agent functionality, as under the BGP view, enabling bgp-agent enable(BGP agent functionality by order line) so that configuration BGP agent functionality on the Master equipment.
Step 202, Slave equipment is after the information of the startup BGP agent process of receiving Master equipment notice, the CPU(Central Processing Unit that this equipment of utilization is current, CPU) information and/or memory usage information determine whether this equipment starts the BGP agent process.
Wherein, when cpu resource and/or memory source can support that Slave equipment carries out subsequent treatment, then Slave equipment determined that this equipment can start the BGP agent process.
Concrete, the current CPU information of this equipment of Slave equipment utilization determines whether this equipment starts the BGP agent process and comprise: when the current cpu busy percentage of this equipment is lower than preset first threshold value, determine that then this equipment can start the BGP agent process, otherwise determine that this equipment cannot start the BGP agent process.
The current memory usage information of this equipment of Slave equipment utilization determines whether this equipment starts the BGP agent process and comprise: when the current memory usage of this equipment is lower than default Second Threshold, determine that then this equipment can start the BGP agent process, otherwise determine that this equipment cannot start the BGP agent process.
The CPU information that this equipment of Slave equipment utilization is current and/or memory usage information determine whether this equipment starts the BGP agent process and comprise: when the current cpu busy percentage of this equipment is lower than default the 3rd threshold value, and when the current memory usage of this equipment is lower than default the 4th threshold value, determine that then this equipment can start the BGP agent process, otherwise determine that this equipment cannot start the BGP agent process.
Step 203, Slave equipment start the BGP agent process when definite this device start BGP agent process, send this equipment to Master equipment and started the information of BGP agent process and the identification information of this equipment; When definite this equipment does not start the BGP agent process, do not start the BGP agent process, send this equipment to Master equipment and do not start the information of BGP agent process and the identification information of this equipment.
In the embodiment of the invention, when Slave equipment does not start the BGP agent process at definite this equipment, also can not send this equipment to Master equipment and not start the information of BGP agent process and the identification information of this equipment, and Master equipment can determine that this Slave equipment does not start the BGP agent process when not receiving the identification information of the information that does not start the BGP agent process that Slave equipment returns and Slave equipment.
Step 204, if Master equipment is received the information that starts the BGP agent process that Slave equipment returns and the identification information of Slave equipment, then determine this Slave device start BGP agent process, and do not need to determine the bgp neighbor for this Slave equipment to start the maintenance timer.
In addition, if Master equipment is received the information that does not start the BGP agent process that Slave equipment returns and the identification information of Slave equipment, determine that then this Slave equipment does not start the BGP agent process, and the Slave proxy for equipment bgp neighbor maintenance process of notifying the Slave equipment that starts the BGP agent process need to not start for other BGP agent process, and do not need to determine the bgp neighbor for this Slave equipment to start the maintenance timer; Further, Slave equipment is after starting the BGP agent process, if that can receive Master equipment notice need to be the information of other Slave proxy for equipment bgp neighbor maintenance process, then this Slave equipment need to be other Slave proxy for equipment bgp neighbor maintenance process.
In the embodiment of the invention, Master equipment is after sending the information that starts the BGP agent process to Slave equipment, start the BGP agent process and start affirmation timer (time-out time is defaulted as 60 seconds), behind this timer expiry, if Master equipment is not received the echo message (started the information of BGP agent process or do not started the information of BGP agent process) of Slave equipment, determine that then this Slave equipment does not start the BGP agent process, and the Slave proxy for equipment bgp neighbor maintenance process of notifying the Slave equipment that starts the BGP agent process need to not start for other BGP agent process, and do not need to determine the bgp neighbor for this Slave equipment to start the maintenance timer; Further, Slave equipment is after starting the BGP agent process, if that receives Master equipment notice need to be the information of other Slave proxy for equipment bgp neighbor maintenance process, then this Slave equipment need to be other Slave proxy for equipment bgp neighbor maintenance process.
It should be noted that when Master equipment is not received the echo message of Slave equipment, can be by the definite identification information of not receiving the Slave equipment of echo message of identification information of the identification information of all Slave equipment and the Slave equipment of receiving echo message; For example, record the identification information of four Slave equipment on the Master equipment, identification information is respectively sign 1, sign 2, sign 3 and identifies 4; If receive the echo message that carries sign 1 and sign 2, then Master equipment can determine that the identification information of the Slave equipment of echo message is not sign 3 and sign 4.
Based on above-mentioned layoutprocedure, Slave equipment need to be safeguarded the bgp neighbor state of this equipment after starting the BGP agent process, and is the bgp neighbor startup maintenance timer (being the holdtime timer) of this equipment; And Master equipment does not need to start the maintenance timer for the bgp neighbor of this Slave equipment when safeguarding the bgp neighbor state of this Slave equipment; Wherein, before keeping timer expired, between this Slave equipment and its bgp neighbor maintenance there is neighborhood; After keeping timer expired, the neighborhood between this Slave equipment and its bgp neighbor will disconnect.
Further, Slave equipment is before the maintenance timer expired that the bgp neighbor that is this equipment starts, and the method can also may further comprise the steps:
Step 205, the Slave equipment periodic sends the keepalive message to bgp neighbor; And, if Slave equipment is received the keepalive message from bgp neighbor, then upgrade maintenance timer (namely to keeping the timer reclocking); And/or, if Slave equipment is received the update message from bgp neighbor, then upgrade the maintenance timer, and the update message is sent to Master equipment.
Concrete, the interface board of Slave equipment is processed the keepalive message up sending behind the keepalive message of receiving from bgp neighbor to the master control borad of this equipment, by the master control borad renewal maintenance timer of this equipment; The interface board of Slave equipment is behind the update message of receiving from bgp neighbor, master control borad by this equipment upgrades the maintenance timer, but this update message of dissection process not, according to existing procedure this update message being passed through Master equipment by stacking link processes, Master equipment is processed this update message according to existing procedure after receiving this update message.
In addition, except keepalive message and update message, other protocol massages (such as open message, notification message, route refresh message etc.) for BGP, Slave equipment and Master equipment need to be processed according to existing procedure, and concrete processing mode does not repeat them here.
In the embodiment of the invention, Slave equipment is after the maintenance timer expired that the bgp neighbor that is this equipment starts, Slave equipment can determine that the neighborhood between this equipment and its bgp neighbor disconnects, and notifies the equipment to Master with the information that the neighborhood between this equipment and its bgp neighbor disconnects; Further, Master equipment can carry out subsequent treatment according to existing procedure after the information that the neighborhood of receiving between Slave equipment and its bgp neighbor disconnects, and this processing does not repeat them here.
In the embodiment of the invention, if Slave equipment does not start the BGP agent process, then after the keepalive message and/or update message received from the bgp neighbor of this equipment, keepalive message and/or update message are sent to the Slave equipment of acting on behalf of (for starting the Slave equipment of BGP agent process) of this equipment, act on behalf of Slave equipment by this and be this Slave proxy for equipment bgp neighbor maintenance process.
If Slave equipment (for starting the Slave equipment of BGP agent process) need to be other Slave proxy for equipment bgp neighbor maintenance process, then this Slave equipment starts and keeps timer as acting on behalf of the bgp neighbor of Slave equipment for the Slave equipment acted on behalf of; Before keeping timer expired, this Slave equipment periodic sends the keepalive message to the bgp neighbor of the Slave equipment that quilt is acted on behalf of; If this Slave equipment is received the keepalive message of the bgp neighbor of the Slave equipment of being acted on behalf of from quilt by the Slave equipment of being acted on behalf of, then upgrade corresponding maintenance timer; And/or, if this Slave equipment is received the update message of the bgp neighbor of the Slave equipment of being acted on behalf of from quilt by the Slave equipment of being acted on behalf of, then upgrade corresponding maintenance timer, and the update message is sent to Master equipment.
Based on the inventive concept same with said method, a kind of Border Gateway Protocol neighbours' service equipment also is provided in the embodiment of the invention, as be applied to comprise the intelligent elastic framework IRF network of main Master equipment and described Slave equipment from Slave equipment, as shown in Figure 3, described Slave equipment comprises:
Maintenance module 11 is used for after starting the Border Gateway Protocol (BGP) agent process, is the bgp neighbor startup maintenance timer of this equipment; Wherein, before described maintenance timer expired, between this equipment and the described bgp neighbor maintenance there is neighborhood;
Communication module 12 is used for periodically sending the keepalive message to described bgp neighbor before described maintenance timer expired; And, if receive keepalive message from described bgp neighbor, then upgrade described maintenance timer; And/or,
Before described maintenance timer expired, if receive update message from described bgp neighbor, then upgrade described maintenance timer.
Described communication module 12 also is used for after described maintenance timer expired, determines that the neighborhood between this equipment and the described bgp neighbor disconnects, and the information that the neighborhood between this equipment and the described bgp neighbor disconnects is notified to described Master equipment.
Described communication module 12, also be used for when this equipment does not start the BGP agent process, after the keepalive message and/or update message received from the bgp neighbor of this equipment, described keepalive message and/or update message are sent to the Slave equipment of acting on behalf of of this equipment, the described Slave of agency equipment has started the BGP agent process, and is used to this proxy for equipment bgp neighbor maintenance process; Perhaps,
After starting the BGP agent process, if need to be other Slave proxy for equipment bgp neighbor maintenance process, then start and keep timer as acting on behalf of the bgp neighbor of Slave equipment for the Slave equipment acted on behalf of; Before keeping timer expired, periodicity sends the keepalive message to the bgp neighbor of the Slave equipment that quilt is acted on behalf of; And, if receive the keepalive message of the bgp neighbor of the Slave equipment of being acted on behalf of from quilt by the Slave equipment of being acted on behalf of, then upgrade corresponding maintenance timer; And/or, if receive the update message of the bgp neighbor of the Slave equipment of being acted on behalf of from quilt by the Slave equipment of being acted on behalf of, then upgrade corresponding maintenance timer, described update message is sent to described Master equipment.
Described communication module 12 also is used for receiving the information of the startup BGP agent process of described Master equipment notice; The CPU information that this equipment of utilization is current and/or memory usage information determine whether this equipment starts the BGP agent process;
If so, then start the BGP agent process, and send this equipment to described Master equipment and started the information of BGP agent process and the identification information of this equipment;
If not, then do not start the BGP agent process, and send this equipment to described Master equipment and do not start the identification information of the information of BGP agent process and this equipment or do not send response message to described Master equipment; And after starting the BGP agent process, what receive described Master equipment notice need to be the information of other Slave proxy for equipment bgp neighbor maintenance process.
Wherein, the modules of apparatus of the present invention can be integrated in one, and also can separate deployment.Above-mentioned module can be merged into a module, also can further split into a plurality of submodules.
Based on the inventive concept same with said method, a kind of Border Gateway Protocol neighbours' maintaining method also is provided in the embodiment of the invention, be applied to comprise described Master equipment and from the intelligent elastic framework IRF network of Slave equipment as main Master equipment, as shown in Figure 4, described Master equipment comprises:
Sending module 21, be used for after starting the Border Gateway Protocol (BGP) agent process, send the information that starts the BGP agent process to Slave equipment, determine by CPU information and/or memory usage information that described this equipment of Slave equipment utilization is current whether this equipment starts the BGP agent process;
Processing module 22, be used for when receiving the identification information of the information that starts the BGP agent process that described Slave equipment returns and Slave equipment, determine described Slave device start BGP agent process, and do not need to determine the bgp neighbor for described Slave equipment to start the maintenance timer;
When receiving the information that does not start the BGP agent process that described Slave equipment returns and the identification information of Slave equipment, when perhaps in Preset Time, not receiving the response message of described Slave equipment, determine that described Slave equipment does not start the BGP agent process, and the Slave proxy for equipment bgp neighbor maintenance process of notifying the Slave equipment that starts the BGP agent process need to not start for other BGP agent process, and do not need to determine the bgp neighbor for described Slave equipment to start the maintenance timer.
Wherein, the modules of apparatus of the present invention can be integrated in one, and also can separate deployment.Above-mentioned module can be merged into a module, also can further split into a plurality of submodules.
Through the above description of the embodiments, those skilled in the art can be well understood to the present invention and can realize by the mode that software adds essential general hardware platform, can certainly pass through hardware, but the former is better execution mode in a lot of situation.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words can embody with the form of software product, this computer software product is stored in the storage medium, comprise that some instructions are with so that a computer equipment (can be personal computer, server, the perhaps network equipment etc.) carry out the described method of each embodiment of the present invention.
It will be appreciated by those skilled in the art that accompanying drawing is the schematic diagram of a preferred embodiment, the module in the accompanying drawing or flow process might not be that enforcement the present invention is necessary.
It will be appreciated by those skilled in the art that the module in the device among the embodiment can be distributed in the device of embodiment according to the embodiment description, also can carry out respective change and be arranged in the one or more devices that are different from the present embodiment.The module of above-described embodiment can be merged into a module, also can further split into a plurality of submodules.
The invention described above embodiment sequence number does not represent the quality of embodiment just to description.
Above disclosed only be several specific embodiment of the present invention, still, the present invention is not limited thereto, the changes that any person skilled in the art can think of all should fall into protection scope of the present invention.

Claims (10)

1. A kind of Border Gateway Protocol neighbours' maintaining method is applied to comprise main Master equipment and from the intelligent elastic framework IRF network of Slave equipment, it is characterized in that, the method may further comprise the steps:
Described Slave equipment is the bgp neighbor startup maintenance timer of this equipment after starting the Border Gateway Protocol (BGP) agent process; Wherein, before described maintenance timer expired, between described Slave equipment and the described bgp neighbor maintenance there is neighborhood;
Before described maintenance timer expired, described Slave equipment periodic sends the keepalive message to described bgp neighbor; And, if described Slave equipment is received the keepalive message from described bgp neighbor, the described maintenance timer of described Slave renewal of the equipment then; And/or,
Before described maintenance timer expired, if described Slave equipment is received the update message from described bgp neighbor, the described maintenance timer of described Slave renewal of the equipment then.
2. The method of claim 1 is characterized in that, the bgp neighbor that described Slave equipment is this equipment starts the maintenance timer, also comprises afterwards:
After described maintenance timer expired, described Slave equipment determines that the neighborhood between this equipment and the described bgp neighbor disconnects, and the information that the neighborhood between this equipment and the described bgp neighbor disconnects is notified to described Master equipment.
3. The method of claim 1 is characterized in that, described method further comprises:
If described Slave equipment does not start the BGP agent process, then after the keepalive message and/or update message received from the bgp neighbor of this equipment, described keepalive message and/or update message are sent to the Slave equipment of acting on behalf of of this equipment, the described Slave equipment of acting on behalf of is the Slave equipment of startup BGP agent process, and is used to described Slave proxy for equipment bgp neighbor maintenance process; Perhaps,
Described Slave equipment is after starting the BGP agent process, if need to be other Slave proxy for equipment bgp neighbor maintenance process, then this Slave equipment starts and keeps timer as acting on behalf of the bgp neighbor of Slave equipment for the Slave equipment acted on behalf of; Before keeping timer expired, this Slave equipment periodic sends the keepalive message to the bgp neighbor of the Slave equipment that quilt is acted on behalf of; And, if this Slave equipment is received the keepalive message of the bgp neighbor of the Slave equipment of being acted on behalf of from this by the Slave equipment of being acted on behalf of, then upgrade corresponding maintenance timer; And/or, if this Slave equipment is received the update message of the bgp neighbor of the Slave equipment of being acted on behalf of from this by the Slave equipment of being acted on behalf of, then upgrade corresponding maintenance timer, and described update message is sent to described Master equipment.
4. Such as claim 1 or 3 described methods, it is characterized in that, described method further comprises:
Described Slave equipment receives the information of the startup BGP agent process of described Master equipment notice;
Described Slave equipment utilizes the current CPU information of this equipment and/or memory usage information to determine whether this equipment starts the BGP agent process after receiving the information that starts the BGP agent process;
If so, described Slave device start BGP agent process then, and send this equipment to described Master equipment and started the information of BGP agent process and the identification information of this equipment;
If not, then described Slave equipment does not start the BGP agent process, and sends this equipment to described Master equipment and do not start the information of BGP agent process and the identification information of this equipment, does not perhaps send response message to described Master equipment;
Described Slave equipment is after starting the BGP agent process, and what receive described Master equipment notice need to be the information of other Slave proxy for equipment bgp neighbor maintenance process.
5. A kind of Border Gateway Protocol neighbours' maintaining method is applied to comprise main Master equipment and from the intelligent elastic framework IRF network of Slave equipment, it is characterized in that, the method may further comprise the steps:
Described Master equipment is after starting the Border Gateway Protocol (BGP) agent process, send the information that starts the BGP agent process to Slave equipment, determine by CPU information and/or memory usage information that described this equipment of Slave equipment utilization is current whether this equipment starts the BGP agent process;
When described Master equipment receives the identification information of the information that starts the BGP agent process that described Slave equipment returns and Slave equipment, determine described Slave device start BGP agent process, and do not need to determine the bgp neighbor for described Slave equipment to start the maintenance timer;
When described Master equipment receives the information that does not start the BGP agent process that described Slave equipment returns and the identification information of Slave equipment, when perhaps described Master equipment does not receive the response message of described Slave equipment in Preset Time, determine that described Slave equipment does not start the BGP agent process, and the Slave proxy for equipment bgp neighbor maintenance process of notifying the Slave equipment that starts the BGP agent process need to not start for other BGP agent process, and do not need to determine the bgp neighbor for described Slave equipment to start the maintenance timer.
6. A kind of Border Gateway Protocol neighbours' service equipment comprises the intelligent elastic framework IRF network of main Master equipment and described Slave equipment as being applied to from Slave equipment, and it is characterized in that, described Slave equipment comprises:
Maintenance module is used for after starting the Border Gateway Protocol (BGP) agent process, is the bgp neighbor startup maintenance timer of this equipment; Wherein, before described maintenance timer expired, between this equipment and the described bgp neighbor maintenance there is neighborhood;
Communication module is used for periodically sending the keepalive message to described bgp neighbor before described maintenance timer expired; And, if receive keepalive message from described bgp neighbor, then upgrade described maintenance timer; And/or,
Before described maintenance timer expired, if receive update message from described bgp neighbor, then upgrade described maintenance timer.
7. Equipment as claimed in claim 6 is characterized in that,
Described communication module also is used for after described maintenance timer expired, determines that the neighborhood between this equipment and the described bgp neighbor disconnects, and the information that the neighborhood between this equipment and the described bgp neighbor disconnects is notified to described Master equipment.
8. Equipment as claimed in claim 6 is characterized in that,
Described communication module, also be used for when this equipment does not start the BGP agent process, after the keepalive message and/or update message received from the bgp neighbor of this equipment, described keepalive message and/or update message are sent to the Slave equipment of acting on behalf of of this equipment, the described Slave of agency equipment has started the BGP agent process, and is used to this proxy for equipment bgp neighbor maintenance process; Perhaps,
After starting the BGP agent process, if need to be other Slave proxy for equipment bgp neighbor maintenance process, then start and keep timer as acting on behalf of the bgp neighbor of Slave equipment for the Slave equipment acted on behalf of; Before keeping timer expired, periodicity sends the keepalive message to the bgp neighbor of the Slave equipment that quilt is acted on behalf of; And, if receive the keepalive message of the bgp neighbor of the Slave equipment of being acted on behalf of from quilt by the Slave equipment of being acted on behalf of, then upgrade corresponding maintenance timer; And/or, if receive the update message of the bgp neighbor of the Slave equipment of being acted on behalf of from quilt by the Slave equipment of being acted on behalf of, then upgrade corresponding maintenance timer, described update message is sent to described Master equipment.
9. Such as claim 6 or 8 described equipment, it is characterized in that,
Described communication module also is used for receiving the information of the startup BGP agent process of described Master equipment notice; The CPU information that this equipment of utilization is current and/or memory usage information determine whether this equipment starts the BGP agent process;
If so, then start the BGP agent process, and send this equipment to described Master equipment and started the information of BGP agent process and the identification information of this equipment;
If not, then do not start the BGP agent process, and send this equipment to described Master equipment and do not start the identification information of the information of BGP agent process and this equipment or do not send response message to described Master equipment; And after starting the BGP agent process, what receive described Master equipment notice need to be the information of other Slave proxy for equipment bgp neighbor maintenance process.
10. A kind of Border Gateway Protocol neighbours' service equipment is applied to comprise described Master equipment and from the intelligent elastic framework IRF network of Slave equipment, it is characterized in that as main Master equipment, and described Master equipment comprises:
Sending module, be used for after starting the Border Gateway Protocol (BGP) agent process, send the information that starts the BGP agent process to Slave equipment, determine by CPU information and/or memory usage information that described this equipment of Slave equipment utilization is current whether this equipment starts the BGP agent process;
Processing module, be used for when receiving the identification information of the information that starts the BGP agent process that described Slave equipment returns and Slave equipment, determine described Slave device start BGP agent process, and do not need to determine the bgp neighbor for described Slave equipment to start the maintenance timer;
When receiving the information that does not start the BGP agent process that described Slave equipment returns and the identification information of Slave equipment, when perhaps in Preset Time, not receiving the response message of described Slave equipment, determine that described Slave equipment does not start the BGP agent process, and the Slave proxy for equipment bgp neighbor maintenance process of notifying the Slave equipment that starts the BGP agent process need to not start for other BGP agent process, and do not need to determine the bgp neighbor for described Slave equipment to start the maintenance timer.
CN201210493659.6A 2012-11-28 2012-11-28 A kind of maintaining method of neighborhood of border gate protocol and equipment Active CN102957623B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210493659.6A CN102957623B (en) 2012-11-28 2012-11-28 A kind of maintaining method of neighborhood of border gate protocol and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210493659.6A CN102957623B (en) 2012-11-28 2012-11-28 A kind of maintaining method of neighborhood of border gate protocol and equipment

Publications (2)

Publication Number Publication Date
CN102957623A true CN102957623A (en) 2013-03-06
CN102957623B CN102957623B (en) 2015-11-25

Family

ID=47765871

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210493659.6A Active CN102957623B (en) 2012-11-28 2012-11-28 A kind of maintaining method of neighborhood of border gate protocol and equipment

Country Status (1)

Country Link
CN (1) CN102957623B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104468368A (en) * 2014-11-10 2015-03-25 杭州华三通信技术有限公司 Method and device for allocating BGP neighbors
CN105591951A (en) * 2015-10-15 2016-05-18 杭州华三通信技术有限公司 BGP message processing method and device of stack system
WO2017000464A1 (en) * 2015-06-30 2017-01-05 中兴通讯股份有限公司 Method and apparatus for sending keepalive message
CN106603402A (en) * 2016-12-20 2017-04-26 北京华为数字技术有限公司 Broadband remote access server service delivery method and device
WO2018108121A1 (en) * 2016-12-16 2018-06-21 新华三技术有限公司 Establishment of device stacks
CN110572386A (en) * 2019-09-03 2019-12-13 赛尔网络有限公司 Ranking statistic monitoring method and device
CN111988191A (en) * 2019-05-22 2020-11-24 北京华为数字技术有限公司 Fault detection method and device for distributed communication network
CN113949623A (en) * 2021-10-18 2022-01-18 迈普通信技术股份有限公司 MLAG double-master abnormity repairing method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6704795B1 (en) * 1999-10-12 2004-03-09 Cisco Technology, Inc. Technique for reducing consumption of router resources after BGP restart
CN1976313A (en) * 2006-09-19 2007-06-06 中国人民解放军国防科学技术大学 High performance router routing protocol distribution parallel realizing method
CN101304379A (en) * 2008-06-30 2008-11-12 杭州华三通信技术有限公司 Method and apparatus for deciding BGP route
CN102761482A (en) * 2012-06-29 2012-10-31 杭州华三通信技术有限公司 Method for building BGP (border gateway protocol) neighbor and equipment therefore

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6704795B1 (en) * 1999-10-12 2004-03-09 Cisco Technology, Inc. Technique for reducing consumption of router resources after BGP restart
CN1976313A (en) * 2006-09-19 2007-06-06 中国人民解放军国防科学技术大学 High performance router routing protocol distribution parallel realizing method
CN101304379A (en) * 2008-06-30 2008-11-12 杭州华三通信技术有限公司 Method and apparatus for deciding BGP route
CN102761482A (en) * 2012-06-29 2012-10-31 杭州华三通信技术有限公司 Method for building BGP (border gateway protocol) neighbor and equipment therefore

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
K.LOUGHEED等: "A Border Gateway Protocol(BGP)", 《RFC1105》 *
Y.REKHTER,ED等: ""A Border Gateway Protocol 4(BGP-4)"", 《RFC4271》 *

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104468368A (en) * 2014-11-10 2015-03-25 杭州华三通信技术有限公司 Method and device for allocating BGP neighbors
CN104468368B (en) * 2014-11-10 2018-09-04 新华三技术有限公司 Configure the method and device of bgp neighbor
WO2017000464A1 (en) * 2015-06-30 2017-01-05 中兴通讯股份有限公司 Method and apparatus for sending keepalive message
CN105591951B (en) * 2015-10-15 2018-11-09 新华三技术有限公司 The BGP message processing methods and device of pile system
CN105591951A (en) * 2015-10-15 2016-05-18 杭州华三通信技术有限公司 BGP message processing method and device of stack system
WO2018108121A1 (en) * 2016-12-16 2018-06-21 新华三技术有限公司 Establishment of device stacks
CN108206786A (en) * 2016-12-16 2018-06-26 新华三技术有限公司 Equipment stacking method for building up and device
CN106603402A (en) * 2016-12-20 2017-04-26 北京华为数字技术有限公司 Broadband remote access server service delivery method and device
CN106603402B (en) * 2016-12-20 2019-10-18 北京华为数字技术有限公司 A kind of Broadband Remote Access Server sending down service method and device
CN111988191A (en) * 2019-05-22 2020-11-24 北京华为数字技术有限公司 Fault detection method and device for distributed communication network
CN111988191B (en) * 2019-05-22 2022-03-29 北京华为数字技术有限公司 Fault detection method and device for distributed communication network
CN110572386A (en) * 2019-09-03 2019-12-13 赛尔网络有限公司 Ranking statistic monitoring method and device
CN113949623A (en) * 2021-10-18 2022-01-18 迈普通信技术股份有限公司 MLAG double-master abnormity repairing method and device, electronic equipment and storage medium
CN113949623B (en) * 2021-10-18 2024-04-26 迈普通信技术股份有限公司 MLAG double-master exception repairing method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN102957623B (en) 2015-11-25

Similar Documents

Publication Publication Date Title
CN102957623A (en) Maintenance method and equipment of neighborhood of border gate protocol
CN102185718B (en) System upgrading method and device
CN102025562A (en) Path detection method and device
CN110618864A (en) Interrupt task recovery method and device
CN111385107A (en) Main/standby switching processing method and device for server
CN103200109A (en) Method and device for OSPF neighboring node management
CN109802995A (en) Information push method, device, equipment and storage medium
CN103812697B (en) The strange disaster recovery method and system of a kind of distributed communication network
CN103001787A (en) System and method for disaster recovery backup of data processing center
CN111614702B (en) Edge calculation method and edge calculation system
CN106169982B (en) Method, device and system for processing expansion port
CN106534758B (en) Conference backup method and device
JP2016066303A (en) Server device, redundant configuration server system, information taking-over program and information taking-over method
CN107431634B (en) Method, device and system for establishing interface between VNFM
CN110958151B (en) Keep-alive detection method, keep-alive detection device, node, storage medium and communication system
CN102983997A (en) Method and device for migrating master services
CN105072185A (en) TR069 (Technical Report 069) remote monitoring method and system, and communication equipment
CN112822039B (en) Main and standby mode switching method for dual-machine hot standby system
CN105871524B (en) A kind of method and system based on TIPC protocol realization two-node cluster hot backup
JP6856574B2 (en) Service continuation system and service continuation method
CN102790814B (en) A kind of Media Access Control Address defining method, relevant apparatus and system
CN110890989A (en) Channel connection method and device
CN116367204B (en) User equipment service processing method, electronic equipment, storage medium and system
CN105763640B (en) A kind of virtual machine managing and control system under cloud computing environment
CN110435722A (en) A kind of implementation of load balancing of the trans-regional data exchange of track traffic synthetic monitoring system

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
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Patentee after: Xinhua three Technology Co., Ltd.

Address before: 310053 Hangzhou hi tech Industrial Development Zone, Zhejiang province science and Technology Industrial Park, No. 310 and No. six road, HUAWEI, Hangzhou production base

Patentee before: Huasan Communication Technology Co., Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220127

Address after: 100082 room 402, building 2, yard 1, Zhongguancun East Road, Haidian District, Beijing

Patentee after: Ziguang Hengyue Technology Co.,Ltd.

Address before: 310052 Changhe Road, Binjiang District, Hangzhou, Zhejiang Province, No. 466

Patentee before: NEW H3C TECHNOLOGIES Co.,Ltd.