Unidirectional Transmission Mode Switching Method, System, Medium and Device for Gigabit Ethernet
By switching to one-way transmission mode for monitoring the signal-to-noise ratio of the signal-to-noise ratio of the monitored signal eye diagram quality, the signal attenuation and crosstalk problems of Gigabit Ethernet under long distances or inferior cable conditions are solved, and high reliability and stable data transmission is achieved, reducing network failure risk and maintenance costs.
Patent Information
- Application Number
- CN202411752013.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-02
- Publication Date
- 2025-08-01
- Estimated Expiration
- 2044-12-02
AI Technical Summary
Gigabit Ethernet has serious signal attenuation and crosstalk problems under long-distance or inferior cable conditions, resulting in a decline in data transmission quality. The existing full-duplex communication mode is susceptible to echo and near-end crosstalk interference, affecting the correct data reception and analysis.
By monitoring the signal-to-noise ratio of the eye diagram quality of the signal to noise ratio, the unidirectional transmission mode is triggered, the master device sends the training signal and changes the register settings to enter the unidirectional transmission mode, ensuring that the slave device is only used as the receiver, and the exit mechanism includes monitoring conditions such as noise and echo changes.
Significantly improve data transmission reliability, reduce error rates, enhance network adaptability, reduce maintenance costs, improve user experience, and promote technological development.
Smart Images

Figure CN119561914B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of communication control, and particularly relates to a method, system, medium and device for switching the unidirectional transmission mode of Gigabit Ethernet. Background Art
[0002] As a high-speed local area network technology, Gigabit Ethernet has greatly promoted the development of data transmission rate since its introduction, making it possible to achieve efficient and stable data exchange in a local area network environment. By increasing the network bandwidth to thousands of megabits per second (Gbps), Gigabit Ethernet technology meets the growing demand for data-intensive applications, such as high-definition video transmission, large database access, and cloud computing services.
[0003] However, although Gigabit Ethernet technology provides extremely high transmission rates in theory, in practical applications, especially when the network cabling environment is complex or in poor condition, the quality of data transmission is often severely affected. The problems existing in the current prior art include the following aspects:
[0004] (1) Long-distance transmission limitation: When Gigabit Ethernet signals are transmitted over copper cables, as the distance increases, problems such as signal attenuation and crosstalk (such as echo and next, i.e., return loss and near-end crosstalk) become increasingly prominent. Long-distance transmission may cause signal distortion, affecting the correct reception and parsing of data, especially in a network topology that has not been fully optimized.
[0005] (2) Influence of cable quality: The quality difference of network cables also significantly affects the reliability of Gigabit Ethernet transmission. Low-quality network cables or aged and damaged cables, due to reasons such as decreased insulation performance and impedance mismatch, will increase the loss and interference during signal transmission, thus exacerbating problems such as echo (return loss) and next (near-end crosstalk).
[0006] (3) Limitations of full-duplex communication: In traditional Gigabit Ethernet communication, the full-duplex mode is adopted, that is, both communication parties can send and receive data simultaneously. Although this mode improves communication efficiency, under long-distance or poor cable conditions, the data sent from the device end may generate strong echo and near-end crosstalk, interfering with the original signal sent from the master device end, resulting in a decline in communication quality or even communication failure. Summary of the Invention
[0007] In view of the above-mentioned disadvantages of the prior art, the purpose of the present invention is to provide a method, system, medium and device for switching the unidirectional transmission mode of Gigabit Ethernet to solve the above problems.
[0008] In a first aspect, the present invention provides a method for switching the unidirectional transmission mode of Gigabit Ethernet, and the method includes the following steps:
[0009] Monitor the signal-to-noise ratio of the eye diagram quality of the transmission signal between the master device and the slave device, and trigger the unidirectional transmission mode based on the signal-to-noise ratio;
[0010] Control the master device to terminate the transmission of the training signal, and make the master device and the slave device enter the unidirectional transmission mode establishment stage by changing the settings of the preset register;
[0011] When entering the unidirectional transmission mode establishment stage, control the master device to send a training signal for a preset duration, and complete the establishment of the unidirectional transmission mode when the slave device successfully receives the modulation signal;
[0012] Respond to a preset exit mechanism to exit the currently established unidirectional transmission mode, and the exit mechanism includes a first mechanism, a second mechanism, and a third mechanism.
[0013] In a possible implementation manner of the present application, the monitoring of the signal-to-noise ratio of the eye diagram quality of the transmission signal between the master device and the slave device to trigger the unidirectional transmission mode specifically includes:
[0014] In the normal transmission mode, the master device and the slave device communicate and connect based on the auto-negotiation protocol. Among them, the master device sends a PAM3 training signal to the slave device, and the slave device sends an IDLE signal to the master device after receiving the training signal;
[0015] During the transmission of the signal between the master device and the slave device, detect the eye diagram quality of both sides, where
[0016] If the signal-to-noise ratio of the eye diagram quality is greater than the preset value, send a PAM5 training signal for communication;
[0017] If the signal-to-noise ratio of the eye diagram quality is less than or equal to the preset value, trigger the unidirectional transmission mode.
[0018] In a possible implementation manner of the present application, the controlling the master device to terminate the transmission of the training signal and making the master device and the slave device enter the unidirectional transmission mode establishment stage by changing the settings of the preset register specifically includes:
[0019] When the signal-to-noise ratio of the eye diagram quality is less than or equal to the preset value, control the master device to terminate the transmission of the PAM3 or PAM5 training signal and trigger the unidirectional transmission mode;
[0020] Change the settings of the preset register to the preset value so that the master device and the slave device enter the unidirectional transmission mode establishment stage through the auto-negotiation protocol, including setting the remote fault bit of the register to 1.
[0021] In a possible implementation manner of the present application, when entering the one-way transmission mode establishment stage, the master device is controlled to send a training signal for a preset duration, and when the slave device successfully receives the modulation signal, the establishment of the one-way transmission mode is completed. Specifically, it includes:
[0022] The master device sends a training signal for a preset duration to the slave device. After receiving the training signal, the slave device adjusts the sampling phase to perform digital image processing to receive the training signal, where the preset duration specifically includes 500 milliseconds;
[0023] After the preset duration ends, the master device sends a PAM5 modulation signal, and when the slave device receives the corresponding modulation signal at the same time, the establishment of the one-way transmission mode is completed.
[0024] In a possible implementation manner of the present application, in response to a preset first mechanism to exit the currently established one-way transmission mode, specifically including: when it is monitored that the slave device does not receive any transmission signal, exit the currently established one-way transmission mode.
[0025] In a possible implementation manner of the present application, in response to a preset second mechanism to exit the currently established one-way transmission mode, specifically including: when it is monitored that the master device receives an exit instruction, exit the currently established one-way transmission mode.
[0026] In a possible implementation manner of the present application, in response to a preset third mechanism to exit the currently established one-way transmission mode, specifically including:
[0027] Monitoring the noise specification of the slave device, where when the ratio of the noise mean value at the current monitoring moment to the noise mean value at the previous monitoring moment is greater than a preset ratio, exit the currently established one-way transmission mode;
[0028] Monitoring the echo specification of the master device, where when the change value of the echo energy at the current monitoring moment exceeds a preset change value, exit the currently established one-way transmission mode.
[0029] In a second aspect, the present invention provides a one-way transmission mode switching system for Gigabit Ethernet, and the system includes:
[0030] A monitoring module, configured to monitor the signal-to-noise ratio of the signal eye diagram quality between the master device and the slave device, and trigger the one-way transmission mode based on the signal-to-noise ratio;
[0031] A setting module, configured to control the master device to terminate the transmission of the training signal, and make the master device and the slave device enter the one-way transmission mode establishment stage by changing the setting of a preset register;
[0032] A setup module, configured to control the master device to send a training signal for a preset duration when entering the one-way transmission mode setup phase, and complete the setup of the one-way transmission mode when the slave device successfully receives the modulated signal;
[0033] An exit module, configured to respond to a preset exit mechanism to exit the currently established one-way transmission mode, where the exit mechanism includes a first mechanism, a second mechanism, and a third mechanism.
[0034] In a third aspect, the present invention provides an electronic device, which includes: a processor and a memory;
[0035] The memory is used to store a computer program;
[0036] The processor is configured to execute the computer program stored in the memory, so that the electronic device executes the one-way transmission mode switching method of the gigabit Ethernet as described above.
[0037] In a fourth aspect, the present invention provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by an electronic device, it implements the one-way transmission mode switching method of the gigabit Ethernet as described above.
[0038] As described above, the one-way transmission mode switching method, system, medium, and device of the gigabit Ethernet according to the present invention have the following beneficial effects:
[0039] (1) Significantly improves data transmission reliability: By only allowing the Master device to send data, while the Slave device only acts as a receiving end, the present invention fundamentally eliminates the interference of echo and next (echo and near-end crosstalk) that may be generated by the Slave device when sending data, thereby significantly improving the reliability of data transmission. In a test environment, compared with the traditional bidirectional communication mode, the data transmission error rate of the present invention is reduced by at least 50% under long-distance (such as more than 100 meters) or poor cable conditions.
[0040] (2) Enhances network adaptability: The technical solution of the present invention can automatically or manually switch the communication mode according to network conditions, enabling the gigabit Ethernet network to better adapt to different transmission environments and cable qualities. This flexibility ensures the stable operation of the network in various complex scenarios and reduces the risk of service interruption caused by network failures.
[0041] (3) Reduces maintenance costs: Since the present invention reduces network failures caused by the interference of echo and next (echo and near-end crosstalk), the workload and cost of network maintenance are reduced. At the same time, since no additional signal amplification or compensation devices are required, the costs of network construction and upgrade are also reduced.
[0042] (4) Improved user experience: For applications that rely on Gigabit Ethernet for data transmission (such as high-definition video streaming, real-time data monitoring, etc.), the high reliability and stability provided by the present invention can significantly improve the user experience and reduce the phenomenon of lag, delay, or interruption caused by network problems.
[0043] (5) Promoted technological development: The proposal of the present invention not only provides a new solution for the application of Gigabit Ethernet in complex network environments, but also provides a useful reference for the development of future network communication technologies with higher speeds and longer distances. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] Figure 1 It shows a schematic application diagram of the unidirectional transmission mode switching method of the Gigabit Ethernet of the present invention in an embodiment;
[0045] Figure 2 It shows a schematic step diagram of the unidirectional transmission mode switching method of the Gigabit Ethernet of the present invention in an embodiment;
[0046] Figure 3 It shows a flowchart of the unidirectional transmission mode switching method of the Gigabit Ethernet of the present invention in an embodiment;
[0047] Figure 4 It shows a flowchart of the unidirectional transmission mode switching method of the Gigabit Ethernet of the present invention in an embodiment;
[0048] Figure 5 It shows a schematic step diagram of the unidirectional transmission mode switching method of the Gigabit Ethernet of the present invention in an embodiment;
[0049] Figure 6 It shows a schematic structural diagram of the unidirectional transmission mode switching system of the Gigabit Ethernet of the present invention in an embodiment;
[0050] Figure 7 It shows a schematic structural diagram of the electronic device of the present invention in an embodiment. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0051] The following uses specific specific examples to illustrate the implementation manners of the present invention. Those skilled in the art can easily understand other advantages and effects of the present invention from the content disclosed in this specification. The present invention can also be implemented or applied through other different specific implementation manners, and various details in this specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that, without conflict, the following embodiments and the features in the embodiments can be combined with each other.
[0052] It should be noted that the illustrations provided in the following embodiments only schematically illustrate the basic concept of the present invention. Therefore, only the components related to the present invention are shown in the drawings, rather than being drawn according to the number, shape, and size of the components in actual implementation. The types, quantities, and proportions of the components in actual implementation can be arbitrarily changed, and the component layout type may also be more complex.
[0053] The following embodiments of the present invention provide a method for switching the unidirectional transmission mode of Gigabit Ethernet. Among them, the present invention proposes a technical solution for unidirectional data transmission aiming at the signal interference problem caused by echo and next in Gigabit Ethernet under long-distance or poor cable conditions, as Figure 1 shown, it is composed of a Master (host / master device) and a Slave (slave / slave device) in terms of structure. Among them, the master device serves as the data sending end and is responsible for sending data packets to the slave device, while the slave device serves as the data receiving end and is only responsible for receiving data from the master device without performing any form of data sending.
[0054] In addition, the specific type of the electronic device is not restricted in the embodiments of the present invention. For example, the electronic device can be a station (ST) in a WLAN with wireless charging function, a cellular phone with wireless charging function, a cordless phone, a Session Initiation Protocol (SIP) phone, a Wireless Local Loop (WLL) station, a Personal Digital Assistant (PDA) device, a handheld device with wireless charging function, a computing device or other processing devices, a computer, a laptop computer, a handheld communication device, a handheld computing device, and / or other devices for communicating on a wireless system, as well as next-generation communication systems, such as mobile terminals in a 5G network, mobile terminals in a future evolved Public Land Mobile Network (PLMN), or mobile terminals in a future evolved Non-terrestrial Network (NTN), etc.
[0055] Next, the technical solutions in the embodiments of the present invention will be described in detail with reference to the accompanying drawings in the embodiments of the present invention.
[0056] Specifically, please refer to Figure 2 , in an embodiment of the invention, the method for switching the unidirectional transmission mode of the Gigabit Ethernet of the present invention includes the following steps:
[0057] Step S202: Monitor the signal-to-noise ratio of the signal eye diagram quality during the transmission between the master device and the slave device, and trigger the unidirectional transmission mode based on the signal-to-noise ratio.
[0058] Step S204: Control the master device to terminate the transmission of the training signal, and make the master device and the slave device enter the unidirectional transmission mode establishment phase by changing the settings of the preset register.
[0059] Step S206: When entering the unidirectional transmission mode establishment phase, control the master device to send a training signal for a preset duration, and complete the establishment of the unidirectional transmission mode when the slave device successfully receives the modulated signal.
[0060] Step S208: Respond to a preset exit mechanism to exit the currently established unidirectional transmission mode, and the exit mechanism includes a first mechanism, a second mechanism, and a third mechanism.
[0061] It should be noted that in this embodiment, based on the existing Gigabit Ethernet communication protocol, the setting of the unidirectional communication mode is added. When the master device or the slave device supporting the unidirectional mode detects that the eye diagram quality is abnormal, it switches to the unidirectional communication mode through the AN protocol. Among them, AN (Auto-Negotiation): Automatic negotiation, specifically a protocol defined in IEEE 802.3, which is used to enable both devices to automatically configure to maximize their communication capabilities. This method reduces the interference of echo and crosstalk, thereby ensuring the data transmission in the downstream direction.
[0062] Specifically, as Figure 3 shown, during the communication process in the normal transmission mode, two Gigabit chips are connected through the AN protocol; the Master sends a PAM3 Training signal to the Slave. Among them, PAM (Pulse Amplitude Modulation): Pulse amplitude modulation, specifically a modulation technology in which the amplitude of the signal is used to represent information, and PAM3 corresponds to three-level modulation. The Slave adjusts the sampling phase and performs DSP according to the received Training signal to open the eye diagram and correctly receive the signal sent by the Master; the Slave sends an IDLE (idle) signal, and during this process, the eye diagram quality of both parties is detected. If the quality is normal, it indicates that the channel quality is good at this time, and then both parties normally send PAM5 data signals, corresponding to five-level modulation. Therefore, in this embodiment, when switching to the unidirectional transmission mode, it is necessary to monitor the signal-to-noise ratio of the signal eye diagram quality during the transmission between the master device and the slave device, and trigger the unidirectional transmission mode based on the signal-to-noise ratio.
[0063] Furthermore, the triggered one-way transmission mode includes the establishment and exit of the one-way transmission mode. Among them, the establishment of the one-way transmission mode includes controlling the master device to terminate the transmission training signal (Training signal), and making the master device and the slave device enter the one-way transmission mode establishment stage by changing the settings of the preset register. Thus, when entering the one-way transmission mode establishment stage, control the master device to send a training signal (Training signal) for a preset duration. In this embodiment, the preset duration is "500" milliseconds, and the establishment of the one-way transmission mode is completed when the slave device successfully receives the modulation signal. At this time, the normal transmission of PAM5 signals begins; correspondingly, the exit of the one-way transmission mode is specifically to respond to a preset exit mechanism to exit the currently established one-way transmission mode. The exit mechanism includes a first mechanism, a second mechanism, and a third mechanism. Among them, the control processes for exiting different mechanisms are different and will be described in detail in the subsequent specification.
[0064] Furthermore, in an embodiment of the invention, monitoring the signal-to-noise ratio of the eye diagram quality of the transmission signals between the master device and the slave device to trigger the one-way transmission mode specifically includes:
[0065] In the normal transmission mode, the master device and the slave device communicate and connect based on the auto-negotiation protocol. Among them, the master device sends a PAM3 training signal to the slave device, and the slave device sends an IDLE signal to the master device after receiving the training signal;
[0066] During the process of the master device and the slave device transmitting signals, detect the eye diagram quality of both sides. Among them,
[0067] If the signal-to-noise ratio of the eye diagram quality is greater than the preset value, send a PAM5 training signal for communication;
[0068] If the signal-to-noise ratio of the eye diagram quality is less than or equal to the preset value, trigger the one-way transmission mode.
[0069] It should be noted that in this embodiment, as Figure 4As shown, it specifically illustrates how to trigger the unidirectional transmission mode. The triggering condition is the judgment of the signal-to-noise ratio of the eye diagram quality and a preset value. The specific selection of the preset value is "17". In the above embodiments, it is also described that in the normal transmission mode, the master device and the slave device communicate and connect based on the auto-negotiation protocol (AN protocol). Among them, the master device sends a PAM3 training signal to the slave device. After receiving the training signal, the slave device sends an IDLE signal to the master device. And during the signal transmission process between the master device and the slave device, the eye diagram quality of both parties is detected. Among them, if the signal-to-noise ratio of the eye diagram quality is greater than the preset value, a PAM5 training signal is sent for communication, that is, when the signal-to-noise ratio of the eye diagram quality "SNR > 17", normal communication is carried out. If the signal-to-noise ratio of the eye diagram quality is less than or equal to the preset value, that is, when the signal-to-noise ratio of the eye diagram quality "SNR ≤ 17", the unidirectional transmission mode is triggered for unidirectional transmission communication.
[0070] Further, in an embodiment of the invention, the master device is controlled to terminate the transmission of the training signal, and by changing the settings of the preset register, the master device and the slave device enter the establishment stage of the unidirectional transmission mode, which specifically includes:
[0071] When the signal-to-noise ratio of the eye diagram quality is less than or equal to the preset value, the master device is controlled to terminate the transmission of the PAM3 or PAM5 training signal, triggering the unidirectional transmission mode;
[0072] Change the settings of the preset register to the preset value so that the master device and the slave device enter the establishment stage of the unidirectional transmission mode through the auto-negotiation protocol, which includes setting the remote fault bit of the register to 1.
[0073] It should be noted that in this embodiment, it specifically illustrates how to enter the establishment stage of the unidirectional transmission mode, which specifically corresponds to how to perform register settings. Among them, when the signal-to-noise ratio of the eye diagram quality is less than or equal to the preset value, the master device is controlled to terminate the transmission of the PAM3 or PAM5 training signal, triggering the unidirectional transmission mode. At this time, change the settings of the preset register to the preset value so that the master device and the slave device enter the establishment stage of the unidirectional transmission mode through the auto-negotiation protocol, which includes setting the "Remote Fault" bit in the "Base Page" to "1" (representing that the signal transmission quality is poor at this time), and setting "100Base-T4" to "1" (representing that this chip supports the unidirectional mode). Then, both parties enter the establishment process of the unidirectional mode through the AN protocol. Among them, "BasePage": the register description of the basic information in the AN protocol, "100Base-T4": a 100M transmission protocol.
[0074] Further, in an embodiment of the invention, when entering the one-way transmission mode establishment stage, the master device is controlled to send a training signal for a preset duration, and the one-way transmission mode is established when the slave device successfully receives the modulation signal, which specifically includes:
[0075] The master device sends a training signal for a preset duration to the slave device. After receiving the training signal, the slave device adjusts the sampling phase for digital image processing to receive the training signal, where the preset duration specifically includes 500 milliseconds;
[0076] After the preset duration ends, the master device sends a PAM5 modulation signal, and the one-way transmission mode is established when the slave device receives the corresponding modulation signal.
[0077] It should be noted that in this embodiment, referring to Figure 3 , after entering the one-way transmission mode, the preset duration corresponds to "500" milliseconds. Among them, the master device sends a training signal for "500" milliseconds to the slave device. After receiving the training signal, the slave device adjusts the sampling phase for digital image processing to receive the training signal, and after "500" milliseconds, the master device sends a PAM5 modulation signal, and the one-way transmission mode is established when the slave device receives the corresponding modulation signal.
[0078] Further, in an embodiment of the invention, in response to a preset first mechanism to exit the currently established one-way transmission mode, it specifically includes: when it is monitored that the slave device does not receive any transmission signal, exit the currently established one-way transmission mode.
[0079] It should be noted that in this embodiment, the first mechanism for responding to exiting the one-way transmission mode is specifically described. Among them, when it is monitored that the slave device does not receive any transmission signal, it indicates that there is no signal sent by the current upstream master device. At this time, exit the currently established one-way transmission mode.
[0080] Further, in an embodiment of the invention, in response to a preset second mechanism to exit the currently established one-way transmission mode, it specifically includes: when it is monitored that the master device receives an exit instruction, exit the currently established one-way transmission mode.
[0081] It should be noted that in this embodiment, the second mechanism for responding to exiting the one-way transmission mode is specifically described. Among them, the one-way transmission mode is a one-way transmission from the master device to the slave device. Therefore, when it is monitored that the master device receives an exit instruction, it means that after the current upstream master device receives the exit instruction, it will stop sending data signals, and correspondingly, the currently established one-way transmission mode will also exit.
[0082] Further, in an embodiment of the invention, as Figure 5As shown, responding to the preset third mechanism to exit the currently established unidirectional transmission mode specifically includes the following steps:
[0083] Step S502: monitoring the noise specification of the slave device, wherein when the ratio of the noise mean at the current monitoring moment to the noise mean at the previous monitoring moment is greater than a preset ratio, exiting the currently established unidirectional transmission mode;
[0084] Step S504: monitoring the echo specification of the master device, wherein when the change value of the echo energy at the current monitoring moment exceeds a preset change value, exiting the currently established unidirectional transmission mode.
[0085] It should be noted that, in this embodiment, a third mechanism for exiting the unidirectional transmission mode response is specifically described, wherein, in actual operation, the user may exit the unidirectional transmission mode by unplugging the network cable, so the noise specifications of the slave device are monitored, wherein, when the ratio of the noise average at the current monitoring moment to the noise average at the previous monitoring moment is greater than the preset ratio, the currently established unidirectional transmission mode is exited. Specifically, if the user unplugs the network cable at one end of the slave device, during the unidirectional transmission process, when the network cable at one end of the slave device is unplugged, the impedance matching in the link is broken, so the noise will become larger. Therefore, when it is detected that the noise average suddenly increases to "1.5" times within a period of time, the master device end will exit the unidirectional mode, that is, the preset ratio is "1.5". It should also be noted that during the unidirectional transmission process, the signal received by the master device is forced to be "0" to calculate the received noise size in real time.
[0086] Furthermore, the echo specifications of the master device are monitored, wherein, when the change value of the echo energy at the current monitoring moment exceeds the preset change value, the currently established unidirectional transmission mode is exited. Specifically, since there are many reflection points in the transmitted network cable link, the master device end can calculate the energy returned by each reflection point through the echo module during the unidirectional transmission process, which is recorded as tap_echo. Among them, if the user unplugs the network cable at the master end, when the network cable at one end of the master device is unplugged, the reflected energy size will become "0". Therefore, when the jitter of tap_echo is detected to exceed "1 / 5", the master device will exit the unidirectional transmission mode. Accordingly, the preset change value described in this embodiment is "1 / 5", which corresponds to the proportional change of its own jitter relative to itself.
[0087] The embodiments of the present application also provide a unidirectional transmission mode switching system for Gigabit Ethernet. The unidirectional transmission mode switching system for Gigabit Ethernet can implement the unidirectional transmission mode switching method described in the present application. However, the implementation devices of the unidirectional transmission mode switching method for Gigabit Ethernet described in the present application include, but are not limited to, the structures of the unidirectional transmission mode switching system for Gigabit Ethernet listed in this embodiment. Any structural deformation and replacement of the prior art made according to the principles of the present application are included in the protection scope of the present application.
[0088] Please refer to Figure 6 , in an embodiment, a unidirectional transmission mode switching system 60 for Gigabit Ethernet provided in this embodiment, the system includes:
[0089] A monitoring module 61, configured to monitor the signal-to-noise ratio of the transmission signal eye diagram quality between the master device and the slave device, and trigger the unidirectional transmission mode based on the signal-to-noise ratio;
[0090] A setting module 62, configured to control the master device to terminate the transmission training signal, and make the master device and the slave device enter the unidirectional transmission mode establishment stage by changing the settings of the preset register;
[0091] An establishment module 63, configured to control the master device to send a training signal for a preset duration when entering the unidirectional transmission mode establishment stage, and complete the establishment of the unidirectional transmission mode when the slave device successfully receives the modulation signal;
[0092] An exit module 64, configured to respond to a preset exit mechanism to exit the currently established unidirectional transmission mode, and the exit mechanism includes a first mechanism, a second mechanism, and a third mechanism.
[0093] Since the specific implementation manner of this embodiment corresponds to the foregoing method embodiment, the same details will not be repeated here. Those skilled in the art should also understand that Figure 6 The division of each module in the embodiment is only a logical function division. In actual implementation, it can be fully or partially integrated into one or more physical entities, and these modules can all be implemented in the form of software called by a processing element, or all in the form of hardware, or some modules can be implemented in the form of software called by a processing element, and some modules can be implemented in the form of hardware.
[0094] In several embodiments provided by the present invention, it should be understood that the disclosed system, device or method can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of modules / units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple modules or units can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed coupling or direct coupling or communication connection to each other can be through some interfaces. The indirect coupling or communication connection of devices or modules or units can be in electrical, mechanical or other forms.
[0095] The modules / units described as separate components may or may not be physically separated. The components shown as modules / units may or may not be physical modules, that is, they can be located in one place or distributed to multiple network units. Some or all of the modules / units can be selected according to actual needs to achieve the purpose of the embodiments of the present invention. For example, in each embodiment of the present invention, the functional modules / units can be integrated in a processing module, or each module / unit can exist physically alone, or two or more modules / units can be integrated in one module / unit.
[0096] Those of ordinary skill in the art should further realize that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be implemented by electronic hardware, computer software or a combination of the two. To clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described according to functions in the above description. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present invention.
[0097] Embodiments of the present invention also provide a computer-readable storage medium. Those of ordinary skill in the art can understand that all or part of the steps in the methods of the above embodiments can be completed by instructing a processor through a program. The program can be stored in a computer-readable storage medium. The storage medium is a non-transitory medium, such as random access memory, read-only memory, flash memory, hard disk, solid state drive, magnetic tape, floppy disk, optical disc, and any combination thereof. The above storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or a data center integrating one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., digital video disc (DVD)), or a semiconductor medium (e.g., solid state disk (SSD)), etc.
[0098] Embodiments of the present invention also provide an electronic device. The electronic device includes a processor and a memory.
[0099] The memory is used to store a computer program.
[0100] The memory includes various media that can store program codes, such as ROM, RAM, magnetic disk, USB flash drive, memory card, or optical disc.
[0101] The processor is connected to the memory and is used to execute the computer program stored in the memory, so that the electronic device executes the above-mentioned method for switching the unidirectional transmission mode of Gigabit Ethernet.
[0102] Preferably, the processor can be a general-purpose processor, including a central processing unit (CPU for short), a network processor (NP for short), etc.; it can also be a digital signal processor (DSP for short), an application specific integrated circuit (ASIC for short), a field programmable gate array (FPGA for short), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0103] Such as Figure 7As shown, the electronic device of the present invention is presented in the form of a general-purpose computing device. The components of the electronic device may include, but are not limited to: one or more processors or processing units 71, a memory 72, and a bus 73 that connects different system components (including the memory 72 and the processing unit 71).
[0104] The bus 73 represents one or more of several types of bus architectures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration port, a processor, or a local bus using any of the various bus architectures. By way of example, these architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
[0105] The electronic device typically includes a variety of computer system-readable media. These media can be any available media that can be accessed by the electronic device, including volatile and non-volatile media, removable and non-removable media.
[0106] The memory 72 may include computer system-readable media in the form of volatile memory, such as random access memory (RAM) 721 and / or cache memory 722. The electronic device may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, a storage system 723 may be used for reading and writing on non-removable, non-volatile magnetic media ( Figure 7 not shown, commonly referred to as a "hard disk drive"). Although Figure 7 not shown in the figure, a disk drive for reading and writing on removable non-volatile disks (such as a "floppy disk") and an optical disk drive for reading and writing on removable non-volatile optical disks (such as a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 73 through one or more data media interfaces. The memory 72 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the embodiments of the present invention.
[0107] A program / utility 724 having a set (at least one) of program modules 7241 may be stored, for example, in the memory 72. Such program modules 7241 include, but are not limited to, an operating system, one or more application programs, other program modules, and program data. An implementation of a network environment may be included in each or some combination of these examples. The program modules 7241 generally perform the functions and / or methods in the embodiments described in the present invention.
[0108] The electronic device can also communicate with one or more external devices (such as keyboards, pointing devices, displays, etc.), and can also communicate with one or more devices that enable users to interact with the electronic device, and / or communicate with any device that enables the electronic device to communicate with one or more other computing devices (such as network cards, modems, etc.). This communication can be carried out through the input / output (I / O) interface 74. Moreover, the electronic device can also communicate with one or more networks (such as local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) through the network adapter 75. As Figure 7 shown, the network adapter 75 communicates with other modules of the electronic device through the bus 73. It should be understood that although not shown in the figure, other hardware and / or software modules can be used in combination with the electronic device, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, etc.
[0109] The above embodiments are only illustrative of the principles and effects of the present invention, and are not used to limit the present invention. Any person familiar with this technology can modify or change the above embodiments without departing from the spirit and scope of the present invention. Therefore, all equivalent modifications or changes made by those with ordinary knowledge in the technical field without departing from the spirit and technical idea disclosed by the present invention should still be covered by the claims of the present invention.
Claims
1. A method for switching the unidirectional transmission mode of Gigabit Ethernet, characterized in that, Including: Monitoring the signal-to-noise ratio of the eye diagram quality of the transmitted signal between the master device and the slave device, triggering a unidirectional transmission mode based on the signal-to-noise ratio. In the normal transmission mode, the master device and the slave device communicate and connect based on the auto-negotiation protocol. The master device sends a PAM3 training signal to the slave device, and after receiving the training signal, the slave device sends an IDLE signal to the master device. During the signal transmission between the master device and the slave device, the eye diagram quality of both sides is detected. If the signal-to-noise ratio of the eye diagram quality is greater than the preset value, a PAM5 training signal is sent for communication. If the signal-to-noise ratio of the eye diagram quality is less than or equal to the preset value, the unidirectional transmission mode is triggered. Controlling the master device to terminate the transmission of the training signal, and making the master device and the slave device enter the unidirectional transmission mode establishment stage by changing the settings of the preset register. When the signal-to-noise ratio of the eye diagram quality is less than or equal to the preset value, controlling the master device to terminate the transmission of the PAM3 or PAM5 training signal and trigger the unidirectional transmission mode. Changing the settings of the preset register to the preset value to make the master device and the slave device enter the unidirectional transmission mode establishment stage through the auto-negotiation protocol, including setting the remote fault bit of the register to 1. When entering the unidirectional transmission mode establishment stage, controlling the master device to send a training signal for a preset duration, and completing the establishment of the unidirectional transmission mode when the slave device successfully receives the modulated signal. Responding to a preset exit mechanism to exit the currently established unidirectional transmission mode. The exit mechanism includes a first mechanism, a second mechanism, and a third mechanism.
2. The method for switching the unidirectional transmission mode of Gigabit Ethernet according to claim 1, wherein When entering the unidirectional transmission mode establishment stage, controlling the master device to send a training signal for a preset duration, and completing the establishment of the unidirectional transmission mode when the slave device successfully receives the modulated signal, specifically including: The master device sends a training signal for a preset duration to the slave device. After receiving the training signal, the slave device adjusts the sampling phase for digital image processing to receive the training signal. The preset duration specifically includes 500 milliseconds. After the preset duration ends, the master device sends a PAM5 modulated signal, and the unidirectional transmission mode is completed when the slave device receives the corresponding modulated signal.
3. The method for switching the unidirectional transmission mode of Gigabit Ethernet according to claim 2, wherein Responding to a preset first mechanism to exit the currently established unidirectional transmission mode, specifically including: when it is monitored that the slave device does not receive any transmission signal, exiting the currently established unidirectional transmission mode.
4. The method for switching the unidirectional transmission mode of Gigabit Ethernet according to claim 2, characterized in that, Responding to a preset second mechanism to exit the currently established unidirectional transmission mode, specifically including: when it is monitored that the master device receives an exit instruction, exiting the currently established unidirectional transmission mode.
5. The unidirectional transmission mode switching method for Gigabit Ethernet according to claim 2, wherein Responding to a preset third mechanism to exit the currently established unidirectional transmission mode, specifically including: Monitoring the noise specification of the slave device. When the ratio of the noise mean value at the current monitoring moment to the noise mean value at the previous monitoring moment is greater than the preset ratio, exiting the currently established unidirectional transmission mode. Monitoring the echo specification of the master device. When the change value of the echo energy at the current monitoring moment exceeds the preset change value, exiting the currently established unidirectional transmission mode.
6. A unidirectional transmission mode switching system for Gigabit Ethernet, characterized in that, Including: A monitoring module is configured to monitor the signal-to-noise ratio of the eye diagram quality of the signal transmitted between the master device and the slave device, and trigger the unidirectional transmission mode based on the signal-to-noise ratio. In the normal transmission mode, the master device and the slave device are communicatively connected based on the auto-negotiation protocol. The master device sends a PAM3 training signal to the slave device, and after receiving the training signal, the slave device sends an IDLE signal to the master device. During the signal transmission between the master device and the slave device, the eye diagram quality of both sides is detected. If the signal-to-noise ratio of the eye diagram quality is greater than a preset value, a PAM5 training signal is sent for communication. If the signal-to-noise ratio of the eye diagram quality is less than or equal to the preset value, the unidirectional transmission mode is triggered. A setting module is configured to control the master device to terminate the transmission of the training signal, and make the master device and the slave device enter the unidirectional transmission mode establishment phase by changing the setting of a preset register. When the signal-to-noise ratio of the eye diagram quality is less than or equal to the preset value, the master device is controlled to terminate the transmission of the PAM3 or PAM5 training signal, and the unidirectional transmission mode is triggered. The setting of the preset register is changed to a preset value to make the master device and the slave device enter the unidirectional transmission mode establishment phase through the auto-negotiation protocol, including setting the remote fault bit of the register to 1. An establishment module is configured to, when entering the unidirectional transmission mode establishment phase, control the master device to send a training signal for a preset duration, and complete the establishment of the unidirectional transmission mode when the slave device successfully receives the modulated signal. An exit module is configured to respond to a preset exit mechanism to exit the currently established unidirectional transmission mode. The exit mechanism includes a first mechanism, a second mechanism, and a third mechanism.
7. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by a processor, it implements the unidirectional transmission mode switching method of the gigabit Ethernet according to any one of claims 1 to 5.
8. An electronic device, characterized in that, The electronic device includes: a processor and a memory. The memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory, so that the electronic device executes the unidirectional transmission mode switching method of the gigabit Ethernet according to any one of claims 1 to 5.
Citation Information
Patent Citations
Data catching technology for high-speed signals
CN1529958A
Unidirectional fast retraining of a bidirectional ethernet link
US12143205B1