CN112788440B - Data transmission method and device - Google Patents

Data transmission method and device Download PDF

Info

Publication number
CN112788440B
CN112788440B CN201911066319.3A CN201911066319A CN112788440B CN 112788440 B CN112788440 B CN 112788440B CN 201911066319 A CN201911066319 A CN 201911066319A CN 112788440 B CN112788440 B CN 112788440B
Authority
CN
China
Prior art keywords
control message
optical port
receiving
port
time
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.)
Active
Application number
CN201911066319.3A
Other languages
Chinese (zh)
Other versions
CN112788440A (en
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.)
China Mobile Communications Group Co Ltd
China Mobile Communications Ltd Research Institute
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Communications Ltd Research Institute
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 China Mobile Communications Group Co Ltd, China Mobile Communications Ltd Research Institute filed Critical China Mobile Communications Group Co Ltd
Priority to CN201911066319.3A priority Critical patent/CN112788440B/en
Publication of CN112788440A publication Critical patent/CN112788440A/en
Application granted granted Critical
Publication of CN112788440B publication Critical patent/CN112788440B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0005Switch and router aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0005Switch and router aspects
    • H04Q2011/0037Operation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • H04Q2011/0086Network resource allocation, dimensioning or optimisation
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Optical Communication System (AREA)

Abstract

The embodiment of the invention provides a data transmission method and equipment, wherein the method can shut off an optical port transmission power supply of a local terminal according to an idle state of a transmission buffer when data transmission is carried out between the equipment through the optical ports, so that the transmission power consumption of the local terminal transmission optical port can be reduced. In addition, the embodiment of the invention also triggers the opposite terminal equipment to close the receiving power supply of the corresponding receiving optical port by sending the control message, so that the data can be stopped from being received on the corresponding receiving optical port on the second equipment during the period that the first equipment stops sending the data on the first sending optical port, and the receiving power consumption of the second equipment is saved.

Description

Data transmission method and device
Technical Field
The present invention relates to the field of data communication technologies, and in particular, to a data transmission method and apparatus.
Background
Based on the relevant statistics, energy consumption has become the major operational cost of data centers (Operating Expense, OPEX). With the popularization of network function virtualization (Network Function Virtualization, NFV), and the virtualization and clouding of various transmission and IP infrastructures, the demand for reducing energy consumption as much as possible is more and more urgent, and a switch has a large deployment volume as an infrastructure of transmission and IP and data centers, so the low power consumption of the switch plays a significant role in reducing energy consumption.
The existing low-power consumption technology of the switch is mainly summarized as follows:
1) The detection optical module is inserted without optical fiber, and the power supply of the optical module is cut off when the optical fiber is inserted.
2) And judging the link state of the optical port by adopting software, and cutting off the power supply of the optical module if the link fails.
3) For an electrical port switch, the waste of power by the switch ports when the link is idle can be solved according to the high-efficiency energy-saving Ethernet (Energy Efficient Ethernet, EEE) specification defined by IEEE 802.3 az.
In the prior art, optical fibers are adopted to interconnect among all switches spine, leaf and torrs of a data center and among torrs and servers, and the 3 rd scheme in the low-power consumption technical scheme of the switch is aimed at an electric port switch, is not applicable to an optical port switch scene interconnected through the optical fibers, and is characterized in that: the optical fibers interconnected between the data center switches which are actually deployed and delivered are connected, and the scheme of judging the link state by detecting the existence of the optical fiber insertion and software is difficult to further reduce the energy consumption generated by an optical port. Moreover, in the prior art, idle frames are usually transmitted at the interconnection ports when the link is idle, and the power consumption of each port of the time switch is wasted greatly. For example, the power consumed by each optical port is typically around 1W, which varies with the rate of the optical port. Therefore, a scheme is needed to reduce the power consumption of the device when the optical port is used for data transmission between the devices.
Disclosure of Invention
At least one embodiment of the invention provides a data transmission method and device, which are used for reducing the power consumption of equipment when the data transmission is carried out by adopting an optical port between the equipment.
According to another aspect of the present invention, at least one embodiment provides a data transmission method applied to a first device, where a first transmitting optical port of the first device is connected to a second receiving optical port of a second device through an optical fiber, including:
detecting the idle degree of a transmission buffer of a first transmission light port;
when the idle degree reaches a first threshold, a first control message is sent to the second device through the first sending light port, wherein the first control message is used for triggering the second receiving light port to enter a low-power consumption state and keeping for a first time;
and after the first control message is sent, the sending power supply of the first sending light port is closed, and after the first time is kept, the sending power supply of the first sending light port is turned on again.
Optionally, after the step of turning on the transmission power of the first transmission light port again, the method further includes:
and returning to the step of detecting the idle degree of the transmission buffer of the first transmission optical port.
Optionally, when the idle degree reaches a first threshold, the step of sending a first control message to the second device through the first sending light port includes:
when the idle degree reaches a first threshold, determining a first time corresponding to the first threshold according to a preset corresponding relation table of the threshold and time, wherein a higher threshold corresponds to a longer time in the corresponding relation table;
generating a first control message for triggering the second receiving optical port to enter a low-power consumption state, and carrying the indication information of the first time in the first control message;
and sending the first control message through the first sending light port.
Optionally, when the idle degree reaches a first threshold, the step of sending a first control message to the second device through the first sending light port includes:
acquiring a first service attribute of service data cached in a transmission cache of the first transmission optical port;
selecting a first corresponding relation table corresponding to the first service attribute from a plurality of preset corresponding relation tables according to the first service attribute, wherein the corresponding relation table stores the corresponding relation between a threshold and time;
When the idle degree reaches a first threshold, determining a first time corresponding to the first threshold according to the first corresponding relation table;
generating a first control message for triggering the second receiving optical port to enter a low-power consumption state, and carrying the indication information of the first time in the first control message;
and sending the first control message through the first sending light port.
Optionally, before the step of detecting the idle degree of the transmission buffer of the first transmission optical port, the method further includes:
judging whether a link idle energy-saving function of the first transmitting light port is started or not;
entering the step of detecting the idle degree of a transmission buffer of the first transmission optical port under the condition that the link idle energy-saving function of the first transmission optical port is started;
and ending the flow under the condition that the link idle energy-saving function of the first transmitting optical port is not started.
Optionally, the first control message is a Pause Frame, and the reserved Padding field of the Pause Frame includes a first field and a second field, where the first field is used to indicate whether the Pause Frame is a control message for triggering to enter a low power consumption state, and the second field is used to carry the indication information of the first time.
Optionally, the first receiving optical port of the first device is connected with the second transmitting optical port of the second device through an optical fiber; the method further comprises the steps of:
receiving a second control message from the first receiving optical port, wherein the second control message is used for triggering the first receiving optical port to enter a low-power consumption state and keeping a second time;
and according to the second control message, closing the receiving power supply of the first receiving optical port, and after keeping the second time, switching on the receiving power supply of the first receiving optical port again.
The embodiment of the invention also provides a data transmission method applied to the second equipment, wherein a second receiving optical port of the second equipment is connected with a first transmitting optical port of the first equipment through an optical fiber, and the data transmission method comprises the following steps:
receiving a first control message sent by a first device through a second receiving optical port, wherein the first control message is used for triggering the second receiving optical port to enter a low-power consumption state and keeping a first time;
and according to the first control message, closing the receiving power supply of the second receiving optical port, and after keeping the first time, switching on the receiving power supply of the second receiving optical port again.
Optionally, after receiving the first control message, the method further includes:
Judging whether a link idle energy-saving function of the second receiving optical port is started or not;
when the link idle energy-saving function of the second receiving optical port is started, entering a step of turning off the receiving power supply of the second receiving optical port according to the first control message, and turning on the receiving power supply of the second receiving optical port again after keeping the first time;
and discarding the first control message under the condition that the link idle energy-saving function of the second receiving optical port is not started.
Optionally, the first control message is a Pause Frame, and the reserved Padding field of the Pause Frame includes a first field and a second field, where the first field is used to indicate whether the Pause Frame is a control message for triggering to enter a low power consumption state, and the second field is used to carry the indication information of the first time.
The embodiment of the invention also provides a first device, a first transmitting optical port of which is connected with a second receiving optical port of a second device through an optical fiber, the first device comprises:
the idle detection module is used for detecting the idle degree of the transmission buffer of the first transmission light port;
The control message sending module is used for sending a first control message to the second equipment through the first sending light port when the idle degree reaches a first threshold, wherein the first control message is used for triggering the second receiving light port to enter a low-power consumption state and keeping for a first time;
and the power consumption control module is used for closing the transmission power supply of the first transmission light port after the first control message is transmitted, and switching on the transmission power supply of the first transmission light port again after the first time is kept.
The embodiment of the invention also provides a first device, wherein the first transmitting optical port of the first device is connected with the second receiving optical port of the second device through an optical fiber, and the first device comprises a transceiver and a processor,
the processor is used for detecting the idle degree of the transmission buffer memory of the first transmission light port; after the transceiver transmits the first control message, the transmitting power supply of the first transmitting light port is closed, and after the first time is kept, the transmitting power supply of the first transmitting light port is turned on again;
and the transceiver is used for sending a first control message to the second equipment through the first sending optical port when the idle degree reaches a first threshold, wherein the first control message is used for triggering the second receiving optical port to enter a low-power consumption state and keeping for a first time.
The embodiment of the invention also provides first equipment, wherein a first transmitting optical port of the first equipment is connected with a second receiving optical port of second equipment through an optical fiber, and the first equipment comprises: a processor, a memory and a program stored on the memory and executable on the processor, which when executed by the processor implements the steps of the data transmission method as described above.
The embodiment of the invention also provides a second device, a second receiving optical port of the second device is connected with a first transmitting optical port of the first device through an optical fiber, and the second device comprises:
the control message receiving module is used for receiving a first control message sent by first equipment through a second receiving optical port, wherein the first control message is used for triggering the second receiving optical port to enter a low-power consumption state and keeping a first time;
and the power consumption control module is used for closing the receiving power supply of the second receiving optical port according to the first control message, and switching on the receiving power supply of the second receiving optical port again after keeping the first time.
The embodiment of the invention also provides a second device, wherein a second receiving optical port of the second device is connected with a first transmitting optical port of the first device through an optical fiber, and the second device comprises a transceiver and a processor,
The transceiver is configured to receive, through a second receiving optical port, a first control message sent by a first device, where the first control message is used to trigger the second receiving optical port to enter a low power consumption state and keep a first time;
and the processor is used for closing the receiving power supply of the second receiving optical port according to the first control message, and switching on the receiving power supply of the second receiving optical port again after keeping the first time.
The embodiment of the invention also provides a second device, a second receiving optical port of the second device is connected with a first transmitting optical port of the first device through an optical fiber, and the second device comprises: a processor, a memory and a program stored on the memory and executable on the processor, which when executed by the processor implements the steps of the data transmission method as described above.
According to another aspect of the invention, at least one embodiment provides a computer-readable storage medium having stored thereon a program which, when executed by a processor, implements the steps of the method as described above.
Compared with the prior art, the data transmission method and the device provided by the embodiment of the invention can close the optical port transmission power supply of the local terminal according to the idle state of the transmission buffer when the data transmission is carried out between the devices through the optical ports, so that the transmission power consumption of the local terminal transmission optical port can be reduced. In addition, the embodiment of the invention also triggers the opposite terminal equipment to close the receiving power supply of the corresponding receiving optical port by sending the control message, so that the data can be stopped from being received on the corresponding receiving optical port on the second equipment during the period that the first equipment stops sending the data on the first sending optical port, and the receiving power consumption of the second equipment is saved.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to designate like parts throughout the figures. In the drawings:
fig. 1 is a schematic diagram of an application scenario according to an embodiment of the present invention;
fig. 2 is a flowchart of a data transmission method according to an embodiment of the present invention when applied to a first device side;
fig. 3 is a flowchart of a data transmission method according to an embodiment of the present invention when applied to a second device side;
FIG. 4 is a diagram illustrating first and second fields according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a first device according to an embodiment of the present invention;
fig. 6 is another schematic structural diagram of a first device according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a second device according to an embodiment of the present invention;
fig. 8 is a schematic diagram of another structure of a second apparatus according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present invention are shown in the drawings, it should be understood that the present invention may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
The terms first, second and the like in the description and in the claims, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that embodiments of the present application described herein may be capable of operation in sequences other than those illustrated or described herein, for example. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus. "and/or" in the specification and claims means at least one of the connected objects.
The following description provides examples and does not limit the scope, applicability, or configuration as set forth in the claims. Changes may be made in the function and arrangement of elements discussed without departing from the spirit and scope of the disclosure. Various examples may omit, substitute, or add various procedures or components as appropriate. For example, the described methods may be performed in an order different than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
As described in the background art, in the scheme of the prior art, when the optical port is adopted between devices to perform data transmission, it is difficult to reduce the power consumption of the devices, so as to solve at least one of the above problems, the embodiment of the present invention provides a data transmission method, which can reduce the power consumption of the devices under the above conditions, thereby saving the operation cost of the devices or systems.
Referring to fig. 1, an application scenario of an embodiment of the present invention is provided, where the application scenario includes a first device and a second device, the first device includes a first transmitting optical port TX1 and a first receiving optical port RX1, the second device includes a second transmitting optical port TX2 and a second receiving optical port RX2, where the first transmitting optical port TX1 of the first device is connected to the second receiving optical port RX2 of the second device through an optical fiber, and the second receiving optical port TX2 of the second device is connected to the first transmitting optical port RX1 of the first device through an optical fiber. The first device and the second device may be switches or other devices that need to perform data transmission, and may also be referred to as a first communication device and a second communication device.
Referring to fig. 2, the data transmission method provided in the embodiment of the present invention, when applied to a first device, includes:
Step 21, detecting the idle degree of the transmission buffer of the first transmission optical port.
Here, the free resources and/or the amount of buffered data in the transmission buffer (e.g., transmission FIFO) of the first transmission optical port may be detected to determine the degree of free transmission buffer. The larger the idle degree is, the smaller the data quantity of the current buffer in the sending buffer is, and the larger the idle resource is. Otherwise, the smaller the idle degree is, the larger the data quantity of the current buffer in the sending buffer is, and the smaller the idle resource is. In particular, the degree of idleness may be represented by the ratio of the idle resources in the entire transmit buffer, e.g., the degree of idleness is 1/4 (or 25%), which means that the idle resources are 1/4 (or 25%) of the transmit buffer. The specific manner of detecting the idle level of the sending buffer may be implemented by reading a corresponding register or other manners, which is not specifically limited in the embodiment of the present invention.
And step 22, when the idle degree reaches a first threshold, sending a first control message to the second device through the first sending optical port, wherein the first control message is used for triggering the second receiving optical port to enter a low-power consumption state and keeping for a first time.
Here, in the embodiment of the present invention, a correspondence table may be preset, where correspondence between different thresholds and time is recorded in the correspondence table. In this way, when the idle degree reaches the first threshold, a first time corresponding to the first threshold may be determined according to a preset corresponding relation table between the threshold and time, a first control message for triggering the second receiving optical port to enter a low power consumption state is generated, the first control message carries indication information of the first time, and then the first control message is sent through the first sending optical port. The first control message is used for triggering the second receiving optical port to enter a low power consumption state, and specifically may be triggering the opposite terminal device to close the receiving power supply of the corresponding receiving optical port.
In the correspondence table, a higher threshold corresponds to a longer time. For example, when the idle degree is 1/4, the corresponding time is 0.5 seconds; when the idle degree is 1/2, the corresponding time is 1 second, etc. Therefore, when the transmission buffer memory idle degree is larger, the current data transmission quantity is smaller, and a longer low-power consumption state can be maintained, so that the embodiment of the invention can carry out power consumption reduction processing according to the current data transmission scene.
Step 23, after the first control message is sent, turning off the sending power supply of the first sending light port, and after the first time is kept, turning on the sending power supply of the first sending light port again.
After the first control message is sent, the first device turns off the sending power supply of the first sending light port, so that the first device is prevented from sending idle frames when the first sending light port is idle, sending power consumption of the first device at the first sending light port can be reduced, and a good energy-saving effect is achieved. Specifically, when the transmission power supply of the first transmission light port is turned off, a timer may be started to count, and when the count reaches the first time, the transmission power supply is provided for the first transmission light port again, so as to recover the work of the first transmission light port.
Through the steps, when data transmission is carried out between the devices through the optical port, the optical port transmitting power supply of the local terminal is closed according to the idle state of the transmitting buffer, so that the transmitting power consumption of the local terminal transmitting optical port can be reduced. In addition, the embodiment of the invention also triggers the opposite terminal equipment to close the receiving power supply of the corresponding receiving optical port by sending the control message, so that the data can be stopped from being received on the corresponding receiving optical port on the second equipment during the period that the first equipment stops sending the data on the first sending optical port, and the receiving power consumption of the second equipment is saved.
In the step 23, the embodiment of the present invention may further return to the step 21 after the transmission power of the first transmission light port is turned on again, and continuously detect the idle degree of the transmission buffer of the first transmission light port, so as to execute the steps 21 to 23 in a circulating manner, so as to continuously perform the energy saving control.
In view of the fact that in some application scenarios, in order to ensure timeliness of data transmission, it may not be desirable to turn off the power supply of the transmitting optical port/the receiving optical port, for this reason, the embodiment of the present invention may further set a switch with a link idle energy-saving function for the transmitting optical port, and set the on-off state of the switch according to a specific application scenario. In this way, before the step 21, the embodiment of the present invention may first determine whether the link idle energy saving function of the first sending optical port is turned on, and enter the step 21 if the link idle energy saving function of the first sending optical port is turned on, otherwise, directly end the flow, so that the link idle energy saving function of the sending optical port of the local device may be turned off when the link idle energy saving function is not needed.
In practical applications, different service data may be cached in the transmission cache, where the service data has different service attributes, for example, different requirements for transmission delay. In order to better meet the requirements of service attributes of different services, the embodiment of the invention can set different corresponding relation tables for different service attributes in advance, for example, different corresponding relation tables are respectively set for services with different transmission delay requirements, and the corresponding relation tables store the corresponding relation between the threshold and the time.
That is, in the embodiment of the present invention, a plurality of correspondence tables may be preset, where each correspondence table corresponds to a service attribute. Taking the transmission delay requirement of the service attribute as data as an example, it is assumed that the first corresponding relation table corresponds to the first data transmission delay requirement, the second corresponding relation table corresponds to the second data transmission delay requirement, the first data transmission delay requirement (for example, the data transmission delay is required to be lower than 50 ms) is higher than the second data transmission delay requirement (for example, the data transmission delay is required to be lower than 200 ms), at this time, the same threshold is at the time corresponding to the first corresponding relation table, and the same threshold is lower than the time corresponding to the second corresponding relation table. That is, when the data transmission delay requirement of the service is higher, the embodiment of the invention can set smaller duration time for closing the transmitting optical port for the service through different corresponding relation tables so as to adapt to the requirement of the service on the transmission delay.
Therefore, in the step 22, the embodiment of the present invention may first obtain the first service attribute of the service data cached in the sending buffer of the first sending optical port; then, according to the first service attribute, selecting a first corresponding relation table corresponding to the first service attribute from a plurality of preset corresponding relation tables, wherein the corresponding relation table stores the corresponding relation between a threshold and time; and then, when the idle degree reaches a first threshold, determining a first time corresponding to the first threshold according to the first corresponding relation table, and further generating and sending a first control message for triggering the second receiving optical port to enter a low-power consumption state through the first sending optical port, wherein the first control message carries indication information of the first time.
When the first service attribute is required by the data transmission delay, considering that a plurality of services with different delay requirements possibly exist in the sending buffer, when the first service attribute of the service data buffered in the sending buffer of the first sending optical port is obtained, the first service attribute can be determined according to the service data with the highest data transmission delay requirement in the buffered service data.
Referring to fig. 1, in the embodiment of the present invention, the power-saving processing of the first light-emitting port can be realized by controlling the power-off or power-on of the first light-emitting port of the first device through the above steps 21 to 23. In addition, since the first device may also receive the data sent by the second device through the first receiving optical port, in the embodiment of the present invention, the first device may also receive a second control message from the first receiving optical port, where the second control message is used to trigger the first receiving optical port to enter a low power consumption state and keep a second time; and then, according to the second control message, turning off the receiving power supply of the first receiving optical port, and after maintaining the second time, turning on the receiving power supply of the first receiving optical port again.
Similarly, the embodiment of the invention can also set a switch with a link idle energy-saving function for the first light receiving port, and set the switch state of the switch according to specific application scenes. In this way, after the second control message is received, the embodiment of the invention can firstly judge whether the link idle energy-saving function of the first receiving optical port is started, and close the receiving power supply of the first receiving optical port under the condition that the link idle energy-saving function of the first receiving optical port is started, and keep the second time, and then re-switch on the receiving power supply of the first receiving optical port, otherwise, discard or ignore the second control message under the condition that the link idle energy-saving function of the first receiving optical port is not started, and keep the power supply state of the first receiving optical port, thereby closing the link idle energy-saving function of the receiving optical port of the local terminal equipment when the link idle energy-saving function is not needed.
Referring to fig. 3, when applied to a second device side, the data transmission method provided in the embodiment of the present invention includes:
step 31, receiving, through a second receiving optical port, a first control message sent by a first device, where the first control message is used to trigger the second receiving optical port to enter a low power consumption state and keep a first time.
And step 32, turning off the receiving power supply of the second receiving optical port according to the first control message, and turning on the receiving power supply of the second receiving optical port again after the first time is kept.
Through the steps, the embodiment of the invention enables the second device to close the receiving power supply of the corresponding receiving optical port when the first device stops sending data, and reduces the receiving power consumption of the device.
Similarly, the embodiment of the invention can set a switch with a link idle energy-saving function for the second light receiving port, and set the switch state of the switch according to specific application scenes. In this way, after the first control message is received, the embodiment of the invention can firstly judge whether the link idle energy-saving function of the second receiving optical port is started, and close the receiving power supply of the second receiving optical port under the condition that the link idle energy-saving function of the second receiving optical port is started, and keep the receiving power supply of the second receiving optical port after the first time, otherwise, discard or ignore the first control message under the condition that the link idle energy-saving function of the second receiving optical port is not started, and keep the power supply state of the second receiving optical port, thereby closing the link idle energy-saving function of the receiving optical port of the local terminal equipment when the link idle energy-saving function is not needed.
The first and second control messages in the embodiment of the invention can be obtained by expanding a Pause Frame (Pause Frame) defined by IEEE 802.3 x. Specifically, a first field and a second field may be included in a reserved field (Padding) of the pause frame, where the first field is used to indicate whether the pause frame is a control message for triggering to enter a low power consumption state, and the second field is used to carry the indication information of the first time. For example, as shown in fig. 4, the first 2 bytes of Padding may be used as the first field, and the 3 rd to 4 th bytes may be used as the second field. The time indicated by the second field may be calculated according to the product of the value of the second field and a preset time unit, where the preset time unit is generally represented by a time required for transmitting a data amount of a preset size (for example, 512 bits) corresponding to the link. For example, assume that the transmission link of the first transmission optical port is a gigabit link, and the preset unit time for transmitting the 512-bit data amount is 1 nanosecond (ns).
As an example, taking fig. 4 as an example, the first field indicates a switch in the low power consumption state, when it takes a value of 0x0000, it indicates that the control message is not a control message for triggering entry into the low power consumption state, and when it takes a value of 0x0001, it indicates that the control message is a control message for triggering entry into the low power consumption state. The value of the second field ranges from 1 to 65535, and the time unit is the unit time of transmitting 512-bit data quantity.
For example, when a gigabit interconnection link is between the first transmitting optical port of the first device and the second receiving optical port of the second device, and when the link is idle, the first device transmits a Pause frame in a format shown in table 1 through the first transmitting optical port, where "0001" is a first field, and "FFFF" is a second field, so that the sending end and the receiving end of the local end simultaneously enter a low-power consumption silence state, and the duration is as follows: 65535 x512x1 ns=33.55 ms.
0180C2000001 82D2004001 8808 0000 0000 0001 FFFF ……
TABLE 1
For another example, when a hundred mega interconnection link is between the first transmitting optical port of the first device and the second receiving optical port of the second device, and when the link is idle, the first device transmits the Pause frame in the format shown in table 2 through the first transmitting optical port, where the first "0001" is a first field, and the second "0001" is a second field, so that the sending end and the receiving end of the local end will enter a low power consumption silence state at the same time, and the duration is: 1X512X10 ns=5120ns.
0180C2000001 82D2004001 8808 0000 0000 0001 0001 ……
TABLE 2
For another example, when a ten-kilomega interconnection link is between the first transmitting optical port of the first device and the second receiving optical port of the second device, when the link is idle, the first device transmits a Pause frame in a format shown in table 2 through the first transmitting optical port, where "0001" is a first field, and the second "000A" is a second field, so that the sending end and the receiving end of the local end will enter a low-power consumption silence state at the same time, and the duration is: 10×512×0.1ns=512 ns.
0180C2000001 82D2004001 8808 0000 0000 0001 000A ……
TABLE 3 Table 3
The field values in the tables are all expressed by 16 scale.
From the above flow, the embodiment of the invention can close the sending power supply of the sending optical port of the local end according to the idle degree of the sending optical port sending buffer, and inform the opposite end to close the receiving power supply of the optical port of the corresponding interface and to silence for a certain time and then resume power supply by sending the control message carrying the silence time, so as to achieve the purpose of low power consumption when the link is idle.
The above-described interaction flow of the embodiment of the present invention is described below by way of a specific example.
A) And the optical ports interconnected with the local end equipment and the remote end equipment respectively open the idle energy conservation of the link.
B) The local terminal device continuously detects the waterline of the port sending FIFO through a read register or other means, and judges the idle degree of the FIFO. Here, a preset threshold (threshold value) is generally indicated by a FIFO watermark.
C) When the FIFO watermark indicates 1/8, 1/4, 1/2 or 100/100 is idle, the silence time value of the Pause frame extension field is set to 8192, 16384, 32768 or 65535, respectively.
D) And configuring the local port to send the Pause frame with the extension field when 1/8, 1/4, 1/2 or 100/100 is idle, informing the opposite terminal to enter a link idle silence state (energy-saving state), and triggering when the default is 100/100 is idle.
E) Cutting off the transmitting power supply of the optical module of the transmitting optical port of the local end and the receiving power supply of the optical module of the receiving optical port of the remote end, and restarting the power supply after keeping the silent time.
F) The local transmitting optical port resumes monitoring the transmitting FIFO waterline and judges whether to trigger the link idle energy-saving action again.
G) The link idle energy-saving implementation steps of the remote transmitting optical port and the local receiving optical port follow the same flow.
In addition, when the link idle energy-saving function is not needed, the link idle energy-saving functions of the optical ports of the local and remote devices can be respectively closed. And, the silence time corresponding to the light port when 1/8 or 1/4 or 1/2 or 100/100 is idle can be remapped according to the service scene.
From the above examples, the embodiment of the invention can enable the switch optical port to automatically enter the energy-saving state and recover when the link is idle. In addition, the embodiment of the invention can set the threshold value of the link idle degree triggering to enter the energy-saving state according to the service scene and the actual demand, and flexibly customize and map the duration of the energy-saving state according to the service scene and the actual demand. In addition, the embodiment of the invention can also respectively and accurately perform idle energy saving for the link idle states of the two directions of the full duplex link. Furthermore, the embodiment of the invention can expand the reserved field of the Pause frame, has little change on the implementation architecture of the prior art and is easy to realize.
The foregoing describes various methods of embodiments of the present invention. An apparatus for carrying out the above method is further provided below.
The embodiment of the present invention provides a first device 50 shown in fig. 5, where a first transmitting optical port of the first device 50 is connected to a second receiving optical port of a second device through an optical fiber, and the first device 50 includes:
an idle detection module 51, configured to detect an idle degree of a transmission buffer of the first transmission optical port;
a control message sending module 52, configured to send a first control message to a second device through the first sending optical port when the idle level reaches a first threshold, where the first control message is used to trigger the second receiving optical port to enter a low power consumption state and keep a first time;
the power consumption control module 53 is configured to turn off the transmission power of the first transmission light port after the first control message is sent, and turn on the transmission power of the first transmission light port again after the first time is maintained.
Optionally, the power consumption control module 53 is further configured to trigger the idle detection module 51 to continuously detect the idle degree of the transmission buffer of the first transmission optical port after the step of turning on the transmission power of the first transmission optical port again.
Optionally, the control message sending module 52 is further configured to determine, when the idle degree reaches a first threshold, a first time corresponding to the first threshold according to a preset corresponding relation table of the threshold and time, where a higher threshold corresponds to a longer time in the corresponding relation table; generating a first control message for triggering the second receiving optical port to enter a low-power consumption state, and carrying the indication information of the first time in the first control message; and sending the first control message through the first sending light port.
Optionally, the control message sending module 52 is further configured to obtain a first service attribute of service data cached in a sending buffer of the first sending optical port; selecting a first corresponding relation table corresponding to the first service attribute from a plurality of preset corresponding relation tables according to the first service attribute, wherein the corresponding relation table stores the corresponding relation between a threshold and time; when the idle degree reaches a first threshold, determining a first time corresponding to the first threshold according to the first corresponding relation table; generating a first control message for triggering the second receiving optical port to enter a low-power consumption state, and carrying the indication information of the first time in the first control message; and sending the first control message through the first sending light port.
Optionally, the first device may further include the following modules (not shown in the figure):
the judging module is used for judging whether the link idle energy-saving function of the first transmitting light port is started or not; triggering the idle detection module 51 to detect the idle degree of the transmission buffer of the first transmission optical port under the condition that the link idle energy-saving function of the first transmission optical port is started; and under the condition that the link idle energy-saving function of the first transmitting optical port is not started, no action is executed.
Optionally, the first control message is a Pause Frame, and the reserved Padding field of the Pause Frame includes a first field and a second field, where the first field is used to indicate whether the Pause Frame is a control message for triggering to enter a low power consumption state, and the second field is used to carry the indication information of the first time.
Optionally, the first device may further include the following modules:
the control message receiving module is used for receiving a second control message from the first receiving optical port, and the second control message is used for triggering the first receiving optical port to enter a low-power consumption state and keeping a second time;
the power consumption control module 53 is further configured to turn off the receiving power of the first receiving optical port according to the second control message, and turn on the receiving power of the first receiving optical port again after the second time is maintained.
Referring to fig. 6, an embodiment of the present invention provides a schematic structural diagram of a first device 600, including: processor 601, transceiver 602, memory 603 and bus interface, wherein:
in an embodiment of the present invention, the first device 600 further includes: a program stored on the memory 603 and executable on the processor 601, which when executed by the processor 601 performs the steps of:
detecting the idle degree of a transmission buffer of a first transmission light port; and after the first control message is sent, turning off the sending power supply of the first sending light port, and after the first time is kept, turning on the sending power supply of the first sending light port again.
The transceiver 602 is configured to send a first control message to a second device through the first sending optical port when the idle level reaches a first threshold, where the first control message is used to trigger the second receiving optical port to enter a low power consumption state and keep a first time.
It can be appreciated that in the embodiment of the present invention, when the computer program is executed by the processor 601, the processes of the embodiment of the data transmission method shown in fig. 2 can be implemented, and the same technical effects can be achieved, so that repetition is avoided, and detailed description is omitted here.
In fig. 6, a bus architecture may comprise any number of interconnected buses and bridges, with various circuits of the one or more processors, represented in particular by processor 601, and the memory, represented in memory 603. The bus architecture may also link together various other circuits such as peripheral devices, voltage regulators, power management circuits, etc., which are well known in the art and, therefore, will not be described further herein. The bus interface provides an interface. The transceiver 602 may be a number of elements, i.e., including a transmitter and a receiver, providing a means for communicating with various other apparatus over a transmission medium.
The processor 601 is responsible for managing the bus architecture and general processing, and the memory 603 may store data used by the processor 601 in performing operations.
In some embodiments of the present invention, there is also provided a computer-readable storage medium having stored thereon a program which, when executed by a processor, performs the steps of:
detecting the idle degree of a transmission buffer memory of a first transmission optical port of first equipment, wherein the first transmission optical port of the first equipment is connected with a second reception optical port of second equipment through optical fibers;
When the idle degree reaches a first threshold, a first control message is sent to the second device through the first sending light port, wherein the first control message is used for triggering the second receiving light port to enter a low-power consumption state and keeping for a first time;
and after the first control message is sent, the sending power supply of the first sending light port is closed, and after the first time is kept, the sending power supply of the first sending light port is turned on again.
When the program is executed by the processor, all the implementation manners in the data transmission method applied to the first device can be realized, and the same technical effects can be achieved, so that repetition is avoided, and the description is omitted here.
The embodiment of the present invention provides a second device 70 shown in fig. 7, where a second light receiving port of the second device 70 is connected to a first light transmitting port of the first device through an optical fiber, and the second device 70 includes:
the control message receiving module is used for receiving a first control message sent by first equipment through a second receiving optical port, wherein the first control message is used for triggering the second receiving optical port to enter a low-power consumption state and keeping a first time;
and the power consumption control module is used for closing the receiving power supply of the second receiving optical port according to the first control message, and switching on the receiving power supply of the second receiving optical port again after keeping the first time.
Optionally, the second device further includes the following modules:
the judging module is used for judging whether the link idle energy-saving function of the second receiving optical port is started or not after the first control message is received; triggering the power consumption control module to close the receiving power supply of the second receiving optical port according to the first control message under the condition that the link idle energy-saving function of the second receiving optical port is started, and switching on the receiving power supply of the second receiving optical port again after keeping the first time; and discarding the first control message under the condition that the link idle energy-saving function of the second receiving optical port is not started.
Optionally, the first control message is a Pause Frame, and the reserved Padding field of the Pause Frame includes a first field and a second field, where the first field is used to indicate whether the Pause Frame is a control message for triggering to enter a low power consumption state, and the second field is used to carry the indication information of the first time.
Referring to fig. 8, an embodiment of the present invention provides a schematic structural diagram of a second device 800, where a second receiving optical port of the second device is connected to a first transmitting optical port of a first device through an optical fiber, and the second device 800 includes: a processor 801, a transceiver 802, a memory 803, and a bus interface, wherein:
The transceiver 802 is configured to receive, through a second receiving optical port, a first control message sent by a first device, where the first control message is used to trigger the second receiving optical port to enter a low power consumption state and keep a first time.
In an embodiment of the present invention, the second device 800 further includes: a program stored on the memory 803 and executable on the processor 801, which when executed by the processor 801 performs the steps of:
and according to the first control message, closing the receiving power supply of the second receiving optical port, and after keeping the first time, switching on the receiving power supply of the second receiving optical port again.
It can be appreciated that in the embodiment of the present invention, when the computer program is executed by the processor 801, the processes of the embodiment of the data transmission method shown in fig. 3 can be implemented, and the same technical effects can be achieved, so that the repetition is avoided, and the description is omitted here.
In fig. 8, a bus architecture may be comprised of any number of interconnected buses and bridges, and in particular, one or more processors represented by the processor 801 and various circuits of the memory represented by the memory 803. The bus architecture may also link together various other circuits such as peripheral devices, voltage regulators, power management circuits, etc., which are well known in the art and, therefore, will not be described further herein. The bus interface provides an interface. The transceiver 802 may be a number of elements, i.e., including a transmitter and a receiver, providing a means for communicating with various other apparatus over a transmission medium.
The processor 801 is responsible for managing the bus architecture and general processing, and the memory 803 may store data used by the processor 801 in performing operations.
In some embodiments of the present invention, there is also provided a computer-readable storage medium having stored thereon a program which, when executed by a processor, performs the steps of:
receiving a first control message sent by a first device through a second receiving optical port of a second device, wherein the first control message is used for triggering the second receiving optical port to enter a low-power consumption state and keeping a first time, and the second receiving optical port of the second device is connected with a first sending optical port of the first device through an optical fiber;
and according to the first control message, closing the receiving power supply of the second receiving optical port, and after keeping the first time, switching on the receiving power supply of the second receiving optical port again.
When the program is executed by the processor, all the implementation modes in the data transmission method applied to the second device can be realized, and the same technical effects can be achieved, so that repetition is avoided, and the description is omitted here.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, and are not repeated herein.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiment of the present invention.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method described in the embodiments of the present invention. And the aforementioned storage medium includes: a usb disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk, etc.
The foregoing is merely illustrative of the present invention, and the present invention is not limited thereto, and any person skilled in the art will readily recognize that variations or substitutions are within the scope of the present invention. Therefore, the protection scope of the invention is subject to the protection scope of the claims.

Claims (15)

1. The data transmission method is applied to first equipment, and a first transmitting optical port of the first equipment is connected with a second receiving optical port of second equipment through an optical fiber, and is characterized by comprising the following steps:
detecting the idle degree of a transmission buffer of a first transmission light port;
when the idle degree reaches a first threshold, a first control message is sent to the second device through the first sending light port, wherein the first control message is used for triggering the second receiving light port to enter a low-power consumption state and keeping for a first time;
after the first control message is sent, the sending power supply of the first sending light port is turned off, and after the first time is kept, the sending power supply of the first sending light port is turned on again;
the first control message is a Pause Frame, and the reserved Padding field of the Pause Frame includes a first field and a second field, wherein the first field is used for indicating whether the Pause Frame is a control message for triggering to enter a low power consumption state, and the second field is used for carrying indication information of the first time.
2. The method of claim 1, wherein after the step of switching back on the transmission power of the first transmission light port, the method further comprises:
And returning to the step of detecting the idle degree of the transmission buffer of the first transmission optical port.
3. The method of claim 1, wherein the step of transmitting a first control message to the second device through the first transmission optical port when the degree of idleness reaches a first threshold, comprises:
when the idle degree reaches a first threshold, determining a first time corresponding to the first threshold according to a preset corresponding relation table of the threshold and time, wherein a higher threshold corresponds to a longer time in the corresponding relation table;
generating a first control message for triggering the second receiving optical port to enter a low-power consumption state, and carrying the indication information of the first time in the first control message;
and sending the first control message through the first sending light port.
4. The method of claim 1, wherein the step of transmitting a first control message to the second device through the first transmission optical port when the degree of idleness reaches a first threshold, comprises:
acquiring a first service attribute of service data cached in a transmission cache of the first transmission optical port;
selecting a first corresponding relation table corresponding to the first service attribute from a plurality of preset corresponding relation tables according to the first service attribute, wherein the corresponding relation table stores the corresponding relation between a threshold and time;
When the idle degree reaches a first threshold, determining a first time corresponding to the first threshold according to the first corresponding relation table;
generating a first control message for triggering the second receiving optical port to enter a low-power consumption state, and carrying the indication information of the first time in the first control message;
and sending the first control message through the first sending light port.
5. The method of claim 1, further comprising, prior to the step of detecting a degree of idleness of a transmit buffer of the first transmit optical port:
judging whether a link idle energy-saving function of the first transmitting light port is started or not;
entering the step of detecting the idle degree of a transmission buffer of the first transmission optical port under the condition that the link idle energy-saving function of the first transmission optical port is started;
and ending the flow under the condition that the link idle energy-saving function of the first transmitting optical port is not started.
6. The method of any one of claims 1 to 5, wherein the first receiving optical port of the first device is connected to the second transmitting optical port of the second device by an optical fiber; the method further comprises the steps of:
receiving a second control message from the first receiving optical port, wherein the second control message is used for triggering the first receiving optical port to enter a low-power consumption state and keeping a second time;
And according to the second control message, closing the receiving power supply of the first receiving optical port, and after keeping the second time, switching on the receiving power supply of the first receiving optical port again.
7. The data transmission method is applied to a second device, and a second receiving optical port of the second device is connected with a first transmitting optical port of the first device through an optical fiber, and is characterized by comprising the following steps:
receiving a first control message sent by a first device through a second receiving optical port, wherein the first control message is used for triggering the second receiving optical port to enter a low-power consumption state and keeping a first time;
closing the receiving power supply of the second receiving optical port according to the first control message, and switching on the receiving power supply of the second receiving optical port again after keeping the first time;
the first control message is a Pause Frame, and the reserved Padding field of the Pause Frame includes a first field and a second field, wherein the first field is used for indicating whether the Pause Frame is a control message for triggering to enter a low power consumption state, and the second field is used for carrying indication information of the first time.
8. The method of claim 7, wherein,
After receiving the first control message, the method further comprises:
judging whether a link idle energy-saving function of the second receiving optical port is started or not;
when the link idle energy-saving function of the second receiving optical port is started, entering a step of turning off the receiving power supply of the second receiving optical port according to the first control message, and turning on the receiving power supply of the second receiving optical port again after keeping the first time;
and discarding the first control message under the condition that the link idle energy-saving function of the second receiving optical port is not started.
9. A first device having a first transmit optical port coupled to a second receive optical port of a second device via an optical fiber, the first device comprising:
the idle detection module is used for detecting the idle degree of the transmission buffer of the first transmission light port;
the control message sending module is used for sending a first control message to the second equipment through the first sending light port when the idle degree reaches a first threshold, wherein the first control message is used for triggering the second receiving light port to enter a low-power consumption state and keeping for a first time;
The power consumption control module is used for closing the transmission power supply of the first transmission light port after the first control message is transmitted, and switching on the transmission power supply of the first transmission light port again after the first time is kept;
the first control message is a Pause Frame, and the reserved Padding field of the Pause Frame includes a first field and a second field, wherein the first field is used for indicating whether the Pause Frame is a control message for triggering to enter a low power consumption state, and the second field is used for carrying indication information of the first time.
10. A first device having a first transmit optical port coupled to a second receive optical port of a second device via an optical fiber, comprising a transceiver and a processor, wherein,
the processor is used for detecting the idle degree of the transmission buffer memory of the first transmission light port; after the transceiver transmits the first control message, the transmitting power supply of the first transmitting light port is closed, and after the first time is kept, the transmitting power supply of the first transmitting light port is turned on again;
the transceiver is configured to send a first control message to a second device through the first sending optical port when the idle degree reaches a first threshold, where the first control message is used to trigger the second receiving optical port to enter a low power consumption state and keep a first time;
The first control message is a Pause Frame, and the reserved Padding field of the Pause Frame includes a first field and a second field, wherein the first field is used for indicating whether the Pause Frame is a control message for triggering to enter a low power consumption state, and the second field is used for carrying indication information of the first time.
11. A first device having a first transmit optical port coupled to a second receive optical port of a second device via an optical fiber, comprising: a processor, a memory and a program stored on the memory and executable on the processor, which when executed by the processor, implements the steps of the data transmission method according to any one of claims 1 to 6.
12. A second device having a second light receiving port connected to a first light transmitting port of a first device by an optical fiber, the second device comprising:
the control message receiving module is used for receiving a first control message sent by first equipment through a second receiving optical port, wherein the first control message is used for triggering the second receiving optical port to enter a low-power consumption state and keeping a first time;
The power consumption control module is used for closing the receiving power supply of the second receiving optical port according to the first control message, and switching on the receiving power supply of the second receiving optical port again after keeping the first time;
the first control message is a Pause Frame, and the reserved Padding field of the Pause Frame includes a first field and a second field, wherein the first field is used for indicating whether the Pause Frame is a control message for triggering to enter a low power consumption state, and the second field is used for carrying indication information of the first time.
13. A second device, the second receiving optical port of the second device being connected to the first transmitting optical port of the first device by an optical fiber, comprising a transceiver and a processor, wherein,
the transceiver is configured to receive, through a second receiving optical port, a first control message sent by a first device, where the first control message is used to trigger the second receiving optical port to enter a low power consumption state and keep a first time;
the processor is used for closing the receiving power supply of the second receiving optical port according to the first control message, and switching on the receiving power supply of the second receiving optical port again after keeping the first time;
The first control message is a Pause Frame, and the reserved Padding field of the Pause Frame includes a first field and a second field, wherein the first field is used for indicating whether the Pause Frame is a control message for triggering to enter a low power consumption state, and the second field is used for carrying indication information of the first time.
14. A second device having a second light receiving port connected to a first light transmitting port of a first device by an optical fiber, comprising: a processor, a memory and a program stored on the memory and executable on the processor, which when executed by the processor, implements the steps of the data transmission method according to any one of claims 7 to 8.
15. A computer-readable storage medium, on which a computer program is stored, which computer program, when being executed by a processor, implements the steps of the data transmission method according to any one of claims 1 to 8.
CN201911066319.3A 2019-11-04 2019-11-04 Data transmission method and device Active CN112788440B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911066319.3A CN112788440B (en) 2019-11-04 2019-11-04 Data transmission method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911066319.3A CN112788440B (en) 2019-11-04 2019-11-04 Data transmission method and device

Publications (2)

Publication Number Publication Date
CN112788440A CN112788440A (en) 2021-05-11
CN112788440B true CN112788440B (en) 2023-07-21

Family

ID=75747442

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911066319.3A Active CN112788440B (en) 2019-11-04 2019-11-04 Data transmission method and device

Country Status (1)

Country Link
CN (1) CN112788440B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0629927A (en) * 1992-07-06 1994-02-04 Hitachi Ltd Power-saving optical transmission system
CN101345597A (en) * 2008-08-12 2009-01-14 中兴通讯股份有限公司 Method and apparatus for implementing automatic laser cut-out of synchronization digital system equipment
CN103190095A (en) * 2011-10-27 2013-07-03 华为技术有限公司 Energy-saving method, device and system for optical communication
CN103227758A (en) * 2013-03-25 2013-07-31 深圳市三旺通信技术有限公司 Optical fiber Ethernet switch and control method
JP2014017568A (en) * 2012-07-06 2014-01-30 Nippon Telegr & Teleph Corp <Ntt> Sleep control method, optical communication system, and optical network terminating device
CN104301121A (en) * 2013-07-19 2015-01-21 中兴通讯股份有限公司 Control method, control device and optical transceiver
WO2016095111A1 (en) * 2014-12-16 2016-06-23 华为技术有限公司 Optical switching signal processing method and device
CN109309528A (en) * 2017-07-27 2019-02-05 阿里巴巴集团控股有限公司 State indication method, device and the optical module and test macro of optical module

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3544932B2 (en) * 2000-10-05 2004-07-21 Necエレクトロニクス株式会社 Electronic device and power control method thereof
KR101709785B1 (en) * 2010-03-31 2017-02-23 삼성전자주식회사 Method and apparatus for transmitting visibility frame according to sleep mode in visible light communication

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0629927A (en) * 1992-07-06 1994-02-04 Hitachi Ltd Power-saving optical transmission system
CN101345597A (en) * 2008-08-12 2009-01-14 中兴通讯股份有限公司 Method and apparatus for implementing automatic laser cut-out of synchronization digital system equipment
CN103190095A (en) * 2011-10-27 2013-07-03 华为技术有限公司 Energy-saving method, device and system for optical communication
JP2014017568A (en) * 2012-07-06 2014-01-30 Nippon Telegr & Teleph Corp <Ntt> Sleep control method, optical communication system, and optical network terminating device
CN103227758A (en) * 2013-03-25 2013-07-31 深圳市三旺通信技术有限公司 Optical fiber Ethernet switch and control method
CN104301121A (en) * 2013-07-19 2015-01-21 中兴通讯股份有限公司 Control method, control device and optical transceiver
WO2016095111A1 (en) * 2014-12-16 2016-06-23 华为技术有限公司 Optical switching signal processing method and device
CN109309528A (en) * 2017-07-27 2019-02-05 阿里巴巴集团控股有限公司 State indication method, device and the optical module and test macro of optical module

Also Published As

Publication number Publication date
CN112788440A (en) 2021-05-11

Similar Documents

Publication Publication Date Title
CN100405260C (en) Reduction of idle power expense in networked battery power supply apparatus
CN103282895B (en) Apparatus and method with High Data Rate serially-transmitted data
US9032227B2 (en) Wireless communication apparatus and power management method for the same
CN102577233A (en) Deep sleep mode management for a network switch
KR101355065B1 (en) Dynamic power management in a communications device
CN102339122B (en) Digital communication device capable of saving electricity, and electricity-saving control device and method thereof
US20050288070A1 (en) Power saving method in wireless LAN system for estimating at terminal station whether or not data destined thereto is buffered in base station
CN102204390A (en) Interim phy solution for lpi compatibility with legacy devices
CN105763338A (en) Wake-on-link
US20150244535A1 (en) Power over ethernet supervision
CN101977115B (en) Method and device for realizing power control over Ethernet
US20080219289A1 (en) 10GBase-T link speed arbitration for 30m transceivers
US9529419B2 (en) Methods and apparatuses for switch power down
CN112788440B (en) Data transmission method and device
CN109428728A (en) Autosensing method and apparatus
CN105807886A (en) Chip arousing system, chip arousing method and mobile terminal
CN103428682A (en) Auxiliary information sending method, user equipment, network side configuration method and network side
US9100336B2 (en) Method for managing a switch chip port, main control board, switch board, and system
CN111092739B (en) Dynamic adjusting method for power consumption of switch
CN103973508A (en) Node equipment and method for same entering and exiting energy-saving mode
JP2000261515A (en) Device connectable to network
WO2013074081A1 (en) Link status buffer flow control management
US20120063468A1 (en) Electronic device with network connection functionality and method applied to the electronic device
CN102123067A (en) Digital subscriber line (DSL) local terminal equipment and energy saving method thereof
CN103795550A (en) Method and apparatus for supplying power

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant