Method for determining operation state, and communication apparatus and storage medium
By adjusting the link bandwidth and operating status of the communication device in the communication system and dynamically adjusting the power consumption of the link interface, the problem of high power consumption of the communication device in low traffic scenarios is solved, and more efficient energy saving and rapid response capabilities are achieved. .
Patent Information
- Application Number
- PCT/CN2024/091130
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-04-24
- Filing Date
- 2024-05-06
- Publication Date
- 2024-10-31
AI Technical Summary
In communication systems, the power consumption of the link interface of the communication device remains high in low-traffic scenarios, resulting in high overall power consumption that is difficult to effectively reduce with existing technologies.
By adjusting the operating status of the MAC layer and physical layer related components of the communication device, the link bandwidth is dynamically adjusted to implement energy-saving strategies, including sleeping channels or reducing bandwidth in low power consumption states, and waking up quickly when necessary to adapt to traffic changes.
It effectively reduces the power consumption of communication devices, especially in low-traffic scenarios, improves the dynamic energy-saving capabilities of link interfaces, and supports rapid response to emergencies.
Smart Images

Figure CN2024091130_31102024_PF_FP_ABST
Abstract
Description
Method for determining operating status, communication device and storage medium
[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office on April 24, 2023, with application number 202310472263.1 and invention name “Method, communication device and storage medium for determining operating status”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The embodiments of the present application relate to the field of optical communication technology, and in particular to a method for determining an operating status, a communication device, and a storage medium. Background Art
[0003] In a communication system, different communication devices can be interconnected via optical fibers to transmit data. In scenarios where communication devices are interconnected via optical fibers, how to set the operating states of the communication devices to reduce their power consumption is a current research hotspot.
[0004] Summary of the Invention
[0005] The present invention provides a method for determining an operating state, a communication device, and a storage medium, which can reduce the power consumption of a communication device by reducing the link bandwidth during normal communication. The technical solution is as follows:
[0006] In a first aspect, a method for determining an operating status is provided, which is applied to a communication system, wherein the communication system includes a first communication device and a second communication device, the first communication device includes a first sending device, the second communication device includes a second receiving device, the first sending device and the second receiving device are interconnected by an optical fiber, and both the first sending device and the second receiving device are used to perform media access control MAC layer and physical layer processing on data.
[0007] In this method, in response to the current time being the starting time of the first energy-saving time period, the first communication device places the first sending device into a first operating state based on a first energy-saving strategy. When the first sending device is in the first operating state, the link bandwidth between the first sending device and the second receiving device is the first link bandwidth. The first energy-saving strategy includes the first energy-saving time period and the first link bandwidth.
[0008] In the embodiments of the present application, the operating states of the MAC layer and physical layer-related components of the first communication device are set to implement an energy-saving strategy by adjusting the link bandwidth, thereby reducing the power consumption of the first communication device. Furthermore, setting the operating states of the MAC layer and physical layer-related components of the first communication device can achieve energy savings in both the MAC layer and the physical layer of the first communication device, resulting in more significant energy-saving effects.
[0009] Based on the method provided in the first aspect, in one possible implementation, before the first communication device switches the first sending device from the current operating state to the first operating state, the first communication device obtains first operating parameter adjustment information corresponding to the first link bandwidth; and the first communication device sends the first energy-saving time period and the first operating parameter adjustment information to the second communication device.
[0010] After obtaining the first energy-saving policy for the first transmitting device, the first communication device may also obtain first operating parameter adjustment information corresponding to the first link bandwidth. The first energy-saving time period and the first operating parameter adjustment information are sent to the second communication device, so that the second communication device also operates according to the first energy-saving policy during the first energy-saving time period, thereby reducing power consumption of the second communication device.
[0011] Based on the method provided in the first aspect, in a possible implementation, the first sending device includes multiple channels. In this scenario, the first operating parameter adjustment information includes dormant channel information.
[0012] For example, the dormant channel information indicates a dormant channel among the plurality of channels in the first operating state.
[0013] The energy-saving strategy provided in the embodiment of the present application can be implemented by dormant one or more channels of the multiple channels. This energy-saving strategy does not require complicated operations and is therefore easy to implement.
[0014] Based on the method provided in the first aspect, in one possible implementation method, the first communication device sends the first energy-saving time period and the first operating parameter adjustment information to the second communication device by: generating an energy-saving negotiation message, the energy-saving negotiation message carrying the first energy-saving time period and the first operating parameter adjustment information; and sending the energy-saving negotiation message to the second receiving device.
[0015] The above-described method can be referred to as an out-of-band method. This method can be understood as the first communication device's processor independently generating an energy-saving negotiation message including the first energy-saving time period and the first operating parameter adjustment information. This energy-saving negotiation message is distinct from the service messages normally transmitted by the first transmitting device, hence the term "out-of-band method." Transmitting the first energy-saving time period and the first operating parameter adjustment information out-of-band allows for greater flexibility in the link bandwidth negotiation process between the first and second communication devices.
[0016] Based on the method provided in the first aspect, in one possible implementation, the implementation method of the first communication device sending the first energy-saving time period and the first operating parameter adjustment information to the second communication device can be: the first sending device receives the Ethernet frame to be sent; the first sending device performs MAC layer and physical layer processing on the Ethernet frame, and adds the first energy-saving time period and the first operating parameter adjustment information to the reference field of the processed message; the first sending device sends the processed message to the second receiving device.
[0017] The above-described method can be referred to as an in-band method. This method can be understood as the first transmitting device of the first communication device adding the first energy-saving time period and the first operating parameter adjustment information to the message during MAC layer or physical layer processing. This is equivalent to carrying the first energy-saving time period and the first operating parameter adjustment information in the service message normally sent by the first transmitting device, hence the term in-band method. By transmitting the first energy-saving time period and the first operating parameter adjustment information in-band, the process of link bandwidth negotiation between the first communication device and the second communication device can be prevented from affecting normal service between the two devices.
[0018] Based on the method provided in the first aspect, in a possible implementation, in this method, before the first communication device sets the first sending device to the first operating state, the first communication device caches the message to be sent by the first sending device; after the first communication device sets the first sending device to the first operating state, the first communication device sends the cached message through the first sending device.
[0019] By caching the messages to be sent by the first sending device, it is possible to avoid the impact of switching the operating state on the normal service of the first sending device.
[0020] Based on the method provided in the first aspect, in one possible implementation, the first communication device may set the first transmitting device to the first operating state by adjusting, based on the first link bandwidth, a first type of operating parameter of a first module included in the first transmitting device. The first module includes a first sub-MAC chip, a first sub-serializer / deserializer (SerDes), and a first sub-optical module, and the first type of operating parameter includes parameters related to power consumption among the operating parameters of the first module.
[0021] In an embodiment of the present application, an energy-saving strategy can be implemented in three dimensions, namely, MAC chip, SerDes, and optical module, rather than just implementing the energy-saving strategy for the optical module. This can significantly reduce the power consumption of the first communication device, thereby achieving the purpose of energy saving.
[0022] Based on the method provided in the first aspect, in one possible implementation, after the first communication device places the first sending device in the first operating state, the first communication device may also switch the first sending device from the first operating state to the second operating state, wherein, when the first sending device is in the second operating state, the link bandwidth between the first sending device and the second receiving device is the second link bandwidth, and the second link bandwidth is greater than the first link bandwidth.
[0023] That is, after the first transmitting device enters the low power consumption state, the first communication device may further wake up the first transmitting device from the low power consumption state to a non-low power consumption state.
[0024] Based on the method provided in the first aspect, in a possible implementation, in this method, when any one of the following conditions is met, the first communication device switches the first sending device from the first operating state to the second operating state: the current time reaches the end time point of the first energy-saving time period; or, the amount of messages cached by the first communication device at the current time exceeds a reference number; or, the first communication device detects that a second link, which is a mutual protection link with the first link, has a fault at the current time, wherein the first link is a link between the first sending device and the second receiving device.
[0025] Through the above settings, the first communication device supports quickly waking up the first sending device in various scenarios, avoiding serious impact on the normal business of the first sending device in emergency situations.
[0026] Based on the method provided in the first aspect, in one possible implementation, the first transmitting device includes a first sub-optical module. In this scenario, in the method, the first communication device obtains a target parameter value of a second type of operating parameter of the first sub-optical module, where the second type of operating parameter includes parameters related to operating indicators among the operating parameters of the first sub-optical module, and the target parameter value matches the environmental conditions when the first transmitting device is switched from the first operating state to the second operating state; the first communication device sets the second type of operating parameter of the first sub-optical module according to the target parameter value.
[0027] In the embodiments of the present application, certain operating parameters of the first optical sub-module in the first transmitting device need to be adaptively adjusted to match the current environmental conditions to maximize the operating performance of the first optical sub-module. Environmental conditions include, for example, ambient temperature, device temperature, and power supply voltage. These operating parameters may be referred to as second-category operating parameters.
[0028] Considering that the environment in which the first transmitting device is located when the first transmitting device is awakened may be significantly different from the environment in which the first transmitting device is located when the first transmitting device is dormant, the parameter values required for the second type of operating parameters of the first sub-optical module when the first transmitting device is awakened also change significantly accordingly. Based on this, a target parameter value for the second type of operating parameters of the first sub-optical module can be determined to match the environmental conditions at the time of awakening.
[0029] Based on the method provided in the first aspect, in one possible implementation method, the first communication device obtains the target parameter value of the second type of operating parameter of the first sub-optical module as follows: the first communication device obtains a target mapping relationship, and the target mapping relationship indicates the mapping relationship between the parameter value of the second type of operating parameter and the environmental conditions when the operating indicators are met; the first communication device determines the target parameter value of the second type of operating parameter based on the target mapping relationship and the environmental conditions when the first sending device is switched from the first operating state to the second operating state.
[0030] The target mapping relationship can be obtained through online learning or offline learning. By predetermining the target mapping relationship, the efficiency of waking up the first sending device can be improved.
[0031] Based on the method provided in the first aspect, in one possible implementation, before the first communication device obtains the target parameter value of the second type of operating parameter of the first sub-optical module, the first communication device may further, in response to a parameter update instruction, adaptively adjust the parameter value of the second type of operating parameter of the first sub-optical module based on current environmental conditions and operating indicators, and store the adjusted parameter value of the second type of operating parameter of the first sub-optical module. In this scenario, the target parameter value is the most recently stored parameter value of the second type of operating parameter.
[0032] By adaptively updating the stored parameter values of the second type of operating parameters through the above-mentioned active wake-up method, it can be ensured that the parameter values of the second type of operating parameters stored by the first communication device when the first sending device is in the first operating state basically match the latest environmental conditions, so as to support fast sleep wake-up actions that may occur at any time.
[0033] Based on the method provided in the first aspect, in one possible implementation, the first energy-saving strategy is related to traffic statistical information before the current time and within a reference time length from the current time, and the traffic statistical information includes one or more of the average traffic, burst traffic, delay information and packet loss information of the first communication device before the current time and within a reference time length from the current time.
[0034] Through the above implementation method, an energy-saving strategy for a subsequent time period can be formulated based on the traffic statistical information of the first sending device in the most recent period before the current time, thereby providing a solution for adaptively adjusting the energy-saving strategy for the first sending device based on the most recent traffic statistical information.
[0035] Based on the method provided in the first aspect, in one possible implementation, the first communication device further includes a first receiving device, and the second communication device further includes a second transmitting device, and the second transmitting device and the first receiving device are interconnected via an optical fiber. In this scenario, in this method, the first communication device receives second operating parameter adjustment information sent by the second communication device; based on the second operating parameter adjustment information, the first communication device sets the first receiving device to a third operating state. When the first receiving device is in the third operating state, the link bandwidth between the first receiving device and the second transmitting device is the third link bandwidth.
[0036] In the embodiment of the present application, the energy-saving strategy of the transceiver link between the first communication device and the second communication device may be asymmetric, thereby improving the flexibility of energy saving.
[0037] In a second aspect, a communication device is provided, wherein the communication device has the function of implementing the method for determining the operating status in the first aspect. The communication device includes at least one module, and the at least one module is used to implement the method for determining the operating status provided in the first aspect.
[0038] In a third aspect, a communication device is provided, wherein the structure of the communication device includes a processor and a memory, the memory being used to store a program that supports the communication device in executing the method for determining the operating status provided in the first aspect, and storing data related to implementing the method for determining the operating status provided in the first aspect. The processor is configured to execute the program stored in the memory. The operating device of the storage device may also include a communication bus, which is used to establish a connection between the processor and the memory.
[0039] In a fourth aspect, a computer-readable storage medium is provided, wherein instructions are stored in the computer-readable storage medium, which, when executed on a computer, enables the computer to execute the method for determining the operating status described in the first aspect.
[0040] In a fifth aspect, a computer program product comprising instructions is provided, which, when executed on a computer, enables the computer to execute the method for determining the operating status described in the first aspect.
[0041] The technical effects obtained in the above-mentioned second, third, fourth and fifth aspects are similar to those obtained by the corresponding technical means in the first aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] FIG1 is a schematic diagram of the architecture of a communication system provided by an embodiment of the application;
[0043] FIG2 is a schematic diagram of the internal structure of an optical module provided in an embodiment of the present application;
[0044] FIG3 is a schematic diagram of the architecture of another communication system provided by an embodiment of the application;
[0045] FIG4 is a flow chart of a method for determining an operating state provided in an embodiment of the present application;
[0046] FIG5 is a schematic diagram showing a comparison of channel states before and after a first transmitting device and a second receiving device switch operating states, provided in an embodiment of the present application;
[0047] FIG6 is a schematic diagram of a format of a TCP message provided in an embodiment of the present application;
[0048] FIG7 is a schematic diagram of a UDP message format provided in an embodiment of the present application;
[0049] FIG8 is a schematic diagram of a process of caching messages when switching operating states according to an embodiment of the present application;
[0050] FIG9 is a flow chart of another method for determining an operating state provided in an embodiment of the present application;
[0051] FIG10 is a schematic diagram of a process for waking up a first sending device according to an embodiment of the present application;
[0052] FIG11 is a schematic diagram of another process of waking up a first sending device according to an embodiment of the present application;
[0053] FIG12 is a schematic diagram of another process of waking up a first sending device according to an embodiment of the present application;
[0054] FIG13 is a schematic diagram of another energy-saving process provided by an embodiment of the present application;
[0055] FIG14 is a schematic structural diagram of a first communication device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0056] In order to make the objectives, technical solutions and advantages of the embodiments of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0057] It should be understood that the "plurality" mentioned herein refers to two or more. In the description of this application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in this article is merely a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in order to facilitate the clear description of the technical solutions of the embodiments of the present application, in the embodiments of the present application, words such as "first" and "second" are used to distinguish between identical or similar items with substantially the same functions and effects. Those skilled in the art will understand that words such as "first" and "second" do not limit the quantity and execution order, and words such as "first" and "second" do not necessarily limit them to be different.
[0058] Before explaining the embodiments of the present application in detail, the application scenarios of the embodiments of the present application are first introduced.
[0059] Currently, different communication devices in a communication system can be interconnected via optical fiber to improve data transmission efficiency. In scenarios where communication devices are interconnected via optical fiber, to ensure smooth service delivery, link interfaces within the communication devices, such as optical modules, typically operate within rated parameters. Consequently, the power consumption of the link interfaces is also rated. This results in the power consumption of the link interfaces typically approaching 100% of the rated power consumption, regardless of the traffic flow of the communication devices, resulting in high power consumption for the communication devices.
[0060] Based on this, an embodiment of the present application provides a method for determining an operating status, the purpose of which is to design an energy-saving strategy for a link interface of a communication device to reduce the power consumption of the communication device.
[0061] The architecture of the communication system involved in the embodiments of the present application is explained below.
[0062] Figure 1 is a schematic diagram of the architecture of a communication system provided in an embodiment of the application. As shown in Figure 1, the communication system includes a first communication device and a second communication device. The first communication device includes a first media access control (MAC) chip, a first serializer / deserializer (SerDes) and a first optical module, and the second communication device includes a second MAC chip, a second SerDes and a second optical module. The first optical module and the second optical module are interconnected by optical fiber to achieve data transmission between the first communication device and the second communication device. The first MAC chip in Figure 1 takes 100 Gigabit Ethernet (GbE) as an example, and can also be a MAC chip of other rates, such as 200GbE, 400GbE, 800GbE, and 16TbE.
[0063] The first optical module includes a first transmitter and a first receiver, and the second optical module includes a second transmitter and a second receiver. The first transmitter and the second receiver are interconnected via a first optical fiber, and the second transmitter and the first receiver are interconnected via a second optical fiber. The first optical fiber and the second optical fiber can be multiplexed on the same optical fiber or can be multiple independent optical fibers.
[0064] The functions of the components in the first communication device and the second communication device are explained below.
[0065] After receiving an Internet Protocol (IP) data packet, the first MAC chip processes the IP data packet to generate a data frame. The data frame includes the destination MAC address, source MAC address, and the protocol type and checksum information contained in the IP data packet. This process can be referred to as MAC layer processing of the data to be transmitted. These data frames are then transmitted to the first optical module via the first SerDes.
[0066] The first SerDes is used to provide an interface between the first MAC chip and the first optical module. When the first optical module receives a data frame transmitted by the first SerDes, it encodes the data frame and performs digital-to-analog conversion on the data frame to send the data frame to the second optical module via an optical signal. This process can be called physical layer processing of the data to be transmitted.
[0067] Upon receiving the optical signal, the second optical module performs analog-to-digital conversion and decodes it to obtain a data frame. This process can be referred to as physical layer processing of the received data. The second optical module transmits the decoded data frame to the second MAC chip via the second SerDes. Upon receiving the data frame, the second MAC chip verifies the data frame. If verification passes, it removes the frame header and trailer to obtain an IP data packet. This process can be referred to as MAC layer processing of the received data. The second MAC chip sends the IP data packet to the upper layer.
[0068] The above process is used to illustrate how the first communication device sends data to the second communication device. The process of the second communication device sending data to the first communication device can also be parameterized as above, which will not be repeated here.
[0069] In addition, the first optical module and the second optical module can be modules independent of the MAC chip. Alternatively, they can be integrated on a single chip with the MAC chip and the SerDes. For example, the optical module and the SerDes can be integrated on the MAC chip, or the optical module, the SerDes, and the MAC chip can be integrated on the processor chip of the communication device. In other words, the communication device provided in the embodiments of the present application can support light output through independent optical modules or directly output from the chip.
[0070] In addition, the four connecting lines between the first and second optical modules in Figure 1 do not represent four optical fibers between the first and second optical modules. Instead, they represent that the first and second optical modules each include four channels for transmitting data through these four channels. These four channels can be multiplexed on a single optical fiber or implemented separately through four optical fibers. Furthermore, the number of channels between the first and second optical modules can also include other numbers, such as 2, 8, or 16 channels.
[0071] To help understand the role of channels, the following explains the internal architecture of the optical module.
[0072] Figure 2 is a schematic diagram of the internal structure of an optical module provided in an embodiment of the present application. Figure 2 illustrates an optical module including four channels as an example. Optionally, the optical module provided in an embodiment of the present application may include more or fewer channels.
[0073] As shown in Figure 2, the optical module includes components related to transmitting data and components related to receiving data. The components related to transmitting data include a transmit clock and data recovery unit (CDR), a laser driver circuit, a laser, and a multiplexer (MUX). The components related to receiving data include a receive CDR, a limiting amplifier (LA), a transimpedance amplifier (TIA), and a demultiplexer (DEMUX).
[0074] As shown in Figure 2, the transmitting CDR receives four channels of data sent by the MAC chip via the SerDes. The transmitting CDR is used to recover the clock and reset the data of the input signal of each channel. In some embodiments, the transmitting CDR can also compensate for signal loss in the wiring and connectors. The transmitting CDR processes the signal of each channel and sends it to the laser driver circuit. The laser driver circuit is used to convert the input signal of each channel into a corresponding modulation signal to drive the laser to emit light. The laser sends the optical signal of each channel to the MUX. The MUX is used to couple the optical signals of the four channels together to transmit the data of the four channels through the same optical fiber. For example, as shown in Figure 2, the optical fiber can be a single mode fiber (SMF). Optionally, the optical fiber can also be other types of optical fibers.
[0075] Furthermore, as shown in Figure 2, when the SMF transmits the optical signal to the optical module's DEMUX, the DEMUX decouples the received optical signal to obtain four channels of input signals, which are then sent to the TIA. The TIA converts each channel's input signal into an electrical signal and sends the converted electrical signal to the LA. The LA converts the received electrical signal into a signal of equal amplitude and sends the processed electrical signal for each channel to the receive CDR. The receive CDR performs clock recovery on each channel's electrical signal and then sends the processed signal for each channel to the MAC chip. The LA can be integrated into either the TIA or the receive CDR.
[0076] The optical module shown in FIG2 is used to illustrate the working principle of the optical module. Optionally, the optical module involved in the embodiment of the present application may include more or fewer components, which are not illustrated one by one here.
[0077] During communication between a first communication device and a second communication device, the majority of the first communication device's power consumption is concentrated on link interfaces such as the first MAC chip, the first SerDes, and the first optical module. However, to ensure normal service during operation, the power consumption of the link interfaces of the communication devices remains at the rated power consumption, which has little to do with the traffic flow of the communication devices. This results in higher power consumption of the first communication device in lower traffic scenarios.
[0078] For example, traffic on existing networks exhibits tidal characteristics. Average daytime traffic is less than 40% of the rated bandwidth, while nighttime traffic is typically very low, falling within 20% of the rated bandwidth or even below 10%. In this scenario, even if the traffic on a first communication device is less than 10% of the rated bandwidth of the link between the first and second communication devices, the power consumption of the link interface, such as the optical module on the first communication device, still operates at 100% of the rated power consumption, resulting in higher power consumption for the first communication device.
[0079] Based on this, in an embodiment of the present application, the traffic characteristics of the entrance and exit of the first communication device can be learned, a first energy-saving strategy can be formulated based on the learned traffic characteristics, and the operating status of the components related to the first transmitter in the first communication device and the operating status of the components related to the second receiver in the second communication device can be dynamically adjusted based on the first energy-saving strategy to achieve dynamic adjustment of the link bandwidth of the link between the first transmitter and the second receiver, thereby achieving dynamic adjustment of the power consumption of the link interface on the first communication device and the second communication device.
[0080] That is, in the embodiment of the present application, dynamic energy-saving design can be performed under tidal flow for the power consumption of the link interface of the communication device, so as to reduce the power consumption of the link interface of the communication device under lower flow.
[0081] Optionally, the traffic characteristics of the entrance and exit of the second communication device can also be learned, a second energy-saving strategy can be formulated based on the learned traffic characteristics, and the operating status of the components related to the second transmitter in the second communication device and the operating status of the components related to the first receiver in the first communication device can be dynamically adjusted based on the second energy-saving strategy to achieve dynamic adjustment of the link bandwidth of the link between the second transmitter and the first receiver, thereby achieving dynamic adjustment of the power consumption of the link interface on the first communication device and the second communication device.
[0082] The first energy-saving strategy and the second energy-saving strategy may be different. That is, the energy-saving strategies between the first communication device and the second communication device may be asymmetric. For example, under an asymmetric energy-saving strategy, the link bandwidth between the first transmitter of the first communication device and the second receiver of the second communication device is the first link bandwidth, and the link bandwidth between the first receiver of the first communication device and the second transmitter of the second communication device is the third link bandwidth. The first link bandwidth is 50% of the rated bandwidth, and the third link bandwidth is 25% of the rated bandwidth.
[0083] For ease of understanding, the communication system shown in Figure 1 is integrated into the communication system shown in Figure 3. The communication system shown in Figure 3 is used as an example for description below.
[0084] As shown in Figure 3, the communication system includes a first communication device and a second communication device. The first communication device includes a first transmitting device and a first receiving device, and the second communication device includes a second transmitting device and a second receiving device. The first transmitting device and the second receiving device are interconnected via an optical fiber, and the first receiving device and the second transmitting device are interconnected via an optical fiber. These two optical fibers can be multiplexed onto the same optical fiber.
[0085] In the embodiment of the present application, the first sending device and the first receiving device, as well as the second sending device and the second receiving device all refer to related devices in a communication device for performing MAC layer and physical layer processing on data.
[0086] By way of example, the first transmitting device includes a first sub-MAC chip, a first sub-SerDes, and a first sub-optical module. The first sub-MAC chip can be understood as a component of the first MAC chip shown in FIG1 that is responsible for processing transmitted data. The first sub-SerDes can be understood as a component of the first SerDes shown in FIG1 that is responsible for processing transmitted data. The first sub-optical module can be understood as a component of the first optical module shown in FIG1 that is responsible for processing transmitted data, such as a first transmitter.
[0087] The second receiving device includes a second sub-MAC chip, a second sub-SerDes, and a second sub-optical module. The second sub-MAC chip can be understood as, for example, the component of the second MAC chip shown in FIG1 that is responsible for processing received data. The second sub-SerDes can be understood as, for example, the component of the second SerDes shown in FIG1 that is responsible for processing received data. The second sub-optical module can be understood as, for example, the component of the second optical module shown in FIG1 that is responsible for processing received data, such as a second receiver.
[0088] The relevant explanations of the first receiving device and the second sending device can be referred to the second receiving device and the first sending device, which will not be repeated here.
[0089] After learning the traffic characteristics of the ingress and egress of the first communication device and formulating a first energy-saving strategy based on the learned traffic characteristics, the operating states of the first transmitting device and the second receiving device can be dynamically adjusted based on the first energy-saving strategy to reduce the link bandwidth of the link between the first transmitting device and the second receiving device. For example, the link bandwidth of the link between the first transmitting device and the second receiving device can be reduced to the first link bandwidth.
[0090] After learning the traffic characteristics of the ingress and egress of the second communication device and formulating a second energy-saving strategy based on the learned traffic characteristics, the operating states of the second transmitting device and the first receiving device can be dynamically adjusted based on the second energy-saving strategy to reduce the link bandwidth of the link between the second transmitting device and the first receiving device. For example, the link bandwidth of the link between the second transmitting device and the first receiving device can be reduced to the third link bandwidth.
[0091] In addition, as shown in FIG3 , the first communication device and the second communication device further include a processor. The processor is configured to process a message to be sent or a message received at the network layer. For example, the processor may be a processor of a switch.
[0092] The communication systems shown in Figures 1 and 3 can be any communication system interconnected by optical fiber, such as a campus optical network or a computing cluster optical network, and are not further illustrated here. For example, in a campus optical network, the first communication device can be a core switch, and the second communication device can be a convergence switch, or the first communication device can be a convergence switch, and the second communication device can be an access switch. For another example, in a computing cluster optical network, the first communication device and the second communication device can be any two computing centers in the computing cluster, which are interconnected by optical fiber for communication.
[0093] The method provided in the embodiments of the present application is explained in detail below.
[0094] Figure 4 is a flow chart of a method for determining an operating state provided by an embodiment of the present application. As shown in Figure 4, the method includes the following steps.
[0095] Step 401: In response to the current time being the start time of a first energy-saving time period, the first communication device sets the first transmitting device to a first operating state based on a first energy-saving policy. When the first transmitting device is in the first operating state, the link bandwidth between the first transmitting device and the second receiving device is the first link bandwidth, and the first energy-saving policy includes the first energy-saving time period and the first link bandwidth.
[0096] The first communication device may obtain a first energy-saving strategy in advance, where the first energy-saving strategy includes a first energy-saving time period and a first link bandwidth, so as to reduce the power consumption of the first sending device through step 401 .
[0097] In some embodiments, the first energy-saving strategy is related to traffic statistics information before the current time and within a reference time period from the current time, wherein the traffic statistics information includes one or more of the average traffic, burst traffic, delay information, and packet loss information of the first communication device before the current time and within a reference time period from the current time.
[0098] Based on this, the first communication device may acquire the first energy-saving strategy in such a manner that the first communication device determines the first energy-saving strategy based on traffic statistics information before the current time and within a reference time period from the current time.
[0099] The first energy-saving time period may, for example, be a time period after the current time. In this scenario, the first communication device may formulate an energy-saving strategy for a subsequent time period based on traffic statistics of the first sending device in a recent period before the current time, thereby providing a solution for adaptively adjusting the energy-saving strategy for the first sending device based on the most recent traffic statistics.
[0100] The reference time period may be one week, one month, or one quarter, etc.
[0101] In current communication networks, there are usually clear patterns in weekday traffic from Monday to Friday and weekend traffic on Saturdays and Sundays. For example, communication devices in application networks in residential areas have low weekday traffic and high weekend traffic; while communication devices in application networks in work areas have high weekday traffic and low weekend traffic. At the same time, within 24 hours a day, the difference in traffic volume between busy daytime hours and idle nighttime hours can also be seen. In addition, for different geographical areas and network node levels, the traffic patterns can be further refined to 12 hours, or even finer 4 hours. Therefore, in some embodiments, the reference time can be one week, that is, 7*24 hours. In this scenario, the first communication device learns the traffic statistics of the past week (7*24 hours) and formulates an energy-saving strategy for a certain time period within the next week based on the learned traffic statistics.
[0102] In addition, the average traffic of the first communication device before the current time and within the reference time length from the current time may, for example, include the average traffic of the first sending device in each time period of multiple time periods within the reference time length. The average traffic may include the average traffic at the entrance of the first sending device, and may also include the average traffic at the exit of the first sending device.
[0103] The sudden traffic of the first communication device before the current time and within the reference time period from the current time may illustratively include a burst of traffic at the inlet of the first sending device in each of a plurality of time periods within the reference time period.
[0104] The delay information of the first communication device before the current time and within a reference time length from the current time may, for example, include the delay information of the first communication device in each of multiple time periods within the reference time length. The delay information may include the time required for the message to be transmitted from the entrance of the first sending device to the exit of the first sending device.
[0105] The packet loss information of the first communication device before the current time and within a reference time length from the current time may, for example, include packet loss information of the first communication device in each of multiple time periods within the reference time length. The packet loss information may include the number of messages sent by the first sending device to the second receiving device but failed to be successfully received by the second receiving device.
[0106] The first communication device determines the first energy-saving strategy based on traffic statistics information before the current time and within a reference time period from the current time, which can be implemented, for example, by a neural network model. In this scenario, the neural network model can be pre-trained so that the energy-saving strategy output by the neural network model meets the requirements.
[0107] For example, if the average traffic of the first sending device in a certain time period before the current time and within a reference time period from the current time is low, there is essentially no burst traffic or the burst traffic is very small, and the packet loss and latency conditions in this time period also meet the requirements, then this time period can be used as the first energy-saving time period. Based on the average traffic and burst traffic of the first sending device in this time period, a link bandwidth that just meets the requirements of the first sending device is determined and used as the first link bandwidth.
[0108] The first link bandwidth may be a specific bandwidth value or a ratio of the rated bandwidth of the link between the first transmitting device and the second receiving device. For example, if the rated bandwidth of the link between the first transmitting device and the second receiving device is 100GbE, the first link bandwidth may be 50GbE or 25GbE, etc.
[0109] Optionally, in an embodiment of the present application, the first energy-saving strategy may further include a delay strategy and / or a packet loss strategy. The delay strategy indicates an upper limit on the delay acceptable to the first communication device. The packet loss strategy indicates an upper limit on the packet loss rate acceptable to the first communication device. The first communication device may subsequently wake up the first transmitting device in a low-power state based on the delay strategy and the packet loss strategy. The relevant implementation methods will be described in detail later and will not be described in detail here.
[0110] In addition, in scenarios with both primary and backup links, if the link between the first transmitting device and the second receiving device is the backup link, the first communication device can also shut down the entire first transmitting device during the first energy-saving period, that is, set the bandwidth of the first link to 0. This allows traffic to be transmitted over the primary link during the first energy-saving period, while shutting down the backup link. Compared to simultaneously adjusting the link bandwidth of both the primary and backup links to a certain percentage of the rated bandwidth, this approach can further reduce the overall power consumption of the communication system.
[0111] Based on this, the first communication device may determine, based on traffic statistics information, an implementation manner of the first energy-saving strategy: if the traffic statistics information indicates that the traffic sent by the first sending device to the second receiving device does not exceed half of the rated bandwidth, where the rated bandwidth is the rated bandwidth of the link between the first sending device and the second receiving device, and the link between the first sending device and the second receiving device is a backup link among the multiple links corresponding to the first communication device, then determine the first link bandwidth to be 0. The multiple links corresponding to the first communication device are used to forward traffic with the same destination address.
[0112] In addition, the above implementation is described using the example of a first communication device automatically determining a first energy-saving strategy based on learned traffic statistics. Alternatively, a technician can determine the first energy-saving strategy based on experience and reference traffic statistics within a reference time period before the current time, and write the first energy-saving strategy into the first communication device. This will not be described in detail here.
[0113] In addition, the above description uses the example of a first energy-saving strategy including one energy-saving time period and one link bandwidth. Optionally, the first energy-saving strategy may also include multiple energy-saving time periods and a link bandwidth corresponding to each energy-saving time period, so that the link bandwidth between the first transmitting device and the second receiving device is subsequently reduced to the link bandwidth corresponding to the energy-saving time period during each energy-saving time period.
[0114] After the first communication device obtains the first energy-saving policy through any of the above methods, it can set the operating state of the first transmitting device based on the first energy-saving policy in step 401 to reduce the power consumption of the first transmitting device. For ease of understanding, the state of the first transmitting device before entering the first operating state is referred to as the current operating state. Step 401 can achieve the switching of the first transmitting device from the current operating state to the first operating state, thereby reducing the link bandwidth between the first transmitting device and the second receiving device from the current link bandwidth to the first link bandwidth.
[0115] Since the first transmitting device is used to perform MAC layer and physical layer processing on data, in the embodiment of the present application, the operating state of the MAC layer and physical layer related components of the first communication device can be set to implement an energy-saving strategy by adjusting the link bandwidth, thereby reducing the power consumption of the first communication device. The first operating state can also be referred to as a low-power state or low-power mode.
[0116] In some embodiments, the first communication device may set the first sending device to a first operating state in an implementation manner as follows: based on the first link bandwidth, the first communication device adjusts the first type of operating parameters of the first module included in the first sending device; wherein the first includes a first sub-MAC chip, a first sub-serializer deserializer SerDes and a first sub-optical module, and the first type of operating parameters include parameters related to power consumption among the operating parameters of the first module.
[0117] For the relevant explanations about the first sub-MAC chip, the first sub-SerDes and the first sub-optical module, please refer to the embodiment shown in FIG3 above, which will not be repeated here.
[0118] The first communication device adjusts a first type of operating parameter of a first module included in the first sending device so that the traffic sent by the first sending device to the second receiving device meets the first link bandwidth.
[0119] For example, in a scenario where the first sending device includes multiple channels, the first communication device adjusts the first type of operating parameters of the first module included in the first sending device to achieve a sleep state for several channels in the first sending device, thereby achieving that the traffic sent by the first sending device to the second receiving device meets the first link bandwidth.
[0120] In this scenario, for the first sub-MAC chip, adjusting the first type of operating parameters may, for example, include frequency reduction, voltage reduction, dynamic data bit width adjustment, clock gating, and power gating. For the first sub-SerDes, adjusting the first type of operating parameters may, for example, include suspending several interfaces between the first sub-MAC chip and the first sub-optical module. For the first sub-optical module, adjusting the first type of operating parameters may, for example, include adjusting digital circuits and analog circuits in the first sub-optical module.
[0121] That is, in the embodiment of the present application, the energy-saving strategy can be implemented in three dimensions, namely, the MAC chip, SerDes, and optical module, rather than just implementing the energy-saving strategy for the optical module. This can significantly reduce the power consumption of the first communication device, thereby achieving the purpose of energy saving.
[0122] Optionally, when the first communication device implements the energy-saving strategy through other methods such as non-dormant channels, the above implementation methods can also be referred to, and examples are not given here one by one.
[0123] In addition, after obtaining the first energy-saving policy for the first transmitting device, the first communication device may further determine first operating parameter adjustment information based on the first link bandwidth, the first operating parameter adjustment information indicating how to adjust operating parameters so that the link bandwidth between the first transmitting device and the second receiving device is the first link bandwidth. The first energy-saving time period and the first operating parameter adjustment information are sent to the second communication device, so that the second communication device also operates according to the first energy-saving policy during the first energy-saving time period, thereby reducing power consumption of the second communication device.
[0124] Based on this, before the first communication device sets the first sending device to the first operating state, the first communication device can also obtain first operating parameter adjustment information corresponding to the first link bandwidth; the first communication device sends the first energy-saving time period and the first operating parameter adjustment information to the second communication device to instruct the second communication device to set the second receiving device to the first operating state in response to the current time being the starting time of the first energy-saving time period.
[0125] Since the purpose of switching the first transmitting device and the second receiving device from the current operating state to the first operating state in the embodiment of the present application is to reduce the link bandwidth between the first transmitting device and the second receiving device to the first link bandwidth, the process of the first communication device sending the first operating parameter adjustment information and the first energy-saving time period to the second communication device can be referred to as a link bandwidth negotiation process. The process of switching the first transmitting device and the second receiving device from the current operating state to the first operating state can be referred to as a link re-establishment process.
[0126] In some embodiments, the first transmitting device includes multiple channels, and accordingly, the first operating parameter adjustment information includes dormant channel information. For example, the dormant channel information indicates a dormant channel among the multiple channels in the first operating state. Optionally, the dormant channel information may also indicate a normally operating channel among the multiple channels in the first operating state.
[0127] In this scenario, the first communication device may determine the first operating parameter adjustment information based on the first link bandwidth in an implementation manner as follows: the first communication device may determine the dormant channel information based on the first link bandwidth.
[0128] That is, the energy-saving strategy provided in the embodiment of the present application can be implemented by dormant one or more channels among the multiple channels. This energy-saving strategy does not require complicated operations and is therefore easy to implement.
[0129] Table 1 is a schematic diagram of the relationship between the first link bandwidth and the sleep channel provided in an embodiment of the present application. As shown in Table 1, the first transmitting device and the second receiving device each include 4 channels, and the rated bandwidth of the link between the first transmitting device and the second receiving device is 100GbE, that is, the bandwidth of each channel is 25GbE. Then when the first link bandwidth is 50GbE, only two channels need to be in the standard working state at this time, and the standard working state means that the channel operates according to the rated parameters. Accordingly, the sleep channel information can indicate which two channels of the four channels need to sleep. Then when the first link bandwidth is 25GbE, only one channel needs to be in the standard working state at this time, and accordingly, the sleep channel information can indicate which three channels of the four channels need to sleep.
[0130] Table 1
[0131] FIG5 is a schematic diagram showing a comparison of channel states before and after a first sending device and a second receiving device switch operating states, provided in an embodiment of the present application.
[0132] As shown in Figure 5, the first transmitting device and the second receiving device each include four channels. When the first transmitting device and the second receiving device do not switch operating states, the four channels included in the first transmitting device are all used to transmit data, and the four channels included in the second receiving device are all used to receive data. If the bandwidth of each channel is 25GbE, the bandwidth of the link between the first transmitting device and the second receiving device can reach 100GbE.
[0133] When the first sending device and the second receiving device switch the operating state, that is, after the first sending device and the second receiving device perform energy-saving switching, two of the four channels included in the first sending device are used to send data, and the other two channels are not used to send data, such as being in a sleep state; two of the four channels included in the second sending device are used to receive data, and the other two channels are not used to receive data, such as being in a sleep state. At this time, the bandwidth of the link between the first sending device and the second receiving device is reduced to 50GbE.
[0134] Optionally, in an embodiment of the present application, in addition to implementing the energy-saving strategy through the sleep channel method, the energy-saving strategy can also be implemented through other methods, such as reducing the corresponding bandwidth of each channel according to a certain proportion to achieve the effect of reducing the total bandwidth.
[0135] In addition, the first communication device may send the first energy-saving time period and the first operating parameter adjustment information to the second communication device in an out-of-band manner or in-band manner.
[0136] (1) Out-of-band method.
[0137] Among them, the out-of-band method can be understood as the processor of the first communication device independently generating an energy-saving negotiation message including the first energy-saving time period and the first operating parameter adjustment information. The energy-saving negotiation message is a message different from the business message normally sent by the first sending device, so it is called an out-of-band method.
[0138] Based on this, the implementation method of the first communication device sending the first energy-saving time period and the first operating parameter adjustment information to the second communication device can be: the first communication device generates an energy-saving negotiation message, which carries the first energy-saving time period and the first operating parameter adjustment information; the first communication device sends the energy-saving negotiation message to the second receiving device.
[0139] For example, the processor of the first communication device generates an Ethernet frame, which carries a first energy-saving time period and first operating parameter adjustment information; the processor sends the Ethernet frame to the first sending device; the first sending device performs MAC layer and physical layer processing on the Ethernet frame to obtain the energy-saving negotiation message; the first sending device sends the energy-saving negotiation message to the second receiving device.
[0140] By transmitting the first energy-saving time period and the first operating parameter adjustment information in an out-of-band manner, the process of negotiating the link bandwidth between the first communication device and the second communication device can be made more flexible.
[0141] For example, the energy-saving negotiation message may be a transmission control protocol (TCP) message or a user datagram protocol (UDP) message.
[0142] Figure 6 is a schematic diagram of the format of a TCP message provided in an embodiment of the present application. As shown in Figure 6 , the user data field of the TCP message can carry a first energy-saving time period and first operating parameter adjustment information to generate an energy-saving negotiation message. For other fields in the TCP message in Figure 6 , please refer to the relevant standards and will not be explained in detail here.
[0143] Figure 7 is a schematic diagram of the format of a UDP message provided in an embodiment of the present application. As shown in Figure 7 , the data field of the UDP message can carry the first energy-saving time period and the first operating parameter adjustment information to generate an energy-saving negotiation message. For other fields in the UDP message in Figure 7 , please refer to the relevant standards and will not be explained in detail here.
[0144] In addition, the energy-saving negotiation message may also carry other information used for negotiation. For example, the energy-saving negotiation message may also carry one or more of the first negotiation information, the second negotiation information, and the third negotiation information. Among them, the first negotiation information is used to indicate whether the first sending device supports the MAC energy-saving mode, the second negotiation information is used to indicate whether the first sending device supports the optical module energy-saving mode, and the third negotiation information is used to indicate whether the first sending device supports the reference level wake-up mode. The reference level wake-up mode can be, for example, at the millisecond (ms) level or the microsecond (μs) level.
[0145] MAC energy-saving mode adaptively adjusts MAC operating parameters to ensure the amount of data processed by the MAC matches the bandwidth of the first link. Optical module energy-saving mode adaptively adjusts the operating parameters of internal digital and analog circuits based on the bandwidth of the first link. Millisecond-level wake-up mode enables rapid wake-up within milliseconds after entering the second operating state.
[0146] When the energy-saving negotiation message carries the other negotiation information described above, the second communication device, upon receiving the energy-saving negotiation message sent by the first communication device, may also reply to the first communication device with the modes it supports. This reply information may also be carried in the form of an energy-saving negotiation message. For ease of explanation, the energy-saving negotiation message sent by the first communication device to the second communication device is referred to as the first energy-saving negotiation message, and the energy-saving negotiation message sent by the second communication device to the first communication device is referred to as the second energy-saving negotiation message.
[0147] The second energy-saving negotiation message may also carry one or more of the first negotiation information, the second negotiation information, and the third negotiation information. The first negotiation information in the second energy-saving negotiation message is used to indicate whether the second receiving device supports the MAC energy-saving mode, the second negotiation information is used to indicate whether the second receiving device supports the optical module energy-saving mode, and the third negotiation information is used to indicate whether the second receiving device supports the reference level wake-up mode.
[0148] When the first communication device and the second communication device both determine that the other party supports the corresponding mode, it indicates that the current link bandwidth negotiation process is completed.
[0149] In addition, after receiving the energy-saving negotiation message sent by the peer end, the first communication device or the second communication device can also reply to the peer end with a confirmation message, which is used to inform the peer end that the local end has received the energy-saving negotiation message sent by the peer end. In other words, the above-mentioned link bandwidth negotiation process can be implemented in a manner similar to handshake.
[0150] For example, the energy-saving negotiation message can be confirmed by a continuous 3*3.3ms message confirmation method. That is, when the first communication device or the second communication device receives three energy-saving negotiation messages continuously within 3*3.3ms, it is determined that the energy-saving negotiation message sent by the other party has been successfully received, and a confirmation message is sent to the other party.
[0151] Table 2 is a schematic illustration of the information carried in an energy-saving negotiation message and a confirmation message provided in an embodiment of the present application. As shown in Table 2, the energy-saving negotiation message simultaneously carries first negotiation information, second negotiation information, third negotiation information, and first operating parameter adjustment information, wherein the energy-saving negotiation message also includes a first energy-saving time period (not shown in Table 2). The first operating parameter adjustment information in Table 2 is exemplarily the currently negotiated sleep mode, which includes the number of sleep channels and the identifiers of each sleep channel (not shown in Table 2).
[0152] Table 2
[0153] Table 3 is an example of channel identification provided by an embodiment of the present application. As shown in Table 3, 3 bits can be used to indicate the specific dormant channel number. For example, 000 indicates channel 0, 001 indicates channel 1, 010 indicates channel 2, and 111 indicates channel 7.
[0154] Table 3
[0155] (2) In-band method.
[0156] The in-band method can be understood as the first transmitting device of the first communication device adding the first energy-saving time period and the first operating parameter adjustment information to the message during MAC layer or physical layer processing of the message. This is equivalent to carrying the first energy-saving time period and the first operating parameter adjustment information in the service message normally sent by the first transmitting device, hence the term "in-band method."
[0157] Based on this, in some embodiments, the implementation method of the first communication device sending the first energy-saving time period and the first operating parameter adjustment information to the second communication device can be: the first sending device receives the Ethernet frame to be sent; the first sending device performs MAC layer and physical layer processing on the Ethernet frame, and adds the first energy-saving time period and the first operating parameter adjustment information to the reference field of the processed message; the first sending device sends the processed message to the second receiving device.
[0158] By transmitting the first energy-saving time period and the first operating parameter adjustment information in an in-band manner, the process of negotiating the link bandwidth between the first communication device and the second communication device can be ensured not to affect normal services between the two devices.
[0159] Currently, the Ethernet MAC standard defines a 7-bit preamble at the beginning of a MAC message and a 12-bit interpacket gap (IPG) at the end. These two fields serve as the boundary between two MAC messages. Based on this, for example, the first transmitting device can carry the first energy-saving time period and the first operating parameter adjustment information in these two fields in the processed message. That is, the reference field includes the preamble and / or the IPG.
[0160] In addition, when a MAC message processed by the MAC layer is sent via a SerDes, an alignment marker (AM) field is added to the MAC message. This field is used to locate and identify a specific message from the serial 0 / 1 bit data stream. Based on this, for example, the first transmitting device can use the AM field to carry the first energy-saving time period and the first operating parameter adjustment information. That is, the reference field can also include the AM field.
[0161] In addition, in an embodiment of the present application, before the first communication device successfully places the first sending device in the first operating state, the first communication device may cache the message to be sent by the first sending device; then, after the first communication device places the first sending device in the first operating state based on the first energy-saving strategy, the first communication device sends the cached message through the first sending device.
[0162] By caching the messages to be sent by the first sending device, it is possible to avoid the impact of switching the operating state on the normal service of the first sending device.
[0163] The process before the first communication device places the first sending device into the first operating state may include the aforementioned link bandwidth negotiation process and link re-establishment process.
[0164] FIG8 is a schematic diagram of a process for caching messages when switching operating states, provided by an embodiment of the present application. As shown in FIG8 , the processor of the first communication device can determine the time to enter the first operating state (i.e., the starting time of the first energy-saving period) based on the first energy-saving strategy to prepare for starting to enter the low-power state. Specifically, the processor first determines relevant parameters based on the first link bandwidth in the first energy-saving strategy and sends the relevant parameters to the first MAC sub-chip, including the dormant channels, the bandwidth of each channel, and flow control parameters. The processor then pauses sending messages through the first sending device and caches the messages to be sent by the first sending device, for example, in the internal port buffer of the first sending device. The processor then initiates the link bandwidth negotiation process and the link reestablishment process described above to enable the ports at both ends of the link to quickly switch to a low-power state. After the link reestablishment between the first sending device and the second receiving device is completed, that is, after the first sending device successfully switches from the current operating state to the first operating state, the processor can send the cached messages through the first sending device in the first operating state.
[0165] It should be noted that in the above-mentioned scenario of sending the first operating parameter adjustment information in an in-band manner, that is, in the process of negotiating the link bandwidth in an in-band manner, the process does not need to suspend the sending of service messages, so as to facilitate the transmission of the first energy-saving time period and the first operating parameter adjustment information in an in-band manner.
[0166] Furthermore, in the implementation of the present application, to support rapid switching of the first transmitting device from the current operating state to the first operating state, the adjustment values of the first type of operating parameters to be adjusted can be predetermined. For example, the adjustment values of the first type of operating parameters for different link bandwidths can be predetermined for the first transmitting device. Thus, once the processor determines the first link bandwidth, it can rapidly switch the first transmitting device from the current operating state to the first operating state based directly on the first link bandwidth, thereby preventing the impact of the switching operating state on the latency of current normal services.
[0167] In addition, in the implementation of the present application, after the first sending device enters the first operating state (i.e., the low power consumption state), the first communication device may further compress the data to be sent by the first sending device to reduce the bandwidth requirement of the link interface and achieve a better and more stable energy saving effect. The compression algorithm used for compressing the data may include the Lempel-ziv-Markov chain algorithm 2 (LZMA2), the string table compression algorithm (LZW), etc.
[0168] In the implementation of the present application, after the first sending device enters the first operating state (ie, low power consumption state), the first communication device can also quickly wake up the first sending device based on current network requirements to avoid affecting the current business.
[0169] Figure 9 is a flow chart of another method for determining the operating status provided by an embodiment of the present application. As shown in Figure 9, the method includes the following steps.
[0170] Step 901: The first communication device switches the first transmitting device from the first operating state to the second operating state. When the first transmitting device is in the second operating state, the link bandwidth between the first transmitting device and the second receiving device is the second link bandwidth, and the second link bandwidth is greater than the first link bandwidth.
[0171] In some embodiments, the first communication device may switch the first transmitting device from the first operating state to the second operating state in response to the sleep wake-up instruction, so that the link bandwidth between the first transmitting device and the second receiving device is restored from the first link bandwidth to the second link bandwidth.
[0172] That is, after the first transmitting device enters the low power consumption state, the first communication device may also respond to the sleep wake-up instruction to wake up the first transmitting device from the low power consumption state to the non-low power consumption state.
[0173] The second link bandwidth may be the same as or different from the current link bandwidth in step 401. For example, in step 401, the current link bandwidth is 100G, the rated bandwidth of the link between the first transmitting device and the second receiving device, and the first link bandwidth is 50G. In this scenario, the second link bandwidth may be 100G. In this case, in response to the sleep-wake-up instruction, the first link bandwidth is restored to the rated bandwidth of 100G. Alternatively, in this scenario, the first link bandwidth may be 50G. In this case, the third link bandwidth may be 75G. In this case, in response to the sleep-wake-up instruction, the first link bandwidth is restored to 75% of the rated bandwidth.
[0174] In some embodiments, the first communication device may switch the first sending device from the first operating state to the second operating state when any of the following conditions is met:
[0175] The current time reaches the end time point of the first energy-saving time period; or, the amount of messages cached by the first communication device at the current time exceeds the reference number; or, the first communication device detects that the second link, which is a mutual protection link with the first link, has a failure at the current time, where the first link is the link between the first sending device and the second receiving device.
[0176] Through the above settings, the first communication device supports quickly waking up the first sending device in various scenarios, avoiding serious impact on the normal business of the first sending device in emergency situations.
[0177] For example, after the first sending device switches to the first operating state, if no other emergencies occur during the first energy-saving time period, the first communication device may wake up the first sending device when the end time point of the first energy-saving time period is reached.
[0178] For example, after the first sending device switches to the first operating state, if a burst of traffic that has never occurred before occurs in the network during the first energy-saving time period, the amount of messages cached by the first communication device will increase sharply. In this case, in order to avoid serious congestion in the current network, the first sending device can be awakened to increase the link bandwidth between the first sending device and the second receiving device.
[0179] Figure 10 is a schematic diagram of a process for waking up a first transmitting device according to an embodiment of the present application. As shown in Figure 10, after the first transmitting device enters the first operating state, the first communication device detects the cache watermark of the first communication device. If the cache watermark reaches a predetermined threshold, the first transmitting device is quickly awakened to switch the first transmitting device to the second operating state, such as switching to the standard operating mode (i.e., operating at the rated bandwidth).
[0180] The predetermined threshold can be determined when formulating the first energy-saving strategy. In other words, the first energy-saving strategy can also include the predetermined threshold. The predetermined threshold can be determined by a technician based on experience. Furthermore, the buffer watermark of the first communication device can, for example, be the buffer watermark of the message sent by the first sending device, or the buffer watermark of messages to be sent to the first sending device by other communication devices.
[0181] In addition, based on the aforementioned step 401, it can be known that the first energy-saving strategy is learned based on the traffic statistical information before the current time. If the cache waterline reaches a predetermined threshold during the first energy-saving time period, it indicates that the current traffic is different from the previously learned traffic. Therefore, as shown in Figure 10, the first communication device can also update the first energy-saving strategy based on the current traffic information, so as to subsequently control whether the first sending device enters a new low-power state based on the updated first energy-saving strategy.
[0182] For example, after the first transmitting device switches to the first operating state, if the second link, which serves as a mutual protection link with the first link, fails during the first energy-saving period, the first link is the link between the first transmitting device and the second receiving device. In this case, to ensure that the normal operation of the services on the second link is not affected, the traffic on the second link can be transmitted through the first link. In this case, the first transmitting device can also be awakened to increase the bandwidth of the first link.
[0183] For example, let's use the first link and the second link, both of which include four channels. When the first transmitting device is in the first operating state, it's assumed that two channels in the first link are in an active state and two channels are in a dormant state. If a fault is detected in the second link, all four channels in the second link may be unable to transmit data. In this case, the first transmitting device can be awakened to wake up the two dormant channels in the first link.
[0184] It should be noted that in the above scenario, if some channels in the second link are in a dormant state, when a failure of the second link is detected, considering that the traffic on the second link may be relatively small at this time, it is not necessary to wake up the first sending device.
[0185] The failure of the second link can be detected using bidirectional forwarding detection (BFD) technology. The implementation process of BFD technology can be referenced to relevant standards and will not be described in detail here. Alternatively, other fault detection technologies can be used to detect whether the second link has failed, which will not be described in detail here.
[0186] Furthermore, the second link may be a link with the first communication device at one end. In this case, the failure of the second link may be detected by the first communication device using BFD technology. Alternatively, both ends of the second link may not be the first communication device. In this case, the failure of the second link may be detected by another third communication device using BFD technology, and the third communication device may be one end of the second link.
[0187] Figure 11 is a schematic diagram of another process for waking up the first sending device provided by an embodiment of the present application. As shown in Figure 11, after the first sending device enters the first operating state, that is, after entering the low power consumption state, the first communication device detects whether a certain protection link is abnormal through the BFD technology. If the protection link is abnormal, it continues to determine whether the protection link is the protection link of the link between the first sending device and the second receiving device (that is, the first link). If the protection link is the protection link of the first link, the first sending device can be quickly awakened, for example, the first sending device can be awakened to enter the standard working mode (that is, working according to the rated bandwidth).
[0188] Correspondingly, if the protection link is not the protection link of the first link, for example, it is the protection link of another link, and both ends of the other link are not the sending devices included in the first communication device, then the first communication device can also construct a special sleep wake-up message to notify one end of the other link to wake up the other link.
[0189] Figure 12 is a schematic diagram of another process for waking up the first sending device provided by an embodiment of the present application. As shown in Figure 12, after the first sending device enters the first operating state, that is, after entering the low power consumption state, the first communication device can determine whether the protection link of the link between the first sending device and the second receiving device (that is, the first link) is faulty in two ways. One is when one end of the protection link and the first link are both located in the first communication device. In this scenario, the first communication device can detect that the protection link has failed by itself through the BFD technology. The other is when neither end of the protection chain is located in the first communication device. In this scenario, the first communication device can determine that the protection link is abnormal by receiving a sleep wake-up message sent by other communication devices.
[0190] It should be noted that the above wake-up scenarios are for illustrative purposes. Optionally, in an embodiment of the present application, other wake-up scenarios can be set according to network requirements. For example, in a scenario where the first energy-saving strategy includes a packet loss strategy and a strategy, the first communication device can determine whether it is necessary to wake up the first sending device based on the relationship between the current packet loss situation and the packet loss strategy, or based on the relationship between the current delay situation and the delay strategy. Examples will not be given one by one here.
[0191] In addition, when the first transmitting device needs to be awakened, it can directly awaken the first transmitting device, such as awakening a dormant channel. In this scenario, the second receiving device can detect that the dormant channel has re-received a signal. At this time, the second receiving device can respond to the detected signal and awaken the corresponding dormant channel, that is, switch the second receiving device to the second operating state.
[0192] On the other hand, the first transmitting device may also send third operating parameter adjustment information to the second receiving device to negotiate with the second receiving device the link bandwidth to be achieved after waking up, i.e., to negotiate the link bandwidth. After the first communication device and the second communication device have negotiated the link bandwidth, the first transmitting device and the second receiving device may respectively control the first transmitting device and the second receiving device to switch from the current operating state to the second operating state, so that the link bandwidth between the first transmitting device and the second receiving device is restored to the second link bandwidth.
[0193] Among them, the implementation method of the first sending device sending the third operating parameter adjustment information to the second receiving device can refer to the implementation method of the first sending device sending the first operating parameter adjustment information to the second receiving device mentioned above, which will not be repeated here.
[0194] In addition, the first communication device can wake up the first transmitting device via the internal bus. For example, the processor of the first communication device sends the adjustment value of the first type of operating parameter to the first transmitting device via the internal bus, so that the first transmitting device makes adjustments based on the received adjustment value of the first type of operating parameter, thereby restoring the current link bandwidth from the first link bandwidth to the second link bandwidth.
[0195] Furthermore, in the embodiments of the present application, certain operating parameters of the first optical sub-module in the first transmitting device need to be adaptively adjusted to match the current environmental conditions to maximize the satisfaction of the operating specifications of the first optical sub-module. Environmental conditions include, for example, ambient temperature, device temperature, and power supply voltage. These operating parameters can be referred to as second-category operating parameters, i.e., the second-category operating parameters include those parameters of the first optical sub-module of the first transmitting device that are relevant to the operating specifications.
[0196] Considering that the environment in which the first transmitting device is located when waking up the first transmitting device may be significantly different from the environment in which the first transmitting device is located when dormant, the parameter values required for the second type of operating parameters of the first sub-optical module when waking up the first transmitting device also change significantly accordingly. Based on this, a target parameter value for the second type of operating parameters of the first sub-optical module that matches the wakeup conditions can be determined.
[0197] That is, in some embodiments, the first communication device obtains the target parameter value of the second type of operating parameter of the first sub-optical module, the second type of operating parameter includes parameters related to the operating indicators among the operating parameters of the first sub-optical module, and the target parameter value of the second type of operating parameter matches the environmental conditions when the first sending device is switched from the first operating state to the second operating state; the first communication device sets the second type of operating parameter of the first sub-optical module according to the target parameter value.
[0198] The second category of operating parameters includes, for example, transmitted optical power, thermoelectric cooler (TEC) temperature control, bias current, voltage, analog control signal quantity, and adaptive parameters of a transmitting CDR or digital signal processor (DSP). The operating indicators are pre-configured by the manufacturer and are used to indicate the indicators that the first submodule needs to meet during operation.
[0199] For example, the implementation method for the first communication device to obtain the target parameter value of the second type of operating parameter of the first sub-optical module can be: the first communication device obtains a target mapping relationship, and the target mapping relationship indicates the mapping relationship between the parameter value of the second type of operating parameter and the environmental conditions when the operating indicators are met; the first communication device determines the target parameter value of the second type of operating parameter based on the target mapping relationship and the environmental conditions when the first sending device is switched from the first operating state to the second operating state.
[0200] The target mapping relationship can be obtained through online learning or offline learning. The following explains these two methods.
[0201] 1. Online parameter learning.
[0202] For example, the first communication device can learn and record the second type of operating parameters of the first sub-optical module online, which typically include one or more of the transmitting optical power, TEC temperature control, bias current, operating voltage, analog signal control quantity, adaptive parameters of the receiving CDR or DSP, and corresponding environmental conditions such as ambient temperature and device junction temperature, so as to learn the mapping relationship between the second type of operating parameters of the first sub-optical module and the environmental conditions, that is, the target mapping relationship.
[0203] Among them, the online learning method can be implemented by the first communication device through machine learning, or it can be implemented through other methods, which will not be explained one by one here.
[0204] In addition, the online parameter learning can be completed by a microcontroller unit (MCU) inside the first sub-optical module, or a central processing unit (CPU) at the board level or the entire machine.
[0205] 2. Offline parameter learning.
[0206] For example, before the first communication device or the first optical sub-module leaves the factory, during the manufacturing phase of the first optical sub-module, different typical environmental conditions are constructed and the optimal parameter values of the second type of operating parameters under the different environmental conditions are tested to learn the mapping relationship between the second type of operating parameters of the first optical sub-module and the environmental conditions, i.e., the target mapping relationship. This process is called an offline learning process.
[0207] Optionally, the first communication device may obtain the target parameter value of the second type of operating parameter of the first sub-optical module by adaptively adjusting the parameter value of the second type of operating parameter of the first sub-optical module based on current environmental conditions and operating indicators in response to the parameter update instruction, and storing the adjusted parameter value of the second type of operating parameter of the first sub-optical module. In this scenario, the target parameter value is the most recently stored parameter value of the second type of operating parameter.
[0208] The following takes the implementation of the energy-saving strategy through the sleep channel as an example to explain the process of the first communication device responding to the parameter update instruction and adaptively adjusting the parameter value of the second type of operating parameter of the first sub-optical module based on the current environmental conditions and operating indicators.
[0209] For example, in response to a parameter update instruction, the first communication device may awaken a dormant channel in the first optical sub-module and maintain the awakened state for a predetermined duration. During this duration, the first communication device adaptively adjusts the parameter values of the second type of operating parameters of the first optical sub-module based on current environmental conditions and operating indicators to ensure that the parameter values of the second type of operating parameters of the first optical sub-module match the current environmental conditions. When the duration expires, the previously dormant channel resumes its dormant state.
[0210] In addition, the parameter update instruction can be triggered periodically or in response to a specified event. The following explains these two methods.
[0211] 1. Periodic online active triggering.
[0212] Through the periodic online active wake-up mechanism, it is ensured that the parameter values of the second type of operating parameters stored by the first communication device when the first sending device is in the first operating state match the latest environmental conditions, so as to support fast sleep wake-up actions that may occur at any time.
[0213] For example, after the first transmitting device enters the first operating state, the first optical sub-module is awakened once every hour to place the first optical sub-module in the standard operating mode. The first optical sub-module is maintained in the standard operating mode for 10 milliseconds, so that the first optical sub-module adaptively adjusts the current parameter value of the second type of operating parameter within this 10 milliseconds and stores the adjusted parameter value of the second type of operating parameter. When the first transmitting device is subsequently awakened in step 901, the most recently stored parameter value of the second type of operating parameter is used as the target parameter value.
[0214] 2. Triggered in response to a specified event.
[0215] In order to avoid the need for more operations for the periodic online active wake-up mechanism, it can also be set to actively wake up when the environmental conditions of the existing network change significantly, so as to adaptively refresh the parameter values of the second type of operating parameters, thereby ensuring that the parameter values of the second type of operating parameters stored by the first communication device when the first sending device is in the first operating state are relatively matched with the latest environmental conditions.
[0216] For example, after the first transmitting device enters the first operating state, the first communication device can detect the ambient temperature. If the difference between the current ambient temperature and the ambient temperature when the first transmitting device was switched to the first operating state exceeds 40 degrees Celsius, the first transmitting device is actively awakened to put the first sub-optical module into the standard operating mode. The first sub-optical module is maintained in the standard operating mode for 10 milliseconds, so that the first sub-optical module adaptively adjusts the current parameter value of the second type of operating parameter within this 10 milliseconds and stores the adjusted parameter value of the second type of operating parameter. When the first transmitting device is subsequently awakened in step 901, the most recently stored parameter value of the second type of operating parameter is used as the target parameter value.
[0217] The above description uses ambient temperature as an example to illustrate a designated event. Alternatively, the designated event may be when the power supply voltage exceeds a certain range. Alternatively, the designated event may be when the ambient temperature remains unchanged but the device temperature exceeds a certain range. Examples are not provided here.
[0218] The following uses FIG13 as an example to illustrate the embodiments shown in FIG4 and FIG9. However, FIG13 does not limit the embodiments shown in FIG4 and FIG9.
[0219] As shown in Figure 13, after initialization, the first communication device enters standard operating mode, meaning that the first transmitting device operates at the rated bandwidth. While the first transmitting device operates at the rated bandwidth, it collects big data online. This data includes the average traffic flow, burst traffic, buffer watermark, latency, packet loss, and link protection status of the first transmitting device's inbound and outbound ports, in real time, to learn the first transmitting device's traffic statistics for the past 7 / 24 hours. After learning the traffic statistics for the first transmitting device over the past 7 / 24 hours, a first energy-saving strategy is formulated based on the learned traffic statistics. If the first energy-saving strategy is met during the current time period, the operating states of the first transmitting device and the second receiving device are switched to a low-power state. The device then monitors whether a wake-up condition is met. If so, the first transmitting device and the second receiving device are quickly awakened.
[0220] In addition, as shown in FIG13 , after the operating states of the first sending device and the second receiving device are switched, the traffic statistics information of the first sending device may be continuously learned to update the first energy-saving strategy according to the learned traffic statistics information.
[0221] In addition, based on the relevant content of the communication system shown in Figure 3, it can be seen that in embodiments of the present application, the energy-saving strategies on the transceiver link between the first communication device and the second communication device can be asymmetric. Therefore, in some embodiments, the first communication device can also receive second operating parameter adjustment information sent by the second communication device; based on the second operating parameter adjustment information, the first communication device sets the first receiving device to a third operating state. When the first receiving device is in the third operating state, the link bandwidth between the first receiving device and the second transmitting device is the third link bandwidth.
[0222] The specific implementation method can refer to the above embodiment and will not be described again here.
[0223] In summary, in the embodiments of the present application, by switching the operating states of the MAC layer and physical layer-related components of the first communication device, an energy-saving strategy is implemented by reducing the link bandwidth, thereby reducing the power consumption of the first communication device. Furthermore, when it is necessary to wake up the first transmitting device, the operating states of the MAC layer and physical layer-related components of the first communication device can also be switched to achieve wake-up by increasing the link bandwidth.
[0224] Figure 14 is a schematic diagram of the structure of a first communication device provided in an embodiment of the present application. The communication system further includes a second communication device, the first communication device including a first transmitting device, the second communication device including a second receiving device, the first transmitting device and the second receiving device being interconnected via an optical fiber, and both the first transmitting device and the second receiving device being configured to perform media access control (MAC) layer and physical layer processing on data.
[0225] As shown in FIG14 , the first communication device includes the following modules.
[0226] The first setting module 1401 is configured to, in response to the current time being the start time of the first energy-saving time period, set the first transmitting device to a first operating state based on a first energy-saving policy. When the first transmitting device is in the first operating state, the link bandwidth between the first transmitting device and the second receiving device is the first link bandwidth. The first energy-saving policy includes the first energy-saving time period and the first link bandwidth. For specific implementation, see step 401 in the embodiment of FIG. 4 .
[0227] Optionally, the first communication device further includes:
[0228] A first acquisition module, configured to acquire first operating parameter adjustment information corresponding to the first link bandwidth;
[0229] The first sending module is configured to send a first energy-saving time period and first operating parameter adjustment information to the second communication device.
[0230] Optionally, the first sending device includes multiple channels, and the first operating parameter adjustment information includes dormant channel information.
[0231] Optionally, the dormant channel information indicates a dormant channel among the multiple channels in the first operating state.
[0232] Optionally, the first sending module is configured to:
[0233] Generate an energy-saving negotiation message, where the energy-saving negotiation message carries the first energy-saving time period and the first operating parameter adjustment information;
[0234] Send an energy-saving negotiation message to the second receiving device.
[0235] Optionally, the first sending module is configured to:
[0236] Receive Ethernet frames to be sent;
[0237] Performing MAC layer and physical layer processing on the Ethernet frame, and adding the first energy-saving time period and the first operating parameter adjustment information to the reference field of the processed message;
[0238] The processed message is sent to the second receiving device.
[0239] Optionally, the first communication device further includes:
[0240] a buffer module, configured to buffer messages to be sent by the first sending device before the first communication device places the first sending device in the first operating state;
[0241] The second sending module is configured to send the buffered message through the first sending device after the first communication device sets the first sending device to the first operating state.
[0242] Optionally, the first setting module is used to:
[0243] Setting a first type of operating parameter of a first module included in the first sending device based on the first link bandwidth;
[0244] The first module includes a first sub-MAC chip, a first sub-serializer (SerDes), and a first sub-optical module, and the first type of operating parameters includes parameters related to power consumption among the operating parameters of the first module.
[0245] Optionally, the first communication device further includes:
[0246] The switching module is used to switch the first sending device from the first operating state to the second operating state. When the first sending device is in the second operating state, the link bandwidth between the first sending device and the second receiving device is the second link bandwidth, and the second link bandwidth is greater than the first link bandwidth.
[0247] Optionally, when any one of the following conditions is met, the switching module switches the first sending device from the first operating state to the second operating state:
[0248] The current time reaches the end time point of the first energy-saving time period; or,
[0249] The amount of messages buffered by the first communication device at the current time exceeds the reference amount; or,
[0250] At the current time, the first communication device detects that a second link, which is a mutual protection link with the first link, fails, wherein the first link is a link between the first sending device and the second receiving device.
[0251] Optionally, the first sending device includes a first sub-optical module; and the first communication device further includes:
[0252] a second acquisition module, configured to acquire a target parameter value of a second type of operating parameter of the first sub-optical module, the second type of operating parameter including parameters related to operating indicators among the operating parameters of the first sub-optical module, the target parameter value matching an environmental condition when the first transmitting device is switched from the first operating state to the second operating state;
[0253] The second setting module is used to set the second type of operating parameters of the first sub-optical module according to the target parameter value.
[0254] Optionally, the second acquisition module is used to:
[0255] Acquire a target mapping relationship, where the target mapping relationship indicates a mapping relationship between parameter values of the second type of operating parameters and environmental conditions when the operating indicators are met;
[0256] Based on the target mapping relationship and the environmental conditions when the first sending device is switched from the first operating state to the second operating state, target parameter values of the second type of operating parameters are determined.
[0257] Optionally, the first communication device further includes:
[0258] a storage module, configured to adaptively adjust the parameter values of the second type of operating parameters of the first sub-optical module based on current environmental conditions and operating indicators in response to the parameter update instruction, and store the adjusted parameter values of the second type of operating parameters of the first sub-optical module;
[0259] The target parameter value is the parameter value of the second type of operating parameter stored most recently.
[0260] Optionally, the first energy-saving strategy is related to traffic statistics information before the current time and within a reference time period from the current time, and the traffic statistics information includes one or more of the average traffic, burst traffic, delay information and packet loss information of the first communication device before the current time and within a reference time period from the current time.
[0261] Optionally, the first communication device further includes a first receiving device, the second communication device further includes a second sending device, and the second sending device and the first receiving device are interconnected via an optical fiber; the first communication device further includes:
[0262] a receiving module, configured to receive second operating parameter adjustment information sent by a second communication device;
[0263] The third setting module is configured to set the first receiving device to a third operating state based on the second operating parameter adjustment information. When the first receiving device is in the third operating state, the link bandwidth between the first receiving device and the second sending device is the third link bandwidth.
[0264] In summary, in the embodiments of the present application, by switching the operating states of the MAC layer and physical layer-related components of the first communication device, an energy-saving strategy is implemented by reducing the link bandwidth, thereby reducing the power consumption of the first communication device. Furthermore, when it is necessary to wake up the first transmitting device, the operating states of the MAC layer and physical layer-related components of the first communication device can also be switched to achieve wake-up by increasing the link bandwidth.
[0265] It should be noted that the first communication device provided in the above embodiment, when determining the operating status, only uses the division of the above-mentioned functional modules as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the first communication device provided in the above embodiment and the method embodiment for determining the operating status are based on the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.
[0266] In the above embodiments, all or part of the embodiments can be implemented by software, hardware, firmware, or any combination thereof. When implemented using software, all or part of the embodiments can be implemented in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, all or part of the processes or functions according to the embodiments of the present application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more available media integrated therein. Available media may be magnetic media (eg, floppy disks, hard disks, magnetic tapes), optical media (eg, digital versatile discs (DVDs)), or semiconductor media (eg, solid state disks (SSDs)).
[0267] Those skilled in the art will understand that all or part of the steps of implementing the above embodiments may be accomplished by hardware, or by programs instructing related hardware to accomplish the steps. The programs may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk, or an optical disk, etc.
[0268] The above are embodiments provided for this application and are not intended to limit the embodiments of this application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the embodiments of this application should be included in the scope of protection of the embodiments of this application.
Claims
1. A method for determining an operating state, characterized in that: The method is applied to a communication system, the communication system includes a first communication device and a second communication device, the first communication device includes a first sending device, the second communication device includes a second receiving device, the first sending device and the second receiving device are interconnected by an optical fiber, and the first sending device and the second receiving device are both used to perform media access control MAC layer and physical layer processing on data; the method includes: In response to the current time being the starting time of a first energy-saving time period, the first communication device places the first sending device in a first operating state based on a first energy-saving strategy. When the first sending device is in the first operating state, the link bandwidth between the first sending device and the second receiving device is a first link bandwidth. The first energy-saving strategy includes the first energy-saving time period and the first link bandwidth.
2. The method according to claim 1, characterized in that Before the first communication device places the first sending device in a first operating state, the method further includes: The first communication device acquires first operating parameter adjustment information corresponding to the first link bandwidth; The first communication device sends the first energy-saving time period and the first operating parameter adjustment information to the second communication device.
3. The method according to claim 2, characterized in that The first sending device includes multiple channels, and the first operating parameter adjustment information includes sleep channel information.
4. The method according to claim 3, characterized in that The dormant channel information indicates a dormant channel among the plurality of channels in the first operating state.
5. The method according to any one of claims 2 to 4, characterized in that: The first communication device sending the first energy-saving time period and the first operating parameter adjustment information to the second communication device includes: generating an energy-saving negotiation message, wherein the energy-saving negotiation message carries the first energy-saving time period and the first operating parameter adjustment information; Sending the energy-saving negotiation message to the second receiving device.
6. The method according to any one of claims 2 to 4, characterized in that: The first communication device sending the first energy-saving time period and the first operating parameter adjustment information to the second communication device includes: The first sending device receives an Ethernet frame to be sent; The first sending device performs MAC layer and physical layer processing on the Ethernet frame, and adds the first energy-saving time period and the first operating parameter adjustment information to the reference field of the processed message; The first sending device sends the processed message to the second receiving device.
7. The method according to any one of claims 1 to 6, characterized in that: The method further comprises: Before the first communication device sets the first sending device to the first operating state, the first communication device buffers the message to be sent by the first sending device; After the first communication device sets the first sending device to the first operating state, the first communication device sends the buffered message through the first sending device.
8. The method according to any one of claims 1 to 7, characterized in that: The first communication device sets the first sending device to a first operating state, including: Based on the first link bandwidth, the first communication device sets a first type of operating parameter of a first module included in the first sending device; The first module includes a first sub-MAC chip, a first sub-serializer (SerDes) and a first sub-optical module, and the first type of operating parameters includes parameters related to power consumption in the operating parameters of the first module.
9. The method according to any one of claims 1 to 8, characterized in that: After the first communication device sets the first sending device to a first operating state, the method further includes: The first communication device switches the first sending device from the first operating state to a second operating state. When the first sending device is in the second operating state, the link bandwidth between the first sending device and the second receiving device is a second link bandwidth, and the second link bandwidth is greater than the first link bandwidth.
10. The method according to claim 9, characterized in that When any one of the following conditions is met, the first communication device switches the first sending device from the first operating state to the second operating state: The current time reaches the end time point of the first energy-saving time period; or, The amount of messages buffered by the first communication device at the current time exceeds the reference amount; or, At the current time, the first communication device detects that a second link that is a mutual protection link with the first link fails, wherein the first link is a link between a first sending device and a second receiving device.
11. The method according to claim 9 or 10, characterized in that The first sending device includes a first sub-optical module; the method further includes: The first communication device acquires a target parameter value of a second type of operating parameter of the first sub-optical module, where the second type of operating parameter includes parameters related to operating indicators among the operating parameters of the first sub-optical module, and the target parameter value matches an environmental condition when the first sending device is switched from the first operating state to the second operating state; The first communication device sets the second type of operating parameters of the first sub-optical module according to the target parameter value.
12. The method according to claim 11, characterized in that The first communication device obtains a target parameter value of a second type of operating parameter of the first sub-optical module, including: The first communication device acquires a target mapping relationship, where the target mapping relationship indicates a mapping relationship between a parameter value of the second type of operating parameter and the environmental condition when the operating indicator is met; The first communication device determines a target parameter value of the second type of operating parameter based on the target mapping relationship and an environmental condition when the first sending device is switched from the first operating state to the second operating state.
13. The method according to claim 11, characterized in that The method further comprises: The first communication device adaptively adjusts the parameter value of the second type of operating parameter of the first sub-optical module based on the current environmental conditions and the operating index in response to the parameter update instruction, and stores the adjusted parameter value of the second type of operating parameter of the first sub-optical module; The target parameter value is the parameter value of the second type of operating parameter stored most recently.
14. The method according to any one of claims 1 to 13, characterized in that: The first energy-saving strategy is related to traffic statistics information before the current time and within a reference time length from the current time, and the traffic statistics information includes one or more of the average traffic, burst traffic, delay information and packet loss information of the first communication device before the current time and within a reference time length from the current time.
15. The method according to any one of claims 1 to 14, characterized in that: The first communication device further includes a first receiving device, the second communication device further includes a second sending device, and the second sending device and the first receiving device are interconnected via an optical fiber; the method further includes: The first communication device receives second operating parameter adjustment information sent by the second communication device; The first communication device sets the first receiving device to a third operating state based on the second operating parameter adjustment information. When the first receiving device is in the third operating state, a link bandwidth between the first receiving device and the second sending device is a third link bandwidth.
16. A communication device, characterized in that: The communication device is a first communication device in a communication system, the communication system further includes a second communication device, the first communication device includes a first sending device, the second communication device includes a second receiving device, the first sending device and the second receiving device are interconnected via an optical fiber, and the first sending device and the second receiving device are both used to perform media access control MAC layer and physical layer processing on data; The first communication device comprises: A first setting module is used to respond to the current time being the starting time of a first energy-saving time period, and to set the first sending device to a first operating state based on a first energy-saving strategy. When the first sending device is in the first operating state, the link bandwidth between the first sending device and the second receiving device is a first link bandwidth. The first energy-saving strategy includes the first energy-saving time period and the first link bandwidth.
17. The communication device according to claim 16, wherein: The first communication device further comprises: A first acquisition module, configured to acquire first operating parameter adjustment information corresponding to the first link bandwidth; The first sending module is used to send the first energy-saving time period and the first operating parameter adjustment information to the second communication device.
18. The communication device according to claim 17, characterized in that: The first sending device includes multiple channels, and the first operating parameter adjustment information includes sleep channel information.
19. The communication device according to claim 18, characterized in that The dormant channel information indicates a dormant channel among the plurality of channels in the first operating state.
20. The communication device according to any one of claims 17 to 19, characterized in that: The first sending module is used for: generating an energy-saving negotiation message, wherein the energy-saving negotiation message carries the first energy-saving time period and the first operating parameter adjustment information; Sending the energy-saving negotiation message to the second receiving device.
21. The communication device according to any one of claims 17 to 19, characterized in that: The first sending module is used for: Receive Ethernet frames to be sent; Performing MAC layer and physical layer processing on the Ethernet frame, and adding the first energy-saving time period and the first operating parameter adjustment information to a reference field of the processed message; Send the processed message to the second receiving device.
22. The communication device according to any one of claims 16 to 21, characterized in that: The first communication device further comprises: a cache module, configured to cache messages to be sent by the first sending device before the first communication device sets the first sending device to the first operating state; The second sending module is used to send the cached message through the first sending device after the first communication device sets the first sending device to the first operating state.
23. The communication device according to any one of claims 16 to 22, characterized in that: The first setting module is used for: Based on the first link bandwidth, setting a first type of operating parameter of a first module included in the first sending device; The first module includes a first sub-MAC chip, a first sub-serializer SerDes and a first sub-optical module, and the first type of operating parameters includes parameters related to power consumption in the operating parameters of the first module.
24. The communication device according to any one of claims 16 to 23, characterized in that: The first communication device further comprises: A switching module is used to switch the first sending device from the first operating state to a second operating state. When the first sending device is in the second operating state, the link bandwidth between the first sending device and the second receiving device is a second link bandwidth, and the second link bandwidth is greater than the first link bandwidth.
25. The communication device according to claim 24, characterized in that When any one of the following conditions is met, the switching module switches the first sending device from the first operating state to the second operating state: The current time reaches the end time point of the first energy-saving time period; or, The amount of messages buffered by the first communication device at the current time exceeds the reference amount; or, At the current time, the first communication device detects that a second link that is a mutual protection link with the first link fails, wherein the first link is a link between a first sending device and a second receiving device.
26. The communication device according to claim 24 or 25, characterized in that: The first sending device includes a first sub-optical module; the first communication device also includes: a second acquisition module, configured to acquire a target parameter value of a second type of operating parameter of the first sub-optical module, wherein the second type of operating parameter includes parameters related to operating indicators among the operating parameters of the first sub-optical module, and the target parameter value matches an environmental condition when the first sending device is switched from the first operating state to the second operating state; The second setting module is used to set the second type of operating parameters of the first sub-optical module according to the target parameter value.
27. The communication device according to claim 26, characterized in that The second acquisition module is used for: Acquire a target mapping relationship, where the target mapping relationship indicates a mapping relationship between a parameter value of the second type of operating parameter and the environmental condition when the operating indicator is met; Based on the target mapping relationship and the environmental conditions when the first sending device is switched from the first operating state to the second operating state, a target parameter value of the second type of operating parameter is determined.
28. The communication device according to claim 26, characterized in that The first communication device further comprises: A storage module, configured to adaptively adjust the parameter value of the second type of operating parameter of the first sub-optical module based on the current environmental conditions and the operating index in response to the parameter update instruction, and store the adjusted parameter value of the second type of operating parameter of the first sub-optical module; The target parameter value is the parameter value of the second type of operating parameter stored most recently.
29. The communication device according to any one of claims 16 to 28, characterized in that: The first energy-saving strategy is related to traffic statistics information before the current time and within a reference time length from the current time, and the traffic statistics information includes one or more of the average traffic, burst traffic, delay information and packet loss information of the first communication device before the current time and within a reference time length from the current time.
30. The communication device according to any one of claims 16 to 29, characterized in that: The first communication device further includes a first receiving device, the second communication device further includes a second sending device, and the second sending device and the first receiving device are interconnected via an optical fiber; the first communication device further includes: A receiving module, configured to receive second operating parameter adjustment information sent by the second communication device; The third setting module is used to set the first receiving device to a third operating state based on the second operating parameter adjustment information, and when the first receiving device is in the third operating state, the link bandwidth between the first receiving device and the second sending device is a third link bandwidth.
31. A communication device, characterized in that: The communication device includes a processor; The memory is used to store a program that supports the device to execute the method described in any one of claims 1 to 15, and to store data involved in implementing the method described in any one of claims 1 to 15; The processor is configured to execute a program to support the apparatus to execute the method according to any one of claims 1 to 15.
32. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, which, when executed on a communication device, enable the communication device to execute the method according to any one of claims 1 to 15.
Citation Information
Patent Citations
Energy-saving operation method and system for passive optical network service
CN101197627A
Optical network unit (ONU) energy-saving method for improving bandwidth utilization rate
CN101969584A
Optical OFDM energy-saving bandwidth allocation algorithm for electric power communication
CN106878200A
Operation method for passive optic network user terminal
CN1859438A
Energy conservation by means of traffic shaping
US20140255027A1
