CN108924044A - Link maintains method, PE equipment and readable storage medium storing program for executing - Google Patents
Link maintains method, PE equipment and readable storage medium storing program for executing Download PDFInfo
- Publication number
- CN108924044A CN108924044A CN201810657602.2A CN201810657602A CN108924044A CN 108924044 A CN108924044 A CN 108924044A CN 201810657602 A CN201810657602 A CN 201810657602A CN 108924044 A CN108924044 A CN 108924044A
- Authority
- CN
- China
- Prior art keywords
- equipment
- timer
- routing protocol
- maintains
- link
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
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
-
- 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/22—Alternate routing
-
- 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/24—Multipath
-
- 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/50—Routing or path finding of packets in data switching networks using label swapping, e.g. multi-protocol label switch [MPLS]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The embodiment of the present application provides a kind of link and maintains method, PE equipment and readable storage medium storing program for executing, this method to include:After message transmissions path of the local end PE equipment between judgement and opposite end PE equipment is switched to backup link, whether the Routing Protocol of the primary link between judgement and the opposite end PE equipment maintains timer overtime;Before the Routing Protocol maintains timer expiry, the local end PE equipment resets the Routing Protocol according to default adjustment rule and maintains timer, to maintain the corresponding routing iinformation of the primary link.Thus, before the Routing Protocol of primary link maintains timer expiry, it resets the Routing Protocol and maintains timer, so that the corresponding routing iinformation of primary link is maintained not to be deleted in the timing that Routing Protocol maintains timer, to guarantee that the routing iinformation of backup link is not deleted, allow to carry out the normal transmission of message by backup link, and then guarantee that message forwarding is not disrupted, improves the validity of message transmissions.
Description
Technical field
This application involves fields of communication technology, maintain method, PE equipment and readable storage in particular to a kind of link
Medium.
Background technique
With the further development of Internet informationization, the water of conventional telecommunication network must be reached in network reliability
It is flat, it is desirable that the master backup link switchover time within 50ms, in order to ensure multiprotocol label switching (Multi-Protocol
Label Switching, abbreviation MPLS) network reliability, generally use the quick Reroute techniques of MPLS, usual MPLS
The ability quickly switched is provided for entire label switching path LSP by quick Reroute techniques in L3VPN network, protects LSP
It is not influenced by the failure of link and node.When an error occurs, detect that the equipment of link or nodes break down can be fast
Business is switched on backup link by speed from faulty link (i.e. the primary links of message transmissions), thus by the primary link of message transmissions
It switches to backup link to be transmitted, to reduce loss of data.
In the prior art, after MPLS forwarding failure occurs in primary link, rapid rerouting mechanism, message forwarding path are based on
Backup link will be switched to, while primary link causes routing iinformation to be deleted due to failure, thus relies on the routing letter of primary link
The routing iinformation of the backup link of breath can be also deleted, after the routing iinformation for deleting backup link, because cannot obtain in time standby
The routing iinformation of part link, and cause the technical issues of can not carrying out message normal transmission by backup link.
Summary of the invention
A kind of link of being designed to provide of the embodiment of the present application maintains method, PE equipment and readable storage medium storing program for executing.
In a first aspect, the embodiment of the present application provides a kind of link maintenance method, the method includes:Local end PE equipment exists
After message transmissions path between judgement and opposite end PE equipment is switched to backup link, between judgement and the opposite end PE equipment
Whether the Routing Protocol of primary link maintains timer overtime;Before the Routing Protocol maintains timer expiry, the local end PE
Equipment resets the Routing Protocol according to default adjustment rule and maintains timer, to maintain the corresponding routing letter of the primary link
Breath.As a result, before the Routing Protocol of primary link maintains timer expiry, resets the Routing Protocol and maintain timer, so that
Routing Protocol maintains that the corresponding routing iinformation of primary link is maintained not to be deleted in the timing of timer, to ensure that routing
The routing iinformation of backup link is not also deleted after agreement maintains timer to be reset, and allows to carry out by backup link
The normal transmission of message, and then guarantee that message forwarding is not disrupted, the validity of message transmissions is improved, is efficiently solved existing
Can lead to not in some cases because of the routing iinformation that cannot obtain backup link in time in technology by backup link into
The technical issues of row message normal transmission.
Further, before the Routing Protocol maintains timer expiry, the local end PE equipment is advised according to default adjustment
It then resets the Routing Protocol and maintains timer, including:Whenever the Routing Protocol maintains the timing time of timer to reach in advance
If after the duration, the local end PE equipment judges whether that the primary link for receiving the opposite end PE equipment transmission is corresponding
Keep alive Packet is routed, if not, the local end PE equipment, which resets the Routing Protocol according to default adjustment rule, maintains timer
Timing;The local end PE equipment maintains the corresponding routing iinformation of the primary link not deleted in new timing
It removes.After the Routing Protocol maintains the timing arrival preset durations of timer, the local end PE equipment is not connect also
When receiving the routing keep alive Packet of opposite end PE equipment transmission, then the timing that the Routing Protocol maintains timer is reset, from
And guarantee that the corresponding routing iinformation of primary link is not deleted in new timing, that is, it ensure that the routing iinformation of backup link
There is also allow to carry out the normal transmission of message by backup link, and then guarantee that message forwarding is not disrupted, improve
The validity of message transmissions, efficiently solve in the prior art in some cases can be because of cannot obtain backup link in time
Routing iinformation leads to not the technical issues of carrying out message normal transmission by backup link.
Further, the Routing Protocol is reset according to default adjustment rule in the local end PE equipment maintain timer
After timing, the method also includes:The local end PE equipment is by the preset durations according to adjusted described
Routing Protocol maintains the timing of timer to be adjusted.By by the preset durations according to the road adjusted
It maintains the timing of timer to be adjusted by agreement, allows to maintain the new timing of timer in Routing Protocol
It inside also can guarantee that the corresponding routing iinformation of primary link is not deleted.
Further, the method also includes:Before the Routing Protocol maintains timer expiry, the local end PE equipment
When receiving the corresponding routing keep alive Packet of the primary link that the opposite end PE equipment is sent, the local end PE equipment will described in
Message transmissions path switches to the primary link from the backup link, and the Routing Protocol for restoring the primary link maintains timer
Timing to initial value.I.e. detect primary link restore in normal condition, then path is switched into primary link, will reported
Text is transmitted through primary link.
Second aspect, the embodiment of the present application provide a kind of PE equipment, including:
Detection module is sentenced after being switched to backup link for the message transmissions path between judgement and opposite end PE equipment
Whether the Routing Protocol of the primary link between the disconnected and described opposite end PE equipment maintains timer overtime;
Maintenance module is routed, for being reset before the Routing Protocol maintains timer expiry according to default adjustment rule
The Routing Protocol maintains timer, to maintain the corresponding routing iinformation of the primary link.
Further, the routing maintenance module, specifically for whenever the timing of Routing Protocol maintenance timer
Between reach preset durations after, judge whether to receive the corresponding routing guarantor of the primary link that the opposite end PE equipment is sent
Message living, if not, resetting the timing that the Routing Protocol maintains timer according to default adjustment rule;In new timing
The corresponding routing iinformation of the primary link is maintained not to be deleted in time.
Further, the PE equipment further includes:
Time regulating module, for the preset durations to be maintained timer according to the Routing Protocol adjusted
Timing be adjusted.
Further, the PE equipment further includes:
Link switching module, for receiving the opposite end PE equipment before the Routing Protocol maintains timer expiry
When the corresponding routing keep alive Packet of the primary link sent, the message transmissions path is switched into institute from the backup link
Primary link is stated, the Routing Protocol for restoring the primary link maintains the timing of timer to initial value.
The third aspect, the embodiment of the present application provide a kind of PE equipment, including processor and memory, and the memory is deposited
Computer-readable instruction fetch is contained, when the computer-readable instruction fetch is executed by the processor, operation such as above-mentioned first
The step in the method that aspect provides.
Fourth aspect, the embodiment of the present application provide a kind of readable storage medium storing program for executing, are stored thereon with computer program, the meter
The step in the method that first aspect offer is as above provided is run when calculation machine program is executed by processor.
The embodiment of the present application provides a kind of link and method, PE equipment and readable storage medium storing program for executing, this method is maintained to pass through local terminal
After message transmissions path of the PE equipment between judgement and opposite end PE equipment is switched to backup link, judgement is set with the opposite end PE
Whether the Routing Protocol of the primary link between standby maintains timer overtime, before the Routing Protocol maintains timer expiry, institute
It states local end PE equipment and resets the Routing Protocol maintenance timer according to default adjustment rule, to maintain the primary link corresponding
Routing iinformation.As a result, before the Routing Protocol of primary link maintains timer expiry, resets the Routing Protocol and maintains timer,
So that maintaining the corresponding routing iinformation of primary link not to be deleted in the timing that Routing Protocol maintains timer, to guarantee
The routing iinformation of backup link is not also deleted after Routing Protocol maintains timer to be reset, and allows to pass through backup chain
Road carries out the normal transmission of message, and then guarantees that message forwarding is not disrupted, and improves the validity of message transmissions, effectively solves
In the prior art it can lead to not pass through backup because of the routing iinformation that cannot obtain backup link in time in some cases
Link carries out the technical issues of message normal transmission.
Other feature and advantage of the application will be illustrated in subsequent specification, also, partly be become from specification
It is clear that by implementing the embodiment of the present application understanding.The purpose of the application and other advantages can be by written theorys
Specifically noted structure is achieved and obtained in bright book, claims and attached drawing.
Detailed description of the invention
Technical solution in ord to more clearly illustrate embodiments of the present application, below will be to needed in the embodiment attached
Figure is briefly described, it should be understood that the following drawings illustrates only some embodiments of the application, therefore is not construed as pair
The restriction of range for those of ordinary skill in the art without creative efforts, can also be according to this
A little attached drawings obtain other relevant attached drawings.
Fig. 1 is the flow chart that a kind of link provided by the embodiments of the present application maintains method;
Fig. 2 is the application environment schematic diagram that a kind of link provided by the embodiments of the present application maintains method;
Fig. 3 is the structural block diagram that a kind of link provided by the embodiments of the present application maintains;
Fig. 4 is a kind of structural schematic diagram of PE equipment provided by the embodiments of the present application.
Specific embodiment
Below in conjunction with attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete
Ground description, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.Usually exist
The component of the embodiment of the present application described and illustrated in attached drawing can be arranged and be designed with a variety of different configurations herein.Cause
This, is not intended to limit claimed the application's to the detailed description of the embodiments herein provided in the accompanying drawings below
Range, but it is merely representative of the selected embodiment of the application.Based on embodiments herein, those skilled in the art are not being done
Every other embodiment obtained under the premise of creative work out, shall fall in the protection scope of this application.
It should be noted that:Similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi
It is defined in a attached drawing, does not then need that it is further defined and explained in subsequent attached drawing.Meanwhile the application's
In description, term " first ", " second " etc. are only used for distinguishing description, are not understood to indicate or imply relative importance.
In an mpls network, it can be moved by label distribution protocol (Label Distribution Protocol, LDP)
Establish to state a series of active label switched paths to purpose Label Switch Router (Label Switch Router, LSR)
(Label Switch Path, LSP), forms the full-mesh topology structure of logic, and the IP grouping into MPLS network is packaged into
It is forwarded after labeled packet based on high-speed label net.
In order to ensure the reliability of MPLS network, the quick Reroute techniques of MPLS are generallyd use, in MPLS L3VPN network
In usually provide the ability quickly switched by quick Reroute techniques for entire LSP, protect LSP not by link and node therefore
Barrier influences.When an error occurs, detect that the equipment of link or nodes break down can be quickly by business from faulty link
It is switched on backup path, to reduce loss of data.
But in actual MPLS L3VPN application process, entire MPLS network is protected using quick Reroute techniques
Middle link or node failure have that a comparison is serious, although flow can be switched to backup road in which short time
Diameter forwarding, but will not be restrained since the Interior Gateway Protocol IGP of protocol layer dependence can not perceive MPLS forwarding failure routing, side
It is forwarded after the keep alive Packet query routing of boundary's gateway protocol (Label Switch Path, BGP) still through primary link, and
Encapsulate MPLS label, message by being dropped when fault point, if after three keepalive periods primary link do not recover to also just
Normal state then deletes forward-path all on primary link and backup link, and then the converting flow of backup link is caused to interrupt,
If after deleting all forward-paths on primary link, all forward-paths on backup link can synchronization removal so that
Backup link can not carry out the forwarding of message.So to solve the above-mentioned problems, the embodiment of the present application provides a kind of link dimension
Hold method.
Defect present in the above scheme in the prior art, is that inventor is obtaining after practicing and carefully studying
As a result, therefore, the solution that the discovery procedure of the above problem and hereinafter the embodiment of the present application are proposed regarding to the issue above
Scheme all should be the contribution that inventor makes the application during the application.
Fig. 1 is please referred to, Fig. 1 is the flow chart that a kind of link provided by the embodiments of the present application maintains method, the method packet
Include following steps:
Step S110:Message transmissions path of the local end PE equipment between judgement and opposite end PE equipment is switched to backup link
Afterwards, whether the Routing Protocol of the primary link between judgement and the opposite end PE equipment maintains timer overtime.
Step S120:Before the Routing Protocol maintains timer expiry, the local end PE equipment is advised according to default adjustment
It then resets the Routing Protocol and maintains timer, to maintain the corresponding routing iinformation of the primary link.
PE (Provider Edge, provider edge) equipment is the edge device that message transmissions are used in network.
The Routing Protocol run between PE equipment is provided with Routing Protocol and maintains timer (holdtime), under normal circumstances Routing Protocol
Timer is maintained to have a default timing, as long as local end PE equipment receives opposite end before Routing Protocol maintains timer expiry
The routing keep alive Packet that PE equipment is sent, that is, think that corresponding primary link is normal, the corresponding routing iinformation of primary link continues to.
Under normal circumstances route keep alive Packet default sending cycle be Routing Protocol maintain timer default timing three/
One (it is 180s that such as Routing Protocol, which maintains the timing of timer, then the sending cycle for routing keep alive Packet is 60s);Mean
If under normal circumstances local end PE equipment wait three keepalive periods (i.e. Routing Protocol maintains the timer expiry time) not yet
The routing keep alive Packet of opposite end PE equipment transmission is received, the routing iinformation of corresponding primary link can be deleted.It is tieed up in Routing Protocol
Before holding timer expiry, as long as receiving the routing keep alive Packet of opposite end PE equipment transmission, Routing Protocol maintains timer will
It is reset according to default timing, since Routing Protocol maintains timer to be not timed-out, the corresponding routing iinformation of primary link
It will be maintained.
After message transmissions path of the local end PE equipment between judgement and opposite end PE equipment is switched to backup link, main chain
The Routing Protocol on road maintains timer to start to start, and before the Routing Protocol of primary link maintains timer expiry, primary link is corresponding
Routing iinformation will not be deleted.But if not receiving opposite end PE after the Routing Protocol of primary link maintains timer expiry
The routing keep alive Packet that equipment is sent, the corresponding routing iinformation of primary link will be deleted.
If local end PE equipment waits three keepalive periods to receive the road that opposite end PE equipment is sent not yet under normal circumstances
By keep alive Packet, that is, indicate corresponding primary link failure at this time.In embodiments of the present invention, local end PE equipment, which is worked as, detects main chain
After road is broken down, in order to which after Routing Protocol maintains timer expiry, the routing iinformation of primary link can not also be deleted, into
And the routing iinformation of backup link is not also deleted, then before the Routing Protocol maintains timer expiry, if do not received
The routing keep alive Packet that opposite end PE equipment is sent resets the timing that the Routing Protocol maintains timer according to default adjustment rule
Time guarantees that the Routing Protocol maintains timer not time out, to maintain the corresponding routing iinformation of the primary link.
It is illustrated below with reference to Fig. 2, as shown in Fig. 2, local end PE equipment is R1, opposite end PE equipment is R2, and local end PE is set
Primary link between standby R1 and opposite end PE equipment R2 is R1-R3-R2, backup link R1-R2, and the transmission path of message is generally logical
It crosses primary link to be transmitted, when primary link breaks down, message transmissions path is just switched into backup link and is transmitted.
Wherein, local end PE equipment R1, opposite end PE equipment R2 and R3 equipment can be to set for carrying out the network of message forwarding
It is standby, such as router, interchanger.
When the local end PE equipment R1 detects that primary link is in failure, message transmissions path is switched to and is pre-established
The local end PE equipment R1 and the opposite end PE equipment R2 between backup link, and the fault detection approach of primary link is:
Creation has the detection based on label switching path LSP on local end PE equipment R1 or opposite end PE equipment R2 or middle PE equipment R3
Mechanism, the testing mechanism are used for the detection of connectivity of primary link, and when MPLS forwarding failure occurs for primary link, testing mechanism can be with
Notify local end PE equipment R1 that message transmissions path is switched to backup link by the backup chain after quick sensing to failure
Road carries out message forwarding, and the time of master backup link switching is less than 50ms.
Since message is mainly transmitted according to primary link, so the state of moment monitoring primary link is needed, in main chain
When road is restored to normal condition, then message transmissions path is switched into primary link by backup link.
In addition, the BGP Routing Protocol run between local end PE equipment R1 and opposite end PE equipment R2 is previously provided with routing association
View maintains timer, which maintains timer setting to have timing, can guarantee primary link in timing
Routing iinformation is not deleted, and default timing is 180s, local end PE equipment R1 or opposite end PE equipment R2 periodically to main chain
Road carries out keep-alive, even if maintaining primary link before timer expiry to be in malfunction, the routing iinformation of primary link in Routing Protocol
It will not be deleted, if but more than after timing, automatically deleting the routing of primary link, thus the road of backup link
It can also be synchronized to delete by information, at this moment message forwarding be carried out due to having switched to backup link, since backup link does not have road
By, then message still can not forward, so, in order to solve this problem, in the embodiment of the present application, sentence in local end PE equipment R1
Before the Routing Protocol of primary link between the disconnected and described opposite end PE equipment R2 maintains timer expiry, assisted by resetting the routing
View maintains timer to guarantee that the routing of primary link is not deleted, and then backup chain so that the routing iinformation of primary link can also be maintained
The routing iinformation on road can also exist always, enable message to carry out normal transmission by backup link, message transmissions are not by
It is disconnected.Also, when message transmissions path is switched back into primary link, the routing iinformation of primary link can also be obtained in time, so that report
Text also can carry out normal transmission by primary link, guarantee that message transmissions are not disrupted.
When local end PE equipment R1 detects that primary link breaks down, then message transmissions path is switched into backup link,
The Routing Protocol in local end PE equipment R1 maintains timer to start timing simultaneously, then judges whether Routing Protocol maintains timer
Time-out judges whether the routing keep alive Packet for receiving opposite end PE equipment R2 transmission, if maintaining timing in the Routing Protocol
Before device time-out, the routing keep alive Packet of opposite end PE equipment R2 transmission is not received from primary link, illustrates that primary link does not restore also
To normal condition, i.e. primary link is still in malfunction, then local end PE equipment R1 resets the road according to default adjustment rule
Timer is maintained by agreement, i.e., maintains the timing of timer according to Routing Protocol described in default adjustment rule adjustment, with
The routing iinformation of primary link is maintained not to be deleted in new timing.
Start Routing Protocol on primary link after testing mechanism detects that primary link breaks down and maintain timer, is defaulting
In the case of Routing Protocol maintain timer timing initially set be 180s, in order to Routing Protocol maintain timer expiry
Afterwards, the routing iinformation of primary link can not also be deleted, and then the routing iinformation of backup link is not also deleted, and be protected in third
If local end PE equipment R1 receives the routing keep alive Packet of opposite end PE equipment R2 transmission not yet before the period living reaches, that is, indicate this
When primary link be in malfunction, i.e., before the Routing Protocol maintains timer expiry, weighed according to default adjustment rule
Set the timing that the Routing Protocol maintains timer, i.e., before the Routing Protocol maintains timer to become 0 from 180s,
It at this time can be by maintaining the timing of timer to be set to new timing such as 120s, i.e. Routing Protocol again Routing Protocol
The new timing for maintaining timer is 120s (at this point, time keepalive period also will such as become 40s with adjustment), thus
The corresponding routing iinformation of the primary link is continued in new timing, to guarantee the corresponding routing iinformation of primary link
It is not deleted, so that the routing iinformation of backup link also keeps not being deleted, malfunction is in primary link, by message
When transmission path switches to backup link, it ensure that there is also allow to pass through backup link for the routing iinformation of backup link
The normal transmission of message is carried out, and then guarantees that message forwarding is not disrupted, the validity of message transmissions is improved, efficiently solves
It can lead to not pass through backup chain because of the routing iinformation that cannot obtain backup link in time in some cases in the prior art
Road carries out the technical issues of message normal transmission.
Wherein, local end PE equipment R1 periodically detects the state of primary link, for example, the Routing Protocol in 180s is tieed up
The routing keep alive Packet for whether receiving PE equipment R2 transmission in opposite end in the timing time of timer over the primary link is held, to judge
Whether primary link restores normal;The default sending cycle that ordinary circumstance situation routes keep alive Packet is that Routing Protocol maintains timer
The one third of timing.Local end PE equipment R1 can be by first keepalive period 60s, second keepalive period accumulative warp
It crosses after 120s and does not receive the routing keep alive Packet of opposite end PE equipment R2 transmission, then it represents that primary link is still in malfunction, then
It can be before Routing Protocol maintains timer expiry, i.e., before timer timing to 180s, according to default adjustment rule resetting institute
It states Routing Protocol and maintains timer, to maintain the corresponding routing iinformation of the primary link.
For example, Routing Protocol maintain timer timing time reach 120s after and do not reach 180s before, primary link
Normal condition is not recovered to also, then in order to guarantee that the routing iinformation of primary link is not deleted, maintains timing in the Routing Protocol
Before device time-out, the timing of timer setting is maintained to reset Routing Protocol, as Routing Protocol is maintained timer
Timing resets to 180s, at this point, the Routing Protocol after resetting maintains the new timing of timer to become 180s, if
Primary link does not recover to normal condition also in this 180s, then continues to reset again, until primary link is restored to normal condition.
In addition, in order to maintain the timing time of timer to be monitored Routing Protocol, so that remaining fixed in Routing Protocol
When device time-out before, in time to Routing Protocol maintain timer reset, to maintain the corresponding routing iinformation of primary link, institute
With after the Routing Protocol maintains the timing time arrival preset durations of timer, the local end PE equipment R1 sentences
The disconnected corresponding routing keep alive Packet of the primary link for whether receiving the opposite end PE equipment R2 and sending, if not, described
PE equipment R1 is held to reset the timing that the Routing Protocol maintains timer according to default adjustment rule;The local end PE equipment
R1 maintains the corresponding routing iinformation of the primary link not to be deleted in new timing.
Specifically, local end PE equipment R1 Routing Protocol maintain timer timing in detection primary link whether from therefore
Barrier state is restored to normal condition, wherein and the keepalive period according to setting, which detects whether to receive, routes keep alive Packet, for example, if
Preset durations are equal to 2/3rds that Routing Protocol maintains the timing of timer, that is, pass through two keepalive periods, this
When, if local end PE equipment R1 does not receive the corresponding routing keep-alive report of the primary link that the opposite end PE equipment R2 is sent also
Text, then the local end PE equipment R1 resets the timing that the Routing Protocol maintains timer according to default adjustment rule;Institute
State local end PE equipment R1 maintains the corresponding routing iinformation of the primary link not to be deleted in new timing.Assisted in routing
View maintains timer timing time after 120s is to be kept to 60s from 180s, by its timing according to default adjustment rule weight
Set the time being set to again greater than 60s.
As an implementation, in order to maintain timer to reset Routing Protocol in time, to prevent due to not right
Routing Protocol, which maintains timer to carry out resetting in time, causes the routing iinformation of primary link to be deleted, so, it can be in timing
In the first two keepalive period, when such as 120s, go whether detection primary link restores normal condition, if main chain after two keepalive periods
Malfunction is not restored on road also, i.e., main after the Routing Protocol maintains the timing time of timer to reach preset durations
Link does not restore malfunction also, then when will reset the timing of the Routing Protocol maintenance timer according to default adjustment rule
Between, such as timing time is adjusted to 360s, i.e., maintains timer timing time to be kept to 60s from 180s by 120s in Routing Protocol
Afterwards, its timing is set to 360s again, then it is 360s that Routing Protocol, which maintains the new timing of timer,.
In addition, if 180s is adjusted to 360s, then having elongated keep-alive if directly adjusting timing time to a biggish value
In the period (keepalive period is accordingly adjusted to 120s), if detecting, primary link has been restored to normal condition when timing is to 190s, this
When, message transmissions path switches back into primary link from backup link, then closes Routing Protocol and maintain timer, restoration route agreement dimension
The timing of timer is held as default timing, while keepalive period is also with adjustment.
Specifically, for example, being remained after the timing time of Routing Protocol maintenance timer passes through two keepalive period 120s
Remaining timing is 60s, if primary link is in malfunction, the Routing Protocol is maintained to the timing of timer
Such as increase by benchmark multiple rank increment of 30s, (180s-120s)+30s;(90s-60s)+60s;(90s-60s)+
90s ... ... such as the first time adjusts 180s to 90s, and it is 90s that Routing Protocol, which maintains the new timing of timer, at this time, if
Preset durations are 2/3rds of new timing, so, 90s points are then three guarantors by preset durations 60s
Period living continues to detect the state of primary link, if primary link is in failure shape afterwards in second period (i.e. 60S)
State, i.e., the described Routing Protocol maintain the timing time of timer after 60s (timing residue 30s), and primary link is still located
In malfunction, then 90s will be adjusted to the time second, i.e. the new timing of resetting Routing Protocol maintenance timer is
90s, so, preset durations remain as 60s, then third time will be adjusted to 120s the time, at this point, i.e. resetting Routing Protocol dimension
The new timing for holding timer is 120s, so, preset durations 80s, and so on.
Based on foregoing description, those skilled in the art are it will already have become clear that local end PE equipment R1 can be based on described
It holds the Routing Protocol in the PE equipment R1 and opposite end PE equipment R2 to maintain timer, maintains the corresponding routing letter of the primary link
Always in state is not deleted, i.e. the routing iinformation of primary link can exist breath always, then guarantee the routing letter of backup link
Breath also always exists, in this way when primary link is in malfunction, so that it may obtain backup link routing iinformation in time, and then make
Normal transmission can be carried out by backup link by obtaining message, and when primary link is restored to normal condition, primary link can also continue
Carry out the normal transmission of message.
In addition, the local end PE equipment R1 receives the opposite end PE before the Routing Protocol maintains timer expiry
When the corresponding routing keep alive Packet of the primary link that equipment R2 is sent, the local end PE equipment R1 is by the message transmissions path
The primary link is switched to from the backup link, the Routing Protocol for restoring the primary link maintains the timing of timer to arrive
Initial value, such as 180s.
Referring to figure 3., Fig. 3 is a kind of structural block diagram of PE equipment 200 provided by the embodiments of the present application, the PE equipment packet
It includes:
Detection module 210, after being switched to backup link for the message transmissions path between judgement and opposite end PE equipment,
Whether the Routing Protocol of the primary link between judgement and the opposite end PE equipment maintains timer overtime;
Maintenance module 220 is routed, is used for before the Routing Protocol maintains timer expiry, according to default adjustment rule weight
It sets the Routing Protocol and maintains timer, to maintain the corresponding routing iinformation of the primary link.
As an implementation, the routing maintenance module 220 is specifically used for whenever the Routing Protocol maintains timing
After the timing time of device reaches preset durations, judge whether to receive the primary link pair that the opposite end PE equipment is sent
The routing keep alive Packet answered, if not, resetting the timing that the Routing Protocol maintains timer according to default adjustment rule;
The corresponding routing iinformation of the primary link is maintained not to be deleted in new timing.
As an implementation, the PE equipment further includes:
Time regulating module, for the preset durations to be maintained timer according to the Routing Protocol adjusted
Timing be adjusted.
As an implementation, the PE equipment further includes:
Link switching module, for receiving the opposite end PE equipment before the Routing Protocol maintains timer expiry
When the corresponding routing keep alive Packet of the primary link sent, the local end PE equipment is by the message transmissions path from described standby
For part link switching to the primary link, the Routing Protocol for restoring the primary link maintains the timing of timer to initial value.
Referring to figure 4., Fig. 4 is a kind of structural schematic diagram of PE equipment provided by the embodiments of the present application, which can be with
Including:At least one processor 410, such as CPU, at least one communication interface 420, at least one processor 430 and at least one
A communication bus 440.Wherein, communication bus 440 is for realizing the direct connection communication of these components.Wherein, the application is implemented
The communication interface 420 of equipment is used to carry out the communication of signaling or data with other node devices in example.Memory 430 can be height
Fast RAM memory is also possible to non-labile memory (non-volatile memory), and a for example, at least disk is deposited
Reservoir.Memory 430 optionally can also be that at least one is located remotely from the storage device of aforementioned processor.In memory 430
It is stored with computer-readable instruction fetch, and has computer-readable instruction fetch luck row above-mentioned in the execution memory 430 of processor 410
Link maintenance method in step.
The embodiment of the present application also provides a kind of readable storage medium storing program for executing, is stored thereon with computer program, the computer journey
The step in the link maintenance method as above stated is run when sequence is executed by processor.
It is apparent to those skilled in the art that for convenience and simplicity of description, the device of foregoing description
Specific work process, no longer can excessively be repeated herein with reference to the corresponding process in preceding method.
In conclusion the embodiment of the present application, which provides a kind of link, maintains method, PE equipment and readable storage medium storing program for executing, this method
After being switched to backup link by message transmissions path of the local end PE equipment between judgement and opposite end PE equipment, judgement with it is described
Whether the Routing Protocol of the primary link between the PE equipment of opposite end maintains timer overtime, maintains timer super in the Routing Protocol
Shi Qian, the local end PE equipment resets the Routing Protocol according to default adjustment rule and maintains timer, to maintain the main chain
The corresponding routing iinformation in road.As a result, before the Routing Protocol of primary link maintains timer expiry, resets the Routing Protocol and maintain
Timer, so that the corresponding routing iinformation of primary link is maintained not to be deleted in the timing that Routing Protocol maintains timer,
To ensure that the routing iinformation of backup link is not also deleted after Routing Protocol maintains timer to be reset, allow to lead to
The normal transmission that backup link carries out message is crossed, and then guarantees that message forwarding is not disrupted, improves the validity of message transmissions,
Efficiently solving can lead to not in the prior art because of the routing iinformation that cannot obtain backup link in time in some cases
The technical issues of carrying out message normal transmission by backup link.
In several embodiments provided herein, it should be understood that disclosed device and method can also pass through
Other modes are realized.The apparatus embodiments described above are merely exemplary, for example, flow chart and block diagram in attached drawing
Show the device of multiple embodiments according to the application, the architectural framework in the cards of method and computer program product,
Function and operation.In this regard, each box in flowchart or block diagram can represent the one of a module, section or code
Part, a part of the module, section or code, which includes that one or more is for implementing the specified logical function, to be held
Row instruction.It should also be noted that function marked in the box can also be to be different from some implementations as replacement
The sequence marked in attached drawing occurs.For example, two continuous boxes can actually be basically executed in parallel, they are sometimes
It can execute in the opposite order, this depends on the function involved.It is also noted that every in block diagram and or flow chart
The combination of box in a box and block diagram and or flow chart can use the dedicated base for executing defined function or movement
It realizes, or can realize using a combination of dedicated hardware and computer instructions in the system of hardware.
In addition, each functional module in each embodiment of the application can integrate one independent portion of formation together
Point, it is also possible to modules individualism, an independent part can also be integrated to form with two or more modules.
It, can be with if the function is realized and when sold or used as an independent product in the form of software function module
It is stored in a computer readable storage medium.Based on this understanding, the technical solution of the application is substantially in other words
The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a
People's computer, server or network equipment etc.) execute each embodiment the method for the application all or part of the steps.
And storage medium above-mentioned includes:USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited
The various media that can store program code such as reservoir (RAM, Random Access Memory), magnetic or disk.
The foregoing is merely preferred embodiment of the present application, are not intended to limit this application, for the skill of this field
For art personnel, various changes and changes are possible in this application.Within the spirit and principles of this application, made any to repair
Change, equivalent replacement, improvement etc., should be included within the scope of protection of this application.It should be noted that:Similar label and letter exist
Similar terms are indicated in following attached drawing, therefore, once being defined in a certain Xiang Yi attached drawing, are then not required in subsequent attached drawing
It is further defined and explained.
The above, the only specific embodiment of the application, but the protection scope of the application is not limited thereto, it is any
Those familiar with the art within the technical scope of the present application, can easily think of the change or the replacement, and should all contain
Lid is within the scope of protection of this application.Therefore, the protection scope of the application shall be subject to the protection scope of the claim.
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality
Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation
In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to
Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those
Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment
Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that
There is also other identical elements in process, method, article or equipment including the element.
Claims (10)
1. a kind of link maintains method, which is characterized in that the method includes:
After message transmissions path of the local end PE equipment between judgement and opposite end PE equipment is switched to backup link, judgement with it is described
Whether the Routing Protocol of the primary link between the PE equipment of opposite end maintains timer overtime;
Before the Routing Protocol maintains timer expiry, the local end PE equipment resets the routing according to default adjustment rule
Agreement maintains timer, to maintain the corresponding routing iinformation of the primary link.
2. the method according to claim 1, wherein the Routing Protocol maintain timer expiry before, it is described
Local end PE equipment resets the Routing Protocol according to default adjustment rule and maintains timer, including:
After the Routing Protocol maintains the timing time arrival preset durations of timer, the local end PE equipment judgement
Whether the primary link corresponding routing keep alive Packet that the opposite end PE equipment send is received, if not, the local end PE
Equipment resets the timing that the Routing Protocol maintains timer according to default adjustment rule;The local end PE equipment is new
The corresponding routing iinformation of the primary link is maintained not to be deleted in timing.
3. according to the method described in claim 2, it is characterized in that, in the local end PE equipment according to default adjustment rule resetting
After the Routing Protocol maintains the timing of timer, the method also includes:
The preset durations are maintained the timing of timer by the local end PE equipment according to the Routing Protocol adjusted
Time is adjusted.
4. according to the method described in claim 2, it is characterized in that, the method also includes:
Before the Routing Protocol maintains timer expiry, the local end PE equipment receives the institute that the opposite end PE equipment is sent
When stating the corresponding routing keep alive Packet of primary link, the local end PE equipment cuts in the message transmissions path from the backup link
The primary link is shifted to, the Routing Protocol for restoring the primary link maintains the timing of timer to initial value.
5. a kind of PE equipment, which is characterized in that including:
Detection module, after being switched to backup link for the message transmissions path between judgement and opposite end PE equipment, judgement with
Whether the Routing Protocol of the primary link between the opposite end PE equipment maintains timer overtime;
Maintenance module is routed, described in being reset before the Routing Protocol maintains timer expiry according to default adjustment is regular
Routing Protocol maintains timer, to maintain the corresponding routing iinformation of the primary link.
6. PE equipment according to claim 5, which is characterized in that the routing maintenance module is specifically used for whenever described
After Routing Protocol maintains the timing time of timer to reach preset durations, judge whether to receive the opposite end PE equipment hair
The corresponding routing keep alive Packet of the primary link sent maintains if not, resetting the Routing Protocol according to default adjustment rule
The timing of timer;The corresponding routing iinformation of the primary link is maintained not to be deleted in new timing.
7. PE equipment according to claim 6, which is characterized in that the PE equipment further includes:
Time regulating module, for the preset durations to be maintained determining for timer according to the Routing Protocol adjusted
When the time be adjusted.
8. PE equipment according to claim 6, which is characterized in that the PE equipment further includes:
Link switching module is sent for before the Routing Protocol maintains timer expiry, receiving the opposite end PE equipment
The primary link corresponding routing keep alive Packet when, the message transmissions path is switched into the master from the backup link
Link, the Routing Protocol for restoring the primary link maintain the timing of timer to initial value.
9. a kind of PE equipment, which is characterized in that including processor and memory, the memory is stored with computer-readable
Instruction, when the computer-readable instruction fetch is executed by the processor, operation is as in any the method for claim 1-4
The step of.
10. a kind of readable storage medium storing program for executing, is stored thereon with computer program, which is characterized in that the computer program is processed
Operation such as the step in any the method for claim 1-4 when device executes.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810657602.2A CN108924044B (en) | 2018-06-22 | 2018-06-22 | Link maintenance method, PE device and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810657602.2A CN108924044B (en) | 2018-06-22 | 2018-06-22 | Link maintenance method, PE device and readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108924044A true CN108924044A (en) | 2018-11-30 |
CN108924044B CN108924044B (en) | 2020-12-11 |
Family
ID=64420689
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810657602.2A Active CN108924044B (en) | 2018-06-22 | 2018-06-22 | Link maintenance method, PE device and readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108924044B (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109889442A (en) * | 2018-12-24 | 2019-06-14 | 广州芯德通信科技股份有限公司 | A kind of Ethernet interface link aggregation method, electronic equipment, storage medium |
CN110247950A (en) * | 2019-04-30 | 2019-09-17 | 五八有限公司 | Method of data synchronization and device in a kind of React Native |
CN112350928A (en) * | 2020-10-14 | 2021-02-09 | 杭州迪普科技股份有限公司 | OSPF (open shortest Path first) protocol-based smooth restart method and device |
CN113726649A (en) * | 2021-09-07 | 2021-11-30 | 新华三大数据技术有限公司 | Routing information processing method and system |
CN114338357A (en) * | 2021-12-13 | 2022-04-12 | 阿里巴巴(中国)有限公司 | Method and device for transmitting data message in network |
CN116170367A (en) * | 2023-02-09 | 2023-05-26 | 浪潮思科网络科技有限公司 | BGP link route convergence method, device, equipment and medium |
WO2023116034A1 (en) * | 2021-12-23 | 2023-06-29 | 中兴通讯股份有限公司 | Routing update method, network device and computer-readable storage medium |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1232592A1 (en) * | 1999-08-13 | 2002-08-21 | Avaya Technology Corp. | Active-passive flow switch failover technology |
CN101026590A (en) * | 2007-04-05 | 2007-08-29 | 华为技术有限公司 | Multi-link failure processing method and label switching router |
CN101051951A (en) * | 2006-05-29 | 2007-10-10 | 华为技术有限公司 | Method and device for securing server connection reliability |
CN101483592A (en) * | 2009-02-05 | 2009-07-15 | 中兴通讯股份有限公司 | Method and apparatus for inhibiting bidirectional forwarding detection link oscillation |
CN101697626A (en) * | 2009-10-30 | 2010-04-21 | 中兴通讯股份有限公司 | Communication fault detection method and system based on two-way forwarding detection protocol |
CN101702681A (en) * | 2009-11-26 | 2010-05-05 | 福建星网锐捷网络有限公司 | Switching method and device of main/standby router in virtual route redundancy protocol |
CN101980484A (en) * | 2010-10-14 | 2011-02-23 | 中兴通讯股份有限公司 | Method and system for realizing full protection of routers |
CN104067573A (en) * | 2011-10-10 | 2014-09-24 | 华为技术有限公司 | Point-to-point based multicast label distribution protocol local protection solution |
CN105099825A (en) * | 2015-08-17 | 2015-11-25 | 北京神州绿盟信息安全科技股份有限公司 | Security protection method and device for external Bypass |
-
2018
- 2018-06-22 CN CN201810657602.2A patent/CN108924044B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1232592A1 (en) * | 1999-08-13 | 2002-08-21 | Avaya Technology Corp. | Active-passive flow switch failover technology |
CN101051951A (en) * | 2006-05-29 | 2007-10-10 | 华为技术有限公司 | Method and device for securing server connection reliability |
CN101026590A (en) * | 2007-04-05 | 2007-08-29 | 华为技术有限公司 | Multi-link failure processing method and label switching router |
CN101483592A (en) * | 2009-02-05 | 2009-07-15 | 中兴通讯股份有限公司 | Method and apparatus for inhibiting bidirectional forwarding detection link oscillation |
CN101697626A (en) * | 2009-10-30 | 2010-04-21 | 中兴通讯股份有限公司 | Communication fault detection method and system based on two-way forwarding detection protocol |
CN101702681A (en) * | 2009-11-26 | 2010-05-05 | 福建星网锐捷网络有限公司 | Switching method and device of main/standby router in virtual route redundancy protocol |
CN101980484A (en) * | 2010-10-14 | 2011-02-23 | 中兴通讯股份有限公司 | Method and system for realizing full protection of routers |
CN104067573A (en) * | 2011-10-10 | 2014-09-24 | 华为技术有限公司 | Point-to-point based multicast label distribution protocol local protection solution |
CN105099825A (en) * | 2015-08-17 | 2015-11-25 | 北京神州绿盟信息安全科技股份有限公司 | Security protection method and device for external Bypass |
Non-Patent Citations (2)
Title |
---|
MANODHA GAMAGE: "《QoS Guaranteed and Reliable Network Architecture for Real-Time Applications over the Connection Oriented Internet》", 《NETWORKS 2006. 12TH INTERNATIONAL TELECOMMUNICATIONS NETWORK STRATEGY AND PLANNING SYMPOSIUM》 * |
王晨: "《BFD技术在H-VPLS网络上的实现》", 《中国优秀硕士学位论文全文数据库》 * |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109889442A (en) * | 2018-12-24 | 2019-06-14 | 广州芯德通信科技股份有限公司 | A kind of Ethernet interface link aggregation method, electronic equipment, storage medium |
CN110247950A (en) * | 2019-04-30 | 2019-09-17 | 五八有限公司 | Method of data synchronization and device in a kind of React Native |
CN112350928A (en) * | 2020-10-14 | 2021-02-09 | 杭州迪普科技股份有限公司 | OSPF (open shortest Path first) protocol-based smooth restart method and device |
CN113726649A (en) * | 2021-09-07 | 2021-11-30 | 新华三大数据技术有限公司 | Routing information processing method and system |
CN114338357A (en) * | 2021-12-13 | 2022-04-12 | 阿里巴巴(中国)有限公司 | Method and device for transmitting data message in network |
CN114338357B (en) * | 2021-12-13 | 2024-05-14 | 阿里巴巴(中国)有限公司 | Method and device for transmitting data message in network |
WO2023116034A1 (en) * | 2021-12-23 | 2023-06-29 | 中兴通讯股份有限公司 | Routing update method, network device and computer-readable storage medium |
CN116170367A (en) * | 2023-02-09 | 2023-05-26 | 浪潮思科网络科技有限公司 | BGP link route convergence method, device, equipment and medium |
CN116170367B (en) * | 2023-02-09 | 2024-04-16 | 浪潮思科网络科技有限公司 | BGP link route convergence method, device, equipment and medium |
Also Published As
Publication number | Publication date |
---|---|
CN108924044B (en) | 2020-12-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108924044A (en) | Link maintains method, PE equipment and readable storage medium storing program for executing | |
EP2222023B1 (en) | Link fault processing method and data forwarding device | |
Van Adrichem et al. | Fast recovery in software-defined networks | |
EP2962429B1 (en) | Traffic recovery in openflow networks | |
US9521055B2 (en) | Network connectivity management | |
US7675848B2 (en) | Dynamic forwarding adjacency | |
CN102598599B (en) | RSVP-TE graceful restart under fast re-route conditions | |
US8027247B2 (en) | Method and router for controlling graceful restart status | |
ES2415668T3 (en) | Method, device and communication network to monitor the status of resources | |
CN101340380B (en) | Method and apparatus for uninterrupted forwarding of bi-directional forwarding detection in master-slave switch implementation | |
CN101427501A (en) | Consistency between mpls traffic engineering forwarding and control planes | |
US9467332B2 (en) | Node failure detection for distributed linear protection | |
CN101945049A (en) | Multi-protocol label switching system, node equipment and establishing method of bidirectional tunnel | |
CN103516612B (en) | Distribution router generates method and the distribution router of route table items | |
CN101789879B (en) | Dynamic maintenance method and device for related link circuits | |
EP2866394A1 (en) | Method and device for sending inter-domain fault information | |
CN110417564B (en) | Full-mesh link protection method, device, equipment and storage medium | |
EP2658177B1 (en) | Method for detecting tunnel faults and traffic engineering node | |
Hariyawan | Comparison analysis of recovery mechanism at MPLS network | |
CN101404613B (en) | Data protection method and device | |
EP2555469A1 (en) | Fault protection method and device | |
CN101964743A (en) | Multiprotocol label-switched path APS (Active Protection System) protection and management method, equipment and system | |
JP2006033124A (en) | Tunnel fault notification device and method | |
CN101616069B (en) | Information restoration method based on graceful restart and router | |
JP2010141879A (en) | Transmission apparatus, transmission network, and path switching method being employed therefor |
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 |