CN116016152A - Network detection method, network detection device, electronic device, and readable storage medium - Google Patents

Network detection method, network detection device, electronic device, and readable storage medium Download PDF

Info

Publication number
CN116016152A
CN116016152A CN202111223268.8A CN202111223268A CN116016152A CN 116016152 A CN116016152 A CN 116016152A CN 202111223268 A CN202111223268 A CN 202111223268A CN 116016152 A CN116016152 A CN 116016152A
Authority
CN
China
Prior art keywords
network
detection
instruction
probing
network node
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
CN202111223268.8A
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.)
Beijing Zitiao Network Technology Co Ltd
Original Assignee
Beijing Zitiao Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Zitiao Network Technology Co Ltd filed Critical Beijing Zitiao Network Technology Co Ltd
Priority to CN202111223268.8A priority Critical patent/CN116016152A/en
Publication of CN116016152A publication Critical patent/CN116016152A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The application discloses a network detection method, a network detection device, electronic equipment and a readable storage medium, and belongs to the technical field of network detection. The network detection method applied to the server comprises the following steps: receiving configuration information of a network problem debugging task input by a user; determining a plurality of network nodes to be tested according to the configuration information, and issuing a detection instruction to the network nodes, wherein the detection instruction is used for indicating the network nodes to perform Curl detection so as to obtain detection results; and receiving a detection result fed back by the network node. By the method, the network debugging task is initiated to a plurality of network nodes in batches by the server, so that the debugging efficiency is improved.

Description

Network detection method, network detection device, electronic device, and readable storage medium
Technical Field
The application belongs to the technical field of network detection, and particularly relates to a network detection method, a network detection device, electronic equipment and a readable storage medium.
Background
In the related art, when a network link problem is encountered, the debugging technology can only control a single device to perform network debugging, for example, through remote screen throwing, forwarding through an adb port and the like, so that a user can remotely debug the single device. However, when the overall network states of a plurality of devices within a certain range need to be acquired, if one device is independently debugged, time is wasted, and the debugging efficiency is low.
Disclosure of Invention
An object of the embodiments of the present application is to provide a network detection method, a network detection device, an electronic device, and a readable storage medium, which can solve the problem of low debugging efficiency caused by controlling a single device to perform network debugging in the related art.
In a first aspect, an embodiment of the present application provides a network detection method, applied to a server, where the network detection method includes:
receiving configuration information of a network problem debugging task input by a user;
determining a plurality of network nodes to be tested according to the configuration information, and issuing a detection instruction to the network nodes, wherein the detection instruction is used for indicating the network nodes to perform Curl detection so as to obtain detection results;
and receiving a detection result fed back by the network node.
In a second aspect, an embodiment of the present application provides a network probing method, applied to a network node, where the network probing includes:
receiving a detection instruction sent by a server;
performing Curl detection according to the detection instruction to generate a detection result;
sending the detection result to a server;
the detection instructions are sent to the plurality of network nodes by the server side respectively.
In a third aspect, an embodiment of the present application provides a network detection device, applied to a server, where the network detection device includes:
The first receiving module is used for receiving configuration information of a network problem debugging task input by a user;
the determining module is used for determining a plurality of network nodes to be tested according to the configuration information;
the sending module is used for sending a detection instruction to the network node, wherein the detection instruction is used for indicating the network node to perform curl detection so as to obtain a detection result;
and the second receiving module is used for receiving the detection result fed back by the network node.
In a fourth aspect, an embodiment of the present application provides a network probing apparatus, applied to a network node, where the network probing apparatus includes:
the receiving module is used for receiving the detection instruction sent by the server;
the detection module is used for performing Curl detection according to the detection instruction and generating a detection result;
the sending module is used for sending the detection result to the server;
the detection instructions are sent to the plurality of network nodes by the server side respectively.
In a fifth aspect, embodiments of the present application provide an electronic device comprising a processor, a memory and a program or instructions stored on the memory and executable on the processor, the program or instructions, when executed by the processor, implementing the steps of the method as in the first aspect.
In a sixth aspect, embodiments of the present application provide an electronic device comprising a processor, a memory and a program or instruction stored on the memory and executable on the processor, the program or instruction when executed by the processor implementing steps of a method as in the second aspect.
In a seventh aspect, embodiments of the present application provide a readable storage medium having stored thereon a program or instructions which, when executed by a processor, implement the steps of the method as in the first or second aspects.
In an eighth aspect, embodiments of the present application provide a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and where the processor is configured to execute a program or instructions to implement a method as in the first aspect or the second aspect.
In the embodiment of the application, after receiving the configuration information, the server determines a plurality of network nodes to be tested, so as to send the detection instruction to the plurality of network nodes. And for each network node, performing curl detection according to the detection instruction, thereby generating a detection result, and feeding back the detection result to the server. By the method, the network debugging task is initiated to a plurality of network nodes in batches by the server, so that the debugging efficiency is improved.
Drawings
Fig. 1 is one of flow diagrams of a network probing method according to an embodiment of the present application;
FIG. 2 is a second flow chart of a network probing method according to an embodiment of the present application;
FIG. 3 is one of the display schematics of the server-side user interface of the embodiments of the present application;
FIG. 4 is a second diagram of a server user interface according to an embodiment of the present disclosure;
FIG. 5 is a third display diagram of a server user interface according to an embodiment of the present application;
FIG. 6 is a flow chart of a network probing method according to an embodiment of the present application;
FIG. 7 is a schematic diagram of a network probing process according to an embodiment of the present application;
FIG. 8 is one of the schematic block diagrams of the network probe apparatus of the embodiments of the present application;
FIG. 9 is a second schematic block diagram of a network probe device according to an embodiment of the present application;
FIG. 10 is one of the schematic block diagrams of an electronic device of an embodiment of the present application;
fig. 11 is a second schematic block diagram of an electronic device of an embodiment of the present application.
Detailed Description
Technical solutions in the embodiments of the present application will be clearly described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application are within the scope of the protection of the present application.
The terms first, second and the like in the description and in the claims, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that embodiments of the present application may be implemented in sequences other than those illustrated or described herein. Furthermore, in the description and claims, "and/or" means at least one of the connected objects, and the character "/", generally means that the associated object is an "or" relationship.
The network detection method, the network detection device, the electronic equipment and the readable storage medium provided by the embodiment of the application are described in detail below through specific embodiments and application scenes thereof with reference to the accompanying drawings.
The application provides a network detection method, which is applied to a server, as shown in fig. 1, and comprises the following steps:
step 102, receiving configuration information of a network problem debugging task input by a user;
104, determining a plurality of network nodes to be tested according to the configuration information, and issuing a detection instruction to the network nodes, wherein the detection instruction is used for indicating the network nodes to perform curl detection so as to obtain detection results;
And step 106, receiving a detection result fed back by the network node.
In this embodiment, the user sets configuration information of the network problem debugging task, that is, inputs a probe instruction and node information of the network node to be tested. After receiving the configuration information, the server determines a plurality of network nodes to be tested, and then sends a detection instruction to the plurality of network nodes. And for each network node, performing curl detection according to the detection instruction, thereby generating a detection result, and feeding back the detection result to the server.
By the method, the network debugging task is initiated to a plurality of network nodes in batches by the server, so that the debugging efficiency is improved.
It should be noted that, the probe instruction is an instruction for network transmission of a specified URL based on a network protocol, that is, a file transmission tool (command line tool and library for transferring data with URLs, curl) operating under a command line by using URL rules. When a network link problem is encountered, besides the conventional fixed detection modes such as http and dns, a curl detection instruction is also required to be used for targeted detection so as to acquire information for locating and repairing the problem. Currently, when a curl detection instruction is needed to be detected, the curl detection instruction needs to be directly executed by using a termux tool on a corresponding network node, or issued to the network node by using an adb mode for execution.
The node information of the network node may be information of each network node, that is, the node information may include a plurality of sub-information, each of which corresponds to one network node. The node information of the network node may also be information of a group of network nodes, i.e. a group of network nodes may be determined by one node information.
It is worth noting that the related art only monitors the network problems in batches to achieve the effect of quickly finding the problems, but only detects a single device, but cannot detect the network problems in batches in real time. In the embodiment of the application, not only the monitoring of the network problem but also the detection can be performed in batches.
Further, in one embodiment of the present application, the operating system of the network node comprises any one of the following: android system, macOS system, linux system.
Further, in an embodiment of the present application, after the step of receiving the probe result fed back by the network node, the method further includes: and displaying the detection result.
In this embodiment, after receiving the detection result sent by each network node, the server may display each detection result. The user can quickly know the network states of a batch of different network nodes, namely, the user can acquire the whole network states within a certain range.
Further, in an embodiment of the present application, after the step of receiving the probe result fed back by the network node, the method further includes: comparing the detection result with a preset text; and generating alarm information under the condition that the matching degree of the detection result and the preset text is smaller than or equal to the preset matching degree.
In this embodiment, after receiving the detection result sent by the network node, the server may compare the detection result with a preset text, and generate the alarm information when the matching degree between the detection result and the preset text is less than or equal to the preset matching degree.
It should be noted that, the conventional network detection instructions (such as http, ping, dns, traceroute and the like) return data with a fixed structure, and the user focuses on some numerical index class data, so that the alarm in the related art only supports numerical index class alarm, for example, monitors whether a certain index is greater than or less than a certain threshold. The data structure returned by the curl detection instruction changes according to the input and is not fixed, so that the method is not suitable for index type alarming in the related technology. The embodiment of the application provides a returned content monitoring alarm scheme conforming to a curl detection instruction, specifically, a user can specify a section of text (namely a preset text), the preset text supports a regular expression, a detection result returned by the corresponding curl detection instruction is required to be matched with the preset text, and if the detection result is not matched with the preset text, an alarm is triggered. Since the user is expected to the detection result of the configured curl detection instruction, the preset text can be configured according to the expected detection result, and thus, an alarm is triggered when the returned detection result does not accord with the expected preset text.
By the method, the network problem can be rapidly verified, and the accuracy of detection result monitoring is improved.
Further, in an embodiment of the present application, after the step of issuing the probe instruction to the network node, the network probe method further includes: transmitting a file downloading instruction to a storage system, wherein the storage system stores a downloading file generated by performing curl detection by a network node; and receiving the downloaded file fed back by the storage system.
In this embodiment, the curl detection instruction can provide an additional function of downloading files to the network node, so that the server may download files occupying a larger memory. Because the main functions of the server are task scheduling and result display, and the storage is not specially optimized, files occupying large memory in the network node are not suitable for being directly returned to the server for storage, the network node can upload the downloaded files to a storage system of a third party and return the downloaded links to the server, and the server displays the downloaded links and other structured data together. When the user clicks the download link, a file download instruction is sent to the storage system of the third party, and then the storage system of the third party returns a download file to the server.
Through the mode, the storage system of the third party can be utilized to optimize file storage, and the user can not be influenced to finally acquire the downloaded file.
Further, in one embodiment of the present application, before the step of issuing the probe instruction to the network node, the network probe method further includes: carrying out instruction marking on the detection instruction; the transmission instruction in the detection instruction is marked as an instruction head, and other instructions except the transmission instruction in the detection instruction are marked as instruction parameters.
In this embodiment, since the curl probe instruction accepts user free input, there is a risk of command input, for example, the user input probe instruction is "curl-v bdu.com; rm-rf/"(where" curl-v bdu. Com "is a transmission instruction and" rm-rf/"is not an actual transmission instruction), if the user's complete input instruction is directly executed, all the user's inputs are taken, i.e., the" rm-rf/"is recognized as another instruction to be executed, which may damage the entire probing process.
In view of this problem, the embodiment of the application provides an injection prevention modification to a probe instruction, specifically, splitting a complete probe instruction into an instruction header (i.e. a transmission instruction) and an instruction parameter (i.e. other instructions except the transmission instruction in a debug instruction). The example instruction is split into an instruction header "curl" and instruction parameters: "-v", "bdu.com; "," rm "," -rf ","/". The "curl" is fixed as the instruction header of the currently executing instruction, and other instruction parameters are input as parameters. If a user has malicious instruction injection, the malicious instruction injection is only executed as instruction parameters. Because the instruction parameters are not legal parameters, the instruction parameters are not executed as separate instructions, so that the instruction injection is avoided, and the safety is improved.
Further, in an embodiment of the present application, the configuration information further includes an instruction execution time and/or an instruction execution frequency, and the step of issuing the probe instruction to the network node includes: and issuing a detection instruction to the network node according to the instruction execution time and/or the instruction execution frequency.
In this embodiment, the configuration information further includes an instruction execution time and/or an instruction execution frequency, so that the user can detect the time and the frequency according to the user's requirement by setting the instruction execution time and/or the instruction execution frequency.
The application provides a network detection method, which is applied to a network node, as shown in fig. 2, and comprises the following steps:
step 202, receiving a detection instruction sent by a server;
step 204, performing Curl detection according to the detection instruction to generate a detection result;
and step 206, sending the detection result to the server.
The detection instructions are sent to the plurality of network nodes by the server side respectively.
In this embodiment, the network node receives the detection instruction sent by the server, performs curl detection according to the detection instruction to obtain a detection result, and returns the detection result to the server.
Moreover, it should be noted that the server side can send the detection instruction to a plurality of different network nodes at the same time, so as to implement that the server side initiates network debugging tasks to the plurality of network nodes in batches, and improve the debugging efficiency.
Further, in one embodiment of the present application, the step of performing a curl detection according to the detection instruction, and generating a detection result includes: under the condition that an operating system of the network node is an android system, compiling a network protocol library of the network node into a network protocol library of an android system version; and performing curl detection according to the detection instruction and the network protocol library of the android system version, and generating a detection result.
In this embodiment, under the condition that the operating system of the network node is an android system, the libcur (cross-platform network protocol library) of the c++ version is cross-compiled and compiled into the android system, and thus the network protocol library of the android system version is obtained. And when the application is initialized, the network protocol library of the android system version is loaded into other dynamic instruction detection modules, and a user-provided curl detection instruction is sent to the network protocol library of the android system version for execution, so that a detection result is generated.
By means of the method, the network detection method can be adapted to equipment of an android system.
Further, in one embodiment of the present application, the step of performing a curl detection according to the detection instruction, and generating a detection result includes: and under the condition that the operating system of the network node is a macOS system or a Linux system, performing curl detection according to the detection instruction and an execution tool of the macOS system or the Linux system, and generating a detection result.
In this embodiment, in the case where the operating system of the network node is a macOS system or a Linux system, the execution tool of bash (Bourne Again Shell) provided by the macOS system or the Linux system is used to execute the curl probe instruction.
The macOS system refers to an operating system running on Macintosh series computers, and the Linux system refers to a UNIX-like (You Nake s) operating system.
By the method, the network detection method can be adapted to equipment of a macOS system or a Linux system.
Further, in one embodiment of the present application, after the step of performing the curl detection according to the detection instruction and generating the detection result, the network detection method further includes: and sending the download file produced by the curl detection to a storage system for storage.
In this embodiment, the network node sends fixed structure data (i.e. the debug result) with smaller occupied memory to the server, that is, only the network node needs to report the collected result to the server for unified storage and display. However, the curl detection instruction can provide an additional function of downloading files from the network node, so that the server may download files occupying a larger memory. Because the main functions of the server are task scheduling and result display, and the storage is not specially optimized, the files occupying large memory are not suitable for being directly returned to the server for storage. Therefore, the embodiment of the application introduces a storage system of the third party, the network node can upload the download file to the storage system of the third party, and return the download link to the server, and the server displays the download link and other structured data together.
Through the mode, the storage system of the third party can be utilized to optimize file storage, and the user can not be influenced to finally acquire the downloaded file.
In a specific embodiment of the present application, a server, a client device (i.e., a network node) model is used to deploy a control server, and a probing App is deployed on a plurality of client devices to integrate a curl probing capability. The user can select a specific batch of client devices at the server to initiate a network debugging task, obtain transverse comparison of execution results of the client devices, and further check specific execution results of each client device. The method and the system can solve the problem of debugging the network on a plurality of client devices at the same time, so that a user can quickly know the network states of a batch of different client devices, quickly and intuitively acquire the results in batches, and can locate the client device with a specific problem, thereby repairing the problem.
The server has the following functions:
(1) User interface functions. As shown in fig. 3, a user may configure a network problem debugging task at a user interface, including a curl probe instruction to be executed, a client device to be probed, a time and a frequency to execute the task, and the like. As shown in fig. 4, the user may also view the task execution result in the user interface, and as shown in fig. 5, the user may also view detailed data and basic information in the task execution result in the user interface.
(2) And a data storage function. The server can store user information, task configuration, task results, alarm information and other data.
(3) Task scheduling function. And issuing a curl detection instruction to detection apps on corresponding client devices to execute according to the user task configuration.
It should be noted that, the user may deploy a probe App (or referred to as a probe) on the client device, and the user executes the scheduled task issued by the server and reports the task result after the completion. The client device supports an android system, a mac mini system, a linux system and the like.
As shown in fig. 6, a network probing method in an embodiment of the present application includes:
step 602, a user initiates a debugging task aiming at a network problem;
Step 604, the server configures the debugging task into a warehouse;
step 606, selecting a client device for executing the probing according to the task configuration;
step 608, issuing the debugging task to all the client devices in parallel;
step 610, all client devices execute the curl probe in parallel;
step 612, the server retrieves the task execution results of all the client devices and stores them in a warehouse;
at step 614, the user views the task execution results.
In this embodiment, as shown in fig. 7, user 1, user 2 and user 3 respectively initiate batch debugging tasks through the user interface of the server, specifically, user 1 initiates debugging task 1, user 2 initiates debugging task 2 and user 3 initiates debugging task 3. For the debug task 3, the debug task 3 is a debug task for a plurality of client devices (including the client device 1, the client device 2. By the method, the purpose of task debugging on a plurality of client devices in parallel is achieved.
It should be noted that, in the network detection method provided in the embodiment of the present application, the execution body may be a network detection device, or a control module in the network detection device for executing the network detection method. In the embodiment of the present application, a network detection device executes a network detection method as an example, and the network detection device provided in the embodiment of the present application is described.
The present application provides a network detection device, which is applied to a server, as shown in fig. 8, and the network detection device 800 includes:
a first receiving module 802, configured to receive configuration information of a network problem debugging task input by a user;
a determining module 804, configured to determine a plurality of network nodes to be tested according to the configuration information;
a sending module 806, configured to issue a detection instruction to the network node, where the detection instruction is used to instruct the network node to perform a curl detection to obtain a detection result;
and the second receiving module 808 is configured to receive a detection result fed back by the network node.
In this embodiment, after receiving the configuration information, the server determines a plurality of network nodes to be tested, so as to send a probe instruction to the plurality of network nodes. And for each network node, performing curl detection according to the detection instruction, thereby generating a detection result, and feeding back the detection result to the server. By the method, the network debugging task is initiated to a plurality of network nodes in batches by the server, so that the debugging efficiency is improved.
Further, in one embodiment of the present application, the network probing apparatus further includes: and the display module is used for displaying the detection result.
Further, in one embodiment of the present application, the network probing apparatus further includes: the comparison module is used for comparing the detection result with a preset text; and the alarm module is used for generating alarm information under the condition that the matching degree of the detection result and the preset text is smaller than or equal to the preset matching degree.
Further, in an embodiment of the present application, the sending module 806 is further configured to send a file downloading instruction to a storage system, where the storage system stores a downloaded file generated by performing a curl detection by a network node; the second receiving module is also used for receiving the downloaded file fed back by the storage system.
Further, in one embodiment of the present application, the network probing apparatus 800 further includes: the marking module is used for marking the detection instruction; the transmission instruction in the detection instruction is marked as an instruction head, and other instructions except the transmission instruction in the detection instruction are marked as instruction parameters.
Further, in an embodiment of the present application, the configuration information further includes an instruction execution time and/or an instruction execution frequency, and the sending module 806 is specifically configured to issue the probe instruction to the network node according to the instruction execution time and/or the instruction execution frequency.
Further, in one embodiment of the present application, the operating system of the network node comprises any one of the following: android system, macOS system, linux system.
The present application provides a network probing apparatus, which is applied to a network node, as shown in fig. 9, and the network probing apparatus 900 includes:
a receiving module 902, configured to receive a detection instruction sent by a server;
the detection module 904 is configured to perform a curl detection according to the detection instruction, and generate a detection result;
and the sending module 906 is configured to send the detection result to the server.
The detection instructions are sent to the plurality of network nodes by the server side respectively.
In this embodiment, the network node receives the detection instruction sent by the server, performs curl detection according to the detection instruction to obtain a detection result, and returns the detection result to the server.
Moreover, it should be noted that the server side can send the detection instruction to a plurality of different network nodes at the same time, so as to implement that the server side initiates network debugging tasks to the plurality of network nodes in batches, and improve the debugging efficiency.
Further, in an embodiment of the present application, the detection module 904 is specifically configured to compile a network protocol library of the network node into a network protocol library of an android system version when the operating system of the network node is the android system, and perform curl detection according to the detection instruction and the network protocol library of the android system version, so as to generate a detection result.
Further, in an embodiment of the present application, the detection module 904 is specifically configured to perform, when the operating system of the network node is a macOS system or a Linux system, a curl detection according to the detection instruction and an execution tool of the macOS system or the Linux system, and generate a detection result.
Further, in an embodiment of the present application, the sending module 906 is further configured to send the download file generated by performing the curl detection to the storage system for storage.
The network detection device in the embodiment of the application may be a device, or may be a component, an integrated circuit or a chip in a terminal. The device may be a mobile electronic device or a non-mobile electronic device. By way of example, the mobile electronic device may be a cell phone, tablet computer, notebook computer, palm computer, vehicle mounted electronic device, wearable device, ultra-mobile personal computer (Ultra-Mobile Personal Computer, UMPC), netbook or personal digital assistant (Personal Digital Assistant, PDA), etc., and the non-mobile electronic device may be a server, network attached storage (Network Attached Storage, NAS), personal computer (Personal Computer, PC), television (Television, TV), teller machine or self-service machine, etc., and the embodiments of the present application are not limited in particular.
The network probing device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an ios operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present application.
The network detection device provided in the embodiment of the present application can implement each process implemented in the embodiments of the network detection methods of fig. 1 and fig. 2, and in order to avoid repetition, a detailed description is omitted here.
Optionally, as shown in fig. 10, the embodiment of the present application further provides an electronic device 1000, where the electronic device 1000 is a server or a network node, and includes a processor 1002, a memory 1004, and a program or an instruction stored in the memory 1004 and capable of being executed on the processor 1002, where the program or the instruction is executed by the processor 1002 to implement each process of the above-mentioned network detection method embodiment, and the same technical effects can be achieved, and for avoiding repetition, a detailed description is omitted herein.
It should be noted that, the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 11 is a schematic hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 1100 includes, but is not limited to: radio frequency unit 1102, network module 1104, audio output unit 1106, input unit 1108, sensor 1110, display unit 1112, user input unit 1114, interface unit 1116, memory 1118, and processor 1120.
Those skilled in the art will appreciate that the electronic device 1100 may further include a power source (e.g., a battery) for powering the various components, which may be logically connected to the processor 1120 via a power management system so as to perform functions such as managing charging, discharging, and power consumption via the power management system. The electronic device structure shown in fig. 11 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than illustrated, or may combine some components, or may be arranged in different components, which are not described in detail herein.
In the case that the electronic device 1100 is a server, the user input unit 1114 is configured to receive configuration information of a network problem debugging task input by a user; a processor 1120, configured to determine a plurality of network nodes to be tested according to the configuration information; the radio frequency unit 1102 is configured to issue a detection instruction to a network node, where the detection instruction is configured to instruct the network node to perform a curl detection to obtain a detection result, and receive the detection result fed back by the network node.
Further, in an embodiment of the present application, the display unit 1112 is configured to display the detection result.
Further, in an embodiment of the present application, the processor 1120 is further configured to compare the detection result with a preset text, and generate the alarm information if the matching degree between the detection result and the preset text is less than or equal to the preset matching degree.
Further, in an embodiment of the present application, the radio frequency unit 1102 is further configured to send a file download instruction to a storage system, where the storage system stores a download file generated by performing a curl detection by a network node; the radio frequency unit 1102 is further configured to receive a download file fed back by the storage system.
Further, in one embodiment of the present application, the processor 1120 is further configured to perform instruction marking on the probe instruction; the transmission instruction in the detection instruction is marked as an instruction head, and other instructions except the transmission instruction in the detection instruction are marked as instruction parameters.
Further, in an embodiment of the present application, the configuration information includes an instruction execution time and/or an instruction execution frequency, and the radio frequency unit 1102 is specifically configured to issue the probe instruction to the network node according to the instruction execution time and/or the instruction execution frequency.
Further, in one embodiment of the present application, the operating system of the network node comprises any one of the following: android system, macOS system, linux system.
In the case that the electronic device 1100 is a network node, the radio frequency unit 1102 is configured to receive a detection instruction sent by a server; the processor 1120 is configured to perform a curl detection according to the detection instruction, and generate a detection result; the radio frequency unit 1102 is further configured to send a detection result to a server, where the detection instruction is sent by the server to a plurality of network nodes respectively.
Further, in an embodiment of the present application, the processor 1120 is specifically configured to compile a network protocol library of the network node into a network protocol library of an android system version when the operating system of the network node is the android system, and perform curl detection according to the detection instruction and the network protocol library of the android system version, to generate a detection result.
Further, in an embodiment of the present application, the processor 1120 is specifically configured to perform, when the operating system of the network node is a macOS system or a Linux system, a curl detection according to the detection instruction and an execution tool of the macOS system or the Linux system, and generate a detection result.
Further, in an embodiment of the present application, the radio frequency unit 1102 is further configured to send the download file generated by performing the curl detection to the storage system for storage.
It should be understood that, in the embodiment of the present application, the radio frequency unit 1102 may be configured to receive and send information or signals during a call, and specifically, receive downlink data of a base station or send uplink data to the base station. The radio frequency unit 1102 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like.
Network module 1104 provides wireless broadband internet access to users, such as helping users send and receive e-mail, browse web pages, and access streaming media.
The audio output unit 1106 may convert audio data received by the radio frequency unit 1102 or the network module 1104 or stored in the memory 1118 into an audio signal and output as sound. Also, the audio output unit 1106 may also provide audio output (e.g., call signal reception sound, message reception sound, etc.) related to a particular function performed by the electronic device 1100. The audio output unit 1106 includes a speaker, a buzzer, a receiver, and the like.
The input unit 1108 is used for receiving an audio or video signal. The input unit 1108 may include a graphics processor (Graphics Processing Unit, GPU) 11082 and a microphone 11084, the graphics processor 11082 processing image data of still pictures or video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 1112, or stored in the memory 1118 (or other storage medium), or transmitted via the radio frequency unit 1102 or the network module 1104. The microphone 11084 may receive sound and may be capable of processing the sound into audio data, which may be converted into a format output that may be transmitted to the mobile communication base station via the radio frequency unit 1102 in the case of a phone call mode.
The electronic device 1100 also includes at least one sensor 1110, such as a fingerprint sensor, pressure sensor, iris sensor, molecular sensor, gyroscope, barometer, hygrometer, thermometer, infrared sensor, light sensor, motion sensor, and other sensors.
The display unit 1112 is used to display information input by a user or information provided to the user. The display unit 1112 may include a display panel 11122, and the display panel 11122 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like.
The user input unit 1114 may be used to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the electronic device. In particular, the user input unit 1114 includes a touch panel 11142 and other input devices 11144. The touch panel 11142, also referred to as a touch screen, may collect touch operations on or near the user. Touch panel 11142 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch azimuth of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 1120, and receives and executes commands sent by the processor 1120. Other input devices 11144 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and so forth, which are not described in detail herein.
Further, the touch panel 11142 may be overlaid on the display panel 11122, and when the touch panel 11142 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 1120 to determine the type of touch event, and then the processor 1120 provides a corresponding visual output on the display panel 11122 according to the type of touch event. The touch panel 11142 and the display panel 11122 may be two separate components or may be integrated into one component.
The interface unit 1116 is an interface to which an external device is connected to the electronic apparatus 1100. For example, the external devices may include a wired or wireless headset port, an external power (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 1116 may be used to receive input (e.g., data information, power, etc.) from an external device and to transmit the received input to one or more elements within the electronic apparatus 1100 or may be used to transmit data between the electronic apparatus 1100 and an external device.
Memory 1118 may be used to store software programs and various data. The memory 1118 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, application programs required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, phonebooks, etc.) created according to the use of the mobile terminal, etc. In addition, memory 1118 may include high-speed random access memory and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
The processor 1120 performs various functions of the electronic device 1100 and processes data by executing or executing software programs and/or modules stored in the memory 1118, and invoking data stored in the memory 1118, thereby performing overall monitoring of the electronic device 1100. Processor 1120 may include one or more processing units; preferably, the processor 1120 may integrate an application processor and a modem processor, wherein the application processor primarily handles operating systems, user interfaces, applications, etc., and the modem processor primarily handles wireless communications.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored, where the program or the instruction realizes each process of the above network detection method embodiment when executed by a processor, and the same technical effects can be achieved, so that repetition is avoided, and no further description is given here.
The processor is a processor in the electronic device in the above embodiment. Readable storage media include computer readable storage media such as Read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), magnetic or optical disks, and the like.
The embodiment of the application further provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled with the processor, the processor is used for running a program or instructions, each process of the network detection method embodiment is implemented, the same technical effect can be achieved, and in order to avoid repetition, the description is omitted here.
It should be understood that the chips referred to in the embodiments of the present application may also be referred to as system-on-chip chips, chip systems, or system-on-chip chips, etc.
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, 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, 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, or apparatus that comprises the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in an opposite order depending on the functions involved, e.g., the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
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 solutions of the present application may be embodied essentially or in a part contributing to the prior art in the form of a computer software product stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk), comprising several instructions for causing a terminal (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the methods described in the embodiments of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those of ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are also within the protection of the present application.

Claims (16)

1. The network detection method is characterized by being applied to a server, and comprises the following steps:
receiving configuration information of a network problem debugging task input by a user;
determining a plurality of network nodes to be tested according to the configuration information, and issuing a detection instruction to the network nodes, wherein the detection instruction is used for indicating the network nodes to perform curl detection so as to obtain detection results;
and receiving the detection result fed back by the network node.
2. The network probing method of claim 1, further comprising, after the step of receiving the probing result fed back by the network node:
and displaying the detection result.
3. The network probing method of claim 1, further comprising, after the step of receiving the probing result fed back by the network node:
comparing the detection result with a preset text;
and generating alarm information under the condition that the matching degree of the detection result and the preset text is smaller than or equal to the preset matching degree.
4. The network probing method of claim 1, further comprising, after the step of issuing a probing instruction to the network node:
Transmitting a file downloading instruction to a storage system, wherein the storage system stores a downloading file generated by performing curl detection on the network node;
and receiving the downloaded file fed back by the storage system.
5. The network probing method according to any one of claims 1 to 4, further comprising, prior to the step of issuing a probing instruction to the network node:
carrying out instruction marking on the detection instruction;
the transmission instructions in the detection instructions are marked as instruction heads, and other instructions except the transmission instructions in the detection instructions are marked as instruction parameters.
6. The network probing method according to any one of claims 1 to 4, wherein the configuration information comprises an instruction execution time and/or an instruction execution frequency, and the step of issuing a probing instruction to the network node comprises:
and issuing the detection instruction to the network node according to the instruction execution time and/or the instruction execution frequency.
7. The network probing method as recited in any one of claims 1 to 4, wherein,
the operating system of the network node comprises any one of the following: android system, macOS system, linux system.
8. A network probing method, applied to a network node, the network probing method comprising:
receiving a detection instruction sent by a server;
performing curl detection according to the detection instruction to generate a detection result;
sending the detection result to the server;
and the detection instruction is sent to the plurality of network nodes by the server side respectively.
9. The network probing method according to claim 8, wherein the step of performing a curl probing according to the probing instruction, and generating a probing result includes:
under the condition that the operating system of the network node is an android system, compiling a network protocol library of the network node into a network protocol library of an android system version;
and performing curl detection according to the detection instruction and the network protocol library of the android system version, and generating the detection result.
10. The network probing method according to claim 8, wherein the step of performing a curl probing according to the probing instruction, and generating a probing result includes:
and under the condition that the operating system of the network node is a macOS system or a Linux system, performing curl detection according to the detection instruction and an execution tool of the macOS system or the Linux system, and generating the detection result.
11. The network probing method according to any one of claims 8 to 10, further comprising, after the step of generating a probing result by performing a curl probing according to the probing instruction:
and sending the download file produced by the curl detection to a storage system for storage.
12. A network probing apparatus, applied to a server, the network probing apparatus comprising:
the first receiving module is used for receiving configuration information of a network problem debugging task input by a user;
a determining module, configured to determine a plurality of network nodes to be tested according to the configuration information;
a sending module, configured to issue a detection instruction to the network node, where the detection instruction is configured to instruct the network node to perform a curl detection to obtain a detection result;
and the second receiving module is used for receiving the detection result fed back by the network node.
13. A network probing apparatus for use with a network node, the network probing apparatus comprising:
the receiving module is used for receiving the detection instruction sent by the server;
the detection module is used for performing Curl detection according to the detection instruction and generating a detection result;
The sending module is used for sending the detection result to the server;
and the detection instruction is sent to the plurality of network nodes by the server side respectively.
14. An electronic device comprising a processor, a memory and a program or instruction stored on the memory and executable on the processor, which when executed by the processor, implements the steps of the network probing method of any one of claims 1 to 7.
15. An electronic device comprising a processor, a memory and a program or instruction stored on the memory and executable on the processor, which when executed by the processor, implements the steps of the network probing method of any one of claims 8 to 11.
16. A readable storage medium having stored thereon a program or instructions, which when executed by a processor, implement the steps of the network probing method of any one of claims 1 to 7 or the network probing method of any one of claims 8 to 11.
CN202111223268.8A 2021-10-20 2021-10-20 Network detection method, network detection device, electronic device, and readable storage medium Pending CN116016152A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111223268.8A CN116016152A (en) 2021-10-20 2021-10-20 Network detection method, network detection device, electronic device, and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111223268.8A CN116016152A (en) 2021-10-20 2021-10-20 Network detection method, network detection device, electronic device, and readable storage medium

Publications (1)

Publication Number Publication Date
CN116016152A true CN116016152A (en) 2023-04-25

Family

ID=86027138

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111223268.8A Pending CN116016152A (en) 2021-10-20 2021-10-20 Network detection method, network detection device, electronic device, and readable storage medium

Country Status (1)

Country Link
CN (1) CN116016152A (en)

Similar Documents

Publication Publication Date Title
CN104426919B (en) Page sharing method, apparatus and system
CN110417543B (en) Data encryption method, device and storage medium
CN108089977B (en) Application program exception handling method and device and mobile terminal
WO2018076945A1 (en) Thread data processing method, device and terminal
CN109947650B (en) Script step processing method, device and system
CN111142930B (en) Installation package file packaging method and device, terminal device and storage medium
CN106412311B (en) A kind of data transmission method and terminal device
CN109905380B (en) Node control method and related device in distributed system
CN106649126B (en) Method and device for testing application program
CN104572690A (en) Webpage data acquisition method, webpage data acquisition device and webpage data acquisition system
WO2017161994A1 (en) Method and device for displaying page, and computer storage medium
CN107451046B (en) Method and terminal for detecting threads
CN113489630A (en) Network distribution method, device, storage medium and electronic terminal
CN108009031B (en) Application program control method and mobile terminal
CN107066374B (en) Data processing method and mobile terminal
CN110413497B (en) Abnormality monitoring method, abnormality monitoring device, terminal device and computer-readable storage medium
CN106020945B (en) Shortcut item adding method and device
CN104133693B (en) Installment state detection method, device and terminal
CN111273955A (en) Thermal restoration plug-in optimization method and device, storage medium and electronic equipment
CN110198324B (en) Data monitoring method and device, browser and terminal
CN111177612B (en) Page login authentication method and related device
CN111966373A (en) APN resetting method, terminal equipment and storage medium
CN111562910A (en) Packaging method and related equipment
CN116468382A (en) RPA robot flow management method, device, equipment and storage medium
CN116016152A (en) Network detection method, network detection device, electronic device, and readable storage medium

Legal Events

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