CN110138657A - Aggregated link switching method, device, equipment and the storage medium of inter-exchange - Google Patents
Aggregated link switching method, device, equipment and the storage medium of inter-exchange Download PDFInfo
- Publication number
- CN110138657A CN110138657A CN201910394988.7A CN201910394988A CN110138657A CN 110138657 A CN110138657 A CN 110138657A CN 201910394988 A CN201910394988 A CN 201910394988A CN 110138657 A CN110138657 A CN 110138657A
- Authority
- CN
- China
- Prior art keywords
- link
- processing unit
- central processing
- controller
- optical module
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0805—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
- H04L43/0811—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
-
- 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
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Environmental & Geological Engineering (AREA)
- Optical Communication System (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The embodiment of the invention discloses the aggregated link switching method of inter-exchange, device, equipment and storage mediums, this method comprises: controller carries out LOS signal detection for forming at least two optical modules of aggregated links in the interchanger of source in real time;The controller reports central processing unit when the receiving end for detecting target optical module generates LOS signal;If the controller receives the confirmation link failure response that the central processing unit is sent, transmitting terminal disabling signal disconnects the receiving end of the transmitting terminal and peer switches.Technical solution provided in an embodiment of the present invention, the LOS signal generated by the receiving end that controller obtains optical module in aggregated links, realize the real-time monitoring to link failure, improve link state detection speed, meanwhile disabling signal is sent after determining link failure, so that peer switches equally know that there are failures in the link, aggregated links switching efficiency is improved, ensure that communication stability.
Description
Technical field
The present embodiments relate to the aggregated link switching method of field of communication technology more particularly to inter-exchange, device,
Equipment and storage medium.
Background technique
Link aggregation is a kind of extended network band developed on the basis of traditional ethernet and fast ethernet switch
Wide and enhancing network stabilization technology increases link width after link aggregation, realizes link transmission elasticity and redundancy is standby
Part, it is therefore widely used in field of communication technology.
When the link for detecting some member port in link aggregation breaks down, stopping is sent on this port
Data message, and the sending port of data message is recalculated according to load-sharing strategy in remaining link, and then switch
Into trouble-free member port.Quick link switching can be carried out in link aggregation, exactly assessment aggregated links performance
Important indicator.It in the prior art, is usually to pass through periodic queries for the detection of the link state of interchanger physical port
The connection status of exchange chip or physical port is realized.
In the implementation of the present invention, the discovery prior art has following defects that central processing unit with poll to inventor
Mode link is judged by obtaining the state of each port respectively with the presence or absence of failure, detection efficiency is extremely low, often results in
The waste of processor resource;Meanwhile link state acquisition speed is slower, can only could obtain when detecting the port, and subtract
The time interval for inquiring physical port less will increase system burden again.
Summary of the invention
The embodiment of the invention provides the aggregated link switching method of inter-exchange, device, equipment and storage mediums, realize
The real-time monitoring of communication failure, improves the link switching efficiency of aggregated links in aggregated links.
In a first aspect, the embodiment of the invention provides a kind of aggregated link switching methods of inter-exchange, comprising:
The controller inspection to LOS signal is carried out in the interchanger of source for forming at least two optical modules of aggregated links in real time
It surveys, the controller is set between the optical module and central processing unit in the source interchanger;
The controller records the shape of the LOS signal when the receiving end for detecting target optical module generates LOS signal
State, and central processing unit is reported, so that whether the receives link that the central processing unit verifies the target optical module there is chain
Road failure;
If the controller receives the confirmation link failure response that the central processing unit is sent, to the target
The transmitting terminal of optical module provides transmitting terminal and disables signal, so that the transmitting terminal disconnects the company with the receiving end of peer switches
It connects;
Wherein, the peer switches are connected with the source interchanger by the aggregated links, and are exchanged with the source
The circuit structure of machine is identical.
Second aspect, the embodiment of the invention provides a kind of aggregated link switching methods of inter-exchange, comprising:
Central processing unit carries out the after the interruption for receiving controller reports, to the receives link of the target optical module
Primary fault detection;The controller is set between the optical module in the interchanger of source and the central processing unit;
The central processing unit is if it is determined that first time failure detection result is that the receives link link failure occurs, then
Second of fault detection is carried out to the receives link of the target optical module;
The central processing unit is if it is determined that second of failure detection result is that the receives link link failure occurs, then
Confirmation link failure response is sent to the controller, is provided with triggering the controller to the transmitting terminal of the target optical module
Transmitting terminal disables signal;
The transmitting terminal disabling signal is used to indicate the connection of the transmitting terminal disconnection and the receiving end of peer switches, institute
It states source interchanger described in peer switches to be connected by aggregated links, and identical as the circuit structure of the source interchanger.
The third aspect, the embodiment of the invention provides a kind of aggregated links switching devices of inter-exchange, are applied to control
In device, comprising:
LOS signal acquisition module, in real time at least two optical modules for being used to form aggregated links in the interchanger of source
Carry out the detection of LOS signal;The controller is set between the optical module and central processing unit in the source interchanger;
LOS signal reporting module, for when the receiving end for detecting target optical module generates LOS signal, described in record
The state of LOS signal, and central processing unit is reported, so that the central processing unit verifies the receives link of the target optical module
Whether link failure is occurred;
Signal transmitting module is disabled, if the confirmation link failure response sent for receiving the central processing unit,
Transmitting terminal then is provided to the transmitting terminal of the target optical module and disables signal, so that the transmitting terminal disconnects and peer switches
The connection of receiving end;
Wherein, the peer switches are connected with the source interchanger by the aggregated links, and are exchanged with the source
The circuit structure of machine is identical.
Fourth aspect, the embodiment of the invention provides a kind of aggregated links switching devices of inter-exchange, are applied to center
In processor, comprising:
Fisrt fault detection module connects the target optical module after reporting in the interruption for receiving controller
It receives link and carries out first time fault detection;The controller be set to optical module in the interchanger of source and the central processing unit it
Between;
Second fault detection module, for if it is determined that first time failure detection result is that the receives link link occurs
Failure then carries out second of fault detection to the receives link of the target optical module;
Link failure respond module, for if it is determined that second of failure detection result is that the receives link link occurs
Failure then sends confirmation link failure response to the controller, to trigger hair of the controller to the target optical module
Sending end provides transmitting terminal and disables signal;
Wherein, the transmitting terminal disabling signal is used to indicate the company of the transmitting terminal disconnection and the receiving end of peer switches
It connects, source interchanger described in the peer switches is connected by aggregated links, and identical as the circuit structure of the source interchanger.
5th aspect, the embodiment of the invention provides a kind of switch devices, comprising: for forming aggregated links at least
Two optical modules, central processing unit and controller;The controller be set to the optical module and the central processing unit it
Between;
The controller, for executing method described in the embodiment of the present invention one;And/or
The central processing unit, for executing method described in the embodiment of the present invention two.
6th aspect, the embodiment of the invention provides a kind of storage medium comprising computer executable instructions, the meters
Calculation machine executable instruction as computer processor when being executed for executing the poly- of inter-exchange described in the embodiment of the present invention one
Link switch-over method is closed, alternatively, the aggregated link switching method for executing inter-exchange described in the embodiment of the present invention two.
Technical solution provided in an embodiment of the present invention is generated by the receiving end that controller obtains optical module in aggregated links
LOS signal, realize the real-time monitoring to link failure, improve the detection speed of link state, meanwhile, determine link therefore
Disabling signal is sent after barrier, so that peer switches equally know that there are failures in the link, and then trigger link switches, and improves
Aggregated links switching efficiency.Central processing unit inquires the state of LOS signal twice, is sentenced according to query result twice
It whether there is failure in chain rupture road, improve the accuracy of link failure detection, avoid and generate interruption due to shake etc.
Wrong report leads to unnecessary link switching, causes communication link wavy, ensure that the stability of communication efficiency and communication system.
Detailed description of the invention
Fig. 1 is the flow chart of the aggregated link switching method for the inter-exchange that the embodiment of the present invention one provides;
Fig. 2A is the flow chart of the aggregated link switching method of inter-exchange provided by Embodiment 2 of the present invention;
Fig. 2 B is the flow chart of the aggregated link switching method of inter-exchange provided by Embodiment 2 of the present invention;
Fig. 3 is the structural block diagram of the aggregated links switching device for the inter-exchange that the embodiment of the present invention three provides;
Fig. 4 is the structural block diagram of the aggregated links switching device for the inter-exchange that the embodiment of the present invention four provides;
Fig. 5 is the structural block diagram for the switch device that the embodiment of the present invention five provides.
Specific embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched
The specific embodiment stated is used only for explaining the present invention rather than limiting the invention.It also should be noted that in order to just
Only the parts related to the present invention are shown in description, attached drawing rather than entire infrastructure.
Embodiment one
Fig. 1 is a kind of flow chart of the aggregated link switching method for inter-exchange that the embodiment of the present invention one provides, this reality
It applies example to be applicable to the case where communication link switches between multiple switch in aggregated links, this method can be by this hair
The aggregated links switching device of inter-exchange in bright embodiment executes, the device can by software and or hardware realization,
And generally can integrate in the controller of the interchanger after link aggregation, the central processing unit cooperation with the interchanger makes
With this method specifically comprises the following steps:
S110, controller carry out LOS letter for forming at least two optical modules of aggregated links in the interchanger of source in real time
Number detection, the controller is set between the optical module and central processing unit in the source interchanger.
Controller, i.e. electronic controller are with signal acquisition or data acquisition for input, to generate various instructions as output
Electronic component.In embodiments of the present invention, optionally, controller includes FPGA (Field-Programmable Gate
Array, field programmable gate array);Since FPGA is a kind of semi-custom circuit, it is insufficient custom circuit versatility had both been can solve
Problem, and the shortcomings that gate circuit limited amount can be overcome, therefore, use FPGA that can connect multiple light simultaneously as controller
Module.The controller is set between the optical module and central processing unit in the source interchanger, particularly, the controller
It may be mounted at the outside of central processing unit and the side close to optical module.
Optical module (optical module) is a kind of photoelectric conversion device, and transmitting terminal converts the electrical signal to optical signal simultaneously
It is issued by optical fiber, receiving end receives optical signal by optical fiber and is converted into electric signal;Different optical modules its packing forms pass
Defeated rate and transmitting/reception wavelength are different.Optionally, in embodiments of the present invention, not for the type of optical module
Make specific limit.
Interchanger (Switch) is a kind of network equipment forwarded for electric signal or optical signal, can be access switch
Any two network node provide pathway for electrical signals.In embodiments of the present invention, interchanger is optical fiber switch, opposite end exchange
Machine is connected with source interchanger by aggregated links, and identical as the circuit structure of source interchanger.Aggregated links includes at least two
Link, therefore, every interchanger include at least two optical modules.The transmitting terminal of source interchanger optical module passes through an optical fiber connection
The receiving end of the receiving end of peer switches optical module, source interchanger optical module passes through another optical fiber peer end of the connection interchanger light
The transmitting terminal of module, two optical modules and two optical fiber being located on two interchangers in this way, has collectively constituted one
Communication link.
Interchanger further includes exchange chip, and exchange chip is the DPA data processing activity of interchanger, is responsible for receiving network data
Or send network data;The data receiver of the data sending terminal connection optical module of exchange chip, the data receiver of interchanger
The data sending terminal of end connection optical module, carries out data communication as electronic signals.Particularly, the data receiver of optical module
End and data sending terminal and above-mentioned transmitting terminal and receiving end are not identical concepts, and above-mentioned transmitting terminal and receiving end are substantially one
Transmission/receiving end of kind optical signal, communicates, reception/transmission signal is all optical signal with the optical module of another interchanger.
LOS signal, i.e. dropout (Loss Of Signal), when receiving terminal of communication system can not receive signal of communication
When just will appear LOS signal alarm, in embodiments of the present invention, when the receiving end of optical module can not receive optical signal, just
LOS signal can be generated.
S120, the controller record the LOS letter when the receiving end for detecting target optical module generates LOS signal
Number state, and report central processing unit so that the central processing unit verify the target optical module receives link whether
There is link failure;
When the receiving end of optical module generates LOS signal, controller can quickly be obtained by the LOS interface of optical module
To the signal, when detecting, detecting period physically is extremely short for the signal, compared to central processing unit in a manner of poll
The link state for obtaining each optical module, substantially reduces acquisition time, and the reality of physical link has been gone out with quickly speed responsing
State.
Optionally, in embodiments of the present invention, controller records the state of the LOS signal in status register, and
Central processing unit is reported in the form of interruption, central processing unit target optical module according to the state verification of LOS signal connects
Receive whether link link failure occurs;If controller has got LOS signal, the value of status register is set to high level 1,
Central processing unit judges that link failure occurs in the receives link of target optical module at this time according to the record value in status register;
If LOS signal has had not been obtained in controller, the value of status register is set to low level 0, central processing unit is posted according to state
Record value in storage judges that the receives link of target optical module at this time does not occur link failure.Particularly, the state is posted
Storage can be located in the controller.
If S130, the controller receive the confirmation link failure response that the central processing unit is sent, to institute
The transmitting terminal for stating target optical module provides transmitting terminal disabling signal, so that the transmitting terminal disconnects the receiving end with peer switches
Connection.
If central processing unit goes out according in the record value judgement in the status register at this time receives link of target optical module
Link failure is showed, then confirmation faulty link response has been sent to controller, after controller receives the response, to the TX_ of optical module
Disable interface provides transmitting terminal and disables signal, after optical module receives the disabling signal, transmitting terminal is disconnected and is exchanged with opposite end
The connection of the receiving end of machine, so that the optical module of peer switches can not obtain optical signal in receiving end, and then opposite end exchanges
Machine executes the above method, so that central processing unit judges rapidly link failure.A link is needed since aggregated links switches
Two sides determine link failure simultaneously, link switching could be executed, and unilateral side judges that link failure will lead to aggregation protocol and cut
Change it is unsuccessful, therefore, after the central processing unit of this interchanger judges link failure, controller pass through TX_disable interface
The disabling signal of transmission can make peer switches judge link failure rapidly in the same way, and then switch communication chain
Road.
Controller is separately connected optical module and central processing unit, and passed through by technical solution provided in an embodiment of the present invention
Controller obtains the LOS signal that the receiving end of optical module in aggregated links generates, and realizes the real-time monitoring to link failure, greatly
The detection speed of link state is improved greatly, meanwhile, transmitting terminal disabling signal is provided after determining link failure, so that opposite end exchanges
Machine equally knows that there are failures in the link, and then trigger link switches, and improves aggregated links switching efficiency, ensure that entire
The stability of communication system.
Embodiment two
Fig. 2A is a kind of flow chart of the aggregated link switching method of inter-exchange provided by Embodiment 2 of the present invention, this reality
The switching that example is applicable in aggregated links communication link between multiple switch is applied, this method can be by the embodiment of the present invention
The aggregated links switching device of inter-exchange execute, which can be by software and or hardware realization, and generally can be with
It is integrated in the central processing unit of the interchanger after link aggregation, is used cooperatively with the controller of the interchanger, this method
Specifically comprise the following steps:
S210, central processing unit are after the interruption for receiving controller reports, to the receives link of the target optical module
Carry out first time fault detection;The controller is set between the optical module in the interchanger of source and the central processing unit.
After controller gets LOS signal, central processing unit is reported in the form of interrupt signal;In the interrupt signal not
Particular state including LOS signal, therefore, central processing unit need to obtain the shape of the LOS signal after getting the interruption
State.
Optionally, in embodiments of the present invention, central processing unit inquires institute in status register by interrupt service routine
State the state of LOS signal;Determine whether the receives link link failure occurs according to the LOS signal condition;Wherein, described
Status register is located in the controller.
If the state that central processing unit gets the LOS signal in status register is high level 1, it is determined that target at this time
There is link failure in the receives link of optical module;If central processing unit gets the state of the LOS signal in status register
For low level 0, it is determined that the receives link of target optical module does not occur link failure at this time.
Particularly, if central processing unit determines that the receives link does not occur link failure, central processing unit is not to institute
The receives link for stating target optical module carries out second of fault detection, assert in the link and without failure, which reports
To interrupt wrong report.
S220, the central processing unit are if it is determined that first time failure detection result is that the receives link link event occurs
Barrier then carries out second of fault detection to the receives link of the target optical module.
If first time fault detection determines that link failure occurs in the receives link, centainly deposited without it can determine that the link
In failure, because may be the wrong report generated due to certain situation, for example, since shake or other reasons occur for interchanger,
LOS signal moment is caused to generate momentary recovery original state again, during generating LOS signal moment, during central processing unit passes through
It is high level 1 that disconnected service routine, which gets in status register the LOS signal, but later the signal momentary recovery at original state,
Its actual functional capability has restored normally, failure not to be deposited in link, therefore, even if getting the state of LOS signal at this time as high electricity
Flat 1, it still may be a kind of interruption wrong report.It is therefore desirable to which the receives link to the target optical module carries out second of failure
Detection confirms and whether there is failure in link.
Optionally, in embodiments of the present invention, the central processing unit passes through interrupt service routine for the target optical mode
The number of block is sent to interrupt task;The central processing unit inquires the Status register when executing the interrupt task again
LOS signal condition described in device, to carry out second of fault detection;Central processing unit determines institute according to the LOS signal condition
State whether receives link link failure occurs.
S230, the central processing unit are if it is determined that second of failure detection result is that the receives link link event occurs
Barrier then sends confirmation link failure response to the controller, to trigger transmission of the controller to the target optical module
End provides transmitting terminal and disables signal.
The transmitting terminal disabling signal is used to indicate the connection of the transmitting terminal disconnection and the receiving end of peer switches, institute
It states source interchanger described in peer switches to be connected by aggregated links, and identical as the circuit structure of the source interchanger.
Technical solution provided in an embodiment of the present invention, central processing unit pass through interrupt service routine and interrupt task respectively
The state for inquiring the LOS signal twice judges to improve link event with the presence or absence of failure in link according to query result twice
The accuracy for hindering detection, avoiding the generation interruption wrong report due to shake etc. leads to unnecessary link switching, causes to communicate
Link upheaval, influences communication efficiency, ensure that the stability of communication system.
Concrete application scene one
As shown in Figure 2 B, concrete application scene of the present invention first is that provide a kind of based on control on the basis of the above embodiments
The aggregated link switching method of the inter-exchange of device and central processing unit processed, this method comprises the following steps:
S001, controller carry out LOS letter for forming at least two optical modules of aggregated links in the interchanger of source in real time
Number detection;
S002, controller judge whether to detect that the receiving end of target optical module produces LOS signal;
If so, executing S003;If it is not, executing S001;
S003, controller record the state of the LOS signal in status register, and report central processing unit;
S004, central processing unit inquire the state of LOS signal described in status register by interrupt service routine;
S005, central processing unit judge whether the state of the LOS signal is high level 1;
If so, executing S006;If it is not, executing S013;
The number of the optical module is sent to interrupt task by interrupt the server by S006, central processing unit;
S007, central processing unit inquire LOS signal described in the status register when executing the interrupt task again
State;
S008, central processing unit judge whether the state of the LOS signal is high level 1;
If so, executing S009;If it is not, executing S013;
S009, central processing unit determine that link failure occurs in the receives link of target optical module;
S010, central controller send confirmation link failure response to controller;
S011, controller receive the confirmation link failure response that central processing unit is sent, to the transmitting terminal of target optical module
Transmitting terminal is provided and disables signal;
S012, central processing unit execute link switching operation
S013, central processing unit determine that the receives link of target optical module does not occur link failure, without link switching.
Technical solution provided in an embodiment of the present invention is generated by the receiving end that controller obtains optical module in aggregated links
LOS signal, realize the real-time monitoring to link failure, improve the detection speed of link state, meanwhile, determine link therefore
Disabling signal is sent after barrier, so that peer switches equally know that there are failures in the link, and then trigger link switches, and improves
Aggregated links switching efficiency.Central processing unit inquires the state of LOS signal twice, is sentenced according to query result twice
It whether there is failure in chain rupture road, improve the accuracy of link failure detection, avoid and generate interruption due to shake etc.
Wrong report leads to unnecessary link switching, causes communication link wavy, ensure that the stability of communication efficiency and communication system.
Embodiment three
Fig. 3 is a kind of structural block diagram of the aggregated links switching device of inter-exchange provided by the embodiment of the present invention three,
Applied in controller, which is specifically included: LOS signal acquisition module 310, LOS signal reporting module 320 and disabling signal
Sending module 330.
LOS signal acquisition module 310, in real time at least two optical modes for being used to form aggregated links in the interchanger of source
The detection of block progress LOS signal;The controller is set between the optical module and central processing unit in the source interchanger;
LOS signal reporting module 320, for recording institute when the receiving end for detecting target optical module generates LOS signal
The state of LOS signal is stated, and reports central processing unit, so that the central processing unit verifies the reception chain of the target optical module
Whether road there is link failure;
Signal transmitting module 330 is disabled, if rung for receiving the confirmation link failure that the central processing unit is sent
It answers, then provides transmitting terminal to the transmitting terminal of the target optical module and disable signal, so that transmitting terminal disconnection is exchanged with opposite end
The connection of the receiving end of machine;
Wherein, the peer switches are connected with the source interchanger by the aggregated links, and are exchanged with the source
The circuit structure of machine is identical.
Controller is separately connected optical module and central processing unit, and passed through by technical solution provided in an embodiment of the present invention
Controller obtains the LOS signal that the receiving end of optical module in aggregated links generates, and realizes the real-time monitoring to link failure, greatly
The detection speed of link state is improved greatly, meanwhile, disabling signal is sent after determining link failure, so that peer switches are same
Know that there are failures in the link, and then trigger link switches, and improves aggregated links switching efficiency, ensure that entire communication system
The stability of system.
Optionally, on the basis of the various embodiments described above, LOS signal reporting module 320 is specifically used for:
When detecting that the receiving end in target optical module generates LOS signal, the LOS letter is recorded in status register
Number state, and central processing unit is reported in the form of interruption;The status register is located in the controller.
The aggregated link switching method of inter-exchange provided by any embodiment of the invention can be performed in above-mentioned apparatus, has
The corresponding functional module of execution method and beneficial effect.The not technical detail of detailed description in the present embodiment, reference can be made to this hair
The method that bright any embodiment provides.
Example IV
Fig. 4 is a kind of structural block diagram of the aggregated links switching device of inter-exchange provided by the embodiment of the present invention four,
Applied in central processing unit, which is specifically included: Fisrt fault detection module 410, the second fault detection module 420 and chain
Road failure response module 430.
Fisrt fault detection module 410, after being reported in the interruption for receiving controller, to the target optical module
Receives link carries out first time fault detection;The controller is set to optical module and the central processing unit in the interchanger of source
Between;
Second fault detection module 420 is used for if it is determined that first time failure detection result is receives link appearance
Link failure then carries out second of fault detection to the receives link of the target optical module;
Link failure respond module 430 is used for if it is determined that second of failure detection result is receives link appearance
Link failure then sends confirmation link failure response to the controller, to trigger the controller to the target optical module
Transmitting terminal provide transmitting terminal disable signal;
Wherein, the transmitting terminal disabling signal is used to indicate the company of the transmitting terminal disconnection and the receiving end of peer switches
It connects, source interchanger described in the peer switches is connected by aggregated links, and identical as the circuit structure of the source interchanger.
Technical solution provided in an embodiment of the present invention, central processing unit pass through interrupt service routine and interrupt task respectively
The state for inquiring the LOS signal twice judges to improve link event with the presence or absence of failure in link according to query result twice
The accuracy for hindering detection, avoiding the generation interruption wrong report due to shake etc. leads to unnecessary link switching, causes to communicate
Link upheaval, influences communication efficiency, ensure that the stability of communication system.
Optionally, on the basis of the various embodiments described above, Fisrt fault detection module 410 can be specifically included:
First state query unit, for inquiring the shape of LOS signal described in status register by interrupt service routine
State;The status register is located in the controller;
First link failure judging unit, for determining whether the receives link occurs according to the LOS signal condition
Link failure.
Optionally, on the basis of the various embodiments described above, the second fault detection module 420 can be specifically included:
Optical mode block number transmission unit, for the number of the optical module to be sent to interrupt task;
Second status inquiry unit, for being inquired described in the status register again when executing the interrupt task
The state of LOS signal;
Second link failure judging unit, for determining whether the receives link occurs according to the LOS signal condition
Link failure.
Optionally, on the basis of the various embodiments described above, Fisrt fault detection module 410 is also used to:
If it is determined that the receives link does not occur link failure, then the is not carried out to the receives link of the target optical module
Secondary failure detection.
The aggregated link switching method of inter-exchange provided by any embodiment of the invention can be performed in above-mentioned apparatus, has
The corresponding functional module of execution method and beneficial effect.The not technical detail of detailed description in the present embodiment, reference can be made to this hair
The method that bright any embodiment provides.
Embodiment five
Fig. 5 is a kind of structural block diagram for switch device that the embodiment of the present invention five provides, as shown in figure 5, the equipment packet
It includes: for forming at least two optical modules 50, central processing unit 51 and the controller 52 of aggregated links;The controller 52 is set
It is placed between the optical module 50 and the central processing unit 51;In Fig. 5 by taking two optical modules 50 as an example;
The controller 52, for executing the aggregated links switching side of inter-exchange described in the embodiment of the present invention one
Method;And/or
The central processing unit 51, the aggregated links for executing inter-exchange described in the embodiment of the present invention two switch
Method.
Embodiment six
The embodiment of the present invention six additionally provides a kind of computer readable storage medium, and the computer readable storage medium exists
For executing the aggregated link switching method of inter-exchange when being executed by computer processor, this method comprises:
The controller inspection to LOS signal is carried out in the interchanger of source for forming at least two optical modules of aggregated links in real time
It surveys, the controller is set between the optical module and central processing unit in the source interchanger;
The controller records the shape of the LOS signal when the receiving end for detecting target optical module generates LOS signal
State, and central processing unit is reported, so that whether the receives link that the central processing unit verifies the target optical module there is chain
Road failure;
If the controller receives the confirmation link failure response that the central processing unit is sent, to the target
The transmitting terminal of optical module provides transmitting terminal and disables signal, so that the transmitting terminal disconnects the company with the receiving end of peer switches
It connects;
Wherein, the peer switches are connected with the source interchanger by the aggregated links, and are exchanged with the source
The circuit structure of machine is identical.
Alternatively, the computer readable storage medium by computer processor when being executed for executing the poly- of inter-exchange
Link switch-over method is closed, this method comprises:
Central processing unit carries out the after the interruption for receiving controller reports, to the receives link of the target optical module
Primary fault detection;The controller is set between the optical module in the interchanger of source and the central processing unit;
The central processing unit is if it is determined that first time failure detection result is that the receives link link failure occurs, then
Second of fault detection is carried out to the receives link of the target optical module;
The central processing unit is if it is determined that second of failure detection result is that the receives link link failure occurs, then
Confirmation link failure response is sent to the controller, is provided with triggering the controller to the transmitting terminal of the target optical module
Transmitting terminal disables signal;
The transmitting terminal disabling signal is used to indicate the connection of the transmitting terminal disconnection and the receiving end of peer switches, institute
It states source interchanger described in peer switches to be connected by aggregated links, and identical as the circuit structure of the source interchanger.
Certainly, a kind of storage medium comprising computer executable instructions, computer provided by the embodiment of the present invention
The method operation that executable instruction is not limited to the described above, can also be performed inter-exchange provided by any embodiment of the invention
Aggregated link switching method in relevant operation.
By the description above with respect to embodiment, it is apparent to those skilled in the art that, the present invention
It can be realized by software and required common hardware, naturally it is also possible to which by hardware realization, but in many cases, the former is more
Good embodiment.Based on this understanding, technical solution of the present invention substantially in other words contributes to the prior art
Part can be embodied in the form of software products, which can store in computer readable storage medium
In, floppy disk, read-only memory (Read-Only Memory, ROM), random access memory (Random such as computer
Access Memory, RAM), flash memory (FLASH), hard disk or CD etc., including some instructions are with so that a computer is set
Standby (can be personal computer, server or the network equipment etc.) executes method described in each embodiment of the present invention.
It is worth noting that, in the embodiment of the aggregated links switching device of above-mentioned inter-exchange, included each list
Member and module are only divided according to the functional logic, but are not limited to the above division, as long as can be realized corresponding
Function;In addition, the specific name of each functional unit is also only for convenience of distinguishing each other, it is not intended to restrict the invention
Protection scope.
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that
The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation,
It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention
It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also
It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.
Claims (10)
1. a kind of aggregated link switching method of inter-exchange characterized by comprising
The controller detection to LOS signal is carried out in the interchanger of source for forming at least two optical modules of aggregated links in real time,
The controller is set between the optical module and central processing unit in the source interchanger;
The controller records the state of the LOS signal when the receiving end for detecting target optical module generates LOS signal,
And central processing unit is reported, so that whether the receives link that the central processing unit verifies the target optical module there is link event
Barrier;
If the controller receives the confirmation link failure response that the central processing unit is sent, to the target optical mode
The transmitting terminal of block provides transmitting terminal and disables signal, so that the transmitting terminal disconnects the connection with the receiving end of peer switches;
Wherein, the peer switches are connected with the source interchanger by the aggregated links, and with the source interchanger
Circuit structure is identical.
2. the method according to claim 1, wherein the controller is detecting the reception in target optical module
When end generates LOS signal, the state of the LOS signal is recorded, and report central processing unit, comprising:
The controller records institute when detecting that the receiving end in target optical module generates LOS signal in status register
The state of LOS signal is stated, and reports central processing unit in the form of interruption;The status register is located in the controller.
3. a kind of aggregated link switching method of inter-exchange characterized by comprising
Central processing unit carries out for the first time the receives link of the target optical module after the interruption for receiving controller reports
Fault detection;The controller is set between the optical module in the interchanger of source and the central processing unit;
The central processing unit is if it is determined that first time failure detection result is that the receives link link failure occurs, then to institute
The receives link for stating target optical module carries out second of fault detection;
The central processing unit is if it is determined that second of failure detection result is that the receives link link failure occurs, then to institute
It states controller and sends confirmation link failure response, provide transmission to trigger the controller to the transmitting terminal of the target optical module
End disabling signal;
The transmitting terminal disabling signal is used to indicate the connection of the transmitting terminal disconnection and the receiving end of peer switches, described right
Source interchanger described in end switch is connected by aggregated links, and identical as the circuit structure of the source interchanger.
4. according to the method described in claim 3, it is characterized in that, reception of the central processing unit to the target optical module
Link carries out first time fault detection, comprising:
The central processing unit inquires the state of LOS signal described in status register by interrupt service routine;The state
Register-bit is in the controller;
The central processing unit determines whether the receives link link failure occurs according to the LOS signal condition.
5. according to the method described in claim 4, it is characterized in that, reception of the central processing unit to the target optical module
Link carries out second of fault detection, comprising:
The number of the optical module is sent to interrupt task by the interrupt service routine by the central processing unit;
The central processing unit inquires the shape of LOS signal described in the status register when executing the interrupt task again
State;The central processing unit determines whether the receives link link failure occurs according to the LOS signal condition.
6. according to the method described in claim 4, it is characterized in that, the central processing unit is according to the LOS signal condition
After determining whether the receives link link failure occurs, further includes:
The central processing unit is not if it is determined that the receives link occurs link failure, then the central processing unit is not to the mesh
The receives link for marking optical module carries out second of fault detection.
7. a kind of aggregated links switching device of inter-exchange is applied in controller characterized by comprising
LOS signal acquisition module, for being carried out in real time in the interchanger of source for forming at least two optical modules of aggregated links
The detection of LOS signal;The controller is set between the optical module and central processing unit in the source interchanger;
LOS signal reporting module, for when the receiving end for detecting target optical module generates LOS signal, recording the LOS letter
Number state, and report central processing unit so that the central processing unit verify the target optical module receives link whether
There is link failure;
Signal transmitting module is disabled, if the confirmation link failure response sent for receiving the central processing unit, to
The transmitting terminal of the target optical module provides transmitting terminal and disables signal, so that the transmitting terminal disconnects the reception with peer switches
The connection at end;
Wherein, the peer switches are connected with the source interchanger by the aggregated links, and with the source interchanger
Circuit structure is identical.
8. a kind of aggregated links switching device of inter-exchange is applied in central processing unit characterized by comprising
Fisrt fault detection module, after being reported in the interruption for receiving controller, to the reception chain of the target optical module
Road carries out first time fault detection;The controller is set between the optical module in the interchanger of source and the central processing unit;
Second fault detection module, for if it is determined that first time failure detection result is that the receives link link event occurs
Barrier then carries out second of fault detection to the receives link of the target optical module;
Link failure respond module, for if it is determined that second of failure detection result is that the receives link link event occurs
Barrier then sends confirmation link failure response to the controller, to trigger transmission of the controller to the target optical module
End provides transmitting terminal and disables signal;
Wherein, the transmitting terminal disabling signal is used to indicate the connection of the transmitting terminal disconnection and the receiving end of peer switches,
Source interchanger described in the peer switches is connected by aggregated links, and identical as the circuit structure of the source interchanger.
9. a kind of switch device characterized by comprising for forming at least two optical modules, the centre of aggregated links
Manage device and controller;The controller is set between the optical module and the central processing unit;
The controller, for method described in perform claim requirement 1 or 2;And/or
The central processing unit requires method described in any one of 3-6 for perform claim.
10. a kind of storage medium comprising computer executable instructions, the computer executable instructions are by computer disposal
For executing the aggregated link switching method of the inter-exchange as described in any in claim 1-2 when device executes, alternatively, being used for
Execute the aggregated link switching method of the inter-exchange as described in any in claim 3-6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910394988.7A CN110138657B (en) | 2019-05-13 | 2019-05-13 | Aggregation link switching method, device, equipment and storage medium between switches |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910394988.7A CN110138657B (en) | 2019-05-13 | 2019-05-13 | Aggregation link switching method, device, equipment and storage medium between switches |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110138657A true CN110138657A (en) | 2019-08-16 |
CN110138657B CN110138657B (en) | 2021-11-09 |
Family
ID=67573670
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910394988.7A Active CN110138657B (en) | 2019-05-13 | 2019-05-13 | Aggregation link switching method, device, equipment and storage medium between switches |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110138657B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113630178A (en) * | 2021-08-18 | 2021-11-09 | 新华三信息安全技术有限公司 | Message transmission method and device |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040078632A1 (en) * | 2002-10-21 | 2004-04-22 | Infante Jon L. | System with multiple path fail over, fail back and load balancing |
CN101547526A (en) * | 2008-03-27 | 2009-09-30 | 华为技术有限公司 | Fault handling method, wireless device and communication system |
EP2180636A1 (en) * | 2008-10-23 | 2010-04-28 | Alcatel, Lucent | Method for signaling a unidirectional failure of a packet-switched link |
CN105103475A (en) * | 2014-03-05 | 2015-11-25 | 华为技术有限公司 | Method, device and system for link switching |
CN107404393A (en) * | 2016-05-20 | 2017-11-28 | 北京信威通信技术股份有限公司 | A kind of method and system for judging link failure |
CN108234301A (en) * | 2016-12-15 | 2018-06-29 | 中兴通讯股份有限公司 | A kind of data link switching method and device |
CN108599837A (en) * | 2018-03-22 | 2018-09-28 | 烽火通信科技股份有限公司 | A kind of restoration methods and system of optical module signal interruption |
-
2019
- 2019-05-13 CN CN201910394988.7A patent/CN110138657B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040078632A1 (en) * | 2002-10-21 | 2004-04-22 | Infante Jon L. | System with multiple path fail over, fail back and load balancing |
CN101547526A (en) * | 2008-03-27 | 2009-09-30 | 华为技术有限公司 | Fault handling method, wireless device and communication system |
EP2180636A1 (en) * | 2008-10-23 | 2010-04-28 | Alcatel, Lucent | Method for signaling a unidirectional failure of a packet-switched link |
CN105103475A (en) * | 2014-03-05 | 2015-11-25 | 华为技术有限公司 | Method, device and system for link switching |
CN107404393A (en) * | 2016-05-20 | 2017-11-28 | 北京信威通信技术股份有限公司 | A kind of method and system for judging link failure |
CN108234301A (en) * | 2016-12-15 | 2018-06-29 | 中兴通讯股份有限公司 | A kind of data link switching method and device |
CN108599837A (en) * | 2018-03-22 | 2018-09-28 | 烽火通信科技股份有限公司 | A kind of restoration methods and system of optical module signal interruption |
Non-Patent Citations (2)
Title |
---|
吕晓华等: ""A 6Gbps/channel CML Receiver with Loss of Signal Detection for Chip-to-Chip communication"", 《IEEE》 * |
孔倩: ""基于openflow的链路容错机制的研究与设计"", 《中国优秀硕士学位论文全文数据库 信息科技辑 I139-5》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113630178A (en) * | 2021-08-18 | 2021-11-09 | 新华三信息安全技术有限公司 | Message transmission method and device |
Also Published As
Publication number | Publication date |
---|---|
CN110138657B (en) | 2021-11-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR100687739B1 (en) | Method for monitoring link performance and diagnosing active status of link for Ethernet Passive Optical Network | |
CN106789445B (en) | Status polling method and system for network equipment in broadcast television network | |
CN111786804A (en) | Link fault monitoring method and device | |
WO2013127164A1 (en) | Method for triggering bypass equipment switching, and bypass equipment switching method and device | |
AU684019B2 (en) | A method and a system for distributed supervision of hardware | |
CN109245961A (en) | Link-quality detection method, device, storage medium and equipment | |
CN104125590A (en) | Link fault diagnosis device and method thereof | |
CN106302001B (en) | Service fault detection method, related device and system in data communication network | |
CN111682892B (en) | Automatic link establishment method based on service perception of intelligent gateway in satellite communication | |
CN109104319B (en) | Data storage device and method | |
CN110138657A (en) | Aggregated link switching method, device, equipment and the storage medium of inter-exchange | |
CN108616423B (en) | Offline device monitoring method and device | |
CN107465527A (en) | A kind of network element, pretection switch method and its system | |
CN108141406B (en) | Method, device and equipment for processing service fault | |
JP2007166446A (en) | Pon system, its abnormality determining method, and station side device | |
KR20200116784A (en) | Network Error Detection Method | |
CN109981407B (en) | Anti-attack message method and device | |
CN114389991A (en) | Intelligent network traffic scheduling management method and device | |
CN110896544B (en) | Fault delimiting method and device | |
KR20200101117A (en) | Network system capable of detecting freezing status of node and method for detecting freezing status of node | |
US9806939B2 (en) | Method and apparatus for linear protection switching | |
JP2016071480A (en) | Failure monitoring system, failure monitoring method, and failure monitoring program | |
CN109039728A (en) | Flow congestion detection method and system based on BFD | |
CN117595923B (en) | Optical fiber link switching method and device | |
CN115277509B (en) | Method and system for rapidly detecting faults of link aggregation group |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |