CN103220040A - Method and system for switching state of embedded optical port BYPASS - Google Patents

Method and system for switching state of embedded optical port BYPASS Download PDF

Info

Publication number
CN103220040A
CN103220040A CN2013100983643A CN201310098364A CN103220040A CN 103220040 A CN103220040 A CN 103220040A CN 2013100983643 A CN2013100983643 A CN 2013100983643A CN 201310098364 A CN201310098364 A CN 201310098364A CN 103220040 A CN103220040 A CN 103220040A
Authority
CN
China
Prior art keywords
bypass
state
under
switching
timer
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
Application number
CN2013100983643A
Other languages
Chinese (zh)
Inventor
林旭东
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Opzoon Technology Co Ltd
Original Assignee
Opzoon Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Opzoon Technology Co Ltd filed Critical Opzoon Technology Co Ltd
Priority to CN2013100983643A priority Critical patent/CN103220040A/en
Publication of CN103220040A publication Critical patent/CN103220040A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a method and a system for switching the state of an embedded optical port BYPASS. The system comprises a photovoltaic conversion unit, an optical path switching unit and a switching control unit, wherein the switching control unit is used for switching between a normal working state and a BYPASS state; under the condition that equipment is abnormal, a BYPASS function is turned on to enter the BYPASS state; and under a normal state, the BYPASS function is turned off to enter a normal working state, a host is used for transmitting data messages to a controller regularly under the control of a timer, the controller cannot receive the data messages regularly if the host fails, and the timer is used for controlling the BYPASS function to be turned on so as to switch to the BYASS state. According to the method and the system, embedded optical port BYPASS equipment can be used for switching equipment state in real time, the equipment is minimized, high portability is realized, a control way is easy to operate, and the hardware cost is low.

Description

State switching method and the system of a kind of built-in light mouth BYPASS
Technical field
The present invention relates to optical communication network safe practice field, relate in particular to state switching method and the system of a kind of built-in light mouth BYPASS.
Background technology
Network Security Device generally all is to be applied between two or more networks, between Intranet and outer net, application program in the Network Security Device can be analyzed the network package by it, exist to have judged whether to threaten, according to certain routing rule packaged packet is forwarded again after handling, if and fault has appearred in this Network Security Device, after the unit exception deadlock, all network segments that are connected on this Network Security Device will be out of touch each other.If require each network also to need to be in connected state each other, just must use BYPASS.BYPASS (bypass) is the best approach that solves the forthright device security, and BYPASS is a kind of protected mode based on physical link, and physical link has two kinds of operating states usually, and a kind of is normal operating conditions, and another kind is bypass condition BYPASS.Under the normal operating conditions, BYPASS can point to Network Security Device with uplink downlink by diverter switch, and uplink traffic is issued down link after can handling by Network Security Device.When Network Security Device is unusual; BYPASS can switch to the bypass protection state; this moment, uplink traffic directly was not issued to down link by Network Security Device; promptly make two networks system by Network Security Device and conducting on the direct physical by specific triggering state (unit exception); after Network Security Device breaks down; BYPASS can make the network mutual conduction that is connected on the safety means, and this moment, this Network Security Device can not handled the packet of the encapsulation in the network more yet.
The BYPASS module has two kinds of application models: built-in BYPASS and external BYPASS, no matter built-in BYPASS still is external BYPASS, all be that the network that causes for fear of Single Point of Faliure interrupts, in case when these situations occur, BYPASS will start and guarantee the unblocked of network immediately.The benefit of external BYPASS be with independent equipment as the BYPASS module, in general, external BYPASS requires to be designed to passive mode of operation, does not need the power supply supply to get final product operate as normal, the purpose of doing like this is in order better to guarantee stability and reliability.During therefore external BYPASS pattern, real access network be a passive BYPASS module, and passive BYPASS module itself provides two group interfaces, a winding network, an other winding main frame, main frame are only needs the power supply supply to carry out work.And built-in BYPASS power taking from the Network Security Device, a general built-in BYPASS equipment is integrated with many protection links simultaneously, is used to protect the polylith business board in distributed system.Therefore the benefit of built-in BYPASS is that equipment volume is little, and it is convenient to dispose.
At present, the BYPASS function has been the basic functions demand in Network Security Device, and many 1U apparatus-form with external independently exist in the product on the market, and profile is bigger, and cost is also higher.External control mode realizes in the mode of serial ports or USB that mostly this just need increase communication interface on equipment, increased the complexity of system.Most of Network Security Devices have electricity mouthful BYPASS function, and minority BYPASS equipment has external light mouth BYPASS function.
BYPASS generally classifies according to control mode (or triggering mode), can be divided into following mode:
Mode one: trigger by power supply.Under this mode, generally be not have under the normal situation at equipment, the BYPASS function is opened, if equipment is in case after normal, BYPASS is adjusted into closed condition immediately.
Mode two: by GPIO(General Purpose Input Output, general I/O) controls.Entering OS(Operating System, operating system) after, can come specific port operation by GPIO, thereby realization is to the control of BYPASS switch.
Mode three: by the Watchdog(WatchDog Timer) controls.This situation is actual to be that a kind of extension of mode two is used, and can control enabling and closing of GPIO BYPASS program by Watchdog, thereby realize the control to the BYPASS state.After making in this way, just can open BYPASS by Watchdog if crashing appears in main frame.
In the application of reality, these three kinds of states use often simultaneously, and especially mode one and mode two dual modes use usually simultaneously.General application process is: under the situation of unit exception, equipment is in the BYPASS open mode, then after the device power, because BIOS can operate BYPASS, so behind BIOS adapter equipment, BYPASS still is in open mode, OS starts then, after OS starts, generally can carry out the BYPASS program of GPIO, BYPASS is closed.
In sum, in the prior art in optical communication the network switching equipment and Network Security Device for disparate networks serial connection gateway device because of accident lost efficacy (as hardware fault, power failure, software deadlock etc.) become Single Point of Faliure, can't realize the state of built-in light mouth BYPASS equipment is switched neatly.
Summary of the invention
(1) technical problem that will solve
At above-mentioned defective, the technical problem to be solved in the present invention is how to be implemented in that the built-in light mouth BYPASS of use switches state in the optical communication network.
(2) technical scheme
For addressing the above problem, the invention provides the state switching method of a kind of built-in light mouth BYPASS, described method specifically comprises:
S1: main frame sends datagram to controller;
S2: judge whether described controller receives described data message termly,, otherwise switch to the BYPASS state if then enter normal operating conditions;
Step S2 specifically comprises:
Under the unit exception situation, the BYPASS function is opened, enter the BYPASS state;
Under normal circumstances, described BYPASS function is closed, enter normal operating conditions, described main frame sends described data message to described controller termly under the control of described timer, described controller can not receive described data message termly if described main frame breaks down, described timer is controlled described BYPASS function and is opened, and switches to the BYPASS state.
Further, the control mode that state switches among the step S2 comprises: power supply triggering mode and timer triggering mode.
For addressing the above problem, the present invention also provides the state switched system of a kind of built-in light mouth BYPASS, and described system comprises:
Photoelectric conversion unit, optical path switch module and switch control unit;
Described photoelectric conversion unit is used to realize the conversion between the light signal and the signal of telecommunication;
Described optical path switch module is used for controlling corresponding light chopper when normal operating conditions and the switching of BYPASS state;
Described switch control unit is used to realize the switching between normal operating conditions and the BYPASS state.
Further, described system also comprises memory cell and indicator unit, and described memory cell is used for storage version information, and described indicator unit uses indicator light to represent opening and closing of BYPASS function.
Further, described switch control unit is opened the BYPASS function under the unit exception situation, enters the BYPASS state;
Under normal circumstances, described BYPASS function is closed, enter normal operating conditions, described main frame sends described data message to described controller termly under the control of described timer, described controller can not receive described data message termly if described main frame breaks down, described timer is controlled described BYPASS function and is opened, and switches to the BYPASS state.
(3) beneficial effect
The invention provides state switching method and the system of a kind of built-in light mouth BYPASS, use CPLD to realize and the communicating by letter of CPU by IIC, adopt power supply to trigger and house dog control, make this built-in BYPASS equipment of CPLD control that passes through that CPU can be real-time carry out the state switching, switch owing to use built-in light mouth BYPASS equipment to carry out state to equipment in real time, equipment is miniaturization more, and is implantable strong, control mode is simple to operate, and hardware cost is lower.
Description of drawings
Fig. 1 is the flow chart of steps of the state switching method of a kind of built-in light mouth BYPASS in the embodiment of the invention one;
Fig. 2 is that the hardware of the BYPASS equipment in the embodiment of the invention one is formed schematic diagram;
Fig. 3 is CPLD and the host CPU connection diagram in the embodiment of the invention one;
Fig. 4 is the CPLD in the embodiment of the invention one realizes read-write capability by IIC communication a state transition diagram;
Fig. 5 is the state transition diagram of the CPLD control BYPASS state in the embodiment of the invention one;
Fig. 6 is that the state switched system of a kind of built-in light mouth BYPASS in the embodiment of the invention two is formed schematic diagram.
Embodiment
Below in conjunction with drawings and Examples, the specific embodiment of the present invention is described in further detail.Following examples are used to illustrate the present invention, but are not used for limiting the scope of the invention.
Embodiment one
The state switching method of a kind of built-in light mouth BYPASS is provided in the embodiment of the invention one, and steps flow chart specifically may further comprise the steps as shown in Figure 1:
Step S1: main frame sends datagram to controller.
Step S2: judge whether controller receives data message termly,, otherwise switch to the BYPASS state if then enter normal operating conditions.
Wherein the control mode that state switches among the step S2 comprises: power supply triggering mode and Watchdog timer triggering mode.
Mode one, power supply triggering mode under the unit exception situation, are opened the BYPASS function, enter the BYPASS state.Under normal circumstances, the BYPASS function is closed, enter normal operating conditions.
Mode two, after normal, equipment enters normal operating conditions, main frame sends datagram to controller under the control of Watchdog timer termly, controller can not receive data message termly if main frame breaks down, Watchdog timer control BYPASS function is opened, and switches to the BYPASS state.
The hardware that is used to realize said method in the present embodiment is formed schematic diagram as shown in Figure 2, wherein use CPLD(Complex Programmable Logic Device, CPLD) realizes switching controls, CPLD communicates by iic bus interface and host CPU as master controller, realize the IIC agreement on CPU, CPU just can carry out the state switching by control appliance by control CPLD between normal operating conditions and BYPASS state.The IDPROM memory is used for storage version information etc., and the light on and off of BYPASS status indicator lamp are used to indicate whether to be in the BYPASS state.The SPF optical module is used to realize the conversion between the light signal and the signal of telecommunication.CPLD control two-way BYPASS wherein one the tunnel imports as signal, and export as signal on another road, and data are just no longer handled by main frame.CPLD is by the break-make with the closing control light path opened of control optical switch, the through and off of light path on the road that every optical switch on the way draws oneself up.
CPLD adopts the EPM570T100 chip in the present embodiment, and CPLD is connected as shown in Figure 3 with host CPU, and the SDA data wire carries out transfer of data, and main frame provides SCL clock signal for CPLD, constitutes IIC universal serial bus connected mode.Two Enable Pins are arranged on the CPLD, and one is that BYPASS1 is Enable Pin EN1, and another is that BYPASS2 is Enable Pin EN2.Provide enable signal when master controller CPLD gives Enable Pin EN1, the optical switch of control BYPASS1 is opened, and the control of Enable Pin EN2 in like manner as can be known.
The state transition diagram of CPLD by IIC communication as shown in Figure 4, under idle condition, first transmitting apparatus address, read the read-write flag bit, carry out the device address and reply checking, if the sign correspondence of read-write flag bit is to read then carry out read data, read to reply, stop at last; If the sign correspondence of read-write flag bit is to write then carry out write data, write and reply, stop at last.See that in 4 IIC has realized with machine-readable function and the function of writing register.Therefore CPU can read and write the value of the register of CPLD by iic bus.
The state transition diagram of CPLD control BYPASS state as shown in Figure 5, by the switching of Watchdog timer state of a control.
By said method, the built-in light mouth BYPASS equipment miniaturization more so that the form of daughter board exists because most of CPU has abundant IIC interface, can directly be wired to this built-in BYPASS equipment on the mainboard, and is therefore implantable strong.Control mode is that the CPU on the mainboard and the CPLD of light mouth BYPASS control module communicate by iic bus, adopt power supply to trigger and house dog control, thereby the control optical switch is controlled built-in BYPASS equipment by CPLD in real time and is carried out the state switching, control mode is simple to operate, and hardware cost is lower.
Embodiment two
Embodiments of the invention two provide the state switched system of a kind of built-in light mouth BYPASS, and as shown in Figure 6, system specifically comprises:
Photoelectric conversion unit 61, optical path switch module 62 and switch control unit 63.
Photoelectric conversion unit 61 is used to realize the conversion between the light signal and the signal of telecommunication, realizes by the SPF optical module in the present embodiment.Optical path switch module 62 is used for controlling corresponding light chopper when normal operating conditions and the switching of BYPASS state, realizes the switching of light path in the present embodiment by optical switch.Switch control unit 63 is used to realize the switching between normal operating conditions and the BYPASS state, uses CPLD as master controller state to be switched in the present embodiment and controls.CPLD communicates by iic bus interface and host CPU, realizes the IIC agreement on CPU, and CPU just can carry out the state switching by control appliance by control CPLD between normal operating conditions and BYPASS state.
System also comprises memory cell 64 and indicator unit 65, and memory cell 64 is used for storage version information, stores by IDPROM in the present embodiment.Indicator unit 65 uses indicator light to represent opening and closing of BYPASS function.
Switch control unit 63 is opened the BYPASS function under the unit exception situation, enters the BYPASS state.
Under normal circumstances, the BYPASS function is closed, enter normal operating conditions, main frame sends datagram to controller under the control of timer termly, controller can not receive data message termly if main frame breaks down, timer control BYPASS function is opened, and switches to the BYPASS state.
By using said system, the built-in light mouth BYPASS equipment miniaturization more so that the form of daughter board exists because most of CPU has abundant IIC interface, can directly be wired to this built-in BYPASS equipment on the mainboard, therefore implantable strong.Control mode is that the CPU on the mainboard and the CPLD of light mouth BYPASS control module communicate by iic bus, adopt power supply to trigger and house dog control, thereby the control optical switch is controlled built-in BYPASS equipment by CPLD in real time and is carried out the state switching, control mode is simple to operate, and hardware cost is lower.
Above execution mode only is used to illustrate the present invention; and be not limitation of the present invention; the those of ordinary skill in relevant technologies field; under the situation that does not break away from the spirit and scope of the present invention; can also make various variations and modification; therefore all technical schemes that are equal to also belong to category of the present invention, and scope of patent protection of the present invention should be defined by the claims.

Claims (5)

1. the state switching method of a built-in light mouth BYPASS is characterized in that, described method specifically comprises:
S1: main frame sends datagram to controller;
S2: judge whether described controller receives described data message termly,, otherwise switch to the BYPASS state if then enter normal operating conditions;
Step S2 specifically comprises:
Under the unit exception situation, the BYPASS function is opened, enter the BYPASS state;
Under normal circumstances, described BYPASS function is closed, enter normal operating conditions, described main frame sends described data message to described controller termly under the control of described timer, described controller can not receive described data message termly if described main frame breaks down, described timer is controlled described BYPASS function and is opened, and switches to the BYPASS state.
2. the method for claim 1 is characterized in that, the control mode that state switches among the described step S2 comprises: power supply triggering mode and timer triggering mode.
3. the state switched system of a built-in light mouth BYPASS is characterized in that, described system comprises:
Photoelectric conversion unit, optical path switch module and switch control unit;
Described photoelectric conversion unit is used to realize the conversion between the light signal and the signal of telecommunication;
Described optical path switch module is used for controlling corresponding light chopper when normal operating conditions and the switching of BYPASS state;
Described switch control unit is used to realize the switching between normal operating conditions and the BYPASS state.
4. system as claimed in claim 3 is characterized in that described system also comprises memory cell and indicator unit, and described memory cell is used for storage version information, and described indicator unit uses indicator light to represent opening and closing of BYPASS function.
5. system as claimed in claim 3 is characterized in that, described switch control unit is opened the BYPASS function under the unit exception situation, enters the BYPASS state;
Under normal circumstances, described BYPASS function is closed, enter normal operating conditions, described main frame sends described data message to described controller termly under the control of described timer, described controller can not receive described data message termly if described main frame breaks down, described timer is controlled described BYPASS function and is opened, and switches to the BYPASS state.
CN2013100983643A 2013-03-26 2013-03-26 Method and system for switching state of embedded optical port BYPASS Pending CN103220040A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2013100983643A CN103220040A (en) 2013-03-26 2013-03-26 Method and system for switching state of embedded optical port BYPASS

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2013100983643A CN103220040A (en) 2013-03-26 2013-03-26 Method and system for switching state of embedded optical port BYPASS

Publications (1)

Publication Number Publication Date
CN103220040A true CN103220040A (en) 2013-07-24

Family

ID=48817568

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2013100983643A Pending CN103220040A (en) 2013-03-26 2013-03-26 Method and system for switching state of embedded optical port BYPASS

Country Status (1)

Country Link
CN (1) CN103220040A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103763465A (en) * 2014-01-23 2014-04-30 深圳奥腾光通系统有限公司 Network camera and network video monitoring system
CN104243203A (en) * 2014-08-28 2014-12-24 深圳市深信服电子科技有限公司 Virtual machine transmission interface status switching method and system
CN104518830A (en) * 2013-09-26 2015-04-15 江若滐 Light transceiving apparatus
CN110401595A (en) * 2019-07-30 2019-11-01 深圳市智微智能软件开发有限公司 A kind of BYPASS system
CN111464432A (en) * 2020-03-19 2020-07-28 深圳市燃气集团股份有限公司 Intelligent gateway for gas industry
CN111865411A (en) * 2020-06-30 2020-10-30 苏州浪潮智能科技有限公司 Switch optical module monitoring method and device and related components
CN113093662A (en) * 2021-03-18 2021-07-09 北京六方云信息技术有限公司 Industrial control system safety protection device and method and industrial control system
CN113746644A (en) * 2021-09-06 2021-12-03 铵泰克(北京)科技有限公司 Safe and effective network Bypass control method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060115268A1 (en) * 2004-11-19 2006-06-01 Zirnheld Mark E System and method for bypassing a faulty node in an optical network
CN101931467A (en) * 2009-12-11 2010-12-29 深圳市研祥通讯终端技术有限公司 External optical fiber Bypass equipment and optical signal channel switching method
US20110222395A1 (en) * 2010-03-15 2011-09-15 Ls Industrial Systems Co., Ltd. Dual port ethernet communication device with bypass function
CN102957607A (en) * 2012-11-06 2013-03-06 华为技术有限公司 Method, related device and system for switching over links

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060115268A1 (en) * 2004-11-19 2006-06-01 Zirnheld Mark E System and method for bypassing a faulty node in an optical network
CN101931467A (en) * 2009-12-11 2010-12-29 深圳市研祥通讯终端技术有限公司 External optical fiber Bypass equipment and optical signal channel switching method
US20110222395A1 (en) * 2010-03-15 2011-09-15 Ls Industrial Systems Co., Ltd. Dual port ethernet communication device with bypass function
CN102957607A (en) * 2012-11-06 2013-03-06 华为技术有限公司 Method, related device and system for switching over links

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104518830A (en) * 2013-09-26 2015-04-15 江若滐 Light transceiving apparatus
CN104518830B (en) * 2013-09-26 2018-04-24 江若滐 Light R-T unit
CN103763465A (en) * 2014-01-23 2014-04-30 深圳奥腾光通系统有限公司 Network camera and network video monitoring system
CN104243203A (en) * 2014-08-28 2014-12-24 深圳市深信服电子科技有限公司 Virtual machine transmission interface status switching method and system
CN110401595A (en) * 2019-07-30 2019-11-01 深圳市智微智能软件开发有限公司 A kind of BYPASS system
CN110401595B (en) * 2019-07-30 2021-10-08 深圳市智微智能软件开发有限公司 BYPASS system
CN111464432A (en) * 2020-03-19 2020-07-28 深圳市燃气集团股份有限公司 Intelligent gateway for gas industry
CN111865411A (en) * 2020-06-30 2020-10-30 苏州浪潮智能科技有限公司 Switch optical module monitoring method and device and related components
CN113093662A (en) * 2021-03-18 2021-07-09 北京六方云信息技术有限公司 Industrial control system safety protection device and method and industrial control system
CN113746644A (en) * 2021-09-06 2021-12-03 铵泰克(北京)科技有限公司 Safe and effective network Bypass control method

Similar Documents

Publication Publication Date Title
CN103220040A (en) Method and system for switching state of embedded optical port BYPASS
CN103559053B (en) Board system and FPGA (Field Programmable Logic Array) online update method of communication interface cards
CN102257849B (en) Method, system and apparatus for dynamically adjusting link
CN106250334A (en) A kind of information processing system monitored
CN101286830A (en) Double redundant high-speed IO network system based on dual-core controller for cards
CN110808908B (en) System and method for switching redundant network in real time across platforms
CN100383544C (en) Method and apparatus for real-time monitoring level signal
CN102830647A (en) Double 2-vote-2 device for fail safety
CN103558812B (en) Based on the MVB network four kind equipment network interface card of FPGA and ARM
CN109946955A (en) A kind of double-network redundant ethernet controller Linux trawl performance controller
CN102880235B (en) Single-board computer based on loongson 2F central processing unit (CPU) as well as reset management and using method of single-board computer
CN202042898U (en) Program controlled bypass protection circuit of network equipment
CN203561985U (en) FPGA (field programmable gate array) chip and BMC (baseboard management controller) chip coordinated power management system for ATCA (advanced telecom computing architecture) blade
CN203260219U (en) Simulated merging unit simulation device
CN110096291A (en) Power management chip upgrades circuit, method and the network equipment
CN203632688U (en) Multifunctional communication interface machine device based on PowerPC embedded system
CN206147603U (en) Information processing apparatus that can monitor
CN201393231Y (en) Gateway device with by-pass switch
CN103326911A (en) Self healing ring RS485 bus structure with short circuit and circuit break prevention
CN106357607A (en) Method and device for connection, security verification, communication, communication monitoring of electronic equipment
CN203386143U (en) Remote machine reset device
CN200941208Y (en) Device to operate USB interface
CN210518684U (en) Mining Ethernet switch
CN106708701A (en) Central maintenance device and method based on ARINC659 bus
CN210927649U (en) Gigabit dual-redundancy network card based on Compact PCI bus

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20130724