Switch communication system with adaptive fault tolerance capability and implementation method thereof

The switch communication system with adaptive fault tolerance rapidly detects and locates faults, adjusts operating modes, and optimizes performance, ensuring continuous and reliable network communication.

CN118784449BActive Publication Date: 2024-12-10HANGZHOU JING TANG COMM TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411078949.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-07
Publication Date
2024-12-10
Estimated Expiration
2044-08-07

AI Technical Summary

Technical Problem

Traditional switch communication systems lack adaptive fault tolerance, leading to inefficient fault detection, slow troubleshooting, and suboptimal performance adjustments, resulting in network communication interruptions and performance issues.

Method used

A switch communication system with adaptive fault tolerance capability, featuring real-time fault detection, intelligent fault diagnosis, automatic mode adjustment, and dynamic performance optimization using algorithms like decision trees and neural networks, along with protocols like RSTP and MSTP for seamless link switching and parameter adjustments.

Benefits of technology

Ensures rapid fault detection and location, maintains communication continuity, optimizes performance by adjusting parameters like cache size and transmission rates, and reduces communication delays, thereby enhancing network reliability and stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118784449B_ABST
    Figure CN118784449B_ABST
Patent Text Reader

Abstract

The present invention discloses a switch communication system with adaptive fault tolerance capability, comprising: a fault detection module for real-time monitoring of the operating status of each component inside the switch and the communication link, and a variable P for monitoring the port status. s Indicates that its value is 0 for normal and 1 for abnormal. The data packet transmission status is expressed by the number of data packets transmitted per second D p The chip operating temperature is represented by the variable T c Indicates that the unit is Celsius. It determines whether there is a fault by periodically sending detection signals and receiving feedback. If an abnormal situation is detected, the alarm mechanism is triggered and the fault information is sent to the fault diagnosis module. The detection signal frequency is based on the load of the switch. p By dynamically adjusting the importance of each component and communication link in real time, and using precise detection signals and intelligent diagnosis algorithms, it can quickly and accurately detect faults and locate the type and location of faults, avoid further expansion of faults, and reduce the impact on network communications.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of switch communication systems, and in particular to a switch communication system with adaptive fault tolerance capability and an implementation method thereof. Background Art

[0002] With the rapid development of information technology, the importance of network communication in various fields has become increasingly prominent. As a key device in network communication, the reliability and stability of switches are crucial to ensure the normal operation of the network. However, in the actual network environment, switches face many challenges.

[0003] First, there is a possibility of failure of various components inside the switch. For example, the port may fail due to hardware damage, poor connection, etc., affecting the normal transmission of data. At the same time, the communication link may also cause abnormal data packet transmission due to various external factors, such as physical line damage, electromagnetic interference, etc.

[0004] Traditional switches are often not smart and timely enough in fault detection, and cannot accurately and quickly locate the fault type and location. When a fault occurs, manual intervention is usually required for troubleshooting and repair, which is not only time-consuming, but may also cause network communication interruption for a long time, affecting the normal development of business.

[0005] In terms of fault tolerance, existing switch solutions have certain limitations. When a fault occurs, the working mode cannot be adjusted quickly and effectively to ensure the continuity of communication. For example, when a port fails, the lack of intelligent path adjustment strategy may cause data transmission to be blocked. Moreover, the switching of redundant links is not smooth enough, which easily causes problems such as packet loss.

[0006] In terms of performance optimization, traditional switches cannot be dynamically adjusted according to real-time system status and fault tolerance mode. For example, they cannot flexibly adjust parameters such as packet cache size, data transmission rate, and processor operating frequency according to factors such as load conditions and network quality, resulting in performance problems such as excessive communication delay and insufficient throughput under different working conditions, which cannot meet the growing demand for network communication quality.

[0007] In summary, the existing switch communication system has many deficiencies in fault detection, fault tolerance and performance optimization. There is an urgent need for a switch communication system with adaptive fault tolerance and its implementation method to solve these problems in order to improve the reliability, stability and performance of network communication. Summary of the invention

[0008] The present invention provides a switch communication system with adaptive fault tolerance capability and an implementation method thereof to solve the problems mentioned in the above-mentioned prior art.

[0009] In order to achieve the above object, the present invention adopts the following technical solution: a switch communication system with adaptive fault tolerance capability, comprising:

[0010] The fault detection module is used to monitor the operating status of the components and communication links inside the switch in real time. The specific monitoring port status is measured by the variable P s Indicates that its value is 0 for normal and 1 for abnormal. The data packet transmission status is expressed by the number of data packets transmitted per second D p The chip operating temperature is represented by the variable T c Indicates that the unit is Celsius. It determines whether there is a fault by periodically sending detection signals and receiving feedback. If an abnormal situation is detected, the alarm mechanism is triggered and the fault information is sent to the fault diagnosis module. The detection signal frequency is based on the load of the switch. p The importance is dynamically adjusted, and the adjustment formula is:

[0011] When L p >80% or in a critical business scenario, the system presets the critical business flag B k , B k =1 indicates critical business, the detection signal frequency f d Adjust to 10 times per second; when L p ≤80% and B k =0, adjust f d 5 times per second to reduce system resource usage;

[0012] The fault diagnosis module is connected to the fault detection module. After receiving the fault information sent by the fault detection module, it accurately locates the fault type and fault location through the intelligent diagnosis algorithm. The diagnosis formula is: F = αP s +βT c +γD p +δH, where F represents the fault diagnosis result, H represents the historical fault data, and H n represents the number of historical faults, α, β, γ, and δ are weight coefficients, which are 0.3, 0.2, 0.4, and 0.1 respectively;

[0013] The adaptive fault-tolerant module is connected to the fault diagnosis module. After the fault diagnosis module determines the fault type and location, the module automatically adjusts the working mode of the switch according to the preset fault-tolerant strategy to ensure the continuity of communication. The fault-tolerant strategy includes redundant link switching, data packet retransmission mechanism and data cache strategy. When some ports fail, the module automatically adjusts the data transmission path using the following formula: Assume that the switch has n ports, and the port set is P = {P 1 , P 2 , ..., P n}, under normal circumstances, data from the source port P sTransfer to destination port P d , when port P i When a fault occurs, i∈{1, 2, ..., n}, if there is a backup port P j (j∈{1, 2, ..., n} and j≠i, satisfying the distance condition: spare port P j To the destination port P d Network distance Less than the threshold d th , set to 10 meters; performance conditions: spare port P j Current available bandwidth Greater than threshold b th , set to 100Mbps, then the data transmission path is changed from P s →P i →P d Adjust to P s →P j →P d .

[0014] The performance optimization module is connected to the adaptive fault tolerance module, which continuously monitors the performance of the switch communication system in the fault tolerance mode, including the communication delay time T d , in milliseconds, throughput, the amount of data transmitted per second T h It is expressed in Mbps, and its optimization formula is: O = ∈T d +ζT h +ηT+θR, where O represents the performance optimization result, T is the current fault tolerance mode parameter, 0 represents the normal mode, 1 represents the fault tolerance mode, R is the resource utilization parameter, R p It indicates the proportion of used resources to total resources, ∈, ζ, η, θ are weight coefficients, which take values ​​of 0.2, 0.4, 0.2, and 0.2 respectively.

[0015] Preferably, the fault diagnosis module adopts a decision tree algorithm or a neural network algorithm in machine learning to improve the accuracy and speed of fault diagnosis by learning a large amount of training data.

[0016] Preferably, the redundant link switching strategy of the adaptive fault-tolerant module adopts the Rapid Spanning Tree Protocol RSTP or the Multiple Spanning Tree Protocol MSTP, which is used to quickly switch to the backup link when a link fails, thereby reducing the communication interruption time.

[0017] Preferably, the performance optimization module dynamically adjusts system parameters including:

[0018] Adjust the packet cache size: Set the initial cache size to C s , according to the current load condition L p Adjustment, when L p >60%, the cache size is adjusted to 1.5Cs , when L p When ≤60%, the cache size is adjusted to 0.8C s ;

[0019] Data transmission rate: Assume the initial transmission rate is V s , according to the network quality Q n Adjust, when Q n When good, V s Increase by 10%, when Q n In the worst case, V s 10% reduction;

[0020] Processor operating frequency: Set the initial frequency to F s , according to the system load and temperature conditions, when L p >70% and T c >50℃, reduce by 20%, when L p ≤70℃ and T c When ≤50℃, increase by 10% to adapt to different fault tolerance modes and system load conditions.

[0021] Preferably, the present invention also discloses a method of a switch communication system with adaptive fault tolerance capability, comprising the following steps:

[0022] S1: The fault detection module monitors the operating status of the components and communication links inside the switch in real time;

[0023] S2: When the fault detection module detects an abnormal situation, it sends the fault information to the fault diagnosis module, and uses the intelligent diagnosis algorithm to determine the fault type and location. After determining the fault type and location, the fault diagnosis module records the diagnosis results in the fault log for subsequent analysis and improvement of the fault diagnosis algorithm;

[0024] S3: According to the fault diagnosis results, the adaptive fault-tolerant module automatically adjusts the working mode of the switch to ensure communication continuity. When performing redundant link switching, the adaptive fault-tolerant module uses smooth transition technology to avoid data packet loss and communication interruption caused by link switching;

[0025] S4: The performance optimization module continuously monitors the performance of the switch communication system in fault-tolerant mode, and improves system performance and stability by dynamically adjusting system parameters and optimization algorithms. When dynamically adjusting system parameters, the performance optimization module uses simulated annealing algorithm or particle swarm optimization algorithm to find the optimal parameter combination to achieve the best performance optimization effect;

[0026] S5: When the system does not detect a fault for a period of time, it automatically returns to normal working mode and evaluates and records the previous fault-tolerant operations to analyze whether there are areas for improvement. The evaluation indicators include the fault-tolerant time T f , data transmission recovery speed V r , if T f >10 seconds or V r If the speed is less than 50Mbps / s, it is marked as requiring further optimization;

[0027] S6: Perform comprehensive performance testing and fault simulation on the switch communication system to verify the system's adaptive fault tolerance and performance optimization effect, and adjust system parameters and optimization strategies based on the test results. Performance test indicators include average communication delay and maximum throughput.

[0028] S7: During system operation, the system operation data is recorded in real time, including the time of fault occurrence, fault type, and fault-tolerant operation execution, and a system operation report is formed. A summary analysis is conducted every month to timely identify potential problems and improvement directions;

[0029] S8: Based on the data analysis results in the system operation report, update and optimize the system's fault detection frequency, fault diagnosis algorithm, fault tolerance strategy, and performance optimization algorithm to ensure that the system always maintains good adaptive fault tolerance and performance;

[0030] S9: When the switch communication system undergoes hardware upgrades or software updates, the parameters of the relevant modules are automatically reconfigured and optimized to adapt to the new system environment. At the same time, the updated system is fully tested and verified to ensure system stability and reliability.

[0031] S10: Establish a real-time interaction mechanism with users. When the system fails or performs important operations, notifications and prompts are sent to users. Users can view the system's operating status, fault details, and optimization suggestions through the interactive interface, and personalize system parameters according to their own needs.

[0032] Preferably, the present invention further discloses a device of a switch communication system with adaptive fault tolerance capability, comprising:

[0033] A processor, configured to execute the above-mentioned implementation method of the switch communication system with adaptive fault tolerance capability;

[0034] A memory, used to store data and program codes required by the processor to execute the above method;

[0035] Communication interface, used for data communication with other network devices to realize the functions of the switch communication system. The communication interface supports communication protocols, including Ethernet protocol and Fibre Channel protocol, to meet the needs of different network environments;

[0036] The display device is used to display the operating status, fault information and performance optimization results of the switch communication system, which is convenient for users to monitor and manage.

[0037] Preferably, the present invention further discloses a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, a switch communication system with adaptive fault tolerance capability is implemented.

[0038] Compared with the prior art, the present invention has the following beneficial effects:

[0039] 1. Intelligent fault detection and rapid positioning:

[0040] By real-time monitoring of the operating status of the components and communication links inside the switch, and using precise detection signals and intelligent diagnostic algorithms, faults can be detected quickly and accurately and the fault type and location can be located. For example, when the port status is abnormal or the chip operating temperature is too high, the problem can be discovered in time to prevent the fault from further expanding and reduce the impact on network communications.

[0041] The detection signal frequency is dynamically adjusted according to the load conditions and importance. The detection frequency is increased in high-load or critical business scenarios to ensure timely detection of faults. The detection frequency is appropriately reduced in low-load scenarios to reduce system resource usage and improve the overall efficiency of the system.

[0042] 2. Adaptive fault tolerance ensures communication continuity:

[0043] When a fault occurs, the adaptive fault-tolerance module can automatically adjust the switch's operating mode according to the preset fault-tolerance strategy. For example, when some ports fail, the precise path adjustment formula can quickly find a backup port that meets the conditions, automatically adjust the data transmission path, realize traffic redistribution, and ensure communication continuity.

[0044] Adopt redundant link switching strategies, such as Rapid Spanning Tree Protocol (RSTP) or Multiple Spanning Tree Protocol (MSTP), which can quickly switch to the backup link when a link fails, reduce communication interruption time, and improve network reliability.

[0045] 3. Performance optimization improves system stability:

[0046] The performance optimization module continuously monitors the performance of the switch communication system in fault-tolerant mode. Through specific optimization formulas and dynamic adjustment of system parameters, such as adjusting the packet cache size according to load conditions, adjusting the data transmission rate according to network quality, and adjusting the processor operating frequency according to system load and temperature conditions, it can further improve the system's performance and stability.

[0047] Use simulated annealing algorithm or particle swarm optimization algorithm to find the optimal parameter combination, achieve the best performance optimization effect, reduce communication delay, improve throughput, and meet the requirements of network communication quality in different application scenarios.

[0048] 4. System overall optimization and user interaction:

[0049] By automatically restoring the system to normal working mode when no fault is detected for a period of time, evaluating and recording it, as well as regular performance testing and fault simulation, the adaptive fault tolerance and performance optimization effect of the system can be continuously improved. For example, relevant parameters can be adjusted according to evaluation indicators and test results to keep the system in good operating condition.

[0050] Establish a real-time interaction mechanism with users, send notifications and prompts to users in a timely manner, so that users can understand the system's operating status, fault details, optimization suggestions, etc. in real time, and can personalize some system parameters according to their own needs, thereby improving users' sense of control over the system and usage experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] Figure 1 A schematic block diagram of a switch communication system with adaptive fault tolerance capability proposed by the present invention;

[0052] Figure 2 The present invention is a schematic block diagram of a method for implementing a switch communication system with adaptive fault tolerance capability. DETAILED DESCRIPTION

[0053] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0054] In the description of the present invention, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", "clockwise", "counterclockwise" and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the referred device or element must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as limiting the present invention.

[0055] In addition, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the present invention, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined. In addition, the terms "installed", "connected" and "connected" should be understood in a broad sense. For example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, and it can be the internal connection of two elements. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances. The present invention will be further described in detail below in conjunction with the accompanying drawings.

[0056] Reference Figure 1-2 : A switch communication system with adaptive fault tolerance capability, comprising:

[0057] The fault detection module is used to monitor the operating status of the components and communication links inside the switch in real time. The specific monitoring port status is measured by the variable P s Indicates that its value is 0 for normal and 1 for abnormal. The data packet transmission status is expressed by the number of data packets transmitted per second D p The chip operating temperature is represented by the variable T c Indicates that the unit is Celsius. It determines whether there is a fault by periodically sending detection signals and receiving feedback. If an abnormal situation is detected, the alarm mechanism is triggered and the fault information is sent to the fault diagnosis module. The detection signal frequency is based on the load of the switch. p The importance is dynamically adjusted, and the adjustment formula is:

[0058] When L p >80% or in a critical business scenario, the system presets the critical business flag B k , B k =1 indicates critical business, the detection signal frequency f dAdjust to 10 times per second; when L p ≤80% and B k =0, adjust f d 5 times per second to reduce system resource usage;

[0059] The fault diagnosis module is connected to the fault detection module. After receiving the fault information sent by the fault detection module, it accurately locates the fault type and fault location through the intelligent diagnosis algorithm. The diagnosis formula is: F = αP s +βT c +γD p +δH, where F represents the fault diagnosis result, H represents the historical fault data, and H n represents the number of historical faults, α, β, γ, and δ are weight coefficients, which are 0.3, 0.2, 0.4, and 0.1 respectively;

[0060] The adaptive fault-tolerant module is connected to the fault diagnosis module. After the fault diagnosis module determines the fault type and location, the module automatically adjusts the working mode of the switch according to the preset fault-tolerant strategy to ensure the continuity of communication. The fault-tolerant strategy includes redundant link switching, data packet retransmission mechanism and data cache strategy. When some ports fail, the module automatically adjusts the data transmission path using the following formula: Assume that the switch has n ports, and the port set is P = {P 1 , P 2 , ..., P n}, under normal circumstances, data from the source port P s Transfer to destination port P d , when port P i When a fault occurs, i∈{1, 2, ..., n}, if there is a backup port P j (j∈{1, 2, ..., n} and j≠i, satisfying the distance condition: spare port P j To the destination port P d Network distance Less than the threshold d th , set to 10 meters; performance conditions: spare port P j Current available bandwidth Greater than threshold b th , set to 100Mbps, then the data transmission path is changed from P s →P i →P d Adjust to P s →P j →P d .

[0061] The performance optimization module is connected to the adaptive fault tolerance module, which continuously monitors the performance of the switch communication system in the fault tolerance mode, including the communication delay time T d, in milliseconds, throughput, the amount of data transmitted per second T h It is expressed in Mbps, and its optimization formula is: O = ∈T d +ζT h +ηT+θR, where O represents the performance optimization result, T is the current fault tolerance mode parameter, 0 represents the normal mode, 1 represents the fault tolerance mode, R is the resource utilization parameter, R p It indicates the proportion of used resources to total resources, ∈, ζ, η, θ are weight coefficients, which take values ​​of 0.2, 0.4, 0.2, and 0.2 respectively.

[0062] In the present invention, the fault diagnosis module adopts a decision tree algorithm or a neural network algorithm in machine learning to improve the accuracy and speed of fault diagnosis by learning a large amount of training data.

[0063] In the present invention, the redundant link switching strategy of the adaptive fault-tolerant module adopts the Rapid Spanning Tree Protocol RSTP or the Multiple Spanning Tree Protocol MSTP, which is used to quickly switch to a backup link when a link fails, thereby reducing the communication interruption time.

[0064] In the present invention, the performance optimization module dynamically adjusts system parameters including:

[0065] Adjust the packet cache size: Set the initial cache size to C s , according to the current load condition L p Adjustment, when L p >60%, the cache size is adjusted to 1.5C s , when L p When ≤60%, the cache size is adjusted to 0.8C s ;

[0066] Data transmission rate: Assume the initial transmission rate is V s , according to the network quality Q n Adjust, when Q n When good, V s Increase by 10%, when Q n In the worst case, V s 10% reduction;

[0067] Processor operating frequency: Set the initial frequency to F s , according to the system load and temperature conditions, when L p >70% and T c >50℃, reduce by 20%, when L p ≤70% and T c When ≤50℃, increase by 10% to adapt to different fault tolerance modes and system load conditions.

[0068] Preferably, the present invention also discloses a method of a switch communication system with adaptive fault tolerance capability, comprising the following steps:

[0069] S1: The fault detection module monitors the operating status of the components and communication links inside the switch in real time;

[0070] S2: When the fault detection module detects an abnormal situation, it sends the fault information to the fault diagnosis module, and uses the intelligent diagnosis algorithm to determine the fault type and location. After determining the fault type and location, the fault diagnosis module records the diagnosis results in the fault log for subsequent analysis and improvement of the fault diagnosis algorithm;

[0071] S3: According to the fault diagnosis results, the adaptive fault-tolerant module automatically adjusts the working mode of the switch to ensure communication continuity. When performing redundant link switching, the adaptive fault-tolerant module uses smooth transition technology to avoid data packet loss and communication interruption caused by link switching;

[0072] S4: The performance optimization module continuously monitors the performance of the switch communication system in fault-tolerant mode, and improves system performance and stability by dynamically adjusting system parameters and optimization algorithms. When dynamically adjusting system parameters, the performance optimization module uses simulated annealing algorithm or particle swarm optimization algorithm to find the optimal parameter combination to achieve the best performance optimization effect;

[0073] S5: When the system does not detect a fault for a period of time, it automatically returns to normal working mode and evaluates and records the previous fault-tolerant operations to analyze whether there are areas for improvement. The evaluation indicators include the fault-tolerant time T f , data transmission recovery speed V r , if T f >10 seconds or V r If the speed is less than 50Mbps / s, it is marked as requiring further optimization;

[0074] S6: Perform comprehensive performance testing and fault simulation on the switch communication system to verify the system's adaptive fault tolerance and performance optimization effect, and adjust system parameters and optimization strategies based on the test results. Performance test indicators include average communication delay and maximum throughput.

[0075] S7: During system operation, the system operation data is recorded in real time, including the time of fault occurrence, fault type, and fault-tolerant operation execution, and a system operation report is formed. A summary analysis is conducted every month to timely identify potential problems and improvement directions;

[0076] S8: Based on the data analysis results in the system operation report, update and optimize the system's fault detection frequency, fault diagnosis algorithm, fault tolerance strategy, and performance optimization algorithm to ensure that the system always maintains good adaptive fault tolerance and performance;

[0077] S9: When the switch communication system undergoes hardware upgrades or software updates, the parameters of the relevant modules are automatically reconfigured and optimized to adapt to the new system environment. At the same time, the updated system is fully tested and verified to ensure system stability and reliability.

[0078] S10: Establish a real-time interaction mechanism with users. When the system fails or performs important operations, notifications and prompts are sent to users. Users can view the system's operating status, fault details, and optimization suggestions through the interactive interface, and personalize system parameters according to their own needs.

[0079] The present invention also discloses a device of a switch communication system with adaptive fault tolerance capability, comprising:

[0080] A processor, configured to execute the above-mentioned implementation method of the switch communication system with adaptive fault tolerance capability;

[0081] A memory, used to store data and program codes required by the processor to execute the above method;

[0082] Communication interface, used for data communication with other network devices to realize the functions of the switch communication system. The communication interface supports communication protocols, including Ethernet protocol and Fibre Channel protocol, to meet the needs of different network environments;

[0083] The display device is used to display the operating status, fault information and performance optimization results of the switch communication system, which is convenient for users to monitor and manage.

[0084] The present invention also discloses a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, a switch communication system with adaptive fault tolerance capability is implemented.

[0085] System operation process:

[0086] First, the fault detection module monitors the status of all aspects of the switch in real time, and once an abnormality is found, it passes the information to the fault diagnosis module. After the fault diagnosis module determines the fault type and location, the adaptive fault tolerance module immediately adjusts the working mode to ensure communication continuity, while the performance optimization module continuously monitors and optimizes system performance.

[0087] When the system does not detect a fault for a period of time, it automatically returns to normal working mode, evaluates and records previous fault-tolerant operations, and analyzes whether there are areas for improvement. Regularly conduct comprehensive performance tests and fault simulations on the switch communication system, and adjust system parameters and optimization strategies based on the test results. During system operation, various operating data are recorded in real time to form a system operation report, which is summarized and analyzed monthly to promptly identify potential problems and improvement directions.

[0088] According to the data analysis results in the system operation report, the system fault detection frequency, fault diagnosis algorithm, fault tolerance strategy and performance optimization algorithm are regularly updated and optimized to ensure that the system always maintains good adaptive fault tolerance and performance. When the switch communication system is upgraded with hardware or software, the parameters of the relevant modules are automatically reconfigured and optimized to adapt to the new system environment. At the same time, the updated system is fully tested and verified to ensure the stability and reliability of the system.

[0089] A real-time interaction mechanism with users is established. When the system fails or performs important operations, notifications and prompts are sent to users in a timely manner. Users can view the system's operating status, fault details, and optimization suggestions through the interactive interface, and can personalize some system parameters according to their own needs. Through the collaborative work of various modules, the switch communication system can achieve adaptive fault tolerance and performance optimization, and improve the quality and reliability of network communications.

[0090] The above are only preferred specific implementation modes of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can make equivalent replacements or changes according to the technical solutions and inventive concepts of the present invention within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.

Claims

1. A switch communication system with adaptive fault tolerance capability, It is characterized in that include: The fault detection module is used to monitor the operating status of the components and communication links inside the switch in real time. The specific monitoring port status is variable Indicates that its value is 0 for normal and 1 for abnormal. The data packet transmission status is expressed in the number of data packets transmitted per second. Indicates the chip operating temperature using variables Indicates the temperature in degrees Celsius. It determines whether there is a fault by periodically sending detection signals and receiving feedback. If an abnormality is detected, the alarm mechanism is triggered and the fault information is sent to the fault diagnosis module. The detection signal frequency depends on the load of the switch. The importance is dynamically adjusted, and the adjustment formula is: when Or in a critical business scenario, the system presets the critical business flag , Indicates critical business, the detection signal frequency Adjust to 10 times per second; when and When adjusting 5 times per second to reduce system resource usage; The fault diagnosis module is connected to the fault detection module. After receiving the fault information sent by the fault detection module, it accurately locates the fault type and fault location through the intelligent diagnosis algorithm. The diagnosis formula is: ,in Indicates the fault diagnosis result. is the historical fault data, Indicates the number of historical faults. , , , is the weight coefficient, which takes values ​​of 0.3, 0.2, 0.4, and 0.1 respectively; The adaptive fault-tolerant module is connected to the fault diagnosis module. After the fault diagnosis module determines the fault type and location, the module automatically adjusts the working mode of the switch according to the preset fault-tolerant strategy to ensure the continuity of communication. The fault-tolerant strategy includes redundant link switching, data packet retransmission mechanism and data cache strategy. When some ports fail, the module automatically adjusts the data transmission path using the following formula: Assume that the switch has ports, the port set is , normally data is from the source port Transfer to target port , when the port When a fault occurs , if there is a backup port and , meet the distance condition: spare port To the target port Network distance Less than threshold , set to 10 meters; performance conditions: spare port Current available bandwidth Greater than threshold , set to 100Mbps, the data transmission path is changed from Adjust to ; The performance optimization module is connected to the adaptive fault tolerance module, which continuously monitors the performance of the switch communication system in fault tolerance mode, including the communication delay time. , in milliseconds, throughput, the amount of data transmitted per second It is expressed in Mbps, and its optimization formula is: ,in Indicates the performance optimization results. is the current fault tolerance mode parameter, 0 indicates normal mode, 1 indicates fault tolerance mode, is the resource utilization parameter, Indicates the ratio of used resources to total resources. , , , are weight coefficients, taking values ​​of 0.2, 0.4, 0.2, and 0.2 respectively.

2. The switch communication system with adaptive fault tolerance capability according to claim 1, It is characterized in that The fault diagnosis module adopts a decision tree algorithm or a neural network algorithm in machine learning to improve the accuracy and speed of fault diagnosis by learning a large amount of training data.

3. The switch communication system with adaptive fault tolerance capability according to claim 1, It is characterized in that The redundant link switching strategy of the adaptive fault-tolerant module adopts the Rapid Spanning Tree Protocol RSTP or the Multiple Spanning Tree Protocol MSTP, which is used to quickly switch to a backup link when a link fails, thereby reducing communication interruption time.

4. The switch communication system with adaptive fault tolerance capability according to claim 1, It is characterized in that The performance optimization module dynamically adjusts system parameters including: Adjust the packet cache size: Set the initial cache size to , according to the current load Adjustment, then , the cache size is adjusted to ,when When ; Data transmission rate: Assume the initial transmission rate is , depending on the network quality Adjustment, when When good, Increase by 10%, when In worse cases, Reduce by 10%; Processor operating frequency: Set the initial frequency to , according to the system load and temperature conditions, when and When and When the system is running at 10%, it is increased by 10% to adapt to different fault tolerance modes and system load conditions.

5. A method for implementing a switch communication system having adaptive fault tolerance capability according to any one of claims 1 to 4, It is characterized in that The following steps are involved: S1: The fault detection module monitors the operating status of the components and communication links inside the switch in real time; S2: When the fault detection module detects an abnormal situation, it sends the fault information to the fault diagnosis module, and uses the intelligent diagnosis algorithm to determine the fault type and location. After determining the fault type and location, the fault diagnosis module records the diagnosis results in the fault log for subsequent analysis and improvement of the fault diagnosis algorithm; S3: According to the fault diagnosis results, the adaptive fault-tolerant module automatically adjusts the working mode of the switch to ensure communication continuity. When performing redundant link switching, the adaptive fault-tolerant module uses smooth transition technology to avoid data packet loss and communication interruption caused by link switching; S4: The performance optimization module continuously monitors the performance of the switch communication system in fault-tolerant mode, and improves system performance and stability by dynamically adjusting system parameters and optimization algorithms. When dynamically adjusting system parameters, the performance optimization module uses simulated annealing algorithm or particle swarm optimization algorithm to find the optimal parameter combination to achieve the best performance optimization effect; S5: When the system does not detect a fault for a period of time, it automatically returns to normal working mode and evaluates and records the previous fault-tolerant operations to analyze whether there are areas for improvement. The evaluation indicators include fault-tolerant time , Data transmission recovery speed ,like Seconds or , it is marked as needing further optimization; S6: Perform comprehensive performance testing and fault simulation on the switch communication system to verify the system's adaptive fault tolerance and performance optimization effect, and adjust system parameters and optimization strategies based on the test results. Performance test indicators include average communication delay and maximum throughput. S7: During system operation, the system operation data is recorded in real time, including the time of fault occurrence, fault type, and fault-tolerant operation execution, and a system operation report is formed. A summary analysis is conducted every month to timely identify potential problems and improvement directions; S8: Based on the data analysis results in the system operation report, update and optimize the system's fault detection frequency, fault diagnosis algorithm, fault tolerance strategy, and performance optimization algorithm to ensure that the system always maintains good adaptive fault tolerance and performance; S9: When the switch communication system undergoes hardware upgrades or software updates, the parameters of the relevant modules are automatically reconfigured and optimized to adapt to the new system environment. At the same time, the updated system is fully tested and verified to ensure system stability and reliability. S10: Establish a real-time interaction mechanism with users. When the system fails or performs important operations, notifications and prompts are sent to users. Users can view the system's operating status, fault details, and optimization suggestions through the interactive interface, and personalize system parameters according to their own needs.

6. A device for implementing a switch communication system with adaptive fault tolerance capability according to any one of claims 1 to 4, It is characterized in that include: A processor, configured to execute the method of the switch communication system with adaptive fault tolerance capability as described in claim 5; A memory for storing data and program codes required for the processor to execute the method of the switch communication system with adaptive fault tolerance capability as claimed in claim 5; Communication interface, used for data communication with other network devices to realize the functions of the switch communication system. The communication interface supports communication protocols, including Ethernet protocol and Fibre Channel protocol, to meet the needs of different network environments; The display device is used to display the operating status, fault information and performance optimization results of the switch communication system, which is convenient for users to monitor and manage.

7. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the switch communication system with adaptive fault tolerance capability described in any one of claims 1 to 4 is implemented.