CN112073342A - Deadlock avoidance method for equalizer self-adaptive state machine - Google Patents
Deadlock avoidance method for equalizer self-adaptive state machine Download PDFInfo
- Publication number
- CN112073342A CN112073342A CN202010806334.3A CN202010806334A CN112073342A CN 112073342 A CN112073342 A CN 112073342A CN 202010806334 A CN202010806334 A CN 202010806334A CN 112073342 A CN112073342 A CN 112073342A
- Authority
- CN
- China
- Prior art keywords
- state
- link
- equal
- state machine
- equalizer
- 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.)
- Granted
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L25/00—Baseband systems
- H04L25/02—Details ; arrangements for supplying electrical power along data transmission lines
- H04L25/03—Shaping networks in transmitter or receiver, e.g. adaptive shaping networks
- H04L25/03878—Line equalisers; line build-out devices
- H04L25/03885—Line equalisers; line build-out devices adaptive
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0654—Management of faults, events, alarms or notifications using network fault recovery
Abstract
The invention discloses a deadlock avoidance method for an equalizer self-adaptive state machine, which relates to the integrated circuit technology and comprises the following steps: 1) reading the current link state; 2) waiting for a predetermined time; 3) inquiring and judging: a. whether an out-of-position warning exists or not is judged, if yes, A is equal to 1, and if not, A is equal to 0; b. whether LOS warning exists or not, if yes, B is equal to 1, and otherwise, B is equal to 0; c. if a service alarm exists, if so, C is 1, otherwise, C is 0; and entering the subsequent steps according to the situation; 4) judging whether the last link state is link down; 5) restarting the state machine, setting the link state as link up, and then ending; 6) judging whether the last link state is link up; 7) and stopping the state machine, setting the link state to link down, and then ending. The invention can avoid the situation that the self-adaptive state machine of the equalizer enters a deadlock state due to the abnormal received signal and other reasons in time.
Description
Technical Field
The present invention relates to integrated circuit technology.
Background
An Equalizer (EQ) is a circuit that can adjust the amount of signal amplification of different frequency components, and compensates the attenuation of a channel for different frequencies, such as high frequency, intermediate frequency, and low frequency, by compensating the signals of different frequencies in different magnitudes.
A Continuous Time Linear Equalizer (CTLE) and a Decision Feedback Equalizer (DFE) are two circuit implementations of an Equalizer at a receiving end.
The adjustment of the equalizer parameters usually adopts two ways of fixed configuration values and adaptive configuration.
When adaptive configuration is used, the adaptive state machine may be a logic state machine that is fixed as digital circuitry or a logic state machine that is modifiable by software controlled operation.
The adaptive state machine reads the signal quality information by adjusting the register configuration of the equalizer and judges the process operation of the next adjusting direction.
When signal loss, short circuits to dc levels, and other abnormal conditions occur, the adaptive algorithm cannot achieve the desired signal quality whether it adjusts the equalizer parameters up or down, may adjust the equalizer parameters to extreme values, and may not recover.
Therefore, no matter which mode is adopted by the adaptive state machine of the equalizer in the running process, if the received signal is abnormal, the adaptive state machine can possibly enter a deadlock state.
The out-of-place alarm signal is usually triggered by the physical mechanism of the single board or the optical module. When the single board or the optical module is inserted, the physical mechanism triggers the signal, and the out-of-position alarm signal is false (or represented by logic '0'); when the single board or optical module is pulled out, the physical mechanism will trigger the signal, and the out-of-position alarm signal is true (or represented by logic "1").
Loss of signal (LOS alarm) is an alarm for determining whether a received signal is lost, and usually, a Serializer-deserializer (Serdes) circuit of an optical module or a physical layer can provide an LOS alarm signal.
The serializer circuit is part of the physical layer of the communication system.
The equalizer circuit is part of a serializer circuit.
An equalizer adaptation state machine is used in conjunction with the equalizer circuit.
The Link state refers to a state of whether a service given by a data Link layer of a communication service is on (Link up) or off (Link down).
The service alarm refers to a service alarm given by a physical coding sublayer, a data link layer and the like of the communication service. Such as a Loss of frame Alarm (Loss of frame, LOF Alarm for short), a Loss of multi-frame Alarm (LOM Alarm for short), an opposite end fault Alarm (AIS Alarm for short), etc.
The equalizer self-adaptive algorithm reads the signal quality after equalization to judge the equalization effect and then obtains the direction of the next equalization adjustment.
When signal loss, short circuits to dc levels, and other abnormal conditions occur, the adaptive algorithm cannot achieve the desired signal quality whether it adjusts the equalizer parameters up or down, may adjust the equalizer parameters to extreme values, and may not recover.
When the signal returns from new to normal, the traffic cannot return to normal because the equalizer adaptation state machine is still in a deadlock state (otherwise referred to as a hang-up state).
Disclosure of Invention
The technical problem to be solved by the invention is to provide an equalizer adaptive state machine deadlock avoiding method which can timely remove deadlock and restore normal communication service.
The technical scheme adopted by the invention for solving the technical problem is that the deadlock avoidance method of the equalizer self-adaptive state machine is characterized by comprising the following steps:
1) reading the current link state;
2) waiting for a predetermined time;
3) inquiring and judging:
a. whether an out-of-position warning exists or not is judged, if yes, A is equal to 1, and if not, A is equal to 0;
b. whether LOS warning exists or not, if yes, B is equal to 1, and otherwise, B is equal to 0;
c. if a service alarm exists, if so, C is 1, otherwise, C is 0; (ii) a
If a is 0 and B is 0 and C is 0, returning to step 2);
if a is 0 and B is 0 and C is 1, proceed to step 4);
if a is 1 and B + C is 1 by logical addition, go to step 6);
4) judging whether the last link state is link down, if so, entering a step 5); if not, returning to the step 1);
5) restarting the state machine, setting the link state as link up, and then ending;
6) judging whether the last link state is link up, if so, entering a step 7); if not, returning to the step 1);
7) and stopping the state machine, setting the link state to link down, and then ending.
Further, the step 1) is as follows: reading the current link state, and setting the count value m of the counter to be 0;
the step 2) is as follows: if M is smaller than the preset value M, entering the step 3 after waiting for a preset time, otherwise ending;
the step 3) is as follows:
3) inquiring and judging:
a. whether an out-of-position warning exists or not is judged, if yes, A is equal to 1, and if not, A is equal to 0;
b. whether LOS warning exists or not, if yes, B is equal to 1, and otherwise, B is equal to 0;
c. if a service alarm exists, if so, C is 1, otherwise, C is 0; (ii) a
If a is 0 and B is 0 and C is 1, proceed to step 4);
if a is 0 and B is 0 and C is 1, then m is added together and returned to step 2);
if a is 1 and B + C is 1 by logical addition, the process proceeds to step 6).
The logical addition operation is to follow the following rule: if there is 1 in both (either one or both of 1) then the operation result is 1, and if both of 0 then the operation result is 0.
The invention is very suitable for the serial deserializing circuit with the self-adaptive equalization function in the communication service.
The invention can avoid the problem that the equalizer self-adaptive state machine enters a deadlock state due to the received signal abnormality and the like, and the equalizer function cannot be recovered even if the received signal is recovered to be normal.
Drawings
FIG. 1 is a flow chart of the present invention.
Detailed Description
The state machine of the present invention is referred to as CTLE or DFE adaptive state machine.
As shown in fig. 1.
In the initial state 101, the counter m is set to 0, and the current link state is read.
The Link states may be Link up and Link down.
Then, the waiting state 102 is entered, and the waiting time length can be set, wherein the waiting time is 200ms for example. The purpose of entering the waiting state is to reduce the frequency of inquiry, reduce the resource waste of the system and reduce the power consumption.
Then, the inquiry state 103 is entered, and 3 kinds of alarm signals are inquired: 1. whether there is an out-of-position alarm, 2, whether there is an LOS alarm, and 3, whether there is a service alarm signal.
The service alarm signal may select different alarms according to different protocols of the communication service, such as a frame loss alarm (LOF alarm), a multi-frame loss alarm (LOM alarm), an opposite end fault alarm (AIS alarm), and the like.
Generally, different alarm signals form an alarm tree according to the logical relationship, according to the requirements of the communication service protocol.
To reduce complexity, the traffic alarm signal may typically select one of the primary alarms or the final result of the alarm tree.
When the inquiry state 103 inquires that no alarm exists in the 3 alarm signals, the counter accumulation state 104 is entered. At this time, the counter m is m +1, and the standby state 102 is entered again.
The upper limit M of the counter M depends on different protocols and applications. The query can be circularly inquired among states 102, 103 and 104 all the time; or jumping out of the inquiry state after the counter M is larger than M, and entering the evasion process to end 111.
When the inquiry state 103 inquires about 3 alarm signals with alarms, the following processing is performed according to the difference of the alarm signals (in conjunction with fig. 1):
serial number | Out-of-place alarm (A) | LOS alarm (B) | Business alarm (C) | Treatment step |
a | 0 | 0 | 0 | 104 |
b | 0 | 0 | 1 | 107 |
c | 0 | 1 | 0 | 101 |
d | 0 | 1 | 1 | 107 |
|
1 | 0 | 0 | 109 |
|
1 | 0 | 1 | 109 |
|
1 | 1 | 0 | 109 |
|
1 | 1 | 1 | 109 |
In actual operation, three cases of cde are very rare, so that they are listed as "others" in fig. 1, if they occur, they can be processed according to the above table, and if there is a state that is not listed in the above table, they are directly returned to 101.
After entering the state 105, the Link reading state 107 is entered, and it is determined whether the previous Link state is the Link down state.
If not, indicating that the current Link is normal, and re-entering the initial state 101.
If the Link down indicates that the current Link is abnormal, the restart state 108 is entered.
The restart state 108 resets the equalizer's CTLE and DFE parameters to initial values, the equalizer adaptation state machine restarts, and the Link state is set to Link up.
After the restart state 108 is completed, the current evasion procedure is ended, i.e., state 111.
After entering the state 106, the Link reading state 109 is entered, and whether the last Link state is the Link up state is determined.
If not, the Link up indicates that the current Link is abnormal, and the initial state 101 is entered from the beginning.
If the Link up is detected, it indicates that the current Link state conflicts with the alarm signal obtained from the query state 103.
Because the alarm signal queried by the query state 103, the out-of-position alarm and the LOS alarm are closer to the physical layer, i.e. the bottom layer of the communication protocol, and are more reliable, the current link is still judged to be abnormal.
The stop adaptation state 110 is entered, the CTLE and DFE adaptation of the equalizer is stopped, and the Link state register is changed to the Link down state.
After the adaptive stop state 110 is completed, the current avoidance procedure is ended, that is, the state 111.
The equalizer adaptation state machines of the present invention may comprise CTLE and DFE adaptation state machines.
The deadlock avoidance process of the self-adaptive state machine can be simultaneously applied to the CTLE and DFE self-adaptive state machines, and can also be applied to only one of the CTLE and DFE self-adaptive state machines.
The waiting time may be set to different values according to different protocol requirements of the communication service. The length of the waiting time is not limited.
All alarms specified by the communication service protocol fall within the possible scope of service alarms.
Claims (2)
1. The deadlock avoidance method of the equalizer self-adaptive state machine is characterized by comprising the following steps:
1) reading the current link state;
2) waiting for a predetermined time;
3) inquiring and judging:
a. whether an out-of-position warning exists or not is judged, if yes, A is equal to 1, and if not, A is equal to 0;
b. whether LOS warning exists or not, if yes, B is equal to 1, and otherwise, B is equal to 0;
c. if a service alarm exists, if so, C is 1, otherwise, C is 0;
if a is 0 and B is 0 and C is 0, returning to step 2);
if a is 0 and B is 0 and C is 1, proceed to step 4);
if a is 1 and B + C is 1 by logical addition, go to step 6);
4) judging whether the last link state is link down, if so, entering a step 5); if not, returning to the step 1);
5) restarting the state machine, setting the link state as link up, and then ending;
6) judging whether the last link state is link up, if so, entering a step 7); if not, returning to the step 1);
7) and stopping the state machine, setting the link state to link down, and then ending.
2. The equalizer adaptive state machine deadlock avoidance method of claim 1,
the step 1) is as follows: reading the current link state, and setting the count value m of the counter to be 0;
the step 2) is as follows: if M is smaller than the preset value M, entering the step 3 after waiting for a preset time, otherwise ending;
the step 3) is as follows:
3) inquiring and judging:
a. whether an out-of-position warning exists or not is judged, if yes, A is equal to 1, and if not, A is equal to 0;
b. whether LOS warning exists or not, if yes, B is equal to 1, and otherwise, B is equal to 0;
c. if a service alarm exists, if so, C is 1, otherwise, C is 0; (ii) a
If a is 0 and B is 0 and C is 1, proceed to step 4);
if a is 0 and B is 0 and C is 1, then m is added together and returned to step 2);
if a is 1 and B + C is 1 by logical addition, the process proceeds to step 6).
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010806334.3A CN112073342B (en) | 2020-08-12 | 2020-08-12 | Deadlock avoidance method for equalizer self-adaptive state machine |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010806334.3A CN112073342B (en) | 2020-08-12 | 2020-08-12 | Deadlock avoidance method for equalizer self-adaptive state machine |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112073342A true CN112073342A (en) | 2020-12-11 |
CN112073342B CN112073342B (en) | 2023-06-16 |
Family
ID=73661210
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010806334.3A Active CN112073342B (en) | 2020-08-12 | 2020-08-12 | Deadlock avoidance method for equalizer self-adaptive state machine |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112073342B (en) |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1599292A (en) * | 2003-09-19 | 2005-03-23 | 中兴通讯股份有限公司 | Single-board backup method and device with line protection |
CN1805398A (en) * | 2005-01-13 | 2006-07-19 | 华为技术有限公司 | Optical transmission network protection method |
US7835269B1 (en) * | 2007-05-16 | 2010-11-16 | Marvell International Ltd. | Fast link down |
CN102355367A (en) * | 2011-09-09 | 2012-02-15 | 中兴通讯股份有限公司 | Method and device for preventing deadlock of distributed link aggregation control protocol (LACP) receive machine |
CN103019871A (en) * | 2012-12-31 | 2013-04-03 | 四川迪佳通电子有限公司 | Anti-deadlock system of I2C bus and anti-deadlock method |
CN104735551A (en) * | 2013-12-24 | 2015-06-24 | 中国航空工业集团公司第六三一研究所 | ADVB fault tolerance receiving and processing method |
US20160314223A1 (en) * | 2014-03-31 | 2016-10-27 | Imagination Technologies Limited | Deadlock detection in hardware design using assertion based verification |
CN108234156A (en) * | 2016-12-13 | 2018-06-29 | 北京华为数字技术有限公司 | The method and apparatus of transmitting message |
CN108462601A (en) * | 2017-11-22 | 2018-08-28 | 上海欣诺通信技术股份有限公司 | More protection group reverse methods, device and network element device applied to optical transport network |
CN108540379A (en) * | 2018-04-19 | 2018-09-14 | 南方电网科学研究院有限责任公司 | Time synchronization disturbance switching method, time synchronism apparatus and system based on IEEE 1588V2 |
-
2020
- 2020-08-12 CN CN202010806334.3A patent/CN112073342B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1599292A (en) * | 2003-09-19 | 2005-03-23 | 中兴通讯股份有限公司 | Single-board backup method and device with line protection |
CN1805398A (en) * | 2005-01-13 | 2006-07-19 | 华为技术有限公司 | Optical transmission network protection method |
US7835269B1 (en) * | 2007-05-16 | 2010-11-16 | Marvell International Ltd. | Fast link down |
CN102355367A (en) * | 2011-09-09 | 2012-02-15 | 中兴通讯股份有限公司 | Method and device for preventing deadlock of distributed link aggregation control protocol (LACP) receive machine |
CN103019871A (en) * | 2012-12-31 | 2013-04-03 | 四川迪佳通电子有限公司 | Anti-deadlock system of I2C bus and anti-deadlock method |
CN104735551A (en) * | 2013-12-24 | 2015-06-24 | 中国航空工业集团公司第六三一研究所 | ADVB fault tolerance receiving and processing method |
US20160314223A1 (en) * | 2014-03-31 | 2016-10-27 | Imagination Technologies Limited | Deadlock detection in hardware design using assertion based verification |
CN108234156A (en) * | 2016-12-13 | 2018-06-29 | 北京华为数字技术有限公司 | The method and apparatus of transmitting message |
CN108462601A (en) * | 2017-11-22 | 2018-08-28 | 上海欣诺通信技术股份有限公司 | More protection group reverse methods, device and network element device applied to optical transport network |
CN108540379A (en) * | 2018-04-19 | 2018-09-14 | 南方电网科学研究院有限责任公司 | Time synchronization disturbance switching method, time synchronism apparatus and system based on IEEE 1588V2 |
Non-Patent Citations (2)
Title |
---|
俞沁璐等: "基于FPGA的数字直放站链路切换设计", 《微型机与应用》 * |
王彬等: "自适应均衡器及其发展趋势", 《仪器仪表学报》 * |
Also Published As
Publication number | Publication date |
---|---|
CN112073342B (en) | 2023-06-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10693905B2 (en) | Invalidity detection electronic control unit, in-vehicle network system, and communication method | |
US8653947B2 (en) | Radio frequency identification system and tag counting ending method for anti-collision thereof | |
CN111149326B (en) | Transmitting/receiving device for a bus system and method for reducing the tendency of oscillations during transitions between different bit states | |
JP5486131B2 (en) | Method and apparatus for data transmission with variable bit length | |
CN107018053A (en) | Controller LAN (CAN) device and the method for controlling CAN business | |
EP2985955B1 (en) | Controller area network (can) device and method for emulating classic can error management | |
EP3599743B1 (en) | Method and device for communicating data frames on a multi-master bus | |
EP1275217B1 (en) | Performance indicator for a high-speed communication system | |
US7023242B2 (en) | Method and circuit configuration for adapting the voltage level for the transmission of data | |
CN112073342B (en) | Deadlock avoidance method for equalizer self-adaptive state machine | |
US11601375B2 (en) | Electronic device and frame transmission method of electronic device | |
US11444802B2 (en) | Field bus system with a switchable slew rate | |
CN113454605A (en) | Operation device maintenance method and apparatus, storage medium, and program product | |
EP2940935A1 (en) | Controller area network (CAN) device and method for controlling CAN traffic | |
EP1850536B1 (en) | Method and apparatus for implementing a member deletion by the sink side of a lcas | |
DE69635336T2 (en) | Frame identification for wireless selective call receiver | |
KR101714529B1 (en) | In-vehicle network system and method for controlling the same | |
CN115460635A (en) | Fault detection method, device, equipment and computer storage medium | |
CN112732602A (en) | Electronic device, network switch and interrupt transmission and receiving method | |
US20220360349A1 (en) | Time synchronization method, time synchronization sending end and receiving end, and system | |
CA2320540C (en) | Methods and apparatus for adaptive mimic rejection | |
CN217689799U (en) | Controller and dual-rack redundancy control system | |
US11317346B2 (en) | Communication system | |
JP2019169782A (en) | Receiver unit | |
CN113556633A (en) | Service signal recovery method, device and system |
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 | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: No. 2201 and 2301, floor 22-23, building 1, No. 1800, middle section of Yizhou Avenue, high tech Zone, China (Sichuan) pilot Free Trade Zone, Chengdu, Sichuan 610041 Applicant after: Chengdu Hua Microelectronics Technology Co.,Ltd. Address before: 610000 22 / F, building 1, No. 1800, middle section of Yizhou Avenue, hi tech Zone, Chengdu City, Sichuan Province Applicant before: CHENGDU SINO MICROELECTRONICS TECHNOLOGY Co.,Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |