Whole cabinet server optical interconnection monitoring management method, system, device and medium
By regularly obtaining and comparing the status information of optical modules and ports at both ends of the optical link, and combining initial port operation, the problem that the existing technology cannot perform fault diagnosis and analysis in combination with the status of the optical modules at the opposite end is solved, and the identification and recovery of optical fiber link failures is realized, and the reliability of the entire cabinet system is improved.
Patent Information
- Application Number
- CN202211687268.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-27
- Publication Date
- 2025-04-25
- Estimated Expiration
- 2042-12-27
AI Technical Summary
The prior art cannot perform fault diagnosis and analysis in combination with the status of the peer optical module, and there is a lack of protocol design for fault diagnosis and recovery for the entire optical link.
Provide a whole cabinet server optical interconnection monitoring and management method, by regularly obtaining the status information of optical modules and ports at both ends of the optical link, comparing the transmitting and receiving power with preset thresholds, judging the status of the optical link and determining the cause of the fault. If the optical link port status is abnormal, initialize the port operation, including closing and opening the Serdes receiver and transmitter, and detecting the port connection status.
Identification of fiber link failures, including incorrect configuration and optical modules or fiber failures, improves the reliability of the entire cabinet system and reduces operation and maintenance costs.
Smart Images

Figure CN116015442B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of monitoring and management of optical interconnection of a whole cabinet server, and in particular to a monitoring and management method, system, computer equipment and storage medium for optical interconnection of a whole cabinet server. Background Art
[0002] With the development of economy and Internet industry, the performance and reliability of data center are increasingly required in today's society. In newly built data centers, whole cabinet servers have become the mainstream. Whole cabinet servers are devices with several server nodes, network management switches and top of rack switches (Top of Rack, TOR) in a cabinet. Whole cabinet servers can be managed and used as a whole. In whole cabinet servers, the interconnection between internal server nodes and top of rack switches usually adopts optical modules and optical fibers or passive copper cables. With the increase of speed, after the Ethernet link reaches more than 112GBps per link, passive copper cables need to use cables with thicker wire diameters due to large dielectric loss. Therefore, the server nodes in the whole cabinet and TOR switches currently use optical modules and optical fibers for communication. Due to the important role of optical modules in whole cabinet servers, their reliability and rapid fault warning maintenance are very important in applications.
[0003] The current digital diagnostic monitoring (DDM) function of the optical module is for the module itself, and can diagnose the temperature, voltage, received optical power and other information of the optical module. Since the optical communication link between optical modules cannot transmit sideband signals, the current technology can only detect the working status of the current optical module, and cannot perform fault diagnosis and analysis in combination with the status of the opposite optical module. For example, when the local optical module has no light or the CDR cannot be locked, it is impossible to determine whether it is caused by the opposite optical module not emitting light or the incorrect rate. At the same time, there is currently no protocol design for fault diagnosis and recovery of the entire link. Summary of the invention
[0004] Based on this, it is necessary to provide a whole-cabinet server optical interconnection monitoring and management method, system, computer equipment and storage medium to address the above-mentioned technical problems, which can solve the technical problems that the current digital diagnostic function of the optical module can only detect the current working status of the optical module, and cannot perform fault diagnosis and analysis in combination with the status of the opposite optical module, and there is no protocol design for fault diagnosis and recovery of the entire link.
[0005] On the one hand, a method for monitoring and managing optical interconnection of a whole cabinet server is provided, the method comprising:
[0006] Regularly obtain the status information of the optical modules at both ends of the interconnected optical links in the entire cabinet and the status information of the interconnected optical link ports;
[0007] Compare the received and received optical power of the optical modules at both ends of the interconnected optical link with the preset threshold range of the received and received optical power of the optical modules to determine whether the states of the optical modules at both ends of the optical link are normal;
[0008] When the optical modules at both ends of the optical link are in abnormal state, the cause of the fault is determined by comparing the results;
[0009] When the optical modules at both ends of the optical link are in normal status and the optical link port status information changes from connected to disconnected, check whether the rates and FEC configurations at both ends of the optical link port are the same; if they are different, generate an abnormal configuration report; if they are the same, initialize the port.
[0010] In one embodiment, the step of initializing the port includes:
[0011] Turn off the receivers and transmitters of the parallel converters (Serdes) on the server and switch sides;
[0012] Turn on the transmitter of the parallel converter (Serdes) of the corresponding port of the switch;
[0013] Open the sender of the parallel converter (Serdes) of the server port;
[0014] Turn on the receiver of the parallel converter (Serdes) of the corresponding port of the switch;
[0015] Open the receiver of the parallel converter (Serdes) corresponding to the server port.
[0016] In one embodiment, after initializing the port, the method further includes:
[0017] After the port is initialized, the optical link port status information is checked to see if it is connected;
[0018] If not connected, configure the port to reduce the rate and initialize the port again;
[0019] After the port is initialized again, the optical link port status information is checked again to see if it is connected;
[0020] If connected, the system will run at a reduced speed and generate a reduced speed operation report; if not connected, a comprehensive fault report will be generated.
[0021] In one embodiment, the step of detecting whether the optical link port status information is connected includes:
[0022] After completing the port initialization, wait for the first time threshold T1 to check whether the port is connected. If connected, check the port status once a second and continuously check the second time threshold T2. If no abnormality is reported, it is determined that the port is working normally.
[0023] In one of the embodiments, before configuring the port to reduce the rate, multiple port initialization operations are performed, and if the optical link port status information is all disconnected, the port is configured to reduce the rate to a preset rate;
[0024] Before generating the comprehensive fault report, multiple initialization port operations are performed. If the optical link port status information is all disconnected, a comprehensive fault report is generated.
[0025] In one of the embodiments, when the states of the optical modules at both ends of the optical link are abnormal, the step of determining the cause of the fault by comparing the results includes:
[0026] When the received optical power in an optical link is lower than the first power threshold P1 of the transmitted optical power, and the received optical power is higher than the minimum received optical power value by a second power threshold P2, a fiber fault warning report is generated;
[0027] When the transmitted optical power in an optical link is lower than the minimum transmitted optical power value by a second power threshold value P2, a transmitting end optical module fault warning report is generated;
[0028] When the received optical power in an optical link is lower than the minimum received optical power value by a second power threshold value P2, a receiving end optical module fault warning report is generated;
[0029] When the optical power drop value of an optical link within one year is greater than the third power threshold P3, a sending end optical module fault warning report and a receiving end optical module fault warning report are generated.
[0030] In one of the embodiments, the method also periodically obtains the running status of all client programs in the entire cabinet; within the third time threshold T1 after the server on which the client program is running is restarted, if the optical link port status information is not connected, then read whether the network port interface configuration of the server network card end is the same as that of the switch end, and if different, configure the network port interface of the server network card end according to the switch end.
[0031] On the other hand, a whole cabinet server optical interconnection monitoring and management system is provided, the system comprising:
[0032] The whole cabinet status monitoring module is used to regularly obtain the status information of the optical modules at both ends of the interconnected optical links in the whole cabinet and the status information of the interconnected optical link ports;
[0033] A power comparison module is used to compare the received and transmitted light powers of the optical modules at both ends of the interconnected optical link with a preset threshold range of the received and transmitted light powers of the optical modules to determine whether the states of the optical modules at both ends of the optical link are normal;
[0034] The optical link fault monitoring module is used to determine the cause of the fault by comparing the results when the optical modules at both ends of the optical link are in abnormal state;
[0035] The configuration check module is used to check whether the rates and FEC configurations on both sides of the optical link port are the same when the optical modules at both ends of the optical link are in normal status and the optical link port status information changes from connected to disconnected; if they are different, an abnormal configuration report is generated; if they are the same, the port is initialized.
[0036] In another aspect, a computer device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the following steps are implemented:
[0037] Regularly obtain the status information of the optical modules at both ends of the interconnected optical links in the entire cabinet and the status information of the interconnected optical link ports;
[0038] Compare the received and received optical power of the optical modules at both ends of the interconnected optical link with the preset threshold range of the received and received optical power of the optical modules to determine whether the states of the optical modules at both ends of the optical link are normal;
[0039] When the optical modules at both ends of the optical link are in abnormal state, the cause of the fault is determined by comparing the results;
[0040] When the optical modules at both ends of the optical link are in normal status and the optical link port status information changes from connected to disconnected, check whether the rates and FEC configurations at both ends of the optical link port are the same; if they are different, generate an abnormal configuration report; if they are the same, initialize the port.
[0041] In another aspect, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0042] Regularly obtain the status information of the optical modules at both ends of the interconnected optical links in the entire cabinet and the status information of the interconnected optical link ports;
[0043] Compare the received and received optical power of the optical modules at both ends of the interconnected optical link with the preset threshold range of the received and received optical power of the optical modules to determine whether the states of the optical modules at both ends of the optical link are normal;
[0044] When the optical modules at both ends of the optical link are in abnormal state, the cause of the fault is determined by comparing the results;
[0045] When the optical modules at both ends of the optical link are in normal status and the optical link port status information changes from connected to disconnected, check whether the rates and FEC configurations at both ends of the optical link port are the same; if they are different, generate an abnormal configuration report; if they are the same, initialize the port.
[0046] The above-mentioned whole cabinet server optical interconnection monitoring and management method, system, computer equipment and storage medium can identify optical fiber link failures, including incorrect configuration and optical module and optical fiber failures, thereby improving the reliability of the whole cabinet system and reducing operation and maintenance costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0048] Figure 1 An application environment diagram of a whole cabinet server in one embodiment;
[0049] Figure 2 The present invention is a flow chart of a method for monitoring and managing the optical interconnection of servers in a whole cabinet in one embodiment;
[0050] Figure 3 A schematic diagram of a link detection method in one embodiment;
[0051] Figure 4 A schematic diagram of a flow chart of performing information comparison and executing corresponding strategy steps in an embodiment;
[0052] Figure 5 A schematic diagram of a process of initializing a port in an embodiment;
[0053] Figure 6 A schematic diagram of a flow chart of a method for monitoring and managing optical interconnection of servers in a whole cabinet in another embodiment;
[0054] Figure 7 The figure is a flowchart of the steps of determining the cause of the fault by comparing the results when the states of the optical modules at both ends of the optical link are abnormal in one embodiment;
[0055] Figure 8 A structural block diagram of an entire cabinet server optical interconnection monitoring and management system in one embodiment;
[0056] Fig. 9 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0057] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0058] Example 2
[0059] The whole cabinet server optical interconnection monitoring and management method provided in Example 2 of the present application diagnoses, analyzes and manages the link at the same time by combining the optical module information on both sides of the optical link. It is a set of optical module fault diagnosis strategies and control management strategies that can identify optical fiber link faults, including incorrect configuration and optical module and optical fiber failures. It is also a set of optical link fault recovery strategies and methods. By identifying whether the configurations on both sides are the same, it determines the reason why the link cannot be up (connected), and at the same time realizes the method of restarting the link to try to recover from the fault and automatically reducing the speed to avoid the fault.
[0060] The method proposed in the present invention can be implemented by a group of server-client programs, wherein the server-side program can run on the processor of any switch or server in the entire cabinet, and all devices in the entire cabinet except the device running the server-side program need to run the client program.
[0061] like Figure 1 As shown, in the whole cabinet server, the cabinet top switch (ToR switch Top of Rack, hereinafter referred to as switch) is connected to the optical module of the service network card of each server through an optical module and optical fiber. The optical communication link of the whole cabinet is composed of the switch, the switch end optical module, the optical fiber, the server service network card and its matching optical module.
[0062] It is worth noting that the method is not limited to the application of Ethernet links, but can also be applied to network links such as Fibre Channel, Infiniband, ATM, etc.
[0063] like Figure 2 As shown, the whole cabinet server optical interconnection monitoring and management method includes steps S10-S30.
[0064] Step S10: First determine the interconnection relationship of all optical links in the whole cabinet. The method for obtaining the interconnection relationship can be configured into the program by the whole cabinet maintenance personnel according to the actual interconnection situation, or can be implemented using the following link detection method.
[0065] like Figure 3 As shown, Figure 3 A flow chart of the link detection method is shown, and the link detection method comprises:
[0066] Step S11, the server-side program obtains the connection relationship between the service interface of the TOR switch and the service interface of each server; the server-side program runs on any device, and the client program runs on other devices except the any device, and the devices include the TOR switch and the server.
[0067] In the embodiment of the present invention, the client program and the server program can specifically be run on the TOR switch in the entire cabinet and the corresponding BMC chip of each server; take the number of servers as 1 as an example for illustration, wherein the business network interface is the business interface, and the BMC network management interface can be referred to as the network management interface; the server can communicate with the network management switch through the network management interface, and can also communicate with the TOR switch through the business interface. Corresponding to the business interface of the server, the TOR switch includes a business interface connected to the business interface of the server, so that through the connection of the business interfaces of the two devices, a link for the two devices to communicate is formed. This application is to detect the link design for the server to be connected to the TOR switch through the business interface; the server-side program obtains the connection relationship between the business interface of the TOR switch and the business interface of each server, specifically, it obtains which business interface of which server each business interface of the TOR switch is connected to, so that through the connection relationship, it can be known that the business interfaces that form the link between the TOR switch and any server, respectively belong to the TOR switch and the arbitrary server, that is, the mutually connected business interfaces that belong to the two devices can be located.
[0068] In the embodiments of the present application, a server-side program and a client-side program that can realize communication can be set up. Specifically, the server-side program can communicate with each client program through the network management network provided by the network management switch, that is, it realizes communication through this out-of-band method; generally, in the TOR switch and the server connected to the TOR switch through the service interface, only one device can run the server-side program. At this time, other devices need to run the client program, so as to realize the monitoring of each service interface contained in the server and the TOR switch through the communication between the server-side program and the client program.
[0069] Step S12, the server program periodically sends query messages to each client program through the network management switch; each client program responds to the query message and returns the interface information of the service interface of the device that has a connection relationship with the service interface of other devices to the server program through the network management switch.
[0070] After determining the connection relationship between the service interfaces belonging to the TOR switch and the server respectively, the server-side program can communicate with each client program regularly through the network management network provided by the network management switch to obtain the interface status information (referred to as interface information) of the service interface of the device where each client program is located; specifically, the server-side program can periodically send communication messages to each client program as query messages, and the query message can be a sub-protocol communication information encapsulated on the basis of a TCP message or a UDP message, such as the protocol message content length, interface number, interface MAC address, flag bit (query flag bit, control flag bit or feedback flag bit), and instruction information (query control instruction or feedback information). After receiving the query message with the query flag, the client program carries the queried information in the communication message and feeds it back to the server program. The information queried in this application is the interface information of the business interface that has a connection relationship with the business interface of other devices included on the device where the client program that receives the query message is located; the interface information is information indicating the state of the corresponding business interface, and then based on this information, it can be determined whether the state of the corresponding link is normal, that is, whether the corresponding link is in a connected state or a disconnected state; if the business interface is an Ethernet interface, the interface information may include the type of physical transceiver, the supported rate, the media type, etc., and further, when the type of the physical transceiver is an optical module, the interface information may include the received optical power, the transmitted optical power, the temperature, whether the CDR has been locked, and other information, and the above information can be used to determine the state of the link. Among them, determining the state of the link corresponding to the interface based on the information indicating the interface state is consistent with the implementation principle of the corresponding scheme in the prior art, and will not be repeated here.
[0071] In addition, if the server-side program needs to implement corresponding control operations, it can send communication messages to each client program as control messages. After receiving the control message with a control flag, the client program can perform corresponding control actions according to the instructions of the control message, including but not limited to modifying the corresponding interface register, changing the interface rate, changing the interface working mode (whether simplex / duplex / energy-saving mode is turned on, etc.); and after implementing the control action, it can also send feedback information containing whether the operation is successful to the server-side program. The purpose of sending feedback information is to enable the upper-layer program to execute the correct strategy. For example, if the interface link layer connection is detected to be disconnected, it can be determined whether the signal can be received based on the received optical power. If so, it can try to modify the link layer working mode to achieve automatic adaptation capability.
[0072] Step S13, the server-side program reports the interface information of the service interface of its own device that has a connection relationship with the service interface of other devices and the received interface information to the upper-layer program, so that the upper-layer program can analyze the connection status of the link with the corresponding connection relationship based on the interface information.
[0073] After collecting the interface information of the business interfaces corresponding to the devices where the client programs are located, the server also needs to obtain the interface information of the business interfaces that have connection relationships with the business interfaces of other devices, and then report its own interface information and the collected interface information sent by other client programs to the upper-level program, so that the upper-level program can determine whether the link between each pair of business interfaces with connection relationships is in a normally connected state based on all the interface information, so as to perform corresponding repairs and other processing in time when abnormal situations such as link disconnection occur.
[0074] The present application realizes information communication between the server-side program and the client-side program through a network management switch. The server-side program and the client-side program run in the corresponding TOR switch and / or server respectively, so that the interface information of the service interface of each server connected to the TOR switch is obtained in this way, so that the upper-layer program can monitor the connection status of the corresponding link based on the interface information, so that the upper-layer program can timely implement the corresponding link fault processing, such as link repair, when monitoring a link connection abnormality. It can be seen that the present application realizes information communication between the TOR switch and each server through a network management switch. Therefore, even if the link directly connected between the TOR switch and the server fails, the connection status of the link between the TOR switch and the server can be known through the network management switch. This out-of-band communication method is used to provide the required information for fault detection and diagnosis of the corresponding link, thereby realizing effective monitoring of the corresponding link, thereby indirectly improving the reliability of the corresponding link, and to a certain extent avoiding the occurrence of server service interruptions due to link reasons.
[0075] As described above, the server-side program running in the entire cabinet can communicate with the client program located on each node (server, switch) in the entire cabinet through the link detection method, and can automatically obtain the interconnection relationship between the Ethernet optical links between each node in the entire cabinet.
[0076] Step S20: regularly obtain the running status of all client programs in the entire cabinet, the status information of the optical modules at both ends of the interconnected optical links, and the status information of the interconnected optical link ports.
[0077] Step S30: perform information comparison, execute corresponding strategies, and repeat this step regularly.
[0078] like Figure 4 As shown, step S30 includes three parts: comparing the transmit and receive optical power of the optical modules at both ends of the optical link, the control mode in which the server needs to restart, the optical link recovery and the generation of a report.
[0079] 1) Compare the transmit and receive optical powers of the optical modules at both ends of the optical link. When the received optical power in an optical link is lower than the first power threshold P1 of the transmit optical power, and the received optical power is higher than the second power threshold P2 of the lowest received optical power in the diagnostic information written in advance by the optical module manufacturer, the user is prompted that there may be an abnormality in the optical fiber or the optical fiber end face. For example, SFF-8472 defines the optical module with SFP / SFP+ / SFP28 interface, and defines the low alarm threshold value of the received optical power in the I2C device address A2h register address 34~35, and the low alarm threshold value of the transmit optical power is defined in registers 26~27. When the transmit optical power in an optical link is lower than the second power threshold P2 of the lowest value of the diagnostic information written in advance by the module manufacturer, it should be prompted that the transmit optical power of the optical module is too low and there may be an abnormality. Or when the optical power drops by more than the third power threshold P3 within 1 year, it is prompted that the optical power drops too fast and the module may be at risk of failure.
[0080] 2) When the server on which the client program is running needs to be restarted, the client program receives a program shutdown signal and sends information to the server program to notify that it is about to restart. At this time, the server program controls the switch to close the parallel converter (Serdes) receiver and transmitter connected to the corresponding port of the server to be restarted. After the server is started, the client program starts and sends information to the server program, and the server program then opens the Serdes transmitter and receiver of the corresponding port of the switch. If the port status fails to change to up within the pre-defined third time threshold T3, it may be due to the server maintenance upgrade software update or network card component replacement, resulting in the loss of the original configuration. At this time, read whether the network port interface configuration of the server network card end is the same as that of the switch end. If different, configure according to the switch end.
[0081] 3) Get the port status of one end of the optical link. When the link status is Down (not connected) and the optical power does not report abnormalities, first check whether the rates and FEC configurations on both sides of the corresponding port are the same. If they are different, report an abnormality to remind the user to configure correctly. If they are the same, try to reinitialize the port. Figure 5As shown, the steps of initializing the port include: step S21, first turn off the receiver and transmitter of the Serdes on the server and switch side; step S22, first turn on the Serdes transmitter of the corresponding port of the switch; step S23, then turn on the Serdes transmitter of the server port; step S24, then turn on the Serdes receiver of the corresponding port of the switch; step S25, finally turn on the Serdes receiver corresponding to the server port. Then perform a link status check, wait for the first time threshold T1 time to check again whether the port is up, if it is up, check the port status once per second, and continuously check the second time threshold T2 time, if no abnormality is reported, it is considered that the port is working normally. If the above check fails, re-execute the above action to re-initialize the port. If the check fails after N attempts, configure the port to reduce the rate to the preset rate S, and re-perform the above action. If the link status check fails after N attempts at rate S, report that the user link has a comprehensive fault. If it is at rate S, report that the user link has been running at a reduced speed.
[0082] For different types of optical links, the above diagnostic parameters can be configured by the user, and empirical values can be obtained based on historical fault data. In this embodiment, the recommended values for common 25Gbase-SR and 100G-CWDM4 links are as follows:
[0083]
[0084] The above actions cannot be executed in parallel, but can be executed in a certain order and periodically. There is a certain interval period between the actions, which can be 1 minute or longer.
[0085] Example 2
[0086] like Figure 6 As shown, the whole cabinet server optical interconnection monitoring and management method provided in Example 2 of the present application includes the following steps:
[0087] Step S1, regularly obtaining status information of optical modules at both ends of the interconnected optical links in the entire cabinet and status information of the interconnected optical link ports;
[0088] Step S2, comparing the received and received optical power of the optical modules at both ends of the interconnected optical link with the preset threshold range of the received and received optical power of the optical modules to determine whether the states of the optical modules at both ends of the optical link are normal;
[0089] Step S3, when the optical modules at both ends of the optical link are in abnormal state, the cause of the fault is determined by comparing the results;
[0090] Step S4, when the optical modules at both ends of the optical link are in normal status and the optical link port status information changes from connected to disconnected, check whether the rates and FEC configurations on both sides of the optical link port are the same; if different, generate an abnormal configuration report; if the same, initialize the port.
[0091] Among them, the term FEC is an error correction technology. Two important development directions of optical fiber communication are to increase the transmission rate and extend the transmission distance. As the transmission rate increases, there are more factors that limit the transmission distance during signal transmission, such as chromatic dispersion, nonlinear effects, polarization mode dispersion, etc., which affect the simultaneous improvement of both. In order to reduce the impact of these unfavorable factors, industry experts have proposed the forward error correction function, referred to as FEC (Forward Error Correction).
[0092] FEC is applicable to high-speed communications (25G, 40G, 100G, especially 40G and 100G). It is an error correction technology. The optical signal deteriorates due to other factors during the transmission process, resulting in misjudgment at the receiving end, which may misjudge the "1" signal as a "0" signal, or misjudge the "0" signal as a "1" signal. The FEC function combines the information code into a code with a certain error correction capability on the channel encoder at the sending end. The channel decoder at the receiving end decodes the received code. If the number of errors generated during transmission is within the error correction capability range (non-continuous errors), the decoder will locate the error and correct it to improve the signal quality.
[0093] Some special optical modules are equipped with FEC function, such as FS 100G CFP conversion module. 100GQSFP28 encapsulated optical modules mainly rely on configuring FEC function on the device side to achieve error correction, such as 100G interface switch.
[0094] like Figure 5 As shown, in this embodiment, the step of initializing the port includes:
[0095] Step S21, shut down the receiver and transmitter of the parallel converter (Serdes) on the server and switch side;
[0096] Step S22, turning on the transmitter of the parallel converter (Serdes) of the corresponding port of the switch;
[0097] Step S23, opening the transmitter of the parallel converter (Serdes) of the server port;
[0098] Step S24, turning on the receiver of the parallel converter (Serdes) of the corresponding port of the switch;
[0099] Step S25, turning on the receiver of the parallel converter (Serdes) corresponding to the server port.
[0100] like Figure 6 As shown, in this embodiment, after initializing the port, the method further includes:
[0101] Step S5, after completing the port initialization, detecting whether the optical link port status information is connected;
[0102] Step S6, if not connected, configure the port to reduce the rate and initialize the port again;
[0103] Step S7, after the port is initialized again, the optical link port status information is detected again to see if it is connected;
[0104] Step S8: If connected, the speed is reduced and a speed reduction report is generated; if not connected, a comprehensive fault report is generated.
[0105] In this embodiment, the step of detecting whether the optical link port status information is connected includes: after completing the initialization of the port, waiting for the first time threshold T1 to check whether the port is connected, if connected, checking the port status once per second, continuously checking the second time threshold T2, and if no abnormality is reported, determining that the port is working normally.
[0106] In this embodiment, before configuring the port to reduce the rate, multiple port initialization operations are performed. If the optical link port status information is all disconnected, the port is configured to reduce the rate to a preset rate.
[0107] In this embodiment, before generating the comprehensive fault report, multiple port initialization operations are performed, and if the optical link port status information is all disconnected, a comprehensive fault report is generated.
[0108] like Figure 7 As shown, in this embodiment, when the states of the optical modules at both ends of the optical link are abnormal, the step of determining the cause of the fault by comparing the results includes:
[0109] Step S31, when the received optical power in an optical link is lower than the first power threshold P1 of the transmitted optical power, and the received optical power is higher than the minimum received optical power value by a second power threshold P2, a fiber fault warning report is generated;
[0110] Step S32, when the transmitted optical power in an optical link is lower than the minimum transmitted optical power value by a second power threshold value P2, a transmitting end optical module fault warning report is generated;
[0111] Step S33, when the received optical power in an optical link is lower than the minimum received optical power value by a second power threshold value P2, a receiving end optical module fault warning report is generated;
[0112] Step S34: when the optical power drop value of an optical link within one year is greater than the third power threshold value P3, a transmitter optical module fault warning report and a receiver optical module fault warning report are generated.
[0113] In this embodiment, the method also periodically obtains the running status of all client programs in the entire cabinet; within the third time threshold T1 after the server on which the client program is running is restarted, if the optical link port status information is not connected, then read whether the network port interface configuration of the server network card end is the same as that of the switch end, if different, configure the network port interface of the server network card end according to the switch end.
[0114] Before step S1, the interconnection relationship of all optical links in the whole cabinet is first determined. The method for obtaining the interconnection relationship can be configured into the program by the whole cabinet maintenance personnel according to the actual interconnection situation, or can be implemented using the following link detection method.
[0115] like Figure 3 As shown, Figure 3 A flow chart of the link detection method is shown, and the link detection method comprises:
[0116] Step S11, the server-side program obtains the connection relationship between the service interface of the TOR switch and the service interface of each server; the server-side program runs on any device, and the client program runs on other devices except the any device, and the devices include the TOR switch and the server.
[0117] In the embodiment of the present invention, the client program and the server program can specifically be run on the TOR switch in the entire cabinet and the corresponding BMC chip of each server; take the number of servers as 1 as an example for illustration, wherein the business network interface is the business interface, and the BMC network management interface can be referred to as the network management interface; the server can communicate with the network management switch through the network management interface, and can also communicate with the TOR switch through the business interface. Corresponding to the business interface of the server, the TOR switch includes a business interface connected to the business interface of the server, so that through the connection of the business interfaces of the two devices, a link for the two devices to communicate is formed. This application is to detect the link design for the server to be connected to the TOR switch through the business interface; the server-side program obtains the connection relationship between the business interface of the TOR switch and the business interface of each server, specifically, it obtains which business interface of which server each business interface of the TOR switch is connected to, so that through the connection relationship, it can be known that the business interfaces that form the link between the TOR switch and any server, respectively belong to the TOR switch and the arbitrary server, that is, the mutually connected business interfaces that belong to the two devices can be located.
[0118] In the embodiments of the present application, a server-side program and a client-side program that can realize communication can be set up. Specifically, the server-side program can communicate with each client program through the network management network provided by the network management switch, that is, it realizes communication through this out-of-band method; generally, in the TOR switch and the server connected to the TOR switch through the service interface, only one device can run the server-side program. At this time, other devices need to run the client program, so as to realize the monitoring of each service interface contained in the server and the TOR switch through the communication between the server-side program and the client program.
[0119] Step S12, the server program periodically sends query messages to each client program through the network management switch; each client program responds to the query message and returns the interface information of the service interface of the device that has a connection relationship with the service interface of other devices to the server program through the network management switch.
[0120] After determining the connection relationship between the service interfaces belonging to the TOR switch and the server respectively, the server-side program can communicate with each client program regularly through the network management network provided by the network management switch to obtain the interface status information (referred to as interface information) of the service interface of the device where each client program is located; specifically, the server-side program can periodically send communication messages to each client program as query messages, and the query message can be a sub-protocol communication information encapsulated on the basis of a TCP message or a UDP message, such as the protocol message content length, interface number, interface MAC address, flag bit (query flag bit, control flag bit or feedback flag bit), and instruction information (query control instruction or feedback information). After receiving the query message with the query flag, the client program carries the queried information in the communication message and feeds it back to the server program. The information queried in this application is the interface information of the business interface that has a connection relationship with the business interface of other devices included on the device where the client program that receives the query message is located; the interface information is information indicating the state of the corresponding business interface, and then based on this information, it can be determined whether the state of the corresponding link is normal, that is, whether the corresponding link is in a connected state or a disconnected state; if the business interface is an Ethernet interface, the interface information may include the type of physical transceiver, the supported rate, the media type, etc., and further, when the type of the physical transceiver is an optical module, the interface information may include the received optical power, the transmitted optical power, the temperature, whether the CDR has been locked, and other information, and the above information can be used to determine the state of the link. Among them, determining the state of the link corresponding to the interface based on the information indicating the interface state is consistent with the implementation principle of the corresponding scheme in the prior art, and will not be repeated here.
[0121] In addition, if the server-side program needs to implement corresponding control operations, it can send communication messages to each client program as control messages. After receiving the control message with a control flag, the client program can perform corresponding control actions according to the instructions of the control message, including but not limited to modifying the corresponding interface register, changing the interface rate, changing the interface working mode (whether simplex / duplex / energy-saving mode is turned on, etc.); and after implementing the control action, it can also send feedback information containing whether the operation is successful to the server-side program. The purpose of sending feedback information is to enable the upper-layer program to execute the correct strategy. For example, if the interface link layer connection is detected to be disconnected, it can be determined whether the signal can be received based on the received optical power. If so, it can try to modify the link layer working mode to achieve automatic adaptation capability.
[0122] Step S13, the server-side program reports the interface information of the service interface of its own device that has a connection relationship with the service interface of other devices and the received interface information to the upper-layer program, so that the upper-layer program can analyze the connection status of the link with the corresponding connection relationship based on the interface information.
[0123] After collecting the interface information of the business interfaces corresponding to the devices where the client programs are located, the server also needs to obtain the interface information of the business interfaces that have connection relationships with the business interfaces of other devices, and then report its own interface information and the collected interface information sent by other client programs to the upper-level program, so that the upper-level program can determine whether the link between each pair of business interfaces with connection relationships is in a normally connected state based on all the interface information, so as to perform corresponding repairs and other processing in time when abnormal situations such as link disconnection occur.
[0124] The present application realizes information communication between the server-side program and the client-side program through a network management switch. The server-side program and the client-side program run in the corresponding TOR switch and / or server respectively, so that the interface information of the service interface of each server connected to the TOR switch is obtained in this way, so that the upper-layer program can monitor the connection status of the corresponding link based on the interface information, so that the upper-layer program can timely implement the corresponding link fault processing, such as link repair, when monitoring a link connection abnormality. It can be seen that the present application realizes information communication between the TOR switch and each server through a network management switch. Therefore, even if the link directly connected between the TOR switch and the server fails, the connection status of the link between the TOR switch and the server can be known through the network management switch. This out-of-band communication method is used to provide the required information for fault detection and diagnosis of the corresponding link, thereby realizing effective monitoring of the corresponding link, thereby indirectly improving the reliability of the corresponding link, and to a certain extent avoiding the occurrence of server service interruptions due to link reasons.
[0125] As described above, the server-side program running in the entire cabinet can communicate with the client program located on each node (server, switch) in the entire cabinet through the link detection method, and can automatically obtain the interconnection relationship between the Ethernet optical links between each node in the entire cabinet.
[0126] The above-mentioned whole cabinet server optical interconnection monitoring and management method can identify optical fiber link faults, including incorrect configuration and optical module and optical fiber failures, thereby improving the reliability of the whole cabinet system and reducing operation and maintenance costs.
[0127] It should be understood that although Figure 2-Figure 7 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 2-Figure 7 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.
[0128] In one embodiment, Figure 8 As shown, a whole cabinet server optical interconnection monitoring and management system 10 is provided, including: a whole cabinet status monitoring module 1, a power comparison module 2, an optical link fault monitoring module 3, a configuration check module 4, an optical link port status detection module 5, an initialization port module 6 and a report generation module 7.
[0129] The whole cabinet status monitoring module 1 is used to regularly obtain the status information of the optical modules at both ends of the interconnected optical links in the whole cabinet and the status information of the interconnected optical link ports.
[0130] The power comparison module 2 is used to compare the obtained transmit and receive light power of the optical modules at both ends of the interconnected optical link with the preset threshold range of the transmit and receive light power of the optical modules to determine whether the states of the optical modules at both ends of the optical link are normal.
[0131] The optical link fault monitoring module 3 is used to determine the cause of the fault by comparing the results when the optical modules at both ends of the optical link are in abnormal state.
[0132] The configuration checking module 4 is used to check whether the rates and FEC configurations on both sides of the optical link port are the same when the optical modules at both ends of the optical link are in normal status and the optical link port status information changes from connected to disconnected; if they are different, the report generating module 7 generates an abnormal configuration report; if they are the same, the initialization port module 6 initializes the port.
[0133] In this embodiment, the steps of initializing the port by the initialization port module 6 include:
[0134] Turn off the receivers and transmitters of the parallel converters (Serdes) on the server and switch sides;
[0135] Turn on the transmitter of the parallel converter (Serdes) of the corresponding port of the switch;
[0136] Open the sender of the parallel converter (Serdes) of the server port;
[0137] Turn on the receiver of the parallel converter (Serdes) of the corresponding port of the switch;
[0138] Open the receiver of the parallel converter (Serdes) corresponding to the server port.
[0139] In this embodiment, the optical link port status detection module 5 is used to detect whether the optical link port status information is connected after the port initialization is completed; the initialization port module 6 is used to configure the port to reduce the rate and initialize the port again if it is not connected; the optical link port status detection module 5 is used to detect whether the optical link port status information is connected again after the port initialization is completed again; the report generation module 7 is used to reduce the speed and generate a speed reduction operation report if it is connected; if it is not connected, a comprehensive fault report is generated.
[0140] In this embodiment, the step of detecting whether the optical link port status information is connected includes: after completing the initialization of the port, waiting for the first time threshold T1 to check whether the port is connected, if connected, checking the port status once per second, continuously checking the second time threshold T2, and if no abnormality is reported, determining that the port is working normally.
[0141] In this embodiment, before configuring the port to reduce the rate, multiple initialization port operations are performed. If the optical link port status information is all disconnected, the port is configured to reduce the rate to a preset rate; before generating a comprehensive fault report, multiple initialization port operations are performed. If the optical link port status information is all disconnected, a comprehensive fault report is generated.
[0142] In this embodiment, when the states of the optical modules at both ends of the optical link are abnormal, the step of determining the cause of the fault by comparing the results includes:
[0143] When the received optical power in an optical link is lower than the first power threshold P1 of the transmitted optical power, and the received optical power is higher than the minimum received optical power value by a second power threshold P2, a fiber fault warning report is generated;
[0144] When the transmitted optical power in an optical link is lower than the minimum transmitted optical power value by a second power threshold value P2, a transmitting end optical module fault warning report is generated;
[0145] When the received optical power in an optical link is lower than the minimum received optical power value by a second power threshold value P2, a receiving end optical module fault warning report is generated;
[0146] When the optical power drop value of an optical link within one year is greater than the third power threshold P3, a sending end optical module fault warning report and a receiving end optical module fault warning report are generated.
[0147] In this embodiment, the method also periodically obtains the running status of all client programs in the entire cabinet; within the third time threshold T1 after the server on which the client program is running is restarted, if the optical link port status information is not connected, then read whether the network port interface configuration of the server network card end is the same as that of the switch end, if different, configure the network port interface of the server network card end according to the switch end.
[0148] The above-mentioned whole cabinet server optical interconnection monitoring and management system can identify optical fiber link faults, including incorrect configuration and optical module and optical fiber failures, thereby improving the reliability of the whole cabinet system and reducing operation and maintenance costs.
[0149] For the specific limitations of the whole-rack server optical interconnection monitoring and management system, please refer to the limitations of the whole-rack server optical interconnection monitoring and management method above, which will not be repeated here. Each module in the above-mentioned whole-rack server optical interconnection monitoring and management system can be implemented in whole or in part through software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0150] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Fig. 9As shown. The computer device includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store the optical interconnection monitoring and management data of the whole cabinet server. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a whole cabinet server optical interconnection monitoring and management method is implemented.
[0151] Those skilled in the art will understand that Fig. 9 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0152] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the following steps are implemented:
[0153] Regularly obtain the status information of the optical modules at both ends of the interconnected optical links in the entire cabinet and the status information of the interconnected optical link ports;
[0154] Compare the received and received optical power of the optical modules at both ends of the interconnected optical link with the preset threshold range of the received and received optical power of the optical modules to determine whether the states of the optical modules at both ends of the optical link are normal;
[0155] When the optical modules at both ends of the optical link are in abnormal state, the cause of the fault is determined by comparing the results;
[0156] When the optical modules at both ends of the optical link are in normal status and the optical link port status information changes from connected to disconnected, check whether the rates and FEC configurations at both ends of the optical link port are the same; if they are different, generate an abnormal configuration report; if they are the same, initialize the port.
[0157] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0158] The steps of initializing the port include:
[0159] Turn off the receivers and transmitters of the parallel converters (Serdes) on the server and switch sides;
[0160] Turn on the transmitter of the parallel converter (Serdes) of the corresponding port of the switch;
[0161] Open the sender of the parallel converter (Serdes) of the server port;
[0162] Turn on the receiver of the parallel converter (Serdes) of the corresponding port of the switch;
[0163] Open the receiver of the parallel converter (Serdes) corresponding to the server port.
[0164] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0165] After initializing the port, it also includes:
[0166] After the port is initialized, the optical link port status information is checked to see if it is connected;
[0167] If not connected, configure the port to reduce the rate and initialize the port again;
[0168] After the port is initialized again, the optical link port status information is checked again to see if it is connected;
[0169] If connected, the system will run at a reduced speed and generate a reduced speed operation report; if not connected, a comprehensive fault report will be generated.
[0170] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0171] The step of detecting whether the optical link port status information is connected comprises:
[0172] After completing the port initialization, wait for the first time threshold T1 to check whether the port is connected. If connected, check the port status once a second and continuously check the second time threshold T2. If no abnormality is reported, it is determined that the port is working normally.
[0173] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0174] Before configuring the port to reduce the rate, perform multiple port initialization operations. If the optical link port status information is all disconnected, configure the port to reduce the rate to a preset rate.
[0175] Before generating the comprehensive fault report, multiple initialization port operations are performed. If the optical link port status information is all disconnected, a comprehensive fault report is generated.
[0176] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0177] When the states of the optical modules at both ends of the optical link are abnormal, the step of determining the cause of the fault by comparing the results includes:
[0178] When the received optical power in an optical link is lower than the first power threshold P1 of the transmitted optical power, and the received optical power is higher than the minimum received optical power value by a second power threshold P2, a fiber fault warning report is generated;
[0179] When the transmitted optical power in an optical link is lower than the minimum transmitted optical power value by a second power threshold value P2, a transmitting end optical module fault warning report is generated;
[0180] When the received optical power in an optical link is lower than the minimum received optical power value by a second power threshold value P2, a receiving end optical module fault warning report is generated;
[0181] When the optical power drop value of an optical link within one year is greater than the third power threshold P3, a sending end optical module fault warning report and a receiving end optical module fault warning report are generated.
[0182] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0183] The method also periodically obtains the running status of all client programs in the entire cabinet; within the third time threshold T1 after the server where the client program is running is restarted, if the optical link port status information is not connected, then read whether the network port interface configuration of the server network card end is the same as that of the switch end, and if different, configure the network port interface of the server network card end according to the switch end.
[0184] For the specific limitations on the steps implemented when the processor executes the computer program, please refer to the limitations on the method for monitoring and managing the optical interconnection of the entire cabinet server mentioned above, which will not be repeated here.
[0185] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0186] Regularly obtain the status information of the optical modules at both ends of the interconnected optical links in the entire cabinet and the status information of the interconnected optical link ports;
[0187] Compare the received and received optical power of the optical modules at both ends of the interconnected optical link with the preset threshold range of the received and received optical power of the optical modules to determine whether the states of the optical modules at both ends of the optical link are normal;
[0188] When the optical modules at both ends of the optical link are in abnormal state, the cause of the fault is determined by comparing the results;
[0189] When the optical modules at both ends of the optical link are in normal status and the optical link port status information changes from connected to disconnected, check whether the rates and FEC configurations at both ends of the optical link port are the same; if they are different, generate an abnormal configuration report; if they are the same, initialize the port.
[0190] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0191] The steps of initializing the port include:
[0192] Turn off the receivers and transmitters of the parallel converters (Serdes) on the server and switch sides;
[0193] Turn on the transmitter of the parallel converter (Serdes) of the corresponding port of the switch;
[0194] Open the sender of the parallel converter (Serdes) of the server port;
[0195] Turn on the receiver of the parallel converter (Serdes) of the corresponding port of the switch;
[0196] Open the receiver of the parallel converter (Serdes) corresponding to the server port.
[0197] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0198] After initializing the port, it also includes:
[0199] After the port is initialized, the optical link port status information is checked to see if it is connected;
[0200] If not connected, configure the port to reduce the rate and initialize the port again;
[0201] After the port is initialized again, the optical link port status information is checked again to see if it is connected;
[0202] If connected, the system will run at a reduced speed and generate a reduced speed operation report; if not connected, a comprehensive fault report will be generated.
[0203] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0204] The step of detecting whether the optical link port status information is connected comprises:
[0205] After completing the port initialization, wait for the first time threshold T1 to check whether the port is connected. If connected, check the port status once a second and continuously check the second time threshold T2. If no abnormality is reported, it is determined that the port is working normally.
[0206] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0207] Before configuring the port to reduce the rate, perform multiple port initialization operations. If the optical link port status information is all disconnected, configure the port to reduce the rate to a preset rate.
[0208] Before generating the comprehensive fault report, multiple initialization port operations are performed. If the optical link port status information is all disconnected, a comprehensive fault report is generated.
[0209] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0210] When the states of the optical modules at both ends of the optical link are abnormal, the step of determining the cause of the fault by comparing the results includes:
[0211] When the received optical power in an optical link is lower than the first power threshold P1 of the transmitted optical power, and the received optical power is higher than the minimum received optical power value by a second power threshold P2, a fiber fault warning report is generated;
[0212] When the transmitted optical power in an optical link is lower than the minimum transmitted optical power value by a second power threshold value P2, a transmitting end optical module fault warning report is generated;
[0213] When the received optical power in an optical link is lower than the minimum received optical power value by a second power threshold value P2, a receiving end optical module fault warning report is generated;
[0214] When the optical power drop value of an optical link within one year is greater than the third power threshold P3, a sending end optical module fault warning report and a receiving end optical module fault warning report are generated.
[0215] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0216] The method also periodically obtains the running status of all client programs in the entire cabinet; within the third time threshold T1 after the server where the client program is running is restarted, if the optical link port status information is not connected, then read whether the network port interface configuration of the server network card end is the same as that of the switch end, and if different, configure the network port interface of the server network card end according to the switch end.
[0217] For the specific limitations on the steps implemented when the computer program is executed by the processor, please refer to the above limitations on the method for monitoring and managing the optical interconnection of the entire cabinet server, which will not be repeated here.
[0218] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0219] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0220] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A method for monitoring and managing optical interconnection of a whole cabinet server, characterized in that: include: Regularly obtain the status information of the optical modules at both ends of the interconnected optical links in the entire cabinet and the status information of the interconnected optical link ports; Compare the received and received optical power of the optical modules at both ends of the interconnected optical link with the preset threshold range of the received and received optical power of the optical modules to determine whether the states of the optical modules at both ends of the optical link are normal; When the optical modules at both ends of the optical link are in abnormal state, the cause of the fault is determined by comparing the results; When the optical modules at both ends of the optical link are in normal status and the optical link port status information changes from connected to disconnected, check whether the rates and FEC configurations at both ends of the optical link port are the same; if they are different, generate an abnormal configuration report; if they are the same, initialize the port.
2. The whole cabinet server optical interconnection monitoring and management method according to claim 1 is characterized in that: The steps of initializing the port include: Turn off the receiver and transmitter of the parallel converter on the server and switch sides; Turn on the transmitter of the parallel converter of the corresponding port of the switch; Open the transmitter of the parallel converter of the server port; Turn on the receiver of the parallel converter corresponding to the switch port; Open the receiver of the parallel converter corresponding to the server port.
3. The whole cabinet server optical interconnection monitoring and management method according to claim 1 is characterized in that: After initializing the port, it also includes: After the port is initialized, the optical link port status information is checked to see if it is connected; If not connected, configure the port to reduce the rate and initialize the port again; After the port is initialized again, the optical link port status information is checked again to see if it is connected; If connected, the system will run at a reduced speed and generate a reduced speed operation report; if not connected, a comprehensive fault report will be generated.
4. The whole cabinet server optical interconnection monitoring and management method according to claim 3 is characterized in that: The step of detecting whether the optical link port status information is connected comprises: After completing the port initialization, wait for the first time threshold to check whether the port is connected. If it is connected, check the port status once a second and continuously check the second time threshold. If no abnormality is reported, it is determined that the port is working normally.
5. The whole cabinet server optical interconnection monitoring and management method according to claim 4 is characterized in that: Before configuring the port to reduce the rate, perform multiple initialization port operations. If the optical link port status information is all disconnected, configure the port to reduce the rate to the preset rate; before generating a comprehensive fault report, perform multiple initialization port operations. If the optical link port status information is all disconnected, generate a comprehensive fault report.
6. The whole cabinet server optical interconnection monitoring and management method according to claim 1 is characterized in that: When the states of the optical modules at both ends of the optical link are abnormal, the step of determining the cause of the fault by comparing the results includes: When the received optical power in an optical link is lower than the first power threshold of the transmitted optical power, and the received optical power is higher than the minimum received optical power value by a second power threshold, a fiber fault warning report is generated; When the transmitted optical power in an optical link is lower than the minimum transmitted optical power value by a second power threshold, a transmission end optical module fault warning report is generated; When the received optical power in an optical link is lower than the minimum received optical power value by a second power threshold, a receiving end optical module fault warning report is generated; When the optical power drop value of an optical link within one year is greater than the third power threshold, a transmitter optical module fault warning report and a receiver optical module fault warning report are generated.
7. The whole cabinet server optical interconnection monitoring and management method according to claim 1 is characterized in that: The method also periodically obtains the running status of all client programs in the entire cabinet; within the third time threshold after the server where the client program is running is restarted, if the optical link port status information is not connected, then read whether the network port interface configuration of the server network card end is the same as that of the switch end, and if different, configure the network port interface of the server network card end according to the switch end.
8. A whole cabinet server optical interconnection monitoring and management system, characterized in that: The system comprises: The whole cabinet status monitoring module is used to regularly obtain the status information of the optical modules at both ends of the interconnected optical links in the whole cabinet and the status information of the interconnected optical link ports; A power comparison module is used to compare the received and transmitted light powers of the optical modules at both ends of the interconnected optical link with a preset threshold range of the received and transmitted light powers of the optical modules to determine whether the states of the optical modules at both ends of the optical link are normal; The optical link fault monitoring module is used to determine the cause of the fault by comparing the results when the optical modules at both ends of the optical link are in abnormal state; The configuration check module is used to check whether the rates and FEC configurations on both sides of the optical link port are the same when the optical modules at both ends of the optical link are in normal status and the optical link port status information changes from connected to disconnected; if they are different, an abnormal configuration report is generated; if they are the same, the port is initialized.
9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Optical network
CA2205611C
Abnormality monitoring method, equipment and system for optical fiber link
CN111064506A