Rate adjustment method and apparatus, electronic device, storage medium, and computer program product
By obtaining the predicted service capacity, the Serdes channel rate is dynamically adjusted. By using LUT storage and lookup target rate combination, the continuous power consumption problem of the Serdes channel during small data transmission is solved, realizing dynamic adjustment of Serdes power consumption and energy efficiency improvement.
Patent Information
- Application Number
- CN202410185846.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-19
- Publication Date
- 2026-01-20
- Estimated Expiration
- 2044-02-19
AI Technical Summary
In existing optical transmission equipment, the SerDes channel cannot effectively adjust power consumption, resulting in continuous power consumption even when transmitting small amounts of data, thus failing to achieve energy-saving effects.
By obtaining the predicted value of service capacity, and based on the relationship between the rate and power consumption of different SerDes channels, the rate of each SerDes channel is dynamically adjusted to achieve the target rate combination with the lowest total power consumption. The target rate combination is stored and looked up using a lookup table (LUT) to achieve rapid adjustment.
While ensuring service capacity transmission, the rate of the SerDes channel is dynamically adjusted, reducing total power consumption and improving the energy efficiency of SerDes. This is suitable for power management of SerDes in optical transmission equipment.
Smart Images

Figure CN118826958B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of transmission and bearer, and particularly relates to a rate adjustment method and device, electronic equipment, a storage medium and a computer program product. BACKGROUND
[0002] The communication industry is the foundation of the future economy and the fifth largest energy-consuming industry, accounting for 6% of global energy consumption. A serializer / deserializer (Serdes) is a device that converts parallel data into serial data for transmission and converts received serial data into parallel data. Currently, commercial communication protocols based on the Serdes architecture can achieve a single-channel rate of 112 Gbps. Serdes will be increasingly widely used in future high-bandwidth, low-cost application fields, and the energy consumption generated by Serdes will also be increasingly large. On optical transmission equipment, Serdes on a board card usually uniformly bears traffic. As long as there is a link, Serdes will be used even if the amount of transmitted data is small, so Serdes usually does not actively shut down and continuously generates energy consumption. Therefore, how to effectively adjust and reduce the power consumption of Serdes is a technical problem that needs to be solved. SUMMARY
[0003] The present application provides a rate adjustment method, device, electronic equipment, storage medium and computer program product.
[0004] The present application provides a rate adjustment method, which comprises the following steps.
[0005] Obtaining a predicted value of service capacity.
[0006] Adjusting the rate of each Serdes channel according to the predicted value of service capacity.
[0007] In some embodiments, the step of adjusting the rate of each Serdes channel according to the predicted value of service capacity comprises: adjusting the rate of each Serdes channel according to the predicted value of service capacity, with the goal of reducing the total power consumption of the Serdes channels.
[0008] It can be seen that the present application provides a method for adjusting the rate of each Serdes channel, which can reduce the total power consumption of the Serdes channels after adjustment, thereby achieving the effect of reducing the power consumption of Serdes.
[0009] In some embodiments, the adjusting the rate of the respective Serdes channels according to the predicted value of the traffic volume, aiming to reduce the total power consumption of the respective Serdes channels comprises: determining one or more rate combinations corresponding to each traffic volume; wherein the rate combination represents a combination of respective Serdes channel rates; obtaining power consumption corresponding to different rates of each Serdes channel; obtaining a target rate combination corresponding to each traffic volume from the power consumption corresponding to different rates of each Serdes channel, wherein the target rate combination represents a rate combination corresponding to the minimum total power consumption of the respective Serdes channels; determining a target rate combination corresponding to the predicted value of the traffic volume according to the predicted value of the traffic volume, and adjusting the rate of the respective Serdes channels according to the target rate combination corresponding to the predicted value of the traffic volume.
[0010] It can be seen that for one or more rate combinations corresponding to each traffic volume, the target rate combination corresponding to the minimum total power consumption of each traffic volume can be obtained in advance by obtaining the power consumption corresponding to different rates of each Serdes channel. By obtaining the target rate combination corresponding to the minimum total power consumption of each traffic volume, when the predicted value of the traffic volume is obtained, the target rate combination corresponding to the predicted value of the traffic volume can be directly found according to the predicted value of the traffic volume, and the rate of the respective Serdes channels is adjusted. It is not necessary to measure multiple rate combinations each time, and the target rate combination corresponding to the minimum power consumption of each traffic volume can be quickly obtained.
[0011] In some embodiments, after obtaining the target rate combination corresponding to each traffic volume from the power consumption corresponding to different rates of each Serdes channel, the method further comprises: storing each traffic volume and the target rate combination corresponding to each traffic volume in the form of a display look-up table (LUT).
[0012] It can be seen that each traffic volume and the target rate combination corresponding to each traffic volume are stored in the form of a LUT. When the predicted value of the traffic volume is obtained, the target rate combination corresponding to the predicted value of the traffic volume can be directly found by the LUT, and the rate of the respective Serdes channels is adjusted. The efficiency of adjusting the Serdes rate is improved.
[0013] In some embodiments, the step of determining the target rate combination corresponding to the predicted traffic volume according to the predicted traffic volume, and adjusting the rate of each Serdes channel according to the target rate combination corresponding to the predicted traffic volume, comprises: searching the LUT for the target rate combination corresponding to the predicted traffic volume according to the predicted traffic volume; and adjusting the rate of each Serdes channel according to the target rate combination corresponding to the predicted traffic volume.
[0014] It can be seen that by directly searching the LUT for the target rate combination corresponding to the predicted traffic volume, and adjusting the rate of each Serdes channel according to the target rate combination, the rate of each Serdes channel can be quickly adjusted.
[0015] In some embodiments, the power consumption corresponding to the different rates of each Serdes channel is the nominal power consumption.
[0016] It can be seen that when the power consumption corresponding to the different rates of each Serdes channel is the nominal power consumption, the total power consumption of each Serdes channel can be quickly obtained by directly calculating the nominal power consumption.
[0017] In some embodiments, the step of obtaining the power consumption corresponding to the different rates of each Serdes channel comprises: detecting the current corresponding to the different rates of each Serdes channel; and calculating the power consumption corresponding to the different rates of each Serdes channel according to the current corresponding to the different rates of each Serdes channel.
[0018] It can be seen that the power consumption corresponding to the different rates of each Serdes channel can be obtained by detecting the current corresponding to the different rates of each Serdes channel. By using the actual detection method, the actual power consumption of each Serdes channel in the actual working state can be obtained, and the target rate combination can be more accurately optimized and adjusted by using the actual measured power consumption value.
[0019] In some embodiments, the step of adjusting the rate of each Serdes channel according to the predicted traffic volume comprises: obtaining the current rate of each Serdes channel; searching the LUT for the target rate combination corresponding to the predicted traffic volume according to the predicted traffic volume; determining whether the current rate of each Serdes channel is the same as the target rate combination corresponding to the predicted traffic volume; and adjusting the rate of each Serdes channel according to the target rate combination corresponding to the predicted traffic volume if the current rate of each Serdes channel is not the same as the target rate combination corresponding to the predicted traffic volume.
[0020] It can be seen that in the rate adjustment method of the Serdes, the rate of each Serdes channel can be obtained in real time, and the rate of each Serdes channel is adjusted when the rate of each Serdes channel is different from the target rate combination, so that the rate of each Serdes channel can be maintained in the minimum total power consumption working state under the condition of ensuring the service capacity transmission.
[0021] In some embodiments, the method further includes: receiving a rate adjustment request sent by a service board card; obtaining the predicted value of the service capacity according to the rate adjustment request sent by the service board card; or performing flow monitoring through a management and control system to obtain a flow monitoring result; and obtaining the predicted value of the service capacity according to the flow monitoring result.
[0022] It can be seen that the embodiment specifically gives two methods for obtaining the predicted value of the service capacity, wherein the first method is that the service board card actively performs flow monitoring and actively sends a rate adjustment request, and the second method is that the management and control system actively performs flow monitoring and sends a control instruction, and the service board card is in a passive working mode. Through the above two methods, the predicted value of the service capacity can be obtained, so that there are multiple flow monitoring methods in the whole system, which meets the demand of multiple flow monitoring scenes.
[0023] The embodiment of the present application provides a rate adjustment device of a serializer and deserializer Serdes, the device comprises:
[0024] The obtaining module is configured to obtain a predicted value of a service capacity.
[0025] The processing module is configured to adjust the rate of each Serdes channel according to the predicted value of the service capacity.
[0026] The embodiment of the present application provides an electronic device, which comprises a processor and a memory for storing a computer program capable of running on the processor; wherein the processor is configured to run the computer program to execute the above-mentioned rate adjustment method of a serializer and deserializer Serdes.
[0027] The embodiment of the present application provides a computer storage medium, which stores a computer program, and the computer program is executed by a processor to implement the above-mentioned rate adjustment method of a serializer and deserializer Serdes.
[0028] The embodiment of the present application provides a computer program product, which comprises a computer program, and the computer program is executed by a processor to implement the above-mentioned rate adjustment method of a serializer and deserializer Serdes.
[0029] The embodiment of the present application provides a rate adjustment method and device, electronic equipment, storage medium and computer program product, the predicted value of service capacity can be acquired in advance, the rate of each Serdes channel is adjusted through the predicted value of service capacity, under the premise that the rate of each Serdes channel meets the service capacity demand, the dynamic adjustment of Serdes power consumption is realized, and the power consumption of Serdes is reduced. BRIEF DESCRIPTION OF DRAWINGS
[0030] Figure 1 A Serdes internal structure diagram is provided for the embodiment of the present application;
[0031] Figure 2 A Serdes rate adjustment method flow chart is provided for the embodiment of the present application;
[0032] Figure 3 A structure relationship diagram in an optical transmission device is provided for the embodiment of the present application;
[0033] Figure 4 A Serdes rate adjustment flow chart is provided for the embodiment of the present application;
[0034] Figure 5 A structure schematic diagram of a Serdes rate adjustment device is provided for the embodiment of the present application;
[0035] Figure 6 A component structure schematic diagram of an electronic equipment is provided for the embodiment of the present application. DETAILED DESCRIPTION
[0036] At present, the energy consumption of the communication industry accounts for 6% of the global energy consumption, and how to further compress unit energy consumption and realize energy saving and emission reduction is one of important development directions of the future communication industry.
[0037] Serdes is a kind of "device" for converting parallel data into serial data transmission and converting received serial data into parallel data. At present, the highest rate of a commercial communication protocol based on Serdes architecture can be 112Gbps per channel, and the application in the future high-bandwidth, low-cost field will be more and more extensive. For example, Figure 1 As shown in the figure, Figure 1A Serdes internal structure diagram is shown, which is mainly composed of a physical medium attachment (PMA) and a physical code sublayer (PCS). The PCS is a digital circuit responsible for encoding / decoding of data stream; the PMA is a digital-analog hybrid circuit responsible for parallel-serial / serial-parallel conversion; the Serdes internal structure includes a phase-locked loop module 103 responsible for generating clock signals required by each module of the Serdes and managing the phase relationship between the clocks. The phase-locked loop module 103 includes a receiver 1031, a phase-locked loop (PLL) 1032 and a frequency divider 1033. A Serdes usually also has debugging capabilities, such as pseudo-random code stream generation and comparison, various loopback tests, control state registers and access interfaces, eye diagram tests, etc.
[0038] The Serdes internal structure also includes a transmitting module 101 and a receiving module 102, wherein the transmitting module 101 includes a first PCS layer 1011 and a first PMA layer 1012, the first PCS layer 1011 includes an interface FIFO (First In First Out, FIFO) and an encoder / scrambler, and the first PMA layer 1012 includes a serializer, an equalizer and a driver. The receiving module 102 includes a second PCS layer 1022 and a second PMA layer 1021, the second PMA layer 1021 includes a receiver, a linear equalizer / decision feedback equalizer (DFE), a clock data recovery (CDR) and a deserializer, and the second PCS layer 1022 includes a decoder / descrambler, a flexible FIFO and an interface FIFO.
[0039] In order to reduce the energy consumption of the communication industry, in a related technology, a switch power consumption dynamic adjustment method is given, the switch includes a central processing unit (CPU), a switch chip, a port physical layer (PHY) and an external port connected in sequence, the power consumption dynamic adjustment method includes: judging the use state of the external port; feeding back the use state of the external port to the CPU; the CPU controls the power supply of the corresponding external port according to the use state of the external port. This method detects the connection state of the external port, controls the corresponding Serdes port on the switch chip, and once there is no connection to the external port, the power supply corresponding to the switch chip port related to the external port of this road is turned off, so that the corresponding function module of the switch chip is in a completely closed state, when it is detected that the external port has a fiber or network cable access, the power supply of the corresponding port of the switch chip related to the external port of this road is turned on, thereby realizing dynamic loading of the Serdes port of the switch chip and achieving the purpose of energy saving.
[0040] From the above related technology, it can be seen that in the related technology, the use state of the Serdes or its components and interfaces is mainly judged, whether it is used or not, and then feedback is given to the CPU, and the Serdes is controlled to be turned off. This scheme depends on the judgment of the port state, and is suitable for the scene where the port will be idle actively. However, in optical transmission equipment, a flow balancing scheme is usually used, that is, the Serdes on the board uniformly bears the flow, and as long as there is a link, even if the amount of data transmitted is small, it will be used and will not be closed actively, resulting in that the above scheme does not match the application scene. The present application proposes a method of adjusting the rate of each Serdes channel according to the business capacity prediction value, which does not depend on the judgment of the use state of the external port, but adjusts the rate of each Serdes channel by judging the business capacity prediction value, which can also achieve the effect of reducing power consumption during device use.
[0041] In view of the above problems, the embodiments of the present application give a rate adjustment method, device, electronic equipment, storage medium and computer program product, which can obtain the rate of each Serdes channel corresponding to the prediction value of different business capacity according to the different power consumption of different Serdes rates, and dynamically adjust the rate of each Serdes channel according to the prediction value of different business capacity, which is conducive to reducing the power consumption of the Serdes channel.
[0042] The embodiments of the present application will be further described in conjunction with the accompanying drawings and embodiments. It is to be understood that the embodiments provided herein are only used to explain the embodiments of the present application and not used to limit the embodiments of the present application. In addition, the embodiments provided below are used to implement some embodiments of the present application, and the technical solutions described in the embodiments of the present application can be combined in any manner without conflict.
[0043] It should be noted that in the embodiments of the present application, the terms "comprising", "containing" or any other variants thereof are intended to cover non-exclusive containing, so that the method or device comprising a series of elements not only includes the elements explicitly described, but also includes other elements not explicitly listed or inherent elements for implementing the method or device. Without more limitation, the elements defined by the statement "comprising" do not exclude the presence of other related elements (for example, steps in the method or units in the device, for example, the units in the device can be part of the circuit, part of the processor, part of the program or software, etc.) in the method or device comprising the elements.
[0044] The Serdes rate adjustment method provided by the embodiments of the present application includes a series of steps, but the Serdes rate adjustment method provided by the embodiments of the present application is not limited to the steps described. Similarly, the Serdes rate adjustment device provided by the embodiments of the present application includes a series of modules, but the device provided by the embodiments of the present application is not limited to including the modules explicitly described, and can also include modules required for obtaining relevant information or processing based on information.
[0045] Figure 2 A flow chart of a Serdes rate adjustment method provided by the embodiments of the present application is shown in FIG. 1, and the method comprises the following steps. Figure 2
[0046] Step 201: Obtain a predicted value of service capacity.
[0047] Here, the predicted value of service capacity can be obtained by traffic monitoring, or the predicted value of service capacity can be obtained by fixed service in a fixed time period, and the method for obtaining the predicted value of service capacity is not limited by the present application.
[0048] Step 202: Adjust the rate of each Serdes channel according to the predicted value of service capacity.
[0049] Serdes is a mainstream time division multiplexing, point-to-point serial communication technology. Generally, when data transmission is performed, transmission is performed through a plurality of Serdes channels, and the total transmission rate of the plurality of Serdes channels needs to be greater than or equal to the service capacity.
[0050] For example, assuming that the transmission rate supported by the Serdes is 112Gbps, 56Gbps and 28Gbps, and the original service capacity is 100Gbps, the Serdes needs to work at 112Gbps, and since the working rate is greater than 100Gbps, the Serdes is in an oversampling state; when the service capacity decreases, if the predicted value of the service capacity is still higher than 56Gbps, the working rate of the Serdes does not need to be adjusted, if the predicted value of the service capacity is equal to or lower than 56Gbps and higher than 28Gbps, the rate of the Serdes needs to be adjusted to 56Gbps; when the predicted value of the service capacity is equal to or lower than 28Gbps, the rate of the Serdes is adjusted to 28Gbps. When the service capacity increases, the operation logic of the rate adjustment of the Serdes is the same. More specifically, assuming that the number of compatible rates of each Serdes channel is n, then each Serdes channel corresponds to n+1 states (including the off state), and the power consumption corresponding to each state is P m (0<=m<=n).
[0051] Since when data is transmitted through the Serdes, there can be multiple Serdes channels transmitting at the same time, and each Serdes channel can transmit at different rates, when a service capacity is determined, the service capacity can be transmitted through multiple Serdes channels, at this time, only the total rate of the Serdes channels needs to be greater than or equal to the service capacity, then the lossless transmission of the service capacity can be completed. For example, when the service capacity is 100Gbps, the rate of each Serdes channel needs to be in a state greater than or equal to 100Gbps to realize transmission. Therefore, after the predicted value of the service capacity is obtained, the rate of each Serdes channel can need to be adjusted.
[0052] The embodiment provides a method for adjusting the rate of each Serdes channel according to the predicted value of the service capacity, which can adjust the rate of each Serdes channel through the prediction of the service capacity, realize the dynamic adjustment of the rate of the Serdes, and is beneficial to reducing the power consumption of the Serdes.
[0053] In practical applications, steps 201 to 202 can be implemented based on a processor, which can be at least one of an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), a Programmable Logic Device (PLD), a Field Programmable Gate Array (FPGA), a Central Processing Unit (CPU), a controller, a microcontroller, or a microprocessor.
[0054] In some embodiments, the rate of each Serdes channel is adjusted according to the predicted value of the service capacity, including: adjusting the rate of each Serdes channel according to the predicted value of the service capacity, with the goal of reducing the total power consumption of each Serdes channel.
[0055] Figure 3 A structural relationship diagram in an optical transmission device is shown, which includes a cabinet 301, the cabinet 301 including a cabinet 301 internal board space position relationship structure 302, wherein the management and control system 303 can control the main control board card 304, and the main control board card 304 can control the service board card 305 and the cross board card 306. In the optical transmission device, the service board card 305 and the cross board card 306 are connected through Serdes. To ensure the transmission service capacity, the Serdes rate of the commercially available Serdes is generally at least 28Gbps. To expand the application range of the commercially available Serdes, the Serdes rate provided by the manufacturer is generally downward compatible, and the same commercially available Serdes can support multiple transmission rates. Since the higher the rate is, the greater the channel insertion loss is, and the greater the corresponding Serdes power consumption is, more analog / digital algorithm modules are needed for compensation, which will bring greater power consumption; at the same time, the higher the rate is, the greater the corresponding clock frequency is, which will also bring greater power consumption. Therefore, generally, the higher the Serdes transmission rate is, the greater the power consumption is.
[0056] The skilled in the art can know that the Serdes rate can be set according to the actual situation, but generally, the transmission rate supported by the Serdes commonly used in the art is 112Gbps, 56Gbps and 28Gbps, etc. The application takes the transmission rate supported by the Serdes commonly used in the art as an example, when the service capacity is 100Gbps, the Serdes needs to work at 112Gbps at this time, since 112Gbps is greater than the service capacity corresponding to 100Gbps, the Serdes is in an oversampling state. Assuming that the channel of the Serdes has 5 groups, when the service capacity is 100Gbps, the rate combination of the Serdes may have multiple forms, for example, the possible rate combination of the Serdes has: G1(112Gbps, 0Gbps, 0Gbps, 0Gbps, 0Gbps), G2(56Gbps, 56Gbps, 0Gbps, 0Gbps, 0Gbps) or G3(28Gbps, 28Gbps, 28Gbps, 28Gbps, 0), etc. It can be seen that when the service capacity is 100Gbps and the channel of the Serdes has 5 groups, at least three rate combinations G1, G2 and G3 of the Serdes correspond, wherein the rate combination G1, G2 or G3 can complete the transmission of the service capacity of 100Gbps. Since the power consumption corresponding to different rates is different, generally, the power consumption corresponding to 0, 28Gbps, 56Gbps and 112Gbps increases in turn, so the total power consumption corresponding to different rate combinations is also different. Therefore, in the process of adjusting the rate of each Serdes channel according to the predicted value of the service capacity, the rate combination of the Serdes channel corresponding to the total power consumption of the predicted value of the service capacity should be found as the target of reducing the total power consumption of each Serdes channel to the minimum.
[0057] In some embodiments, according to the predicted value of the service capacity, the rate of each Serdes channel is adjusted to the minimum total power consumption of each Serdes channel as the target, including: determining one or more rate combinations corresponding to each service capacity; wherein the rate combination represents the combination of the rate of each Serdes channel; obtaining the power consumption corresponding to the different rates of each Serdes channel; obtaining the target rate combination corresponding to each service capacity through the power consumption corresponding to the different rates of each Serdes channel, wherein the target rate combination represents the rate combination corresponding to the minimum total power consumption of each Serdes channel; determining the target rate combination corresponding to the predicted value of the service capacity according to the predicted value of the service capacity, and adjusting the rate of each Serdes channel according to the target rate combination corresponding to the predicted value of the service capacity.
[0058] Since different service capacities can correspond to one or more rate combinations, when the first service capacity corresponds to only one rate combination, the total power consumption of the only one rate combination can be obtained, and the only one rate combination is taken as the first target rate combination of the first service capacity; when the second service capacity corresponds to multiple rate combinations, the power consumption corresponding to different rates of each Serdes channel can be obtained, and then the total power consumption of each rate combination corresponding to the multiple rate combinations is obtained, and the rate combination of the Serdes channel with the minimum total power consumption is selected as the second target rate combination corresponding to the second service capacity.
[0059] According to the above method, the target rate combination corresponding to each service capacity can be obtained in advance, and when the predicted value of the service capacity is obtained, the target rate combination corresponding to the predicted value of the service capacity can be found according to the predicted value of the service capacity, and the rate of each Serdes channel can be adjusted.
[0060] In actual application, in order to facilitate subsequent searching of the target rate combination corresponding to the service capacity, each service capacity and the target rate combination corresponding to each service capacity can be stored, and the specific storage mode can be completed by selecting a suitable table, software or other form according to actual conditions.
[0061] In some embodiments, after obtaining the target rate combination corresponding to each service capacity through the power consumption corresponding to different rates of each Serdes channel, the method further includes: storing each service capacity and the target rate combination corresponding to each service capacity in the form of a display lookup table (LUT).
[0062] After obtaining the target rate combination corresponding to each service capacity, each service capacity and the target rate combination corresponding to each service capacity can be stored in the form of a display lookup table (LUT), and the display lookup table (LUT) is essentially a random access memory (RAM), which writes data into the RAM in advance, and whenever a signal is input, an address is input to perform table lookup, find out the content corresponding to the address, and then output. By storing each service capacity and the target rate combination corresponding to each service capacity in the form of a LUT, convenience can be provided for subsequent determination of the target rate combination of the predicted value of the service capacity and adjustment of the rate of each Serdes channel.
[0063] Table 1 below shows the LUT table form of each service capacity and the target rate combination corresponding to each service capacity:
[0064] Table 1
[0065] Serdes 1 Serdes 2 ...... Serdes M [B1-B2] P 11 ]]> P 12 ]] ...... P 1M ]]> [B2-B3] P 21 ]]> P 22 ]]> ...... P 2M ]]> ...... ...... ...... ...... ...... B m ~B m+1 ]] P m1 ]]> P m2 ]]> ...... P mM ]]>
[0066] B1 to B m+1 Different service capacities are represented in the first column of Table 1, i.e. different service capacities are represented in the first column of Table 1, and due to the non-infinitesimal granularity of the rate adjustment of the Serdes (here, the granularity of the rate adjustment refers to the step size of the rate adjustment), there can be a case where the rate of the Serdes does not need to be adjusted when the service capacity demand changes. Assuming that the granularity of the rate adjustment of the Serdes is G, the different target rate combinations corresponding to 0 to the maximum service capacity are calculated at the granularity of G, and different service capacities can correspond to the same target rate combination, for example, the service capacity of 100 Gbps and the service capacity of 105 Gbps can correspond to the same target rate combination, at which time, the service capacities with the same target rate combination are combined together, i.e. the service capacity of 100 Gbps and the corresponding target rate combination, and the service capacity of 105 Gbps and the corresponding target rate combination are combined and represented in a row in Table 1; the first row of Table 1 represents different Serdes channels, and here, it is assumed that the number of Serdes channels is M, and when the service capacity is B, there can be multiple rate combinations W1, W2,..., W m Due to the non-infinitesimal granularity of the rate adjustment of the Serdes, for example, the granularity of the adjustment can be 28 Gbps, as described above, W1+W2+...+W m The value of B is greater than or equal to B, at which time, the Serdes can be in an oversampling state. According to the method given in the embodiment, the target rate combination with the minimum total power consumption is determined; the first row of Serdes n represents different Serdes channels, and after the target rate combination of the service capacity B is determined, the rates corresponding to the channels in the target rate combination of the service capacity B are sequentially filled in the different Serdes channels in Table 1.
[0067] In some embodiments, according to the predicted value of the service capacity, a target rate combination corresponding to the predicted value of the service capacity is determined, and the rates of the Serdes channels are adjusted according to the target rate combination corresponding to the predicted value of the service capacity, including: according to the predicted value of the service capacity, searching for the target rate combination corresponding to the predicted value of the service capacity in the LUT; and adjusting the rates of the Serdes channels according to the target rate combination corresponding to the predicted value of the service capacity.
[0068] According to the above method, after the LUT is established, the predicted value of the service capacity can be used to first find the target row position of the LUT corresponding to the predicted value of the service capacity in the first column of the LUT, and then the rates of the Serdes channels are adjusted according to the rates of the Serdes channels already in the target row position of the LUT.
[0069] In some embodiments, the power consumption corresponding to different Serdes rates of each Serdes channel is the nominal power consumption.
[0070] Since the manufacturer provides the nominal power consumption of different Serdes rates, the power consumption corresponding to different Serdes rates is known at this time, so in the process of obtaining the target rate combination in the above method, the total power consumption of each rate combination can be calculated based on the nominal power consumption of different Serdes rates provided by the manufacturer according to the rate combination.
[0071] Table 2 gives the nominal power consumption corresponding to different Serdes rates, and it can be seen that each Serdes rate corresponds to a nominal power consumption, so the total power consumption corresponding to the rate combination of different Serdes channels can be obtained according to the rate combination of different Serdes channels, and the rate of each Serdes channel is adjusted according to the rate combination with the minimum total power consumption.
[0072] Table 2
[0073] Serdes compatible rates Power consumption for different rates 0 0 [CD AT W1] [P2] [CD AT W2] [P2] ...... ...... [WC m ]]> P n ]]>
[0074] In some embodiments, obtaining the power consumption corresponding to different rates of each Serdes channel includes detecting the current corresponding to different rates of each Serdes channel, and calculating the power consumption corresponding to different rates of each Serdes channel according to the current corresponding to different rates of each Serdes channel.
[0075] Under the premise of meeting the service capacity transmission, the target rate combination with the minimum total power consumption can also be obtained in the actual power consumption measurement mode. Since there may be a certain deviation between the actual power consumption and the nominal power consumption of the Serdes in the present network operation, the target rate combination with the minimum power consumption corresponding to different service capacities obtained based on the nominal power consumption may have optimization space, so the actual power consumption can be measured, and the optimal target rate combination can be obtained based on the result of the actual power consumption measurement. The specific operation process is as follows:
[0076] Since there is a current monitoring register in the power supply chip in the optical module, which records the working current of each module, when the read function is opened, the working current corresponding to each Serdes channel can be obtained, and the control system 303 can calculate the power consumption corresponding to different rates of each Serdes channel according to the working current and the working voltage (generally a fixed value) of the corresponding module.
[0077] Assuming that the rate adjustment granularity of the Serdes channel is G, and taking G as the rate adjustment granularity, through the control system 303, from 0 to B max (B maxThe power consumption of the multiple rate combinations of the Serdes corresponding to different service capacities is traversed to obtain different power consumptions under different rate combinations of the Serdes channels, and the target rate combination corresponding to the minimum total power consumption of the current service capacity is obtained according to the measured power consumptions corresponding to different rates of different Serdes channels.
[0078] In some embodiments, the rate of each Serdes channel is adjusted according to the predicted value of the service capacity, including: obtaining the rate of each current Serdes channel; searching for the target rate combination corresponding to the predicted value of the service capacity in the LUT according to the predicted value of the service capacity; determining whether the rate of each current Serdes channel is the same as the target rate combination corresponding to the predicted value of the service capacity; and adjusting the rate of each Serdes channel according to the target rate combination corresponding to the predicted value of the service capacity if the rate of each current Serdes channel is different from the target rate combination corresponding to the predicted value of the service capacity.
[0079] The embodiment provides a method for dynamically adjusting the rate of each Serdes channel. Since the traffic balancing scheme is usually used on the optical transmission device, that is, the Serdes channels on the board card uniformly bear the traffic, the Serdes channel will be used even if the amount of data transmitted therein is small as long as there is a connection, and will not be actively closed. Therefore, the rate of each current Serdes channel can be obtained before the rate of each Serdes channel is adjusted, and the target rate combination corresponding to the predicted value of the service capacity can be searched for in the LUT. When the target rate combination is the same as the rate of each current Serdes channel, the rate of the Serdes channel does not need to be adjusted. When the target rate combination is different from the rate of each current Serdes channel, the rate of each Serdes channel is adjusted according to the target rate combination.
[0080] According to Figure 3 As shown in the structure relationship diagram of the optical transmission device, the service board card 305 and the cross board card 306 are interconnected through Serdes, and are under the control of the management and control system 303. Therefore, the predicted value of the service capacity can be obtained in the following form:
[0081] In some embodiments, the method for obtaining the predicted value of the service capacity can include: receiving the rate adjustment request sent by the service board card 305; obtaining the predicted value of the service capacity according to the rate adjustment request sent by the service board card 305; or obtaining the traffic monitoring result by monitoring the traffic through the management and control system; and obtaining the predicted value of the service capacity according to the traffic monitoring result.
[0082] In combination with Figure 3In terms of the structural relationship diagram of the optical transmission device shown, the predicted value of the service capacity can be obtained in a "top-down" manner and a "bottom-up" manner, and the working methods corresponding to the two manners are as follows:
[0083] When the predicted value of the service capacity is obtained in the "top-down" manner, the management is performed downward by the management and control system 303, the flow monitoring and the issuing of control instructions are performed, and the service board card 305 is in a passive working mode. The service board card 305 responds to the control instruction issued by the management and control system 303. The upper layer of the management and control system 303 has a scheduling system. The scheduling system informs the management and control system 303 according to the flow transmission demand of the core data center of the bearer network, and the management and control system 303 responds and issues a flow adjustment instruction.
[0084] The flow monitoring can be performed by the management and control system 303, and the flow monitoring result can be obtained. When the flow changes, the management and control system 303 obtains the predicted value of the service capacity according to the change value of the flow, judges whether the rate adjustment of the Serdes is needed on the basis of the original state of the Serdes and with reference to the LUT. If the rate adjustment of the Serdes is needed, the Serdes channel that needs to be adjusted is selected, and a rate adjustment instruction is issued. The service board card 305 and the cross board card 306 respond to the instruction and adjust the rate of the corresponding Serdes channel. If the rate adjustment is not needed or when the flow does not change, no operation is performed.
[0085] When the predicted value of the service capacity is obtained in the "bottom-up" manner, the management is performed upward by the service board card 305, that is, the flow monitoring is performed by the service board card 305 and the request information is issued. At this time, the service board card 305 is in an active working mode. For example, when there is a local service adjustment, the service board card 305 can actively monitor whether the optical module emits light, that is, whether there is a service demand to judge the current flow demand. If the flow changes, the service board card 305 sends a rate adjustment request upward. After the management and control system 303 responds, a control instruction is issued to adjust or not to adjust the rate of the Serdes.
[0086] Here, the flow monitoring is performed by the service board card 305, and the flow monitoring result is obtained. When the flow changes, the service board card 305 reports a rate adjustment request. The management and control system 303 responds, judges whether the rate adjustment of the Serdes is needed on the basis of the original state of the Serdes and with reference to the LUT. If the rate adjustment of the Serdes is needed, the Serdes channel that needs to be adjusted is selected, and a rate adjustment instruction is issued. The service board card 305 and the cross board card 306 respond to the instruction and adjust the rate of the corresponding Serdes channel. If the rate adjustment is not needed or when the flow does not change, no operation is performed.
[0087] Here the host board card 304 can monitor whether the data cross of the service board card 305 and the cross board card 306 is wrong, if the data cross is executed successfully and works normally, the management and control system 303 is reported normally, and the rate adjustment process is ended; if the data cross is wrong or works abnormally, the task is rolled back, the device fault alarm is reported, and the adjustment process is ended.
[0088] In actual operation process, one of the "from bottom to top" mode and / or "from top to bottom" mode can be selected to obtain the predicted value of the service capacity.
[0089] Figure 4 A rate adjustment flowchart of a Serdes channel is shown, as shown in Figure 4
[0090] Step 401: start.
[0091] Step 402: the traffic change on the board card is monitored by the management and control system 303, or the service change instruction is issued by the management and control system 303, or the service board card 305 monitors the traffic change of itself, and the traffic change is predicted.
[0092] This step corresponds to the "from bottom to top" mode and / or "from top to bottom" mode for traffic monitoring.
[0093] Step 403: according to the predicted value of the service capacity, the target rate combination of each Serdes channel is given in combination with LUT.
[0094] Based on the state of the original Serdes, the target rate combination of each Serdes channel corresponding to the predicted value of the service capacity is found in LUT according to the predicted value of the service capacity.
[0095] Step 404: the target rate combination of each Serdes channel is compared with the current Serdes channel rate; when the target rate combination is different from the current Serdes channel rate, i.e. there is a change, step 405 is executed; when the target rate combination is the same as the current Serdes channel rate, i.e. there is no change, step 409 is executed.
[0096] Step 405: wait for service traffic change.
[0097] Step 406: according to LUT, the Serdes channel which needs to be adjusted is judged, the corresponding cross mapping matrix is modified, and the new cross mapping matrix is executed.
[0098] When there is a Serdes channel which needs to be adjusted, the corresponding cross mapping matrix is modified according to the target rate combination in LUT, and the new cross mapping matrix is executed.
[0099] Step 407: detecting whether the service is normal; if normal, executing step 412, if abnormal, executing step 408.
[0100] After the rate adjustment of the Serdes, service detection is also needed, when the service is detected to be normal, it indicates that the adjusted rate of the Serdes meets the current service transmission requirement, otherwise, it is considered that the adjusted rate of the Serdes cannot meet the current service transmission requirement.
[0101] Step 408: reporting the device failure alarm.
[0102] When the adjusted rate of the Serdes cannot meet the current service transmission requirement, the device failure alarm can be reported to the management and control system 303.
[0103] Step 409: waiting for service flow change.
[0104] Here, the waiting for service flow change can also be selected to be in the above-mentioned "from bottom to top" manner and / or "from top to bottom" manner.
[0105] Step 410: detecting whether the service is normal; if normal, executing step 412, if abnormal, executing step 411.
[0106] Step 411: reporting the device failure alarm.
[0107] When the service is detected to be abnormal, the device failure alarm can be reported to the management and control system 303.
[0108] Step 412: ending.
[0109] The embodiment gives a rate adjustment method of the Serdes, which can obtain the predicted value of the service capacity, adjust the rate of each Serdes channel through the predicted value of the service capacity, make the Serdes rate meet the transmission requirement of the service capacity, can adjust the rate of the Serdes in real time according to the predicted value of the service capacity, and is beneficial to reduce the power consumption of the Serdes.
[0110] Those skilled in the art can understand that in the above-mentioned method of the specific embodiment, the writing order of each step does not mean strict execution order and constitute any limitation on the implementation process, and the specific execution order of each step should be determined by its function and possible internal logic.
[0111] On the basis of the rate adjustment method of the Serdes proposed in the foregoing embodiment, the embodiment of the application further proposes a rate adjustment device of the Serdes.
[0112] Figure 5A structural schematic diagram of a Serdes rate adjustment device provided by an embodiment of the present application is shown in the figure. The device comprises:
[0113] An obtaining module 501 is configured to obtain a predicted value of service capacity.
[0114] A processing module 502 is configured to adjust the rate of each Serdes channel according to the predicted value of service capacity.
[0115] In actual application, the obtaining module 501 and the processing module 502 can be realized based on a processor and a communication device.
[0116] In some embodiments, the processing module 502 is specifically configured to adjust the rate of each Serdes channel according to the predicted value of service capacity, with the goal of reducing the total power consumption of the Serdes channels.
[0117] In some embodiments, the obtaining module 501 is further configured to obtain the power consumption corresponding to different rates of each Serdes channel.
[0118] The processing module 502 is specifically configured to determine one or more rate combinations corresponding to each service capacity, wherein the rate combination represents a combination of rates of each Serdes channel; obtain a target rate combination corresponding to each service capacity through the power consumption corresponding to different rates of each Serdes channel, wherein the target rate combination represents a rate combination corresponding to the minimum total power consumption of each Serdes channel; determine a target rate combination corresponding to the predicted value of service capacity according to the predicted value of service capacity, and adjust the rate of each Serdes channel according to the target rate combination corresponding to the predicted value of service capacity.
[0119] In some embodiments, the processing module 502 is further configured to store each service capacity and the target rate combination corresponding to each service capacity in the form of a display lookup table (LUT).
[0120] In some embodiments, the processing module 502 is specifically configured to look up a target rate combination corresponding to the predicted value of service capacity in the LUT according to the predicted value of service capacity, and adjust the rate of each Serdes channel according to the target rate combination corresponding to the predicted value of service capacity.
[0121] In some embodiments, the obtaining module 501 is further configured to obtain the nominal power consumption corresponding to different rates of each Serdes channel.
[0122] In some embodiments, the obtaining module 501 is further configured to detect currents corresponding to different rates of each Serdes channel; and calculate power consumptions corresponding to different rates of each Serdes channel according to the currents corresponding to different rates of each Serdes channel.
[0123] In some embodiments, the obtaining module 501 is further configured to obtain the rates of the current Serdes channels; the processing module 502 is specifically configured to: search for a target rate combination corresponding to the predicted value of the service capacity in the LUT according to the predicted value of the service capacity; determine whether the rates of the current Serdes channels are the same as the target rate combination corresponding to the predicted value of the service capacity; and if the rates of the current Serdes channels are different from the target rate combination corresponding to the predicted value of the service capacity, adjust the rates of the Serdes channels according to the target rate combination corresponding to the predicted value of the service capacity.
[0124] In some embodiments, the obtaining module 501 is further configured to receive a rate adjustment request sent by the service board card 305; obtain the predicted value of the service capacity according to the rate adjustment request sent by the service board card 305; or obtain a traffic monitoring result by traffic monitoring through the management and control system; and obtain the predicted value of the service capacity according to the traffic monitoring result.
[0125] It should be noted that the above description of the device embodiments is similar to the above description of the method embodiments, and has similar beneficial effects as the method embodiments. For technical details not disclosed in the device embodiments of the present application, please refer to the description of the method embodiments of the present application for understanding.
[0126] The present application also provides an electronic device. Figure 6 As shown in FIG. 6, the electronic device 60 can include: Figure 6
[0127] The memory 601 is configured to store executable instructions.
[0128] The processor 602 is configured to execute the executable instructions stored in the memory 601, and implement any of the above Serdes rate adjustment methods.
[0129] The processor 602 can be at least one of an ASIC, a DSP, a DSPD, a PLD, an FPGA, a CPU, a controller, a microcontroller, and a microprocessor.
[0130] The computer readable storage medium or the memory 601 can be a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), a Ferromagnetic Random Access Memory (FRAM), a Flash Memory, a magnetic surface memory, an optical disc, a Compact Disc Read-Only Memory (CD-ROM), or the like memory; or can be various terminals including one or any combination of the above memories, such as a mobile phone, a computer, a tablet device, a personal digital assistant, and the like.
[0131] It should be noted that, in the embodiments of the present application, if the above-mentioned method is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer readable storage medium. Based on this understanding, the technical solutions of the embodiments of the present application can be embodied in the form of a software product, which is stored in a storage medium and includes a number of instructions for causing a computer device (which can be a terminal, a server, or the like) to execute all or part of the methods described in the embodiments of the present application. The aforementioned storage medium includes: a U disk, a mobile hard disk, a Read Only Memory (ROM), a magnetic disk or an optical disk, and various other media that can store program codes. Thus, the embodiments of the present application are not limited to any particular hardware and software combination.
[0132] Correspondingly, the embodiments of the present application further provide a computer storage medium, and the computer storage medium stores a computer program and computer executable instructions, and the computer program and computer executable instructions are used to implement any one of the Serdes rate adjustment methods provided by the above-mentioned embodiments.
[0133] Correspondingly, the embodiments of the present application further provide a computer program product, and the computer program product includes a computer program and computer executable instructions, and the computer program and computer executable instructions are used to implement any one of the Serdes rate adjustment methods provided by the embodiments of the present application.
[0134] In some embodiments, the apparatus provided by the embodiments of the present application has functions or includes modules that can be used to perform the methods described in the above method embodiment, and the specific implementation can be referred to the description of the above method embodiments. For simplicity, details are not described here.
[0135] The above description of various embodiments tends to emphasize the differences between various embodiments, and the same or similar parts can be referred to each other. For simplicity, details are not described here.
[0136] The methods disclosed in each of the method embodiments of the present application can be combined arbitrarily without conflict, to obtain new method embodiments.
[0137] The features disclosed in each of the product embodiments of the present application can be combined arbitrarily without conflict, to obtain new product embodiments.
[0138] The features disclosed in each of the method or device embodiments of the present application can be combined arbitrarily without conflict, to obtain new method or device embodiments.
[0139] From the above description of the embodiments, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be realized by means of software plus a general hardware platform required, and of course can also be realized by hardware, but in many cases the former is a better embodiment. Based on such understanding, the technical solutions of the present application can be embodied in the form of a software product in essence or in the form of a part that contributes to the prior art. The computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions to make a terminal (which can be a mobile phone, computer, server, air conditioner, or network equipment, etc.) execute the methods described in various embodiments of the present application.
[0140] The embodiments of the present application are described above in combination with the drawings, but the present application is not limited to the above specific embodiments. The above specific embodiments are only illustrative, not restrictive, and those skilled in the art can make many forms under the inspiration of the present application without departing from the scope of the present application and the protection scope of the claims.
Claims
1. A method for adjusting the rate of a serializer and a deserializer (Serdes), characterized in that, The method includes: Obtain the predicted value of business capacity; Based on the predicted service capacity, the rate of each Serdes channel is dynamically adjusted. The step of dynamically adjusting the rate of each SerDes channel based on the predicted service capacity includes: Determine one or more rate combinations corresponding to each service capacity; wherein, the rate combination represents the combination corresponding to the rates of each SerDes channel; Obtain the power consumption corresponding to different rates for each Serdes channel; By using the power consumption corresponding to different rates of each Serdes channel, the target rate combination corresponding to each service capacity is obtained, wherein the target rate combination represents the rate combination corresponding to the minimum total power consumption of each Serdes channel. Based on the predicted service capacity, a target rate combination corresponding to the predicted service capacity is determined, and the rate of each SerDes channel is adjusted according to the target rate combination corresponding to the predicted service capacity.
2. The method according to claim 1, characterized in that, After obtaining the target rate combination corresponding to each service capacity by the power consumption corresponding to different rates of each SerDes channel, the method further includes: The capacity of each service and the target rate corresponding to each service capacity are combined and stored in the form of a display lookup table (LUT).
3. The method according to claim 2, characterized in that, The step of determining the target rate combination corresponding to the predicted service capacity based on the predicted service capacity, and adjusting the rate of each SerDes channel according to the target rate combination corresponding to the predicted service capacity, includes: Based on the predicted value of the service capacity, find the target rate combination corresponding to the predicted value of the service capacity in the LUT; The rates of each Serdes channel are adjusted based on the target rate combination corresponding to the predicted service capacity.
4. The method according to claim 1, characterized in that, The power consumption corresponding to the different rates of each Serdes channel is the nominal power consumption.
5. The method according to claim 1, characterized in that, The process of obtaining the power consumption corresponding to different rates for each SerDes channel includes: Detect the current corresponding to different rates in each Serdes channel; The power consumption corresponding to the different rates of each Serdes channel is calculated based on the current corresponding to the different rates of each Serdes channel.
6. The method according to claim 2, characterized in that, The step of dynamically adjusting the rate of each SerDes channel based on the predicted service capacity includes: Get the current rate of each Serdes channel; Based on the predicted value of the service capacity, find the target rate combination corresponding to the predicted value of the service capacity in the LUT; determine whether the current rate of each Serdes channel is the same as the target rate combination corresponding to the predicted value of the service capacity. If the current rate of each SerDes channel differs from the target rate combination corresponding to the predicted service capacity, the rate of each SerDes channel is adjusted according to the target rate combination corresponding to the predicted service capacity.
7. The method according to claim 1, characterized in that, The acquisition of the predicted value of service capacity includes: Receive rate adjustment requests sent by service boards; Based on the rate adjustment request sent by the service board, obtain the predicted value of the service capacity; Alternatively, traffic monitoring results can be obtained through a management and control system. Based on the traffic monitoring results, a predicted value for the service capacity is obtained.
8. A rate adjustment device for a serializer and a deserializer (Serdes), characterized in that, The device includes: The acquisition module is used to obtain the predicted value of the business capacity; A processing module is configured to determine one or more rate combinations corresponding to each service capacity; wherein the rate combination represents a combination corresponding to the rates of each SerDes channel; obtain the power consumption corresponding to different rates of each SerDes channel; obtain the target rate combination corresponding to each service capacity based on the power consumption corresponding to different rates of each SerDes channel, wherein the target rate combination represents the rate combination corresponding to the minimum total power consumption of each SerDes channel; determine the target rate combination corresponding to the predicted value of the service capacity based on the predicted value of the service capacity; and adjust the rate of each SerDes channel based on the target rate combination corresponding to the predicted value of the service capacity.
9. An electronic device, characterized in that, The electronic device includes a processor and a memory for storing computer programs capable of running on the processor; wherein, The processor is used to run the computer program to perform the method according to any one of claims 1 to 7.
10. A computer storage medium having a computer program stored thereon, characterized in that, When executed by a processor, the computer program implements the method described in any one of claims 1 to 7.
11. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the method of any one of claims 1 to 7.
Citation Information
Patent Citations
Switch power consumption dynamic adjustment method
CN111092739A
Multiple ports with different baud rates on single serial deserializer
CN114514710A