CN117729077B - Equalizer training system, training method, device and storage medium - Google Patents

Equalizer training system, training method, device and storage medium Download PDF

Info

Publication number
CN117729077B
CN117729077B CN202410097170.XA CN202410097170A CN117729077B CN 117729077 B CN117729077 B CN 117729077B CN 202410097170 A CN202410097170 A CN 202410097170A CN 117729077 B CN117729077 B CN 117729077B
Authority
CN
China
Prior art keywords
equalizer
terminal transceiver
training
middleware
sequence
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.)
Active
Application number
CN202410097170.XA
Other languages
Chinese (zh)
Other versions
CN117729077A (en
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 Metabrain Intelligent Technology Co Ltd
Original Assignee
Suzhou Metabrain 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 Metabrain Intelligent Technology Co Ltd filed Critical Suzhou Metabrain Intelligent Technology Co Ltd
Priority to CN202410097170.XA priority Critical patent/CN117729077B/en
Publication of CN117729077A publication Critical patent/CN117729077A/en
Application granted granted Critical
Publication of CN117729077B publication Critical patent/CN117729077B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Cable Transmission Systems, Equalization Of Radio And Reduction Of Echo (AREA)

Abstract

The application relates to the technical field of communication and discloses an equalizer training system, an equalizer training method, equalizer training equipment and a storage medium. The system comprises: the system comprises a first terminal transceiver, a second terminal transceiver and a communication link arranged between the first terminal transceiver and the second terminal transceiver, wherein at least one middleware is arranged in the communication link; the first terminal transceiver and the second terminal transceiver are respectively used as a master terminal transceiver and a slave terminal transceiver; the master terminal transceiver transmits a training pattern to the slave terminal transceiver; detecting error rate from a terminal transceiver and judging whether to adjust equalizer parameters of middleware; the master terminal transceiver or the slave terminal transceiver generates an equalizer adjustment sequence and sends the equalizer adjustment sequence to any middleware for equalizer parameter adjustment. The equalizer training system can train the linear equalizer in the communication link, so that the linear equalizer can be self-adaptively adjusted, and the transmission performance of the communication link is improved.

Description

Equalizer training system, training method, device and storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to an equalizer training system, an equalizer training method, an equalizer training device, and a storage medium.
Background
The high-speed digital bus is an important component of the current computer system and computer network, and in some application scenarios, the communication distance of the high-speed digital bus interconnected between devices is long, the signal loss in the communication link is excessive, the error rate of the receiving end is increased, and the accuracy of the transmitted data is reduced. To compensate for the loss of a communication link, equalization techniques, i.e., using a communication device with an equalizer, are typically used in the link. The equalizer performs equalization processing on the received signal by digital signal processing techniques to recover its original amplitude and phase. In practice, a communication link typically contains multiple equalizers. For example, in 400G/800G ethernet communication links, the MAC chip, the PHY chip, and the optical module, which are responsible for port control, all include equalizers. Whether the communication link can normally communicate or not is reasonably determined by the equalization parameter configuration of the equalizer, and the expected error rate is achieved. To improve the performance of the equalizer, the equalizer is usually trained during use, i.e. the error rate of the transmitted data in the link is standardized by adjusting parameters (including amplitude and frequency gain) of the equalizer. The equalizer is divided into two types, a linear equalizer and a nonlinear equalizer. The linear equalizer does not judge the level symbol of the digital signal, is equivalent to a filter circuit, and can attenuate or amplify signals in different frequency bands; the nonlinear equalizer needs to make decisions on the level symbols of the digital signal, and the decision results in the receiver are fed back for parameter adjustment of the equalizer.
Most of the current equalizer training is mainly adaptive training, and has good adaptive capability for a nonlinear equalizer in a chip with a coding layer. But current adaptive training approaches fail to adjust the linear equalizer in the link. For linear equalizers (e.g., a driver chip, an equalizer in an optical module, etc.), since they do not perform quantization identification on digital signals, it is difficult to evaluate whether their equalization compensation is appropriate for the terminal receiving the signal, i.e., the linear equalizer is generally not adaptive. Thus, how to adaptively adjust a linear equalizer in a communication link is a problem to be solved.
Disclosure of Invention
In view of the foregoing, the present application is directed to an equalizer training system, training method, apparatus, and storage medium that enable adaptive adjustment of a linear equalizer in a communication link.
In order to achieve the above purpose, the technical scheme of the application is as follows:
A first aspect of an embodiment of the present application provides an equalizer training system, including: a first terminal transceiver, a second terminal transceiver, and a communication link disposed between the first terminal transceiver and the second terminal transceiver, the communication link having at least one middleware disposed therein; the middleware is a communication transceiver with an equalizer and an accessory microcontroller; the equalizer comprises at least a linear equalizer;
the first terminal transceiver and the second terminal transceiver are respectively used as a master terminal transceiver and a slave terminal transceiver;
The master terminal transceiver configured to transmit a training pattern to the slave terminal transceiver;
the slave terminal transceiver is configured to detect the error rate according to the received training code pattern and judge whether to perform equalizer parameter adjustment on the middleware;
the master terminal transceiver, or the slave terminal transceiver, is further configured to generate an equalizer adjustment sequence and send to either middleware;
The middleware is configured to adjust equalizer parameters of the middleware according to the received equalizer adjustment sequence; the equalizer parameters include: amplitude and frequency gain.
Optionally, the first terminal transceiver and the second terminal transceiver are respectively disposed in two communication devices;
Or, the first terminal transceiver and the second terminal transceiver are disposed in one communication device.
Optionally, the system further comprises:
A controller configured to control information interaction between the first terminal transceiver and the second terminal transceiver; the information includes a training pattern.
Optionally, the linear equalizer is a linear direct drive optical module.
Optionally, the equalizer further includes: a nonlinear equalizer.
According to a second aspect of the embodiment of the present application, there is provided a training method of an equalizer, which is applied to a master terminal transceiver in the equalizer training system provided in the first aspect of the embodiment of the present application, the method includes:
transmitting a training pattern to the slave terminal transceiver;
transmitting an equalizer adjustment sequence to in-band management middleware in the communication link to adjust equalizer parameters of the in-band management middleware under the condition that the equalizer adjustment requirement sequence transmitted from the terminal transceiver is received;
And stopping transmitting the training code pattern under the condition that the training success sequence transmitted by the slave terminal transceiver is received.
Optionally, adjusting equalizer parameters of the in-band management middleware in the communication link includes:
Determining a compensation amount of the equalizer parameter; the compensation amount includes: amplitude compensation amount and frequency gain compensation amount;
acquiring equalizer parameter adjustable ranges of all middleware in the communication link;
and distributing the compensation quantity to at least one in-band management middleware according to the equalizer parameter adjustable range of the middleware and the sequence from the near to far of the middleware to the slave terminal transceiver.
Optionally, adjusting equalizer parameters of the in-band management middleware in the communication link includes:
Identifying the equalization adjustment demand sequence sent by the slave terminal transceiver, and determining the compensation quantity of equalizer parameters; the compensation amount includes: amplitude compensation amount and frequency gain compensation amount;
the compensation amounts are distributed equally to all in-band management middleware.
Optionally, after transmitting the training pattern to the slave terminal transceiver, the method further comprises:
The target pattern is transmitted to the slave terminal transceiver upon receiving a training code sequence populated with the number of the target pattern.
Optionally, in the case of receiving the training success sequence sent by the slave terminal transceiver, the method further includes:
the identity of the terminal transceiver is converted into a slave terminal transceiver, and the terminal transceiver of the opposite terminal is used as a master terminal transceiver;
and receiving a training code pattern sent by a terminal transceiver of the opposite terminal, and detecting the error rate.
Optionally, the method further comprises:
generating a random seed locally and transmitting a master-slave negotiation sequence filled with the random seed to a terminal transceiver of the opposite terminal before transmitting or receiving the training pattern;
Receiving and identifying a master-slave negotiation sequence filled with random seeds and sent by a terminal transceiver of an opposite terminal, and comparing the sizes of the locally generated random seeds with the random seeds of the opposite terminal;
under the condition that the local random seed is larger, determining the self as a master terminal transceiver, and sending a master confirmation sequence to the slave terminal transceiver;
and under the condition of receiving a slave confirmation sequence returned by the slave terminal transceiver, judging that the master-slave negotiation is successful.
Optionally, the method further comprises:
issuing a device identification sequence, wherein the device identification sequence is used for identifying all middleware in the communication link;
assigning device sequence numbers to all middleware identified in the communication link;
adjusting equalizer parameters of the in-band management middleware, comprising:
the equalizer parameters of the middleware specifying the device serial number are adjusted.
Optionally, the method further comprises:
under the condition that the equipment response sequence returned from the terminal transceiver is received, judging that equipment identification is completed, and stopping issuing an equipment identification sequence;
and under the condition that the number of times of repeatedly issuing the current equipment identification sequence reaches a set threshold value, judging that the equipment identification fails.
According to a third aspect of the embodiment of the present application, there is provided a training method of an equalizer, which is applied to a slave terminal transceiver in the equalizer training system provided in the first aspect of the embodiment of the present application, the method includes:
receiving a training code pattern sent by a main terminal transceiver, detecting the error rate, and judging whether the current error rate is lower than a target error rate or not;
If the current error rate is not lower than the target error rate and the self-affiliated out-of-band management middleware does not exist in the communication link, an equalization adjustment demand sequence is sent to the main terminal transceiver so as to request the main terminal transceiver to adjust equalizer parameters of the in-band management middleware;
If the current error rate is not lower than the target error rate, if the communication link has the self-affiliated out-of-band management middleware, an equalizer adjustment sequence is sent to the self-affiliated out-of-band management middleware in the communication link, and equalizer parameters of the self-affiliated out-of-band management middleware are adjusted;
And under the condition that the current error rate is lower than the target error rate, transmitting a training success sequence to the main terminal transceiver.
Optionally, adjusting equalizer parameters of the self-affiliated out-of-band management middleware in the communication link includes:
Determining a compensation amount of the equalizer parameter; the compensation amount includes: amplitude compensation amount and frequency gain compensation amount;
acquiring equalizer parameter adjustable ranges of all middleware in the communication link;
And distributing the compensation quantity to at least one out-of-band management middleware according to the sequence from the near to the far of the middleware to the self according to the equalizer parameter adjustable range of the middleware.
Optionally, adjusting equalizer parameters of the self-affiliated out-of-band management middleware in the communication link includes:
Determining a compensation amount of the equalizer parameter; the compensation amount includes: amplitude compensation amount and frequency gain compensation amount;
and equally distributing the compensation quantity to all the out-of-band management middleware attached to the self.
Optionally, receiving a training code pattern sent by the transceiver of the main terminal, and performing error rate detection, including: identifying the training code pattern;
Detecting the error rate under the condition that the training code pattern is identified;
The method further comprises the steps of:
Transmitting a training code sequence filled with the number of the target code pattern to the master terminal transceiver if the training code pattern cannot be recognized; the target code pattern is a training code pattern which can be identified by the target code pattern;
and receiving the target code pattern retransmitted by the main terminal transceiver, and detecting the error rate.
Optionally, the method further comprises:
judging whether to switch the code pattern to continue training under the condition that the current error rate is lower than the target error rate;
if the switching code pattern is judged to continue training, a training code sequence filled with the number of the new target code pattern is sent to the main terminal transceiver;
And receiving the new target code pattern retransmitted by the main terminal transceiver, and detecting the error rate.
Optionally, after sending the training success sequence to the master terminal transceiver, the method further includes:
the identity of the terminal transceiver is converted into a master terminal transceiver, and the terminal transceiver of the opposite terminal is used as a slave terminal transceiver;
and transmitting the training pattern to a terminal transceiver of the opposite terminal.
Optionally, the method further comprises:
generating a random seed locally and transmitting a master-slave negotiation sequence filled with the random seed to a terminal transceiver of the opposite terminal before transmitting or receiving the training pattern;
Receiving and identifying a master-slave negotiation sequence filled with random seeds and sent by a terminal transceiver of an opposite terminal, and comparing the sizes of the locally generated random seeds with the random seeds of the opposite terminal;
in the case that the local random seed is smaller, determining itself as a slave terminal transceiver;
and returning a slave acknowledgement sequence to the master terminal transceiver in the case of receiving the master acknowledgement sequence transmitted by the master terminal transceiver.
According to a fourth aspect of the embodiment of the present application, there is provided a training method of an equalizer, which is applied to middleware in the equalizer training system provided in the first aspect of the embodiment of the present application, the method includes:
Determining the own equipment serial number according to the equipment identification sequence sent by the main terminal transceiver;
Receiving an equalizer adjustment sequence sent by the master terminal transceiver or the slave terminal transceiver, and adjusting equalizer parameters of the equalizer adjustment sequence; and the equalizer adjusting sequence is filled with the equipment serial number of the middleware and the compensation quantity distributed to the middleware.
According to a fifth aspect of embodiments of the present application, there is provided a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the method according to the second aspect, or the third aspect, or the fourth aspect of embodiments of the present application.
According to a sixth aspect of embodiments of the present application, there is provided an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps in the method according to the second aspect, or the third aspect, or the fourth aspect of embodiments of the present application when the computer program is executed.
By adopting the equalizer training method provided by the application, the master terminal transceiver is controlled to send the training code pattern to the slave terminal transceiver, and the slave terminal transceiver is used for detecting the error rate, so that the equalizer parameters of the middleware with the linear equalizer in the communication link are adaptively adjusted under the condition that the current error rate does not reach the standard (not lower than the target error rate). The equalization adjustment sequence is sent to the middleware to be adjusted at the time of adjustment, and the middleware is configured to adjust equalizer parameters (including amplitude and frequency gain) of the middleware according to the received equalization adjustment sequence. By adopting the equalizer training method, the linear equalizer in the communication link can be adaptively adjusted, the transmission performance of the communication link is improved, and the communication link is in the optimal working state.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments of the present application will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a block diagram of an equalizer training system according to an embodiment of the present application;
FIG. 2 is a schematic diagram of middleware of an equalizer training system according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a terminal transceiver in an equalizer training system according to an embodiment of the present application;
FIG. 4 is a diagram of an equalizer training system architecture in accordance with one embodiment of the present application;
FIG. 5 is a schematic diagram of an equalizer training process in an embodiment of the present application;
fig. 6 is a diagram of a training system architecture based on an ethernet link in an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present application. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
In various embodiments of the present application, it should be understood that the size of the device serial numbers of the processes described below does not mean the order of execution, and the order of execution of the processes should be determined by their functions and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the application. Rather, they are merely examples of apparatus and methods consistent with aspects of the application as detailed in the accompanying claims.
It should be noted that, without conflict, the embodiments of the present application and features of the embodiments may be combined with each other.
The equalizer training system and the equalizer training method provided by the application can be applied to high-speed digital buses such as Ethernet, IB, CXL and the like. The high-speed digital signals in the link are transmitted or received by the high-speed digital bus transceiver, and the signals are transmitted through the link of copper medium. Alternatively, the signal transmission may also be transmitted via an optical link via an optical-to-electrical conversion device. The link contains one or more communication devices (middleware) with equalizers for compensating for attenuation in the link.
Middleware is classified into two types, one is an in-band management middleware itself with a manchester codec and a microcontroller, and the other is an out-of-band management middleware managed by a microcontroller in an affiliated device through an MDIO (MANAGEMENT DATA Input/Output) bus or an I2C (Inter-INTEGRATED CIRCUIT) bus without the manchester codec. In the communication link, the main terminal transceiver can carry out in-band management on all middleware in the link through a digital bus, and can also carry out management on the middleware in the equipment to which the main terminal transceiver belongs through an out-of-band management bus. The management sequences in this embodiment are all manchester codes, and the transmit and receive logic is controlled by a program in the microcontroller.
Fig. 2 is a schematic diagram of middleware of an equalizer training system according to an embodiment of the present application. As shown in fig. 2, where (a) is a schematic diagram of the out-of-band management middleware and (b) is a schematic diagram of the in-band management middleware. The out-of-band management middleware is provided with a microcontroller, an equalizer and a transceiver; the in-band management middleware is provided with a microcontroller, a Manchester encoded transmitter 100 and Manchester encoded receiver 101, an equalizer and a transceiver. The in-band and out-of-band management middleware are full duplex, wherein the downstream direction is: in the communication link where the data is located, the data received from the master terminal transceiver is in the direction of transmitting from the slave terminal transceiver; the upstream direction is: in the communication link where it is located, receives the direction in which data from the slave terminal transceiver is transmitted to the master terminal transceiver.
Fig. 3 is a schematic diagram of a terminal transceiver in an equalizer training system according to an embodiment of the present application. As shown in fig. 3, the end transceiver has a built-in microcontroller, a nonlinear equalizer, a transmitter, a receiver, a manchester encoded transmitter 100, and a manchester encoded receiver 101. The terminal transceiver can generate and send a corresponding management sequence to the terminal transceiver of the opposite terminal according to the training program loaded on the terminal transceiver, and can perform equalizer parameter adjustment on the middleware appointed in the link.
The application will be described in detail below with reference to the drawings in connection with embodiments.
Fig. 1 is a block diagram of an equalizer training system according to an embodiment of the present application. As shown in fig. 1, the equalizer training system includes: a first terminal transceiver, a second terminal transceiver, and a communication link disposed between the first terminal transceiver and the second terminal transceiver, the communication link having at least one middleware disposed therein; the middleware is a communication transceiver with an equalizer and an accessory microcontroller; the equalizer comprises at least a linear equalizer;
the first terminal transceiver and the second terminal transceiver are respectively used as a master terminal transceiver and a slave terminal transceiver;
The master terminal transceiver configured to transmit a training pattern to the slave terminal transceiver;
the slave terminal transceiver is configured to detect the error rate according to the received training code pattern and judge whether to perform equalizer parameter adjustment on the middleware;
the master terminal transceiver, or the slave terminal transceiver, is further configured to generate an equalizer adjustment sequence and send to either middleware;
The middleware is configured to adjust equalizer parameters of the middleware according to the received equalizer adjustment sequence; the equalizer parameters include: amplitude and frequency gain.
In this embodiment, the equalizer training system includes a first terminal transceiver and a second terminal transceiver, where at least one communication transceiver with an equalizer (i.e., middleware) is disposed in a communication link between the first terminal transceiver and the second terminal transceiver, and the middleware has a linear equalizer and a built-in microcontroller.
In performing equalizer training, two terminal transceivers are loaded with associated training programs, one of which acts as a master terminal transceiver and the other as a slave terminal transceiver. The master terminal transceiver transmits the training code pattern to the slave terminal transceiver, and the slave terminal transceiver detects the error rate of the received training code pattern and judges whether the error rate reaches the standard. And under the condition that the current error rate is not less than the target error rate (namely, the error rate does not reach the standard), the slave terminal automatically determines the compensation quantity of the equalizer to be adjusted, and the master terminal transceiver or the slave terminal transceiver transmits an equalizer adjustment sequence to the middleware. Related training programs are loaded in a microcontroller of the middleware in advance, a linear equalizer with a simple logic circuit structure is configured, and when the middleware receives an equalizer adjusting sequence, the equalizer parameters of the middleware can be adjusted according to the equalizing adjusting requirement in the sequence.
The equalizer training system provided by the application can be used for training the linear equalizer in the communication link, so that the linear equalizer in the link can be self-adaptively adjusted, and the transmission performance of the communication link is improved. In the process of training the equalizer, the training logic circuit configured for the linear equalizer has a simple structure, does not need to increase a FIFO (FIRST IN FIRST Out ) buffer circuit, saves the training cost and improves the training efficiency.
As one embodiment of the present application, the first terminal transceiver and the second terminal transceiver are disposed in two communication devices, respectively;
Or, the first terminal transceiver and the second terminal transceiver are disposed in one communication device.
In this embodiment, the equalizer training system may be applied to a scenario where two devices are interconnected, or a scenario where a single device is interconnected. Communication devices typically include an out-of-band management bus and a digital bus. The terminal transceiver can carry out in-band management on all middleware in the link through the digital bus; the terminal transceiver is also capable of out-of-band management over an out-of-band management bus for middleware that is in the same device as the terminal transceiver.
In this embodiment, in a scenario where two devices are interconnected, the first terminal transceiver and the second terminal transceiver are deployed in two devices respectively, and the terminal transceiver can perform training of a linear equalizer in a link through two modes of out-of-band management and in-band management. In the application scenario of single device interconnection, all equalizer in the link are in the device, so the terminal transceiver in the device can directly adjust the linear equalizer in the link through the out-of-band management bus.
Optionally, in the absence of out-of-band management middleware, the end transceiver adjusts the linear equalizer of the middleware in an in-band management manner. The equalizer training system in the embodiment has strong universality, is wide in application range, can adapt to different communication scenes of dual-equipment interconnection and single-equipment internal interconnection, and is applicable to linear equalizers of out-of-band management middleware and in-band management middleware.
Optionally, the terminal transceiver in the present application has a DFE (Decision Feedback Equalizer ) or FFE (Feed Forward Equalization, feedforward equalizer) inside, and the master terminal transceiver and the slave terminal transceiver can perform self-adaptive training of the equalizer and the receiving end equalizer of the opposite party through related technologies.
As an embodiment of the present application, the system further includes a controller configured to control information interaction between the first terminal transceiver and the second terminal transceiver; the information includes a training pattern.
In this embodiment, the equalizer training system further includes a controller, and the controller is used to implement program loading and initialization of the terminal transceiver and the middleware, and control the terminal transceiver to perform adaptive training of the linear equalizer in the link. Alternatively, the controller may be a switch device or a server terminal CPU (Central Processing Unit ).
As one embodiment of the present application, the linear equalizer is a linear direct drive optical module.
In this embodiment, the Linear equalizer provided in the equalizer training system may be LPO (Linear-drive Pluggable Optics), which linearly drives the pluggable optical module. As linear optical module technology matures, LPO optical modules are commonly used in ethernet links, such as 400G/800G ethernet links. The LPO optical module employs a more advanced linear driving technique for transmission via a linear analog signal. Compared with the traditional DSP optical module (the transmission is carried out by adopting a digital signal processing algorithm through a nonlinear equalizer), more power consumption can be saved.
The equalizer training system provided by the application can use different middleware with linear equalizer, can be applied to an Ethernet link using an LPO optical module, and supports the self-adaptive training of the LPO optical module in the link so as to ensure that the communication link achieves the optimal transmission performance.
As an embodiment of the present application, the equalizer further includes: a nonlinear equalizer.
In this embodiment, the middleware in the equalizer training system has a nonlinear equalizer in addition to a linear equalizer. In the equalizer training process, a master terminal transceiver or a slave terminal transceiver in the system adjusts parameters of the linear equalizer carried by the middleware according to the current compensation quantity of the equalizer.
In this embodiment, the middleware is not limited to having only a linear equalizer. For example, the middleware may be a driver chip, which functions primarily as a signal repeater. The driver chip is provided with a linear equalizer and a nonlinear equalizer. The linear equalizer is mainly used for eliminating channel loss, fu Ji interference and expanding channel range, and the nonlinear equalizer is mainly used for compensating amplitude fading when multipath fading is serious. In this embodiment, the equalizer training system adjusts the linear equalizer that such middleware carries during the training process. For the nonlinear equalizer carried by the middleware, the related adaptive training mode can be selected for training.
Fig. 4 is a diagram of an equalizer training system architecture in accordance with one embodiment of the present application. As shown in fig. 4, device a and device B in the system communicate data via an optical link. The inside of the equipment A and the equipment B are high-speed digital links, wherein the controllers are used for controlling the terminal transceivers in the respective equipment to execute equalizer training, 4 middleware are deployed between the terminal transceivers of the equipment A and the equipment B, and the middleware are respectively: middleware with linear equalizer in device a, optical module in device a, and optical module in device B, middleware with linear equalizer in device B. In this embodiment, the middleware with the "linear equalizer" may be a driver device, and the optical module may be an LPO optical module. The end transceiver may adjust equalizer parameters of the optical module via the out-of-band management bus, and for middleware that cannot be adjusted via the out-of-band management bus (e.g., middleware with a linear equalizer of fig. 4), the end transceiver performs in-band management and equalizer parameter adjustment via the data bus.
Fig. 6 is a diagram of a training system architecture based on an ethernet link in an embodiment of the present application. In one embodiment, as shown in fig. 6, the device a and the device B are a switch device and a server respectively, a terminal transceiver in the system is a switch chip and a network card chip, a controller in the system refers to a CPU in the switch device or a CPU of a server to which the network card belongs, the system adopts a high-speed serial computer expansion (PERIPHERAL COMPONENT INTERCONNECT EXPRESS, PCIe) bus as a management bus, and the CPU controls the terminal transceiver through the PCIe bus. In this embodiment, the middleware is a switch, a driver chip inside a server, and a linear direct drive optical module (LPO) in a communication link. The exchange chip and the network card chip manage middleware (a driver chip and an LPO in fig. 6) which can be managed out of band in a link through an I2C bus, and manage in band through a data bus. The equalizer training method can be executed on the CPU of the server and the exchanger, the driver chip and the optical module usually comprise built-in microcontrollers, and the functions of the middleware are realized by adding related training programs in the built-in microcontrollers of the middleware. Alternatively, the addition of a differential Manchester codec within the out-of-band management middleware may implement the functionality of the in-band management middleware.
Based on the same inventive concept, an embodiment of the present application provides an equalizer training method, which is applied to a master terminal transceiver in the equalizer training system described in the foregoing embodiment. The method comprises the following steps:
transmitting a training pattern to the slave terminal transceiver;
transmitting an equalizer adjustment sequence to in-band management middleware in the communication link to adjust equalizer parameters of the in-band management middleware under the condition that the equalizer adjustment requirement sequence transmitted from the terminal transceiver is received;
And stopping transmitting the training code pattern under the condition that the training success sequence transmitted by the slave terminal transceiver is received.
Based on the same inventive concept, an embodiment of the present application provides an equalizer training method, which is applied to the slave terminal transceiver in the equalizer training system described in the foregoing embodiment. The method comprises the following steps:
receiving a training code pattern sent by a main terminal transceiver, detecting the error rate, and judging whether the current error rate is lower than a target error rate or not;
If the current error rate is not lower than the target error rate and the self-affiliated out-of-band management middleware does not exist in the communication link, an equalization adjustment demand sequence is sent to the main terminal transceiver so as to request the main terminal transceiver to adjust equalizer parameters of the in-band management middleware;
If the current error rate is not lower than the target error rate, if the communication link has the self-affiliated out-of-band management middleware, an equalizer adjustment sequence is sent to the self-affiliated out-of-band management middleware in the communication link, and equalizer parameters of the self-affiliated out-of-band management middleware are adjusted;
And under the condition that the current error rate is lower than the target error rate, transmitting a training success sequence to the main terminal transceiver.
Based on the same inventive concept, an embodiment of the present application provides an equalizer training method, which is applied to the middleware in the equalizer training system described in the foregoing embodiment. The method comprises the following steps:
Determining the own equipment serial number according to the equipment identification sequence sent by the main terminal transceiver;
Receiving an equalizer adjustment sequence sent by the master terminal transceiver or the slave terminal transceiver, and adjusting equalizer parameters of the equalizer adjustment sequence; and the equalizer adjusting sequence is filled with the equipment serial number of the middleware and the compensation quantity distributed to the middleware.
In this embodiment, the master terminal transceiver transmits a training pattern to the slave terminal transceiver, and the slave terminal transceiver detects the error rate, and if the current error rate reaches the standard, returns a training success sequence to the master terminal. And when the master terminal transceiver receives the training success sequence sent by the slave terminal transceiver, judging that the equalizer training is successful, and stopping sending the training code pattern to the slave terminal transceiver. And if the current error rate does not reach the standard, the master terminal transceiver or the slave terminal transceiver adjusts equalizer parameters of middleware in the link. When the equalizer is adjusted, an equalizer adjusting sequence is sent to the middleware, and when the middleware receives the sequence, the self equalizer parameters are adjusted according to the compensation amount in the sequence.
In performing equalizer training, the end transceiver uses differential Manchester codes to encode to generate management sequences of different functions for communication with the peer and middleware, as shown in Table 1 below.
TABLE 1
As shown in table 1, all management sequences are 3 bytes in length, with the high 4 bits of Byte0 being the class, for distinguishing sequence uses, and the low 4 bits being the target transceiver number. Wherein a target transceiver of 0000 indicates that the management sequence is a broadcast code, i.e. for the master terminal to communicate with the slave terminal. When transmitting the broadcast code, all middleware in the link transparently transmits the broadcast code and does not respond to the middleware. In table 1, the equalization adjustment demand sequence is filled with the current equalization adjustment demand, and the compensation amount to be allocated to the equalizer can be determined according to the equalization adjustment demand. In the equalizer adjustment sequence, an equalization value configuration is filled, and the equalization value configuration includes a specific value of the compensation amount allocated to the middleware of the designated device serial number DN. The padding "0000 0000b" in Byte of training success sequence indicates: the training is successful before the master terminal transceiver and the slave terminal transceiver exchange identities; the pad "0000 1111b" indicates: the training is successful after the identity exchange of the master terminal transceiver and the slave terminal transceiver.
In one embodiment, there is no auxiliary out-of-band management middleware in the link from the terminal. The slave terminal transceiver transmits to the master terminal transceiver a sequence of equalization adjustment requirements that is filled with equalization adjustment requirements based on which the master terminal can determine the amount of compensation that needs to be allocated to the equalizer. The main terminal transceiver adjusts equalizer parameters of the in-band management middleware in the link through the digital bus, and after the equalizer parameters are adjusted, if the slave terminal transceiver detects that the error rate reaches the standard, a training completion sequence is sent to the main terminal transceiver.
In one embodiment, there is an ancillary out-of-band management middleware in the link from the end transceiver. The equalizer of the self-affiliated out-of-band management middleware is adjusted by the slave terminal transceiver.
In one embodiment, the slave terminal transceiver preferably adjusts its own affiliated out-of-band management middleware in the case where the slave terminal transceiver's affiliated out-of-band management middleware exists in the link at the same time. If the equalizer parameters of the middleware with the management outside the band, which is affiliated to the slave terminal transceiver, are adjusted, and the error rate requirement cannot be met, the equalizer parameters of the middleware with the management outside the band are further adjusted through the master terminal transceiver until the master terminal transceiver receives a training success sequence sent by the slave terminal transceiver, so that equalizer training is completed.
As one embodiment of the present application, a master terminal transceiver adjusts equalizer parameters of in-band management middleware in a communication link, comprising:
Determining a compensation amount of the equalizer parameter; the compensation amount includes: amplitude compensation amount and frequency gain compensation amount;
acquiring equalizer parameter adjustable ranges of all middleware in the communication link;
and distributing the compensation quantity to at least one in-band management middleware according to the equalizer parameter adjustable range of the middleware and the sequence from the near to far of the middleware to the slave terminal transceiver.
As one embodiment of the present application, adjusting equalizer parameters of self-affiliated out-of-band management middleware in the communication link from a terminal transceiver includes:
Determining a compensation amount of the equalizer parameter; the compensation amount includes: amplitude compensation amount and frequency gain compensation amount;
acquiring equalizer parameter adjustable ranges of all middleware in the communication link;
And distributing the compensation quantity to at least one out-of-band management middleware according to the sequence from the near to the far of the middleware to the self according to the equalizer parameter adjustable range of the middleware.
In this embodiment, when the equalizer parameters are adjusted, the slave terminal transceiver and the master terminal transceiver are adjusted according to the near-far principle. Specifically, the method includes that the slave terminal transceiver determines the compensation amount required to be added to the linear equalizer in the link according to the current error rate, and the method includes the following steps: amplitude compensation amount and frequency gain compensation amount.
The application proposes a normalized equalizer parametric model, wherein the parameters comprise the following variables: amplitude control, a first frequency gain, and a second frequency gain. Optionally, the parameters of the equalizer further comprise a third frequency gain. In practice, the operator may adaptively configure different amounts of adjustable frequency gain according to different equalizers. The range of the amplitude control is 0-255, and no unit exists. The value range of the gain is-31 to 31, and the unit is dB. The specific frequency value of each frequency and how many frequency gains are required to be set can be predefined before the equalizer training starts according to the actual application requirements. In practical applications, the first frequency of the equalizer parametric model in the system may be set to 20GHz and the second frequency may be set to 28GHz.
After the compensation quantity of the equalizer parameters is determined, the slave terminal transceiver adjusts the self-attached out-of-band management middleware according to the principle of approaching and separating from the slave terminal transceiver. The master terminal transceiver adjusts the in-band management middleware through the digital bus according to the principle of being close to the slave terminal transceiver and then far from the slave terminal transceiver.
In one embodiment, when the slave terminal transceiver adjusts equalizer parameters of its own affiliated out-of-band management middleware, or the master terminal transceiver adjusts equalizer parameters of the in-band management middleware in the link, the following manner may be adopted: all adjustment requirements are attached to the equalizer from near to far. All adjustment requirements are first appended to the linear equalizer of the closest middleware to the end transceiver, and if the parameter tuning range of the linear equalizer cannot meet the current adjustment requirements, the remaining compensation amount is allocated to the linear equalizer of the second closest middleware to the end transceiver, and so on.
For example, when it is necessary to add a compensation amount of-10 dB to the equalizer in the link in the vicinity of the 10GHz frequency point, the compensation amount is allocated from the terminal transceiver to the out-of-band management middleware nearest to itself, and if the equalizer parameters in the out-of-band management middleware can be adjusted by only-8 dB, that is, the compensation amount of-10 dB cannot be satisfied, the remaining-2 dB is allocated to the middleware next closest to itself.
For example, in the case where it is necessary to add a compensation amount of-10 dB to the equalizer in the link in the vicinity of the 10GHz frequency point, the master terminal transceiver allocates the compensation amount to the in-band management middleware nearest to the slave terminal transceiver, and if the equalizer parameter in the in-band management middleware can be adjusted by only-8 dB, that is, the compensation amount of-10 dB cannot be satisfied, the remaining-2 dB is allocated to the middleware second nearest to the slave terminal transceiver.
As one embodiment of the present application, a master terminal transceiver adjusts equalizer parameters of in-band management middleware in a communication link, comprising:
Identifying the equalization adjustment demand sequence sent by the slave terminal transceiver, and determining the compensation quantity of equalizer parameters; the compensation amount includes: amplitude compensation amount and frequency gain compensation amount;
the compensation amounts are distributed equally to all in-band management middleware.
As one embodiment of the present application, adjusting equalizer parameters of self-affiliated out-of-band management middleware in the communication link from a terminal transceiver includes:
Determining a compensation amount of the equalizer parameter; the compensation amount includes: amplitude compensation amount and frequency gain compensation amount;
and equally distributing the compensation quantity to all the out-of-band management middleware attached to the self.
In one embodiment, when the slave terminal transceiver adjusts equalizer parameters of its own affiliated out-of-band management middleware, or the master terminal transceiver adjusts equalizer parameters of the in-band management middleware in the link, the following manner may be adopted: the balancing adjustment requirement is evenly distributed over all middleware in the link.
For example, in the case where the number of the sub-terminal's own sub-band control middleware is 2 and the compensation amount needs to be added to the equalizer in the link around the 10GHz frequency point to be-10 dB, after the sub-terminal transceiver distributes the compensation amount on average, each out-band management middleware is distributed to be-5 dB.
For example, in the case where the number of in-band control middleware in the link is 5 and the compensation amount needs to be added to the equalizer in the link around the frequency point of 10GHz to be-10 dB, after the master terminal transceiver distributes the compensation amount on average, each in-band control middleware is distributed with the compensation amount of-2 dB.
In this embodiment, the terminal transceiver uniformly distributes the compensation amount to be added to all the equalizers in the link according to the mode of managing the equalizers by itself. Because the uniform distribution mode can ensure that the parameter adjustable ranges of all middleware in the link can meet the distributed compensation quantity under most conditions, the compensation quantity distribution mode in the embodiment can save the relevant steps for judging whether the parameters of the equalizer meet the current compensation quantity, and further improve the training efficiency of the equalizer in the link.
As an embodiment of the present application, the master terminal transceiver further includes, after transmitting the training pattern to the slave terminal transceiver:
The target pattern is transmitted to the slave terminal transceiver upon receiving a training code sequence populated with the number of the target pattern.
As one embodiment of the present application, the slave terminal transceiver receives a training pattern transmitted from the master terminal transceiver and performs bit error rate detection, and includes: identifying the training code pattern;
Detecting the error rate under the condition that the training code pattern is identified;
The method further comprises the steps of:
Transmitting a training code sequence filled with the number of the target code pattern to the master terminal transceiver if the training code pattern cannot be recognized; the target code pattern is a training code pattern which can be identified by the target code pattern;
and receiving the target code pattern retransmitted by the main terminal transceiver, and detecting the error rate.
As an embodiment of the present application, the method applied to the slave terminal transceiver further includes:
judging whether to switch the code pattern to continue training under the condition that the current error rate is lower than the target error rate;
if the switching code pattern is judged to continue training, a training code sequence filled with the number of the new target code pattern is sent to the main terminal transceiver;
And receiving the new target code pattern retransmitted by the main terminal transceiver, and detecting the error rate.
In one embodiment, the slave terminal identifies the received training pattern. In this embodiment, the training pattern for testing needs to be preconfigured before the equalizer is trained. In this embodiment, the training patterns may be binary coded test sequences such as PRBS31, PRBS9, PRBS13, SSPRQ, and the like. Table 2 below shows the partial training patterns and corresponding numbers that may be used in performing equalizer training. In this embodiment, when the master terminal transceiver or the slave terminal transceiver transmits the training code sequence to the opposite terminal, the code pattern number corresponding to the training code pattern is filled in byte1 of the training code sequence, and byte2 of the training code sequence is set to 0.
TABLE 2
In this embodiment, the equalizer training process is as follows:
(1) The master terminal transceiver transmits a training code sequence SEQTR to the slave terminal transceiver, which then continues to transmit the default pattern, with the training code sequence SEQTR populated with the number of the default pattern. The default code pattern is a training code pattern that is determined by the terminal transceiver from among the training code patterns to be transmitted preferentially when the terminal transceiver starts the training process in this embodiment. For example, the PRBS31 is set as a default pattern in the present embodiment;
(2) After receiving the training code sequence SEQTR from the terminal transceiver, switching the own receiver to a default rate to start to attempt to receive the default code pattern;
(3) If the default pattern of the master terminal transceiver is not the same as the default pattern of the slave terminal transceiver, or the slave terminal transceiver cannot recognize the default pattern, the slave terminal transceiver returns a midamble sequence SEQTR for switching the pattern to the master terminal transceiver, and the sequence is filled with the number (e.g., 0x 00) of the target pattern to be replaced. The master terminal transceiver regenerates the training code sequence SEQTR populated with the target pattern from the received training code sequence SEQTR and transmits to the slave terminal transceiver, which then continues to transmit the target pattern (e.g., the PRSB31 code).
It should be noted that, in this process, if the number of times of transmitting the training code sequence for switching the code pattern from the terminal transceiver to the master terminal transceiver exceeds the set threshold, it is determined that the negotiation between the two terminal transceivers fails, and the code pattern confirmation needs to be performed again.
In one embodiment, when the slave terminal transceiver detects that the current bit error rate meets the standard, the slave terminal determines whether to continue training the switching code pattern, and when it is determined that the switching code pattern continues training, the slave terminal transceiver does not send a training success sequence to the master terminal transceiver, but generates a training code sequence SEQTR for the switching code pattern, and the sequence is filled with the number (for example, 0x 01) of the new target code pattern. The slave terminal transceiver returns the sequence to the master terminal transceiver, which, upon receiving the sequence, generates a training code sequence SEQTR that is populated with the new target pattern and transmits it to the slave terminal transceiver, which then continues to transmit the new target pattern (e.g., PRBS13 code) and begins equalizer training based on the new target pattern.
In this embodiment, the slave terminal transceiver may switch different training code patterns to perform multiple training according to the relevant configuration in the training program loaded thereon under the condition that the current bit error rate meets the standard, so as to further perform fine adjustment on the linear equalizer in the link, and fully train the equalizer to improve the performance of the equalizer, so that the slave terminal transceiver is suitable for different types of encoded data.
As an embodiment of the present application, when receiving the training success sequence sent by the slave terminal transceiver, the master terminal transceiver further includes:
the identity of the terminal transceiver is converted into a slave terminal transceiver, and the terminal transceiver of the opposite terminal is used as a master terminal transceiver;
and receiving a training code pattern sent by a terminal transceiver of the opposite terminal, and detecting the error rate.
As an embodiment of the present application, the slave terminal transceiver further includes, after transmitting a training success sequence to the master terminal transceiver:
the identity of the terminal transceiver is converted into a master terminal transceiver, and the terminal transceiver of the opposite terminal is used as a slave terminal transceiver;
and transmitting the training pattern to a terminal transceiver of the opposite terminal.
In one embodiment, after the slave terminal transceiver transmits the training success sequence to the master terminal transceiver, the master terminal transceiver exchanges with the identity of the slave terminal transceiver, i.e., the master terminal transceiver becomes the new slave terminal transceiver and the slave terminal transceiver becomes the new master terminal transceiver. On this basis, the new master terminal transceiver transmits a training code sequence SEQTR filled with the number of the default pattern to the new slave terminal transceiver, which then continues to transmit the default pattern, starting training the equalizer in the reverse direction in the link.
In this embodiment, identity exchange is performed in the equalizer training process by the master terminal transceiver and the slave terminal transceiver, so that the linear equalizer carried by the middleware in the link is fully trained in the upstream direction and the downstream direction, and the upstream transmission direction and the downstream transmission direction of the link reach the optimal performance.
As an embodiment of the present application, the training method further includes:
generating a random seed locally and transmitting a master-slave negotiation sequence filled with the random seed to a terminal transceiver of the opposite terminal before transmitting or receiving the training pattern;
Receiving and identifying a master-slave negotiation sequence filled with random seeds and sent by a terminal transceiver of an opposite terminal, and comparing the sizes of the locally generated random seeds with the random seeds of the opposite terminal;
under the condition that the local random seed is larger, determining the self as a master terminal transceiver, and sending a master confirmation sequence to the slave terminal transceiver; and under the condition of receiving a slave confirmation sequence returned by the slave terminal transceiver, judging that the master-slave negotiation is successful.
In the case that the local random seed is smaller, determining itself as a slave terminal transceiver;
and returning a slave acknowledgement sequence to the master terminal transceiver in the case of receiving the master acknowledgement sequence transmitted by the master terminal transceiver.
In this embodiment, before training is started, the terminal transceiver in the training system needs to determine its own identity, and execute corresponding training steps according to the identities of the master and slave terminal transceivers currently determined. In one embodiment, the master and slave terminal transceivers are determined by sending a master-slave negotiation sequence between two terminal transceivers. In this embodiment, when the receiver of any terminal transceiver recognizes that there is a signal in the link, the master-slave negotiation state is entered. The terminal transceiver transmits a master-slave negotiation sequence SEQMS generated by its own attached microcontroller to the opposite terminal via its own transmitter. The sequence definition is shown in table 1, with the high 4 bits of Byte0 being the class, for distinguishing the sequence usage, and the low 4 bits being the target transceiver number. The Byte1 is filled with a locally generated random seed, the random seed ranges from 0 to 255, and the Byte2 of the sequence is all 0. For example, the master-slave negotiation sequence is "0b00010000 00000010 00000000" in the case where the locally generated random seed is 2.
And after the terminal transceiver receives the master-slave negotiation sequence, the received random seed size and the local random seed size are identified. And when the two seeds are the same in size, reentering the master-slave negotiation state. The terminal transceiver with the larger local random seed is determined as the master terminal transceiver, and the terminal transceiver with the smaller local random seed is determined as the slave terminal transceiver.
After determining the master and slave terminal transceivers, the master terminal transceiver transmits a master acknowledgement sequence SEQM to the slave terminal transceiver and, after receiving the master acknowledgement sequence from the terminal device, transmits a slave acknowledgement sequence SEQS to the master terminal transceiver. And after the master terminal transceiver receives the slave confirmation sequence sent by the slave terminal transceiver, completing a master-slave negotiation flow, and entering an equalizer identification state. In the process of transmitting the slave acknowledge sequence from the slave terminal transceiver to the master terminal transceiver, each in-band managed middleware in the link recognizes the slave acknowledge sequence, and after recognizing the slave acknowledge sequence, the transmitter in the downstream direction (near the slave terminal transceiver side) thereof is turned off.
As one embodiment of the present application, the master terminal transceiver issues a device identification sequence, where the device identification sequence is used to identify all middleware in the communication link;
assigning device sequence numbers to all middleware identified in the communication link;
adjusting equalizer parameters of the in-band management middleware, comprising:
the equalizer parameters of the middleware specifying the device serial number are adjusted.
In one embodiment, before the master terminal transceiver transmits the training pattern to the slave terminal transceiver, all middleware in the link is further identified, and a device serial number is allocated to each middleware, so that when the equalizer parameters of the middleware need to be adjusted subsequently, the designated middleware is adjusted by issuing an equalizer adjustment sequence filled with the device serial numbers of the middleware. It should be noted that when the master terminal transceiver switches identity exchange with the slave transceiver terminals, the new master terminal transceiver needs to re-identify and number the equalizer in the link.
When the equipment serial numbers are allocated, if the out-of-band management middleware attached to the main terminal transceiver exists in the link, the equipment serial numbers are preferentially allocated to the out-of-band management middleware in the link. Before assigning the device serial number, the master terminal transceiver will number its own built-in equalizer to 1.
When equipment serial numbers are allocated to the self-affiliated out-of-band management middleware, the master terminal transceiver reads middleware (comprising an accessory module on a pluggable interface in the system) which can be communicated out-of-band and is fixed in equipment to which the master terminal transceiver belongs according to the interconnection relation defined in advance with the slave terminal transceiver. And (3) assigning the equipment serial number of the middleware closest to the middleware to the equipment serial number 2, and assigning the equipment serial numbers which are sequentially increased to all the middleware in the link according to the sequence from the near distance to the far distance.
In one embodiment, the device sequence number is assigned to the in-band managed middleware in the link. The specific flow is as follows:
(1) The master terminal transceiver and the slave terminal transceiver configure the self-affiliated out-of-band management middleware to enter a transparent transmission state, specifically, bypass a data clock recovery circuit in the middleware and configure all linear equalizers to be in a state with minimum adjustment amplitude;
(2) The master terminal transceiver issues a device identification sequence SEQDT. The sequence is filled with the device number DN to be allocated to the middleware, in this embodiment, DN is a 4bit binary number, and is filled in the low four bits of the sequence Byte 0. When the master terminal transceiver is the in-band management middleware number, the first device serial number DN to be allocated is: the master terminal transceiver itself has attached to it the maximum device number +1 of the out-of-band management middleware. That is, in this embodiment, the device serial number is preferentially allocated to the out-of-band management middleware attached to the master terminal transceiver itself, and then the device serial number is allocated to the remaining in-band management middleware.
(3) When the first in-band management middleware without the device serial number in the link receives the device identification sequence, the first in-band management middleware returns a device response sequence SEQRP to the upstream direction, wherein the response sequence contains the current device serial number DN.
(4) And when the main terminal transceiver recognizes the equipment response sequence corresponding to the transmitted DN number, regenerating a new equipment recognition sequence, wherein the number DN of the filled equipment in the sequence is increased by 1 compared with the DN transmitted last time. And when the middleware which is already allocated with the equipment serial number in the link receives a new equipment identification sequence, if the DN value filled in the sequence is not matched with the DN value of the middleware, a transmitter of a downstream channel of the middleware is opened, so that the equipment identification sequence which is transmitted next time by the main terminal transceiver can be transmitted to the next middleware.
In one embodiment, when the in-band management middleware transmits a device response sequence to the master terminal device through an upstream direction, the sequence is filled with its own equalization capability information. And when the master terminal transceiver receives the equipment response sequence, the equalization capability information is stored, and when the equalizer parameters are adjusted, the equalizer parameter adjustable range of the middleware is determined according to the equalization capability information. In this embodiment, by filling the device response sequence with the equalization capability information of the middleware, the master terminal transceiver is facilitated to acquire the equalizer parameter adjustable range of the middleware in advance, and the equalizer is not required to be acquired again when the equalizer is adjusted, so that the training steps of the equalizer are saved, and the training efficiency is improved.
As one embodiment of the application, the master terminal transceiver judges that the equipment identification is completed and stops issuing the equipment identification sequence under the condition that the master terminal transceiver receives the equipment response sequence returned by the slave terminal transceiver;
and under the condition that the number of times of repeatedly issuing the current equipment identification sequence reaches a set threshold value, judging that the equipment identification fails.
In one embodiment, the device response sequence is returned to the master terminal transceiver upon receipt of the device identification sequence from the terminal transceiver. Unlike the device response sequence sent by the middleware, the device sequence number DN filled in the sequence is 1111b. After the master terminal transceiver recognizes the device response sequence returned from the slave terminal transceiver, the equalizer recognition is determined to be completed. The master terminal transceiver stops issuing device identification sequences.
Because the middleware in the link takes time to respond to the device identification sequence, the master terminal transceiver continuously and repeatedly issues the current device identification sequence before receiving the device response sequence filled with the same current device serial number DN. If the number of repeated sending of the device identification sequence by the master terminal transceiver reaches a predefined maximum value, the device response sequence returned by the slave terminal transceiver is still not received, and the negotiation is judged to be failed.
If the slave terminal transceiver is identified before the number of repeated transmission of the device identification sequence reaches a predefined maximum value, it is determined that the equalizer identification is successful.
Fig. 5 is a schematic diagram of an equalizer training process in an embodiment of the present application. As shown in fig. 5, in one embodiment, equalizer training needs to go through four steps: master-slave negotiation, equalizer identification, training pattern validation, and equalization adjustment. After the master-slave negotiation fails, the state of the terminal transceiver may directly return to the idle state, waiting for restarting the next master-slave negotiation. When the equalizer identification, training pattern confirmation and equalization adjustment steps fail, the previous step needs to be returned again. After each equalization adjustment is completed, the identities of the master terminal device and the slave terminal device are exchanged, and meanwhile, the relation between the upstream link and the downstream link is exchanged, and the equalizer identification, training code pattern confirmation and equalization adjustment are performed again. After the equalization adjustment is completed by both terminal transceivers, the training of the equalizer is completed.
Optionally, in the process of performing equalization adjustment, the slave terminal transceiver may request to return to the training pattern confirmation procedure to switch different training patterns to perform multiple training, so as to perform full training on the equalizer. The control logic of the training process in this embodiment may run on the middleware in the system as well as the microcontroller of the terminal transceiver.
Based on the same inventive concept, an embodiment of the present application provides a readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the equalizer training method according to any one of the above embodiments of the present application.
Based on the same inventive concept, an embodiment of the present application provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor executes the steps in the equalizer training method according to any one of the foregoing embodiments of the present application.
The specific manner in which the various modules perform the operations in the apparatus of the above embodiments have been described in detail in connection with the embodiments of the method, and will not be described in detail herein.
The foregoing description of the preferred embodiments of the application is not intended to be limiting, but rather is intended to cover all modifications, equivalents, alternatives, and improvements that fall within the spirit and scope of the application.
For the purposes of simplicity of explanation, the methodologies are shown as a series of acts, but one of ordinary skill in the art will recognize that the present application is not limited by the order of acts described, as some acts may, in accordance with the present application, occur in other orders and concurrently. Further, those skilled in the art will recognize that the embodiments described in the specification are all of the preferred embodiments, and that the acts and components referred to are not necessarily required by the present application.
It will be apparent to those skilled in the art that embodiments of the present application may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the application may take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
Embodiments of the present application are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal device, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following claims be interpreted as including the preferred embodiment and all such alterations and modifications as fall within the scope of the embodiments of the application.
Finally, it is further noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or terminal device that comprises the element.
The equalizer training system, training method, device and storage medium provided by the present application have been described in detail, and specific examples are applied herein to illustrate the principles and embodiments of the present application, and the description of the above examples is only used to help understand the method and core idea of the present application; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present application, the present description should not be construed as limiting the present application in view of the above.

Claims (23)

1. An equalizer training system, comprising: a first terminal transceiver, a second terminal transceiver, and a communication link disposed between the first terminal transceiver and the second terminal transceiver, the communication link having at least one middleware disposed therein; the middleware is a communication transceiver with an equalizer and an accessory microcontroller; the equalizer comprises at least a linear equalizer;
the first terminal transceiver and the second terminal transceiver are respectively used as a master terminal transceiver and a slave terminal transceiver;
the main terminal transceiver is configured to identify all middleware in the communication link and allocate a device serial number; transmitting the training pattern to the slave terminal transceiver;
the slave terminal transceiver is configured to detect the error rate according to the received training code pattern and judge whether to perform equalizer parameter adjustment on the middleware; under the condition that the current error rate is not less than the target error rate, determining the compensation quantity of the equalizer to be adjusted;
The master terminal transceiver, or the slave terminal transceiver, is further configured to generate an equalizer adjustment sequence and send to either middleware; the equalizer adjusting sequence is filled with the equipment serial number of the middleware and the compensation quantity distributed to the middleware;
The middleware is configured to adjust equalizer parameters of the middleware according to the received equalizer adjustment sequence; the equalizer parameters include: amplitude and frequency gain.
2. The equalizer training system of claim 1, wherein the first terminal transceiver and the second terminal transceiver are deployed in two communication devices, respectively;
Or, the first terminal transceiver and the second terminal transceiver are disposed in one communication device.
3. The equalizer training system of claim 1, wherein the system further comprises:
A controller configured to control information interaction between the first terminal transceiver and the second terminal transceiver; the information includes a training pattern.
4. The equalizer training system of claim 1, wherein the linear equalizer is a linear direct drive optical module.
5. The equalizer training system of any one of claims 1-4 wherein the equalizer further comprises: a nonlinear equalizer.
6. A method for training an equalizer, applied to a master terminal transceiver in an equalizer training system as claimed in any one of claims 1 to 5, comprising:
transmitting a training pattern to the slave terminal transceiver;
transmitting an equalizer adjustment sequence to in-band management middleware in the communication link to adjust equalizer parameters of the in-band management middleware under the condition that the equalizer adjustment requirement sequence transmitted from the terminal transceiver is received;
And stopping transmitting the training code pattern under the condition that the training success sequence transmitted by the slave terminal transceiver is received.
7. The equalizer training method of claim 6, wherein adjusting equalizer parameters of the in-band management middleware in the communication link comprises:
Determining a compensation amount of the equalizer parameter; the compensation amount includes: amplitude compensation amount and frequency gain compensation amount;
acquiring equalizer parameter adjustable ranges of all middleware in the communication link;
and distributing the compensation quantity to at least one in-band management middleware according to the equalizer parameter adjustable range of the middleware and the sequence from the near to far of the middleware to the slave terminal transceiver.
8. The equalizer training method of claim 6, wherein adjusting equalizer parameters of the in-band management middleware in the communication link comprises:
Identifying the equalization adjustment demand sequence sent by the slave terminal transceiver, and determining the compensation quantity of equalizer parameters; the compensation amount includes: amplitude compensation amount and frequency gain compensation amount;
the compensation amounts are distributed equally to all in-band management middleware.
9. The equalizer training method as claimed in claim 6, further comprising, after transmitting a training pattern to the slave terminal transceiver:
The target pattern is transmitted to the slave terminal transceiver upon receiving a training code sequence populated with the number of the target pattern.
10. The equalizer training method as claimed in claim 6, further comprising, in case of receiving the training success sequence transmitted from the terminal transceiver:
the identity of the terminal transceiver is converted into a slave terminal transceiver, and the terminal transceiver of the opposite terminal is used as a master terminal transceiver;
and receiving a training code pattern sent by a terminal transceiver of the opposite terminal, and detecting the error rate.
11. The method of training an equalizer of claim 10, further comprising:
generating a random seed locally and transmitting a master-slave negotiation sequence filled with the random seed to a terminal transceiver of the opposite terminal before transmitting or receiving the training pattern;
Receiving and identifying a master-slave negotiation sequence filled with random seeds and sent by a terminal transceiver of an opposite terminal, and comparing the sizes of the locally generated random seeds with the random seeds of the opposite terminal;
under the condition that the local random seed is larger, determining the self as a master terminal transceiver, and sending a master confirmation sequence to the slave terminal transceiver;
and under the condition of receiving a slave confirmation sequence returned by the slave terminal transceiver, judging that the master-slave negotiation is successful.
12. The method of training an equalizer of claim 6, further comprising:
issuing a device identification sequence, wherein the device identification sequence is used for identifying all middleware in the communication link;
assigning device sequence numbers to all middleware identified in the communication link;
adjusting equalizer parameters of the in-band management middleware, comprising:
the equalizer parameters of the middleware specifying the device serial number are adjusted.
13. The method of training an equalizer of claim 12, further comprising:
under the condition that the equipment response sequence returned from the terminal transceiver is received, judging that equipment identification is completed, and stopping issuing an equipment identification sequence;
and under the condition that the number of times of repeatedly issuing the current equipment identification sequence reaches a set threshold value, judging that the equipment identification fails.
14. A method for training an equalizer, applied to the slave terminal transceiver in the equalizer training system of any one of claims 1-5, comprising:
receiving a training code pattern sent by a main terminal transceiver, detecting the error rate, and judging whether the current error rate is lower than a target error rate or not;
If the current error rate is not lower than the target error rate and the self-affiliated out-of-band management middleware does not exist in the communication link, an equalization adjustment demand sequence is sent to the main terminal transceiver so as to request the main terminal transceiver to adjust equalizer parameters of the in-band management middleware;
If the current error rate is not lower than the target error rate, if the communication link has the self-affiliated out-of-band management middleware, an equalizer adjustment sequence is sent to the self-affiliated out-of-band management middleware in the communication link, and equalizer parameters of the self-affiliated out-of-band management middleware are adjusted;
And under the condition that the current error rate is lower than the target error rate, transmitting a training success sequence to the main terminal transceiver.
15. The equalizer training method as claimed in claim 14, wherein adjusting equalizer parameters of the self-affiliated out-of-band management middleware in the communication link comprises:
Determining a compensation amount of the equalizer parameter; the compensation amount includes: amplitude compensation amount and frequency gain compensation amount;
acquiring equalizer parameter adjustable ranges of all middleware in the communication link;
And distributing the compensation quantity to at least one out-of-band management middleware according to the sequence from the near to the far of the middleware to the self according to the equalizer parameter adjustable range of the middleware.
16. The equalizer training method as claimed in claim 14, wherein adjusting equalizer parameters of the self-affiliated out-of-band management middleware in the communication link comprises:
Determining a compensation amount of the equalizer parameter; the compensation amount includes: amplitude compensation amount and frequency gain compensation amount;
and equally distributing the compensation quantity to all the out-of-band management middleware attached to the self.
17. The equalizer training method as claimed in claim 14, wherein receiving the training pattern transmitted from the master terminal transceiver and performing error rate detection comprises: identifying the training code pattern;
Detecting the error rate under the condition that the training code pattern is identified;
The method further comprises the steps of:
Transmitting a training code sequence filled with the number of the target code pattern to the master terminal transceiver if the training code pattern cannot be recognized; the target code pattern is a training code pattern which can be identified by the target code pattern;
and receiving the target code pattern retransmitted by the main terminal transceiver, and detecting the error rate.
18. The method of training an equalizer of claim 14, further comprising:
judging whether to switch the code pattern to continue training under the condition that the current error rate is lower than the target error rate;
if the switching code pattern is judged to continue training, a training code sequence filled with the number of the new target code pattern is sent to the main terminal transceiver;
And receiving the new target code pattern retransmitted by the main terminal transceiver, and detecting the error rate.
19. The method of training an equalizer of claim 14, further comprising, after transmitting a training success sequence to the master terminal transceiver:
the identity of the terminal transceiver is converted into a master terminal transceiver, and the terminal transceiver of the opposite terminal is used as a slave terminal transceiver;
and transmitting the training pattern to a terminal transceiver of the opposite terminal.
20. The method of training an equalizer of claim 14, further comprising:
generating a random seed locally and transmitting a master-slave negotiation sequence filled with the random seed to a terminal transceiver of the opposite terminal before transmitting or receiving the training pattern;
Receiving and identifying a master-slave negotiation sequence filled with random seeds and sent by a terminal transceiver of an opposite terminal, and comparing the sizes of the locally generated random seeds with the random seeds of the opposite terminal;
in the case that the local random seed is smaller, determining itself as a slave terminal transceiver;
and returning a slave acknowledgement sequence to the master terminal transceiver in the case of receiving the master acknowledgement sequence transmitted by the master terminal transceiver.
21. A method for training an equalizer, applied to the middleware in the equalizer training system of any one of claims 1-5, comprising:
Determining the own equipment serial number according to the equipment identification sequence sent by the main terminal transceiver;
Receiving an equalizer adjustment sequence sent by the master terminal transceiver or the slave terminal transceiver, and adjusting equalizer parameters of the equalizer adjustment sequence; and the equalizer adjusting sequence is filled with the equipment serial number of the middleware and the compensation quantity distributed to the middleware.
22. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method according to any of claims 6-13, or the steps of the method according to any of claims 14-20, or the steps of the method according to claim 21.
23. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor, when executing the computer program, implements the steps of the method according to any of claims 6-13, or the steps of the method according to any of claims 14-20, or the steps of the method according to claim 21.
CN202410097170.XA 2024-01-24 2024-01-24 Equalizer training system, training method, device and storage medium Active CN117729077B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410097170.XA CN117729077B (en) 2024-01-24 2024-01-24 Equalizer training system, training method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410097170.XA CN117729077B (en) 2024-01-24 2024-01-24 Equalizer training system, training method, device and storage medium

Publications (2)

Publication Number Publication Date
CN117729077A CN117729077A (en) 2024-03-19
CN117729077B true CN117729077B (en) 2024-04-30

Family

ID=90203706

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410097170.XA Active CN117729077B (en) 2024-01-24 2024-01-24 Equalizer training system, training method, device and storage medium

Country Status (1)

Country Link
CN (1) CN117729077B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111683025A (en) * 2020-04-20 2020-09-18 浪潮思科网络科技有限公司 Equalizer parameter debugging method, device and medium
CN114900685A (en) * 2022-04-20 2022-08-12 深圳国实检测技术有限公司 Equipment testing method based on link training and target simulation equipment
CN115048235A (en) * 2022-06-14 2022-09-13 北京百度网讯科技有限公司 Link parameter configuration method, device, equipment and medium
CN115622846A (en) * 2022-12-20 2023-01-17 成都电科星拓科技有限公司 EQ delay reducing method, system and device based on link two-end equalization parameters
CN115842588A (en) * 2022-11-24 2023-03-24 井芯微电子技术(天津)有限公司 Signal transmission method, device and storage medium
CN116319200A (en) * 2023-03-17 2023-06-23 苏州浪潮智能科技有限公司 Signal transmission method, signal transmission device, electronic equipment and readable storage medium
CN117397187A (en) * 2021-06-03 2024-01-12 华为技术有限公司 Transmitter, receiver, parameter adjustment method, serDes circuit, and electronic device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111683025A (en) * 2020-04-20 2020-09-18 浪潮思科网络科技有限公司 Equalizer parameter debugging method, device and medium
CN117397187A (en) * 2021-06-03 2024-01-12 华为技术有限公司 Transmitter, receiver, parameter adjustment method, serDes circuit, and electronic device
CN114900685A (en) * 2022-04-20 2022-08-12 深圳国实检测技术有限公司 Equipment testing method based on link training and target simulation equipment
CN115048235A (en) * 2022-06-14 2022-09-13 北京百度网讯科技有限公司 Link parameter configuration method, device, equipment and medium
CN115842588A (en) * 2022-11-24 2023-03-24 井芯微电子技术(天津)有限公司 Signal transmission method, device and storage medium
CN115622846A (en) * 2022-12-20 2023-01-17 成都电科星拓科技有限公司 EQ delay reducing method, system and device based on link two-end equalization parameters
CN116319200A (en) * 2023-03-17 2023-06-23 苏州浪潮智能科技有限公司 Signal transmission method, signal transmission device, electronic equipment and readable storage medium

Also Published As

Publication number Publication date
CN117729077A (en) 2024-03-19

Similar Documents

Publication Publication Date Title
CN1941649B (en) Method and system for setting communication equipment
CA2011815C (en) Method and apparatus for maximizing the transmission capacity of a multi-channel bidirectional communications link
US8804755B2 (en) Power dissipation management for wired transceivers
EP1912383A1 (en) Method and system for an extended range ethernet link discovery signaling
CN112889228B (en) Single board, optical module, OLT (optical line terminal) and information processing method
CN204013542U (en) A kind of near field communication system
US20210297307A1 (en) Rapid rate adaptation in nbase-t ethernet
CN102893680B (en) Mobile communication terminal
US10148508B1 (en) Method and system for ethernet transceiver rate control
CN111835569B (en) Self-adaptive method, system and storage medium for optical port speed and mode
WO2015042854A1 (en) Method and device for adjusting sending power
IL155629A0 (en) Method and apparatus for reducing transmission power in a high data rate system
CN117729077B (en) Equalizer training system, training method, device and storage medium
CN110535733A (en) Control method, device, computer equipment and the storage medium of household electrical appliance
CN105706392A (en) Method and apparatus for managing low power mode in xdsl systems
CN101964679A (en) Ethernet over Coax equipment power control method and device thereof
CN114499738A (en) Method, device and system for controlling transmission of top-adjusting signal and multi-channel optical module
CN111867033B (en) Method and device for determining transmission power and communication equipment
KR102199521B1 (en) Robust on-line reconfiguration (olr) and synchronization protocol for digital subscriber line (dsl)
US10771100B1 (en) Method and apparatus for efficient fast retraining of ethernet transceivers
CN114339481A (en) Method, apparatus, device and computer readable medium for optical communication
CN113572629A (en) Message transmission method, terminal and storage medium
JP6184092B2 (en) Transmission apparatus and transmission system
WO2021227039A1 (en) Method for isolating narrowband interference and communication apparatus
CN115065437B (en) Tunable optical module and method and system for automatically configuring wavelength of tunable optical module

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
GR01 Patent grant
GR01 Patent grant