CN105591892B - A kind of starting method and apparatus of smooth restarting process - Google Patents
A kind of starting method and apparatus of smooth restarting process Download PDFInfo
- Publication number
- CN105591892B CN105591892B CN201510590151.1A CN201510590151A CN105591892B CN 105591892 B CN105591892 B CN 105591892B CN 201510590151 A CN201510590151 A CN 201510590151A CN 105591892 B CN105591892 B CN 105591892B
- Authority
- CN
- China
- Prior art keywords
- ability
- work device
- network equipment
- neighboring net
- ability information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- 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/28—Routing or path finding of packets in data switching networks using route fault recovery
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Small-Scale Networks (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The present invention provides a kind of starting method and apparatus of smooth restarting process, this method comprises: the network equipment is before restart, the GR ability information of neighboring net-work device is obtained, and by the storage of the GR ability information of the neighboring net-work device into non-volatile memory medium;The network equipment after rebooting, reads the GR ability information of the neighboring net-work device from the non-volatile memory medium;When the GR ability information of the neighboring net-work device is with GR ability, then the network equipment starts the GR process between the network equipment and the neighboring net-work device;When the GR ability information of the neighboring net-work device is without GR ability, then the GR process described in network equipment No starting between the network equipment and the neighboring net-work device.According to the technical solution of the present invention, it is slow to solve GR process, the low problem of constringency performance accelerates GR process, accelerates routing convergence speed, improves routing convergence performance.
Description
Technical field
The present invention relates to field of communication technology more particularly to a kind of smooth restarting (Graceful Restart, GR) processes
Starting method and apparatus.
Background technique
Growing with network demand, the safety of the network equipment, reliability are increasingly paid close attention to.IS-IS
(Intermediate System-to-Intermediate System, Intermediate System-to-Intermediate System) agreement is as in one kind
The dynamic routing protocol of portion's gateway, since the configuring maintenance of Intermediate System to Intermediate System is simple, scalability is good, can support large-scale net
Network, so that Intermediate System to Intermediate System is used widely.
The appearance of the network services such as current speech, video proposes more strict requirements to the flow break period.In order to
The reliability for improving network, when network equipment restarting, it is desirable to reduce the time of service disconnection restores IS-IS association as early as possible
The function of view.It is proposed to this end that GR technology.It, can be with neighbours after restarting when enabling GR technology on network devices
The network equipment interacts, and obtains the link-state information before restarting from neighboring net-work device, and according to getting
Link-state information completes the recovery of link and regenerating for routing.
Summary of the invention
The present invention provides a kind of starting method of smooth restarting GR process, which comprises
The network equipment before restart, obtains the GR ability information of neighboring net-work device, and by the neighbor networks
The GR ability information of equipment is stored into non-volatile memory medium;
The network equipment after rebooting, the neighbor networks is read from the non-volatile memory medium and are set
Standby GR ability information;
When the GR ability information of the neighboring net-work device is with GR ability, then the network equipment starts the net
GR process between network equipment and the neighboring net-work device;
When the GR ability information of the neighboring net-work device is without GR ability, then the network equipment No starting
GR process between the network equipment and the neighboring net-work device.
The present invention provides a kind of starter of smooth restarting GR process, and the starter of the GR process is applied in network
In equipment, and the starter of the GR process specifically includes:
Module is obtained, for before restart, obtains the GR ability information of neighboring net-work device, and by the neighbours
The GR ability information of the network equipment is stored into non-volatile memory medium;
Read module, for after rebooting, the neighbor networks being read from the non-volatile memory medium
The GR ability information of equipment;
Starting module, described in when the GR ability information of the neighboring net-work device is with GR ability, then starting
GR process between the network equipment and the neighboring net-work device;
When the GR ability information of the neighboring net-work device is without GR ability, then the network equipment described in No starting
GR process between the neighboring net-work device.
Based on the above-mentioned technical proposal, in the embodiment of the present invention, by before restart, obtaining neighboring net-work device
GR ability information, and by the storage of the GR ability information of neighboring net-work device into non-volatile memory medium, in restarting
Afterwards, the GR ability information of neighboring net-work device is read from non-volatile memory medium, then utilizes the GR of neighboring net-work device
Ability information starting GR process perhaps do not deposit in the case where neighboring net-work device does not support GR ability or interface by No starting GR process
In the neighboring net-work device of UP, GR process is not started, solution GR process is slow, and the low problem of constringency performance greatly accelerates
GR process accelerates routing convergence speed, improves routing convergence performance.
Detailed description of the invention
Fig. 1 is the application scenarios schematic diagram in one embodiment of the present invention;
Fig. 2 is the flow chart of the starting method of the GR process in one embodiment of the present invention;
Fig. 3 is the hardware structure diagram of the network equipment in one embodiment of the present invention;
Fig. 4 is the structure chart of the starter of the GR process in one embodiment of the present invention.
Specific embodiment
For GR technology, IETF (Internet Engineering Task Force, Internet engineering task force)
By standards such as RFC3847 (Request For Comments 3847, Request for Comment 3847) and RFC5306, introduce
Restart (restarts) TLV (Type Length Value, type lengths values) and introduces T1 timer, T2 timer and T3
Three timers such as timer.
The type field of Restart TLV is 211, and expression TLV is Restart TLV.The value of Length field according to
The physical length of Restart TLV determines.Value field includes following part: 1, Flags (flag bit) field, and length is 1 word
Section, has recorded state flag bit;2, Remaining Time (remaining time) field, length is 2 bytes, when indicating neighbours' residue
Between (i.e. remaining number of seconds of the neighbours from ageing time);3, Restarting Neighbor System ID (restarts neighbor system mark
Know).
Wherein, 1 byte of the Flags field in Value field includes 8 altogether, and 1-5 are reserved bit position, mesh
Preceding to define not yet, the 6th is SA (Suppress adjacency advertisement inhibits adjacent broadcast) marker bit,
7th be RA (Restart Acknowledgement restarts confirmation) marker bit, the 8th be RR (Restart Request,
Restart Request) marker bit.
The network equipment after rebooting, if starting GR process, the network equipment sent on each interface the
By RR flag bit set (being such as set as 1) in one hello packet.Neighboring net-work device is receiving the RR from the network equipment
After the hello packet of flag bit set, the Hello of a RA flag bit set (being such as set as 1) is returned to the network equipment
Message is as confirmation.
SA flag bit is an option, and main purpose is in order to avoid there is path black hole.For example, in the network equipment
When starting or restarting, if local without retaining forwarding table, neighboring net-work device sends the network equipment for message and carries out
When forwarding, network equipment meeting dropping packets, to cause serious packet loss phenomenon.In this case, the network equipment is to neighbour
It, can be by SA flag bit set (being such as set as 1) in the Hello for occupying network equipment transmission.Neighboring net-work device is receiving SA mark
After the hello packet of position position, which will not be put into LSP (Link State Protocol, link-state protocol)
It spreads out, i.e., for the network equipment by shielding a period of time on network, other network equipments will not send message on the net
Network equipment is forwarded, in this way it is possible to prevente effectively from path black hole problem.Until the network equipment recalculates routing, and generate
After complete forwarding table, SA flag bit can be just sent by clear 0 hello packet.Neighboring net-work device is receiving SA flag bit quilt
After clear 0 hello packet, the network equipment is put into LSP and is spread out, so that the network equipment becomes a full member of network topology simultaneously
Participate in forwarding.
Remaining Time field occurs in pairs with RA flag bit, and neighboring net-work device is being received from the network equipment
RR flag bit set hello packet after, to the network equipment return a RA flag bit set (as being set as 1)
Hello packet is used as confirmation, and in this hello packet, and respective neighbours (i.e. the network equipment) are surplus from ageing time
Remaining number of seconds inserts Remaining Time field.
When having multiple network equipments on radio network while restarting, non-restarting equipment (i.e. neighboring net-work device) will receive more
The hello packet of a hello packet with the set of RR flag bit, the RA flag bit set that neighboring net-work device is replied will be wide
Online broadcast is broadcast, when multiple network equipments restarted receive the hello packet of RA flag bit set, can not judge whether to need to locate
Manage this hello packet.In order to solve this problem, Restarting Neighbor System id field is introduced.Neighbours
After the network equipment receives the hello packet with RR flag bit set, the hello packet of RA flag bit set is generated, and by RR
The hello packet of System ID (system banner) filling RA flag bit set in the hello packet of flag bit set
In Restarting Neighbor System id field, to specify the purpose equipment of the hello packet of RA flag bit set.
When the network equipment restarted receives the hello packet of RA flag bit set, based on the Restarting carried in hello packet
Whether the content in Neighbor System id field is identical as the System ID of present networks equipment, it is determined whether needs to locate
Manage this hello packet.
After rebooting, if starting GR process, the network equipment is in one T1 of each interface creation for the network equipment
Timer, T1 timer define the re-transmission time of the hello packet of RR flag bit set, if re-transmission time is 3 seconds.Based on this
T1 timer, the network equipment periodically send the hello packet of RR flag bit set, until in correspondence on each interface
The hello packet of RA flag bit set, and complete CSNP (Complete Sequence Numbers are received on interface
Protocol Data Unit, sufficient sequence protocol Data Unit) after message, it can just cancel the T1 timer on the interface.
When not having neighboring net-work device or neighboring net-work device not to support GR ability on interface, then the network equipment can not receive always
The hello packet of RA flag bit set, therefore T1 timer will not be cancelled, the network equipment carries out always GR process, Zhi Daoda
To max-timeout time (generally can be 30 seconds), GR process be exited in the failure of GR process, and GR process is slow during being somebody's turn to do, convergence
Degraded performance.
For above-mentioned discovery, propose that a kind of starting method of GR process, this method can be applied in the embodiment of the present invention
In system including multiple network equipments (such as router).Using Fig. 1 as the application scenarios schematic diagram of the embodiment of the present invention, it is assumed that net
Network equipment 1 is the network equipment for needing to restart.The network equipment 1, the network equipment 2, the network equipment 3, the network equipment 4, the network equipment 5
It is the network equipment for supporting GR ability with the network equipment 6.The network equipment 7 is the network equipment for not supporting GR ability.It is answered above-mentioned
With under scene, as shown in Fig. 2, the starting method of the GR process can specifically include following steps:
Step 201, the network equipment before restart, obtains the GR ability information of neighboring net-work device, and by neighbours
The GR ability information of the network equipment is stored into non-volatile memory medium.
In the embodiment of the present invention, the GR ability information of neighboring net-work device can specifically include but be not limited to: neighbor networks
There is equipment GR ability or neighboring net-work device not to have GR ability.
Wherein, non-volatile memory medium refers to: the data being stored in the non-volatile memory medium, will not be due to net
Network equipment is restarted and is lost, such as hard disk, USB flash disk, mobile hard disk.
Before restart, the opportunity that the network equipment obtains the GR ability information of neighboring net-work device can be with are as follows: network
Equipment is when establishing neighborhood with neighboring net-work device, that is, when receiving first hello packet from neighboring net-work device,
The GR ability information for obtaining neighboring net-work device is with GR ability or not have GR ability.Alternatively, in neighboring net-work device
GR ability information when changing, if the GR ability information of neighboring net-work device is from becoming not having GR ability with GR ability
Information or the GR ability information of neighboring net-work device become then obtaining neighbours' net with GR ability from not having GR ability information
The GR ability information of network equipment is without GR ability or to have GR ability.
In the embodiment of the present invention, the network equipment obtains the process of the GR ability information of neighboring net-work device, specifically can wrap
Include but be not limited to such as under type: the network equipment is when receiving the hello packet from neighboring net-work device, knowing how should
The Restart TLV for indicating support GR ability is carried in hello packet, then the network equipment obtains the neighboring net-work device
GR ability information be with GR ability;Knowing how not carried in the hello packet for indicating to support GR ability
Restart TLV, then it is without GR ability that the network equipment, which obtains the GR ability information of the neighboring net-work device,.
As shown in Figure 1, being directed to the network equipment 1, the network equipment 1 is receiving the carrying Restart TLV from the network equipment 2
Hello packet when, determine the network equipment 2 GR ability information be with GR ability, similarly, determine that the network equipment 3, network are set
Standby 4, the GR ability information of the network equipment 5, the network equipment 6 is with GR ability.The network equipment 1 is being received from the network equipment 7
The hello packet for not carrying Restart TLV when, determine the network equipment 7 GR ability information be without GR ability.
Step 202, the network equipment after rebooting, reads neighboring net-work device from non-volatile memory medium
GR ability information.Wherein, when GR ability information is with GR ability, 203 are thened follow the steps;When GR ability information be without
When GR ability, 204 are thened follow the steps.
Step 203, the GR process between network equipment starting present networks equipment and neighboring net-work device.
Step 204, the GR process between network equipment No starting present networks equipment and neighboring net-work device, i.e. network are set
The standby GR process not needed between starting present networks equipment and neighboring net-work device.
When the network equipment includes multiple master control borads, before main control board restarting, main control board obtains adjacent
The GR ability information of the network equipment is occupied, and by the storage of the GR ability information of neighboring net-work device into non-volatile memory medium.
After main control board restarting, slave control board replaces main control board to work, from non-volatile memory medium
The middle GR ability information for reading neighboring net-work device is then opened when the GR ability information of neighboring net-work device is with GR ability
GR process between dynamic present networks equipment and neighboring net-work device, when the GR ability information of neighboring net-work device is without GR energy
When power, then the GR process between starting present networks equipment and neighboring net-work device is not needed.
When the network equipment only includes a master control borad, then all processing are completed by the master control borad.Wherein, in the master control
Before plate restarting, then the GR ability information of neighboring net-work device is obtained, and the GR ability information of neighboring net-work device is deposited
It stores up in non-volatile memory medium.After master control borad restarting, then neighbours are read from non-volatile memory medium
The GR ability information of the network equipment then starts present networks and sets when the GR ability information of neighboring net-work device is with GR ability
The standby GR process between neighboring net-work device, when the GR ability information of neighboring net-work device is without GR ability, then not
Need to start the GR process between present networks equipment and neighboring net-work device.
As shown in Figure 1, the network equipment 1 is after rebooting, the network equipment is read from non-volatile memory medium
GR ability information, the GR ability information based on the network equipment in non-volatile memory medium, by the starting network equipment 1 and network
GR process between equipment 2, starts the GR process between the network equipment 1 and the network equipment 3, and the starting network equipment 1 is set with network
GR process between standby 4 starts the GR process between the network equipment 1 and the network equipment 5, the starting network equipment 1 and the network equipment 6
Between GR process, but do not start the GR process between the network equipment 1 and the network equipment 7.
In the embodiment of the present invention, the network equipment is index with interface, records the GR ability information of neighboring net-work device.It is based on
This, the network equipment obtains the GR ability information of neighboring net-work device, and the GR ability information of neighboring net-work device is stored to non-
Process in volatile storage medium can specifically include but be not limited to: the network equipment obtains neighbours' net of current interface connection
The GR ability information of network equipment, and the corresponding pass between current interface and GR ability information is being stored in non-volatile memory medium
System.The network equipment reads the process of the GR ability information of neighboring net-work device from non-volatile memory medium, specifically can wrap
Include but be not limited to: for current interface, the network equipment reads current interface pair from the corresponding relationship of non-volatile memory medium
The GR ability information answered.The network equipment starts the GR process or No starting sheet between present networks equipment and neighboring net-work device
The process of GR process between the network equipment and neighboring net-work device, can specifically include but be not limited to: if current interface pair
The GR ability information answered is with GR ability, then the network equipment starts GR process in current interface;If current interface is corresponding
GR ability information is without GR ability, then the network equipment is forbidden starting GR process in current interface.
In the embodiment of the present invention, when current interface only connects a neighboring net-work device, if a neighbor networks
The GR ability information of equipment be with GR ability, then illustrate the corresponding GR ability information of current interface be with GR ability, if
The GR ability information of one neighboring net-work device is then to illustrate that the corresponding GR ability information of current interface is without GR ability
Without GR ability.Alternatively, when current interface connects multiple neighboring net-work devices, if in this multiple neighboring net-work device extremely
The GR ability information of a rare neighboring net-work device is then to illustrate that the corresponding GR ability information of current interface is with GR ability
With GR ability, if the GR ability information of this multiple neighboring net-work device is to illustrate current interface without GR ability
Corresponding GR ability information is without GR ability.
In the embodiment of the present invention, the network equipment refers in current interface starting GR process: the network equipment is created in current interface
A T1 timer is built, the hello packet of RR flag bit set is periodically sent in current interface, until on current interface
After receiving the hello packet of RA flag bit set, and complete CSNP message, it can just cancel the T1 timer on the interface;
After to the end of GR process, the normal process flow of ISIS agreement is executed.And the network equipment is forbidden starting GR stream in current interface
Journey refers to: the network equipment does not create T1 timer in current interface, and the Hello report of RR flag bit set is not sent in current interface
Text does not start GR process, directly executes the normal process flow of ISIS agreement.
By taking application scenarios shown in FIG. 1 as an example, the DBM shown in Maintenance Table 1 in non-volatile memory medium of the network equipment 1
(DataBase in Memory, memory database) tables of data, the DBM tables of data possess GR energy under current interface for recording
The number of the neighboring net-work device of power, and when starting for the first time, initialize the neighbours' net for possessing GR ability under each current interface
The number of network equipment is 0.
Table 1
Current interface | Possess the number of the neighboring net-work device of GR ability |
Interface a | |
Interface b | |
Interface c | |
Interface d |
When the network equipment 1 is received from interface a from the hello packet of the network equipment 2, since the network equipment 2 has GR energy
Power, therefore the number for possessing the neighboring net-work device of GR ability is added 1.The network equipment 1 is received from interface b from the network equipment 3
Hello packet when, due to the network equipment 3 have GR ability, the number for possessing the neighboring net-work device of GR ability is added
1;When the network equipment 1 is received from interface b from the hello packet of the network equipment 4, since the network equipment 4 has GR ability,
The number for possessing the neighboring net-work device of GR ability is added 1;The network equipment 1 receives the Hello from the network equipment 5 from interface b
When message, since the network equipment 5 has GR ability, the number for possessing the neighboring net-work device of GR ability is added 1.Network is set
When receiving from interface c from the hello packet of the network equipment 6 for 1, since the network equipment 6 has GR ability, GR will be possessed
The number of the neighboring net-work device of ability adds 1.When the network equipment 1 is received from interface d from the hello packet of the network equipment 7, by
Do not have GR ability in the network equipment 7, therefore the number for possessing the neighboring net-work device of GR ability remains unchanged.Based on above-mentioned place
Reason, then DBM tables of data can be as shown in table 2.
Table 2
Current interface | Possess the number of the neighboring net-work device of GR ability |
Interface a | 1 |
Interface b | 3 |
Interface c | 1 |
Interface d | 0 |
Wherein, the network equipment 1 will be updated DBM tables of data when establishing neighborhood with neighboring net-work device, alternatively, net
Network equipment 1 will be updated DBM tables of data when the GR ability information of neighboring net-work device changes.Further, in neighbours' net
When the GR ability information of network equipment with GR ability from becoming not having GR ability information, then the network equipment 1 will possess GR ability
The number of neighboring net-work device subtract 1, become having from not having GR ability information in the GR ability information of neighboring net-work device
When GR ability, then the number for possessing the neighboring net-work device of GR ability is added 1 by the network equipment 1.
For interface a, the network equipment reads numerical value 1 from DBM tables of data, GR ability information be with GR ability,
Interface a starts GR process, starts T1 timer.For interface b, the network equipment reads numerical value 3, GR energy from DBM tables of data
Force information is to start GR process with GR ability in interface b, start T1 timer.For interface c, the network equipment is from DBM data
Numerical value 1 is read in table, GR ability information is to start GR process with GR ability in interface c, start T1 timer.For connecing
Mouth d, the network equipment read numerical value 0 from DBM tables of data, and GR ability information is not start GR in interface d without GR ability
Process does not start T1 timer.
Based on the above-mentioned technical proposal, in the embodiment of the present invention, the network equipment is by before restart, obtaining neighbours' net
The GR ability information of network equipment, and by the storage of the GR ability information of neighboring net-work device into non-volatile memory medium, in weight
After new starting, the GR ability information of neighboring net-work device is read from non-volatile memory medium, then utilizes neighbor networks
The GR ability information starting GR process of equipment perhaps do not support GR ability in neighboring net-work device or connect by No starting GR process
There is no when the neighboring net-work device of UP under mouthful, does not start GR process, do not start T1 timer, do not need to open in each interface
Dynamic T1 timer has greatly accelerated GR process to solve the problem of the slow routing convergence degraded performance of GR process, accelerates road
By convergence rate, routing convergence performance is improved.
For T2 timer and T3 timer that the standards such as RFC3847 and RFC5306 introduce, which is defined
LSDB (Link State Data Base, link state database) synchronizes maximum latency, after T2 timer expiry, then
Terminate LSDB synchronization process.Wherein, the corresponding T2 timer of each LSDB, the representative value of T2 timer are 60 seconds.The T3 is fixed
When device define maximum duration of GR process, it is only necessary to configure a T3 timer on network devices, T3 timer
Initialization values are 65535 seconds.Wherein, after T3 timer expiry, regardless of whether LSDB synchronously completes, the network equipment is all by force
Terminate GR process, is handled by the normal process flow of ISIS agreement.
The network equipment is when sending the hello packet of RR flag bit set on each interface, the neighbour that carries in the hello packet
Hold time usually 30 seconds in residence, wherein the Holdtime of the hello packet (hold time) field value be neighbours maintain
Time.Neighboring net-work device utilizes the neighbour carried in the hello packet when receiving the hello packet of RR flag bit set
Residence is held time determining neighbours' remaining time (such as 30 seconds), i.e. remaining number of seconds of the neighbours from ageing time, utilizes the neighbours remaining
The remaining time of time more new network device, and neighbours remaining time is added in Remaining Time field, to network
Equipment returns to the hello packet for the RA flag bit set for carrying Remaining Time field as confirmation.The network equipment is each
After the hello packet for receiving RA flag bit set on interface, according to the Remaining Time word carried in these hello packet
The minimum value (i.e. the smallest neighbours' remaining time) of section, to reset the time-out time of T3 timer, such as 30 seconds.Based on this,
T3 timer will be overtime at 30 seconds, and terminates GR process by force, and 60 seconds of T2 timer have not timed out at this time, can continue
LSDB synchronization process is waited, therefore GR process can be caused to fail due to the time-out in advance of T3 timer.
For above-mentioned discovery, in the embodiment of the present invention, the network equipment starting present networks equipment and neighboring net-work device it
Between GR process after, the network equipment can also to neighboring net-work device send carry the set of Restart Request marker bit first
Hello packet, the neighbours carried in first hello packet hold time as preset time value, and preset time value is greater than
The time value of LSDB synchronization maximum latency, as LSDB synchronization maximum latency be 60 seconds when, preset time can be set
Value is 300 seconds, i.e. it is 300 seconds that neighbours, which hold time,.Neighboring net-work device utilizes first when receiving the first hello packet
The neighbours carried in hello packet hold time determining neighbours' remaining time (such as 300 seconds), i.e. residue of the neighbours from ageing time
Number of seconds adds the neighbours in Remaining Time field using the remaining time of neighbours' remaining time more new network device
Remaining time, and the second of confirmation flag position position is restarted to the carrying that the network equipment returns to carrying Remaining Time field
Hello packet is as confirmation.The network equipment receives second of the carrying Remaining Time field from neighboring net-work device
Hello packet, and GR is adjusted using neighbours' remaining time in the Remaining Time field carried in the second hello packet
The maximum duration of process, that is, the time-out time of T3 timer is reset, such as 300 seconds.It further, can be in GR process
The maximum duration reach (i.e. T3 timer expiry) when, the network equipment terminates GR process;Alternatively, can be complete in LSDB synchronization
Cheng Shi, the network equipment terminate GR process.
Based on this, the time-out time (such as 300 seconds) of T3 timer can be greater than the time-out time (such as 60 seconds) of T2 timer, because
This will not terminate by force GR process due to T3 timer expiry, can wait until that always LSDB is same before T2 timer expiry
When step is completed, just terminate GR process, or after T3 timer expiry and T2 timer expiry, just terminate GR process.
In the above method, the neighbours carried in the Holdtime field by amplifying hello packet hold time, will be adjacent
It occupies the time value held time and be adjusted to by 30 seconds greater than 60 seconds and avoids GR to prevent GR process from being terminated by force by premature
Process failure, and prevent route oscillation.
The aforesaid way of the embodiment of the present invention can be adapted for ISIS agreement, be readily applicable to other Routing Protocols, such as
OSPF (Open Shortest Path First, ospf) agreement etc..
Based on inventive concept same as the above method, a kind of starting dress of GR process is additionally provided in the embodiment of the present invention
It sets, the starter application of the GR process is on network devices.Wherein, the starter of the GR process can pass through software reality
It is existing, it can also be realized by way of hardware or software and hardware combining.Taking software implementation as an example, as on a logical meaning
Device is to be read computer program instructions corresponding in nonvolatile memory by the processor of the network equipment where it
Get what operation in memory was formed.For hardware view, as shown in figure 3, being the starter of GR process proposed by the present invention
A kind of hardware structure diagram of the network equipment at place, in addition to processor shown in Fig. 3, network interface, memory and non-volatile
Outside memory, the network equipment can also include other hardware, such as be responsible for the forwarding chip of processing message;Come from hardware configuration
It says, which is also possible to be distributed apparatus, may include multiple interface cards, to carry out Message processing in hardware view
Extension.
As shown in figure 4, the structure chart of the starter for GR process proposed by the present invention, the starter of the GR process
Using on network devices, and the starter of the GR process specifically includes:
Module 11 is obtained, for before restart, obtains the GR ability information of neighboring net-work device, and by the neighbour
The GR ability information for occupying the network equipment is stored into non-volatile memory medium;
Read module 12, for after rebooting, neighbours' net being read from the non-volatile memory medium
The GR ability information of network equipment;
Starting module 13, for when the GR ability information of the neighboring net-work device is with GR ability, then starting institute
State the GR process between the network equipment and the neighboring net-work device;
When the GR ability information of the neighboring net-work device is without GR ability, then the network equipment described in No starting
GR process between the neighboring net-work device.
The acquisition module 11, specifically for receiving during obtaining the GR ability information of neighboring net-work device
When to hello packet from neighboring net-work device, class is restarted for indicates support GR ability if carried in hello packet
Type length value Restart TLV, the GR ability information for obtaining the neighboring net-work device is with GR ability;If Hello is reported
The Restart TLV for indicating support GR ability is not carried in text, the GR ability information for obtaining the neighboring net-work device is
Without GR ability.
The acquisition module 11, specifically in the GR ability information for obtaining neighboring net-work device, and by neighbours' net
During the GR ability information of network equipment is stored into non-volatile memory medium, the neighbor networks of current interface connection are obtained
The GR ability information of equipment, and store in the non-volatile memory medium current interface and the GR ability information it
Between corresponding relationship;
The read module 12, specifically for reading the neighboring net-work device from the non-volatile memory medium
GR ability information during, for current interface, from the corresponding relationship of the non-volatile memory medium, described in reading
The corresponding GR ability information of current interface;
The starting module 13, specifically for starting the GR stream between the network equipment and the neighboring net-work device
During GR process between the network equipment described in journey or No starting and the neighboring net-work device, if current interface
Corresponding GR ability information is then to start GR process in the current interface with GR ability;If the corresponding GR of current interface
Ability information is then to forbid starting GR process in the current interface without GR ability.
When the current interface only connects a neighboring net-work device, if the GR energy of one neighboring net-work device
Force information is with GR ability, then the corresponding GR ability information of the current interface is with GR ability, if one neighbour
The GR ability information for occupying the network equipment is without GR ability, then the corresponding GR ability information of the current interface is without GR
Ability;Alternatively, when the current interface connects multiple neighboring net-work devices, if in the multiple neighboring net-work device at least
The GR ability information for having a neighboring net-work device is with GR ability, then the corresponding GR ability information of the current interface is tool
There is GR ability, if the GR ability information of the multiple neighboring net-work device is without GR ability, the current interface
Corresponding GR ability information is without GR ability.
The starting module 13 is also used to starting the GR process between the network equipment and the neighboring net-work device
Later, the first hello packet of Xiang Suoshu neighboring net-work device transmission carrying Restart Request marker bit set, described first
The neighbours carried in hello packet hold time as preset time value, and the preset time value is greater than link state data
The time value of library LSDB synchronization maximum latency;
Receive the second hello packet that confirmation flag position is restarted in carryings from neighboring net-work device, described second
Neighbours' remaining time is carried in hello packet, neighbours' remaining time is that the neighboring net-work device is based on described first
The neighbours carried in hello packet hold time determining;
The maximum duration of GR process is adjusted using the neighbours' remaining time carried in second hello packet;?
When the maximum duration of the GR process reaches, terminate GR process;Alternatively, terminating GR process when LSDB synchronization is completed.
Wherein, the modules of apparatus of the present invention can integrate in one, can also be deployed separately.Above-mentioned module can close
And be a module, multiple submodule can also be further split into.
Through the above description of the embodiments, those skilled in the art can be understood that the present invention can be by
Software adds the mode of required general hardware platform to realize, naturally it is also possible to which by hardware, but in many cases, the former is more
Good embodiment.Based on this understanding, technical solution of the present invention substantially in other words contributes to the prior art
Part can be embodied in the form of software products, which is stored in a storage medium, if including
Dry instruction is used so that a computer equipment (can be personal computer, server or the network equipment etc.) executes this hair
Method described in bright each embodiment.It will be appreciated by those skilled in the art that attached drawing is the schematic diagram of a preferred embodiment,
Module or process in attached drawing are not necessarily implemented necessary to the present invention.
It will be appreciated by those skilled in the art that the module in device in embodiment can describe be divided according to embodiment
It is distributed in the device of embodiment, corresponding change can also be carried out and be located in one or more devices different from the present embodiment.On
The module for stating embodiment can be merged into a module, can also be further split into multiple submodule.The embodiments of the present invention
Serial number is for illustration only, does not represent the advantages or disadvantages of the embodiments.
Disclosed above is only several specific embodiments of the invention, and still, the present invention is not limited to this, any ability
What the technical staff in domain can think variation should all fall into protection scope of the present invention.
Claims (10)
1. a kind of starting method of smooth restarting GR process, which is characterized in that the described method includes:
The network equipment before restart, obtains the GR ability information of neighboring net-work device, and by the neighboring net-work device
GR ability information store into non-volatile memory medium;
The network equipment after rebooting, reads the neighboring net-work device from the non-volatile memory medium
GR ability information;
When the GR ability information of the neighboring net-work device is with GR ability, then the network equipment starts the network and sets
The standby GR process between the neighboring net-work device;
When the GR ability information of the neighboring net-work device is without GR ability, then described in the network equipment No starting
GR process between the network equipment and the neighboring net-work device.
2. the method according to claim 1, wherein the network equipment obtains the GR ability of neighboring net-work device
The process of information, specifically includes:
The network equipment is when receiving from the hello packet of the neighboring net-work device, if in the hello packet
The Restart Type length value Restart TLV for indicating support GR ability is carried, then the network equipment obtains the neighbours
The GR ability information of the network equipment is with GR ability;If do not carried in the hello packet for indicating to support GR ability
Restart TLV, then the network equipment obtain the neighboring net-work device GR ability information be without GR ability.
3. method according to claim 1 or 2, which is characterized in that
The network equipment obtains the GR ability information of neighboring net-work device, and by the GR ability information of the neighboring net-work device
Store the process in non-volatile memory medium, specifically include: the network equipment obtains neighbours' net of current interface connection
The GR ability information of network equipment, and the current interface and the GR ability information are stored in the non-volatile memory medium
Between corresponding relationship;
The network equipment reads the mistake of the GR ability information of the neighboring net-work device from the non-volatile memory medium
Journey specifically includes: being directed to current interface, the network equipment is read from the corresponding relationship of the non-volatile memory medium
The corresponding GR ability information of the current interface;
The network equipment starts GR process or No starting institute between the network equipment and the neighboring net-work device
The process for stating the GR process between the network equipment and the neighboring net-work device, specifically includes: if the corresponding GR of current interface
Ability information is with GR ability, then the network equipment starts GR process in the current interface;If current interface is corresponding
GR ability information be without GR ability, then the network equipment is forbidden starting GR process in the current interface.
4. according to the method described in claim 3, it is characterized in that,
When the current interface only connects a neighboring net-work device, if the GR ability of one neighboring net-work device is believed
Breath is with GR ability, then the corresponding GR ability information of the current interface is with GR ability, if one neighbours' net
The GR ability information of network equipment is without GR ability, then the corresponding GR ability information of the current interface is without GR energy
Power;Alternatively, when the current interface connects multiple neighboring net-work devices, if in the multiple neighboring net-work device at least
The GR ability information of one neighboring net-work device be with GR ability, then the corresponding GR ability information of the current interface be with
GR ability, if the GR ability information of the multiple neighboring net-work device is without GR ability, the current interface pair
The GR ability information answered is without GR ability.
5. the method according to claim 1, wherein the network equipment starts the network equipment and the neighbour
After occupying the GR process between the network equipment, the method further includes:
The network equipment sends the first hello packet for carrying the set of Restart Request marker bit to the neighboring net-work device,
The neighbours carried in first hello packet hold time as preset time value, and the preset time value is greater than link
The time value of slip condition database LSDB synchronization maximum latency;
The network equipment receives the second hello packet that confirmation flag position position is restarted in the carrying from neighboring net-work device,
Neighbours' remaining time is carried in second hello packet, neighbours' remaining time is that the neighboring net-work device is based on institute
State the neighbours carried in the first hello packet hold time it is determining;
The network equipment is continued using the maximum that the neighbours' remaining time carried in second hello packet adjusts GR process
Time;When reaching the maximum duration of the GR process, the network equipment terminates GR process;Alternatively, in LSDB synchronization
When completion, the network equipment terminates GR process.
6. a kind of starter of smooth restarting GR process, which is characterized in that the starter of the GR process is applied in network
In equipment, and the starter of the GR process specifically includes:
Module is obtained, for before restart, obtains the GR ability information of neighboring net-work device, and by the neighbor networks
The GR ability information of equipment is stored into non-volatile memory medium;
Read module, for after rebooting, the neighboring net-work device being read from the non-volatile memory medium
GR ability information;
Starting module, for when the GR ability information of the neighboring net-work device is with GR ability, then starting the network
GR process between equipment and the neighboring net-work device;
When the GR ability information of the neighboring net-work device is without GR ability, then the network equipment described in No starting and institute
State the GR process between neighboring net-work device.
7. device according to claim 6, which is characterized in that
The acquisition module, specifically for being come from receiving during obtaining the GR ability information of neighboring net-work device
When the hello packet of the neighboring net-work device, if carrying the Restart Type for indicating support GR ability in hello packet
Length value Restart TLV, the GR ability information for obtaining the neighboring net-work device is with GR ability;If hello packet
In do not carry for indicate support GR ability Restart TLV, obtain the neighboring net-work device GR ability information be not
With GR ability.
8. device according to claim 6 or 7, which is characterized in that
The acquisition module, specifically in the GR ability information for obtaining neighboring net-work device, and by the neighboring net-work device
GR ability information store into non-volatile memory medium during, obtain the neighboring net-work device of current interface connection
GR ability information, and pair between the current interface and the GR ability information is being stored in the non-volatile memory medium
It should be related to;
The read module, specifically in the GR energy for reading the neighboring net-work device from the non-volatile memory medium
During force information, for current interface, from the corresponding relationship of the non-volatile memory medium, reading is described currently to be connect
The corresponding GR ability information of mouth;
The starting module, specifically for start GR process between the network equipment and the neighboring net-work device or
During GR process between the network equipment described in No starting and the neighboring net-work device, if current interface is corresponding
GR ability information is then to start GR process in the current interface with GR ability;If the corresponding GR ability letter of current interface
Breath is then to forbid starting GR process in the current interface without GR ability.
9. device according to claim 8, which is characterized in that
When the current interface only connects a neighboring net-work device, if the GR ability of one neighboring net-work device is believed
Breath is with GR ability, then the corresponding GR ability information of the current interface is with GR ability, if one neighbours' net
The GR ability information of network equipment is without GR ability, then the corresponding GR ability information of the current interface is without GR energy
Power;Alternatively, when the current interface connects multiple neighboring net-work devices, if in the multiple neighboring net-work device at least
The GR ability information of one neighboring net-work device be with GR ability, then the corresponding GR ability information of the current interface be with
GR ability, if the GR ability information of the multiple neighboring net-work device is without GR ability, the current interface pair
The GR ability information answered is without GR ability.
10. device according to claim 6, which is characterized in that
The starting module is also used to after starting the GR process between the network equipment and the neighboring net-work device,
The first hello packet for carrying the set of Restart Request marker bit, first hello packet are sent to the neighboring net-work device
The neighbours of middle carrying hold time as preset time value, and the preset time value is greater than link state database LSDB synchronization
The time value of maximum latency;
Receive the second hello packet that confirmation flag position position is restarted in the carrying from neighboring net-work device, the 2nd Hello
Neighbours' remaining time is carried in message, neighbours' remaining time is that the neighboring net-work device is reported based on the first Hello
The neighbours carried in text hold time determining;
The maximum duration of GR process is adjusted using the neighbours' remaining time carried in second hello packet;Described
When the maximum duration of GR process reaches, terminate GR process;Alternatively, terminating GR process when LSDB synchronization is completed.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510590151.1A CN105591892B (en) | 2015-09-16 | 2015-09-16 | A kind of starting method and apparatus of smooth restarting process |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510590151.1A CN105591892B (en) | 2015-09-16 | 2015-09-16 | A kind of starting method and apparatus of smooth restarting process |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105591892A CN105591892A (en) | 2016-05-18 |
CN105591892B true CN105591892B (en) | 2019-06-07 |
Family
ID=55931136
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510590151.1A Active CN105591892B (en) | 2015-09-16 | 2015-09-16 | A kind of starting method and apparatus of smooth restarting process |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105591892B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107463419B (en) * | 2017-09-21 | 2021-01-26 | 青岛海信移动通信技术股份有限公司 | Application restarting method and device and computer readable storage medium |
CN109413164B (en) * | 2018-10-09 | 2022-04-22 | 郑州云海信息技术有限公司 | Access service recovery method, device, equipment and readable storage medium |
CN112350928B (en) * | 2020-10-14 | 2022-09-30 | 杭州迪普科技股份有限公司 | OSPF (open shortest Path first) protocol-based smooth restart method and device |
CN113179211B (en) * | 2021-04-23 | 2024-04-09 | 北京汇钧科技有限公司 | Method and device for routing and for setting up a communication connection |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7406030B1 (en) * | 2003-08-25 | 2008-07-29 | Juniper Networks, Inc. | Dynamic renegotiation of graceful restart time to avoid double-failure traffic loss |
CN101860477A (en) * | 2010-04-20 | 2010-10-13 | 北京星网锐捷网络技术有限公司 | Method and device for processing exception in elegant restart |
CN102170399A (en) * | 2011-05-17 | 2011-08-31 | 中兴通讯股份有限公司 | Keep-alive time regulation method, device and system |
CN102769571A (en) * | 2012-07-30 | 2012-11-07 | 杭州华三通信技术有限公司 | Graceful restart realization method and equipment |
CN103227792A (en) * | 2013-04-26 | 2013-07-31 | 杭州华三通信技术有限公司 | Method and equipment for achieving GR in IS-IS network |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070253434A1 (en) * | 2006-05-01 | 2007-11-01 | Oswal Anand K | Performing A Graceful Restart Operation For Wimax Network Protocols |
CN102624635B (en) * | 2012-04-23 | 2014-12-24 | 杭州华三通信技术有限公司 | Method and device for realizing graceful restart |
-
2015
- 2015-09-16 CN CN201510590151.1A patent/CN105591892B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7406030B1 (en) * | 2003-08-25 | 2008-07-29 | Juniper Networks, Inc. | Dynamic renegotiation of graceful restart time to avoid double-failure traffic loss |
CN101860477A (en) * | 2010-04-20 | 2010-10-13 | 北京星网锐捷网络技术有限公司 | Method and device for processing exception in elegant restart |
CN102170399A (en) * | 2011-05-17 | 2011-08-31 | 中兴通讯股份有限公司 | Keep-alive time regulation method, device and system |
CN102769571A (en) * | 2012-07-30 | 2012-11-07 | 杭州华三通信技术有限公司 | Graceful restart realization method and equipment |
CN103227792A (en) * | 2013-04-26 | 2013-07-31 | 杭州华三通信技术有限公司 | Method and equipment for achieving GR in IS-IS network |
Non-Patent Citations (2)
Title |
---|
Restart Signaling for Intermediate System to Intermediate System (IS-IS);M. Shand and L. Ginsberg;《IETF RFC 3847》;20040731;全文 |
Restart Signaling for IS-IS;M. Shand and L. Ginsberg;《IETF RFC 5306》;20081031;第3.2节 |
Also Published As
Publication number | Publication date |
---|---|
CN105591892A (en) | 2016-05-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102035676B (en) | ARP (Address Resolution Protocol) interaction based method and equipment for detecting and recovering link fault | |
CN105591892B (en) | A kind of starting method and apparatus of smooth restarting process | |
CN111294281B (en) | Communication method and device based on Service Function Chain (SFC) | |
KR20090030320A (en) | Mobile ad-hoc network(manet) and method for implementing mutiple paths for fault tolerance | |
CN109218456B (en) | Method and device for processing aging time of MAC address table | |
CN102546427B (en) | OSPF (Open Shortest Path First) protocol-based graceful restart (GR) method and router | |
CN103763750B (en) | Method for fast achieving packet forwarding in wireless ad hoc network of TDMA protocol | |
EP3166264A1 (en) | Isis-based routing calculation method and device | |
CN105591798A (en) | Method and device for transmitting OAM information in DCN | |
WO2021135419A1 (en) | Method and apparatus for updating routing information, computer device, and storage medium | |
EP3496431B1 (en) | Message transmission method and apparatus | |
CN103188171B (en) | A kind of method for dispatching message and equipment | |
CN108737006A (en) | A kind of method for synchronizing time, client and computer readable storage medium | |
CN105227458B (en) | The route computing method and device of TRILL ISIS | |
CN103188120A (en) | Detection method for packet loss of multicast business and device thereof | |
CN109379239B (en) | Method and device for configuring access switch in OpenStack environment | |
CN101431471A (en) | LSP packet transmission method, equipment and system | |
CN109995649B (en) | Method and device for acquiring cross-domain link | |
CN111817953A (en) | Method and device for electing master equipment based on Virtual Router Redundancy Protocol (VRRP) | |
US20180069830A1 (en) | Method and System for Reducing PIM Protocol DR Change | |
CN114430310A (en) | Information processing method and device, broadband access server and storage medium | |
CN101848169B (en) | Message forwarding method in cluster management and exchanger | |
CN106453080B (en) | Tracing method and device for link state clearing message | |
CN101719878B (en) | Method and equipment for route advertisement optimization and route selection | |
CN107070787B (en) | Default route revocation method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No. Applicant after: Xinhua three Technology Co., Ltd. Address before: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No. Applicant before: Huasan Communication Technology Co., Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |