CN116846784A - Network diagnosis method, device, electronic equipment and storage medium - Google Patents

Network diagnosis method, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN116846784A
CN116846784A CN202310909536.4A CN202310909536A CN116846784A CN 116846784 A CN116846784 A CN 116846784A CN 202310909536 A CN202310909536 A CN 202310909536A CN 116846784 A CN116846784 A CN 116846784A
Authority
CN
China
Prior art keywords
network
client
information
acquiring
determining
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
CN202310909536.4A
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.)
Shenzhen Fulin Technology Co Ltd
Original Assignee
Shenzhen Fulin 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 Shenzhen Fulin Technology Co Ltd filed Critical Shenzhen Fulin Technology Co Ltd
Priority to CN202310909536.4A priority Critical patent/CN116846784A/en
Publication of CN116846784A publication Critical patent/CN116846784A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/06Generation of reports
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/091Measuring contribution of individual network components to actual service level
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements

Abstract

The application provides a network diagnosis method, a network diagnosis device, electronic equipment and a storage medium, and belongs to the technical field of information security. The method comprises the following steps: acquiring response time of a client to a target request domain name, and determining network quality of the client according to the response time; acquiring resource information of the client, wherein the resource information comprises key network indexes and basic network information; acquiring attribute information of the client based on an attribute query interface; acquiring equipment related information of equipment where the client is located based on a screen query interface; and determining a network diagnosis result of the client according to the network quality, the resource information, the attribute information and the equipment related information, and outputting a network diagnosis report. The application can automatically diagnose the network quality of the client under the premise of ensuring the safety, provides powerful support for the investigation problem and reduces the labor cost.

Description

Network diagnosis method, device, electronic equipment and storage medium
Technical Field
The present application relates to the field of information security technologies, and in particular, to a network diagnosis method, a device, an electronic apparatus, and a storage medium.
Background
In dealing with problems of slow use or abnormal function of user feedback systems, it is often necessary to know the network conditions of the user, such as network stability, whether the browser functions are closed (e.g. text files, local storage), etc. In the prior art, network diagnostics for users are often time consuming, often requiring the following two approaches: firstly, remote intervention development, which relies on experience to collect information; secondly, the customer is required to provide information or manual feedback, and then the problem is checked according to the feedback. These methods all have the problems of relying on manual operation and low efficiency.
Disclosure of Invention
In order to solve the technical problems, the embodiment of the application provides a network diagnosis method, a device, electronic equipment and a storage medium.
In a first aspect, an embodiment of the present application provides a network diagnosis method, including:
acquiring response time of a client to a target request domain name, and determining network quality of the client according to the response time;
acquiring resource information of the client, wherein the resource information comprises key network indexes and basic network information;
acquiring attribute information of the client based on an attribute query interface;
acquiring equipment related information of equipment where the client is located based on a screen query interface;
and determining a network diagnosis result of the client according to the network quality, the resource information, the attribute information and the equipment related information, and outputting a network diagnosis report.
In an embodiment, the obtaining the response time of the client to the target request domain name, and determining the network quality of the client according to the response time includes:
transmitting resource request information to the target request domain name, wherein the number of the target request domain name is at least one;
and determining the network quality of the client according to the response time of the target request domain name and the average value thereof.
In an embodiment, the determining the network quality of the client according to the response time of the target request domain name and the average value thereof includes:
determining the response time and the average value thereof as network quality indexes;
if the network quality index belongs to a first quality interval, determining that the network of the client normally operates;
if the network quality index belongs to the second quality interval, determining that the network of the client has fluctuation;
and if the network quality index belongs to a third quality interval, determining that the network of the client is abnormal.
In an embodiment, the obtaining the resource information of the client includes:
acquiring key network indexes of the online diagnostic tool accessed by the browser of the client based on a page navigation performance timing interface;
the key network index at least comprises a URL protocol, a communication protocol and a first byte time.
In an embodiment, the obtaining the resource information of the client further includes:
judging whether the client is online or not by monitoring the ofline and the online event of the browser;
and acquiring the connection type of the current network of the client through a network information acquisition interface.
In an embodiment, the obtaining, based on the attribute query interface, attribute information of the client includes:
acquiring the attribute information through a browser information acquisition interface, wherein the attribute information comprises a request route, browser information and basic system information;
verifying whether browser functionality is available based on whether text files and local storage, session storage are available for reading and writing;
and judging whether the connection is available or not by judging the instance and initiating the establishment of the connection through the index xDB database.
In an embodiment, the acquiring, based on the screen query interface, the device related information of the device where the client is located includes:
the device-related information includes screen-related information;
and acquiring the screen related information through a screen information acquisition interface, wherein the screen related information at least comprises a screen direction and resolution.
In a second aspect, an embodiment of the present application provides a network diagnosis apparatus, including:
the first acquisition module is used for acquiring response time of the client to the target request domain name and determining network quality of the client according to the response time;
the second acquisition module is used for acquiring the resource information of the client, wherein the resource information comprises key network indexes and basic network information;
the third acquisition module is used for acquiring the attribute information of the client based on an attribute query interface;
a fourth obtaining module, configured to obtain device related information of a device where the client is located based on a screen query interface;
and the output module is used for determining the network diagnosis result of the client according to the network quality, the resource information, the attribute information and the equipment related information and outputting a network diagnosis report.
In a third aspect, an embodiment of the present application provides an electronic device, including a memory and a processor, where the memory is configured to store a computer program, and the computer program performs the network diagnosis method provided in the first aspect when the processor runs.
In a fourth aspect, an embodiment of the present application provides a computer readable storage medium storing a computer program which, when run on a processor, performs the network diagnostic method provided in the first aspect.
The application has the following beneficial effects:
the network diagnosis method provided by the application is suitable for most modern browsers; the security is high, only need read required data through a plurality of compliant interfaces, and can not cause the change to the customer end, just can not cause the influence yet. High automation is realized, and labor cost such as communication cost, inquiry question and the like is reduced.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic flow chart of a network diagnosis method according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a network diagnosis method according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a network diagnosis method according to an embodiment of the present application;
FIG. 4 is a schematic diagram of a network diagnosis method according to an embodiment of the present application;
FIG. 5 is a schematic diagram of a network diagnosis method according to an embodiment of the present application;
FIG. 6 is a schematic diagram of a network diagnosis method according to an embodiment of the present application;
FIG. 7 is a schematic diagram of a network diagnosis method according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a network diagnosis device according to an embodiment of the present application;
fig. 9 shows a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of 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, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments of the present application. The components of the embodiments of the present application generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the application, as presented in the figures, is not intended to limit the scope of the application, as claimed, but is merely representative of selected embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
It should be noted that: like reference numerals and letters denote like items in the following figures, and thus once an item is defined in one figure, no further definition or explanation thereof is necessary in the following figures.
In the description of the present application, it should be noted that, if the terms "upper", "lower", "inner", "outer", and the like indicate an azimuth or a positional relationship based on the azimuth or the positional relationship shown in the drawings, or the azimuth or the positional relationship in which the inventive product is conventionally put in use, it is merely for convenience of describing the present application and simplifying the description, and it is not indicated or implied that the apparatus or element referred to must have a specific azimuth, be configured and operated in a specific azimuth, and thus it should not be construed as limiting the present application.
Furthermore, the terms "first," "second," and the like, if any, are used merely for distinguishing between descriptions and not for indicating or implying a relative importance.
It should be noted that the features of the embodiments of the present application may be combined with each other without conflict.
Example 1
In dealing with problems of slow use or abnormal function of the customer feedback system, it is often necessary to know the network condition of the user, such as network stability, whether the browser function is closed, etc. In the past, this process has been generally time consuming and often required to gather information in the form of remote interventional developments. However, because of security sensitivity, users do not want to be remotely accessed, require users to provide information or manual feedback, and technicians perform troubleshooting based on the feedback in an efficient and human-resource-dependent manner.
Based on the above, the embodiment of the disclosure provides a network diagnosis method, which can realize testing of domain name response speed and some resource information with larger influence on network conditions based on a modern browser, and is used for diagnosing information on a client side.
Specifically, referring to fig. 1, the network diagnosis method includes:
step S110, response time of a client to a target request domain name is obtained, and network quality of the client is determined according to the response time;
in an embodiment, the obtaining the response time of the client to the target request domain name, and determining the network quality of the client according to the response time includes: transmitting resource request information to the target request domain name, wherein the number of the target request domain name is at least one; and determining the network quality of the client according to the response time of the target request domain name and the average value thereof.
A target request domain name may be preset and input, and a response time of the domain name may be obtained. The implementation method may obtain the resource request information based on the performance. Specifically, a script tag with a domain name and a slash tail may be created for loading. This approach can bypass the Content Security Policy (CSP) of most browsers to directly obtain the corresponding resource information. Referring to fig. 2, fig. 2 shows the corresponding response time duration and request status when there is only one target request domain name.
The response time may be obtained by performanceTiming (JavaScript API). The data acquired by performanceTiming is verified to be consistent with the network panel data of the browser development console, so the data is accurate and reasonable.
API PerformanceTiming is one of the interfaces of the browser performance API, which provides performance data about the page loading process. The PerformanceTiming interface provides a series of attributes for recording individual key events and points in time for page loading. For example: connectStart: a point in time at which a connection to a server is established is started. connectitend: the point in time of completing the connection with the server. secureConnectionStart: a point in time when the secure connection is initially established. requestStart: a point in time when the request starts to be sent. responsesatart: a point in time at which the server response starts to be received. responseEnd: the point in time at which the server response is received is completed.
Through these properties of the PerformanceTiming interface, a developer can learn and analyze performance metrics such as DNS query time, server response time, DOM resolution time, page load time, etc.
When there are multiple target request domain names, for example, a group of target request domain names to be tested is preset, and the target request domain names are tested simultaneously (usually 3-5) when loaded, because the deployment servers of different domain names are not located at the same place, the data of multiple comprehensive testing of different main stream domain names is more beneficial to evaluating the network condition of the client. Referring to fig. 3, fig. 3 illustrates a plurality of target request domain names, corresponding response durations and request states.
In an embodiment, the determining the network quality of the client according to the response time of the target request domain name and the average value thereof includes: determining the response time and the average value thereof as network quality indexes; if the network quality index belongs to a first quality interval, determining that the network of the client normally operates; if the network quality index belongs to the second quality interval, determining that the network of the client has fluctuation; and if the network quality index belongs to a third quality interval, determining that the network of the client is abnormal.
The acquisition response time can be based on a conventional network ping range, generally perceiving the network quality of the client. Illustratively, three network quality intervals are divided:
the network quality of the first quality interval is excellent or good, for example, when the average time of downloading the resource request is longer than 20ms and smaller than 500ms, the network is excellent, i.e. the network speed is faster; more than 500ms and less than 1500ms, which represents good network speed; when more than 1500ms represents network poor, such as network fluctuation or weak network; less than 20ms represents network anomalies or instability.
Step S120, obtaining resource information of the client, wherein the resource information comprises key network indexes and basic network information;
in an embodiment, the obtaining the resource information of the client includes: acquiring key network indexes of the online diagnostic tool accessed by the browser of the client based on a page navigation performance timing interface; the key network index at least comprises a URL protocol, a communication protocol and a first byte time.
The page navigation performance timing interface (API PerformanceNavigationTiming) is an interface to a browser performance API that can provide detailed information about the page navigation process. It is a sub-interface of the PerformanceTiming interface. The performancenavigation timing interface may help a developer obtain performance data regarding web navigation. A series of attributes and methods are provided for measuring and recording time information required for various stages of page navigation.
The page navigation performance timing interface is utilized to obtain some information, such as the request protocol used, TTFB (time to first byte), etc., that the client browser accesses the current online diagnostic tool. E.g. if the protocol has encryption (https), http2. These metrics may be user experienced and therefore need to be considered in network diagnostics and are key network metrics for the comparison core. Referring to fig. 4, fig. 4 shows a portion of key network metrics.
In an embodiment, the obtaining the resource information of the client further includes:
judging whether the client is online or not by monitoring the ofline and the online event of the browser; and acquiring the connection type of the current network of the client through a network information acquisition interface.
The above information may be used as network basic information, and reference may be made to fig. 5. Fig. 5 shows some overview of the network basic information.
Step S130, acquiring attribute information of the client based on an attribute query interface;
in an embodiment, the obtaining, based on the attribute query interface, attribute information of the client includes: acquiring the attribute information through a browser information acquisition interface, wherein the attribute information comprises a request route, browser information and basic system information; verifying whether browser functionality is available based on whether text files and local storage, session storage are available for reading and writing; and judging whether the connection is available or not by judging the instance and initiating the establishment of the connection through the index xDB database.
The browser information acquisition interface (window. Navigator API) is an interface provided by JavaScript for accessing browser and user environment information. It provides a series of attributes and methods for obtaining information about browser type, version, operating system, device, etc.
Through a browser information acquisition interface (window. Navigator API), the following information can be acquired: browser information: such as browser name, version number, whether cookies are supported, etc.; user agent string: the browser comprises detailed information about the browser, and can be used for judging the type and version of the browser; language and locale settings: the preferred language and the region setting of the user can be obtained; screen information: screen resolution, pixel ratio, etc. can be obtained; device information: the type of device used by the user, the device resolution, etc. may be obtained.
Referring to fig. 6, fig. 6 is a schematic diagram of an embodiment of acquiring a request route, a user browser, and a part of system information through a browser information acquisition interface.
Whether the function is available is verified by a specific judgment based on whether a text file (cookie) and a local storage (localStorage), a session storage (sessionStorage) can be read and written, because cookie, localStorage and sessionStorage are both ways of storing data at a client, and a cookie is a storage way that will be sent to a server. It is reasonable to verify the availability of cookie functions by attempting to read and write to these storage means.
Text files (cookies) are data stored on the user's local terminal, which is text data stored by the website in the user's local terminal for purposes of identifying the user and tracking sessions; local storage (localStorage) is used for persistent local storage, and data will not expire unless the user actively deletes the data; session storage (session storage) is used to store data locally in one session (session), which is cleared at the end of the page session, i.e.: the sessionStorage on a page is not lost or emptied when the page is refreshed or restored, and is destroyed only after the session is ended. All three are saved at the browser side and are homologous.
The index db is used to determine instances and attempt to establish a connection to determine if it is available. Judging the availability of a connection by using an index db can be understood as attempting to create a database in the index db and establish the connection. If the connection is successful, it indicates that the index xDB function is available, and if the connection fails, it indicates that the index xDB is not available.
Step S140, acquiring equipment related information of equipment where the client is located based on a screen query interface;
in an embodiment, the acquiring, based on the screen query interface, the device related information of the device where the client is located includes: the device-related information includes screen-related information; and acquiring the screen related information through a screen information acquisition interface, wherein the screen related information at least comprises a screen direction and resolution.
Referring to fig. 7, screen related information, such as screen direction, resolution, etc., is acquired by using a screen information acquisition interface (API window). The judgment of whether the browser is in the privacy mode is realized by checking the read-write authority of the unique API of the browser.
And step S150, determining a network diagnosis result of the client according to the network quality, the resource information, the attribute information and the equipment related information, and outputting a network diagnosis report.
The export function can convert the entire web page layout into a picture to facilitate generating reports and uploading feedback. In practical applications, it is helpful to reduce the cost of communication between the technical party and the user, and the cost of technical personnel to troubleshoot the problem. Therefore, when the network problems of the user are required to be examined, the scene of the client can be quickly restored by only integrating the system version deployed by the user without remote access.
The network diagnosis method provided by the embodiment is suitable for most modern browsers; the security is high, only need read required data through a plurality of compliant interfaces, and can not cause the change to the customer end, just can not cause the influence yet. High automation is realized, and labor cost such as communication cost, inquiry question and the like is reduced.
Example 2
In addition, the embodiment of the disclosure provides a network diagnosis device which is applied to electronic equipment.
Specifically, as shown in fig. 8, the network diagnosis device 800 includes:
a first obtaining module 810, configured to obtain a response time of a client to a target request domain name, and determine a network quality of the client according to the response time;
a second obtaining module 820, configured to obtain resource information of the client, where the resource information includes a key network indicator and basic network information;
a third obtaining module 830, configured to obtain attribute information of the client based on an attribute query interface;
a fourth obtaining module 840, configured to obtain device related information of a device where the client is located based on a screen query interface;
and an output module 850, configured to determine a network diagnosis result of the client according to the network quality, the resource information, the attribute information, and the device-related information, and output a network diagnosis report.
In an embodiment, the first obtaining module 810 is further configured to:
transmitting resource request information to the target request domain name, wherein the number of the target request domain name is at least one;
and determining the network quality of the client according to the response time of the target request domain name and the average value thereof.
In an embodiment, the first obtaining module 810 is further configured to:
determining the response time and the average value thereof as network quality indexes;
if the network quality index belongs to a first quality interval, determining that the network of the client normally operates;
if the network quality index belongs to the second quality interval, determining that the network of the client has fluctuation;
and if the network quality index belongs to a third quality interval, determining that the network of the client is abnormal.
In an embodiment, the second obtaining module 820 is further configured to:
acquiring key network indexes of the online diagnostic tool accessed by the browser of the client based on a page navigation performance timing interface;
the key network index at least comprises a URL protocol, a communication protocol and a first byte time.
In an embodiment, the second obtaining module 820 is further configured to:
judging whether the client is online or not by monitoring the ofline and the online event of the browser;
and acquiring the connection type of the current network of the client through a network information acquisition interface.
In an embodiment, the third obtaining module 830 is further configured to obtain the attribute information through a browser information obtaining interface, where the attribute information includes a request route, browser information, and basic system information; verifying whether browser functionality is available based on whether text files and local storage, session storage are available for reading and writing; and judging whether the connection is available or not by judging the instance and initiating the establishment of the connection through the index xDB database.
In an embodiment, the fourth obtaining module 840 is further configured to obtain the screen related information through a screen information obtaining interface, where the screen related information includes at least a screen direction and a resolution.
The network diagnosis device 800 provided in this embodiment can implement the network diagnosis method provided in embodiment 1, and in order to avoid repetition, the description is omitted here.
The network diagnosis device provided by the embodiment is suitable for most modern browsers; the security is high, only need read required data through a plurality of compliant interfaces, and can not cause the change to the customer end, just can not cause the influence yet. High automation is realized, and labor cost such as communication cost, inquiry question and the like is reduced.
Example 3
Furthermore, an embodiment of the present disclosure provides an electronic device including a memory and a processor, the memory storing a computer program that, when run on the processor, performs the network diagnostic method provided in embodiment 1.
Specifically, referring to fig. 9, the electronic device includes: a transceiver 901, a bus interface, and a processor 902, the processor 902 configured to:
acquiring response time of a client to a target request domain name, and determining network quality of the client according to the response time;
acquiring resource information of the client, wherein the resource information comprises key network indexes and basic network information;
acquiring attribute information of the client based on an attribute query interface;
acquiring equipment related information of equipment where the client is located based on a screen query interface;
and determining a network diagnosis result of the client according to the network quality, the resource information, the attribute information and the equipment related information, and outputting a network diagnosis report.
In one embodiment, the processor 902 is further configured to:
transmitting resource request information to the target request domain name, wherein the number of the target request domain name is at least one;
and determining the network quality of the client according to the response time of the target request domain name and the average value thereof.
The processor 902 is further configured to:
determining the response time and the average value thereof as network quality indexes;
if the network quality index belongs to a first quality interval, determining that the network of the client normally operates;
if the network quality index belongs to the second quality interval, determining that the network of the client has fluctuation;
and if the network quality index belongs to a third quality interval, determining that the network of the client is abnormal.
The processor 902 is further configured to:
acquiring key network indexes of the online diagnostic tool accessed by the browser of the client based on a page navigation performance timing interface;
the key network index at least comprises a URL protocol, a communication protocol and a first byte time.
The processor 902 is further configured to:
judging whether the client is online or not by monitoring the ofline and the online event of the browser;
and acquiring the connection type of the current network of the client through a network information acquisition interface.
The processor 902 is further configured to:
acquiring the attribute information through a browser information acquisition interface, wherein the attribute information comprises a request route, browser information and basic system information;
verifying whether browser functionality is available based on whether text files and local storage, session storage are available for reading and writing;
and judging whether the connection is available or not by judging the instance and initiating the establishment of the connection through the index xDB database.
The processor 902 is further configured to:
the device-related information includes screen-related information;
and acquiring the screen related information through a screen information acquisition interface, wherein the screen related information at least comprises a screen direction and resolution.
In an embodiment of the present application, the electronic device 900 further includes: and a memory 903. In fig. 9, a bus architecture may comprise any number of interconnected buses and bridges, with various circuits of the one or more processors, represented in particular by processor 902, and the memory, represented by memory 903, being linked together. The bus architecture may also link together various other circuits such as peripheral devices, voltage regulators, power management circuits, etc., which are well known in the art and, therefore, will not be described further herein. The bus interface provides an interface. The transceiver 901 may be a number of elements, i.e., including a transmitter and a receiver, providing a means for communicating with various other apparatus over a transmission medium. The processor 902 is responsible for managing the bus architecture and general processing, and the memory 903 may store data used by the processor 902 in performing operations.
The electronic device 900 provided in the embodiment of the present application may implement the network diagnosis method provided in embodiment 1, and in order to avoid repetition, a description thereof will be omitted.
The electronic equipment provided by the embodiment is suitable for most modern browsers; the security is high, only need read required data through a plurality of compliant interfaces, and can not cause the change to the customer end, just can not cause the influence yet. High automation is realized, and labor cost such as communication cost, inquiry question and the like is reduced.
Example 4
The present application also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the network diagnosis method provided in embodiment 1.
In this embodiment, the computer readable storage medium may be a volatile storage medium or a nonvolatile storage medium, for example, read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), magnetic disk, or optical disk.
The computer readable storage medium provided in this embodiment can implement the network diagnosis method provided in embodiment 1, and in order to avoid repetition, a detailed description is omitted here.
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 terminal 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 terminal. 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 terminal comprising the element.
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 (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to 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 having ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are to be protected by the present application.

Claims (10)

1. A method of network diagnostics, the method comprising:
acquiring response time of a client to a target request domain name, and determining network quality of the client according to the response time;
acquiring resource information of the client, wherein the resource information comprises key network indexes and basic network information;
acquiring attribute information of the client based on an attribute query interface;
acquiring equipment related information of equipment where the client is located based on a screen query interface;
and determining a network diagnosis result of the client according to the network quality, the resource information, the attribute information and the equipment related information, and outputting a network diagnosis report.
2. The network diagnostic method of claim 1, wherein the obtaining the response time of the client to the target request domain name, and determining the network quality of the client according to the response time comprises:
transmitting resource request information to the target request domain name, wherein the number of the target request domain name is at least one;
and determining the network quality of the client according to the response time of the target request domain name and the average value thereof.
3. The network diagnosis method according to claim 2, wherein the determining the network quality of the client according to the response time of the target request domain name and the average value thereof comprises:
determining the response time and the average value thereof as network quality indexes;
if the network quality index belongs to a first quality interval, determining that the network of the client normally operates;
if the network quality index belongs to the second quality interval, determining that the network of the client has fluctuation;
and if the network quality index belongs to a third quality interval, determining that the network of the client is abnormal.
4. The network diagnosis method according to claim 1, wherein the obtaining the resource information of the client includes:
acquiring key network indexes of the online diagnostic tool accessed by the browser of the client based on a page navigation performance timing interface;
the key network index at least comprises a URL protocol, a communication protocol and a first byte time.
5. The network diagnostic method of claim 4, wherein the obtaining the resource information of the client further comprises:
judging whether the client is online or not by monitoring the ofline and the online event of the browser;
and acquiring the connection type of the current network of the client through a network information acquisition interface.
6. The network diagnosis method according to claim 1, wherein the acquiring attribute information of the client based on the attribute query interface includes:
acquiring the attribute information through a browser information acquisition interface, wherein the attribute information comprises a request route, browser information and basic system information;
verifying whether browser functionality is available based on whether text files and local storage, session storage are available for reading and writing;
and judging whether the connection is available or not by judging the instance and initiating the establishment of the connection through the index xDB database.
7. The network diagnosis method according to claim 1, wherein the obtaining, based on the screen query interface, the device-related information of the device in which the client is located includes:
the device-related information includes screen-related information;
and acquiring the screen related information through a screen information acquisition interface, wherein the screen related information at least comprises a screen direction and resolution.
8. A network diagnostic device, the device comprising:
the first acquisition module is used for acquiring response time of the client to the target request domain name and determining network quality of the client according to the response time;
the second acquisition module is used for acquiring the resource information of the client, wherein the resource information comprises key network indexes and basic network information;
the third acquisition module is used for acquiring the attribute information of the client based on an attribute query interface;
a fourth obtaining module, configured to obtain device related information of a device where the client is located based on a screen query interface;
and the output module is used for determining the network diagnosis result of the client according to the network quality, the resource information, the attribute information and the equipment related information and outputting a network diagnosis report.
9. An electronic device comprising a memory and a processor, the memory storing a computer program that, when executed by the processor, performs the network diagnostic method of any one of claims 1 to 7.
10. A computer readable storage medium, characterized in that it stores a computer program which, when run on a processor, performs the network diagnostic method of any one of claims 1 to 7.
CN202310909536.4A 2023-07-21 2023-07-21 Network diagnosis method, device, electronic equipment and storage medium Pending CN116846784A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310909536.4A CN116846784A (en) 2023-07-21 2023-07-21 Network diagnosis method, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310909536.4A CN116846784A (en) 2023-07-21 2023-07-21 Network diagnosis method, device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116846784A true CN116846784A (en) 2023-10-03

Family

ID=88165120

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310909536.4A Pending CN116846784A (en) 2023-07-21 2023-07-21 Network diagnosis method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116846784A (en)

Similar Documents

Publication Publication Date Title
US6052728A (en) Method of collectively managing dispersive log, network system and relay computer for use in the same
JP5522542B2 (en) Mobile terminal execution function management system, method, and program
US20020052937A1 (en) Method and apparatus for verifying the contents of a global configuration file
US7203625B2 (en) Multisided sharing of dynamic data in a wireless test environment
US20080270837A1 (en) System diagnostic utility
CN104834588B (en) The method and apparatus for detecting resident formula cross site scripting loophole
CN112311620A (en) Method, apparatus, electronic device and readable medium for diagnosing network
US7313728B2 (en) Method and system for logging and accessing diagnostic result messages
CN104573520A (en) Method and device for detecting permanent type cross site scripting vulnerability
CN104579830A (en) Service monitoring method and device
CN110099129A (en) A kind of data transmission method and equipment
CN111464376A (en) Website availability monitoring method and device, storage medium and computer equipment
CN107360036B (en) Network fault positioning method, terminal and server
CN111556080A (en) Network node monitoring method, device, medium and electronic equipment
CN114625645A (en) Service testing method and device, electronic equipment and readable storage medium
CN115705190A (en) Method and device for determining dependence degree
CN111031025B (en) Method and device for automatically detecting and verifying Webshell
CN116846784A (en) Network diagnosis method, device, electronic equipment and storage medium
CN117061384A (en) Fuzzy test method, device, equipment and medium
CN111258904A (en) Webpage element testing method and related device
CN115348191B (en) Internet of things terminal data acquisition method and device in wireless VPDN (virtual private digital network)
US8301587B2 (en) Internet enabled computer system management
CN113726808A (en) Website monitoring method, device, equipment and storage medium
CN109698774A (en) Method and device for monitoring device working condition
CN108667646A (en) network access method and device

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