CN106911568B - BGP GR implementation method and device - Google Patents

BGP GR implementation method and device Download PDF

Info

Publication number
CN106911568B
CN106911568B CN201710104205.8A CN201710104205A CN106911568B CN 106911568 B CN106911568 B CN 106911568B CN 201710104205 A CN201710104205 A CN 201710104205A CN 106911568 B CN106911568 B CN 106911568B
Authority
CN
China
Prior art keywords
bgp
equipment
opposite equip
connection
message
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710104205.8A
Other languages
Chinese (zh)
Other versions
CN106911568A (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.)
New H3C Technologies Co Ltd
Original Assignee
New 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 New H3C Technologies Co Ltd filed Critical New H3C Technologies Co Ltd
Priority to CN201710104205.8A priority Critical patent/CN106911568B/en
Publication of CN106911568A publication Critical patent/CN106911568A/en
Application granted granted Critical
Publication of CN106911568B publication Critical patent/CN106911568B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/22Alternate routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/14Routing performance; Theoretical aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/12Avoiding congestion; Recovering from congestion

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application provides a kind of BGP GR implementation method and device, wherein, this method comprises: establishing the primary BGP connection and spare BGP connection between this equipment and opposite equip., wherein, one in this equipment and opposite equip. is restarting equipment, the other is assisting equipment, primary BGP connection is the BGP connection between the main control board on restarting equipment and assistance equipment, and spare BGP connection is the BGP connection between the slave control board on restarting equipment and assistance equipment;BGP message communication is carried out by primary BGP connection and opposite equip.;After starting BGP GR, BGP message communication is carried out by spare BGP connection and opposite equip..

Description

BGP GR implementation method and device
Technical field
The present invention relates to network communication technology field, in particular to a kind of BGP GR implementation method and device.
Background technique
BGP (Border Gateway Protocol, Border Gateway Protocol) is that one kind both can be used for different AS Between (Autonomous System, autonomous system), and it can be used for the dynamic routing protocol inside same AS.When BGP is run When inside same AS, referred to as IBGP (Internal BGP, internal bgp);When BGP is run between different AS, referred to as EBGP (External BGP, external BGP).AS is to possess same routing policy, belongs to one group of road of same technical management department By device.The starting point of BGP is to control the propagation of routing and selection Optimization route.
BGP GR (Graceful Restart, smooth restarting) is a kind of agreement occurs in bgp router to restart or active and standby When plate is switched, guarantee the unbroken mechanism of forwarding service.There are two roles during BGP GR: GR Restarter (weight Open equipment) and GR Helper (assisting equipment), wherein GR Restarter is that the BGP that agreement is restarted or active and standby plate is switched occurs Router, and GR Helper is the BGP for having neighborhood with GR Restarter, and assisting GR Restarter completion GR Router.GR Restarter and GR Helper all have GR ability.
During existing BGP GR, when GR Restarter generation agreement is restarted or active and standby plate is switched, GR BGP connection between Restarter and GR Helper disconnects, after the completion of agreement is restarted or active and standby plate is switched, GR Restarter establishes BGP with GR Helper again and connect, after new BGP connection is successfully established, GR Restarter and GR Helper can carry out the interaction of bgp routing information by the new BGP connection, to complete GR process.
Summary of the invention
In view of this, the application provides a kind of BGP GR implementation method and device.
Specifically, the application is achieved by the following technical solution:
On the one hand, a kind of BGP GR implementation method is provided, this method comprises:
Establish the primary BGP connection and spare BGP connection between this equipment and opposite equip., wherein this equipment and opposite end One in equipment is restarting equipment, the other is assist equipment, primary BGP connection be main control board on restarting equipment and The BGP connection between equipment is assisted, spare BGP connection is the BGP between the slave control board on restarting equipment and assistance equipment Connection;
BGP message communication is carried out by primary BGP connection and opposite equip.;
After starting BGP GR, BGP message communication is carried out by spare BGP connection and opposite equip..
On the other hand, a kind of BGP GR realization device is additionally provided, which includes:
Connection establishment unit, primary BGP connection and spare BGP connection for establishing between this equipment and opposite equip., Wherein, one in this equipment and opposite equip. is restarting equipment, the other is assisting equipment, primary BGP connection is to restart to set Standby upper main control board and assist the BGP connection between equipment, spare BGP connection be slave control board on restarting equipment and Assist the BGP connection between equipment;
Communication unit, for carrying out BGP message communication by primary BGP connection and opposite equip.;It is also used to starting BGP After GR, BGP message communication is carried out by spare BGP connection and opposite equip..
By the above technical scheme of the application, GR Restarter and GR Helper, can needles when establishing BGP and connecting A BGP is established respectively with each of slave control board master control borad to the main control board on GR Restarter to connect, To establish at least two BGP connections, wherein the BGP established for the main control board on GR Restarter is connected to Primary BGP connection, for the communication of BGP message, and the BGP connection established for the slave control board on GR Restarter is made For spare BGP connection, the only backup as primary BGP connection;Master control borad on GR Restarter occur masterslave switchover or After bgp protocol on person's master control borad restarts and GR Restarter is caused to start BGP GR, primary BGP connection at this time can be interrupted, GR Restarter directly passes through spare BGP with GR Helper and connect progress BGP message communication, without connecting until new BGP It connects and just interacts BGP message after rebuilding successfully, thus, BGP message interaction break period when BGP GR is shortened, generation is improved The convergence rate of the network topology of variation.
Detailed description of the invention
Fig. 1 is the structural schematic diagram of the GR Restarter comprising main control board and slave control board;
Fig. 2 is the flow chart that the application one implements the BGP GR implementation method exemplified;
Fig. 3 is the flow chart of another BGP GR implementation method for implementing to exemplify of the application;
Fig. 4 is the hardware structural diagram of the BGP GR realization device place bgp router shown in the embodiment of the present application;
Fig. 5 is the structural schematic diagram of the BGP GR realization device shown in the embodiment of the present application.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all embodiments consistent with the application.On the contrary, they be only with it is such as appended The example of the consistent device and method of some aspects be described in detail in claims, the application.
It is only to be not intended to be limiting the application merely for for the purpose of describing particular embodiments in term used in this application. It is also intended in the application and the "an" of singular used in the attached claims, " described " and "the" including majority Form, unless the context clearly indicates other meaning.It is also understood that term "and/or" used herein refers to and wraps It may be combined containing one or more associated any or all of project listed.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the application A little information should not necessarily be limited by these terms.These terms are only used to for same type of information being distinguished from each other out.For example, not departing from In the case where the application range, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as One information.Depending on context, word as used in this " if " can be construed to " ... when " or " when ... When " or " in response to determination ".
In the prior art, restart or when active and standby plate is switched when agreement occurs for GR Restarter, GR Restarter and GR Helper could interact bgp routing information after new BGP connection is successfully established, due to from former BGP disconnecting to new BGP connection, which is successfully established, needs to consume the regular hour, therefore, when GR Restarter and GR Helper need to wait one section Between could interact bgp routing information, to will affect the convergence rate of changed network topology.
To solve the above-mentioned problems, a kind of BGP GR implementation method is provided in the application following embodiment, and a kind of The BGP GR realization device of this method can be applied.
As shown in Figure 1, in GR Restarter include primary (Master) master control borad and spare (Backup) master control borad, by This, the BGP GR implementation method in the embodiment of the present application is as shown in Figure 2, comprising the following steps:
Step S201, GR Restarter and GR Helper establish primary BGP and connect and spare BGP connection, wherein main With the BGP connection that BGP connection is between the main control board on GR Restarter and GR Helper, spare BGP connection is GR BGP connection between slave control board on Restarter and GR Helper;
Step S202, GR Restarter is connect by primary BGP with GR Helper and carries out BGP message communication, comprising: Keepalive (keep-alive) message, Update (update) message, Notification message, Route-refresh (route refresh) The communication of the BGP message such as message;
At this point, spare BGP connection is in static condition, it is not used in BGP message communication.Specifically, for GR For Restarter, primary BGP connection is established on main control board, and spare BGP connection is established on slave control board, just The main control board of GR Restarter is in running order in normal situation, and is in as the slave control board of backup and stands shape State, therefore, the primary BGP connection that main control board will use the foundation of this veneer are communicated, so that the primary junction BGP In working condition, and spare BGP connection is in static condition.
Opposite, for GR Helper, GR Helper can distinguish primary BGP connection and connect with spare BGP, meeting It is communicated using primary BGP connection, is communicated without the use of spare BGP connection, so that primary BGP connection is in work Make state, and spare BGP connection is in static condition.
Step S203, after GR Restarter starts BGP GR, GR Restarter and GR Helper passes through spare The communication of BGP connection progress BGP message, comprising: Keepalive (keep-alive) message, Update (update) message, The communication of the BGP messages such as Notification message, Route-refresh (route refresh) message.
To when this equipment is to assist equipment (i.e. GR Helper), build for any BGP equipment in network Stand that the first primary BGP between this equipment and the first equipment as restarting equipment (i.e. GR Restarter) is connect and first is standby It being connected with BGP, wherein the first primary BGP connection is the BGP connection between the main control board in this equipment and the first equipment, First spare BGP connection is the BGP connection between the slave control board in this equipment and the first equipment;Pass through the first primary BGP Connection carries out BGP message communication with the first equipment;After the first equipment starts BGP GR, pass through the first spare BGP connection and the One equipment carries out BGP message communication.
When this equipment is restarting equipment, this equipment is established and as second primary between the second equipment for assisting equipment BGP connection is connected with the second spare BGP, wherein the second primary BGP connection is main control board and the second equipment in this equipment Between BGP connection, the second spare BGP connection is the BGP connection between slave control board and the second equipment in this equipment;It is logical It crosses the second primary BGP connection and the second equipment carries out BGP message communication;It is spare by second after this equipment starts BGP GR BGP connection and the second equipment carry out BGP message communication.
Thus, it can be known that GR Restarter and GR Helper are establishing BGP company in the method for the above embodiments of the present application When connecing, each of the main control board and slave control board that can be directed on GR Restarter master control borad establish one respectively BGP connection, so that at least two BGP connections are established, wherein the BGP established for the main control board on GR Restarter It is connected to primary BGP connection, for the communication of BGP message, and established for the slave control board on GR Restarter BGP is connected to spare BGP connection, only the backup as primary BGP connection;Master control borad on GR Restarter is led It is standby switch or master control borad on bgp protocol restart and after causing GR Restarter to start BGP GR, primary BGP connection at this time It can interrupt, GR Restarter directly passes through spare BGP with GR Helper and connect progress BGP message communication, without waiting until BGP message is just interacted after new BGP connection reconstruction success, thus, BGP message interaction break period when BGP GR is shortened, is mentioned The high convergence rate of changed network topology.
Below by a specific embodiment, describe in detail to above-mentioned BGP GR implementation method.As shown in figure 3, The BGP GR implementation method of the embodiment of the present application the following steps are included:
Step S301, GR Restarter interacts Open (unlatching) message with GR Helper, to establish GR Restarter Primary BGP between GR Helper is connect;
Specifically, the main control board on GR Restarter sends existing Open message, GR to GR Helper Main control board of the Helper on GR Restarter sends existing Open message, to establish the master on GR Restarter With the BGP connection between master control borad and GR Helper, and the BGP is connected to primary BGP connection, for carrying out BGP message Communication.
Step S302, GR Restarter interacts Open message with GR Helper, to establish GR Restarter and GR Spare BGP connection between Helper;
In the embodiment of the present application, in order to establish the spare BGP connection between GR Restarter and GR Helper, to existing There is Open message to be extended, GR enhancing ability (GR Enhance Capability) is increased in existing Open message Field, it is TLV (Type Length Value, type lengths values) format which, which enhances capable field, wherein the type field is used The type of TLV format fields where indicating is that GR enhances capable field, and Length field is used to indicate the length of Value field Degree, Value field establish mark for carrying about standby BGP connection, which, which is used to indicate, needs to establish for slave control board BGP connection.In order to be distinguished with existing Open message, the Open of GR enhancing capable field will be carried in the embodiment of the present application Message is known as extending Open message.
Specifically, the slave control board on GR Restarter sends extension Open message, GR to GR Helper Slave control board of the Helper on GR Restarter sends existing Open message.GR Helper receives GR After the extension Open message that slave control board on Restarter is sent, energy is enhanced according to the GR that extension Open message carries Mark is established in spare BGP connection in power field, that is, be can determine and needed to establish BGP connection for the slave control board, to build The BGP connection between the slave control board in this equipment and GR Restarter is stood, and the BGP is connected to spare BGP and is connected It connects, as the backup of primary BGP connection, when primary BGP connection is normal, spare BGP connection is in static condition, is not used in BGP message communication.
Equally, the slave control board on GR Restarter can also establish the BGP connection between GR Helper, and will The BGP is connected to spare BGP connection.
In the actual implementation process, above-mentioned steps S301 and step S302 have no specific sequencing.By executing step Primary BGP connection and spare BGP connection are established between rapid S301 and step S302, GR Helper and GR Restarter, and And mutually have advertised respective GR ability.
Step S303, GR Helper is connect by primary BGP with GR Restarter and carries out BGP message communication;
For example, GR Helper connect periodically interaction Keepalive message by primary BGP with GR Restarter, with Maintain the validity of primary BGP connection.When needing to issue up to routing iinformation or cancelling unreachable routing iinformation, GR Helper and GR Restarter sends Update message to other side.When the routing letter for needing other side to retransmit specified address family When breath, Route-refresh message is sent to other side.
At this point, primary BGP connection is in running order, and spare BGP connection is in static condition.Specifically, for GR For Restarter, primary BGP connection is established on main control board, and spare BGP connection is established on slave control board, that is, The link information of primary BGP connection is stored on main control board, and the link information of spare BGP connection is stored in slave control board On.Under normal circumstances, the main control board of GR Restarter is in running order, and the slave control board as backup is in Static condition, therefore, the primary BGP connection that main control board will use the foundation of this veneer are communicated, so that primary BGP Connect in running order, and spare BGP connection is in static condition.
Opposite, for GR Helper, it is existing Open that GR Helper is received when establishing primary BGP and connecting Message, and received when establishing spare BGP and connecting is extension Open message, in this way, the connection that primary BGP is connected can be believed Breath is labeled as primary, and labeled as spare, the label that GR Helper passes through link information is the link information that spare BGP is connected Primary BGP connection can be distinguished to connect with spare BGP, and communicated using primary BGP connection, without using spare BGP to connect Capable communication is tapped into, so that primary BGP connection is in running order, and spare BGP connection is in static condition.
Step S304, when the bgp protocol weight on masterslave switchover or master control borad occurs for the master control borad on GR Restarter When opening and starting BGP GR, GR Restarter is connected to GR Helper by primary BGP and is sent Open message, wherein should Open message is used to indicate the bgp routing information of record variation for notifying BGP that GR starts;
It include RestartFlags in GR ability (Graceful Restart Capability) field in Open message (restarting label) field, Restart Flags field totally 4 bits, the position R and 3 bits including 1 bit Resv (reservation) field in step s 304 can will be in the GR capable field for the Open message that GR Restarter is sent The position the R position of Restart Flags field, for notifying GR Helper: local terminal starts BGP GR, also, by Restart First bit set in the Resv field of Flags field is used to indicate the BGP routing letter of GR Helper record variation Breath.
It is primary after the master control borad generation masterslave switchover on GR Restarter or the bgp protocol on master control borad are restarted BGP connection can be interrupted, also, after the completion of the bgp protocol in the completion of master control borad masterslave switchover or master control borad is restarted, can rebuild The BGP connection.
After step S305, GR Helper receives the Open message by primary BGP connection, know that GRRestarter is opened The bgp routing information of beginning BGP GR, GR Helper start recording variation;
Wherein, the bgp routing information of the variation of GR Helper record can be newly-increased due to network topology change Bgp routing information or the bgp routing information of reduction.
In addition, GR Helper not will be deleted after knowing that GR Restarter starts BGP GR from GRRestarter The bgp routing information practised, but these bgp routing informations are still turned according to these bgp routing informations labeled as failure routing It transmits messages text, so that it is guaranteed that message forwarding will not be interrupted during GR Restarter carries out BGP GR.
Step S306, GR Helper connect the communication for carrying out BGP message with GR Restarter by spare BGP, wherein Interaction including the BGP message such as Update message and Keepalive message.
Specifically in step S306, GR Helper can be connected by spare BGP to be sent to GR Restarter Start of RIB (SOR, routing information base start) message, wherein Start of RIB message is used to indicate through spare BGP Connection carries out BGP message communication, also, for notifying bgp routing information to start to send;BGP Restarter passes through spare BGP After receiving Start of RIB message, it can know and need to carry out BGP message by spare BGP connection and the second equipment Communication, and can know that GR Helper will start to send bgp routing information.
Subsequent, GR Helper carries bgp routing information in Update message, is sent to by spare BGP connection GR Restarter first sends the bgp routing information of the variation of record when sending bgp routing information, sends afterwards unchanged Bgp routing information, that is, the bgp routing information of the preferential variation for sending record;GR Restarter is connect by spare BGP connection After receiving the Update message that GR Helper is sent, updated according to the bgp routing information carried in the Update message received The bgp routing information locally saved, that is, issue routing management after carrying out preferably, then issue FIB (forwarding information storehouse) again.
After all bgp routing informations are sent completely, GR Helper is connected by spare BGP to GR Restarter sends End of RIB (routing information base terminates) message, wherein End of RIB message is for notifying the road BGP Terminated by information transmission;After GR Restarter receives End of RIB message by spare BGP connection, GR can be known All bgp routing informations on Helper are sent completely.
Equally, when can also be connected by spare BGP on GR Restarter to GR Helper send carry BGP routing letter The Update message of breath, and after all bgp routing informations are sent completely, it is connected by spare BGP to GR Helper and is sent End of RIB message.
After GR Restarter and GR Helper mutually have sent End of RIB message, terminate BGP GR process.GR Helper can also refresh failure road using these bgp routing informations after receiving the bgp routing information that GR Restarter is sent By.
By the method for the embodiment of the present application, GR Restarter and GR Helper are built in advance when establishing BGP and connecting The spare BGP connection as backup has been stood, before BGP GR starts, BGP message communication has been carried out by primary BGP connection, in BGP After GR starts, BGP message communication is directly carried out by spare BGP connection, without just interacting after the success of new BGP connection reconstruction BGP message, thus, BGP message interaction break period when BGP GR is shortened, the receipts of changed network topology are improved Hold back speed.
In addition, recording the bgp routing information of variation, and excellent after GR Helper knows that GR Restarter starts BGP GR The bgp routing information of the variation of record is first sent to GR Restarter, it is thus possible to allow GR Restarter by variation Bgp routing information releases in time, enables network topology change by quick sensing, thus when improving generation BGP GR Network topological convergence speed and network stabilization.
It should be understood that in the method for above-described embodiment, after GR Restarter starts BGP GR, primary BGP Connection disconnects, and GR Helper can carry out BGP message communication by available BGP connection, which is exactly spare BGP connection, moreover, because primary BGP disconnecting, spare BGP connection can be switched to primary, subsequent, the primary BGP of original of interruption It can be switched to after the completion of connection reconstruction spare.
Corresponding with the embodiment of aforementioned BGP GR implementation method, present invention also provides the implementations of BGP GR realization device Example.
The embodiment of the application BGP GR realization device 60 can be applied on bgp router, which can make For GR Restarter, GR Helper can also be used as.Installation practice can also pass through hardware by software realization Or the mode of software and hardware combining is realized.It taking software implementation as an example, is by where it as the device on a logical meaning Computer program instructions corresponding in nonvolatile memory 50 are read in memory 40 and are run by the processor 10 of bgp router It is formed.For hardware view, as shown in figure 4, one kind for 60 place bgp router of the application BGP GR realization device is hard Part structure chart, in addition to processor 10 shown in Fig. 4, internal bus 20, network interface 30, memory 40 and non-volatile memories Except device 50, the bgp router in embodiment where device can also include generally according to the actual functional capability of the bgp router Other hardware repeat no more this.
Referring to FIG. 5, including with lower unit in the BGP GR realization device 60 of the embodiment of the present application: connection establishment unit 601 and communication unit 602, in which:
Connection establishment unit 601, primary BGP connection and spare BGP for establishing between this equipment and opposite equip. connect It connects, wherein one in this equipment and opposite equip. is restarting equipment, the other is assisting equipment, primary BGP connection is to restart BGP connection between main control board in equipment and assistance equipment, spare BGP connection is the slave control board on restarting equipment It is connect with the BGP between equipment is assisted;
Communication unit 602, for carrying out BGP message communication by primary BGP connection and opposite equip.;It is also used to starting After BGP GR, BGP message communication is carried out by spare BGP connection and opposite equip..
Wherein, connection establishment unit 601 is specifically used for establishing in the following manner standby between this equipment and opposite equip. It is connected with BGP:
When this equipment is to assist equipment, when opposite equip. is restarting equipment, the slave control board received on opposite equip. is sent out That comes carries the unlatching Open message of GR enhancing capable field, wherein GR enhancing capable field is used to indicate foundation and sets with opposite end BGP connection between standby upper slave control board;Enhance capable field according to the GR carried in the Open message received, builds It founds the BGP between the slave control board in this equipment and opposite equip. and is connected to spare BGP connection;
Alternatively, when this equipment is restarting equipment, opposite equip. is slave control board when assisting equipment, in this equipment to right End equipment sends the Open message for carrying GR enhancing capable field, wherein GR enhancing capable field is used to indicate foundation and originally sets BGP connection between standby upper slave control board.
Wherein, when this equipment is to assist equipment, when opposite equip. is restarting equipment, communication unit 602 is specifically used for using Following manner carries out BGP message communication by spare BGP connection and opposite equip.:
Record the bgp routing information of variation;
The Update message for carrying bgp routing information is sent to opposite equip., wherein first send the variation of record Bgp routing information sends unchanged bgp routing information afterwards.
Wherein, communication unit 602 receives opposite end by primary BGP connection and sets before the bgp routing information of record variation The Open message that preparation is come, wherein the Open message received is used to indicate record and becomes for notifying BGP that GR starts The bgp routing information of change;Then, communication unit 602 is specifically used for recording the bgp routing information of variation in the following manner: according to The Open message received knows that opposite equip. starts BGP GR, and the bgp routing information of start recording variation.
Wherein, communication unit 602 is before being sent to opposite equip. for the Update message for carrying bgp routing information, Start of RIB message also is sent to opposite equip., wherein Start of RIB message is used to indicate to be connected by spare BGP BGP message communication is carried out, also, for notifying bgp routing information to start to send.Communication unit 602 will carry BGP routing The Update message of information is sent to after opposite equip., also after all bgp routing informations are sent completely, is set to opposite end Preparation send End of RIB message, wherein End of RIB message is for notifying bgp routing information transmission to terminate.
In addition, opposite equip. is when assisting equipment, and communication unit 602 is specifically used for using when this equipment is restarting equipment Following manner carries out BGP message communication by spare BGP connection and opposite equip.: what reception opposite equip. was sent carries BGP The Update message of routing iinformation;It is locally saved according to the bgp routing information update carried in the Update message received Bgp routing information.Moreover, communication unit 602 is also used to carrying out BGP message communication by spare BGP connection and opposite equip. Before, it when this equipment starts BGP GR, is connected by primary BGP to opposite equip. and sends Open message, wherein Open report Text is used to indicate the bgp routing information of record variation for notifying BGP that GR starts.
Wherein, communication unit 602 receive the Update message for carrying bgp routing information sent of opposite equip. it Before, the Start of RIB message that opposite equip. is sent also is received, needs are known according to the Start of RIB message received BGP message communication is carried out by spare BGP connection and opposite equip., and knows that opposite equip. starts to send bgp routing information.And And communication unit 602 is after receiving the Update message for carrying bgp routing information sent of opposite equip., also receives pair The End of RIB message that end equipment is sent knows all BGP on opposite equip. according to the End of RIB message received Routing iinformation is sent completely.
The function of each unit and the realization process of effect are specifically detailed in the above method and correspond to step in above-mentioned apparatus Realization process, details are not described herein.
For device embodiment, since it corresponds essentially to embodiment of the method, so related place is referring to method reality Apply the part explanation of example.The apparatus embodiments described above are merely exemplary, wherein described be used as separation unit The unit of explanation may or may not be physically separated, and component shown as a unit can be or can also be with It is not physical unit, it can it is in one place, or may be distributed over multiple network units.It can be according to actual The purpose for needing to select some or all of the modules therein to realize application scheme.Those of ordinary skill in the art are not paying Out in the case where creative work, it can understand and implement.
The foregoing is merely the preferred embodiments of the application, not to limit the application, all essences in the application Within mind and principle, any modification, equivalent substitution, improvement and etc. done be should be included within the scope of the application protection.

Claims (10)

1. a kind of Border Gateway Protocol smooth restarting BGP GR implementation method, which is characterized in that the described method includes:
Establish the primary BGP connection and spare BGP connection between this equipment and opposite equip., wherein this equipment and opposite equip. In one be restarting equipment, the other is assist equipment, the primary BGP connection be main control board on restarting equipment and The BGP connection between equipment is assisted, the spare BGP connection is between the slave control board on restarting equipment and assistance equipment BGP connection;
BGP message communication is carried out by the primary BGP connection and opposite equip.;
After starting BGP GR, BGP message communication is carried out by the spare BGP connection and opposite equip..
2. the method according to claim 1, wherein establishing between this equipment and opposite equip. in the following manner Spare BGP connection:
When this equipment is to assist equipment, when opposite equip. is restarting equipment, what the slave control board on reception opposite equip. was sent Carry the unlatching Open message of GR enhancing capable field, wherein GR enhancing capable field is used to indicate on foundation and opposite equip. Slave control board between BGP connection;Enhance capable field according to the GR carried in the Open message received, foundation is originally set BGP between the standby slave control board on opposite equip. is connected to the spare BGP connection;
Alternatively, when this equipment is restarting equipment, opposite equip. is that slave control board when assisting equipment, in this equipment is set to opposite end Preparation send the Open message for carrying GR enhancing capable field, and slave control board of the opposite equip. in this equipment sends existing Open Message, wherein GR enhancing capable field is used to indicate the BGP connection between the slave control board in foundation and this equipment.
3. the method according to claim 1, wherein opposite equip. is to restart to set when this equipment is to assist equipment When standby, BGP message communication is carried out by the spare BGP connection and opposite equip., comprising:
Record the bgp routing information of variation;
The update Update message for carrying bgp routing information is sent to opposite equip., wherein first send the variation of record Bgp routing information sends unchanged bgp routing information afterwards.
4. according to the method described in claim 3, it is characterized in that, before the bgp routing information of record variation, further includes: The Open message that opposite equip. is sent is received by the primary BGP connection, wherein the Open message received is for notifying BGP GR starts, also, is used to indicate the bgp routing information of record variation;
Then, the bgp routing information of the record variation, comprising: know that opposite equip. starts BGP according to the Open message received GR, and the bgp routing information of start recording variation.
5. according to the method described in claim 3, it is characterized in that, in the Update message hair that will carry bgp routing information Before giving opposite equip., further includes: send routing information base to opposite equip. and start Start of RIB message, wherein institute It states Start of RIB message to be used to indicate through the spare BGP connection progress BGP message communication, also, for notifying BGP Routing iinformation starts to send;
After the Update message for carrying bgp routing information is sent to opposite equip., further includes: on all roads BGP After being sent completely by information, sending routing information base to opposite equip. terminates End of RIB message, wherein the End of RIB message is for notifying bgp routing information transmission to terminate.
6. the method according to claim 1, wherein when this equipment is restarting equipment, opposite equip. is to assist to set When standby, BGP message communication is carried out by the spare BGP connection and opposite equip., comprising: receive the carrying that opposite equip. is sent There is the Update message of bgp routing information;Local protect is updated according to the bgp routing information carried in the Update message received The bgp routing information deposited;
Before carrying out BGP message communication by the spare BGP connection and opposite equip., further includes: start BGP in this equipment When GR, is connected by the primary BGP to opposite equip. and send Open message, slave control board of the opposite equip. in this equipment Send existing Open message, wherein the Open message is used to indicate record variation for notifying BGP that GR starts Bgp routing information.
7. according to the method described in claim 6, it is characterized in that, believing receiving the BGP routing that carries that opposite equip. is sent Before the Update message of breath, further includes: the Start of RIB message that opposite equip. is sent is received, according to what is received Start of RIB message, which is known, to need to carry out BGP message communication by the spare BGP connection and opposite equip., and knows pair End equipment starts to send bgp routing information;
After receiving the Update message for carrying bgp routing information that opposite equip. is sent, further includes: receive opposite equip. The End of RIB message sent knows the routing letter of all BGP on opposite equip. according to the End of RIB message received Breath is sent completely.
8. a kind of Border Gateway Protocol smooth restarting BGP GR realization device, which is characterized in that described device includes:
Connection establishment unit, primary BGP connection and spare BGP connection for establishing between this equipment and opposite equip., wherein One in this equipment and opposite equip. is restarting equipment, the other is assisting equipment, the primary BGP connection is restarting equipment On main control board and assist equipment between BGP connection, the spare BGP connection is the slave control board on restarting equipment It is connect with the BGP between equipment is assisted;
Communication unit, for carrying out BGP message communication by the primary BGP connection and opposite equip.;It is also used to starting BGP After GR, BGP message communication is carried out by the spare BGP connection and opposite equip..
9. device according to claim 8, which is characterized in that the connection establishment unit is specifically used in the following manner Establish the spare BGP connection between this equipment and opposite equip.:
When this equipment is to assist equipment, when opposite equip. is restarting equipment, what the slave control board on reception opposite equip. was sent Carry the unlatching Open message of GR enhancing capable field, wherein GR enhancing capable field is used to indicate on foundation and opposite equip. Slave control board between BGP connection;Enhance capable field according to the GR carried in the Open message received, foundation is originally set BGP between the standby slave control board on opposite equip. is connected to the spare BGP connection;
Alternatively, when this equipment is restarting equipment, opposite equip. is that slave control board when assisting equipment, in this equipment is set to opposite end Preparation send the Open message for carrying GR enhancing capable field, wherein GR enhancing capable field is used to indicate in foundation and this equipment Slave control board between BGP connection.
10. device according to claim 8, which is characterized in that when this equipment is to assist equipment, opposite equip. is to restart to set When standby, the communication unit is specifically used for carrying out BGP message by the spare BGP connection and opposite equip. in the following ways Communication:
Record the bgp routing information of variation;
The update Update message for carrying bgp routing information is sent to opposite equip., wherein first send the variation of record Bgp routing information sends unchanged bgp routing information afterwards.
CN201710104205.8A 2017-02-24 2017-02-24 BGP GR implementation method and device Active CN106911568B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710104205.8A CN106911568B (en) 2017-02-24 2017-02-24 BGP GR implementation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710104205.8A CN106911568B (en) 2017-02-24 2017-02-24 BGP GR implementation method and device

Publications (2)

Publication Number Publication Date
CN106911568A CN106911568A (en) 2017-06-30
CN106911568B true CN106911568B (en) 2019-11-12

Family

ID=59209298

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710104205.8A Active CN106911568B (en) 2017-02-24 2017-02-24 BGP GR implementation method and device

Country Status (1)

Country Link
CN (1) CN106911568B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108696433B (en) * 2018-07-24 2021-04-06 新华三技术有限公司 Route oscillation suppression method and BGP routing equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1980224A (en) * 2005-12-01 2007-06-13 华为技术有限公司 Method and system for recovering business after apparatus state switching-over based on main and spare netgate
CN101984600A (en) * 2010-11-05 2011-03-09 华为技术有限公司 Graceful restart method, equipment and system of routing protocol
CN102136999A (en) * 2010-10-29 2011-07-27 华为技术有限公司 Route converging method, system and edge switching equipment
CN102571425A (en) * 2011-12-28 2012-07-11 杭州华三通信技术有限公司 Method and device for smoothly restarting border gateway protocol
CN102624635A (en) * 2012-04-23 2012-08-01 杭州华三通信技术有限公司 Method and device for realizing graceful restart

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1980224A (en) * 2005-12-01 2007-06-13 华为技术有限公司 Method and system for recovering business after apparatus state switching-over based on main and spare netgate
CN102136999A (en) * 2010-10-29 2011-07-27 华为技术有限公司 Route converging method, system and edge switching equipment
CN101984600A (en) * 2010-11-05 2011-03-09 华为技术有限公司 Graceful restart method, equipment and system of routing protocol
CN102571425A (en) * 2011-12-28 2012-07-11 杭州华三通信技术有限公司 Method and device for smoothly restarting border gateway protocol
CN102624635A (en) * 2012-04-23 2012-08-01 杭州华三通信技术有限公司 Method and device for realizing graceful restart

Also Published As

Publication number Publication date
CN106911568A (en) 2017-06-30

Similar Documents

Publication Publication Date Title
WO2018054156A1 (en) Vxlan message forwarding method, device and system
CN102137017B (en) Working method and device used for virtual network unit
CN101702663B (en) Method and device for updating ring network topology information
WO2021043086A1 (en) Method, device and system for establishing sbfd session
TWI499237B (en) Ldp igp synchronization for broadcast networks
CN102624635B (en) Method and device for realizing graceful restart
KR101629533B1 (en) Ldp igp synchronization for broadcast networks
CN103535016A (en) Hitless switchover from active tcp application to standby tcp application
CN102136994B (en) Label switched path creation method, system and node equipment
CN101364927A (en) Method, apparatus and system realizing fault recovery of virtual private network
CN101340380B (en) Method and apparatus for uninterrupted forwarding of bi-directional forwarding detection in master-slave switch implementation
CN1980224A (en) Method and system for recovering business after apparatus state switching-over based on main and spare netgate
CN101340369A (en) Method and router for realizing virtual connection supported optimum restart
CN101179446A (en) Method and router for reducing continuous duration of error smoothness rebooting status
CN103782544A (en) Notifying network operator when virtual addresses do not match on network elements configured for interchassis redundancy
CN103581013A (en) Method and device for achieving non-stop routing of routing protocol
CN103200109B (en) A kind of ospf neighbor relationship management method and equipment
CN104869057A (en) OpeFlow switch graceful restart processing method, device and OpeFlow controller
JP2003273904A (en) Route control method and route controller
CN105340226A (en) Primary and secondary system handover method for dynamic route device, and apparatus thereof
CN106911568B (en) BGP GR implementation method and device
CN102769571B (en) Graceful restart realization method and equipment
WO2013146785A1 (en) Communication system, communication apparatus, control apparatus, communication apparatus control method and program
JP6371399B2 (en) Interface parameter synchronization method and apparatus
CN101635656B (en) Fault detection method in layered ordered address packet network, system and equipment

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
GR01 Patent grant
GR01 Patent grant