CN115686900A - Bus port processing method and device, storage medium and electronic equipment - Google Patents

Bus port processing method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN115686900A
CN115686900A CN202211311400.5A CN202211311400A CN115686900A CN 115686900 A CN115686900 A CN 115686900A CN 202211311400 A CN202211311400 A CN 202211311400A CN 115686900 A CN115686900 A CN 115686900A
Authority
CN
China
Prior art keywords
bus port
parameter
detected
abnormal
current bus
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211311400.5A
Other languages
Chinese (zh)
Inventor
宋成磊
刘波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202211311400.5A priority Critical patent/CN115686900A/en
Publication of CN115686900A publication Critical patent/CN115686900A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the application provides a processing method, a device, a storage medium and an electronic device for a bus port, wherein the method is applied to a server device, the server device at least comprises a processor and at least one bus port, and the at least one bus port is used for connecting an external device and the processor, and comprises the following steps: acquiring at least one parameter to be detected of a current bus port, wherein the current bus port is any one of at least one bus port; counting the abnormal times of each parameter to be detected in the corresponding time window to obtain the abnormal counting times corresponding to each parameter to be detected; and determining whether to perform isolation processing on the current bus port according to the abnormal statistics corresponding to each parameter to be detected. The problem of among the correlation technique, can't keep apart the bus port that has the anomaly, lead to server system poor stability has been solved to this application, and then has reached and keep apart the effect that improves server system stability to unusual bus port.

Description

Bus port processing method and device, storage medium and electronic equipment
Technical Field
The embodiment of the application relates to the field of computers, in particular to a bus port processing method and device, a storage medium and electronic equipment.
Background
PCIE (Peripheral Component Interconnect Express) may be applied to the server device, and connect the processor in the server device and the external device to implement external expansion of an interface or a storage space of the processor of the server device.
Currently, when a PCIE port is managed, a longest path is to monitor only parameters such as a data transmission rate and a data transmission bandwidth of the PCIE port, count error times of occurrence of an abnormality in the data transmission rate, the data transmission bandwidth, and the like, and detect whether the PCIE port is abnormal according to the error times.
However, the above method cannot cope with error storms with a large number of abnormal times in a short time, and cannot predict failures of PCIE ports. When a serious problem occurs in the PCIE port, it may affect other components or devices, so that the stability of the server system is deteriorated, and even the server system is crashed or restarted.
Disclosure of Invention
The embodiment of the application provides a bus port processing method, a bus port processing device, a storage medium and electronic equipment, and aims to at least solve the problem that in the related technology, a server system is poor in stability due to the fact that an abnormal bus port cannot be isolated.
According to an embodiment of the present application, a method for processing a bus port is provided, which is applied to a server device, where the server device at least includes a processor and at least one bus port, and the at least one bus port is used to connect an external device and the processor, and includes: acquiring at least one parameter to be detected of a current bus port, wherein the current bus port is any one of at least one bus port; counting the abnormal times of each parameter to be detected in the corresponding time window to obtain the abnormal counting times corresponding to each parameter to be detected; and determining whether to carry out isolation processing on the current bus port according to the abnormal statistical frequency corresponding to each parameter to be detected.
In one exemplary embodiment, the method for processing a bus port further includes: determining a target time length corresponding to each parameter to be detected before counting the times of abnormity of each parameter to be detected in a corresponding time window to obtain the abnormal counting times corresponding to each parameter to be detected; and generating a time window corresponding to each parameter to be detected according to the target time length.
In one exemplary embodiment, the method for processing a bus port further includes: before determining the target time length corresponding to each parameter to be detected, determining the initial time length corresponding to each parameter to be detected; acquiring the abnormality detection accuracy rate of each parameter to be detected in the initial time length, wherein the abnormality detection accuracy rate represents the accuracy of the statistical frequency of the abnormality of each parameter to be detected in the initial time length; and determining whether to adjust the initial time length or not according to the abnormality detection accuracy so as to obtain the target time length.
In one exemplary embodiment, the method for processing a bus port further includes: determining the abnormality grade of the current bus port according to the abnormality counting times corresponding to each parameter to be detected; and determining whether to perform isolation processing on the current bus port according to the abnormal level.
In one exemplary embodiment, the method for processing a bus port further includes: when the abnormal level is a first level, displaying the abnormal information of the current bus port; when the abnormal level is the second level, adjusting the transmission flow of the data transmitted by the current bus port, and/or adjusting the priority of the data transmitted by the current bus port; and when the abnormal level is a third level, performing isolation processing on the current bus port, wherein the abnormal degree of the first level is smaller than that of the second level, and the abnormal degree of the second level is smaller than that of the third level.
In one exemplary embodiment, the method for processing a bus port further includes: after determining whether to perform isolation processing on the current bus port according to the abnormal statistics times corresponding to each parameter to be detected, if the current bus port is determined to be performed with isolation processing, responding to an isolation instruction fed back by a management controller, wherein the isolation instruction at least comprises a target bus port; and isolating the target bus port according to the isolation instruction.
In one exemplary embodiment, the method for processing a bus port further includes: after the target bus port is isolated according to the isolation instruction, abnormal statistical information corresponding to each bus port is recorded, wherein the abnormal statistical information at least comprises one of the following information: the abnormal times of each bus port, the abnormal type of each bus port and the abnormal time of each bus port; predicting fault information of the server equipment with faults according to the abnormal statistical information corresponding to each bus port, wherein the fault information at least comprises one of the following information: fault type, fault location, time of fault.
According to another embodiment of the present application, a processing apparatus of a bus port is provided, which is applied to a server device, where the server device at least includes a processor and at least one bus port, and the at least one bus port is used for connecting an external device and the processor, and includes: the parameter acquisition module is used for acquiring at least one parameter to be detected of a current bus port, wherein the current bus port is any one of at least one bus port; the abnormality counting module is used for counting the times of abnormality occurrence of each parameter to be detected in the corresponding time window to obtain the abnormal counting times corresponding to each parameter to be detected; and the isolation judgment module is used for determining whether to perform isolation processing on the current bus port according to the abnormal statistical frequency corresponding to each parameter to be detected.
According to yet another embodiment of the present application, there is also provided a computer-readable storage medium having a computer program stored therein, wherein the computer program is arranged to perform the method of processing a bus port of any of the above when executed.
According to yet another embodiment of the present application, there is also provided an electronic device including a memory in which a computer program is stored and a processor configured to execute the computer program to perform the processing method of the bus port of any one of the above.
According to the method and the device, when each parameter to be detected is detected, the times of abnormity of each parameter to be detected are counted based on the time window, and whether the bus port is isolated or not is determined according to the counting result. In other words, in the application, when the current bus port is detected to be abnormal, the current bus port can be isolated, so that the influence of the bus port on other components of the server device or other devices is avoided, and the stability of the server system is improved. In addition, in the application, when the number of times of abnormality occurrence of each parameter to be detected is counted, the number of times of abnormality occurrence is counted by using the time window corresponding to the parameter to be detected, so that the number of times of abnormality occurrence of each parameter to be detected can be accurately counted, the judgment precision of whether the current bus port is isolated is improved, and the stability of the server system is further improved.
Therefore, the problem that in the related technology, the abnormal bus ports cannot be isolated, and the stability of the server system is poor is solved, and the effect of isolating the abnormal bus ports and improving the stability of the server system is achieved.
Drawings
Fig. 1 is a hardware configuration block diagram of a server apparatus of a bus port processing method according to an embodiment of the present application;
FIG. 2 is a flow chart of a method of processing a bus port according to an embodiment of the present application;
FIG. 3 is a block diagram of a processing device of a bus port according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Embodiments of the present application will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
The method embodiments provided in the embodiments of the present application may be executed in a server device, a mobile terminal, a computer terminal, or a similar computing device. Taking an example of the application running on a server device, fig. 1 is a hardware structure block diagram of a server device of a bus port processing method according to an embodiment of the application. As shown in fig. 1, the server device may include one or more processors 102 (only one is shown in fig. 1) (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA), and a memory 104 for storing data, wherein the server device may further include a transmission device 106 for communication functions and an input-output device 108. It will be understood by those skilled in the art that the structure shown in fig. 1 is merely an illustration, and does not limit the structure of the server device. For example, the server device may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
The memory 104 may be used to store computer programs, for example, software programs and modules of application software, such as a computer program corresponding to the processing method of the bus port in the embodiment of the present application, and the processor 102 executes various functional applications and data processing by running the computer programs stored in the memory 104, so as to implement the above-mentioned method. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to a server device over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used to receive or transmit data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the server device. In one example, the transmission device 106 includes a Network adapter (NIC) that can be connected to other Network devices through a base station to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used to communicate with the internet in a wireless manner.
In this embodiment, a method for processing a bus port running on a server device is provided, where the method is applicable to a server device, and the server device at least includes a processor and at least one bus port, and the at least one bus port is used to connect an external device and the processor. That is, in this embodiment, the bus port is used to perform external expansion of port and/or storage on the processor, where the external device may be, but is not limited to, a storage device (e.g., a hard disk), an external GPU (Graphics Processing Unit), a network card, a network cable, and the like.
Fig. 2 is a flowchart of a processing method of a bus port according to an embodiment of the present application, and as shown in fig. 2, the flowchart includes the following steps:
step S202, at least one parameter to be detected of the current bus port is obtained.
In step S202, the bus port may be, but is not limited to, a PCIE port, and the parameters to be detected of the bus port include, but are not limited to, a data transmission rate, a data transmission bandwidth, a data throughput of each channel, and the like. Optionally, one server device may have at least one bus port, and the current bus port is any one of the at least one bus port of the server device.
In an optional embodiment, the server device may detect the to-be-detected parameter of the PCIE port through the PCIE Switch, so as to count a value corresponding to the to-be-detected parameter. The PCIE Switch is a PCIE-to-PCIE bridge, and may provide expansion or aggregation capabilities, allow more devices to be connected to one PCIE port, and may serve as a packet router to identify which path a given packet needs to travel according to an address or other routing information.
Step S204, counting the abnormal times of each parameter to be detected in the corresponding time window to obtain the abnormal counting times corresponding to each parameter to be detected.
In step S204, each parameter to be detected corresponds to a time window, and the number of times of abnormality corresponding to the parameter to be detected is counted in the time window. The time lengths corresponding to different time windows may be different, that is, in this embodiment, each parameter to be detected has a time length corresponding to the number of abnormal statistics.
It should be noted that, in practical applications, if time windows with the same duration are used for all parameters to be detected, there may be a problem that the abnormal statistics times of the parameters to be detected cannot be accurately counted, for example, for parameter 1, the frequency of occurrence of an abnormality is 100 ms/time, and if a time window with a time length of 1s is used, all the abnormal times may not be counted, so that the abnormal statistics times are inaccurate; for the parameter 2, the frequency of occurrence of the anomaly is 10 ms/time, and if a time window with the time length of 1ms is adopted, the anomaly counting times may be mistakenly counted, so that the problem of excessive anomaly counting times is caused.
In this embodiment, when the number of times of abnormality occurrence of each parameter to be detected is counted, the time window corresponding to the parameter to be detected is used for counting the number of times of abnormality occurrence, so that the problems that the number of times of abnormality occurrence is lost due to an excessively long time length of the time window or the number of times of abnormality occurrence is excessively counted due to an excessively short time length of the time window are solved, the number of times of abnormality occurrence of each parameter to be detected can be accurately counted, the accuracy of judging whether the current bus port is isolated is improved, and the stability of the server system is further improved.
Step S206, determining whether to perform isolation processing on the current bus port according to the abnormal statistics corresponding to each parameter to be detected.
In step S206, the server device may determine the policy to be taken for the current bus port according to the abnormal statistics times corresponding to each parameter to be detected, for example, if it is determined that the problem occurring at the bus port is serious and the range of influence on the server device is large according to the abnormal statistics times corresponding to each parameter to be detected, the server device performs isolation processing on the bus port to reduce the range of influence of the bus port on the server device, and improve the stability of the device and the system; for another example, when it is determined that the bus port can be normally used but has poor performance (e.g., a low data transmission rate) according to the abnormal statistics number corresponding to each parameter to be detected, the server device may limit the transmission traffic of the bus port or reduce the priority of the bus port for transmitting data.
As can be seen from the above, in this embodiment, when each parameter to be detected is detected, the number of times of occurrence of an abnormality of each parameter to be detected is counted based on the time window, and whether to isolate the bus port is determined according to the counting result. In other words, in the application, when the current bus port is detected to be abnormal, the current bus port can be isolated, so that the influence of the bus port on other components of the server device or other devices is avoided, and the stability of the server system is improved. In addition, in the application, when the number of times of abnormality occurrence of each parameter to be detected is counted, the number of times of abnormality occurrence is counted by using the time window corresponding to the parameter to be detected, so that the number of times of abnormality occurrence of each parameter to be detected can be accurately counted, the judgment precision of whether the current bus port is isolated is improved, and the stability of the server system is further improved.
Therefore, the problem that in the related technology, the abnormal bus ports cannot be isolated, and the stability of the server system is poor is solved, and the effect of isolating the abnormal bus ports and improving the stability of the server system is achieved.
In an optional embodiment, before step S206 is executed, that is, before the number of times of occurrence of an abnormality in the corresponding time window of each parameter to be detected is counted to obtain the number of times of occurrence of an abnormality corresponding to each parameter to be detected, the server device may set the time window corresponding to each parameter to be detected.
Specifically, the server device first determines a target time length corresponding to each parameter to be detected, and generates a time window corresponding to each parameter to be detected according to the target time length.
Alternatively, the target time length may be set by the user according to experience, that is, the target time length may be an empirical value of a plurality of tests performed by the user. It should be noted that, in the scenario where the target time length is an experience value of the user, since the target time length is obtained by the user through multiple tests, the abnormal times of the parameter to be detected are counted in the time window corresponding to the target time length, so that the problem that the abnormal times are counted lack due to an excessively long time length of the time window or the abnormal times are counted excessively due to an excessively short time length of the time window can be avoided, and an accurate statistical result can be obtained.
In addition, the target time length can be obtained by automatic adjustment of the server device. Specifically, before determining the target time length corresponding to each parameter to be detected, the server device determines an initial time length corresponding to each parameter to be detected, obtains an abnormality detection accuracy rate of each parameter to be detected within the initial time length, and then determines whether to adjust the initial time length according to the abnormality detection accuracy rate to obtain the target time length.
It should be noted that the initial time length of each parameter to be detected may be the same or different, where, under the condition that the initial time lengths of the parameters to be detected are all the same, the initial time length may be the default time length of the server device; in a case where the initial time lengths of the parameters to be detected are at least partially different, the initial time length of each parameter to be detected may be set by the server device by default for each parameter to be detected.
In addition, the abnormality detection accuracy described above indicates the accuracy of the statistical number of times that each parameter to be detected is abnormal within the initial time length. Namely, the server device counts the abnormal counting times and the actual abnormal counting times of the parameter to be detected in each time length, and determines whether the abnormal counting times of the parameter to be detected are accurate in the corresponding time length according to the counting result. If the abnormality detection accuracy is high (for example, greater than or equal to a preset accuracy), determining that the time length is a target time length corresponding to the parameter to be detected; if the anomaly detection accuracy is relatively low (e.g., less than a preset accuracy), it is determined that the time period needs to be adjusted.
It should be noted that each parameter to be detected corresponds to a prediction accuracy, and the prediction accuracy may be set according to the influence degree of the parameter to be detected on the data transmitted by the server device, for example, if the influence degree of the parameter on the data transmitted by the server device is large, the preset accuracy is set to a large value; if the influence degree of the parameter on the data transmission of the server device is small, the value set by the preset accuracy rate is low.
In addition, in the process of adjusting the initial time length, the server device may determine the adjustment direction of the initial time length by comparing the abnormality detection accuracy before adjustment with the abnormality detection accuracy after adjustment, for example, the initial time length is 1s, and the corresponding abnormality detection accuracy is q1; the adjusted time length is 100ms, and the corresponding abnormality detection accuracy is q2, where q1 is greater than q2, that is, the counted abnormality times within the adjusted time length are more inaccurate, the server device increases the initial time length, for example, adjusts the initial time length from 1s to 1.1s, and calculates the abnormality detection accuracy again.
In an alternative embodiment, as shown in fig. 2, after counting the number of times of exception statistics corresponding to each parameter to be detected, the server device executes step S206, that is, determines whether to perform isolation processing on the current bus port according to the number of times of exception statistics corresponding to each parameter to be detected.
Specifically, the server device determines the exception grade of the current bus port according to the exception counting times corresponding to each parameter to be detected, and determines whether to perform isolation processing on the current bus port according to the exception grade.
It should be noted that the above exception levels may include, but are not limited to, a first level, a second level and a third level, where the exception degree of the first level is smaller than the exception degree of the second level, and the exception degree of the second level is smaller than the exception degree of the third level, where the first level indicates that the current bus port has an exception risk, the second level indicates that the current bus port has an exception but can normally transmit data, and the third level indicates that the current bus port cannot normally transmit data.
In addition, it should be noted that, for different exception levels, the corresponding processing strategies are different.
Specifically, when the abnormality level is the first level, the server device displays abnormality information of the current bus port. That is, when the server device detects that there may be an abnormality in the current bus port but the use of the current bus port is not affected, displaying abnormality information of the current bus port in a display screen of the server device, where the abnormality information may include, but is not limited to, the number of times of abnormality statistics corresponding to the current bus port within a corresponding time window, and information related to the current bus port (e.g., a transmission rate, an external device connected to the current bus port, etc.).
It should be noted that, when the exception level is the first level, the user can know the relevant information of the bus port where the exception may occur in time through the exception information of the current bus port, and determine whether to isolate the current bus port according to the relevant information. That is, in this embodiment, when the exception level is the first level, the server device does not isolate the current bus port, but if the user sends an instruction for isolating the current bus port, the server device also isolates the current bus port according to the received instruction, that is, the priority of the instruction sent by the user through the controller is higher than the priority of the policy adopted by the server device according to the exception level.
And when the abnormal level is a second level, the server equipment adjusts the transmission flow of the data transmitted by the current bus port and/or adjusts the priority of the data transmitted by the current bus port. When the server device detects that the current bus port is abnormal but still usable, the server device may alarm, for example, the server device may alarm by light, sound, or in a display screen of the server device. Meanwhile, the server equipment can limit the transmission flow of the data transmitted by the current bus port or reduce the priority of the data transmitted by the current bus port so as to reduce the transmission of important data and further reduce the influence of the fact that the current bus port cannot transmit the data on the whole data transmission process.
And when the abnormal level is a third level, the server equipment carries out isolation processing on the current bus port. That is, when the server device cannot normally transmit data through the current bus port, in order to avoid the expansion of the influence of the current bus port on the server device, the server device performs isolation processing on the current bus port, so as to improve the operation stability of the server device and the server system.
In an optional embodiment, after step S206 is executed, that is, after determining whether to perform isolation processing on the current bus port according to the abnormal statistics times corresponding to each parameter to be detected, if it is determined that the isolation processing is performed on the current bus port, the server device responds to the isolation instruction fed back by the management controller, and isolates the target bus port according to the isolation instruction. The isolation instruction at least comprises a target bus port.
Optionally, the server device detects that an error storm occurs at the current bus port, that is, the number of times of abnormal statistics of the current bus port is large in a short time, and at this time, the related information of the current bus port is displayed in a display screen of the server device, for example, a name or an identifier of the current bus port is displayed. Then, the user may select a bus port to be isolated through a BMC (Baseboard Management Controller), that is, a Management Controller, and the server device may further implement isolation of the bus port selected by the user.
It should be noted that the server device may actively isolate the bus port with the error storm according to the abnormal statistics times corresponding to each parameter to be detected; the server device may further receive an isolation instruction of the user through the BMC, and isolate the bus port selected by the user, where the bus port selected by the user may be a bus port with an error storm or another bus port that the user needs to isolate (the bus port may not have an error storm).
In an optional embodiment, after the target bus port is isolated according to the isolation instruction, the server device may further record the abnormal statistical information corresponding to each bus port, and predict fault information of the server device, where the fault occurs, according to the abnormal statistical information corresponding to each bus port.
Optionally, the abnormal statistical information at least includes one of the following information: the abnormal times of each bus port, the abnormal type of each bus port and the abnormal time of each bus port; the fault information at least comprises one of the following information: fault type, fault location, fault time; faults occurring at the server device may include, but are not limited to, line instability, device stuck.
For example, if the server device detects that the data transmission rate of the current bus port is continuously decreased and is lower than the preset transmission rate for multiple times, it may predict that the server device may have a device stuck fault, and further determine the location of the fault and the time of the fault according to the device connected to the current bus port; for another example, if the server device detects that the traffic of the data transmitted by the current bus port is high or low, and the number of changes is higher than the preset number, it may be predicted that the data transmission line may be unstable in the server device, and further, according to the device connected to the current bus port, the location of the fault and the time when the fault occurs may be determined.
According to the content, in the scheme provided by the application, sliding time windows with different time lengths are designed, so that the error information corresponding to the bus port can be intelligently counted; in addition, different thresholds are set in different time lengths, so that triggering of alarms of different levels can be realized. In addition, the scheme provided by the application can more flexibly and comprehensively count the error information related to the bus port, the bus port can be actively managed according to the statistical information, the bus port with serious problems can be actively isolated in an extreme case, the problems are prevented from being expanded, and related operations are logged, so that the problems are conveniently tracked.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present application.
In this embodiment, a processing device of a bus port is further provided, and the device is used to implement the foregoing embodiments and preferred embodiments, and details are not repeated for what has been described. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware or a combination of software and hardware is also possible and contemplated.
Fig. 3 is a block diagram of a bus port processing apparatus according to an embodiment of the present disclosure, and as shown in fig. 3, the apparatus is applied to a server device, the server device at least includes a processor and at least one bus port, and the at least one bus port is used for connecting an external device and the processor, and the apparatus includes: a parameter obtaining module 301, an anomaly counting module 303 and an isolation judging module 305.
The parameter obtaining module 301 is configured to obtain at least one to-be-detected parameter of a current bus port, where the current bus port is any one of the at least one bus port; the anomaly counting module 303 is configured to count the number of times that each parameter to be detected is abnormal in the corresponding time window, so as to obtain the number of times that each parameter to be detected is abnormal; the isolation determining module 305 is configured to determine whether to perform isolation processing on the current bus port according to the abnormal statistics corresponding to each parameter to be detected.
Optionally, the processing device of the bus port includes: the device comprises a first determining module and a generating module. The first determining module is used for determining the target time length corresponding to each parameter to be detected before counting the number of times of abnormity of each parameter to be detected in the corresponding time window and obtaining the number of times of abnormity statistics corresponding to each parameter to be detected; and the generating module is used for generating a time window corresponding to each parameter to be detected according to the target time length.
Optionally, the processing device of the bus port includes: the device comprises a second determining module, an obtaining module and a third determining module. The second determining module is used for determining the initial time length corresponding to each parameter to be detected before determining the target time length corresponding to each parameter to be detected; the acquiring module is used for acquiring the abnormality detection accuracy of each parameter to be detected in the initial time length, wherein the abnormality detection accuracy represents the accuracy of the statistical frequency of the abnormality of each parameter to be detected in the initial time length; and the third determining module is used for determining whether to adjust the initial time length or not according to the abnormality detection accuracy so as to obtain the target time length.
Optionally, the isolation determining module includes: a fourth determination module and a fifth determination module. The fourth determining module is used for determining the abnormality grade of the current bus port according to the abnormality counting times corresponding to each parameter to be detected; and the fifth determining module is used for determining whether to perform isolation processing on the current bus port according to the abnormal level.
Optionally, the fifth determining module includes: the device comprises a first processing module, a second processing module and a third processing module. The first processing module is used for displaying the abnormal information of the current bus port when the abnormal level is the first level; the second processing module is used for adjusting the transmission flow of the data transmitted by the current bus port and/or adjusting the priority of the data transmitted by the current bus port when the abnormal level is the second level; and the third processing module is used for performing isolation processing on the current bus port when the exception level is a third level, wherein the exception degree of the first level is smaller than that of the second level, and the exception degree of the second level is smaller than that of the third level.
Optionally, the processing device of the bus port includes: a response module and an isolation module. The response module is used for responding to an isolation instruction fed back by the management controller if the current bus port is determined to be isolated after determining whether the current bus port is isolated according to the abnormal statistical times corresponding to each parameter to be detected, wherein the isolation instruction at least comprises a target bus port; and the isolation module is used for isolating the target bus port according to the isolation instruction.
Optionally, the processing device of the bus port includes: an exception recording module and a failure prediction module. The device comprises an exception recording module, an exception processing module and an exception processing module, wherein the exception recording module is used for recording exception statistical information corresponding to each bus port after isolating a target bus port according to an isolation instruction, and the exception statistical information at least comprises one of the following information: the abnormal times of each bus port, the abnormal type of each bus port and the abnormal time of each bus port; the failure prediction module is used for predicting failure information of the server equipment which fails according to the abnormal statistical information corresponding to each bus port, wherein the failure information at least comprises one of the following information: fault type, fault location, time of fault.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are located in different processors in any combination.
Embodiments of the present application further provide a computer-readable storage medium having a computer program stored therein, wherein the computer program is configured to perform the steps in any of the above method embodiments when executed.
In an exemplary embodiment, the computer readable storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
There is also provided an electronic device, fig. 4 is a schematic diagram of an alternative electronic device according to an embodiment of the present application, as shown in fig. 4, including a memory in which a computer program is stored and a processor configured to execute the computer program to perform the steps in any of the above method embodiments.
In an exemplary embodiment, the electronic device may further include a transmission device and an input/output device (not shown in fig. 4), wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary embodiments, and details of this embodiment are not repeated herein.
It will be apparent to those skilled in the art that the various modules or steps of the present application described above may be implemented using a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and they may be implemented using program code executable by the computing devices, such that they may be stored in a memory device and executed by the computing devices, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into separate integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present application is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the principle of the present application shall be included in the protection scope of the present application.

Claims (10)

1. A processing method of a bus port is applied to a server device, the server device at least comprises a processor and at least one bus port, the at least one bus port is used for connecting an external device and the processor, and the method comprises the following steps:
acquiring at least one parameter to be detected of a current bus port, wherein the current bus port is any one of the at least one bus port;
counting the abnormal times of each parameter to be detected in the corresponding time window to obtain the abnormal counting times corresponding to each parameter to be detected;
and determining whether to perform isolation processing on the current bus port according to the abnormal statistics times corresponding to each parameter to be detected.
2. The method according to claim 1, wherein before counting the number of times that each parameter to be detected is abnormal in the corresponding time window to obtain the number of times that each parameter to be detected is abnormal, the method further comprises:
determining a target time length corresponding to each parameter to be detected;
and generating a time window corresponding to each parameter to be detected according to the target time length.
3. The method according to claim 2, wherein before determining the target time length corresponding to each parameter to be detected, the method further comprises:
determining an initial time length corresponding to each parameter to be detected;
acquiring the abnormality detection accuracy rate of each parameter to be detected in the initial time length, wherein the abnormality detection accuracy rate represents the accuracy of the statistical frequency of the abnormality of each parameter to be detected in the initial time length;
and determining whether to adjust the initial time length or not according to the abnormality detection accuracy so as to obtain the target time length.
4. The method according to claim 1, wherein determining whether to perform isolation processing on the current bus port according to the abnormal statistics corresponding to each parameter to be detected comprises:
determining the abnormality grade of the current bus port according to the abnormality counting times corresponding to each parameter to be detected;
and determining whether to perform isolation processing on the current bus port according to the abnormal level.
5. The method of claim 4, wherein determining whether to isolate the current bus port based on the exception level comprises:
when the abnormal grade is a first grade, displaying the abnormal information of the current bus port;
when the abnormal level is a second level, adjusting the transmission flow of the data transmitted by the current bus port, and/or adjusting the priority of the data transmitted by the current bus port;
and when the abnormality level is a third level, performing isolation processing on the current bus port, wherein the abnormality degree of the first level is smaller than the abnormality degree of the second level, and the abnormality degree of the second level is smaller than the abnormality degree of the third level.
6. The method according to claim 1, wherein after determining whether to perform isolation processing on the current bus port according to the abnormal statistics corresponding to each parameter to be detected, the method further comprises:
if the current bus port is determined to be subjected to isolation processing, responding to an isolation instruction fed back by a management controller, wherein the isolation instruction at least comprises a target bus port;
and isolating the target bus port according to the isolation instruction.
7. The method of claim 6, wherein after isolating the target bus port according to the isolation instruction, the method further comprises:
recording abnormal statistical information corresponding to each bus port, wherein the abnormal statistical information at least comprises one of the following information: the number of exceptions of each bus port, the type of exception of each bus port, and the time of exception of each bus port;
predicting fault information of the server equipment with faults according to the abnormal statistical information corresponding to each bus port, wherein the fault information at least comprises one of the following information: fault type, fault location, time of fault.
8. A bus port processing device is applied to a server device, the server device at least comprises a processor and at least one bus port, the at least one bus port is used for connecting an external device and the processor, and the device comprises:
the parameter acquisition module is used for acquiring at least one parameter to be detected of a current bus port, wherein the current bus port is any one of the at least one bus port;
the abnormality counting module is used for counting the times of abnormality occurrence of each parameter to be detected in the corresponding time window to obtain the abnormal counting times corresponding to each parameter to be detected;
and the isolation judgment module is used for determining whether to perform isolation processing on the current bus port according to the abnormal statistical frequency corresponding to each parameter to be detected.
9. A computer-readable storage medium, in which a computer program is stored, wherein the computer program, when executed by a processor, implements the processing method of a bus port according to any one of claims 1 to 7.
10. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the processing method of the bus port according to any one of claims 1 to 7 when executing the computer program.
CN202211311400.5A 2022-10-25 2022-10-25 Bus port processing method and device, storage medium and electronic equipment Pending CN115686900A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211311400.5A CN115686900A (en) 2022-10-25 2022-10-25 Bus port processing method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211311400.5A CN115686900A (en) 2022-10-25 2022-10-25 Bus port processing method and device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN115686900A true CN115686900A (en) 2023-02-03

Family

ID=85099594

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211311400.5A Pending CN115686900A (en) 2022-10-25 2022-10-25 Bus port processing method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN115686900A (en)

Similar Documents

Publication Publication Date Title
EP3379419A2 (en) Situation analysis
US8929382B2 (en) Method, device, and computer program product for detecting and encoding states for accurate measurement
US7957323B2 (en) Methods and apparatus for evaluating the sequence of packets
CN110224885B (en) Equipment monitoring alarm method and device, storage medium and electronic equipment
US11336545B2 (en) Network device measurements employing white boxes
EP2974146B1 (en) Methods, systems, and computer readable media for assisting with the debugging of conditions associated with the processing of test packets by a device under test
US20110122761A1 (en) KPI Driven High Availability Method and apparatus for UMTS radio access networks
US10841193B2 (en) Monitoring quality of service
KR102455332B1 (en) Methods and devices for determining the state of a network device
CN114095965A (en) Index detection model obtaining and fault positioning method, device, equipment and storage medium
KR102055363B1 (en) System for performing anomaly detection using traffic classification
US20080010554A1 (en) System for prechecking corrective actions on parameterable elements causing problems in a communicating network
US11652682B2 (en) Operations management apparatus, operations management system, and operations management method
CN112838942A (en) Network operation and maintenance method, electronic equipment and storage medium
CN115686900A (en) Bus port processing method and device, storage medium and electronic equipment
CN113810238A (en) Network monitoring method, electronic device and storage medium
CN108512698B (en) Network disaster tolerance method and device and electronic equipment
CN111176985A (en) Software interface performance testing method and device, computer equipment and storage medium
CN111447106B (en) Fault detection method, device, storage medium and communication equipment
CN115580437A (en) Flow monitoring method and out-of-band controller
EP3515069A1 (en) Method and device for evaluating video quality
CN106717064A (en) Data transmission method, device and system of time division duplex wireless data transmission system
CN111200520A (en) Network monitoring method, server and computer readable storage medium
CN111258845A (en) Detection of event storms
CN115378795B (en) Method and device for monitoring network quality of server, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination