CN107612754A - Two-way conversion link fault detection method, device and apparatus for network node - Google Patents
Two-way conversion link fault detection method, device and apparatus for network node Download PDFInfo
- Publication number
- CN107612754A CN107612754A CN201711041362.5A CN201711041362A CN107612754A CN 107612754 A CN107612754 A CN 107612754A CN 201711041362 A CN201711041362 A CN 201711041362A CN 107612754 A CN107612754 A CN 107612754A
- Authority
- CN
- China
- Prior art keywords
- business board
- state
- stand
- state business
- bfd
- 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
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
Present disclose provides two-way conversion link fault detection method, device and apparatus for network node, belong to communication technical field.Methods described selects two different business boards to be used separately as master state business board and stand-by state business board in each business board corresponding to BFD sessions, and remaining is used as normal state business board.Normal state business board needs to redirect the BFD messages of reception to master state business board and stand-by state business board respectively.Stand-by state business board needs to give the BFD message redirectings received from opposite equip. to master state business board, and also by the message and from the message up sending that normal state business board receives to itself processing unit.The above method is advantageous in that, when abnormal restarting occurs for master state business board, stand-by state business board can take over the work of master state business board the very first time, so as to effectively solve the problems, such as the BFD links concussion of the prior art triggered due to master state business board failure.
Description
Technical field
This disclosure relates to communication technical field, in particular to a kind of two-way conversion link fault detection method, device
And apparatus for network node.
Background technology
With real-time, delay sensitive business demand the continuous growth carried on IP network, data transfer matter how is protected
Amount, how when data transfer goes wrong, is quickly positioned, and be one by respective handling to reduce packet loss to failure
Individual major issue.
In order to solve the above problems, industry proposes a kind of operable maintainable (OAM) technology.OAM technologies can be right
Failure in network carries out automatic detection, and takes corresponding remedial measure.Current OAM technologies mainly include:International telecommunication
Multiprotocol label switching (MPLS) OAM technologies that alliance (ITU) proposes, and two-way converting detection (Bidirectional
Forwarding Detection, BFD) technology.
Wherein, BFD can detect the failure of each layer in network, for example, can be used for detection include Ethernet, MPLS paths,
Polytype transmission correctness including Generic Routing Encapsulation and IPSec (IP Security Protocol) tunnel.BFD target
That a kind of low overhead, the fault detection mechanism of short detection cycle are provided between adjacent system, including interface, data link and
Forward the detection of engine itself.BFD is similar to " Hello " agreement, the BFD meetings between two apparatus for network node to be detected
After the completion of words are established, both sides periodically send BFD messages to other side, while periodically detect other side's message on the link
Arrival situation, if not receiving the BFD messages from opposite end in a certain time interval, then it is assumed that the link breaks down,
The quick purpose for finding link failure is reached with this.
The content of the invention
The disclosure provides a kind of two-way conversion link fault detection method, device and apparatus for network node.
In a first aspect, the disclosure provides a kind of two-way conversion link fault detection method, applied to apparatus for network node, net
Network node device includes multiple business boards corresponding with aggregated links, and each business board is in master state, stand-by state and general
One kind in logical state, and a master state business board and a stand-by state industry are comprised at least in the multiple business board
Business plate, methods described include:Consult to create with opposite equip. and detect BFD sessions via the two-way converting of aggregated links;Receive institute
The BFD messages of opposite equip. transmission are stated, wherein:
If receive the BFD messages that the opposite equip. is sent is normal state business board, make the normal state industry
The BFD messages are sent to master state business board by business plate by redirecting, and the BFD messages are sent to by redirecting
Stand-by state business board is so that stand-by state business board back-up is directed to behaviour of the master state business board performed by the BFD messages
Backed up;If receive the BFD messages that the opposite equip. is sent is stand-by state business board, make the stand-by state
The BFD messages are sent to master state business board by business board by redirecting, and backup is carried out to the BFD messages for master
Backed up with state service plate on the operation performed by the BFD messages.
Second aspect, the disclosure provides a kind of two-way conversion link failure detector, applied to apparatus for network node, net
Network node device includes multiple business boards corresponding with aggregated links, and each business board is in master state, stand-by state and general
One kind in logical state, and a master state business board and a stand-by state industry are comprised at least in the multiple business board
Business plate, described device include:
Session establishment module, BFD sessions are detected via the two-way converting of aggregated links for consulting to create with opposite equip.;
Message receiving module, for making the multiple business board receive the BFD messages that the opposite equip. is sent;First control module,
If the BFD messages sent for receiving the opposite equip. is normal state business board, make the normal state business board
The BFD messages are sent to master state business board by redirecting, and by the BFD messages by redirect be sent to it is standby
State service plate is so that stand-by state business board is standby on the operation progress performed by the BFD messages for master state business board
Part;And second control module, if the BFD messages sent for receiving the opposite equip. is stand-by state business board,
Then make the stand-by state business board that the BFD messages are sent into master state business board by redirecting, and be directed to primary shape
State business board is backed up on the operation performed by the BFD messages.
The third aspect, the disclosure provides a kind of apparatus for network node, including processor and machinable medium, described
Machinable medium, which is stored with, can perform institute by the machine-executable instruction of the computing device, the processor
Machine-executable instruction is stated to realize the two-way conversion link fault detection method described in above-mentioned first aspect.
Fourth aspect, the disclosure provide a kind of machinable medium, are stored with machine-executable instruction, processed
When device is called and performed, the machine-executable instruction promotes the processor to realize two-way turn described in above-mentioned first aspect
Send out link failure detection method.
The two-way conversion link fault detection method and device provided according to the disclosure, in the aggregated links institute of BFD sessions
Including each Member Link corresponding to select in each business board two different business boards to be used separately as master state business board
With stand-by state business board, and remaining business board in addition to master state business board and stand-by state business board is then only as general
Logical state service plate (can also be referred to as non-process plate) uses.After opposite equip. sends BFD messages, if normal state business
Plate receives the BFD messages of opposite equip. transmission, then needs to give the BFD message redirectings to master state business board, and also
Need to redirect a BFD messages to stand-by state business board so that stand-by state business board closes for master state business board
Backed up in the operation performed by the BFD messages;If stand-by state business board receives opposite equip. and sends BFD messages,
Need to give the BFD message redirectings to master state business board, and to be also directed to master state business board on the BFD messages
Performed operation is backed up.The above method is advantageous in that, when master state business board breaks down as veneer is extremely heavy
Qi Shi, former stand-by state business board will can take over the former master state business board to break down the very first time, effectively to solve
The problem of BFD links concussion of the prior art.
Brief description of the drawings
In order to illustrate more clearly of the technical scheme of the embodiment of the present disclosure, below by embodiment it is required use it is attached
Figure is briefly described, it will be appreciated that the following drawings illustrate only some embodiments of the disclosure, therefore be not construed as pair
The restriction of scope, for those of ordinary skill in the art, on the premise of not paying creative work, can also be according to this
A little accompanying drawings obtain other related accompanying drawings.
Figure 1A to Figure 1B is the distributed service plate processing mode schematic diagram on BFD sessions in the prior art;
Fig. 2 is shown interacts schematic diagram according to the apparatus for network node of the embodiment of the present disclosure and opposite equip.
Fig. 3 A to Fig. 3 B show a kind of flow of two-way conversion link fault detection method according to the embodiment of the present disclosure
Figure;
Fig. 4 to Fig. 5 shows that according to the embodiment of the present disclosure be one kind under three situation above for business board quantity
The flow chart of two-way conversion link fault detection method;
Fig. 6 to Fig. 7 is shown to be illustrated according to the distributed service plate processing mode on BFD sessions of the embodiment of the present disclosure
Figure;
Fig. 8 shows that according to the embodiment of the present disclosure be another two-way converting under two situations for business board quantity
The flow chart of link failure detection method;
Fig. 9 shows a kind of functional module frame of two-way conversion link failure detector according to the embodiment of the present disclosure
Figure.
Icon:100- apparatus for network node;200- opposite equip.s;110- master control borads;121 to 12n- business boards;112- is deposited
Reservoir;114- processors;116- two-way conversion link failure detectors;1162- session establishment modules;1164- messages receive
Module;The control modules of 1166- first;The control modules of 1168- second;1170- message processing module (MPM)s;1172- state setting modules.
Embodiment
Reference picture 1A to Figure 1B, the distributed service plate processing mode of the prior art for BFD sessions is carried out detailed
Thin description, and thus propose inventor creatively found during practical operation on prior art the shortcomings that.
Distributed service plate processing mode for BFD sessions is typically that a business board conduct is selected in each business board
Process plate, and other business boards are non-process plate.When receiving the BFD messages of opposite equip. transmission, each non-process plate will
The BFD messages received are sent to process plate by the redirection of BFD processing list items and handled.Inventor has found, this to incite somebody to action
BFD messages send and receive the mode for all concentrating on process plate, when process plate breaks down, link can be caused BFD occur
Concussion.
Specifically, as shown in Figure 1A, the first equipment under test (abbreviation DUT1) and the second equipment under test (abbreviation DUT2) pass through
Consult to create the BFD sessions via aggregated links.Above-mentioned aggregated links includes Member Link X, Y, Z.Wherein, link X is corresponding
Business board A (abbreviation Slot A), link Y correspond to business board B (abbreviation Slot B), and link Z corresponds to business board C (abbreviation Slot
C).Without loss of generality, it is assumed that master control borad (abbreviation Master) selects process plates of the Slot C as BFD sessions, remaining
Slot A and Slot B are used only as the non-process plate of BFD sessions.
DUT2 in turn repeats to send same BFD messages to DUT1 by Member Link X, Y, Z.Slot A receive DUT2
After the BFD messages sent by link X, by the BFD message redirectings to SLOT C processing.Similarly, Slot B are received
After the BFD messages that DUT2 is sent by link Y, by the BFD message redirectings to Slot C processing.Slot C are then received
The BFD messages that the BFD messages and Slot A and Slot B that DUT2 is sent by link Z are sent after redirecting, and will
The BFD messages received are sent to the processing unit of itself such as hardware chip and handled.
Crucial processing nodes of the Slot C as current BFD sessions, carries and receives BFD messages, handles BFD messages to do
Go out the task of response.If Slot C break down, such as veneer abnormal restarting, then DUT1 will be calculated newly according to BFD sessions
Process plate, it is assumed that be Slot B.So, Slot A need to re-issue BFD processing list items, to cause Slot A by reception
BFD messages, which are reset to, to be redirected to Slot B and is no longer Slot C, and Slot B are also required to re-issue BFD processing tables
, to cause Slot B to be changed to be sent to the processing unit of itself, such as Figure 1B by being redirected to Slot C by the BFD messages of reception
Shown.
Inventor has found, in this case, if BFD is high-frequency detection such as 3ms*3, has larger probability and goes out
Existing BFD reports the result of down (conversation).Reason is to detect such as 3ms*3 for high-frequency, once do not received in 9ms
DUT2 BFD messages, DUT1 will carry out reporting down processing for the BFD sessions, and in process plate Slot C failures, Slot
A and Slot B need to re-issue BFD processing list items, and this action for resetting BFD messages trend is when needing certain processing
Between, therefore Slot A and Slot B reset the BFD reports that the action that BFD messages move towards was likely to result within the processing time
Text is dropped or continued to be sent to Slot C, ultimately result in Slot B do not received in 9ms DUT2 transmission BFD messages and
Session is caused to report down.Although in these cases, after BFD processing list items are reset successfully, Slot B can normally take over
The role of former process plate so that BFD sessions can recover UP (such case is referred to as the concussion of BFD links) quickly after reporting down,
But because the BFD links concussion that process plate breaks down and triggers still can produce to the link detecting between DUT1 and DUT2
Greatly negatively affect, this is the undesirable result in practice process.
In view of this, the present disclosure proposes a kind of two-way conversion link fault detection method, device and apparatus for network node,
To solve the above problems.
To make the purpose, technical scheme and advantage of the disclosure clearer, below in conjunction with the accompanying drawing in the disclosure, to this
Technical scheme in open embodiment is clearly and completely described.Obviously, described embodiment is that a disclosure part is real
Apply example, rather than whole embodiments.The component for the embodiment of the present disclosure being generally described and illustrated herein in the accompanying drawings can be with
It is a variety of to configure to arrange and design.
Therefore, below the detailed description of the embodiment of the disclosure to providing in the accompanying drawings be not intended to limit it is claimed
The scope of the present disclosure, but be merely representative of the selected embodiment of the disclosure.It is common based on the embodiment in the disclosure, this area
The every other embodiment that technical staff is obtained under the premise of creative work is not made, belong to the model of disclosure protection
Enclose.
Referring to Fig. 2, it is that the apparatus for network node 100 that the embodiment of the present disclosure provides carries out communication friendship with opposite equip. 200
Mutual schematic diagram.Opposite equip. 200 can be a kind of and same or analogous other communication equipments of apparatus for network node 100.Example
Such as, in the present embodiment, apparatus for network node 100 and opposite equip. 200 can be router, interchanger etc..
Apparatus for network node 100 includes master control borad 110 and is controlled by multiple business boards of master control borad 110.The multiple industry
Business plate be identified as successively business board 121, business board 122 ..., business board 12n, n will be generally greater than or equal to 2.Wherein,
Master control borad 110 includes memory 112, processor 114 and two-way conversion link failure detector 116.Memory 112 and place
Directly or indirectly it is electrically connected between reason device 114, to realize the transmission of data or interaction.Two-way conversion link fault detect fills
Putting 116 includes at least one software that can be stored in the form of software or firmware in memory 112 and be performed by processor 114
Functional module.
BFD sessions are created by aggregated links between apparatus for network node 100 and opposite equip. 200.The aggregated links
Comprising at least two member ports, and the business board corresponding with aggregated links can be whole business boards or only be whole business
A part in plate.After the BFD messages of the transmission of opposite equip. 200 are received, each business board corresponding with aggregated links is in master
The BFD messages received are operated under the control of control plate 110.
Fig. 3 A are referred to, are a kind of flow charts for two-way conversion link fault detection method that the embodiment of the present disclosure provides,
Applied to the apparatus for network node 100 shown in Fig. 1.It is every in multiple business boards of apparatus for network node 100 in the present embodiment
One all in one kind in master state, stand-by state and normal state, and in the multiple business board comprise at least one
Individual master state business board and a stand-by state business board.On explaining for master state, stand-by state and normal state
The bright description seen below.
The method that the present embodiment provides comprises the following steps:
Step S10, consult to create with opposite equip. and detect BFD sessions via the two-way converting of aggregated links.
Step S20, receive the BFD messages that opposite equip. is sent.
In step S20, if normal state business board receives the BFD messages of the transmission of opposite equip. 200, need
The BFD messages are sent to master state business board by redirecting, and it also requires the BFD messages are sent by redirecting
Give stand-by state business board.Normal state business board gives the BFD message redirectings received from opposite equip. 200 to stand-by state industry
The purpose of business plate is, stand-by state business board is directed to behaviour of the master state business board performed by the BFD messages
Backed up
If stand-by state business board receives the BFD messages of the transmission of opposite equip. 200, need to lead to the BFD messages
Overweight directive sending gives master state business board, and is directed to operation of the master state business board performed by the BFD messages
Backed up.
Here " being backed up for master state business board on the operation performed by the BFD messages " can refer to standby
The function of master state business board or work are backed up with state service plate, to be broken down in master state business board
When, stand-by state business board can take over to the very first time work of master state business board, avoid link that BFD concussions occur.
The operation that master state business board is carried out to the message received includes:The message received is sent to the processing list of itself
Member.Stand-by state business board carries out backup for this operation of message to master state business board and can be understood as standby shape
The message received can also be sent to the processing unit of itself by state business board.Only, the processing list of master state business board
Member can carry out corresponding processing to the message that receives so as in response to opposite equip. 200, and the processing of stand-by state business board
Unit can abandon to the message (message for being associated with backup operation) received, and only work as stand-by state business board
State be changed into master state after --- i.e. former master state business board, which breaks down, causes stand-by state business board to turn into new
After master state business board --- its processing unit just can become " to handle " from " discarding ".
For example, for situation of the quantity more than three of above-mentioned multiple business boards, i.e. master state business board, standby shape
State business board and all existing situation of normal state business board, normal state business board are receiving the transmission of opposite equip. 200
After message, the message can be redirected to master state business board and stand-by state business board respectively;Stand-by state business board connects
After the BFD messages for receiving the transmission of opposite equip. 200, the message redirecting can be given to master state business board, and stand-by state
Business board can also send this part of BFD message and the BFD messages received from normal state business board to the processing unit of itself;
Master state business board can report the BFD received from opposite equip. 200, stand-by state business board and normal state business board
Text is sent to the processing unit of itself.In addition, according to being described above, next the processing unit of stand-by state business board will can connect
The packet loss received, and the processing unit of master state business board can be handled the message received.
The situation that quantity for above-mentioned multiple business boards is two, stand-by state business board and master state business board
It can similarly be obtained with reference to above description for the mode of operation of message.
Step S30, the BFD messages received are handled.
Description in step S20 is as can be seen that the processing to BFD messages is performed by master state business board.
In some other embodiment, step S30 can be omitted.
Fig. 3 B are referred to, are the flows for another two-way conversion link fault detection method that the embodiment of the present disclosure provides
To scheme, the method in the present embodiment is unlike the scheme shown in Fig. 3 A, in addition to step S10 to S30, in addition to following step
Suddenly:
Step S40, if master state business board breaks down, the state of stand-by state business board is reset based on
With state to become new master state business board.
After stand-by state business board is configured to new master state business board, former master state industry just can be taken at once
The work of business plate, without resetting BFD list items, reason is, normal state business board there is message originally
Redirect the BFD list items of the master state business board new to this (i.e. former stand-by state business board), and the new master state industry
Business plate there is the message that will be received originally and send to the BFD list items of itself processing unit.So, when former stand-by state industry
After the state of business plate is rearranged into master state, packet loss that its processing unit just will will not receive again, but it is right
Message is handled, and is so just realized stand-by state business board very first time when master state business board breaks down and is taken over
It turns into the purpose of new primary process plate, so as to solve the problems, such as the concussion of BFD links.
Step S50, one is selected in the normal state business board of normal operation, the state of selected business board is set
Stand-by state is set to become new stand-by state business board.
In the present embodiment, the former master state business board to break down can switch to normal state business after recovering normal
Plate.
Select the operation of new stand-by state business board can be before or after former master state business board recovers normal
Perform.
, will be from opposite equip. for other normal state service board increases after new stand-by state business board is selected
200 message redirectings received give the list item of new stand-by state business board, and for the new stand-by state service board
Increase sends the BFD messages received to the list item of itself processing unit.
For the technical scheme of the clearer elaboration disclosure, business corresponding with the aggregated links is directed to separately below
The quantity of plate be more than three and be two two kinds of situations be described in detail.
Referring to Fig. 4, number of the method for the present embodiment offer primarily directed to business board corresponding with the aggregated links
Situation of the amount more than or equal to 3 provides.The execution sequence of each step of this method is not with shown in Fig. 4 or as described below
Particular order for limitation.
Step S100, consult to create with opposite equip. 200 and detect BFD sessions via the two-way converting of aggregated links.
Step S101, two different business boards are selected from multiple business boards corresponding from the aggregated links, point
Not Yong Zuo the BFD sessions master state business board and stand-by state business board.
In the present embodiment, one is selected in multiple business boards corresponding with the aggregated links according to default algorithm
Master state business board of the business board as BFD sessions.Generally, algorithm is different used by different equipment manufacturers, but respectively
Kind of algorithm is generally all that business board slot number information in IP information and equipment etc. is selected according to corresponding to BFD sessions
Select.
In addition, after the master state business board for the BFD sessions is selected, also to be existed based on substantially the same algorithm
Selection one is used as stand-by state business in remaining business board (excluding remaining business board outside master state business board)
Plate.Remaining business board is then used as normal state business board.
After the BFD messages of the transmission of opposite equip. 200 are received, following step is performed.But do not have between following step
There is strict execution sequence limitation.
Step S103, normal state business board is set to be sent to the BFD messages received from opposite equip. 200 by redirecting
Master state business board, and the BFD messages are sent to stand-by state business board so that stand-by state business by redirecting
Plate is backed up for master state business board on the operation performed by the BFD messages.
In the present embodiment, after normal state business board receives the BFD messages of the transmission of opposite equip. 200, by setting BFD
List item is handled by BFD message redirectings to master state business board, in addition, also to replicate a BFD messages and by duplication
Message is sent to stand-by state business board by redirecting.
Step S105, stand-by state business board is set to be sent to the BFD messages received from opposite equip. 200 by redirecting
Master state business board, and backed up for master state business board on the operation performed by the BFD messages.
In the present embodiment, after stand-by state business board receives the BFD messages of the transmission of opposite equip. 200, except by the BFD
Message by redirect be sent to outside master state business board, the BFD messages for also sending over normal state business board with
And the BFD messages that stand-by state business board itself receives from opposite equip. are sent to the processing unit of itself.Stand-by state business
The processing unit of plate can be abandoned after BFD messages are received.
Step S107, make master state business board will be from opposite equip. 200, stand-by state business board and normal state business
The BFD messages that plate receives are sent to the processing unit of itself and handled.
In the present embodiment, master state business board receives opposite equip. 200, stand-by state business board and normal state business
The BFD messages that plate is sent, and the BFD messages received are sent to the processing unit of itself, by the processing unit to receiving
BFD messages carry out " processing ".
Further, reference picture 5, if the method that the present embodiment provides, which also includes above-mentioned master state business board, occurs event
Hinder such as veneer abnormal restarting, the then following step being performed:
Step S201, the state of stand-by state business board is re-set as master state, it is new primary to become
State service plate.
In the present embodiment, when former stand-by state business board is arranged to new master state business board, its processing unit
Processing action to BFD messages will be switched to " handle " by " discarding ".
Step S203, one is selected in the normal state business board of normal operation as new stand-by state business board.
, can be in the preset time being broken down from the master state business board, except described in the present embodiment
One is selected in the business board of remaining normal operation outside new master state business board as new stand-by state business board.
The preset time can be less than the duration of former master state business board normal operation from breaking down to recovering.
For example, it is assumed that former master state business board duration of normal operation from breaking down to recovering is generally N milliseconds.Such as
The above-mentioned preset time of fruit is arranged to P milliseconds, and P milliseconds are more than N milliseconds, then is possible to when selecting new stand-by state business board
The former master state business board for having recovered normal operation can be chosen.If P milliseconds are less than N milliseconds, newly standby is being selected
Original master state business board not yet recovers normal operation during state service plate, so being only capable of selecting in former normal state business board
New stand-by state business board.
Step S205, normal state business board is set to be sent to the BFD messages received from opposite equip. 200 by redirecting
The new stand-by state business board, so that new stand-by state business board is directed to new master state business board on the BFD
Operation performed by message is backed up.
Step S207, new stand-by state business board is set to be connect for new master state business board on it from opposite equip.
Operation performed by the BFD messages of receipts is backed up.
It can be seen that from step S201 to step S207 because normal state business board originally will report the BFD of reception
Text is redirected to former stand-by state business board (now new master state process plate), and former stand-by state business board script is just
The BFD messages received from opposite equip. 200 and the BFD messages received from normal state business board can be sent at itself
Unit is managed, so after former master state business board breaks down, normal state business board need not be added message redirecting
To the list item of new master state business board, the message received is sent to by new master state business board also without addition
The list item of itself processing unit, so just solves the problems, such as BFD links concussion of the prior art.
For the method that clearer explanation the present embodiment provides, a specific example is presented below.
Reference picture 6, wherein, apparatus for network node 100 of the DUT1 as local terminal, DUT2 is as opposite equip. 200.DUT1 bags
Include master control borad (Mater) and at least three business boards.DUT1 and DUT2 creates BFD sessions by aggregated links, wherein, the polymerization
Link includes Member Link X, Y, Z.Member Link X, Y and Z correspond to business board Slot A, Slot B and Slot C respectively.Assuming that
In this BFD session, business board Slot C are selected as master state business board, and business board Slot B are selected as stand-by state industry
Business plate, the surplus lines plate Slot A in addition to Slot C and Slot B are then normal state business board.
After DUT2 sends BFD messages to DUT1, each business board performs following operation:Normal state business board Slot A are needed
By the BFD message redirectings received from DUT2 to master state business board Slot C, and it also requires the BFD messages are reset
To stand-by state business board Slot B;Stand-by state business board Slot B need the BFD message redirectings that will be received from DUT2
To master state business board Slot C, and by the BFD messages and the message received from normal state business board Slot A
The processing unit of itself is sent to, " discarding " processing is carried out by processing unit;Master state business board Slot C receptions DUT2,
The BFD messages that Slot A and Slot B are sent, and the BFD messages of reception are sent to the processing unit of itself and handled.
Reference picture 7, when master state business board Slot C break down such as veneer abnormal restarting, stand-by state business board
Slot B will be configured to new master state business board.New master state business board Slot B processing unit will be no longer right
BFD messages carry out " discarding ", but are changed into " handling ", i.e., fully take over former master state business board Slot C work.So
Afterwards, select a conduct new in surplus lines plate Slot A and the Slot C in addition to new master state business board Slot B
Stand-by state business board.It is assumed that the time limit that new stand-by state business board is selected in the present embodiment is recovered just in Slot C
Often before operation, then Slot A will be selected as new stand-by state business board.Naturally, the Slot C for recovering normal operation will only
It is used as normal state business board.
Because former normal state business board Slot A just need the message received from DUT2 replicating a redirect originally
To Slot B, and Slot B just need the BFD messages that will be received from opposite equip. and received from normal state business board originally
BFD messages pass to the processing unit of itself, so after former master state business board Slot C break down, Slot A need not
The addition as in the prior art is redirected to the BFD processing list items of new master state business board, and Slot B need not
The BFD that the BFD messages received are sent to the processing unit of itself by the addition as in the prior art handles list item, thus just
Solves the problems, such as BFD links concussion of the prior art.
Referring to Fig. 8, the method for being the embodiment of the present disclosure is the quantity for business board corresponding with the aggregated links
What the situation equal to 2 provided.The execution sequence of each step of this method is not with shown in Fig. 8 or as described below specific suitable
Sequence is limitation.
Step S300, consult to create with opposite equip. 200 and detect BFD sessions via the two-way converting of aggregated links.
Step S301, a master state business board as the BFD sessions is selected in two business boards, and it is another
It is individual to be used as stand-by state business board.
After the BFD messages of the transmission of opposite equip. 200 are received, following step is performed:
Step S303, stand-by state business board is set to be sent to the BFD messages received from opposite equip. 200 by redirecting
Master state business board, and backed up for master state business board on the operation performed by the BFD messages.
Step S305, the BFD messages for making master state business board to be received from opposite equip. 200 and stand-by state business board
The processing unit for being sent to itself is handled.
Further, the method that the present embodiment provides is additionally included in what is be performed after master state business board breaks down
Following step:
Step S307, the state of the stand-by state business board is arranged to master state, it is new primary to become
State service plate.
Step S309, after former master state business board recovers normal, the former master state business board is arranged to new
Stand-by state business board.
In the present embodiment, recognition mechanism can be provided with, the recognition mechanism can determine whether former master state business board is extensive
It is multiple normal, and can trigger after it is determined that the recovery of former master state business board is normal and elect the former master state business board
For the operation of new stand-by state business board.
Or in the present embodiment, new standby of election can be caused not recovering normal due to former master state business board
In the case of with the failure of state service plate, conduct an election, operated successfully until electing, i.e., until former master state business board again
Untill recovering normal and being elected into new stand-by state business board.
In the present embodiment, due to business board quantity only two corresponding with the aggregated links, so in former master state
Business board breaks down and former stand-by state business board is arranged to after new master state business board, only remains former master state
Available business board is new stand-by state business board.So after former master state business board recovers normal operation, by it
It is arranged to new stand-by state business board.
Under usual situation, interior during normal operation from breaking down to recovering in former master state business board, new is primary
The probability that state service plate also breaks down is less, so the method that the present embodiment provides is for corresponding with aggregated links
The problem of situation that business board quantity is only two also can capitally overcome BFD links to shake.
Referring to Fig. 9, it is a kind of function mould for two-way conversion link failure detector 116 that the embodiment of the present disclosure provides
Block block diagram.The two-way conversion link failure detector 116 includes session establishment module 1162, message receiving module 1164, the
One control module 1166, the second control module 1168, message processing module (MPM) 1170 and state setting module 1172.
Session establishment module 1162, for consult to create between the multiple business board and opposite equip. via polymeric chain
The two-way converting detection BFD sessions on road.
Message receiving module 1164, for making the multiple business board receive the BFD messages that the opposite equip. is sent.
First control module 1166, if the BFD messages sent for receiving the opposite equip. is normal state industry
Business plate, then make the normal state business board that the BFD messages are sent into master state business board by redirecting, and should
BFD messages by redirect be sent to stand-by state business board so that stand-by state business board for master state business board on
Operation performed by the BFD messages is backed up.
Second control module, if the BFD messages sent for receiving the opposite equip. is stand-by state business board,
Then make the stand-by state business board that the BFD messages are sent into master state business board by redirecting, and be directed to primary shape
State business board is backed up on the operation performed by the BFD messages;It is additionally operable to the stand-by state business board will be associated with
The BFD messages of backup operation carry out discard processing.
Message processing module (MPM) 1170, for making master state business board handle the BFD messages received.
State setting module 1172, if being broken down for master state business board, make the shape of stand-by state business board
State is arranged to master state to become new master state business board again;It is additionally operable to the normal state in normal operation
One is selected in business board, and the state of selected business board is arranged to stand-by state to become new stand-by state
Business board.
The two-way conversion link failure detector 116 that the embodiment of the present disclosure is provided, its realization principle and caused skill
Art effect is identical with preceding method embodiment, and to briefly describe, device embodiment part does not refer to part, refers to preceding method
Corresponding contents in embodiment.
In addition, in other embodiments, the part of module of the two-way conversion link failure detector 116 of foregoing description can
To omit.For example, in some embodiments it is possible to without message processing module (MPM) and/or state setting module.
Above-mentioned each embodiment in this specification is described by the way of progressive, and each embodiment stresses logical
All be often difference with other embodiment, between each embodiment identical similar part mutually referring to.
The embodiment of the present disclosure also provides a kind of machinable medium, is stored with machine-executable instruction.Processed
When device is called and performed, the machine-executable instruction promotes the processor to realize described in any of the above-described embodiment of the method
Method.
In several embodiments provided herein, it should be understood that disclosed method, apparatus and equipment, also may be used
To realize by another way.Device embodiment described above is only schematical, for example, the flow chart in accompanying drawing
The system in the cards of the devices of multiple embodiments according to the disclosure, method and computer program product is shown with block diagram
Framework, function and operation.At this point, each square frame in flow chart or block diagram can represent a module, program segment or generation
A part for code, a part for the module, program segment or code include one or more and are used to realize defined logic function
Executable instruction.It should also be noted that at some as in the implementation replaced, the function that is marked in square frame can also be with
Occur different from the order marked in accompanying drawing.For example, two continuous square frames can essentially perform substantially in parallel, they
Sometimes can also perform in the opposite order, this is depending on involved function.It is also noted that block diagram and/or flow chart
In each square frame and block diagram and/or the square frame in flow chart combination, the special of function or action as defined in performing can be used
Hardware based system is realized, or can be realized with the combination of specialized hardware and computer instruction.
In addition, each functional module in each embodiment of the disclosure can integrate to form an independent portion
Point or modules individualism, can also two or more modules be integrated to form an independent part.
If the function is realized in the form of software function module and is used as independent production marketing or in use, can be with
It is stored in a computer read/write memory medium.Based on such understanding, the technical scheme of the disclosure is substantially in other words
The part to be contributed to prior art or the part of the technical scheme can be embodied in the form of software product, the meter
Calculation machine software product is stored in a storage medium, including some instructions are causing a computer equipment (can be
People's computer, server, or network equipment etc.) perform each embodiment methods described of the disclosure all or part of step.
And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage, random access memory, magnetic disc or CD etc. are each
Kind can be with the medium of store program codes.It should be noted that herein, such as first and second or the like relational terms
It is used merely to make a distinction an entity or operation with another entity or operation, and not necessarily requires or imply these
Any this actual relation or order be present between entity or operation.Moreover, term " comprising ", "comprising" or its is any
Other variants are intended to including for nonexcludability, so that process, method, article or equipment including a series of elements
Not only include those key elements, but also the other element including being not expressly set out, or also include for this process, side
Method, article or the intrinsic key element of equipment.In the absence of more restrictions, limited by sentence "including a ..."
Key element, it is not excluded that other identical element in the process including the key element, method, article or equipment also be present.
It should be noted that:Similar label and letter represents similar terms in following accompanying drawing, therefore, once a certain Xiang Yi
It is defined, then it further need not be defined and explained in subsequent accompanying drawing in individual accompanying drawing.
Described above, the only embodiment of the disclosure, but the protection domain of the disclosure is not limited thereto is any
Those familiar with the art can readily occur in change or replacement in the technical scope that the disclosure discloses, and should all contain
Cover within the protection domain of the disclosure.Therefore, the protection domain of the disclosure should be based on the protection scope of the described claims.
Claims (12)
1. a kind of two-way conversion link fault detection method, it is characterised in that applied to apparatus for network node, apparatus for network node
Including multiple business boards corresponding with aggregated links, each business board is in master state, stand-by state and normal state
One kind, and a master state business board and a stand-by state business board are comprised at least in the multiple business board, it is described
Method includes:
Consult to create with opposite equip. and detect BFD sessions via the two-way converting of aggregated links;
The BFD messages that the opposite equip. is sent are received, wherein:
If receive the BFD messages that the opposite equip. is sent is normal state business board, make the normal state business board
The BFD messages are sent to master state business board by redirecting, and by the BFD messages by redirect be sent to it is standby
State service plate is so that stand-by state business board is standby on the operation progress performed by the BFD messages for master state business board
Part;
If receive the BFD messages that the opposite equip. is sent is stand-by state business board, make the stand-by state business board
The BFD messages are sent to master state business board by redirecting, and for master state business board on the BFD messages
Performed operation is backed up.
2. according to the method for claim 1, it is characterised in that methods described also includes:
The BFD messages received are handled, wherein:
The BFD messages received are handled by master state business board.
3. according to the method for claim 1, it is characterised in that methods described also includes:
Make the stand-by state business board that the BFD messages for being associated with backup operation are carried out into discard processing.
4. according to the method for claim 1, it is characterised in that methods described also includes:
If master state business board breaks down, the state of stand-by state business board is re-set as master state so that its
As new master state business board.
5. according to the method for claim 4, it is characterised in that methods described also includes:
One is selected in the normal state business board of normal operation, the state of selected business board is arranged to stand-by state
To become new stand-by state business board.
6. a kind of two-way conversion link failure detector, it is characterised in that applied to apparatus for network node, apparatus for network node
Including multiple business boards corresponding with aggregated links, each business board is in master state, stand-by state and normal state
One kind, and a master state business board and a stand-by state business board are comprised at least in the multiple business board, it is described
Device includes:
Session establishment module, BFD sessions are detected via the two-way converting of aggregated links for consulting to create with opposite equip.;
Message receiving module, for making the multiple business board receive the BFD messages that the opposite equip. is sent;
First control module, if the BFD messages sent for receiving the opposite equip. is normal state business board, make
The BFD messages are sent to master state business board by the normal state business board by redirecting, and the BFD messages are passed through
Redirection is sent to stand-by state business board so that stand-by state business board is directed to master state business board on the BFD messages institute
The operation of execution is backed up;
Second control module, if the BFD messages sent for receiving the opposite equip. is stand-by state business board, make
The BFD messages are sent to master state business board by the stand-by state business board by redirecting, and are directed to master state industry
Business plate is backed up on the operation performed by the BFD messages.
7. device according to claim 6, it is characterised in that described device also includes:
Message processing module (MPM), for making master state business board handle the BFD messages received.
8. device according to claim 6, it is characterised in that second control module is additionally operable to make the stand-by state
The BFD messages for being associated with backup operation are carried out discard processing by business board.
9. device according to claim 6, it is characterised in that described device also includes:
State setting module, if being broken down for master state business board, make the state of stand-by state business board again by
Master state is arranged to become new master state business board.
10. device according to claim 9, it is characterised in that the state setting module is additionally operable in normal operation
One is selected in normal state business board, and it is new to become that the state of selected business board is arranged into stand-by state
Stand-by state business board.
11. a kind of apparatus for network node, it is characterised in that described machine readable including processor and machinable medium
Storage medium is stored with can be by the machine-executable instruction of the computing device, and the processor can perform the machine can
Execute instruction is to realize any described methods of claim 1-5.
A kind of 12. machinable medium, it is characterised in that be stored with machine-executable instruction, by processor call and
During execution, the machine-executable instruction promotes the processor to realize any described methods of claim 1-5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711041362.5A CN107612754B (en) | 2017-10-30 | 2017-10-30 | Bidirectional forwarding link fault detection method and device and network node equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711041362.5A CN107612754B (en) | 2017-10-30 | 2017-10-30 | Bidirectional forwarding link fault detection method and device and network node equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107612754A true CN107612754A (en) | 2018-01-19 |
CN107612754B CN107612754B (en) | 2021-07-06 |
Family
ID=61085689
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711041362.5A Active CN107612754B (en) | 2017-10-30 | 2017-10-30 | Bidirectional forwarding link fault detection method and device and network node equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107612754B (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109120553A (en) * | 2018-09-12 | 2019-01-01 | 杭州迪普科技股份有限公司 | A kind of flow forwarding method and device based on stream definition |
CN109547274A (en) * | 2019-01-28 | 2019-03-29 | 新华三技术有限公司 | A kind of enclosure board switching method, device and first network equipment |
CN110601888A (en) * | 2019-09-10 | 2019-12-20 | 清华大学 | Deterministic fault detection and positioning method and system in time-sensitive network |
CN110971459A (en) * | 2019-11-29 | 2020-04-07 | 新华三半导体技术有限公司 | Session fault detection method and device, terminal equipment and readable storage medium |
CN111669280A (en) * | 2019-03-06 | 2020-09-15 | 中兴通讯股份有限公司 | Message transmission method, device and storage medium |
CN113037622A (en) * | 2019-12-24 | 2021-06-25 | 华为数字技术(苏州)有限公司 | System and method for preventing BFD oscillation |
CN113193995A (en) * | 2021-04-22 | 2021-07-30 | 深圳市信锐网科技术有限公司 | Communication apparatus, control method thereof, and computer-readable storage medium |
CN114615178A (en) * | 2022-03-16 | 2022-06-10 | 北京轻网科技有限公司 | Link quality detection method and device |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101465859A (en) * | 2009-01-13 | 2009-06-24 | 中兴通讯股份有限公司 | Method and device for triggering main and standby interface board inverse switch |
CN101800673A (en) * | 2010-02-03 | 2010-08-11 | 中兴通讯股份有限公司 | Method and device of bidirectional forwarding detection (BFD) oscillation damping |
CN102025616A (en) * | 2010-11-25 | 2011-04-20 | 中兴通讯股份有限公司 | Method, device and switch for realizing BFD (Bidirectional Forwarding Detection) |
CN102710466A (en) * | 2012-06-11 | 2012-10-03 | 烽火通信科技股份有限公司 | Master and backup board card changeover protection system, and bidirectional forwarding detection seamless handover method and device |
CN102752155A (en) * | 2012-08-01 | 2012-10-24 | 杭州迪普科技有限公司 | Protection switching control method and device |
CN105429814A (en) * | 2014-09-17 | 2016-03-23 | 中兴通讯股份有限公司 | Method and device for BFD protection by utilizing multiple board cards |
-
2017
- 2017-10-30 CN CN201711041362.5A patent/CN107612754B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101465859A (en) * | 2009-01-13 | 2009-06-24 | 中兴通讯股份有限公司 | Method and device for triggering main and standby interface board inverse switch |
CN101800673A (en) * | 2010-02-03 | 2010-08-11 | 中兴通讯股份有限公司 | Method and device of bidirectional forwarding detection (BFD) oscillation damping |
CN102025616A (en) * | 2010-11-25 | 2011-04-20 | 中兴通讯股份有限公司 | Method, device and switch for realizing BFD (Bidirectional Forwarding Detection) |
CN102710466A (en) * | 2012-06-11 | 2012-10-03 | 烽火通信科技股份有限公司 | Master and backup board card changeover protection system, and bidirectional forwarding detection seamless handover method and device |
CN102752155A (en) * | 2012-08-01 | 2012-10-24 | 杭州迪普科技有限公司 | Protection switching control method and device |
CN105429814A (en) * | 2014-09-17 | 2016-03-23 | 中兴通讯股份有限公司 | Method and device for BFD protection by utilizing multiple board cards |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109120553A (en) * | 2018-09-12 | 2019-01-01 | 杭州迪普科技股份有限公司 | A kind of flow forwarding method and device based on stream definition |
CN109120553B (en) * | 2018-09-12 | 2020-12-04 | 杭州迪普科技股份有限公司 | Flow forwarding method and device based on flow definition |
CN109547274A (en) * | 2019-01-28 | 2019-03-29 | 新华三技术有限公司 | A kind of enclosure board switching method, device and first network equipment |
CN111669280A (en) * | 2019-03-06 | 2020-09-15 | 中兴通讯股份有限公司 | Message transmission method, device and storage medium |
CN110601888A (en) * | 2019-09-10 | 2019-12-20 | 清华大学 | Deterministic fault detection and positioning method and system in time-sensitive network |
CN110971459A (en) * | 2019-11-29 | 2020-04-07 | 新华三半导体技术有限公司 | Session fault detection method and device, terminal equipment and readable storage medium |
CN110971459B (en) * | 2019-11-29 | 2020-07-14 | 新华三半导体技术有限公司 | Session fault detection method and device, terminal equipment and readable storage medium |
CN113037622A (en) * | 2019-12-24 | 2021-06-25 | 华为数字技术(苏州)有限公司 | System and method for preventing BFD oscillation |
CN113037622B (en) * | 2019-12-24 | 2024-01-05 | 华为数字技术(苏州)有限公司 | System and method for preventing BFD from vibrating |
CN113193995A (en) * | 2021-04-22 | 2021-07-30 | 深圳市信锐网科技术有限公司 | Communication apparatus, control method thereof, and computer-readable storage medium |
CN114615178A (en) * | 2022-03-16 | 2022-06-10 | 北京轻网科技有限公司 | Link quality detection method and device |
CN114615178B (en) * | 2022-03-16 | 2024-02-13 | 北京轻网科技股份有限公司 | Link quality detection method and device |
Also Published As
Publication number | Publication date |
---|---|
CN107612754B (en) | 2021-07-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107612754A (en) | Two-way conversion link fault detection method, device and apparatus for network node | |
US9571335B2 (en) | Computer network method and device using link aggregation | |
KR101700141B1 (en) | Method and apparatus for maintaining port state tables in a forwarding plane of a network element | |
US9323618B2 (en) | Method and apparatus for coordinating fault recovery techniques among domains | |
US7289436B2 (en) | System and method for providing management of fabric links for a network element | |
WO2020020144A1 (en) | Link switching method, link switching device, network communication system and computer readable storage medium | |
CN100512292C (en) | Apparatus and method of real-time recovering service | |
US9203732B2 (en) | Recovery of traffic in a connection-oriented network | |
CN101465859B (en) | Method and device for triggering main and standby interface board inverse switch | |
CN100479411C (en) | Processing method for node link switching of the distributed system and its device | |
CN107171883A (en) | Detect method, device and the equipment of forward table | |
US11349703B2 (en) | Method and system for root cause analysis of network issues | |
US20150055451A1 (en) | Network Switching Systems And Methods | |
CN104798348A (en) | Communication system, control device, method for controlling same, and program | |
CN101909006B (en) | BFD (Bidirectional Forwarding Detection) message sending and receiving methods as well as device and communication system thereof | |
CN110912815A (en) | Network element ring formation preventing method, device, equipment and readable storage medium | |
WO2016091094A1 (en) | Optical transport network protection switching method and device | |
CN102611610A (en) | Method and system for centralized management of a plurality of tunnels with same path | |
EP2693706A1 (en) | Method and device for implementing multi-protection overlapped protection groups | |
CN106464511A (en) | Service protecting method and device | |
CN103404091A (en) | Business protecting method, device and system | |
CN106341297A (en) | Networking method of monitoring ring network and networking device thereof | |
JP2006135723A (en) | Device and method for relaying information, program, and information communication system | |
EP1531633A1 (en) | Method for restoring a connection in a telecommunication network | |
CN102946321A (en) | IRF (intelligent resilient framework) network-based fault handling method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20230607 Address after: 310052 11th Floor, 466 Changhe Road, Binjiang District, Hangzhou City, Zhejiang Province Patentee after: H3C INFORMATION TECHNOLOGY Co.,Ltd. Address before: 310052 Changhe Road, Binjiang District, Hangzhou, Zhejiang Province, No. 466 Patentee before: NEW H3C TECHNOLOGIES Co.,Ltd. |
|
TR01 | Transfer of patent right |