Communication method and related equipment

By determining the actual bandwidth that should be used in the Ethernet port network, reducing the effective bandwidth of the MII interface and closing the PMA processing of non-target channels, the problem of redundant bandwidth of the network hardware is solved, and the energy saving and operational cost reduction of the Ethernet port are achieved.

CN120567690APending Publication Date: 2025-08-29HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410232688.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-02-29
Publication Date
2025-08-29

AI Technical Summary

Technical Problem

In Ethernet networks, there is a problem of large redundancy in network hardware bandwidth relative to the actual transmission bandwidth, resulting in increased energy loss and increased operational expenditure. Especially under the tidal characteristics of the network, the existing LPI technology is not suitable for long-term low traffic conditions.

Method used

By determining the actual bandwidth that should be used, reducing the effective bandwidth of the MII interface, and distributing data symbols to the target channel of the Ethernet port, and distributing fill symbols to the non-target channel and closing the PMA processing, flexible rate adjustment of the Ethernet port is achieved.

Benefits of technology

It effectively reduces the power consumption of the Ethernet port, reduces operational expenses, adapts to the situation of long-term low traffic, while maintaining the bandwidth requirements of both communication parties.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120567690A_ABST
    Figure CN120567690A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a communication method and related equipment, and the method comprises the steps that first network equipment determines the actual bandwidth which should be used by an Ethernet interface, and the first network equipment communicates with second network equipment through the Ethernet interface. And setting the effective bandwidth of the MII interface to be the actually used bandwidth, and processing the message data received from the MII interface to obtain the data symbol. And distributing the data symbols to a target channel of the Ethernet port for transmission, wherein the total bandwidth of the target channel is the actually used bandwidth. And distributing the filling symbols to non-target channels, except the target channel, of the Ethernet port, and closing PMA processing of the non-target channels.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to a communication method and related equipment, and in particular to a communication method and related equipment. Background Art

[0002] Ethernet electrical ports are widely used in Ethernet interconnection scenarios in industries, parks, and data centers. Ethernet electrical ports use twisted-pair cables for connection. Ethernet electrical ports with bandwidths above 1000M use 4-pair cables for transmission. Figure 1 Taking 2.5GBASE-TPHY as an example, the PMA (digital front-end + analog front-end) accounts for over 70% of power consumption, with the digital front-end primarily comprising the PAM's internal digital signal processing. In bandwidth scenarios above 1000M, each Ethernet cable pair transmits a quarter of the bandwidth, and the digital and analog front-ends corresponding to each pair are independent. Within the PHY's power consumption, SerDes accounts for 8%, the digital front-end 57%, the analog front-end 33%, and the PLL 2%. Within the digital front-end power consumption, FFE accounts for 6.4%, DFE / THP 6.8%, CDR 1.5%, DEC 24.6%, NEXT cleanup 23.6%, FEXT cleanup 22.2%, upsampling at the transmitter 2.5%, AEC 3.9%, and FED LDPC 9.8%.

[0003] User demand for data network bandwidth follows a tidal pattern, and network construction is ahead of schedule. As a result, network hardware bandwidth is often significantly redundant relative to actual transmission bandwidth. Furthermore, PMA power consumption accounts for over 70% of PHY power consumption, resulting in energy losses that invisibly increase operating expenses (OPEX).

[0004] To address the tidal nature of networks, where utilization is often low and bursty during certain periods, the IEEE standard defines a technology called Low Power Idle (LPI) to implement Energy Efficient Ethernet (EEE). This technology reduces energy consumption during idle states when a link is not transmitting data. The protocol stipulates that the LPI client connects to the RS, consistent with the MAC. The RS converts the LPI client's signal into an xMII (X represents bandwidth, G represents 1 Gbps, XG represents 10 Gbps, etc.) interface signal, which is then encoded by the PHY and sent to the link partner.

[0005] LPI technology sends and receives specific coded signals through the MAC client (through the MII interface of MAC and PHY) and controls the entire Ethernet interface through the state machine inside the PHY to be in the ACITIVE---SLEEP---QUIET---WAKE state. The low-power states are SLEEP and QUIET. The entire interface is in a link-up but no-traffic state. It is suitable for situations with large traffic burst intervals, but not for situations where low traffic is maintained for a long time. Summary of the Invention

[0006] The present application provides a communication method and related devices for flexibly adjusting the rate of an Ethernet electrical port, thereby reducing OPEX.

[0007] The first aspect of the present application provides a communication method:

[0008] The first network device determines the actual bandwidth to be used of the Ethernet electrical port, and the first network device communicates with the second network device through the Ethernet electrical port. The actual bandwidth to be used is less than the total bandwidth of the Ethernet electrical port, and is greater than the current actual occupied bandwidth of the first network device and the second network device. The first network device sets the effective bandwidth of the MII interface to the actual bandwidth to be used, and the first network device processes the message data received from the MII interface to obtain data symbols. The first network device distributes the data symbols to the target channel of the Ethernet electrical port for transmission, and the total bandwidth of the target channel is the actual bandwidth to be used. The first network device distributes fill symbols to non-target channels of the Ethernet electrical port other than the target channel, and turns off PMA processing of the non-target channels.

[0009] In this application, in the case of maintaining low traffic for a long time, the actual bandwidth to be used can be determined based on the actual bandwidth occupancy of the communicating parties, and by reducing the effective bandwidth of the MII interface, the data symbols are distributed to the target channel of the Ethernet electrical port, and the fill symbols are distributed to the non-target channel of the Ethernet electrical port, and the PMA processing of the non-target channel is turned off, thereby reducing the power consumption of the Ethernet electrical port and reducing OPEX.

[0010] In a possible implementation, the first network device sets the effective bandwidth of the MII interface to the actual bandwidth to be used by:

[0011] The first network device receives multiple message data from MAC at RS, and repeats target message data in the multiple message data at RS. The first network device indicates the repeated target message data as invalid data based on the bus valid data indication at RS, and the bandwidth occupied by the invalid data plus the actual bandwidth to be used is equal to the total bandwidth of the Ethernet port.

[0012] In this application, the effective bandwidth of the MII interface is reduced by bus valid data indication, without changing the existing protocol, thereby improving the applicability of the solution.

[0013] In a possible implementation, the first network device sets the effective bandwidth of the MII interface to the actual bandwidth to be used by:

[0014] The first network device reduces the main frequency of the PHY chip by N / M, where N is the actual bandwidth to be used and M is the total bandwidth of the Ethernet electrical port.

[0015] In this application, the effective bandwidth of the MII interface is reduced simply and directly by reducing the main frequency, thereby improving the stability of the solution.

[0016] In a possible implementation, the first network device determines the actual bandwidth to be used by the Ethernet electrical port by:

[0017] The first network device determines a first candidate actual bandwidth to be used for the Ethernet electrical port based on the first network device's current actual bandwidth usage. The first network device receives a second candidate actual bandwidth to be used, determined from the second network device based on the second network device's current actual bandwidth usage. The first network device determines the largest value between the first candidate actual bandwidth to be used and the second candidate actual bandwidth to be used as the actual bandwidth to be used.

[0018] In this application, the actual bandwidth to be used of the candidates is determined based on the current actual occupied bandwidth of the network devices of the communicating parties, and then the bandwidth with a larger value is determined as the actual bandwidth to be used, thereby ensuring that the bandwidth requirements of the communicating parties can be met while saving energy.

[0019] In a possible implementation, the actual bandwidth used by the second candidate is carried in ordered sets.

[0020] The second aspect of the present application provides a communication method:

[0021] The second network device determines the actual bandwidth of the Ethernet port. The second network device communicates with the first network device via the Ethernet port. The actual bandwidth is less than the total bandwidth of the Ethernet port and greater than the currently occupied bandwidth of the first and second network devices. Based on the actual bandwidth, the second network device determines the target channel and non-target channels of the Ethernet port. The total bandwidth of the target channels is the actual bandwidth. The second network device disables PMA processing for the non-target channels and discards data from the non-target channels. The second network device receives data symbols from the target channel and performs PCS processing on the data symbols.

[0022] In a possible implementation, the second network device determines the actual bandwidth to be used by the Ethernet electrical port by:

[0023] The second network device determines a second candidate actual bandwidth to be used for the Ethernet electrical port based on the second network device's current actual bandwidth usage. The second network device receives the first candidate actual bandwidth to be used, determined based on the first network device's current actual bandwidth usage, from the first network device. The first network device and the second network device communicate via the Ethernet electrical port. The second network device determines the largest value between the first candidate actual bandwidth to be used and the second candidate actual bandwidth to be used as the actual bandwidth to be used.

[0024] In a possible implementation, the actual bandwidth to be used by the first candidate is carried in ordered sets.

[0025] A third aspect of the present application provides a network device, used as a first network device, comprising a determination unit and a processing unit.

[0026] The determining unit is configured to determine an actual bandwidth to be used of an Ethernet port through which the first network device and the second network device communicate. The actual bandwidth to be used is less than a total bandwidth of the Ethernet port and greater than a currently occupied bandwidth of the first network device and the second network device.

[0027] The processing unit is configured to determine the actual bandwidth to be used of the Ethernet electrical port according to the number of messages sent within a preset time period, through which the first network device communicates with the second network device.

[0028] The processing unit is further configured to set the effective bandwidth of the MII interface to the actual bandwidth to be used.

[0029] The processing unit is further configured to process the message data received from the MII interface to obtain data symbols.

[0030] The processing unit is further configured to distribute the data symbols to the target channel of the Ethernet electrical port for transmission, wherein the total bandwidth of the target channel is the actual bandwidth to be used;

[0031] The processing unit is configured to distribute the filling symbols to non-target channels of the Ethernet electrical port except the target channel, and disable PMA processing of the non-target channels.

[0032] In one possible implementation,

[0033] A processing unit, specifically configured to receive multiple message data from the MAC at the RS;

[0034] The processing unit is specifically configured to repeat target message data among the plurality of message data in the RS;

[0035] The processing unit is specifically configured to indicate the repeated target message data as invalid data based on the bus valid data indication in the RS, and the bandwidth occupied by the invalid data plus the actual bandwidth to be used is equal to the total bandwidth of the Ethernet electrical port.

[0036] In one possible implementation,

[0037] The processing unit is specifically used to reduce the main frequency of the PHY chip by N / M, where N is the actual bandwidth to be used and M is the total bandwidth of the Ethernet electrical port.

[0038] In one possible implementation,

[0039] The determining unit is specifically configured to determine a first candidate actual bandwidth to be used for the Ethernet port according to the current actual bandwidth occupied by the first network device, wherein the actual bandwidth to be used is smaller than the total bandwidth of the Ethernet port and larger than the current actual bandwidth occupied by the first network device and the second network device.

[0040] The determining unit is specifically configured to receive a second candidate actually usable bandwidth from the second network device, and determine the second candidate actually usable bandwidth according to the current actually occupied bandwidth of the second network device.

[0041] The determining unit is specifically configured to determine the bandwidth with the largest value among the first candidate bandwidth actually to be used and the second candidate bandwidth actually to be used as the bandwidth actually to be used.

[0042] In one possible implementation, the second candidate should actually be carried in the ordered sets using bandwidth.

[0043] A fourth aspect of the present application provides a network device used as a second network device, comprising a determination unit and a processing unit.

[0044] The determining unit is configured to determine an actual usable bandwidth of an Ethernet electrical port through which the first network device communicates with the second network device.

[0045] The processing unit is configured to determine a target channel and a non-target channel of the Ethernet electrical port according to the actual bandwidth to be used, wherein the total bandwidth of the target channel is the actual bandwidth to be used;

[0046] The processing unit is further configured to disable PMA processing of non-target channels and discard data from the non-target channels;

[0047] The processing unit is further configured to receive data symbols from a target channel;

[0048] The processing unit is further configured to perform PCS processing on the data symbols.

[0049] In one possible implementation,

[0050] The determining unit is specifically configured to determine a second candidate actual bandwidth to be used for the Ethernet electrical port according to the current actual occupied bandwidth of the second network device.

[0051] The determining unit is specifically configured to receive a first candidate actually usable bandwidth from the first network device, determined according to the current actually occupied bandwidth of the first network device, wherein the first network device communicates with the second network device via an Ethernet electrical port.

[0052] The determining unit is specifically configured to determine the bandwidth with the largest value among the first candidate bandwidth actually to be used and the second candidate bandwidth actually to be used as the bandwidth actually to be used.

[0053] In a possible implementation, the actual bandwidth to be used by the first candidate is carried in ordered sets.

[0054] In a fifth aspect, the present application provides a network device, used as a first network device, comprising a processor and a memory, wherein the processor is coupled to the memory, and the memory is used to store instructions. When the instructions are executed by the processor, the network device executes the method in the aforementioned first aspect.

[0055] In a sixth aspect, the present application provides a network device used as a second network device, comprising a processor and a memory, wherein the processor is coupled to the memory, and the memory is used to store instructions. When the instructions are executed by the processor, the network device executes the method in the aforementioned second aspect.

[0056] A seventh aspect of the present application provides a computer-readable storage medium:

[0057] Instructions are stored thereon, and when a computer executes the instructions, the computer is caused to perform the method in any of the aforementioned aspects.

[0058] In an eighth aspect, the present application provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute the method described in any one of the above aspects. BRIEF DESCRIPTION OF THE DRAWINGS

[0059] Figure 1 A schematic diagram of power consumption ratio;

[0060] Figure 2 A schematic diagram of the application scenario in this application;

[0061] Figure 3 A schematic diagram of the application scenario in this application;

[0062] Figure 4 A flow chart of the communication method in this application;

[0063] Figure 5a A schematic diagram of the network device in this application;

[0064] Figure 5b A schematic diagram of the network device in this application;

[0065] Figure 6 Schematic diagram of the control code;

[0066] Figure 7 This is a schematic diagram of bus valid data indication in this application;

[0067] Figure 8 This is a schematic diagram of bus valid data indication in this application;

[0068] Figure 9 Schematic diagram of PCS processing in this application;

[0069] Figure 10a Schematic diagram of the ASSAM module at the sending end;

[0070] Figure 10b It is a structural diagram of network equipment;

[0071] Figure 10c Schematic diagram of the working principle of ACMB;

[0072] Figure 10d This is a schematic diagram of the auto-negotiation extension page;

[0073] Figure 11 This is a schematic diagram of the ASSAM module at the receiving end;

[0074] Figure 12 This is a schematic diagram of the ASSAM module on the sending end in this application;

[0075] Figure 13 This is a schematic diagram of the receiving end ASSAM module in this application;

[0076] Figure 14 This is a schematic diagram of the structure of the first network device in this application;

[0077] Figure 15 This is a schematic diagram of the structure of the second network device in this application;

[0078] Figure 16 This is a structural diagram of the first network device or the second network device in this application. DETAILED DESCRIPTION

[0079] The following describes the embodiments of the present application in conjunction with the accompanying drawings. Obviously, the embodiments described are only part of the embodiments of the present application, rather than all the embodiments. Those skilled in the art will appreciate that with the development of technology and the emergence of new scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0080] The terms "first," "second," and the like in the specification and claims of this application and in the accompanying drawings are used to distinguish similar objects and are not necessarily used to describe a particular order or precedence. It should be understood that the terms used in this manner are interchangeable where appropriate so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including" and "having," as well as any variations thereof, are intended to cover non-exclusive inclusions, e.g., a process, method, system, product, or apparatus comprising a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units that are not explicitly listed or that are inherent to these processes, methods, products, or apparatus.

[0081] See also Figure 2 In industrial and campus network construction, a large number of Ethernet electrical interfaces are involved. In particular, campus access points (APs) and access switches generally use BASE-T electrical interfaces for interconnection. A large number of devices on industrial sites use electrical interfaces for interconnection. The communication method in this application can be applied to Ethernet electrical interface link interconnection scenarios, mainly involving scenarios where Ethernet interfaces between nodes are interconnected using cables, such as twisted pair cables or other cable media. Please refer to Figure 3 The above Ethernet interface can be an interface between network devices or an interface between a network device and a terminal device.

[0082] See also Figure 4 , the following is an introduction to a process of the communication method in this application:

[0083] 401. The first network device determines an actual bandwidth to be used for an Ethernet port. The first network device and the second network device communicate via the Ethernet port. The actual bandwidth to be used is less than the total bandwidth of the Ethernet port and greater than the currently occupied bandwidth of the first network device and the second network device.

[0084] The first network device in this application may be, for example, Figure 2 The network device 1 in the example, the second network device may be Figure 2 Network device 2 in . See Figure 5aThe Ethernet protocol is divided into the media access control (MAC) layer, the reconciliation sublayer (RS) layer, and the physical layer (PHY). The RS and PHY communicate via the media independent interface (MII), a standard interface connecting the MAC and PHY. The MII interface is an Ethernet industry standard defined by IEEE-802.3. The MII interface provides interconnection technology between the MAC and PHY, and between the PHY and the STA (Station Management). This interface supports data rates of 10 Mb / s and 100 Mb / s, with a data transmission bit width of 4 bits. The PHY includes the physical coding sublayer (PCS), the auto-negotiation sublayer (AUTONEG), and the physical medium attachment sublayer (PMA). Data is transmitted between network devices 1 and 2 via four cable pairs: cable pair A, cable pair B, cable pair C, and cable pair D. Network device 1 and network device 2 have added an adaptive bandwidth compute (ABWC) module in the MAC. The ABWC module can count the number of packets passing through the interface at preset time intervals and determine the current actual occupied bandwidth based on this. Then, the actual bandwidth to be used is determined based on the current actual occupied bandwidth. An adaptive symbol speed adjust module (ASSAM) module has been added in the PCS. Figure 5b The ASSAM module is located between the media-dependent encoding (such as PAM16) and the symbol distribution module, and can replace the current symbol distribution module. Based on the above two modules, network device 1 and network device 2 have the ability to flexibly adjust the communication rate. The following is a detailed introduction:

[0085] The ABWC modules of network device 1 and network device 2 count the number of packets passing through the interface within a preset time interval to determine the current actual occupied bandwidth, and then determine the candidate actual bandwidth to be used based on the current actual occupied bandwidth. For example, if the current actual occupied bandwidth is less than 1 / 4 of the total bandwidth, the candidate actual bandwidth to be used is 1 / 4 of the total bandwidth; if the current actual occupied bandwidth is less than 1 / 2 of the total bandwidth, but greater than 1 / 4 of the total bandwidth, the candidate actual bandwidth to be used is 1 / 2 of the total bandwidth; if the current actual occupied bandwidth is less than 3 / 4 of the total bandwidth, but greater than 1 / 2 of the total bandwidth, the candidate actual bandwidth to be used is 3 / 4 of the total bandwidth; if the current actual occupied bandwidth is greater than 3 / 4 of the total bandwidth, the candidate actual bandwidth to be used is still the total bandwidth. The RS of network device 1 and network device 2 will send the candidate actual bandwidth to be used that it has determined to the other end through a control code, for example, by sending orderedsets carrying the candidate actual bandwidth to be used to the other end through the MII interface. For example, please refer to Figure 6 The above-mentioned ordered sets can be ordered sets reserved by the protocol (boxed in the figure). Network device 1 and network device 2 will determine the maximum candidate actual bandwidth as the unactual bandwidth. For example, if the candidate actual bandwidth determined by network device 1 is 1 / 2 of the total bandwidth and the candidate actual bandwidth determined by network device 2 is 1 / 4 of the total bandwidth, then 1 / 2 of the total bandwidth will be determined as the actual bandwidth.

[0086] 402. The first network device sets the effective bandwidth of the MII interface to the actual bandwidth to be used;

[0087] Taking network device 1 as the sending end and network device 2 as the receiving end as an example, after determining the actual bandwidth to be used, in order to adapt to the actual bandwidth to be used, network device 1 needs to reduce the effective bandwidth of the MII interface, thereby equivalently reducing the throughput of RS transmission to PCS.

[0088] In one possible embodiment, after the RS of network device 1 receives the message data and control code from the MAC through the MII interface, it removes part of the control code, repeats part of the message data, and indicates the repeated part of the message data as invalid data through the valid data indication, and indicates the remaining part of the data as valid data, so that the bandwidth occupied by the valid data is equal to the actual bandwidth to be used.

[0089] For example, see Figure 7For example, assuming the actual bandwidth is 1 / 2 of the total bandwidth, the RS of network device 1 repeats message data D1 and D3 from the MAC twice, and uses valid data indication to indicate the two repeated message data D1 and D3 as invalid data, while indicating the remaining data as valid data. It is not difficult to see that after the above operation, the following is achieved: valid data / total data = 1 / 2. For example, if the total bandwidth of the MII interface is 1 Gbps, after the above operation, the bandwidth of the MII interface is reduced to 500 Mbps.

[0090] In another example, see Figure 8 For example, the RS of network device 1 repeats message data D2 and D5 from the MAC once and once, and uses valid data indication to mark the repeated message data D2 and D5 as invalid data, while marking the remaining data as valid data. It is not difficult to see that after the above operation, the following is achieved: valid data / total data = 3 / 4. For example, if the total bandwidth of the MII interface is 1 Gbps, after the above operation, the bandwidth of the MII interface is reduced to 750 Mbps.

[0091] 403. The first network device processes the message data received from the MII interface to obtain data symbols;

[0092] See also Figure 9 The RS of network device 1 sends the above-mentioned valid data to the PCS. Taking 10G-BASE-T PHY as an example, the valid data is sent to the PCS through the XGMII interface. The PCS combines two XGMII data (32-bit) transmissions into 64 bits and adds 1 bit of data or control indication to form a 65-bit code block. After scrambling, the 65-bit block is formed. 25 blocks are combined with 97 zeros and one auxiliary bit (aux) for a total of 1723 bits to form a 2048-bit code block. After medium-dependent coding (PAM16), 512 data symbols are formed, each of which contains 4 bits of information.

[0093] 404. The first network device distributes the data symbols to the target channel of the Ethernet electrical port for transmission, where the total bandwidth of the target channel is the actual bandwidth to be used.

[0094] The PHY of the network device 1 determines the cable pair for which the PMA function needs to be disabled based on the actual bandwidth to be used. For example:

[0095] If the actual bandwidth to be used is only 1 / 4 of the total bandwidth, disable PMA processing for three cable pairs, for example, disable PMA processing for cable pairs B, C, and D.

[0096] If the actual bandwidth to be used is half of the total bandwidth, disable PMA processing for two cable pairs, for example, disable PMA processing for cable pairs C and D.

[0097] If the actual bandwidth to be used is 3 / 4 of the total bandwidth, disable the PMA processing of a cable pair, for example, disable the PMA processing of cable pair D.

[0098] The network device 1 and the network device 2 may be pre-configured with the above information, so as to determine the cable pair that is normally operating and the cable pair that is disabled for PMA processing according to the actual application information.

[0099] The ABWC module of network device 1 sends the actual bandwidth to the local RS, and the RS sends the actual bandwidth to the ASSAM module. The ASSAM module is responsible for adjusting the symbol distribution method according to the actual bandwidth. Figure 10a The ASSAM module mainly consists of a buffer (such as FIFO or RAM), a PAD generation module, and a control module. The control module sets a counter with a count of 4 (1---4---1...). At the sending end, taking the actual bandwidth to be used as 3 / 4 of the total bandwidth as an example, the data symbol is written into the buffer at 3 / 4 of the clock frequency (F). Figure 10b Network device 1 and network device 2 also have an adaptive clock management block (ACMB) module. The ACMB module can be set inside the PHY chip or exist independently. Preferably, considering the clock SI and chip integration, the ACMB can be integrated inside the PHY chip. Figure 10c , the above 3 / 4 clock frequency (F) can be based on Figure 10cThe implementation is shown in the figure, where Fin is the reference clock input. The main modules are the ACMB, PFD (Phase and Frequency Detector), charge pump (CP), loop filter, and VCO (Voltage-Controlled Oscillator). The PFD processes the input reference clock (FREF) and the VCO feedback clock FFB to obtain frequency and phase difference indicators. After passing through the CP and loop filter, the signal is input to the VCO for frequency and phase adjustment. After frequency division, the new FFB clock is generated and sent back to the PFD. After multiple closed-loop control steps, the desired clock is obtained. A 3 / 4 or other ratio of the main frequency F can be achieved by inputting the actual bandwidth to the ACMB module. After analysis, the ACMB module adjusts the PLL's internal frequency multiplication parameters (N / M / C0 / C1 / C2). When the counter counts to 1, 2, or 3, the control module reads the data symbol. When the counter counts to 4, the control module inserts the pad symbol. The read buffer is read according to F. The buffer's output bandwidth is the total bandwidth, consisting of three-quarters of the bandwidth occupied by the data symbol and one-quarter of the bandwidth occupied by the pad symbol. These symbols are then distributed to the four cable pairs in a round-robin fashion. The data symbol is distributed to cable pairs A, B, and C and sent to network device 2.

[0100] 405. The first network device distributes the fill symbol to non-target channels of the Ethernet electrical port except the target channel, and disables PMA processing of the non-target channels.

[0101] All pad symbols are distributed to cable pair D, and PMA processing on cable pair D is turned off.

[0102] Network device 2 determines that PMA processing needs to be disabled for cable pair D based on the actual bandwidth to be used, and the remaining cable pairs can be used normally. Figure 11 Network device 2 receives the pad symbol from cable pair D and the data symbol from the remaining cable pairs. When the counter reaches 1, 2, or 3, the control module writes the data symbol into the buffer. When the counter reaches 4, the control module discards the pad symbol. The data symbol is then read from the buffer using a 3 / 4 F (implementation similar to that described above). The PCS sends the data to the RS via the MII interface. The RS parses the data and sends it to the MAC.

[0103] Of course, network device 1 can also negotiate with network device 2 to determine whether network device 2 has the ability to flexibly adjust the rate. For example, network device 1 and network device 2 can negotiate through the auto-negotiation extension page, see Figure 10d For example, the reserved bit D0 of the AUTONEG BASE-PAGE indicates that the device has the capability to flexibly adjust the rate when it is 1; when it is 0, it indicates that the device does not have the capability to flexibly adjust the rate. The aforementioned process is only executed if network device 1 determines that network device 2 has the capability to flexibly adjust the rate. Network device 2 can also act as a transmitter, with network device 1 acting as a receiver. The communication method between the two is similar to that described above and will not be repeated here.

[0104] In this application, in the case of maintaining low traffic for a long time, padsymbols are distributed to some channels of the Ethernet electrical port and the PMA processing of these channels is turned off, thereby reducing the power consumption of the Ethernet electrical port and lowering OPEX.

[0105] The above describes one process of the communication method in this application. The following describes another process of the communication method in this application:

[0106] A01. A first network device determines an actual bandwidth to be used for an Ethernet port. The first network device and a second network device communicate via the Ethernet port. The actual bandwidth to be used is less than the total bandwidth of the Ethernet port and greater than the currently occupied bandwidth of the first network device and the second network device.

[0107] Taking network device 1 as the sending end and network device 2 as the receiving end as an example, the ABWC modules of network device 1 and network device 2 count the number of packets passing through the interface at a preset time interval, and based on this, determine the current actual occupied bandwidth. Then, the actual bandwidth to be used is determined based on the current actual occupied bandwidth. The specific process is similar to that described in the aforementioned step 401 and will not be repeated here.

[0108] A02. The first network device sets the effective bandwidth of the MII interface to the actual bandwidth to be used;

[0109] In order to adapt to the actual bandwidth to be used, the network device 1 needs to reduce the bandwidth of the MII interface, thereby equivalently reducing the throughput of RS transmission to PCS.

[0110] ACMB receives control codes (ordered sets) carrying the actual bandwidth, transmitted by the ABWC module via the MII interface. The ACMB module then reduces the PHY chip's main frequency by N / M, where N is the actual bandwidth and M is the total bandwidth. For example, if the actual bandwidth is 3 / 4 of the total bandwidth, the ACMB module reduces the PHY chip's main frequency to 3 / 4 of the original main frequency (F); if the actual bandwidth is 2 / 4 of the total bandwidth, the ACMB module reduces the PHY chip's main frequency to 2 / 4 of F; and if the actual bandwidth is 1 / 4 of the total bandwidth, the ACMB module reduces the PHY chip's main frequency to 1 / 4 of F.

[0111] Please refer again Figure 10c To reduce the PHY chip's main frequency, the ACMB module can input the actual bandwidth to be used. The ACMB module analyzes the parameters (M, N, Cx) required for PLL frequency conversion, ultimately obtaining a main frequency (Foutx) that matches the actual bandwidth. Since bandwidth is equal to the main frequency multiplied by the bit width, reducing the PHY chip's main frequency is equivalent to reducing the bandwidth of the MII interface.

[0112] A03. The first network device processes the message data received from the MII interface to obtain data symbols;

[0113] Afterwards, the RS sends the message data to the PCS. Taking 10G-BASE-T PHY as an example, the message data is sent to the PCS through the XGMII interface. The PCS combines two XGMII data (32-bit) transmissions into 64 bits and adds 1 bit of data or control indication to form a 65-bit code block. After scrambling, the 65-bit block is formed. A total of 1723 bits are added to 25 blocks and 97 zeros and an auxiliary bit (aux) are added. The FEC encoding (LDPC (1723, 2048)) forms a 2048-bit code block. After medium-dependent coding (PAM16), 512 data symbols are formed, each of which contains 4 bits of information.

[0114] A04. The first network device distributes the data symbols to the target channel of the Ethernet electrical port for transmission, where the total bandwidth of the target channel is the actual bandwidth to be used;

[0115] The PHY of the network device 1 determines the cable pair for which the PMA function needs to be disabled based on the actual bandwidth to be used. For example:

[0116] If the actual bandwidth to be used is 1 / 4 of the total bandwidth, disable PMA processing for three cable pairs, for example, disable PMA processing for cable pairs B, C, and D.

[0117] If the actual bandwidth to be used is half of the total bandwidth, disable PMA processing for two cable pairs, for example, disable PMA processing for cable pairs C and D.

[0118] If the actual bandwidth to be used is 3 / 4 of the total bandwidth, disable the PMA processing of a cable pair, for example, disable the PMA processing of cable pair D.

[0119] Similarly, the ASSAM module is responsible for adjusting the symbol distribution method according to the actual bandwidth to be used, see Figure 12 On the transmitting end, assuming the actual bandwidth used is 1 / 4 of the total bandwidth, the data symbol is written into the buffer at 1 / 4 of the clock frequency (F). When the counter reaches 1, the control module reads the data symbol. When the counter reaches 2, 3, or 4, the control module inserts the pad symbol, with the buffer read at F. The buffer's output bandwidth is the total bandwidth, consisting of 1 / 4 of the bandwidth occupied by the data symbol and 3 / 4 of the bandwidth occupied by the pad symbol. These symbols are then distributed to the four cable pairs in a round robin fashion, with the data symbol being sent to cable pair A to network device 2.

[0120] A05. The first network device distributes the fill symbol to non-target channels of the Ethernet electrical port except the target channel, and disables PMA processing of the non-target channels.

[0121] All pad symbols are distributed to cable pair B, cable pair C, and cable pair D, and

[0122] Network device 2 determines that PMA processing needs to be disabled for cable pairs B, C, and D based on the actual bandwidth to be used, and the remaining cable pairs can be used normally. Figure 13 At the receiving end, when the counter reaches 1, the control module writes the data symbol into the buffer. When the counter reaches 2, 3, or 4, the control module discards the pad symbol. The data symbol is then read from the buffer at 1 / 4 of F. The PCS sends the data to the RS via the MII interface. The RS parses the data and sends it to the MAC.

[0123] Of course, network device 1 can also negotiate with network device 2 to determine whether network device 2 has the ability to flexibly adjust the rate. For example, network device 1 and network device 2 can negotiate using an auto-negotiation extension page, such as the reserved bit D0 in the AUTONEG BASE-PAGE. When this reserved bit is 1, it indicates that the device has the ability to flexibly adjust the rate; when this reserved bit is 0, it indicates that the device does not have the ability to flexibly adjust the rate. Only if network device 1 determines that network device 2 has the ability to flexibly adjust the rate will the aforementioned process be executed.

[0124] In this application, in the case of maintaining low traffic for a long time, padsymbols are distributed to some channels of the Ethernet electrical port and the PMA processing of these channels is turned off, thereby reducing the power consumption of the Ethernet electrical port and lowering OPEX.

[0125] The above describes the method in this application. The following describes the device in this application:

[0126] See also Figure 14 , the first network device 1400 in this application includes a determining unit 1401 and a processing unit 1402.

[0127] The determining unit 1401 is configured to determine an actual bandwidth to be used for an Ethernet electrical port, where a first network device and a second network device communicate via the Ethernet electrical port, and the actual bandwidth to be used is less than a total bandwidth of the Ethernet electrical port and greater than a currently actually occupied bandwidth of the first network device and the second network device.

[0128] The processing unit 1402 is configured to set the effective bandwidth of the MII interface as the actual bandwidth to be used.

[0129] The processing unit 1402 is further configured to process the message data received from the MII interface to obtain data symbols.

[0130] The processing unit 1402 is further configured to distribute the data symbols to the target channel of the Ethernet electrical port for transmission, where the total bandwidth of the target channel is the actual bandwidth to be used;

[0131] The processing unit 1402 is configured to distribute the filling symbols to non-target channels of the Ethernet electrical port except the target channel, and disable PMA processing of the non-target channels.

[0132] In one possible implementation,

[0133] The processing unit 1402 is specifically configured to receive multiple message data from the MAC at the RS;

[0134] The processing unit 1402 is specifically configured to repeat target message data among the multiple message data in the RS;

[0135] The processing unit 1402 is specifically configured to indicate the repeated target message data as invalid data based on the bus valid data indication in the RS, and the bandwidth occupied by the invalid data plus the actual bandwidth to be used equals the total bandwidth of the Ethernet electrical port.

[0136] In one possible implementation,

[0137] The processing unit 1402 is specifically configured to reduce the main frequency of the PHY chip by N / M, where N is the actual bandwidth to be used and M is the total bandwidth of the Ethernet electrical port.

[0138] In one possible implementation,

[0139] The determining unit 1401 is specifically configured to determine a first candidate actual usable bandwidth of the Ethernet electrical port according to the current actual occupied bandwidth of the first network device.

[0140] The determining unit 1401 is specifically configured to receive a second candidate actually usable bandwidth from the second network device, which is determined according to the current actually occupied bandwidth of the second network device.

[0141] The determining unit 1401 is specifically configured to determine the bandwidth with the largest value among the first candidate bandwidth actually to be used and the second candidate bandwidth actually to be used as the bandwidth actually to be used.

[0142] In a possible implementation, the actual bandwidth used by the second candidate is carried in ordered sets.

[0143] See also Figure 15 The second network device 1500 in this application includes a determining unit 1501 and a processing unit 1502.

[0144] The determining unit 1501 is configured to determine an actual bandwidth to be used of an Ethernet port through which a first network device and a second network device communicate. The actual bandwidth to be used is less than a total bandwidth of the Ethernet port and greater than a currently occupied bandwidth of the first network device and the second network device.

[0145] The processing unit 1502 is configured to determine a target channel and non-target channels of the Ethernet port according to the actual bandwidth to be used, where the total bandwidth of the target channel is the actual bandwidth to be used;

[0146] The processing unit 1502 is further configured to disable PMA processing of non-target channels and discard data from the non-target channels;

[0147] The processing unit 1502 is further configured to receive data symbols from a target channel;

[0148] The processing unit 1502 is further configured to perform PCS processing on the data symbols.

[0149] In one possible implementation,

[0150] The determining unit 1501 is specifically configured to determine a second candidate actual usable bandwidth of the Ethernet electrical port according to the current actual occupied bandwidth of the second network device.

[0151] The determining unit 1501 is specifically configured to receive a first candidate actual usable bandwidth from a first network device, determined according to the current actual occupied bandwidth of the first network device, wherein the first network device communicates with the second network device via an Ethernet electrical port.

[0152] The determining unit 1501 is specifically configured to determine the bandwidth with the largest value among the first candidate bandwidth actually to be used and the second candidate bandwidth actually to be used as the bandwidth actually to be used.

[0153] In a possible implementation, the actual bandwidth to be used by the first candidate is carried in ordered sets.

[0154] Figure 16 16 is a schematic diagram of the structure of a device provided in this application, which is used to implement the methods performed by the first network device or the second network device in each of the aforementioned embodiments. Device 1600 may include one or more central processing units (CPUs) 1601 and a memory 1605, wherein the memory 1605 stores one or more applications or data.

[0155] Memory 1605 may be volatile or persistent storage. The program stored in memory 1605 may include one or more modules, each of which may include a series of instruction operations on the server. Furthermore, central processing unit 1601 may be configured to communicate with memory 1605 and execute the series of instruction operations in memory 1605 on device 1600. Device 1600 may also include one or more power supplies 1602, one or more wired or wireless network interfaces 1603, one or more input / output interfaces 1604, and / or one or more operating systems.

[0156] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0157] In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0158] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.

[0159] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.

[0160] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, read-only memory), random access memory (RAM, random access memory), disk or optical disk, and other media that can store program code.

Claims

1. A communication method, characterized in that: include: The first network device determines an actual bandwidth to be used of an Ethernet electrical port through which the first network device communicates with a second network device, the actual bandwidth to be used being less than a total bandwidth of the Ethernet electrical port and greater than a currently actually occupied bandwidth of the first network device and the second network device; The first network device sets the effective bandwidth of the MII interface to the actual usable bandwidth; The first network device processes the message data received from the MII interface to obtain data symbols; The first network device distributes the data symbols to a target channel of the Ethernet electrical port for transmission, where the total bandwidth of the target channel is the actually usable bandwidth; The first network device distributes the fill symbols to non-target channels of the Ethernet electrical port except the target channel, and disables PMA processing of the non-target channels.

2. The method according to claim 1, characterized in that The first network device setting the effective bandwidth of the MII interface to the actual bandwidth to be used includes: The first network device receives a plurality of message data from the MAC at the RS; The first network device repeats the target message data among the multiple message data at the RS; The first network device indicates the repeated target message data as invalid data based on the bus valid data indication in RS, and the bandwidth occupied by the invalid data plus the actual bandwidth to be used is equal to the total bandwidth of the Ethernet port.

3. The method according to claim 1, characterized in that The first network device setting the effective bandwidth of the MII interface to the actual bandwidth to be used includes: The first network device reduces the main frequency of the PHY chip by N / M, where N is the actual bandwidth to be used and M is the total bandwidth of the Ethernet electrical port.

4. The method according to any one of claims 1 to 3, characterized in that The first network device determines the actual bandwidth to be used by the Ethernet electrical port, including: The first network device determines, according to the current actual occupied bandwidth of the first network device, a first candidate actual usable bandwidth of the Ethernet electrical port; The first network device receives, from the second network device, a second candidate actual bandwidth to be used determined according to the current actual occupied bandwidth of the second network device; The first network device determines the one with the largest value between the first candidate actually usable bandwidth and the second candidate actually usable bandwidth as the actually usable bandwidth.

5. The method according to claim 4, characterized in that The actual bandwidth used by the second candidate is carried in the ordered sets.

6. A communication method, characterized in that: include: The second network device determines an actual bandwidth to be used of an Ethernet electrical port through which the second network device communicates with the first network device, wherein the actual bandwidth to be used is less than a total bandwidth of the Ethernet electrical port and greater than a currently actually occupied bandwidth of the first network device and the second network device; The second network device determines, according to the actual bandwidth to be used, a target channel and a non-target channel of the Ethernet electrical port, where the total bandwidth of the target channel is the actual bandwidth to be used; The second network device turns off the PMA processing of the non-target channel and discards the data from the non-target channel; The second network device receives a data symbol from the target channel; The second network device performs PCS processing on the data symbols.

7. The method according to claim 6, characterized in that The second network device determines the actual bandwidth that should be used by the Ethernet electrical port, including: The second network device determines, according to the current actual occupied bandwidth of the second network device, a second candidate actual usable bandwidth of the Ethernet electrical port; The second network device receives, from the first network device, a first candidate actual bandwidth to be used determined according to the current actual occupied bandwidth of the first network device, and the first network device communicates with the second network device through the Ethernet electrical port; The second network device determines the one with the largest value between the first candidate actually usable bandwidth and the second candidate actually usable bandwidth as the actually usable bandwidth.

8. The method according to claim 7, characterized in that The actual bandwidth used by the first candidate is carried in the ordered sets.

9. A network device, used as a first network device, characterized in that: The device comprises a processor and a memory, wherein the processor is coupled to the memory, and the memory is used to store instructions. When the instructions are executed by the processor, the access network device executes the method according to any one of claims 1 to 5.

10. A network device, used as a second network device, characterized in that: The device comprises a processor and a memory, wherein the processor is coupled to the memory, and the memory is used to store instructions. When the instructions are executed by the processor, the access network device executes the method according to any one of claims 6 to 8.

11. A computer-readable storage medium, characterized in that Instructions are stored thereon, and when a computer executes the instructions, the computer performs the method according to any one of claims 1 to 8.