CONTROL METHOD, DEVICE AND OPTICAL TRANSCEIVER

Information

  • Patent Application
  • 20160156478
  • Publication Number
    20160156478
  • Date Filed
    June 25, 2014
    10 years ago
  • Date Published
    June 02, 2016
    8 years ago
Abstract
A control method and device, and an optical transceiver are described in an embodiment of the disclosure. A first optical processing device is connected with a second optical processing device through an optical port link, and a transmission module configured to transmit a signal to the second optical processing device through the optical port link is arranged on the first optical processing device. The method includes: judging whether there is data to be transmitted to the second optical processing device or not in the first optical processing device, and acquiring a judgment result; and controlling the transmission module to be in an off state when the judgment result is NO.
Description
TECHNICAL FIELD

The disclosure relates to the field of communications, and in particular to a control method, a control device, and an optical transceiver.


BACKGROUND

An existing high-efficiency low-energy-consumption Ethernet standard implemented by an electric port auto-negotiation mechanism-based Institute of Electrical and Electronic Engineers (IEEE) 802.3az protocol is called Energy Efficient Ethernet (EEE). EEE includes cooperative work of a Media Access Control (MAC) chip and a Physical (PHY) chip, and the PHY chip enters a low power mode when an online load is lighter. The low power mode may independently run in a receiving direction and a transmission direction, and a part of temporarily unnecessary functional circuits are switched off to fulfil the aim of reducing power consumption.


In order to implement EEE without influence on a basic message forwarding function of the Ethernet, it is necessary to keep a port entering a low power mode and a link state of an opposite port unchanged. Moreover, when the port enters or quits the low power mode, message loss or damage is not allowed.


SUMMARY

In order to solve the existing technical problem, an embodiment of the disclosure provides a control method, a control device, and an optical transceiver.


An embodiment of the disclosure provides a control method, a first optical processing device being connected with a second optical processing device through an optical port link and a transmission module configured to transmit a signal to the second optical processing device through the optical port link being arranged on the first optical processing device, the method including:


judging whether there is data to be transmitted to the second optical processing device or not in the first optical processing device, and acquiring a judgment result; and


controlling the transmission module to be in an off state when the judgment result is NO.


In the solution, the method may further include:


controlling the transmission module to be in an on state to enable the transmission module to transmit the data to the second optical processing device when the judgment result is YES.


In the solution, before controlling the transmission module to be in the off state, the method may further include:


controlling the transmission module to transmit a first code stream configured to maintain a signal transmission channel on the optical port link to the second optical processing device, and setting a timer;


correspondingly, the method may further include:


at end of timing of the timer, controlling the transmission module to be switched on, controlling the switched-on transmission module to transmit a second code stream configured to maintain the signal transmission channel to the second optical processing device, and continuing judging whether there is the data to be transmitted to the second optical processing device or not in the first optical processing device.


In the solution, there may exist a calculation relationship between a time length of the timer and first delay time, wherein the first delay time may be delay time of transmission of the first code stream to the second optical processing device by the transmission module relative to transmission of a third code stream to the second optical processing device by the transmission module, the third code stream may be a code stream which is transmitted to the second optical processing device last time before the transmission module transmits the first code stream to the second optical processing device, and the third code stream may be configured to establish or maintain the signal transmission channel; and


the method may further include:


when the second optical processing device does not receive the second code stream within second delay time after receiving the first code stream, setting the signal transmission channel to be unavailable, wherein there exists a calculation relationship between the second delay time and third delay time, and the third delay time is delay time of reception of the first code stream by the second optical processing device relative to reception of the third code stream by the second optical processing device.


In the solution, the calculation relationship may be an N-fold relationship, wherein N may be greater than 1.


In the solution, a receiving module configured to receive a signal transmitted by the second optical processing device through the optical port link is also arranged on the first optical processing device, and the method may further include:


when the receiving module does not receive a code stream configured to maintain a signal receiving channel from the second optical processing device within delay time after receiving a fourth code stream configured to maintain the signal receiving channel on the optical port link from the second optical processing device, controlling a state machine of the signal receiving channel to be in a channel-unavailable state; or,


when the receiving module receives a fifth code stream configured to maintain the signal receiving channel on the optical port link from the second optical processing device, controlling the state machine of the signal receiving channel to be in a channel-available state.


An embodiment of the disclosure further provides a control device, a first optical processing device is connected with a second optical processing device through an optical port link, and a transmission module configured to transmit a signal to the second optical processing module through the optical port link is arranged on the first optical processing device, the device includes:


a judgment module, configured to judge whether there is data to be transmitted to the second optical processing device or not in the first optical processing device, and acquire a judgment result; and


a first control module, configured to control the transmission module to be in an off state when the judgment result is NO.


In the solution, the device may further include:


a second control module, configured to control the transmission module to be in an on state to enable the transmission module to transmit the data to the second optical processing device when the judgment result is YES.


In the solution, the device may further include:


a third control module, configured to control the transmission module to transmit a first code stream configured to maintain a signal transmission channel on the optical port link to the second optical processing device when the judgment result is NO, and trigger the first control module after setting a timer,


correspondingly, the first control module 72 is further configured to control the transmission module to be in the off state after being triggered by the third control module; and


a fourth control module, configured to, at end of timing of the timer, control the transmission module to be switched on, control the switched-on transmission module to transmit a second code stream configured to maintain the signal transmission channel to the second optical processing device, and trigger the judgment module 71,


correspondingly, the judgment module 71 is further configured to continue judging whether there is the data to be transmitted to the second optical processing device or not in the first optical processing device and acquire a judgment result after being triggered by the fourth control module.


An embodiment of the disclosure further provides an optical transceiver, which may include the abovementioned control device.


An embodiment of the disclosure further provides a computer storage medium, which may include a set of instructions and cause at least one processor to execute the abovementioned control method when the instructions are executed.


From the above, the embodiment of the disclosure at least has the following beneficial effects:


obviously, the transmission module is controlled to be in the off state when there is no data to be transmitted to the second optical processing device in the first optical processing device, so that energy consumption of the first optical processing device is reduced.





BRIEF DESCRIPTION OF THE DRAWINGS

In the drawings (which may not be drawn to scale), similar reference signs may describe similar parts in different views. Similar reference signs with different suffix letters may represent different examples of similar parts. The drawings generally show each embodiment discussed in the disclosure as examples, but are not intended to limit the disclosure.



FIG. 1 is a flowchart of a control method according to an embodiment of the disclosure;



FIG. 2 is a schematic diagram of a processing method for an optical port energy-saving system according to an implementation mode of an embodiment of the disclosure;



FIG. 3 is a structure diagram of a processing device for an optical port energy-saving system according to an implementation mode of an embodiment of the disclosure;



FIG. 4 is a schematic diagram of a TX low power state machine of an optical port energy-saving system according to an implementation mode of an embodiment of the disclosure;



FIG. 5 is a schematic diagram of a link state machine of a receiver of an optical port energy-saving system according to an implementation mode of an embodiment of the disclosure;



FIG. 6 is a flowchart of synchronization of an optical port energy-saving system according to an implementation mode of an embodiment of the disclosure; and



FIG. 7 is a structure diagram of a control device according to an embodiment of the disclosure.





DETAILED DESCRIPTION

In order to make clearer the purpose, technical solutions and advantages of embodiments of the disclosure, embodiments of the disclosure will be described below with reference to the drawings and specific embodiments in detail.



FIG. 1 is a flowchart of a control method according to an embodiment of the disclosure. Referring to FIG. 1, the embodiment of the disclosure provides a control method, a first optical processing device is connected with a second optical processing device through an optical port link, and a transmission module configured to transmit a signal to the second optical processing device through the optical port link is arranged on the first optical processing device, the method includes the following steps:


Step 101: judging whether there is data to be transmitted to the second optical processing device or not in the first optical processing device, and acquiring a judgment result; and


Step 102: controlling the transmission module to be in an off state when the judgment result is NO.


Obviously, the transmission module is controlled to be in the off state when there is no data to be transmitted to the second optical processing device in the first optical processing device, so that energy consumption of the first optical processing device is reduced.


Wherein, the first optical processing device may, for example, be: an optical transmitter or an optical transceiver.


The transmission module may, for example, be: an optical module on the optical transmitter or an optical module configured to transmit an optical signal on the optical transceiver.


The second optical processing device may, for example, be: an optical receiver or an optical transceiver.


The data may, for example, be: a message.


In an embodiment of the disclosure, the method may further include:


controlling the transmission module to be in an on state so as to enable the transmission module to transmit the data to the second optical processing device when the judgment result is YES.


In addition, in an embodiment of the disclosure, it is necessary to keep a channel for transmitting a signal by the first optical processing device through the optical port link UP to ensure timely and non-destructive transmission of the data, and in view of this, the method may further include:


controlling the transmission module to transmit a first code stream configured to maintain a signal transmission channel on the optical port link to the second optical processing device, and entering step 102 after a timer is set; and


at the end of timing of the timer, controlling the transmission module to be switched on, controlling the switched-on transmission module to transmit a second code stream configured to maintain the signal transmission channel to the second optical processing device, and returning to step 101.


Wherein, the first code stream may, for example, be: an I code stream or a C code stream.


The second code stream may, for example, be: an I code stream or a C code stream.


To synchronously maintain the signal transmission channel by the first optical processing device and the second optical processing device when there are no message to be transmitted:


there exists a calculation relationship between a time length of the timer and first delay time, wherein the first delay time is delay time of transmission of the first code stream to the second optical processing device by the transmission module relative to transmission of a third code stream to the second optical processing device by the transmission module, the third code stream is a code stream which is transmitted to the second optical processing device last time before the transmission module transmits the first code stream to the second optical processing device, and the third code stream is configured to establish or maintain the signal transmission channel; and


when the second optical processing device does not receive the second code stream within second delay time after receiving the first code stream, the signal transmission channel is set to be unavailable, wherein there exists the calculation relationship between the second delay time and third delay time, and the third delay time is delay time of reception of the first code stream by the second optical processing device relative to reception of the third code stream by the second optical processing device.


Wherein, the third code stream may, for example, be: an I code stream or a C code stream.


The calculation relationship may be an N-fold relationship, wherein N is greater than 1.


In addition, in consideration of the condition that the first optical processing device has a function of receiving data from the second optical processing device:


a receiving module configured to receive a signal transmitted by the second optical processing device through the optical port link is also arranged on the first optical processing device, and the method further includes:


when the receiving module does not receive a code stream configured to maintain a signal receiving channel from the second optical processing device within delay time after receiving a fourth code stream configured to maintain the signal receiving channel on the optical port link from the second optical processing device, controlling a state machine of the signal receiving channel to be in a channel-unavailable state; or,


when the receiving module receives a fifth code stream configured to maintain the signal receiving channel on the optical port link from the second optical processing device, controlling the state machine of the signal receiving channel to be in a channel-available state.


Wherein, the receiving module may, for example, be: an optical module configured to receive an optical signal on an optical transceiver.


The fourth code stream may, for example, be: an I code stream or a C code stream.


The fifth code stream may, for example, be: an I code stream or a C code stream.


In order to describe embodiments of the disclosure more clearly, a detailed implementation mode of the embodiment of the disclosure will be provided below.


A main purpose of the implementation mode is to provide a processing method and device for implementing EEE on an optical port transmitter, which may reduce energy consumption of an optical transceiver on the basis of implementing normal and non-destructive message transmission and reception of an optical port link.


The implementation mode discloses a system for reducing energy consumption of an optical transceiver, including the following parts.


A reconciliation layer is added between a switch and an optical module, and is configured to process signal detection in receiving and transmission directions and state machine migration work respectively.


The reconciliation layer in the transmission direction includes:


a TX_FIFO detector: the TX_FIFO detector is configured to detect whether a transmission queue TX_FIFO of the switch is empty or not, wherein it is indicated that there are no messages to be transmitted in the switch if TX_FIFO is empty, and it is indicated that there are messages to be transmitted in the switch if TX_FIFO is nonempty;


a TX_DELAY_TIMER detector: the TX_DELAY_TIMER detector is configured to detect whether an interval period TX_DELAY_TIMER of an I code stream or C code stream transmitted by the optical port link is overtime or not, wherein it is indicated that the interval period has been reached and it is necessary to retransmit the I code stream or the C code stream to opposite equipment if TX_DELAY_TIMER is 0; and


a TX low power state machine: the TX low power state machine is configured to analyze results of the two detectors to determine to switch a local optical transmitter between an ordinary mode and a low power mode or keep an original mode unchanged, simultaneously set a TX_DISABLE signal of the optical transmitter and reset an initial value of a decreasing timer TX_DELAY_TIMER.


The reconciliation layer in the receiving direction includes:


an RX_DELAY_TIMER detector: the RX_DELAY_TIMER detector is configured to detect whether an interval period RX_DELAY_TIMER of an I code stream or C code stream received by the optical port link is overtime or not, wherein it is indicated that the interval period has been reached and the optical port link is abnormally disconnected if RX_DELAY_TIMER is 0; and


an RX_LINK state machine: the RX_LINK state machine is configured to analyze an analysis result of the detector to determine to switch the current optical port link between an UP state and a DOWN state or keep an original state unchanged, and simultaneously reset an initial value of a decreasing timer RX_DELAY_TIMER.


The implementation mode discloses a processing method for reducing energy consumption of an optical transceiver, which includes the following steps:


when an optical port link is established between equipment at two ends, it is indicated that there are messages to be transmitted if TX_FIFO of a switch is nonempty in an ordinary mode, and an optical transmitter executes transmission work to transmit the messages to the opposite end immediately;


if TX_FIFO is empty, it is indicated that all the messages to be transmitted have been transmitted, a transmitter of the optical port link may enter a low power mode and simultaneously set a TX_DISABLE signal of the optical transmitter to be effective, that is, an optical module of the optical transmitter is set into an off state, so that energy consumption of the optical transmitter is maximally reduced to fulfil the aim of reducing the energy consumption;


the optical port link in the low power mode is still required to be kept UP, that is, an I code stream or a C code stream is stilled required to be periodically transmitted to the opposite end; when a decreasing timer TX_DELAY_TIMER is 0, a system sets the TX_DISABLE signal of the optical transmitter to be ineffective, that is, the optical module of the optical transmitter is set into an on state, and after the I code stream or the C code stream is transmitted, the TX_DISABLE signal of the optical transmitter is set to be effective, the optical port link is still kept in the low power mode, and TX_DELAY_TIMER is reset into an initial value;


the optical port link in the low power mode is still responsible for timely and non-destructive message transmission; when TX_FIFO is nonempty, it is indicated that there are messages to be transmitted, the system sets the TX_DISABLE signal of the optical transmitter to be ineffective, and starts transmitting all the messages to be transmitted of the local equipment until TX_FIFO is empty, and then the optical port link may enter the low power mode again;


under such a condition, a mode of a receiver of the optical port link is the same as an ordinary working mode; the receiver is prepared for receiving messages at any time, and if the receiver does not receive the I code stream or C code stream from the opposite end when RX_DELAY_TIMER is 0, it is indicated that the link has be abnormally disconnected and a port is in a Link DOWN state, otherwise it is necessary to reset a value of a decreasing timer RX_DELAY_TIMER and keep a Link UP state;


in one embodiment, if a non-auto-negotiation mode is adopted when the two ends of the optical port link are in the Link UP state, namely under the condition of transmitting and receiving the I code stream, both TX_DELAY_TIMER and RX_DELAY_TIMER are defaulted to be the same reference time value; and if an auto-negotiation mode is adopted when the two ends of the optical port link are in the Link UP state, namely under the condition of transmitting and receiving the C code stream, the transmitter may set an extensible TX_DELAY_TIMER time value, and transmit the extensible TX_DELAY _TIMER time value to the receiver to synchronize the RX_DELAY_TIMER time value of the receiver through the C code stream.



FIG. 2 is a schematic diagram of a processing method for an optical port energy-saving system according to the implementation mode. As shown in FIG. 2, the implementation mode discloses an embodiment of a processing method for an optical port energy-saving system, including:


Step 201: when TX_FIFO of a transmitter is empty, the transmitter of an optical port link of a switch system enters a low power mode, and sets a TX_DISABLE signal of an optical transmitter to be effective;


Step 202: when a decreasing timer TX_DELAY_TIMER of the transmitter is 0, the TX_DISABLE signal of the optical transmitter is set to be ineffective, an I code stream or a C code stream is transmitted to an opposite end to keep the link in a Link UP state, and then the TX_DISABLE signal of the optical transmitter is set to be effective to keep the low power mode;


Step 203: a receiver resets a local decreasing timer RX_DELAY_TIMER to keep the Link UP state of the link according to the received I code stream or C code stream; and


Step 204: when TX_FIFO of the transmitter is nonempty, the transmitter of the optical port link of the switch system enters an ordinary mode, sets the TX_DISABLE signal of the optical transmitter to be ineffective, and starts transmitting messages.



FIG. 3 is a structure diagram of a processing device for an optical port energy-saving system according to the implementation mode. As shown in FIG. 3, the implementation mode provides a processing device for an optical port energy-saving system.


Wherein, FIG. 4 is a schematic diagram of a low power state machine of a transmitter, and whether to enter and quit a low power mode or not is judged according to whether TX_FIFO is empty or not so as to control state switching of the transmitter and set a TX_DISABLE signal of an optical transmitter. When TX_DELAY_TIMER is decreased to 0, it is necessary to reset the TX_DISABLE signal of the optical transmitter, transmit an I code stream or a C code stream to an opposite end, keep a Link UP state of an optical port link and reset local TX_DELAY_TIMER into an initial value. In FIG. 4, action state and low power state are involved.


Wherein, FIG. 5 is a schematic diagram of a Link state machine of a receiver, and a current Link state is determined according to whether RX_DELAY_TIMER is 0 or not. If the I code stream or the C code stream is not received from the opposite end when RX_DELAY_TIMER is decreased to 0, the current Link state is switched into a Link DOWN state. If the I code stream or the C code stream is received from the opposite end, local RX_DELAY_TIMER is reset into an initial value.


Furthermore, as shown in FIG. 6, time when the I code stream and the C code stream are transmitted to keep the optical port link in the Link UP state is fixed time. If optical ports at both ends support the C code stream with a negotiation parameter, a DELAY_TIME field may be added into the C code stream to implement an extensible synchronization period mechanism, specifically including:


Step 601: when the transmitter enters the low power mode, a synchronization period in a C code stream which is transmitted for the first time is reference DELAY_TIME;


Step 602: within the reference DELAY TIME, the transmitter is still kept in the low power mode, and a synchronization period in a C code stream which is transmitted for the second time is time which is twice the reference DELAY_TIME;


Step 603: within the time which is twice the reference DELAY_TIME, the transmitter is still kept in the low power mode, and a synchronization period in a C code stream which is transmitted for the third time is time which is four times the reference DELAY_TIME; and


Step 604: within the time which is four times the reference DELAY_TIME, the transmitter is switched back to the ordinary mode, and a synchronization period in a C code stream which is transmitted next time is recovered into the reference DELAY_TIME.


In the embodiment, if the transmitter is in the low power mode for a long time, its synchronization period may not be infinitely extended, otherwise the problem that the two ends of the optical port link may not timely respond to a link abnormity may arise. It is suggested that the synchronization period is maximally time which is 16 times the reference DELAY_TIME, and is kept unchanged after reaching the time which is 16 times the reference DELAY_TIME, and the synchronization period in the C code stream is recovered into the reference DELAY_TIME after the transmitter is switched back to the ordinary mode.


From the above, in the processing device embodiment for the optical port link system according to the implementation mode, by virtue of detection and judgment of the low power state machine, the transmitter enters the low power mode in an idle period when there are not messages to be transmitted. In addition, an extensible synchronization period policy is implemented in the C code stream for maintaining the optical port link, so that energy consumption of the optical transmitter is maximally reduced, and the aim of saving energy is fulfilled.


As shown in FIG. 7, an embodiment of the disclosure further provides a control device, a first optical processing device is connected with a second optical processing device through an optical port link, and a transmission module configured to transmit a signal to the second optical processing module through the optical port link is arranged on the first optical processing device, the device includes:


a judgment module 71, configured to judge whether there is data to be transmitted to the second optical processing device or not in the first optical processing device, and acquire a judgment result; and


a first control module 72, configured to control the transmission module to be in an off state when the judgment result is NO.


Obviously, the transmission module is controlled to be in the off state when there is no data to be transmitted to the second optical processing device in the first optical processing device, so that energy consumption of the first optical processing device is reduced.


In an embodiment of the disclosure, the device may further include:


a second control module, configured to control the transmission module to be in an on state to enable the transmission module to transmit the data to the second optical processing device when the judgment result is YES.


In addition, the device may further include:


a third control module, configured to control the transmission module to transmit a first code stream configured to maintain a signal transmission channel on the optical port link to the second optical processing device when the judgment result is NO, and trigger the first control module 72 after setting a timer,


correspondingly, the first control module 72 is further configured to control the transmission module to be in the off state after being triggered by the third control module; and


a fourth control module, configured to, at the end of timing of the timer, control the transmission module to be switched on, control the switched-on transmission module to transmit a second code stream configured to maintain the signal transmission channel to the second optical processing device, and trigger the judgment module 71,


correspondingly, the judgment module 71 is further configured to continue judging whether there is the data to be transmitted to the second optical processing device or not in the first optical processing device and acquire a judgment result after being triggered by the fourth control module.


Specifically, there exists a calculation relationship between a time length of the timer and first delay time, wherein the first delay time is delay time of transmission of the first code stream to the second optical processing device by the transmission module relative to transmission of a third code stream to the second optical processing device by the transmission module, the third code stream is a code stream which is transmitted to the second optical processing device last time before the transmission module transmits the first code stream to the second optical processing device, and the third code stream is configured to establish or maintain the signal transmission channel; and


when the second optical processing device does not receive the second code stream within second delay time after receiving the first code stream, the signal transmission channel is set to be unavailable, wherein there exists the calculation relationship between the second delay time and third delay time, and the third delay time is delay time of reception of the first code stream by the second optical processing device relative to reception of the third code stream by the second optical processing device.


During a practical application, the judgment module, the first control module, the second control module, the third control module and the fourth control module may be implemented by a Central Processing Unit (CPU), Digital Signal Processor (DSP) or Field-Programmable Gate Array (FPGA) in the control device.


An embodiment of the disclosure further provides an optical transceiver, which may include the abovementioned control device.


The disclosure is described with reference to flowcharts and/or block diagrams of the method, equipment (system) and computer program product according to the embodiment of the disclosure. It should be understood that each flow and/or block in the flowcharts and/or the block diagrams and combinations of the flows and/or blocks in the flowcharts and/or the block diagrams may be implemented by computer program instructions. These computer program instructions may be provided for a universal computer, a dedicated computer, an embedded processor or a processor of other programmable data processing equipment to generate a machine, so that a device for realizing a function specified in one or more flows in the flowcharts and/or one or more blocks in the block diagrams is generated by the instructions executed through the computer or the processor of the other programmable data processing equipment.


These computer program instructions may also be stored in a computer-readable memory capable of guiding the computer or the other programmable data processing equipment to work in a specific manner, so that a product including an instruction device may be generated by the instructions stored in the computer-readable memory, the instruction device realizing the function specified in one flow or many flows in the flowcharts and/or one block or many blocks in the block diagrams.


These computer program instructions may further be loaded onto the computer or the other programmable data processing equipment, so that a series of operating steps are executed on the computer or the other programmable data processing equipment to generate processing implemented by the computer, and steps for realizing the function specified in one flow or many flows in the flowcharts and/or one block or many blocks in the block diagrams are provided by the instructions executed on the computer or the other programmable data processing equipment.


The above is only the implementation mode of the embodiment of the disclosure, and it should be pointed out that those skilled in the art may also make a plurality of improvements and embellishments without departing from the principle of the embodiment of the disclosure, and these improvements and embellishments shall fall within the scope of protection of the embodiment of the disclosure.

Claims
  • 1. A control method, a first optical processing device being connected with a second optical processing device through an optical port link, and a transmission module configured to transmit a signal to the second optical processing device through the optical port link being arranged on the first optical processing device, the method comprising: judging whether there is data to be transmitted to the second optical processing device or not in the first optical processing device, and acquiring a judgment result; andcontrolling the transmission module to be in an off state when the judgment result is NO.
  • 2. The method according to claim 1, further comprising: controlling the transmission module to be in an on state to enable the transmission module to transmit the data to the second optical processing device when the judgment result is YES.
  • 3. The method according to claim 1, further comprising: before controlling the transmission module to be in the off state, controlling the transmission module to transmit a first code stream configured to maintain a signal transmission channel on the optical port link to the second optical processing device, and setting a timer;correspondingly, the method further comprising:at end of timing of the timer, controlling the transmission module to be switched on, controlling the switched-on transmission module to transmit a second code stream configured to maintain the signal transmission channel to the second optical processing device, and continuing judging whether there is the data to be transmitted to the second optical processing device or not in the first optical processing device.
  • 4. The method according to claim 3, wherein there exists a calculation relationship between a time length of the timer and first delay time, wherein the first delay time is delay time of transmission of the first code stream to the second optical processing device by the transmission module relative to transmission of a third code stream to the second optical processing device by the transmission module, the third code stream is a code stream which is transmitted to the second optical processing device last time before the transmission module transmits the first code stream to the second optical processing device, and the third code stream is configured to establish or maintain the signal transmission channel; and the method further comprising:when the second optical processing device does not receive the second code stream within second delay time after receiving the first code stream, setting the signal transmission channel to be unavailable, wherein there exists a calculation relationship between the second delay time and third delay time, and the third delay time is delay time of reception of the first code stream by the second optical processing device relative to reception of the third code stream by the second optical processing device.
  • 5. The method according to claim 4, wherein the calculation relationship is an N-fold relationship, wherein N is greater than 1.
  • 6. The method according to claim 3, further comprising: a receiving module configured to receive a signal transmitted by the second optical processing device through the optical port link is also arranged on the first optical processing device, when the receiving module does not receive a code stream configured to maintain a signal receiving channel from the second optical processing device within delay time after receiving a fourth code stream configured to maintain the signal receiving channel on the optical port link from the second optical processing device, controlling a state machine of the signal receiving channel to be in a channel-unavailable state; or,when the receiving module receives a fifth code stream configured to maintain the signal receiving channel on the optical port link from the second optical processing device, controlling the state machine of the signal receiving channel to be in a channel-available state.
  • 7. A control device, a first optical processing device is connected with a second optical processing device through an optical port link, and a transmission module configured to transmit a signal to the second optical processing module through the optical port link is arranged on the first optical processing device, the device comprising: a judgment module, configured to judge whether there is data to be transmitted to the second optical processing device or not in the first optical processing device, and acquire a judgment result; anda first control module, configured to control the transmission module to be in an off state when the judgment result is NO.
  • 8. The device according to claim 7, further comprising: a second control module, configured to control the transmission module to be in an on state to enable the transmission module to transmit the data to the second optical processing device when the judgment result is YES.
  • 9. The device according to claim 7, further comprising: a third control module, configured to control the transmission module to transmit a first code stream configured to maintain a signal transmission channel on the optical port link to the second optical processing device when the judgment result is NO, and trigger the first control module after setting a timer,correspondingly, the first control module is further configured to control the transmission module to be in the off state after being triggered by the third control module; anda fourth control module, configured to, at end of timing of the timer, control the transmission module to be switched on, control the switched-on transmission module to transmit a second code stream configured to maintain the signal transmission channel to the second optical processing device, and trigger the judgment module,correspondingly, the judgment module is further configured to continue judging whether there is the data to be transmitted to the second optical processing device or not in the first optical processing device and acquire a judgment result after being triggered by the fourth control module.
  • 10. The device according to claim 9, wherein there exists a calculation relationship between a time length of the timer and first delay time, wherein the first delay time is delay time of transmission of the first code stream to the second optical processing device by the transmission module relative to transmission of a third code stream to the second optical processing device by the transmission module, the third code stream is a code stream which is transmitted to the second optical processing device last time before the transmission module transmits the first code stream to the second optical processing device, and the third code stream is configured to establish or maintain the signal transmission channel; and when the second optical processing device does not receive the second code stream within second delay time after receiving the first code stream, the signal transmission channel is set to be unavailable, wherein there exists a calculation relationship between the second delay time and third delay time, and the third delay time is delay time of reception of the first code stream by the second optical processing device relative to reception of the third code stream by the second optical processing device.
  • 11-12. (canceled)
  • 13. An optical transceiver, comprising a control device; wherein a first optical processing device is connected with a second optical processing device through an optical port link, and a transmission module configured to transmit a signal to the second optical processing module through the optical port link is arranged on the first optical processing device, the control device comprises: a judgment module, configured to judge whether there is data to be transmitted to the second optical processing device or not in the first optical processing device, and acquire a judgment result; anda first control module, configured to control the transmission module to be in an off state when the judgment result is NO.
  • 14. The optical transceiver according to claim 13, the control device further comprises: a second control module, configured to control the transmission module to be in an on state to enable the transmission module to transmit the data to the second optical processing device when the judgment result is YES.
  • 15. The optical transceiver according to claim 13, the control device further comprises: a third control module, configured to control the transmission module to transmit a first code stream configured to maintain a signal transmission channel on the optical port link to the second optical processing device when the judgment result is NO, and trigger the first control module after setting a timer,correspondingly, the first control module is further configured to control the transmission module to be in the off state after being triggered by the third control module; anda fourth control module, configured to, at end of timing of the timer, control the transmission module to be switched on, control the switched-on transmission module to transmit a second code stream configured to maintain the signal transmission channel to the second optical processing device, and trigger the judgment module,correspondingly, the judgment module is further configured to continue judging whether there is the data to be transmitted to the second optical processing device or not in the first optical processing device and acquire a judgment result after being triggered by the fourth control module.
  • 16. The optical transceiver according to claim 15, wherein there exists a calculation relationship between a time length of the timer and first delay time, wherein the first delay time is delay time of transmission of the first code stream to the second optical processing device by the transmission module relative to transmission of a third code stream to the second optical processing device by the transmission module, the third code stream is a code stream which is transmitted to the second optical processing device last time before the transmission module transmits the first code stream to the second optical processing device, and the third code stream is configured to establish or maintain the signal transmission channel; and when the second optical processing device does not receive the second code stream within second delay time after receiving the first code stream, the signal transmission channel is set to be unavailable, wherein there exists a calculation relationship between the second delay time and third delay time, and the third delay time is delay time of reception of the first code stream by the second optical processing device relative to reception of the third code stream by the second optical processing device.
  • 17. A computer storage medium, comprising a set of instructions and causing at least one processor to execute a control method when the instructions are executed; the control method comprises: a first optical processing device being connected with a second optical processing device through an optical port link, and a transmission module configured to transmit a signal to the second optical processing device through the optical port link being arranged on the first optical processing device;judging whether there is data to be transmitted to the second optical processing device or not in the first optical processing device, and acquiring a judgment result; andcontrolling the transmission module to be in an off state when the judgment result is NO.
  • 18. The computer storage medium according to claim 17, the control method further comprises: controlling the transmission module to be in an on state to enable the transmission module to transmit the data to the second optical processing device when the judgment result is YES.
  • 19. The computer storage medium according to claim 17, the control method further comprises: before controlling the transmission module to be in the off state, controlling the transmission module to transmit a first code stream configured to maintain a signal transmission channel on the optical port link to the second optical processing device, and setting a timer;correspondingly, the control method further comprises:at end of timing of the timer, controlling the transmission module to be switched on, controlling the switched-on transmission module to transmit a second code stream configured to maintain the signal transmission channel to the second optical processing device, and continuing judging whether there is the data to be transmitted to the second optical processing device or not in the first optical processing device.
  • 20. The computer storage medium according to claim 19, wherein there exists a calculation relationship between a time length of the timer and first delay time, wherein the first delay time is delay time of transmission of the first code stream to the second optical processing device by the transmission module relative to transmission of a third code stream to the second optical processing device by the transmission module, the third code stream is a code stream which is transmitted to the second optical processing device last time before the transmission module transmits the first code stream to the second optical processing device, and the third code stream is configured to establish or maintain the signal transmission channel; and the control method further comprises:when the second optical processing device does not receive the second code stream within second delay time after receiving the first code stream, setting the signal transmission channel to be unavailable, wherein there exists a calculation relationship between the second delay time and third delay time, and the third delay time is delay time of reception of the first code stream by the second optical processing device relative to reception of the third code stream by the second optical processing device.
  • 21. The computer storage medium according to claim 20, wherein the calculation relationship is an N-fold relationship, wherein N is greater than 1.
  • 22. The computer storage medium according to claim 19, the control method further comprises: a receiving module configured to receive a signal transmitted by the second optical processing device through the optical port link is also arranged on the first optical processing device, when the receiving module does not receive a code stream configured to maintain a signal receiving channel from the second optical processing device within delay time after receiving a fourth code stream configured to maintain the signal receiving channel on the optical port link from the second optical processing device, controlling a state machine of the signal receiving channel to be in a channel-unavailable state; or,when the receiving module receives a fifth code stream configured to maintain the signal receiving channel on the optical port link from the second optical processing device, controlling the state machine of the signal receiving channel to be in a channel-available state.
Priority Claims (1)
Number Date Country Kind
201310307041.0 Jul 2013 CN national
PCT Information
Filing Document Filing Date Country Kind
PCT/CN2014/080752 6/25/2014 WO 00