WO2021147005A1 - Apparatus for executing re-timing and path switching method - Google Patents

Apparatus for executing re-timing and path switching method Download PDF

Info

Publication number
WO2021147005A1
WO2021147005A1 PCT/CN2020/073835 CN2020073835W WO2021147005A1 WO 2021147005 A1 WO2021147005 A1 WO 2021147005A1 CN 2020073835 W CN2020073835 W CN 2020073835W WO 2021147005 A1 WO2021147005 A1 WO 2021147005A1
Authority
WO
WIPO (PCT)
Prior art keywords
path
data
controller
transmitter
receiver
Prior art date
Application number
PCT/CN2020/073835
Other languages
French (fr)
Chinese (zh)
Inventor
聂耳
马玉龙
郭健
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to PCT/CN2020/073835 priority Critical patent/WO2021147005A1/en
Priority to CN202080094022.2A priority patent/CN115004165A/en
Publication of WO2021147005A1 publication Critical patent/WO2021147005A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation

Definitions

  • the embodiments of the present application relate to the field of computer technology, and in particular, to a path switching method and related devices.
  • PCIE Peripheral Component Interface Express
  • the controller After the receiver of the retimer receives the data, the controller will perform a series of complex processing on the data before forwarding, such as asynchronous and frequency offset removal processing first, then descrambling and data alignment processing, and then corresponding modification , And perform scrambling and encoding processing, and finally forward the data through the transmitter.
  • the controller in the retimer needs to perform complicated processing on the received data before forwarding, the data delay in the retimer is very large (usually up to 40ns), and certain business scenarios that are sensitive to delay will Have a greater impact.
  • the embodiments of the present application provide a device for performing retiming and a method for path switching, which can effectively reduce the delay to meet the requirements of different business scenarios.
  • the first aspect of the embodiments of the present application provides a device for performing retiming.
  • the device may be a retimer and includes: a first path, a second path, and a controller.
  • the controller is configured to switch the first path to the second path to transmit the second data based on the second path when it is determined that the transmission rate of the first data transmitted by the first path satisfies the preset first condition.
  • the delay of the second path is lower than the delay of the first path, the first data is path training data, and the second data is service data.
  • the second path has a lower delay than the first path.
  • the first path can be switched to the second path, that is, exit from the normal path and enter the low-delay path, based on the low-delay path Perform business data transmission. Therefore, through path switching, the transmission of service data based on the second path can effectively reduce the delay to meet the requirements of different service scenarios.
  • the first data is training ordered set TS2 data, which improves the flexibility and selectivity of the solution.
  • the preset first condition includes: the transmission rate is equal to the preset rate, which improves the solution Flexibility and selectivity.
  • the preset first condition further includes: TS2 data does not have a rate switching request, There is no request to enter the loopback state and no request to enter the prohibited state, which improves the flexibility and selectivity of the scheme.
  • the device further includes: a receiver for receiving the first data and the second data, a receiver for sending the first data and the second data, the first path is coupled to the receiver and the transmitter, and the first path is also connected To the controller, the second path is coupled to the receiver and transmitter;
  • the controller is also used to set the first path to the unavailable state and the second path to the available state when it is determined that the transmitter has completed the handover preparation, so as to transmit the second data based on the second path, which improves the solution Flexibility and selectivity.
  • the controller before switching the first path to the second path, the controller is also used for Modifying the data that the transmitter can send into pseudo-random binary sequence PRBS data improves the flexibility and selectivity of the scheme.
  • the controller is also used for Modifying the data that the transmitter can send to the data received by the receiver improves the flexibility and selectivity of the scheme.
  • a polarity reversal circuit is also provided between the receiver and the transmitter;
  • the polarity inversion circuit is used to invert the polarity of the second data, which improves the flexibility and selectivity of the solution.
  • the controller is further configured to determine that the first data transmitted by the second path meets the predetermined requirements.
  • the second path is switched to the first path to transmit the second data based on the first path, which improves the flexibility and selectivity of the solution.
  • the preset second condition includes: TS2 data has a request for rate switching, and has a balance Redo requests, requests with exit prohibited state, or requests with exit hot reset state, improve the flexibility and selectivity of the solution.
  • the controller is further configured to: The second path is set to an unavailable state, and the first path is set to an available state to transmit the second data based on the first path, which improves the flexibility and selectivity of the solution.
  • the controller before switching the second path to the first path, the controller also uses In order to modify the data that the transmitter can send into PRBS data, the flexibility and selectivity of the scheme are improved.
  • the controller after switching the second path to the first path, the controller further It is used to modify the data that the transmitter can send to the data received by the receiver, which improves the flexibility and selectivity of the scheme.
  • a second aspect of the embodiments of the present application provides a method for path switching, which is implemented by a device for performing retiming.
  • the device includes: a first path, a second path, and a controller; the method includes:
  • the controller switches the first path to the second path to transmit the second data based on the second path, wherein , The delay of the second path is lower than the delay of the first path, the first data is path training data, and the second data is service data.
  • the second path has a lower delay than the first path.
  • the first path can be switched to the second path, that is, exit from the normal path and enter the low-delay path, based on the low-delay path Perform business data transmission. Therefore, through path switching, the transmission of service data based on the second path can effectively reduce the delay to meet the requirements of different service scenarios.
  • the first data is training ordered set TS2 data, which improves the flexibility and selectivity of the solution.
  • the preset first condition includes: the transmission rate is equal to the preset rate, which improves the solution Flexibility and selectivity.
  • the preset first condition further includes: TS2 data does not have a request for rate switching, There is no request to enter the loopback state and no request to enter the prohibited state, which improves the flexibility and selectivity of the scheme.
  • the device further includes: a receiver for receiving the first data and the second data, a receiver for sending the first data and the second data, the first path is coupled to the receiver and the transmitter, and the first path is also connected To the controller, the second path is coupled to the receiver and transmitter;
  • Switching the first path to the second path by the controller to transmit the second data based on the second path includes:
  • the controller sets the first path to the unavailable state and sets the second path to the available state to transmit the second data based on the second path, which improves the solution Flexibility and selectivity.
  • the method further include:
  • the controller modifies the data that the transmitter can send into pseudo-random binary sequence PRBS data, which improves the flexibility and selectivity of the scheme.
  • the method further include:
  • the controller modifies the data that the transmitter can send to the data received by the receiver, which improves the flexibility and selectivity of the scheme.
  • a polarity reversal circuit is also provided between the receiver and the transmitter, and the method further includes:
  • the polarity of the second data transmitted by the second path is reversed, the polarity of the second data is reversed by the polarity reversal circuit, which improves the flexibility and selectivity of the solution.
  • the method further includes:
  • the controller determines that the first data transmitted by the second path meets the preset second condition, the controller switches the second path to the first path to transmit the second data based on the first path, which improves the solution Flexibility and selectivity.
  • the preset second condition includes: TS2 data has a request for rate switching, and has a balance Redo requests, requests with exit prohibited state, or requests with exit hot reset state, improve the flexibility and selectivity of the solution.
  • the second path is switched to the first path by the controller, so as to be based on the first path.
  • the path transmission of the second data includes:
  • the controller is also used to set the second path to an unavailable state and set the first path to an available state when it is determined that the transmitter has completed the handover preparation, so as to transmit the second data based on the first path, which improves the solution Flexibility and selectivity.
  • the controller before switching the second path to the first path, the controller also uses In order to modify the data that the transmitter can send into PRBS data, the flexibility and selectivity of the scheme are improved.
  • the controller after switching the second path to the first path, the controller further It is used to modify the data that the transmitter can send to the data received by the receiver, which improves the flexibility and selectivity of the scheme.
  • a third aspect of the embodiments of the present application provides a device for performing retiming, and the device includes:
  • Receiver used to receive data
  • Transmitter used to send data
  • the first path is coupled to the receiver and the transmitter, and the first path is also connected to the controller;
  • the second path which is coupled to the receiver and the transmitter, is used to transmit the data received by the receiver to the transmitter;
  • the controller is configured to switch the second path to the first path to transmit the second data based on the first path when it is determined that the first data transmitted by the second path meets the preset second condition, where the second path
  • the delay of is lower than the delay of the first path, the first data is path training data, and the second data is service data.
  • the first data is training ordered set TS2 data, which improves the flexibility and selectivity of the solution.
  • the preset second condition includes: TS2 data has a request for rate switching, and has a balance Redo requests, requests with exit prohibited state, or requests with exit hot reset state, improve the flexibility and selectivity of the solution.
  • the device further includes: a receiver for receiving the first data and the second data , A receiver for transmitting the first data and the second data, the first path is coupled to the receiver and the transmitter, the first path is also connected to the controller, and the second path is coupled to the receiver and the transmitter;
  • the controller is also used to set the second path to an unavailable state and set the first path to an available state when it is determined that the transmitter has completed the handover preparation, so as to transmit the second data based on the first path, which improves the solution Flexibility and selectivity.
  • the controller before switching the second path to the first path, the controller is also used for Modifying the data that the transmitter can send into PRBS data improves the flexibility and selectivity of the scheme.
  • the controller is also used to modify the data that the transmitter can send to the data received by the receiver, which improves the flexibility and selectivity of the scheme.
  • the fourth aspect of the present application also provides a method for path switching, which is implemented by a device for performing retiming.
  • the device includes: a first path, a second path, and a controller; the method includes:
  • the controller switches the second path to the first path to transmit the second data based on the first path, where the second path The delay of the path is lower than the delay of the first path, the first data is path training data, and the second data is service data.
  • the first data is training ordered set TS2 data, which improves the flexibility and selectivity of the solution.
  • the preset second condition includes: TS2 data has a request for rate switching, and has a balance Redo requests, requests with exit prohibited state, or requests with exit hot reset state, improve the flexibility and selectivity of the solution.
  • the device further includes: a receiver for receiving the first data and the second data , A receiver for transmitting the first data and the second data, the first path is coupled to the receiver and the transmitter, the first path is also connected to the controller, and the second path is coupled to the receiver and the transmitter;
  • Switching the second path to the first path by the controller to transmit the second data based on the first path includes:
  • the second path is set to the unavailable state by the controller, and the first path is set to the available state to transmit the second data based on the first path, which improves the solution Flexibility and selectivity.
  • the method in combination with the third implementation manner of the fourth aspect of the embodiments of the present application, in the fourth implementation manner of the fourth aspect of the embodiments of the present application, before the second path is switched to the first path by the controller, the method also includes:
  • the data that can be sent by the transmitter is modified into PRBS data through the controller, which improves the flexibility and selectivity of the scheme.
  • the second path is switched to the second path through the controller.
  • the method also includes:
  • the controller modifies the data that the transmitter can send to the data received by the receiver, which improves the flexibility and selectivity of the scheme.
  • the fifth aspect of the embodiments of the present application also provides a PCIE system, which includes:
  • the first PCIE device
  • the second PCIE device The second PCIE device
  • the apparatus for performing retiming as in any one of the first aspect and the third aspect which is coupled to the first PCIE device and the second PCIE device, so that two PCIE devices are provided between the first PCIE device and the second PCIE device. Data flow in the direction.
  • An embodiment of the present application provides a device for performing retiming and a method for path switching, where the device includes: a first path, a second path, and a controller, and the controller is used to determine the first path to transmit in the first path.
  • the first path is switched to the second path to transmit the second data based on the second path, where the delay of the second path is lower than the delay of the first path,
  • One data is path training data
  • the second data is business data.
  • the controller can switch the currently used first path to the second path to transmit the second data through the second path after judging that the transmission rate of the first data transmitted by the first path satisfies the preset first condition, Since the delay of the second path is lower than the delay of the first path, the transmission of service data based on the second path can effectively reduce the delay to meet the requirements of different service scenarios.
  • FIG. 1 is a schematic structural diagram of a PCIE system provided by an embodiment of the application.
  • FIG. 2 is a schematic structural diagram of a retimer provided by an embodiment of the application.
  • FIG. 3 is a schematic diagram of another structure of a retimer provided by an embodiment of the application.
  • FIG. 4 is a schematic diagram of another structure of a retimer provided by an embodiment of the application.
  • FIG. 5 is a schematic flowchart of a path switching method provided by an embodiment of the application.
  • FIG. 1 is a schematic structural diagram of the PCIE system provided by an embodiment of this application.
  • the PCIE system includes: a first PCIE device, a first PCIE device, and a second PCIE device.
  • Two PCIE equipment and a device for performing retiming where the first PCIE device and the second PCIE can be personal computers, servers, data centers, etc., and there is no specific limitation here, but the device for performing retiming can be To retimer, two PCIE devices can be coupled to one or more retimers (only one retimer is shown in Figure 1).
  • the retimer provides a link (path) for two PCIE devices, so that the two PCIE devices can communicate and realize information exchange.
  • FIG. 2 is a schematic structural diagram of the retimer provided by the embodiment of the application. Please refer to FIG. 2.
  • the retimer includes a receiver 201, a transmitter 202, and a controller 203.
  • the receiver 201 can start from the first PCIE
  • the device receives the data
  • the controller 203 can perform corresponding processing on the data received by the receiver 201
  • the transmitter 202 can send the processed data to the second PCIE device.
  • the retimer further includes: a first path 204 (normal path) and a second path 205 (low delay path), wherein the first path 204 is coupled to the receiver 201 and the transmitter 202, and the first path 204 Also connected to the controller 203.
  • the second path 205 is coupled to the receiver 201 and the transmitter 202.
  • the receiver 201 When two PCIE devices perform data transmission based on the first path 204, the receiver 201 first sends the data to the controller 203 for processing after receiving the data from the first PCIE device, and the transmitter 202 then transmits the processed data It is sent to the second PCIE device, so the delay of the first path 204 includes the delays of the receiver 201, the controller 203, and the transmitter 202. However, the second path 205 does not include the controller 203. When data is transmitted based on the second path 205, the data does not need to be processed by the controller 203.
  • the transmitter 202 can directly send data to the second PCIE device, so the delay of the second path 205 only includes the delays of the receiver 201 and the transmitter 202, that is, the second path 205 has a lower delay than the first path 204.
  • the first PCIE device is used as a device for sending data
  • the second PCIE device is used as a device for receiving data.
  • the second PCIE device can be used as a device for sending data
  • the first PCIE device Can be used as a device for receiving data.
  • the system when the PCIE system is in the normal working state (that is, the L0 state), if an error or a certain demand occurs in the path state (for example, the path state changes), the system can enter the recovery state (recovery state) from the L0 state , To retrain the path.
  • the recovery state recovery state
  • the retimer can switch between the first path 204 and the second path 205.
  • the path switching performed by the retimer includes two situations. One is to enter the low-delay path, that is, from the first path 204 to the second path 205, and the other is to exit the low-delay path, that is, from the second path 205. Entering the first path 204, the case of entering the low-delay path will be introduced first.
  • the path currently used by the PCIE system to transmit data is the first path 204.
  • the PCIE system can switch the path.
  • the PCIE system can transmit the first data (that is, path training data) through the first path to implement path retraining.
  • the controller 203 of the retimer switches the first path 204 to the second path 205 when it determines that the transmission rate of the first path 204 to transmit the first data satisfies the preset first condition.
  • the PCIE system is currently used for The data transmission path is changed to the second path 205, so the second data, that is, service data, can be transmitted based on the second path 205 in the subsequent stage.
  • the controller 203 When the controller 203 determines whether the transmission rate meets the preset first condition, that is, when it determines that the PCIE system meets the preset first condition for entering the second path 205, it may switch the first path 204 to the second path 205, to transmit the second data through the second path 205. Since the second path 205 does not include the controller 203, after the receiver 201 receives the data, the data does not need to be processed by the controller 203 and can be directly sent The relay 202 performs forwarding, which can effectively reduce the delay to meet the requirements of different business scenarios.
  • the first PCIE device and the second PCIE device can start to transmit data for path training, such as TS1 data, TS2 data, etc., based on the first path.
  • path training such as TS1 data, TS2 data, etc.
  • the TS2 data transmission stage is entered.
  • the first data transmitted by the first path 204 is TS2 data.
  • the controller 203 of the retimer will detect in real time whether the receiver 201 has received TS2 data.
  • the controller 203 determines that the receiver 201 has received TS2 data, it will obtain the current transmission rate of the PCIE system, which is the first A path 204 transmits the transmission rate of the first data. After acquiring the transmission rate, the controller 203 can determine whether the transmission rate satisfies the preset first condition to determine whether the second path 205 can be entered from the first path 204.
  • the controller 203 In order to enter the second path 205 from the first path 204, the controller 203 needs to determine whether the transmission rate of the first data transmitted by the first path 204 meets a preset first condition, which can be set according to actual needs.
  • the preset first condition includes: the transmission rate is equal to the preset rate (a rate set in advance).
  • the preset first condition further includes: TS2 data does not have a request for rate switching, does not have a request to enter a loopback state, and does not have a request to enter a prohibited state.
  • the controller 203 can analyze the TS2 data and the transmission rate.
  • controller 203 determines that the TS2 data does not have the request for rate switching, the request for entering the loopback state, and the request for entering the prohibited state, and the transmission rate is equal to the preset Rate, it is determined that the PCIE system satisfies the preset first condition for entering the second path 205.
  • the controller 203 can switch between the first path 204 and the second path 205 after determining that the PCIE system meets the preset first condition for entering the second path.
  • the controller 203 can first modify the data that the transmitter 202 can send to PRBS data. Because the type of data that the transmitter 202 can send has changed, the transmission of TS2 data is restricted. . After the controller 203 determines that the transmitter is ready to switch, the controller 203 sets the first path 204 to an unavailable state and sets the second path 205 to an available state to complete the connection between the first path 204 and the second path 205 Switch.
  • the controller 203 After entering the second path 205, the controller 203 then modifies the data that the transmitter 202 can send to the data received by the receiver 201, so no matter what type of data the receiver 201 receives (for example, the subsequent first PCIE device).
  • the data used for negotiation with the second PCIE device, and the service data transmitted between the first PCIE device and the second PCIE device, etc., can be transmitted through the second path 205.
  • the foregoing forward switching process will be further introduced with reference to FIG. 2. As shown in FIG.
  • the retimer also includes a data selector (multiplexer, MUX) 206, and the input end of the MUX 206 is coupled to the first
  • the output ends of the path 204 and the second path 205 are coupled to the transmitter 202.
  • the MUX 206 can be used for switching between the first path 204 and the second path 205.
  • the controller 203 may send a low-latency entry request to the transmitter 202, and modify the data that the transmitter 202 can send into PRBS data.
  • the transmitter 202 can prepare for switching based on the low-latency entry request (for example, switch its own state from the normal state to the low-latency state).
  • the preparation After the preparation is completed, it feeds back the preparation completion response to the controller 203.
  • the controller 203 receives the response, Then, the first path switching request is sent to the MUX 206, so that the MUX 206 sets the first path 204 to an unavailable state and sets the second path 205 to an available state.
  • the controller 203 receives the switching completion response sent by the MUX 206, it modifies the data that the transmitter 202 can send to the data received by the receiver 201 to transmit the data based on the second path 205.
  • the negotiation phase based on the PCIE protocol can be carried out.
  • the first PCIE device and the second PCIE device can negotiate through the second path 205
  • the PCIE protocol which will not be repeated here.
  • a polarity reversal circuit 207 is further provided in the second path 205.
  • the input terminal of the polarity reversal circuit 207 is coupled to the receiver 201,
  • the output terminal is coupled to the transmitter 202, and the polarity inversion circuit 207 can invert the polarity of the service data.
  • the service data sent by the transmitter 202 to the second PCIE device usually needs to carry a positive polarity. If the service data from the first PCIE device received by the receiver 201 carries a negative polarity, that is, the service data exists In the case of opposite polarity, polarity reversal is required to make the business data obtain the correct polarity.
  • the controller 203 can detect the polarity of the service data. If the controller 203 determines that the polarity of the service data is opposite, it will switch to the polarity inversion circuit. 207 sends a polarity reversal request. Based on the request, the polarity reversal circuit 207 can reverse the polarity of the service data from the receiver 201, and send the reversed service data to the transmitter 202, so that the transmitter 202 forwards the service data. The business data after the flip.
  • the service data can be transmitted when the system is in the LO state. If the PCIE system enters the recovery state again from the L0 state, the path retraining needs to be performed again. At this time, the path currently used by the PCIE system to transmit data is the second path 205, and the first PCIE device and the second PCIE device can communicate with each other. Based on the second path 205, data used for path training, such as TS1 data, TS2 data, and so on, are transmitted again. When the TS1 data transmission stage is completed between the first PCIE device and the second PCIE device, the TS2 data transmission stage is entered.
  • the retimer controller 203 will detect in real time whether the receiver 201 has received TS2 data. If the controller 203 determines that the receiver 201 has received the TS2 data, it determines whether the TS2 data (first data) transmitted by the second path meets the preset second condition to determine whether it can enter the first path 204 from the second path 205.
  • the controller 203 of the retimer determines that the TS2 data meets the preset second condition, the controller 203 can switch the second path 205 to the first path 204, so that the PCIE system uses the first path 204 after the path switching is completed.
  • the service data (second data) is transmitted as the currently used path, that is, the low-delay path enters the normal path.
  • the controller 203 In order to enter the first path 204 from the second path 205, the controller 203 needs to determine whether the TS2 data meets the preset second condition, and the preset second condition can be set according to actual needs.
  • the preset second condition includes: the TS2 data has a request for rate switching or a request for equalization redo or a request for exiting the prohibited state or a request for exiting the hot reset state.
  • the controller 203 can analyze the TS2 data. If the controller 203 determines that the TS2 data has a rate switching request or a balance redo request or a request to exit the prohibition state or a request to exit the hot reset state, it determines that the PCIE system meets the requirements of entering the first state.
  • the preset second condition of the path 204 The preset second condition of the path 204.
  • the controller 203 may switch between the first path 204 and the second path 205.
  • the controller 203 can first modify the data that the transmitter 202 can send to PRBS data. Because the type of data that the transmitter 202 can send has changed, the transmission of TS2 data is restricted. .
  • the controller 203 sets the second path 205 to an unavailable state and sets the first path 204 to an available state to complete the connection between the first path 204 and the second path 205 Switch.
  • the controller 203 modifies the data that the transmitter 202 can send to the data received by the receiver 201, so no matter what type of data the receiver 201 receives (for example, the subsequent first PCIE device).
  • the data used for negotiation with the second PCIE device, the service data transmitted between the first PCIE device and the second PCIE device, etc., can be transmitted through the first path 204.
  • the controller 203 may send a low-latency exit request to the transmitter 202, and modify the data that the transmitter 202 can send into PRBS data.
  • the transmitter 202 can prepare for switching based on the low-latency exit request (for example, switch its own state from the low-latency state to the normal state).
  • the controller 203 After completing the preparation, it will feed back the preparation completion response to the controller 203. After the controller 203 receives the response, Then, a second path switching request is issued to the MUX 206, so that the MUX 206 sets the second path 205 to an unavailable state and sets the first path 204 to an available state. After the controller 203 receives the switching completion response sent by the MUX 206, it modifies the data that the transmitter 202 can send to the data received by the receiver, so as to transmit the data based on the first path 204.
  • the negotiation phase based on the PCIE protocol can be carried out.
  • the first PCIE device and the second PCIE device can negotiate through the first path 204
  • the PCIE protocol which will not be repeated here.
  • the retimer includes a receiver 201, a transmitter 202, and a controller 203.
  • the controller 203 may include a first physical coding sub-layer (PCS) 2031, a link training and status machine (LTSSM) 2032, and a second PCS 2033, the first PCS 2031
  • PCS physical coding sub-layer
  • LTSSM link training and status machine
  • second PCS 2033 the first PCS 2031
  • the input end is coupled to the receiver 201
  • the output end of the first PCS 2031 is coupled to the LTSSM 2032
  • the input end of the second PCS 2033 is coupled to the LTSSM 2032
  • the output end of the second PCS 2033 is coupled to the transmitter 202.
  • the first PCS2031 is used to decode the data of the receiver 201
  • the LTSSM2032 is used to process the decoded data
  • the second PCS2033 then encodes the processed data, and then sends the encoded data to the transmitter 202.
  • the steps performed by the controller 203 in the foregoing embodiment are mainly performed by the LTSSM2032.
  • the LTSSM2032 can detect the type of data received by the receiver 201, and the LTSSM2032 can also determine whether the TS2 data and the current data transmission rate meet the preset requirements.
  • LTSSM2032 can also determine whether TS2 data meets the preset second condition, LTSSM2032 can also control MUX206 for path switching, LTSSM2032 can also modify the type of data that the transmitter 202 can send, and LTSSM2032 can also control the polarity reversal circuit 207 Perform polarity reversal on business data and so on.
  • the retimer includes a receiver 201, a transmitter 202, and a controller 203.
  • the controller 203 may include a first 2031, a plurality of LTSSM 2032 (for the convenience of drawing, only two are shown in Figure 4) and a second PCS 2033, the input of the first PCS 2031 is coupled to the receiver 201, the first PCS 2031 The output end is coupled to the first LTSSM 2032, the input end of the second PCS 2033 is coupled to the last LTSSM 2032, the output end of the second PCS 2033 is coupled to the transmitter 202, and multiple LTSSM 2032 are connected in series.
  • the first PCS2031 is used to decode the data of the receiver 201
  • multiple LTSSM2032 are used to process the decoded data
  • the second PCS2033 then encodes the processed data, and then sends the encoded data to Transmitter 202.
  • the steps executed by the controller 203 in the foregoing embodiment are mainly executed by multiple LTSSMs 2032 at the same time.
  • steps executed by multiple LTSSMs 2032 please refer to the relevant descriptions in the foregoing implementation manner, which will not be repeated here.
  • FIG. 5 is a schematic flowchart of the path switching method provided by the embodiment of the present application. Please refer to FIG. 5, the method is implemented by the retimer corresponding to any one of the embodiments in FIG. 2 to FIG. 4, and the method includes:
  • the controller When it is determined by the controller that the transmission rate of the first data transmitted by the first path meets the preset first condition, switch the first path to the second path by the controller to transmit the second data based on the second path , Where the delay of the second path is lower than the delay of the first path, the first data is path training data, and the second data is service data.
  • the first data is training ordered set TS2 data, which improves the flexibility and selectivity of the solution.
  • the preset first condition includes: the transmission rate is equal to the preset rate, which improves the flexibility and selectivity of the solution.
  • the preset first condition also includes: TS2 data does not have a request for rate switching, does not have a request to enter the loopback state, and does not have a request to enter the prohibited state, which improves the flexibility and flexibility of the solution.
  • TS2 data does not have a request for rate switching, does not have a request to enter the loopback state, and does not have a request to enter the prohibited state, which improves the flexibility and flexibility of the solution.
  • switching the first path to the second path by the controller to transmit the second data based on the second path includes:
  • the controller sets the first path to the unavailable state and sets the second path to the available state to transmit the second data based on the second path, which improves the solution Flexibility and selectivity.
  • the method before switching the first path to the second path through the controller, the method further includes:
  • the controller modifies the data that the transmitter can send into pseudo-random binary sequence PRBS data, which improves the flexibility and selectivity of the scheme.
  • the method further includes:
  • the controller modifies the data that the transmitter can send to the data received by the receiver, which improves the flexibility and selectivity of the scheme.
  • a polarity reversal circuit is further provided between the receiver and the transmitter, and the method further includes:
  • the polarity of the second data transmitted by the second path is reversed, the polarity of the second data is reversed by the polarity reversal circuit, which improves the flexibility and selectivity of the solution.
  • the method further includes:
  • the controller determines that the first data transmitted by the second path meets the preset second condition, the controller switches the second path to the first path to transmit the second data based on the first path, which improves the solution Flexibility and selectivity.
  • the preset second conditions include: TS2 data has a request for rate switching, a request for balanced redo, a request for exiting the prohibited state, or a request for exiting the warm reset state, which improves the solution’s performance Flexibility and selectivity.
  • switching the second path to the first path by the controller to transmit the second data based on the first path includes:
  • the controller is also used to set the second path to an unavailable state and set the first path to an available state when it is determined that the transmitter has completed the handover preparation, so as to transmit the second data based on the first path, which improves the solution Flexibility and selectivity.
  • the controller before switching the second path to the first path, is also used to modify the data that the transmitter can send into PRBS data, which improves the flexibility and selectivity of the solution.
  • the controller is also used to modify the data that the transmitter can send to the data received by the receiver, which improves the flexibility and flexibility of the solution.
  • the controller is also used to modify the data that the transmitter can send to the data received by the receiver, which improves the flexibility and flexibility of the solution.
  • the second path since the second path does not include a controller, the second path has a lower delay than the first path.
  • the first path can be switched to the second path, that is, exit from the normal path and enter the low-delay path to perform data transmission based on the low-delay path. Therefore, in the second path, after the receiver receives the data, the data can be directly forwarded through the transmitter without complicated processing by the controller, which can effectively reduce the delay to meet the requirements of different business scenarios.
  • the embodiment of the present application also provides a device for performing retiming, which includes:
  • Receiver used to receive data
  • Transmitter used to send data
  • the first path is coupled to the receiver and the transmitter, and the first path is also connected to the controller;
  • the second path which is coupled to the receiver and the transmitter, is used to transmit the data received by the receiver to the transmitter;
  • the controller is configured to switch the second path to the first path to transmit the second data based on the first path when it is determined that the first data transmitted by the second path meets the preset second condition, where the second path
  • the delay of is lower than the delay of the first path, the first data is path training data, and the second data is service data.
  • the first data is training ordered set TS2 data, which improves the flexibility and selectivity of the solution.
  • the preset second conditions include: TS2 data has a request for rate switching, a request for balanced redo, a request for exiting the prohibited state, or a request for exiting the warm reset state, which improves the solution’s performance Flexibility and selectivity.
  • the device further includes: a receiver for receiving the first data and the second data, a receiver for sending the first data and the second data, the first path is coupled to the receiver and the transmitter The first path is also connected to the controller, and the second path is coupled to the receiver and the transmitter;
  • the controller is also used to set the second path to an unavailable state and set the first path to an available state when it is determined that the transmitter has completed the handover preparation, so as to transmit the second data based on the first path, which improves the solution Flexibility and selectivity.
  • the controller before switching the second path to the first path, is also used to modify the data that the transmitter can send into PRBS data, which improves the flexibility and selectivity of the solution.
  • the controller is also used to modify the data that the transmitter can send to the data received by the receiver, which improves the flexibility and flexibility of the solution.
  • the controller is also used to modify the data that the transmitter can send to the data received by the receiver, which improves the flexibility and flexibility of the solution.
  • An embodiment of the present application also provides a method for path switching, which is implemented by a retimer corresponding to any one of the embodiments in FIG. 2 to FIG. 4, and the method includes:
  • the controller switches the second path to the first path to transmit the second data based on the first path, where the second path The delay of the path is lower than the delay of the first path, the first data is path training data, and the second data is service data.
  • the first data is training ordered set TS2 data, which improves the flexibility and selectivity of the solution.
  • the preset second conditions include: TS2 data has a request for rate switching, a request for balanced redo, a request for exiting the prohibited state, or a request for exiting the warm reset state, which improves the solution’s performance Flexibility and selectivity.
  • switching the second path to the first path by the controller to transmit the second data based on the first path includes:
  • the second path is set to the unavailable state by the controller, and the first path is set to the available state to transmit the second data based on the first path, which improves the solution Flexibility and selectivity.
  • the method before switching the second path to the first path by the controller, the method further includes:
  • the data that can be sent by the transmitter is modified into PRBS data through the controller, which improves the flexibility and selectivity of the scheme.
  • the method further includes:
  • the controller modifies the data that the transmitter can send to the data received by the receiver, which improves the flexibility and selectivity of the scheme.

Abstract

Provided in the embodiments of the present application are an apparatus for executing re-timing and a path switching method, the apparatus comprising: a first path, a second path, and a controller, the controller being used for switching from the first path to the second when it is determined that the transmission rate of first data transmitted on the first path meets a pre-arranged first condition, in order to transmit second data on the second path; the latency of the second path is lower than the latency of the first path, the first data is path training data, and the second data is service data. In the present apparatus, after determining that the transmission rate of the first data transmitted on the first path meets a pre-arranged first condition, the controller can switch the currently used first path to the second path in order to transmit second data by means of the second path; as the latency of the second path is lower than the latency of the first path, transmitting service data on the second path can effectively reduce latency to meet the requirements of different service scenarios.

Description

一种用于执行重定时的装置以及路径切换的方法Device for performing retiming and method for path switching 技术领域Technical field
本申请实施例涉及计算机技术领域,尤其涉及一种路径切换的方法及相关装置。The embodiments of the present application relate to the field of computer technology, and in particular, to a path switching method and related devices.
背景技术Background technique
在计算机系统中,基于高速外围组件互连(Peripheral Component Interface Express,PCIE)标准所构建的高速串行链路得到了广泛应用。为了减少该链路在使用过程中所体现出的介质插入损耗,可在链路中串入重定时器(retimer),以对链路中的信号进行中继并滤除链路抖动。In computer systems, high-speed serial links based on the high-speed Peripheral Component Interface Express (PCIE) standard have been widely used. In order to reduce the medium insertion loss during the use of the link, a retimer can be serialized in the link to relay the signal in the link and filter out the link jitter.
在重定时器的接收器接收到数据后,控制器会对数据进行一系列复杂的处理才转发,例如先进行异步和消除频偏处理,然后进行解扰和数据对齐处理,再进行相应的修改,以及进行加扰和编码处理,最后再通过发送器将数据进行转发。After the receiver of the retimer receives the data, the controller will perform a series of complex processing on the data before forwarding, such as asynchronous and frequency offset removal processing first, then descrambling and data alignment processing, and then corresponding modification , And perform scrambling and encoding processing, and finally forward the data through the transmitter.
然而,由于重定时器中的控制器对接收到的数据需要进行繁杂的处理后才转发,导致数据在重定时器中的延迟很大(通常达40ns),对延迟敏感的某些业务场景会产生较大的影响。However, because the controller in the retimer needs to perform complicated processing on the received data before forwarding, the data delay in the retimer is very large (usually up to 40ns), and certain business scenarios that are sensitive to delay will Have a greater impact.
发明内容Summary of the invention
本申请实施例提供了一种用于执行重定时的装置以及路径切换的方法,能够有效降低延迟,以满足不同业务场景的需求。The embodiments of the present application provide a device for performing retiming and a method for path switching, which can effectively reduce the delay to meet the requirements of different business scenarios.
本申请实施例的第一方面提供一种用于执行重定时的装置,该装置可以为重定时器,包括:第一路径、第二路径和控制器。The first aspect of the embodiments of the present application provides a device for performing retiming. The device may be a retimer and includes: a first path, a second path, and a controller.
该控制器用于在确定第一路径传输的第一数据的传输速率满足预置第一条件的情况下,将第一路径切换至第二路径,以基于第二路径传输第二数据,其中,第二路径的延迟比第一路径的延迟低,第一数据为路径训练数据,第二数据为业务数据。The controller is configured to switch the first path to the second path to transmit the second data based on the second path when it is determined that the transmission rate of the first data transmitted by the first path satisfies the preset first condition. The delay of the second path is lower than the delay of the first path, the first data is path training data, and the second data is service data.
从上述重定时器中可以看出:由于第二路径具有比第一路径更低的延迟。当重定时器判断第一路径传输第一数据的传输速率满足预置第一条件后,可将第一路径切换至第二路径,即从正常路径退出,进入低延迟路径,以基于低延迟路径进行业务数据传输。因此,通过路径切换,基于第二路径传输业务数据,能够有效降低延迟,以满足不同业务场景的需求。It can be seen from the above retimer that the second path has a lower delay than the first path. After the retimer judges that the transmission rate of the first data transmitted by the first path meets the preset first condition, the first path can be switched to the second path, that is, exit from the normal path and enter the low-delay path, based on the low-delay path Perform business data transmission. Therefore, through path switching, the transmission of service data based on the second path can effectively reduce the delay to meet the requirements of different service scenarios.
结合本申请实施例的第一方面,在本申请实施例的第一方面的第一种实现方式中,第一数据为训练有序集TS2数据,提高了方案的灵活度和可选择性。With reference to the first aspect of the embodiments of the present application, in the first implementation manner of the first aspect of the embodiments of the present application, the first data is training ordered set TS2 data, which improves the flexibility and selectivity of the solution.
结合本申请实施例的第一方面的第一种实现方式,在本申请实施例的第一方面的第二种实现方式中,预置第一条件包括:传输速率等于预置速率,提高了方案的灵活度和可选择性。In combination with the first implementation manner of the first aspect of the embodiments of the present application, in the second implementation manner of the first aspect of the embodiments of the present application, the preset first condition includes: the transmission rate is equal to the preset rate, which improves the solution Flexibility and selectivity.
结合本申请实施例的第一方面的第二种实现方式,在本申请实施例的第一方面的第三种实现方式中,预置第一条件还包括:TS2数据不具备速率切换的请求、不具备进入环回状态的请求和不具备进入禁止状态的请求,提高了方案的灵活度和可选择性。In combination with the second implementation manner of the first aspect of the embodiments of the present application, in the third implementation manner of the first aspect of the embodiments of the present application, the preset first condition further includes: TS2 data does not have a rate switching request, There is no request to enter the loopback state and no request to enter the prohibited state, which improves the flexibility and selectivity of the scheme.
结合本申请实施例的第一方面、本申请实施例的第一方面的第一种至第三种实现方式 中的任意一种,在本申请实施例的第一方面的第四种实现方式中,该装置还包括:用于接收第一数据和第二数据的接收器,用于发送第一数据和第二数据的接收器,第一路径耦合至接收器和发送器,第一路径还连接到控制器,第二路径耦合至接收器和发送器;In combination with the first aspect of the embodiments of the present application and any one of the first to third implementation manners of the first aspect of the embodiments of the present application, in the fourth implementation manner of the first aspect of the embodiments of the present application , The device further includes: a receiver for receiving the first data and the second data, a receiver for sending the first data and the second data, the first path is coupled to the receiver and the transmitter, and the first path is also connected To the controller, the second path is coupled to the receiver and transmitter;
控制器还用于在确定发送器完成切换准备的情况下,将第一路径设为不可用状态,并将第二路径设为可用状态,以基于第二路径传输第二数据,提高了方案的灵活度和可选择性。The controller is also used to set the first path to the unavailable state and the second path to the available state when it is determined that the transmitter has completed the handover preparation, so as to transmit the second data based on the second path, which improves the solution Flexibility and selectivity.
结合本申请实施例的第一方面的第四种实现方式,在本申请实施例的第一方面的第五种实现方式中,在将第一路径切换至第二路径之前,控制器还用于将发送器所能发送的数据修改为伪随机二进制序列PRBS数据,提高了方案的灵活度和可选择性。In combination with the fourth implementation manner of the first aspect of the embodiments of the present application, in the fifth implementation manner of the first aspect of the embodiments of the present application, before switching the first path to the second path, the controller is also used for Modifying the data that the transmitter can send into pseudo-random binary sequence PRBS data improves the flexibility and selectivity of the scheme.
结合本申请实施例的第一方面的第五种实现方式,在本申请实施例的第一方面的第六种实现方式中,在将第一路径切换至第二路径之后,控制器还用于将发送器所能发送的数据修改为接收器接收到的数据,提高了方案的灵活度和可选择性。In combination with the fifth implementation manner of the first aspect of the embodiments of the present application, in the sixth implementation manner of the first aspect of the embodiments of the present application, after the first path is switched to the second path, the controller is also used for Modifying the data that the transmitter can send to the data received by the receiver improves the flexibility and selectivity of the scheme.
结合本申请实施例的第一方面、本申请实施例的第一方面的第一种至第六种实现方式中的任意一种,在本申请实施例的第一方面的第七种实现方式中,在第二路径中,接收器和发送器之间还设置有极性翻转电路;In combination with the first aspect of the embodiments of the present application and any one of the first to sixth implementation manners of the first aspect of the embodiments of the present application, in the seventh implementation manner of the first aspect of the embodiments of the present application , In the second path, a polarity reversal circuit is also provided between the receiver and the transmitter;
在第二路径传输的第二数据存在极性相反的情况下,极性翻转电路用于将第二数据的极性进行翻转,提高了方案的灵活度和可选择性。When the polarity of the second data transmitted by the second path is opposite, the polarity inversion circuit is used to invert the polarity of the second data, which improves the flexibility and selectivity of the solution.
结合本申请实施例的第一方面的第七种实现方式,在本申请实施例的第一方面的第八种实现方式中,控制器还用于在确定第二路径传输的第一数据满足预置第二条件的情况下,将第二路径切换至第一路径,以基于第一路径传输第二数据,提高了方案的灵活度和可选择性。With reference to the seventh implementation manner of the first aspect of the embodiments of the present application, in the eighth implementation manner of the first aspect of the embodiments of the present application, the controller is further configured to determine that the first data transmitted by the second path meets the predetermined requirements. When the second condition is set, the second path is switched to the first path to transmit the second data based on the first path, which improves the flexibility and selectivity of the solution.
结合本申请实施例的第一方面的第八种实现方式,在本申请实施例的第一方面的第九种实现方式中,预置第二条件包括:TS2数据具备速率切换的请求、具备均衡重做的请求、具备退出禁止状态的请求或具备退出热复位状态的请求,提高了方案的灵活度和可选择性。In combination with the eighth implementation manner of the first aspect of the embodiments of the present application, in the ninth implementation manner of the first aspect of the embodiments of the present application, the preset second condition includes: TS2 data has a request for rate switching, and has a balance Redo requests, requests with exit prohibited state, or requests with exit hot reset state, improve the flexibility and selectivity of the solution.
结合本申请实施例的第一方面的第九种实现方式,在本申请实施例的第一方面的第十种实现方式中,控制器还用于在确定发送器完成切换准备的情况下,将第二路径设为不可用状态,并将第一路径设为可用状态,以基于第一路径传输第二数据,提高了方案的灵活度和可选择性。In combination with the ninth implementation manner of the first aspect of the embodiments of the present application, in the tenth implementation manner of the first aspect of the embodiments of the present application, the controller is further configured to: The second path is set to an unavailable state, and the first path is set to an available state to transmit the second data based on the first path, which improves the flexibility and selectivity of the solution.
结合本申请实施例的第一方面的第十种实现方式,在本申请实施例的第一方面的第十一种实现方式中,在将第二路径切换至第一路径之前,控制器还用于将发送器所能发送的数据修改为PRBS数据,提高了方案的灵活度和可选择性。In combination with the tenth implementation manner of the first aspect of the embodiments of the present application, in the eleventh implementation manner of the first aspect of the embodiments of the present application, before switching the second path to the first path, the controller also uses In order to modify the data that the transmitter can send into PRBS data, the flexibility and selectivity of the scheme are improved.
结合本申请实施例的第一方面的第十一种实现方式,在本申请实施例的第一方面的第十二种实现方式中,在将第二路径切换至第一路径之后,控制器还用于将发送器所能发送的数据修改为接收器接收到的数据,提高了方案的灵活度和可选择性。With reference to the eleventh implementation manner of the first aspect of the embodiments of the present application, in the twelfth implementation manner of the first aspect of the embodiments of the present application, after switching the second path to the first path, the controller further It is used to modify the data that the transmitter can send to the data received by the receiver, which improves the flexibility and selectivity of the scheme.
本申请实施例的第二方面提供了一种路径切换的方法,该方法通过用于执行重定时的装置实现,装置包括:第一路径、第二路径和控制器;该方法包括:A second aspect of the embodiments of the present application provides a method for path switching, which is implemented by a device for performing retiming. The device includes: a first path, a second path, and a controller; the method includes:
在通过控制器确定第一路径传输的第一数据的传输速率满足预置第一条件的情况下,通过控制器将第一路径切换至第二路径,以基于第二路径传输第二数据,其中,第二路径的延迟比第一路径的延迟低,第一数据为路径训练数据,第二数据为业务数据。When it is determined by the controller that the transmission rate of the first data transmitted by the first path meets the preset first condition, the controller switches the first path to the second path to transmit the second data based on the second path, wherein , The delay of the second path is lower than the delay of the first path, the first data is path training data, and the second data is service data.
从上述方法中可以看出:由于第二路径具有比第一路径更低的延迟。当重定时器判断第一路径传输第一数据的传输速率满足预置第一条件后,可将第一路径切换至第二路径,即从正常路径退出,进入低延迟路径,以基于低延迟路径进行业务数据传输。因此,通过路径切换,基于第二路径传输业务数据,能够有效降低延迟,以满足不同业务场景的需求。It can be seen from the above method: because the second path has a lower delay than the first path. After the retimer judges that the transmission rate of the first data transmitted by the first path meets the preset first condition, the first path can be switched to the second path, that is, exit from the normal path and enter the low-delay path, based on the low-delay path Perform business data transmission. Therefore, through path switching, the transmission of service data based on the second path can effectively reduce the delay to meet the requirements of different service scenarios.
结合本申请实施例的第二方面,在本申请实施例的第二方面的第一种实现方式中,第一数据为训练有序集TS2数据,提高了方案的灵活度和可选择性。With reference to the second aspect of the embodiments of the present application, in the first implementation of the second aspect of the embodiments of the present application, the first data is training ordered set TS2 data, which improves the flexibility and selectivity of the solution.
结合本申请实施例的第二方面的第一种实现方式,在本申请实施例的第二方面的第二种实现方式中,预置第一条件包括:传输速率等于预置速率,提高了方案的灵活度和可选择性。With reference to the first implementation manner of the second aspect of the embodiments of the present application, in the second implementation manner of the second aspect of the embodiments of the present application, the preset first condition includes: the transmission rate is equal to the preset rate, which improves the solution Flexibility and selectivity.
结合本申请实施例的第二方面的第二种实现方式,在本申请实施例的第二方面的第三种实现方式中,预置第一条件还包括:TS2数据不具备速率切换的请求、不具备进入环回状态的请求和不具备进入禁止状态的请求,提高了方案的灵活度和可选择性。In combination with the second implementation manner of the second aspect of the embodiments of the present application, in the third implementation manner of the second aspect of the embodiments of the present application, the preset first condition further includes: TS2 data does not have a request for rate switching, There is no request to enter the loopback state and no request to enter the prohibited state, which improves the flexibility and selectivity of the scheme.
结合本申请实施例的第二方面、本申请实施例的第二方面的第一种至第三种实现方式中的任意一种,在本申请实施例的第二方面的第四种实现方式中,该装置还包括:用于接收第一数据和第二数据的接收器,用于发送第一数据和第二数据的接收器,第一路径耦合至接收器和发送器,第一路径还连接到控制器,第二路径耦合至接收器和发送器;In combination with the second aspect of the embodiments of the present application and any one of the first to third implementation manners of the second aspect of the embodiments of the present application, in the fourth implementation manner of the second aspect of the embodiments of the present application , The device further includes: a receiver for receiving the first data and the second data, a receiver for sending the first data and the second data, the first path is coupled to the receiver and the transmitter, and the first path is also connected To the controller, the second path is coupled to the receiver and transmitter;
通过控制器将第一路径切换至第二路径,以基于第二路径传输第二数据包括:Switching the first path to the second path by the controller to transmit the second data based on the second path includes:
在通过控制器确定发送器完成切换准备的情况下,通过控制器将第一路径设为不可用状态,并将第二路径设为可用状态,以基于第二路径传输第二数据,提高了方案的灵活度和可选择性。When it is determined by the controller that the transmitter has completed the handover preparation, the controller sets the first path to the unavailable state and sets the second path to the available state to transmit the second data based on the second path, which improves the solution Flexibility and selectivity.
结合本申请实施例的第二方面的第四种实现方式,在本申请实施例的第二方面的第五种实现方式中,在通过控制器将第一路径切换至第二路径之前,方法还包括:In combination with the fourth implementation manner of the second aspect of the embodiments of the present application, in the fifth implementation manner of the second aspect of the embodiments of the present application, before the first path is switched to the second path by the controller, the method further include:
通过控制器将发送器所能发送的数据修改为伪随机二进制序列PRBS数据,提高了方案的灵活度和可选择性。The controller modifies the data that the transmitter can send into pseudo-random binary sequence PRBS data, which improves the flexibility and selectivity of the scheme.
结合本申请实施例的第二方面的第五种实现方式,在本申请实施例的第二方面的第六种实现方式中,在通过控制器将第一路径切换至第二路径之后,方法还包括:With reference to the fifth implementation manner of the second aspect of the embodiments of the present application, in the sixth implementation manner of the second aspect of the embodiments of the present application, after the first path is switched to the second path by the controller, the method further include:
通过控制器将发送器所能发送的数据修改为接收器接收到的数据,提高了方案的灵活度和可选择性。The controller modifies the data that the transmitter can send to the data received by the receiver, which improves the flexibility and selectivity of the scheme.
结合本申请实施例的第二方面、本申请实施例的第二方面的第一种至第六种实现方式中的任意一种,在本申请实施例的第二方面的第七种实现方式中,在第二路径中,接收器和发送器之间还设置有极性翻转电路,方法还包括:In combination with the second aspect of the embodiments of the present application and any one of the first to sixth implementation manners of the second aspect of the embodiments of the present application, in the seventh implementation manner of the second aspect of the embodiments of the present application In the second path, a polarity reversal circuit is also provided between the receiver and the transmitter, and the method further includes:
在第二路径传输的第二数据存在极性相反的情况下,通过极性翻转电路将第二数据的极性进行翻转,提高了方案的灵活度和可选择性。When the polarity of the second data transmitted by the second path is reversed, the polarity of the second data is reversed by the polarity reversal circuit, which improves the flexibility and selectivity of the solution.
结合本申请实施例的第二方面的第七种实现方式,在本申请实施例的第二方面的第八种实现方式中,方法还包括:With reference to the seventh implementation manner of the second aspect of the embodiments of the present application, in the eighth implementation manner of the second aspect of the embodiments of the present application, the method further includes:
在通过控制器确定第二路径传输的第一数据满足预置第二条件的情况下,通过控制器将第二路径切换至第一路径,以基于第一路径传输第二数据,提高了方案的灵活度和可选择性。When the controller determines that the first data transmitted by the second path meets the preset second condition, the controller switches the second path to the first path to transmit the second data based on the first path, which improves the solution Flexibility and selectivity.
结合本申请实施例的第二方面的第八种实现方式,在本申请实施例的第二方面的第九种实现方式中,预置第二条件包括:TS2数据具备速率切换的请求、具备均衡重做的请求、具备退出禁止状态的请求或具备退出热复位状态的请求,提高了方案的灵活度和可选择性。In combination with the eighth implementation manner of the second aspect of the embodiments of the present application, in the ninth implementation manner of the second aspect of the embodiments of the present application, the preset second condition includes: TS2 data has a request for rate switching, and has a balance Redo requests, requests with exit prohibited state, or requests with exit hot reset state, improve the flexibility and selectivity of the solution.
结合本申请实施例的第二方面的第九种实现方式,在本申请实施例的第二方面的第十种实现方式中,通过控制器将第二路径切换至第一路径,以基于第一路径传输第二数据包括:In combination with the ninth implementation manner of the second aspect of the embodiments of the present application, in the tenth implementation manner of the second aspect of the embodiments of the present application, the second path is switched to the first path by the controller, so as to be based on the first path. The path transmission of the second data includes:
控制器还用于在确定发送器完成切换准备的情况下,将第二路径设为不可用状态,并将第一路径设为可用状态,以基于第一路径传输第二数据,提高了方案的灵活度和可选择性。The controller is also used to set the second path to an unavailable state and set the first path to an available state when it is determined that the transmitter has completed the handover preparation, so as to transmit the second data based on the first path, which improves the solution Flexibility and selectivity.
结合本申请实施例的第二方面的第十种实现方式,在本申请实施例的第二方面的第十一种实现方式中,在将第二路径切换至第一路径之前,控制器还用于将发送器所能发送的数据修改为PRBS数据,提高了方案的灵活度和可选择性。With reference to the tenth implementation manner of the second aspect of the embodiments of the present application, in the eleventh implementation manner of the second aspect of the embodiments of the present application, before switching the second path to the first path, the controller also uses In order to modify the data that the transmitter can send into PRBS data, the flexibility and selectivity of the scheme are improved.
结合本申请实施例的第二方面的第十一种实现方式,在本申请实施例的第二方面的第十二种实现方式中,在将第二路径切换至第一路径之后,控制器还用于将发送器所能发送的数据修改为接收器接收到的数据,提高了方案的灵活度和可选择性。With reference to the eleventh implementation manner of the second aspect of the embodiments of the present application, in the twelfth implementation manner of the second aspect of the embodiments of the present application, after switching the second path to the first path, the controller further It is used to modify the data that the transmitter can send to the data received by the receiver, which improves the flexibility and selectivity of the scheme.
本申请实施例的第三方面提供了一种用于执行重定时的装置,该装置包括:A third aspect of the embodiments of the present application provides a device for performing retiming, and the device includes:
接收器,用于接收数据;Receiver, used to receive data;
发送器,用于发送数据;Transmitter, used to send data;
第一路径,其耦合至接收器和发送器,第一路径还连接到控制器;The first path is coupled to the receiver and the transmitter, and the first path is also connected to the controller;
第二路径,其耦合至接收器和发送器,用于将接收器接收的数据传输到发送器;The second path, which is coupled to the receiver and the transmitter, is used to transmit the data received by the receiver to the transmitter;
控制器,用于在确定第二路径传输的第一数据满足预置第二条件的情况下,将第二路径切换至第一路径,以基于第一路径传输第二数据,其中,第二路径的延迟比第一路径的延迟低,第一数据为路径训练数据,第二数据为业务数据。The controller is configured to switch the second path to the first path to transmit the second data based on the first path when it is determined that the first data transmitted by the second path meets the preset second condition, where the second path The delay of is lower than the delay of the first path, the first data is path training data, and the second data is service data.
结合本申请实施例的第三方面,在本申请实施例的第三方面的第一种实现方式中,第一数据为训练有序集TS2数据,,提高了方案的灵活度和可选择性。With reference to the third aspect of the embodiments of the present application, in the first implementation manner of the third aspect of the embodiments of the present application, the first data is training ordered set TS2 data, which improves the flexibility and selectivity of the solution.
结合本申请实施例的第三方面的第一种实现方式,在本申请实施例的第三方面的第二种实现方式中,预置第二条件包括:TS2数据具备速率切换的请求、具备均衡重做的请求、具备退出禁止状态的请求或具备退出热复位状态的请求,提高了方案的灵活度和可选择性。In combination with the first implementation manner of the third aspect of the embodiments of the present application, in the second implementation manner of the third aspect of the embodiments of the present application, the preset second condition includes: TS2 data has a request for rate switching, and has a balance Redo requests, requests with exit prohibited state, or requests with exit hot reset state, improve the flexibility and selectivity of the solution.
结合本申请实施例的第三方面的第二种实现方式,在本申请实施例的第三方面的第三种实现方式中,装置还包括:用于接收第一数据和第二数据的接收器,用于发送第一数据 和第二数据的接收器,第一路径耦合至接收器和发送器,第一路径还连接到控制器,第二路径耦合至接收器和发送器;With reference to the second implementation manner of the third aspect of the embodiments of the present application, in the third implementation manner of the third aspect of the embodiments of the present application, the device further includes: a receiver for receiving the first data and the second data , A receiver for transmitting the first data and the second data, the first path is coupled to the receiver and the transmitter, the first path is also connected to the controller, and the second path is coupled to the receiver and the transmitter;
控制器还用于在确定发送器完成切换准备的情况下,将第二路径设为不可用状态,并将第一路径设为可用状态,以基于第一路径传输第二数据,提高了方案的灵活度和可选择性。The controller is also used to set the second path to an unavailable state and set the first path to an available state when it is determined that the transmitter has completed the handover preparation, so as to transmit the second data based on the first path, which improves the solution Flexibility and selectivity.
结合本申请实施例的第三方面的第三种实现方式,在本申请实施例的第三方面的第四种实现方式中,在将第二路径切换至第一路径之前,控制器还用于将发送器所能发送的数据修改为PRBS数据,提高了方案的灵活度和可选择性。In combination with the third implementation manner of the third aspect of the embodiments of the present application, in the fourth implementation manner of the third aspect of the embodiments of the present application, before switching the second path to the first path, the controller is also used for Modifying the data that the transmitter can send into PRBS data improves the flexibility and selectivity of the scheme.
结合本申请实施例的第三方面的第三种实现方式或第四种实现方式,在本申请实施例的第三方面的第五种实现方式中,在将第二路径切换至第一路径之后,控制器还用于将发送器所能发送的数据修改为接收器接收到的数据,提高了方案的灵活度和可选择性。In combination with the third implementation manner or the fourth implementation manner of the third aspect of the embodiments of the present application, in the fifth implementation manner of the third aspect of the embodiments of the present application, after the second path is switched to the first path , The controller is also used to modify the data that the transmitter can send to the data received by the receiver, which improves the flexibility and selectivity of the scheme.
本申请的第四方面还提供了一种路径切换的方法,该方法通过用于执行重定时的装置实现,装置包括:第一路径,第二路径和控制器;该方法包括:The fourth aspect of the present application also provides a method for path switching, which is implemented by a device for performing retiming. The device includes: a first path, a second path, and a controller; the method includes:
在通过控制器确定第二路径传输的第一数据满足预置第二条件的情况下,通过控制器将第二路径切换至第一路径,以基于第一路径传输第二数据,其中,第二路径的延迟比第一路径的延迟低,第一数据为路径训练数据,第二数据为业务数据。When it is determined by the controller that the first data transmitted by the second path meets the preset second condition, the controller switches the second path to the first path to transmit the second data based on the first path, where the second path The delay of the path is lower than the delay of the first path, the first data is path training data, and the second data is service data.
结合本申请实施例的第四方面,在本申请实施例的第四方面的第一种实现方式中,第一数据为训练有序集TS2数据,,提高了方案的灵活度和可选择性。With reference to the fourth aspect of the embodiments of the present application, in the first implementation manner of the fourth aspect of the embodiments of the present application, the first data is training ordered set TS2 data, which improves the flexibility and selectivity of the solution.
结合本申请实施例的第四方面的第一种实现方式,在本申请实施例的第四方面的第二种实现方式中,预置第二条件包括:TS2数据具备速率切换的请求、具备均衡重做的请求、具备退出禁止状态的请求或具备退出热复位状态的请求,提高了方案的灵活度和可选择性。In combination with the first implementation manner of the fourth aspect of the embodiments of the present application, in the second implementation manner of the fourth aspect of the embodiments of the present application, the preset second condition includes: TS2 data has a request for rate switching, and has a balance Redo requests, requests with exit prohibited state, or requests with exit hot reset state, improve the flexibility and selectivity of the solution.
结合本申请实施例的第四方面的第二种实现方式,在本申请实施例的第四方面的第三种实现方式中,装置还包括:用于接收第一数据和第二数据的接收器,用于发送第一数据和第二数据的接收器,第一路径耦合至接收器和发送器,第一路径还连接到控制器,第二路径耦合至接收器和发送器;With reference to the second implementation manner of the fourth aspect of the embodiments of the present application, in the third implementation manner of the fourth aspect of the embodiments of the present application, the device further includes: a receiver for receiving the first data and the second data , A receiver for transmitting the first data and the second data, the first path is coupled to the receiver and the transmitter, the first path is also connected to the controller, and the second path is coupled to the receiver and the transmitter;
通过控制器将第二路径切换至第一路径,以基于第一路径传输第二数据包括:Switching the second path to the first path by the controller to transmit the second data based on the first path includes:
在通过控制器确定发送器完成切换准备的情况下,通过控制器将第二路径设为不可用状态,并将第一路径设为可用状态,以基于第一路径传输第二数据,提高了方案的灵活度和可选择性。When it is determined by the controller that the transmitter has completed the handover preparation, the second path is set to the unavailable state by the controller, and the first path is set to the available state to transmit the second data based on the first path, which improves the solution Flexibility and selectivity.
结合本申请实施例的第四方面的第三种实现方式,在本申请实施例的第四方面的第四种实现方式中,在通过控制器将第二路径切换至第一路径之前,该方法还包括:In combination with the third implementation manner of the fourth aspect of the embodiments of the present application, in the fourth implementation manner of the fourth aspect of the embodiments of the present application, before the second path is switched to the first path by the controller, the method Also includes:
通过控制器将发送器所能发送的数据修改为PRBS数据,提高了方案的灵活度和可选择性。The data that can be sent by the transmitter is modified into PRBS data through the controller, which improves the flexibility and selectivity of the scheme.
结合本申请实施例的第四方面的第三种实现方式或第四种实现方式,在本申请实施例的第四方面的第五种实现方式中,在通过控制器将第二路径切换至第一路径之后,方法还包括:In combination with the third implementation manner or the fourth implementation manner of the fourth aspect of the embodiments of the present application, in the fifth implementation manner of the fourth aspect of the embodiments of the present application, the second path is switched to the second path through the controller. After a path, the method also includes:
通过控制器将发送器所能发送的数据修改为接收器接收到的数据,提高了方案的灵活度和可选择性。The controller modifies the data that the transmitter can send to the data received by the receiver, which improves the flexibility and selectivity of the scheme.
本申请实施例的第五方面还提供了一种PCIE系统,该PCIE系统包括:The fifth aspect of the embodiments of the present application also provides a PCIE system, which includes:
第一PCIE设备;The first PCIE device;
第二PCIE设备;The second PCIE device;
如第一方面以及第三方面中的任意一项的用于执行重定时的装置,其耦合至第一PCIE设备和第二PCIE设备,以第一PCIE设备和第二PCIE设备之间提供两个方向上的数据流。The apparatus for performing retiming as in any one of the first aspect and the third aspect, which is coupled to the first PCIE device and the second PCIE device, so that two PCIE devices are provided between the first PCIE device and the second PCIE device. Data flow in the direction.
本申请实施例提供了一种用于执行重定时的装置以及路径切换的方法,其中,该装置包括:第一路径,第二路径和控制器,控制器用于在确定第一路径传输的第一数据的传输速率满足预置第一条件的情况下,将第一路径切换至第二路径,以基于第二路径传输第二数据,其中,第二路径的延迟比第一路径的延迟低,第一数据为路径训练数据,第二数据为业务数据。上述装置中,控制器在判断第一路径传输第一数据的传输速率满足预置第一条件后,可以将当前使用的第一路径切换至第二路径,以通过第二路径传输第二数据,由于第二路径的延迟比第一路径的延迟低,故基于第二路径传输业务数据,能够有效降低延迟,以满足不同业务场景的需求。An embodiment of the present application provides a device for performing retiming and a method for path switching, where the device includes: a first path, a second path, and a controller, and the controller is used to determine the first path to transmit in the first path. When the data transmission rate meets the preset first condition, the first path is switched to the second path to transmit the second data based on the second path, where the delay of the second path is lower than the delay of the first path, One data is path training data, and the second data is business data. In the above device, the controller can switch the currently used first path to the second path to transmit the second data through the second path after judging that the transmission rate of the first data transmitted by the first path satisfies the preset first condition, Since the delay of the second path is lower than the delay of the first path, the transmission of service data based on the second path can effectively reduce the delay to meet the requirements of different service scenarios.
附图说明Description of the drawings
图1为本申请实施例提供的PCIE系统的一个结构示意图;FIG. 1 is a schematic structural diagram of a PCIE system provided by an embodiment of the application;
图2为本申请实施例提供的重定时器的一个结构示意图;FIG. 2 is a schematic structural diagram of a retimer provided by an embodiment of the application;
图3为本申请实施例提供的重定时器的另一结构示意图;FIG. 3 is a schematic diagram of another structure of a retimer provided by an embodiment of the application;
图4为本申请实施例提供的重定时器的另一结构示意图;FIG. 4 is a schematic diagram of another structure of a retimer provided by an embodiment of the application;
图5为本申请实施例提供的路径切换的方法的一个流程示意图。FIG. 5 is a schematic flowchart of a path switching method provided by an embodiment of the application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行详细描述。The technical solutions in the embodiments of the present application will be described in detail below in conjunction with the drawings in the embodiments of the present application.
本申请实施例可应用于基于PCIE标准进行设置的PCIE系统中,图1为本申请实施例提供的PCIE系统的一个结构示意图,如图1所示,该PCIE系统包括:第一PCIE设备、第二PCIE设备和用于执行重定时的装置,其中,第一PCIE设备和第二PCIE可以为个人电脑、服务器和数据中心等等,此处不做具体限制,而用于执行重定时的装置可以为重定时器,两台PCIE设备可以耦合至一个或多个重定时器(图1中仅示出一个重定时器的情况)。重定时器为两台PCIE设备提供链路(路径),以使得两台PCIE设备之间可以进行通信,实现信息交互。The embodiment of this application can be applied to a PCIE system set based on the PCIE standard. FIG. 1 is a schematic structural diagram of the PCIE system provided by an embodiment of this application. As shown in FIG. 1, the PCIE system includes: a first PCIE device, a first PCIE device, and a second PCIE device. Two PCIE equipment and a device for performing retiming, where the first PCIE device and the second PCIE can be personal computers, servers, data centers, etc., and there is no specific limitation here, but the device for performing retiming can be To retimer, two PCIE devices can be coupled to one or more retimers (only one retimer is shown in Figure 1). The retimer provides a link (path) for two PCIE devices, so that the two PCIE devices can communicate and realize information exchange.
图2为本申请实施例提供的重定时器的一个结构示意图,请参阅图2,该重定时器包括:接收器201,发送器202和控制器203,其中,接收器201可从第一PCIE设备接收数据,控制器203可对接收器201接收的数据进行相应的处理,发送器202可将处理后的数据发送至第二PCIE设备。更进一步地,该重定时器还包括:第一路径204(正常路径)和第二路径205(低延迟路径),其中,第一路径204耦合至接收器201和发送器202,第一路径204还连接到控制器203。第二路径205耦合至接收器201和发送器202。FIG. 2 is a schematic structural diagram of the retimer provided by the embodiment of the application. Please refer to FIG. 2. The retimer includes a receiver 201, a transmitter 202, and a controller 203. The receiver 201 can start from the first PCIE The device receives the data, the controller 203 can perform corresponding processing on the data received by the receiver 201, and the transmitter 202 can send the processed data to the second PCIE device. Furthermore, the retimer further includes: a first path 204 (normal path) and a second path 205 (low delay path), wherein the first path 204 is coupled to the receiver 201 and the transmitter 202, and the first path 204 Also connected to the controller 203. The second path 205 is coupled to the receiver 201 and the transmitter 202.
当两台PCIE设备基于第一路径204进行数据传输时,接收器201在接收到来自第一PCIE设备的数据后,先将数据发送至控制器203进行处理,发送器202再将处理后的数据发送至第二PCIE设备,故第一路径204的延迟包含接收器201、控制器203和发送器202的延迟。然而,第二路径205中不包含控制器203,当基于第二路径205进行数据传输时,数据不需经过控制器203的复杂处理,来自第一PCIE设备的数据经由接收器201后,发送器202可直接将数据发送至第二PCIE设备,故第二路径205的延迟仅包含接收器201和发送器202的延迟,即第二路径205具有比第一路径204更低的延迟。When two PCIE devices perform data transmission based on the first path 204, the receiver 201 first sends the data to the controller 203 for processing after receiving the data from the first PCIE device, and the transmitter 202 then transmits the processed data It is sent to the second PCIE device, so the delay of the first path 204 includes the delays of the receiver 201, the controller 203, and the transmitter 202. However, the second path 205 does not include the controller 203. When data is transmitted based on the second path 205, the data does not need to be processed by the controller 203. After the data from the first PCIE device passes through the receiver 201, the transmitter 202 can directly send data to the second PCIE device, so the delay of the second path 205 only includes the delays of the receiver 201 and the transmitter 202, that is, the second path 205 has a lower delay than the first path 204.
应理解,上述例子中,第一PCIE设备作为发送数据的设备,第二PCIE作为接收数据的设备,在一种可能实现的方式中,第二PCIE设备可作为发送数据的设备,第一PCIE设备可作为接收数据的设备。It should be understood that in the above example, the first PCIE device is used as a device for sending data, and the second PCIE device is used as a device for receiving data. In a possible implementation manner, the second PCIE device can be used as a device for sending data, and the first PCIE device Can be used as a device for receiving data.
基于PCIE标准,当PCIE系统处于正常工作状态(即L0状态)时,若路径状态发生某个错误或某种需求(例如路径状态发生变化),则系统可从L0状态进入恢复状态(recovery状态),以进行路径重训练。在路径重训练的过程中,重定时器可进行第一路径204和第二路径205之间的切换。Based on the PCIE standard, when the PCIE system is in the normal working state (that is, the L0 state), if an error or a certain demand occurs in the path state (for example, the path state changes), the system can enter the recovery state (recovery state) from the L0 state , To retrain the path. During the path retraining process, the retimer can switch between the first path 204 and the second path 205.
重定时器所进行的路径切换包括两种情况,一种情况是进入低延迟路径,即从第一路径204进入第二路径205,另一种情况是退出低延迟路径,即从第二路径205进入第一路径204,以下将先对进入低延迟路径的情况进行介绍。The path switching performed by the retimer includes two situations. One is to enter the low-delay path, that is, from the first path 204 to the second path 205, and the other is to exit the low-delay path, that is, from the second path 205. Entering the first path 204, the case of entering the low-delay path will be introduced first.
从如图2所示,设PCIE系统当前用于传输数据的路径为第一路径204,当PCIE系统从L0状态进入recovery状态时,重定时器则可进行路径切换。在路径重训练的阶段时,PCIE系统可通过第一路径传输第一数据(即路径训练数据),以实现路径重训练。重定时器的控制器203在确定第一路径204传输第一数据的传输速率满足预置第一条件的情况下,将第一路径204切换至第二路径205,此时,PCIE系统当前用于传输数据的路径则改为第二路径205,,故在后续的阶段可基于第二路径205传输第二数据,即业务数据。As shown in FIG. 2, suppose that the path currently used by the PCIE system to transmit data is the first path 204. When the PCIE system enters the recovery state from the L0 state, the retimer can switch the path. During the path retraining stage, the PCIE system can transmit the first data (that is, path training data) through the first path to implement path retraining. The controller 203 of the retimer switches the first path 204 to the second path 205 when it determines that the transmission rate of the first path 204 to transmit the first data satisfies the preset first condition. At this time, the PCIE system is currently used for The data transmission path is changed to the second path 205, so the second data, that is, service data, can be transmitted based on the second path 205 in the subsequent stage.
控制器203在确定传输速率是否满足预置第一条件的情况下,即确定PCIE系统满足进入第二路径205的预置第一条件的情况下,则可将第一路径204切换至第二路径205,以通过第二路径205传输第二数据,由于第二路径205中不包含控制器203,因此,接收器201接收到数据后,数据不需经过控制器203的复杂处理,可直接通过发送器202进行转发,能够有效降低延迟,以满足不同业务场景的需求。When the controller 203 determines whether the transmission rate meets the preset first condition, that is, when it determines that the PCIE system meets the preset first condition for entering the second path 205, it may switch the first path 204 to the second path 205, to transmit the second data through the second path 205. Since the second path 205 does not include the controller 203, after the receiver 201 receives the data, the data does not need to be processed by the controller 203 and can be directly sent The relay 202 performs forwarding, which can effectively reduce the delay to meet the requirements of different business scenarios.
当PCIE系统从L0状态进入recovery状态时,第一PCIE设备和第二PCIE设备之间可基于第一路径,开始传输用于进行路径训练的数据,例如TS1数据,TS2数据等等。当第一PCIE设备和第二PCIE设备之间完成传输TS1数据的阶段后,则进入传输TS2数据的阶段。在一种可能实现的方式中,第一路径204传输的第一数据为TS2数据。具体地,重定时器的控制器203会实时检测接收器201是否接收到TS2数据,若控制器203确定接收器201接收到TS2数据,则会获取PCIE系统当前的传输速率,该速率即为第一路径204传输第一数据的传输速率。控制器203在获取该传输速率后,则可判断该传输速率是否满足预置第一条件,以确定是否能够从第一路径204进入第二路径205。When the PCIE system enters the recovery state from the L0 state, the first PCIE device and the second PCIE device can start to transmit data for path training, such as TS1 data, TS2 data, etc., based on the first path. After the TS1 data transmission stage is completed between the first PCIE device and the second PCIE device, the TS2 data transmission stage is entered. In a possible implementation manner, the first data transmitted by the first path 204 is TS2 data. Specifically, the controller 203 of the retimer will detect in real time whether the receiver 201 has received TS2 data. If the controller 203 determines that the receiver 201 has received TS2 data, it will obtain the current transmission rate of the PCIE system, which is the first A path 204 transmits the transmission rate of the first data. After acquiring the transmission rate, the controller 203 can determine whether the transmission rate satisfies the preset first condition to determine whether the second path 205 can be entered from the first path 204.
为了从第一路径204进入第二路径205,控制器203需判断第一路径204传输第一数 据的传输速率是否满足预置第一条件,该预置第一条件可根据实际需求进行设置。在一种可能实现的方式中,预置第一条件包括:传输速率等于预置速率(为提前设定的速率)。更进一步地,预置第一条件还包括:TS2数据不具备速率切换的请求、不具备进入环回状态的请求和不具备进入禁止状态的请求。具体地,控制器203可对TS2数据和传输速率进行分析,若控制器203确定TS2数据中不具备速率切换的请求、进入环回状态的请求和进入禁止状态的请求,且传输速率等于预置速率,则确定PCIE系统满足进入第二路径205的预置第一条件。In order to enter the second path 205 from the first path 204, the controller 203 needs to determine whether the transmission rate of the first data transmitted by the first path 204 meets a preset first condition, which can be set according to actual needs. In a possible implementation manner, the preset first condition includes: the transmission rate is equal to the preset rate (a rate set in advance). Furthermore, the preset first condition further includes: TS2 data does not have a request for rate switching, does not have a request to enter a loopback state, and does not have a request to enter a prohibited state. Specifically, the controller 203 can analyze the TS2 data and the transmission rate. If the controller 203 determines that the TS2 data does not have the request for rate switching, the request for entering the loopback state, and the request for entering the prohibited state, and the transmission rate is equal to the preset Rate, it is determined that the PCIE system satisfies the preset first condition for entering the second path 205.
控制器203在确定PCIE系统满足进入第二路径的预置第一条件后,则可以进行第一路径204和第二路径205之间的切换。在一种可能实现的方式中,控制器203可先将发送器202所能发送的数据修改为PRBS数据,由于发送器202所能发送的数据的类型发生变化,因此,TS2数据的发送受到限制。在控制器203确定发送器完成切换准备后,控制器203将第一路径204设为不可用状态,将第二路径205设为可用状态,以完成第一路径204和第二路径205之间的切换。进入第二路径205后,控制器203再将发送器202所能发送的数据修改为接收器201接收到的数据,故后续无论接收器201接收到哪种类型的数据(例如后续第一PCIE设备与第二PCIE设备之间协商所用的数据,以及第一PCIE设备与第二PCIE设备之间传输的业务数据等等),均可通过第二路径205进行传输。为了便于理解前述过程,以下结合图2对前述前路切换过程做进一步的介绍,如图2所示,重定时器还包括数据选择器(multiplexer,MUX)206,MUX206的输入端耦合至第一路径204和第二路径205,其输出端耦合至发送器202,值得注意的是,MUX206可用于第一路径204和第二路径205之间的切换。具体地,控制器203在确定PCIE系统满足预置第一条件后,可向发送器202发送进入低延迟请求,并将发送器202所能发送的数据修改为PRBS数据。发送器202基于进入低延迟请求,可进行切换准备(例如将自身状态从正常状态切换为低延迟状态),完成准备后,向控制器203反馈准备完成应答,控制器203接收到该应答后,则向MUX206发出第一路径切换请求,使得MUX206将第一路径204设置为不可用状态,将第二路径205设置为可用状态。控制器203接收到MUX206发送的切换完成应答后,则将发送器202所能发送的数据修改为接收器201接收到的数据,以基于第二路径205传输数据。The controller 203 can switch between the first path 204 and the second path 205 after determining that the PCIE system meets the preset first condition for entering the second path. In a possible implementation manner, the controller 203 can first modify the data that the transmitter 202 can send to PRBS data. Because the type of data that the transmitter 202 can send has changed, the transmission of TS2 data is restricted. . After the controller 203 determines that the transmitter is ready to switch, the controller 203 sets the first path 204 to an unavailable state and sets the second path 205 to an available state to complete the connection between the first path 204 and the second path 205 Switch. After entering the second path 205, the controller 203 then modifies the data that the transmitter 202 can send to the data received by the receiver 201, so no matter what type of data the receiver 201 receives (for example, the subsequent first PCIE device The data used for negotiation with the second PCIE device, and the service data transmitted between the first PCIE device and the second PCIE device, etc., can be transmitted through the second path 205. In order to facilitate the understanding of the foregoing process, the foregoing forward switching process will be further introduced with reference to FIG. 2. As shown in FIG. 2, the retimer also includes a data selector (multiplexer, MUX) 206, and the input end of the MUX 206 is coupled to the first The output ends of the path 204 and the second path 205 are coupled to the transmitter 202. It is worth noting that the MUX 206 can be used for switching between the first path 204 and the second path 205. Specifically, after determining that the PCIE system meets the preset first condition, the controller 203 may send a low-latency entry request to the transmitter 202, and modify the data that the transmitter 202 can send into PRBS data. The transmitter 202 can prepare for switching based on the low-latency entry request (for example, switch its own state from the normal state to the low-latency state). After the preparation is completed, it feeds back the preparation completion response to the controller 203. After the controller 203 receives the response, Then, the first path switching request is sent to the MUX 206, so that the MUX 206 sets the first path 204 to an unavailable state and sets the second path 205 to an available state. After the controller 203 receives the switching completion response sent by the MUX 206, it modifies the data that the transmitter 202 can send to the data received by the receiver 201 to transmit the data based on the second path 205.
当PCIE系统从第一路径204切换至第二路径205后,则可进行基于PCIE协议的协商阶段,在该阶段中,第一PCIE设备和第二PCIE设备之间可通过第二路径205进行协商,具体可参考PCIE协议,此处不再赘述。当PCIE系统完成协商后,则进入LO状态,则两台PCIE设备可通过第二路径205进行第二数据(业务数据)的传输,以完成业务需求。After the PCIE system is switched from the first path 204 to the second path 205, the negotiation phase based on the PCIE protocol can be carried out. In this phase, the first PCIE device and the second PCIE device can negotiate through the second path 205 For details, please refer to the PCIE protocol, which will not be repeated here. After the PCIE system completes the negotiation, it enters the LO state, and the two PCIE devices can transmit the second data (service data) through the second path 205 to complete the service requirements.
在一种可能实现的方式中,如图2所示,第二路径205中还设置有极性翻转电路207,在第二路径205中,极性翻转电路207的输入端耦合至接收器201,其输出端耦合至发送器202,极性翻转电路207可对业务数据的极性进行翻转。在一般情况下,发送器202向第二PCIE设备发送的业务数据通常需要携带正的极性,若接收器201接收到的来自第一PCIE设备的业务数据携带负的极性,即业务数据存在极性相反的情况,则需要进行极性翻转,使得业务数据获得正确的极性。具体地,在第二路径205中,接收器201接收到业务数据后,控制器203可对业务数据的极性进行检测,若控制器203确定业务数据的极性相 反,则向极性翻转电路207发送极性翻转请求,基于该请求,极性翻转电路207可将来自接收器201的业务数据进行极性翻转,并将翻转后的业务数据发送至发送器202,以使得发送器202转发该翻转后的业务数据。In a possible implementation manner, as shown in FIG. 2, a polarity reversal circuit 207 is further provided in the second path 205. In the second path 205, the input terminal of the polarity reversal circuit 207 is coupled to the receiver 201, The output terminal is coupled to the transmitter 202, and the polarity inversion circuit 207 can invert the polarity of the service data. In general, the service data sent by the transmitter 202 to the second PCIE device usually needs to carry a positive polarity. If the service data from the first PCIE device received by the receiver 201 carries a negative polarity, that is, the service data exists In the case of opposite polarity, polarity reversal is required to make the business data obtain the correct polarity. Specifically, in the second path 205, after the receiver 201 receives the service data, the controller 203 can detect the polarity of the service data. If the controller 203 determines that the polarity of the service data is opposite, it will switch to the polarity inversion circuit. 207 sends a polarity reversal request. Based on the request, the polarity reversal circuit 207 can reverse the polarity of the service data from the receiver 201, and send the reversed service data to the transmitter 202, so that the transmitter 202 forwards the service data. The business data after the flip.
以上是对进入低延迟路径的情况所进行的介绍,以下将对退出低延迟路径的情况进行具体说明。The above is an introduction to the case of entering the low-delay path, and the following will specifically explain the case of exiting the low-delay path.
PCIE系统进入低延迟路径后(即当前用于传输数据的路径为第二路径205),在PCIE系统经过协商后,系统处于LO状态时可进行业务数据的传输。若PCIE系统从L0状态再次进入recovery状态时,则需要再次进行路径重训练,此时,PCIE系统当前用于传输数据的路径为第二路径205,第一PCIE设备和第二PCIE设备之间可基于第二路径205,再次传输用于路径训练的数据,例如TS1数据,TS2数据等等。当第一PCIE设备和第二PCIE设备之间完成传输TS1数据的阶段后,则进入传输TS2数据的阶段,此时,重定时器的控制器203会实时检测接收器201是否接收到TS2数据,若控制器203确定接收器201接收到TS2数据,则判断第二路径传输的TS2数据(第一数据)是否满足预置第二条件,以确定是否能够从第二路径205进入第一路径204。After the PCIE system enters the low-latency path (that is, the path currently used for data transmission is the second path 205), after the PCIE system is negotiated, the service data can be transmitted when the system is in the LO state. If the PCIE system enters the recovery state again from the L0 state, the path retraining needs to be performed again. At this time, the path currently used by the PCIE system to transmit data is the second path 205, and the first PCIE device and the second PCIE device can communicate with each other. Based on the second path 205, data used for path training, such as TS1 data, TS2 data, and so on, are transmitted again. When the TS1 data transmission stage is completed between the first PCIE device and the second PCIE device, the TS2 data transmission stage is entered. At this time, the retimer controller 203 will detect in real time whether the receiver 201 has received TS2 data. If the controller 203 determines that the receiver 201 has received the TS2 data, it determines whether the TS2 data (first data) transmitted by the second path meets the preset second condition to determine whether it can enter the first path 204 from the second path 205.
若重定时器的控制器203确定TS2数据满足预置第二条件时,则控制器203可将第二路径205切换至第一路径204,使得PCIE系统在完成路径切换后,以第一路径204作为当前使用的路径进行业务数据(第二数据)的传输,即从低延迟路径进入正常路径。If the controller 203 of the retimer determines that the TS2 data meets the preset second condition, the controller 203 can switch the second path 205 to the first path 204, so that the PCIE system uses the first path 204 after the path switching is completed. The service data (second data) is transmitted as the currently used path, that is, the low-delay path enters the normal path.
为了从第二路径205进入第一路径204,控制器203需判断TS2数据是否满足预置第二条件,该预置第二条件可根据实际需求进行设置。在一种可能实现的方式中,预置第二条件包括:TS2数据具备速率切换的请求或均衡重做的请求或退出禁止状态的请求或退出热复位状态的请求。具体地,控制器203可对TS2数据进行分析,若控制器203确定TS2数据中具备速率切换请求或均衡重做请求或退出禁止状态请求或退出热复位状态请求,则确定PCIE系统满足进入第一路径204的预置第二条件。In order to enter the first path 204 from the second path 205, the controller 203 needs to determine whether the TS2 data meets the preset second condition, and the preset second condition can be set according to actual needs. In a possible implementation manner, the preset second condition includes: the TS2 data has a request for rate switching or a request for equalization redo or a request for exiting the prohibited state or a request for exiting the hot reset state. Specifically, the controller 203 can analyze the TS2 data. If the controller 203 determines that the TS2 data has a rate switching request or a balance redo request or a request to exit the prohibition state or a request to exit the hot reset state, it determines that the PCIE system meets the requirements of entering the first state. The preset second condition of the path 204.
控制器203在确定PCIE系统满足进入第一路径204的预置第二条件后,则可以进行第一路径204和第二路径205之间的切换。在一种可能实现的方式中,控制器203可先将发送器202所能发送的数据修改为PRBS数据,由于发送器202所能发送的数据的类型发生变化,因此,TS2数据的发送受到限制。在控制器203确定发送器202完成切换准备后,控制器203将第二路径205设为不可用状态,将第一路径204设为可用状态,以完成第一路径204和第二路径205之间的切换。进入第一路径204后,控制器203再将发送器202所能发送的数据修改为接收器201接收到的数据,故后续无论接收器201接收到哪种类型的数据(例如后续第一PCIE设备与第二PCIE设备之间协商所用的数据,以及第一PCIE设备与第二PCIE设备之间传输的业务数据等等),均可通过第一路径204进行传输。具体的,控制器203在确定PCIE系统满足预置第二条件后,可向发送器202发送退出低延迟请求,并将发送器202所能发送的数据修改为PRBS数据。发送器202基于退出低延迟请求,可进行切换准备(例如将自身状态从低延迟状态切换为正常状态),完成准备后,向控制器203反馈准备完成应答,控制器203接收到该应答后,则向MUX206发出第二路径切换请求,使得MUX206将第二路径205设置为不可用状态,将第一路径204设置为可用状态。控制器 203接收到MUX206发送的切换完成应答后,则将发送器202所能发送的数据修改为接收器接收到的数据,以基于第一路径204传输数据。After the controller 203 determines that the PCIE system satisfies the preset second condition for entering the first path 204, it may switch between the first path 204 and the second path 205. In a possible implementation manner, the controller 203 can first modify the data that the transmitter 202 can send to PRBS data. Because the type of data that the transmitter 202 can send has changed, the transmission of TS2 data is restricted. . After the controller 203 determines that the transmitter 202 is ready to switch, the controller 203 sets the second path 205 to an unavailable state and sets the first path 204 to an available state to complete the connection between the first path 204 and the second path 205 Switch. After entering the first path 204, the controller 203 then modifies the data that the transmitter 202 can send to the data received by the receiver 201, so no matter what type of data the receiver 201 receives (for example, the subsequent first PCIE device The data used for negotiation with the second PCIE device, the service data transmitted between the first PCIE device and the second PCIE device, etc., can be transmitted through the first path 204. Specifically, after determining that the PCIE system meets the preset second condition, the controller 203 may send a low-latency exit request to the transmitter 202, and modify the data that the transmitter 202 can send into PRBS data. The transmitter 202 can prepare for switching based on the low-latency exit request (for example, switch its own state from the low-latency state to the normal state). After completing the preparation, it will feed back the preparation completion response to the controller 203. After the controller 203 receives the response, Then, a second path switching request is issued to the MUX 206, so that the MUX 206 sets the second path 205 to an unavailable state and sets the first path 204 to an available state. After the controller 203 receives the switching completion response sent by the MUX 206, it modifies the data that the transmitter 202 can send to the data received by the receiver, so as to transmit the data based on the first path 204.
当PCIE系统从第二路径205切换至第一路径204后,则可进行基于PCIE协议的协商阶段,在该阶段中,第一PCIE设备和第二PCIE设备之间可通过第一路径204进行协商,具体可参考PCIE协议,此处不再赘述。当PCIE系统完成协商后,则进入LO状态,则两台PCIE设备可通过第一路径204进行业务数据的传输,以完成业务需求。After the PCIE system is switched from the second path 205 to the first path 204, the negotiation phase based on the PCIE protocol can be carried out. In this phase, the first PCIE device and the second PCIE device can negotiate through the first path 204 For details, please refer to the PCIE protocol, which will not be repeated here. After the PCIE system completes the negotiation, it enters the LO state, and the two PCIE devices can transmit service data through the first path 204 to complete the service requirements.
值得注意的是,本申请提供的重定时器的控制器203可以多种形式呈现,以下将分别进行介绍:It is worth noting that the retimer controller 203 provided in this application can be presented in various forms, which will be introduced separately as follows:
在一种可能实现的方式中,如图3所示(图3为本申请实施例提供的重定时器的另一结构示意图),重定时器包括接收器201、发送器202和控制器203,其中,控制器203可包括第一物理编码子层(physical coding sub-layer,PCS)2031、一个链路训练状态机(link training and status state machine,LTSSM)2032和第二PCS2033,第一PCS2031的输入端耦合至接收器201,第一PCS2031的输出端耦合至LTSSM2032,第二PCS2033的输入端耦合至LTSSM2032,第二PCS2033的输出端耦合至发送器202。具体地,第一PCS2031用于对接收器201的数据进行解码,LTSSM2032用于对解码后的数据进行处理,第二PCS2033再将处理后的数据进行编码,然后将编码后的数据发送至发送器202。需要说明的是,前述实施例中控制器203所执行的步骤主要由LTSSM2032执行,例如,LTSSM2032可检测接收器201接收到的数据的类型,LTSSM2032还可判断TS2数据和当前数据传输速率是否满足预置第一条件,LTSSM2032还可判断TS2数据是否满足预置第二条件,LTSSM2032还可控制MUX206进行路径切换,LTSSM2032还可修改发送器202所能发送的数据类型,LTSSM2032还可控制极性翻转电路207对业务数据进行极性翻转等等。In a possible implementation manner, as shown in FIG. 3 (FIG. 3 is another structural diagram of the retimer provided in an embodiment of this application), the retimer includes a receiver 201, a transmitter 202, and a controller 203. Wherein, the controller 203 may include a first physical coding sub-layer (PCS) 2031, a link training and status machine (LTSSM) 2032, and a second PCS 2033, the first PCS 2031 The input end is coupled to the receiver 201, the output end of the first PCS 2031 is coupled to the LTSSM 2032, the input end of the second PCS 2033 is coupled to the LTSSM 2032, and the output end of the second PCS 2033 is coupled to the transmitter 202. Specifically, the first PCS2031 is used to decode the data of the receiver 201, the LTSSM2032 is used to process the decoded data, and the second PCS2033 then encodes the processed data, and then sends the encoded data to the transmitter 202. It should be noted that the steps performed by the controller 203 in the foregoing embodiment are mainly performed by the LTSSM2032. For example, the LTSSM2032 can detect the type of data received by the receiver 201, and the LTSSM2032 can also determine whether the TS2 data and the current data transmission rate meet the preset requirements. Set the first condition, LTSSM2032 can also determine whether TS2 data meets the preset second condition, LTSSM2032 can also control MUX206 for path switching, LTSSM2032 can also modify the type of data that the transmitter 202 can send, and LTSSM2032 can also control the polarity reversal circuit 207 Perform polarity reversal on business data and so on.
在一种可能实现的方式中,如图4所示(图4为本申请实施例提供的重定时器的另一结构示意图),重定时器包括接收器201、发送器202和控制器203,其中,控制器203可包括第一2031、多个LTSSM2032(为了方便作图,图4中仅示出两个)和第二PCS2033,第一PCS2031的输入端耦合至接收器201,第一PCS2031的输出端耦合至第一个LTSSM2032,第二PCS2033的输入端耦合至最后一个LTSSM2032,第二PCS2033的输出端耦合至发送器202,多个LTSSM2032依次串联。具体地,第一PCS2031用于对接收器201的数据进行解码,多个LTSSM2032用于对解码后的数据进行处理,第二PCS2033再将处理后的数据进行编码,然后将编码后的数据发送至发送器202。需要说明的是,前述实施例中控制器203所执行的步骤主要由多个LTSSM2032同时执行,多个LTSSM2032所执行的步骤可参考前述实现方式中的相关说明部分,此处不再赘述。In a possible implementation manner, as shown in FIG. 4 (FIG. 4 is another structural schematic diagram of the retimer provided in an embodiment of this application), the retimer includes a receiver 201, a transmitter 202, and a controller 203. Among them, the controller 203 may include a first 2031, a plurality of LTSSM 2032 (for the convenience of drawing, only two are shown in Figure 4) and a second PCS 2033, the input of the first PCS 2031 is coupled to the receiver 201, the first PCS 2031 The output end is coupled to the first LTSSM 2032, the input end of the second PCS 2033 is coupled to the last LTSSM 2032, the output end of the second PCS 2033 is coupled to the transmitter 202, and multiple LTSSM 2032 are connected in series. Specifically, the first PCS2031 is used to decode the data of the receiver 201, multiple LTSSM2032 are used to process the decoded data, the second PCS2033 then encodes the processed data, and then sends the encoded data to Transmitter 202. It should be noted that the steps executed by the controller 203 in the foregoing embodiment are mainly executed by multiple LTSSMs 2032 at the same time. For the steps executed by multiple LTSSMs 2032, please refer to the relevant descriptions in the foregoing implementation manner, which will not be repeated here.
以上是对本申请实施例提供的重定时器所进行的具体说明,以下将对本申请实施例提供的路径切换的方法进行介绍,图5为本申请实施例提供的路径切换的方法的一个流程示意图,请参阅图5,该方法通过图2至图4任意一个实施例所对应的重定时器实现,该方法包括:The above is a specific description of the retimer provided by the embodiment of the present application. The path switching method provided by the embodiment of the present application will be introduced below. FIG. 5 is a schematic flowchart of the path switching method provided by the embodiment of the present application. Please refer to FIG. 5, the method is implemented by the retimer corresponding to any one of the embodiments in FIG. 2 to FIG. 4, and the method includes:
501、在通过控制器确定第一路径传输的第一数据的传输速率满足预置第一条件的情况下,通过控制器将第一路径切换至第二路径,以基于第二路径传输第二数据,其中,第二 路径的延迟比第一路径的延迟低,第一数据为路径训练数据,第二数据为业务数据。501. When it is determined by the controller that the transmission rate of the first data transmitted by the first path meets the preset first condition, switch the first path to the second path by the controller to transmit the second data based on the second path , Where the delay of the second path is lower than the delay of the first path, the first data is path training data, and the second data is service data.
在一种可能实现的方式中,第一数据为训练有序集TS2数据,提高了方案的灵活度和可选择性。In a possible implementation manner, the first data is training ordered set TS2 data, which improves the flexibility and selectivity of the solution.
在一种可能实现的方式中,预置第一条件包括:传输速率等于预置速率,提高了方案的灵活度和可选择性。In a possible implementation manner, the preset first condition includes: the transmission rate is equal to the preset rate, which improves the flexibility and selectivity of the solution.
在一种可能实现的方式中,预置第一条件还包括:TS2数据不具备速率切换的请求、不具备进入环回状态的请求和不具备进入禁止状态的请求,提高了方案的灵活度和可选择性。In a possible implementation, the preset first condition also includes: TS2 data does not have a request for rate switching, does not have a request to enter the loopback state, and does not have a request to enter the prohibited state, which improves the flexibility and flexibility of the solution. Optional.
在一种可能实现的方式中,通过控制器将第一路径切换至第二路径,以基于第二路径传输第二数据包括:In a possible implementation manner, switching the first path to the second path by the controller to transmit the second data based on the second path includes:
在通过控制器确定发送器完成切换准备的情况下,通过控制器将第一路径设为不可用状态,并将第二路径设为可用状态,以基于第二路径传输第二数据,提高了方案的灵活度和可选择性。When it is determined by the controller that the transmitter has completed the handover preparation, the controller sets the first path to the unavailable state and sets the second path to the available state to transmit the second data based on the second path, which improves the solution Flexibility and selectivity.
在一种可能实现的方式中,在通过控制器将第一路径切换至第二路径之前,方法还包括:In a possible implementation manner, before switching the first path to the second path through the controller, the method further includes:
通过控制器将发送器所能发送的数据修改为伪随机二进制序列PRBS数据,提高了方案的灵活度和可选择性。The controller modifies the data that the transmitter can send into pseudo-random binary sequence PRBS data, which improves the flexibility and selectivity of the scheme.
在一种可能实现的方式中,在通过控制器将第一路径切换至第二路径之后,方法还包括:In a possible implementation manner, after the first path is switched to the second path by the controller, the method further includes:
通过控制器将发送器所能发送的数据修改为接收器接收到的数据,提高了方案的灵活度和可选择性。The controller modifies the data that the transmitter can send to the data received by the receiver, which improves the flexibility and selectivity of the scheme.
在一种可能实现的方式中,在第二路径中,接收器和发送器之间还设置有极性翻转电路,方法还包括:In a possible implementation manner, in the second path, a polarity reversal circuit is further provided between the receiver and the transmitter, and the method further includes:
在第二路径传输的第二数据存在极性相反的情况下,通过极性翻转电路将第二数据的极性进行翻转,提高了方案的灵活度和可选择性。When the polarity of the second data transmitted by the second path is reversed, the polarity of the second data is reversed by the polarity reversal circuit, which improves the flexibility and selectivity of the solution.
在一种可能实现的方式中,该方法还包括:In a possible implementation manner, the method further includes:
在通过控制器确定第二路径传输的第一数据满足预置第二条件的情况下,通过控制器将第二路径切换至第一路径,以基于第一路径传输第二数据,提高了方案的灵活度和可选择性。When the controller determines that the first data transmitted by the second path meets the preset second condition, the controller switches the second path to the first path to transmit the second data based on the first path, which improves the solution Flexibility and selectivity.
在一种可能实现的方式中,预置第二条件包括:TS2数据具备速率切换的请求、具备均衡重做的请求、具备退出禁止状态的请求或具备退出热复位状态的请求,提高了方案的灵活度和可选择性。In a possible implementation, the preset second conditions include: TS2 data has a request for rate switching, a request for balanced redo, a request for exiting the prohibited state, or a request for exiting the warm reset state, which improves the solution’s performance Flexibility and selectivity.
在一种可能实现的方式中,通过控制器将第二路径切换至第一路径,以基于第一路径传输第二数据包括:In a possible implementation manner, switching the second path to the first path by the controller to transmit the second data based on the first path includes:
控制器还用于在确定发送器完成切换准备的情况下,将第二路径设为不可用状态,并将第一路径设为可用状态,以基于第一路径传输第二数据,提高了方案的灵活度和可选择性。The controller is also used to set the second path to an unavailable state and set the first path to an available state when it is determined that the transmitter has completed the handover preparation, so as to transmit the second data based on the first path, which improves the solution Flexibility and selectivity.
在一种可能实现的方式中,在将第二路径切换至第一路径之前,控制器还用于将发送器所能发送的数据修改为PRBS数据,提高了方案的灵活度和可选择性。In a possible implementation manner, before switching the second path to the first path, the controller is also used to modify the data that the transmitter can send into PRBS data, which improves the flexibility and selectivity of the solution.
在一种可能实现的方式中,在将第二路径切换至第一路径之后,控制器还用于将发送器所能发送的数据修改为接收器接收到的数据,提高了方案的灵活度和可选择性。In a possible implementation manner, after the second path is switched to the first path, the controller is also used to modify the data that the transmitter can send to the data received by the receiver, which improves the flexibility and flexibility of the solution. Optional.
在本实施例中,由于第二路径中不包含控制器,故第二路径具有比第一路径更低的延迟。当重定时器判断当前数据传输速率满足预置第一条件后,可将第一路径切换至第二路径,即从正常路径退出,进入低延迟路径,以基于低延迟路径进行数据传输。因此,在第二路径中,接收器接收到数据后,数据不需经过控制器的复杂处理,可直接通过发送器进行转发,能够有效降低延迟,以满足不同业务场景的需求。In this embodiment, since the second path does not include a controller, the second path has a lower delay than the first path. When the retimer determines that the current data transmission rate meets the preset first condition, the first path can be switched to the second path, that is, exit from the normal path and enter the low-delay path to perform data transmission based on the low-delay path. Therefore, in the second path, after the receiver receives the data, the data can be directly forwarded through the transmitter without complicated processing by the controller, which can effectively reduce the delay to meet the requirements of different business scenarios.
本申请实施例还提供了一种用于执行重定时的装置,该装置包括:The embodiment of the present application also provides a device for performing retiming, which includes:
接收器,用于接收数据;Receiver, used to receive data;
发送器,用于发送数据;Transmitter, used to send data;
第一路径,其耦合至接收器和发送器,第一路径还连接到控制器;The first path is coupled to the receiver and the transmitter, and the first path is also connected to the controller;
第二路径,其耦合至接收器和发送器,用于将接收器接收的数据传输到发送器;The second path, which is coupled to the receiver and the transmitter, is used to transmit the data received by the receiver to the transmitter;
控制器,用于在确定第二路径传输的第一数据满足预置第二条件的情况下,将第二路径切换至第一路径,以基于第一路径传输第二数据,其中,第二路径的延迟比第一路径的延迟低,第一数据为路径训练数据,第二数据为业务数据。The controller is configured to switch the second path to the first path to transmit the second data based on the first path when it is determined that the first data transmitted by the second path meets the preset second condition, where the second path The delay of is lower than the delay of the first path, the first data is path training data, and the second data is service data.
在一种可能实现的方式中,第一数据为训练有序集TS2数据,,提高了方案的灵活度和可选择性。In a possible implementation manner, the first data is training ordered set TS2 data, which improves the flexibility and selectivity of the solution.
在一种可能实现的方式中,预置第二条件包括:TS2数据具备速率切换的请求、具备均衡重做的请求、具备退出禁止状态的请求或具备退出热复位状态的请求,提高了方案的灵活度和可选择性。In a possible implementation, the preset second conditions include: TS2 data has a request for rate switching, a request for balanced redo, a request for exiting the prohibited state, or a request for exiting the warm reset state, which improves the solution’s performance Flexibility and selectivity.
在一种可能实现的方式中,装置还包括:用于接收第一数据和第二数据的接收器,用于发送第一数据和第二数据的接收器,第一路径耦合至接收器和发送器,第一路径还连接到控制器,第二路径耦合至接收器和发送器;In a possible implementation manner, the device further includes: a receiver for receiving the first data and the second data, a receiver for sending the first data and the second data, the first path is coupled to the receiver and the transmitter The first path is also connected to the controller, and the second path is coupled to the receiver and the transmitter;
控制器还用于在确定发送器完成切换准备的情况下,将第二路径设为不可用状态,并将第一路径设为可用状态,以基于第一路径传输第二数据,提高了方案的灵活度和可选择性。The controller is also used to set the second path to an unavailable state and set the first path to an available state when it is determined that the transmitter has completed the handover preparation, so as to transmit the second data based on the first path, which improves the solution Flexibility and selectivity.
在一种可能实现的方式中,在将第二路径切换至第一路径之前,控制器还用于将发送器所能发送的数据修改为PRBS数据,提高了方案的灵活度和可选择性。In a possible implementation manner, before switching the second path to the first path, the controller is also used to modify the data that the transmitter can send into PRBS data, which improves the flexibility and selectivity of the solution.
在一种可能实现的方式中,在将第二路径切换至第一路径之后,控制器还用于将发送器所能发送的数据修改为接收器接收到的数据,提高了方案的灵活度和可选择性。In a possible implementation manner, after the second path is switched to the first path, the controller is also used to modify the data that the transmitter can send to the data received by the receiver, which improves the flexibility and flexibility of the solution. Optional.
需要说明的是,上述装置的结构以及各部分的连接关系可参考图2至图4所示实施例的重定时器,且该装置的相关说明可参考图2至图4所示实施例中的退出低延迟路径的情况,此处不再赘述。It should be noted that the structure of the above device and the connection relationship of each part can refer to the retimer in the embodiment shown in Figures 2 to 4, and the related description of the device can refer to the in the embodiment shown in Figures 2 to 4 The situation of exiting the low-delay path will not be repeated here.
本申请实施例还提供了一种路径切换的方法,该方法通过图2至图4任意一个实施例所对应的重定时器实现,该方法包括:An embodiment of the present application also provides a method for path switching, which is implemented by a retimer corresponding to any one of the embodiments in FIG. 2 to FIG. 4, and the method includes:
在通过控制器确定第二路径传输的第一数据满足预置第二条件的情况下,通过控制器将第二路径切换至第一路径,以基于第一路径传输第二数据,其中,第二路径的延迟比第一路径的延迟低,第一数据为路径训练数据,第二数据为业务数据。When it is determined by the controller that the first data transmitted by the second path meets the preset second condition, the controller switches the second path to the first path to transmit the second data based on the first path, where the second path The delay of the path is lower than the delay of the first path, the first data is path training data, and the second data is service data.
在一种可能实现的方式中,第一数据为训练有序集TS2数据,,提高了方案的灵活度和可选择性。In a possible implementation manner, the first data is training ordered set TS2 data, which improves the flexibility and selectivity of the solution.
在一种可能实现的方式中,预置第二条件包括:TS2数据具备速率切换的请求、具备均衡重做的请求、具备退出禁止状态的请求或具备退出热复位状态的请求,提高了方案的灵活度和可选择性。In a possible implementation, the preset second conditions include: TS2 data has a request for rate switching, a request for balanced redo, a request for exiting the prohibited state, or a request for exiting the warm reset state, which improves the solution’s performance Flexibility and selectivity.
在一种可能实现的方式中,通过控制器将第二路径切换至第一路径,以基于第一路径传输第二数据包括:In a possible implementation manner, switching the second path to the first path by the controller to transmit the second data based on the first path includes:
在通过控制器确定发送器完成切换准备的情况下,通过控制器将第二路径设为不可用状态,并将第一路径设为可用状态,以基于第一路径传输第二数据,提高了方案的灵活度和可选择性。When it is determined by the controller that the transmitter has completed the handover preparation, the second path is set to the unavailable state by the controller, and the first path is set to the available state to transmit the second data based on the first path, which improves the solution Flexibility and selectivity.
在一种可能实现的方式中,在通过控制器将第二路径切换至第一路径之前,该方法还包括:In a possible implementation manner, before switching the second path to the first path by the controller, the method further includes:
通过控制器将发送器所能发送的数据修改为PRBS数据,提高了方案的灵活度和可选择性。The data that can be sent by the transmitter is modified into PRBS data through the controller, which improves the flexibility and selectivity of the scheme.
在一种可能实现的方式中,在通过控制器将第二路径切换至第一路径之后,方法还包括:In a possible implementation manner, after the second path is switched to the first path by the controller, the method further includes:
通过控制器将发送器所能发送的数据修改为接收器接收到的数据,提高了方案的灵活度和可选择性。The controller modifies the data that the transmitter can send to the data received by the receiver, which improves the flexibility and selectivity of the scheme.
需要说明的是,上述方法的相关说明可参考图2至图4所示实施例中的退出低延迟路径的情况,此处不再赘述。It should be noted that, for the related description of the foregoing method, reference may be made to the case of exiting the low-delay path in the embodiments shown in FIG. 2 to FIG. 4, which will not be repeated here.

Claims (12)

  1. 一种用于执行重定时的装置,其特征在于,所述装置包括:A device for performing retiming, characterized in that the device comprises:
    第一路径;First path
    第二路径;Second path
    控制器,用于在确定所述第一路径传输的第一数据的传输速率满足预置第一条件的情况下,将所述第一路径切换至所述第二路径,以基于所述第二路径传输第二数据,其中,所述第二路径的延迟比所述第一路径的延迟低,所述第一数据为路径训练数据,所述第二数据为业务数据。The controller is configured to switch the first path to the second path based on the second path when it is determined that the transmission rate of the first data transmitted by the first path meets the preset first condition. The path transmits second data, wherein the delay of the second path is lower than the delay of the first path, the first data is path training data, and the second data is service data.
  2. 根据权利要求1所述的装置,其特征在于,所述第一数据为训练有序集TS2数据。The device according to claim 1, wherein the first data is training ordered set TS2 data.
  3. 根据权利要求2所述的装置,其特征在于,所述预置第一条件包括:所述传输速率等于预置速率。The apparatus according to claim 2, wherein the preset first condition comprises: the transmission rate is equal to a preset rate.
  4. 根据权利要求3所述的装置,其特征在于,所述预置第一条件还包括:所述TS2数据不具备速率切换的请求、不具备进入环回状态的请求和不具备进入禁止状态的请求。The device according to claim 3, wherein the preset first condition further comprises: the TS2 data does not have a request for rate switching, does not have a request to enter a loopback state, and does not have a request to enter a prohibited state .
  5. 根据权利要求1至4任意一项所述的装置,其特征在于,所述装置还包括:用于接收所述第一数据和所述第二数据的接收器,用于发送所述第一数据和所述第二数据的接收器,所述第一路径耦合至所述接收器和所述发送器,所述第一路径还连接到所述控制器,所述第二路径耦合至所述接收器和所述发送器;The device according to any one of claims 1 to 4, wherein the device further comprises: a receiver for receiving the first data and the second data, for sending the first data And the receiver of the second data, the first path is coupled to the receiver and the transmitter, the first path is also connected to the controller, and the second path is coupled to the receiver器和The transmitter;
    所述控制器还用于在确定所述发送器完成切换准备的情况下,将所述第一路径设为不可用状态,并将所述第二路径设为可用状态,以基于所述第二路径传输第二数据。The controller is further configured to set the first path to an unavailable state and set the second path to an available state in the case where it is determined that the transmitter has completed the handover preparation, so as to be based on the second path. The path transmits the second data.
  6. 根据权利要求5所述的装置,其特征在于,在将所述第一路径切换至所述第二路径之前,所述控制器还用于将所述发送器所能发送的数据修改为伪随机二进制序列PRBS数据。The device according to claim 5, wherein, before switching the first path to the second path, the controller is further configured to modify the data that the transmitter can send to pseudo-random Binary sequence PRBS data.
  7. 根据权利要求5或6所述的装置,其特征在于,在将所述第一路径切换至所述第二路径之后,所述控制器还用于将所述发送器所能发送的数据修改为所述接收器接收到的数据。The device according to claim 5 or 6, wherein after the first path is switched to the second path, the controller is further configured to modify the data that the transmitter can send to The data received by the receiver.
  8. 根据权利要求1至7任意一项所述的装置,其特征在于,在所述第二路径中,所述接收器和所述发送器之间还设置有极性翻转电路;The device according to any one of claims 1 to 7, wherein in the second path, a polarity reversal circuit is further provided between the receiver and the transmitter;
    在所述第二路径传输的所述第二数据存在极性相反的情况下,所述极性翻转电路用于将所述第二数据的极性进行翻转。In the case that the second data transmitted by the second path has an opposite polarity, the polarity inversion circuit is used to invert the polarity of the second data.
  9. 根据权利要求8所述的装置,其特征在于,所述控制器还用于在确定所述第二路径传输的第一数据满足预置第二条件的情况下,将所述第二路径切换至所述第一路径,以基于所述第一路径传输第二数据。8. The device according to claim 8, wherein the controller is further configured to switch the second path to the second path when it is determined that the first data transmitted by the second path satisfies a preset second condition. The first path to transmit second data based on the first path.
  10. 根据权利要求9所述的装置,其特征在于,所述预置第二条件包括:所述TS2数据具备速率切换的请求、具备均衡重做的请求、具备退出禁止状态的请求或具备退出热复位状态的请求。The device according to claim 9, wherein the preset second condition comprises: the TS2 data has a request for rate switching, a request for equalizing redo, a request for exiting a prohibited state, or a request for exiting a hot reset. Status request.
  11. 一种路径切换的方法,其特征在于,所述方法通过用于执行重定时的装置实现,所述装置包括:第一路径、第二路径和控制器;所述方法包括:A method for path switching, characterized in that the method is implemented by a device for performing retiming, and the device includes: a first path, a second path, and a controller; the method includes:
    在通过所述控制器确定所述第一路径传输的第一数据的传输速率满足预置第一条件的情况下,通过所述控制器将所述第一路径切换至所述第二路径,以基于所述第二路径传输第二数据,其中,所述第二路径的延迟比所述第一路径的延迟低,所述第一数据为路径训练数据,所述第二数据为业务数据。When it is determined by the controller that the transmission rate of the first data transmitted by the first path meets the preset first condition, the controller switches the first path to the second path to The second data is transmitted based on the second path, wherein the delay of the second path is lower than the delay of the first path, the first data is path training data, and the second data is service data.
  12. 一种高速外围组件互连PCIE系统,其特征在于,所述PCIE系统包括:A high-speed peripheral component interconnection PCIE system, characterized in that, the PCIE system includes:
    第一PCIE设备;The first PCIE device;
    第二PCIE设备;The second PCIE device;
    如权利要求1至10任意一项所述的用于执行重定时的装置,其耦合至所述第一PCIE设备和所述第二PCIE设备,以所述第一PCIE设备和所述第二PCIE设备之间提供两个方向上的数据流。The apparatus for performing retiming according to any one of claims 1 to 10, which is coupled to the first PCIE device and the second PCIE device, and the first PCIE device and the second PCIE device Provide data flow in both directions between devices.
PCT/CN2020/073835 2020-01-22 2020-01-22 Apparatus for executing re-timing and path switching method WO2021147005A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2020/073835 WO2021147005A1 (en) 2020-01-22 2020-01-22 Apparatus for executing re-timing and path switching method
CN202080094022.2A CN115004165A (en) 2020-01-22 2020-01-22 Apparatus for performing retiming and method of path switching

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/073835 WO2021147005A1 (en) 2020-01-22 2020-01-22 Apparatus for executing re-timing and path switching method

Publications (1)

Publication Number Publication Date
WO2021147005A1 true WO2021147005A1 (en) 2021-07-29

Family

ID=76991922

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/073835 WO2021147005A1 (en) 2020-01-22 2020-01-22 Apparatus for executing re-timing and path switching method

Country Status (2)

Country Link
CN (1) CN115004165A (en)
WO (1) WO2021147005A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114024893A (en) * 2021-11-18 2022-02-08 群联电子股份有限公司 Clock reforming circuit module, signal transmission system and signal transmission method
CN114070779A (en) * 2021-11-25 2022-02-18 群联电子股份有限公司 Clock reforming circuit module, signal transmission system and signal transmission method
CN114691558A (en) * 2021-10-20 2022-07-01 澜起电子科技(上海)有限公司 Low-delay retimer and delay control method
US11575496B1 (en) 2021-11-12 2023-02-07 Phison Electronics Corp. Retiming circuit module, signal transmission system and signal transmission method
US11757684B2 (en) 2021-11-19 2023-09-12 Phison Electronics Corp. Retiming circuit module, signal transmission system, and signal transmission method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015099733A1 (en) * 2013-12-26 2015-07-02 Intel Corporation Interconnect retimer enhancements
US20160182257A1 (en) * 2014-12-23 2016-06-23 Intel Corporation Data rate detection to simplify retimer logic
CN109154927A (en) * 2016-06-27 2019-01-04 英特尔公司 Low delay multi-protocols retimer
CN110088737A (en) * 2016-10-25 2019-08-02 重构.Io有限公司 Concurrent program is converted to the integration schedules for the hardware that can be deployed in the cloud infrastructure based on FPGA
CN110442540A (en) * 2018-05-04 2019-11-12 英特尔公司 Sequence is negotiated and enabled to flexible bus protocol

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2282882C (en) * 1998-09-22 2005-11-01 Kabushiki Kaisha Toshiba Serial transmission path switching system
JP4165298B2 (en) * 2003-05-29 2008-10-15 株式会社日立製作所 Terminal device and communication network switching method
US9552322B2 (en) * 2014-06-12 2017-01-24 Pericom Semiconductor Corporation Hybrid repeater for supporting backward compatibility
CN108418582B (en) * 2018-02-11 2020-08-25 华为技术有限公司 Method, driver and system for transmitting signals

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015099733A1 (en) * 2013-12-26 2015-07-02 Intel Corporation Interconnect retimer enhancements
US20160182257A1 (en) * 2014-12-23 2016-06-23 Intel Corporation Data rate detection to simplify retimer logic
CN109154927A (en) * 2016-06-27 2019-01-04 英特尔公司 Low delay multi-protocols retimer
CN110088737A (en) * 2016-10-25 2019-08-02 重构.Io有限公司 Concurrent program is converted to the integration schedules for the hardware that can be deployed in the cloud infrastructure based on FPGA
CN110442540A (en) * 2018-05-04 2019-11-12 英特尔公司 Sequence is negotiated and enabled to flexible bus protocol

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114691558A (en) * 2021-10-20 2022-07-01 澜起电子科技(上海)有限公司 Low-delay retimer and delay control method
US11575496B1 (en) 2021-11-12 2023-02-07 Phison Electronics Corp. Retiming circuit module, signal transmission system and signal transmission method
CN114024893A (en) * 2021-11-18 2022-02-08 群联电子股份有限公司 Clock reforming circuit module, signal transmission system and signal transmission method
US11757684B2 (en) 2021-11-19 2023-09-12 Phison Electronics Corp. Retiming circuit module, signal transmission system, and signal transmission method
CN114070779A (en) * 2021-11-25 2022-02-18 群联电子股份有限公司 Clock reforming circuit module, signal transmission system and signal transmission method
CN114070779B (en) * 2021-11-25 2023-08-29 群联电子股份有限公司 Clock reforming circuit module, signal transmission system and signal transmission method

Also Published As

Publication number Publication date
CN115004165A (en) 2022-09-02

Similar Documents

Publication Publication Date Title
WO2021147005A1 (en) Apparatus for executing re-timing and path switching method
US9785530B2 (en) Method, device, and system for processing PCIe link fault
KR102569761B1 (en) Semiconductor device, semiconductor system and method for operating semiconductor device
US11841820B2 (en) Precoding mechanism in PCI-express
TWI343007B (en) Point-to-point link negotiation method and apparatus
US11748294B2 (en) Retimer application system, retimer, and data transmission method
EP2928108B1 (en) System, method and apparatus for multi-lane auto-negotiation over reduced lane media
US20050270988A1 (en) Mechanism of dynamic upstream port selection in a PCI express switch
CN113227991B (en) Alternative protocol selection
WO2017024290A1 (en) Adaptive equalization channel extension retimer link-up methodology
US8909843B1 (en) Peripheral component interconnect express switch apparatus and method of controlling connection thereof
US9424226B1 (en) Method and system for signal equalization in communication between computing devices
EP1700224B1 (en) Receiver corporation
US10229020B2 (en) Network transceiver with auto-negotiation handling
US5151977A (en) Managing a serial link in an input/output system which indicates link status by continuous sequences of characters between data frames
US7428599B2 (en) Method for detecting link partner state during auto negotiation and switching local state to establish link
US9800345B1 (en) Network transceiver
US20170317785A1 (en) Network re-timer with forward error correction handling
CN108121496B (en) Data storage method, device and system
CN113890553B (en) Receiver for high speed data and low speed command signal transmission
US7184395B2 (en) Providing reconditioned signals at a plurality of ports
US20210303496A1 (en) Actuation of data transmission lanes between states
RU2700560C1 (en) Gigaspacewire communication interface device
RU187642U1 (en) GIGASPACEWIRE COMMUNICATION INTERFACE DEVICE
WO2023272487A1 (en) Auto-negotiation method, clock and data recovery unit, and circuit board

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20915079

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20915079

Country of ref document: EP

Kind code of ref document: A1