CN117221160A - Detection method, first node and computer readable storage medium - Google Patents

Detection method, first node and computer readable storage medium Download PDF

Info

Publication number
CN117221160A
CN117221160A CN202311087138.5A CN202311087138A CN117221160A CN 117221160 A CN117221160 A CN 117221160A CN 202311087138 A CN202311087138 A CN 202311087138A CN 117221160 A CN117221160 A CN 117221160A
Authority
CN
China
Prior art keywords
node
target
abnormal
communication link
condition
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311087138.5A
Other languages
Chinese (zh)
Inventor
秦艳
吴金辉
史文科
林俊
李璇
周庆飞
易利
林鹏
刘晓润
王晓东
郭东荣
张隆
刘晨
胡权力
易兵兵
李万民
高烁
李乐乐
曾志聪
周智红
马姝柔
汪科业
毛亚敏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Great Wall Technology Group Co ltd
Original Assignee
China Great Wall Technology Group Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Great Wall Technology Group Co ltd filed Critical China Great Wall Technology Group Co ltd
Priority to CN202311087138.5A priority Critical patent/CN117221160A/en
Publication of CN117221160A publication Critical patent/CN117221160A/en
Pending legal-status Critical Current

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the application discloses a detection method, which comprises the following steps: loading a target interface for maintaining and managing the boot system; calling a service module for detecting the network function of the guiding system through a target interface; detecting whether a communication link between a first node and a second node is abnormal or not through a service module; in the event of an anomaly in the communication link, it is determined that an anomaly exists in the network function of the guidance system. The embodiment of the application also discloses a first node and a computer readable storage medium.

Description

Detection method, first node and computer readable storage medium
Technical Field
The present application relates to network detection technology in the field of communications, and in particular, to a detection method, a first node, and a computer readable storage medium.
Background
Currently, when an Operating System (OS) fails to be installed, it is necessary to detect whether a network function of an input output System (Basic Input Output System, BIOS) is abnormal or not to determine a cause of the failure to install the OS; when the OS is failed to be installed in the related art, it is generally required to acquire an installation log generated in the process of installing the OS, and analyze the installation log according to human experience to determine whether the network function of the BIOS is abnormal; however, this scheme of determining whether the network function of the BIOS is abnormal has problems of low efficiency and low accuracy.
Disclosure of Invention
In order to solve the above technical problems, it is desirable for the embodiments of the present application to provide a detection method, a first node, and a computer readable storage medium, which solve the problems of low efficiency and low accuracy in the related art in a scheme for determining whether the network function of the BIOS is abnormal, and improve the efficiency and accuracy for determining whether the network function of the BIOS is abnormal.
The technical scheme of the application is realized as follows:
a method of detection applied to a first node, the method comprising:
loading a target interface for maintaining and managing the boot system;
calling a service module for detecting the network function of the guiding system through the target interface;
detecting whether an abnormality exists in a communication link between the first node and the second node through the service module;
and under the condition that the communication link is abnormal, determining that the network function of the guiding system is abnormal.
In the above solution, the detecting, by the service module, whether the communication link between the first node and the second node is abnormal includes:
generating, by the service module, a target instruction for detecting a communication link between the first node and the second node based on the address information of the first node and the address information of the second node;
In response to the target instruction, detecting whether an abnormality exists in a communication link between the first node and the second node.
In the above solution, the detecting, in response to the target instruction, whether there is an abnormality in the communication link between the first node and the second node includes:
transmitting a target probe packet to the second node in response to the target instruction;
determining that the communication link is abnormal under the condition that feedback information sent by the second node based on the target detection packet is not received in the first target time;
and in the first target time, under the condition that feedback information sent by the second node based on the target detection packet is received, determining a transmission condition when the target file is transmitted through the communication link, and judging whether the communication link is abnormal or not based on the transmission condition.
In the above solution, the determining whether the communication link is abnormal based on the transmission condition includes:
characterizing that the first node does not receive the target file sent by the second node in the second target time under the transmission condition, and determining that the communication link is abnormal;
and under the condition that the transmission condition characterizes that the first node receives the target file sent by the second node, determining whether the communication link is abnormal or not based on the target file.
In the above solution, the determining, based on the target file, whether the communication link is abnormal includes:
checking the target file to obtain a check code;
and under the condition that the check code and the target check code are not matched, determining that the communication link is abnormal.
In the above solution, before the loading the target interface for maintaining and managing the boot system, the method further includes:
configuring parameters of a first start-up item of the guidance system based on the identification of the target interface;
accordingly, the loading the target interface for maintaining and managing the booting system includes:
in the case of the boot system startup, the target interface is loaded based on the configured parameters of the first startup item.
In the above scheme, the address information of the first node is obtained by:
setting, by the service module, a third target time for acquiring address information of the first node;
and acquiring the address information of the first node by the service module in a static address allocation mode or a dynamic address allocation mode in the third target time.
In the above scheme, the method further comprises:
Acquiring abnormal information when the communication link is abnormal;
and determining the abnormality type when the network function is abnormal based on the abnormality information.
A first node, the first node comprising: a processor, a memory, and a communication bus;
the communication bus is used for realizing communication connection between the processor and the memory;
the processor is configured to execute a detection program stored in the memory to implement the steps of:
loading a target interface for maintaining and managing the boot system;
calling a service module for detecting the network function of the guiding system through the target interface;
detecting whether an abnormality exists in a communication link between the first node and the second node through the service module;
and under the condition that the communication link is abnormal, determining that the network function of the guiding system is abnormal.
A computer-readable storage medium storing one or more programs executable by one or more processors to implement the steps of the detection method described above.
The detection method, the first node and the computer readable storage medium provided by the embodiment of the application load a target interface for maintaining and managing a guide system; calling a service module for detecting the network function of the guiding system through a target interface; detecting whether a communication link between a first node and a second node is abnormal or not through a service module; determining that the network function of the guiding system is abnormal under the condition that the communication link is abnormal; in this way, whether the communication link between the first node and the second node where the guiding system is located is abnormal or not can be detected through maintaining and managing the target interface of the guiding system and calling the service module for detecting the network function of the guiding system, and under the condition that the communication link is abnormal, whether the network function of the guiding system is abnormal or not is determined, so that the automatic detection of whether the network function of the guiding system is abnormal or not is realized, whether the network function of the guiding system is abnormal or not is determined by analyzing the installation log of the installation operating system according to the human experience in the related technology, and the efficiency and the accuracy of determining whether the network function of the guiding system is abnormal or not are improved.
Drawings
FIG. 1 is a schematic flow chart of a detection method according to an embodiment of the present application;
FIG. 2 is a schematic flow chart of another detection method according to an embodiment of the present application;
FIG. 3 is a flow chart of another detection method according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a first node according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application.
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
The embodiment of the application provides a detection method, which can be applied to a first node, and is shown with reference to fig. 1, and the method comprises the following steps:
step 101, loading a target interface for maintaining and managing the booting system.
Wherein the first node may be an entity device in a computer network. In one possible implementation, the first node may be a computer or a server.
In the embodiment of the application, the boot system may be a basic input output system, BIOS for short; the target interface may be a unified extensible firmware interface (Unified Extensible Firmware Interface, UEFI) Shell; the UEFI Shell is specifically understood to be a command line-based tool that allows a user to perform various operations in the UEFI environment, including accessing and modifying BIOS settings, diagnosing hardware problems, updating firmware, etc.
Step 102, calling a service module for detecting the network function of the guiding system through the target interface.
Wherein the network function of the BIOS may comprise at least one of the following four aspects; the BIOS can start the computer through the network, namely, the BIOS downloads an operating system image from the network and starts the system; the second aspect is a pre-boot execution environment (PrebooteXecution Environment, PXE), where the BIOS supports PXE protocol, and can obtain, through a network, information such as address information of a first node and address information of a second node during starting, so as to implement network starting; the third aspect is Wake-on-LAN (WOL), where the BIOS supports WOL functionality, enabling remote Wake-up of the computer over the network; the fourth aspect is BIOS settings in which network related parameters may be set. The network function of the BIOS can help the computer system to realize functions such as network starting, remote awakening and the like, and the use efficiency and convenience of the computer are improved.
In the embodiment of the present application, the service module for detecting the network function of the BIOS may be a status. The status file contains a series of commands, which can be automatically executed when the system is started, and are used for detecting the network function of the BIOS.
In one possible implementation, the startup file is automatically invoked by the UEFI Shell interface, which is automatically entered after the BIOS is restarted.
Step 103, detecting whether an abnormality exists in a communication link between the first node and the second node through the service module.
In the embodiment of the application, the service module can generate the target instruction for detecting whether the communication link between the first node and the second node is abnormal or not, and detect whether the communication link between the first node and the second node is abnormal or not based on the target instruction.
Step 104, determining that the network function of the guiding system is abnormal under the condition that the communication link is abnormal.
In the embodiment of the application, under the condition that the communication link is abnormal, determining that the network function of the guiding system is abnormal, and stopping detection; and under the condition that the communication link is not abnormal, a restarting instruction can be generated and run to restart the first node, the target interface is reloaded after the BIOS is restarted in the restarting process of the first node, and the service module is called through the target interface to detect whether the network function of the BIOS is abnormal or not through the service module. In this way, the detection can be re-executed for multiple times under the condition that the network function of the BIOS is determined to be not abnormal in the single detection, so that the accuracy of detecting whether the network function of the BIOS is abnormal or not is improved.
The detection method provided by the embodiment of the application loads the target interface for maintaining and managing the guide system; calling a service module for detecting the network function of the guiding system through a target interface; detecting whether a communication link between a first node and a second node is abnormal or not through a service module; determining that the network function of the guiding system is abnormal under the condition that the communication link is abnormal; in this way, whether the communication link between the first node and the second node where the guiding system is located is abnormal or not can be detected through maintaining and managing the target interface of the guiding system and calling the service module for detecting the network function of the guiding system, and under the condition that the communication link is abnormal, whether the network function of the guiding system is abnormal or not is determined, so that the automatic detection of whether the network function of the guiding system is abnormal or not is realized, whether the network function of the guiding system is abnormal or not is determined by analyzing the installation log of the installation operating system according to the human experience in the related technology, and the efficiency and the accuracy of determining whether the network function of the guiding system is abnormal or not are improved.
Based on the foregoing embodiments, an embodiment of the present application provides a detection method, applied to a first node, as shown in fig. 2, including the following steps:
Step 201, based on the identification of the target interface, configuring parameters of a first start item of the guidance system.
The target interface is an interface for maintaining and managing a guiding system; the identification of the target interface may be the name of the target interface; the identification of the target interface is used to uniquely refer to the target interface.
In the embodiment of the application, the parameter of the first starting item of the BIOS can be configured as the identification of the target interface, so that the BIOS loads the target interface preferentially under the condition of starting, thereby realizing the subsequent automatic preferential detection of the network function of the BIOS.
Step 202, in the case of booting the system, loading the target interface based on the parameters of the configured first boot item.
In the embodiment of the application, under the condition that the boot system is started, the target interface can be automatically loaded based on the parameters configuring the first starting item of the boot system.
Step 203, calling a service module for detecting the network function of the guiding system through the target interface.
Step 204, generating, by the service module, a target instruction for detecting a communication link between the first node and the second node based on the address information of the first node and the address information of the second node.
Wherein the second node may be a physical node in the computer network different from the first node; in one possible implementation, the second node may be a computer or a server. The address information of the first node may be configured by the first node itself, or may be sent to the first node in advance by other nodes. The address information of the second node may be acquired in advance.
In one possible implementation, the address information of the first node may be an internet protocol (Internet Protocol, IP) address of the first node; the IP address of the first node may also be referred to as the IP address of the BIOS or the IP address of the first node network card. The address information of the second node may be an IP address of the second node.
In the embodiment of the application, the target instruction carrying the IP address of the first node and the IP address of the second node can be generated based on the IP address of the first node and the IP address of the second node.
In one possible implementation, the target instruction may be a ping instruction.
Step 205, in response to the target instruction, detecting whether there is an abnormality in the communication link between the first node and the second node.
Wherein the network function of the second node is not abnormal; the abnormal communication link between the first node and the second node at least comprises a failure of the link between the first node and the second node, an interruption of the link between the first node and the second node and a timeout of the link between the first node and the second node.
In the embodiment of the application, under the condition that the communication link between the first node and the second node is detected to be abnormal, the detection can be stopped so as to preserve the site and facilitate the subsequent further analysis of the cause of the abnormality of the communication link between the first node and the second node.
The step 205 may be implemented by steps A1 to A3:
and step A1, responding to the target instruction, and sending a target detection packet to the second node.
In the embodiment of the application, the target detection packet can be sent to the second node for multiple times in response to the target instruction, so that the accuracy of detecting whether the link failure exists between the first node and the second node is improved.
In one possible implementation, the target instruction may be a ping instruction; executing the ping instruction may use the Internet control message protocol (Internet Control Message Protocol, ICMP); the target probe packet may be a 32 byte data packet. The number of times the target probe packet is sent to the second node based on the ping instruction may be 40.
And A2, determining that the communication link is abnormal under the condition that feedback information sent by the second node based on the target detection packet is not received in the first target time.
The first target time may be preset.
In the embodiment of the application, after the first node sends out the target detection packet, whether feedback information sent by the second node aiming at the target detection packet is received or not can be detected in real time in the first target time, and if the feedback information is not detected, the communication link is indicated to be abnormal; wherein, the abnormal communication link at this time means that the link between the first node and the second node is not communicated; the abnormal type of the link failure comprises one of abnormal types such as link failure between the first node and the second node, link interruption between the first node and the second node, and link timeout between the first node and the second node.
And A3, under the condition that feedback information sent by the second node based on the target detection packet is received in the first target time, determining the transmission condition when the target file is transmitted through the communication link, and judging whether the communication link is abnormal or not based on the transmission condition.
In the embodiment of the application, in the process of transmitting the target file through the communication link, the first node can monitor the process to obtain the transmission condition. The transmission condition characterizes whether the first node receives the target file sent by the second node or not; or the transmission condition represents whether the first node receives the receiving feedback information of the target file sent by the second node aiming at the first node.
In the embodiment of the application, in the first target time, when the feedback information sent by the second node based on the target detection packet is received, it cannot be determined that no abnormality exists in the communication link, and at this time, whether the communication link is abnormal or not needs to be further determined according to the transmission condition of the target file transmitted through the communication link.
Specifically, the first node may send the target file to the second node, and the first node detects whether receiving feedback information sent by the second node for the target file is received in the second target time, so as to determine whether an abnormality exists in a communication link between the first node and the second node; or, the first node may send an acquisition request for acquiring the target file to the second node, and the first node may detect whether the target file is received within the second target time to determine whether an abnormality exists in the communication link between the first node and the second node. Wherein the anomaly at this time refers to an anomaly in network transmission between the first node and the second node. Wherein the first target time and the second target time are different.
Step 206, determining that the network function of the guidance system is abnormal in case of abnormal communication link.
It should be noted that, in the embodiments of the present application, the descriptions of the same steps and the same content as those in other embodiments may refer to descriptions in other embodiments, which are not repeated here.
According to the detection method provided by the embodiment of the application, whether the communication link between the first node and the second node where the guiding system is located is abnormal or not can be detected by maintaining and managing the target interface of the guiding system and calling the service module for detecting the network function of the guiding system, and under the condition that the communication link is abnormal, the network function of the guiding system is determined to be abnormal, so that the automatic detection of whether the network function of the guiding system is abnormal or not is realized, the analysis of the installation log of the installation operating system according to the artificial experience in the related technology is not required to determine whether the network function of the guiding system is abnormal or not, and the efficiency and the accuracy of determining whether the network function of the guiding system is abnormal or not are improved.
Based on the foregoing embodiments, an embodiment of the present application provides a detection method, applied to a first node, with reference to fig. 3, including the following steps:
step 301, configuring parameters of a first start-up item of the guidance system based on the identification of the target interface.
Step 302, in the case of booting the system, loading the target interface based on the parameters of the configured first boot item.
Step 303, calling a service module for detecting the network function of the guiding system through the target interface.
Step 304, generating, by the service module, a target instruction for detecting a communication link between the first node and the second node based on the address information of the first node and the address information of the second node.
Step 305, in response to the target instruction, sending a target probe packet to the second node.
It should be noted that, step 306 or step 307 may be performed after step 305.
Step 306, determining that the communication link is abnormal when feedback information sent by the second node based on the target probe packet is not received in the first target time.
It should be noted that step 310 may be performed after step 306.
Step 307, determining a transmission condition when the target file is transmitted through the communication link under the condition that feedback information sent by the second node based on the target probe packet is received in the first target time.
It should be noted that, after step 307, step 308 or step 309 may be performed
Step 308, determining that the communication link is abnormal under the condition that the transmission condition characterizes that the first node does not receive the target file sent by the second node in the second target time.
In the embodiment of the application, under the condition that the transmission condition characterizes that the first node does not receive the target file sent by the second node in the second target time, the communication link between the first node and the second node is determined to have abnormal network transmission. Wherein, the network transmission abnormality may be that the target file is lost in the transmission process.
Wherein the first target time and the second target time are different.
It should be noted that step 310 may be performed after step 308.
Step 309, determining whether the communication link is abnormal based on the target file when the transmission condition characterizes that the first node receives the target file sent by the second node.
In the embodiment of the application, under the condition that the transmission condition characterizes that the first node receives the target file sent by the second node, the communication link is determined to have no network transmission abnormality, but the communication link cannot be determined to have no abnormality at this time, and the integrity of the target file needs to be verified to determine whether the communication link has abnormality.
It should be noted that step 309 may also be implemented by steps b1 to b 2:
and b1, checking the target file to obtain a check code.
In the embodiment of the application, a verification algorithm can be adopted to verify the target file to obtain a verification code; wherein the check code is unique.
In one possible implementation, the verification algorithm may be a hash algorithm; the check code may be a hash value obtained by checking the target file through a hash algorithm. The hash algorithm comprises a message digest algorithm (Message Digest Algorithm MD, MD 5), a secure hash algorithm (Secure Hash Algorithm, SHA-1) and the like.
And b2, under the condition that the check code is not matched with the target check code, determining that the communication link is abnormal.
The target check code may be sent to the first node after the second node checks the target file in advance.
In the embodiment of the application, under the condition that the check code is consistent with the target check code, the check code is determined to be matched with the target check code; and under the condition that the check code is inconsistent with the target check code, determining that the check code is not matched with the target check code.
Under the condition that the check code is not matched with the target check code, the incomplete target file is determined, namely packet loss can occur in the transmission process, and at the moment, the communication link is determined to be abnormal. Wherein the anomaly is a network transmission integrity anomaly.
Step 310, determining that the network function of the guidance system is abnormal when the communication link is abnormal.
Based on the foregoing embodiment, in other embodiments of the present application, the address information of the first node in the detection method may further be implemented as follows:
step 311, setting, by the service module, a third target time for obtaining address information of the first node.
Wherein the first target time, the second target time, and the third target time are all different. The address information of the first node may be an IP address of the first node.
In the embodiment of the application, the IP address of the first node may also be understood as the IP address of the network card on the first node. The different quality and network drive of different types of network cards can lead to different feedback of response time inside the network; the third target time may be determined by a driving time of the network card on the first node, or may be determined according to a standard test time.
Step 312, obtaining, by the service module, address information of the first node in a static address allocation manner or a dynamic address allocation manner in the third target time.
In the embodiment of the application, the address information of the first node can be read from the configuration file stored on the first node by adopting a static address allocation mode.
Wherein, the dynamic address allocation mode refers to that address information of the first node is obtained from other nodes except the first node.
In one possible implementation, a dynamic host configuration protocol (Dynamic Host Configuration Protocol, DHCP) service is built at the second node, from which address information of the first node may be obtained in advance.
Therefore, the address information of the first node can be acquired by selecting the address allocation mode according to the actual application, and the flexibility of acquiring the address information of the first node is improved.
It should be noted that, when the first node obtains the address information of the first node from the second node, it indicates that when the configuration information of the first node is obtained, the communication link between the first node and the second node is currently on (i.e., when there is no link failure, there is no possibility that an accidental event exists in the network link state between the first node and the second node (such as only this time is suddenly on), and therefore, it cannot be determined that there is no problem of link failure between the first node and the second node.
Based on the method, when detecting whether the communication link between the first node and the second node is abnormal or not, the target detection packet can be sent to the second node for multiple times based on the ping instruction so as to detect whether the link between the first node and the second node is not through, and the problem that the network link state between the first node and the second node is accidentally caused by only sending the target detection packet once to cause inaccurate detection results is avoided, so that the accuracy of determining whether the link between the first node and the second node is not through is further improved.
Step 312, obtaining anomaly information when the communication link is anomalous.
In the embodiment of the application, in the process of detecting whether the communication link is abnormal, a detection log can be generated, and then under the condition that the communication link is determined to be abnormal, the detection log can be called to analyze the abnormal type so as to determine the cause of the communication link. The anomaly information comprises a detection log when the communication link is abnormal.
Step 313, determining an abnormality type when the network function is abnormal based on the abnormality information.
In the embodiment of the application, the characters of the target field can be extracted from the abnormal information, and the characters of the target field are matched with a plurality of characters corresponding to the preset abnormal type, so as to determine the abnormal type when the BIOS network function is abnormal. The target field is a field carrying abnormal characteristics.
In one possible implementation, when the character of the target field is "timeout", a plurality of characters corresponding to the "timeout" and the preset exception type may be matched, and when the matching result characterizes that "timeout" is matched with the characters corresponding to the network link interruption and timeout, it is determined that the exception type of the communication link abnormality at this time is the network link interruption and timeout.
In another possible implementation manner, when the character of the target field is "Unable", a plurality of characters corresponding to the "Unable" and the preset exception type may be matched, and when the matching result indicates that the "Unable" is matched with the corresponding character when the network data transmission is not enabled, the network data transmission is interrupted or the file does not exist, it is determined that the exception type at the moment is that the network data transmission is not enabled, the network data transmission is interrupted or the file does not exist.
Therefore, the abnormal type of the communication link when the abnormality exists can be determined based on the characters of the target field existing in the abnormal information, the accuracy of determining the abnormal type of the communication link when the abnormality exists is improved, and the abnormal root cause of the communication link when the abnormality exists can be further determined according to the abnormal type, so that the BIOS is maintained according to the abnormal root cause, and the network function of the BIOS is recovered.
The first node stores a plurality of abnormal root causes corresponding to preset abnormal types, and after the abnormal types of the communication link are determined, the abnormal root causes corresponding to the abnormal types can be determined from the plurality of abnormal root causes.
The detection method provided by the embodiment of the application is explained in detail below in combination with application scenarios.
Normally, the OS can be installed successfully only if no abnormality exists in the network functions of the OS and the network functions of the BIOS; when the OS fails to be installed, the installation log generated in the process of installing the OS is analyzed, and whether the network function abnormality of the BIOS or the network function abnormality of the OS causes the OS to be installed failure can not be positioned in a short time; therefore, the detection method of the application can be adopted to detect whether the network function of the BIOS is abnormal before the OS is installed, and the network function of the BIOS can be maintained in time under the condition that the network function of the BIOS is abnormal so as to repair the network function of the BIOS, and the OS is installed under the condition that the network function of the BIOS is ensured not to be abnormal, and when the OS is installed in a problem, the network function of the OS can be determined to be abnormal at the moment.
Of course, after the OS is failed to be installed, the detection method provided by the application can also be used for detecting whether the BIOS has an abnormality, and if the BIOS is determined to have no abnormality, determining that the network function of the OS has an abnormality.
Therefore, the installation log generated in the OS installation process is not required to be analyzed according to the artificial experience, so that whether the reason of the failure of the OS installation is the abnormality of the network function of the BIOS or the abnormality of the network function of the OS is located, and the efficiency and the accuracy of determining the failure reason when the OS installation is failed are further improved.
The embodiment of the application also provides a detection system, the detection method is applied to the detection system, and the detection system comprises: the system comprises a network link identification module, a network data transmission identification module, a network connection module, a network data transmission module, a data result recording module and a network test operation module.
The network link identification module is configured to store characters corresponding to different preset exception types, including, but not limited to, characters corresponding to a link failure of the second node and the first node, characters corresponding to a link interruption of the second node and the first node, characters corresponding to a connection timeout of the second node and the first node, and other characters corresponding to preset exception types. The character of the target field in the obtained abnormal information when the communication link is abnormal can be matched with the characters corresponding to the plurality of preset abnormal types, so that the abnormal type when the communication link is abnormal can be determined. When it is determined that there is an anomaly in the communication link, i.e., the subsequent detection is stopped, e.g., when it is determined that the link between the first node and the second node is not open, the detection reservation site is stopped for anomaly analysis without subsequent transmission detection and transmission integrity detection.
Network data transmission identification module: detecting whether network transmission abnormality exists between the first node and the second node through a simple file transfer protocol (Trivial File Transfer Protocol, TFTP) when no link failure exists between the first node and the second node, generating a check code through a target file acquired from the second node when no abnormality exists in network transmission, and matching the check code with the target check code; under the condition that the check code is not matched with the target check code, determining that the transmission integrity of the target file is abnormal, stopping detection at the moment, and reserving the site; under the condition that the check code is matched with the target check code, the transmission integrity can be fed back to be normal, and the repeatability test can be restarted.
And a network connection module: for linking the second node using the ping command, feeding back the network connection status.
And a network data transmission module: for downloading the target file from the second node to the first node while supporting uploading of the target file from the first node to the second node.
And a data result recording module: recording normal and abnormal information including test results, time information and network address state information when the abnormal results exist in each detection of whether the network link is not enabled; and recording normal and abnormal information of each network transmission and network transmission integrity check, including test results, time information and transmission information when the network transmission is abnormal.
Network test operation module: setting a static address allocation mode and a dynamic address allocation mode for the IP address of the first node, and setting an allowable time (i.e., a third target time) for waiting to acquire the IP address of the first node; and the network link, network transmission and network transmission integrity results are judged and recorded by matching with the network connection module, the network link identification module, the network data transmission identification module and the data result recording module, and the next operation is carried out according to feedback of different results.
In one possible implementation manner, a startup self-starting script startup under UEFI SHELL sets a static address allocation manner and a dynamic address allocation manner, and sets a third target time for waiting to acquire an IP address of the first node; linking a second node by using a ping command, and simultaneously adding a network link identification module to grasp, compare and judge a test result of key data of the ping link result; when the network link result is identified to be normal, the data result recording module stores the result record of the normal state, and then starts to use the TFTP transmission command to carry out network transmission detection in the next step, and meanwhile, the network data checking module is added to check the transmitted target file; when the integrity of network transmission is normal, the data result recording module stores the result record of the normal state, and then a restarting instruction is operated so as to carry out subsequent repeatability detection.
Judging that the network link is not connected, the network transmission is abnormal and the network transmission integrity is abnormal, when the abnormality occurs, sending out an instruction, stopping the next test of the network link and the network data transmission, and reserving an abnormal site. And meanwhile, the data result recording module records network address state information at the time of an abnormal result and data transmission information at the time of the abnormal result so as to analyze the cause of the abnormality.
Meanwhile, the first starting of the basic input and output system is set as UEFI SHELL, so that the UEFI SHELL interface is normally entered after restarting each time, the repeatability and stability test of network function identification verification under the UEFI SHELL is automatically realized, and the test timeliness is improved.
It should be noted that, in the embodiments of the present application, the descriptions of the same steps and the same content as those in other embodiments may refer to descriptions in other embodiments, which are not repeated here.
According to the detection method provided by the embodiment of the application, whether the communication link between the first node and the second node where the guiding system is located is abnormal or not can be detected by maintaining and managing the target interface of the guiding system and calling the service module for detecting the network function of the guiding system, and under the condition that the communication link is abnormal, the network function of the guiding system is determined to be abnormal, so that the automatic detection of whether the network function of the guiding system is abnormal or not is realized, the analysis of the installation log of the installation operating system according to the artificial experience in the related technology is not required to determine whether the network function of the guiding system is abnormal or not, and the efficiency and the accuracy of determining whether the network function of the guiding system is abnormal or not are improved.
Based on the foregoing embodiments, the embodiments of the present application provide a first node, which may be applied to the detection method provided in the embodiments corresponding to fig. 1 to 3, and referring to fig. 4, the first node 4 may include a processor 41, a memory 42, and a communication bus 43;
a communication bus 43 for enabling a communication connection between the processor 41 and the memory 42;
the processor 41 is configured to execute the detection program in the memory 42 to implement the following steps:
loading a target interface for maintaining and managing the boot system;
calling a service module for detecting the network function of the guiding system through a target interface;
detecting whether a communication link between a first node and a second node is abnormal or not through a service module;
in the event of an anomaly in the communication link, it is determined that an anomaly exists in the network function of the guidance system.
In other embodiments of the present application, the processor 41 is configured to execute a pass-through service module in a detection program in the memory 42, and detect whether there is an abnormality in a communication link between the first node and the second node, so as to implement the following steps:
generating, by the service module, a target instruction for detecting a communication link between the first node and the second node based on the address information of the first node and the address information of the second node;
In response to the target instruction, it is detected whether an anomaly exists in the communication link between the first node and the second node.
In other embodiments of the present application, the processor 41 is configured to execute the detection program in the memory 42 to detect whether there is an abnormality in the communication link between the first node and the second node in response to the target instruction, so as to implement the following steps:
transmitting a target detection packet to a second node in response to the target instruction;
determining that the communication link is abnormal under the condition that feedback information sent by the second node based on the target detection packet is not received in the first target time;
and in the first target time, under the condition that feedback information sent by the second node based on the target detection packet is received, determining the transmission condition when the target file is transmitted through the communication link, and judging whether the communication link is abnormal or not based on the transmission condition.
In other embodiments of the present application, the processor 41 is configured to execute the detection procedure in the memory 42 to determine whether there is an abnormality in the transmission-based communication link, so as to implement the following steps:
characterizing that the first node does not receive the target file sent by the second node in the second target time under the transmission condition, and determining that the communication link is abnormal;
And under the condition that the transmission condition characterizes that the first node receives the target file sent by the second node, determining whether the communication link is abnormal or not based on the target file.
In other embodiments of the present application, the processor 41 is configured to execute the detection program in the memory 42 to determine whether the communication link is abnormal based on the target file, so as to implement the following steps:
checking the target file to obtain a check code;
and under the condition that the check code and the target check code are not matched, determining that the communication link is abnormal.
In other embodiments of the present application, the processor 41 is configured to execute the detection program in the memory 42 to implement the following steps:
configuring parameters of a first starting item of the guiding system based on the identification of the target interface;
the processor 41 is further configured to perform loading of a target interface for maintaining and managing the booting system to implement the following steps:
in the case of a boot system boot, the target interface is loaded based on the parameters of the configured first boot item.
In other embodiments of the present application, the processor 41 is configured to execute the detection program in the memory 42 to implement the following steps:
setting a third target time for acquiring the address information of the first node through the service module;
And acquiring the address information of the first node by adopting a static address allocation mode or a dynamic address allocation mode in the third target time through the service module.
In other embodiments of the present application, the processor 41 is configured to execute the detection program in the memory 42 to implement the following steps:
acquiring abnormal information when the communication link is abnormal;
based on the anomaly information, an anomaly type when the network function is abnormal is determined.
It should be noted that, the specific implementation process of the steps executed by the processor in this embodiment may refer to the implementation process in the detection method provided in the embodiment corresponding to fig. 1 to 3, which is not described herein again.
The first node provided by the embodiment of the application can detect whether the communication link between the first node and the second node where the guiding system is located is abnormal or not by maintaining and managing the target interface of the guiding system and calling the service module for detecting the network function of the guiding system, and under the condition that the communication link is abnormal, the network function of the guiding system is determined to be abnormal, thereby realizing automatic detection of whether the network function of the guiding system is abnormal or not, and the efficiency and the accuracy for determining whether the network function of the guiding system is abnormal or not are improved by analyzing the installation log of the installation operating system according to the artificial experience in the related art.
Based on the foregoing embodiments, embodiments of the present application provide a computer-readable storage medium storing one or more programs executable by one or more processors to implement the steps of the detection method provided by the corresponding embodiments of fig. 1 to 3.
The computer readable storage medium may be a Read Only Memory (ROM), a programmable Read Only Memory (Programmable Read-Only Memory, PROM), an erasable programmable Read Only Memory (Erasable Programmable Read-Only Memory, EPROM), an electrically erasable programmable Read Only Memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), a magnetic random access Memory (Ferromagnetic Random Access Memory, FRAM), a Flash Memory (Flash Memory), a magnetic surface Memory, an optical disk, or a compact disk Read Only Memory (Compact Disc Read-Only Memory, CD-ROM), or the like; but may be various electronic devices such as mobile phones, computers, tablet devices, personal digital assistants, etc., that include one or any combination of the above-mentioned memories.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article of interest, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article of interest, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article of manufacture, or apparatus that comprises the element.
The foregoing embodiment numbers of the present application are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method described in the embodiments of the present application.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The foregoing description is only of the preferred embodiments of the present application, and is not intended to limit the scope of the application, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (10)

1. A method of detection, applied to a first node, the method comprising:
loading a target interface for maintaining and managing the boot system;
calling a service module for detecting the network function of the guiding system through the target interface;
detecting whether an abnormality exists in a communication link between the first node and the second node through the service module;
and under the condition that the communication link is abnormal, determining that the network function of the guiding system is abnormal.
2. The method of claim 1, wherein the detecting, by the service module, whether an anomaly exists in the communication link between the first node and the second node, comprises:
generating, by the service module, a target instruction for detecting a communication link between the first node and the second node based on the address information of the first node and the address information of the second node;
in response to the target instruction, detecting whether an abnormality exists in a communication link between the first node and the second node.
3. The method of claim 2, wherein the detecting whether an anomaly exists in the communication link between the first node and the second node in response to the target instruction comprises:
Transmitting a target probe packet to the second node in response to the target instruction;
determining that the communication link is abnormal under the condition that feedback information sent by the second node based on the target detection packet is not received in the first target time;
and in the first target time, under the condition that feedback information sent by the second node based on the target detection packet is received, determining a transmission condition when the target file is transmitted through the communication link, and judging whether the communication link is abnormal or not based on the transmission condition.
4. A method according to claim 3, wherein said determining whether an anomaly exists in said communication link based on said transmission condition comprises:
characterizing that the first node does not receive the target file sent by the second node in the second target time under the transmission condition, and determining that the communication link is abnormal;
and under the condition that the transmission condition characterizes that the first node receives the target file sent by the second node, determining whether the communication link is abnormal or not based on the target file.
5. The method of claim 4, wherein determining whether an anomaly exists in the communication link based on the target file comprises:
Checking the target file to obtain a check code;
and under the condition that the check code and the target check code are not matched, determining that the communication link is abnormal.
6. The method of claim 1, wherein prior to loading the target interface for maintaining and managing the boot system, the method further comprises:
configuring parameters of a first start-up item of the guidance system based on the identification of the target interface;
accordingly, the loading the target interface for maintaining and managing the booting system includes:
in the case of the boot system startup, the target interface is loaded based on the configured parameters of the first startup item.
7. The method according to claim 2, wherein the address information of the first node is obtained by:
setting, by the service module, a third target time for acquiring address information of the first node;
and acquiring the address information of the first node by the service module in a static address allocation mode or a dynamic address allocation mode in the third target time.
8. The method according to claim 1, wherein the method further comprises:
Acquiring abnormal information when the communication link is abnormal;
and determining the abnormality type when the network function is abnormal based on the abnormality information.
9. A first node, the first node comprising: a processor, a memory, and a communication bus;
the communication bus is used for realizing communication connection between the processor and the memory;
the processor is configured to execute a detection program stored in the memory to implement the steps of:
loading a target interface for maintaining and managing the boot system;
calling a service module for detecting the network function of the guiding system through the target interface;
detecting whether an abnormality exists in a communication link between the first node and the second node through the service module;
and under the condition that the communication link is abnormal, determining that the network function of the guiding system is abnormal.
10. A computer-readable storage medium storing one or more programs executable by one or more processors to implement the steps of the detection method of any of claims 1-8.
CN202311087138.5A 2023-08-25 2023-08-25 Detection method, first node and computer readable storage medium Pending CN117221160A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311087138.5A CN117221160A (en) 2023-08-25 2023-08-25 Detection method, first node and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311087138.5A CN117221160A (en) 2023-08-25 2023-08-25 Detection method, first node and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN117221160A true CN117221160A (en) 2023-12-12

Family

ID=89045299

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311087138.5A Pending CN117221160A (en) 2023-08-25 2023-08-25 Detection method, first node and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN117221160A (en)

Similar Documents

Publication Publication Date Title
CN110045991B (en) RAID configuration method and device of server, computer equipment and storage medium
US11995427B2 (en) Method, apparatus, device, and storage medium for upgrading vehicle-mounted Tbox
US5987625A (en) Method and apparatus for testing network bootable devices
CN113504932B (en) Firmware data updating method and device
CN107357694A (en) Error event reporting system and its method during startup self-detection
CN112433769A (en) BMC starting method and device, computer equipment and storage medium
CN112948190A (en) Hardware testing method, system and related device of server
CN115827111A (en) Method and device for adjusting server startup items, storage medium and electronic device
CN111338698A (en) Method and system for accurately booting server by BIOS (basic input output System)
CN111367743A (en) Method and system for diagnosing power failure of server in cycle restart test process
CN112463466B (en) Computer testing method
CN112214413A (en) Application program testing method, device, equipment and storage medium
CN110134558B (en) Method and device for detecting server
CN116483416A (en) Firmware online upgrading method, server and storage medium
CN117221160A (en) Detection method, first node and computer readable storage medium
CN115168146A (en) Anomaly detection method and device
CN114237722A (en) System starting method, device, equipment and engineering vehicle
CN109684134B (en) Method and server for rapidly deploying firmware settings among multiple devices
CN107015827B (en) Embedded system and method for automatically operating third-party extension program thereof
CN112527371A (en) Boot loader upgrading method and device, electronic equipment and storage medium
CN111083001B (en) Firmware abnormity detection method and device
CN113868128B (en) Method and device for testing PXE (PCI express) guide function and storage medium
CN113886218B (en) Method, device, equipment and readable medium for verifying BIOS refreshing
CN111324384A (en) Device and method for selecting starting image file according to device message in pre-execution environment
CN116303067B (en) Testing method, device, equipment and medium based on cloud testing platform

Legal Events

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