CN109327383A - A kind of fault handling method and equipment - Google Patents
A kind of fault handling method and equipment Download PDFInfo
- Publication number
- CN109327383A CN109327383A CN201710641177.3A CN201710641177A CN109327383A CN 109327383 A CN109327383 A CN 109327383A CN 201710641177 A CN201710641177 A CN 201710641177A CN 109327383 A CN109327383 A CN 109327383A
- Authority
- CN
- China
- Prior art keywords
- equipment
- port
- link
- message
- receive
- 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
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/28—Routing or path finding of packets in data switching networks using route fault recovery
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/22—Alternate routing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/24—Multipath
- H04L45/245—Link aggregation, e.g. trunking
Abstract
The embodiment of the present invention provides a kind of fault handling method and equipment, it is related to the communications field, when single-channel fault has occurred in certain link between two equipment, the data transmission between equipment is switched into other links, guarantees that the data transmission between two equipment is not influenced by single-channel fault.This method comprises: the first equipment sends the first message by first the second equipment of chain road direction between the second equipment;The corresponding port of first link is first port;First equipment receives the response message that the second equipment is sent by the first link, and message determines that the second equipment does not receive the first message according to response;Response message is used to indicate the second equipment and does not receive the first message;First equipment chooses second port, establishes the second link according to second port, by the communication link between the second equipment by the first link switching be the second link.
Description
Technical field
The present embodiments relate to the communications field more particularly to a kind of fault handling method and equipment.
Background technique
Link Aggregation Control Protocol (Link Aggregation Control Protocol, LACP) is a kind of realization chain
The agreement of road dynamic convergence.After equipment enables the LACP agreement of certain port, which will converge control protocol by transmission link
Data cell (Link Aggregation Control Protocol Data Unit, LACPDU) and opposite end interactive information.
When LACP single-channel fault occurs in certain link in network, that is, constitute some equipment in two equipment of the link only
LACPDU can be sent or LACPDU can only be received.According to the regulation of LACP consensus standard, equipment can send first according to opposite end
Beginning negotiation packet monitors single-channel fault occurred.Exemplary, some port of equipment 1 does not receive pair in preset duration
After holding the LACPDU sent, initial negotiation message can be sent to equipment 2, which does not include to client information, and
The state of the port is original state.Equipment 2 determines that the non-receiving device 2 of equipment 1 is previously sent after receiving the initial negotiation message
LACPDU, single-channel fault has occurred in the link for transmitting the LACPDU.
Although under existing standard, equipment can monitor that single-channel fault occurs in certain link, and existing standard does not have but
There is regulation, how to be handled when single-channel fault occurs, also just not can avoid single-channel fault to the data between two equipment
It is influenced caused by transmission.
Summary of the invention
The application provides a kind of fault handling method and equipment, single-pass has occurred when certain link between two equipment therefore
Data transmission between equipment is switched to other links, guarantees that the data between two equipment are transmitted not by single-channel fault by barrier
Influence.
In order to achieve the above objectives, the application adopts the following technical scheme that
In a first aspect, disclosing a kind of fault handling method, comprising: the first equipment according to first port established with
The first link between second equipment, the first equipment send first by first the second equipment of chain road direction between the second equipment
Message, when the first link breaks down on from the first equipment to the second device orientation, the second equipment does not receive the first equipment hair
The first message sent will send response message to the first equipment.So, the first equipment can receive the by the first link
The response message that two equipment are sent, message determines that the second equipment does not receive the first message according to response;And then the first equipment can
To determine that single-channel fault has occurred in the first link, then, the first equipment has selected a port, i.e. second port, and root again
According to second port establish and the second equipment between the second link, then can by the communication link between the second equipment by
First link switching is the second link.
That is, when single-channel fault, the i.e. link a transmission side has occurred in certain link between two equipment
To breaking down, only one transmission direction is normal, and the first equipment can be monitored according to the response message that the second equipment reports
Single-channel fault has occurred in first link, and then carries out port negotiation using another port, establishes the second link, will be with second
Data transmission between equipment switches to the progress of other links, so, it is ensured that the transmission of data between two equipment not by
The influence of single-channel fault.
With reference to first aspect, in the first possible implementation of the first aspect, the first equipment passes through the first link
The response message of the second equipment transmission is received, message determines that the second equipment does not receive the first message and specifically includes according to response:
First equipment receives the response message that the second equipment is sent by the first link at the first moment;Response message is the second equipment
It determines after not receiving the first message to the transmission of the first equipment, that is to say, that response message can be initial negotiation message.The
Second reception of one equipment after the first moment is to response message, it is determined that the second equipment does not receive the first message;
First moment and the second time at intervals preset duration.
In general, the second equipment does not receive the message of the first equipment transmission after message keep-alive time time-out, then to first
Equipment sends initial negotiation message, and sends initial negotiation report again after separated in time (can be above-mentioned preset duration)
Text.The initial negotiation message middle port information is reset, and port status is original state, thus the first equipment parse the message can be with
Know the message sent before the second equipment is not received by oneself, but the first equipment can receive to the transmission of the second equipment
Initial negotiation message illustrates that only one transmission direction of the first link is normal, single-channel fault has occurred.
In conjunction with the possible implementation of the first of second aspect and second aspect, second in second aspect may
Implementation in, this method further include: if the first equipment in preset duration by the first link receive the second equipment hair
The third message sent, the third message carry the port information that reports of the second equipment, the first equipment then it is determining with the second equipment it
Between communication link be above-mentioned first link.
In general, the second equipment does not receive the message of the first equipment transmission, the second equipment if the first link single-channel fault
Initial negotiation message (not including any port information) will be reported to the first equipment, if the first equipment still keeps former port to select
In, i.e., first port is still selected state, then the first equipment will send the report for carrying first port information to the second equipment
Text, when the first link failure recovery, the second equipment can receive this message, therefore can restore to carry end to the first equipment
Message ceases the message of (information including first port).That is, being meant that if above-mentioned third message carries port information
First port is negotiated successfully, the fault recovery of the first link, and the first equipment can continue through first the second equipment of chain road direction hair
It delivers newspaper text, does not need to carry out link switching.
In conjunction with any possible implementation of second aspect and the above second aspect, in the third of second aspect
In possible implementation, this method further include: if the first equipment detects two transmission of the first link in preset duration
The equal failure in direction, it is determined that the second port establishes second link according to the second port, will with the second equipment it
Between communication link by the first link switching be the second link;Two transmission directions include the side from the first equipment to the second equipment
To and from the second equipment to the direction of the first equipment.
That is, once detecting that two transmission directions of the first link break down, link can be carried out immediately
Switching, needs not wait for and just executes link switching after receiving initial negotiation message again.
In conjunction with any possible implementation of second aspect and the above second aspect, at the 4th kind of second aspect
In possible implementation, the first equipment receives the response message that the second equipment is sent by the first link, according to response message
Determine that the second equipment does not receive the first message and specifically includes: the first equipment receives the sound that the second equipment is sent by the first link
Answer message;Response message includes status indicator, and status indicator indicates that the second equipment does not receive the first message;The identification of first equipment
Status indicator determines that the second equipment does not receive the first message.
That is, the second equipment can be by increasing status indicator instruction first in initial message initial negotiation message
There is single-channel fault in link, can execute chain in this way, needing not wait for and receiving initial message initial negotiation message again
Road switching.Exemplary, status indicator is 1 in initial message initial negotiation message, then it represents that the second equipment does not receive the first report
Text.
In conjunction with any possible implementation of second aspect and the above second aspect, at the 5th kind of second aspect
In possible implementation, second port is chosen, the second link is established according to second port, by the communication between the second equipment
It is that the second link specifically includes that chain, which routes the first link switching: the first equipment sets first port corresponding with the first link to
The a port in the port of the first equipment in addition to first port is set selected state by unselected state;First equipment will
The information of second port is sent to the second equipment, carries out port negotiation with the second equipment, establishes the second link according to second port.
That is, when the first link breaks down, it can be using another port in aggregation group as master port
Carry out data transmission with the second equipment.
In conjunction with any possible implementation of second aspect and the above second aspect, at the 6th kind of second aspect
In possible implementation, second port is chosen, the second link is established according to second port, by the communication between the second equipment
It is that the second link specifically includes that chain, which routes the first link switching: in the port for improving the first equipment, in addition to first port port
The port of highest priority is set selected state by the priority of other ports, determines that the port of highest priority is second
Port;First equipment sends the information of second port method to the second equipment, port negotiation is carried out with the second equipment, according to priority
Highest port (i.e. above-mentioned second port) establishes the second link.
That is, the priority of the port of another in aggregation group can be set when the first link breaks down
It is set to highest priority, and then can be carried out data transmission the port of highest priority as master port and the second equipment.
Second aspect discloses a kind of equipment characterized by comprising
Transmission unit, for sending the first message by first the second equipment of chain road direction between the second equipment;First
The corresponding port of link is first port;Receiving unit, for receiving the response message that the second equipment is sent by the first link;
Response message is used to indicate the second equipment and does not receive the first message;Determination unit determines that second sets for message according to response
It is standby not receive the first message;Determination unit is also used to, and chooses second port;Unit is established, for establishing according to second port
Second link, by the communication link between the second equipment by the first link switching be the second link.
In conjunction with second aspect, in the first possible implementation of the second aspect, receiving unit is specifically used for,
One moment received the response message of the second equipment transmission by the first link;Response message is that the determination of the second equipment does not receive
It is sent after first message to the first equipment;Determination unit is specifically used for, when receiving unit after the first moment second when
Quarter receives response message, it is determined that the second equipment does not receive the first message;When the first moment and default the second time at intervals
It is long.
In conjunction with the possible implementation of the first of second aspect and second aspect, second in second aspect may
Implementation in, determination unit is also used to, when receiving unit receives the second equipment by the first link in preset duration
The third message of transmission, third message carry the port information that the second equipment reports, it is determined that with the communication between the second equipment
Link is the first link.
In conjunction with the possible implementation of any one of second aspect and the above second aspect, in the third of second aspect
It further include detection unit in kind possible implementation, determination unit is used for, if detection unit detects the in preset duration
Two equal failures of transmission direction of one link, then choose second port;Two transmission directions include setting from the first equipment to second
Standby direction and from the second equipment to the direction of the first equipment;It establishes unit to be used for, the second link is established according to second port,
By the communication link between the second equipment by the first link switching be the second link.
In conjunction with the possible implementation of any one of second aspect and the above second aspect, the 4th of second aspect the
In the possible implementation of kind, receiving unit is used for, and is passed through the first link and is received the response message that the second equipment is sent;Response report
Text includes status indicator, and status indicator indicates that the second equipment does not receive the first message;Determination unit is used for, identification state mark
Know, determines that the second equipment does not receive the first message.
In conjunction with the possible implementation of any one of second aspect and the above second aspect, the 5th of second aspect the
In the possible implementation of kind, determination unit is also used to, and sends the second report to the second equipment by second port in transmission unit
Before text, unselected state is set by first port, a port in the port of the first equipment in addition to first port is set
It is set to selected state, determines that the port of selected state is second port;It establishes unit to be specifically used for, the information of second port is sent out
The second equipment is given, port negotiation is carried out with the second equipment, the second link is established according to second port.
In conjunction with the possible implementation of any one of second aspect and the above second aspect, the 6th of second aspect the
In the possible implementation of kind, determination unit is also used to, and sends the second report to the second equipment by second port in transmission unit
Before text, in the port of the first equipment of raising, the priority of other ports in addition to first port port, by highest priority
Port is set as selected state, determines that the port of highest priority is second port;It establishes unit to be specifically used for, by second port
Information be sent to the second equipment, with the second equipment carry out port negotiation, the second link is established according to second port.
The third aspect of the embodiment of the present application provides a kind of equipment, which may include: at least one processor, deposits
Reservoir, transceiver;
Wherein, at least one processor is connect with memory, communication interface by communication bus, and memory is based on storing
Calculation machine executes instruction, and when server operation, processor executes the computer executed instructions of memory storage, so that equipment executes
Fault handling method in any possible implementation of first aspect or first aspect.
7th aspect of the embodiment of the present application, discloses a kind of computer storage medium, for storing used in above equipment
Computer software instructions, the computer software instructions include for executing program involved in above-mentioned fault handling method.
Detailed description of the invention
Fig. 1 is existing port status schematic diagram;
Link schematic diagram of the Fig. 2 between existing neighbouring device;
Fig. 3 is existing link single-channel fault schematic diagram;
Fig. 4 is the schematic diagram of fault handling method provided in an embodiment of the present invention;
Fig. 5 is the structural schematic diagram of equipment provided in an embodiment of the present invention;
Fig. 6 is the flow diagram of fault handling method provided in an embodiment of the present invention;
Fig. 7 is another structural schematic diagram of equipment provided in an embodiment of the present invention;
Fig. 8 is another structural schematic diagram of equipment provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention is retouched in detail
It states.
In general, an equipment includes multiple ports (port), it is the outlet of equipment and extraneous Communication.Port can be divided into
Virtual port and physical port.Wherein, virtual port can be logic port;Physical port is different from virtual port, can be
Hardware interface in equipment.Equipment in the embodiment of the present invention can be the equipment that router, interchanger etc. support LACP agreement.
With reference to Fig. 1, the state of port is defined in LACP agreement, can specifically include following several states:
1, current (opening) state
The port of equipment enters current state after receiving the LACP message that opposite end is sent.Wherein, LACP message, that is, LACP
Protocol massages.In general, message can be divided into data message and protocol massages, protocol massages are for transmitting various Routing Protocols;Number
It is the flow that user uses various applications according to message.
2, EXPIRED (failure) state
If the port of equipment does not receive opposite end transmission in current_while_timer (message keep-alive) in the time
LACP message, port status then by current state transition to EXPIRED state, are set to not after overtime with opposite end synchronous regime
It is synchronous.
3, DEFAULTED (default) state
If the port of equipment is reported after current_while_timer time-out still without the LACP for receiving opposite end transmission
Text, port status is then by EXPIRED state transition to DEFAULTED state.
4, INITIALIZE (initial) state
If equipment checks port exception, such as: the physical connection of port changes, and port then enters INITIALIZE
(initial) state.Meanwhile that sets port selects state (not to be selected) state for UNSELECTED, in this way this port will by from
It is deleted in aggregation group.Certainly, when port normal transmission message, port selects state for SELECTED state.
In LACP agreement, equipment can be by multiple trunkings to an aggregation group, in general, there is a port in aggregation group
In SELECTED state (i.e. selected state), which is known as master port (Master Port), master port logically generation
The entire aggregation group of table.Some protocol massages, such as: the protocol massages of GVRP/GMRP, STP/RSTP/MSTP two-layer protocol, all
Only sent from master port.
One can be connected between equipment and adjacent equipment by physical port, establish communication link, can also pass through void
Communication link is established in quasi- port.Specifically, equipment can be one priority of each port assignment, usually by highest priority
Port is configured to selected state, remaining port is configured to unselected state, and further, equipment 1, equipment 2 utilize selected state
Port is held consultation, and communication link is established.Negotiations process specifically includes: equipment 1 is sent out by the port of selected state to equipment 2
Protocol massages are sent, which chooses the information of port (the as port of selected state).Equipment 2 receives
A protocol massages are replied to equipment 1 after this message, which chooses the information of port, equipment 1 to choose
The information of port.Equipment 1 receive equipment 2 transmission protocol massages after to equipment 2 reply confirmation message (such as: ACK), just complete
Entire negotiations process.
In general, can establish multiple communication links between two equipment, the different data of different communication links.One
A link can be there are two transmission direction.Exemplary, with reference to Fig. 2, two ports in equipment 1 are docked with equipment 2 respectively, including
Link 1, link 2.By taking link 1 as an example, two transmission directions include from equipment 1 to 2 direction of equipment and from equipment 2 to equipment 1
Direction.So-called single-channel fault refers to that certain link between two equipment breaks down, and can only realize from an equipment to another
The data transmission of one equipment can not achieve two-way data transmission.By taking two equipment shown in Fig. 2 as an example, Fig. 3 shows one
The scene of kind single-channel fault, the data of 1 single-channel fault of link, i.e. equipment 1 to 2 direction of equipment, which are transmitted, to break down, and equipment 2 receives
The data sent less than equipment 1.The data transmission in equipment 2 to 1 direction of equipment is normal, and equipment 1 can receive the transmission of equipment 2
Data.The single-channel fault that link 1 occurs is also possible to equipment 1 to be transmitted normally to the data in 2 direction of equipment, and equipment 2 can receive
The data sent to equipment 1.The data in equipment 2 to 1 direction of equipment, which are transmitted, to break down, and equipment 1 does not receive the transmission of equipment 2
Data.
According to LACP consensus standard, after the port of certain equipment receives message time-out, which can send initial association to opposite end
Business's text, the initial negotiation message middle port information are reset, i.e., do not include any port information in initial negotiation message, and should
The port status of the port can be labeled as INITIALIZE state by equipment.In this way, when there is single-channel fault shown in Fig. 3,
Equipment 2 does not receive the message of the transmission of equipment 1 within the specific time, then sends initial negotiation message to equipment 1.It needs to illustrate
, so-called " specific time " can be the message keep-alive time, such as: above-mentioned current_while_timer.When message keep-alive
Between starting point can be 2 last time of equipment receive equipment 1 transmission message at the time of.In general, message keep-alive time and message
Sending cycle is exemplary at multiple proportion, it is assumed that message sending cycle 1s, keep-alive multiple are 3, then the message keep-alive time is exactly
3s.If equipment 2 does not all receive the report of the transmission of equipment 1 in the 3s after the upper message for once receiving the transmission of the first equipment
Text will send out Initial message to equipment 1.
Further, since the data transmission of equipment 2 to 1 direction of equipment is normal, equipment can receive the hair of equipment 2
The initial negotiation message sent.In addition, it is selected state that equipment 1, which still keeps the corresponding port of link 1,.In this way, although equipment 1 receives
It can determine that single-channel fault has occurred in link 1 after the initial negotiation message, but equipment 1 will not do other processing, so just lead
It causes equipment 1 to pass through the loss of data that link 1 is sent, and then influences the data between equipment 1 and equipment 2 and transmit.
The principle of the application is: other port is chosen when single-channel fault occurs, and based on the port chosen again
It establishes new link, carries out link switching, it is enterprising that the data transmission of equipment room from current chain road is switched to new link
Row, in this way, carrying out data transmission two equipment on the link, is not influenced by single-channel fault.It is exemplary, reference
Single-channel fault occurs for Fig. 4, link 1, and equipment 2 does not receive equipment 1 and passes through the data message that link 1 is sent, and equipment 1 can be by chain
The corresponding port in road 2 is set as selected state, is carried out data transmission by link 2 and equipment 2.
The application provides a kind of equipment, which can be equipment 1 shown in FIG. 1.As shown in figure 5, the equipment includes should
Equipment may include at least one processor 11, memory 12 and communication interface 13.
It is specifically introduced below with reference to each component parts of the Fig. 5 to equipment:
Processor 11 is the control centre of equipment, can be a processor, is also possible to the general designation of multiple processing elements.
For example, processor 11 is a central processing unit (central processing unit, CPU), it is also possible to specific integrated electricity
Road (Application Specific Integrated Circuit, ASIC), or be arranged to implement implementation of the present invention
One or more integrated circuits of example, such as: one or more microprocessors (digital signal processor, DSP),
Or, one or more field programmable gate array (Field Programmable Gate Array, FPGA).
Wherein, processor 11 can be by running or execute the software program being stored in memory 12, and calls and deposit
The data in memory 12 are stored up, the various functions of equipment are executed.
In concrete implementation, as one embodiment, processor 11 may include one or more CPU, such as in Fig. 5
Shown in CPU0 and CPU1.
In the concrete realization, as one embodiment, equipment may include multiple processors, such as shown in Fig. 5
Manage device 11 and processor 15.Each of these processors can be a single core processor (single-CPU), can also be with
It is a multi-core processor (multi-CPU).Here processor can refer to one or more equipment, circuit, and/or for locating
Manage the processing core of data (such as computer program instructions).
Memory 12 can be read-only memory (read-only memory, ROM) or can store static information and instruction
Other kinds of static storage device, random access memory (random access memory, RAM) or letter can be stored
The other kinds of dynamic memory of breath and instruction, is also possible to Electrically Erasable Programmable Read-Only Memory (Electrically
Erasable Programmable Read-Only Memory, EEPROM), CD-ROM (Compact Disc Read-
Only Memory, CD-ROM) or other optical disc storages, optical disc storage (including compression optical disc, laser disc, optical disc, digital universal
Optical disc, Blu-ray Disc etc.), magnetic disk storage medium or other magnetic storage apparatus or can be used in carrying or store to have referring to
Enable or data structure form desired program code and can by any other medium of computer access, but not limited to this.
Memory 12, which can be, to be individually present, and is connected by communication bus 14 with processor 11.Memory 12 can also and processor
11 integrate.
Wherein, the memory 12 is used to store the software program for executing the present invention program, and is controlled by processor 11
It executes.
Communication interface 13 may include that the port for being used to send data and one are used to receive from external equipment
The port of data, i.e. equipment can realize the reception of data and the transmission of data by two different ports respectively.Certainly, should
Communication interface 13 can be integrated on a port by data receiver function and data sending function, which has data receiver
Function and data sending function.
Device structure shown in Fig. 5 does not constitute the restriction to equipment, may include than illustrating more or fewer portions
Part perhaps combines certain components or different component layouts.
The embodiment of the present application provides a kind of fault handling method, as shown in fig. 6, method includes the following steps:
101, the first equipment sends the first message by the second equipment described in the first chain road direction between the second equipment.
In the specific implementation, the first equipment carries out port negotiation firstly the need of with the second equipment, according to the first equipment, second
Above-mentioned first link is established in the port of equipment, exemplary, establishes the first port of the first equipment and the third port of the second equipment
Between link, which is the first link described in the embodiment of the present invention.In addition, first port, third port can claim
For the corresponding port of the first link.Certainly, first port, third port port status be that selected state is (i.e. above-mentioned
SELECTED state).Further, first port, third port can be a virtual port of the first equipment, the second equipment,
It is also possible to a physical port of the first equipment, the second equipment.
That is, the first link is the first equipment and the negotiated successful communication link of the second equipment, first
Equipment can be sent datagram by first the second equipment of chain road direction.In addition, the first message can be data message, that is, it is used for
Transmit the message of user traffic data.
It should be noted that if the third port (the corresponding port of the first link) of the link aggregation group of the second equipment is sent out
It is born from ring or other failures, and the first equipment cannot perceive the variation of third port state in time, the first equipment can still pass through
One link (passing through first port) sends message to the second equipment, and the data traffic that so will cause the first chain road is lost.
102, the second equipment sends response message by first the first equipment of chain road direction.
It should be noted that the response message in the embodiment of the present invention refers in particular to initial negotiation message, the second equipment of instruction is not
Receive the data message of the first equipment transmission.
In general, if the port (i.e. the corresponding third port of the first link) of state is selected to go out in the aggregation group of the second equipment
The data traffic of existing failure, the first chain road is lost, then the third port that will lead to the second equipment receives message time-out, that is, is being reported
The message of the first equipment transmission is not received in the literary keep-alive time.
Further, after the second equipment receives message time-out, initial negotiation message will be sent to the first equipment.Specifically,
Second equipment last time was moment A at the time of receiving the message that the first equipment is sent, within the message keep-alive time after moment A
The message of the first equipment transmission is not received yet, and the second equipment then sends initial negotiation message, the initial negotiation to the first equipment
Any port information is not included in message, and the port status of third port can be set to INITIALIZE shape by the second equipment
State.In this way, the first equipment, which can perceive the first link after receiving the initial negotiation message, there is failure.
It should be noted that the above-mentioned message keep-alive time is the integral multiple of message sending cycle.Sending the message period can be with
It is short cycle, is also possible to long period.Wherein, short cycle and macrocyclic specific time provide to determine according to agreement, for example, existing
Having agreement (802.1ax) short cycle is 1 second, and long period is 30 seconds.The message keep-alive time can be the 3 of message sending cycle
Times.For example, it is configured to fast (i.e. short cycle), the message keep-alive time is 3 seconds;It is configured to slow (i.e. long period), message
The keep-alive time is 90 seconds.
That is, if the second equipment is not received by the data message (such as: the first message) of the first equipment transmission,
Initial negotiation message is sent to the first equipment, in some embodiments, the second equipment is after sending initial negotiation message for the first time, also
It can continue to send initial negotiation message to the first equipment.Such as: the second equipment can be spaced after preset duration sends initial association again
Business's text, preset duration can be 10s.
Certainly, if the second equipment has received the data message (such as: the first message) of the first equipment transmission, show first
Link is normal to the direction of the second equipment from the first equipment, and the second equipment then sends datagram (such as: the present invention to the first equipment
Third message described in embodiment), with the first equipment interaction data.
In some embodiments, the initial negotiation message that the second equipment is sent can be identified with carrier state, the state mark
Know the data message that the second equipment of instruction does not receive the transmission of the first equipment.
103, the first equipment receives above-mentioned response message, determines that the second equipment does not receive first and sets according to the response message
The first message that preparation is sent.
Specifically, the first equipment receives the initial negotiation report that the second equipment is sent by the first link at the first moment
Text.Then, the first equipment carries out the packet check of preset duration after first moment, and what determination received is strictly just
Beginning negotiation packet.Further, if second moment of first equipment after completing packet check still receives the second equipment hair
The initial negotiation message sent, it is determined that the second equipment does not receive the data message that the first equipment is sent in step 101.Example
, after the first equipment receives the initial negotiation message of the second equipment transmission, 10s is detected, still receives initial negotiation report after 10s
Text, it is determined that the second equipment does not receive the data message that the first equipment is sent in step 101.
Alternatively, carrying the second equipment of instruction in the initial negotiation message that the second equipment is sent does not receive the transmission of the first equipment
Data status indicator, the first equipment receives initial negotiation message, parses the initial negotiation message and identify state mark therein
Know, and then can determine that the second equipment does not receive the data message that the first equipment is sent in step 101.
For the first link between the first equipment and the second equipment, the first equipment can receive by the first link
The response message that two equipment are sent illustrates that the data transmission of the second equipment to the first equipment may be implemented in the first link, second
It is normal in equipment to the direction of the first equipment.Meanwhile second equipment do not receive the first equipment pass through the first link send
Data message, illustrate the first link cannot achieve the first equipment to the second equipment data transmission, in the first equipment to second
It breaks down on the direction of equipment.In this way, showing that single-channel fault has occurred in the first link, the first equipment executes step 104, carries out
Port switching.
104, the first equipment chooses second port.
In general, the port of chain routing device determines, when the first link single-channel fault, it to be switched to other links, it is necessary to
It selects other ports to establish new link, that is, reselects a port and be set as selected state.
In the specific implementation, the first equipment can set unselected state for above-mentioned first port port, by the end of itself
A port in mouthful is set as selected state, which is above-mentioned second port.
Alternatively, the priority of other ports in addition to above-mentioned first port will be preferential in itself port of the first apparatus modifications
The highest port (not being above-mentioned first port) of grade is set as selected state, and the port of the highest priority is above-mentioned second end
Mouthful.
105, the first equipment establishes the second link according to the second port, by the communication chain between second equipment
Routing first link switching is second link.
Specifically, the first equipment can carry out port negotiation with the second equipment, i.e., send to the second equipment and carry second end
The link between the second port of the first equipment and the third port of the second equipment is established in the protocol massages of message breath, request, i.e.,
Above-mentioned second link.Certainly, the second link is also possible between the second port of the first equipment and other ports of the second equipment
Link, it is not limited here.
Then, the second equipment carries the information of second port to one protocol massages of the first device replied, the protocol massages
And second equipment choose the information of port (can be above-mentioned third port, be also possible to other ports of the second equipment).
First equipment receives after the protocol massages of the second device replied to the second device replied ACK, so far port negotiation
Success, the second link between the second equipment is established according to the second port of the first equipment.
That is, when single-channel fault, the i.e. link a transmission side has occurred in certain link between two equipment
To breaking down, only one transmission direction is normal, and the data transmission between the second equipment is switched to other by the first equipment
Link carries out, and guarantees that the data transmission between two equipment is not influenced by single-channel fault.Whether go out during port negotiation
The link failure occurred in existing link single-channel fault or user traffic data transmission, method provided in an embodiment of the present invention
The data between two equipment can be made to transmit not to be influenced by single-channel fault.
In some embodiments, if the first equipment receives during the packet check of the first equipment progress preset duration
The third message that second equipment is sent, the third message carry the port information that the second equipment reports, and the first equipment can then recognize
For the first link failure recovery, communication link of first equipment then between determination and the second equipment is still the first link.
In general, the second equipment does not receive the message of the first equipment transmission, the second equipment if the first link single-channel fault
Initial negotiation message (do not include any port information) will be reported to the first equipment, the first equipment choose second port it
Before, for example during the first equipment carries out packet check, if the first equipment still keeps former port to choose, i.e., first port is still
Selected state, then the first equipment will send the message for carrying first port information to the second equipment, when the first link failure
Restore, the second equipment can receive this message, therefore can restore to carry port information (including first end to the first equipment
Mouthful information) message.That is, mean that first port is negotiated successfully if above-mentioned third message carries port information,
The fault recovery of first link, the first equipment can continue through first the second equipment of chain road direction and send message, not need to carry out
Link switching.
In some embodiments, if during the packet check of the first equipment progress preset duration, first link
Two equal failures of transmission direction, i.e. the first link cannot achieve the data in the first equipment to the second device orientation transmission, also without
Method realizes the data transmission in the second equipment to the first device orientation, then receives the first of the second equipment transmission again without waiting
Beginning negotiation packet, the first equipment can choose second port immediately, by the communication link between the second equipment by the first link
It is switched to and states the second link.In the specific implementation, the initial negotiation message that the first equipment receives the transmission of the second equipment can determine
First link breaks down from the first equipment to the direction of the second equipment, in addition, if the first equipment receives message time-out, i.e., the
One equipment does not receive the message of the second equipment transmission within the message keep-alive time, and the first equipment can consider the first link from the
It breaks down in the direction of two equipment to the first equipment.In this way, the first equipment can determine the first link state be down, i.e., two
A equal failure of transmission direction.
In some embodiments, if during the packet check of the first equipment progress preset duration, the configuration of modification port is mentioned
The priority of other ports of the height other than first port utilizes the end of highest priority then carry out port negotiation can be triggered
Mouth establishes link, without carrying out other processing.
It is above-mentioned that mainly scheme provided by the embodiments of the present application is described from the angle of interaction between each network element.It can
With understanding, in order to realize the above functions, it comprises execute the corresponding hardware configuration of each function and/or software mould for equipment
Block.Those skilled in the art should be readily appreciated that, algorithm described in conjunction with the examples disclosed in the embodiments of the present disclosure
Step, the application can be realized with the combining form of hardware or hardware and computer software.Some function actually with hardware also
It is the mode of computer software driving hardware to execute, the specific application and design constraint depending on technical solution.Profession
Technical staff can use different methods to achieve the described function each specific application, but this realization is not answered
Think beyond scope of the present application.
The embodiment of the present application can carry out functional module to the equipment in the embodiment of the present invention according to above method example
It divides, for example, each functional module of each function division can be corresponded to, two or more functions can also be integrated in
In one processing module.Above-mentioned integrated module both can take the form of hardware realization, can also use software function module
Form realize.It should be noted that being schematical, only a kind of logic function to the division of module in the embodiment of the present application
It can divide, there may be another division manner in actual implementation.
In the case where each function division of use correspondence each functional module, Fig. 7 is shown involved in above-described embodiment
Equipment a kind of possible composition schematic diagram, which can be equipment 1 or equipment 2 in Fig. 2.As shown in fig. 7, the equipment
It may include: transmission unit 201, receiving unit 202, determination unit 203 and establish unit 204.
Wherein, transmission unit 201 executes the step 101 in fault handling method shown in fig. 6 for holding equipment.
Receiving unit 202 executes the step 102 in fault handling method shown in fig. 6 for holding equipment.
Determination unit 203 executes step 103 in fault handling method shown in fig. 6,104 for holding equipment.
Unit 204 is established, executes the step 105 in fault handling method shown in fig. 6 for holding equipment.
It should be noted that all related contents for each step that above method embodiment is related to can quote correspondence
The function of functional module describes, and details are not described herein.
Equipment provided by the embodiments of the present application for executing above-mentioned fault handling method, therefore can achieve and above-mentioned event
Hinder the identical effect of processing method.
Using integrated unit, the another kind that Fig. 8 shows equipment involved in above-described embodiment can
The composition schematic diagram of energy.As shown in figure 8, the equipment includes: processing module 301 and communication module 302.
Processing module 301 is for carrying out control management to the movement of server, for example, processing module 301 is set for supporting
The standby step 103 executed in Fig. 6,104, and/or for techniques described herein other processes.Communication module 302 is used for
The communication of holding equipment and other network entities, such as the communication between equipment 2 (or equipment 1) shown in Fig. 2.Equipment may be used also
Program code and data to include memory module 303, for storage server.
Wherein, processing module 301 can be processor or controller.It, which may be implemented or executes, combines in the application discloses
Hold described various illustrative logic blocks, module and circuit.Processor is also possible to realize the combination of computing function, example
It is such as combined comprising one or more microprocessors, DSP and the combination of microprocessor etc..Communication module 302 can be transceiver,
Transmission circuit or communication interface etc..Memory module 303 can be memory.
When processing module 301 is processor, communication module 302 is communication interface, when memory module 303 is memory, this
Apply for that equipment involved in embodiment can be equipment shown in fig. 5.
Through the above description of the embodiments, it is apparent to those skilled in the art that, for description
It is convenienct and succinct, only the example of the division of the above functional modules, in practical application, can according to need and will be upper
It states function distribution to be completed by different functional modules, i.e., the internal structure of device is divided into different functional modules, to complete
All or part of function described above.The specific work process of the system, apparatus, and unit of foregoing description, before can referring to
The corresponding process in embodiment of the method is stated, details are not described herein.
In several embodiments provided herein, it should be understood that disclosed system, device and method can be with
It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the module or
The division of unit, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units
Or component can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, institute
Display or the mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, device or unit
Indirect coupling or communication connection can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product
When, it can store in a computer readable storage medium.Based on this understanding, the technical solution of the application is substantially
The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words
It embodies, which is stored in a storage medium, including some instructions are used so that a computer
Equipment (can be personal computer, server or the network equipment etc.) or processor execute described in each embodiment of the application
The all or part of the steps of method.And storage medium above-mentioned include: flash memory, it is mobile hard disk, read-only memory, random
Access the various media that can store program code such as memory, magnetic or disk.
The above, the only specific embodiment of the application, but the protection scope of the application is not limited thereto, it is any
Change or replacement within the technical scope of the present application should all be covered within the scope of protection of this application.Therefore, this Shen
Protection scope please should be based on the protection scope of the described claims.
Claims (14)
1. a kind of fault handling method characterized by comprising
First equipment sends the first message by the second equipment described in the first chain road direction between the second equipment;First chain
The corresponding port in road is first port;
First equipment receives the response message that second equipment is sent by first link, is reported according to the response
Text determines that second equipment does not receive first message;The response message is used to indicate second equipment and does not receive
To first message;
First equipment chooses second port, establishes the second link according to the second port, will with second equipment it
Between communication link by first link switching be second link.
2. the method according to claim 1, wherein first equipment passes through described in first link reception
The response message that second equipment is sent determines that second equipment does not receive first message and has according to the response message
Body includes:
First equipment receives the response report that second equipment is sent by first link at the first moment
Text;The response message is to send after the second equipment determination does not receive first message to first equipment;
Second reception of first equipment after first moment is to the response message, it is determined that described second
Equipment does not receive first message;First moment and the second time at intervals preset duration.
3. according to the method described in claim 2, it is characterized in that, the method also includes:
If first equipment receive that second equipment sends by first link in the preset duration the
Three messages, the third message carry the port information that second equipment reports, and first equipment is then determining with described the
Communication link between two equipment is first link.
4. according to the method described in claim 2, it is characterized in that, the method also includes:
If first equipment detects two equal failures of transmission direction of first link in the preset duration, really
The fixed second port, establishes second link according to the second port, by the communication chain between second equipment
Routing first link switching is second link;Described two transmission directions include from the first equipment to the second equipment
Direction and from the second equipment to the direction of the first equipment.
5. the method according to claim 1, wherein first equipment is received by first link
The response message that second equipment is sent determines that second equipment does not receive first report according to the response message
Stationery body includes:
First equipment receives the response message that second equipment is sent by first link;The response report
Text includes status indicator, and the status indicator indicates that second equipment does not receive first message;
First equipment identifies the status indicator, determines that second equipment does not receive first message.
6. method according to claim 1-5, which is characterized in that first equipment chooses second port, root
The second link is established according to the second port, is by first link switching by the communication link between second equipment
Second link specifically includes:
The first port is set unselected state by first equipment, will be in the port of first equipment except described the
A port outside Single port is set as selected state, determines that the port of selected state is the second port;
The information of the second port is sent to second equipment, port negotiation is carried out with second equipment, according to institute
It states second port and establishes second link.
7. method according to claim 1-5, which is characterized in that first equipment chooses second port, root
The second link is established according to the second port, is by first link switching by the communication link between second equipment
Second link specifically includes:
In the port for improving first equipment, the priority of other ports in addition to first port port, by highest priority
Port be set as selected state, determine the highest priority port be the second port;
The information of the second port is sent to second equipment, port negotiation is carried out with second equipment, according to institute
It states second port and establishes second link.
8. a kind of equipment characterized by comprising
Transmission unit, for sending the first message by the second equipment described in the first chain road direction between the second equipment;It is described
The corresponding port of first link is first port;
Receiving unit, for receiving the response message that second equipment is sent by first link;The response message
It is used to indicate second equipment and does not receive first message;
Determination unit, for determining that second equipment does not receive first message according to the response message;
The determination unit is also used to, and chooses second port;
Unit is established, for establishing the second link according to the second port, by the communication link between second equipment
It is second link by first link switching.
9. equipment according to claim 8, which is characterized in that
The receiving unit is specifically used for, and the institute that second equipment is sent is received by first link at the first moment
State response message;The response message be second equipment determine do not receive first message after to first equipment
It sends;
The determination unit is specifically used for, and the second reception after the receiving unit is at first moment is described in
Response message, it is determined that second equipment does not receive first message;Between first moment and second moment
Every preset duration.
10. equipment according to claim 9, which is characterized in that
The determination unit is also used to, when the receiving unit receives institute by first link in the preset duration
The third message of the second equipment transmission is stated, the third message carries the port information that second equipment reports, it is determined that with
Communication link between second equipment is first link.
11. equipment according to claim 9, which is characterized in that it further include detection unit,
The determination unit is used for, if the detection unit detects two biographies of first link in the preset duration
The defeated equal failure in direction, it is determined that the second port;Described two transmission directions include the side from the first equipment to the second equipment
To and from the second equipment to the direction of the first equipment;
The unit of establishing is used for, and establishes second link according to the second port, will be between second equipment
Communication link is second link by first link switching.
12. equipment according to claim 8, which is characterized in that
The receiving unit is used for, and receives the response message that second equipment is sent by first link;It is described
Response message includes status indicator, and the status indicator indicates that second equipment does not receive first message;
The determination unit is used for, and identifies the status indicator, determines that second equipment does not receive first message.
13. according to the described in any item equipment of claim 8-12, which is characterized in that
The determination unit is also used to, the transmission unit by second port to second equipment send the second message it
Before, set unselected state for the first port, by the port of first equipment in addition to the first port one
A port is set as selected state, determines that the port of selected state is the second port;
The unit of establishing is specifically used for, and the information of the second port is sent to second equipment, is set with described second
It is standby to carry out port negotiation, second link is established according to the second port.
14. according to the described in any item equipment of claim 8-12, which is characterized in that
The determination unit is also used to, the transmission unit by second port to second equipment send the second message it
Before, in the port of raising first equipment, the priority of other ports in addition to first port port, by highest priority
Port is set as selected state, determines that the port of the highest priority is the second port;
The unit of establishing is specifically used for, and the information of the second port is sent to second equipment, is set with described second
It is standby to carry out port negotiation, second link is established according to the second port.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710641177.3A CN109327383A (en) | 2017-07-31 | 2017-07-31 | A kind of fault handling method and equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710641177.3A CN109327383A (en) | 2017-07-31 | 2017-07-31 | A kind of fault handling method and equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109327383A true CN109327383A (en) | 2019-02-12 |
Family
ID=65245744
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710641177.3A Pending CN109327383A (en) | 2017-07-31 | 2017-07-31 | A kind of fault handling method and equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109327383A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111562461A (en) * | 2020-03-30 | 2020-08-21 | 索亮 | Monitoring device, method and system of communication cable |
CN112688826A (en) * | 2019-10-18 | 2021-04-20 | 中车株洲电力机车研究所有限公司 | Link diagnosis method, terminal device, link diagnosis system, and storage medium |
CN113489613A (en) * | 2021-07-16 | 2021-10-08 | 锐捷网络股份有限公司 | Message forwarding method and device |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050185956A1 (en) * | 2004-02-23 | 2005-08-25 | Adisorn Emongkonchai | Fast fault notifications of an optical network |
CN101159627A (en) * | 2007-11-07 | 2008-04-09 | 杭州华三通信技术有限公司 | Link state detecting method and apparatus |
CN101277269A (en) * | 2008-05-06 | 2008-10-01 | 杭州华三通信技术有限公司 | Terminal with dependable communication, terminal switch method and system as well as method for implementing the system |
CN102035695A (en) * | 2010-12-20 | 2011-04-27 | 中兴通讯股份有限公司 | Bidirectional forwarding detection method and device |
US20120026894A1 (en) * | 2007-11-29 | 2012-02-02 | Shinichi Akahane | Communication device, communication system, and communication fault detection method |
CN103684835A (en) * | 2012-09-24 | 2014-03-26 | 华为技术有限公司 | Link fault reporting method and processing method, and transmission node and primary node |
-
2017
- 2017-07-31 CN CN201710641177.3A patent/CN109327383A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050185956A1 (en) * | 2004-02-23 | 2005-08-25 | Adisorn Emongkonchai | Fast fault notifications of an optical network |
CN101159627A (en) * | 2007-11-07 | 2008-04-09 | 杭州华三通信技术有限公司 | Link state detecting method and apparatus |
US20120026894A1 (en) * | 2007-11-29 | 2012-02-02 | Shinichi Akahane | Communication device, communication system, and communication fault detection method |
CN101277269A (en) * | 2008-05-06 | 2008-10-01 | 杭州华三通信技术有限公司 | Terminal with dependable communication, terminal switch method and system as well as method for implementing the system |
CN102035695A (en) * | 2010-12-20 | 2011-04-27 | 中兴通讯股份有限公司 | Bidirectional forwarding detection method and device |
CN103684835A (en) * | 2012-09-24 | 2014-03-26 | 华为技术有限公司 | Link fault reporting method and processing method, and transmission node and primary node |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112688826A (en) * | 2019-10-18 | 2021-04-20 | 中车株洲电力机车研究所有限公司 | Link diagnosis method, terminal device, link diagnosis system, and storage medium |
CN112688826B (en) * | 2019-10-18 | 2022-05-20 | 中车株洲电力机车研究所有限公司 | Link diagnosis method, terminal device, link diagnosis system, and storage medium |
CN111562461A (en) * | 2020-03-30 | 2020-08-21 | 索亮 | Monitoring device, method and system of communication cable |
CN111562461B (en) * | 2020-03-30 | 2021-06-11 | 北京泰普科科技有限公司 | Monitoring device, method and system of communication cable |
CN113489613A (en) * | 2021-07-16 | 2021-10-08 | 锐捷网络股份有限公司 | Message forwarding method and device |
CN113489613B (en) * | 2021-07-16 | 2024-03-19 | 锐捷网络股份有限公司 | Message forwarding method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102629225B (en) | Dual-controller disk array, storage system and data storage path switching method | |
US9282058B2 (en) | Flexible stacking port | |
CN106170948B (en) | A kind of referee method for dual-active data center, apparatus and system | |
EP3352431B1 (en) | Network load balance processing system, method, and apparatus | |
US20040001449A1 (en) | System and method for supporting automatic protection switching between multiple node pairs using common agent architecture | |
CN101984606A (en) | Device-level redundancy protection method and system based on LACP | |
CN102970157B (en) | Link failure processing method, IRF member device and data communication equipment | |
CN106603359B (en) | The communicating control method and device of PLC system | |
CN109194547A (en) | Message transmitting method, device, local device and readable storage medium storing program for executing | |
CN104243259B (en) | Collaboration method and system in distributed elastic network interconnection system | |
CN104283780B (en) | The method and apparatus for establishing data transfer path | |
CN103002065A (en) | Method and device for sharing internet protocol (IP) address by host device and standby device | |
CN109327383A (en) | A kind of fault handling method and equipment | |
CN101197733A (en) | Automatic detection method and device for network connectivity | |
CN103560898A (en) | Port state setting method, and port priority selection method and device | |
US20050081110A1 (en) | Hybrid agent-oriented object model to provide software fault tolerance between distributed processor nodes | |
CN102591717A (en) | Method, device and system for processing service information of access device and virtual device | |
CN106603261A (en) | Hot backup method, first master device, backup device and communication system | |
CN109245926A (en) | Intelligent network adapter, intelligent network adapter system and control method | |
CN109088818A (en) | A kind of method and device of equipment linkage switching | |
CN101989953A (en) | Method and equipment for sending bidirectional forwarding detection message | |
CN102104531A (en) | Message processing device, method and system | |
CN114371912A (en) | Virtual network management method of data center and data center system | |
CN104410527A (en) | Topological detection method, exchanger and heat stacking system | |
CN101262479B (en) | A network file share method, server and network file share system |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190212 |