Parallel detection method and system for Ethernet

By introducing parallel detection methods in Ethernet devices, the encoding group in online signals is extracted and the parallel detection function is enabled, the problem of difficulty in connecting when the peer device is turned off, and the device adaptation in any scenario is realized and connection stability.

CN119324871APending Publication Date: 2025-01-17MOTORCOMM (SHANGHAI) ELECTRONIC TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310878393.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-07-17
Publication Date
2025-01-17

AI Technical Summary

Technical Problem

An existing Ethernet device has difficulty establishing a connection when the automatic negotiation function is turned off on the peer device.

Method used

A parallel detection method is introduced in the local device. By receiving online signals, the encoding group is extracted, and the parallel detection function is turned on when the encoding group threshold is reached, and a communication connection is established with the counterpart device based on the parallel detection function.

Benefits of technology

When the automatic negotiation function of the peer-end device is turned off, the local device can establish a communication connection with the peer-end device normally, improving adaptability and connection stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119324871A_ABST
    Figure CN119324871A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of Ethernet communication, in particular to an Ethernet parallel detection method and system, and the method comprises the steps: S1, extracting an effective coding group from an online signal when local equipment receives the online signal; s2, when the effective coding group reaches a coding group threshold, controlling the local equipment to start a parallel detection function; and S3, based on the on-line signal, establishing communication connection with opposite terminal equipment based on the parallel detection function. The method has the beneficial effects that a negotiation control state machine is modified in local equipment, online signals are monitored, and coding groups capable of being decoded are extracted from the online signals; and when more effective coding groups exist, the negotiation control state machine is configured, and a parallel detection function is started, so that the local equipment can normally establish communication connection with the opposite-end equipment according to the parallel detection function, and the local equipment can realize a better adaptation effect on the opposite-end equipment in any scene.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of Ethernet communication, and in particular to a parallel detection method and system for Ethernet. Background Art

[0002] 1000base-X is a physical layer protocol developed by IEEE based on ANSI X3.230-1994 (Fibre Channel Physical and Signaling Interface). It mainly uses the same 8B / 10B encoding. The transmission distance can be up to 5km depending on the medium and relay used. It is a protocol widely used in fiber-optic Ethernet transmission.

[0003] In the prior art, considering that the connection distance of the optical fiber network is generally long and it is not convenient to configure at the same time, the auto-negotiation function (AN) is usually configured in the Ethernet device in accordance with the IEEE802.3 Cluase37 regulations. After the auto-negotiation function is configured, the Ethernet device will send an auto-negotiation signal on the link and monitor the online signal; when it is confirmed that there is a coding group corresponding to the auto-negotiation signal on the line, it will automatically establish a connection with the opposite device according to the relevant configuration.

[0004] However, during the actual implementation process, the inventors discovered that according to the provisions of section 37.3.1.5 of the existing IEEE802.3 protocol, before performing automatic negotiation and establishing a communication connection, it is necessary to enable the negotiation control state machine in both devices in advance; if one of the parties turns off the automatic negotiation function due to user demand or other factors, a connection cannot be established based on this function. Summary of the invention

[0005] In view of the above problems existing in the prior art, a parallel detection method for Ethernet is provided; on the other hand, a parallel detection system applying the parallel detection method is also provided.

[0006] The specific technical solutions are as follows:

[0007] A parallel detection method for Ethernet, suitable for execution by a local device, wherein the local device is signal-connected to a peer device, and the peer device has an automatic negotiation function turned off in advance;

[0008] The parallel detection method comprises:

[0009] Step S1: when the local device receives an online signal, extracting a valid coding group from the online signal;

[0010] Step S2: When the valid coding groups reach the coding group threshold, control the local device to start the parallel detection function;

[0011] Step S3: establishing a communication connection with the opposite end device based on the online signal and the parallel detection function.

[0012] On the other hand, the step S2 comprises:

[0013] Step S21: receiving the coding group, counting the coding groups, and when the valid coding groups within the counting period reach the coding group threshold, turning to step S22;

[0014] Step S22: Send an enable command to the negotiation control state machine in the local device, so that the negotiation control state machine starts the parallel detection function.

[0015] On the other hand, in the step S21, when the clearing condition is triggered, the counting cycle is switched;

[0016] The clearing conditions include: the decoding output is invalid or the synchronization state of the local device is lost or the configuration code group for configuring automatic negotiation sent by the opposite device is obtained.

[0017] On the other hand, the step S3 comprises:

[0018] Step S31: the local device detects the online signal to determine whether the online signal meets the access condition;

[0019] If yes, go to step S32;

[0020] If not, return to step S31;

[0021] Step S32: The local device establishes a communication connection with the peer device.

[0022] On the other hand, in step S31, the access condition includes: the synchronization state of the local device is correct, and a valid coding group signal is received.

[0023] A parallel detection system for Ethernet, used to implement the above parallel detection method, the parallel detection system comprising:

[0024] A signal receiving module, wherein when the local device receives an online signal, the signal receiving module extracts a valid coding group from the online signal;

[0025] A pull-up module, the pull-up module is connected to the signal receiving module, and the pull-up module controls the local device to start a parallel detection function when the valid coding group reaches a coding group threshold;

[0026] A negotiation module, the negotiation module is connected to the pull-up module, and the negotiation module establishes a communication connection with the opposite end device based on the online signal and the parallel detection function.

[0027] On the other hand, the pull-up module comprises:

[0028] A counting module, wherein the counting module receives the code group, counts the code group according to a counting period and forms a counting result;

[0029] An enabling module, wherein the enabling module is connected to the counting module, and the enabling module sends an enabling command to the negotiation control state machine in the local device according to the counting result, so that the negotiation control state machine starts the parallel detection function.

[0030] On the other hand, the counting module comprises:

[0031] A coding group statistics module, wherein the coding group statistics module counts the input coding groups to generate a counting result;

[0032] A counting cycle reset module, the counting cycle reset module is connected to the coding group statistics module, and the counting cycle reset module resets the counting cycle when a clearing condition is triggered;

[0033] The clearing conditions include: the decoding output is invalid or the synchronization state of the local device is lost or the configuration code group for configuring automatic negotiation sent by the opposite device is obtained.

[0034] On the other hand, the negotiation module includes:

[0035] A signal detection module, wherein the signal detection module detects the online signal and generates a detection result;

[0036] A connection establishment module is connected to the signal detection module, and when the detection result indicates that the access condition is met, the connection establishment module establishes a communication connection with the opposite device.

[0037] On the other hand, the signal detection module includes:

[0038] A first determination module, the first determination module determines whether a configuration code group for configuring automatic negotiation sent by the opposite device is obtained, and generates a first detection result;

[0039] A second determination module, wherein the second determination module determines whether the synchronization state of the local device is correct and generates a second detection result;

[0040] A result summary module, wherein the result summary module is connected to the first discrimination module and the second discrimination module respectively, and the result summary module generates the detection result according to the first detection result and the second detection result.

[0041] The above technical solution has the following advantages or beneficial effects:

[0042] In view of the problem in the prior art that it is relatively difficult for Ethernet devices to establish a connection when the automatic negotiation function of the peer device is turned off, in this solution, the negotiation control state machine is modified in the local device. When the automatic negotiation function of the peer device is turned off, the online signal is also monitored and the coding group that can be decoded by the local device is extracted therefrom; when there are many valid coding groups, the negotiation control state machine is configured to turn on the parallel detection function so that the local device can establish a communication connection with the peer device normally in accordance with the parallel detection function, so that the local device can achieve a better adaptation effect for the peer device in any scenario. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] The embodiments of the present invention will be described more fully with reference to the attached drawings, which are provided for illustration and description only and are not intended to limit the scope of the present invention.

[0044] Figure 1 It is an overall schematic diagram of an embodiment of the present invention;

[0045] Figure 2 is a principle block diagram of an embodiment of the present invention;

[0046] Figure 3 This is a schematic diagram of sub-steps of step S2 in an embodiment of the present invention;

[0047] Figure 4 This is a schematic diagram of sub-steps of step S3 in an embodiment of the present invention;

[0048] Figure 5 A schematic diagram of a parallel detection system in an embodiment of the present invention;

[0049] Figure 6 This is a schematic diagram of a pull-up module in an embodiment of the present invention;

[0050] Figure 7 This is a schematic diagram of a counting module in an embodiment of the present invention;

[0051] Figure 8 A schematic diagram of a negotiation module in an embodiment of the present invention;

[0052] Fig. 9 Schematic diagram of a signal detection module in an embodiment of the present invention. DETAILED DESCRIPTION

[0053] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0054] It should be noted that, in the absence of conflict, the embodiments of the present invention and the features in the embodiments may be combined with each other.

[0055] The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments, but they are not intended to limit the present invention.

[0056] The present invention comprises:

[0057] A parallel detection method for Ethernet, suitable for execution by a local device, wherein the local device is connected to a signal of a peer device, and the peer device has previously disabled an automatic negotiation function;

[0058] like Figure 1 As shown, the parallel detection method includes:

[0059] Step S1: When the local device receives an online signal, extract a valid coding group from the online signal;

[0060] Step S2: When the valid coding group reaches the coding group threshold, the local device is controlled to start the parallel detection function;

[0061] Step S3: Establishing a communication connection with the opposite end device based on the online signal and the parallel detection function.

[0062] Specifically, in view of the problem that it is relatively difficult to establish a connection when the automatic negotiation function is turned off for Ethernet devices in the prior art, in this embodiment, compared with the traditional negotiation control state machine, an additional parallel detection process is introduced. When accessing the line, the online signal is monitored and the coding group is extracted from the online signal. When there are many coding groups that can be decoded by the local device, the negotiation control state machine is configured so that the negotiation control state machine turns on the parallel detection function, so that the local device can establish a connection with the opposite device based on the online signal, so that the local device can automatically establish a connection with the opposite device in any scenario, which is convenient for remote configuration.

[0063] In the implementation process, the above parallel detection method is mainly set as a software embodiment or a part of a software embodiment in the physical layer hardware of the Ethernet device, which is used to detect the online signal and control the negotiation control state machine based on the detection result. Figure 2As shown, the scheme is mainly applied to the analog part of the physical layer, and the analog serial deserializer 101 receives the online signal. Subsequently, the receiving unit 102 decodes the online signal, including CDR decoding and 10b8b decoding, for decoding all online signals. During the decoding process, the detection unit 103 acquires any signal output by the receiving unit 102, determines whether there is a valid coding group corresponding to the automatic negotiation function, and compares it with the coding group threshold. When the coding group threshold is reached. The detection unit 103 controls the negotiation control state machine 104 to start, so that the sending unit 105 sends the corresponding signal through the analog serial deserializer 101 to perform the automatic negotiation process. The local device and the opposite device can be any type of Ethernet device, which complies with the corresponding protocol and can establish a communication connection based on the automatic negotiation function. Here, "local device" and "opposite device" are only expressions used to distinguish between the two. The online signal refers to any signal received by the local device on the cable, which may include other communication signals, noise, signals corresponding to the automatic negotiation function, etc. A code group refers to the information obtained after decoding the online signal according to the corresponding process. It may correspond to other communication signals or signals corresponding to the auto-negotiation function. Here, we mainly focus on whether there is a code group corresponding to the auto-negotiation function, and the code group that the local device can decode in the subsequent parallel detection process. Parallel detection refers to the process in which the peer device generates other signals that can be decoded by the local device without turning on auto-negotiation. The local device detects such signals at the same time based on the detection of the auto-negotiation signal.

[0064] In one embodiment, Figure 3 As shown, step S2 includes:

[0065] Step S21: receiving a coding group, counting the coding groups, and when the valid coding groups within the counting period reach the coding group threshold, turning to step S22;

[0066] Step S22: Send an enable command to the negotiation control state machine in the local device so that the negotiation control state machine starts the parallel detection function.

[0067] Specifically, in order to achieve a better discrimination effect, in this embodiment, a corresponding counting cycle is pre-configured for the received coding group, and the number of valid coding groups in a single counting cycle is compared with the coding group threshold, so as to determine whether the online signal may contain a signal that can be normally decoded by the local device, and control the opening of the negotiation control state machine, so as to achieve better compatibility with the opposite device that has pre-turned the automatic negotiation function.

[0068] In one embodiment, in step S21, when the clearing condition is triggered, the counting cycle is switched;

[0069] Clear conditions include: decoded output invalid or local device synchronization state lost.

[0070] Specifically, in order to achieve a better discrimination effect, in this embodiment, a reset condition is selected to reset the counting cycle. The reset condition includes three conditions: the decoding unit outputs an invalid value, or the synchronization state of the local device is lost, or the opposite device turns on the automatic negotiation function; when any of the conditions is triggered, it is considered that a reset condition has occurred, and the counting cycle needs to be reset to re-record the number of coding groups, thereby achieving a more accurate discrimination process for online signals.

[0071] In one embodiment, Figure 4 As shown, step S3 includes:

[0072] Step S31: The local device detects the online signal to determine whether the online signal meets the access condition;

[0073] If yes, go to step S32;

[0074] If not, return to step S31;

[0075] Step S32: The local device establishes a communication connection with the peer device.

[0076] Specifically, in order to achieve a better access effect, in this embodiment, after the automatic negotiation function is turned on, the local device detects the online device and determines whether the access conditions are met; if so, the local device establishes a communication connection with the opposite device based on the parallel detection function; if not, it is necessary to re-receive the relevant signal until the access conditions are met.

[0077] In one embodiment, in step S31, the access condition includes: the synchronization state of the local device is correct, and a valid coding group signal is received.

[0078] Specifically, in order to achieve a better judgment effect on the access conditions, in this embodiment, the above access conditions are configured to judge whether the automatic negotiation process can be performed. In order to achieve the normal access process, the local device should have a corresponding synchronization state; at the same time, the continuous coding group signal received online should be in a valid state, and a relatively complete access process is achieved based on the above judgment conditions.

[0079] A parallel detection system for Ethernet, used to implement the above parallel detection method, such as Figure 5 As shown, the parallel detection system includes:

[0080] A signal receiving module 1, when the local device receives an online signal, the signal receiving module 1 extracts a valid coding group from the online signal;

[0081] Pull up module 2, pull up module 2 is connected to signal receiving module 1, pull up module 2 controls local device to start parallel detection function when effective coding group reaches coding group threshold;

[0082] Negotiation module 3, negotiation module 3 is connected to pull-up module 2, and negotiation module 3 establishes a communication connection with the opposite end device based on the online signal and the parallel detection function.

[0083] Specifically, in view of the problem that it is relatively difficult to establish a connection when the automatic negotiation function is turned off for Ethernet devices in the prior art, in this embodiment, the above-mentioned multiple modules are additionally introduced compared to the traditional negotiation control state machine. When accessing the line, the signal receiving module 1 monitors the online signal and extracts the coding group from the online signal. When there are many coding groups that can be decoded by the local device, the pull-up module 2 configures the negotiation control state machine so that the negotiation control state machine turns on the parallel detection function, so that the negotiation module 3 can establish a connection with the opposite device based on the online signal, so that the local device can automatically establish a connection with the opposite device in any scenario, which is convenient for remote configuration.

[0084] In one embodiment, Figure 6 As shown, the pull-up module 2 includes:

[0085] A counting module 21, the counting module 21 receives the code group, counts the code group according to the counting period and forms a counting result;

[0086] The enabling module 22 is connected to the counting module 21. The enabling module 22 sends an enabling command to the negotiation control state machine in the local device according to the counting result, so that the negotiation control state machine starts the parallel detection function.

[0087] Specifically, in order to achieve a better discrimination effect, in this embodiment, a corresponding counting cycle is pre-configured for the received coding group. The counting module 21 compares the number of valid coding groups in a single counting cycle with the coding group threshold, and then determines whether the online signal may contain a signal that can be decoded by the local device, and the enabling module 22 controls the start of the negotiation control state machine, so as to achieve a better control effect on the local device that has pre-turned the automatic negotiation function.

[0088] In one embodiment, Figure 7 As shown, the counting module 21 includes:

[0089] A coding group statistics module 211, the coding group statistics module 211 counts the input coding groups to generate a counting result;

[0090] A counting cycle reset module 212, the counting cycle reset module 212 is connected to the coding group statistics module 211, and the counting cycle reset module 212 resets the counting cycle when the clearing condition is triggered;

[0091] The clearing conditions include: the decoding output is invalid or the synchronization state of the local device is lost, or the configuration code group sent by the opposite device for configuring the automatic negotiation is obtained.

[0092] Specifically, in order to achieve a better discrimination effect, in this embodiment, a reset condition is selected to reset the counting cycle. The coding group statistics module 211 continuously counts the input coding groups to generate the counting results in the current counting cycle; at the same time, the counting cycle reset module 212 collects external data to determine whether a reset condition occurs. If so, the counting cycle of the coding group statistics module 211 is reset so that the coding group statistics module 211 starts counting again.

[0093] In one embodiment, Figure 8 As shown, the negotiation module 3 includes:

[0094] A signal detection module 31, the signal detection module 31 detects the online signal and generates a detection result;

[0095] The connection establishment module 32 is connected to the signal detection module 31. When the detection result shows that the access condition is met, the connection establishment module 32 establishes a communication connection with the opposite end device.

[0096] Specifically, in order to achieve a better access effect, in this embodiment, after the automatic negotiation function is turned on, the signal detection module 31 detects the online device and determines whether the access conditions are met; if so, the connection establishment module 32 establishes a communication connection with the other device based on the automatic negotiation function; if not, it is necessary to re-receive the relevant signal until the access conditions are met.

[0097] In one embodiment, Fig. 9 As shown, the signal detection module 31 includes:

[0098] A first determination module 311, the first determination module 311 determines whether a configuration code group for configuring automatic negotiation sent by the opposite end device is obtained, and generates a first detection result;

[0099] A second determination module 312, the second determination module 312 determines whether the synchronization state of the local device is correct, and generates a second detection result;

[0100] The result summary module 314 is connected to the first discrimination module 311 and the second discrimination module 312 respectively, and generates a detection result according to the first detection result and the second detection result.

[0101] Specifically, in order to achieve a better judgment effect on the access conditions, in this embodiment, the above-mentioned judgment module is configured to judge whether the automatic negotiation process can be carried out. Among them, when the opposite device is configured with the automatic negotiation function, it will inevitably send a configuration coding group of the configuration information about the automatic negotiation online, and the first judgment module 311 generates a first detection result according to whether the configuration coding group exists; and, in order to realize the normal access process, the local device should have a corresponding synchronization state, and the second judgment module 312 detects this and generates a second detection result; finally, the result summary module 314 generates a detection result based on the above-mentioned first detection result and the second detection result, so that the subsequent modules can make judgments and access.

[0102] The above are only preferred embodiments of the present invention, and are not intended to limit the implementation methods and protection scope of the present invention. Those skilled in the art should be aware that all solutions obtained by equivalent substitutions and obvious changes made using the description and illustrations of the present invention should be included in the protection scope of the present invention.

Claims

1. A parallel detection method for Ethernet, characterized in that: Applicable to local device execution, the local device is connected to the opposite device by signal, and the opposite device has disabled the auto-negotiation function in advance; The parallel detection method comprises: Step S1: when the local device receives an online signal, extracting a valid coding group from the online signal; Step S2: When the valid coding groups reach the coding group threshold, control the local device to start the parallel detection function; Step S3: establishing a communication connection with the opposite end device based on the online signal and the parallel detection function.

2. The parallel detection method according to claim 1, characterized in that: The step S2 comprises: Step S21: receiving the coding group, counting the coding groups, and when the valid coding groups within the counting period reach the coding group threshold, turning to step S22; Step S22: Send an enable command to the negotiation control state machine in the local device, so that the negotiation control state machine starts the parallel detection function.

3. The parallel detection method according to claim 2, characterized in that: In the step S21, when the clearing condition is triggered, the counting cycle is switched; The clearing conditions include: the decoding output is invalid or the synchronization state of the local device is lost or the configuration code group for configuring automatic negotiation sent by the opposite device is obtained.

4. The parallel detection method according to claim 1, characterized in that: The step S3 comprises: Step S31: the local device detects the online signal to determine whether the online signal meets the access condition; If yes, go to step S32; If not, return to step S31; Step S32: The local device establishes a communication connection with the peer device.

5. The parallel detection method according to claim 4, characterized in that: In the step S31, the access conditions include: the synchronization state of the local device is correct, and a valid coding group signal is received.

6. A parallel detection system for Ethernet, characterized in that: For implementing the parallel detection method according to any one of claims 1 to 5, the parallel detection system comprises: A signal receiving module, wherein when the local device receives an online signal, the signal receiving module extracts a valid coding group from the online signal; A pull-up module, the pull-up module is connected to the signal receiving module, and the pull-up module controls the local device to start a parallel detection function when the valid coding group reaches a coding group threshold; A negotiation module, the negotiation module is connected to the pull-up module, and the negotiation module establishes a communication connection with the opposite end device based on the online signal and the parallel detection function.

7. The parallel detection system according to claim 6, characterized in that: The pull-up module comprises: A counting module, wherein the counting module receives the code group, counts the code group according to a counting period and forms a counting result; An enabling module, wherein the enabling module is connected to the counting module, and the enabling module sends an enabling command to the negotiation control state machine in the local device according to the counting result, so that the negotiation control state machine starts the parallel detection function.

8. The parallel detection system according to claim 7, characterized in that: The counting module comprises: A coding group statistics module, wherein the coding group statistics module counts the input coding groups to generate a counting result; A counting cycle reset module, the counting cycle reset module is connected to the coding group statistics module, and the counting cycle reset module resets the counting cycle when a clearing condition is triggered; The clearing conditions include: the decoding output is invalid or the synchronization state of the local device is lost or the configuration code group for configuring automatic negotiation sent by the opposite device is obtained.

9. The parallel detection system according to claim 6, characterized in that: The negotiation module includes: A signal detection module, wherein the signal detection module detects the online signal and generates a detection result; A connection establishment module is connected to the signal detection module, and when the detection result indicates that the access condition is met, the connection establishment module establishes a communication connection with the opposite device.

10. The parallel detection system according to claim 9, characterized in that: The signal detection module comprises: A first determination module, the first determination module determines whether a configuration code group for configuring automatic negotiation sent by the opposite device is obtained, and generates a first detection result; A second determination module, wherein the second determination module determines whether the synchronization state of the local device is correct and generates a second detection result; A result summary module, wherein the result summary module is connected to the first discrimination module and the second discrimination module respectively, and the result summary module generates the detection result according to the first detection result and the second detection result.