CN109547274A - A kind of enclosure board switching method, device and first network equipment - Google Patents
A kind of enclosure board switching method, device and first network equipment Download PDFInfo
- Publication number
- CN109547274A CN109547274A CN201910079489.9A CN201910079489A CN109547274A CN 109547274 A CN109547274 A CN 109547274A CN 201910079489 A CN201910079489 A CN 201910079489A CN 109547274 A CN109547274 A CN 109547274A
- Authority
- CN
- China
- Prior art keywords
- board
- cable card
- enclosure
- enclosure board
- network equipment
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0654—Management of faults, events, alarms or notifications using network fault recovery
- H04L41/0663—Performing the actions predefined by failover planning, e.g. switching to standby network elements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/141—Setup of application sessions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/143—Termination or inactivation of sessions, e.g. event-controlled end of session
- H04L67/145—Termination or inactivation of sessions, e.g. event-controlled end of session avoiding end of session, e.g. keep-alive, heartbeats, resumption message or wake-up for inactive or interrupted session
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Health & Medical Sciences (AREA)
- Cardiology (AREA)
- General Health & Medical Sciences (AREA)
- Small-Scale Networks (AREA)
Abstract
The embodiment of the present disclosure provides a kind of enclosure board switching method, device and first network equipment.Wherein, which comprises determine whether enclosure board can not work normally;If enclosure board can not work normally, the first cable card board that the enclosure board next bit is located in preset cable card board sequence is determined as new enclosure board;Notice message is sent to the multiple first cable card board, it include the mark of the new enclosure board in the notice message, so that other first cable card boards in the multiple first cable card board in addition to the new enclosure board carry out packet work for BFD message transmission to the new enclosure board that second network equipment is sent is received, and the new enclosure board is given out a contract for a project in each member port poll of the aggregation interface.New enclosure board can be directly determined out, the time required for switching enclosure board is effectively shortened, reducing switching enclosure board overlong time leads to the probability of BFD session termination without election the case where.
Description
Technical field
This disclosure relates to which field of communication technology, sets more particularly to a kind of enclosure board switching method, device and first network
It is standby.
Background technique
Aggregation interface: multiple ether interfaces form aggregation group after bundling, multiple to be bundled
Ethernet interface is referred to as the member port of the aggregation group, which corresponds to a logic interfacing (Link
Aggregation), which is known as aggregation interface.
Two-way converting detects (Bidirection Forwarding Detection, BFD): a kind of two-way converting detection machine
System, can be quick to carry out to the link between two network equipments by establishing BFD session between two network equipments
Detection.Two network equipments send BFD message to opposite end according to the interval of giving out a contract for a project of agreement respectively, and send to the opposite end received
BFD message carry out keep-alive, to maintain BFD session.
Enclosure board: in the aggregation interface of cross-line snap-gauge, the network equipment is to access aggregation interface, network by multiple cable card boards
Each cable card board in equipment corresponds to one or more member ports, and includes an enclosure board in these cable card boards, uses
Give out a contract for a project in poll on each member port in aggregation interface.And the non-enclosure board in the network equipment is receiving opposite end hair
After the BFD message sent, by BFD message transmission to enclosure board to carry out keep-alive.
Summary of the invention
The embodiment of the present disclosure is designed to provide a kind of enclosure board switching method, device and electronic equipment, fast to realize
Speed switching enclosure board avoids leading to BFD session termination because of switching enclosure board overlong time.Specific technical solution is as follows:
In the embodiment of the present disclosure in a first aspect, providing a kind of enclosure board switching method, the method is applied to first
First master control borad of the network equipment, the first network equipment are established two-way converting by aggregation interface and second network equipment and are examined
BFD session is surveyed, the first network equipment further includes multiple first cable card boards, each First Line in the multiple first cable card board
Snap-gauge corresponds at least one member port of the aggregation interface, with first line card in the multiple first cable card board
Plate is as enclosure board, which comprises
Determine whether the enclosure board can not work normally;
If the enclosure board can not work normally, the enclosure board next bit will be located in preset cable card board sequence
The first cable card board be determined as new enclosure board;
Notice message is sent to the multiple first cable card board, includes the mark of the new enclosure board in the notice message
Know so that other first cable card boards in the multiple first cable card board in addition to the new enclosure board will receive it is described
BFD message transmission to the new enclosure board that second network equipment is sent carries out packet work, and makes the new enclosure board
Each member port poll in the aggregation interface is given out a contract for a project.
With reference to first aspect, in the first possible implementation, whether the determination enclosure board can not work,
Include:
After receiving hardware interrupt, determine that the enclosure board can not work normally, the hardware interrupt is
The enclosure board, which is pulled out, to be generated after the first network equipment.
With reference to first aspect, in the second possible implementation, the cable card board sequence determines in the following way
It obtains:
Determine each member port first cable card board corresponding to the first network equipment in the aggregation interface;
According to preset ordering rule, identified first cable card board is ranked up, obtains cable card board sequence.
It is in the third possible implementation, described to press in the possible implementation of second with reference to first aspect
According to preset ordering rule, identified first cable card board is ranked up, obtains cable card board sequence, comprising:
According to the sequence that the slot number of locating slot position is ascending or descending, identified first cable card board is carried out
Sequence obtains cable card board sequence;
It is described to send notice message to the multiple first cable card board, it include the new enclosure board in the notice message
Mark, comprising:
Notice message is sent to all identified first cable card boards, includes the new enclosure board in the notice message
Mark.
In the second aspect of the embodiment of the present disclosure, a kind of enclosure board switching device is provided, described device is applied to first
First master control borad of the network equipment, the first network equipment are established two-way converting by aggregation interface and second network equipment and are examined
BFD session is surveyed, the first network equipment further includes multiple first cable card boards, each First Line in the multiple first cable card board
Snap-gauge corresponds at least one member port of the aggregation interface, with first line card in the multiple first cable card board
Plate includes: as enclosure board, described device
Enclosure board detection module, for determining whether enclosure board can not work normally;
Enclosure board determining module will be in preset cable card board sequence if can not work normally for the enclosure board
The first cable card board positioned at the enclosure board next bit is determined as new enclosure board;
Notice issues module, for sending notice message to the multiple first cable card board, includes in the notice message
The mark of the new enclosure board so that in the multiple first cable card board in addition to the new enclosure board other first
Cable card board carries out packet work for BFD message transmission to the new enclosure board that second network equipment is sent is received, and
So that each member port poll of the new enclosure board in the aggregation interface is given out a contract for a project.
In conjunction with second aspect, in the first possible implementation, the enclosure board detection module, specifically for connecing
After receiving hardware interrupt, determine that the enclosure board can not work normally, the hardware interrupt is the enclosure board quilt
It extracts and generates after the first network equipment.
In conjunction with second aspect, in the second possible implementation, the enclosure board determining module is also used to determine institute
State each member port first cable card board corresponding to the first network equipment in aggregation interface;
According to preset ordering rule, identified first cable card board is ranked up, obtains cable card board sequence.
In conjunction with second of possible implementation of second aspect, in the third possible implementation, the maintenance
Plate determining module, specifically for the sequence ascending or descending according to locating slot number, to identified first line card
Plate is ranked up, and obtains cable card board sequence;
The notice issues module, is specifically used for sending notice message to all identified first cable card boards, described logical
Know the mark in message comprising the new enclosure board.
In the third aspect of the embodiment of the present disclosure, a kind of first network equipment is provided, the first network equipment passes through
Aggregation interface and second network equipment establish two-way converting detection BFD session, and the first network equipment includes master control borad, multiple
First cable card board, memory, processor, each first cable card board corresponds to the aggregation interface in the multiple first cable card board
At least one member port, there are an enclosure boards in the multiple first cable card board;
The memory, for storing computer program;
The processor when for executing the program stored on memory, realizes that any of the above-described enclosure board is cut
Change method.
In the fourth aspect of the embodiment of the present disclosure, a kind of computer readable storage medium is provided, it is described computer-readable
Computer program is stored in storage medium, the computer program realizes any of the above-described maintenance when being executed by processor
Plate switching method.
Enclosure board switching method, device and the electronic equipment that the embodiment of the present disclosure provides, can pass through preset cable card board
Sequentially, without election the case where, directly determine out new enclosure board, be effectively shortened switching enclosure board required for when
Between, reducing switching enclosure board overlong time leads to the probability of BFD session termination.Certainly, implement any product or the side of the disclosure
Method does not necessarily require achieving all the advantages described above at the same time.
Detailed description of the invention
In order to illustrate more clearly of the embodiment of the present disclosure or technical solution in the prior art, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Disclosed some embodiments for those of ordinary skill in the art without creative efforts, can be with
It obtains other drawings based on these drawings.
Fig. 1 is a kind of schematic diagram for the application scenarios that the embodiment of the present disclosure provides;
Fig. 2 is a kind of flow diagram for the enclosure board switching method that the embodiment of the present disclosure provides;
Fig. 3 is a kind of flow diagram that the cable card board sequence that the embodiment of the present disclosure provides determines method;
Fig. 4 is a kind of schematic diagram that the first network equipment that the embodiment of the present disclosure provides maintains BFD session;
Fig. 5 is a kind of structural schematic diagram for the enclosure board switching device that the embodiment of the present disclosure provides;
Fig. 6 is a kind of structural schematic diagram for the first network equipment that the embodiment of the present disclosure provides.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present disclosure, the technical solution in the embodiment of the present disclosure is carried out clear, complete
Site preparation description, it is clear that described embodiment is only disclosure a part of the embodiment, instead of all the embodiments.It is based on
Embodiment in the disclosure, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment belongs to the range of disclosure protection.
A kind of application scenarios signal of the enclosure board switching method of embodiment of the present disclosure offer is provided referring to Fig. 1, Fig. 1
Figure, including first network equipment 110 and second network equipment 120 and aggregation interface 130, first network equipment 110 is logical
It crosses aggregation interface 130 and second network equipment 120 communicates to connect.First network equipment 110 includes the first master control borad 111 and multiple
First cable card board 112, second network equipment 120 include the second master control borad 121 and multiple second cable card boards 122.Aggregation interface 130
In each member port correspond to first cable card board 112 and second cable card board 122.Each first cable card board 112
Or second cable card board 122 can correspond only to a member port in aggregation interface, can also simultaneously correspond to polymerization connect
Multiple member ports in mouthful.
Using first cable card board 112 in multiple first cable card boards 112 as enclosure board, with multiple second cable card boards
Second cable card board 122 in 122 is used as enclosure board.It below will enclosure board and non-maintenance from multiple first cable card boards 112
The principle of BFD technology is described in step performed by plate, enclosure board and non-enclosure board institute in multiple second cable card boards 122
The step of execution, is similarly it is found that repeat no more.
Enclosure board is according to the interval of giving out a contract for a project arranged when BFD session is established, and poll is given out a contract for a project in the member port of aggregation interface.
Also, keep-alive is carried out to the BFD message received, the BFD message that enclosure board receives can be opposite end and send out by aggregation interface
It send to enclosure board, is also possible to opposite end by aggregation interface and is sent to non-enclosure board in multiple first cable card boards 112, and via
Non- enclosure board is pass-through to enclosure board.Non- maintenance version in multiple first cable card boards 112, in the BFD report for receiving opposite end transmission
Wen Hou without keep-alive, and is pass-through to enclosure board.
If aggregation interface is not present communication failure, the enclosure board of first network equipment 110 can be according to making an appointment
Interval of giving out a contract for a project send BFD message to opposite end (i.e. second network equipment), and receive opposite end according to packet receiving interval of making an appointment
The BFD message of transmission.If aggregation interface, there are communication failure, the enclosure board of first network equipment 110 possibly can not be according to
The interval of giving out a contract for a project made an appointment sends BFD message to opposite end, or opposite end hair can not be received according to packet receiving interval of making an appointment
The BFD message sent.Therefore it can detecte to aggregation interface by establishing BFD session with the presence or absence of communication failure.And the relevant technologies
In, it when enclosure board can not work normally, needs to choose new enclosure board again, can be and control each by master control borad 111
One cable card board 112 sends BFD message to opposite end, and will be initially received 112 conduct of the first cable card board of the message of opposite end response
New enclosure board, but election process needs take a certain time, probably due to election spends the time longer to lead to BFD session
It terminates, before re-establishing BFD session, communication failure can not be detected by BFD technology.
To solve this technical problem, the embodiment of the present disclosure provides a kind of enclosure board switching method.It may refer to Fig. 2, Fig. 2
It is shown a kind of flow diagram of the enclosure board switching method of embodiment of the present disclosure offer, this method can be applied to the first net
First master control borad of network equipment, method may include:
S201, determines whether enclosure board can not work normally.
It can be whether detection enclosure board breaks down, determine that enclosure board can not normal work when enclosure board breaks down
Make.The plug state for being also possible to detect enclosure board determines that enclosure board can not work normally when enclosure board is pulled out.According to
The difference of practical application scene, can be whether regular or irregular determining enclosure board can not work normally.
S202 will be located at enclosure board next bit if enclosure board can not work normally in preset cable card board sequence
First cable card board is determined as new enclosure board.
Illustratively, it is assumed that enclosure board is located at the 7th in preset cable card board sequence, then in preset cable card board sequence
In be located at enclosure board next bit the first cable card board be, positioned at the 8th the first cable card board of the cable card board sequence.
Cable card board sequence can be configured according to actual needs, in an alternative embodiment, can be according to each
The ascending or descending sequence of the slot number of slot position locating for a first cable card board is ranked up.Illustratively,
Assuming that first network equipment includes 5 the first cable card boards, it is denoted as cable card board 1, cable card board 2, cable card board 3, cable card board 4, line respectively
Snap-gauge 5, and wherein, cable card board 1 is in No. 1 slot position, and cable card board 2 is in No. 2 slot positions, and cable card board 3 is in No. 3 slot positions, line card
Plate 4 is in No. 4 slot positions, and cable card board 5 is in No. 5 slot positions, is then ranked up according to the ascending sequence of slot number, it is available such as
The sequence of cable card board shown in following table:
Table 1.
Serial number | Cable card board |
1 | Cable card board 1 |
2 | Cable card board 2 |
3 | Cable card board 3 |
4 | Cable card board 4 |
5 | Cable card board 5 |
In other embodiments, it can be each first cable card board of control is sent by corresponding member port to opposite end
BFD message is ranked up each first cable card board, obtains cable card board according to the speed for the BFD message for receiving opposite end feedback
Sequentially.
S203 sends notice message to multiple first cable card boards, includes the mark of new enclosure board in notice message.
The mark of new enclosure board can select different marks for indicating the new enclosure board according to actual needs.
Multiple first cable card boards can identify after receiving notice message according to included in it, determine that new enclosure board is more
The first cable card board of which of a first cable card board, so that the non-enclosure board in multiple first cable card boards is receiving opposite end hair
After the BFD message sent, be pass-through to enclosure board in multiple first cable card boards and carry out keep-alive, and enable new enclosure board and
When each member port poll in aggregation interface give out a contract for a project, to avoid the BFD established between first network equipment and the second network
Session termination.
Compared to by opposite end send BFD message and receive opposite end feed back BFD message, the embodiment of the present disclosure provide
Enclosure board switching method can not directly determine the new enclosure board for replacing original enclosure board, entire mistake by election
Journey is spent time-consuming shorter, during switching enclosure board, the BFD message of opposite end transmission occurs for a long time without carrying out keep-alive,
Alternatively, not sending BFD message to opposite end according to the interval of giving out a contract for a project made an appointment, lead to the probability of BFD session termination relatively
It is low.That is, the enclosure board switching method of the offer of the embodiment of the present disclosure, can by shorten that switching enclosure board needs spend when
Between, the probability of BFD session termination caused by being effectively reduced because of switching enclosure board.So that not needed again after switching enclosure board
The BFD session between first network equipment and second network equipment is established, BFD technology detection first network can be continued with and set
The standby communication failure between second network equipment.
In application scenes, first network equipment also may include not corresponding with the member port of aggregation interface
One cable card board.Illustratively, it is assumed that first network equipment includes 10 the first cable card boards, and first network equipment passes through wherein 8
First cable card board accesses aggregation interface, connect with the second network device communications, and passes through other 2 first cable card boards and third net
The communication connection of network equipment.In this case, in preset cable card board sequence, do not include for third network equipment communication link
2 the first cable card boards connect.In an alternative embodiment, it may refer to Fig. 3, Fig. 3 show embodiment of the present disclosure offer
Cable card board sequence determine method a kind of flow diagram, may include:
S301 determines each member port first cable card board corresponding to first network equipment in aggregation interface.
Any member port first cable card board corresponding to the first network equipment in aggregation interface is first network equipment
In for accessing the first cable card board of aggregation interface.Therefore each member port is right in first network equipment institute in aggregation interface
The first cable card board answered, it is all for accessing the first cable card board of aggregation interface as in first network equipment.
S302 is ranked up identified first cable card board according to preset ordering rule, obtains cable card board sequence.
Wherein, preset ordering rule can be is set according to actual needs, and specific example may refer to S201
In associated description, details are not described herein.The embodiment is selected, first network equipment can be made automatically true according to aggregation interface
Alignment snap-gauge sequence, in other alternative-embodiments, cable card board sequence can also be determined by user and be input to first network
Equipment.
It further, in an alternative embodiment, can be in advance for each First Line in first network equipment
Snap-gauge configures hardware interrupts device, for sending hardware interrupt to the first master control borad after first cable card board is pulled out, with
The first master control borad first cable card board is notified to be pulled out.If the first cable card board being pulled out is non-enclosure board, due to enclosure board
It can still work normally, therefore not need switching enclosure board, and if the first cable card board being pulled out is enclosure board, due to
Enclosure board, which is pulled out, can not work normally, and need to switch new enclosure board, and the method for switching enclosure board may refer to S201-S202
In associated description, details are not described herein.
It is pulled out from enclosure board, getting notice that enclosure board is pulled out to the first master control borad and start to switch enclosure board needs
It takes some time.If after the first master control borad is when enclosure board is pulled out longer, just getting enclosure board and being pulled out
Notice out, and start to switch enclosure board, then before switching new enclosure board, may due to not in time to BFD message into
Row keep-alive leads to BFD session termination alternatively, not sending BFD message according to the interval of giving out a contract for a project made an appointment.And select the reality
Example is applied, since the response speed of hardware interrupts mechanism is very fast, the first master control borad can be made to get enclosure board in time and pulled out
Notice out, and then start to switch enclosure board, the probability of BFD session termination generation can be effectively reduced.
Below in conjunction with specific application scenarios, the enclosure board switching method provided the embodiment of the present disclosure is illustrated.
It may refer to Fig. 4, the first network equipment that Fig. 4 show embodiment of the present disclosure offer maintains a kind of schematic diagram of BFD session, can
To include:
S401, first network equipment establish BFD session by aggregation interface and second network equipment.
S402, first network equipment and second network equipment conversate negotiation, so that first network equipment and second
The respective session status machine up of the network equipment.
In a kind of possible application scenarios, first network equipment and the respective session status machine of second network equipment are initial
State can be down, and it is down's that session negotiation, which can be first network equipment and send carrier state to second network equipment,
BFD message, second network equipment is after receiving the BFD message that carrier state is down, by the session status machine state of local terminal
It is revised as init (initialization, initialization), and is reported to the BFD that first network equipment feedback carrier state is init
The session status of local terminal is revised as up after receiving the BFD message that carrier state is init by text, first network equipment, and
The BFD message that carrier state is up is sent to second network equipment, second network equipment is receiving the BFD that carrier state is up
It is up by local terminal session status machine status modifier after message.
S403, the first master control borad of first network equipment determine that each member port is in first network equipment in aggregation interface
The first corresponding cable card board.
The step is identical as S301, may refer to the description previously with regard to S301, details are not described herein.
S404, the first master control borad of first network equipment is according to preset ordering rule, to identified first cable card board
It is ranked up, obtains cable card board sequence.
The step is identical as S302, may refer to the description previously with regard to S302, details are not described herein.
S405, the first master control borad of first network equipment will be located at primary first cable card board of cable card board sequence and be determined as
Enclosure board.
By taking cable card board sequence is shown in table 1 as an example, it can be and the first cable card board 1 is determined as enclosure board.It is optional at other
Embodiment in, S402 is also possible to carry out after the S403 or S404 or S405.And it is optional real at other
It applies in example, the first master control borad of first network equipment is also possible to determine enclosure board by other means, such as will receive and make
The cable card board of the BFD message of local terminal session status machine up, is determined as enclosure board.
Session information is issued to each first cable card board by the first master control borad of S406, first network equipment.
Wherein, session information include the mark of enclosure board, packaged BFD message format, BFD interval of actually giving out a contract for a project,
The detection time-out time of BFD.Enclosure board in first network equipment can according to the interval of actually giving out a contract for a project of BFD, by BFD message from
All member port polls of aggregation interface are sent to second network equipment (hereinafter referred to as poll is given out a contract for a project).And time-out is detected in BFD
Before time, keep-alive processing is carried out to the BFD message received, to maintain BFD session.Wherein, the BFD report that enclosure board receives
Text includes the BFD message and multiple first cable card boards that second network equipment is sent by member port corresponding to enclosure board
In non-enclosure board receive second network equipment transmission BFD message after, be pass-through to the BFD message of enclosure board.
S407, after sensing that the enclosure board of first network equipment is pulled out, preset hardware interrupts device is to first network
First master control borad of equipment sends hardware interrupt.
S408, the first master control borad of first network equipment, will be in preset cable card boards after receiving hardware interrupt
The first cable card board in sequence positioned at enclosure board next bit is determined as new enclosure board.
By taking cable card board sequence is as shown in table 1 as an example, due to being that will be located at primary first cable card board 1 to be determined as in S405
Enclosure board, therefore the first cable card board for being located at enclosure board next bit is the first cable card board 2, can be and determines the first cable card board 2
For new enclosure board.
S409, the first master control borad of first network equipment send notice message to multiple first cable card boards, in notice message
Mark including new enclosure board.
New enclosure board can be polled and give out a contract for a project according to the interval of actually giving out a contract for a project of BFD.In this multiple first cable card board
Non- enclosure board, according to the mark of new enclosure board, will connect after the BFD message for receiving opposite end (i.e. second network equipment) feedback
The BFD message transmission received is to new enclosure board.New enclosure board is before BFD detects time-out time, to non-enclosure board transparent transmission
It is sent directly to the BFD message of the enclosure board, to the BFD message of the enclosure board and second network equipment to maintain BFD meeting
Words.
The triggering fast speed of hardware interrupts, therefore the first master control borad of first network equipment can be pulled out in enclosure board
In short period later, by preset cable card board sequence, new enclosure board, and the enclosure board new in determination are redefined
During do not need the first cable card board of control and send BFD message to opposite end and wait opposite end feedback BFD message, therefore can be with
New enclosure board is redefined within a short period of time.Therefore select the embodiment, can after enclosure board is pulled out the short period
It is interior, switch new enclosure board, and BFD session is continued to by new enclosure board, reduces because switching enclosure board leads to BFD session
The probability of termination.
A kind of structural schematic diagram of the enclosure board switching device of embodiment of the present disclosure offer, dress are provided referring to Fig. 5, Fig. 5
The first master control borad applied to first network equipment is set, first network equipment is established double by aggregation interface and second network equipment
BFD session is detected to forwarding, first network equipment further includes multiple first cable card boards, each First Line in multiple first cable card boards
Snap-gauge corresponds at least one member port of aggregation interface, using first cable card board in multiple first cable card boards as dimension
Backplate, device may include:
Enclosure board detection module 501, for determining whether enclosure board can not work normally;
Enclosure board determining module 502, if can not work normally for enclosure board, will in preset cable card board sequence position
It is determined as new enclosure board in the first cable card board of enclosure board next bit;
Notice issues module 503, includes new dimension in notice message for sending notice message to multiple first cable card boards
The mark of backplate, so that other first cable card boards in multiple first cable card boards in addition to new enclosure board will receive second
BFD message transmission to the new enclosure board that the network equipment is sent carries out packet work, and makes new enclosure board in aggregation interface
Each member port poll is given out a contract for a project.
In an alternative embodiment, enclosure board detection module 501, specifically for receiving hardware interrupt
Afterwards, determine that enclosure board can not work normally, hardware interrupt is to generate after enclosure board is pulled out first network equipment.
In an alternative embodiment, enclosure board determining module 502 is also used to determine each member end in aggregation interface
Mouth first cable card board corresponding to first network equipment;
According to preset ordering rule, identified first cable card board is ranked up, obtains cable card board sequence.
In an alternative embodiment, enclosure board determining module 502, be specifically used for according to locating slot number it is ascending or
The descending sequence of person is ranked up identified first cable card board, obtains cable card board sequence.
Notice issues module 503, is specifically used for sending notice message, notice message to all identified first cable card boards
In include new enclosure board mark.
The embodiment of the present disclosure additionally provides a kind of first network equipment, as shown in fig. 6, first network equipment is connect by polymerization
Mouth establishes two-way converting detection BFD session with second network equipment, and first network equipment includes master control borad, multiple first line cards
Plate, memory 601, processor 602, each first cable card board corresponds at least one of aggregation interface in multiple first cable card boards
Member port, using first cable card board in multiple first cable card boards as an enclosure board;Memory 601, based on storing
Calculation machine program.Wherein, memory 601 can be integrated on master control borad, be also possible to, processor independent with respect to master control borad
602 are also possible to be integrated on master control borad, and it is independent to be also possible to opposite master control borad.
Processor 602 when for executing the program stored on memory 601, realizes following steps:
Determine whether enclosure board can not work normally;
If enclosure board can not work normally, the First Line of enclosure board next bit will be located in preset cable card board sequence
Snap-gauge is determined as new enclosure board;
Notice message is sent to multiple first cable card boards, includes the mark of new enclosure board in notice message, so that more
Other first cable card boards in a first cable card board in addition to new enclosure board report the BFD for receiving the transmission of second network equipment
Text is pass-through to new enclosure board and carries out packet work, and new enclosure board is sent out in each member port poll of aggregation interface
Packet.
In an alternative embodiment, determine whether enclosure board can not work, comprising:
After receiving hardware interrupt, determine that enclosure board can not work normally, hardware interrupt is enclosure board quilt
It is generated after extraction first network equipment.
In an alternative embodiment, determination obtains cable card board sequence in the following way:
Determine each member port first cable card board corresponding to first network equipment in aggregation interface;
According to preset ordering rule, identified first cable card board is ranked up, obtains cable card board sequence.
In an alternative embodiment, according to preset ordering rule, identified first cable card board is ranked up,
Obtain cable card board sequence, comprising:
According to the sequence that the slot number of locating slot position is ascending or descending, identified first cable card board is carried out
Sequence obtains cable card board sequence;
Notice message is sent to multiple first cable card boards, includes the mark of new enclosure board in notice message, comprising:
Notice message is sent to all identified first cable card boards, includes the mark of new enclosure board in notice message.
The memory that above-mentioned electronic equipment is mentioned may include random access memory (Random Access Memory,
It RAM), also may include nonvolatile memory (Non-Volatile Memory, NVM), for example, at least a disk storage
Device.Optionally, memory can also be that at least one is located remotely from the storage device of aforementioned processor.
Above-mentioned processor can be general processor, including central processing unit (Central Processing Unit,
CPU), network processing unit (Network Processor, NP) etc.;It can also be digital signal processor (Digital Signal
Processing, DSP), it is specific integrated circuit (Application Specific Integrated Circuit, ASIC), existing
It is field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic device, discrete
Door or transistor logic, discrete hardware components.
In the another embodiment that the disclosure provides, a kind of computer readable storage medium is additionally provided, which can
It reads to be stored with instruction in storage medium, when run on a computer, so that computer executes any dimension in above-described embodiment
Backplate switching method.
In the another embodiment that the disclosure provides, a kind of computer program product comprising instruction is additionally provided, when it
When running on computers, so that computer executes any enclosure board switching method in above-described embodiment.
In the above-described embodiments, can come wholly or partly by software, hardware, firmware or any combination thereof real
It is existing.When implemented in software, it can entirely or partly realize in the form of a computer program product.The computer program
Product includes one or more computer instructions.When loading on computers and executing the computer program instructions, all or
It partly generates according to process or function described in the embodiment of the present disclosure.The computer can be general purpose computer, dedicated meter
Calculation machine, computer network or other programmable devices.The computer instruction can store in computer readable storage medium
In, or from a computer readable storage medium to the transmission of another computer readable storage medium, for example, the computer
Instruction can pass through wired (such as coaxial cable, optical fiber, number from a web-site, computer, server or data center
User's line (DSL)) or wireless (such as infrared, wireless, microwave etc.) mode to another web-site, computer, server or
Data center is transmitted.The computer readable storage medium can be any usable medium that computer can access or
It is comprising data storage devices such as one or more usable mediums integrated server, data centers.The usable medium can be with
It is magnetic medium, (for example, floppy disk, hard disk, tape), optical medium (for example, DVD) or semiconductor medium (such as solid state hard disk
Solid State Disk (SSD)) etc..
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.
Each embodiment in this specification is all made of relevant mode and describes, same and similar portion between each embodiment
Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for device,
The network equipment, computer readable storage medium, computer program product embodiment for, due to its be substantially similar to method reality
Example is applied, so being described relatively simple, the relevent part can refer to the partial explaination of embodiments of method.
The foregoing is merely the preferred embodiments of the disclosure, are not intended to limit the protection scope of the disclosure.It is all
Any modification, equivalent replacement, improvement and so within the spirit and principle of the disclosure, are all contained in the protection scope of the disclosure
It is interior.
Claims (10)
1. a kind of enclosure board switching method, which is characterized in that the method is applied to the first master control borad of first network equipment, institute
It states first network equipment and two-way converting detection BFD session, the first network is established by aggregation interface and second network equipment
Equipment further includes multiple first cable card boards, and first cable card board corresponds at least one member port of the aggregation interface,
Using first cable card board in the multiple first cable card board as enclosure board, which comprises
Determine whether the enclosure board can not work normally;
If the enclosure board can not work normally, the of the enclosure board next bit will be located in preset cable card board sequence
One cable card board is determined as new enclosure board;
Notice message is sent to the multiple first cable card board, includes the mark of the new enclosure board in the notice message,
So that other first cable card boards in the multiple first cable card board in addition to the new enclosure board will receive described
BFD message transmission to the new enclosure board that two network equipments are sent carries out packet work, and the new enclosure board is existed
Each member port poll of the aggregation interface is given out a contract for a project.
2. the method according to claim 1, wherein whether the determination enclosure board can not work, comprising:
After receiving hardware interrupt, determine that the enclosure board can not work normally, the hardware interrupt is described
Enclosure board, which is pulled out, to be generated after the first network equipment.
3. the method according to claim 1, wherein determination obtains cable card board sequence in the following way:
Determine each member port first cable card board corresponding to the first network equipment in the aggregation interface;
According to preset ordering rule, identified first cable card board is ranked up, obtains cable card board sequence.
4. according to the method described in claim 3, it is characterized in that, described according to preset ordering rule, to identified
One cable card board is ranked up, and obtains cable card board sequence, comprising:
According to the sequence that the slot number of locating slot position is ascending or descending, identified first cable card board is arranged
Sequence obtains cable card board sequence;
It is described to send notice message to the multiple first cable card board, it include the mark of the new enclosure board in the notice message
Know, comprising:
Notice message is sent to all identified first cable card boards, includes the mark of the new enclosure board in the notice message
Know.
5. a kind of enclosure board switching device, which is characterized in that described device is applied to the first master control borad of first network equipment, institute
It states first network equipment and two-way converting detection BFD session, the first network is established by aggregation interface and second network equipment
Equipment further includes multiple first cable card boards, and each first cable card board corresponds to the aggregation interface in the multiple first cable card board
At least one member port, using first cable card board in the multiple first cable card board as enclosure board, described device
Include:
Enclosure board detection module, for determining whether enclosure board can not work normally;
Enclosure board determining module will be located at if can not work normally for the enclosure board in preset cable card board sequence
First cable card board of the enclosure board next bit is determined as new enclosure board;
Notice issues module, includes described in the notice message for sending notice message to the multiple first cable card board
The mark of new enclosure board, so that other first line cards in the multiple first cable card board in addition to the new enclosure board
Plate carries out packet work for BFD message transmission to the new enclosure board that second network equipment is sent is received, and makes
Each member port poll of the new enclosure board in the aggregation interface is given out a contract for a project.
6. device according to claim 5, which is characterized in that the enclosure board detection module, specifically for receiving
After hardware interrupt, determine that the enclosure board can not work normally, the hardware interrupt is that the enclosure board is pulled out
It is generated after the first network equipment.
7. device according to claim 5, which is characterized in that the enclosure board determining module is also used to determine described poly-
Each member port first cable card board corresponding to the first network equipment in splice grafting mouth;
According to preset ordering rule, identified first cable card board is ranked up, obtains cable card board sequence.
8. device according to claim 7, which is characterized in that the enclosure board determining module is specifically used for according to locating
The ascending or descending sequence of slot number is ranked up identified first cable card board, obtains cable card board sequence;
The notice issues module, is specifically used for sending notice message to all identified first cable card boards, the notice report
It include the mark of the new enclosure board in text.
9. a kind of first network equipment, which is characterized in that the first network equipment passes through aggregation interface and second network equipment
Two-way converting detection BFD session is established, the first network equipment includes master control borad, multiple first cable card boards, memory, processing
Device, each first cable card board corresponds at least one member port of the aggregation interface, institute in the multiple first cable card board
State in multiple first cable card boards that there are an enclosure boards;
The memory, for storing computer program;
The processor when for executing the program stored on memory, realizes any method step of claim 1-4
Suddenly.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer in the computer readable storage medium
Program realizes claim 1-4 any method and step when the computer program is executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910079489.9A CN109547274A (en) | 2019-01-28 | 2019-01-28 | A kind of enclosure board switching method, device and first network equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910079489.9A CN109547274A (en) | 2019-01-28 | 2019-01-28 | A kind of enclosure board switching method, device and first network equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109547274A true CN109547274A (en) | 2019-03-29 |
Family
ID=65838746
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910079489.9A Pending CN109547274A (en) | 2019-01-28 | 2019-01-28 | A kind of enclosure board switching method, device and first network equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109547274A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110620739A (en) * | 2019-07-25 | 2019-12-27 | 新华三技术有限公司成都分公司 | BFD message sending method and device |
CN113472648A (en) * | 2021-06-18 | 2021-10-01 | 新华三信息安全技术有限公司 | Bidirectional Forwarding Detection (BFD) method and device and network equipment |
CN113765797A (en) * | 2021-09-24 | 2021-12-07 | 新华三信息安全技术有限公司 | Message processing method and device |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101247246A (en) * | 2007-02-13 | 2008-08-20 | 凌阳科技股份有限公司 | Distributed information processing system and information processing method |
CN101795216A (en) * | 2010-01-25 | 2010-08-04 | 中兴通讯股份有限公司 | Method and equipment for resetting watch dog in multi-hop bidirectional forwarding detection (BFD) |
CN102025616A (en) * | 2010-11-25 | 2011-04-20 | 中兴通讯股份有限公司 | Method, device and switch for realizing BFD (Bidirectional Forwarding Detection) |
CN102223258A (en) * | 2011-08-02 | 2011-10-19 | 杭州华三通信技术有限公司 | Method and device for preventing BFD (bidirectional forwarding detection) conversation interruption |
CN103530200A (en) * | 2012-07-04 | 2014-01-22 | 腾讯科技(深圳)有限公司 | Server hot backup system and method |
CN105429814A (en) * | 2014-09-17 | 2016-03-23 | 中兴通讯股份有限公司 | Method and device for BFD protection by utilizing multiple board cards |
CN106992889A (en) * | 2017-04-18 | 2017-07-28 | 广东浪潮大数据研究有限公司 | A kind of multiserver switching method and system |
CN107612754A (en) * | 2017-10-30 | 2018-01-19 | 新华三技术有限公司 | Two-way conversion link fault detection method, device and apparatus for network node |
-
2019
- 2019-01-28 CN CN201910079489.9A patent/CN109547274A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101247246A (en) * | 2007-02-13 | 2008-08-20 | 凌阳科技股份有限公司 | Distributed information processing system and information processing method |
CN101795216A (en) * | 2010-01-25 | 2010-08-04 | 中兴通讯股份有限公司 | Method and equipment for resetting watch dog in multi-hop bidirectional forwarding detection (BFD) |
CN102025616A (en) * | 2010-11-25 | 2011-04-20 | 中兴通讯股份有限公司 | Method, device and switch for realizing BFD (Bidirectional Forwarding Detection) |
CN102223258A (en) * | 2011-08-02 | 2011-10-19 | 杭州华三通信技术有限公司 | Method and device for preventing BFD (bidirectional forwarding detection) conversation interruption |
CN103530200A (en) * | 2012-07-04 | 2014-01-22 | 腾讯科技(深圳)有限公司 | Server hot backup system and method |
CN105429814A (en) * | 2014-09-17 | 2016-03-23 | 中兴通讯股份有限公司 | Method and device for BFD protection by utilizing multiple board cards |
CN106992889A (en) * | 2017-04-18 | 2017-07-28 | 广东浪潮大数据研究有限公司 | A kind of multiserver switching method and system |
CN107612754A (en) * | 2017-10-30 | 2018-01-19 | 新华三技术有限公司 | Two-way conversion link fault detection method, device and apparatus for network node |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110620739A (en) * | 2019-07-25 | 2019-12-27 | 新华三技术有限公司成都分公司 | BFD message sending method and device |
CN110620739B (en) * | 2019-07-25 | 2021-09-21 | 新华三技术有限公司成都分公司 | BFD message sending method and device |
CN113472648A (en) * | 2021-06-18 | 2021-10-01 | 新华三信息安全技术有限公司 | Bidirectional Forwarding Detection (BFD) method and device and network equipment |
CN113472648B (en) * | 2021-06-18 | 2023-10-24 | 新华三信息安全技术有限公司 | Bidirectional Forwarding Detection (BFD) method and device and network equipment |
CN113765797A (en) * | 2021-09-24 | 2021-12-07 | 新华三信息安全技术有限公司 | Message processing method and device |
CN113765797B (en) * | 2021-09-24 | 2022-11-18 | 新华三信息安全技术有限公司 | Message processing method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9219644B2 (en) | Automated configuration of new racks and other computing assets in a data center | |
US9424221B2 (en) | Automated cabling process for a complex environment | |
CN109547274A (en) | A kind of enclosure board switching method, device and first network equipment | |
CN105808407B (en) | Method, equipment and the equipment management controller of management equipment | |
CN103401726A (en) | Network path detecting method, device and system | |
CN106685733A (en) | FC-AE-1553 network rapid configuration and automatic testing method | |
CN104516838A (en) | Management path determining method and device | |
US10554497B2 (en) | Method for the exchange of data between nodes of a server cluster, and server cluster implementing said method | |
CN102346707A (en) | Server system and operation method thereof | |
CN105183575A (en) | Processor fault diagnosis method, device and system | |
CN104899170A (en) | Distributed intelligent platform management bus (IPMB) connection method and ATCA (Advanced Telecom Computing Architecture) machine frame | |
CN103186440B (en) | Detect subcard method, apparatus and system in place | |
US12106919B2 (en) | Circuit breaker identification method and apparatus, and device | |
CN112015689A (en) | Serial port output path switching method, system and device and switch | |
CN101800672B (en) | Equipment detection method and equipment | |
CN109964450A (en) | A kind of method and device of determining sharing memory | |
CN107430391A (en) | Management system | |
CN116126613A (en) | Position detection method and device of PCIe (peripheral component interconnect express) equipment, electronic equipment and storage medium | |
CN103858105B (en) | connection method | |
CN115567400A (en) | Whole cabinet management method, device, equipment and medium | |
CN112148537A (en) | Bus monitoring device and method, storage medium, and electronic device | |
CN110955537B (en) | Method and device for containing pipes by physical machine | |
CN110247821B (en) | Fault detection method and related equipment | |
CN113032054A (en) | Service execution method, device, storage medium and electronic device | |
CN111930582A (en) | System management bus detection platform, processor and system management bus detection method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190329 |
|
RJ01 | Rejection of invention patent application after publication |