Method, device and equipment for checking switch network port fault and medium

By combining the testing methods of switching chips, PHY chips and transformers, switch network port faults can be quickly located, which solves the problem of difficulty in fault location in the existing technology, achieves accurate identification of fault points and improves the efficiency of network recovery.

CN118784603APending Publication Date: 2024-10-15JIANGSU DINGDONG INTELLIGENT TECHNOLOGY CO LTD +1
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410860295.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

It is difficult to quickly locate switch network port faults with the existing technology. Especially when a single network port fails, the fault factors are complex and it is difficult to directly locate the fault through conventional ring throttling methods.

Method used

Using a combination of software and hardware methods, we conduct detailed tests and inspections on switching chips, PHY chips, transformers and their leads. Through loopback testing and differential signal pin continuity testing, we determine the cause of the fault and achieve rapid identification of the fault point. position.

Benefits of technology

It minimizes the time of network service interruption, provides a clear direction for subsequent repair work, and improves the efficiency and accuracy of troubleshooting.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118784603A_ABST
    Figure CN118784603A_ABST
Patent Text Reader

Abstract

The invention relates to a method, a device, equipment and a medium for troubleshooting a switch network port fault, and the method comprises the steps: determining that a to-be-troubleshot network port belongs to a software troubleshooting object or a hardware troubleshooting object when a certain to-be-troubleshot network port of a switch fails; the software troubleshooting object comprises a switch chip and a PHY chip, and the hardware troubleshooting object comprises a transformer and a lead port thereof; when the to-be-investigated network port is a software investigation object, executing a loopback test according to the loopback test configuration instruction, and determining a fault reason of the software investigation object based on the detected connection state and the current flow rate; and when the to-be-checked network port is the hardware checking object, carrying out a conduction test on at least one pair of differential signal pins of the transformer, and determining a fault reason of the hardware checking object. Thus, the switch chip, the PHY chip, the transformer and the lead port of the transformer are tested and checked in detail in sequence, the reason of the switch network port fault can be determined, and the fault point can be quickly positioned.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of switch network port fault detection, and in particular to a method, device, equipment and medium for troubleshooting switch network port faults. Background Art

[0002] In the field of computer networks, switches are important network devices. The stability of their performance and the qualification of their network ports are directly related to the communication quality and data transmission efficiency of the entire network. With the continuous development of network technology, the requirements for the qualification of switch network ports are becoming higher and higher.

[0003] At present, the loop flow method is widely used to test the eligibility of the switch network port. This method builds a closed traffic loop to simulate the data flow in the actual network to verify the performance of the network port. If the loop flow cannot pass, it means that the switch network port is unqualified.

[0004] When faced with multiple network ports, it is not enough to just know that there are network ports that are unqualified. It is also necessary to further determine which network ports are qualified and which are unqualified. Therefore, by narrowing the flow loop, the unqualified network ports can be gradually located, thereby improving the efficiency and accuracy of troubleshooting.

[0005] If all network ports fail to meet the requirements, it is usually caused by overall factors such as unstable power supply and abnormal clock signal. For such problems, the industry has developed a relatively mature troubleshooting method, which can find and solve the problem by checking key components such as power modules and clock circuits.

[0006] However, when faced with individual network ports failing, especially when a single network port fails while other network ports are normal, this failure may involve more complex factors, such as network port hardware damage, poor contact, configuration errors, etc. These factors are relatively hidden and difficult to locate directly through conventional ring-shaped flow methods. Summary of the invention

[0007] In view of the above problems in the prior art, the present application provides a method, device, equipment and medium for troubleshooting switch network port failures. By using a combination of software and hardware methods, the switch chip, PHY chip, transformer and its leads are tested and inspected in detail in turn, which can determine the cause of the switch network port failure, achieve rapid location of the fault point, and provide a clear direction for subsequent repair work.

[0008] To achieve the above object, the first aspect of the present application provides a method for troubleshooting a switch network port failure, wherein the switch includes a switch chip, a PHY chip, and a transformer coupled in sequence, and the method includes:

[0009] When a certain network port to be checked of the switch fails, it is determined that the network port to be checked belongs to a software check object or a hardware check object; wherein the software check object includes the switch chip and the PHY chip, and the hardware check object includes the transformer and its lead port;

[0010] When the network port to be checked is a software troubleshooting object, a loopback test is performed according to the loopback test configuration instruction, and the cause of the failure of the software troubleshooting object is determined based on the detected connection status and the current traffic rate;

[0011] When the network port to be checked is a hardware check object, a continuity test is performed on at least one pair of differential signal pins of the transformer to determine the cause of the fault of the hardware check object.

[0012] From the above, the present application proposes a method for troubleshooting switch network port failures. For software troubleshooting objects, a loopback test can be used to quickly detect problems with the software troubleshooting objects; for hardware troubleshooting objects, a conductivity test is directly performed on the differential signal pins of the transformer, which can quickly determine the problems with the hardware troubleshooting objects, determine the cause of the switch network port failure, and achieve rapid positioning of the fault point, thereby minimizing the time of network service interruption and providing a clear direction for subsequent repair work.

[0013] As a possible implementation manner of the first aspect, determining the fault cause of the software troubleshooting object based on the detected connection state and the current traffic rate specifically includes:

[0014] After determining that the physical link connection of the software troubleshooting object is normal, obtaining a preset flow rate from the loopback test configuration instruction, and obtaining a current flow rate;

[0015] When the current flow rate is compared and found to be consistent with the preset flow rate, it is determined that the software troubleshooting object has no fault and the connection between the software troubleshooting objects is normal.

[0016] From the above, by directly observing the indicator light status of the software troubleshooting object without connecting the network cable, it is possible to quickly distinguish whether there is a problem with the physical link, speed up the initial stage of fault location, and save time for subsequent troubleshooting. In addition, on the basis of confirming that the physical link is normal, by comparing whether the current traffic rate is consistent with the preset traffic rate, it is possible to determine the connection relationship between the software troubleshooting objects (normal connection or abnormal connection), which is conducive to subsequent troubleshooting and repair work.

[0017] As a possible implementation manner of the first aspect, after the current traffic rate is inconsistent with the preset traffic rate, the method further includes:

[0018] From the loopback test configuration instruction, obtain the flow of the input network port and the flow of the output network port, wherein the output network port and the input network port belong to the same network, and the output network port is connected to the input network port;

[0019] When the flow of the input network port is compared with the flow of the output network port and is inconsistent, it is determined that the connection between the objects checked by the software is abnormal.

[0020] From the above, after discovering that the current traffic rate is inconsistent with the preset traffic rate, further comparing whether the traffic of the input network port is consistent with the traffic of the output network port can determine whether there is an abnormal connection between the software troubleshooting objects, and can more accurately locate the source of the fault. In other words, the above method can quickly distinguish whether it is a connection abnormality or a fault in the software troubleshooting object itself, providing a clear direction for subsequent fault repair.

[0021] As a possible implementation manner of the first aspect, performing a continuity test on at least one pair of differential signal pins of the transformer to determine a fault cause of the hardware troubleshooting object specifically includes:

[0022] Performing a continuity test on at least one pair of differential signal pins of the transformer;

[0023] If a group of differential signal pins is not conducting, it is determined that the output port corresponding to the differential signal pins is faulty;

[0024] If each group of differential signal pins is turned on, it is determined that the input port corresponding to the input pin of the transformer is faulty.

[0025] From the above, by detecting the conductivity of the differential signal pins of the transformer one by one, the specific location of the fault can be accurately located, and it is possible to determine which port or ports have problems in the signal transmission path. Once the specific location of the fault is determined, maintenance personnel can directly repair or replace the problem point, significantly shortening the network recovery time.

[0026] To achieve the above-mentioned purpose, the second aspect of the present application provides a device for troubleshooting switch network port failures, comprising:

[0027] A first determining unit is used to determine whether a network port to be checked of the switch belongs to a software check target or a hardware check target when a fault occurs in the network port to be checked of the switch; wherein the software check target includes the switch chip and the PHY chip, and the hardware check target includes the transformer and its lead port;

[0028] A second determining unit is used to perform a loopback test according to a loopback test configuration instruction when the network port to be checked is a software troubleshooting object, and determine the cause of the failure of the software troubleshooting object based on the detected connection state and the current traffic rate;

[0029] The third determining unit is used to perform a continuity test on at least one pair of differential signal pins of the transformer to determine the cause of the failure of the hardware troubleshooting object when the network port to be checked is a hardware troubleshooting object.

[0030] As a possible implementation method of the second aspect, the second determination unit is specifically used to obtain a preset traffic rate from the loopback test configuration instruction and a current traffic rate after determining that the physical link connection of the software troubleshooting object is normal; when comparing the current traffic rate with the preset traffic rate, it is determined that the software troubleshooting object has no faults and the connection between the software troubleshooting objects is normal.

[0031] As a possible implementation method of the second aspect, the second determination unit is also used to obtain the traffic of the input network port and the traffic of the output network port from the loopback test configuration instruction, wherein the output network port and the input network port belong to the same network, and the output network port is connected to the input network port; when the traffic of the input network port and the traffic of the output network port are inconsistent, it is determined that the connection between the software troubleshooting objects is abnormal.

[0032] As a possible implementation method of the second aspect, the third determination unit is specifically used to perform a conductivity test on at least one pair of differential signal pins of the transformer; if a group of differential signal pins is not conductive, it is determined that the output port corresponding to the differential signal pin is faulty; if each group of differential signal pins is conductive, it is determined that the input port corresponding to the input pin of the transformer is faulty.

[0033] To achieve the above object, the third aspect of the present application provides a computing device, including:

[0034] processor, and

[0035] A memory having program instructions stored thereon, wherein when the program instructions are executed by the processor, the processor executes the method described in any one of the first aspects above.

[0036] To achieve the above-mentioned purpose, the fourth aspect of the present application provides a computer-readable storage medium having program instructions stored thereon, and when the program instructions are executed by a computer, the computer implements any of the methods described in the first aspect above. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] Figure 1 This is a flow chart of the main steps of a method for troubleshooting switch network port failures provided by the present application;

[0038] Figure 2It is a connection diagram of a switching chip, a PHY chip, a transformer and their leads that are coupled in sequence provided by the present application;

[0039] Figure 3 is a schematic diagram of a PHY chip configured in loopback mode provided by the present application;

[0040] Figure 4 It is a VLAN configuration diagram provided by this application;

[0041] Figure 5 is a schematic diagram of a transformer provided by the present application;

[0042] Figure 6 It is a structural schematic diagram of a device for troubleshooting switch network port failures provided by the present application;

[0043] Figure 7 It is a structural schematic diagram of a computing device provided by the present application.

[0044] It should be understood that the size and shape of each block diagram in the above structural diagram are for reference only and should not constitute an exclusive interpretation of the embodiment of the present invention. The relative position and inclusion relationship between the blocks presented in the structural diagram are only schematic representations of the structural association between the blocks, and do not limit the physical connection method of the embodiment of the present invention. DETAILED DESCRIPTION

[0045] The technical solution provided by the present application is further described below with reference to the accompanying drawings and examples. It should be understood that the system structure and business scenarios provided in the examples of the present application are mainly to illustrate the possible implementation methods of the technical solution of the present application and should not be interpreted as the only limitation on the technical solution of the present application. It is known to those of ordinary skill in the art that with the evolution of the system structure and the emergence of new business scenarios, the technical solution provided by the present application is also applicable to similar technical problems.

[0046] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art of the present application. In case of any inconsistency, the meaning described in this specification or the meaning derived from the contents recorded in this specification shall prevail. In addition, the terms used herein are only for the purpose of describing the embodiments of the present application and are not intended to limit the present application.

[0047] Loopback test: is a special configuration of the transceiver data path, in which the data flow is looped back to the data source end through the data path. Under the loopback test, after sending a data stream in a specific format, the data stream will be looped back to the source end and compared with the original data to verify whether the data is consistent. The loopback mode is mainly used to test the communication link and help developers quickly diagnose faults.

[0048] like Figure 1 As shown, the embodiment of the present application provides a method for troubleshooting switch network port failures, such as Figure 2 As shown, the switch includes a switching chip, a PHY chip and a transformer coupled in sequence, and the method includes:

[0049] S101. When a network port to be checked of the switch fails, determine whether the network port to be checked is a software check target or a hardware check target; wherein the software check target includes the switch chip and the PHY chip, and the hardware check target includes the transformer and its lead port;

[0050] S102, when the network port to be checked is a software troubleshooting object, performing a loopback test according to a loopback test configuration instruction, and determining the cause of the failure of the software troubleshooting object based on the detected connection status and the current traffic rate;

[0051] S103: When the network port to be checked is a hardware check target, a continuity test is performed on at least one pair of differential signal pins of the transformer to determine a fault cause of the hardware check target.

[0052] Thus, in the present application, for software troubleshooting objects, a loopback test can be used to quickly detect problems with the software troubleshooting objects; for hardware troubleshooting objects, a conductivity test is directly performed on the differential signal pins of the transformer, which can quickly determine the problems with the hardware troubleshooting objects. Therefore, the cause of the switch network port failure can be determined, the fault point can be quickly located, the network service interruption time is minimized, and a clear direction is provided for subsequent repair work.

[0053] In some embodiments, determining the cause of the failure of the software troubleshooting object based on the detected connection status and the current traffic rate specifically includes:

[0054] After determining that the physical link connection of the software troubleshooting object is normal, obtaining a preset flow rate from the loopback test configuration instruction, and obtaining a current flow rate;

[0055] When the current flow rate is compared and found to be consistent with the preset flow rate, it is determined that the software troubleshooting object has no fault and the connection between the software troubleshooting objects is normal.

[0056] It should be noted that the following method can be used to determine whether the physical link of the software troubleshooting object is connected normally.

[0057] Specifically, when the network cable is not connected, monitor the indicator light of the software troubleshooting object;

[0058] If the indicator light is off, it is determined that the physical link of the object to be checked by the software is faulty;

[0059] Or, if the indicator light is on, it is determined that the physical link connection of the object to be checked by the software is normal.

[0060] For example, see Figure 3 As shown in the figure, after sending the loopback test configuration command to the PHY chip, when it is observed that the indicator light of the network port is still on when no network cable is connected, it means that the PHY chip has successfully set the loopback path. Although there is no external physical connection, the link is considered to be "active", so the indicator light is lit according to the link activity status. This phenomenon indicates that the physical link connection of the PHY chip is normal, otherwise it indicates that the physical link connection of the PHY chip is abnormal.

[0061] Specifically, the following method can be used to activate the loopback function of the PHY chip: enter the underlying debugging mode through the command line interface of the switch, and send instructions to the PHY chip to write a specific value to the specific register (0x5140) of its 4th port (corresponding to ethernet1 / 3), thereby activating the loopback function of the PHY chip.

[0062] It is worth noting that when the current flow rate is compared and found to be inconsistent with the preset flow rate, it is determined that the software troubleshooting object is faulty or the connection between the software troubleshooting objects is abnormal.

[0063] In this way, by directly observing the indicator light status of the software troubleshooting object without connecting the network cable, it is possible to quickly distinguish whether there is a problem with the physical link, speeding up the initial stage of fault location and saving time for subsequent troubleshooting. In addition, on the basis of confirming that the physical link is normal, by comparing whether the current traffic rate is consistent with the preset traffic rate, the connection relationship between the software troubleshooting objects (normal connection or abnormal connection) can be determined, which is conducive to subsequent troubleshooting and repair work.

[0064] In some embodiments, after the current flow rate is inconsistent with the preset flow rate, the method further includes:

[0065] From the loopback test configuration instruction, obtain the flow of the input network port and the flow of the output network port, wherein the output network port and the input network port belong to the same network, and the output network port is connected to the input network port;

[0066] When the flow of the input network port is compared with the flow of the output network port and is inconsistent, it is determined that the connection between the objects checked by the software is abnormal.

[0067] It is worth noting that when the traffic of the input network port is compared with the traffic of the output network port and they are consistent, it is determined that the connection between the software troubleshooting objects is normal, and the problem occurs in the failure of the software troubleshooting object.

[0068] The input and output ports are configured to be on the same network. Figure 4 shown.

[0069] In this way, after discovering that the current traffic rate is inconsistent with the preset traffic rate, further comparison is made between the traffic of the input network port and the traffic of the output network port to determine whether there is a connection abnormality between the software troubleshooting objects, and the source of the fault can be located more accurately. In other words, the above method can quickly distinguish whether it is a connection abnormality or a fault in the software troubleshooting object itself, providing a clear direction for subsequent fault repair.

[0070] In some embodiments, the performing a continuity test on at least one pair of differential signal pins of the transformer to determine the cause of the fault of the hardware troubleshooting object specifically includes:

[0071] Performing a continuity test on at least one pair of differential signal pins of the transformer;

[0072] If a group of differential signal pins is not conducting, it is determined that the output port corresponding to the differential signal pins is faulty;

[0073] If each group of differential signal pins is turned on, it is determined that the input port corresponding to the input pin of the transformer is faulty.

[0074] like Figure 5 As shown, the transformer takes the 100M Ethernet port transformer as an example. The signal from the PHY chip (shown on the left) is isolated by the capacitor and forms a signal in the differential circuit on the right. Figure 5 As shown, the conductivity of two pairs of differential signals (TX+ and TX-, RX+ and RX-) can be tested. If a group of differential signal pins is not conductive, it is determined that the output port corresponding to the differential signal pin is faulty; if both groups of differential signal pins are conductive, it is determined that the output port corresponding to the differential signal pin is not faulty. At this time, it is determined that the input port corresponding to the input pin of the transformer is faulty.

[0075] In this way, by detecting the conductivity of the differential signal pins of the transformer one by one, the specific location of the fault can be accurately located, and it is possible to determine which port or ports have problems in the signal transmission path. Once the specific location of the fault is determined, maintenance personnel can directly repair or replace the problem point, significantly shortening the network recovery time.

[0076] In order to more clearly illustrate the above method, the present application provides the following specific embodiments.

[0077] Step 1: When a network port to be checked of the switch fails, determine whether the network port to be checked is a software check target or a hardware check target; wherein the software check target includes the switch chip and the PHY chip, and the hardware check target includes the transformer and its lead;

[0078] Step 2: When the network port to be checked is a software troubleshooting object, perform a loopback test according to the loopback test configuration command, and monitor the indicator light of the software troubleshooting object when the network cable is not connected;

[0079] Specifically, if the indicator light is off, it is determined that a physical link of the software troubleshooting object is faulty;

[0080] Or, if the indicator light is on, it is determined that the physical link connection of the software troubleshooting object is normal.

[0081] Step 3: After determining that the physical link connection of the software troubleshooting object is normal, obtain the preset traffic rate from the loopback test configuration instruction, and obtain the current traffic rate, and compare whether the current traffic rate is consistent with the preset traffic rate;

[0082] Specifically, if they are consistent, it indicates that the traffic rate is consistent, and it is determined that the software troubleshooting object has no fault and the connection between the software troubleshooting objects is normal;

[0083] Or, if they are inconsistent, it means that the traffic rate is not negotiated in agreement, and it is determined that the software troubleshooting object fails or the connection between the software troubleshooting objects is abnormal.

[0084] It should be noted that, step 4 can be used to determine whether the connection between the software troubleshooting objects is abnormal. After determining that the connection between the software troubleshooting objects is normal, it can be determined that the problem occurs in the software troubleshooting object failure.

[0085] Step 4: After the current traffic rate is inconsistent with the preset traffic rate, obtain the traffic of the input network port and the traffic of the output network port from the loopback test configuration instruction, wherein the output network port and the input network port belong to the same network and the output network port is connected to the input network port; compare whether the traffic of the input network port and the flow of the output network port are consistent;

[0086] Specifically, if there is inconsistency, it indicates that the traffic rate has not been negotiated in agreement, and the software is determined to be abnormal in the connection between the objects;

[0087] Or, if they are consistent, it means that the traffic rate is negotiated consistently, and it is determined that the connection between the software troubleshooting objects is normal, and the software troubleshooting object itself has a fault.

[0088] Step 5: When the network port to be checked is a hardware check target, a continuity test is performed on at least one pair of differential signal pins of the transformer;

[0089] Specifically, if a group of differential signal pins is not conducting, it is determined that an output port corresponding to the differential signal pins is faulty;

[0090] Or, if each group of differential signal pins is turned on, it is determined that the output port corresponding to the differential signal pin is not faulty, and the problem occurs in the input port corresponding to the input pin of the transformer.

[0091] Figure 6 1 is a structural schematic diagram of a device for troubleshooting a switch network port failure provided in an embodiment of the present application. The embodiment of the present application provides a device 600 for troubleshooting a switch network port failure, including:

[0092] The first determining unit 601 is used to determine whether a network port to be checked of the switch belongs to a software check target or a hardware check target when a fault occurs in the network port to be checked of the switch; wherein the software check target includes the switch chip and the PHY chip, and the hardware check target includes the transformer and its lead port;

[0093] The second determining unit 602 is used to perform a loopback test according to the loopback test configuration instruction when the network port to be checked is a software troubleshooting object, and determine the fault cause of the software troubleshooting object based on the detected connection state and the current traffic rate;

[0094] The third determining unit 603 is used to perform a continuity test on at least one pair of differential signal pins of the transformer to determine the fault cause of the hardware troubleshooting object when the network port to be checked is a hardware troubleshooting object.

[0095] In some embodiments, the second determination unit 602 is specifically used to obtain a preset traffic rate from the loopback test configuration instruction and a current traffic rate after determining that the physical link connection of the software troubleshooting object is normal; when comparing the current traffic rate with the preset traffic rate, it is determined that the software troubleshooting object has no faults and the connection between the software troubleshooting objects is normal.

[0096] In some embodiments, the second determination unit 602 is further used to obtain the traffic of the input network port and the traffic of the output network port from the loopback test configuration instruction, wherein the output network port and the input network port belong to the same network, and the output network port is connected to the input network port; when the traffic of the input network port and the traffic of the output network port are inconsistent, it is determined that the connection between the software troubleshooting objects is abnormal.

[0097] In some embodiments, the third determination unit 603 is specifically used to perform a conductivity test on at least one pair of differential signal pins of the transformer; if a group of differential signal pins is not conductive, it is determined that the output port corresponding to the differential signal pin is faulty; if each group of differential signal pins is conductive, it is determined that the input port corresponding to the input pin of the transformer is faulty.

[0098] Figure 7 700 is a structural diagram of a computing device 700 provided in an embodiment of the present application. The computing device executes the above method, such as Figure 7 As shown, the computing device 700 includes: a processor 710 , a memory 720 , and a communication interface 730 .

[0099] It should be understood that Figure 7 The communication interface 730 in the computing device 700 shown may be used to communicate with other devices, and may specifically include one or more transceiver circuits or interface circuits.

[0100] The processor 710 may be connected to a memory 720. The memory 720 may be used to store the program code and data. Therefore, the memory 720 may be a storage unit inside the processor 710, or an external storage unit independent of the processor 710, or a component including a storage unit inside the processor 710 and an external storage unit independent of the processor 710.

[0101] Optionally, the computing device 700 may further include a bus. The memory 720 and the communication interface 830 may be connected to the processor 710 via the bus. The bus may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 7 A line without an arrow is used to represent the bus, but this does not mean that there is only one bus or one type of bus.

[0102] It should be understood that in the embodiment of the present application, the processor 710 may adopt a central processing unit (CPU). The processor may also be other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. Alternatively, the processor 710 may adopt one or more integrated circuits to execute relevant programs to implement the technical solutions provided in the embodiment of the present application.

[0103] The memory 720 may include a read-only memory and a random access memory, and provides instructions and data to the processor 710. A portion of the processor 710 may also include a nonvolatile random access memory. For example, the processor 710 may also store information on the device type.

[0104] When the computing device 700 is running, the processor 710 executes the computer-executable instructions in the memory 720 to perform any operation step of the above method and any optional embodiment thereof.

[0105] It should be understood that the computing device 700 according to the embodiment of the present application can correspond to the corresponding subjects in the methods according to the embodiments of the present application, and the above-mentioned and other operations and / or functions of each module in the computing device 700 are respectively for implementing the corresponding processes of each method of the present embodiment, which will not be repeated here for the sake of brevity.

[0106] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0107] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0108] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0109] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0110] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0111] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0112] An embodiment of the present application also provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, it is used to execute the above method, which includes at least one of the solutions described in the above embodiments.

[0113] The computer storage medium of the embodiment of the present application can adopt any combination of one or more computer-readable media. Computer-readable media can be computer-readable signal media or computer-readable storage media. Computer-readable storage media can be, for example, but not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or devices, or any combination of the above. More specific examples (non-exhaustive lists) of computer-readable storage media include: electrical connections with one or more wires, portable computer disks, hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM or flash memory), optical fibers, portable compact disk read-only memories (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the above. In this document, computer-readable storage media can be any tangible medium containing or storing programs, which can be used by instruction execution systems, devices or devices or used in combination with them.

[0114] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0115] The program code embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

[0116] Computer program code for performing the operation of the present application can be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (e.g., using an Internet service provider to connect through the Internet).

[0117] In addition, the words "first, second, third, etc." or module A, module B, module C and other similar terms in the specification and claims are only used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that the specific order or sequence can be interchanged where permitted so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.

[0118] In the above description, the numbers representing the steps, such as S110, S120, etc., do not necessarily mean that the steps will be executed in this manner. If permitted, the order of the steps can be interchanged or they can be executed simultaneously.

[0119] The term "comprising" as used in the description and claims should not be interpreted as being limited to what is listed thereafter; it does not exclude other elements or steps. Therefore, it should be interpreted as specifying the presence of the features, integers, steps or components mentioned, but does not exclude the presence or addition of one or more other features, integers, steps or components and groups thereof. Therefore, the expression "a device comprising means A and B" should not be limited to a device consisting of components A and B only.

[0120] References to "one embodiment" or "an embodiment" in this specification mean that a particular feature, structure, or characteristic described in conjunction with the embodiment is included in at least one embodiment of the present application. Therefore, the phrases "in one embodiment" or "in an embodiment" appearing in various places in this specification do not necessarily refer to the same embodiment, but may refer to the same embodiment. In addition, in one or more embodiments, the particular features, structures, or characteristics can be combined in any appropriate manner, as would be apparent to one of ordinary skill in the art from this disclosure.

[0121] Note that the above are only preferred embodiments of the present application and the technical principles used. Those skilled in the art will understand that the present application is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present application. Therefore, although the present application is described in more detail through the above embodiments, the present application is not limited to the above embodiments, and may also include more other equivalent embodiments without departing from the concept of the present application, all of which belong to the scope of protection of the present application.

Claims

1. A method for troubleshooting a switch network port fault, characterized in that: The switch includes a switching chip, a PHY chip, and a transformer coupled in sequence, and the method includes: When a certain network port to be checked of the switch fails, it is determined that the network port to be checked belongs to a software check object or a hardware check object; wherein the software check object includes the switch chip and the PHY chip, and the hardware check object includes the transformer and its lead port; When the network port to be checked is a software troubleshooting object, a loopback test is performed according to the loopback test configuration instruction, and the cause of the failure of the software troubleshooting object is determined based on the detected connection status and the current traffic rate; When the network port to be checked is a hardware check object, a continuity test is performed on at least one pair of differential signal pins of the transformer to determine the cause of the fault of the hardware check object.

2. The method according to claim 1, characterized in that The determining the fault cause of the software troubleshooting object based on the detected connection status and the current traffic rate specifically includes: After determining that the physical link connection of the software troubleshooting object is normal, obtaining a preset flow rate from the loopback test configuration instruction, and obtaining a current flow rate; When the current flow rate is compared and found to be consistent with the preset flow rate, it is determined that the software troubleshooting object has no fault and the connection between the software troubleshooting objects is normal.

3. The method according to claim 2, characterized in that After the current flow rate is inconsistent with the preset flow rate, the method further includes: From the loopback test configuration instruction, obtain the flow of the input network port and the flow of the output network port, wherein the output network port and the input network port belong to the same network, and the output network port is connected to the input network port; When the flow of the input network port is compared with the flow of the output network port and is inconsistent, it is determined that the connection between the objects checked by the software is abnormal.

4. The method according to claim 1, characterized in that: The conducting of the at least one pair of differential signal pins of the transformer to determine the cause of the fault of the hardware troubleshooting object specifically includes: Performing a continuity test on at least one pair of differential signal pins of the transformer; If a group of differential signal pins is not conducting, it is determined that the output port corresponding to the differential signal pins is faulty; If each group of differential signal pins is turned on, it is determined that the input port corresponding to the input pin of the transformer is faulty.

5. A device for troubleshooting switch network port failures, characterized in that: include: A first determining unit is used to determine whether a network port to be checked of the switch belongs to a software check target or a hardware check target when a fault occurs in the network port to be checked of the switch; wherein the software check target includes the switch chip and the PHY chip, and the hardware check target includes the transformer and its lead port; A second determining unit is used to perform a loopback test according to a loopback test configuration instruction when the network port to be checked is a software troubleshooting object, and determine the cause of the failure of the software troubleshooting object based on the detected connection state and the current traffic rate; The third determining unit is used to perform a continuity test on at least one pair of differential signal pins of the transformer to determine the cause of the failure of the hardware troubleshooting object when the network port to be checked is a hardware troubleshooting object.

6. The device according to claim 5, characterized in that The second determining unit is specifically configured to obtain a preset flow rate from the loopback test configuration instruction and obtain a current flow rate after determining that the physical link connection of the software troubleshooting object is normal; When the current flow rate is compared and found to be consistent with the preset flow rate, it is determined that the software troubleshooting object has no fault and the connection between the software troubleshooting objects is normal.

7. The device according to claim 6, characterized in that The second determination unit is also used to obtain the traffic of the input network port and the traffic of the output network port from the loopback test configuration instruction, wherein the output network port and the input network port belong to the same network, and the output network port is connected to the input network port; when the traffic of the input network port and the traffic of the output network port are inconsistent, it is determined that the connection between the software troubleshooting objects is abnormal.

8. The device according to claim 5, characterized in that The third determination unit is specifically used to perform a conductivity test on at least one pair of differential signal pins of the transformer; if a group of differential signal pins is not conductive, it is determined that the output port corresponding to the differential signal pin is faulty; if each group of differential signal pins is conductive, it is determined that the input port corresponding to the input pin of the transformer is faulty.

9. A computing device, characterized in that include: processor, and A memory having program instructions stored thereon, wherein when the program instructions are executed by the processor, the processor is caused to execute the method according to any one of claims 1 to 4.

10. A computer-readable storage medium, characterized in that: Program instructions are stored thereon, and when the program instructions are executed by a computer, the computer is caused to execute the method according to any one of claims 1 to 4.

Citation Information

Cited By

  • Fault detection method, apparatus and system

    WO2026208543A1