A single network port self-redundant Ethernet communication control method and system

By adopting a single-network self-redundant Ethernet communication control method in a Gigabit Ethernet communication network, the differential line pair switching mechanism is preset, and the communication interruption problem of the first two differential line pairs is solved, and automatic switching is realized Go to the last two differential line pairs to maintain the effect of communication.

CN116112129BActive Publication Date: 2025-02-11CHANGSHA XIANGJI HAIDUN TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211618301.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-15
Publication Date
2025-02-11
Estimated Expiration
2042-12-15

AI Technical Summary

Technical Problem

When the first two differential line pairs fail, communication will be interrupted and cannot automatically switch to the last two differential line pairs to maintain communication.

Method used

The Ethernet communication control method with a single network port self-redundancy is adopted. Through the preset differential line pair switching mechanism, when the first two differential line pairs fail, it automatically switches to the last two differential line pairs to ensure that the communication continues.

Benefits of technology

It improves the communication success rate of the Gigabit/100M Ethernet communication network in the event of a differential line failure, avoids communication interruption, and ensures network reliability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116112129B_ABST
    Figure CN116112129B_ABST
Patent Text Reader

Abstract

The present invention discloses a single network port self-redundant Ethernet communication control method and system, the method includes: when two communication terminals are plugged into the communication network port, self-negotiation is performed based on the self-negotiation mechanism, monitoring the self-negotiation pulse signal of the communication network port of both parties; judging whether the initial self-negotiation is successful according to the self-negotiation pulse signal; if the initial self-negotiation fails, differential line pairs in the communication network ports of both parties are switched according to the preset differential line pair switching mechanism until the self-negotiation is successful, the preset differential line pair switching mechanism is known to the communication network ports of both parties, the differential line pair switching includes at least two times, each differential line pair switching is to switch one or two of the first two differential line pairs to one or two of the last two differential line pairs. When one or two of the first two differential line pairs fail, the preset differential line pair switching mechanism is used to switch to one or two of the last two differential line pairs, thereby improving the communication success rate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of network communication, and in particular relates to a single network port self-redundant Ethernet communication control method and system. Background Art

[0002] The commonly used Gigabit Ethernet communication standard is mainly 1000BASE-T, also known as IEEE 802.3ab, which is a Gigabit Ethernet standard for twisted pair cables. The commonly used Gigabit Ethernet ports mostly follow the 1000BASE-T protocol, and its interface meets the TIA / EIA 568B definition. The Gigabit Ethernet communication cable is composed of 8 (4 pairs) differential twisted pairs, which are 1-2, 3-4, 5-6, 7-8 differential pairs, recorded as a, b, c, d differential pairs. Gigabit network port 1000BASE-T needs to use all 4 pairs of differential pairs, while 100BASE-T can operate using the first 2 pairs of differential pairs (a and b) in the 4 pairs of differential pairs. 10base-T also needs the first 2 pairs of differential pairs, and its control logic is similar to 100base-T. After the Gigabit Ethernet connector is connected, the network port communication rate is negotiated first. The auto-negotiation pulse is an important factor in the monitoring unit's determination of the port status. Auto-negotiation is based on pulses similar to those used by 10bASE-T devices to detect the presence of a connection with other devices. These Link Integrity Test (LIT) pulses are sent by Ethernet devices when they are not sending or receiving any frames. They are unipolar positive pulses with a nominal duration of 100ns, a maximum pulse width of 200ns, generated at intervals of 16ms, and a timing variation tolerance of 8ms. If the port receives neither a frame nor two LIT pulses within 50ms to 150ms, a link failure is considered to have occurred. For this scheme to work properly, the device must send LIT pulses regardless of receiving any pulses. In the auto-negotiation specification, these pulses are called Normal Link Pulses (NLP).

[0003] The NLPs used by auto-negotiation are unipolar, positive only, and have a nominal duration of 100ns, however, each LIT is replaced by a burst of pulses consisting of 17 to 33 pulses, which are sent 125μs apart. Each pulse burst is called a Fast Link Pulse (FLP) burst. The time interval between the start of each FLP burst is the same as the 16ms between NLPs. An FLP burst consists of 17 NLPs, with a time interval of 125μs and a tolerance of 14μs. There may be an additional positive pulse between each pair of two consecutive NLPs (i.e., 62.5μs after the first NLP of the pulse pair). The presence of this additional pulse represents a logical 1, and its absence represents a logical 0. Therefore, each FLP contains a 16-bit data word. This data word is called a Link Code Word (LCW). The bit numbering of the LCW ranges from 0 to 15, where bit 0 corresponds to the first possible pulse in time and bit 15 corresponds to the last pulse.

[0004] When any pair of differential line pairs c and d is disconnected, the Gigabit network will automatically slow down to a 100M network; and when any pair of differential line pairs a and b fails, communications on both the Gigabit and 100M networks will be interrupted. Summary of the invention

[0005] The present invention provides a single network port self-redundant Ethernet communication control method and system, which is used to switch to one or two of the last two differential line pairs through a preset differential line pair switching mechanism when one or both of the first two differential line pairs fail, thereby improving the communication success rate.

[0006] In order to solve the above technical problems, the technical solution adopted by the present invention is:

[0007] In a first aspect, a single network port self-redundant Ethernet communication control method is provided, which is applied to a Gigabit / 100M Ethernet communication network, wherein the communication network ports of two communication terminals are connected via a single differential communication line, wherein the differential communication line has four differential line pairs, and the four differential line pairs are divided into first two differential line pairs and last two differential line pairs, and the method comprises:

[0008] When the communication terminals of both parties are plugged into the communication network ports and perform self-negotiation based on the self-negotiation mechanism, the self-negotiation pulse signals of the communication network ports of both parties are monitored;

[0009] Determine whether the initial auto-negotiation is successful based on the auto-negotiation pulse signal;

[0010] If the initial auto-negotiation fails, the differential line pairs in the communication network ports of both parties are switched according to the preset differential line pair switching mechanism until the auto-negotiation succeeds. The preset differential line pair switching mechanism is known to the communication network ports of both parties. The differential line pair switching is to switch one or both of the first two differential line pairs to one or both of the last two differential line pairs.

[0011] Furthermore, the communication terminals of both parties are a first communication terminal and a second communication terminal, the first communication terminal corresponds to a first communication network port, and the second communication terminal corresponds to a second communication network port.

[0012] Determine whether the initial auto-negotiation is successful based on the auto-negotiation pulse signal, including:

[0013] Determine the first connection capability information according to the self-negotiation pulse signal of the first communication network port, and determine the second connection capability information according to the self-negotiation pulse signal of the second communication network port;

[0014] determining whether the first connection capability information and the second connection capability information are the same;

[0015] If they are the same, the initial auto-negotiation is successful;

[0016] If they are not the same, the initial auto-negotiation fails.

[0017] Further, according to the preset differential line pair switching mechanism, the differential line pairs in the communication network port are switched until the auto-negotiation succeeds, which also includes:

[0018] When the initial self-negotiation fails and the first communication network port receives an alarm pulse signal from the second communication network port, the first communication network port is used as a slave signal end and the second communication network port is used as a master signal end;

[0019] The response signal is sent from the signal end to the master signal end, and the response signal is the feedback of the slave signal end to the alarm pulse signal.

[0020] Further, the first communication network port is used as a slave signal terminal, and the second communication network port is used as a master signal terminal, including:

[0021] Parsing the self-negotiation pulse signal of the first communication network port to obtain the first identity information, and parsing the self-negotiation pulse signal of the second communication network port to obtain the second identity information;

[0022] Obtain a first MAC address of the first communication network port and a second MAC address of the second communication network port;

[0023] Binding the first identity information to the first MAC address, and determining the first communication network port as a slave signal end;

[0024] The second identity information is bound to the second MAC address, and the second communication network port is determined as the main signal end.

[0025] Furthermore, the first two differential line pairs are differential line pair a and differential line pair b, and the last two differential line pairs are differential line pair c and differential line pair d.

[0026] According to the preset differential line pair switching mechanism, the differential line pairs in the communication network ports of both parties are switched until the auto-negotiation succeeds, including:

[0027] According to the preset differential line pair switching mechanism, the ac differential line pair switching, the bc differential line pair switching and the abcd differential line switching and the switching priority are determined. The ac differential line pair switching has the highest priority, the bc differential line pair switching has a medium priority, and the abcd differential line switching has the lowest priority.

[0028] The differential line pair switching is performed cyclically from high to low according to the switching priority until the auto-negotiation succeeds.

[0029] Furthermore, the differential line pair switching is performed cyclically from large to small according to the switching priority until the auto-negotiation succeeds, including:

[0030] According to the ac differential line pair switching, the signal channel of the a differential line pair in the communication network ports of both parties is switched to the signal channel of the c differential line pair, and it is determined whether the auto-negotiation is successful after the first differential line pair switching;

[0031] If the auto-negotiation succeeds after the first differential line pair switching, the differential line pair switching ends;

[0032] If the auto-negotiation fails after the first differential line pair switching, the signal channel of the b differential line pair in the communication network ports of both parties is switched to the signal channel of the c differential line pair according to the bc differential line pair switching, and it is determined whether the auto-negotiation is successful after the second differential line pair switching;

[0033] If the auto-negotiation succeeds after the second differential line pair switching, the differential line pair switching ends;

[0034] If the auto-negotiation fails after the second differential line pair switching, the signal channel of the differential line pair a in the communication network ports of both parties is switched to the signal channel of the differential line pair c according to the abcd differential line pair switching, and the signal channel of the differential line pair b is switched to the signal channel of the differential line pair d, to determine whether the auto-negotiation is successful after the third differential line pair switching;

[0035] If the auto-negotiation succeeds after the third differential line pair switching, the differential line pair switching ends;

[0036] If auto-negotiation fails after the third differential line pair switching, the AC differential line pair switching will be returned to until the auto-negotiation succeeds.

[0037] Furthermore, the method also includes:

[0038] After the nth differential line pair switching and the auto-negotiation succeeds, when no signal is detected in the four differential line pairs, the result of the nth differential line pair switching is restored, and the auto-negotiation is performed again, where n is an integer greater than or equal to 1.

[0039] Furthermore, according to the ac differential line pair switching, the signal channel of the a differential line pair in the communication network ports of both parties is switched to the signal channel of the c differential line pair, including:

[0040] According to the AC differential line pair switching, the positive pole of the a differential line pair in the communication network ports of both parties is switched to the positive pole of the c differential line pair, and the negative pole of the a differential line pair is switched to the negative pole of the c differential line pair.

[0041] Furthermore, the method also includes:

[0042] If the initial auto-negotiation is successful, no differential pair switching is performed.

[0043] In the second aspect, a single network port self-redundant Ethernet communication control system is provided, which is applied to a Gigabit / 100M Ethernet communication network. The communication network ports of the two communication terminals are connected through a single differential communication line. The differential communication line has four differential line pairs, and the four differential line pairs are divided into the first two differential line pairs and the last two differential line pairs. The single network port self-redundant Ethernet communication control system includes:

[0044] Signal detection module, auto-negotiation judgment module and differential line pair switching control module;

[0045] When the communication terminals of both parties are plugged into the communication network ports and perform self-negotiation based on the self-negotiation mechanism, the signal detection module monitors the self-negotiation pulse signals of the communication network ports of both parties;

[0046] The auto-negotiation judgment module determines whether the initial auto-negotiation is successful based on the auto-negotiation pulse signal;

[0047] If the initial self-negotiation fails, the differential line pair switching control module switches the differential line pairs in the communication network ports of both parties according to the preset differential line pair switching mechanism until the self-negotiation succeeds. The preset differential line pair switching mechanism is known to both communication network ports. The differential line pair switching is to switch one or both of the first two differential line pairs to one or both of the last two differential line pairs.

[0048] In a third aspect, a computer-readable storage medium storing one or more programs is provided, wherein the one or more programs include instructions, and when the instructions are executed by a computing device, the computing device executes the single network port self-redundant Ethernet communication control method in the first aspect.

[0049] In a fourth aspect, a computing device is provided, comprising one or more processors, one or more memories, and one or more programs, wherein the one or more programs are stored in the one or more memories and are configured to be executed by the one or more processors, and the one or more programs include instructions for executing the single network port self-redundant Ethernet communication control method in the first aspect.

[0050] The beneficial effects achieved by the present invention are:

[0051] When the communication terminals of both parties are plugged into the communication network ports and self-negotiation is performed based on the self-negotiation mechanism, the signal detection module monitors the self-negotiation pulse signals of the communication network ports of both parties, and the self-negotiation judgment module judges whether the initial self-negotiation is successful according to the self-negotiation pulse signals. If the initial self-negotiation fails, the differential line pair switching control module performs differential line pair switching on the differential line pairs in the communication network ports of both parties according to the preset differential line pair switching mechanism until the self-negotiation is successful. The preset differential line pair switching mechanism is known to the communication network ports of both parties. The differential line pair switching is to switch one or two of the first two differential line pairs to one or two of the last two differential line pairs. Compared with the existing one or two of the first two differential line pairs that fail, whether the communication of the gigabit network or the 100M network will be interrupted, the present invention switches to one or two of the last two differential line pairs through the preset differential line pair switching mechanism when one or two of the first two differential line pairs fail, so that the gigabit network automatically slows down to become a 100M network, but the communication will not be terminated, thereby improving the communication success rate. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] Figure 1 It is a flow chart of the single network port self-redundant Ethernet communication control method of the present invention;

[0053] Figure 2 A flow chart for setting the master-slave signal terminal of the present invention;

[0054] Figure 3 A flow chart of a differential line pair switching process of the present invention;

[0055] Figure 4 This is a structural diagram of the single network port self-redundant Ethernet communication control system of the present invention. DETAILED DESCRIPTION

[0056] The present invention will be further described below in conjunction with the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present invention, and cannot be used to limit the protection scope of the present invention.

[0057] Based on the existing commonly used Gigabit Ethernet communication standard 1000BASE-T, the commonly used Gigabit Ethernet port mostly follows the protocol 1000BASE-T, and its interface meets the TIA / EIA 568B definition. The Gigabit Ethernet communication cable is composed of 8 (4 pairs) differential twisted pairs, which are 1-2, 3-4, 5-6, 7-8 differential pairs, recorded as a, b, c, d differential pairs. Gigabit network port 1000BASE-T needs to use all 4 pairs of differential pairs, while 100M network port 100BASE-T can operate using the first 2 pairs of differential pairs (a and b) in the 4 pairs of differential pairs. When any pair of c and d differential pairs is disconnected, the Gigabit network will automatically reduce the speed to a 100M network; and when any pair of a and b differential pairs fails, the communication of both the Gigabit network and the 100M network will be interrupted.

[0058] There are many situations depending on the disconnection of the differential line pairs a, b, c, and d. For example, when a, b, and ab are disconnected, both the Gigabit and 100M networks will be disconnected; when a and b are intact and any one of c and d is disconnected, the Gigabit network will automatically slow down to 100M. This means that only when a, b, c, and d are normal can the Gigabit network communication be guaranteed to be normal; as shown in Table 1 below, the success rate analysis of normal communication under 10 different disconnection situations is provided.

[0059] Table 1 Analysis of normal existing 100M network communication

[0060]

[0061] In order to improve the probability of normal communication in the case of a single network port in a Gigabit / 100M Ethernet communication network, such as Figure 1 As shown, an embodiment of the present invention provides a single network port self-redundant Ethernet communication control method, comprising:

[0062] 101, when the communication terminals of both parties are plugged into the communication network ports and perform self-negotiation based on the self-negotiation mechanism, the self-negotiation pulse signals of the communication network ports of both parties are monitored;

[0063] Among them, after the communication terminals of both parties are plugged into their respective corresponding communication network ports, they perform self-negotiation by sending self-negotiation pulse signals to each other in accordance with the existing self-negotiation mechanism, and the self-negotiation pulse signals of the communication network ports of both parties are monitored at the communication network ports of the two communication terminals.

[0064] 102, judging whether the initial auto-negotiation is successful according to the auto-negotiation pulse signal;

[0065] The criteria for judging the success of initial auto-negotiation are as follows:

[0066] Assume that the communication terminals of both parties are the first communication terminal and the second communication terminal, the first communication terminal corresponds to the first communication network port, and the second communication terminal corresponds to the second communication network port, the first connection capability information is determined according to the self-negotiation pulse signal of the first communication network port, and the second connection capability information is determined according to the self-negotiation pulse signal of the second communication network port, the connection capability information indicates the rate capability, duplex capability and flow control capability that the communication network port can support, and only when the first connection capability information and the second connection capability information are the same, can it be indicated that the initial self-negotiation is successful. If they are not the same, the initial self-negotiation fails, and step 103 is executed.

[0067] 103. According to a preset differential line pair switching mechanism, differential line pairs in the communication network ports of both parties are switched until the self-negotiation succeeds.

[0068] The preset differential line pair switching mechanism is pre-set in the communication network ports of both parties and is known to both parties, that is, they share the same preset differential line pair switching mechanism. According to the preset differential line pair switching mechanism, the differential line pairs in the communication network ports of both parties are switched until the self-negotiation succeeds. The differential line pair switching is to switch one or both of the first two differential line pairs to one or both of the last two differential line pairs.

[0069] Assuming that differential line pair a is disconnected and lines b, c, and d are all normal, the initial auto-negotiation is bound to fail. According to existing standards, both the Gigabit and 100M networks will have their communications interrupted. In an embodiment of the present invention, the signal channel of differential line pair a can be switched to the c signal channel. Since the c signal channel is occupied, the Gigabit network automatically slows down to become a 100M network. Since both communication network ports are switched at the same time, the auto-negotiation can succeed, thus ensuring that the 100M network communication will not be interrupted, thereby improving the communication success rate.

[0070] It should be noted that in Figure 1 In the illustrated embodiment, when the initial self-negotiation is successful, communication can be performed directly, and in order to save resources, there is no need to switch any differential line pairs.

[0071] According to the above Figure 1 In the embodiment shown, the preset differential line pair switching mechanism requires both communication network ports to perform to ensure the success of self-negotiation. Then, according to the preset differential line pair switching mechanism, the differential line pairs in the communication network ports are switched until the self-negotiation succeeds. It is also necessary to set the master and slave signal ends to ensure that the communication network ports performing differential line pair switching are corresponding. Figure 2 As shown, the steps include:

[0072] 201, when the initial self-negotiation fails and the first communication network port receives an alarm pulse signal from the second communication network port, the self-negotiation pulse signal of the first communication network port is parsed to obtain the first identity information, and the self-negotiation pulse signal of the second communication network port is parsed to obtain the second identity information;

[0073] Among them, during the self-negotiation process, the self-negotiation pulse signal can carry data, and can also carry the identity information of the communication network port. When the initial self-negotiation fails, when the first communication network port receives the alarm pulse signal of the second communication network port, the self-negotiation pulse signal of the first communication network port is parsed to obtain the first identity information, and the self-negotiation pulse signal of the second communication network port is parsed to obtain the second identity information.

[0074] 202, obtaining a first MAC address of a first communication network port and a second MAC address of a second communication network port;

[0075] Each communication network port has a unique MAC address, which can be included in the signal or known in advance by the other communication network port.

[0076] 203, binding the first identity information with the first MAC address, and determining the first communication network port as a slave signal end;

[0077] 204, binding the second identity information with the second MAC address, and determining the second communication network port as the main signal end;

[0078] 205 , sending a response signal from the slave signal end to the master signal end, where the response signal is feedback from the slave signal end to the alarm pulse signal.

[0079] In the embodiment of the present invention, step 203 and step 204 are executed synchronously without any sequence.

[0080] In the existing communication network cable with 8 differential lines, the first two differential line pairs are differential line pair a and differential line pair b, and the last two differential line pairs are differential line pair c and differential line pair d. The specific process of switching the differential line pairs is as follows: Figure 3 As shown, the steps include:

[0081] 301, according to a preset differential line pair switching mechanism, determine the ac differential line pair switching, the bc differential line pair switching and the abcd differential line switching and the switching priority;

[0082] Among them, ac differential line pair switching refers to switching the signal channel of differential line pair a in the communication network ports of both parties to the signal channel of differential line pair c; bc differential line pair switching refers to switching the signal channel of differential line pair b in the communication network ports of both parties to the signal channel of differential line pair c; abcd differential line pair switching refers to switching the signal channel of differential line pair a in the communication network ports of both parties to the signal channel of differential line pair c, and switching the signal channel of differential line pair b to the signal channel of differential line pair d; the three different switching modes are for the situation where different differential line pairs fail, and the switching priority is set to switch one by one according to the priority from large to small. The ac differential line pair switching has the highest priority, the bc differential line pair switching has a medium priority, and the abcd differential line switching has the lowest priority.

[0083] 302, according to the ac differential line pair switching, the signal channel of the a differential line pair in the communication network ports of both parties is switched to the signal channel of the c differential line pair, and it is determined whether the auto-negotiation is successful after the first differential line pair switching;

[0084] Among them, the specific switching method is to switch the a differential line pair according to the ac differential line pair, switch the positive pole of the a differential line pair in the communication network ports of both parties to the positive pole of the c differential line pair, and switch the negative pole of the a differential line pair to the negative pole of the c differential line pair, so as to switch the signal channel of the a differential line pair in the communication network ports of both parties to the signal channel of the c differential line pair. After this switching is completed, it is recorded as the first differential line pair switching, and it is determined whether the self-negotiation is successful after the first differential line pair switching. If the self-negotiation is successful after the first differential line pair switching, step 303 is executed. If the self-negotiation fails after the first differential line pair switching, step 304 is executed.

[0085] 303, end the differential line pair switching;

[0086] 304, according to the bc differential line pair switching, the signal channel of the b differential line pair in the communication network ports of both parties is switched to the signal channel of the c differential line pair, and it is determined whether the self-negotiation is successful after the second differential line pair switching;

[0087] If the second auto-negotiation succeeds after the differential line pair switching, step 303 is executed; if the second auto-negotiation fails after the differential line pair switching, step 305 is executed.

[0088] 305, according to the abcd differential line pair switching, the signal channel of the differential line pair a in the communication network ports of both parties is switched to the signal channel of the differential line pair c, and the signal channel of the differential line pair b is switched to the signal channel of the differential line pair d, and it is determined whether the auto-negotiation is successful after the third differential line pair switching;

[0089] If the auto-negotiation succeeds after the third differential line pair switching, step 303 is executed; if the auto-negotiation fails after the third differential line pair switching, the process returns to step 302.

[0090] The implementation principle of the embodiment of the present invention is:

[0091] When switching the differential line pairs, it is done on the basis of the original communication network port. The self-negotiation pulse signal receiving and sending mechanism of the physical layer PHY chip of the communication network port is not changed, and the compatibility between PHY chips of different manufacturers is not affected. It has a wide range of applicable conditions and high link reliability.

[0092] It should be noted that in the above Figure 3 In the embodiment shown, during the cyclic differential line pair switching process, the record number of each switch is automatically increased by 1. If the self-negotiation is successful only after the nth differential line pair switching, if the network cables of the communication terminals of both parties are unplugged later, it can be monitored that there is no signal on the four differential line pairs. At this time, the result of the nth differential line pair switching is restored and self-negotiation is performed again.

[0093] It should be noted that if the single network port self-redundant Ethernet communication control method described above fails itself, then the logic of differential line pair switching is wrong, releasing the differential line pair switching function and allowing the two ends of the communication network port to perform the original self-negotiation.

[0094] Table 2 below compares the normal communication success rates achieved by the prior art and the single-port self-redundant Ethernet communication control method of the present invention. It can be seen that under the same 10 different disconnection situations, the present invention can achieve a 100% communication success rate of a 100M network.

[0095] Table 2 Comparison of normal analysis of the present invention and existing 100M network communication

[0096]

[0097] The above embodiments describe a single network port self-redundant Ethernet communication control method. The following describes a single network port self-redundant Ethernet communication control system through an embodiment.

[0098] like Figure 4 As shown, the single network port self-redundant Ethernet communication control system in the embodiment of the present invention includes:

[0099] Signal detection module 401, self-negotiation judgment module 402 and differential line pair switching control module 403;

[0100] When the communication terminals of both parties are plugged into the communication network ports and perform self-negotiation based on the self-negotiation mechanism, the signal detection module 401 monitors the self-negotiation pulse signals of the communication network ports of both parties;

[0101] The auto-negotiation judgment module 402 judges whether the initial auto-negotiation is successful according to the auto-negotiation pulse signal;

[0102] If the initial self-negotiation fails, the differential line pair switching control module 403 performs differential line pair switching on the differential line pairs in the communication network ports of both parties according to the preset differential line pair switching mechanism until the self-negotiation succeeds. The preset differential line pair switching mechanism is known to the communication network ports of both parties. The differential line pair switching is to switch one or both of the first two differential line pairs to one or both of the last two differential line pairs.

[0103] The principles of the embodiments of the present invention are as follows:

[0104] When the communication terminals of both parties are plugged into the communication network ports and self-negotiation is performed based on the self-negotiation mechanism, the signal detection module 401 monitors the self-negotiation pulse signals of the communication network ports of both parties, and the self-negotiation judgment module 402 judges whether the initial self-negotiation is successful according to the self-negotiation pulse signals. If the initial self-negotiation fails, the differential line pair switching control module 403 performs differential line pair switching on the differential line pairs in the communication network ports of both parties according to the preset differential line pair switching mechanism until the self-negotiation is successful. The preset differential line pair switching mechanism is known to the communication network ports of both parties. The differential line pair switching is to switch one or two of the first two differential line pairs to one or two of the last two differential line pairs. Compared with the existing one or two of the first two differential line pairs that fail, whether the communication of the gigabit network or the 100M network will be interrupted, the present invention switches to one or two of the last two differential line pairs through the preset differential line pair switching mechanism when one or two of the first two differential line pairs fail, so that the gigabit network automatically slows down to become a 100M network, but the communication will not be terminated, thereby improving the communication success rate.

[0105] Based on the same technical solution, the present invention also discloses a computer-readable storage medium storing one or more programs, wherein the one or more programs include instructions, which, when executed by a computing device, enable the computing device to execute the single network port self-redundant Ethernet communication control method described above.

[0106] Based on the same technical solution, the present invention also discloses a computing device, including one or more processors, one or more memories and one or more programs, wherein the one or more programs are stored in the one or more memories and are configured to be executed by one or more processors, and the one or more programs include instructions for executing the single network port self-redundant Ethernet communication control method described above.

[0107] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may 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-ROM, optical storage, etc.) containing computer-usable program code.

[0108] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0109] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0110] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0111] The above are merely embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention are included in the scope of the claims of the present invention to be approved.

Claims

1. A single network port self-redundant Ethernet communication control method, characterized in that: Applied to a Gigabit / 100M Ethernet communication network, the communication network ports of the two communication terminals are connected via a single differential communication line, the differential communication line has four differential line pairs, the four differential line pairs are divided into the first two differential line pairs and the last two differential line pairs, the method comprises: When the communication terminals of both parties are plugged into the communication network ports and perform self-negotiation based on the self-negotiation mechanism, the self-negotiation pulse signals of the communication network ports of both parties are monitored; Determining whether the initial self-negotiation is successful according to the self-negotiation pulse signal; If the initial self-negotiation fails, the differential line pairs in the communication network ports of both parties are switched according to the preset differential line pair switching mechanism until the self-negotiation succeeds. The preset differential line pair switching mechanism is known to the communication network ports of both parties. The differential line pair switching is to switch one or both of the first two differential line pairs to one or both of the last two differential line pairs.

2. The single network port self-redundant Ethernet communication control method according to claim 1, characterized in that: The two communication terminals are a first communication terminal and a second communication terminal, the first communication terminal corresponds to a first communication network port, and the second communication terminal corresponds to a second communication network port. The determining whether the initial self-negotiation is successful according to the self-negotiation pulse signal includes: Determine first connection capability information according to the self-negotiation pulse signal of the first communication network port, and determine second connection capability information according to the self-negotiation pulse signal of the second communication network port; determining whether the first connection capability information and the second connection capability information are the same; If they are the same, the initial auto-negotiation is successful; If they are not the same, the initial auto-negotiation fails.

3. The single network port self-redundant Ethernet communication control method according to claim 2, characterized in that: The method of performing differential line pair switching on the differential line pairs in the communication network port according to the preset differential line pair switching mechanism until the self-negotiation succeeds further includes: When the initial self-negotiation fails and the first communication network port receives an alarm pulse signal from the second communication network port, the first communication network port is used as a slave signal end and the second communication network port is used as a master signal end; The response signal is sent to the master signal end through the slave signal end, and the response signal is the feedback of the slave signal end to the alarm pulse signal.

4. The single network port self-redundant Ethernet communication control method according to claim 3, characterized in that: The method of using the first communication network port as a slave signal terminal and the second communication network port as a master signal terminal includes: Parsing the self-negotiation pulse signal of the first communication network port to obtain first identity information, and parsing the self-negotiation pulse signal of the second communication network port to obtain second identity information; Obtain a first MAC address of the first communication network port and a second MAC address of the second communication network port; Binding the first identity information with the first MAC address to determine the first communication network port as a slave signal end; The second identity information is bound to the second MAC address, and the second communication network port is determined as the main signal end.

5. The single network port self-redundant Ethernet communication control method according to claim 4, characterized in that: The first two differential line pairs are differential line pair a and differential line pair b, and the last two differential line pairs are differential line pair c and differential line pair d. The differential line pairs in the communication network ports of both parties are switched according to the preset differential line pair switching mechanism until the self-negotiation succeeds, including: According to the preset differential line pair switching mechanism, the ac differential line pair switching, the bc differential line pair switching and the abcd differential line switching and the switching priority are determined, wherein the ac differential line pair switching has the highest priority, the bc differential line pair switching has the middle priority, and the abcd differential line switching has the lowest priority; The differential line pair switching is performed cyclically from large to small according to the switching priority until the self-negotiation succeeds.

6. The single network port self-redundant Ethernet communication control method according to claim 5, characterized in that: The step of cyclically performing the differential line pair switching from large to small according to the switching priority until the self-negotiation succeeds includes: According to the ac differential line pair switching, the signal channel of the a differential line pair in the communication network ports of both parties is switched to the signal channel of the c differential line pair, and it is determined whether the self-negotiation is successful after the first differential line pair switching; If the auto-negotiation succeeds after the first differential line pair switching, then the differential line pair switching is terminated; If the auto-negotiation fails after the first differential line pair switching, the signal channel of the b differential line pair in the communication network ports of both parties is switched to the signal channel of the c differential line pair according to the bc differential line pair switching, and it is determined whether the auto-negotiation is successful after the second differential line pair switching; If the second differential line pair switching is successful after the auto-negotiation, then the differential line pair switching is terminated; If the self-negotiation fails after the second differential line pair switching, the signal channel of the a differential line pair in the communication network ports of both parties is switched to the signal channel of the c differential line pair according to the abcd differential line pair switching, and the signal channel of the b differential line pair is switched to the signal channel of the d differential line pair, and it is determined whether the self-negotiation is successful after the third differential line pair switching; If the auto-negotiation succeeds after the third differential line pair switching, then the differential line pair switching is terminated; If the auto-negotiation fails after the third differential line pair switching, the process returns to the ac differential line pair switching until the auto-negotiation succeeds.

7. The single network port self-redundant Ethernet communication control method according to claim 6, characterized in that: The method further comprises: After the nth differential line pair switching and the self-negotiation are successful, when no signal is detected in the four differential line pairs, the result of the nth differential line pair switching is restored and the self-negotiation is performed again, where n is an integer greater than or equal to 1.

8. The single network port self-redundant Ethernet communication control method according to claim 6, characterized in that: The switching of the signal channel of the a differential line pair in the communication network ports of both parties to the signal channel of the c differential line pair according to the ac differential line pair includes: According to the ac differential line pair switching, the positive pole of the a differential line pair in the communication network ports of both parties is switched to the positive pole of the c differential line pair, and the negative pole of the a differential line pair is switched to the negative pole of the c differential line pair.

9. The single network port self-redundant Ethernet communication control method according to any one of claims 1 to 8, characterized in that: The method further comprises: If the initial auto-negotiation is successful, no differential pair switching is performed.

10. A single network port self-redundant Ethernet communication control system, characterized in that: Applied to Gigabit / 100M Ethernet communication network, the communication network ports of the two communication terminals are connected through a single differential communication line, the differential communication line has four differential line pairs, the four differential line pairs are divided into the first two differential line pairs and the last two differential line pairs, the single network port self-redundant Ethernet communication control system includes: Signal detection module, auto-negotiation judgment module and differential line pair switching control module; When the communication terminals of both parties are plugged into the communication network ports and perform self-negotiation based on the self-negotiation mechanism, the signal detection module monitors the self-negotiation pulse signals of the communication network ports of both parties; The auto-negotiation judgment module judges whether the initial auto-negotiation is successful according to the auto-negotiation pulse signal; If the initial self-negotiation fails, the differential line pair switching control module performs differential line pair switching on the differential line pairs in the communication network ports of both parties according to a preset differential line pair switching mechanism until the self-negotiation succeeds. The preset differential line pair switching mechanism is known to the communication network ports of both parties. The differential line pair switching is to switch one or both of the first two differential line pairs to one or both of the last two differential line pairs.

Citation Information

Patent Citations

  • Device and method for guaranteeing normal communication of Ethernet

    CN102546289A

  • Ethernet auto-negotiation method and device, and storage medium

    CN114338449A