CN112511271A - Method, chip and equipment for automatically selecting forward error correction mode of Ethernet interface - Google Patents

Method, chip and equipment for automatically selecting forward error correction mode of Ethernet interface Download PDF

Info

Publication number
CN112511271A
CN112511271A CN202011191685.4A CN202011191685A CN112511271A CN 112511271 A CN112511271 A CN 112511271A CN 202011191685 A CN202011191685 A CN 202011191685A CN 112511271 A CN112511271 A CN 112511271A
Authority
CN
China
Prior art keywords
error correction
forward error
correction mode
coding
sublayer
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
CN202011191685.4A
Other languages
Chinese (zh)
Inventor
李奇
郑家雄
候绍铮
薛广营
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202011191685.4A priority Critical patent/CN112511271A/en
Publication of CN112511271A publication Critical patent/CN112511271A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0001Systems modifying transmission characteristics according to link quality, e.g. power backoff
    • H04L1/0009Systems modifying transmission characteristics according to link quality, e.g. power backoff by adapting the channel coding

Abstract

The invention discloses an automatic selection method of an Ethernet interface forward error correction mode, which comprises the following steps: configuring any forward error correction mode for the Ethernet port, and correspondingly establishing data link between a physical media auxiliary sub-layer and a physical coding sub-layer to obtain reference data; the physical coding sublayer carries out coding check on the reference data received in the forward error correction mode; the invention also provides an automatic Ethernet interface forward error correction mode selection device, which selects the forward error correction mode of Ethernet communication based on the result of the coding check, does not need manual configuration intervention, ensures that the Ethernet port can be butted with any legal FEC working mode, then realizes the automatic configuration of the correct FEC working mode, ensures the normal work of the transmission link and ensures the transmission efficiency.

Description

Method, chip and equipment for automatically selecting forward error correction mode of Ethernet interface
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method, a chip, and an apparatus for automatically selecting an ethernet interface forward error correction mode.
Background
With the improvement of communication rate, the loss effect of a transmission link becomes more obvious, which causes the signal-to-noise ratio of the communication link to be poor, the bit Error rate to be increased, and the system transmission performance and the normal signal transmission to be seriously and negatively affected, therefore, in the ethernet network communication, a forward Error correction fec (forward Error correction) technology is introduced, which is a kind of algorithm for correcting communication bit errors.
The existing AN technology can only be used on a copper cable interconnected link, and both the Ethernet link using optical fiber and the equipment do not support the AN technology, the FEC working mode needs to be configured manually, so that the compatibility problem caused by different FEC working modes at two ends often occurs, and the trouble is brought to the normal communication of the network.
Disclosure of Invention
The invention provides an automatic selection method of an Ethernet interface forward error correction mode, which does not need manual configuration intervention, ensures that an actual Ethernet port can be butted with any legal FEC working mode, then realizes the automatic configuration of a correct FEC working mode, ensures that a transmission link normally works, and ensures the transmission efficiency.
The technical scheme provided by the invention is as follows:
a method for automatically selecting an Ethernet interface forward error correction mode comprises the following steps:
configuring any forward error correction mode for the Ethernet port, and correspondingly establishing data link between a physical media auxiliary sub-layer and a physical coding sub-layer to obtain reference data;
the physical coding sublayer carries out coding check on the reference data received in the forward error correction mode;
based on the results of the code check, a forward error correction mode for the Ethernet communication is selected.
Preferably, the method further comprises performing connection detection before the ethernet port and the forward error correction mode are configured, and confirming that the data link layer and the physical layer have established the data link by detecting a connection report of a physical media attachment sub-layer of the ethernet port.
Preferably, the process of selecting the forward error correction mode for ethernet communication includes the following steps:
and if the coding check result is incorrect, another forward error correction mode is configured for the Ethernet port switching, coding check is carried out again until the coding check result is correct, and the corresponding forward error correction mode is selected as the forward error correction mode of Ethernet communication.
Preferably, the method further comprises an error check, which comprises the following steps:
checking the switching times of the Ethernet port;
and if the switching times reach the maximum value and the forward error correction mode is traversed, generating an error report.
Preferably, the forward error correction mode comprises one or more of FEC, Base-R FEC and RS-FEC mode.
Preferably, the switching times are n-1; where n is the type of forward error correction mode.
Preferably, the encoding check includes a code stream alignment and a bit error rate check.
An Ethernet interface forward error correction mode automatic selection chip, comprising:
a medium access control sublayer for controlling and connecting a physical medium of the physical layer;
physical coding sublayer for line coding and check coding
A physical media attachment sublayer capable of performing signal reception of a physical layer;
the forward error correction module sublayer is positioned between the physical coding sublayer and the physical medium auxiliary sublayer and is responsible for completing coding check and decoding error correction;
and the electro-optical conversion sublayer can convert the signals sent by the opposite terminal into electric signals after the optical module or other modules firstly receive the signals.
An automatic selection device for Ethernet interface forward error correction mode, comprising a processor and a memory, wherein the processor is used for implementing the steps of the automatic selection method for Ethernet interface forward error correction mode when executing a computer management program stored in the memory.
The invention provides an automatic selection method of an Ethernet interface forward error correction mode, which does not need manual configuration intervention, ensures that an actual Ethernet port can be butted with any legal FEC working mode, then realizes the automatic configuration of a correct FEC working mode, ensures that a transmission link normally works, and ensures the transmission efficiency.
The invention does not need manual configuration intervention, automatically selects the correct FEC mode without using AN, can be realized without additional hardware based on the functions of the existing Ethernet chip, and has low implementation cost and high reliability.
Drawings
Fig. 1 is a flowchart of a method for automatically selecting an ethernet interface forward error correction mode according to the present invention.
Fig. 2 is a flow chart illustrating a method for selecting a forward error correction mode for ethernet communications according to the present invention.
Fig. 3 is a flowchart of a specific embodiment of a method for automatically selecting an ethernet interface forward error correction mode according to the present invention.
Fig. 4 is a schematic structural diagram of an ethernet interface forward error correction mode automatic selection chip according to the present invention.
Detailed Description
The present invention is described in terms of particular embodiments, other advantages and features of the invention will become apparent to those skilled in the art from the following disclosure, and it is to be understood that the described embodiments are merely exemplary of the invention and that it is not intended to limit the invention to the particular embodiments disclosed. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that in the description of the present invention, the terms "in", "upper", "lower", "lateral", "inner", etc. indicate directions or positional relationships based on those shown in the drawings, which are merely for convenience of description, and do not indicate or imply that the device or element must have a specific orientation, be constructed and operated in a specific orientation, and thus, should not be construed as limiting the present invention. Furthermore, the terms "first" and "second" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
Furthermore, it should be noted that, in the description of the present invention, unless otherwise explicitly specified or limited, the terms "disposed," "mounted," "connected," and "connected" are to be construed broadly and may be, for example, fixedly connected, detachably connected, or integrally connected; may be a mechanical connection; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations.
As shown in fig. 1, based on the technical problem proposed by the background art, the present invention provides an automatic selection method for forward error correction mode of ethernet interface, which includes the following steps:
step S110, connection detection is carried out before the Ethernet port and the forward error correction mode are configured, and a connection report of a physical media auxiliary sub-layer of the Ethernet port is detected, namely after a PMA sub-layer of the Ethernet port reports link up, a data link layer and a physical layer are confirmed to establish data link;
step S120, configuring any forward error correction mode for the Ethernet port, and waiting for t1After the time interval, correspondingly establishing data link between the physical media auxiliary sub-layer and the physical coding sub-layer to obtain reference data; wherein, the data transmission process is as follows:
a medium access control sublayer for controlling and connecting a physical medium of the physical layer; a physical coding sublayer for line coding and check coding, a physical medium attachment sublayer capable of performing signal reception of a physical layer; the forward error correction module sublayer is positioned between the physical coding sublayer and the physical medium auxiliary sublayer and is responsible for completing coding check and decoding error correction, data is transmitted to the physical coding sublayer through the medium access control sublayer to be coded and checked, the forward error correction module sublayer codes are used for completing check and decoding error correction, and then the data is transmitted to the physical medium auxiliary sublayer to be received to obtain reference data;
step S130, waiting for t2After a time interval, the physical coding sublayer performs coding check on the reference data received in the forward error correction mode, namely completes code stream alignment and checks the error rate;
step S140, selecting a forward error correction mode of ethernet communication based on the result of the coding check, specifically including the following steps:
step S141, checking and judging the error rate;
step S142, if the code checking result is incorrect, another forward error correction mode is configured for Ethernet port switching; and code checking is carried out again;
step S143, checking the switching times of the Ethernet port; the switching frequency is n + 1; wherein n is the type of forward error correction mode;
step S144, if the switching times reach the maximum value and the forward error correction mode is traversed, generating an error report;
step S145, if the result of the encoding check is correct, selecting the corresponding forward error correction mode as the forward error correction mode of the ethernet communication.
In another embodiment, the forward error correction mode includes one or more of FEC, Base-R FEC, and RS-FEC modes. FEC, Base-R FEC and RS-FEC are all commonly used error correction modes in Ethernet communication links.
In another embodiment, the encoding checks include code stream alignment and bit error rate checks.
Specifically, the selection process of any forward error correction mode of the Ethernet port configuration comprises the following steps:
after detecting that the link physical layer has established connection, namely the PMA sublayer of the Ethernet port reports link up, starting to execute the method provided by the invention;
firstly, configuring a first FEC working mode, and after waiting for time t1, opening a data path between a PMA and a PCS sublayer;
waiting for t2 time, so that the PCS can complete code stream alignment and check the error rate;
if the FEC working mode is correct, the PCS can receive correct code streams at the moment, and after alignment is completed, the bermonitor of the PCS sub-layer cannot report errors;
if the FEC coding configuration is wrong and does not accord with the FEC coding sent by the opposite end, the information after the FEC decoding is incorrect, PCS cannot finish code stream alignment, and a bermonitor reports the error;
at this point the retry counter needs to be incremented and retried. After the maximum number of retries is reached, if the bermonitor still reports an error, it is necessary to switch to the next FEC mode, and restart the above steps until all FEC operation modes are tried.
In another embodiment, the present invention further provides an ethernet interface forward error correction mode automatic selection chip, including: a medium access control sublayer 210, a physical coding sublayer 220, a physical medium attachment sublayer 230, a forward error correction sublayer 240, and an electrical-to-optical conversion sublayer 250.
A medium access control sublayer 210 for controlling and interfacing with a physical medium of a physical layer; a physical coding sublayer 220 for line coding and check coding, a physical medium attachment sublayer 230 capable of performing signal reception of a physical layer; a forward error correction mode sublayer 240, which is located between the physical coding sublayer and the physical medium auxiliary sublayer and is responsible for completing coding check and decoding error correction; the electrical-to-optical conversion sublayer 250 can convert the signals sent by the optical module or other modules to electrical signals after receiving the signals from the opposite end.
In another embodiment, the present invention further provides an ethernet interface forward error correction mode automatic selection device, which includes a processor and a memory, wherein the processor is configured to execute the steps of the ethernet interface forward error correction mode automatic selection method implemented when a computer management class program stored in the memory is executed.
The Ethernet interface forward error correction mode automatic selection equipment comprises an Ethernet interface forward error correction mode automatic selection chip, a CPU and other modules, and for one Ethernet interface, the Ethernet interface automatic selection equipment comprises MAC, PCS, FEC, PMA and PMD in a switching chip. The PCS sublayer has the functions of encoding and decoding scrambling codes, checking whether the received Ethernet link layer codes are correct, and the like. The FEC sublayer is positioned between the PCS and PMA sublayers and is responsible for completing the coding and decoding error correction of FEC check, and the exchange chip can be configured by software without using FEC. The PMA sublayer comprises a SERDES which is responsible for conversion between high-speed serial electric signals outside the chip and parallel signals inside the chip.
In the embodiment of the invention, the MAC layer is a media access control sublayer, the PCS layer is a physical coding sublayer, the FEC layer is a physical medium auxiliary sublayer, the PMA layer is a forward error correction module sublayer and the PMD layer is an electro-optical conversion sublayer.
When an Ethernet link starts to establish connection, a PMD (physical mode controller), namely an optical module or other modules firstly receive a signal sent by an opposite terminal, convert the signal into an electric signal and send the electric signal to a PMA sublayer in a switching chip;
and after the SERDES in the PMA sublayer finishes receiving the signals of the physical layer, reporting that the PMA sublayer of the system is initialized. The event is used as a trigger to execute the method provided by the invention;
first, a FEC operation mode list is determined, for example, for a 25G ethernet optical interface: three modes of FEC, Base-R FEC and RS-FEC are not used;
after the PMA sublayer reports linkup, the data path between the PMA and the PCS is closed firstly, and error information is prevented from being transmitted to the PCS. Waiting t1 time to ensure that the signal sent by PMA is stable, and configuring a first FEC working mode according to a preset FEC working mode list;
then opening a data path between the PMA and the PCS, and transmitting the signal after FEC decoding to a PCS sublayer;
coding inspection can be finished inside the PCS sublayer, if the information after FEC decoding is incorrect, PCS cannot finish code stream alignment, and a ber monitor in the PCS sublayer reports an error;
if there is no error after waiting t2, the connection is considered to be correctly established, if an error is reported, the data path between the PMA and the PCS is closed, and meanwhile, the retry counter +1 is retried;
and after the retry number upper limit is exceeded, the FEC operation mode needs to be changed, and the steps are repeated. Thus, when the FEC mode is matched with the opposite end, the ber monitor of the PCS does not report errors, and the self-adaption of the FEC mode is completed at the moment;
the execution of the Ethernet interface forward error correction mode automatic selection method is carried out in the CPU, and the CPU can read and write the relevant register in the exchange chip through the management channel of the exchange chip, thereby realizing the method.
The invention provides an automatic selection method of an Ethernet interface forward error correction mode, which does not need manual configuration intervention, ensures that an actual Ethernet port can be butted with any legal FEC working mode, then realizes the automatic configuration of a correct FEC working mode, ensures that a transmission link normally works, and ensures the transmission efficiency.
The invention does not need manual configuration intervention, automatically selects the correct FEC mode without using AN, can be realized without additional hardware based on the functions of the existing Ethernet chip, and has low implementation cost and high reliability.
So far, the technical solutions of the present invention have been described in connection with the preferred embodiments shown in the drawings, but it is easily understood by those skilled in the art that the scope of the present invention is obviously not limited to these specific embodiments. Equivalent changes or substitutions of related technical features can be made by those skilled in the art without departing from the principle of the invention, and the technical scheme after the changes or substitutions can fall into the protection scope of the invention.

Claims (9)

1. An automatic selection method for forward error correction mode of Ethernet interface, comprising:
configuring any forward error correction mode for the Ethernet port, and correspondingly establishing data link between a physical media auxiliary sub-layer and a physical coding sub-layer to obtain reference data;
the physical coding sublayer carries out coding check on the reference data received in the forward error correction mode;
based on the results of the code check, a forward error correction mode for the Ethernet communication is selected.
2. The method according to claim 1, further comprising performing a connection check before configuring the ethernet port and the fec mode, wherein the connection check confirms that the data link layer and the physical layer have established a data link by checking a connection report of a physical media attachment sublayer of the ethernet port.
3. The method according to claim 2, wherein said selecting the forward error correction mode of the ethernet communication comprises the steps of:
and if the coding check result is incorrect, another forward error correction mode is configured for the Ethernet port switching, coding check is carried out again until the coding check result is correct, and the corresponding forward error correction mode is selected as the forward error correction mode of Ethernet communication.
4. An Ethernet interface forward error correction mode automatic selection method according to claim 3, further comprising an error check, comprising the steps of:
checking the switching times of the Ethernet port;
and if the switching times reach the maximum value and the forward error correction mode is traversed, generating an error report.
5. An Ethernet interface forward error correction mode automatic selection method according to claim 4, wherein the forward error correction mode comprises one or more of FEC, Base-R FEC and RS-FEC mode.
6. An Ethernet interface FEC mode automatic selection method according to claim 5, wherein said switching number is n-1; where n is the type of forward error correction mode.
7. An Ethernet interface forward error correction mode automatic selection method as described in claim 6, wherein said coding checks comprise code stream alignment and bit error rate checks.
8. An ethernet interface forward error correction mode automatic selection chip, comprising:
a medium access control sublayer for controlling and connecting a physical medium of the physical layer;
physical coding sublayer for line coding and check coding
A physical media attachment sublayer capable of performing signal reception of a physical layer;
the forward error correction module sublayer is positioned between the physical coding sublayer and the physical medium auxiliary sublayer and is responsible for completing coding check and decoding error correction;
and the electro-optical conversion sublayer can convert the signals sent by the opposite terminal into electric signals after the optical module or other modules firstly receive the signals.
9. An ethernet interface forward error correction mode automatic selection device comprising a processor and a memory, characterized in that the processor is configured to implement the steps of the ethernet interface forward error correction mode automatic selection method according to any one of claims 1 to 7 when executing a computer management class program stored in the memory.
CN202011191685.4A 2020-10-30 2020-10-30 Method, chip and equipment for automatically selecting forward error correction mode of Ethernet interface Withdrawn CN112511271A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011191685.4A CN112511271A (en) 2020-10-30 2020-10-30 Method, chip and equipment for automatically selecting forward error correction mode of Ethernet interface

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011191685.4A CN112511271A (en) 2020-10-30 2020-10-30 Method, chip and equipment for automatically selecting forward error correction mode of Ethernet interface

Publications (1)

Publication Number Publication Date
CN112511271A true CN112511271A (en) 2021-03-16

Family

ID=74955130

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011191685.4A Withdrawn CN112511271A (en) 2020-10-30 2020-10-30 Method, chip and equipment for automatically selecting forward error correction mode of Ethernet interface

Country Status (1)

Country Link
CN (1) CN112511271A (en)

Similar Documents

Publication Publication Date Title
US9401760B2 (en) Diagnostic port for inter-switch link testing in electrical, optical and remote loopback modes
US8755285B2 (en) Method, system and apparatus for diagnosing physical downlink failure
CN111164923B (en) Design for unidirectional data transmission
CN111984477B (en) PCIe equipment signal parameter dynamic correction device and method
CN103004128A (en) Communication device, communication system, communication method, and program
US8065571B2 (en) Storage area network (SAN) link integrity tester
US20200367076A1 (en) Method of exchange of information between radio remote unit and baseband unit in 4g lte network when loss of synchronous signals on common public radio interface
CN112511271A (en) Method, chip and equipment for automatically selecting forward error correction mode of Ethernet interface
CN113630187A (en) PHY initialization method, system, equipment and medium
CN111294299B (en) Serdes link transmission method based on K codes
US20040087303A1 (en) System and method for collecting debugging and system crash information from a mobile phone
CN114884767B (en) Synchronous dual-redundancy CAN bus communication system, method, equipment and medium
US8626001B2 (en) Optical communication card and optical transmission device
CN1168238C (en) System and method for monitoring CDMA mobile terminals
KR20070119015A (en) Method and testing arrangement for testing a device using 8b/10b encoding and an 8b/10b encoder and decoder
CN114598418A (en) Method, device and system applied to encoder data transmission
CN113517950A (en) Signal receiving and transmitting method, system and medium
US6819830B2 (en) System and method for communicating data in a network using backchannel signaling
CN115694740B (en) UVM verification platform system and verification method
JP2762873B2 (en) Call path switching monitoring method
JP7417773B1 (en) Network interface card and transmission performance monitoring method
CN115396382A (en) Operation method of network device and control chip of network device
CN116055002A (en) Optical cross-network communication method capable of automatically correcting error feedback
CN117880141A (en) Intelligent network fault detection system
CN111585704A (en) Novel digital communication method for replacing analog output

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication

Application publication date: 20210316

WW01 Invention patent application withdrawn after publication