CN110519076A - It is connect with bgp neighbor equipment and disconnects method, apparatus and interactive system - Google Patents
It is connect with bgp neighbor equipment and disconnects method, apparatus and interactive system Download PDFInfo
- Publication number
- CN110519076A CN110519076A CN201910679804.1A CN201910679804A CN110519076A CN 110519076 A CN110519076 A CN 110519076A CN 201910679804 A CN201910679804 A CN 201910679804A CN 110519076 A CN110519076 A CN 110519076A
- Authority
- CN
- China
- Prior art keywords
- bgp
- routing
- equipment
- neighbor equipment
- priority
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
- H04L41/0813—Configuration setting characterised by the conditions triggering a change of settings
- H04L41/082—Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/02—Topology update or discovery
- H04L45/04—Interdomain routing, e.g. hierarchical routing
Abstract
It is connect the present disclosure discloses one kind with bgp neighbor equipment and disconnects method, apparatus and interactive system, wherein, it includes: to send the first BGP routing to bgp neighbor equipment that disconnection method is connect with bgp neighbor equipment, the attribute information for adjusting BGP routing priority is carried in first BGP routing, attribute information is for notifying bgp neighbor device end preferably the first BGP to route;Feedback message is received, feedback message is used to characterize bgp neighbor equipment and completes to terminate the feedback information of preferably the first BGP routing;The connection with bgp neighbor equipment is disconnected according to feedback message.Preferably terminate feedback mechanism by bgp neighbor equipment, the time that all bgp neighbor equipment are disconnected when network upgrade maintenance can be more accurately controlled, it is influenced caused by the reduction artificial setting time is improper, when carrying out network upgrade to BGP equipment, accurate control disconnection opportunity;And by carrying routing property, the priority for carrying attribute BGP routing can be reduced, can be not preferred, simplifies the configuration for reducing routing priority, flexibly and easily.
Description
Technical field
This disclosure relates to field of communication technology, and in particular to one kind is connect with bgp neighbor equipment disconnects method, apparatus and friendship
Mutual system.
Background technique
BGP (Border Gateway Protocol, Border Gateway Protocol) is responsible for this autonomous area and external autonomous area
Between route up to information exchange, and BGP pass through in routing iinformation increase AS (Autonomous System, autonomy system
System) to construct the topological diagram of autonomous area to eliminate route loop, and the plan of user configuration can be implemented in the attribute in path
Slightly.
When network upgrade is safeguarded, need temporarily to disconnect the bgp session with all bgp neighbor equipment, it can be by configuring life
Order is forbidden establishing bgp session with all bgp neighbor equipment.After network recovery, restored and all BGP by executing delete command
The bgp session of neighbor device.Network administrator in this way is in network upgrade maintenance process, without deleting and re-starting equity
Body/peer group relevant configuration, reduces the workload of network operation.It can be waited at present by order setting bgp neighbor disconnected
Routing property, such as group attribute, local-preferenc, med also can be set in the time opened, to control BGP routing
It is preferred that and priority.Assuming that the time to be broken such as setting bgp neighbor is after 60 seconds, i.e., 60 seconds, all neighbours can be disconnected.So
And bgp neighbor is set and waits turn-off time, experience is needed, setting is too long, influences network upgrade opportunity;If time mistake is arranged
Short, then when neighbor router routing is preferably not finished, equipment, which is restarted, to be caused, flow interrupt, and disconnection opportunity is difficult to accurately control,
The upgrading of BGP device network makes to be difficult to flexibly accurately control.
Summary of the invention
In view of this, the embodiment of the present disclosure, which provides a kind of connect with bgp neighbor equipment, disconnects method, apparatus and interaction system
System, with solves the problems, such as in the prior art the upgrading of BGP device network make to be difficult to flexibly accurate control technology.
According in a first aspect, the embodiment of the present disclosure, which provides one kind, connect disconnection method with bgp neighbor equipment, to BGP neighbour
It occupies equipment and sends the first BGP routing, the attribute information for adjusting the first BGP routing priority is carried in the first BGP routing, is belonged to
Property information for notifying bgp neighbor equipment to set low the first BGP priority routed;Feedback message is received, feedback message is used for
Characterization bgp neighbor equipment completes the feedback information for setting low the first BGP priority routed;According to the disconnection of feedback message and BGP
The connection of neighbor device.
It optionally, include: to judge whether there is the first BGP routing pair before sending the first BGP routing to bgp neighbor equipment
The flow information answered;When routing corresponding flow information there are the first BGP, enters step to bgp neighbor equipment and send first
BGP routing.
Optionally, when routing corresponding flow information there is no the first BGP, the connection with bgp neighbor equipment is disconnected.
According to second aspect, the embodiment of the present disclosure provides one kind and connect disconnection method with bgp neighbor equipment, comprising: connects
The first BGP routing is received, the attribute information for adjusting the first BGP routing priority is carried in the first BGP routing;According to attribute
Information sets low the first BGP priority routed;Feedback message is sent, feedback message is completed to route the first BGP for characterizing
The feedback information that sets low of priority.
Optionally, disconnection method is connect with bgp neighbor equipment, further includes: it is routed according to attribute information preferably the 2nd BGP,
2nd BGP routing is one of other BGP routing in bgp neighbor equipment except the first via in addition to.
Optionally, set low the first BGP priority routed according to attribute information includes: to reduce by first according to attribute information
BGP routes the priority of corresponding forwarding table;It include: preferred according to attribute information according to attribute information preferably the 2nd BGP routing
2nd BGP routes corresponding forwarding table.
According to the third aspect, the embodiment of the present disclosure provides a kind of BGP device network upgrade method, comprising:
It is disconnected and bgp neighbor equipment using the disconnection method that connect with bgp neighbor equipment of above-mentioned first aspect any one
Connection;Network upgrade is carried out to BGP equipment.
According to fourth aspect, the embodiment of the present disclosure provides a kind of connect with bgp neighbor equipment and disconnects device, comprising: the
One transmission unit carries in the first BGP routing for adjusting the first BGP for sending the first BGP routing to bgp neighbor equipment
The attribute information of routing priority, attribute information is for notifying bgp neighbor equipment to set low the first BGP priority routed;The
One receiving unit, for receive feedback message, feedback message for characterize bgp neighbor equipment completion the first BGP is routed it is excellent
The feedback information that first grade is set low;Switching units, for disconnecting the connection with bgp neighbor equipment according to feedback message.
According to the 5th aspect, the embodiment of the present disclosure provides a kind of connect with bgp neighbor equipment and disconnects device, comprising: the
Two receiving units carry in the first BGP routing for adjusting the first BGP routing priority for receiving the first BGP routing
Attribute information;Preferred cell, for being set low the first BGP priority routed according to attribute information;Second transmission unit, is used for
Feedback message is sent, feedback message is used to characterize the feedback information for completing to set low the first BGP priority routed.
According to the 6th aspect, the embodiment of the present disclosure provides a kind of electronic equipment, comprising: memory and processor, storage
Connection is communicated with each other between device and processor, and computer instruction is stored in memory, processor passes through computer instructions,
Disconnection method or claim or above-mentioned second party are connect with bgp neighbor equipment thereby executing above-mentioned first aspect any one
The BGP device network upgrade method that disconnection method or the above-mentioned third aspect are connect with bgp neighbor equipment of face any one.
According to the 7th aspect, the embodiment of the present disclosure provides a kind of interactive system, comprising: above-mentioned fourth aspect and above-mentioned the
Connecting with bgp neighbor equipment for five aspects disconnects device.
The disclosure has the following beneficial effects:
By sending preferably other BGP routing of BGP routing notice bgp neighbor equipment, and it is anti-receiving bgp neighbor equipment
After the feedback information of the preferably other BGP routings of the completion of feedback, the connection with bgp neighbor equipment is disconnected, it will by bgp neighbor equipment
The priority of first BGP routing is set low, so that bgp neighbor equipment can terminate the first BGP routing, more can accurately be controlled
Network upgrade processed disconnects the time of all bgp neighbor equipment when safeguarding, the reduction artificial setting time is improper, and the time was arranged
It is short, when the preferred BGP routing of bgp neighbor equipment being caused to be not finished, the case where equipment is restarted, flow interrupt, time setting up procedure shadow
Upgrade process is rung, it is accurate to control disconnection opportunity when carrying out network upgrade to BGP equipment;It, can additionally by routing property is carried
The priority for carrying attribute BGP routing is reduced, can be not preferred, simplifies the configuration for reducing routing priority, flexibly and easily.
Detailed description of the invention
It, below will be to specific in order to illustrate more clearly of disclosure specific embodiment or technical solution in the prior art
Embodiment or attached drawing needed to be used in the description of the prior art be briefly described, it should be apparent that, it is described below
Attached drawing is some embodiments of the disclosure, for those of ordinary skill in the art, before not making the creative labor
It puts, is also possible to obtain other drawings based on these drawings.
Fig. 1 shows BGP device network networking relation schematic diagram;
Fig. 2 shows the flow charts that disconnection method is connect with bgp neighbor equipment of the embodiment of the present disclosure;
Fig. 3 shows another flow chart that disconnection method is connect with bgp neighbor equipment of the embodiment of the present disclosure;
Another and bgp neighbor equipment that Fig. 4 shows the embodiment of the present disclosure, which is connect, disconnects method schematic diagram
Fig. 5 shows the flow chart of the BGP device network upgrade method of the embodiment of the present disclosure;
Fig. 6 shows the schematic diagram that disconnection device is connect with bgp neighbor equipment of the embodiment of the present disclosure;
Fig. 7 shows the schematic diagram that disconnection device is connect with bgp neighbor equipment of the embodiment of the present disclosure;
Fig. 8 shows connecting with bgp neighbor equipment for the embodiment of the present disclosure and disconnects interaction flow schematic diagram;
Fig. 9 shows the hardware structural diagram of the electronic equipment of embodiment of the present disclosure offer.
Specific embodiment
To keep the purposes, technical schemes and advantages of the embodiment of the present disclosure clearer, below in conjunction with the embodiment of the present disclosure
In attached drawing, the technical solution in the embodiment of the present disclosure is clearly and completely described, it is clear that described embodiment is
Disclosure a part of the embodiment, instead of all the embodiments.Based on the embodiment in the disclosure, those skilled in the art are not having
Every other embodiment obtained under the premise of creative work is made, the range of disclosure protection is belonged to.
It may refer to Fig. 1, introduce BGP device network networking relationship in conjunction with Fig. 1, as shown in Figure 1, equipment C and equipment A, setting
It is standby to establish bgp neighbor relationship between B, equipment E, i.e. equipment A, equipment B, the bgp neighbor equipment that equipment E is equipment C, equipment D with
Bgp neighbor relationship is established between equipment A, equipment E, i.e. equipment A, equipment E are the bgp neighbor equipment of equipment D.Routing 1 is by equipment A
It sends, equipment E is sent to through dotted arrow by bgp neighbor equipment;Routing 2 is sent by equipment E, is passed through by bgp neighbor equipment
Solid arrow is sent to equipment A.In the present embodiment, equipment A- equipment C- equipment E is that flow forwards main path, and routing 2 is being set
Standby A is upper preferably and to issue forwarding table, outgoing interface for equipment A and equipment C interface;Routing 1 preferably and issues forwarding on equipment E
Table, outgoing interface are the interface of equipment E and equipment C.
If you need to carry out network upgrade to equipment C, the connection of off device C and neighbor device, existing skill are needed in upgrading
In art, usually by times to be broken such as instruction setting bgp neighbor equipment, the setting of turn-off time is waited to need rule of thumb
It is configured, if waiting time setting is too long, influences network upgrade opportunity;If setting is too short, the routing of bgp neighbor equipment is excellent
Choosing has not been completed, and causes equipment C to have BGP to route corresponding flow and passes through, directly disconnecting, which may cause equipment to be restarted, causes
Flow interrupt.Cause when upgrading to equipment C, disconnection opportunity is difficult to accurately control, and the upgrading of BGP device network makes to be difficult to
Flexibly accurately control.Therefore, it originally implements and provides one kind and with bgp neighbor equipment connect disconnection method, in the present embodiment,
Disconnection method is connect with bgp neighbor equipment can be adapted for the BGP equipment for needing network upgrade, as shown in Fig. 2, may include as
Lower step:
S11. the first BGP routing is sent to bgp neighbor equipment.In the present embodiment, the BGP equipment upgraded is being needed to issue
When bgp neighbor ON- and OFF- command, all bgp neighbor equipment are not disconnected immediately.Need the BGP preferably not upgraded in bgp neighbor equipment
The equipment and bgp neighbor equipment for needing to upgrade are disconnected again after the first BGP routing in equipment.Specifically, being sent out to bgp neighbor equipment
The attribute information for adjusting BGP routing priority is carried in the BGP routing sent, such as can be carried in BGP routing newly-increased
Attribute (soft_update) does not carry further preferably for notifying bgp neighbor equipment to set low the first BGP priority routed
There is the first BGP of the attribute information for adjusting BGP routing priority to route.In the present embodiment, alleged bgp neighbor disconnects life
Enabling can need the BGP equipment of network upgrade to disconnect the instruction connecting with bgp neighbor equipment for triggering, need according to the instruction
Disconnect the connection with bgp neighbor equipment.In the present embodiment, alleged preferably can be bgp neighbor equipment when flow forwards, excellent
First preferably it is forwarded by the preferred BGP routing of bgp neighbor equipment.
S12. feedback message is received.In the present embodiment, alleged feedback message can be complete for characterizing bgp neighbor equipment
The feedback information set low at the priority for routing the first BGP.In the present embodiment, it receives in bgp neighbor equipment with useful
After the attribute information BGP routing of adjustment BGP routing priority, the attribute information for adjusting BGP routing priority indicates BGP
The further preferably not current BGP routing of neighbor device.In the present embodiment, bgp neighbor equipment reduces the first road BGP according to attribute information
By the priority of corresponding forwarding table, the neighbor device can be made preferentially to instruct flow to forward using other forwarding tables in this way,
In this embodiment, in bgp neighbor equipment not further preferably after the first BGP routing, so that bgp neighbor equipment can preferably second
BGP routing, the 2nd BGP routing are one of other BGP routing in bgp neighbor equipment in addition to the first BGP routing.Preferred
After the completion, and forwarding table is issued, flow is instructed to forward.After bgp neighbor equipment preferably completes and issues forwarding table, to needing to rise
The BGP equipment of grade sends feedback message, such as can send the BGP update message of extension, carries preferred trailer field, with
Expression bgp neighbor equipment preferably completes and preferred route sending-down forwarding table.
S13. the connection with bgp neighbor equipment is disconnected according to feedback message.In the present embodiment, feedback message is being received
Afterwards, it is believed that need the BGP equipment of network upgrade there is no BGP to route corresponding flow and pass through, bgp neighbor can be disconnected and set
It is standby, after the feedback message for receiving all bgp neighbor equipment, all bgp neighbor equipment are disconnected immediately.
The first BGP priority routed is set low by sending the first BGP routing notice bgp neighbor equipment, and is being received
After the feedback information that the completion fed back to bgp neighbor equipment sets low the first BGP priority routed, disconnection is set with bgp neighbor
Standby connection is set low the first BGP priority routed by bgp neighbor equipment, so that bgp neighbor equipment can terminate
First BGP routing can more be accurately controlled the time for disconnecting all bgp neighbor equipment when network upgrade maintenance, reduce artificial
The setting time is improper, and time setting is too short, and when the preferred BGP routing of bgp neighbor equipment being caused to be not finished, equipment is restarted, flow
The case where interruption, time setting up procedure influence Upgrade process, when carrying out network upgrade to BGP equipment, when accurate control disconnects
Machine;Additionally by routing property is carried, the priority for carrying attribute BGP routing can be reduced, can be not preferred, simplifying reduces
The configuration of routing priority, flexibly and easily.
In order to which more accurate assurance disconnects the opportunity connecting with bgp neighbor equipment, in an alternate embodiment of the invention, such as Fig. 3
It is shown, it may also include the steps of: before step S11
S14. bgp neighbor equipment open command is enabled.
S15. it judges whether there is the first BGP and routes corresponding flow information.The BGP equipment for needing network upgrade to safeguard makes
When energy bgp neighbor equipment ON- and OFF- command, all bgp neighbor equipment are not disconnected immediately, whether is the BGP equipment first upgraded needed for detection
There is the first BGP to route corresponding flow to pass through, routes corresponding flow information if there is the first BGP.Then enter step S11.
When routing corresponding flow information there is no the first BGP, S16 is entered step.
S16. the connection with bgp neighbor equipment is disconnected.
In an alternate embodiment of the invention, it is also used to the first BGP routing quilt for adjusting the attribute information of BGP routing priority
The preferred priority of bgp neighbor equipment is adjusted to the priority lower than at least one of the 2nd BGP routing.In the present embodiment
In, the attribute information for adjusting BGP routing priority adjusts the first BGP routing, the priority of the first BGP routing reduced,
And lower than the priority of at least one of the 2nd BGP routing, bgp neighbor equipment is when preferred BGP is routed, according to all
The priority of BGP routing is selected, and after the priority for needing the first BGP of BGP equipment of network upgrade to route reduces, is needed
The first BGP routing of the BGP equipment of network upgrade is no longer preferred by bgp neighbor equipment, and bgp neighbor equipment is routed in the 2nd BGP
The middle highest BGP routing of preferred priority, and forwarding table is issued, instruct flow to forward.As another optional embodiment, it is used for
The attribute information of adjustment BGP routing priority also can indicate that bgp neighbor equipment when preferred to BGP routing, skipped and needs net
The first BGP routing of the BGP equipment of network upgrading needs the first BGP of the BGP equipment of network upgrade to route no longer preferred.
The embodiment of the present disclosure additionally provides one kind and connect disconnection method with bgp neighbor equipment, in the present embodiment, with BGP
Neighbor device connection disconnection method can be adapted for bgp neighbor equipment, as shown in figure 4, this method may include steps of:
S21. the first BGP routing is received.The attribute letter for adjusting BGP routing priority is carried in first BGP routing
Breath.
S22. the first BGP priority routed is set low according to attribute information.In the present embodiment, it is used for when receiving carrying
After the first BGP routing for adjusting the attribute information of BGP routing priority, in the attribute information for adjusting BGP routing priority
Instruction under, can by the first BGP route priority set low, do not carry the category for adjusting BGP routing priority further preferably
Property information the first BGP routing, for example, can be newly-increased attribute by junior's adjustment instruction, when receiving the BGP for carrying newly-increased attribute
After routing, the BGP routing priority for carrying newly-increased attribute is reduced, in preferred BGP routing, from all roads BGP received
In, the highest BGP routing of preferred priority, the first BGP routing priority due to carrying newly-increased attribute is reduced, excellent in progress
When selecting, the first BGP routing of newly-increased attribute is not carried further preferably, and it is preferred that the 2nd BGP is routed.
In the present embodiment, BGP equipment determines that the precedence information of each BGP routing specifically includes: BGP equipment obtains each
The attribute information of BGP routing can have priority (priority) attribute or not have in the attribute information of BGP routing
Priority routing property;Later, BGP equipment determines that the priority that there is the BGP of priority routing property to route is higher than not
The priority of BGP routing with priority routing property.In the present embodiment, the BGP equipment of network upgrade is needed to send
The first BGP routing, since it is carried without priority attribute information, and the 2nd BGP routing carry priority
Attribute information, when bgp neighbor equipment is preferred, preferably the 2nd BGP routing.
S23. feedback message is sent.Feedback message is used to characterize the feedback information for setting low the priority of the first BGP routing.
The 2nd BGP routing of other equipment and is issued forwarding table, flow is instructed to forward by after preferably.When preferably completing and issue forwarding
After table, to needing the BGP equipment of network upgrade to send the BGPupdate message of extension, preferred trailer field is carried, to indicate excellent
Choosing is completed and preferred route sending-down forwarding table.
By receiving the first BGP routing, the attribute information of the first BGP routing, the first BGP is routed excellent based on the received
First grade is set low, and can preferably need the 2nd BGP of the other equipment except the BGP equipment of network upgrade to route, and in preferred BGP
After the completion of routing, the feedback information for setting low the priority of the first BGP routing of feedback promotes the BGP for needing network upgrade to set
The standby connection disconnected with bgp neighbor equipment, is set low the first BGP priority routed by bgp neighbor equipment, so that
Bgp neighbor equipment can terminate the first BGP routing, disconnect all bgp neighbors when can more be accurately controlled network upgrade maintenance
The time of equipment, the reduction artificial setting time is improper, and time setting is too short, and the preferred BGP routing of bgp neighbor equipment is caused not tied
The case where Shu Shi, equipment are restarted, flow interrupt, time setting up procedure influence Upgrade process, carry out network upgrade to BGP equipment
When, it is accurate to control disconnection opportunity;Additionally by routing property is carried, the priority for carrying attribute BGP routing can be reduced, it can
To be not preferred, simplify the configuration for reducing routing priority, flexibly and easily.
The embodiment of the present disclosure provides a kind of BGP device network upgrade method, in the present embodiment, BGP device network liter
Grade method can be adapted for the BGP equipment for needing network upgrade, specifically, may include steps of referring to Fig. 5:
S31. the connection with bgp neighbor equipment is disconnected.In the present embodiment when disconnecting the connection of bgp neighbor equipment, use
The connection of disconnection method disconnection and bgp neighbor equipment is connect in above-described embodiment with bgp neighbor equipment.
S32. network upgrade is carried out to BGP equipment.
The embodiment of the present disclosure provides a kind of connect with bgp neighbor equipment and disconnects device, as shown in Figure 6, comprising: the first hair
Unit 11 is sent, for sending the first BGP routing to bgp neighbor equipment, is carried in the first BGP routing excellent for adjusting BGP routing
The attribute information of first grade, attribute information is for notifying bgp neighbor equipment to set low the first BGP priority routed;First receives
Unit 12, for receiving feedback message, feedback message is used to characterize bgp neighbor equipment and completes the priority for routing the first BGP
The feedback information set low;Switching units 13, for disconnecting the connection with bgp neighbor equipment according to feedback message.
The embodiment of the present disclosure provides a kind of connect with bgp neighbor equipment and disconnects device, as shown in fig. 7, comprises: second connects
Unit 21 is received, for receiving the first BGP routing, the attribute letter for adjusting BGP routing priority is carried in the first BGP routing
Breath;Preferred cell 22, for being set low the first BGP priority routed according to attribute information;Second transmission unit 23, for sending out
Feedback message is sent, feedback message is used to characterize the feedback information for completing to set low the first BGP priority routed.
The embodiment of the present disclosure additionally provides a kind of interactive system, including needing the BGP equipment of network upgrade and setting with BGP
The standby neighbor device for establishing bgp session, in the present embodiment, BGP device network networking relationship may refer to Fig. 1, in this implementation
It can be the BGP equipment for needing network upgrade with equipment C in example, be bgp neighbor with the equipment C other equipment for establishing bgp neighbor
It is illustrated for equipment, below with reference to signaling diagram shown in Fig. 8, is situated between in detail to the method for the equipment for needing network upgrade
It continues, before disconnecting bgp neighbor equipment and being upgraded, the equipment C and peripheral equipment for needing network upgrade to safeguard establish bgp neighbor
When, it needs newly-increased neighbours' routing preferably to terminate feedback capability, enables the BGP for receiving and parsing through extension with periphery bgp neighbor equipment
Update message.Whether detection device C, which has BGP to route corresponding flow, passes through.If it is logical to route corresponding flow without BGP
It crosses, then can disconnect all bgp neighbor equipment immediately;Pass through if there is BGP routes corresponding flow, then the BGP routing on equipment C
It is retransmitted once to opposite end neighbours, and carries newly-increased attribute (soft_update).
After bgp neighbor equipment receives the BGP routing for carrying newly-increased attribute, the BGP routing priority of newly-increased attribute is carried
It reduces, no longer preferred, the routing 2 as shown in figure 1 on equipment A from equipment C is no longer preferred, and most from the routing of equipment D 2
It is excellent, and forwarding table guidance forwarding is issued, flow forward-path becomes equipment A- equipment D- equipment E.
After equipment C is sent to neighbours again to be routed, the upper BGP routing of equipment A, equipment E, equipment B is understood again preferred, comes from
The routing of equipment C due to priority reduce, cause to be not preferred, and from other equipment BGP routing can by preferably and issue
Forwarding table instructs flow to forward.After bgp neighbor equipment preferably completes and issues forwarding table, extension is sent to equipment C equipment
BGP update message, carries preferred trailer field, to indicate that bgp neighbor equipment preferably completes and preferably route sending-down forwards
Table.After equipment C receives the extension BGP update message of all neighbours, all bgp neighbors are disconnected immediately, when bgp neighbor is all disconnected
After opening, start network software upgrading.
The embodiment of the present disclosure has provided a kind of electronic equipment, which can be located at the BGP equipment for needing to upgrade
And/or bgp neighbor equipment, it specifically may refer to Fig. 9, which may include processor 11 and memory 12, wherein
Processor 11 can be connected with memory 12 by bus or other modes, in Fig. 9 for being connected by bus.
Processor 11 can be central processing unit (Central Processing Unit, CPU).Processor 11 can be with
For other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit
(Application Specific Integrated Circuit, ASIC), field programmable gate array (Field-
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
The combination of the chips such as discrete hardware components or above-mentioned all kinds of chips.
Memory 12 is used as a kind of non-transient computer readable storage medium, can be used for storing non-transient software program, non-
Transient computer executable program and module, such as management, use or the construction method of the container mirror image in the embodiment of the present disclosure
Corresponding program instruction/module.Processor 11 by operation storage non-transient software program in memory 12, instruction with
And module, thereby executing the various function application and data processing of processor, i.e., in realization above method embodiment and BGP
Neighbor device connects disconnection method.
Memory 12 may include storing program area and storage data area, wherein storing program area can storage program area,
Application program required at least one function;It storage data area can the data etc. that are created of storage processor 11.In addition, storage
Device 12 may include high-speed random access memory, can also include non-transient memory, for example, at least a magnetic disk storage
Part, flush memory device or other non-transient solid-state memories.In some embodiments, it includes relative to place that memory 12 is optional
The remotely located memory of device 11 is managed, these remote memories can pass through network connection to processor 11.The reality of above-mentioned network
Example includes but is not limited to internet, intranet, local area network, mobile radio communication and combinations thereof.
One or more module stores in memory 12, when being executed by processor 11, executes the above method and implements
Disconnection method is connect with bgp neighbor equipment in example.
It is that can lead to it will be understood by those skilled in the art that realizing all or part of the process in above-described embodiment method
Computer program is crossed to instruct relevant hardware and complete, program can be stored in a computer-readable storage medium, the journey
Sequence is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, storage medium can for magnetic disk, CD, read-only deposit
Store up memory body (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), quick flashing
Memory (Flash Memory), hard disk (Hard Disk Drive, abbreviation: HDD) or solid state hard disk (Solid-State
Drive, SSD) etc.;Storage medium can also include the combination of the memory of mentioned kind.
Although being described in conjunction with the accompanying embodiment of the disclosure, those skilled in the art can not depart from the disclosure
Spirit and scope in the case where various modifications and variations can be made, such modifications and variations are each fallen within by appended claims institute
Within the scope of restriction.
Claims (11)
1. one kind connect disconnection method with bgp neighbor equipment characterized by comprising
The first BGP routing is sent to bgp neighbor equipment, is carried in the first BGP routing preferential for adjusting the first BGP routing
The attribute information of grade, the attribute information is for notifying the bgp neighbor equipment to set the first BGP priority routed
It is low;
Feedback message is received, the feedback message is used to characterize bgp neighbor equipment and completes the priority for routing the first BGP
The feedback information set low;
The connection with the bgp neighbor equipment is disconnected according to the feedback message.
2. connecting disconnection method with bgp neighbor equipment as described in claim 1, which is characterized in that described to bgp neighbor equipment
Include: before sending the first BGP routing
It judges whether there is the first BGP and routes corresponding flow information;
When routing corresponding flow information there are the first BGP, enters step to bgp neighbor equipment and send the first road BGP
By.
3. connecting disconnection method with bgp neighbor equipment as claimed in claim 2, which is characterized in that
When routing corresponding flow information there is no the first BGP, the connection with the bgp neighbor equipment is disconnected.
4. one kind connect disconnection method with bgp neighbor equipment characterized by comprising
The first BGP routing is received, the attribute letter for adjusting the first BGP routing priority is carried in the first BGP routing
Breath;
The first BGP priority routed is set low according to the attribute information;
Feedback message is sent, the feedback message is used to characterize the feedback for completing to set low the first BGP priority routed
Information.
5. connecting disconnection method with bgp neighbor equipment as claimed in claim 4, which is characterized in that further include:
It is routed according to the attribute information preferably the 2nd BGP, the 2nd BGP routing is in the bgp neighbor equipment except described
One of other BGP routing except first BGP routing.
6. connecting disconnection method with bgp neighbor equipment as claimed in claim 5, which is characterized in that described according to the attribute
Information sets low the first BGP priority routed
The priority that the first BGP routes corresponding forwarding table is reduced according to the attribute information;
It is described to include: according to the attribute information preferably the 2nd BGP routing
Corresponding forwarding table is routed according to preferably described 2nd BGP of the attribute information.
7. a kind of BGP device network upgrade method characterized by comprising
It is set using the disconnection of disconnection method is connect described in claim 1-3 any one with bgp neighbor equipment with the bgp neighbor
Standby connection;
Network upgrade is carried out to the BGP equipment.
8. one kind is connect with bgp neighbor equipment disconnects device characterized by comprising
First transmission unit carries in the first BGP routing for adjusting for sending the first BGP routing to bgp neighbor equipment
The attribute information of whole first BGP routing priority, the attribute information is for notifying the bgp neighbor equipment by described first
The priority of BGP routing is set low;
First receiving unit, for receiving feedback message, the feedback message is for characterizing the completion of bgp neighbor equipment for described the
The feedback information that the priority of one BGP routing is set low;
Switching units, for disconnecting the connection with the bgp neighbor equipment according to the feedback message.
9. one kind is connect with bgp neighbor equipment disconnects device characterized by comprising
Second receiving unit carries in the first BGP routing for adjusting the first road BGP for receiving the first BGP routing
By the attribute information of priority;
Preferred cell, for being set low the first BGP priority routed according to the attribute information;
Second transmission unit, is used to send feedback message, and the feedback message is used to characterize what completion routed the first BGP
The feedback information that priority is set low.
10. a kind of electronic equipment characterized by comprising memory and processor, between the memory and the processor
Connection is communicated with each other, computer instruction is stored in the memory, the processor, which passes through, executes the computer instruction, from
And perform claim requires to connect disconnection method or claim with bgp neighbor equipment described in 1-3 any one or 4-6 is any one
Disconnection method or BGP device network upgrade method as claimed in claim 7 are connect with bgp neighbor equipment described in.
11. a kind of interactive system characterized by comprising
Claim 8 and as claimed in claim 9 connect with bgp neighbor equipment disconnect device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910679804.1A CN110519076A (en) | 2019-07-25 | 2019-07-25 | It is connect with bgp neighbor equipment and disconnects method, apparatus and interactive system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910679804.1A CN110519076A (en) | 2019-07-25 | 2019-07-25 | It is connect with bgp neighbor equipment and disconnects method, apparatus and interactive system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110519076A true CN110519076A (en) | 2019-11-29 |
Family
ID=68624111
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910679804.1A Pending CN110519076A (en) | 2019-07-25 | 2019-07-25 | It is connect with bgp neighbor equipment and disconnects method, apparatus and interactive system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110519076A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113300950A (en) * | 2020-04-01 | 2021-08-24 | 阿里巴巴集团控股有限公司 | Data processing method and device, electronic equipment and computer readable medium |
CN113595893A (en) * | 2021-07-20 | 2021-11-02 | 锐捷网络股份有限公司 | Route receiving system, route receiving method, device, equipment and medium |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101155118A (en) * | 2006-09-27 | 2008-04-02 | 华为技术有限公司 | BGP routing processing method and device |
US20090213862A1 (en) * | 2008-02-27 | 2009-08-27 | Lixin Zhang | Method and system for migrating a peer in a distributed bgp system |
CN102187628A (en) * | 2011-04-29 | 2011-09-14 | 华为技术有限公司 | Route update method and router |
CN102447639A (en) * | 2012-01-17 | 2012-05-09 | 华为技术有限公司 | Strategy routing method and device |
CN102769570A (en) * | 2012-07-30 | 2012-11-07 | 杭州华三通信技术有限公司 | Route notification method and equipment |
US20130173823A1 (en) * | 2012-01-04 | 2013-07-04 | Alcatel-Lucent Canada Inc. | Diameter route learning |
CN103220228A (en) * | 2013-04-10 | 2013-07-24 | 杭州华三通信技术有限公司 | Method and equipment for sending border gateway protocol (BGP) routes |
CN104468367A (en) * | 2014-10-27 | 2015-03-25 | 国家电网公司 | Method for modifying region dispatch data network address |
CN107911250A (en) * | 2017-11-28 | 2018-04-13 | 新华三技术有限公司 | A kind of pile system and its method for preventing traffic loss |
CN109787894A (en) * | 2019-03-27 | 2019-05-21 | 新华三技术有限公司 | A kind of route control method and device |
-
2019
- 2019-07-25 CN CN201910679804.1A patent/CN110519076A/en active Pending
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101155118A (en) * | 2006-09-27 | 2008-04-02 | 华为技术有限公司 | BGP routing processing method and device |
US20090213862A1 (en) * | 2008-02-27 | 2009-08-27 | Lixin Zhang | Method and system for migrating a peer in a distributed bgp system |
CN102187628A (en) * | 2011-04-29 | 2011-09-14 | 华为技术有限公司 | Route update method and router |
US20130173823A1 (en) * | 2012-01-04 | 2013-07-04 | Alcatel-Lucent Canada Inc. | Diameter route learning |
CN102447639A (en) * | 2012-01-17 | 2012-05-09 | 华为技术有限公司 | Strategy routing method and device |
CN102769570A (en) * | 2012-07-30 | 2012-11-07 | 杭州华三通信技术有限公司 | Route notification method and equipment |
CN103220228A (en) * | 2013-04-10 | 2013-07-24 | 杭州华三通信技术有限公司 | Method and equipment for sending border gateway protocol (BGP) routes |
CN104468367A (en) * | 2014-10-27 | 2015-03-25 | 国家电网公司 | Method for modifying region dispatch data network address |
CN107911250A (en) * | 2017-11-28 | 2018-04-13 | 新华三技术有限公司 | A kind of pile system and its method for preventing traffic loss |
CN109787894A (en) * | 2019-03-27 | 2019-05-21 | 新华三技术有限公司 | A kind of route control method and device |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113300950A (en) * | 2020-04-01 | 2021-08-24 | 阿里巴巴集团控股有限公司 | Data processing method and device, electronic equipment and computer readable medium |
CN113300950B (en) * | 2020-04-01 | 2023-03-24 | 阿里巴巴集团控股有限公司 | Data processing method and device, electronic equipment and computer readable medium |
CN113595893A (en) * | 2021-07-20 | 2021-11-02 | 锐捷网络股份有限公司 | Route receiving system, route receiving method, device, equipment and medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9954769B2 (en) | Inter-domain fast reroute methods and network devices | |
CN104869057B (en) | Open flow switch Graceful Restart processing method, device and open flow controller | |
US7944926B2 (en) | Method and system for migrating a peer in a distributed BGP system | |
WO2017124791A1 (en) | Link detecting method and device | |
CN110730478B (en) | Slice association method, device, end-to-end slice organizer and storage medium | |
CN103782544A (en) | Notifying network operator when virtual addresses do not match on network elements configured for interchassis redundancy | |
CN110519076A (en) | It is connect with bgp neighbor equipment and disconnects method, apparatus and interactive system | |
WO2018090965A1 (en) | Forwarding path control method and apparatus, and control device | |
CN109547269A (en) | A kind of IP RAN equipment realizes the method and device of LSP protection | |
US20190123995A1 (en) | Method, apparatus and system for controlling routing information advertising | |
CN106470154A (en) | Border Gateway Protocol (BGP) route source processing method and processing device | |
CN102355414A (en) | Processing method and device of APS (automatic protection switching) state machine | |
CN102158393B (en) | Method and device for updating virtual private network (VPN) routing | |
EP4072079A1 (en) | Anti-fiber breakage method and device for segment routing tunnel, ingress node and storage medium | |
US20240022504A1 (en) | Traffic forwarding method and apparatus | |
CN102281158A (en) | Line fault processing method and device | |
CN105591802B (en) | Switching equipment upgrade method and device | |
WO2019134572A1 (en) | Sdn-based optical transport network protection recovery method and device, and storage medium | |
CN108848015A (en) | Connect method, apparatus, smart machine and the user terminal of network | |
CN101800700B (en) | LSP pre-deleting method based on MPLS and device | |
WO2017181781A1 (en) | Traffic forwarding method and apparatus | |
CN104935507B (en) | A kind of method of linear protection switching, PE equipment and system | |
CN106453075B (en) | A kind of route transmission method and apparatus | |
CN110784410A (en) | Route establishing method and related equipment | |
CN106911568B (en) | BGP GR implementation method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20191129 |
|
RJ01 | Rejection of invention patent application after publication |