CN113452576B - Method and device for monitoring network environment, storage medium and electronic device - Google Patents

Method and device for monitoring network environment, storage medium and electronic device Download PDF

Info

Publication number
CN113452576B
CN113452576B CN202110707556.4A CN202110707556A CN113452576B CN 113452576 B CN113452576 B CN 113452576B CN 202110707556 A CN202110707556 A CN 202110707556A CN 113452576 B CN113452576 B CN 113452576B
Authority
CN
China
Prior art keywords
network environment
determining
router
data packet
service command
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
CN202110707556.4A
Other languages
Chinese (zh)
Other versions
CN113452576A (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 the network environment to the router according to a preset time interval; receiving a state data packet determined by a router according to a service command; according to the technical scheme, the problems that the quality of the network environment cannot be monitored in real time and the like in the related art are solved, the situation that important events are reported by equipment due to the network environment problem is reduced, and a target object is helped to know the quality information of the network environment in real time in a family timely and effectively, so that the response time of the equipment connection network is further improved.

Description

Method and device for monitoring network environment, storage medium and electronic device
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and apparatus for monitoring a network environment, a storage medium, and an electronic apparatus.
Background
Along with the rapid development of the Internet of things, the variety and data of intelligent household appliances in families are gradually increased, including intelligent security equipment, intelligent sound boxes, intelligent air conditioners, various intelligent sensors, intelligent medical equipment and the like, and the intelligent household appliances enter into thousands of families. The user can conveniently know the working state of the equipment and the actual situation in the family in time through tools such as mobile APP, websites and the like.
The network is a necessary path for data transmission among three parties of a user, intelligent equipment and a website, wherein the network environment in a household is relatively complex, the interference is more, the network quality in different positions of the household is different, the condition that the intelligent equipment is frequently disconnected or cannot be connected with the network can occur, the user cannot know the working state of the equipment and the actual condition in the household in time on the mobile APP and the website, and therefore, the household personnel or property loss can be brought to the user, for example: 1. the gas sensor, the water logging sensor and the like can not report or delay reporting alarm data due to network quality problems, and the economic loss of property can be caused; 2. the intelligent security equipment can not report or delay reporting alarm data due to network quality problems, and a user can not know the occurrence of conditions such as burglary and the like in time, so that loss can be caused. Therefore, users can know the real-time condition of the network environment in the home in time, and when the network environment is bad, it becomes important to actively prompt the users to optimize the network 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 proposed 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 at least solve 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 monitoring method of a network environment, including: sending a service command for determining the network environment to the router according to a preset time interval; receiving a state data packet determined by the router according to the service command; and carrying out rating analysis on the state data packet according to a preset rating rule so as to determine the quality grade of the network environment.
In one 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; and 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 under the condition that the connection state indicates that communication is normal, wherein the sending condition is used for determining at least one of the following: 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 packet determined by the router according to the service command includes: determining the total sending times of the service command in a target period; carrying out quantity comparison on the information quantity of the state data packet determined by the router according to the total transmission times, wherein the quantity comparison is used for determining the consistency of the total transmission times and the information quantity; and receiving a state data packet determined by the router according to the service command under the condition that the number comparison result indicates the same number, wherein the state data packet comprises at least one of the following components: the success rate of the communication 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, 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 rating division standards of different parameters corresponding to the network environment, wherein the rating rules comprise the rating division standards; determining a scoring value corresponding to each state data in the state data packet according to the scoring standard; and adding the multiple scoring 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 value of the network environment, wherein the monitoring threshold value 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 carry out setting recommendation of the network environment.
In an exemplary embodiment, comparing the quality score corresponding to the quality level with the magnitude of the monitoring threshold to determine whether to make a setting recommendation for a network environment includes: under the condition that the quality score corresponding to the quality grade is smaller than the monitoring threshold value, setting recommendation of the network environment is needed; and under the condition that the quality score corresponding to the quality grade is larger than the monitoring threshold value, setting recommendation of the network environment is not performed.
In an exemplary embodiment, after the setting recommendation of the network environment is required in a case where the quality score corresponding to the quality level is smaller than the monitoring threshold, the method further includes: transmitting the status data packet to a server; receiving a setting recommendation of the network environment, which is obtained after the server processes the state data packet; and sending prompt information to the target object according to the setting recommendation, 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 sending module is used for sending a service command for determining the network environment to the router according to a preset time interval; the receiving module is used for receiving the state data packet determined by the router according to the service command; and the rating module is used for carrying out rating analysis on the state data packet according to a preset rating rule so as to determine the quality grade of the network environment.
In an exemplary embodiment, the sending module is configured to obtain a connection state with a router; and 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 under the condition that the connection state indicates that communication is normal, wherein the sending condition is used for determining at least one of the following: 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 the service command is sent in a target period; carrying out quantity comparison on the information quantity of the state data packet determined by the router according to the total transmission times, wherein the quantity comparison is used for determining the consistency of the total transmission times and the information quantity; and receiving a state data packet determined by the router according to the service command under the condition that the number comparison result indicates the same number, wherein the state data packet comprises at least one of the following components: the success rate of the communication 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 above-mentioned rating module is further configured to determine rating division criteria of different parameters corresponding to the network environment, where the rating rule includes the rating division criteria; determining a scoring value corresponding to each state data in the state data packet according to the scoring standard; and adding the multiple scoring 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 above apparatus further includes: the comparison module is also used for acquiring a monitoring threshold value of the network environment, wherein the monitoring threshold value 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 carry out setting recommendation of the network environment.
In an exemplary embodiment, the comparing module is configured to determine that a setting recommendation of the network environment needs to be made if a quality score corresponding to the quality class is less than the monitoring threshold; and under the condition that the quality score corresponding to the quality grade is larger than the monitoring threshold value, determining not to carry out setting recommendation of the network environment.
In an exemplary embodiment, the comparing module further includes: the prompting unit is used for sending the state data packet to a server; receiving a setting recommendation of the network environment, which is obtained after the server processes the state data packet; and sending prompt information to the target object according to the setting recommendation, 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 invention, there is also provided a computer-readable storage medium having stored therein a computer program, wherein the computer program is arranged to perform the steps of any of the method embodiments described above when run.
According to a further embodiment of the invention, there is also provided an electronic device comprising a memory having stored therein a computer program and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
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 a router according to a service command; according to the technical scheme, the problems that the quality of the network environment cannot be monitored in real time and the like in the related art are solved, the situation that important events are reported by equipment due to the network environment problem is reduced, and a target object is helped to know the quality information of the network environment in real time in a family timely and effectively, so that the response time of the equipment connection network is further improved.
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 embodiments of the invention and together with the description serve to explain the invention and do not constitute a limitation on the invention. In the drawings:
fig. 1 is a hardware block diagram 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 invention;
FIG. 3 is a schematic diagram of a LAN networking environment data collection flow in accordance with an alternative embodiment of the present invention;
FIG. 4 is a schematic diagram of a wide area network environment data acquisition process in accordance with an alternative embodiment of the present invention;
FIG. 5 is an interactive diagram of home network environment information reporting to a user according to an alternative embodiment of the present invention;
FIG. 6 is a schematic diagram of a monitoring implementation scenario of a network environment according to 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 drawings in conjunction with embodiments. It should be noted that, in the case of no conflict, the embodiments and features in the embodiments may be combined with each other.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order.
The method embodiments provided by the embodiments of the present application may be executed in a computer terminal, a cloud platform, or a similar computing device. Taking the operation on the device terminal as an example, fig. 1 is a hardware structure block diagram of the device terminal of a monitoring method of a network environment according to an embodiment of the present invention. As shown in fig. 1, the device terminal may include one or more (only one is shown in fig. 1) processors 102 (the processor 102 may include, but is not limited to, a microprocessor MCU or a processing device such as a programmable logic device FPGA) and a memory 104 for storing data, and in one exemplary embodiment, the device terminal may further include a transmission device 106 for communication functions and an input-output device 108. It will be appreciated by those skilled in the art that the configuration shown in fig. 1 is merely illustrative and is not intended to limit the configuration of the device terminals described above. For example, the device terminal may also include more or fewer components than shown in fig. 1, or have a different configuration than the equivalent functions shown in fig. 1 or more than the functions shown in fig. 1.
The memory 104 may be used to store a computer program, for example, a software program of application software and a module, such as a computer program corresponding to a method for monitoring a network environment in an embodiment of the present invention, and the processor 102 executes the computer program stored in the memory 104 to perform various functional applications and data processing, that is, implement the above-mentioned method. 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 remotely located with respect to the processor 102, which may be connected to the device terminal through 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 means 106 is arranged to receive or transmit data via a network. The specific example 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 (Network Interface Controller, simply referred to as NIC) that can connect to other network devices through a base station to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used to communicate with the internet wirelessly.
In this embodiment, a method for monitoring a network environment is provided and 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, a service command for determining the network environment is sent to a router according to a preset time interval;
it should be noted that, the above-mentioned preset time interval may be determined according to a last historical quality level of the network environment in the history record, when a quality score corresponding to the historical quality level is greater than a monitoring threshold, it indicates that the historical network environment of the device is good, at this time, when the preset time interval is determined, an interval time may be appropriately increased, and when a quality score corresponding to the historical quality level is less than the monitoring threshold, it indicates that the historical network environment of the device is poor, at this time, when the preset time interval is determined, an interval time may be appropriately reduced to ensure a data collection amount of network environment data.
Step S204, receiving a state data packet determined by the router according to the service command;
step S206, performing rating analysis on the state data packet according to a preset rating rule to determine the quality grade of the network environment.
It may be appreciated that the preset rating rule may be a table set after the network of the network environment of the device is established for converting parameters of the network environment into visual values, and then converting professional parameters into quality values that may embody the network environment.
Through the technical scheme, 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 a router according to a service command; according to the technical scheme, the problems that the quality of the network environment cannot be monitored in real time and the like in the related art are solved, the situation that important events are reported by equipment due to the network environment problem is reduced, and a target object is helped to know the quality information of the network environment in real time in a family timely and effectively, so that the response time of the equipment connection network is further improved.
In one 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; and 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 under the condition that the connection state indicates that communication is normal, wherein the sending condition is used for determining at least one of the following: 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 connects the route, 10 ping instructions (corresponding to the service command in the embodiment of the invention) are continuously sent to the router every 3 minutes, the size of the data packet corresponding to the ping instructions is 64 bytes, the timeout time is 1 second, and then the wide area network connectivity success rate (ping success rate) and the signal round trip delay (average time consumption of the ping packets) are calculated according to the return result of the ping instructions.
In an exemplary embodiment, receiving the status packet determined by the router according to the service command includes: determining the total sending times of the service command in a target period; carrying out quantity comparison on the information quantity of the state data packet determined by the router according to the total transmission times, wherein the quantity comparison is used for determining the consistency of the total transmission times and the information quantity; and receiving a state data packet determined by the router according to the service command under the condition that the number comparison result indicates the same number, wherein the state data packet comprises at least one of the following components: the success rate of the communication 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 environmental data, the situation that data loss in the data transmission process cannot be known in time is avoided, after a state data packet is returned by a router, the total sending times of service commands in a certain time period are counted by equipment data, and the total sending times are compared with the information quantity of the state data packet, so that the defect of the environmental data statistics is avoided.
In an exemplary embodiment, 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 rating division standards of different parameters corresponding to the network environment, wherein the rating rules comprise the rating division standards; determining a scoring value corresponding to each state data in the state data packet according to the scoring standard; and adding the multiple scoring 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 the professional parameters in the network environment, a reference table of the network environment rating dividing standard is preset, each type of state data in the state data packet is scored according to the table, and then the corresponding quality grade is determined according to the scoring value, so that the target object can clearly know the actual state of the network environment according to the quality grade without professional knowledge.
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 value of the network environment, wherein the monitoring threshold value 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 carry out setting recommendation of the network environment.
In an exemplary embodiment, comparing the quality score corresponding to the quality level with the magnitude of the monitoring threshold to determine whether to make a setting recommendation for a network environment includes: under the condition that the quality score corresponding to the quality grade is smaller than the monitoring threshold value, setting recommendation of the network environment is needed; and under the condition that the quality score corresponding to the quality grade is larger than the monitoring threshold value, setting recommendation of the network environment is not performed.
In an exemplary embodiment, after the setting recommendation of the network environment is required in a case where the quality score corresponding to the quality level is smaller than the monitoring threshold, the method further includes: transmitting the status data packet to a server; receiving a setting recommendation of the network environment, which is obtained after the server processes the state data packet; and sending prompt information to the target object according to the setting recommendation, 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 of the network environment, the following describes the flow of the monitoring method of the network environment with reference to an alternative embodiment, but 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 the routing and home network environment, it is not known how to measure and monitor the network quality of the home. The cost is high if the user learns. And the user can only detect the network quality at the moment when using the computer tool to detect, but can not monitor the network quality continuously, and when the network quality is poor or no network exists, the key data of the equipment can not be reported in time. In addition, the professional detection mechanism detects the network quality condition at the time, cannot monitor in real time, and the detection report is professional, needs special explanation, and takes time and money cost.
Aiming at the problems in the related art, as an optional implementation manner, the optional embodiment of the invention provides a real-time monitoring scheme of a home network environment based on intelligent equipment, which is used for detecting the signal intensity and connectivity of a router and the connectivity of a connection server based on the existing intelligent equipment in the home environment, reporting network environment data acquired by each intelligent equipment to a cloud server, and forming a set of monitoring method of a home network environment quality model together through server data statistics and calculation, thereby solving the problem that the quality of the home network environment cannot be monitored in multiple points and continuously in real time.
Optionally, the detected network environment is scored by setting a network environment rating dividing standard, so that the grade of the network environment quality is determined, a user can more intuitively know the current network environment condition, timely and effectively help the user to know the real-time network environment quality information in the home, and an optimization scheme of the home network environment quality is provided. Therefore, the situation that important events of intelligent equipment cannot be reported (such as gas alarm and water immersion alarm) due to network environment problems is reduced, and household economic or property loss can be effectively reduced.
As an optional implementation manner, as shown in fig. 3, a schematic diagram of a local area network environment data collection flow according to an optional 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 the score corresponding to the network quality in the history record under the determined connected state, and adjusting the time interval of collecting the Ping instruction corresponding to the local area network environment data sent by the intelligent equipment to the router according to the history 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 device to the intelligent device.
Step S306: the intelligent device scores and rates the network environment data.
For example, after the intelligent device connects the router, 10 ping instructions (the size of the ping packet is 64 bytes and the timeout time is 1 second) are continuously sent to the router every 3 minutes, and the local area network connectivity success rate (ping success rate) and the signal round trip delay (average time consumption of the ping packet) are calculated according to the return result of the ping instructions, and meanwhile the router SSID and the signal strength are obtained. And after the environmental data is successfully acquired, the equipment performs comprehensive rating on the local computing network environment and reports the comprehensive rating to the cloud server. If reporting fails, the local storage is carried out, and the next reporting is carried out. When the network quality score is higher than or equal to a set threshold value S1 (30 minutes), the network environment of the intelligent device is good, and the acquisition time interval is adjusted to be 10 minutes. When the network quality score is smaller than the set threshold value S1 (30 minutes), the current network environment quality is poor, and the acquisition time interval is adjusted to be 3 minutes.
As an optional implementation manner, as shown in fig. 4, a schematic diagram of a wide area network environment data collection procedure according to an optional embodiment of the present invention specifically includes the following steps:
Step S402: determining a connection state of the intelligent equipment and the router, determining a score corresponding to network quality in a history record under the condition of determining the connected state, and adjusting a time interval for acquiring a Ping instruction corresponding to wide area network environment data, which is sent to the router by the intelligent equipment, according to the history score; collecting wide area network environment data between the intelligent equipment and the router;
step S404: the router forwards a 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 gathers and returns the wide area network environment data between the intelligent device and the router and between the router and the server to the intelligent device.
Step S408: the intelligent device scores and rates the network environment data.
Optionally, fig. 5 is a schematic diagram of interaction of reporting home network environment information to a user according to an alternative embodiment of the present invention. 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 network environment number of the family, the cloud server obtains user family network environment ratings (excellent, good, medium and bad), intelligent device network environment ratings (excellent, good, medium and bad), network signal strength of each intelligent device, network signal round trip delay data and creates a topological graph of equipment family distribution according to an algorithm. After the data calculation and processing, the network environment of the home and each intelligent device has been described, network quality data or optimization suggestions (such as adjusting the placement position of a router, adding a router and the like) can be pushed to a user through cloud service, and telephone communication can be carried out with the user through manual customer service, so that the optimization suggestions of the network environment or one-stop approach solutions can be provided.
Optionally, the above network environment rating partitioning criteria are shown in table 1 below:
TABLE 1
Figure BDA0003131946950000121
Optionally, the network quality score calculating method comprises the following steps: network quality score = sum of 10 consecutive network environment quality scores, 40 full scores. It should be noted that the network quality score may vary according to the actual situation, and 10 times in the alternative embodiment of the present invention is only an example.
Optionally, fig. 6 is a schematic diagram of a monitoring practical application scenario of a network environment according to an alternative embodiment of the present invention.
According to the alternative embodiment of the invention, the network environment is monitored through the existing intelligent equipment in the home, and the intelligent equipment in the home is used as the basis, so that extra equipment cost is not required to be additionally increased, the cost of network environment monitoring service is not required to be spent, the existing resources can be effectively reused, and the expenditure cost of a user is reduced. The acquired network environment number is displayed to the user in a popular and easily understood way after being calculated, and the user does not need to input the related learning cost of the network environment.
From the description of the above embodiments, it will be clear to a person skilled in the art that the method according to the above embodiments may be implemented by means of software plus the necessary general hardware platform, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The embodiment also provides a monitoring device for a network environment, which is used for implementing the foregoing embodiments and preferred embodiments, and is not described in detail. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. While the means described in the following embodiments are preferably implemented in software, 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 transmitting module 72, configured to transmit a service command for determining a network environment to the router according to a preset time interval;
a receiving module 74, configured to receive a status data packet determined by the router according to the service command;
the rating module 76 performs rating analysis on the status data packet according to a preset rating rule to determine a quality level of the network environment.
Through the technical scheme, 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 a router according to a service command; according to the technical scheme, the problems that the quality of the network environment cannot be monitored in real time and the like in the related art are solved, the situation that important events are reported by equipment due to the network environment problem is reduced, and a target object is helped to know the quality information of the network environment in real time in a family timely and effectively, so that the response time of the equipment connection network is further improved.
In an exemplary embodiment, the sending module is configured to obtain a connection state with a router; and 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 under the condition that the connection state indicates that communication is normal, wherein the sending condition is used for determining at least one of the following: 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 connects the route, 10 ping instructions (corresponding to the service command in the embodiment of the invention) are continuously sent to the router every 3 minutes, the size of the data packet corresponding to the ping instructions is 64 bytes, the timeout time is 1 second, and then the wide area network connectivity success rate (ping success rate) and the signal round trip delay (average time consumption of the ping packets) are calculated according to the return result of the ping instructions.
In an exemplary embodiment, the receiving module is further configured to determine a total number of times the service command is sent in a target period; carrying out quantity comparison on the information quantity of the state data packet determined by the router according to the total transmission times, wherein the quantity comparison is used for determining the consistency of the total transmission times and the information quantity; and receiving a state data packet determined by the router according to the service command under the condition that the number comparison result indicates the same number, wherein the state data packet comprises at least one of the following components: the success rate of the communication 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 environmental data, the situation that data loss in the data transmission process cannot be known in time is avoided, after a state data packet is returned by a router, the total sending times of service commands in a certain time period are counted by equipment data, and the total sending times are compared with the information quantity of the state data packet, so that the defect of the environmental data statistics is avoided.
In an exemplary embodiment, the above-mentioned rating module is further configured to determine rating division criteria of different parameters corresponding to the network environment, where the rating rule includes the rating division criteria; determining a scoring value corresponding to each state data in the state data packet according to the scoring standard; and adding the multiple scoring 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 the professional parameters in the network environment, a reference table of the network environment rating dividing standard is preset, each type of state data in the state data packet is scored according to the table, and then the corresponding quality grade is determined according to the scoring value, so that the target object can clearly know the actual state of the network environment according to the quality grade without professional knowledge.
In an exemplary embodiment, the above apparatus further includes: the comparison module is also used for acquiring a monitoring threshold value of the network environment, wherein the monitoring threshold value 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 carry out setting recommendation of the network environment.
In an exemplary embodiment, the comparing module is configured to determine that a setting recommendation of the network environment needs to be made if a quality score corresponding to the quality class is less than the monitoring threshold; and under the condition that the quality score corresponding to the quality grade is larger than the monitoring threshold value, determining not to carry out setting recommendation of the network environment.
In an exemplary embodiment, the comparing module further includes: the prompting unit is used for sending the state data packet to a server; receiving a setting recommendation of the network environment, which is obtained after the server processes the state data packet; and sending prompt information to the target object according to the setting recommendation, 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 should be understood that the directions or positional relationships indicated by the terms "center", "upper", "lower", "front", "rear", "left", "right", etc. are based on the directions or positional relationships shown in the drawings, are merely for convenience of describing the present invention and simplifying the description, and do not indicate or imply that the apparatus or component to be 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," "second," and the like, 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 explicitly specified and limited otherwise, the terms "mounted," "connected," and "connected" are to be construed broadly, and may be either fixedly connected, detachably connected, or integrally connected, for example; can be mechanically or electrically connected; can be directly connected or indirectly connected through an intermediate medium, and can be communicated with the inside of the two components. When an element is referred to as being "mounted" or "disposed" on another element, it can be directly on the other element or intervening elements may also be present. When an element 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. It will be understood by those of ordinary skill in the art that the terms described above are in the specific sense of the present invention.
An embodiment of the present invention also provides a storage medium including a stored program, wherein the program executes the method of any one of the above.
In an exemplary embodiment, in the present embodiment, the above-described storage medium may be configured to store a computer program for performing the steps of:
s1, sending a service command for determining a network environment to a router according to a preset time interval;
s2, receiving a state data packet determined by the router according to the service command;
and S3, carrying out rating analysis on the state data packet according to a preset rating rule so as to determine the quality grade of the network environment.
In an exemplary embodiment, in the present embodiment, the storage medium may include, but is not limited to: a usb disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing a computer program.
An embodiment of the invention also provides an electronic device comprising a memory having stored therein a computer program and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
In an exemplary embodiment, the electronic apparatus may further include a transmission device connected to the processor, and an input/output device connected to the processor.
In an exemplary embodiment, in this embodiment, the above-mentioned processor may be configured to execute the following steps by a computer program:
s1, sending a service command for determining a network environment to a router according to a preset time interval;
s2, receiving a state data packet determined by the router according to the service command;
and S3, carrying out rating analysis on the state data packet according to a preset rating rule so as to determine the quality grade of the network environment.
In an exemplary embodiment, reference may be made to the examples described in the foregoing embodiments and optional implementations, and this embodiment is not repeated herein.
It will be apparent to those skilled in the art that the modules or steps of the invention described above may be implemented in a general purpose computing device, they may be concentrated on a single computing device, or distributed across a network of computing devices, and in one exemplary embodiment they may be implemented in program code executable by a computing device, so that they may be stored in a memory device for execution by a computing device, and in some cases, the steps shown or described may be performed in a different order than what is shown or described, or they may be separately fabricated into individual integrated circuit modules, or a plurality of modules or steps in them may be 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 of the preferred embodiments of the present invention and is not intended to limit the present invention, but various modifications and variations can be made to the present invention by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (9)

1. A method for monitoring a network environment, comprising:
sending a service command for determining the network environment to the router according to a preset time interval;
receiving a state data packet determined by the router according to the service command;
performing rating analysis on the state data packet according to a preset rating rule to determine the quality grade of the network environment;
the preset time interval is determined through the historical quality grade of the last network environment in the historical record;
the determining the preset time interval through the historical quality grade of the last network environment in the historical record comprises the following steps:
determining to increase the preset time interval under the condition that the quality score corresponding to the historical quality grade is larger than a monitoring threshold value;
determining to reduce the preset time interval under the condition that the quality score corresponding to the historical quality grade is smaller than a monitoring threshold value;
Wherein receiving the state 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;
carrying out quantity comparison on the information quantity of the state data packet determined by the router according to the total transmission times, wherein the quantity comparison is used for determining the consistency of the total transmission times and the information quantity;
and receiving a state data packet determined by the router according to the service command under the condition that the number comparison result indicates the same number, wherein the state data packet comprises at least one of the following components: the success rate of the communication 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.
2. The method of claim 1, wherein transmitting a service command for determining a network environment to the router according to a preset time interval comprises:
acquiring a connection state with a router;
and 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 under the condition that the connection state indicates that communication is normal, wherein the sending condition is used for determining at least one of the following: 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 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 rating division standards of different parameters corresponding to the network environment, wherein the rating rules comprise the rating division standards;
determining a scoring value corresponding to each state data in the state data packet according to the scoring standard;
and adding the multiple scoring 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.
4. 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 value of the network environment, wherein the monitoring threshold value 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 carry out setting recommendation of the network environment.
5. The method of claim 4, wherein comparing the quality score corresponding to the quality level to the magnitude of the monitoring threshold to determine whether to make a network environment setup recommendation comprises:
Determining that the 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 value;
and under the condition that the quality score corresponding to the quality grade is larger than the monitoring threshold value, determining not to carry out setting recommendation of the network environment.
6. The method of claim 5, wherein, in the case where the quality score corresponding to the quality level is less than the monitoring threshold, after the setting recommendation of the network environment is required, the method further comprises:
transmitting the status data packet to a server;
receiving a setting recommendation of the network environment, which is obtained after the server processes the state data packet;
and sending prompt information to the target object according to the setting recommendation, 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.
7. A monitoring device for a network environment, comprising:
the sending module is used for sending a service command for determining the network environment to the router according to a preset time interval;
the receiving module is used for receiving the state data packet determined by the router according to the service command;
The grading module is used for carrying out grading analysis on the state data packet according to a preset grading rule so as to determine the quality grade of the network environment;
the preset time interval is determined through the historical quality grade of the last network environment in the historical record;
the determining the preset time interval through the historical quality grade of the last network environment in the historical record comprises the following steps:
determining to increase the preset time interval under the condition that the quality score corresponding to the historical quality grade is larger than a monitoring threshold value;
determining to reduce the preset time interval under the condition that the quality score corresponding to the historical quality grade is smaller than a monitoring threshold value;
the receiving module is further used for determining the total sending times of the service command in a target period; carrying out quantity comparison on the information quantity of the state data packet determined by the router according to the total transmission times, wherein the quantity comparison is used for determining the consistency of the total transmission times and the information quantity; and receiving a state data packet determined by the router according to the service command under the condition that the number comparison result indicates the same number, wherein the state data packet comprises at least one of the following components: the success rate of the communication 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.
8. A computer readable storage medium, characterized in that the computer readable storage medium comprises a stored program, wherein the program when run by a processor performs the method of any of the preceding claims 1 to 6.
9. 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 according to any of the claims 1 to 6 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 CN113452576A (en) 2021-09-28
CN113452576B true 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)

Families Citing this family (2)

* 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
CN116708150B (en) * 2022-12-29 2024-04-02 荣耀终端有限公司 Network diagnosis method and electronic equipment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104917632B (en) * 2015-04-16 2018-11-02 小米科技有限责任公司 The detection method and device for channel status of networking, electronic equipment
CN110120887B (en) * 2019-04-25 2022-02-11 新华三技术有限公司合肥分公司 Network quality information monitoring method, electronic equipment and storage medium
CN111106969B (en) * 2019-12-31 2022-08-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

Also Published As

Publication number Publication date
CN113452576A (en) 2021-09-28

Similar Documents

Publication Publication Date Title
CN108848515B (en) Internet of things service quality monitoring platform and method based on big data
CN113452576B (en) Method and device for monitoring network environment, storage medium and electronic device
CN107026793B (en) Method for routing, apparatus and system
EP3076709A1 (en) Zigbee network-based data transmission method, apparatus, and system
CN109889512B (en) Charging pile CAN message abnormity detection method and device
CN102868553B (en) Fault Locating Method and relevant device
CN112564964B (en) Fault link detection and recovery method based on software defined network
US20170149619A1 (en) Method and device for discovering network topology
US10708155B2 (en) Systems and methods for managing network operations
CN111327539B (en) Service scheduling method, device and equipment
CN107094091B (en) A kind of intelligent substation station level network configuration method of calibration and system
CN103957552B (en) The method for improving data communication reliability in automatic weather station
CN109284199A (en) Server exception processing method, equipment and processor
CN113676526A (en) Industrial data access management system and method
CN111106969B (en) Automatic evaluation method and system of Internet of things platform and storage medium
CN108199861A (en) A kind of computer lab management method and device
CN113518125A (en) Offline data uploading method and system, storage medium and electronic device
CN110875825B (en) Fault judgment method and device
CN106488495A (en) Base station selecting method and device based on base station signal quality
CN112532467B (en) Method, device and system for realizing fault detection
CN103619032B (en) Wireless routing device optimization method and device
CN110896544B (en) Fault delimiting method and device
CN110620693A (en) Railway station route remote restart control system and method based on Internet of things
CN108738092A (en) Method for switching network and Related product
CN105187264B (en) A kind of method, communication equipment and the system of direct connected link quality-monitoring

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