Ethernet device processing method and ethernet system

By sending sustaining streams between Ethernet devices to maintain link parameter synchronization, the problems of high power consumption and long wake-up time when there is no data transmission are solved, and fast wake-up and low-power Ethernet device state transitions are achieved.

CN118473591BActive Publication Date: 2025-11-07HUAWEI TECH CO LTD

Patent Information

Application Number
CN202310143536.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-02-09
Publication Date
2025-11-07
Estimated Expiration
2043-02-09

AI Technical Summary

Technical Problem

Existing Ethernet devices still consume high power when there is no data transmission and have long wake-up times, especially in Fast Wake power-saving mode, which fails to effectively save power.

Method used

By sending sustain streams between Ethernet devices to maintain link parameter synchronization, the data transmission path function is disabled, reducing wake-up time.

Benefits of technology

Reduce device wake-up time and power consumption when there is no data transmission, and improve device wake-up speed.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118473591B_ABST
    Figure CN118473591B_ABST
Patent Text Reader

Abstract

The embodiment of the application provides an Ethernet device processing method and an Ethernet system. The Ethernet device processing method is applied to the Ethernet system. The Ethernet system comprises a first device and a second device. The first device and the second device perform data communication through Ethernet technology. The first device comprises a first medium access control chip and a first physical layer chip. The first physical layer chip comprises a first physical coding sublayer (PCS) and a first physical medium access sublayer (PMA). The Ethernet device processing method comprises the following steps: the first PMA receives a control signal sent by the first PCS; the first PMA generates a maintenance code stream and sends the maintenance code stream to the second device; the maintenance code stream is used for maintaining synchronization of link parameters between the first device and the second device; when there is no data transmission between the first device and the second device, the synchronization of the link parameters at both ends is maintained by transmitting the maintenance code stream at both ends; and when it is detected that data is to be transmitted, the first device is enabled to quickly enter a working state, so that the wake-up time is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of communication, and particularly relates to an Ethernet device processing method and an Ethernet system. BACKGROUND

[0002] The network utilization of most Ethernet devices (for example, servers, personal computers PC) is low. When there is no data transmission in the Ethernet, the physical layer of the Ethernet device still transmits an idle code block stream, so that the Ethernet device in the idle state still normally consumes power consumption. Based on this, the Institute of Electrical and Electronics Engineers (IEEE) 802.3 standardized the Energy Efficient Ethernet (EEE) technology in 2010. The basic idea of EEE is to complete data transmission as quickly as possible and make the Ethernet device enter a Low Power Idle (LPI) state. In the LPI state, part of the circuit in the Ethernet is turned off to save power consumption.

[0003] EEE defines two energy saving modes: Deep Sleep and Fast Wake, if the Ethernet device adopts the Deep Sleep energy saving mode: if the Ethernet device has transmission data, the physical layer of the Ethernet device is in the active state, at this time the Ethernet device transmits data normally; if the Ethernet device does not have transmission data, the physical layer enters the sleep state, the sleep state lasts for a preset time, the physical layer enters the quiet state, in order to ensure the synchronization update of the parameters of the Ethernet device as the receiving end and the sending end, the physical layer enters the refresh state periodically; in the above process, only the physical layer in the quiet state can save power consumption, the power consumption of the physical layer in the Active, Sleep or refresh state is roughly the same; and in the Deep Sleep energy saving mode, the wake-up time of the physical layer from the Sleep state to the Active state is long; if the Ethernet device adopts the Fast Wake energy saving mode, if the Ethernet device has transmission data, the physical layer of the Ethernet device is in the active state; if the Ethernet device does not have transmission data, the physical layer of the Ethernet device enters the active (Fast Wake) state, in the Fast Wake state, the physical layer continuously sends LPI code blocks, if the duration has no data transmission, the physical layer enters the idle state or the wake (Wake) state; in the Wake state, the physical layer sends the idle code block, the receiving end of the Ethernet device enters the LPI mode according to the received LPI code block, if the Ethernet device adopts the Fast Wake energy saving mode, the physical layer can quickly wake up from the Fast Wake state to the Active state, but in this mode, the power consumption is mainly saved in the LPI mode by closing the upper layer, and the physical layer does not save power consumption. SUMMARY

[0004] In view of the above, it is necessary to provide an Ethernet device processing method and system, when there is no data transmission in the Ethernet device, the PMA of the first device sends a maintenance code stream to the second device for maintaining the synchronization of the link parameters between the first device and the second device, when there is data transmission between the first device and the second device, the first device and the second device are quickly brought into the working state, so as to reduce the wake-up delay of the Ethernet device.

[0005] In a first aspect, an Ethernet device processing method is provided. The method is applied to an Ethernet system, and the Ethernet system includes a first device and a second device. The first device communicates data with the second device through Ethernet technology. The first device includes a first medium access control (MAC) chip and a first physical layer chip. The first physical layer chip includes a first physical coding sublayer (PCS) and a first physical medium access sublayer (PMA). The method includes: the first PMA receiving a control signal sent by the first PCS, the first PMA generating a maintenance code stream, and sending the maintenance code stream to the second device. The maintenance code stream is used to maintain synchronization of link parameters between the first device and the second device.

[0006] With the above technical solution, when there is no data transmission between the first device and the second device, the PMA of the physical layer chip of the first device generates a maintenance code stream and sends the maintenance code stream to the second device, so as to maintain synchronization of link parameters between the first device and the second device. When the first device detects to-be-transmitted data, the first device can enter a working state from a power saving mode, so as to reduce the wake-up time of the first device.

[0007] In a possible implementation of the first aspect, before the first PMA generates the maintenance code stream and sends the maintenance code stream to the second device, the first PMA shuts down a data transmission path related function of the first PMA.

[0008] With the above technical solution, the data transmission path related function of the first PMA of the first device is shut down, so as to save power consumption of the first device. The data transmission path related function is a processing function of the first PMA of the first device to to-be-transmitted data when the first device transmits data to the second device, for example, a serial-to-parallel conversion function and an alignment function.

[0009] Further, before the first PMA generates the maintenance code stream and sends the maintenance code stream to the second device, a transmission path related function of the first PCS of the first device is also shut down.

[0010] If the first device includes a first forward error correction (FEC), before the first PMA generates the maintenance code stream and sends the maintenance code stream to the second device, an encoding function of the first FEC of the first device is also shut down.

[0011] Further, if the first device includes a first physical medium dependent (PMD), when the data transmission path related function of the first PMA is shut down, the first PMD is in a normal working state and receives the maintenance code stream sent by the first PMA, and then sends the maintenance code stream to the second device.

[0012] In a possible implementation of the first aspect, the maintenance code stream is a pseudo random binary sequence (PRBS) code stream.

[0013] According to the technical solution, the first device transmits the PRBS code stream to the second device to maintain synchronization of link parameters between the first device and the second device.

[0014] In a possible implementation of the first aspect, if the first PCS adopts 8B / 10B encoding, the PRBS code stream is a PRBS7 code stream; if the first PCS adopts 64B / 66B encoding, the PRBS code stream is a PRBS31 code stream or a PRBS58 code stream.

[0015] According to the technical solution, a corresponding maintenance code stream is selected according to an encoding method, so that the maintenance code stream is close to the randomness of the real service code stream, thereby ensuring that transmission of the maintenance code stream can maintain synchronization of link parameters between the first device and the second device.

[0016] In a possible implementation of the first aspect, the maintenance code stream is a PRBS code stream subjected to scrambling.

[0017] According to the technical solution, the PRBS code stream subjected to scrambling is closer to the real service code stream between the first device and the second device, thereby the PRBS code stream subjected to scrambling can be used to maintain synchronization of link parameters between the first device and the second device.

[0018] In a possible implementation of the first aspect, if a twisted pair interface is used between the first device and the second device, the maintenance code stream is a training code stream.

[0019] According to the technical solution, the first PMA of the first device transmits the training code stream to the second device to maintain synchronization of link parameters between the first device and the second device.

[0020] In a possible implementation of the first aspect, the first PMA receives a data control signal transmitted by the first PCS, and the first PMA stops generating the maintenance code stream and opens a data transmission path related function of the first PMA.

[0021] According to the technical solution, when the first device detects data to be transmitted, the first device quickly enters a working state and reduces the wake-up time of the first device by stopping generation of the maintenance code stream and opening the data transmission path related function of the first PMA. The control signal can be a data DATA signal transmitted by the first PCS to the first PMA.

[0022] In a possible implementation of the first aspect, the second device includes a second media access control chip and a second physical layer chip, and the second physical layer chip includes a second PCS and a second PMA; and the method further includes: the second PMA receiving the control signal sent by the second PCS, turning on the PRBS code stream detection function and turning off the data receiving path related function of the second PMA.

[0023] With the above technical solution, the second device receives the control signal sent by the first device, turns on the PRBS code stream detection function of the second PMA to detect the PRBS code stream sent by the first device, and turns off the data receiving path related function of the second PMA to reduce the power consumption of the second device. The control signal can be an LPI signal, so that the second device enters an LPI mode.

[0024] In a possible implementation of the first aspect, the PRBS code stream detection function of the second PMA includes: detecting the number of error maintaining code stream bits in a preset sliding window; if the number of error maintaining code stream bits in the preset sliding window is less than or equal to a preset threshold, determining that the detection result is successful; and if the number of error maintaining code stream bits in the preset sliding window is greater than the preset threshold, determining that the detection result is failed.

[0025] With the above technical solution, the detection result is determined by the relationship between the number of error PRBS codes in the sliding window and the preset threshold. The detection method can set the relationship between the preset threshold and the size of the sliding window to prevent burst errors from affecting the detection result, thereby improving the reliability and robustness of the detection method.

[0026] In a possible implementation of the first aspect, the method further includes: if the detection result is failed, turning off the PRBS code stream detection function and turning on the data receiving path related function of the second PMA.

[0027] In a possible implementation of the first aspect, the method further includes: if the detection result is successful, the second PMA continues the PRBS code stream detection and continues to turn off the data receiving path related function of the PMA.

[0028] The second aspect provides an Ethernet system, which comprises a first device and a second device, the first device and the second device perform data communication through Ethernet technology, the first device comprises a first medium access control chip and a first physical layer chip, the first physical layer chip comprises a first physical coding sublayer (PCS) and a first physical medium access sublayer (PMA); the first PMA is configured to receive a control signal sent by the first PCS; after receiving the LPI signal, the first PMA is further configured to generate a maintenance code stream and send the maintenance code stream to the second device, the maintenance code stream is used to maintain synchronization of link parameters between the first device and the second device.

[0029] In a possible implementation of the second aspect, before generating the maintenance code stream and sending the maintenance code stream to the second device, the first PMA is further configured to shut down a data transmission path related function of the first PMA.

[0030] In a possible implementation of the second aspect, the maintenance code stream is a pseudo-random code (PRBS) code stream.

[0031] In a possible implementation of the second aspect, if the first PCS adopts 8B / 10B encoding, the PRBS code stream is a PRBS7 code stream; if the first PCS adopts 64B / 66B encoding, the PRBS code stream is a PRBS31 code stream or a PRBS58 code stream.

[0032] In a possible implementation of the second aspect, the maintenance code stream is a PRBS code stream after scrambling.

[0033] In a possible implementation of the second aspect, if a twisted pair interface is adopted between the first device and the second device, the maintenance code stream is a training code stream.

[0034] In a possible implementation of the second aspect, the first PMA receives the control signal sent by the first PCS, and the first PMA stops generating the maintenance code stream and opens a data transmission path related function of the first PMA.

[0035] In a possible implementation of the second aspect, the second device comprises a second medium access control chip and a second physical layer chip, the second physical layer chip comprises a second PCS and a second PMA;

[0036] The second PMA receives the control signal sent by the second PCS, opens the PRBS code stream detection function and shuts down a data reception path related function of the second PMA.

[0037] In a possible implementation of the second aspect, the PRBS code stream detection function of the second PMA includes: detecting the number of error-maintained code stream bits in a preset sliding window; if the number of error-maintained code stream bits in the preset sliding window is less than or equal to a preset threshold, determining that the detection result is successful; and if the number of error-maintained code stream bits in the preset sliding window is greater than the preset threshold, determining that the detection result is unsuccessful.

[0038] In a possible implementation of the second aspect, the PRBS code stream detection function of the second PMA further includes: if the detection result is unsuccessful, turning off the PRBS code stream detection function and turning on the data receiving path related function of the second PMA.

[0039] In a possible implementation of the second aspect, the PRBS code stream detection function of the second PMA further includes: if the detection result is successful, the second PMA continues the PRBS code stream detection and continues to turn off the data receiving path related function of the PMA.

[0040] It should be understood that the technical effects brought by any one of the designs in the second aspect can refer to the beneficial effects provided in the corresponding method, which will not be repeated here. BRIEF DESCRIPTION OF DRAWINGS

[0041] Figure 1 A network schematic diagram based on Ethernet technology connection is provided for the embodiments of the present application.

[0042] Figure 2 Another network schematic diagram based on Ethernet technology connection is provided for the embodiments of the present application.

[0043] Figure 3 A schematic diagram of a physical layer and a medium access control layer of an Ethernet device is provided.

[0044] Figure 4 A flowchart of an Ethernet device processing method is provided for the embodiments of the present application.

[0045] Figure 5 A processing schematic diagram of a first physical layer chip of a first device is provided for the embodiments of the present application.

[0046] Figure 6 A schematic diagram of an Ethernet system is provided for the embodiments of the present application.

[0047] Figure 7 A schematic diagram of a first device detecting no data to be transmitted is provided for the embodiments of the present application.

[0048] Figure 8 A schematic diagram of a first device detecting data to be transmitted is provided for the embodiments of the present application.

[0049] Figure 9 A structural schematic diagram of a first device provided in an embodiment of the present application.

[0050] Figure 10 A structural schematic diagram of a second device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0051] Hereinafter, the terms "first" and "second" are used only for the purpose of description, and should not be understood as indicating or implying relative importance or implicitly indicating the number of the technical features indicated. Therefore, the features defined with "first" and "second" can explicitly or implicitly include one or more of the features. In the description of the embodiments of the present application, the words "exemplary" or "for example" are used to identify examples, examples or illustrations. Any embodiment or design scheme described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as more preferred or more advantageous than other embodiments or design schemes. Rather, the words "exemplary" or "for example" are intended to present the relevant concept in a specific manner.

[0052] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which the present application belongs. The terms used in the specification of the present application are only for the purpose of describing the specific embodiments and are not intended to limit the present application. It should be understood that, in the present application, "a plurality of" means two or more than two, and "and / or" includes any and all combinations of one or more of the associated listed items.

[0053] In order to facilitate understanding, the technical solutions in the embodiments of the present application are described below with reference to the accompanying drawings.

[0054] Figure 1 is a schematic diagram of a network connected based on Ethernet technology.

[0055] Figure 1 In the above, the communication device A and the communication device B perform user data transmission based on Ethernet, and the two communication devices performing user data transmission based on Ethernet can be connected by cable or optical fiber.

[0056] Among them, Ethernet is a related standard published by the institute of electrical and electronics engineers (institute of electrical and electronics engineers, IEEE) 802.3 working group, and is widely used in telecommunication networks.

[0057] Figure 2 is another schematic diagram of a network connected based on Ethernet technology. Figure 2Communication device A and communication device B transmit user data via Ethernet, and communication device B and communication device C transmit user data via Ethernet. In this way, the two communication devices can form a large-scale network based on Ethernet technology, and the large-scale network can include multiple communication devices.

[0058] in, Figure 1 and Figure 2 The communication equipment in the middle uses Ethernet technology to transmit data with other communication equipment, so it can also be called "Ethernet device". Ethernet devices can be servers, personal computers, box-type or chassis-type Ethernet switches, routers and other devices.

[0059] Please see Figure 3 , Figure 3 This diagram illustrates the physical layer and media access control layer of an Ethernet device. The Ethernet device includes a physical layer chip, a media access control layer chip, and other higher-level layer chips. The physical layer chip includes a forward error correction (FEC) sublayer, a physical coding sublayer (PCS), a physical medium attachment (PMA), and a physical media dependent (PMD) interface. The media access control chip of the Ethernet device sends xMII information to the FEC sublayer of the physical layer chip through the MII (somekind of MII, xMII) interface for bit block encoding and rate matching. The PCS encodes according to the 64-bit / 66-bit rule to form a serial stream. Afterwards, the PCS sends the 64B / 66B code block to the FEC layer (the FEC layer of the Ethernet device at the receiving end decodes the received signal, identifies and corrects errors generated during transmission. When the FEC cannot correct the error code, it marks the converted code block as an E code block). After FEC encoding, the data stream can be sent to the Ethernet device at the receiving end via PMA and PMD.

[0060] Figure 3 In this context, FEC and PCS are two independent modules. It can be understood that in other embodiments, FEC can be a sub-module of PCS, meaning that there is no independent PCS in the Ethernet device.

[0061] Figure 3 The physical layer chip of an Ethernet device includes a PMD. It is understood that in other embodiments, if two Ethernet devices communicate using twisted-pair cables, the physical layer chip of the Ethernet device may not include a PMD.

[0062] In order to reduce the power consumption of the Ethernet device, the IEEE 802.3 standardizes the EEE technology, and the EEE specifies two power saving modes: Deep Sleep and Fast Wake. In the Deep Sleep power saving mode, when there is no traffic, the Ethernet device deactivates the functions of the physical layer of the Ethernet device to obtain a greater power saving effect. However, in the Deep Sleep power saving mode, during the process in which the Ethernet device transits from no data to be transmitted to detecting data to be transmitted and performing data transmission, the functions of the physical layer need to be reactivated, and a long time is required to reactivate the functions of the physical layer. In the Fast Wake power saving mode, when there is no data to be transmitted, the modules of the physical layer are still in the working state, and during the process in which the Ethernet device transits from no data to be transmitted to detecting data to be transmitted and performing data transmission, the functions of the physical layer do not need to be reactivated, and the wake-up time is short. However, because the modules of the physical layer are not deactivated, the physical layer does not save power in the Fast Wake power saving mode.

[0063] The wake-up time can also be a period of time between an idle signal received on the xMII interface and permission to use the first data code word on the xMII.

[0064] Based on the above problems, an Ethernet device processing method is provided in the embodiments of the present application, and the method is applied to an Ethernet system. The Ethernet system includes a first device and a second device, and the first device and the second device can perform data communication based on the Ethernet technology. The Ethernet system can include two Ethernet devices that directly perform data communication based on the Ethernet technology as shown in FIG. 1, can include two Ethernet devices that perform data communication through other Ethernet devices as shown in FIG. 2, and can also be other types of network architectures. Figure 1 Figure 2 After the physical layer chip of the first device as the sending end receives the control signal sent by the medium access control chip, the first device enters the low-power mode, generates a maintenance code stream through the PMA of the physical layer chip of the first device, and sends the maintenance code stream to the second device as the receiving end, so as to maintain the synchronization of the link parameters between the first device and the second device, so that after the first device detects data to be transmitted, the physical layer of the first device can quickly transit from the LPI mode to the working state and perform data transmission, thereby reducing the overall wake-up time of the first device.

[0065] Further, the control signal is an LPI signal transmitted between the physical layer chip and the medium access control chip, so that the physical layer chip of the first device enters the low-power idle mode.

[0066] ​For the convenience of illustration and understanding, the first device is taken as the sending end and the second device is taken as the receiving end corresponding to the first device in the embodiments of the present application. It can be understood that in other embodiments, the second device can be taken as the sending end and the first device can be taken as the receiving end corresponding to the second device.

[0067] Please refer to Figure 4 A flowchart of an Ethernet device processing method provided by the embodiments of the present application is shown. The Ethernet device processing method is applied to an Ethernet system, and the Ethernet system includes a first device and a second device. The first device and the second device perform data communication based on Ethernet.

[0068] The first device includes a first medium access control chip and a first physical layer chip. The first physical layer chip includes a first PCS and a first PMA.

[0069] It can be understood that in other embodiments, the first physical layer chip can further include a first PMD. Of course, if the first device and the second device perform communication by using a twisted pair, the first device and the second device can not include a PMD.

[0070] The Ethernet device processing method includes the following steps:

[0071] S401, the first PMA receives a control signal sent by the first PCS.

[0072] Specifically, when the first medium access control chip of the first device does not detect data to be transmitted, the first medium access control chip sends a control signal to the first physical layer chip through a data transmission path. The control signal can carry an LPI indication, so as to make the first device enter an LPI mode.

[0073] S402, the first PMA generates a maintenance code stream and sends the maintenance code stream to the second device.

[0074] The maintenance code stream is used to maintain the synchronization of link parameters between the first device and the second device. The link parameters can be various capability information about the first device and the second device, which are determined in a self-negotiation process of the Ethernet devices at both ends of the link when the first device and the second device establish an Ethernet link.

[0075] Please refer to Figure 5 , Figure 5 A processing diagram of the first physical layer chip of the first device is shown, for example, Figure 5The first physical layer chip receives the first control signal, such as the LPI signal, sent by the first medium access control chip, and the first PCS of the first physical layer chip sends the first control signal, such as the LPI signal, for a preset time. After the first PCS is turned off, the first PCS enters a quiet state and sends a second control signal, such as a state signal of the first PCS, to the first PMA to inform the first PMA that the first PCS has entered the quiet state. After the first PMA receives the state signal, the function module for maintaining the code stream in the first PMA is turned on, such as enabling the PRBS send function in the PMA AFIFO, and the PRBS send function is used to generate a PRBS code stream and send the PRBS code stream to the second device. Here, the code stream for maintaining the code stream is the PRBS code stream.

[0076] In this way, when the first device does not detect data to be transmitted, the first device enters the power saving mode (such as the LPI mode) from the working state. After entering the power saving mode, the first device generates and sends the code stream for maintaining the code stream to the second device to maintain the synchronization of the link parameters between the first device and the second device. When the first device detects data to be transmitted, the first device can quickly enter the working state from the power saving mode to reduce the wake-up time of the first device.

[0077] In some embodiments, before the first PMA generates and sends the code stream for maintaining the code stream to the second device, the first PMA turns off the data transmission path related functions of the first PMA.

[0078] Specifically, after the first PMA receives the control signal (such as the LPI signal) sent by the first PCS for a preset time, the first PMA receives a new control signal sent by the first PCS, and the new control signal carries the state of the first PCS, such as the first PCS entering the quiet state. It is determined that the first PCS enters the quiet state of the LPI mode, that is, the functions of the first PCS are turned off at this time. Then, the first PMA turns off the data transmission path related functions of the first PMA. After the data transmission path related functions of the first PMA are turned off, the code stream maintenance function of the first PMA is started, that is, only the data transmission path related functions of the first PMA are turned off, but the code stream maintenance function can work normally. At this time, the first PMA can also generate and send the code stream for maintaining the code stream to the second device. For the first device, before the first PMA generates and sends the code stream for maintaining the code stream to the second device, the data transmission path related functions of the first PMA of the first device and the first PCS are turned off.

[0079] The data transmission path related functions are the processing that the first PMA needs to do when the first device sends data to the second device, such as the serial-parallel conversion function, the alignment function, etc.

[0080] In some embodiments, the first physical layer chip of the first device further comprises a first PMD, and the first PMA generating and sending the maintenance code stream to the second device comprises:

[0081] The first PMA generates and sends the maintenance code stream to the first PMD, and the first PMD receives the maintenance code stream generated by the first PMA and sends the maintenance code stream to the second device.

[0082] At this time, the data transmission path related functions of the first PMA and the first PCS of the first physical layer chip of the first device are turned off, but the first PMD is in working state and continuously sends the maintenance code stream to the second device to maintain the synchronization of the link parameters between the first device and the second device. When the first device has no data to be transmitted, the turning off of the first PCS and the first PMA is decoupled from the turning off of the PMD, and the data transmission path related functions of the first PMA and the first PCS are turned off to save the power consumption of the physical layer chip of the first device, and the first PMD is kept in working state and continuously sends the maintenance code stream to the second device so that when the data to be transmitted is detected, the physical layer chip of the first device can quickly enter the working state, thereby reducing the wake-up time of the first device. Therefore, the above-mentioned Ethernet processing method can reduce the power consumption of the physical layer chip of the first device when there is no data transmission in the first device while reducing the wake-up time of the first device.

[0083] In some embodiments, the first physical layer chip of the first device further comprises a first FEC sublayer, and the first FEC sublayer and the first PCS are both turned off when the first device has no data transmission.

[0084] It can be understood that the first FEC sublayer can be a functional module in the first PCS, and the first FEC sublayer and the first PCS can also be two independent functional modules.

[0085] In some embodiments, the functional module of the first PMA for generating the maintenance code stream is located at the entrance of the first PMD, i.e., the module closest to the first PMD among the plurality of modules in the first PMA, so as to reduce the transmission path of the maintenance code stream between the first PMD and the first PMA.

[0086] In some embodiments, the maintenance code stream is a Pseudo-Random Binary Sequence (PRBS) code stream. Therefore, after the first device detects the data to be transmitted and enters the LPI mode, the first PMA or the first PMD of the first physical layer chip of the first device continuously sends the Pseudo-Random Binary Sequence (PRBS) code stream to the second device to maintain the synchronization of the link parameters between the first device and the second device.

[0087] In some embodiments, if the first PCS adopts 8B / 10B encoding, the PRBS code stream is a PRBS7 code stream.

[0088] If the first PCS adopts 64B / 66B encoding, the PRBS code stream is a PRBS31 code stream or a PRBS58 code stream. In this way, a corresponding maintenance code stream is selected according to the encoding method, so that the maintenance code stream is close to the randomness of the real service code stream. Thus, the transmission of the maintenance code stream can maintain the synchronization of the link parameters between the first device and the second device.

[0089] In some embodiments, the maintenance code stream is a PRBS code stream after scrambling. Since the PRBS code stream after scrambling is closer to the real service code stream between the first device and the second device, the synchronization of the link parameters between the first device and the second device can be maintained by the PRBS code stream after scrambling.

[0090] It can be understood that in other embodiments, the maintenance code stream can be other types of pseudo-random code streams selected according to the encoding method of the first PCS or the link characteristics of the PMD, as long as the first device can maintain the synchronization of the link parameters between the first device and the second device by sending the maintenance code stream to the second device when there is no data transmission in the first device.

[0091] In some embodiments, if the twisted pair interface is used for data communication between the first device and the second device, the maintenance code stream is a training code stream. In this way, the twisted pair interface is used for data communication between the first device and the second device, and the first PMA of the first device sends the training code stream to the second device to maintain the synchronization of the link parameters between the first device and the second device.

[0092] It can be understood that when the first media access control chip of the first device does not detect the data to be transmitted, the first media access control chip sends an LPI signal to the first physical layer chip, and the first physical layer chip sends an LPI signal to the second device to inform the second device of the state of the first device, so that the second device enters the LPI mode according to the state of the first device to save the power consumption of the second device.

[0093] In some embodiments, the second device includes a second media access control chip and a second physical layer chip, and the second physical layer chip includes a second PCS and a second PMA.

[0094] The above Ethernet device processing method further includes:

[0095] S403, the second PMA receives the control signal sent by the second PCS, opens the PRBS code stream detection function and closes the data receiving path related function of the second PMA.

[0096] Specifically, when the second device does not detect data to be transmitted, the first device enters the power saving mode, such as the LPI mode, and sends an LPI signal to the second device. After the second PCS of the second device detects the LPI signal, the second PCS sends a control signal to the second PMA to carry an LPI signal indication, so that the second PMA opens the PRBS code stream detection function and turns off the data receiving path related function of the second PMA. By opening the PRBS code stream detection function, the PRBS code stream sent by the first device is detected, the synchronization of the link parameters between the first device and the second device is maintained, and the mode of the first device is inferred according to the detection result of the PRBS code stream detection function of the second device, which is simple and efficient, and the processing logic is simple.

[0097] Since the PRBS code stream is transmitted between the first device and the second device and no data is transmitted through the data path, the data receiving path related function of the second PMA of the second device and the second PCS are turned off at this time, so as to save the power consumption of the physical layer of the second device.

[0098] In some embodiments, the second physical layer chip of the second device further includes a second PMD. Thus, when there is no normal data traffic related data transmission between the first device and the second device, and only the first device sends the maintenance code stream to the second device, the second PMD receives the maintenance code stream and sends the maintenance code stream to the second PCS, that is, the second PMD of the second device is always in the working state. When the second device detects that the first device performs data transmission, the second device does not need to start the second PMD again, which reduces the wake-up time of the second physical layer chip of the second device.

[0099] In some embodiments, the PRBS code stream detection function of the second PMA of the second device includes:

[0100] detecting the number of error maintenance code stream bits in the preset sliding window;

[0101] if the number of error maintenance code stream bits in the preset sliding window is less than or equal to the preset threshold, determining that the detection result is successful;

[0102] if the number of error maintenance code stream bits in the preset sliding window is greater than the preset threshold, determining that the detection result is failed.

[0103] Specifically, the PRBS code stream detection function of the second PMA is used to receive the PRBS code stream sent by the first device, and determine the detection result according to the relationship between the number of error PRBS code stream bits in the preset sliding window and the preset threshold, and determine the state of the first device according to the detection result, and then adjust the state of the second device according to the state of the first device, so as to adjust the state of the first device according to the state of the second device. That is, the second device determines the working state of the opposite end according to the detection of the maintenance code stream.

[0104] The window detection method can set the relationship between the preset threshold and the size of the sliding window to prevent burst errors from affecting the detection result, thereby improving the reliability and robustness of the detection method.

[0105] Please refer to Table 1, which is an example of detecting the number of PRBS code streams based on a sliding window. In Table 1, the transmission rate of the code stream is 100 Gbps, the sliding window is 256 bits, the detection time is 0.00256 microseconds, the pre-error rate (PRE-BER) is 2.00E-04, and the corresponding probability and interval time (in years) are then set. The detection result is determined by managing the number of error-maintained code streams and the preset threshold. The preset threshold is 39, and if the number of error-maintained code stream bits is less than or equal to 39, the detection result is determined to be successful. If the number of error-maintained code stream bits is greater than 39, the detection result is determined to be failed. In this way, the relationship between the preset threshold and the sliding window can be adjusted to avoid the influence of errors caused by various abnormal situations on the detection result, thereby improving the accuracy of the detection result.

[0106] Table 1

[0107]

[0108] If the first device transmits a training code stream, the second PMA of the second device detects the training code stream, and determines the working state of the first device according to the detection result, for example, the window detection method of the pseudo-random code stream determines the detection result of the training code stream according to the above embodiment.

[0109] It can be understood that when the first device in the LPI mode detects the to-be-transmitted data, the first device enters the normal working state from the LPI mode, so as to transmit the to-be-transmitted data to the second device.

[0110] The above Ethernet processing method further includes:

[0111] S404, the first PMA receives the control signal sent by the first PCS, and the first PMA stops generating the maintenance code stream and opens the data transmission path related function of the first PMA.

[0112] Specifically, when the first media access control chip of the first device detects data to be transmitted, an idle code stream is sent to the first physical layer chip to open the first PCS. The first PCS sends a control signal to the first PMA, wherein the control signal can carry a data DATA signal to inform the first PMA that data to be transmitted is detected. The first PMA receives the control signal sent by the first PCS, and the first PMA stops generating the maintenance code stream and opens the data transmission path related function of the first PMA. That is, when the first device detects data to be transmitted, only the data transmission path related function of the second PMA and the first PCS need to be opened, so that the first physical layer chip of the first device can quickly enter the working state, thereby reducing the overall wake-up time of the first device. Since the transmission of the maintenance code stream is always carried out between the first device and the second device, the synchronization of the link parameters between the first device and the second device is not required in the wake-up process of the first device, thereby reducing the wake-up time of the first device.

[0113] In some embodiments, the first physical layer chip further includes a first PMD. After the first device detects no data to be transmitted and enters the LPI mode, the first PMA continuously sends the maintenance code stream to the first PMD and sends the maintenance code stream to the second device by the first PMD. That is, during the process in which the transmission of the maintenance code stream is carried out between the first device and the second device without the transmission of the data to be transmitted, the first PMD is always in the working state. In this way, when the first device detects the data to be transmitted to the first device enters the working state, the first PMD does not need to be opened again, thereby saving the overall wake-up time of the first device.

[0114] When the first device detects the data to be transmitted and enters the normal working state from the LPI mode. During the process in which the first device enters the normal working state from the LPI mode, the first PMA stops generating the maintenance code stream and no longer sends the maintenance code stream to the second device. The second device infers that the first device enters the normal working state according to the received maintenance code stream, and then the second device also enters the normal working state from the LPI mode to receive the service data sent by the first device.

[0115] In some embodiments, the Ethernet device processing method further includes:

[0116] S405, if the detection result of the PRBS code stream detection function of the second device is failure, the PRBS code stream detection function is closed, and the data receiving path related function of the second PMA is opened.

[0117] Specifically, when the PRBS code stream detection function of the second PMA determines that the detection result is failure, it is determined that the first device exits the LPI mode, i.e., the first device is about to send non-maintenance code stream, such as service related data, to the second device, and the first device enters the active state, and no longer sends the maintenance code stream to the second device, the second device closes the PRBS code stream detection function, in order to receive the data sent by the first device, the second device will enter the active state from the LPI mode, and the second device enters the active state by opening the data receiving path related function of the second PMA. Further, the second device entering the active state also needs to open the second PCS.

[0118] In some embodiments, if the second physical layer chip further comprises a second FEC, after closing the PRBS code stream detection function, the second FEC also needs to be opened.

[0119] It can be understood that when the first device does not detect data to be transmitted, the maintenance code stream is continuously sent to the second device, the second device receives the maintenance code stream sent by the first device and determines that the first device is in the LPI mode according to the maintenance code stream, and then the second device continues to perform PRBS code stream detection and continues to close the data receiving path related function of the PMA.

[0120] In some embodiments, the Ethernet device processing method further comprises:

[0121] If the detection result of the PRBS code stream detection function of the second device is success, the second PMA continues to perform PRBS code stream detection and closes the data receiving path related function of the PMA.

[0122] Specifically, according to the detection result, it is determined that the state of the first device does not change, and the PRBS code stream detection function of the second PMA of the second device continues to perform PRBS code stream detection and continues to close the data receiving path related function of the PMA, i.e., according to the detection result, it is determined that the state of the first device does not change, and the second device continues to maintain the original state.

[0123] Please refer to Figure 6 , Figure 6 A schematic diagram of an Ethernet system is provided for the embodiments of the present application, the Ethernet system comprises a first device and a second device, and the first device and the second device perform data communication according to Ethernet technology. The first device can perform the steps of the Ethernet device processing method. Figure 4 The second device can perform the steps of the Ethernet device processing method. Figure 4 The second device can perform the steps of the Ethernet device processing method.

[0124] Specifically, the Ethernet system comprises a first device and a second device, the first device and the second device are in data communication through Ethernet technology, the first device comprises a first medium access control chip and a first physical layer chip, the first physical layer chip comprises a first physical coding sublayer (PCS) and a first physical medium access sublayer (PMA); the first PMA is configured to receive a low power idle (LPI) signal sent by the first PCS; after receiving the LPI signal, the first PMA is further configured to generate a maintenance code stream and send the maintenance code stream to the second device, the maintenance code stream is used to maintain synchronization of link parameters between the first device and the second device.

[0125] In some embodiments, the first PMA is further configured to shut down the data transmission path related functions of the first PMA before generating the maintenance code stream and sending the maintenance code stream to the second device.

[0126] In some embodiments, the maintenance code stream is a pseudo random binary sequence (PRBS) code stream.

[0127] In some embodiments, if the first PCS adopts 8B / 10B encoding, the PRBS code stream is a PRBS7 code stream; if the first PCS adopts 64B / 66B encoding, the PRBS code stream is a PRBS31 code stream or a PRBS58 code stream.

[0128] In some embodiments, the maintenance code stream is a scrambled PRBS code stream. Since the scrambled PRBS code stream is closer to the real service code stream between the first device and the second device, the synchronization of the link parameters between the first device and the second device can be maintained through the scrambled PRBS code stream.

[0129] In some embodiments, if a twisted pair interface is adopted between the first device and the second device, the maintenance code stream is a training code stream.

[0130] In some embodiments, the first PMA receives a control signal sent by the first PCS, and the first PMA stops generating the maintenance code stream and opens the data transmission path related functions of the first PMA. The control signal can be a data (DATA) signal sent by the first PCS to the first PMA.

[0131] In some embodiments, the second device comprises a second medium access control chip and a second physical layer chip, the second physical layer chip comprises a second PCS and a second PMA;

[0132] The second PMA receives the control signal sent by the second PCS, opens the PRBS code stream detection function and closes the data receiving path related function of the second PMA. The control signal carries an LPI indication.

[0133] In some embodiments, the PRBS code stream detection function of the second PMA includes: detecting the number of error maintaining code stream bits in a preset sliding window; if the number of error maintaining code stream bits is less than or equal to a preset threshold, determining that the detection result is successful; and if the number of error maintaining code stream bits is greater than the preset threshold, determining that the detection result is failed.

[0134] In some embodiments, the PRBS code stream detection function of the second PMA further includes: if the detection result is failed, closing the PRBS code stream detection function and opening the data receiving path related function of the second PMA.

[0135] In some embodiments, the PRBS code stream detection function of the second PMA further includes: if the detection result is successful, the second PMA continues the PRBS code stream detection and continues to close the data receiving path related function of the PMA.

[0136] Please refer to 7, Figure 7 A schematic diagram of a first device detecting no data to be transmitted is provided for embodiments of the present application.

[0137] Figure 7 The first device and the second device use a 100GBASE-KR4 interface to perform data communication, the first device includes a first medium access control chip and a first physical layer chip, the first physical layer chip includes a first PCS and a first PMA, the second device includes a second medium access control chip and a second physical layer chip, and the second physical layer chip includes a second PCS and a second PMA.

[0138] Specifically, when the first medium access control MAC chip of the first device does not detect data to be transmitted, the first physical layer chip is continuously sent an LPI signal, so as to disable part of functional modules and enable a maintaining code stream function of the first physical layer chip.

[0139] The disabled functional modules can include: encoding and transcoding, scrambling, AM insertion, symbol distribution, and FEC encoding. The maintaining code stream function can be a PRBS Send in a PMA AFIFO of the second PMA, which is used to generate a PRBS code stream and send the PRBS code stream to the second device.

[0140] The second device receives the LPI signal sent by the first device, determines that the first device enters the LPI mode, and turns off the function modules of the second physical layer chip and turns on the PRBS code stream detection function.

[0141] The function modules of the second physical layer chip turned off can include alignment locking, jitter elimination, reordering, FEC decoding, reverse transcoding and decoding, descrambling, and deinterleaving. The PRBS code stream detection function can be located in a PRBS checker in a PMA AFIFO of the second device.

[0142] Please refer to FIG. 8, Figure 8 A schematic diagram of a first device detecting to-be-transmitted data is provided for an embodiment of the present application.

[0143] Figure 8 In the first device and the second device adopt a 100GBASE-KR4 interface to perform data communication, the first device includes a first medium access control chip and a first physical layer chip, the first physical layer chip includes a first PCS and a first PMA, the second device includes a second medium access control chip and a second physical layer chip, and the second physical layer chip includes a second PCS and a second PMA.

[0144] Specifically, when the first medium access control MAC chip of the first device detects to-be-transmitted data, the first medium access control MAC chip continuously sends an idle signal to the first physical layer chip, so that the first physical layer chip turns on part of the function modules and turns off the code stream maintenance function.

[0145] The turned-on function modules can include encoding and transcoding, scrambling, AM insertion, symbol distribution, and FEC encoding. The code stream maintenance function can be located in a PRBS Send in a PMA AFIFO of the second PMA, and is used to generate a PRBS code stream and send the PRBS code stream to the second device.

[0146] The second device receives the idle signal sent by the first device, determines that the first device enters the working state, turns on part of the function modules of the second physical layer chip, and turns off the PRBS code stream detection function.

[0147] The turned-on function modules of the second physical layer chip can include alignment locking, jitter elimination, reordering, FEC decoding, reverse transcoding and decoding, descrambling, and deinterleaving. The PRBS code stream detection function can be located in a PRBS checker in a PMA AFIFO of the second device.

[0148] Please refer to Figure 9 which shows a structural schematic diagram of a first device provided by an example embodiment of the present application. The Ethernet device can be implemented as the first device in the above Figure 4 and has the functions of the first device.

[0149] The first device 90 comprises a processor 91, a bus 92 and a memory 93.

[0150] The processor 91 can comprise one or more than one central processing unit (CPU), such as CPU0, CPU1. The processor 91 performs various function applications and service processing by running software programs and modules.

[0151] The memory 93 is connected to the processor 91 through the bus 92.

[0152] The memory 93 can be used to store software programs and modules which are executed by the processor 91. In addition, various service data can also be stored in the memory 93. In the embodiments of the present application, the software programs and modules stored in the memory 93 can comprise at least one application program module 96 required by the processor 91 for performing a function.

[0153] Please refer to Figure 10 which shows a structure diagram of a second device provided by an exemplary embodiment of the present application. The second device can realize the functions of the second device in the above Figure 4 .

[0154] The second device 100 comprises a processor 101, a bus 102 and a memory 103.

[0155] The processor 101 can comprise one or more than one central processing unit (CPU), such as CPU0, CPU1. The processor 101 performs various function applications and service processing by running software programs and modules.

[0156] The memory 103 is connected to the processor 101 through the bus 102.

[0157] The memory 103 can be used to store software programs and modules which are executed by the processor 101. In addition, various service data can also be stored in the memory 103. In the embodiments of the present application, the software programs and modules stored in the memory 103 can comprise at least one application program module 106 required by the processor 101 for performing a function.

[0158] Those skilled in the art should understand that the embodiments of the present application can be provided as a method, a system or a computer program product. Therefore, the present application can take the form of a hardware embodiment, a software embodiment or an embodiment combining software and hardware aspects. In addition, the present application can take the form of a computer program product implemented on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROMs, optical storage, etc.) containing computer-usable program code. The computer-usable program code can be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to work in a specific manner.

[0159] The embodiments also provide a computer storage medium, which stores computer instructions. When the computer instructions are run on an entry device, the entry device executes the related method steps to implement the method for reducing power consumption of an Ethernet device in the above embodiments.

[0160] The embodiments also provide a computer program product. When the computer program product is run on an entry device, the entry device executes the related steps to implement the method for reducing power consumption of an Ethernet device in the above embodiments.

[0161] In addition, the embodiments of the present application also provide an apparatus, which can be a chip, a component or a module. The apparatus can include a processor and a memory connected to each other. The memory is used to store computer execution instructions. When the apparatus is running, the processor can execute the computer execution instructions stored in the memory to enable the chip to execute the method for reducing power consumption of an Ethernet device in the above embodiments.

[0162] From the above description of the embodiments, those skilled in the art can clearly understand that, for the convenience and brevity of description, only the division of the above functional modules is taken as an example for illustration. In actual application, the above functions can be completed by different functional modules according to needs, i.e., the internal structure of the apparatus is divided into different functional modules to complete all or part of the functions described above.

[0163] In the several embodiments provided by the present application, it should be understood that the disclosed apparatus and method can be implemented in other manners. For example, the described apparatus embodiments are merely schematic. The division of the modules or the division of the components can be changed according to the actual needs. For example, some features can be combined or integrated into another apparatus or component, or some features can be ignored or not executed. In addition, the displayed or discussed mutual coupling or direct coupling or communication connection can be indirect coupling or communication connection through some interfaces, apparatuses or modules, and can be electrical, mechanical or other forms.

[0164] The modules described as separate components may or may not be physically separate, and the components shown as modules may be a physical module or multiple physical modules, that is, may be located in one place, or also can be distributed to multiple different places. Part or all of the modules can be selected according to actual needs to achieve the purpose of the embodiment of the present application.

[0165] In addition, each functional module in each embodiment of the present application can be integrated in one processing module, or each module can exist physically alone, or two or more modules can be integrated in one module. The integrated module can be realized in the form of hardware or in the form of a software functional module.

[0166] The integrated module, if realized in the form of a software functional module and sold or used as an independent product, can be stored in a readable storage medium. Based on this understanding, the technical solutions of the embodiments of the present application essentially or the part that contributes to the prior art or the whole or part of the technical solutions can be embodied in the form of a software product, which is stored in a storage medium and includes a number of instructions to make a device (which can be a single-chip microcomputer, a chip, etc.) or a processor execute all or part of the steps of the method described in the embodiments of the present application. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and various program code storage media.

[0167] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto, any change or replacement within the technical scope disclosed in the present application should be covered in the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.

Claims

1. An Ethernet device processing method, characterized by, The application is applied to an Ethernet system, the Ethernet system comprises a first device and a second device, the first device and the second device communicate data through Ethernet technology, the first device comprises a first medium access control chip and a first physical layer chip, the first physical layer chip comprises a first physical coding sublayer (PCS) and a first physical medium access sublayer (PMA), and the Ethernet device processing method comprises the following steps: The first PMA receives a control signal sent by the first PCS, generates a maintenance code stream, and sends the maintenance code stream to the second device, wherein the maintenance code stream is used to maintain synchronization of link parameters between the first device and the second device.

2. The Ethernet device processing method of claim 1, wherein Before generating the maintenance code stream and sending the maintenance code stream to the second device, the first PMA turns off the data transmission path related functions of the first PMA.

3. The Ethernet device processing method of claim 1, wherein The maintenance code stream is a pseudo-random code (PRBS) code stream or a scrambled PRBS code stream.

4. The Ethernet device processing method of claim 3, wherein If the first PCS adopts 8B / 10B encoding, the PRBS code stream is a PRBS7 code stream; If the first PCS adopts 64B / 66B encoding, the PRBS code stream is a PRBS31 code stream or a PRBS58 code stream.

5. The method of claim 4, wherein the Ethernet device processing method further comprises: The maintenance code stream is a scrambled PRBS code stream.

6. The Ethernet device processing method of claim 1, wherein If a twisted pair interface is adopted between the first device and the second device, the maintenance code stream is a training code stream.

7. The Ethernet device processing method of any one of claims 1 to 6, wherein The first PMA receives a control signal sent by the first PCS, stops generating the maintenance code stream, and turns on the data transmission path related functions of the first PMA.

8. The method of processing Ethernet frames as claimed in any one of claims 3 to 5, wherein, The second device comprises a second medium access control chip and a second physical layer chip, the second physical layer chip comprises a second PCS and a second PMA; The Ethernet device processing method further comprises: The second PMA receives a control signal sent by the second PCS, turns on the PRBS code stream detection function, and turns off the data reception path related functions of the second PMA.

9. The method of claim 8, wherein the Ethernet device processing method further comprises: The PRBS code stream detection function of the second PMA comprises: Detecting the number of error maintenance code stream bits in a preset sliding window; If the number of error maintenance code stream bits in the preset sliding window is less than or equal to a preset threshold, it is determined that the detection result is successful; If the number of error maintenance code stream bits in the preset sliding window is greater than the preset threshold, it is determined that the detection result is failed.

10. The method of claim 9, wherein the Ethernet device processing method further comprises: The Ethernet device processing method further comprises: If the detection result is failed, turn off the PRBS code detection function, and turn on the data reception path related functions of the second PMA.

11. The method of claim 9, wherein the Ethernet device processing method is characterized by, The Ethernet device processing method further comprises: If the detection result is success, the second PMA continues the PRBS code stream detection and continues to shut down the data receiving path related function of the PMA.

12. An Ethernet system, characterized by The Ethernet system comprises a first device and a second device, the first device and the second device perform data communication through Ethernet technology, the first device comprises a first medium access control chip and a first physical layer chip, the first physical layer chip comprises a first physical coding sublayer (PCS) and a first physical medium access sublayer (PMA); The first PMA is configured to receive a control signal sent by the first PCS; After receiving the control signal, the first PMA is further configured to generate a maintenance code stream and send the maintenance code stream to the second device, the maintenance code stream being used to maintain synchronization of link parameters between the first device and the second device.

13. The Ethernet system of claim 12, wherein, Before generating the maintenance code stream and sending the maintenance code stream to the second device, the first PMA is further configured to shut down the data transmission path related function of the first PMA.

14. The Ethernet system of claim 12, wherein, The maintenance code stream is a pseudo-random code (PRBS) code stream.

15. The Ethernet system of claim 14, wherein, If the first PCS adopts 8B / 10B encoding, the PRBS code stream is a PRBS7 code stream; If the first PCS adopts 64B / 66B encoding, the PRBS code stream is a PRBS31 code stream or a PRBS58 code stream.

16. The Ethernet system of claim 12, wherein, The maintenance code stream is a PRBS code stream scrambled.

17. The Ethernet system of claim 12, wherein, If a twisted pair interface is adopted between the first device and the second device, the maintenance code stream is a training code stream.

18. The Ethernet system of any one of claims 12 to 17, wherein, The first PMA receives a data control signal sent by the first PCS, the first PMA stops generating the maintenance code stream and opens the data transmission path related function of the first PMA.

19. The Ethernet system of claim 14 or 15, wherein, The second device comprises a second medium access control chip and a second physical layer chip, the second physical layer chip comprising a second PCS and a second PMA; The second PMA receives a control signal sent by the second PCS, opens the PRBS code stream detection function and shuts down the data receiving path related function of the second PMA.

20. The Ethernet system of claim 19, wherein, The PRBS code stream detection function of the second PMA comprises: detecting the number of error maintenance code stream bits in a preset sliding window; If the number of error maintenance code stream bits in the preset sliding window is less than or equal to a preset threshold, it is determined that the detection result is success; If the number of error maintenance code stream bits in the preset sliding window is greater than the preset threshold, it is determined that the detection result is failure.

21. The Ethernet system of claim 20, wherein, The PRBS code stream detection function of the second PMA further comprises: If the detection result is failure, the PRBS code stream detection function is closed and the data receiving path related function of the second PMA is opened.

22. The Ethernet system of claim 20, wherein, The PRBS code stream detection function of the second PMA further includes: If the detection result is successful, the second PMA continues the PRBS code stream detection and continues to shut down the data receiving path related function of the PMA.

Citation Information

Patent Citations

  • Physical layer data transmitting method and receiving method and physical layer chip

    CN101026523A

  • Ethernet data transmission method and communication equipment

    CN112039629A

Cited By

  • Processing method for ethernet device, and ethernet system

    EP4651410A1