Nothing Special   »   [go: up one dir, main page]

CN113452576A - Network environment monitoring method and device, storage medium and electronic device - Google Patents

Network environment monitoring method and device, storage medium and electronic device Download PDF

Info

Publication number
CN113452576A
CN113452576A CN202110707556.4A CN202110707556A CN113452576A CN 113452576 A CN113452576 A CN 113452576A CN 202110707556 A CN202110707556 A CN 202110707556A CN 113452576 A CN113452576 A CN 113452576A
Authority
CN
China
Prior art keywords
network environment
router
service command
sending
data packet
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.)
Granted
Application number
CN202110707556.4A
Other languages
Chinese (zh)
Other versions
CN113452576B (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.)
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Haier Smart Home 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 Qingdao Haier Technology Co Ltd, Haier Smart Home Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202110707556.4A priority Critical patent/CN113452576B/en
Publication of CN113452576A publication Critical patent/CN113452576A/en
Application granted granted Critical
Publication of CN113452576B publication Critical patent/CN113452576B/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/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
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2823Reporting information sensed by appliance or service execution status of appliance services in a home automation network
    • 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/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0811Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
    • 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/0852Delays
    • H04L43/0864Round trip delays
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/16Threshold monitoring
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Automation & Control Theory (AREA)
  • Health & Medical Sciences (AREA)
  • Cardiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a method and a device for monitoring a network environment, a storage medium and an electronic device, wherein the method comprises the following steps: sending a service command for determining a network environment to a router according to a preset time interval; receiving a state data packet determined by the router according to the service command; the technical scheme is adopted, the problems that the quality of the network environment cannot be monitored in real time and the like in the related technology are solved, the condition that the equipment reports important events due to the network environment problem is reduced, the target object is timely and effectively helped to know the quality information of the real-time network environment in a family, and the response time of the equipment connected with the network is further prolonged.

Description

Network environment monitoring method and device, storage medium and electronic device
Technical Field
The invention relates to the technical field of communication, in particular to a network environment monitoring method and device, a storage medium and an electronic device.
Background
Along with the rapid development of the internet of things era, the types and data of intelligent household appliances in families are gradually increased, and the intelligent household appliances comprise intelligent security equipment, intelligent sound boxes, intelligent air conditioners, various intelligent sensors, intelligent medical equipment and the like, and enter thousands of households. The user can be convenient can in time know the operating condition of equipment and the actual conditions in the family through removing instruments such as APP, website.
The network is the necessary route of data transfer between user, smart machine, website tripartite, and wherein network environment is complicated relatively in the family, and the interference is more, and the network quality on the different positions of family is good or bad differs, can lead to the condition emergence that smart machine often breaks off or unable network connection, and the user just can't in time know the operating condition of equipment and the actual conditions in the family on removing APP, website to probably bring family personnel or loss of property for the user, for example: 1. due to the network quality problem, the gas sensor, the water sensor and the like cannot report or delay the report of alarm data, and possibly cause property economic loss; 2. the intelligent security equipment cannot report or delay reporting of alarm data due to network quality problems, and users cannot know the occurrence of burglary and the like in time, so that loss can be caused. Therefore, the user can know the real-time condition of the network environment in the family in time, and when the network environment is not good, the user is actively prompted to optimize the network drawing environment.
Aiming at the problems that the quality of a network environment cannot be monitored in real time and the like in the related technology, an effective solution is not provided yet.
Disclosure of Invention
The embodiment of the invention provides a method and a device for monitoring a network environment, a storage medium and an electronic device, which are used for at least solving the problems that the quality of the network environment cannot be monitored in real time and the like in the related technology.
According to an embodiment of the present invention, there is provided a method for monitoring a network environment, including: sending a service command for determining a network environment to a router according to a preset time interval; receiving a state data packet determined by the router according to the service command; and performing rating analysis on the state data packet according to a preset rating rule to determine the quality level of the network environment.
In an exemplary embodiment, sending a service command for determining a network environment to a router according to a preset time interval includes: acquiring a connection state with a router; under the condition that the connection state indicates that the communication is normal, continuously sending a service command for determining a network environment to the router according to a preset sending condition according to a preset time interval, wherein the sending condition is used for determining at least one of the following conditions: the sending frequency of the service command, the sending byte content of the service command and the timeout duration of the service command.
In an exemplary embodiment, receiving the status data packet determined by the router according to the service command includes: determining the total sending times of the service command in a target period; comparing the quantity of the information of the state data packet determined by the router according to the total sending times, wherein the quantity comparison is used for determining the consistency of the total sending times and the quantity of the information; receiving a status data packet determined by the router according to the service command under the condition that the number of the comparison result is the same, wherein the status data packet comprises at least one of the following: the success rate of the connection of the service command, the round trip delay of the service command, the wireless local area network identification of the router and the signal strength of the router.
In an exemplary embodiment, the performing a rating analysis on the status data packet according to a preset rating rule to determine a quality level of the network environment includes: determining grading division standards of different parameters corresponding to the network environment, wherein the grading rules comprise the grading division standards; determining a grade value corresponding to each kind of state data in the state data packet according to the grade division standard; and adding the plurality of score values to determine the quality score of the network environment, so as to determine the quality grade of the network environment according to the quality score.
In an exemplary embodiment, after performing a rating analysis on the status data packet according to a preset rating rule to determine a quality level of the network environment, the method further includes: acquiring a monitoring threshold of the network environment, wherein the monitoring threshold is used for indicating that the network environment meets the transmission requirement of data information; and comparing the quality score corresponding to the quality grade with the monitoring threshold value to determine whether to set and recommend the network environment.
In an exemplary embodiment, comparing the quality score corresponding to the quality level with the monitoring threshold to determine whether to make a setting recommendation of a network environment includes: setting recommendation of the network environment is required under the condition that the quality score corresponding to the quality grade is smaller than the monitoring threshold; and under the condition that the quality score corresponding to the quality grade is larger than the monitoring threshold, the setting recommendation of the network environment is not carried out.
In an exemplary embodiment, in a case that the quality score corresponding to the quality level is smaller than the monitoring threshold, after the setting recommendation of the network environment needs to be performed, the method further includes: sending the state data packet to a server; receiving the setting recommendation of the network environment obtained after the server processes the state data packet; and recommending to send prompt information to the target object according to the setting, wherein the prompt information is used for indicating the target object to change the physical position of the router or the operation mode of the router.
According to another embodiment of the present invention, there is also provided a monitoring apparatus for a network environment, including: the system comprises a sending module, a receiving module and a sending module, wherein the sending module is used for sending a service command for determining a network environment to a router according to a preset time interval; a receiving module, configured to receive a status data packet determined by the router according to the service command; and the rating module is used for performing rating analysis on the state data packet according to a preset rating rule so as to determine the quality level of the network environment.
In an exemplary embodiment, the sending module is configured to obtain a connection status with a router; under the condition that the connection state indicates that the communication is normal, continuously sending a service command for determining a network environment to the router according to a preset sending condition according to a preset time interval, wherein the sending condition is used for determining at least one of the following conditions: the sending frequency of the service command, the sending byte content of the service command and the timeout duration of the service command.
In an exemplary embodiment, the receiving module is further configured to determine a total number of times of sending the service command in a target period; comparing the quantity of the information of the state data packet determined by the router according to the total sending times, wherein the quantity comparison is used for determining the consistency of the total sending times and the quantity of the information; receiving a status data packet determined by the router according to the service command under the condition that the number of the comparison result is the same, wherein the status data packet comprises at least one of the following: the success rate of the connection of the service command, the round trip delay of the service command, the wireless local area network identification of the router and the signal strength of the router. In an exemplary embodiment, the rating module is further configured to determine rating and dividing criteria of different parameters corresponding to the network environment, where the rating rule includes the rating and dividing criteria; determining a grade value corresponding to each kind of state data in the state data packet according to the grade division standard; and adding the plurality of score values to determine the quality score of the network environment, so as to determine the quality grade of the network environment according to the quality score.
In an exemplary embodiment, the apparatus further includes: the comparison module is further used for acquiring a monitoring threshold of the network environment, wherein the monitoring threshold is used for indicating that the network environment meets the transmission requirement of the data information; and comparing the quality score corresponding to the quality grade with the monitoring threshold value to determine whether to set and recommend the network environment.
In an exemplary embodiment, the comparing module is configured to determine that the setting recommendation of the network environment needs to be performed when the quality score corresponding to the quality level is smaller than the monitoring threshold; and determining not to recommend the setting of the network environment under the condition that the quality score corresponding to the quality grade is larger than the monitoring threshold value.
In an exemplary embodiment, the comparing module further includes: the prompting unit is used for sending the state data packet to a server; receiving the setting recommendation of the network environment obtained after the server processes the state data packet; and recommending to send prompt information to the target object according to the setting, wherein the prompt information is used for indicating the target object to change the physical position of the router or the operation mode of the router.
According to a further embodiment of the present invention, a computer-readable storage medium is also provided, in which a computer program is stored, wherein the computer program is configured to carry out the steps of any of the above-described method embodiments when executed.
According to yet another embodiment of the present invention, there is also provided an electronic device, including a memory in which a computer program is stored and a processor configured to execute the computer program to perform the steps in any of the above method embodiments.
According to the invention, a service command for determining the network environment is sent to the router according to the preset time interval; receiving a state data packet determined by the router according to the service command; the technical scheme is adopted, the problems that the quality of the network environment cannot be monitored in real time and the like in the related technology are solved, the condition that the equipment reports important events due to the network environment problem is reduced, the target object is timely and effectively helped to know the quality information of the real-time network environment in a family, and the response time of the equipment connected with the network is further prolonged.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a block diagram of a hardware structure of a device terminal of a monitoring method of a network environment according to an embodiment of the present invention;
FIG. 2 is a flow chart of a method of monitoring a network environment according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a LAN network environment data collection process according to an alternative embodiment of the present invention;
FIG. 4 is a schematic diagram of a wide area network environment data collection process in accordance with an alternative embodiment of the present invention;
fig. 5 is an interaction diagram of reporting home network environment information to a user according to an alternative embodiment of the present invention;
FIG. 6 is a schematic illustration of a monitoring utility scenario of a network environment in accordance with an alternative embodiment of the present invention;
fig. 7 is a block diagram of a monitoring apparatus of a network environment according to an embodiment of the present invention.
Detailed Description
The invention will be described in detail hereinafter with reference to the accompanying drawings in conjunction with embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
The method provided by the embodiment of the application can be executed in a computer terminal, a cloud platform or a similar computing device. Taking an example of the operation on the device terminal, fig. 1 is a hardware structure block diagram of the device terminal of the monitoring method of the network environment according to the embodiment of the present invention. As shown in fig. 1, the device terminal may include one or more (only one shown in fig. 1) processors 102 (the processors 102 may include, but are not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, and in an exemplary embodiment, may also include a transmission device 106 for communication functions and an input-output device 108. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration and is not intended to limit the structure of the terminal of the above-described device. For example, the device terminal may also include more or fewer components than shown in FIG. 1, or have a different configuration with equivalent functionality to that shown in FIG. 1 or with more functionality than that shown in FIG. 1.
The memory 104 may be used to store computer programs, for example, software programs and modules of application software, such as computer programs corresponding to the monitoring method of the network environment in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the computer programs stored in the memory 104, so as to implement the above-mentioned method. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the device terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the device terminal. In one example, the transmission device 106 includes a Network adapter (NIC), which can be connected to other Network devices through a base station so as to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
In this embodiment, a method for monitoring a network environment is provided, which is applied to the device terminal, and fig. 2 is a flowchart of a method for monitoring a network environment according to an embodiment of the present invention, where the flowchart includes the following steps:
step S202, sending a service command for determining a network environment to a router according to a preset time interval;
it should be noted that the preset time interval may be determined according to a last historical quality level of the network environment in the history record, and when a quality score corresponding to the historical quality level is greater than the monitoring threshold, the historical network environment of the device is good, at this time, when the preset time interval is determined, the interval time may be appropriately increased, when the quality score corresponding to the historical quality level is less than the monitoring threshold, the historical network environment of the device is poor, at this time, when the preset time interval is determined, the interval time may be appropriately decreased, so as to ensure a data acquisition amount of the network environment data.
Step S204, receiving a state data packet determined by the router according to the service command;
step S206, the status data packet is subjected to rating analysis according to a preset rating rule so as to determine the quality level of the network environment.
It is understood that the preset rating rule may be a table configured to convert parameters of the network environment into visual values after the collection network of the network environment of the device is established, and then convert professional parameters into quality values that can embody the network environment.
Through the technical scheme, the service command for determining the network environment is sent to the router according to the preset time interval; receiving a state data packet determined by the router according to the service command; the technical scheme is adopted, the problems that the quality of the network environment cannot be monitored in real time and the like in the related technology are solved, the condition that the equipment reports important events due to the network environment problem is reduced, the target object is timely and effectively helped to know the quality information of the real-time network environment in a family, and the response time of the equipment connected with the network is further prolonged.
In an exemplary embodiment, sending a service command for determining a network environment to a router according to a preset time interval includes: acquiring a connection state with a router; under the condition that the connection state indicates that the communication is normal, continuously sending a service command for determining a network environment to the router according to a preset sending condition according to a preset time interval, wherein the sending condition is used for determining at least one of the following conditions: the sending frequency of the service command, the sending byte content of the service command and the timeout duration of the service command.
For example, after the intelligent device is connected to a router, 10 ping instructions (equivalent to a service command in the embodiment of the present invention) are continuously sent to the router at an interval of 3 minutes, where the size of a data packet corresponding to a ping instruction is 64 bytes, and the timeout time is 1 second, and then a wide area network connectivity success rate (ping success rate) and a signal round-trip delay (ping packet average time consumption) are calculated according to a return result of the ping instruction.
In an exemplary embodiment, receiving the status data packet determined by the router according to the service command includes: determining the total sending times of the service command in a target period; comparing the quantity of the information of the state data packet determined by the router according to the total sending times, wherein the quantity comparison is used for determining the consistency of the total sending times and the quantity of the information; receiving a status data packet determined by the router according to the service command under the condition that the number of the comparison result is the same, wherein the status data packet comprises at least one of the following: the success rate of the connection of the service command, the round trip delay of the service command, the wireless local area network identification of the router and the signal strength of the router.
It can be understood that, in order to ensure the accuracy of statistical analysis of the environmental data and avoid that data loss in the data transmission process cannot be known in time, after the status data packet returned by the router, the device data counts the total sending times of the service command in a certain period of time, compares the total sending times with the information quantity of the status data packet, and further avoids the missing of the environmental data statistics.
In an exemplary embodiment, the performing a rating analysis on the status data packet according to a preset rating rule to determine a quality level of the network environment includes: determining grading division standards of different parameters corresponding to the network environment, wherein the grading rules comprise the grading division standards; determining a grade value corresponding to each kind of state data in the state data packet according to the grade division standard; and adding the plurality of score values to determine the quality score of the network environment, so as to determine the quality grade of the network environment according to the quality score.
In short, in order to avoid the recognition of the target object to professional parameters in the network environment, a reference table of a network environment rating and dividing standard is preset, each state data in the state data packet is scored according to the table, and then the corresponding quality grade is determined according to the score value and the score value, so that the target object can clearly know the actual state of the network environment according to the quality grade without professional understanding.
In an exemplary embodiment, after performing a rating analysis on the status data packet according to a preset rating rule to determine a quality level of the network environment, the method further includes: acquiring a monitoring threshold of the network environment, wherein the monitoring threshold is used for indicating that the network environment meets the transmission requirement of data information; and comparing the quality score corresponding to the quality grade with the monitoring threshold value to determine whether to set and recommend the network environment.
In an exemplary embodiment, comparing the quality score corresponding to the quality level with the monitoring threshold to determine whether to make a setting recommendation of a network environment includes: setting recommendation of the network environment is required under the condition that the quality score corresponding to the quality grade is smaller than the monitoring threshold; and under the condition that the quality score corresponding to the quality grade is larger than the monitoring threshold, the setting recommendation of the network environment is not carried out.
In an exemplary embodiment, in a case that the quality score corresponding to the quality level is smaller than the monitoring threshold, after the setting recommendation of the network environment needs to be performed, the method further includes: sending the state data packet to a server; receiving the setting recommendation of the network environment obtained after the server processes the state data packet; and recommending to send prompt information to the target object according to the setting, wherein the prompt information is used for indicating the target object to change the physical position of the router or the operation mode of the router.
In order to better understand the process of the monitoring method for the network environment, the following describes a flow of the monitoring method for the network environment with reference to an optional embodiment, but the flow is not limited to the technical solution of the embodiment of the present invention.
In the related art, since most users do not know the expertise of routing and home network environment, it is not known how to measure and monitor the network quality situation of the home. The cost is high if the user learns. When the user uses a computer tool for detection, the user can only detect the current network quality and cannot continuously monitor the network quality, and when the network quality is poor or no network exists, the key data of the equipment cannot be reported in time. In addition, a professional detection mechanism can only detect the current network quality condition through home detection, real-time monitoring cannot be carried out, a detection report is professional, special explanation is needed, and time and money cost are consumed.
As an optional implementation manner, an optional embodiment of the present invention provides a real-time monitoring scheme for a home network environment based on an intelligent device, which detects the signal strength and connectivity of a router and the connectivity of a connection server based on an existing intelligent device in the home environment, reports network environment data acquired by each intelligent device to a cloud server, and forms a set of monitoring methods for a home network environment quality model together through server data statistics and calculation, thereby solving the problem that the home network environment quality cannot be monitored in a multi-point and continuous real-time manner.
Optionally, the grade of the network environment quality is determined by setting a network environment grade division standard and grading the detected network environment, so that a user can know the condition of the current network environment more intuitively, the user is timely and effectively helped to know real-time network environment quality information in a family, and an optimization scheme of the family network environment quality is provided. Therefore, the situation that important events of the intelligent equipment cannot be reported (such as gas alarm and water immersion alarm) due to network environment problems is reduced, and the household economy or property loss can be effectively reduced.
As an alternative implementation, as shown in fig. 3, a schematic diagram of a local area network environment data collection process according to an alternative embodiment of the present invention specifically includes the following steps:
step S302: and determining the connection state of the intelligent equipment and the router, determining a score corresponding to the network quality in the historical record under the condition of determining the connection state, and adjusting the time interval of the Ping instruction corresponding to the collected local area network environment data sent to the router by the intelligent equipment according to the historical score. Collecting local area network environment data between the intelligent equipment and the router;
step S304: and the router returns the local area network environment data generated according to the Ping instruction sent by the intelligent equipment to the intelligent equipment.
Step S306: and the intelligent equipment scores and grades the network environment data.
For example, after the intelligent device is connected to a router, 10 ping instructions (the size of a ping packet is 64 bytes, and the timeout time is 1 second) are continuously sent to the router every 3 minutes, the success rate of local area network connectivity (ping success rate) and the round-trip delay of a signal (average ping packet time consumption) are calculated according to the return result of the ping instructions, and the SSID of the router and the signal strength are obtained at the same time. And after the environment data are successfully collected, the equipment performs comprehensive grading on the local computing network environment and reports the comprehensive grading to the cloud server. If the report fails, the storage is locally carried out, and the report is carried out next time. When the network quality score is higher than or equal to the set threshold value S1(30 points), the network environment quality of the intelligent device is good at present, and the collection time interval is adjusted to 10 minutes. When the network quality score is smaller than a set threshold value S1(30 points), the current network environment quality is poor, and the acquisition time interval is adjusted to be 3 minutes.
As an alternative implementation, as shown in fig. 4, a schematic diagram of a wide area network environment data acquisition process according to an alternative embodiment of the present invention specifically includes the following steps:
step S402: determining the connection state of the intelligent equipment and the router, determining a score corresponding to the network quality in the historical record under the determined connection state, and adjusting the time interval of the Ping instruction corresponding to the collected wide area network environment data sent to the router by the intelligent equipment according to the historical score; collecting wide area network environment data between the intelligent equipment and the router;
step S404: the router forwards the Ping instruction sent by the intelligent equipment to the server, and wide area network environment data between the router and the server are determined;
step S406: the router collects the wide area network environment data between the intelligent device and the router and between the router and the server and returns the data to the intelligent device.
Step S408: and the intelligent equipment scores and grades the network environment data.
Optionally, as shown in fig. 5, an interaction diagram of reporting the home network environment information to the user according to an alternative embodiment of the present invention is shown. When the network is connected, each intelligent device continuously reports the stored wide area network and local area network environment data to the cloud server, and after the cloud server receives the number of the network environments of the family, the cloud server obtains user family network environment ratings (excellent, good, medium and poor), intelligent device network environment ratings (excellent, good, medium and poor), network signal strength of each intelligent device, network signal round-trip delay data and creates a topological graph of device family distribution according to an algorithm. After the data calculation and processing, the network environments of the family and each intelligent device are described, network quality data or optimization suggestions (such as adjusting the placement position of a router, newly adding a router and the like) can be pushed to a user through cloud services, and telephone communication can be performed between the user and a manual customer service to provide optimization suggestions of the network environments or provide a one-stop-type on-door solution.
Optionally, the network environment rating division standard is as shown in table 1 below:
TABLE 1
Figure BDA0003131946950000121
Optionally, the network quality score calculation method: the network quality score is the sum of the network environment quality scores of 10 continuous times, and the full score is 40. It should be noted that the network quality score may be changed according to actual situations, and 10 times in the alternative embodiment of the present invention is only an example.
Optionally, fig. 6 is a schematic diagram of a practical application scenario for monitoring a network environment according to an alternative embodiment of the present invention.
The optional embodiment of the invention monitors the network environment through the existing intelligent equipment in the family, and because the monitoring is carried out on the basis of the existing intelligent equipment in the family, the invention does not need to additionally increase the cost of the equipment and cost of the network environment monitoring service, can effectively reuse the existing resources and reduce the expenditure cost of users. The acquired network environment number is added with calculation and then displayed to the user in a popular and easy-to-understand way, and the user is not required to invest the learning cost related to the network environment.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
In this embodiment, a monitoring apparatus of a network environment is further provided, and the apparatus is used to implement the foregoing embodiments and preferred embodiments, and details of which have been already described are omitted. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
FIG. 7 is a block diagram of a monitoring device for a network environment according to an embodiment of the present invention; as shown in fig. 7, includes:
a sending module 72, configured to send a service command for determining a network environment to a router according to a preset time interval;
a receiving module 74, configured to receive the status data packet determined by the router according to the service command;
and the rating module 76 performs rating analysis on the status data packet according to a preset rating rule to determine the quality level of the network environment.
Through the technical scheme, the service command for determining the network environment is sent to the router according to the preset time interval; receiving a state data packet determined by the router according to the service command; the technical scheme is adopted, the problems that the quality of the network environment cannot be monitored in real time and the like in the related technology are solved, the condition that the equipment reports important events due to the network environment problem is reduced, the target object is timely and effectively helped to know the quality information of the real-time network environment in a family, and the response time of the equipment connected with the network is further prolonged.
In an exemplary embodiment, the sending module is configured to obtain a connection status with a router; under the condition that the connection state indicates that the communication is normal, continuously sending a service command for determining a network environment to the router according to a preset sending condition according to a preset time interval, wherein the sending condition is used for determining at least one of the following conditions: the sending frequency of the service command, the sending byte content of the service command and the timeout duration of the service command. For example, after the intelligent device is connected to a router, 10 ping instructions (equivalent to a service command in the embodiment of the present invention) are continuously sent to the router at an interval of 3 minutes, where the size of a data packet corresponding to a ping instruction is 64 bytes, and the timeout time is 1 second, and then a wide area network connectivity success rate (ping success rate) and a signal round-trip delay (ping packet average time consumption) are calculated according to a return result of the ping instruction.
In an exemplary embodiment, the receiving module is further configured to determine a total number of times of sending the service command in a target period; comparing the quantity of the information of the state data packet determined by the router according to the total sending times, wherein the quantity comparison is used for determining the consistency of the total sending times and the quantity of the information; receiving a status data packet determined by the router according to the service command under the condition that the number of the comparison result is the same, wherein the status data packet comprises at least one of the following: the success rate of the connection of the service command, the round trip delay of the service command, the wireless local area network identification of the router and the signal strength of the router.
It can be understood that, in order to ensure the accuracy of statistical analysis of the environmental data and avoid that data loss in the data transmission process cannot be known in time, after the status data packet returned by the router, the device data counts the total sending times of the service command in a certain period of time, compares the total sending times with the information quantity of the status data packet, and further avoids the missing of the environmental data statistics.
In an exemplary embodiment, the rating module is further configured to determine rating and dividing criteria of different parameters corresponding to the network environment, where the rating rule includes the rating and dividing criteria; determining a grade value corresponding to each kind of state data in the state data packet according to the grade division standard; and adding the plurality of score values to determine the quality score of the network environment, so as to determine the quality grade of the network environment according to the quality score.
In short, in order to avoid the recognition of the target object to professional parameters in the network environment, a reference table of a network environment rating and dividing standard is preset, each state data in the state data packet is scored according to the table, and then the corresponding quality grade is determined according to the score value and the score value, so that the target object can clearly know the actual state of the network environment according to the quality grade without professional understanding.
In an exemplary embodiment, the apparatus further includes: the comparison module is further used for acquiring a monitoring threshold of the network environment, wherein the monitoring threshold is used for indicating that the network environment meets the transmission requirement of the data information; and comparing the quality score corresponding to the quality grade with the monitoring threshold value to determine whether to set and recommend the network environment.
In an exemplary embodiment, the comparing module is configured to determine that the setting recommendation of the network environment needs to be performed when the quality score corresponding to the quality level is smaller than the monitoring threshold; and determining not to recommend the setting of the network environment under the condition that the quality score corresponding to the quality grade is larger than the monitoring threshold value.
In an exemplary embodiment, the comparing module further includes: the prompting unit is used for sending the state data packet to a server; receiving the setting recommendation of the network environment obtained after the server processes the state data packet; and recommending to send prompt information to the target object according to the setting, wherein the prompt information is used for indicating the target object to change the physical position of the router or the operation mode of the router.
In the description of the present invention, it is to be understood that the terms "center", "upper", "lower", "front", "rear", "left", "right", and the like, indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, and are only for convenience in describing the present invention and simplifying the description, but do not indicate or imply that the device or assembly referred to must have a specific orientation, be constructed and operated in a specific orientation, and thus, should not be construed as limiting the present invention. Furthermore, the terms "first" and "second" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
In the description of the present invention, it should be noted that, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; the two components can be directly connected or indirectly connected through an intermediate medium, and the two components can be communicated with each other. When an element is referred to as being "secured to" or "disposed on" another element, it can be directly on the other element or intervening elements may also be present. When a component is referred to as being "connected" to another element, it can be directly connected to the other element or intervening elements may also be present. The specific meaning of the above terms in the present invention can be understood in specific cases to those skilled in the art.
An embodiment of the present invention further provides a storage medium including a stored program, wherein the program executes any one of the methods described above.
In an exemplary embodiment, in the present embodiment, the storage medium may be configured to store a computer program for executing the steps of:
s1, sending a service command for determining the network environment to the router according to the preset time interval;
s2, receiving the state data packet determined by the router according to the service command;
and S3, performing rating analysis on the status data packet according to a preset rating rule to determine the quality level of the network environment.
In an exemplary embodiment, in the present embodiment, the storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
In an exemplary embodiment, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
In an exemplary embodiment, in the present embodiment, the processor may be configured to execute the following steps by a computer program:
s1, sending a service command for determining the network environment to the router according to the preset time interval;
s2, receiving the state data packet determined by the router according to the service command;
and S3, performing rating analysis on the status data packet according to a preset rating rule to determine the quality level of the network environment.
In an exemplary embodiment, for specific examples in this embodiment, reference may be made to the examples described in the above embodiments and optional implementation manners, and details of this embodiment are not described herein again.
It will be apparent to those skilled in the art that the various modules or steps of the invention described above may be implemented using a general purpose computing device, which may be centralized on a single computing device or distributed across a network of computing devices, and in one exemplary embodiment may be implemented using program code executable by a computing device, such that the steps shown and described may be executed by a computing device stored in a memory device and, in some cases, executed in a sequence different from that shown and described herein, or separately fabricated into individual integrated circuit modules, or multiple ones of them fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A method for monitoring a network environment, comprising:
sending a service command for determining a network environment to a router according to a preset time interval;
receiving a state data packet determined by the router according to the service command;
and performing rating analysis on the state data packet according to a preset rating rule to determine the quality level of the network environment.
2. The method of claim 1, wherein sending a service command to the router for determining the network environment according to the preset time interval comprises:
acquiring a connection state with a router;
under the condition that the connection state indicates that the communication is normal, continuously sending a service command for determining a network environment to the router according to a preset sending condition according to a preset time interval, wherein the sending condition is used for determining at least one of the following conditions: the sending frequency of the service command, the sending byte content of the service command and the timeout duration of the service command.
3. The method of claim 1, wherein receiving the status packet determined by the router according to the service command comprises:
determining the total sending times of the service command in a target period;
comparing the quantity of the information of the state data packet determined by the router according to the total sending times, wherein the quantity comparison is used for determining the consistency of the total sending times and the quantity of the information;
receiving a status data packet determined by the router according to the service command under the condition that the number of the comparison result is the same, wherein the status data packet comprises at least one of the following: the success rate of the connection of the service command, the round trip delay of the service command, the wireless local area network identification of the router and the signal strength of the router.
4. The method of claim 1, wherein performing a rating analysis on the status data packet according to a preset rating rule to determine a quality level of the network environment comprises:
determining grading division standards of different parameters corresponding to the network environment, wherein the grading rules comprise the grading division standards;
determining a grade value corresponding to each kind of state data in the state data packet according to the grade division standard;
and adding the plurality of score values to determine the quality score of the network environment, so as to determine the quality grade of the network environment according to the quality score.
5. The method of claim 1, wherein after performing a rating analysis on the status data packet according to a preset rating rule to determine a quality level of the network environment, the method further comprises:
acquiring a monitoring threshold of the network environment, wherein the monitoring threshold is used for indicating that the network environment meets the transmission requirement of data information;
and comparing the quality score corresponding to the quality grade with the monitoring threshold value to determine whether to set and recommend the network environment.
6. The method of claim 5, wherein comparing the quality score corresponding to the quality level with the monitoring threshold to determine whether to make a set recommendation of the network environment comprises:
determining that the setting recommendation of the network environment is needed under the condition that the quality score corresponding to the quality grade is smaller than the monitoring threshold;
and determining not to recommend the setting of the network environment under the condition that the quality score corresponding to the quality grade is larger than the monitoring threshold value.
7. The method according to claim 6, wherein in a case that the quality score corresponding to the quality level is smaller than the monitoring threshold, after the setting recommendation of the network environment needs to be performed, the method further comprises:
sending the state data packet to a server;
receiving the setting recommendation of the network environment obtained after the server processes the state data packet;
and recommending to send prompt information to the target object according to the setting, wherein the prompt information is used for indicating the target object to change the physical position of the router or the operation mode of the router.
8. A monitoring device for a network environment, comprising:
the system comprises a sending module, a receiving module and a sending module, wherein the sending module is used for sending a service command for determining a network environment to a router according to a preset time interval;
a receiving module, configured to receive a status data packet determined by the router according to the service command;
and the rating module is used for performing rating analysis on the state data packet according to a preset rating rule so as to determine the quality level of the network environment.
9. A computer-readable storage medium, comprising a stored program, wherein the program is operable to perform the method of any one of claims 1 to 7.
10. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method of any of claims 1 to 7 by means of the computer program.
CN202110707556.4A 2021-06-24 2021-06-24 Method and device for monitoring network environment, storage medium and electronic device Active CN113452576B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110707556.4A CN113452576B (en) 2021-06-24 2021-06-24 Method and device for monitoring network environment, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110707556.4A CN113452576B (en) 2021-06-24 2021-06-24 Method and device for monitoring network environment, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN113452576A true CN113452576A (en) 2021-09-28
CN113452576B CN113452576B (en) 2023-06-20

Family

ID=77812605

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110707556.4A Active CN113452576B (en) 2021-06-24 2021-06-24 Method and device for monitoring network environment, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN113452576B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116016276A (en) * 2022-12-02 2023-04-25 京东科技信息技术有限公司 Method and device for detecting health state of server
CN116264561A (en) * 2021-12-15 2023-06-16 中国电信股份有限公司 Router identification conflict detection method and device, storage medium and electronic equipment
CN116708150A (en) * 2022-12-29 2023-09-05 荣耀终端有限公司 Network diagnosis method and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160308972A1 (en) * 2015-04-16 2016-10-20 Xiaomi Inc. Method and device for detecting state of networking channel
CN110120887A (en) * 2019-04-25 2019-08-13 新华三技术有限公司合肥分公司 A kind of network quality information monitoring method, electronic equipment and storage medium
CN111031598A (en) * 2020-01-08 2020-04-17 Oppo广东移动通信有限公司 Network communication control method, device, communication equipment and storage medium
CN111106969A (en) * 2019-12-31 2020-05-05 青岛海尔科技有限公司 Automatic evaluation method and system of Internet of things platform and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160308972A1 (en) * 2015-04-16 2016-10-20 Xiaomi Inc. Method and device for detecting state of networking channel
CN110120887A (en) * 2019-04-25 2019-08-13 新华三技术有限公司合肥分公司 A kind of network quality information monitoring method, electronic equipment and storage medium
CN111106969A (en) * 2019-12-31 2020-05-05 青岛海尔科技有限公司 Automatic evaluation method and system of Internet of things platform and storage medium
CN111031598A (en) * 2020-01-08 2020-04-17 Oppo广东移动通信有限公司 Network communication control method, device, communication equipment and storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116264561A (en) * 2021-12-15 2023-06-16 中国电信股份有限公司 Router identification conflict detection method and device, storage medium and electronic equipment
CN116016276A (en) * 2022-12-02 2023-04-25 京东科技信息技术有限公司 Method and device for detecting health state of server
CN116708150A (en) * 2022-12-29 2023-09-05 荣耀终端有限公司 Network diagnosis method and electronic equipment
CN116708150B (en) * 2022-12-29 2024-04-02 荣耀终端有限公司 Network diagnosis method and electronic equipment

Also Published As

Publication number Publication date
CN113452576B (en) 2023-06-20

Similar Documents

Publication Publication Date Title
CN113452576A (en) Network environment monitoring method and device, storage medium and electronic device
CN112564964B (en) Fault link detection and recovery method based on software defined network
CN104580424B (en) Data reporting method and device of intelligent home system
EP2755416B1 (en) Method and apparatus for remotely locating wireless network fault
CN109889512B (en) Charging pile CAN message abnormity detection method and device
EP3547236B1 (en) Method and device for calculating household appliance faults
CN108989463B (en) Data processing method and device
CN112688310A (en) Line loss analysis method and device applied to power distribution network
CN113518125A (en) Offline data uploading method and system, storage medium and electronic device
CN111585819A (en) Distribution network communication equipment fault analysis method and system
CN111106969B (en) Automatic evaluation method and system of Internet of things platform and storage medium
CN114423037B (en) Communication terminal wireless quality detection method and device based on 5G electric power virtual private network
CN114138771B (en) Abnormal data processing method and device and electronic equipment
CN118264537A (en) Abnormal communication link processing method, device and system and nonvolatile storage medium
CN113079186A (en) Industrial network boundary protection method and system based on industrial control terminal feature recognition
CN108738092A (en) Method for switching network and Related product
CN108494625A (en) A kind of analysis system on network performance evaluation
CN112888007A (en) Method and device for diagnosing off-line reason of device and storage medium
CN115987390A (en) Equipment abnormality detection method and device and electronic equipment
CN112988504B (en) Alarm strategy setting method and device, electronic equipment and storage medium
CN113722088A (en) Recommendation method and device for cloud host specification, storage medium and electronic device
CN114253799A (en) Fault processing system, method, server and readable storage medium
CN113783755A (en) Network monitoring method, network monitoring device, storage medium and electronic device
CN113645101A (en) Automatic verification method for CSD link of intelligent substation switch
CN113569137B (en) Recommendation method and device for cloud host specification, storage medium and electronic 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
GR01 Patent grant
GR01 Patent grant