Summary of the invention
The shortcoming of prior art in view of the above, the object of the present invention is to provide a kind of bypass control method, system and the network equipment, for solving problem high for the design difficulty and complexity that solve the bypass of network equipment Single Point of Faliure in prior art.
For achieving the above object and other relevant objects, the invention provides a kind of bypass control method, described bypass control method comprises: whether supervisory control system state occurs exception; When described system mode occurs abnormal, drive circuit is adopted to drive Control switching port to be switched to bypass condition.
Alternatively, described system mode is abnormal comprises: system operating temperatures exceeds default temperature range or/and Key Circuit voltage exceeds default voltage range.
Alternatively, described drive circuit comprises optocoupler.
Alternatively, described bypass control method also comprises: when monitoring system mode and recovering normal, adopts drive circuit to drive switching port described in described Control to switch back normal condition.
The present invention also provides a kind of Bypass Control System, described Bypass Control System comprises: system-monitoring module, comprises one or more monitoring means, whether occurs exception for supervisory control system state, when arbitrary described monitoring means monitors system mode exception, export bypass control signal; Bypass changeover module, is connected with described system-monitoring module, for when receiving described bypass control signal, adopts drive circuit to drive Control switching port to be switched to bypass condition.
Alternatively, described system-monitoring module also for when monitoring system mode from abnormal restoring to time normal, exports normal control signal; Described bypass changeover module, also for when receiving normal control signal, adopts drive circuit to drive Control switching port to be switched to normal condition.
Alternatively, described monitoring means comprises: any one in temperature monitoring unit and voltage monitoring unit, and described temperature monitoring unit is used for monitoring system working temperature, when system operating temperatures exceeds default temperature range, shows that system mode is abnormal; Described voltage monitoring unit, for monitoring Key Circuit voltage, when described Key Circuit voltage exceeds default voltage range, shows that system mode is abnormal.
Alternatively, described temperature monitoring unit comprises resistance R1, resistance R2, resistance R3, resistance R4, thermistor R5, and voltage comparator U1, voltage comparator U2; Wherein, described resistance R1 is connected with VCC with one end of described resistance R4, the other end of described resistance R1 is connected with the positive input terminal of described resistance R2 and described voltage comparator U1, the other end of described resistance R2 is connected with the negative input end of described resistance R3 and described voltage comparator U2, the other end ground connection of described resistance R3, the other end of described resistance R4 is connected with the negative input end of described thermistor R5 and described voltage comparator U1, the positive input terminal of described voltage comparator U2; The other end ground connection of described thermistor R5.
Alternatively, described voltage monitoring unit comprises resistance R6, resistance R7, resistance R8, and voltage comparator U3, voltage-stabiliser tube D1, wherein, one end of described resistance R6 is connected with VCC, and the other end of described resistance R6 is connected with the positive input terminal of the negative electrode of described voltage-stabiliser tube D1 and described comparative voltage device U3; One end of described resistance R7 is connected with described Key Circuit voltage, and the other end of described resistance R7 is connected with the negative input end of described resistance R8 and described comparative voltage device U3; The other end ground connection of described resistance R8; The plus earth of described voltage-stabiliser tube D1.
Alternatively, the described drive circuit of described bypass changeover module comprises optocoupler.
Alternatively, the described switching port of described bypass changeover module comprises isolating transformer, relay and RJ45 interface, described relay is connected with described isolating transformer and described RJ45 interface, when described cut-off, controls switching port and is switched to bypass condition; When described relay is opened, control switching port and be switched to normal condition.
The present invention also comprises a kind of network equipment, and the described network equipment comprises above-mentioned Bypass Control System.
As mentioned above, a kind of bypass control method of the present invention, system and the network equipment, have following beneficial effect: the solution of the present invention is pure hardware scheme, and hardware design technique difficulty is lower.Technical scheme of the present invention greatly reduces design difficulty and the complexity of bypass, better solves network equipment Single Point of Faliure problem.
Embodiment
Below by way of specific instantiation, embodiments of the present invention are described, those skilled in the art the content disclosed by this specification can understand other advantages of the present invention and effect easily.The present invention can also be implemented or be applied by embodiments different in addition, and the every details in this specification also can based on different viewpoints and application, carries out various modification or change not deviating under spirit of the present invention.
It should be noted that, the diagram provided in the present embodiment only illustrates basic conception of the present invention in a schematic way, then only the assembly relevant with the present invention is shown in graphic but not component count, shape and size when implementing according to reality is drawn, it is actual when implementing, and the kenel of each assembly, quantity and ratio can be a kind of change arbitrarily, and its assembly layout kenel also may be more complicated.
The invention provides a kind of bypass control method.In one embodiment, as shown in Figure 3, described bypass control method comprises:
Step S1, whether supervisory control system state there is exception.Particularly, described system mode is abnormal comprises: system operating temperatures exceeds default temperature range or/and Key Circuit voltage exceeds default voltage range.
Step S2, when described system mode occurs abnormal, adopts drive circuit to drive Control switching port to be switched to bypass condition.In one embodiment, when Primary Component temperature too high (exceeding alarm temperature), Digital Logic controls drive circuit module and opens BYPASS function; When Key Circuit magnitude of voltage is lower than setting threshold values, Digital Logic controls drive circuit module and opens BYPASS function.In one embodiment, described drive circuit comprises optocoupler.Optical coupled switch is adopted to carry out drived control to relay.Programmable logic device output signal controls the opening and closing that optical coupled switch drives relay.
In one embodiment, described bypass control method also comprises: when monitoring system mode and recovering normal, adopts drive circuit to drive switching port described in described Control to switch back normal condition.In one embodiment, described System recover normally refers to: the temperature range that system operating temperatures is being preset, and Key Circuit voltage is also in the voltage range preset.When detected temperatures, magnitude of voltage recover normal, switching port is from BYPASS recovering state to regular traffic swap status.
The present invention also provides a kind of Bypass Control System.In one embodiment, as shown in Figure 4, described Bypass Control System 1 comprises system-monitoring module 11 and bypass changeover module 12.Wherein:
System-monitoring module 11 comprises one or more monitoring means, whether occurs exception for supervisory control system state, when arbitrary described monitoring means monitors system mode exception, exports bypass control signal.In one embodiment, described system-monitoring module 11 also for when monitoring system mode from abnormal restoring to time normal, exports normal control signal.In one embodiment, described monitoring means comprises: any one in temperature monitoring unit and voltage monitoring unit, and described temperature monitoring unit is used for monitoring system working temperature, when system operating temperatures exceeds default temperature range, shows that system mode is abnormal; Described voltage monitoring unit, for monitoring Key Circuit voltage, when described Key Circuit voltage exceeds default voltage range, shows that system mode is abnormal.In one embodiment, as shown in Figure 5, described system-monitoring module 11 comprises temperature monitoring unit, voltage monitoring unit and Digital Logic control unit.Wherein, mathematical logic control unit is connected with described temperature monitoring unit and voltage monitoring unit, receives the system status signal that described temperature monitoring unit and voltage monitoring unit send.
In one embodiment, as shown in Figure 6, described temperature monitoring unit comprises resistance R1, resistance R2, resistance R3, resistance R4, thermistor R5, and voltage comparator U1, voltage comparator U2; Wherein, described resistance R1 is connected with VCC with one end of described resistance R4, the other end of described resistance R1 is connected with the positive input terminal of described resistance R2 and described voltage comparator U1, the other end of described resistance R2 is connected with the negative input end of described resistance R3 and described voltage comparator U2, the other end ground connection of described resistance R3, the other end of described resistance R4 is connected with the negative input end of described thermistor R5 and described voltage comparator U1, the positive input terminal of described voltage comparator U2; The other end ground connection of described thermistor R5.
Wherein, R1, R2, R3, R4 are divider resistances, and voltage comparator threshold voltage size is depended in the selection of its resistance.R5 is the thermistor with negative temperature coefficient, its change in resistance and variations in temperature in close relations, temperature value its resistance lower is larger.Suppose that detected temperatures is t, temperature range is [T0, T1], and so at t=[T0, T1], the Standard resistance range that R5 is corresponding is [Rmin, Rmax], works as R5=Rmin, determines U2 threshold voltage VL thus; Work as R5=Rmax, determine U1 threshold voltage VH thus; Window comparator input voltage Ui=[R5/ (R4+R5)] * VCC, supposes that R4 resistance is known, so can obtain the scope of Ui according to the resistance of R5 under different temperatures for [VL, VH].According to threshold voltage VL, VH, and the resistance of R1, current value can determine the resistance of R2, R3.As temperature t=[T0, T1], according to the characteristic of voltage comparator, output level Vtemp=L (low level); As temperature t>T1, or during t<T0, according to the characteristic of voltage comparator, output level Vtemp=H (high level).Therefore, the change of R5 temperature value, after voltage comparator exports, has been converted into the change of output low and high level.The scope of assumed temperature monitoring is 20 ~ 100 degree, and so when temperature is higher than 100 degree or lower than 20 degree, output Vtemp will export high level.In design, thermistor is placed in mainboard core position, such as near MAC/PHY chip etc., changes for real-time monitoring temperature.
In one embodiment, as shown in Figure 7, described voltage monitoring unit comprises resistance R6, resistance R7, resistance R8, and voltage comparator U3, voltage-stabiliser tube D1, wherein, one end of described resistance R6 is connected with VCC, and the other end of described resistance R6 is connected with the positive input terminal of the negative electrode of described voltage-stabiliser tube D1 and described comparative voltage device U3; One end of described resistance R7 is connected with described Key Circuit voltage, and the other end of described resistance R7 is connected with the negative input end of described resistance R8 and described comparative voltage device U3; The other end ground connection of described resistance R8; The plus earth of described voltage-stabiliser tube D1.Wherein, R6, R7, R8 are divider resistance.Using voltage-stabiliser tube both end voltage UD1 as threshold voltage, when Vcore voltage is normal, voltage comparator output is by output low level, i.e. Vvolt=L, when system voltage Vcore occurs abnormal and when dropping to below threshold voltage UD1, voltage comparator output will export high level, i.e. Vvolt=H.Therefore, Vcore change in voltage will cause output end voltage Vvolt to change, the Vvolt=H when electric voltage exception reduces.
In one embodiment, mathematical logic control unit as shown in Figure 8, the output signal of temperature monitoring unit, voltage monitoring unit, as the input signal of described mathematical logic control unit, supplies drive circuit and carries out switching port BYPASS control after computing exports.But consider that the number of follow-up drive circuit is more, adopt programmable logic device (CPLD) as control treatment core here.To provide more input/output port.Multiple-channel output Vctrl BUS represents.This Digital Logic control circuit is or door in essence.When only having Vctrl=1, output just opens BYPASS controlling functions.All the other are all normalities, close BYPASS function.
Bypass changeover module 12 is connected with described system-monitoring module 11, for when receiving described bypass control signal, adopts drive circuit to drive Control switching port to be switched to bypass condition.In one embodiment, described bypass changeover module 12, also for when receiving normal control signal, adopts drive circuit to drive Control switching port to be switched to normal condition.
In one embodiment, described bypass changeover module 12 comprises drive circuit unit (i.e. drive circuit) and BYPASS port unit (i.e. switching port).In one embodiment, the described switching port of described bypass changeover module comprises isolating transformer, relay and RJ45 interface, described relay is connected with described isolating transformer and described RJ45 interface, when described cut-off, controls switching port and is switched to bypass condition; When described relay is opened, control switching port and be switched to normal condition.
In one embodiment, as shown in Figure 9, drive circuit unit is formed primarily of optocoupler, and the relay of optocoupler output signal OE to BYPASS port unit controls.Optocoupler is operated on off state, and when input is high level, diode current flow, then output exports as low level, and when input is low level, diode ends, and output is high level.Namely the described drive circuit of described bypass changeover module 12 comprises optocoupler.
In one embodiment, as shown in Figure 10, BYPASS port unit is formed primarily of isolating transformer, relay, RJ45 electricity mouth.Namely between the isolating transformer and RJ45 electricity mouth of common switching port, relay is connected in series.Calculate according to a relay 2 contacts, a gigabit Ethernet electricity mouth needs serial connection 4 relays, namely needs cooperation 4 optocouplers to carry out switch control rule, and so a pair BYPASS port needs 8 relays, 8 optocouplers control.Be illustrated as a pair TX of a pair BYPASS port, the Networking Design of a pair RX signal below, other TX, RX signals are also same to method for designing.In one embodiment, as shown in figure 11, the situation of RJ45 electricity mouth each a pair TX, a RX is listed in figure respectively.When OE=1 (high level), relay is opened, and BYPASS function is closed, and port is in conventional switch mode.Identify switching port data-signal under the switch mode of routine in Figure 11 to flow to.In one embodiment, as shown in figure 12, the situation of RJ45 electricity mouth each a pair TX, a RX is listed in figure respectively.When OE=0 (low level), cut-off, BYPASS function is opened, and port is in BYPASS pattern.Identify switching port data-signal under BYPASS pattern in Figure 11 to flow to.
The present invention also comprises a kind of network equipment, and the described network equipment comprises above-mentioned Bypass Control System 1.In one embodiment, the working method of the shown network equipment is as follows: [the T0 that (1) is presetting as temperature value t, T1] in, voltage comparator output low level, digital logic controller output low level, optical coupled switch ends, and therefore cannot drive relay that switching port is switched to BYPASS state, the normal operation of switching port business; When temperature value t>T1 (being defined as dangerous temperature value), or t<T0 (is defined as extremely low temperature value, extremely low temperature value means the system failure, for example chip is without power supply, Module Fail etc.) time, voltage compare exports high level, Digital Logic controls output low level, optical coupled switch conducting, drive relay that switching port is switched to BYPASS state, LAN<->WAN intercommunication, reciprocal exchange of business maintenance work.(2) when voltage Vcore being detected lower than the UD1 preset, be judged as that system works is abnormal, output drives relay switching port to be switched to BYPASS state, LAN<->WAN intercommunication, reciprocal exchange of business maintenance work by optical coupled switch.If (1), (2) one of them occur abnormal, system just automatically switches to BYPASS state.
In sum, a kind of bypass control method of the present invention, system and the network equipment, have following beneficial effect: the solution of the present invention is pure hardware scheme, and hardware design technique difficulty is lower.Technical scheme of the present invention greatly reduces design difficulty and the complexity of bypass, better solves network equipment Single Point of Faliure problem.So the present invention effectively overcomes various shortcoming of the prior art and tool high industrial utilization.
Above-described embodiment is illustrative principle of the present invention and effect thereof only, but not for limiting the present invention.Any person skilled in the art scholar all without prejudice under spirit of the present invention and category, can modify above-described embodiment or changes.Therefore, such as have in art usually know the knowledgeable do not depart from complete under disclosed spirit and technological thought all equivalence modify or change, must be contained by claim of the present invention.