CN112953791B - Network detection method and device, electronic equipment and computer readable storage medium - Google Patents

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

Info

Publication number
CN112953791B
CN112953791B CN202110122517.8A CN202110122517A CN112953791B CN 112953791 B CN112953791 B CN 112953791B CN 202110122517 A CN202110122517 A CN 202110122517A CN 112953791 B CN112953791 B CN 112953791B
Authority
CN
China
Prior art keywords
network
product
detection
terminal
network address
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.)
Active
Application number
CN202110122517.8A
Other languages
Chinese (zh)
Other versions
CN112953791A (en
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 ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance 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 ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN202110122517.8A priority Critical patent/CN112953791B/en
Publication of CN112953791A publication Critical patent/CN112953791A/en
Application granted granted Critical
Publication of CN112953791B publication Critical patent/CN112953791B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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 embodiment of the disclosure discloses a network detection method, a network detection device, electronic equipment and a computer-readable storage medium. The network detection method comprises the following steps: selecting a detection terminal for executing a network detection task according to the first on-line parameters of the product; wherein the first on-line parameter of the product is indicative of a condition of a terminal using the product; selecting a network environment of the detection terminal according to a second on-line parameter of the product; wherein the second on-line parameter of the product is indicative of a network environment used by a terminal using the product; acquiring a network address of a server of the product; sending a network detection command; the network detection command is used for triggering the detection terminal to execute the network detection task according to the network address of the service end of the product in the network environment. The method solves the problem of inaccurate detection task results caused by environment differences by selecting the detection terminal and the network environment.

Description

Network detection method and device, electronic equipment and computer readable storage medium
Technical Field
The present disclosure relates to the field of network detection, and in particular, to a network detection method and apparatus, an electronic device, and a computer-readable storage medium.
Background
Under the background of internationalization of current internet products, many internet products will choose to serve foreign users. Therefore, a lot of complexity is brought to the service of the product, for example, some services of the product are provided by servers located in other areas, which may cause that the functions of some products cannot be used normally due to different network environments and different terminals. At this time, the domain name of the service API providing services to overseas products needs to be tested to ensure the normality of the functions thereof.
However, since the overseas network environment is different from the domestic environment greatly, factors such as network system, network quality, operators, machine types, regions and the like need to be considered, and it is difficult to cover the connectivity and performance test of the domain name of the product in overseas regions by using domestic tests, so that the test result is inaccurate.
Disclosure of Invention
This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the detailed description. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
In order to solve the above technical problem, the embodiments of the present disclosure propose the following technical solutions.
In a first aspect, an embodiment of the present disclosure provides a network probing method, including:
selecting a detection terminal for executing a network detection task according to the first on-line parameters of the product; wherein the first on-line parameter of the product is indicative of a condition of a terminal using the product;
selecting a network environment of the detection terminal according to the second on-line parameter of the product; wherein the second on-line parameter of the product is indicative of a network environment used by a terminal using the product;
acquiring a network address of a server of the product;
sending a network detection command; the network detection command is used for triggering the detection terminal to execute the network detection task according to the network address of the service end of the product in the network environment.
In a second aspect, an embodiment of the present disclosure provides a network probe apparatus, including:
the detection terminal selection module is used for selecting a detection terminal for executing a network detection task according to the first on-line parameters of the product; wherein the first on-line parameter of the product is indicative of a condition of a terminal using the product;
the network environment selection module is used for selecting the network environment of the detection terminal according to the second on-line parameters of the product; wherein the second on-line parameter of the product is indicative of a network environment used by a terminal using the product;
the detection target acquisition module is used for acquiring the network address of the server of the product;
the detection command sending module is used for sending a network detection command; the network detection command is used for triggering the detection terminal to execute the network detection task according to the network address of the service end of the product in the network environment.
In a third aspect, an embodiment of the present disclosure provides an electronic device, including: at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of the preceding first aspects.
In a fourth aspect, the present disclosure provides a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions for causing a computer to perform the method of any one of the foregoing first aspects.
The embodiment of the disclosure discloses a network detection method, a network detection device, electronic equipment and a computer-readable storage medium. The network detection method comprises the following steps: selecting a detection terminal for executing a network detection task according to the first on-line parameters of the product; wherein the first on-line parameter of the product is indicative of a condition of a terminal using the product; selecting a network environment of the detection terminal according to a second on-line parameter of the product; wherein the second on-line parameter of the product is indicative of a network environment used by a terminal using the product; acquiring a network address of a server of the product; sending a network detection command; the network detection command is used for triggering the detection terminal to execute the network detection task according to the network address of the service end of the product in the network environment. The method solves the problem of inaccurate detection task results caused by environment differences by selecting the detection terminal and the network environment.
The foregoing is a summary of the present disclosure, and for the purposes of promoting a clear understanding of the technical means of the present disclosure, the present disclosure may be embodied in other specific forms without departing from the spirit or essential attributes thereof.
Drawings
The above and other features, advantages, and aspects of embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and features are not necessarily drawn to scale.
Fig. 1 is a schematic flow chart of a network probing method according to an embodiment of the present disclosure;
fig. 2 is a schematic flow chart of a network probing method provided in the embodiment of the present disclosure;
fig. 3 is a schematic diagram of parameters configuring a probe task in a network probe method provided by an embodiment of the present disclosure;
fig. 4 is a schematic flow chart of a network probing method provided by an embodiment of the present disclosure;
fig. 5 is a schematic view of an application scenario of the network detection method provided in the embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of an embodiment of a network detection apparatus according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of an electronic device provided according to an embodiment of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order, and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "including" and variations thereof as used herein is intended to be open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
Fig. 1 is a flowchart of an embodiment of a network probing method provided in this disclosure, where the network probing method provided in this embodiment may be executed by a network probing apparatus, and the network probing apparatus may be implemented as software or as a combination of software and hardware, and the network probing apparatus may be integrated in a certain device in a network probing system, such as a network probing server or a network probing terminal device. As shown in fig. 1, the method comprises the steps of:
s101, selecting a detection terminal for executing a network detection task according to a first online parameter of a product; wherein the first on-line parameter of the product is indicative of a condition of a terminal using the product;
in an embodiment of the present disclosure, the network detection method is executed by a detection terminal, where the detection terminal is various user terminal devices such as a smart phone, a tablet computer, a desktop computer, and the like, in which an internet software product is installed. Optionally, the probing terminal is disposed on a rack, and multiple kinds of probing terminals are disposed on the rack and used for performing different network probing tasks under different conditions.
Before executing the network probing task, a suitable probing terminal needs to be selected for the task.
The first on-line parameter of the product is a first parameter counted by a terminal that actually uses the product.
Optionally, the first on-line parameters of the product include: the number of terminals present in the first location area exceeds a first threshold. Wherein the first location area comprises a country or a range of regions, such as within a country or within a province of a country, etc. In this optional embodiment, the parameter on the first line of the product is the model of the terminal with a larger number appearing in the first location area, and the corresponding detection terminal is selected from the rack according to the model of the terminal, so that the detection result better conforms to the real situation of the first location area.
Optionally, the first on-line parameters of the product include: the number of top N terminal types present in the first location area. The terminal types appearing in the first position area are counted, one quantity is counted for each type, the terminals with different types are sorted according to the quantity, and the types of the top N terminals are used as the types of the detection terminals.
Optionally, the first on-line parameters of the product include: performance index of a terminal using the product. In this optional embodiment, in the case that the performance of the business service of the product needs to be probed, probing terminals with different performances may be used to test the connectivity between probing terminals with different performances and the business service of the product, and the performance of the probing terminals with different performances when using the business service. Optionally, the performance index of the terminal is a threshold, and when the probe terminal is specifically selected, according to different probe tasks and different purposes, a probe terminal higher than the performance index may be selected, and a terminal lower than the performance index may also be selected.
Optionally, the first on-line parameters of the product include: a version of an operating system of a terminal using the product. If the connectivity and performance of the service of some products may be related to the operating system of the terminal, when selecting the probe terminal, the probe terminal with a different operating system version may be selected according to the version of the operating system of the terminal to perform the probing task.
It will be appreciated that the above examples of first line parameters for the product are merely examples and are not to be construed as limiting the present disclosure.
Step S102, selecting the network environment of the detection terminal according to the second on-line parameters of the product; wherein the second on-line parameter of the product is indicative of a network environment used by a terminal using the product;
in an embodiment of the present disclosure, the probe terminal needs to execute the network probe task in a certain network environment. Illustratively, the network environment includes: one or more of network type, network quality, operator.
Before executing the network probing task, a suitable network environment needs to be selected for the probing terminal.
Optionally, the second on-line parameter of the product comprises: an identification of network environments within the first location area that are used in an amount that exceeds a second threshold. Generally, the network environment is provided by a network operator, and both the fixed network and the mobile communication network have their corresponding operators, and thus, the identification of the network environment may be the name of the network operator. The second on-line parameters of the product are several operators with a large number of users in the first location area, and the network used by the detection terminal to execute the detection task is selected according to the identifiers of the operators, so that the detection result is more consistent with the real situation of the first location area. Optionally, the identifier of the network environment further includes a network type identifier, so that connectivity and performance of the service can be tested under certain network types. Optionally, the second on-line parameter of the product further includes: the number used in the first location area ranks the identity of the top M network environment. The network environments used by the user in the first location area are counted, the number of the network environments is counted by the identifier of each network environment, different network environments are sorted according to the number, and the network environments of the top M terminals are used as the network environments used by the detection terminals when the detection tasks are executed.
It will be appreciated that the above examples of second line parameters of the product are merely exemplary and are not to be construed as limiting the present disclosure.
Step S103, acquiring a network address of a server of the product;
optionally, the network address of the server includes a domain name of a service API of the product, that is, when the product implements some functions, a remote service needs to be called to obtain the function, for example, when the live broadcast product starts a live broadcast function, a live broadcast service on a live broadcast server needs to be called, and a domain name of the live broadcast server needs to be known when the live broadcast server is accessed, that is, the domain name of the live broadcast service needed to be called can be connected or the connection speed is fast enough. When network detection is performed, domain names of the business service APIs need to be detected to ensure that business services can normally provide services for products.
Optionally, the obtaining the network address of the server of the product includes: and acquiring the network address of the server of the product through the first interface. Through the first interface, the network address of the service end of the product can be automatically acquired, and the situation that the network address to be detected needs to be manually modified after the domain name is changed or unavailable can be prevented.
Optionally, the step S103 includes:
and periodically acquiring the network address of the service end of the product from at least one target source through the first interface.
Wherein the target source is a data source generating a network address of a server of the product. If the domain name of some service services is a dynamic domain name and is obtained through scheduling of scheduling service, the first interface periodically acquires the latest domain name distributed to the service by the scheduling service as the network address of the service end of the product; in addition, the domain names used in each geographic area are different, and some domain names may be used more in some areas, so that the domain names with the most used amount in different geographic areas are used as the network addresses of the service terminals of the products, at this time, the domain name use condition of each country or region can be updated in real time through statistical service, the domain names with the most used amount in each country or region are recorded, and the first interface periodically obtains the records to obtain the network addresses of the service terminals of the products.
Optionally, before the step S103, the method further includes: the first interface is configured to obtain at least one target source of a network address of the server. As described above, the target source is a data source generating a network address of the server of the product, and the location of the target source is preconfigured so that the first interface may traverse each preconfigured target source in a polling manner to obtain the network address of the server of the product when the first interface needs to obtain the network address of the server of the product. Optionally, the target source includes a target source customized by a user, such as a domain name scheduling module of a business service, a code region for setting a domain name corresponding to the business service, a service for managing the domain name of the business service, and the like. Therefore, when the domain name of the service is changed, the first interface can acquire the changed domain name, so that the result of the detection task is more accurate.
Optionally, the step S103 includes:
step S201, acquiring a first position area where the terminal using the product is located;
step S202, obtaining, through a first interface, network addresses of service terminals of the product, where the number used in the first location area exceeds a third threshold.
In this optional embodiment, after the probe terminal is selected, the network addresses of the service terminals of the products whose number of usage in the location exceeds the third threshold are obtained through the first interface according to the location of the probe terminal. As described in the above example, the domain name usage of each country or region is updated in real time through the statistical service, and several domain names with the largest usage amount of each country or region or domain names with usage amounts exceeding the third threshold are recorded, in this embodiment, the first location area is used as an index, and at least one corresponding domain name in the record is obtained as the network address of the service end of the product of the network probing task.
Optionally, the target sources are various, the first interface may not exhaust all the target sources, and in order to prevent incomplete detection, the network address of the server of the product may be obtained by allowing the target source to send update information. Optionally, the step S103 includes: and responding to the received update information of the network address of the service end of the product, and acquiring the network address of the service end of the product indicated by the update information through a first interface. In this optional embodiment, the target source is configured to generate update information to notify the first interface when the network address of the server of the product changes, and after the first interface receives the update information, obtain the network address of the server of the product indicated by the update information to obtain the network address of the server of the product of the network probing task.
Optionally, the network address of the service end of the product is a redundant backup network address. Illustratively, the network address of the service end of the product is a backup domain name, that is, if the currently used domain name has a problem and cannot provide service continuously, the currently used domain name can be directly switched to the backup domain name to provide service continuously, but because the backup domain name cannot be ensured to be connected, whether the backup domain name is available can be detected in advance through network detection.
Step S104, sending a network detection command; the network detection command is used for triggering the detection terminal to execute the network detection task according to the network address of the service end of the product in the network environment.
After the detection terminal for executing the detection task, the network environment used by the detection terminal for executing the detection task and the network address of the server of the product to be detected of the detection task are determined through the steps S101 to S103, a network detection command is sent; the network detection command is used for triggering the detection terminal to execute the network detection task according to the network address of the service end of the product in the network environment.
After receiving the network probing command, the probe terminal executes the network probing task according to the network address of the server of the product, for example, sending a connection request K times to the network address of the server of the product through the network environment by a connection program on the probe terminal, or sending a service request K times to the network address of the server of the product through the network environment by the product on the probe terminal, and so on.
Optionally, before step S104, the method further includes:
configuring parameters of the network probing task, wherein the parameters of the network probing task include: the mode of operation of the network probe. Illustratively, as shown in fig. 3, a human-computer interaction interface for configuring network probe task parameters is provided on the server, wherein the human-computer interaction interface comprises an option button for an operation mode of the network probe: http, ping, dns, and traceroute, the operation mode of network probing defines the mode of the probing terminal connecting the probing target. The human-computer interaction interface also comprises a network address column, and the column can directly receive an input network address or a target source of the network address, namely, the network address column can directly obtain the network address or generate a data source of the network address.
Further, the network probing method further includes:
step S401, receiving detection result data of a detection terminal executing the network detection task;
and S402, generating and displaying index data according to the detection result data.
In the above step, in order to display the detection result of the network detection task, after receiving detection result data, index data is generated and displayed according to a preset rule, where the index data is result data calculated and displayed according to a preset dimension. Illustratively, the index data is, for example, a connection success rate, a connection failure rate, an average connection speed, and a fastest connection speed; specifically, the index data of each model and the index data of each network environment can be further refined according to the model of the detection terminal, the type of the network environment, and the like.
Further, the network probing method further includes: and responding to the target data hit alarm rules, and sending alarm information. The alarm rule is a preset logic rule, and if the connection failure rate exceeds a failure threshold value, the average connection speed is lower than a speed threshold value, and the like, optionally, a receiver for triggering alarm information generated by the alarm rule can be preset, and when the index data hits the alarm rule and generates the alarm information, the alarm information is sent to the receiver. The sending mode of the alarm information may be any mode, such as a message, a short message, a telephone call, a mail, etc. in the program, and will not be described herein.
Fig. 5 is a schematic view of an application scenario of the network probing method in the embodiment of the present disclosure. As shown in fig. 5, 501 is a rack located in country a, and a plurality of probe terminals 502 are deployed on the rack 501, and it can be understood that the plurality of probe terminals 502 include terminals of multiple models, which is not described herein again. The device 503 is configured to deploy a probe task and display result data of the probe task. In the application scenario, the 3 types with the highest number used in nation a are obtained as detection terminals, and the detection terminals are all provided with test programs for detecting whether the domain name is available. In the application scenario, 3 operators with the highest usage in country a are also acquired, and the networks provided by the 3 operators are used as the network environment for the probe terminal to execute the probe task. The method comprises the steps of obtaining a list of domain names to be tested, wherein the list of the domain names to be tested is obtained dynamically through an interface, at least one detection terminal is arranged in the network environment of each operator in each model of 3 models, then each detection terminal executing a detection task detects the connectivity of the domain names in the domain name list according to task parameters, if each domain name is connected for 100 times, detection result data are sent to a server 504, the server 504 generates index data and displays the index data on equipment 503, and meanwhile, if the index data start an alarm rule, the server 504 generates alarm information and sends the alarm information to a related receiving party.
The network detection method can adapt to network detection tasks in various environments by selecting the detection terminal, the network environment and the server network address of the product, so that the network detection tasks are more in line with actual conditions and more accurate.
The embodiment of the disclosure discloses a network detection method, which comprises the following steps: selecting a detection terminal for executing a network detection task according to the first on-line parameters of the product; wherein the first on-line parameter of the product is indicative of a condition of a terminal using the product; selecting a network environment of the detection terminal according to a second on-line parameter of the product; wherein the second on-line parameter of the product is indicative of a network environment used by a terminal using the product; acquiring a network address of a server of the product; sending a network detection command; the network detection command is used for triggering the detection terminal to execute the network detection task according to the network address of the service end of the product in the network environment. The method solves the problem of inaccurate detection task results caused by environment differences by selecting the detection terminal and the network environment.
In the above, although the steps in the above method embodiments are described in the above sequence, it should be clear to those skilled in the art that the steps in the embodiments of the present disclosure are not necessarily performed in the above sequence, and may also be performed in other sequences such as reverse, parallel, and cross, and further, on the basis of the above steps, other steps may also be added by those skilled in the art, and these obvious modifications or equivalents should also be included in the protection scope of the present disclosure, and are not described herein again.
Fig. 6 is a schematic structural diagram of an embodiment of a network detection apparatus according to an embodiment of the present disclosure. As shown in fig. 6, the apparatus 600 includes: a detection terminal selecting module 601, a network environment selecting module 602, a detection target obtaining module 603, and a detection command sending module 604. Wherein, the first and the second end of the pipe are connected with each other,
a detection terminal selection module 601, configured to select a detection terminal for executing a network detection task according to a first online parameter of a product; wherein the first on-line parameter of the product is indicative of a condition of a terminal using the product;
a network environment selection module 602, configured to select a network environment of the probe terminal according to a second on-line parameter of the product; wherein the second on-line parameter of the product is indicative of a network environment used by a terminal using the product;
a detection target obtaining module 603, configured to obtain a network address of a server of the product;
a probe command sending module 604, configured to send a network probe command; the network detection command is used for triggering the detection terminal to execute the network detection task according to the network address of the service end of the product in the network environment.
Further, the network probing apparatus 600 is further configured to:
configuring parameters of the network probing task, wherein the parameters of the network probing task include: the mode of operation of the network probe.
Further, the first on-line parameters of the product include:
the number of terminals present in the first location area exceeds a first threshold.
Further, the second on-line parameter of the product comprises:
an identification of network environments within the first location area that are used in an amount that exceeds a second threshold.
Further, the network probing apparatus 600 is further configured to:
receiving detection result data of a detection terminal executing the network detection task;
and generating and displaying index data according to the detection result data.
Further, the network probing apparatus 600 is further configured to:
and responding to the target data hit alarm rules, and sending alarm information.
Further, the detection target obtaining module 603 is further configured to:
and periodically acquiring the network address of the service end of the product from at least one target source through the first interface.
Further, the network probing apparatus 600 is further configured to:
the first interface is configured to obtain at least one target source of a network address of the server.
Further, the detection target obtaining module 603 is further configured to:
acquiring a first position area where the detection terminal is located;
and acquiring the network addresses of the service terminals of the products, the number of which exceeds a third threshold value, used in the first location area through a first interface.
Further, the detection target obtaining module 603 is further configured to:
and responding to the received update information of the network address of the service end of the product, and acquiring the network address of the service end of the product indicated by the update information through a first interface.
The apparatus shown in fig. 6 can perform the method of the embodiment shown in fig. 1-4, and the detailed description of this embodiment can refer to the related description of the embodiment shown in fig. 1-4. The implementation process and technical effect of the technical solution refer to the descriptions in the embodiments shown in fig. 1 to fig. 4, and are not described herein again.
Referring now to FIG. 7, shown is a schematic diagram of an electronic device 700 suitable for use in implementing embodiments of the present disclosure. The terminal device in the embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. The electronic device shown in fig. 7 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 7, electronic device 700 may include a processing means (e.g., central processing unit, graphics processor, etc.) 701 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM) 702 or a program loaded from a storage means 708 into a Random Access Memory (RAM) 703. In the RAM 703, various programs and data necessary for the operation of the electronic apparatus 700 are also stored. The processing device 701, the ROM 702, and the RAM 703 are connected to each other by a bus 704. An input/output (I/O) interface 705 is also connected to bus 704.
Generally, the following devices may be connected to the I/O interface 705: input devices 706 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 707 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 708 including, for example, magnetic tape, hard disk, etc.; and a communication device 709. The communication means 709 may allow the electronic device 700 to communicate with other devices, wireless or wired, to exchange data. While fig. 7 illustrates an electronic device 700 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer readable medium, the computer program containing program code for performing the method illustrated by the flow chart. In such embodiments, the computer program may be downloaded and installed from a network via the communication means 709, or may be installed from the storage means 708, or may be installed from the ROM 702. The computer program, when executed by the processing device 701, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network Protocol, such as HTTP (HyperText Transfer Protocol), and may interconnect with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: the method in the above embodiment is performed.
Computer program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including but not limited to an object oriented programming language such as Java, smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of an element does not in some cases constitute a limitation on the element itself.
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems on a chip (SOCs), complex Programmable Logic Devices (CPLDs), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
According to one or more embodiments of the present disclosure, there is provided a network probing method including:
selecting a detection terminal for executing a network detection task according to the first on-line parameters of the product; wherein the first on-line parameter of the product is indicative of a condition of a terminal using the product;
selecting a network environment of the detection terminal according to a second on-line parameter of the product; wherein the second on-line parameter of the product is indicative of a network environment used by a terminal using the product;
acquiring a network address of a server of the product;
sending a network detection command; the network detection command is used for triggering the detection terminal to execute the network detection task according to the network address of the service end of the product in the network environment.
Further, before the sending the network probing command, the method further includes:
configuring parameters of the network probing task, wherein the parameters of the network probing task include: the mode of operation of the network probe.
Further, the first on-line parameters of the product include:
the number of terminals present in the first location area exceeds a first threshold.
Further, the second on-line parameter of the product comprises:
an identification of network environments within the first location area that are used in an amount that exceeds a second threshold.
Further, the method further comprises:
receiving detection result data of a detection terminal executing the network detection task;
and generating and displaying index data according to the detection result data.
Further, the method further comprises:
and responding to the target data hit alarm rules, and sending alarm information.
Further, the obtaining the network address of the service end of the product includes:
and periodically acquiring the network address of the service end of the product from at least one target source through the first interface.
Further, before the obtaining the network address of the service end of the product, the method further includes:
the first interface is configured to obtain at least one target source of a network address of the server.
Further, the acquiring the network address of the server of the product includes:
acquiring a first position area where the detection terminal is located;
and acquiring the network addresses of the service terminals of the products, the number of which exceeds a third threshold value, used in the first location area through a first interface.
Further, the acquiring the network address of the server of the product includes:
and responding to the received update information of the network address of the service end of the product, and acquiring the network address of the service end of the product indicated by the update information through a first interface.
According to one or more embodiments of the present disclosure, there is provided a network probe apparatus including:
the detection terminal selection module is used for selecting a detection terminal for executing a network detection task according to the first on-line parameters of the product; wherein the first on-line parameter of the product is indicative of a condition of a terminal using the product;
the network environment selection module is used for selecting the network environment of the detection terminal according to the second on-line parameters of the product; wherein the second on-line parameter of the product is indicative of a network environment used by a terminal using the product;
the detection target acquisition module is used for acquiring the network address of the server of the product;
the detection command sending module is used for sending a network detection command; the network detection command is used for triggering the detection terminal to execute the network detection task according to the network address of the service end of the product in the network environment.
Further, the network probing apparatus is further configured to:
configuring parameters of the network probing task, wherein the parameters of the network probing task include: the mode of operation of network probing.
Further, the first on-line parameters of the product include:
the number of terminals present in the first location area exceeds a first threshold.
Further, the second on-line parameter of the product comprises:
an identification of network environments within the first location area that are used in an amount that exceeds a second threshold.
Further, the network probing apparatus is further configured to:
receiving detection result data of a detection terminal executing the network detection task;
and generating and displaying index data according to the detection result data.
Further, the network probing apparatus is further configured to:
and responding to the target data hit alarm rules, and sending alarm information.
Further, the detection target obtaining module is further configured to:
and periodically acquiring the network address of the service end of the product from at least one target source through the first interface.
Further, the network probing apparatus is further configured to:
the first interface is configured to obtain at least one target source of a network address of the server.
Further, the detection target obtaining module is further configured to:
acquiring a first position area where the detection terminal is located;
and acquiring the network addresses of the service terminals of the products, the number of which exceeds a third threshold value, used in the first position area through a first interface.
Further, the detection target obtaining module is further configured to:
and responding to the received update information of the network address of the service end of the product, and acquiring the network address of the service end of the product indicated by the update information through a first interface.
According to one or more embodiments of the present disclosure, there is provided an electronic device including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the network probing method of any of the preceding first aspects.
According to one or more embodiments of the present disclosure, there is provided a non-transitory computer-readable storage medium characterized by storing computer instructions for causing a computer to perform the network probing method of any one of the preceding first aspects.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.

Claims (11)

1. A network probing method, comprising:
selecting a detection terminal for executing a network detection task according to the first on-line parameters of the product; wherein the first on-line parameter of the product is indicative of a condition of a terminal using the product;
the first on-line parameters of the product include:
the number of terminals present in the first location area exceeds a first threshold;
selecting a network environment of the detection terminal according to a second on-line parameter of the product; wherein the second on-line parameter of the product is indicative of a network environment used by a terminal using the product;
the second on-line parameter of the product comprises:
an identification of network environments within the first location area that are used in an amount that exceeds a second threshold; wherein the identification of the network environment comprises a name of a network operator or a network type identification;
acquiring a network address of a server of the product;
sending a network detection command; the network detection command is used for triggering the detection terminal to execute the network detection task according to the network address of the service end of the product in the network environment.
2. The network probing method of claim 1 wherein prior to said sending a network probing command, further comprising:
configuring parameters of the network probing task, wherein the parameters of the network probing task include: the mode of operation of the network probe.
3. The network probing method of claim 1, wherein said method further comprises:
receiving detection result data of a detection terminal executing the network detection task;
and generating and displaying index data according to the detection result data.
4. The network probing method of claim 3, wherein said method further comprises:
and responding to the target data hit alarm rules, and sending alarm information.
5. The network probing method as claimed in claim 1, wherein said obtaining the network address of the server of the product comprises:
and periodically acquiring the network address of the service end of the product from at least one target source through the first interface.
6. The network probing method as claimed in claim 1, wherein prior to said obtaining the network address of the server of the product, further comprising:
the first interface is configured to obtain at least one target source of a network address of the server.
7. The network probing method as claimed in claim 1, wherein said obtaining the network address of the server of the product comprises:
acquiring a first position area where the detection terminal is located;
and acquiring the network addresses of the service terminals of the products, the number of which exceeds a third threshold value, used in the first location area through a first interface.
8. The network probing method as claimed in claim 1, wherein said obtaining the network address of the server of the product comprises:
and responding to the received update information of the network address of the service end of the product, and acquiring the network address of the service end of the product indicated by the update information through a first interface.
9. A network probe apparatus, comprising:
the detection terminal selection module is used for selecting a detection terminal for executing a network detection task according to the first on-line parameters of the product; wherein the first on-line parameter of the product is indicative of a condition of a terminal using the product;
the first on-line parameters of the product include:
the number of terminals present in the first location area exceeds a first threshold;
the network environment selection module is used for selecting the network environment of the detection terminal according to the second on-line parameters of the product; wherein the second on-line parameter of the product is indicative of a network environment used by a terminal using the product;
the second on-line parameter of the product comprises:
an identification of network environments within the first location area that are used in an amount that exceeds a second threshold; wherein the identification of the network environment comprises a name of a network operator or a network type identification;
the detection target acquisition module is used for acquiring the network address of the server of the product;
the detection command sending module is used for sending a network detection command; the network detection command is used for triggering the detection terminal to execute the network detection task according to the network address of the service end of the product in the network environment.
10. An electronic device, comprising:
a memory for storing computer readable instructions; and
a processor for executing the computer readable instructions such that the processor when executed implements the method of any of claims 1-8.
11. A non-transitory computer readable storage medium storing computer readable instructions which, when executed by a computer, cause the computer to perform the method of any one of claims 1-8.
CN202110122517.8A 2021-01-29 2021-01-29 Network detection method and device, electronic equipment and computer readable storage medium Active CN112953791B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110122517.8A CN112953791B (en) 2021-01-29 2021-01-29 Network detection method and device, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110122517.8A CN112953791B (en) 2021-01-29 2021-01-29 Network detection method and device, electronic equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN112953791A CN112953791A (en) 2021-06-11
CN112953791B true CN112953791B (en) 2023-02-24

Family

ID=76239131

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110122517.8A Active CN112953791B (en) 2021-01-29 2021-01-29 Network detection method and device, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN112953791B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113726607B (en) * 2021-08-30 2022-09-02 北京百度网讯科技有限公司 Network detection method and device, electronic equipment and storage medium
CN114071544B (en) * 2021-11-01 2024-03-15 北京字节跳动网络技术有限公司 Network testing method and device and electronic equipment
CN115801653A (en) * 2023-02-07 2023-03-14 阿里巴巴(中国)有限公司 Network detection method, system, electronic device and readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105204989A (en) * 2015-08-20 2015-12-30 惠州Tcl移动通信有限公司 Mobile terminal, server and system and method for detecting application
CN110659198A (en) * 2018-06-28 2020-01-07 亿度慧达教育科技(北京)有限公司 Application program test case execution method and device and software test system
CN111008135A (en) * 2019-12-02 2020-04-14 北京博睿宏远数据科技股份有限公司 APP test method, device, equipment and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105204989A (en) * 2015-08-20 2015-12-30 惠州Tcl移动通信有限公司 Mobile terminal, server and system and method for detecting application
CN110659198A (en) * 2018-06-28 2020-01-07 亿度慧达教育科技(北京)有限公司 Application program test case execution method and device and software test system
CN111008135A (en) * 2019-12-02 2020-04-14 北京博睿宏远数据科技股份有限公司 APP test method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN112953791A (en) 2021-06-11

Similar Documents

Publication Publication Date Title
CN112953791B (en) Network detection method and device, electronic equipment and computer readable storage medium
CN110753089B (en) Method, device, medium and electronic equipment for managing client
CN111679990B (en) Test data generation method and device, readable medium and electronic equipment
CN110781373B (en) List updating method and device, readable medium and electronic equipment
CN113254105B (en) Resource processing method and device, storage medium and electronic equipment
CN113507517A (en) Screen projection equipment discovery method and device, electronic equipment and storage medium
CN111198859A (en) Data processing method and device, electronic equipment and computer readable storage medium
CN111694757A (en) Application program testing method and device, electronic equipment and computer readable storage medium
CN110620806B (en) Information generation method and device
CN110913270B (en) Live broadcasting method and device
CN106658670B (en) A kind of Wireless Fidelity Wi-Fi scan method and mobile terminal
CN110781066B (en) User behavior analysis method, device, equipment and storage medium
CN114465919B (en) Network service testing method, system, electronic equipment and storage medium
CN111198853A (en) Data processing method and device, electronic equipment and computer readable storage medium
CN115587860A (en) Service processing method, device, storage medium and electronic equipment
CN115600964A (en) Voice approval method and device and related equipment
CN115622963A (en) Message detection method, device, equipment and medium based on industrial switch
CN114827060B (en) Interaction method and device and electronic equipment
CN111367592B (en) Information processing method and device
CN115391770A (en) Program monitoring method, device, electronic equipment and computer readable storage medium
CN114116480A (en) Method, device, medium and equipment for determining application program test coverage rate
CN111382038B (en) Method, device, electronic equipment and storage medium for reporting service data
CN115941432A (en) Domain name alarm information sending method and device, electronic equipment and computer readable storage medium
CN115996179A (en) Service node testing method and device, readable medium and electronic equipment
CN111274104B (en) Data processing method, device, electronic equipment and computer 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
GR01 Patent grant
GR01 Patent grant