The invention discloses a PCIe link state
monitoring system and a monitoring method thereof. The PCIe link state
monitoring system comprises a PCIe monitoring subsystem, a PCIe controller subsystem and a
PHY (
Physical Layer) module, wherein the PCIe controller subsystem and the
PHY module are connected through a
PIPE interface, and the PCIe monitoring subsystem is used for monitoring state information of a PCIe link; four levels of
leaky bucket modules are integrated on the same layer of the PCIe monitoring subsystem, and the four levels of
leaky bucket modules are used for dropping correctable error information in the state information of the PCIe link into leaky buckets, carrying out overflow counting to obtain
leaky bucket overflow times, carrying out error
pattern recognition according to the leaky bucket overflow times and preset different execution thresholds, and outputting the error
pattern recognition result. Link
recovery is carried out by adopting a progressive link
recovery strategy; therefore, extra special equipment does not need to be introduced into the PCIe link, the
observability of the PCIe link can be improved, and correctable errors caused by the
signal integrity problem on the link can be analyzed and diagnosed in real time, so that a corresponding link
recovery strategy is adopted.